docs-i18n 0.9.1 → 0.10.0
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/admin/dist/server/server.js +19 -19
- package/package.json +2 -1
- package/template/app/components/markdown/Markdown.tsx +7 -1
- package/template/app/utils/docs.server.ts +37 -4
- package/template/app/worker.ts +16 -0
- package/template/dist/client/assets/{Doc-CGhUfH9r.js → Doc-CbmLeLjl.js} +1 -1
- package/template/dist/client/assets/{DocsLayout-CoPL9BM9.js → DocsLayout-ERG7nrAc.js} +1 -1
- package/template/dist/client/assets/{FileTabs-DsPkEUu7.js → FileTabs-CCynw0nL.js} +1 -1
- package/template/dist/client/assets/{Footer-4faHyha8.js → Footer-l6Y8-ltB.js} +1 -1
- package/template/dist/client/assets/{FrameworkContent-Cxg_X_EP.js → FrameworkContent-pNf68F7f.js} +1 -1
- package/template/dist/client/assets/{MarkdownHeadingContext-CwDqQdSh.js → MarkdownHeadingContext-6I862CKH.js} +4 -4
- package/template/dist/client/assets/{PostNotFound-1ZaWdycM.js → PostNotFound-ScC0039d.js} +1 -1
- package/template/dist/client/assets/{_basePickBy-FbrKkfHa.js → _basePickBy-B-GcvGxW.js} +1 -1
- package/template/dist/client/assets/{_baseUniq-g6ljCkn8.js → _baseUniq-C1WySGZQ.js} +1 -1
- package/template/dist/client/assets/_lang-B3tRf7os.js +1 -0
- package/template/dist/client/assets/_lang._project-CH0inpmY.js +1 -0
- package/template/dist/client/assets/_lang._project._version-CESvrqds.js +1 -0
- package/template/dist/client/assets/{_lang._project._version.docs-DjZ_USgK.js → _lang._project._version.docs-aw08dKvN.js} +1 -1
- package/template/dist/client/assets/{_lang._project._version.docs._-CNb1EMFX.js → _lang._project._version.docs._-B4Vb_S0V.js} +1 -1
- package/template/dist/client/assets/_lang._project._version.docs._-BexMyJr9.js +1 -0
- package/template/dist/client/assets/_lang._project._version.docs.framework._framework._-BbQgUWTH.js +1 -0
- package/template/dist/client/assets/{_lang._project._version.docs.framework._framework.index-CqyVy6eq.js → _lang._project._version.docs.framework._framework.index-DInYPTXM.js} +1 -1
- package/template/dist/client/assets/{_lang._project._version.docs.framework.index-S3Frbfn4.js → _lang._project._version.docs.framework.index-B7EvJmBI.js} +1 -1
- package/template/dist/client/assets/{_lang._project.docs-CkmM5v1V.js → _lang._project.docs-4oX3ADgu.js} +1 -1
- package/template/dist/client/assets/_lang._project.docs._-R9bOn492.js +1 -0
- package/template/dist/client/assets/{_lang._project.docs._-BHYKQj_2.js → _lang._project.docs._-emq0IsQw.js} +1 -1
- package/template/dist/client/assets/_lang.blog-BViCs72M.js +1 -0
- package/template/dist/client/assets/_lang.blog-DhVkwYEk.js +1 -0
- package/template/dist/client/assets/_lang.blog._-BHdaHDBU.js +1 -0
- package/template/dist/client/assets/{_lang.blog._-bXJwKw9E.js → _lang.blog._-DErizs7q.js} +1 -1
- package/template/dist/client/assets/_lang.blog.index-CELEUrkj.js +1 -0
- package/template/dist/client/assets/{_lang.blog.index-CdR5PZOo.js → _lang.blog.index-DZDuDkQr.js} +1 -1
- package/template/dist/client/assets/{_lang.docs-Cp3wmc9k.js → _lang.docs-CQK0rfqt.js} +1 -1
- package/template/dist/client/assets/{_lang.docs._-0bwIpeOn.js → _lang.docs._-BiCvgeV1.js} +1 -1
- package/template/dist/client/assets/_lang.docs._-axvS_dfl.js +1 -0
- package/template/dist/client/assets/_lang.docs.framework._framework._-D2FAQ0gW.js +1 -0
- package/template/dist/client/assets/{_lang.docs.framework._framework.index-BLgwIvQA.js → _lang.docs.framework._framework.index-Bu5p5Q_r.js} +1 -1
- package/template/dist/client/assets/{_lang.docs.framework.index-CzW7Dul3.js → _lang.docs.framework.index-uTDFLagP.js} +1 -1
- package/template/dist/client/assets/{arc-B4lRpBfi.js → arc-C16C7aa3.js} +1 -1
- package/template/dist/client/assets/{architectureDiagram-2XIMDMQ5-Coq1Gceq.js → architectureDiagram-2XIMDMQ5-DgSSDH9Z.js} +1 -1
- package/template/dist/client/assets/{blockDiagram-WCTKOSBZ-C7BGTzDN.js → blockDiagram-WCTKOSBZ-Bs8e58Or.js} +1 -1
- package/template/dist/client/assets/{c4Diagram-IC4MRINW-xTBVTs0q.js → c4Diagram-IC4MRINW-DsGaAPtm.js} +1 -1
- package/template/dist/client/assets/channel-Clrp6Lr4.js +1 -0
- package/template/dist/client/assets/{chunk-4BX2VUAB-DUUHBu75.js → chunk-4BX2VUAB-BQdq93Vq.js} +1 -1
- package/template/dist/client/assets/{chunk-55IACEB6-MUxF_n9_.js → chunk-55IACEB6-zjp4uUiZ.js} +1 -1
- package/template/dist/client/assets/{chunk-FMBD7UC4-BWh6wvYo.js → chunk-FMBD7UC4-CEdYlBOF.js} +1 -1
- package/template/dist/client/assets/{chunk-JSJVCQXG-CLUdUV5u.js → chunk-JSJVCQXG-CVkDw9ls.js} +1 -1
- package/template/dist/client/assets/{chunk-KX2RTZJC-CAlz_cXA.js → chunk-KX2RTZJC--1vKv-mr.js} +1 -1
- package/template/dist/client/assets/{chunk-NQ4KR5QH-BaYKfUVy.js → chunk-NQ4KR5QH-Cpo-W18l.js} +1 -1
- package/template/dist/client/assets/{chunk-QZHKN3VN-NxDloxi5.js → chunk-QZHKN3VN-BizWJuB4.js} +1 -1
- package/template/dist/client/assets/{chunk-WL4C6EOR-C2Ncbi5S.js → chunk-WL4C6EOR-6lLYa9R1.js} +1 -1
- package/template/dist/client/assets/classDiagram-VBA2DB6C-Beq6_jEy.js +1 -0
- package/template/dist/client/assets/classDiagram-v2-RAHNMMFH-Beq6_jEy.js +1 -0
- package/template/dist/client/assets/clone-BbBu6MzK.js +1 -0
- package/template/dist/client/assets/{cose-bilkent-S5V4N54A-Ct9-ZJcv.js → cose-bilkent-S5V4N54A-CaD0EGPJ.js} +1 -1
- package/template/dist/client/assets/{dagre-KLK3FWXG-u9dz8dcq.js → dagre-KLK3FWXG-h4F9WtDQ.js} +1 -1
- package/template/dist/client/assets/{diagram-E7M64L7V-BXmcaktT.js → diagram-E7M64L7V-CBUSWzH5.js} +1 -1
- package/template/dist/client/assets/{diagram-IFDJBPK2-CRlP5SeV.js → diagram-IFDJBPK2-C5oMubv0.js} +1 -1
- package/template/dist/client/assets/{diagram-P4PSJMXO-B9rJcj_H.js → diagram-P4PSJMXO-DdPwwhHR.js} +1 -1
- package/template/dist/client/assets/{erDiagram-INFDFZHY-DX-vee6w.js → erDiagram-INFDFZHY-0U5A-RF0.js} +1 -1
- package/template/dist/client/assets/{flowDiagram-PKNHOUZH-CoBCSOFc.js → flowDiagram-PKNHOUZH-CXN3pvSW.js} +1 -1
- package/template/dist/client/assets/{ganttDiagram-A5KZAMGK-BlqU_ghi.js → ganttDiagram-A5KZAMGK-DlovlSO7.js} +1 -1
- package/template/dist/client/assets/{gitGraphDiagram-K3NZZRJ6-CntCsuti.js → gitGraphDiagram-K3NZZRJ6-Bo-Jjy7v.js} +1 -1
- package/template/dist/client/assets/{graph-CZaxZzO8.js → graph-C0TauvuO.js} +1 -1
- package/template/dist/client/assets/{index-XelhTkgl.js → index-iATq4LEm.js} +1 -1
- package/template/dist/client/assets/{infoDiagram-LFFYTUFH-_jCC8Jtt.js → infoDiagram-LFFYTUFH-BbvPzztn.js} +1 -1
- package/template/dist/client/assets/{ishikawaDiagram-PHBUUO56-D3m_r2ig.js → ishikawaDiagram-PHBUUO56-DKCMONMO.js} +1 -1
- package/template/dist/client/assets/{journeyDiagram-4ABVD52K-CvRNm03C.js → journeyDiagram-4ABVD52K-D9NP_vvu.js} +1 -1
- package/template/dist/client/assets/{kanban-definition-K7BYSVSG-nQcLuNSy.js → kanban-definition-K7BYSVSG-X-u_nWxK.js} +1 -1
- package/template/dist/client/assets/{layout-DZIdDq97.js → layout-IeRzBrUX.js} +1 -1
- package/template/dist/client/assets/{linear-C2JcF5ss.js → linear-DEzVUeiK.js} +1 -1
- package/template/dist/client/assets/{main-C8MldI1o.js → main-Csj9i19C.js} +2 -2
- package/template/dist/client/assets/{mermaid.core-DlB0QBo2.js → mermaid.core-CCnh2DG0.js} +4 -4
- package/template/dist/client/assets/{mindmap-definition-YRQLILUH-D9OjtrBW.js → mindmap-definition-YRQLILUH-DgyN4Ft-.js} +1 -1
- package/template/dist/client/assets/{pieDiagram-SKSYHLDU-DoYJZfNJ.js → pieDiagram-SKSYHLDU-DDVqU_2Q.js} +1 -1
- package/template/dist/client/assets/{quadrantDiagram-337W2JSQ-Bs71YHJr.js → quadrantDiagram-337W2JSQ-BeUxMqle.js} +1 -1
- package/template/dist/client/assets/{react-C0klD_r9.js → react-os8EX6z1.js} +1 -1
- package/template/dist/client/assets/{requirementDiagram-Z7DCOOCP-BWvQcALn.js → requirementDiagram-Z7DCOOCP-CpzdlyEd.js} +1 -1
- package/template/dist/client/assets/{sankeyDiagram-WA2Y5GQK-CiGy1SQP.js → sankeyDiagram-WA2Y5GQK-CmSWF6XU.js} +1 -1
- package/template/dist/client/assets/{sequenceDiagram-2WXFIKYE-DRZim8vR.js → sequenceDiagram-2WXFIKYE-DarofLka.js} +1 -1
- package/template/dist/client/assets/{stateDiagram-RAJIS63D-BoqzJeL7.js → stateDiagram-RAJIS63D-CEio2h-7.js} +1 -1
- package/template/dist/client/assets/stateDiagram-v2-FVOUBMTO-CbfK0_BD.js +1 -0
- package/template/dist/client/assets/{timeline-definition-YZTLITO2-CyvR95Wz.js → timeline-definition-YZTLITO2-By_Wk6uc.js} +1 -1
- package/template/dist/client/assets/{treemap-KZPCXAKY-DkXgGvs_.js → treemap-KZPCXAKY-mKcaMbv9.js} +1 -1
- package/template/dist/client/assets/{vennDiagram-LZ73GAT5-CVpGZu6p.js → vennDiagram-LZ73GAT5-Dx_Fh7nH.js} +1 -1
- package/template/dist/client/assets/{xychartDiagram-JWTSCODW-Cjqbi_DU.js → xychartDiagram-JWTSCODW-DSAwWbBw.js} +1 -1
- package/template/dist/server/assets/{Doc-DKBxQduk.js → Doc-B8TJBEmx.js} +3 -3
- package/template/dist/server/assets/{DocsLayout-CQfCTal3.js → DocsLayout-CnWgvk8u.js} +2 -2
- package/template/dist/server/assets/{Footer-Dcw5XVqX.js → Footer-WapWK45U.js} +1 -1
- package/template/dist/server/assets/{FrameworkContent-OJfvCBHi.js → FrameworkContent-gzqT-Q1n.js} +2 -2
- package/template/dist/server/assets/{MarkdownHeadingContext-h4SfZq-C.js → MarkdownHeadingContext-Iyk66Y4x.js} +7 -3
- package/template/dist/server/assets/{PostNotFound-DRJpnWrj.js → PostNotFound-GKdNuzsX.js} +1 -1
- package/template/dist/server/assets/{_lang._project._version.docs-sJvASz_e.js → _lang._project._version.docs-BOZ34yW7.js} +3 -3
- package/template/dist/server/assets/{_lang._project._version.docs-CE_Z2zvG.js → _lang._project._version.docs-DOTNQiDb.js} +1 -1
- package/template/dist/server/assets/{_lang._project._version.docs._-B2vf_QGY.js → _lang._project._version.docs._-5W2jN7Re.js} +5 -5
- package/template/dist/server/assets/{_lang._project._version.docs._-CQcamDns.js → _lang._project._version.docs._-DSg82-Ug.js} +1 -1
- package/template/dist/server/assets/{_lang._project._version.docs.framework._framework._-54LEIllb.js → _lang._project._version.docs.framework._framework._-DbeN6toN.js} +1 -1
- package/template/dist/server/assets/{_lang._project._version.docs.framework._framework._-Dmn8xCf0.js → _lang._project._version.docs.framework._framework._-DeN_oA8l.js} +5 -5
- package/template/dist/server/assets/{_lang._project._version.docs.framework._framework.index-COKb9ffR.js → _lang._project._version.docs.framework._framework.index-jWKDCQSE.js} +1 -1
- package/template/dist/server/assets/{_lang._project._version.docs.framework.index-DoEddI6Z.js → _lang._project._version.docs.framework.index-DOT4MtjZ.js} +1 -1
- package/template/dist/server/assets/{_lang._project.docs-dl8MxaGg.js → _lang._project.docs-BsnkRf-R.js} +1 -1
- package/template/dist/server/assets/{_lang._project.docs-BjOhmwp6.js → _lang._project.docs-r4V9TXuu.js} +3 -3
- package/template/dist/server/assets/{_lang._project.docs._-hSRVM-U7.js → _lang._project.docs._-Bge7JaYE.js} +5 -5
- package/template/dist/server/assets/{_lang._project.docs._-Bq0ajlaH.js → _lang._project.docs._-axRfm8vS.js} +1 -1
- package/template/dist/server/assets/{_lang.blog-Dk36D6Ol.js → _lang.blog-DJOfiyA8.js} +2 -2
- package/template/dist/server/assets/{_lang.blog._-A8h17fpC.js → _lang.blog._-C7iqMj9O.js} +2 -2
- package/template/dist/server/assets/{_lang.blog._-Cm8zXsPs.js → _lang.blog._-yJSqbX08.js} +2 -2
- package/template/dist/server/assets/{_lang.blog.index-orWcAgbi.js → _lang.blog.index-CrdyROhK.js} +2 -2
- package/template/dist/server/assets/{_lang.blog.index-ZhMds6Jp.js → _lang.blog.index-Df_6_IKx.js} +1 -1
- package/template/dist/server/assets/{_lang.docs-CB1sGjRO.js → _lang.docs-DSB3iI6a.js} +1 -1
- package/template/dist/server/assets/{_lang.docs-CAEkhcnT.js → _lang.docs-Jwt4deTW.js} +3 -3
- package/template/dist/server/assets/{_lang.docs._-Zbv8OwJU.js → _lang.docs._-D_DdKLAV.js} +5 -5
- package/template/dist/server/assets/{_lang.docs._-DEX6FutM.js → _lang.docs._-S-y4-3Qn.js} +1 -1
- package/template/dist/server/assets/{_lang.docs.framework._framework._-BnpTV3KM.js → _lang.docs.framework._framework._-BFWLyU2h.js} +1 -1
- package/template/dist/server/assets/{_lang.docs.framework._framework._-4s4-ZCYh.js → _lang.docs.framework._framework._-BkQaZ_1f.js} +5 -5
- package/template/dist/server/assets/{_lang.docs.framework._framework.index-BLryfsl2.js → _lang.docs.framework._framework.index-BLx8p8IS.js} +1 -1
- package/template/dist/server/assets/{_lang.docs.framework.index-DGxWQH6q.js → _lang.docs.framework.index-BytQ_q8T.js} +1 -1
- package/template/dist/server/assets/{_tanstack-start-manifest_v-CURwM8Tc.js → _tanstack-start-manifest_v-RX6ItZ5S.js} +1 -1
- package/template/dist/server/assets/{docs.server-7EUAkSBN.js → docs.server-BSH7IvIU.js} +3884 -444
- package/template/dist/server/assets/{index-BvagF3L5.js → index-DvBGSZeA.js} +2 -2
- package/template/dist/server/assets/{router-DK1vpPhv.js → router-DPPgDicW.js} +18 -18
- package/template/dist/server/server.js +10 -10
- package/template/package.json +2 -0
- package/template/vite.config.ts +33 -18
- package/template/wrangler.jsonc +2 -2
- package/template/dist/client/assets/_lang-Cpuy5xmU.js +0 -1
- package/template/dist/client/assets/_lang._project-DBdR04In.js +0 -1
- package/template/dist/client/assets/_lang._project._version-CtCLMJs2.js +0 -1
- package/template/dist/client/assets/_lang._project._version.docs._-CxgRZ17Q.js +0 -1
- package/template/dist/client/assets/_lang._project._version.docs.framework._framework._-Qph6wahA.js +0 -1
- package/template/dist/client/assets/_lang._project.docs._-C_ZfXEJ7.js +0 -1
- package/template/dist/client/assets/_lang.blog-BcRmhv23.js +0 -1
- package/template/dist/client/assets/_lang.blog-C5Aa7k5r.js +0 -1
- package/template/dist/client/assets/_lang.blog._-BVw4vhtF.js +0 -1
- package/template/dist/client/assets/_lang.blog.index-Y35iFzkp.js +0 -1
- package/template/dist/client/assets/_lang.docs._-B9hwwoTY.js +0 -1
- package/template/dist/client/assets/_lang.docs.framework._framework._-BENbKZIu.js +0 -1
- package/template/dist/client/assets/channel-C_1F7tzH.js +0 -1
- package/template/dist/client/assets/classDiagram-VBA2DB6C-CqViWWFw.js +0 -1
- package/template/dist/client/assets/classDiagram-v2-RAHNMMFH-CqViWWFw.js +0 -1
- package/template/dist/client/assets/clone-EeiNAO_N.js +0 -1
- package/template/dist/client/assets/stateDiagram-v2-FVOUBMTO-CJYWvllO.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KLK3FWXG-
|
|
2
|
-
import{A as n0,_ as ut}from"./main-C8MldI1o.js";var Tn={exports:{}},a0=Tn.exports,jl;function s0(){return jl||(jl=1,(function(e,t){(function(r,i){e.exports=i()})(a0,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",u="month",d="quarter",f="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,b={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(B){var A=["th","st","nd","rd"],S=B%100;return"["+B+(A[(S-20)%10]||A[S]||A[0])+"]"}},C=function(B,A,S){var $=String(B);return!$||$.length>=A?B:""+Array(A+1-$.length).join(S)+B},v={s:C,z:function(B){var A=-B.utcOffset(),S=Math.abs(A),$=Math.floor(S/60),M=S%60;return(A<=0?"+":"-")+C($,2,"0")+":"+C(M,2,"0")},m:function B(A,S){if(A.date()<S.date())return-B(S,A);var $=12*(S.year()-A.year())+(S.month()-A.month()),M=A.clone().add($,u),q=S-M<0,Y=A.clone().add($+(q?-1:1),u);return+(-($+(S-M)/(q?M-Y:Y-M))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:h,d:c,D:g,h:l,m:o,s,ms:a,Q:d}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},k="en",T={};T[k]=b;var L="$isDayjsObject",D=function(B){return B instanceof N||!(!B||!B[L])},I=function B(A,S,$){var M;if(!A)return k;if(typeof A=="string"){var q=A.toLowerCase();T[q]&&(M=q),S&&(T[q]=S,M=q);var Y=A.split("-");if(!M&&Y.length>1)return B(Y[0])}else{var Z=A.name;T[Z]=A,M=Z}return!$&&M&&(k=M),M||!$&&k},O=function(B,A){if(D(B))return B.clone();var S=typeof A=="object"?A:{};return S.date=B,S.args=arguments,new N(S)},E=v;E.l=I,E.i=D,E.w=function(B,A){return O(B,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=(function(){function B(S){this.$L=I(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[L]=!0}var A=B.prototype;return A.parse=function(S){this.$d=(function($){var M=$.date,q=$.utc;if(M===null)return new Date(NaN);if(E.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var Y=M.match(y);if(Y){var Z=Y[2]-1||0,et=(Y[7]||"0").substring(0,3);return q?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,et)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,et)}}return new Date(M)})(S),this.init()},A.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},A.$utils=function(){return E},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(S,$){var M=O(S);return this.startOf($)<=M&&M<=this.endOf($)},A.isAfter=function(S,$){return O(S)<this.startOf($)},A.isBefore=function(S,$){return this.endOf($)<O(S)},A.$g=function(S,$,M){return E.u(S)?this[$]:this.set(M,S)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(S,$){var M=this,q=!!E.u($)||$,Y=E.p(S),Z=function(ne,xt){var ae=E.w(M.$u?Date.UTC(M.$y,xt,ne):new Date(M.$y,xt,ne),M);return q?ae:ae.endOf(c)},et=function(ne,xt){return E.w(M.toDate()[ne].apply(M.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(xt)),M)},K=this.$W,ot=this.$M,at=this.$D,Ct="set"+(this.$u?"UTC":"");switch(Y){case f:return q?Z(1,0):Z(31,11);case u:return q?Z(1,ot):Z(0,ot+1);case h:var bt=this.$locale().weekStart||0,At=(K<bt?K+7:K)-bt;return Z(q?at-At:at+(6-At),ot);case c:case g:return et(Ct+"Hours",0);case l:return et(Ct+"Minutes",1);case o:return et(Ct+"Seconds",2);case s:return et(Ct+"Milliseconds",3);default:return this.clone()}},A.endOf=function(S){return this.startOf(S,!1)},A.$set=function(S,$){var M,q=E.p(S),Y="set"+(this.$u?"UTC":""),Z=(M={},M[c]=Y+"Date",M[g]=Y+"Date",M[u]=Y+"Month",M[f]=Y+"FullYear",M[l]=Y+"Hours",M[o]=Y+"Minutes",M[s]=Y+"Seconds",M[a]=Y+"Milliseconds",M)[q],et=q===c?this.$D+($-this.$W):$;if(q===u||q===f){var K=this.clone().set(g,1);K.$d[Z](et),K.init(),this.$d=K.set(g,Math.min(this.$D,K.daysInMonth())).$d}else Z&&this.$d[Z](et);return this.init(),this},A.set=function(S,$){return this.clone().$set(S,$)},A.get=function(S){return this[E.p(S)]()},A.add=function(S,$){var M,q=this;S=Number(S);var Y=E.p($),Z=function(ot){var at=O(q);return E.w(at.date(at.date()+Math.round(ot*S)),q)};if(Y===u)return this.set(u,this.$M+S);if(Y===f)return this.set(f,this.$y+S);if(Y===c)return Z(1);if(Y===h)return Z(7);var et=(M={},M[o]=i,M[l]=n,M[s]=r,M)[Y]||1,K=this.$d.getTime()+S*et;return E.w(K,this)},A.subtract=function(S,$){return this.add(-1*S,$)},A.format=function(S){var $=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var q=S||"YYYY-MM-DDTHH:mm:ssZ",Y=E.z(this),Z=this.$H,et=this.$m,K=this.$M,ot=M.weekdays,at=M.months,Ct=M.meridiem,bt=function(xt,ae,We,se){return xt&&(xt[ae]||xt($,q))||We[ae].slice(0,se)},At=function(xt){return E.s(Z%12||12,xt,"0")},ne=Ct||function(xt,ae,We){var se=xt<12?"AM":"PM";return We?se.toLowerCase():se};return q.replace(x,(function(xt,ae){return ae||(function(We){switch(We){case"YY":return String($.$y).slice(-2);case"YYYY":return E.s($.$y,4,"0");case"M":return K+1;case"MM":return E.s(K+1,2,"0");case"MMM":return bt(M.monthsShort,K,at,3);case"MMMM":return bt(at,K);case"D":return $.$D;case"DD":return E.s($.$D,2,"0");case"d":return String($.$W);case"dd":return bt(M.weekdaysMin,$.$W,ot,2);case"ddd":return bt(M.weekdaysShort,$.$W,ot,3);case"dddd":return ot[$.$W];case"H":return String(Z);case"HH":return E.s(Z,2,"0");case"h":return At(1);case"hh":return At(2);case"a":return ne(Z,et,!0);case"A":return ne(Z,et,!1);case"m":return String(et);case"mm":return E.s(et,2,"0");case"s":return String($.$s);case"ss":return E.s($.$s,2,"0");case"SSS":return E.s($.$ms,3,"0");case"Z":return Y}return null})(xt)||Y.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(S,$,M){var q,Y=this,Z=E.p($),et=O(S),K=(et.utcOffset()-this.utcOffset())*i,ot=this-et,at=function(){return E.m(Y,et)};switch(Z){case f:q=at()/12;break;case u:q=at();break;case d:q=at()/3;break;case h:q=(ot-K)/6048e5;break;case c:q=(ot-K)/864e5;break;case l:q=ot/n;break;case o:q=ot/i;break;case s:q=ot/r;break;default:q=ot}return M?q:E.a(q)},A.daysInMonth=function(){return this.endOf(u).$D},A.$locale=function(){return T[this.$L]},A.locale=function(S,$){if(!S)return this.$L;var M=this.clone(),q=I(S,$,!0);return q&&(M.$L=q),M},A.clone=function(){return E.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},B})(),R=N.prototype;return O.prototype=R,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",u],["$y",f],["$D",g]].forEach((function(B){R[B[1]]=function(A){return this.$g(A,B[0],B[1])}})),O.extend=function(B,A){return B.$i||(B(A,N,O),B.$i=!0),O},O.locale=I,O.isDayjs=D,O.unix=function(B){return O(1e3*B)},O.en=T[k],O.Ls=T,O.p={},O}))})(Tn)),Tn.exports}var o0=s0();const l0=n0(o0);var Th=Object.defineProperty,p=(e,t)=>Th(e,"name",{value:t,configurable:!0}),c0=(e,t)=>{for(var r in t)Th(e,r,{get:t[r],enumerable:!0})},Be={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},F={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},So=p(function(e="fatal"){let t=Be.fatal;typeof e=="string"?e.toLowerCase()in Be&&(t=Be[e]):typeof e=="number"&&(t=e),F.trace=()=>{},F.debug=()=>{},F.info=()=>{},F.warn=()=>{},F.error=()=>{},F.fatal=()=>{},t<=Be.fatal&&(F.fatal=console.error?console.error.bind(console,te("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",te("FATAL"))),t<=Be.error&&(F.error=console.error?console.error.bind(console,te("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",te("ERROR"))),t<=Be.warn&&(F.warn=console.warn?console.warn.bind(console,te("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",te("WARN"))),t<=Be.info&&(F.info=console.info?console.info.bind(console,te("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",te("INFO"))),t<=Be.debug&&(F.debug=console.debug?console.debug.bind(console,te("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("DEBUG"))),t<=Be.trace&&(F.trace=console.debug?console.debug.bind(console,te("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("TRACE")))},"setLogLevel"),te=p(e=>`%c${l0().format("ss.SSS")} : ${e} : `,"format");const Ln={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Ln.hue2rgb(a,n,e+1/3)*255;case"g":return Ln.hue2rgb(a,n,e)*255;case"b":return Ln.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},h0={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},u0={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},st={channel:Ln,lang:h0,unit:u0},qe={};for(let e=0;e<=255;e++)qe[e]=st.unit.dec2hex(e);const Ft={ALL:0,RGB:1,HSL:2};class f0{constructor(){this.type=Ft.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ft.ALL}is(t){return this.type===t}}class d0{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new f0}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ft.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=st.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=st.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=st.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=st.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=st.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=st.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ft.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ft.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ft.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ft.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ft.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ft.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const wa=new d0({r:0,g:0,b:0,a:0},"transparent"),Fr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Fr.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,c=a?0:-1,h=s?255:15;return wa.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:a?(i&h)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${qe[Math.round(t)]}${qe[Math.round(r)]}${qe[Math.round(i)]}${qe[Math.round(n*255)]}`:`#${qe[Math.round(t)]}${qe[Math.round(r)]}${qe[Math.round(i)]}`}},sr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(sr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return st.channel.clamp.h(parseFloat(r)*.9);case"rad":return st.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return st.channel.clamp.h(parseFloat(r)*360)}}return st.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(sr.re);if(!r)return;const[,i,n,a,s,o]=r;return wa.set({h:sr._hue2deg(i),s:st.channel.clamp.s(parseFloat(n)),l:st.channel.clamp.l(parseFloat(a)),a:s?st.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${st.lang.round(t)}, ${st.lang.round(r)}%, ${st.lang.round(i)}%, ${n})`:`hsl(${st.lang.round(t)}, ${st.lang.round(r)}%, ${st.lang.round(i)}%)`}},Li={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Li.colors[e];if(t)return Fr.parse(t)},stringify:e=>{const t=Fr.stringify(e);for(const r in Li.colors)if(Li.colors[r]===t)return r}},bi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(bi.re);if(!r)return;const[,i,n,a,s,o,l,c,h]=r;return wa.set({r:st.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:st.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:st.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?st.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${st.lang.round(t)}, ${st.lang.round(r)}, ${st.lang.round(i)}, ${st.lang.round(n)})`:`rgb(${st.lang.round(t)}, ${st.lang.round(r)}, ${st.lang.round(i)})`}},we={format:{keyword:Li,hex:Fr,rgb:bi,rgba:bi,hsl:sr,hsla:sr},parse:e=>{if(typeof e!="string")return e;const t=Fr.parse(e)||bi.parse(e)||sr.parse(e)||Li.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ft.HSL)||e.data.r===void 0?sr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?bi.stringify(e):Fr.stringify(e)},Lh=(e,t)=>{const r=we.parse(e);for(const i in t)r[i]=st.channel.clamp[i](t[i]);return we.stringify(r)},Ai=(e,t,r=0,i=1)=>{if(typeof e!="number")return Lh(e,{a:t});const n=wa.set({r:st.channel.clamp.r(e),g:st.channel.clamp.g(t),b:st.channel.clamp.b(r),a:st.channel.clamp.a(i)});return we.stringify(n)},p0=e=>{const{r:t,g:r,b:i}=we.parse(e),n=.2126*st.channel.toLinear(t)+.7152*st.channel.toLinear(r)+.0722*st.channel.toLinear(i);return st.lang.round(n)},g0=e=>p0(e)>=.5,Vi=e=>!g0(e),Ah=(e,t,r)=>{const i=we.parse(e),n=i[t],a=st.channel.clamp[t](n+r);return n!==a&&(i[t]=a),we.stringify(i)},H=(e,t)=>Ah(e,"l",t),tt=(e,t)=>Ah(e,"l",-t),w=(e,t)=>{const r=we.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return Lh(e,i)},m0=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=we.parse(e),{r:o,g:l,b:c,a:h}=we.parse(t),u=r/100,d=u*2-1,f=s-h,m=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,y=1-m,x=i*m+o*y,b=n*m+l*y,C=a*m+c*y,v=s*u+h*(1-u);return Ai(x,b,C,v)},z=(e,t=100)=>{const r=we.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,m0(r,e,t)};const{entries:Bh,setPrototypeOf:Yl,isFrozen:y0,getPrototypeOf:x0,getOwnPropertyDescriptor:b0}=Object;let{freeze:jt,seal:re,create:An}=Object,{apply:Ss,construct:Ts}=typeof Reflect<"u"&&Reflect;jt||(jt=function(t){return t});re||(re=function(t){return t});Ss||(Ss=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});Ts||(Ts=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const pn=Yt(Array.prototype.forEach),_0=Yt(Array.prototype.lastIndexOf),Ul=Yt(Array.prototype.pop),si=Yt(Array.prototype.push),C0=Yt(Array.prototype.splice),Bn=Yt(String.prototype.toLowerCase),ns=Yt(String.prototype.toString),as=Yt(String.prototype.match),oi=Yt(String.prototype.replace),w0=Yt(String.prototype.indexOf),k0=Yt(String.prototype.trim),Qt=Yt(Object.prototype.hasOwnProperty),zt=Yt(RegExp.prototype.test),li=v0(TypeError);function Yt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Ss(e,t,i)}}function v0(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ts(e,r)}}function ct(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bn;Yl&&Yl(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(y0(t)||(t[i]=a),n=a)}e[n]=!0}return e}function S0(e){for(let t=0;t<e.length;t++)Qt(e,t)||(e[t]=null);return e}function ye(e){const t=An(null);for(const[r,i]of Bh(e))Qt(e,r)&&(Array.isArray(i)?t[r]=S0(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=ye(i):t[r]=i);return t}function ci(e,t){for(;e!==null;){const i=b0(e,t);if(i){if(i.get)return Yt(i.get);if(typeof i.value=="function")return Yt(i.value)}e=x0(e)}function r(){return null}return r}const Gl=jt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ss=jt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),os=jt(["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"]),T0=jt(["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"]),ls=jt(["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"]),L0=jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vl=jt(["#text"]),Xl=jt(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cs=jt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zl=jt(["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"]),gn=jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A0=re(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B0=re(/<%[\w\W]*|[\w\W]*%>/gm),M0=re(/\$\{[\w\W]*/gm),E0=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),$0=re(/^aria-[\-\w]+$/),Mh=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F0=re(/^(?:\w+script|data):/i),D0=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Eh=re(/^html$/i),O0=re(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kl=Object.freeze({__proto__:null,ARIA_ATTR:$0,ATTR_WHITESPACE:D0,CUSTOM_ELEMENT:O0,DATA_ATTR:E0,DOCTYPE_NAME:Eh,ERB_EXPR:B0,IS_ALLOWED_URI:Mh,IS_SCRIPT_OR_DATA:F0,MUSTACHE_EXPR:A0,TMPLIT_EXPR:M0});const hi={element:1,text:3,progressingInstruction:7,comment:8,document:9},R0=function(){return typeof window>"u"?null:window},I0=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ql=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function $h(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R0();const t=J=>$h(J);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==hi.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:f}=e,g=l.prototype,m=ci(g,"cloneNode"),y=ci(g,"remove"),x=ci(g,"nextSibling"),b=ci(g,"childNodes"),C=ci(g,"parentNode");if(typeof s=="function"){const J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}let v,k="";const{implementation:T,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:I}=r,{importNode:O}=i;let E=Ql();t.isSupported=typeof Bh=="function"&&typeof C=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:A,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:q}=Kl;let{IS_ALLOWED_URI:Y}=Kl,Z=null;const et=ct({},[...Gl,...ss,...os,...ls,...Vl]);let K=null;const ot=ct({},[...Xl,...cs,...Zl,...gn]);let at=Object.seal(An(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}})),Ct=null,bt=null;const At=Object.seal(An(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,xt=!0,ae=!1,We=!0,se=!1,on=!0,tr=!1,Va=!1,Xa=!1,kr=!1,ln=!1,cn=!1,Ll=!0,Al=!1;const Zm="user-content-";let Za=!0,ni=!1,vr={},ge=null;const Ka=ct({},["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 Bl=null;const Ml=ct({},["audio","video","img","source","image","track"]);let Qa=null;const El=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),hn="http://www.w3.org/1998/Math/MathML",un="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let Sr=Te,Ja=!1,ts=null;const Km=ct({},[hn,un,Te],ns);let fn=ct({},["mi","mo","mn","ms","mtext"]),dn=ct({},["annotation-xml"]);const Qm=ct({},["title","style","font","a","script"]);let ai=null;const Jm=["application/xhtml+xml","text/html"],t0="text/html";let vt=null,Tr=null;const e0=r.createElement("form"),$l=function(_){return _ instanceof RegExp||_ instanceof Function},es=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Tr&&Tr===_)){if((!_||typeof _!="object")&&(_={}),_=ye(_),ai=Jm.indexOf(_.PARSER_MEDIA_TYPE)===-1?t0:_.PARSER_MEDIA_TYPE,vt=ai==="application/xhtml+xml"?ns:Bn,Z=Qt(_,"ALLOWED_TAGS")?ct({},_.ALLOWED_TAGS,vt):et,K=Qt(_,"ALLOWED_ATTR")?ct({},_.ALLOWED_ATTR,vt):ot,ts=Qt(_,"ALLOWED_NAMESPACES")?ct({},_.ALLOWED_NAMESPACES,ns):Km,Qa=Qt(_,"ADD_URI_SAFE_ATTR")?ct(ye(El),_.ADD_URI_SAFE_ATTR,vt):El,Bl=Qt(_,"ADD_DATA_URI_TAGS")?ct(ye(Ml),_.ADD_DATA_URI_TAGS,vt):Ml,ge=Qt(_,"FORBID_CONTENTS")?ct({},_.FORBID_CONTENTS,vt):Ka,Ct=Qt(_,"FORBID_TAGS")?ct({},_.FORBID_TAGS,vt):ye({}),bt=Qt(_,"FORBID_ATTR")?ct({},_.FORBID_ATTR,vt):ye({}),vr=Qt(_,"USE_PROFILES")?_.USE_PROFILES:!1,ne=_.ALLOW_ARIA_ATTR!==!1,xt=_.ALLOW_DATA_ATTR!==!1,ae=_.ALLOW_UNKNOWN_PROTOCOLS||!1,We=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=_.SAFE_FOR_TEMPLATES||!1,on=_.SAFE_FOR_XML!==!1,tr=_.WHOLE_DOCUMENT||!1,kr=_.RETURN_DOM||!1,ln=_.RETURN_DOM_FRAGMENT||!1,cn=_.RETURN_TRUSTED_TYPE||!1,Xa=_.FORCE_BODY||!1,Ll=_.SANITIZE_DOM!==!1,Al=_.SANITIZE_NAMED_PROPS||!1,Za=_.KEEP_CONTENT!==!1,ni=_.IN_PLACE||!1,Y=_.ALLOWED_URI_REGEXP||Mh,Sr=_.NAMESPACE||Te,fn=_.MATHML_TEXT_INTEGRATION_POINTS||fn,dn=_.HTML_INTEGRATION_POINTS||dn,at=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&$l(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(at.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&$l(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(at.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(at.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(xt=!1),ln&&(kr=!0),vr&&(Z=ct({},Vl),K=An(null),vr.html===!0&&(ct(Z,Gl),ct(K,Xl)),vr.svg===!0&&(ct(Z,ss),ct(K,cs),ct(K,gn)),vr.svgFilters===!0&&(ct(Z,os),ct(K,cs),ct(K,gn)),vr.mathMl===!0&&(ct(Z,ls),ct(K,Zl),ct(K,gn))),Qt(_,"ADD_TAGS")||(At.tagCheck=null),Qt(_,"ADD_ATTR")||(At.attributeCheck=null),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?At.tagCheck=_.ADD_TAGS:(Z===et&&(Z=ye(Z)),ct(Z,_.ADD_TAGS,vt))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?At.attributeCheck=_.ADD_ATTR:(K===ot&&(K=ye(K)),ct(K,_.ADD_ATTR,vt))),_.ADD_URI_SAFE_ATTR&&ct(Qa,_.ADD_URI_SAFE_ATTR,vt),_.FORBID_CONTENTS&&(ge===Ka&&(ge=ye(ge)),ct(ge,_.FORBID_CONTENTS,vt)),_.ADD_FORBID_CONTENTS&&(ge===Ka&&(ge=ye(ge)),ct(ge,_.ADD_FORBID_CONTENTS,vt)),Za&&(Z["#text"]=!0),tr&&ct(Z,["html","head","body"]),Z.table&&(ct(Z,["tbody"]),delete Ct.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=_.TRUSTED_TYPES_POLICY,k=v.createHTML("")}else v===void 0&&(v=I0(f,n)),v!==null&&typeof k=="string"&&(k=v.createHTML(""));jt&&jt(_),Tr=_}},Fl=ct({},[...ss,...os,...T0]),Dl=ct({},[...ls,...L0]),r0=function(_){let P=C(_);(!P||!P.tagName)&&(P={namespaceURI:Sr,tagName:"template"});const V=Bn(_.tagName),mt=Bn(P.tagName);return ts[_.namespaceURI]?_.namespaceURI===un?P.namespaceURI===Te?V==="svg":P.namespaceURI===hn?V==="svg"&&(mt==="annotation-xml"||fn[mt]):!!Fl[V]:_.namespaceURI===hn?P.namespaceURI===Te?V==="math":P.namespaceURI===un?V==="math"&&dn[mt]:!!Dl[V]:_.namespaceURI===Te?P.namespaceURI===un&&!dn[mt]||P.namespaceURI===hn&&!fn[mt]?!1:!Dl[V]&&(Qm[V]||!Fl[V]):!!(ai==="application/xhtml+xml"&&ts[_.namespaceURI]):!1},me=function(_){si(t.removed,{element:_});try{C(_).removeChild(_)}catch{y(_)}},er=function(_,P){try{si(t.removed,{attribute:P.getAttributeNode(_),from:P})}catch{si(t.removed,{attribute:null,from:P})}if(P.removeAttribute(_),_==="is")if(kr||ln)try{me(P)}catch{}else try{P.setAttribute(_,"")}catch{}},Ol=function(_){let P=null,V=null;if(Xa)_="<remove></remove>"+_;else{const wt=as(_,/^[\r\n\t ]+/);V=wt&&wt[0]}ai==="application/xhtml+xml"&&Sr===Te&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const mt=v?v.createHTML(_):_;if(Sr===Te)try{P=new d().parseFromString(mt,ai)}catch{}if(!P||!P.documentElement){P=T.createDocument(Sr,"template",null);try{P.documentElement.innerHTML=Ja?k:mt}catch{}}const $t=P.body||P.documentElement;return _&&V&&$t.insertBefore(r.createTextNode(V),$t.childNodes[0]||null),Sr===Te?I.call(P,tr?"html":"body")[0]:tr?P.documentElement:$t},Rl=function(_){return L.call(_.ownerDocument||_,_,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},rs=function(_){return _ instanceof u&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof h)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},Il=function(_){return typeof o=="function"&&_ instanceof o};function Le(J,_,P){pn(J,V=>{V.call(t,_,P,Tr)})}const Pl=function(_){let P=null;if(Le(E.beforeSanitizeElements,_,null),rs(_))return me(_),!0;const V=vt(_.nodeName);if(Le(E.uponSanitizeElement,_,{tagName:V,allowedTags:Z}),on&&_.hasChildNodes()&&!Il(_.firstElementChild)&&zt(/<[/\w!]/g,_.innerHTML)&&zt(/<[/\w!]/g,_.textContent)||_.nodeType===hi.progressingInstruction||on&&_.nodeType===hi.comment&&zt(/<[/\w]/g,_.data))return me(_),!0;if(!(At.tagCheck instanceof Function&&At.tagCheck(V))&&(!Z[V]||Ct[V])){if(!Ct[V]&&zl(V)&&(at.tagNameCheck instanceof RegExp&&zt(at.tagNameCheck,V)||at.tagNameCheck instanceof Function&&at.tagNameCheck(V)))return!1;if(Za&&!ge[V]){const mt=C(_)||_.parentNode,$t=b(_)||_.childNodes;if($t&&mt){const wt=$t.length;for(let Ut=wt-1;Ut>=0;--Ut){const Ae=m($t[Ut],!0);Ae.__removalCount=(_.__removalCount||0)+1,mt.insertBefore(Ae,x(_))}}}return me(_),!0}return _ instanceof l&&!r0(_)||(V==="noscript"||V==="noembed"||V==="noframes")&&zt(/<\/no(script|embed|frames)/i,_.innerHTML)?(me(_),!0):(se&&_.nodeType===hi.text&&(P=_.textContent,pn([N,R,B],mt=>{P=oi(P,mt," ")}),_.textContent!==P&&(si(t.removed,{element:_.cloneNode()}),_.textContent=P)),Le(E.afterSanitizeElements,_,null),!1)},Nl=function(_,P,V){if(bt[P]||Ll&&(P==="id"||P==="name")&&(V in r||V in e0))return!1;if(!(xt&&!bt[P]&&zt(A,P))){if(!(ne&&zt(S,P))){if(!(At.attributeCheck instanceof Function&&At.attributeCheck(P,_))){if(!K[P]||bt[P]){if(!(zl(_)&&(at.tagNameCheck instanceof RegExp&&zt(at.tagNameCheck,_)||at.tagNameCheck instanceof Function&&at.tagNameCheck(_))&&(at.attributeNameCheck instanceof RegExp&&zt(at.attributeNameCheck,P)||at.attributeNameCheck instanceof Function&&at.attributeNameCheck(P,_))||P==="is"&&at.allowCustomizedBuiltInElements&&(at.tagNameCheck instanceof RegExp&&zt(at.tagNameCheck,V)||at.tagNameCheck instanceof Function&&at.tagNameCheck(V))))return!1}else if(!Qa[P]){if(!zt(Y,oi(V,M,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&_!=="script"&&w0(V,"data:")===0&&Bl[_])){if(!(ae&&!zt($,oi(V,M,"")))){if(V)return!1}}}}}}}return!0},zl=function(_){return _!=="annotation-xml"&&as(_,q)},Wl=function(_){Le(E.beforeSanitizeAttributes,_,null);const{attributes:P}=_;if(!P||rs(_))return;const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let mt=P.length;for(;mt--;){const $t=P[mt],{name:wt,namespaceURI:Ut,value:Ae}=$t,Lr=vt(wt),is=Ae;let Bt=wt==="value"?is:k0(is);if(V.attrName=Lr,V.attrValue=Bt,V.keepAttr=!0,V.forceKeepAttr=void 0,Le(E.uponSanitizeAttribute,_,V),Bt=V.attrValue,Al&&(Lr==="id"||Lr==="name")&&(er(wt,_),Bt=Zm+Bt),on&&zt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){er(wt,_);continue}if(Lr==="attributename"&&as(Bt,"href")){er(wt,_);continue}if(V.forceKeepAttr)continue;if(!V.keepAttr){er(wt,_);continue}if(!We&&zt(/\/>/i,Bt)){er(wt,_);continue}se&&pn([N,R,B],Hl=>{Bt=oi(Bt,Hl," ")});const ql=vt(_.nodeName);if(!Nl(ql,Lr,Bt)){er(wt,_);continue}if(v&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ut)switch(f.getAttributeType(ql,Lr)){case"TrustedHTML":{Bt=v.createHTML(Bt);break}case"TrustedScriptURL":{Bt=v.createScriptURL(Bt);break}}if(Bt!==is)try{Ut?_.setAttributeNS(Ut,wt,Bt):_.setAttribute(wt,Bt),rs(_)?me(_):Ul(t.removed)}catch{er(wt,_)}}Le(E.afterSanitizeAttributes,_,null)},i0=function J(_){let P=null;const V=Rl(_);for(Le(E.beforeSanitizeShadowDOM,_,null);P=V.nextNode();)Le(E.uponSanitizeShadowNode,P,null),Pl(P),Wl(P),P.content instanceof a&&J(P.content);Le(E.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(J){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=null,V=null,mt=null,$t=null;if(Ja=!J,Ja&&(J="<!-->"),typeof J!="string"&&!Il(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw li("dirty is not a string, aborting")}else throw li("toString is not a function");if(!t.isSupported)return J;if(Va||es(_),t.removed=[],typeof J=="string"&&(ni=!1),ni){if(J.nodeName){const Ae=vt(J.nodeName);if(!Z[Ae]||Ct[Ae])throw li("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof o)P=Ol("<!---->"),V=P.ownerDocument.importNode(J,!0),V.nodeType===hi.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?P=V:P.appendChild(V);else{if(!kr&&!se&&!tr&&J.indexOf("<")===-1)return v&&cn?v.createHTML(J):J;if(P=Ol(J),!P)return kr?null:cn?k:""}P&&Xa&&me(P.firstChild);const wt=Rl(ni?J:P);for(;mt=wt.nextNode();)Pl(mt),Wl(mt),mt.content instanceof a&&i0(mt.content);if(ni)return J;if(kr){if(ln)for($t=D.call(P.ownerDocument);P.firstChild;)$t.appendChild(P.firstChild);else $t=P;return(K.shadowroot||K.shadowrootmode)&&($t=O.call(i,$t,!0)),$t}let Ut=tr?P.outerHTML:P.innerHTML;return tr&&Z["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&zt(Eh,P.ownerDocument.doctype.name)&&(Ut="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KLK3FWXG-h4F9WtDQ.js","assets/graph-C0TauvuO.js","assets/_baseUniq-C1WySGZQ.js","assets/layout-IeRzBrUX.js","assets/_basePickBy-B-GcvGxW.js","assets/clone-BbBu6MzK.js","assets/main-Csj9i19C.js","assets/cose-bilkent-S5V4N54A-CaD0EGPJ.js","assets/cytoscape.esm-5J0xJHOV.js","assets/c4Diagram-IC4MRINW-DsGaAPtm.js","assets/chunk-JSJVCQXG-CVkDw9ls.js","assets/flowDiagram-PKNHOUZH-CXN3pvSW.js","assets/chunk-FMBD7UC4-CEdYlBOF.js","assets/chunk-55IACEB6-zjp4uUiZ.js","assets/chunk-KX2RTZJC--1vKv-mr.js","assets/channel-Clrp6Lr4.js","assets/erDiagram-INFDFZHY-0U5A-RF0.js","assets/gitGraphDiagram-K3NZZRJ6-Bo-Jjy7v.js","assets/chunk-4BX2VUAB-BQdq93Vq.js","assets/chunk-QZHKN3VN-BizWJuB4.js","assets/treemap-KZPCXAKY-mKcaMbv9.js","assets/ganttDiagram-A5KZAMGK-DlovlSO7.js","assets/linear-DEzVUeiK.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-LFFYTUFH-BbvPzztn.js","assets/pieDiagram-SKSYHLDU-DDVqU_2Q.js","assets/arc-C16C7aa3.js","assets/ordinal-BENe2yWM.js","assets/quadrantDiagram-337W2JSQ-BeUxMqle.js","assets/xychartDiagram-JWTSCODW-DSAwWbBw.js","assets/requirementDiagram-Z7DCOOCP-CpzdlyEd.js","assets/sequenceDiagram-2WXFIKYE-DarofLka.js","assets/classDiagram-VBA2DB6C-Beq6_jEy.js","assets/chunk-WL4C6EOR-6lLYa9R1.js","assets/classDiagram-v2-RAHNMMFH-Beq6_jEy.js","assets/stateDiagram-RAJIS63D-CEio2h-7.js","assets/chunk-NQ4KR5QH-Cpo-W18l.js","assets/stateDiagram-v2-FVOUBMTO-CbfK0_BD.js","assets/journeyDiagram-4ABVD52K-D9NP_vvu.js","assets/timeline-definition-YZTLITO2-By_Wk6uc.js","assets/mindmap-definition-YRQLILUH-DgyN4Ft-.js","assets/kanban-definition-K7BYSVSG-X-u_nWxK.js","assets/sankeyDiagram-WA2Y5GQK-CmSWF6XU.js","assets/diagram-P4PSJMXO-DdPwwhHR.js","assets/diagram-IFDJBPK2-C5oMubv0.js","assets/blockDiagram-WCTKOSBZ-Bs8e58Or.js","assets/architectureDiagram-2XIMDMQ5-DgSSDH9Z.js","assets/ishikawaDiagram-PHBUUO56-DKCMONMO.js","assets/vennDiagram-LZ73GAT5-Dx_Fh7nH.js","assets/diagram-E7M64L7V-CBUSWzH5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{A as n0,_ as ut}from"./main-Csj9i19C.js";var Tn={exports:{}},a0=Tn.exports,jl;function s0(){return jl||(jl=1,(function(e,t){(function(r,i){e.exports=i()})(a0,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",u="month",d="quarter",f="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,b={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(B){var A=["th","st","nd","rd"],S=B%100;return"["+B+(A[(S-20)%10]||A[S]||A[0])+"]"}},C=function(B,A,S){var $=String(B);return!$||$.length>=A?B:""+Array(A+1-$.length).join(S)+B},v={s:C,z:function(B){var A=-B.utcOffset(),S=Math.abs(A),$=Math.floor(S/60),M=S%60;return(A<=0?"+":"-")+C($,2,"0")+":"+C(M,2,"0")},m:function B(A,S){if(A.date()<S.date())return-B(S,A);var $=12*(S.year()-A.year())+(S.month()-A.month()),M=A.clone().add($,u),q=S-M<0,Y=A.clone().add($+(q?-1:1),u);return+(-($+(S-M)/(q?M-Y:Y-M))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:h,d:c,D:g,h:l,m:o,s,ms:a,Q:d}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},k="en",T={};T[k]=b;var L="$isDayjsObject",D=function(B){return B instanceof N||!(!B||!B[L])},I=function B(A,S,$){var M;if(!A)return k;if(typeof A=="string"){var q=A.toLowerCase();T[q]&&(M=q),S&&(T[q]=S,M=q);var Y=A.split("-");if(!M&&Y.length>1)return B(Y[0])}else{var Z=A.name;T[Z]=A,M=Z}return!$&&M&&(k=M),M||!$&&k},O=function(B,A){if(D(B))return B.clone();var S=typeof A=="object"?A:{};return S.date=B,S.args=arguments,new N(S)},E=v;E.l=I,E.i=D,E.w=function(B,A){return O(B,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=(function(){function B(S){this.$L=I(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[L]=!0}var A=B.prototype;return A.parse=function(S){this.$d=(function($){var M=$.date,q=$.utc;if(M===null)return new Date(NaN);if(E.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var Y=M.match(y);if(Y){var Z=Y[2]-1||0,et=(Y[7]||"0").substring(0,3);return q?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,et)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,et)}}return new Date(M)})(S),this.init()},A.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},A.$utils=function(){return E},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(S,$){var M=O(S);return this.startOf($)<=M&&M<=this.endOf($)},A.isAfter=function(S,$){return O(S)<this.startOf($)},A.isBefore=function(S,$){return this.endOf($)<O(S)},A.$g=function(S,$,M){return E.u(S)?this[$]:this.set(M,S)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(S,$){var M=this,q=!!E.u($)||$,Y=E.p(S),Z=function(ne,xt){var ae=E.w(M.$u?Date.UTC(M.$y,xt,ne):new Date(M.$y,xt,ne),M);return q?ae:ae.endOf(c)},et=function(ne,xt){return E.w(M.toDate()[ne].apply(M.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(xt)),M)},K=this.$W,ot=this.$M,at=this.$D,Ct="set"+(this.$u?"UTC":"");switch(Y){case f:return q?Z(1,0):Z(31,11);case u:return q?Z(1,ot):Z(0,ot+1);case h:var bt=this.$locale().weekStart||0,At=(K<bt?K+7:K)-bt;return Z(q?at-At:at+(6-At),ot);case c:case g:return et(Ct+"Hours",0);case l:return et(Ct+"Minutes",1);case o:return et(Ct+"Seconds",2);case s:return et(Ct+"Milliseconds",3);default:return this.clone()}},A.endOf=function(S){return this.startOf(S,!1)},A.$set=function(S,$){var M,q=E.p(S),Y="set"+(this.$u?"UTC":""),Z=(M={},M[c]=Y+"Date",M[g]=Y+"Date",M[u]=Y+"Month",M[f]=Y+"FullYear",M[l]=Y+"Hours",M[o]=Y+"Minutes",M[s]=Y+"Seconds",M[a]=Y+"Milliseconds",M)[q],et=q===c?this.$D+($-this.$W):$;if(q===u||q===f){var K=this.clone().set(g,1);K.$d[Z](et),K.init(),this.$d=K.set(g,Math.min(this.$D,K.daysInMonth())).$d}else Z&&this.$d[Z](et);return this.init(),this},A.set=function(S,$){return this.clone().$set(S,$)},A.get=function(S){return this[E.p(S)]()},A.add=function(S,$){var M,q=this;S=Number(S);var Y=E.p($),Z=function(ot){var at=O(q);return E.w(at.date(at.date()+Math.round(ot*S)),q)};if(Y===u)return this.set(u,this.$M+S);if(Y===f)return this.set(f,this.$y+S);if(Y===c)return Z(1);if(Y===h)return Z(7);var et=(M={},M[o]=i,M[l]=n,M[s]=r,M)[Y]||1,K=this.$d.getTime()+S*et;return E.w(K,this)},A.subtract=function(S,$){return this.add(-1*S,$)},A.format=function(S){var $=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var q=S||"YYYY-MM-DDTHH:mm:ssZ",Y=E.z(this),Z=this.$H,et=this.$m,K=this.$M,ot=M.weekdays,at=M.months,Ct=M.meridiem,bt=function(xt,ae,We,se){return xt&&(xt[ae]||xt($,q))||We[ae].slice(0,se)},At=function(xt){return E.s(Z%12||12,xt,"0")},ne=Ct||function(xt,ae,We){var se=xt<12?"AM":"PM";return We?se.toLowerCase():se};return q.replace(x,(function(xt,ae){return ae||(function(We){switch(We){case"YY":return String($.$y).slice(-2);case"YYYY":return E.s($.$y,4,"0");case"M":return K+1;case"MM":return E.s(K+1,2,"0");case"MMM":return bt(M.monthsShort,K,at,3);case"MMMM":return bt(at,K);case"D":return $.$D;case"DD":return E.s($.$D,2,"0");case"d":return String($.$W);case"dd":return bt(M.weekdaysMin,$.$W,ot,2);case"ddd":return bt(M.weekdaysShort,$.$W,ot,3);case"dddd":return ot[$.$W];case"H":return String(Z);case"HH":return E.s(Z,2,"0");case"h":return At(1);case"hh":return At(2);case"a":return ne(Z,et,!0);case"A":return ne(Z,et,!1);case"m":return String(et);case"mm":return E.s(et,2,"0");case"s":return String($.$s);case"ss":return E.s($.$s,2,"0");case"SSS":return E.s($.$ms,3,"0");case"Z":return Y}return null})(xt)||Y.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(S,$,M){var q,Y=this,Z=E.p($),et=O(S),K=(et.utcOffset()-this.utcOffset())*i,ot=this-et,at=function(){return E.m(Y,et)};switch(Z){case f:q=at()/12;break;case u:q=at();break;case d:q=at()/3;break;case h:q=(ot-K)/6048e5;break;case c:q=(ot-K)/864e5;break;case l:q=ot/n;break;case o:q=ot/i;break;case s:q=ot/r;break;default:q=ot}return M?q:E.a(q)},A.daysInMonth=function(){return this.endOf(u).$D},A.$locale=function(){return T[this.$L]},A.locale=function(S,$){if(!S)return this.$L;var M=this.clone(),q=I(S,$,!0);return q&&(M.$L=q),M},A.clone=function(){return E.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},B})(),R=N.prototype;return O.prototype=R,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",u],["$y",f],["$D",g]].forEach((function(B){R[B[1]]=function(A){return this.$g(A,B[0],B[1])}})),O.extend=function(B,A){return B.$i||(B(A,N,O),B.$i=!0),O},O.locale=I,O.isDayjs=D,O.unix=function(B){return O(1e3*B)},O.en=T[k],O.Ls=T,O.p={},O}))})(Tn)),Tn.exports}var o0=s0();const l0=n0(o0);var Th=Object.defineProperty,p=(e,t)=>Th(e,"name",{value:t,configurable:!0}),c0=(e,t)=>{for(var r in t)Th(e,r,{get:t[r],enumerable:!0})},Be={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},F={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},So=p(function(e="fatal"){let t=Be.fatal;typeof e=="string"?e.toLowerCase()in Be&&(t=Be[e]):typeof e=="number"&&(t=e),F.trace=()=>{},F.debug=()=>{},F.info=()=>{},F.warn=()=>{},F.error=()=>{},F.fatal=()=>{},t<=Be.fatal&&(F.fatal=console.error?console.error.bind(console,te("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",te("FATAL"))),t<=Be.error&&(F.error=console.error?console.error.bind(console,te("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",te("ERROR"))),t<=Be.warn&&(F.warn=console.warn?console.warn.bind(console,te("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",te("WARN"))),t<=Be.info&&(F.info=console.info?console.info.bind(console,te("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",te("INFO"))),t<=Be.debug&&(F.debug=console.debug?console.debug.bind(console,te("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("DEBUG"))),t<=Be.trace&&(F.trace=console.debug?console.debug.bind(console,te("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",te("TRACE")))},"setLogLevel"),te=p(e=>`%c${l0().format("ss.SSS")} : ${e} : `,"format");const Ln={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Ln.hue2rgb(a,n,e+1/3)*255;case"g":return Ln.hue2rgb(a,n,e)*255;case"b":return Ln.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},h0={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},u0={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},st={channel:Ln,lang:h0,unit:u0},qe={};for(let e=0;e<=255;e++)qe[e]=st.unit.dec2hex(e);const Ft={ALL:0,RGB:1,HSL:2};class f0{constructor(){this.type=Ft.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ft.ALL}is(t){return this.type===t}}class d0{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new f0}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ft.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=st.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=st.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=st.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=st.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=st.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=st.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ft.HSL)&&r!==void 0?r:(this._ensureHSL(),st.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ft.RGB)&&r!==void 0?r:(this._ensureRGB(),st.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ft.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ft.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ft.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ft.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ft.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ft.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const wa=new d0({r:0,g:0,b:0,a:0},"transparent"),Fr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Fr.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,c=a?0:-1,h=s?255:15;return wa.set({r:(i>>l*(c+3)&h)*o,g:(i>>l*(c+2)&h)*o,b:(i>>l*(c+1)&h)*o,a:a?(i&h)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${qe[Math.round(t)]}${qe[Math.round(r)]}${qe[Math.round(i)]}${qe[Math.round(n*255)]}`:`#${qe[Math.round(t)]}${qe[Math.round(r)]}${qe[Math.round(i)]}`}},sr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(sr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return st.channel.clamp.h(parseFloat(r)*.9);case"rad":return st.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return st.channel.clamp.h(parseFloat(r)*360)}}return st.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(sr.re);if(!r)return;const[,i,n,a,s,o]=r;return wa.set({h:sr._hue2deg(i),s:st.channel.clamp.s(parseFloat(n)),l:st.channel.clamp.l(parseFloat(a)),a:s?st.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${st.lang.round(t)}, ${st.lang.round(r)}%, ${st.lang.round(i)}%, ${n})`:`hsl(${st.lang.round(t)}, ${st.lang.round(r)}%, ${st.lang.round(i)}%)`}},Li={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Li.colors[e];if(t)return Fr.parse(t)},stringify:e=>{const t=Fr.stringify(e);for(const r in Li.colors)if(Li.colors[r]===t)return r}},bi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(bi.re);if(!r)return;const[,i,n,a,s,o,l,c,h]=r;return wa.set({r:st.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:st.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:st.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?st.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${st.lang.round(t)}, ${st.lang.round(r)}, ${st.lang.round(i)}, ${st.lang.round(n)})`:`rgb(${st.lang.round(t)}, ${st.lang.round(r)}, ${st.lang.round(i)})`}},we={format:{keyword:Li,hex:Fr,rgb:bi,rgba:bi,hsl:sr,hsla:sr},parse:e=>{if(typeof e!="string")return e;const t=Fr.parse(e)||bi.parse(e)||sr.parse(e)||Li.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ft.HSL)||e.data.r===void 0?sr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?bi.stringify(e):Fr.stringify(e)},Lh=(e,t)=>{const r=we.parse(e);for(const i in t)r[i]=st.channel.clamp[i](t[i]);return we.stringify(r)},Ai=(e,t,r=0,i=1)=>{if(typeof e!="number")return Lh(e,{a:t});const n=wa.set({r:st.channel.clamp.r(e),g:st.channel.clamp.g(t),b:st.channel.clamp.b(r),a:st.channel.clamp.a(i)});return we.stringify(n)},p0=e=>{const{r:t,g:r,b:i}=we.parse(e),n=.2126*st.channel.toLinear(t)+.7152*st.channel.toLinear(r)+.0722*st.channel.toLinear(i);return st.lang.round(n)},g0=e=>p0(e)>=.5,Vi=e=>!g0(e),Ah=(e,t,r)=>{const i=we.parse(e),n=i[t],a=st.channel.clamp[t](n+r);return n!==a&&(i[t]=a),we.stringify(i)},H=(e,t)=>Ah(e,"l",t),tt=(e,t)=>Ah(e,"l",-t),w=(e,t)=>{const r=we.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return Lh(e,i)},m0=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=we.parse(e),{r:o,g:l,b:c,a:h}=we.parse(t),u=r/100,d=u*2-1,f=s-h,m=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,y=1-m,x=i*m+o*y,b=n*m+l*y,C=a*m+c*y,v=s*u+h*(1-u);return Ai(x,b,C,v)},z=(e,t=100)=>{const r=we.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,m0(r,e,t)};const{entries:Bh,setPrototypeOf:Yl,isFrozen:y0,getPrototypeOf:x0,getOwnPropertyDescriptor:b0}=Object;let{freeze:jt,seal:re,create:An}=Object,{apply:Ss,construct:Ts}=typeof Reflect<"u"&&Reflect;jt||(jt=function(t){return t});re||(re=function(t){return t});Ss||(Ss=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});Ts||(Ts=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const pn=Yt(Array.prototype.forEach),_0=Yt(Array.prototype.lastIndexOf),Ul=Yt(Array.prototype.pop),si=Yt(Array.prototype.push),C0=Yt(Array.prototype.splice),Bn=Yt(String.prototype.toLowerCase),ns=Yt(String.prototype.toString),as=Yt(String.prototype.match),oi=Yt(String.prototype.replace),w0=Yt(String.prototype.indexOf),k0=Yt(String.prototype.trim),Qt=Yt(Object.prototype.hasOwnProperty),zt=Yt(RegExp.prototype.test),li=v0(TypeError);function Yt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Ss(e,t,i)}}function v0(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ts(e,r)}}function ct(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bn;Yl&&Yl(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(y0(t)||(t[i]=a),n=a)}e[n]=!0}return e}function S0(e){for(let t=0;t<e.length;t++)Qt(e,t)||(e[t]=null);return e}function ye(e){const t=An(null);for(const[r,i]of Bh(e))Qt(e,r)&&(Array.isArray(i)?t[r]=S0(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=ye(i):t[r]=i);return t}function ci(e,t){for(;e!==null;){const i=b0(e,t);if(i){if(i.get)return Yt(i.get);if(typeof i.value=="function")return Yt(i.value)}e=x0(e)}function r(){return null}return r}const Gl=jt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ss=jt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),os=jt(["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"]),T0=jt(["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"]),ls=jt(["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"]),L0=jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vl=jt(["#text"]),Xl=jt(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cs=jt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zl=jt(["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"]),gn=jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A0=re(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B0=re(/<%[\w\W]*|[\w\W]*%>/gm),M0=re(/\$\{[\w\W]*/gm),E0=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),$0=re(/^aria-[\-\w]+$/),Mh=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F0=re(/^(?:\w+script|data):/i),D0=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Eh=re(/^html$/i),O0=re(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kl=Object.freeze({__proto__:null,ARIA_ATTR:$0,ATTR_WHITESPACE:D0,CUSTOM_ELEMENT:O0,DATA_ATTR:E0,DOCTYPE_NAME:Eh,ERB_EXPR:B0,IS_ALLOWED_URI:Mh,IS_SCRIPT_OR_DATA:F0,MUSTACHE_EXPR:A0,TMPLIT_EXPR:M0});const hi={element:1,text:3,progressingInstruction:7,comment:8,document:9},R0=function(){return typeof window>"u"?null:window},I0=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ql=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function $h(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R0();const t=J=>$h(J);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==hi.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:f}=e,g=l.prototype,m=ci(g,"cloneNode"),y=ci(g,"remove"),x=ci(g,"nextSibling"),b=ci(g,"childNodes"),C=ci(g,"parentNode");if(typeof s=="function"){const J=r.createElement("template");J.content&&J.content.ownerDocument&&(r=J.content.ownerDocument)}let v,k="";const{implementation:T,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:I}=r,{importNode:O}=i;let E=Ql();t.isSupported=typeof Bh=="function"&&typeof C=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:A,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:q}=Kl;let{IS_ALLOWED_URI:Y}=Kl,Z=null;const et=ct({},[...Gl,...ss,...os,...ls,...Vl]);let K=null;const ot=ct({},[...Xl,...cs,...Zl,...gn]);let at=Object.seal(An(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}})),Ct=null,bt=null;const At=Object.seal(An(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,xt=!0,ae=!1,We=!0,se=!1,on=!0,tr=!1,Va=!1,Xa=!1,kr=!1,ln=!1,cn=!1,Ll=!0,Al=!1;const Zm="user-content-";let Za=!0,ni=!1,vr={},ge=null;const Ka=ct({},["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 Bl=null;const Ml=ct({},["audio","video","img","source","image","track"]);let Qa=null;const El=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),hn="http://www.w3.org/1998/Math/MathML",un="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml";let Sr=Te,Ja=!1,ts=null;const Km=ct({},[hn,un,Te],ns);let fn=ct({},["mi","mo","mn","ms","mtext"]),dn=ct({},["annotation-xml"]);const Qm=ct({},["title","style","font","a","script"]);let ai=null;const Jm=["application/xhtml+xml","text/html"],t0="text/html";let vt=null,Tr=null;const e0=r.createElement("form"),$l=function(_){return _ instanceof RegExp||_ instanceof Function},es=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Tr&&Tr===_)){if((!_||typeof _!="object")&&(_={}),_=ye(_),ai=Jm.indexOf(_.PARSER_MEDIA_TYPE)===-1?t0:_.PARSER_MEDIA_TYPE,vt=ai==="application/xhtml+xml"?ns:Bn,Z=Qt(_,"ALLOWED_TAGS")?ct({},_.ALLOWED_TAGS,vt):et,K=Qt(_,"ALLOWED_ATTR")?ct({},_.ALLOWED_ATTR,vt):ot,ts=Qt(_,"ALLOWED_NAMESPACES")?ct({},_.ALLOWED_NAMESPACES,ns):Km,Qa=Qt(_,"ADD_URI_SAFE_ATTR")?ct(ye(El),_.ADD_URI_SAFE_ATTR,vt):El,Bl=Qt(_,"ADD_DATA_URI_TAGS")?ct(ye(Ml),_.ADD_DATA_URI_TAGS,vt):Ml,ge=Qt(_,"FORBID_CONTENTS")?ct({},_.FORBID_CONTENTS,vt):Ka,Ct=Qt(_,"FORBID_TAGS")?ct({},_.FORBID_TAGS,vt):ye({}),bt=Qt(_,"FORBID_ATTR")?ct({},_.FORBID_ATTR,vt):ye({}),vr=Qt(_,"USE_PROFILES")?_.USE_PROFILES:!1,ne=_.ALLOW_ARIA_ATTR!==!1,xt=_.ALLOW_DATA_ATTR!==!1,ae=_.ALLOW_UNKNOWN_PROTOCOLS||!1,We=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=_.SAFE_FOR_TEMPLATES||!1,on=_.SAFE_FOR_XML!==!1,tr=_.WHOLE_DOCUMENT||!1,kr=_.RETURN_DOM||!1,ln=_.RETURN_DOM_FRAGMENT||!1,cn=_.RETURN_TRUSTED_TYPE||!1,Xa=_.FORCE_BODY||!1,Ll=_.SANITIZE_DOM!==!1,Al=_.SANITIZE_NAMED_PROPS||!1,Za=_.KEEP_CONTENT!==!1,ni=_.IN_PLACE||!1,Y=_.ALLOWED_URI_REGEXP||Mh,Sr=_.NAMESPACE||Te,fn=_.MATHML_TEXT_INTEGRATION_POINTS||fn,dn=_.HTML_INTEGRATION_POINTS||dn,at=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&$l(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(at.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&$l(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(at.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(at.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(xt=!1),ln&&(kr=!0),vr&&(Z=ct({},Vl),K=An(null),vr.html===!0&&(ct(Z,Gl),ct(K,Xl)),vr.svg===!0&&(ct(Z,ss),ct(K,cs),ct(K,gn)),vr.svgFilters===!0&&(ct(Z,os),ct(K,cs),ct(K,gn)),vr.mathMl===!0&&(ct(Z,ls),ct(K,Zl),ct(K,gn))),Qt(_,"ADD_TAGS")||(At.tagCheck=null),Qt(_,"ADD_ATTR")||(At.attributeCheck=null),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?At.tagCheck=_.ADD_TAGS:(Z===et&&(Z=ye(Z)),ct(Z,_.ADD_TAGS,vt))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?At.attributeCheck=_.ADD_ATTR:(K===ot&&(K=ye(K)),ct(K,_.ADD_ATTR,vt))),_.ADD_URI_SAFE_ATTR&&ct(Qa,_.ADD_URI_SAFE_ATTR,vt),_.FORBID_CONTENTS&&(ge===Ka&&(ge=ye(ge)),ct(ge,_.FORBID_CONTENTS,vt)),_.ADD_FORBID_CONTENTS&&(ge===Ka&&(ge=ye(ge)),ct(ge,_.ADD_FORBID_CONTENTS,vt)),Za&&(Z["#text"]=!0),tr&&ct(Z,["html","head","body"]),Z.table&&(ct(Z,["tbody"]),delete Ct.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=_.TRUSTED_TYPES_POLICY,k=v.createHTML("")}else v===void 0&&(v=I0(f,n)),v!==null&&typeof k=="string"&&(k=v.createHTML(""));jt&&jt(_),Tr=_}},Fl=ct({},[...ss,...os,...T0]),Dl=ct({},[...ls,...L0]),r0=function(_){let P=C(_);(!P||!P.tagName)&&(P={namespaceURI:Sr,tagName:"template"});const V=Bn(_.tagName),mt=Bn(P.tagName);return ts[_.namespaceURI]?_.namespaceURI===un?P.namespaceURI===Te?V==="svg":P.namespaceURI===hn?V==="svg"&&(mt==="annotation-xml"||fn[mt]):!!Fl[V]:_.namespaceURI===hn?P.namespaceURI===Te?V==="math":P.namespaceURI===un?V==="math"&&dn[mt]:!!Dl[V]:_.namespaceURI===Te?P.namespaceURI===un&&!dn[mt]||P.namespaceURI===hn&&!fn[mt]?!1:!Dl[V]&&(Qm[V]||!Fl[V]):!!(ai==="application/xhtml+xml"&&ts[_.namespaceURI]):!1},me=function(_){si(t.removed,{element:_});try{C(_).removeChild(_)}catch{y(_)}},er=function(_,P){try{si(t.removed,{attribute:P.getAttributeNode(_),from:P})}catch{si(t.removed,{attribute:null,from:P})}if(P.removeAttribute(_),_==="is")if(kr||ln)try{me(P)}catch{}else try{P.setAttribute(_,"")}catch{}},Ol=function(_){let P=null,V=null;if(Xa)_="<remove></remove>"+_;else{const wt=as(_,/^[\r\n\t ]+/);V=wt&&wt[0]}ai==="application/xhtml+xml"&&Sr===Te&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const mt=v?v.createHTML(_):_;if(Sr===Te)try{P=new d().parseFromString(mt,ai)}catch{}if(!P||!P.documentElement){P=T.createDocument(Sr,"template",null);try{P.documentElement.innerHTML=Ja?k:mt}catch{}}const $t=P.body||P.documentElement;return _&&V&&$t.insertBefore(r.createTextNode(V),$t.childNodes[0]||null),Sr===Te?I.call(P,tr?"html":"body")[0]:tr?P.documentElement:$t},Rl=function(_){return L.call(_.ownerDocument||_,_,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},rs=function(_){return _ instanceof u&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof h)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},Il=function(_){return typeof o=="function"&&_ instanceof o};function Le(J,_,P){pn(J,V=>{V.call(t,_,P,Tr)})}const Pl=function(_){let P=null;if(Le(E.beforeSanitizeElements,_,null),rs(_))return me(_),!0;const V=vt(_.nodeName);if(Le(E.uponSanitizeElement,_,{tagName:V,allowedTags:Z}),on&&_.hasChildNodes()&&!Il(_.firstElementChild)&&zt(/<[/\w!]/g,_.innerHTML)&&zt(/<[/\w!]/g,_.textContent)||_.nodeType===hi.progressingInstruction||on&&_.nodeType===hi.comment&&zt(/<[/\w]/g,_.data))return me(_),!0;if(!(At.tagCheck instanceof Function&&At.tagCheck(V))&&(!Z[V]||Ct[V])){if(!Ct[V]&&zl(V)&&(at.tagNameCheck instanceof RegExp&&zt(at.tagNameCheck,V)||at.tagNameCheck instanceof Function&&at.tagNameCheck(V)))return!1;if(Za&&!ge[V]){const mt=C(_)||_.parentNode,$t=b(_)||_.childNodes;if($t&&mt){const wt=$t.length;for(let Ut=wt-1;Ut>=0;--Ut){const Ae=m($t[Ut],!0);Ae.__removalCount=(_.__removalCount||0)+1,mt.insertBefore(Ae,x(_))}}}return me(_),!0}return _ instanceof l&&!r0(_)||(V==="noscript"||V==="noembed"||V==="noframes")&&zt(/<\/no(script|embed|frames)/i,_.innerHTML)?(me(_),!0):(se&&_.nodeType===hi.text&&(P=_.textContent,pn([N,R,B],mt=>{P=oi(P,mt," ")}),_.textContent!==P&&(si(t.removed,{element:_.cloneNode()}),_.textContent=P)),Le(E.afterSanitizeElements,_,null),!1)},Nl=function(_,P,V){if(bt[P]||Ll&&(P==="id"||P==="name")&&(V in r||V in e0))return!1;if(!(xt&&!bt[P]&&zt(A,P))){if(!(ne&&zt(S,P))){if(!(At.attributeCheck instanceof Function&&At.attributeCheck(P,_))){if(!K[P]||bt[P]){if(!(zl(_)&&(at.tagNameCheck instanceof RegExp&&zt(at.tagNameCheck,_)||at.tagNameCheck instanceof Function&&at.tagNameCheck(_))&&(at.attributeNameCheck instanceof RegExp&&zt(at.attributeNameCheck,P)||at.attributeNameCheck instanceof Function&&at.attributeNameCheck(P,_))||P==="is"&&at.allowCustomizedBuiltInElements&&(at.tagNameCheck instanceof RegExp&&zt(at.tagNameCheck,V)||at.tagNameCheck instanceof Function&&at.tagNameCheck(V))))return!1}else if(!Qa[P]){if(!zt(Y,oi(V,M,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&_!=="script"&&w0(V,"data:")===0&&Bl[_])){if(!(ae&&!zt($,oi(V,M,"")))){if(V)return!1}}}}}}}return!0},zl=function(_){return _!=="annotation-xml"&&as(_,q)},Wl=function(_){Le(E.beforeSanitizeAttributes,_,null);const{attributes:P}=_;if(!P||rs(_))return;const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let mt=P.length;for(;mt--;){const $t=P[mt],{name:wt,namespaceURI:Ut,value:Ae}=$t,Lr=vt(wt),is=Ae;let Bt=wt==="value"?is:k0(is);if(V.attrName=Lr,V.attrValue=Bt,V.keepAttr=!0,V.forceKeepAttr=void 0,Le(E.uponSanitizeAttribute,_,V),Bt=V.attrValue,Al&&(Lr==="id"||Lr==="name")&&(er(wt,_),Bt=Zm+Bt),on&&zt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Bt)){er(wt,_);continue}if(Lr==="attributename"&&as(Bt,"href")){er(wt,_);continue}if(V.forceKeepAttr)continue;if(!V.keepAttr){er(wt,_);continue}if(!We&&zt(/\/>/i,Bt)){er(wt,_);continue}se&&pn([N,R,B],Hl=>{Bt=oi(Bt,Hl," ")});const ql=vt(_.nodeName);if(!Nl(ql,Lr,Bt)){er(wt,_);continue}if(v&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ut)switch(f.getAttributeType(ql,Lr)){case"TrustedHTML":{Bt=v.createHTML(Bt);break}case"TrustedScriptURL":{Bt=v.createScriptURL(Bt);break}}if(Bt!==is)try{Ut?_.setAttributeNS(Ut,wt,Bt):_.setAttribute(wt,Bt),rs(_)?me(_):Ul(t.removed)}catch{er(wt,_)}}Le(E.afterSanitizeAttributes,_,null)},i0=function J(_){let P=null;const V=Rl(_);for(Le(E.beforeSanitizeShadowDOM,_,null);P=V.nextNode();)Le(E.uponSanitizeShadowNode,P,null),Pl(P),Wl(P),P.content instanceof a&&J(P.content);Le(E.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(J){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=null,V=null,mt=null,$t=null;if(Ja=!J,Ja&&(J="<!-->"),typeof J!="string"&&!Il(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw li("dirty is not a string, aborting")}else throw li("toString is not a function");if(!t.isSupported)return J;if(Va||es(_),t.removed=[],typeof J=="string"&&(ni=!1),ni){if(J.nodeName){const Ae=vt(J.nodeName);if(!Z[Ae]||Ct[Ae])throw li("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof o)P=Ol("<!---->"),V=P.ownerDocument.importNode(J,!0),V.nodeType===hi.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?P=V:P.appendChild(V);else{if(!kr&&!se&&!tr&&J.indexOf("<")===-1)return v&&cn?v.createHTML(J):J;if(P=Ol(J),!P)return kr?null:cn?k:""}P&&Xa&&me(P.firstChild);const wt=Rl(ni?J:P);for(;mt=wt.nextNode();)Pl(mt),Wl(mt),mt.content instanceof a&&i0(mt.content);if(ni)return J;if(kr){if(ln)for($t=D.call(P.ownerDocument);P.firstChild;)$t.appendChild(P.firstChild);else $t=P;return(K.shadowroot||K.shadowrootmode)&&($t=O.call(i,$t,!0)),$t}let Ut=tr?P.outerHTML:P.innerHTML;return tr&&Z["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&zt(Eh,P.ownerDocument.doctype.name)&&(Ut="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
|
|
3
3
|
`+Ut),se&&pn([N,R,B],Ae=>{Ut=oi(Ut,Ae," ")}),v&&cn?v.createHTML(Ut):Ut},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};es(J),Va=!0},t.clearConfig=function(){Tr=null,Va=!1},t.isValidAttribute=function(J,_,P){Tr||es({});const V=vt(J),mt=vt(_);return Nl(V,mt,P)},t.addHook=function(J,_){typeof _=="function"&&si(E[J],_)},t.removeHook=function(J,_){if(_!==void 0){const P=_0(E[J],_);return P===-1?void 0:C0(E[J],P,1)[0]}return Ul(E[J])},t.removeHooks=function(J){E[J]=[]},t.removeAllHooks=function(){E=Ql()},t}var jr=$h(),Fh=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Bi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,P0=/\s*%%.*\n/gm,Rr,Dh=(Rr=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p(Rr,"UnknownDiagramError"),Rr),fr={},To=p(function(e,t){e=e.replace(Fh,"").replace(Bi,"").replace(P0,`
|
|
4
4
|
`);for(const[r,{detector:i}]of Object.entries(fr))if(i(e,t))return r;throw new Dh(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Ls=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)Oh(t,r,i)},"registerLazyLoadedDiagrams"),Oh=p((e,t,r)=>{fr[e]&&F.warn(`Detector with key ${e} already exists. Overwriting.`),fr[e]={detector:t,loader:r},F.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),N0=p(e=>fr[e].loader,"getDiagramLoader"),As=p((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>As(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=As(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Tt=As,ka="#ffffff",va="#f2f2f2",Wt=p((e,t)=>t?w(e,{s:-40,l:10}):w(e,{s:-40,l:-10}),"mkBorder"),Ir,z0=(Ir=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(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||w(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||w(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Wt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Wt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||z(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||z(this.tertiaryColor),this.lineColor=this.lineColor||z(this.background),this.arrowheadColor=this.arrowheadColor||z(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?tt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||tt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||z(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||H(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||tt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||tt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||H(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=tt(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=tt(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||z(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||H(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||tt(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||w(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||w(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||w(this.primaryColor,{h:64}),this.fillType3=this.fillType3||w(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||w(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||w(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||w(this.primaryColor,{h:128}),this.fillType7=this.fillType7||w(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||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-10}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||w(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??w(this.primaryColor,{l:-30}),this.venn2=this.venn2??w(this.secondaryColor,{l:-30}),this.venn3=this.venn3??w(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??w(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??w(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??w(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??w(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??w(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vi(this.quadrant1Fill)?H(this.quadrant1Fill):tt(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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?tt(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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(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||ka,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||va}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ir,"Theme"),Ir),W0=p(e=>{const t=new z0;return t.calculate(e),t},"getThemeVariables"),Pr,q0=(Pr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=H(this.primaryColor,16),this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=z(this.background),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=H(z("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ai(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=tt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=tt(this.sectionBkgColor,10),this.taskBorderColor=Ai(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ai(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||H(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||tt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=H(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=H(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=H(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=z(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(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||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||z(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||H(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??H(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vi(this.quadrant1Fill)?H(this.quadrant1Fill):tt(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},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?tt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=H(this.secondaryColor,20),this.git1=H(this.pie2||this.secondaryColor,20),this.git2=H(this.pie3||this.tertiaryColor,20),this.git3=H(this.pie4||w(this.primaryColor,{h:-30}),20),this.git4=H(this.pie5||w(this.primaryColor,{h:-60}),20),this.git5=H(this.pie6||w(this.primaryColor,{h:-90}),10),this.git6=H(this.pie7||w(this.primaryColor,{h:60}),10),this.git7=H(this.pie8||w(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(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||H(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||H(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Pr,"Theme"),Pr),H0=p(e=>{const t=new q0;return t.calculate(e),t},"getThemeVariables"),Nr,j0=(Nr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=w(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(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="rgba(232,232,232, 0.8)",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="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Ai(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||tt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||tt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=tt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||tt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||w(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||z(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||z(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||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=H(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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||H(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||H(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||w(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||w(this.primaryColor,{l:-10}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||w(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||w(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??w(this.primaryColor,{l:-30}),this.venn2=this.venn2??w(this.secondaryColor,{l:-30}),this.venn3=this.venn3??w(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??w(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??w(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??w(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??w(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??w(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vi(this.quadrant1Fill)?H(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||tt(z(this.git0),25),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(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||ka,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||va}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Nr,"Theme"),Nr),Y0=p(e=>{const t=new j0;return t.calculate(e),t},"getThemeVariables"),zr,U0=(zr=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=H("#cde498",10),this.primaryBorderColor=Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.primaryColor),this.lineColor=z(this.background),this.textColor=z(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="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=tt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||w(this.primaryColor,{h:30}),this.cScale4=this.cScale4||w(this.primaryColor,{h:60}),this.cScale5=this.cScale5||w(this.primaryColor,{h:90}),this.cScale6=this.cScale6||w(this.primaryColor,{h:120}),this.cScale7=this.cScale7||w(this.primaryColor,{h:150}),this.cScale8=this.cScale8||w(this.primaryColor,{h:210}),this.cScale9=this.cScale9||w(this.primaryColor,{h:270}),this.cScale10=this.cScale10||w(this.primaryColor,{h:300}),this.cScale11=this.cScale11||w(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||tt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||tt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=tt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||tt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||w(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||H(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(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||w(this.primaryColor,{l:-30}),this.pie5=this.pie5||w(this.secondaryColor,{l:-30}),this.pie6=this.pie6||w(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||w(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||w(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||w(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||w(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||w(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||w(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??w(this.primaryColor,{l:-30}),this.venn2=this.venn2??w(this.secondaryColor,{l:-30}),this.venn3=this.venn3??w(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??w(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??w(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??w(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??w(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??w(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vi(this.quadrant1Fill)?H(this.quadrant1Fill):tt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.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||w(this.primaryColor,{h:-30}),this.git4=this.git4||w(this.primaryColor,{h:-60}),this.git5=this.git5||w(this.primaryColor,{h:-90}),this.git6=this.git6||w(this.primaryColor,{h:60}),this.git7=this.git7||w(this.primaryColor,{h:120}),this.darkMode?(this.git0=H(this.git0,25),this.git1=H(this.git1,25),this.git2=H(this.git2,25),this.git3=H(this.git3,25),this.git4=H(this.git4,25),this.git5=H(this.git5,25),this.git6=H(this.git6,25),this.git7=H(this.git7,25)):(this.git0=tt(this.git0,25),this.git1=tt(this.git1,25),this.git2=tt(this.git2,25),this.git3=tt(this.git3,25),this.git4=tt(this.git4,25),this.git5=tt(this.git5,25),this.git6=tt(this.git6,25),this.git7=tt(this.git7,25)),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||z(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||z(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||ka,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||va}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(zr,"Theme"),zr),G0=p(e=>{const t=new U0;return t.calculate(e),t},"getThemeVariables"),Wr,V0=(Wr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=H(this.contrast,55),this.background="#ffffff",this.tertiaryColor=w(this.primaryColor,{h:-160}),this.primaryBorderColor=Wt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Wt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Wt(this.tertiaryColor,this.darkMode),this.primaryTextColor=z(this.primaryColor),this.secondaryTextColor=z(this.secondaryColor),this.tertiaryTextColor=z(this.tertiaryColor),this.lineColor=z(this.background),this.textColor=z(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=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||H(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=H(this.contrast,55),this.border2=this.contrast,this.actorBorder=H(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||z(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||H(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||tt(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||w(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||w(this.mainBkg,{l:-(8+t*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=H(this.contrast,30),this.sectionBkgColor2=H(this.contrast,30),this.taskBorderColor=tt(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=H(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=tt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=w(this.primaryColor,{h:64}),this.fillType3=w(this.secondaryColor,{h:64}),this.fillType4=w(this.primaryColor,{h:-64}),this.fillType5=w(this.secondaryColor,{h:-64}),this.fillType6=w(this.primaryColor,{h:128}),this.fillType7=w(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||w(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||w(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||w(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||w(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||w(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||w(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Vi(this.quadrant1Fill)?H(this.quadrant1Fill):tt(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:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},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=tt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||w(this.primaryColor,{h:-30}),this.git4=this.pie5||w(this.primaryColor,{h:-60}),this.git5=this.pie6||w(this.primaryColor,{h:-90}),this.git6=this.pie7||w(this.primaryColor,{h:60}),this.git7=this.pie8||w(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||z(this.git0),this.gitInv1=this.gitInv1||z(this.git1),this.gitInv2=this.gitInv2||z(this.git2),this.gitInv3=this.gitInv3||z(this.git3),this.gitInv4=this.gitInv4||z(this.git4),this.gitInv5=this.gitInv5||z(this.git5),this.gitInv6=this.gitInv6||z(this.git6),this.gitInv7=this.gitInv7||z(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||ka,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||va}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Wr,"Theme"),Wr),X0=p(e=>{const t=new V0;return t.calculate(e),t},"getThemeVariables"),Fe={base:{getThemeVariables:W0},dark:{getThemeVariables:H0},default:{getThemeVariables:Y0},forest:{getThemeVariables:G0},neutral:{getThemeVariables:X0}},ee={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,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,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Rh={...ee,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Fe.default.getThemeVariables(),sequence:{...ee.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ee.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ee.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ee.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ee.pie,useWidth:984},xyChart:{...ee.xyChart,useWidth:void 0},requirement:{...ee.requirement,useWidth:void 0},packet:{...ee.packet},radar:{...ee.radar},ishikawa:{...ee.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...ee.venn}},Ih=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Ih(e[i],"")]:[...r,t+i],[]),"keyify"),Z0=new Set(Ih(Rh,"")),Ph=Rh,Wn=p(e=>{if(F.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Wn(t));return}for(const t of Object.keys(e)){if(F.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Z0.has(t)||e[t]==null){F.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){F.debug("sanitizing object",t),Wn(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(F.debug("sanitizing css option",t),e[t]=K0(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}F.debug("After sanitization",e)}},"sanitizeDirective"),K0=p(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Yr=Object.freeze(Ph),Ke=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Vt=Tt({},Yr),qn,dr=[],Mi=Tt({},Yr),Sa=p((e,t)=>{let r=Tt({},e),i={};for(const n of t)Wh(n),i=Tt(i,n);if(r=Tt(r,i),i.theme&&i.theme in Fe){const n=Tt({},qn),a=Tt(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Fe&&(r.themeVariables=Fe[r.theme].getThemeVariables(a))}return Mi=r,Hh(Mi),Mi},"updateCurrentConfig"),Q0=p(e=>(Vt=Tt({},Yr),Vt=Tt(Vt,e),e.theme&&Fe[e.theme]&&(Vt.themeVariables=Fe[e.theme].getThemeVariables(e.themeVariables)),Sa(Vt,dr),Vt),"setSiteConfig"),J0=p(e=>{qn=Tt({},e)},"saveConfigFromInitialize"),ty=p(e=>(Vt=Tt(Vt,e),Sa(Vt,dr),Vt),"updateSiteConfig"),Nh=p(()=>Tt({},Vt),"getSiteConfig"),zh=p(e=>(Hh(e),Tt(Mi,e),Ot()),"setConfig"),Ot=p(()=>Tt({},Mi),"getConfig"),Wh=p(e=>{e&&(["secure",...Vt.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(F.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Wh(e[t])}))},"sanitize"),ey=p(e=>{Wn(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),dr.push(e),Sa(Vt,dr)},"addDirective"),Hn=p((e=Vt)=>{dr=[],Sa(e,dr)},"reset"),ry={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Jl={},qh=p(e=>{Jl[e]||(F.warn(ry[e]),Jl[e]=!0)},"issueWarning"),Hh=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&qh("LAZY_LOAD_DEPRECATED")},"checkConfig"),oB=p(()=>{let e={};qn&&(e=Tt(e,qn));for(const t of dr)e=Tt(e,t);return e},"getUserDefinedConfig"),Pt=p(e=>(e.flowchart?.htmlLabels!=null&&qh("FLOWCHART_HTML_LABELS_DEPRECATED"),Ke(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),Xi=/<br\s*\/?>/gi,iy=p(e=>e?Uh(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ny=(()=>{let e=!1;return()=>{e||(jh(),e=!0)}})();function jh(){const e="data-temp-href-target";jr.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),jr.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}p(jh,"setupDompurifyHooks");var Yh=p(e=>(ny(),jr.sanitize(e)),"removeScript"),tc=p((e,t)=>{if(Pt(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=Yh(e):r!=="loose"&&(e=Uh(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=ly(e))}return e},"sanitizeMore"),de=p((e,t)=>e&&(t.dompurifyConfig?e=jr.sanitize(tc(e,t),t.dompurifyConfig).toString():e=jr.sanitize(tc(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),ay=p((e,t)=>typeof e=="string"?de(e,t):e.flat().map(r=>de(r,t)),"sanitizeTextOrArray"),sy=p(e=>Xi.test(e),"hasBreaks"),oy=p(e=>e.split(Xi),"splitBreaks"),ly=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Uh=p(e=>e.replace(Xi,"#br#"),"breakToPlaceholder"),cy=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),hy=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),uy=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),ec=p(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],s=t[i+1];fy(a,s)&&(n=a+","+s,i++,r.pop())}r.push(dy(n))}return r.join("")},"parseGenericTypes"),Bs=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),fy=p((e,t)=>{const r=Bs(e,"~"),i=Bs(t,"~");return r===1&&i===1},"shouldCombineSets"),dy=p(e=>{const t=Bs(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),rc=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Ms=/\$\$(.*)\$\$/g,Di=p(e=>(e.match(Ms)?.length??0)>0,"hasKatex"),lB=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Gh(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),py=p(async(e,t)=>{if(!Di(e))return e;if(!(rc()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Ms,"MathML is unsupported in this environment.");{const{default:r}=await ut(async()=>{const{default:n}=await import("./katex-B6vPdZ0d.js");return{default:n}},[]),i=t.forceLegacyMathML||!rc()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Xi).map(n=>Di(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Ms,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Gh=p(async(e,t)=>de(await py(e,t),t),"renderKatexSanitized"),Zi={getRows:iy,sanitizeText:de,sanitizeTextOrArray:ay,hasBreaks:sy,splitBreaks:oy,lineBreakRegex:Xi,removeScript:Yh,getUrl:cy,evaluate:Ke,getMax:hy,getMin:uy},gy=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),my=p(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Vh=p(function(e,t,r,i){const n=my(t,r,i);gy(e,n)},"configureSvgSize"),yy=p(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,s=n.height;F.info(`SVG bounds: ${a}x${s}`,n);let o=0,l=0;F.info(`Graph bounds: ${o}x${l}`,e),o=a+r*2,l=s+r*2,F.info(`Calculated bounds: ${o}x${l}`),Vh(t,l,o,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Mn={},xy=p((e,t,r)=>{let i="";return e in Mn&&Mn[e]?i=Mn[e](r):F.warn(`No theme found for ${e}`),` & {
|
|
5
5
|
font-family: ${r.fontFamily};
|
|
@@ -237,8 +237,8 @@ Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error
|
|
|
237
237
|
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),s=e.width/2;let o=r.x<t.x?s-a:s+a;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*s>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;o=h*u/c;const d={x:r.x<t.x?r.x+o:r.x-h+o,y:r.y<t.y?r.y+c-u:r.y-c+u};return o===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),c===0&&(d.y=t.y),F.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${o}`,d),d}else{r.x<t.x?o=t.x-s-i:o=i-s-t.x;let u=c*o/h,d=r.x<t.x?r.x+h-o:r.x-h+o,f=r.y<t.y?r.y+u:r.y-u;return F.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${o}`,{_x:d,_y:f}),o===0&&(d=t.x,f=t.y),h===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),fh=p((e,t)=>{F.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(F.info("abc88 checking point",a,t),!mS(t,a)&&!n){const s=yS(t,i,a);F.debug("abc88 inside",a,i,s),F.debug("abc88 intersection",s,t);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?F.warn("abc88 no intersect",s,r):r.push(s),n=!0}else F.warn("abc88 outside",a,i),i=a,n||r.push(a)}),F.debug("returning points",r),r},"cutPathAtIntersect");function Kg(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],s=e[i+1];(n.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===s.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-s.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(Kg,"extractCornerPoints");var dh=p(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:t.x-s*i,y:t.y-s*n}},"findAdjacentPoint"),xS=p(function(e){const{cornerPointPositions:t}=Kg(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],s=e[i],o=dh(n,s,5),l=dh(a,s,5),c=l.x-o.x,h=l.y-o.y;r.push(o);const u=Math.sqrt(2)*2;let d={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){F.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const f=5;s.x===o.x?d={x:c<0?o.x-f+u:o.x+f-u,y:h<0?o.y-u:o.y+u}:d={x:c<0?o.x-u:o.x+u,y:h<0?o.y-f+u:o.y+f-u}}else F.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),bS=p((e,t,r)=>{const i=e-t-r,n=2,a=2,s=n+a,o=Math.floor(i/s),l=Array(o).fill(`${n} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),_S=p(function(e,t,r,i,n,a,s,o=!1){const{handDrawnSeed:l}=dt();let c=t.points,h=!1;const u=n;var d=a;const f=[];for(const S in t.cssCompiledStyles)Kd(S)||f.push(t.cssCompiledStyles[S]);F.debug("UIO intersect check",t.points,d.x,u.x),d.intersect&&u.intersect&&!o&&(c=c.slice(1,t.points.length-1),c.unshift(u.intersect(c[0])),F.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],d,d.intersect(c[c.length-1])),c.push(d.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));t.toCluster&&(F.info("to cluster abc88",r.get(t.toCluster)),c=fh(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(F.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=fh(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=c.filter(S=>!Number.isNaN(S.y));const y=dS(t.curve);y!=="rounded"&&(m=xS(m));let x=Ei;switch(y){case"linear":x=Ei;break;case"basis":x=Ws;break;case"cardinal":x=Mu;break;case"bumpX":x=Su;break;case"bumpY":x=Tu;break;case"catmullRom":x=$u;break;case"monotoneX":x=Pu;break;case"monotoneY":x=Nu;break;case"natural":x=Wu;break;case"step":x=qu;break;case"stepAfter":x=ju;break;case"stepBefore":x=Hu;break;case"rounded":x=Ei;break;default:x=Ws}const{x:b,y:C}=m_(t),v=J1().x(b).y(C).curve(x);let k;switch(t.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(t.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let T,L=y==="rounded"?Qg(Jg(m,t),5):v(m);const D=Array.isArray(t.style)?t.style:[t.style];let I=D.find(S=>S?.startsWith("stroke:")),O="";t.animate&&(O="edge-animation-fast"),t.animation&&(O="edge-animation-"+t.animation);let E=!1;if(t.look==="handDrawn"){const S=j.svg(e);Object.assign([],m);const $=S.path(L,{roughness:.3,seed:l});k+=" transition",T=lt($).select("path").attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")+(O?" "+O:"")).attr("style",D?D.reduce((q,Y)=>q+";"+Y,""):"");let M=T.attr("d");T.attr("d",M),e.node().appendChild(T.node())}else{const S=f.join(";"),$=D?D.reduce((K,ot)=>K+ot+";",""):"",M=(S?S+";"+$+";":$)+";"+(D?D.reduce((K,ot)=>K+";"+ot,""):"");T=e.append("path").attr("d",L).attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")+(O?" "+O:"")).attr("style",M),I=M.match(/stroke:([^;]+)/)?.[1],E=t.animate===!0||!!t.animation||S.includes("animation");const q=T.node(),Y=typeof q.getTotalLength=="function"?q.getTotalLength():0,Z=Ac[t.arrowTypeStart]||0,et=Ac[t.arrowTypeEnd]||0;if(t.look==="neo"&&!E){const ot=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?bS(Y,Z,et):`0 ${Z} ${Y-Z-et} ${et}`}; stroke-dashoffset: 0;`;T.attr("style",ot+T.attr("style"))}}T.attr("data-edge",!0),T.attr("data-et","edge"),T.attr("data-id",t.id),T.attr("data-points",g),t.showPoints&&m.forEach(S=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",S.x).attr("cy",S.y)});let N="";(dt().flowchart.arrowMarkerAbsolute||dt().state.arrowMarkerAbsolute)&&(N=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,N=N.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),F.info("arrowTypeStart",t.arrowTypeStart),F.info("arrowTypeEnd",t.arrowTypeEnd),uS(T,t,N,s,i,I);const R=Math.floor(c.length/2),B=c[R];he.isLabelCoordinateInPath(B,T.attr("d"))||(h=!0);let A={};return h&&(A.updatedPath=c),A.originalPath=t.points,A},"insertEdge");function Qg(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const s=e[a],o=e[a-1],l=e[a+1];if(a===0)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const c=s.x-o.x,h=s.y-o.y,u=l.x-s.x,d=l.y-s.y,f=Math.hypot(c,h),g=Math.hypot(u,d);if(f<n||g<n){r+=`L${s.x},${s.y}`;continue}const m=c/f,y=h/f,x=u/g,b=d/g,C=m*x+y*b,v=Math.max(-1,Math.min(1,C)),k=Math.acos(v);if(k<n||Math.abs(Math.PI-k)<n){r+=`L${s.x},${s.y}`;continue}const T=Math.min(t/Math.sin(k/2),f/2,g/2),L=s.x-m*T,D=s.y-y*T,I=s.x+x*T,O=s.y+b*T;r+=`L${L},${D}`,r+=`Q${s.x},${s.y} ${I},${O}`}}return r}p(Qg,"generateRoundedPath");function mo(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(mo,"calculateDeltaAndAngle");function Jg(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&Dt[t.arrowTypeStart]){const n=Dt[t.arrowTypeStart],a=e[0],s=e[1],{angle:o}=mo(a,s),l=n*Math.cos(o),c=n*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+c}const i=e.length;if(i>=2&&Dt[t.arrowTypeEnd]){const n=Dt[t.arrowTypeEnd],a=e[i-1],s=e[i-2],{angle:o}=mo(s,a),l=n*Math.cos(o),c=n*Math.sin(o);r[i-1].x=a.x-l,r[i-1].y=a.y-c}return r}p(Jg,"applyMarkerOffsetsToPoints");var CS=p((e,t,r,i)=>{t.forEach(n=>{IS[n](e,r,i)})},"insertMarkers"),wS=p((e,t,r)=>{F.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),kS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),vS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),SS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),TS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),LS=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),AS=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),BS=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),MS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),ES=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),$S=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),FS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),DS=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),OS=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
238
238
|
L20,10
|
|
239
239
|
M20,10
|
|
240
|
-
L0,20`)},"requirement_arrow"),RS=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),IS={extension:wS,composition:kS,aggregation:vS,dependency:SS,lollipop:TS,point:LS,circle:AS,cross:BS,barb:MS,only_one:ES,zero_or_one:$S,one_or_more:FS,zero_or_more:DS,requirement_arrow:OS,requirement_contains:RS},PS=CS,NS={common:Zi,getConfig:Ot,insertCluster:Yv,insertEdge:_S,insertEdgeLabel:pS,insertMarkers:PS,insertNode:Zg,interpolateToCurve:rl,labelHelper:it,log:F,positionEdgeLabel:gS},Ui={},tm=p(e=>{for(const t of e)Ui[t.name]=t},"registerLayoutLoaders"),zS=p(()=>{tm([{name:"dagre",loader:p(async()=>await ut(()=>import("./dagre-KLK3FWXG-u9dz8dcq.js"),__vite__mapDeps([0,1,2,3,4,5,6])),"loader")},{name:"cose-bilkent",loader:p(async()=>await ut(()=>import("./cose-bilkent-S5V4N54A-Ct9-ZJcv.js"),__vite__mapDeps([7,8,6])),"loader")}])},"registerDefaultLayoutLoaders");zS();var FB=p(async(e,t)=>{if(!(e.layoutAlgorithm in Ui))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Ui[e.layoutAlgorithm];return(await r.loader()).render(e,t,NS,{algorithm:r.algorithm})},"render"),DB=p((e="",{fallback:t="dagre"}={})=>{if(e in Ui)return e;if(t in Ui)return F.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),em="comm",rm="rule",im="decl",WS="@import",qS="@namespace",HS="@keyframes",jS="@layer",nm=Math.abs,kl=String.fromCharCode;function am(e){return e.trim()}function Pn(e,t,r){return e.replace(t,r)}function YS(e,t,r){return e.indexOf(t,r)}function Or(e,t){return e.charCodeAt(t)|0}function Zr(e,t,r){return e.slice(t,r)}function _e(e){return e.length}function US(e){return e.length}function Sn(e,t){return t.push(e),e}var Ya=1,Kr=1,sm=0,ie=0,kt=0,ii="";function vl(e,t,r,i,n,a,s,o){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Ya,column:Kr,length:s,return:"",siblings:o}}function GS(){return kt}function VS(){return kt=ie>0?Or(ii,--ie):0,Kr--,kt===10&&(Kr=1,Ya--),kt}function fe(){return kt=ie<sm?Or(ii,ie++):0,Kr++,kt===10&&(Kr=1,Ya++),kt}function Ye(){return Or(ii,ie)}function Nn(){return ie}function Ua(e,t){return Zr(ii,e,t)}function Gi(e){switch(e){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 XS(e){return Ya=Kr=1,sm=_e(ii=e),ie=0,[]}function ZS(e){return ii="",e}function ks(e){return am(Ua(ie-1,yo(e===91?e+2:e===40?e+1:e)))}function KS(e){for(;(kt=Ye())&&kt<33;)fe();return Gi(e)>2||Gi(kt)>3?"":" "}function QS(e,t){for(;--t&&fe()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Ua(e,Nn()+(t<6&&Ye()==32&&fe()==32))}function yo(e){for(;fe();)switch(kt){case e:return ie;case 34:case 39:e!==34&&e!==39&&yo(kt);break;case 40:e===41&&yo(e);break;case 92:fe();break}return ie}function JS(e,t){for(;fe()&&e+kt!==57;)if(e+kt===84&&Ye()===47)break;return"/*"+Ua(t,ie-1)+"*"+kl(e===47?e:fe())}function tT(e){for(;!Gi(Ye());)fe();return Ua(e,ie)}function eT(e){return ZS(zn("",null,null,null,[""],e=XS(e),0,[0],e))}function zn(e,t,r,i,n,a,s,o,l){for(var c=0,h=0,u=s,d=0,f=0,g=0,m=1,y=1,x=1,b=0,C="",v=n,k=a,T=i,L=C;y;)switch(g=b,b=fe()){case 40:if(g!=108&&Or(L,u-1)==58){YS(L+=Pn(ks(b),"&","&\f"),"&\f",nm(c?o[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:L+=ks(b);break;case 9:case 10:case 13:case 32:L+=KS(g);break;case 92:L+=QS(Nn()-1,7);continue;case 47:switch(Ye()){case 42:case 47:Sn(rT(JS(fe(),Nn()),t,r,l),l),(Gi(g||1)==5||Gi(Ye()||1)==5)&&_e(L)&&Zr(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*m:o[c++]=_e(L)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:x==-1&&(L=Pn(L,/\f/g,"")),f>0&&(_e(L)-u||m===0&&g===47)&&Sn(f>32?gh(L+";",i,r,u-1,l):gh(Pn(L," ","")+";",i,r,u-2,l),l);break;case 59:L+=";";default:if(Sn(T=ph(L,t,r,c,h,n,o,C,v=[],k=[],u,a),a),b===123)if(h===0)zn(L,t,T,T,v,a,u,o,k);else{switch(d){case 99:if(Or(L,3)===110)break;case 108:if(Or(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?zn(e,T,T,i&&Sn(ph(e,T,T,0,0,n,o,C,n,v=[],u,k),k),n,k,u,o,i?v:k):zn(L,T,T,T,[""],k,0,o,k)}}c=h=f=0,m=x=1,C=L="",u=s;break;case 58:u=1+_e(L),f=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&VS()==125)continue}switch(L+=kl(b),b*m){case 38:x=h>0?1:(L+="\f",-1);break;case 44:o[c++]=(_e(L)-1)*x,x=1;break;case 64:Ye()===45&&(L+=ks(fe())),d=Ye(),h=u=_e(C=L+=tT(Nn())),b++;break;case 45:g===45&&_e(L)==2&&(m=0)}}return a}function ph(e,t,r,i,n,a,s,o,l,c,h,u){for(var d=n-1,f=n===0?a:[""],g=US(f),m=0,y=0,x=0;m<i;++m)for(var b=0,C=Zr(e,d+1,d=nm(y=s[m])),v=e;b<g;++b)(v=am(y>0?f[b]+" "+C:Pn(C,/&\f/g,f[b])))&&(l[x++]=v);return vl(e,t,r,n===0?rm:o,l,c,h,u)}function rT(e,t,r,i){return vl(e,t,r,em,kl(GS()),Zr(e,2,-2),0,i)}function gh(e,t,r,i,n){return vl(e,t,r,im,Zr(e,0,i),Zr(e,i+1,-1),i,n)}function xo(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function iT(e,t,r,i){switch(e.type){case jS:if(e.children.length)break;case WS:case qS:case im:return e.return=e.return||e.value;case em:return"";case HS:return e.return=e.value+"{"+xo(e.children,i)+"}";case rm:if(!_e(e.value=e.props.join(",")))return""}return _e(r=xo(e.children,i))?e.return=e.value+"{"+r+"}":""}var nT=Md(Object.keys,Object),aT=Object.prototype,sT=aT.hasOwnProperty;function oT(e){if(!Ra(e))return nT(e);var t=[];for(var r in Object(e))sT.call(e,r)&&r!="constructor"&&t.push(r);return t}var bo=Cr(Se,"DataView"),_o=Cr(Se,"Promise"),Co=Cr(Se,"Set"),wo=Cr(Se,"WeakMap"),mh="[object Map]",lT="[object Object]",yh="[object Promise]",xh="[object Set]",bh="[object WeakMap]",_h="[object DataView]",cT=_r(bo),hT=_r(ji),uT=_r(_o),fT=_r(Co),dT=_r(wo),ar=Qr;(bo&&ar(new bo(new ArrayBuffer(1)))!=_h||ji&&ar(new ji)!=mh||_o&&ar(_o.resolve())!=yh||Co&&ar(new Co)!=xh||wo&&ar(new wo)!=bh)&&(ar=function(e){var t=Qr(e),r=t==lT?e.constructor:void 0,i=r?_r(r):"";if(i)switch(i){case cT:return _h;case hT:return mh;case uT:return yh;case fT:return xh;case dT:return bh}return t});var pT="[object Map]",gT="[object Set]",mT=Object.prototype,yT=mT.hasOwnProperty;function Ch(e){if(e==null)return!0;if(Ia(e)&&(ha(e)||typeof e=="string"||typeof e.splice=="function"||tl(e)||el(e)||ca(e)))return!e.length;var t=ar(e);if(t==pT||t==gT)return!e.size;if(Ra(e))return!oT(e).length;for(var r in e)if(yT.call(e,r))return!1;return!0}var om="c4",xT=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),bT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./c4Diagram-IC4MRINW-xTBVTs0q.js");return{diagram:t}},__vite__mapDeps([9,10,6]));return{id:om,diagram:e}},"loader"),_T={id:om,detector:xT,loader:bT},CT=_T,lm="flowchart",wT=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),kT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./flowDiagram-PKNHOUZH-CoBCSOFc.js");return{diagram:t}},__vite__mapDeps([11,12,10,13,14,15,6]));return{id:lm,diagram:e}},"loader"),vT={id:lm,detector:wT,loader:kT},ST=vT,cm="flowchart-v2",TT=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),LT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./flowDiagram-PKNHOUZH-CoBCSOFc.js");return{diagram:t}},__vite__mapDeps([11,12,10,13,14,15,6]));return{id:cm,diagram:e}},"loader"),AT={id:cm,detector:TT,loader:LT},BT=AT,hm="er",MT=p(e=>/^\s*erDiagram/.test(e),"detector"),ET=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./erDiagram-INFDFZHY-DX-vee6w.js");return{diagram:t}},__vite__mapDeps([16,13,14,15,6]));return{id:hm,diagram:e}},"loader"),$T={id:hm,detector:MT,loader:ET},FT=$T,um="gitGraph",DT=p(e=>/^\s*gitGraph/.test(e),"detector"),OT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./gitGraphDiagram-K3NZZRJ6-CntCsuti.js");return{diagram:t}},__vite__mapDeps([17,18,19,20,6,2,4,5]));return{id:um,diagram:e}},"loader"),RT={id:um,detector:DT,loader:OT},IT=RT,fm="gantt",PT=p(e=>/^\s*gantt/.test(e),"detector"),NT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./ganttDiagram-A5KZAMGK-BlqU_ghi.js");return{diagram:t}},__vite__mapDeps([21,6,22,23,24]));return{id:fm,diagram:e}},"loader"),zT={id:fm,detector:PT,loader:NT},WT=zT,dm="info",qT=p(e=>/^\s*info/.test(e),"detector"),HT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./infoDiagram-LFFYTUFH-_jCC8Jtt.js");return{diagram:t}},__vite__mapDeps([25,20,6,2,4,5]));return{id:dm,diagram:e}},"loader"),jT={id:dm,detector:qT,loader:HT},pm="pie",YT=p(e=>/^\s*pie/.test(e),"detector"),UT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./pieDiagram-SKSYHLDU-DoYJZfNJ.js");return{diagram:t}},__vite__mapDeps([26,18,20,6,2,4,5,27,28,23]));return{id:pm,diagram:e}},"loader"),GT={id:pm,detector:YT,loader:UT},gm="quadrantChart",VT=p(e=>/^\s*quadrantChart/.test(e),"detector"),XT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./quadrantDiagram-337W2JSQ-Bs71YHJr.js");return{diagram:t}},__vite__mapDeps([29,22,23,24,6]));return{id:gm,diagram:e}},"loader"),ZT={id:gm,detector:VT,loader:XT},KT=ZT,mm="xychart",QT=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),JT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./xychartDiagram-JWTSCODW-Cjqbi_DU.js");return{diagram:t}},__vite__mapDeps([30,23,28,22,24,6]));return{id:mm,diagram:e}},"loader"),tL={id:mm,detector:QT,loader:JT},eL=tL,ym="requirement",rL=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),iL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./requirementDiagram-Z7DCOOCP-BWvQcALn.js");return{diagram:t}},__vite__mapDeps([31,13,14,6]));return{id:ym,diagram:e}},"loader"),nL={id:ym,detector:rL,loader:iL},aL=nL,xm="sequence",sL=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),oL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./sequenceDiagram-2WXFIKYE-DRZim8vR.js");return{diagram:t}},__vite__mapDeps([32,10,19,6]));return{id:xm,diagram:e}},"loader"),lL={id:xm,detector:sL,loader:oL},cL=lL,bm="class",hL=p((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),uL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./classDiagram-VBA2DB6C-CqViWWFw.js");return{diagram:t}},__vite__mapDeps([33,34,12,10,13,14,6]));return{id:bm,diagram:e}},"loader"),fL={id:bm,detector:hL,loader:uL},dL=fL,_m="classDiagram",pL=p((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),gL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./classDiagram-v2-RAHNMMFH-CqViWWFw.js");return{diagram:t}},__vite__mapDeps([35,34,12,10,13,14,6]));return{id:_m,diagram:e}},"loader"),mL={id:_m,detector:pL,loader:gL},yL=mL,Cm="state",xL=p((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),bL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./stateDiagram-RAJIS63D-BoqzJeL7.js");return{diagram:t}},__vite__mapDeps([36,37,13,14,1,2,3,4,6]));return{id:Cm,diagram:e}},"loader"),_L={id:Cm,detector:xL,loader:bL},CL=_L,wm="stateDiagram",wL=p((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),kL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./stateDiagram-v2-FVOUBMTO-CJYWvllO.js");return{diagram:t}},__vite__mapDeps([38,37,13,14,6]));return{id:wm,diagram:e}},"loader"),vL={id:wm,detector:wL,loader:kL},SL=vL,km="journey",TL=p(e=>/^\s*journey/.test(e),"detector"),LL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./journeyDiagram-4ABVD52K-CvRNm03C.js");return{diagram:t}},__vite__mapDeps([39,12,10,27,6]));return{id:km,diagram:e}},"loader"),AL={id:km,detector:TL,loader:LL},BL=AL,ML=p((e,t,r)=>{F.debug(`rendering svg for syntax error
|
|
241
|
-
`);const i=l2(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Vh(i,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 ${r}`)},"draw"),vm={draw:ML},EL=vm,$L={db:{},renderer:vm,parser:{parse:p(()=>{},"parse")}},FL=$L,Sm="flowchart-elk",DL=p((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),OL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./flowDiagram-PKNHOUZH-
|
|
240
|
+
L0,20`)},"requirement_arrow"),RS=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),IS={extension:wS,composition:kS,aggregation:vS,dependency:SS,lollipop:TS,point:LS,circle:AS,cross:BS,barb:MS,only_one:ES,zero_or_one:$S,one_or_more:FS,zero_or_more:DS,requirement_arrow:OS,requirement_contains:RS},PS=CS,NS={common:Zi,getConfig:Ot,insertCluster:Yv,insertEdge:_S,insertEdgeLabel:pS,insertMarkers:PS,insertNode:Zg,interpolateToCurve:rl,labelHelper:it,log:F,positionEdgeLabel:gS},Ui={},tm=p(e=>{for(const t of e)Ui[t.name]=t},"registerLayoutLoaders"),zS=p(()=>{tm([{name:"dagre",loader:p(async()=>await ut(()=>import("./dagre-KLK3FWXG-h4F9WtDQ.js"),__vite__mapDeps([0,1,2,3,4,5,6])),"loader")},{name:"cose-bilkent",loader:p(async()=>await ut(()=>import("./cose-bilkent-S5V4N54A-CaD0EGPJ.js"),__vite__mapDeps([7,8,6])),"loader")}])},"registerDefaultLayoutLoaders");zS();var FB=p(async(e,t)=>{if(!(e.layoutAlgorithm in Ui))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Ui[e.layoutAlgorithm];return(await r.loader()).render(e,t,NS,{algorithm:r.algorithm})},"render"),DB=p((e="",{fallback:t="dagre"}={})=>{if(e in Ui)return e;if(t in Ui)return F.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),em="comm",rm="rule",im="decl",WS="@import",qS="@namespace",HS="@keyframes",jS="@layer",nm=Math.abs,kl=String.fromCharCode;function am(e){return e.trim()}function Pn(e,t,r){return e.replace(t,r)}function YS(e,t,r){return e.indexOf(t,r)}function Or(e,t){return e.charCodeAt(t)|0}function Zr(e,t,r){return e.slice(t,r)}function _e(e){return e.length}function US(e){return e.length}function Sn(e,t){return t.push(e),e}var Ya=1,Kr=1,sm=0,ie=0,kt=0,ii="";function vl(e,t,r,i,n,a,s,o){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Ya,column:Kr,length:s,return:"",siblings:o}}function GS(){return kt}function VS(){return kt=ie>0?Or(ii,--ie):0,Kr--,kt===10&&(Kr=1,Ya--),kt}function fe(){return kt=ie<sm?Or(ii,ie++):0,Kr++,kt===10&&(Kr=1,Ya++),kt}function Ye(){return Or(ii,ie)}function Nn(){return ie}function Ua(e,t){return Zr(ii,e,t)}function Gi(e){switch(e){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 XS(e){return Ya=Kr=1,sm=_e(ii=e),ie=0,[]}function ZS(e){return ii="",e}function ks(e){return am(Ua(ie-1,yo(e===91?e+2:e===40?e+1:e)))}function KS(e){for(;(kt=Ye())&&kt<33;)fe();return Gi(e)>2||Gi(kt)>3?"":" "}function QS(e,t){for(;--t&&fe()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Ua(e,Nn()+(t<6&&Ye()==32&&fe()==32))}function yo(e){for(;fe();)switch(kt){case e:return ie;case 34:case 39:e!==34&&e!==39&&yo(kt);break;case 40:e===41&&yo(e);break;case 92:fe();break}return ie}function JS(e,t){for(;fe()&&e+kt!==57;)if(e+kt===84&&Ye()===47)break;return"/*"+Ua(t,ie-1)+"*"+kl(e===47?e:fe())}function tT(e){for(;!Gi(Ye());)fe();return Ua(e,ie)}function eT(e){return ZS(zn("",null,null,null,[""],e=XS(e),0,[0],e))}function zn(e,t,r,i,n,a,s,o,l){for(var c=0,h=0,u=s,d=0,f=0,g=0,m=1,y=1,x=1,b=0,C="",v=n,k=a,T=i,L=C;y;)switch(g=b,b=fe()){case 40:if(g!=108&&Or(L,u-1)==58){YS(L+=Pn(ks(b),"&","&\f"),"&\f",nm(c?o[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:L+=ks(b);break;case 9:case 10:case 13:case 32:L+=KS(g);break;case 92:L+=QS(Nn()-1,7);continue;case 47:switch(Ye()){case 42:case 47:Sn(rT(JS(fe(),Nn()),t,r,l),l),(Gi(g||1)==5||Gi(Ye()||1)==5)&&_e(L)&&Zr(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*m:o[c++]=_e(L)*x;case 125*m:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+h:x==-1&&(L=Pn(L,/\f/g,"")),f>0&&(_e(L)-u||m===0&&g===47)&&Sn(f>32?gh(L+";",i,r,u-1,l):gh(Pn(L," ","")+";",i,r,u-2,l),l);break;case 59:L+=";";default:if(Sn(T=ph(L,t,r,c,h,n,o,C,v=[],k=[],u,a),a),b===123)if(h===0)zn(L,t,T,T,v,a,u,o,k);else{switch(d){case 99:if(Or(L,3)===110)break;case 108:if(Or(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?zn(e,T,T,i&&Sn(ph(e,T,T,0,0,n,o,C,n,v=[],u,k),k),n,k,u,o,i?v:k):zn(L,T,T,T,[""],k,0,o,k)}}c=h=f=0,m=x=1,C=L="",u=s;break;case 58:u=1+_e(L),f=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&VS()==125)continue}switch(L+=kl(b),b*m){case 38:x=h>0?1:(L+="\f",-1);break;case 44:o[c++]=(_e(L)-1)*x,x=1;break;case 64:Ye()===45&&(L+=ks(fe())),d=Ye(),h=u=_e(C=L+=tT(Nn())),b++;break;case 45:g===45&&_e(L)==2&&(m=0)}}return a}function ph(e,t,r,i,n,a,s,o,l,c,h,u){for(var d=n-1,f=n===0?a:[""],g=US(f),m=0,y=0,x=0;m<i;++m)for(var b=0,C=Zr(e,d+1,d=nm(y=s[m])),v=e;b<g;++b)(v=am(y>0?f[b]+" "+C:Pn(C,/&\f/g,f[b])))&&(l[x++]=v);return vl(e,t,r,n===0?rm:o,l,c,h,u)}function rT(e,t,r,i){return vl(e,t,r,em,kl(GS()),Zr(e,2,-2),0,i)}function gh(e,t,r,i,n){return vl(e,t,r,im,Zr(e,0,i),Zr(e,i+1,-1),i,n)}function xo(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function iT(e,t,r,i){switch(e.type){case jS:if(e.children.length)break;case WS:case qS:case im:return e.return=e.return||e.value;case em:return"";case HS:return e.return=e.value+"{"+xo(e.children,i)+"}";case rm:if(!_e(e.value=e.props.join(",")))return""}return _e(r=xo(e.children,i))?e.return=e.value+"{"+r+"}":""}var nT=Md(Object.keys,Object),aT=Object.prototype,sT=aT.hasOwnProperty;function oT(e){if(!Ra(e))return nT(e);var t=[];for(var r in Object(e))sT.call(e,r)&&r!="constructor"&&t.push(r);return t}var bo=Cr(Se,"DataView"),_o=Cr(Se,"Promise"),Co=Cr(Se,"Set"),wo=Cr(Se,"WeakMap"),mh="[object Map]",lT="[object Object]",yh="[object Promise]",xh="[object Set]",bh="[object WeakMap]",_h="[object DataView]",cT=_r(bo),hT=_r(ji),uT=_r(_o),fT=_r(Co),dT=_r(wo),ar=Qr;(bo&&ar(new bo(new ArrayBuffer(1)))!=_h||ji&&ar(new ji)!=mh||_o&&ar(_o.resolve())!=yh||Co&&ar(new Co)!=xh||wo&&ar(new wo)!=bh)&&(ar=function(e){var t=Qr(e),r=t==lT?e.constructor:void 0,i=r?_r(r):"";if(i)switch(i){case cT:return _h;case hT:return mh;case uT:return yh;case fT:return xh;case dT:return bh}return t});var pT="[object Map]",gT="[object Set]",mT=Object.prototype,yT=mT.hasOwnProperty;function Ch(e){if(e==null)return!0;if(Ia(e)&&(ha(e)||typeof e=="string"||typeof e.splice=="function"||tl(e)||el(e)||ca(e)))return!e.length;var t=ar(e);if(t==pT||t==gT)return!e.size;if(Ra(e))return!oT(e).length;for(var r in e)if(yT.call(e,r))return!1;return!0}var om="c4",xT=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),bT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./c4Diagram-IC4MRINW-DsGaAPtm.js");return{diagram:t}},__vite__mapDeps([9,10,6]));return{id:om,diagram:e}},"loader"),_T={id:om,detector:xT,loader:bT},CT=_T,lm="flowchart",wT=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),kT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./flowDiagram-PKNHOUZH-CXN3pvSW.js");return{diagram:t}},__vite__mapDeps([11,12,10,13,14,15,6]));return{id:lm,diagram:e}},"loader"),vT={id:lm,detector:wT,loader:kT},ST=vT,cm="flowchart-v2",TT=p((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),LT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./flowDiagram-PKNHOUZH-CXN3pvSW.js");return{diagram:t}},__vite__mapDeps([11,12,10,13,14,15,6]));return{id:cm,diagram:e}},"loader"),AT={id:cm,detector:TT,loader:LT},BT=AT,hm="er",MT=p(e=>/^\s*erDiagram/.test(e),"detector"),ET=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./erDiagram-INFDFZHY-0U5A-RF0.js");return{diagram:t}},__vite__mapDeps([16,13,14,15,6]));return{id:hm,diagram:e}},"loader"),$T={id:hm,detector:MT,loader:ET},FT=$T,um="gitGraph",DT=p(e=>/^\s*gitGraph/.test(e),"detector"),OT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./gitGraphDiagram-K3NZZRJ6-Bo-Jjy7v.js");return{diagram:t}},__vite__mapDeps([17,18,19,20,6,2,4,5]));return{id:um,diagram:e}},"loader"),RT={id:um,detector:DT,loader:OT},IT=RT,fm="gantt",PT=p(e=>/^\s*gantt/.test(e),"detector"),NT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./ganttDiagram-A5KZAMGK-DlovlSO7.js");return{diagram:t}},__vite__mapDeps([21,6,22,23,24]));return{id:fm,diagram:e}},"loader"),zT={id:fm,detector:PT,loader:NT},WT=zT,dm="info",qT=p(e=>/^\s*info/.test(e),"detector"),HT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./infoDiagram-LFFYTUFH-BbvPzztn.js");return{diagram:t}},__vite__mapDeps([25,20,6,2,4,5]));return{id:dm,diagram:e}},"loader"),jT={id:dm,detector:qT,loader:HT},pm="pie",YT=p(e=>/^\s*pie/.test(e),"detector"),UT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./pieDiagram-SKSYHLDU-DDVqU_2Q.js");return{diagram:t}},__vite__mapDeps([26,18,20,6,2,4,5,27,28,23]));return{id:pm,diagram:e}},"loader"),GT={id:pm,detector:YT,loader:UT},gm="quadrantChart",VT=p(e=>/^\s*quadrantChart/.test(e),"detector"),XT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./quadrantDiagram-337W2JSQ-BeUxMqle.js");return{diagram:t}},__vite__mapDeps([29,22,23,24,6]));return{id:gm,diagram:e}},"loader"),ZT={id:gm,detector:VT,loader:XT},KT=ZT,mm="xychart",QT=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),JT=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./xychartDiagram-JWTSCODW-DSAwWbBw.js");return{diagram:t}},__vite__mapDeps([30,23,28,22,24,6]));return{id:mm,diagram:e}},"loader"),tL={id:mm,detector:QT,loader:JT},eL=tL,ym="requirement",rL=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),iL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./requirementDiagram-Z7DCOOCP-CpzdlyEd.js");return{diagram:t}},__vite__mapDeps([31,13,14,6]));return{id:ym,diagram:e}},"loader"),nL={id:ym,detector:rL,loader:iL},aL=nL,xm="sequence",sL=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),oL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./sequenceDiagram-2WXFIKYE-DarofLka.js");return{diagram:t}},__vite__mapDeps([32,10,19,6]));return{id:xm,diagram:e}},"loader"),lL={id:xm,detector:sL,loader:oL},cL=lL,bm="class",hL=p((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),uL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./classDiagram-VBA2DB6C-Beq6_jEy.js");return{diagram:t}},__vite__mapDeps([33,34,12,10,13,14,6]));return{id:bm,diagram:e}},"loader"),fL={id:bm,detector:hL,loader:uL},dL=fL,_m="classDiagram",pL=p((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),gL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./classDiagram-v2-RAHNMMFH-Beq6_jEy.js");return{diagram:t}},__vite__mapDeps([35,34,12,10,13,14,6]));return{id:_m,diagram:e}},"loader"),mL={id:_m,detector:pL,loader:gL},yL=mL,Cm="state",xL=p((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),bL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./stateDiagram-RAJIS63D-CEio2h-7.js");return{diagram:t}},__vite__mapDeps([36,37,13,14,1,2,3,4,6]));return{id:Cm,diagram:e}},"loader"),_L={id:Cm,detector:xL,loader:bL},CL=_L,wm="stateDiagram",wL=p((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),kL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./stateDiagram-v2-FVOUBMTO-CbfK0_BD.js");return{diagram:t}},__vite__mapDeps([38,37,13,14,6]));return{id:wm,diagram:e}},"loader"),vL={id:wm,detector:wL,loader:kL},SL=vL,km="journey",TL=p(e=>/^\s*journey/.test(e),"detector"),LL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./journeyDiagram-4ABVD52K-D9NP_vvu.js");return{diagram:t}},__vite__mapDeps([39,12,10,27,6]));return{id:km,diagram:e}},"loader"),AL={id:km,detector:TL,loader:LL},BL=AL,ML=p((e,t,r)=>{F.debug(`rendering svg for syntax error
|
|
241
|
+
`);const i=l2(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Vh(i,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 ${r}`)},"draw"),vm={draw:ML},EL=vm,$L={db:{},renderer:vm,parser:{parse:p(()=>{},"parse")}},FL=$L,Sm="flowchart-elk",DL=p((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),OL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./flowDiagram-PKNHOUZH-CXN3pvSW.js");return{diagram:t}},__vite__mapDeps([11,12,10,13,14,15,6]));return{id:Sm,diagram:e}},"loader"),RL={id:Sm,detector:DL,loader:OL},IL=RL,Tm="timeline",PL=p(e=>/^\s*timeline/.test(e),"detector"),NL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./timeline-definition-YZTLITO2-By_Wk6uc.js");return{diagram:t}},__vite__mapDeps([40,27,6]));return{id:Tm,diagram:e}},"loader"),zL={id:Tm,detector:PL,loader:NL},WL=zL,Lm="mindmap",qL=p(e=>/^\s*mindmap/.test(e),"detector"),HL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./mindmap-definition-YRQLILUH-DgyN4Ft-.js");return{diagram:t}},__vite__mapDeps([41,13,14,6]));return{id:Lm,diagram:e}},"loader"),jL={id:Lm,detector:qL,loader:HL},YL=jL,Am="kanban",UL=p(e=>/^\s*kanban/.test(e),"detector"),GL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./kanban-definition-K7BYSVSG-X-u_nWxK.js");return{diagram:t}},__vite__mapDeps([42,12,6]));return{id:Am,diagram:e}},"loader"),VL={id:Am,detector:UL,loader:GL},XL=VL,Bm="sankey",ZL=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),KL=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./sankeyDiagram-WA2Y5GQK-CmSWF6XU.js");return{diagram:t}},__vite__mapDeps([43,28,23,6]));return{id:Bm,diagram:e}},"loader"),QL={id:Bm,detector:ZL,loader:KL},JL=QL,Mm="packet",tA=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),eA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./diagram-P4PSJMXO-DdPwwhHR.js");return{diagram:t}},__vite__mapDeps([44,18,20,6,2,4,5]));return{id:Mm,diagram:e}},"loader"),rA={id:Mm,detector:tA,loader:eA},Em="radar",iA=p(e=>/^\s*radar-beta/.test(e),"detector"),nA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./diagram-IFDJBPK2-C5oMubv0.js");return{diagram:t}},__vite__mapDeps([45,18,20,6,2,4,5]));return{id:Em,diagram:e}},"loader"),aA={id:Em,detector:iA,loader:nA},$m="block",sA=p(e=>/^\s*block(-beta)?/.test(e),"detector"),oA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./blockDiagram-WCTKOSBZ-Bs8e58Or.js");return{diagram:t}},__vite__mapDeps([46,12,5,2,1,15,6]));return{id:$m,diagram:e}},"loader"),lA={id:$m,detector:sA,loader:oA},cA=lA,Fm="architecture",hA=p(e=>/^\s*architecture/.test(e),"detector"),uA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./architectureDiagram-2XIMDMQ5-DgSSDH9Z.js");return{diagram:t}},__vite__mapDeps([47,18,20,6,2,4,5,8]));return{id:Fm,diagram:e}},"loader"),fA={id:Fm,detector:hA,loader:uA},dA=fA,Dm="ishikawa",pA=p(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),gA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./ishikawaDiagram-PHBUUO56-DKCMONMO.js");return{diagram:t}},__vite__mapDeps([48,6]));return{id:Dm,diagram:e}},"loader"),mA={id:Dm,detector:pA,loader:gA},Om="venn",yA=p(e=>/^\s*venn-beta/.test(e),"detector"),xA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./vennDiagram-LZ73GAT5-Dx_Fh7nH.js");return{diagram:t}},__vite__mapDeps([49,6]));return{id:Om,diagram:e}},"loader"),bA={id:Om,detector:yA,loader:xA},_A=bA,Rm="treemap",CA=p(e=>/^\s*treemap/.test(e),"detector"),wA=p(async()=>{const{diagram:e}=await ut(async()=>{const{diagram:t}=await import("./diagram-E7M64L7V-CBUSWzH5.js");return{diagram:t}},__vite__mapDeps([50,14,18,20,6,2,4,5,24,28,23]));return{id:Rm,diagram:e}},"loader"),kA={id:Rm,detector:CA,loader:wA},wh=!1,Ga=p(()=>{wh||(wh=!0,Yn("error",FL,e=>e.toLowerCase().trim()==="error"),Yn("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Ls(IL,YL,dA),Ls(CT,XL,yL,dL,FT,WT,jT,GT,aL,cL,BT,ST,WL,IT,SL,CL,BL,KT,JL,rA,eL,cA,aA,mA,kA,_A))},"addDiagrams"),vA=p(async()=>{F.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(fr).map(async([r,{detector:i,loader:n}])=>{if(n)try{Es(r)}catch{try{const{diagram:a,id:s}=await n();Yn(s,a,i)}catch(a){throw F.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete fr[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){F.error(`Failed to load ${t.length} external diagrams`);for(const r of t)F.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),SA="graphics-document document";function Im(e,t){e.attr("role",SA),t!==""&&e.attr("aria-roledescription",t)}p(Im,"setA11yDiagramInfo");function Pm(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}p(Pm,"addSVGa11yTitleDescription");var ur,ko=(ur=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){const i=Ot(),n=To(t,i);t=uk(t)+`
|
|
242
242
|
`;try{Es(n)}catch{const c=N0(n);if(!c)throw new Dh(`Diagram ${n} not found.`);const{id:h,diagram:u}=await c();Yn(h,u)}const{db:a,parser:s,renderer:o,init:l}=Es(n);return s.parser&&(s.parser.yy=a),a.clear?.(),l?.(i),r.title&&a.setDiagramTitle?.(r.title),await s.parse(t),new ur(n,t,a,s,o)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},p(ur,"Diagram"),ur),kh=[],TA=p(()=>{kh.forEach(e=>{e()}),kh=[]},"attachFunctions"),LA=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Nm(e){const t=e.match(Fh);if(!t)return{text:e,metadata:{}};let r=g_(t[1],{schema:p_})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}p(Nm,"extractFrontMatter");var AA=p(e=>e.replace(/\r\n?/g,`
|
|
243
243
|
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),BA=p(e=>{const{text:t,metadata:r}=Nm(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),MA=p(e=>{const t=he.detectInit(e)??{},r=he.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:Qw(e),directive:t}},"processDirectives");function Sl(e){const t=AA(e),r=BA(t),i=MA(r.text),n=ol(r.config,i.directive);return e=LA(i.text),{code:e,title:r.title,config:n}}p(Sl,"preprocessDiagram");function zm(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(zm,"toBase64");var EA=5e4,$A="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",FA="sandbox",DA="loose",OA="http://www.w3.org/2000/svg",RA="http://www.w3.org/1999/xlink",IA="http://www.w3.org/1999/xhtml",PA="100%",NA="100%",zA="border:0;margin:0;",WA="margin:0",qA="allow-top-navigation-by-user-activation allow-popups",HA='The "iframe" tag is not supported by your browser.',jA=["foreignobject"],YA=["dominant-baseline"];function Tl(e){const t=Sl(e);return Hn(),ey(t.config??{}),t}p(Tl,"processAndSetConfigs");async function Wm(e,t){Ga();try{const{code:r,config:i}=Tl(e);return{diagramType:(await Hm(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}p(Wm,"parse");var vh=p((e,t,r=[])=>`
|
|
244
244
|
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),UA=p((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|