personalac 1.3.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/README.md +249 -0
- package/bin/personalac.js +215 -0
- package/dist/agent/context.d.ts +39 -0
- package/dist/agent/context.d.ts.map +1 -0
- package/dist/agent/context.js +163 -0
- package/dist/agent/context.js.map +1 -0
- package/dist/agent/executors.d.ts +40 -0
- package/dist/agent/executors.d.ts.map +1 -0
- package/dist/agent/executors.js +177 -0
- package/dist/agent/executors.js.map +1 -0
- package/dist/agent/index.d.ts +61 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +907 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/planner.d.ts +15 -0
- package/dist/agent/planner.d.ts.map +1 -0
- package/dist/agent/planner.js +81 -0
- package/dist/agent/planner.js.map +1 -0
- package/dist/agent/scheduler.d.ts +22 -0
- package/dist/agent/scheduler.d.ts.map +1 -0
- package/dist/agent/scheduler.js +178 -0
- package/dist/agent/scheduler.js.map +1 -0
- package/dist/database/index.d.ts +5 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +283 -0
- package/dist/database/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +141 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/auth.middleware.d.ts +6 -0
- package/dist/middleware/auth.middleware.d.ts.map +1 -0
- package/dist/middleware/auth.middleware.js +19 -0
- package/dist/middleware/auth.middleware.js.map +1 -0
- package/dist/routes/agent.routes.d.ts +3 -0
- package/dist/routes/agent.routes.d.ts.map +1 -0
- package/dist/routes/agent.routes.js +101 -0
- package/dist/routes/agent.routes.js.map +1 -0
- package/dist/routes/auth.routes.d.ts +3 -0
- package/dist/routes/auth.routes.d.ts.map +1 -0
- package/dist/routes/auth.routes.js +66 -0
- package/dist/routes/auth.routes.js.map +1 -0
- package/dist/routes/chat.routes.d.ts +3 -0
- package/dist/routes/chat.routes.d.ts.map +1 -0
- package/dist/routes/chat.routes.js +80 -0
- package/dist/routes/chat.routes.js.map +1 -0
- package/dist/routes/data.routes.d.ts +3 -0
- package/dist/routes/data.routes.d.ts.map +1 -0
- package/dist/routes/data.routes.js +16 -0
- package/dist/routes/data.routes.js.map +1 -0
- package/dist/routes/email.routes.d.ts +3 -0
- package/dist/routes/email.routes.d.ts.map +1 -0
- package/dist/routes/email.routes.js +18 -0
- package/dist/routes/email.routes.js.map +1 -0
- package/dist/routes/goals.routes.d.ts +3 -0
- package/dist/routes/goals.routes.d.ts.map +1 -0
- package/dist/routes/goals.routes.js +45 -0
- package/dist/routes/goals.routes.js.map +1 -0
- package/dist/routes/plans.routes.d.ts +3 -0
- package/dist/routes/plans.routes.d.ts.map +1 -0
- package/dist/routes/plans.routes.js +19 -0
- package/dist/routes/plans.routes.js.map +1 -0
- package/dist/routes/settings.routes.d.ts +3 -0
- package/dist/routes/settings.routes.d.ts.map +1 -0
- package/dist/routes/settings.routes.js +29 -0
- package/dist/routes/settings.routes.js.map +1 -0
- package/dist/routes/workspace.routes.d.ts +3 -0
- package/dist/routes/workspace.routes.d.ts.map +1 -0
- package/dist/routes/workspace.routes.js +28 -0
- package/dist/routes/workspace.routes.js.map +1 -0
- package/dist/services/auth.service.d.ts +32 -0
- package/dist/services/auth.service.d.ts.map +1 -0
- package/dist/services/auth.service.js +110 -0
- package/dist/services/auth.service.js.map +1 -0
- package/dist/services/data.service.d.ts +47 -0
- package/dist/services/data.service.d.ts.map +1 -0
- package/dist/services/data.service.js +139 -0
- package/dist/services/data.service.js.map +1 -0
- package/dist/services/email.service.d.ts +23 -0
- package/dist/services/email.service.d.ts.map +1 -0
- package/dist/services/email.service.js +316 -0
- package/dist/services/email.service.js.map +1 -0
- package/dist/services/notify.service.d.ts +2 -0
- package/dist/services/notify.service.d.ts.map +1 -0
- package/dist/services/notify.service.js +21 -0
- package/dist/services/notify.service.js.map +1 -0
- package/dist/services/plan.service.d.ts +21 -0
- package/dist/services/plan.service.d.ts.map +1 -0
- package/dist/services/plan.service.js +96 -0
- package/dist/services/plan.service.js.map +1 -0
- package/dist/services/resource.service.d.ts +27 -0
- package/dist/services/resource.service.d.ts.map +1 -0
- package/dist/services/resource.service.js +150 -0
- package/dist/services/resource.service.js.map +1 -0
- package/dist/services/settings.service.d.ts +41 -0
- package/dist/services/settings.service.d.ts.map +1 -0
- package/dist/services/settings.service.js +254 -0
- package/dist/services/settings.service.js.map +1 -0
- package/dist/services/sobriety.service.d.ts +41 -0
- package/dist/services/sobriety.service.d.ts.map +1 -0
- package/dist/services/sobriety.service.js +243 -0
- package/dist/services/sobriety.service.js.map +1 -0
- package/dist/services/workspace.service.d.ts +71 -0
- package/dist/services/workspace.service.d.ts.map +1 -0
- package/dist/services/workspace.service.js +265 -0
- package/dist/services/workspace.service.js.map +1 -0
- package/dist/tools/chat-tools.d.ts +2 -0
- package/dist/tools/chat-tools.d.ts.map +1 -0
- package/dist/tools/chat-tools.js +419 -0
- package/dist/tools/chat-tools.js.map +1 -0
- package/dist/tools/index.d.ts +19 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +27 -0
- package/dist/tools/index.js.map +1 -0
- package/package.json +38 -0
- package/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/public/assets/_baseUniq-DiHtXYsr.js +1 -0
- package/public/assets/arc-Bv1zbXf7.js +1 -0
- package/public/assets/architectureDiagram-Q4EWVU46-EbiUvXBr.js +36 -0
- package/public/assets/blockDiagram-DXYQGD6D-B-4wwQNT.js +132 -0
- package/public/assets/c4Diagram-AHTNJAMY-brLyKMPJ.js +10 -0
- package/public/assets/channel-Me4d6Y1x.js +1 -0
- package/public/assets/chunk-4BX2VUAB-DMh-4Nye.js +1 -0
- package/public/assets/chunk-4TB4RGXK-CSr1z2CQ.js +206 -0
- package/public/assets/chunk-55IACEB6-xN0xmcvD.js +1 -0
- package/public/assets/chunk-EDXVE4YY-CkCM3j5E.js +1 -0
- package/public/assets/chunk-FMBD7UC4-B-mDgsjM.js +15 -0
- package/public/assets/chunk-OYMX7WX6-DK8dg9K4.js +231 -0
- package/public/assets/chunk-QZHKN3VN-BZGbFOdK.js +1 -0
- package/public/assets/chunk-YZCP3GAM-BTmFmMer.js +1 -0
- package/public/assets/classDiagram-6PBFFD2Q-BXgAb5m4.js +1 -0
- package/public/assets/classDiagram-v2-HSJHXN6E-BXgAb5m4.js +1 -0
- package/public/assets/clone-rnECnpTI.js +1 -0
- package/public/assets/cose-bilkent-S5V4N54A-BBqCwo63.js +1 -0
- package/public/assets/cytoscape.esm-BQk4lpUV.js +331 -0
- package/public/assets/dagre-KV5264BT-DLeQYvAA.js +4 -0
- package/public/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/public/assets/diagram-5BDNPKRD-D85z2LaM.js +10 -0
- package/public/assets/diagram-G4DWMVQ6-4AvBmvcP.js +24 -0
- package/public/assets/diagram-MMDJMWI5-DRNEGNZA.js +43 -0
- package/public/assets/diagram-TYMM5635-C_oGwrmX.js +24 -0
- package/public/assets/erDiagram-SMLLAGMA-DDSp8ANa.js +85 -0
- package/public/assets/flowDiagram-DWJPFMVM-B1Wy36da.js +162 -0
- package/public/assets/ganttDiagram-T4ZO3ILL-CQ7VWheo.js +292 -0
- package/public/assets/gitGraphDiagram-UUTBAWPF-BhvM7s41.js +106 -0
- package/public/assets/graph-fatjTp1h.js +1 -0
- package/public/assets/index-1PrEnCZL.js +677 -0
- package/public/assets/index-DcsnItNp.css +1 -0
- package/public/assets/infoDiagram-42DDH7IO-4eawOC2G.js +2 -0
- package/public/assets/init-Gi6I4Gst.js +1 -0
- package/public/assets/ishikawaDiagram-UXIWVN3A-CJWfG1fv.js +70 -0
- package/public/assets/journeyDiagram-VCZTEJTY-C4Zx3dpF.js +139 -0
- package/public/assets/kanban-definition-6JOO6SKY-CV1vDcC8.js +89 -0
- package/public/assets/layout-CX0IDv3q.js +1 -0
- package/public/assets/linear-C8hMcu9f.js +1 -0
- package/public/assets/min-BaxMGW9J.js +1 -0
- package/public/assets/mindmap-definition-QFDTVHPH-KzGyX4Em.js +96 -0
- package/public/assets/ordinal-Cboi1Yqb.js +1 -0
- package/public/assets/pieDiagram-DEJITSTG-Dp2x5kvP.js +30 -0
- package/public/assets/quadrantDiagram-34T5L4WZ-B4yqA6XF.js +7 -0
- package/public/assets/requirementDiagram-MS252O5E-DEjN_2tG.js +84 -0
- package/public/assets/sankeyDiagram-XADWPNL6-BKm_F5FA.js +10 -0
- package/public/assets/sequenceDiagram-FGHM5R23-07BCMKjW.js +157 -0
- package/public/assets/stateDiagram-FHFEXIEX-DVz6GtR8.js +1 -0
- package/public/assets/stateDiagram-v2-QKLJ7IA2-DYiYr0PB.js +1 -0
- package/public/assets/timeline-definition-GMOUNBTQ-C0u67FqY.js +120 -0
- package/public/assets/vennDiagram-DHZGUBPP-BiAlMVLe.js +34 -0
- package/public/assets/wardley-RL74JXVD-BnWyuHzf.js +162 -0
- package/public/assets/wardleyDiagram-NUSXRM2D-DEL2Lx6S.js +20 -0
- package/public/assets/xychartDiagram-5P7HB3ND-ILdmj7ok.js +7 -0
- package/public/index.html +17 -0
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-DLeQYvAA.js","assets/graph-fatjTp1h.js","assets/_baseUniq-DiHtXYsr.js","assets/layout-CX0IDv3q.js","assets/min-BaxMGW9J.js","assets/clone-rnECnpTI.js","assets/cose-bilkent-S5V4N54A-BBqCwo63.js","assets/cytoscape.esm-BQk4lpUV.js","assets/c4Diagram-AHTNJAMY-brLyKMPJ.js","assets/chunk-YZCP3GAM-BTmFmMer.js","assets/flowDiagram-DWJPFMVM-B1Wy36da.js","assets/chunk-FMBD7UC4-B-mDgsjM.js","assets/chunk-55IACEB6-xN0xmcvD.js","assets/chunk-EDXVE4YY-CkCM3j5E.js","assets/channel-Me4d6Y1x.js","assets/erDiagram-SMLLAGMA-DDSp8ANa.js","assets/gitGraphDiagram-UUTBAWPF-BhvM7s41.js","assets/chunk-4BX2VUAB-DMh-4Nye.js","assets/chunk-QZHKN3VN-BZGbFOdK.js","assets/wardley-RL74JXVD-BnWyuHzf.js","assets/ganttDiagram-T4ZO3ILL-CQ7VWheo.js","assets/linear-C8hMcu9f.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-4eawOC2G.js","assets/pieDiagram-DEJITSTG-Dp2x5kvP.js","assets/arc-Bv1zbXf7.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-B4yqA6XF.js","assets/xychartDiagram-5P7HB3ND-ILdmj7ok.js","assets/requirementDiagram-MS252O5E-DEjN_2tG.js","assets/sequenceDiagram-FGHM5R23-07BCMKjW.js","assets/classDiagram-6PBFFD2Q-BXgAb5m4.js","assets/chunk-4TB4RGXK-CSr1z2CQ.js","assets/classDiagram-v2-HSJHXN6E-BXgAb5m4.js","assets/stateDiagram-FHFEXIEX-DVz6GtR8.js","assets/chunk-OYMX7WX6-DK8dg9K4.js","assets/stateDiagram-v2-QKLJ7IA2-DYiYr0PB.js","assets/journeyDiagram-VCZTEJTY-C4Zx3dpF.js","assets/timeline-definition-GMOUNBTQ-C0u67FqY.js","assets/mindmap-definition-QFDTVHPH-KzGyX4Em.js","assets/kanban-definition-6JOO6SKY-CV1vDcC8.js","assets/sankeyDiagram-XADWPNL6-BKm_F5FA.js","assets/diagram-TYMM5635-C_oGwrmX.js","assets/diagram-MMDJMWI5-DRNEGNZA.js","assets/blockDiagram-DXYQGD6D-B-4wwQNT.js","assets/diagram-5BDNPKRD-D85z2LaM.js","assets/architectureDiagram-Q4EWVU46-EbiUvXBr.js","assets/diagram-G4DWMVQ6-4AvBmvcP.js","assets/wardleyDiagram-NUSXRM2D-DEL2Lx6S.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var $9=Object.defineProperty;var ly=e=>{throw TypeError(e)};var I9=(e,t,r)=>t in e?$9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var kt=(e,t,r)=>I9(e,typeof t!="symbol"?t+"":t,r),z9=(e,t,r)=>t.has(e)||ly("Cannot "+r);var cy=(e,t,r)=>t.has(e)?ly("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var ah=(e,t,r)=>(z9(e,t,"access private method"),r);function D9(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(i,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();var R9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function p5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function aG(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var g5={exports:{}},Ru={},m5={exports:{}},Dt={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var zc=Symbol.for("react.element"),O9=Symbol.for("react.portal"),P9=Symbol.for("react.fragment"),N9=Symbol.for("react.strict_mode"),j9=Symbol.for("react.profiler"),q9=Symbol.for("react.provider"),W9=Symbol.for("react.context"),H9=Symbol.for("react.forward_ref"),U9=Symbol.for("react.suspense"),Y9=Symbol.for("react.memo"),G9=Symbol.for("react.lazy"),hy=Symbol.iterator;function V9(e){return e===null||typeof e!="object"?null:(e=hy&&e[hy]||e["@@iterator"],typeof e=="function"?e:null)}var y5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x5=Object.assign,v5={};function Oo(e,t,r){this.props=e,this.context=t,this.refs=v5,this.updater=r||y5}Oo.prototype.isReactComponent={};Oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b5(){}b5.prototype=Oo.prototype;function vg(e,t,r){this.props=e,this.context=t,this.refs=v5,this.updater=r||y5}var bg=vg.prototype=new b5;bg.constructor=vg;x5(bg,Oo.prototype);bg.isPureReactComponent=!0;var uy=Array.isArray,C5=Object.prototype.hasOwnProperty,Cg={current:null},k5={key:!0,ref:!0,__self:!0,__source:!0};function w5(e,t,r){var i,n={},a=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)C5.call(t,i)&&!k5.hasOwnProperty(i)&&(n[i]=t[i]);var o=arguments.length-2;if(o===1)n.children=r;else if(1<o){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)n[i]===void 0&&(n[i]=o[i]);return{$$typeof:zc,type:e,key:a,ref:s,props:n,_owner:Cg.current}}function X9(e,t){return{$$typeof:zc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kg(e){return typeof e=="object"&&e!==null&&e.$$typeof===zc}function Q9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var dy=/\/+/g;function Vd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Q9(""+e.key):t.toString(36)}function Vh(e,t,r,i,n){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case zc:case O9:s=!0}}if(s)return s=e,n=n(s),e=i===""?"."+Vd(s,0):i,uy(n)?(r="",e!=null&&(r=e.replace(dy,"$&/")+"/"),Vh(n,t,r,"",function(c){return c})):n!=null&&(kg(n)&&(n=X9(n,r+(!n.key||s&&s.key===n.key?"":(""+n.key).replace(dy,"$&/")+"/")+e)),t.push(n)),1;if(s=0,i=i===""?".":i+":",uy(e))for(var o=0;o<e.length;o++){a=e[o];var l=i+Vd(a,o);s+=Vh(a,t,r,l,n)}else if(l=V9(e),typeof l=="function")for(e=l.call(e),o=0;!(a=e.next()).done;)a=a.value,l=i+Vd(a,o++),s+=Vh(a,t,r,l,n);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function sh(e,t,r){if(e==null)return e;var i=[],n=0;return Vh(e,i,"","",function(a){return t.call(r,a,n++)}),i}function K9(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var vr={current:null},Xh={transition:null},Z9={ReactCurrentDispatcher:vr,ReactCurrentBatchConfig:Xh,ReactCurrentOwner:Cg};function S5(){throw Error("act(...) is not supported in production builds of React.")}Dt.Children={map:sh,forEach:function(e,t,r){sh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return sh(e,function(){t++}),t},toArray:function(e){return sh(e,function(t){return t})||[]},only:function(e){if(!kg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Dt.Component=Oo;Dt.Fragment=P9;Dt.Profiler=j9;Dt.PureComponent=vg;Dt.StrictMode=N9;Dt.Suspense=U9;Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z9;Dt.act=S5;Dt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=x5({},e.props),n=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=Cg.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)C5.call(t,l)&&!k5.hasOwnProperty(l)&&(i[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){o=Array(l);for(var c=0;c<l;c++)o[c]=arguments[c+2];i.children=o}return{$$typeof:zc,type:e.type,key:n,ref:a,props:i,_owner:s}};Dt.createContext=function(e){return e={$$typeof:W9,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:q9,_context:e},e.Consumer=e};Dt.createElement=w5;Dt.createFactory=function(e){var t=w5.bind(null,e);return t.type=e,t};Dt.createRef=function(){return{current:null}};Dt.forwardRef=function(e){return{$$typeof:H9,render:e}};Dt.isValidElement=kg;Dt.lazy=function(e){return{$$typeof:G9,_payload:{_status:-1,_result:e},_init:K9}};Dt.memo=function(e,t){return{$$typeof:Y9,type:e,compare:t===void 0?null:t}};Dt.startTransition=function(e){var t=Xh.transition;Xh.transition={};try{e()}finally{Xh.transition=t}};Dt.unstable_act=S5;Dt.useCallback=function(e,t){return vr.current.useCallback(e,t)};Dt.useContext=function(e){return vr.current.useContext(e)};Dt.useDebugValue=function(){};Dt.useDeferredValue=function(e){return vr.current.useDeferredValue(e)};Dt.useEffect=function(e,t){return vr.current.useEffect(e,t)};Dt.useId=function(){return vr.current.useId()};Dt.useImperativeHandle=function(e,t,r){return vr.current.useImperativeHandle(e,t,r)};Dt.useInsertionEffect=function(e,t){return vr.current.useInsertionEffect(e,t)};Dt.useLayoutEffect=function(e,t){return vr.current.useLayoutEffect(e,t)};Dt.useMemo=function(e,t){return vr.current.useMemo(e,t)};Dt.useReducer=function(e,t,r){return vr.current.useReducer(e,t,r)};Dt.useRef=function(e){return vr.current.useRef(e)};Dt.useState=function(e){return vr.current.useState(e)};Dt.useSyncExternalStore=function(e,t,r){return vr.current.useSyncExternalStore(e,t,r)};Dt.useTransition=function(){return vr.current.useTransition()};Dt.version="18.3.1";m5.exports=Dt;var W=m5.exports;const T5=p5(W),J9=D9({__proto__:null,default:T5},[W]);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var tT=W,eT=Symbol.for("react.element"),rT=Symbol.for("react.fragment"),iT=Object.prototype.hasOwnProperty,nT=tT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aT={key:!0,ref:!0,__self:!0,__source:!0};function _5(e,t,r){var i,n={},a=null,s=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(i in t)iT.call(t,i)&&!aT.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)n[i]===void 0&&(n[i]=t[i]);return{$$typeof:eT,type:e,key:a,ref:s,props:n,_owner:nT.current}}Ru.Fragment=rT;Ru.jsx=_5;Ru.jsxs=_5;g5.exports=Ru;var b=g5.exports,sp={},B5={exports:{}},Yr={},L5={exports:{}},A5={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(F,V){var K=F.length;F.push(V);t:for(;0<K;){var nt=K-1>>>1,dt=F[nt];if(0<n(dt,V))F[nt]=V,F[K]=dt,K=nt;else break t}}function r(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var V=F[0],K=F.pop();if(K!==V){F[0]=K;t:for(var nt=0,dt=F.length,ht=dt>>>1;nt<ht;){var _t=2*(nt+1)-1,vt=F[_t],Rt=_t+1,jt=F[Rt];if(0>n(vt,K))Rt<dt&&0>n(jt,vt)?(F[nt]=jt,F[Rt]=K,nt=Rt):(F[nt]=vt,F[_t]=K,nt=_t);else if(Rt<dt&&0>n(jt,K))F[nt]=jt,F[Rt]=K,nt=Rt;else break t}}return V}function n(F,V){var K=F.sortIndex-V.sortIndex;return K!==0?K:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],h=1,u=null,f=3,d=!1,g=!1,p=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(F){for(var V=r(c);V!==null;){if(V.callback===null)i(c);else if(V.startTime<=F)i(c),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(c)}}function T(F){if(p=!1,k(F),!g)if(r(l)!==null)g=!0,R(_);else{var V=r(c);V!==null&&H(T,V.startTime-F)}}function _(F,V){g=!1,p&&(p=!1,y(A),A=-1),d=!0;var K=f;try{for(k(V),u=r(l);u!==null&&(!(u.expirationTime>V)||F&&!P());){var nt=u.callback;if(typeof nt=="function"){u.callback=null,f=u.priorityLevel;var dt=nt(u.expirationTime<=V);V=e.unstable_now(),typeof dt=="function"?u.callback=dt:u===r(l)&&i(l),k(V)}else i(l);u=r(l)}if(u!==null)var ht=!0;else{var _t=r(c);_t!==null&&H(T,_t.startTime-V),ht=!1}return ht}finally{u=null,f=K,d=!1}}var M=!1,S=null,A=-1,N=5,z=-1;function P(){return!(e.unstable_now()-z<N)}function U(){if(S!==null){var F=e.unstable_now();z=F;var V=!0;try{V=S(!0,F)}finally{V?Q():(M=!1,S=null)}}else M=!1}var Q;if(typeof x=="function")Q=function(){x(U)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,q=Y.port2;Y.port1.onmessage=U,Q=function(){q.postMessage(null)}}else Q=function(){m(U,0)};function R(F){S=F,M||(M=!0,Q())}function H(F,V){A=m(function(){F(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){g||d||(g=!0,R(_))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var K=f;f=V;try{return F()}finally{f=K}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var K=f;f=F;try{return V()}finally{f=K}},e.unstable_scheduleCallback=function(F,V,K){var nt=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?nt+K:nt):K=nt,F){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=K+dt,F={id:h++,callback:V,priorityLevel:F,startTime:K,expirationTime:dt,sortIndex:-1},K>nt?(F.sortIndex=K,t(c,F),r(l)===null&&F===r(c)&&(p?(y(A),A=-1):p=!0,H(T,K-nt))):(F.sortIndex=dt,t(l,F),g||d||(g=!0,R(_))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var V=f;return function(){var K=f;f=V;try{return F.apply(this,arguments)}finally{f=K}}}})(A5);L5.exports=A5;var sT=L5.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var oT=W,Wr=sT;function it(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var E5=new Set,tc={};function cs(e,t){bo(e,t),bo(e+"Capture",t)}function bo(e,t){for(tc[e]=t,e=0;e<t.length;e++)E5.add(t[e])}var pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),op=Object.prototype.hasOwnProperty,lT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fy={},py={};function cT(e){return op.call(py,e)?!0:op.call(fy,e)?!1:lT.test(e)?py[e]=!0:(fy[e]=!0,!1)}function hT(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uT(e,t,r,i){if(t===null||typeof t>"u"||hT(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function br(e,t,r,i,n,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new br(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new br(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new br(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new br(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new br(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new br(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new br(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new br(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new br(e,5,!1,e.toLowerCase(),null,!1,!1)});var wg=/[\-:]([a-z])/g;function Sg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wg,Sg);Qe[t]=new br(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wg,Sg);Qe[t]=new br(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wg,Sg);Qe[t]=new br(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new br(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new br("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new br(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tg(e,t,r,i){var n=Qe.hasOwnProperty(t)?Qe[t]:null;(n!==null?n.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(uT(t,r,n,i)&&(r=null),i||n===null?cT(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,i=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,i?e.setAttributeNS(i,t,r):e.setAttribute(t,r))))}var Cn=oT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oh=Symbol.for("react.element"),Ds=Symbol.for("react.portal"),Rs=Symbol.for("react.fragment"),_g=Symbol.for("react.strict_mode"),lp=Symbol.for("react.profiler"),M5=Symbol.for("react.provider"),F5=Symbol.for("react.context"),Bg=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),hp=Symbol.for("react.suspense_list"),Lg=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),$5=Symbol.for("react.offscreen"),gy=Symbol.iterator;function tl(e){return e===null||typeof e!="object"?null:(e=gy&&e[gy]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Object.assign,Xd;function Cl(e){if(Xd===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Xd=t&&t[1]||""}return`
|
|
35
|
+
`+Xd+e}var Qd=!1;function Kd(e,t){if(!e||Qd)return"";Qd=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var i=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){i=c}e.call(t.prototype)}else{try{throw Error()}catch(c){i=c}e()}}catch(c){if(c&&i&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
36
|
+
`),a=i.stack.split(`
|
|
37
|
+
`),s=n.length-1,o=a.length-1;1<=s&&0<=o&&n[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(n[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||n[s]!==a[o]){var l=`
|
|
38
|
+
`+n[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{Qd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Cl(e):""}function dT(e){switch(e.tag){case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 2:case 15:return e=Kd(e.type,!1),e;case 11:return e=Kd(e.type.render,!1),e;case 1:return e=Kd(e.type,!0),e;default:return""}}function up(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rs:return"Fragment";case Ds:return"Portal";case lp:return"Profiler";case _g:return"StrictMode";case cp:return"Suspense";case hp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F5:return(e.displayName||"Context")+".Consumer";case M5:return(e._context.displayName||"Context")+".Provider";case Bg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Lg:return t=e.displayName||null,t!==null?t:up(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return up(e(t))}catch{}}return null}function fT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return up(t);case 8:return t===_g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function I5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pT(e){var t=I5(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){i=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lh(e){e._valueTracker||(e._valueTracker=pT(e))}function z5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=I5(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function C0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function dp(e,t){var r=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function my(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=sa(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function D5(e,t){t=t.checked,t!=null&&Tg(e,"checked",t,!1)}function fp(e,t){D5(e,t);var r=sa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pp(e,t.type,r):t.hasOwnProperty("defaultValue")&&pp(e,t.type,sa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yy(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function pp(e,t,r){(t!=="number"||C0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var kl=Array.isArray;function Xs(e,t,r,i){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&i&&(e[r].defaultSelected=!0)}else{for(r=""+sa(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,i&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function gp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(it(91));return fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xy(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(it(92));if(kl(r)){if(1<r.length)throw Error(it(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:sa(r)}}function R5(e,t){var r=sa(t.value),i=sa(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function vy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function O5(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?O5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ch,P5=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,i,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,i,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ch=ch||document.createElement("div"),ch.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ch.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ec(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var zl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gT=["Webkit","ms","Moz","O"];Object.keys(zl).forEach(function(e){gT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zl[t]=zl[e]})});function N5(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||zl.hasOwnProperty(e)&&zl[e]?(""+t).trim():t+"px"}function j5(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,n=N5(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,n):e[r]=n}}var mT=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yp(e,t){if(t){if(mT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(it(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(it(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(it(61))}if(t.style!=null&&typeof t.style!="object")throw Error(it(62))}}function xp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vp=null;function Ag(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bp=null,Qs=null,Ks=null;function by(e){if(e=Oc(e)){if(typeof bp!="function")throw Error(it(280));var t=e.stateNode;t&&(t=qu(t),bp(e.stateNode,e.type,t))}}function q5(e){Qs?Ks?Ks.push(e):Ks=[e]:Qs=e}function W5(){if(Qs){var e=Qs,t=Ks;if(Ks=Qs=null,by(e),t)for(e=0;e<t.length;e++)by(t[e])}}function H5(e,t){return e(t)}function U5(){}var Zd=!1;function Y5(e,t,r){if(Zd)return e(t,r);Zd=!0;try{return H5(e,t,r)}finally{Zd=!1,(Qs!==null||Ks!==null)&&(U5(),W5())}}function rc(e,t){var r=e.stateNode;if(r===null)return null;var i=qu(r);if(i===null)return null;r=i[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(it(231,t,typeof r));return r}var Cp=!1;if(pn)try{var el={};Object.defineProperty(el,"passive",{get:function(){Cp=!0}}),window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{Cp=!1}function yT(e,t,r,i,n,a,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(h){this.onError(h)}}var Dl=!1,k0=null,w0=!1,kp=null,xT={onError:function(e){Dl=!0,k0=e}};function vT(e,t,r,i,n,a,s,o,l){Dl=!1,k0=null,yT.apply(xT,arguments)}function bT(e,t,r,i,n,a,s,o,l){if(vT.apply(this,arguments),Dl){if(Dl){var c=k0;Dl=!1,k0=null}else throw Error(it(198));w0||(w0=!0,kp=c)}}function hs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function G5(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Cy(e){if(hs(e)!==e)throw Error(it(188))}function CT(e){var t=e.alternate;if(!t){if(t=hs(e),t===null)throw Error(it(188));return t!==e?null:e}for(var r=e,i=t;;){var n=r.return;if(n===null)break;var a=n.alternate;if(a===null){if(i=n.return,i!==null){r=i;continue}break}if(n.child===a.child){for(a=n.child;a;){if(a===r)return Cy(n),e;if(a===i)return Cy(n),t;a=a.sibling}throw Error(it(188))}if(r.return!==i.return)r=n,i=a;else{for(var s=!1,o=n.child;o;){if(o===r){s=!0,r=n,i=a;break}if(o===i){s=!0,i=n,r=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===r){s=!0,r=a,i=n;break}if(o===i){s=!0,i=a,r=n;break}o=o.sibling}if(!s)throw Error(it(189))}}if(r.alternate!==i)throw Error(it(190))}if(r.tag!==3)throw Error(it(188));return r.stateNode.current===r?e:t}function V5(e){return e=CT(e),e!==null?X5(e):null}function X5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=X5(e);if(t!==null)return t;e=e.sibling}return null}var Q5=Wr.unstable_scheduleCallback,ky=Wr.unstable_cancelCallback,kT=Wr.unstable_shouldYield,wT=Wr.unstable_requestPaint,ve=Wr.unstable_now,ST=Wr.unstable_getCurrentPriorityLevel,Eg=Wr.unstable_ImmediatePriority,K5=Wr.unstable_UserBlockingPriority,S0=Wr.unstable_NormalPriority,TT=Wr.unstable_LowPriority,Z5=Wr.unstable_IdlePriority,Ou=null,Oi=null;function _T(e){if(Oi&&typeof Oi.onCommitFiberRoot=="function")try{Oi.onCommitFiberRoot(Ou,e,void 0,(e.current.flags&128)===128)}catch{}}var vi=Math.clz32?Math.clz32:AT,BT=Math.log,LT=Math.LN2;function AT(e){return e>>>=0,e===0?32:31-(BT(e)/LT|0)|0}var hh=64,uh=4194304;function wl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function T0(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,n=e.suspendedLanes,a=e.pingedLanes,s=r&268435455;if(s!==0){var o=s&~n;o!==0?i=wl(o):(a&=s,a!==0&&(i=wl(a)))}else s=r&~n,s!==0?i=wl(s):a!==0&&(i=wl(a));if(i===0)return 0;if(t!==0&&t!==i&&!(t&n)&&(n=i&-i,a=t&-t,n>=a||n===16&&(a&4194240)!==0))return t;if(i&4&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)r=31-vi(t),n=1<<r,i|=e[r],t&=~n;return i}function ET(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function MT(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,n=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-vi(a),o=1<<s,l=n[s];l===-1?(!(o&r)||o&i)&&(n[s]=ET(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function wp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function J5(){var e=hh;return hh<<=1,!(hh&4194240)&&(hh=64),e}function Jd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Dc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vi(t),e[t]=r}function FT(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-vi(r),a=1<<n;t[n]=0,i[n]=-1,e[n]=-1,r&=~a}}function Mg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-vi(r),n=1<<i;n&t|e[i]&t&&(e[i]|=t),r&=~n}}var Qt=0;function t3(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var e3,Fg,r3,i3,n3,Sp=!1,dh=[],Xn=null,Qn=null,Kn=null,ic=new Map,nc=new Map,Nn=[],$T="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function wy(e,t){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":ic.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nc.delete(t.pointerId)}}function rl(e,t,r,i,n,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:a,targetContainers:[n]},t!==null&&(t=Oc(t),t!==null&&Fg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function IT(e,t,r,i,n){switch(t){case"focusin":return Xn=rl(Xn,e,t,r,i,n),!0;case"dragenter":return Qn=rl(Qn,e,t,r,i,n),!0;case"mouseover":return Kn=rl(Kn,e,t,r,i,n),!0;case"pointerover":var a=n.pointerId;return ic.set(a,rl(ic.get(a)||null,e,t,r,i,n)),!0;case"gotpointercapture":return a=n.pointerId,nc.set(a,rl(nc.get(a)||null,e,t,r,i,n)),!0}return!1}function a3(e){var t=Da(e.target);if(t!==null){var r=hs(t);if(r!==null){if(t=r.tag,t===13){if(t=G5(r),t!==null){e.blockedOn=t,n3(e.priority,function(){r3(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Tp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);vp=i,r.target.dispatchEvent(i),vp=null}else return t=Oc(r),t!==null&&Fg(t),e.blockedOn=r,!1;t.shift()}return!0}function Sy(e,t,r){Qh(e)&&r.delete(t)}function zT(){Sp=!1,Xn!==null&&Qh(Xn)&&(Xn=null),Qn!==null&&Qh(Qn)&&(Qn=null),Kn!==null&&Qh(Kn)&&(Kn=null),ic.forEach(Sy),nc.forEach(Sy)}function il(e,t){e.blockedOn===t&&(e.blockedOn=null,Sp||(Sp=!0,Wr.unstable_scheduleCallback(Wr.unstable_NormalPriority,zT)))}function ac(e){function t(n){return il(n,e)}if(0<dh.length){il(dh[0],e);for(var r=1;r<dh.length;r++){var i=dh[r];i.blockedOn===e&&(i.blockedOn=null)}}for(Xn!==null&&il(Xn,e),Qn!==null&&il(Qn,e),Kn!==null&&il(Kn,e),ic.forEach(t),nc.forEach(t),r=0;r<Nn.length;r++)i=Nn[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<Nn.length&&(r=Nn[0],r.blockedOn===null);)a3(r),r.blockedOn===null&&Nn.shift()}var Zs=Cn.ReactCurrentBatchConfig,_0=!0;function DT(e,t,r,i){var n=Qt,a=Zs.transition;Zs.transition=null;try{Qt=1,$g(e,t,r,i)}finally{Qt=n,Zs.transition=a}}function RT(e,t,r,i){var n=Qt,a=Zs.transition;Zs.transition=null;try{Qt=4,$g(e,t,r,i)}finally{Qt=n,Zs.transition=a}}function $g(e,t,r,i){if(_0){var n=Tp(e,t,r,i);if(n===null)hf(e,t,i,B0,r),wy(e,i);else if(IT(n,e,t,r,i))i.stopPropagation();else if(wy(e,i),t&4&&-1<$T.indexOf(e)){for(;n!==null;){var a=Oc(n);if(a!==null&&e3(a),a=Tp(e,t,r,i),a===null&&hf(e,t,i,B0,r),a===n)break;n=a}n!==null&&i.stopPropagation()}else hf(e,t,i,null,r)}}var B0=null;function Tp(e,t,r,i){if(B0=null,e=Ag(i),e=Da(e),e!==null)if(t=hs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=G5(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return B0=e,null}function s3(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ST()){case Eg:return 1;case K5:return 4;case S0:case TT:return 16;case Z5:return 536870912;default:return 16}default:return 16}}var qn=null,Ig=null,Kh=null;function o3(){if(Kh)return Kh;var e,t=Ig,r=t.length,i,n="value"in qn?qn.value:qn.textContent,a=n.length;for(e=0;e<r&&t[e]===n[e];e++);var s=r-e;for(i=1;i<=s&&t[r-i]===n[a-i];i++);return Kh=n.slice(e,1<i?1-i:void 0)}function Zh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fh(){return!0}function Ty(){return!1}function Gr(e){function t(r,i,n,a,s){this._reactName=r,this._targetInst=n,this.type=i,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(r=e[o],this[o]=r?r(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?fh:Ty,this.isPropagationStopped=Ty,this}return fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=fh)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=fh)},persist:function(){},isPersistent:fh}),t}var Po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zg=Gr(Po),Rc=fe({},Po,{view:0,detail:0}),OT=Gr(Rc),tf,ef,nl,Pu=fe({},Rc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nl&&(nl&&e.type==="mousemove"?(tf=e.screenX-nl.screenX,ef=e.screenY-nl.screenY):ef=tf=0,nl=e),tf)},movementY:function(e){return"movementY"in e?e.movementY:ef}}),_y=Gr(Pu),PT=fe({},Pu,{dataTransfer:0}),NT=Gr(PT),jT=fe({},Rc,{relatedTarget:0}),rf=Gr(jT),qT=fe({},Po,{animationName:0,elapsedTime:0,pseudoElement:0}),WT=Gr(qT),HT=fe({},Po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UT=Gr(HT),YT=fe({},Po,{data:0}),By=Gr(YT),GT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},XT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=XT[e])?!!t[e]:!1}function Dg(){return QT}var KT=fe({},Rc,{key:function(e){if(e.key){var t=GT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dg,charCode:function(e){return e.type==="keypress"?Zh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ZT=Gr(KT),JT=fe({},Pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=Gr(JT),t_=fe({},Rc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dg}),e_=Gr(t_),r_=fe({},Po,{propertyName:0,elapsedTime:0,pseudoElement:0}),i_=Gr(r_),n_=fe({},Pu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a_=Gr(n_),s_=[9,13,27,32],Rg=pn&&"CompositionEvent"in window,Rl=null;pn&&"documentMode"in document&&(Rl=document.documentMode);var o_=pn&&"TextEvent"in window&&!Rl,l3=pn&&(!Rg||Rl&&8<Rl&&11>=Rl),Ay=" ",Ey=!1;function c3(e,t){switch(e){case"keyup":return s_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Os=!1;function l_(e,t){switch(e){case"compositionend":return h3(t);case"keypress":return t.which!==32?null:(Ey=!0,Ay);case"textInput":return e=t.data,e===Ay&&Ey?null:e;default:return null}}function c_(e,t){if(Os)return e==="compositionend"||!Rg&&c3(e,t)?(e=o3(),Kh=Ig=qn=null,Os=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return l3&&t.locale!=="ko"?null:t.data;default:return null}}var h_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function My(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!h_[e.type]:t==="textarea"}function u3(e,t,r,i){q5(i),t=L0(t,"onChange"),0<t.length&&(r=new zg("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Ol=null,sc=null;function u_(e){k3(e,0)}function Nu(e){var t=js(e);if(z5(t))return e}function d_(e,t){if(e==="change")return t}var d3=!1;if(pn){var nf;if(pn){var af="oninput"in document;if(!af){var Fy=document.createElement("div");Fy.setAttribute("oninput","return;"),af=typeof Fy.oninput=="function"}nf=af}else nf=!1;d3=nf&&(!document.documentMode||9<document.documentMode)}function $y(){Ol&&(Ol.detachEvent("onpropertychange",f3),sc=Ol=null)}function f3(e){if(e.propertyName==="value"&&Nu(sc)){var t=[];u3(t,sc,e,Ag(e)),Y5(u_,t)}}function f_(e,t,r){e==="focusin"?($y(),Ol=t,sc=r,Ol.attachEvent("onpropertychange",f3)):e==="focusout"&&$y()}function p_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nu(sc)}function g_(e,t){if(e==="click")return Nu(t)}function m_(e,t){if(e==="input"||e==="change")return Nu(t)}function y_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wi=typeof Object.is=="function"?Object.is:y_;function oc(e,t){if(wi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var n=r[i];if(!op.call(t,n)||!wi(e[n],t[n]))return!1}return!0}function Iy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zy(e,t){var r=Iy(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Iy(r)}}function p3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?p3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g3(){for(var e=window,t=C0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=C0(e.document)}return t}function Og(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function x_(e){var t=g3(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&p3(r.ownerDocument.documentElement,r)){if(i!==null&&Og(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,a=Math.min(i.start,n);i=i.end===void 0?a:Math.min(i.end,n),!e.extend&&a>i&&(n=i,i=a,a=n),n=zy(r,a);var s=zy(r,i);n&&s&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var v_=pn&&"documentMode"in document&&11>=document.documentMode,Ps=null,_p=null,Pl=null,Bp=!1;function Dy(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Bp||Ps==null||Ps!==C0(i)||(i=Ps,"selectionStart"in i&&Og(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Pl&&oc(Pl,i)||(Pl=i,i=L0(_p,"onSelect"),0<i.length&&(t=new zg("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Ps)))}function ph(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ns={animationend:ph("Animation","AnimationEnd"),animationiteration:ph("Animation","AnimationIteration"),animationstart:ph("Animation","AnimationStart"),transitionend:ph("Transition","TransitionEnd")},sf={},m3={};pn&&(m3=document.createElement("div").style,"AnimationEvent"in window||(delete Ns.animationend.animation,delete Ns.animationiteration.animation,delete Ns.animationstart.animation),"TransitionEvent"in window||delete Ns.transitionend.transition);function ju(e){if(sf[e])return sf[e];if(!Ns[e])return e;var t=Ns[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in m3)return sf[e]=t[r];return e}var y3=ju("animationend"),x3=ju("animationiteration"),v3=ju("animationstart"),b3=ju("transitionend"),C3=new Map,Ry="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ma(e,t){C3.set(e,t),cs(t,[e])}for(var of=0;of<Ry.length;of++){var lf=Ry[of],b_=lf.toLowerCase(),C_=lf[0].toUpperCase()+lf.slice(1);ma(b_,"on"+C_)}ma(y3,"onAnimationEnd");ma(x3,"onAnimationIteration");ma(v3,"onAnimationStart");ma("dblclick","onDoubleClick");ma("focusin","onFocus");ma("focusout","onBlur");ma(b3,"onTransitionEnd");bo("onMouseEnter",["mouseout","mouseover"]);bo("onMouseLeave",["mouseout","mouseover"]);bo("onPointerEnter",["pointerout","pointerover"]);bo("onPointerLeave",["pointerout","pointerover"]);cs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cs("onBeforeInput",["compositionend","keypress","textInput","paste"]);cs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),k_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sl));function Oy(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,bT(i,t,void 0,e),e.currentTarget=null}function k3(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],n=i.event;i=i.listeners;t:{var a=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==a&&n.isPropagationStopped())break t;Oy(n,o,c),a=l}else for(s=0;s<i.length;s++){if(o=i[s],l=o.instance,c=o.currentTarget,o=o.listener,l!==a&&n.isPropagationStopped())break t;Oy(n,o,c),a=l}}}if(w0)throw e=kp,w0=!1,kp=null,e}function ee(e,t){var r=t[Fp];r===void 0&&(r=t[Fp]=new Set);var i=e+"__bubble";r.has(i)||(w3(t,e,2,!1),r.add(i))}function cf(e,t,r){var i=0;t&&(i|=4),w3(r,e,i,t)}var gh="_reactListening"+Math.random().toString(36).slice(2);function lc(e){if(!e[gh]){e[gh]=!0,E5.forEach(function(r){r!=="selectionchange"&&(k_.has(r)||cf(r,!1,e),cf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gh]||(t[gh]=!0,cf("selectionchange",!1,t))}}function w3(e,t,r,i){switch(s3(t)){case 1:var n=DT;break;case 4:n=RT;break;default:n=$g}r=n.bind(null,t,r,e),n=void 0,!Cp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),i?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function hf(e,t,r,i,n){var a=i;if(!(t&1)&&!(t&2)&&i!==null)t:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var o=i.stateNode.containerInfo;if(o===n||o.nodeType===8&&o.parentNode===n)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;s=s.return}for(;o!==null;){if(s=Da(o),s===null)return;if(l=s.tag,l===5||l===6){i=a=s;continue t}o=o.parentNode}}i=i.return}Y5(function(){var c=a,h=Ag(r),u=[];t:{var f=C3.get(e);if(f!==void 0){var d=zg,g=e;switch(e){case"keypress":if(Zh(r)===0)break t;case"keydown":case"keyup":d=ZT;break;case"focusin":g="focus",d=rf;break;case"focusout":g="blur",d=rf;break;case"beforeblur":case"afterblur":d=rf;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=_y;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=NT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=e_;break;case y3:case x3:case v3:d=WT;break;case b3:d=i_;break;case"scroll":d=OT;break;case"wheel":d=a_;break;case"copy":case"cut":case"paste":d=UT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=Ly}var p=(t&4)!==0,m=!p&&e==="scroll",y=p?f!==null?f+"Capture":null:f;p=[];for(var x=c,k;x!==null;){k=x;var T=k.stateNode;if(k.tag===5&&T!==null&&(k=T,y!==null&&(T=rc(x,y),T!=null&&p.push(cc(x,T,k)))),m)break;x=x.return}0<p.length&&(f=new d(f,g,null,r,h),u.push({event:f,listeners:p}))}}if(!(t&7)){t:{if(f=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",f&&r!==vp&&(g=r.relatedTarget||r.fromElement)&&(Da(g)||g[gn]))break t;if((d||f)&&(f=h.window===h?h:(f=h.ownerDocument)?f.defaultView||f.parentWindow:window,d?(g=r.relatedTarget||r.toElement,d=c,g=g?Da(g):null,g!==null&&(m=hs(g),g!==m||g.tag!==5&&g.tag!==6)&&(g=null)):(d=null,g=c),d!==g)){if(p=_y,T="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(p=Ly,T="onPointerLeave",y="onPointerEnter",x="pointer"),m=d==null?f:js(d),k=g==null?f:js(g),f=new p(T,x+"leave",d,r,h),f.target=m,f.relatedTarget=k,T=null,Da(h)===c&&(p=new p(y,x+"enter",g,r,h),p.target=k,p.relatedTarget=m,T=p),m=T,d&&g)e:{for(p=d,y=g,x=0,k=p;k;k=ks(k))x++;for(k=0,T=y;T;T=ks(T))k++;for(;0<x-k;)p=ks(p),x--;for(;0<k-x;)y=ks(y),k--;for(;x--;){if(p===y||y!==null&&p===y.alternate)break e;p=ks(p),y=ks(y)}p=null}else p=null;d!==null&&Py(u,f,d,p,!1),g!==null&&m!==null&&Py(u,m,g,p,!0)}}t:{if(f=c?js(c):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var _=d_;else if(My(f))if(d3)_=m_;else{_=p_;var M=f_}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=g_);if(_&&(_=_(e,c))){u3(u,_,r,h);break t}M&&M(e,f,c),e==="focusout"&&(M=f._wrapperState)&&M.controlled&&f.type==="number"&&pp(f,"number",f.value)}switch(M=c?js(c):window,e){case"focusin":(My(M)||M.contentEditable==="true")&&(Ps=M,_p=c,Pl=null);break;case"focusout":Pl=_p=Ps=null;break;case"mousedown":Bp=!0;break;case"contextmenu":case"mouseup":case"dragend":Bp=!1,Dy(u,r,h);break;case"selectionchange":if(v_)break;case"keydown":case"keyup":Dy(u,r,h)}var S;if(Rg)t:{switch(e){case"compositionstart":var A="onCompositionStart";break t;case"compositionend":A="onCompositionEnd";break t;case"compositionupdate":A="onCompositionUpdate";break t}A=void 0}else Os?c3(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(l3&&r.locale!=="ko"&&(Os||A!=="onCompositionStart"?A==="onCompositionEnd"&&Os&&(S=o3()):(qn=h,Ig="value"in qn?qn.value:qn.textContent,Os=!0)),M=L0(c,A),0<M.length&&(A=new By(A,e,null,r,h),u.push({event:A,listeners:M}),S?A.data=S:(S=h3(r),S!==null&&(A.data=S)))),(S=o_?l_(e,r):c_(e,r))&&(c=L0(c,"onBeforeInput"),0<c.length&&(h=new By("onBeforeInput","beforeinput",null,r,h),u.push({event:h,listeners:c}),h.data=S))}k3(u,t)})}function cc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function L0(e,t){for(var r=t+"Capture",i=[];e!==null;){var n=e,a=n.stateNode;n.tag===5&&a!==null&&(n=a,a=rc(e,r),a!=null&&i.unshift(cc(e,a,n)),a=rc(e,t),a!=null&&i.push(cc(e,a,n))),e=e.return}return i}function ks(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Py(e,t,r,i,n){for(var a=t._reactName,s=[];r!==null&&r!==i;){var o=r,l=o.alternate,c=o.stateNode;if(l!==null&&l===i)break;o.tag===5&&c!==null&&(o=c,n?(l=rc(r,a),l!=null&&s.unshift(cc(r,l,o))):n||(l=rc(r,a),l!=null&&s.push(cc(r,l,o)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var w_=/\r\n?/g,S_=/\u0000|\uFFFD/g;function Ny(e){return(typeof e=="string"?e:""+e).replace(w_,`
|
|
39
|
+
`).replace(S_,"")}function mh(e,t,r){if(t=Ny(t),Ny(e)!==t&&r)throw Error(it(425))}function A0(){}var Lp=null,Ap=null;function Ep(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Mp=typeof setTimeout=="function"?setTimeout:void 0,T_=typeof clearTimeout=="function"?clearTimeout:void 0,jy=typeof Promise=="function"?Promise:void 0,__=typeof queueMicrotask=="function"?queueMicrotask:typeof jy<"u"?function(e){return jy.resolve(null).then(e).catch(B_)}:Mp;function B_(e){setTimeout(function(){throw e})}function uf(e,t){var r=t,i=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(i===0){e.removeChild(n),ac(t);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=n}while(r);ac(t)}function Zn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function qy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var No=Math.random().toString(36).slice(2),Ii="__reactFiber$"+No,hc="__reactProps$"+No,gn="__reactContainer$"+No,Fp="__reactEvents$"+No,L_="__reactListeners$"+No,A_="__reactHandles$"+No;function Da(e){var t=e[Ii];if(t)return t;for(var r=e.parentNode;r;){if(t=r[gn]||r[Ii]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=qy(e);e!==null;){if(r=e[Ii])return r;e=qy(e)}return t}e=r,r=e.parentNode}return null}function Oc(e){return e=e[Ii]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function js(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(it(33))}function qu(e){return e[hc]||null}var $p=[],qs=-1;function ya(e){return{current:e}}function ie(e){0>qs||(e.current=$p[qs],$p[qs]=null,qs--)}function te(e,t){qs++,$p[qs]=e.current,e.current=t}var oa={},sr=ya(oa),Mr=ya(!1),Va=oa;function Co(e,t){var r=e.type.contextTypes;if(!r)return oa;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var n={},a;for(a in r)n[a]=t[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Fr(e){return e=e.childContextTypes,e!=null}function E0(){ie(Mr),ie(sr)}function Wy(e,t,r){if(sr.current!==oa)throw Error(it(168));te(sr,t),te(Mr,r)}function S3(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var n in i)if(!(n in t))throw Error(it(108,fT(e)||"Unknown",n));return fe({},r,i)}function M0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oa,Va=sr.current,te(sr,e),te(Mr,Mr.current),!0}function Hy(e,t,r){var i=e.stateNode;if(!i)throw Error(it(169));r?(e=S3(e,t,Va),i.__reactInternalMemoizedMergedChildContext=e,ie(Mr),ie(sr),te(sr,e)):ie(Mr),te(Mr,r)}var sn=null,Wu=!1,df=!1;function T3(e){sn===null?sn=[e]:sn.push(e)}function E_(e){Wu=!0,T3(e)}function xa(){if(!df&&sn!==null){df=!0;var e=0,t=Qt;try{var r=sn;for(Qt=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}sn=null,Wu=!1}catch(n){throw sn!==null&&(sn=sn.slice(e+1)),Q5(Eg,xa),n}finally{Qt=t,df=!1}}return null}var Ws=[],Hs=0,F0=null,$0=0,Jr=[],ti=0,Xa=null,ln=1,cn="";function Ma(e,t){Ws[Hs++]=$0,Ws[Hs++]=F0,F0=e,$0=t}function _3(e,t,r){Jr[ti++]=ln,Jr[ti++]=cn,Jr[ti++]=Xa,Xa=e;var i=ln;e=cn;var n=32-vi(i)-1;i&=~(1<<n),r+=1;var a=32-vi(t)+n;if(30<a){var s=n-n%5;a=(i&(1<<s)-1).toString(32),i>>=s,n-=s,ln=1<<32-vi(t)+n|r<<n|i,cn=a+e}else ln=1<<a|r<<n|i,cn=e}function Pg(e){e.return!==null&&(Ma(e,1),_3(e,1,0))}function Ng(e){for(;e===F0;)F0=Ws[--Hs],Ws[Hs]=null,$0=Ws[--Hs],Ws[Hs]=null;for(;e===Xa;)Xa=Jr[--ti],Jr[ti]=null,cn=Jr[--ti],Jr[ti]=null,ln=Jr[--ti],Jr[ti]=null}var Nr=null,Pr=null,ae=!1,pi=null;function B3(e,t){var r=ei(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Uy(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Nr=e,Pr=Zn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Nr=e,Pr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Xa!==null?{id:ln,overflow:cn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ei(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Nr=e,Pr=null,!0):!1;default:return!1}}function Ip(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zp(e){if(ae){var t=Pr;if(t){var r=t;if(!Uy(e,t)){if(Ip(e))throw Error(it(418));t=Zn(r.nextSibling);var i=Nr;t&&Uy(e,t)?B3(i,r):(e.flags=e.flags&-4097|2,ae=!1,Nr=e)}}else{if(Ip(e))throw Error(it(418));e.flags=e.flags&-4097|2,ae=!1,Nr=e}}}function Yy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Nr=e}function yh(e){if(e!==Nr)return!1;if(!ae)return Yy(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ep(e.type,e.memoizedProps)),t&&(t=Pr)){if(Ip(e))throw L3(),Error(it(418));for(;t;)B3(e,t),t=Zn(t.nextSibling)}if(Yy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(it(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Pr=Zn(e.nextSibling);break t}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Pr=null}}else Pr=Nr?Zn(e.stateNode.nextSibling):null;return!0}function L3(){for(var e=Pr;e;)e=Zn(e.nextSibling)}function ko(){Pr=Nr=null,ae=!1}function jg(e){pi===null?pi=[e]:pi.push(e)}var M_=Cn.ReactCurrentBatchConfig;function al(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(it(309));var i=r.stateNode}if(!i)throw Error(it(147,e));var n=i,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=n.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(it(284));if(!r._owner)throw Error(it(290,e))}return e}function xh(e,t){throw e=Object.prototype.toString.call(t),Error(it(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gy(e){var t=e._init;return t(e._payload)}function A3(e){function t(y,x){if(e){var k=y.deletions;k===null?(y.deletions=[x],y.flags|=16):k.push(x)}}function r(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function i(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function n(y,x){return y=ra(y,x),y.index=0,y.sibling=null,y}function a(y,x,k){return y.index=k,e?(k=y.alternate,k!==null?(k=k.index,k<x?(y.flags|=2,x):k):(y.flags|=2,x)):(y.flags|=1048576,x)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function o(y,x,k,T){return x===null||x.tag!==6?(x=vf(k,y.mode,T),x.return=y,x):(x=n(x,k),x.return=y,x)}function l(y,x,k,T){var _=k.type;return _===Rs?h(y,x,k.props.children,T,k.key):x!==null&&(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Rn&&Gy(_)===x.type)?(T=n(x,k.props),T.ref=al(y,x,k),T.return=y,T):(T=a0(k.type,k.key,k.props,null,y.mode,T),T.ref=al(y,x,k),T.return=y,T)}function c(y,x,k,T){return x===null||x.tag!==4||x.stateNode.containerInfo!==k.containerInfo||x.stateNode.implementation!==k.implementation?(x=bf(k,y.mode,T),x.return=y,x):(x=n(x,k.children||[]),x.return=y,x)}function h(y,x,k,T,_){return x===null||x.tag!==7?(x=Ha(k,y.mode,T,_),x.return=y,x):(x=n(x,k),x.return=y,x)}function u(y,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return x=vf(""+x,y.mode,k),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case oh:return k=a0(x.type,x.key,x.props,null,y.mode,k),k.ref=al(y,null,x),k.return=y,k;case Ds:return x=bf(x,y.mode,k),x.return=y,x;case Rn:var T=x._init;return u(y,T(x._payload),k)}if(kl(x)||tl(x))return x=Ha(x,y.mode,k,null),x.return=y,x;xh(y,x)}return null}function f(y,x,k,T){var _=x!==null?x.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return _!==null?null:o(y,x,""+k,T);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case oh:return k.key===_?l(y,x,k,T):null;case Ds:return k.key===_?c(y,x,k,T):null;case Rn:return _=k._init,f(y,x,_(k._payload),T)}if(kl(k)||tl(k))return _!==null?null:h(y,x,k,T,null);xh(y,k)}return null}function d(y,x,k,T,_){if(typeof T=="string"&&T!==""||typeof T=="number")return y=y.get(k)||null,o(x,y,""+T,_);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case oh:return y=y.get(T.key===null?k:T.key)||null,l(x,y,T,_);case Ds:return y=y.get(T.key===null?k:T.key)||null,c(x,y,T,_);case Rn:var M=T._init;return d(y,x,k,M(T._payload),_)}if(kl(T)||tl(T))return y=y.get(k)||null,h(x,y,T,_,null);xh(x,T)}return null}function g(y,x,k,T){for(var _=null,M=null,S=x,A=x=0,N=null;S!==null&&A<k.length;A++){S.index>A?(N=S,S=null):N=S.sibling;var z=f(y,S,k[A],T);if(z===null){S===null&&(S=N);break}e&&S&&z.alternate===null&&t(y,S),x=a(z,x,A),M===null?_=z:M.sibling=z,M=z,S=N}if(A===k.length)return r(y,S),ae&&Ma(y,A),_;if(S===null){for(;A<k.length;A++)S=u(y,k[A],T),S!==null&&(x=a(S,x,A),M===null?_=S:M.sibling=S,M=S);return ae&&Ma(y,A),_}for(S=i(y,S);A<k.length;A++)N=d(S,y,A,k[A],T),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?A:N.key),x=a(N,x,A),M===null?_=N:M.sibling=N,M=N);return e&&S.forEach(function(P){return t(y,P)}),ae&&Ma(y,A),_}function p(y,x,k,T){var _=tl(k);if(typeof _!="function")throw Error(it(150));if(k=_.call(k),k==null)throw Error(it(151));for(var M=_=null,S=x,A=x=0,N=null,z=k.next();S!==null&&!z.done;A++,z=k.next()){S.index>A?(N=S,S=null):N=S.sibling;var P=f(y,S,z.value,T);if(P===null){S===null&&(S=N);break}e&&S&&P.alternate===null&&t(y,S),x=a(P,x,A),M===null?_=P:M.sibling=P,M=P,S=N}if(z.done)return r(y,S),ae&&Ma(y,A),_;if(S===null){for(;!z.done;A++,z=k.next())z=u(y,z.value,T),z!==null&&(x=a(z,x,A),M===null?_=z:M.sibling=z,M=z);return ae&&Ma(y,A),_}for(S=i(y,S);!z.done;A++,z=k.next())z=d(S,y,A,z.value,T),z!==null&&(e&&z.alternate!==null&&S.delete(z.key===null?A:z.key),x=a(z,x,A),M===null?_=z:M.sibling=z,M=z);return e&&S.forEach(function(U){return t(y,U)}),ae&&Ma(y,A),_}function m(y,x,k,T){if(typeof k=="object"&&k!==null&&k.type===Rs&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case oh:t:{for(var _=k.key,M=x;M!==null;){if(M.key===_){if(_=k.type,_===Rs){if(M.tag===7){r(y,M.sibling),x=n(M,k.props.children),x.return=y,y=x;break t}}else if(M.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Rn&&Gy(_)===M.type){r(y,M.sibling),x=n(M,k.props),x.ref=al(y,M,k),x.return=y,y=x;break t}r(y,M);break}else t(y,M);M=M.sibling}k.type===Rs?(x=Ha(k.props.children,y.mode,T,k.key),x.return=y,y=x):(T=a0(k.type,k.key,k.props,null,y.mode,T),T.ref=al(y,x,k),T.return=y,y=T)}return s(y);case Ds:t:{for(M=k.key;x!==null;){if(x.key===M)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){r(y,x.sibling),x=n(x,k.children||[]),x.return=y,y=x;break t}else{r(y,x);break}else t(y,x);x=x.sibling}x=bf(k,y.mode,T),x.return=y,y=x}return s(y);case Rn:return M=k._init,m(y,x,M(k._payload),T)}if(kl(k))return g(y,x,k,T);if(tl(k))return p(y,x,k,T);xh(y,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(r(y,x.sibling),x=n(x,k),x.return=y,y=x):(r(y,x),x=vf(k,y.mode,T),x.return=y,y=x),s(y)):r(y,x)}return m}var wo=A3(!0),E3=A3(!1),I0=ya(null),z0=null,Us=null,qg=null;function Wg(){qg=Us=z0=null}function Hg(e){var t=I0.current;ie(I0),e._currentValue=t}function Dp(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function Js(e,t){z0=e,qg=Us=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ar=!0),e.firstContext=null)}function ni(e){var t=e._currentValue;if(qg!==e)if(e={context:e,memoizedValue:t,next:null},Us===null){if(z0===null)throw Error(it(308));Us=e,z0.dependencies={lanes:0,firstContext:e}}else Us=Us.next=e;return t}var Ra=null;function Ug(e){Ra===null?Ra=[e]:Ra.push(e)}function M3(e,t,r,i){var n=t.interleaved;return n===null?(r.next=r,Ug(t)):(r.next=n.next,n.next=r),t.interleaved=r,mn(e,i)}function mn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var On=!1;function Yg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function F3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Nt&2){var n=i.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),i.pending=t,mn(e,r)}return n=i.interleaved,n===null?(t.next=t,Ug(i)):(t.next=n.next,n.next=t),i.interleaved=t,mn(e,r)}function Jh(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,Mg(e,r)}}function Vy(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var n=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?n=a=s:a=a.next=s,r=r.next}while(r!==null);a===null?n=a=t:a=a.next=t}else n=a=t;r={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:a,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function D0(e,t,r,i){var n=e.updateQueue;On=!1;var a=n.firstBaseUpdate,s=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var l=o,c=l.next;l.next=null,s===null?a=c:s.next=c,s=l;var h=e.alternate;h!==null&&(h=h.updateQueue,o=h.lastBaseUpdate,o!==s&&(o===null?h.firstBaseUpdate=c:o.next=c,h.lastBaseUpdate=l))}if(a!==null){var u=n.baseState;s=0,h=c=l=null,o=a;do{var f=o.lane,d=o.eventTime;if((i&f)===f){h!==null&&(h=h.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});t:{var g=e,p=o;switch(f=t,d=r,p.tag){case 1:if(g=p.payload,typeof g=="function"){u=g.call(d,u,f);break t}u=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,f=typeof g=="function"?g.call(d,u,f):g,f==null)break t;u=fe({},u,f);break t;case 2:On=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[o]:f.push(o))}else d={eventTime:d,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},h===null?(c=h=d,l=u):h=h.next=d,s|=f;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;f=o,o=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(h===null&&(l=u),n.baseState=l,n.firstBaseUpdate=c,n.lastBaseUpdate=h,t=n.shared.interleaved,t!==null){n=t;do s|=n.lane,n=n.next;while(n!==t)}else a===null&&(n.shared.lanes=0);Ka|=s,e.lanes=s,e.memoizedState=u}}function Xy(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],n=i.callback;if(n!==null){if(i.callback=null,i=r,typeof n!="function")throw Error(it(191,n));n.call(i)}}}var Pc={},Pi=ya(Pc),uc=ya(Pc),dc=ya(Pc);function Oa(e){if(e===Pc)throw Error(it(174));return e}function Gg(e,t){switch(te(dc,t),te(uc,e),te(Pi,Pc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mp(t,e)}ie(Pi),te(Pi,t)}function So(){ie(Pi),ie(uc),ie(dc)}function $3(e){Oa(dc.current);var t=Oa(Pi.current),r=mp(t,e.type);t!==r&&(te(uc,e),te(Pi,r))}function Vg(e){uc.current===e&&(ie(Pi),ie(uc))}var ce=ya(0);function R0(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ff=[];function Xg(){for(var e=0;e<ff.length;e++)ff[e]._workInProgressVersionPrimary=null;ff.length=0}var t0=Cn.ReactCurrentDispatcher,pf=Cn.ReactCurrentBatchConfig,Qa=0,ue=null,Fe=null,Ne=null,O0=!1,Nl=!1,fc=0,F_=0;function Ze(){throw Error(it(321))}function Qg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!wi(e[r],t[r]))return!1;return!0}function Kg(e,t,r,i,n,a){if(Qa=a,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,t0.current=e===null||e.memoizedState===null?D_:R_,e=r(i,n),Nl){a=0;do{if(Nl=!1,fc=0,25<=a)throw Error(it(301));a+=1,Ne=Fe=null,t.updateQueue=null,t0.current=O_,e=r(i,n)}while(Nl)}if(t0.current=P0,t=Fe!==null&&Fe.next!==null,Qa=0,Ne=Fe=ue=null,O0=!1,t)throw Error(it(300));return e}function Zg(){var e=fc!==0;return fc=0,e}function Mi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?ue.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function ai(){if(Fe===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=Ne===null?ue.memoizedState:Ne.next;if(t!==null)Ne=t,Fe=e;else{if(e===null)throw Error(it(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},Ne===null?ue.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function pc(e,t){return typeof t=="function"?t(e):t}function gf(e){var t=ai(),r=t.queue;if(r===null)throw Error(it(311));r.lastRenderedReducer=e;var i=Fe,n=i.baseQueue,a=r.pending;if(a!==null){if(n!==null){var s=n.next;n.next=a.next,a.next=s}i.baseQueue=n=a,r.pending=null}if(n!==null){a=n.next,i=i.baseState;var o=s=null,l=null,c=a;do{var h=c.lane;if((Qa&h)===h)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var u={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(o=l=u,s=i):l=l.next=u,ue.lanes|=h,Ka|=h}c=c.next}while(c!==null&&c!==a);l===null?s=i:l.next=o,wi(i,t.memoizedState)||(Ar=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,r.lastRenderedState=i}if(e=r.interleaved,e!==null){n=e;do a=n.lane,ue.lanes|=a,Ka|=a,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function mf(e){var t=ai(),r=t.queue;if(r===null)throw Error(it(311));r.lastRenderedReducer=e;var i=r.dispatch,n=r.pending,a=t.memoizedState;if(n!==null){r.pending=null;var s=n=n.next;do a=e(a,s.action),s=s.next;while(s!==n);wi(a,t.memoizedState)||(Ar=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function I3(){}function z3(e,t){var r=ue,i=ai(),n=t(),a=!wi(i.memoizedState,n);if(a&&(i.memoizedState=n,Ar=!0),i=i.queue,Jg(O3.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||Ne!==null&&Ne.memoizedState.tag&1){if(r.flags|=2048,gc(9,R3.bind(null,r,i,n,t),void 0,null),We===null)throw Error(it(349));Qa&30||D3(r,t,n)}return n}function D3(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function R3(e,t,r,i){t.value=r,t.getSnapshot=i,P3(t)&&N3(e)}function O3(e,t,r){return r(function(){P3(t)&&N3(e)})}function P3(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!wi(e,r)}catch{return!0}}function N3(e){var t=mn(e,1);t!==null&&bi(t,e,1,-1)}function Qy(e){var t=Mi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pc,lastRenderedState:e},t.queue=e,e=e.dispatch=z_.bind(null,ue,e),[t.memoizedState,e]}function gc(e,t,r,i){return e={tag:e,create:t,destroy:r,deps:i,next:null},t=ue.updateQueue,t===null?(t={lastEffect:null,stores:null},ue.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e)),e}function j3(){return ai().memoizedState}function e0(e,t,r,i){var n=Mi();ue.flags|=e,n.memoizedState=gc(1|t,r,void 0,i===void 0?null:i)}function Hu(e,t,r,i){var n=ai();i=i===void 0?null:i;var a=void 0;if(Fe!==null){var s=Fe.memoizedState;if(a=s.destroy,i!==null&&Qg(i,s.deps)){n.memoizedState=gc(t,r,a,i);return}}ue.flags|=e,n.memoizedState=gc(1|t,r,a,i)}function Ky(e,t){return e0(8390656,8,e,t)}function Jg(e,t){return Hu(2048,8,e,t)}function q3(e,t){return Hu(4,2,e,t)}function W3(e,t){return Hu(4,4,e,t)}function H3(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function U3(e,t,r){return r=r!=null?r.concat([e]):null,Hu(4,4,H3.bind(null,t,e),r)}function tm(){}function Y3(e,t){var r=ai();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&Qg(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function G3(e,t){var r=ai();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&Qg(t,i[1])?i[0]:(e=e(),r.memoizedState=[e,t],e)}function V3(e,t,r){return Qa&21?(wi(r,t)||(r=J5(),ue.lanes|=r,Ka|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ar=!0),e.memoizedState=r)}function $_(e,t){var r=Qt;Qt=r!==0&&4>r?r:4,e(!0);var i=pf.transition;pf.transition={};try{e(!1),t()}finally{Qt=r,pf.transition=i}}function X3(){return ai().memoizedState}function I_(e,t,r){var i=ea(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},Q3(e))K3(t,r);else if(r=M3(e,t,r,i),r!==null){var n=gr();bi(r,e,i,n),Z3(r,t,i)}}function z_(e,t,r){var i=ea(e),n={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(Q3(e))K3(t,n);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,r);if(n.hasEagerState=!0,n.eagerState=o,wi(o,s)){var l=t.interleaved;l===null?(n.next=n,Ug(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=M3(e,t,n,i),r!==null&&(n=gr(),bi(r,e,i,n),Z3(r,t,i))}}function Q3(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function K3(e,t){Nl=O0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Z3(e,t,r){if(r&4194240){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,Mg(e,r)}}var P0={readContext:ni,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},D_={readContext:ni,useCallback:function(e,t){return Mi().memoizedState=[e,t===void 0?null:t],e},useContext:ni,useEffect:Ky,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,e0(4194308,4,H3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return e0(4194308,4,e,t)},useInsertionEffect:function(e,t){return e0(4,2,e,t)},useMemo:function(e,t){var r=Mi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Mi();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=I_.bind(null,ue,e),[i.memoizedState,e]},useRef:function(e){var t=Mi();return e={current:e},t.memoizedState=e},useState:Qy,useDebugValue:tm,useDeferredValue:function(e){return Mi().memoizedState=e},useTransition:function(){var e=Qy(!1),t=e[0];return e=$_.bind(null,e[1]),Mi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=ue,n=Mi();if(ae){if(r===void 0)throw Error(it(407));r=r()}else{if(r=t(),We===null)throw Error(it(349));Qa&30||D3(i,t,r)}n.memoizedState=r;var a={value:r,getSnapshot:t};return n.queue=a,Ky(O3.bind(null,i,a,e),[e]),i.flags|=2048,gc(9,R3.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=Mi(),t=We.identifierPrefix;if(ae){var r=cn,i=ln;r=(i&~(1<<32-vi(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=fc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=F_++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},R_={readContext:ni,useCallback:Y3,useContext:ni,useEffect:Jg,useImperativeHandle:U3,useInsertionEffect:q3,useLayoutEffect:W3,useMemo:G3,useReducer:gf,useRef:j3,useState:function(){return gf(pc)},useDebugValue:tm,useDeferredValue:function(e){var t=ai();return V3(t,Fe.memoizedState,e)},useTransition:function(){var e=gf(pc)[0],t=ai().memoizedState;return[e,t]},useMutableSource:I3,useSyncExternalStore:z3,useId:X3,unstable_isNewReconciler:!1},O_={readContext:ni,useCallback:Y3,useContext:ni,useEffect:Jg,useImperativeHandle:U3,useInsertionEffect:q3,useLayoutEffect:W3,useMemo:G3,useReducer:mf,useRef:j3,useState:function(){return mf(pc)},useDebugValue:tm,useDeferredValue:function(e){var t=ai();return Fe===null?t.memoizedState=e:V3(t,Fe.memoizedState,e)},useTransition:function(){var e=mf(pc)[0],t=ai().memoizedState;return[e,t]},useMutableSource:I3,useSyncExternalStore:z3,useId:X3,unstable_isNewReconciler:!1};function di(e,t){if(e&&e.defaultProps){t=fe({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Rp(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:fe({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Uu={isMounted:function(e){return(e=e._reactInternals)?hs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var i=gr(),n=ea(e),a=hn(i,n);a.payload=t,r!=null&&(a.callback=r),t=Jn(e,a,n),t!==null&&(bi(t,e,n,i),Jh(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=gr(),n=ea(e),a=hn(i,n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Jn(e,a,n),t!==null&&(bi(t,e,n,i),Jh(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=gr(),i=ea(e),n=hn(r,i);n.tag=2,t!=null&&(n.callback=t),t=Jn(e,n,i),t!==null&&(bi(t,e,i,r),Jh(t,e,i))}};function Zy(e,t,r,i,n,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,s):t.prototype&&t.prototype.isPureReactComponent?!oc(r,i)||!oc(n,a):!0}function J3(e,t,r){var i=!1,n=oa,a=t.contextType;return typeof a=="object"&&a!==null?a=ni(a):(n=Fr(t)?Va:sr.current,i=t.contextTypes,a=(i=i!=null)?Co(e,n):oa),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Uu,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),t}function Jy(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&Uu.enqueueReplaceState(t,t.state,null)}function Op(e,t,r,i){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Yg(e);var a=t.contextType;typeof a=="object"&&a!==null?n.context=ni(a):(a=Fr(t)?Va:sr.current,n.context=Co(e,a)),n.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Rp(e,t,a,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Uu.enqueueReplaceState(n,n.state,null),D0(e,r,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function To(e,t){try{var r="",i=t;do r+=dT(i),i=i.return;while(i);var n=r}catch(a){n=`
|
|
40
|
+
Error generating stack: `+a.message+`
|
|
41
|
+
`+a.stack}return{value:e,source:t,stack:n,digest:null}}function yf(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Pp(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var P_=typeof WeakMap=="function"?WeakMap:Map;function t6(e,t,r){r=hn(-1,r),r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){j0||(j0=!0,Xp=i),Pp(e,t)},r}function e6(e,t,r){r=hn(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var n=t.value;r.payload=function(){return i(n)},r.callback=function(){Pp(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Pp(e,t),typeof i!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function tx(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new P_;var n=new Set;i.set(t,n)}else n=i.get(t),n===void 0&&(n=new Set,i.set(t,n));n.has(r)||(n.add(r),e=J_.bind(null,e,t,r),t.then(e,e))}function ex(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function rx(e,t,r,i,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=hn(-1,1),t.tag=2,Jn(r,t,1))),r.lanes|=1),e)}var N_=Cn.ReactCurrentOwner,Ar=!1;function hr(e,t,r,i){t.child=e===null?E3(t,null,r,i):wo(t,e.child,r,i)}function ix(e,t,r,i,n){r=r.render;var a=t.ref;return Js(t,n),i=Kg(e,t,r,i,a,n),r=Zg(),e!==null&&!Ar?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,yn(e,t,n)):(ae&&r&&Pg(t),t.flags|=1,hr(e,t,i,n),t.child)}function nx(e,t,r,i,n){if(e===null){var a=r.type;return typeof a=="function"&&!lm(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,r6(e,t,a,i,n)):(e=a0(r.type,null,i,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&n)){var s=a.memoizedProps;if(r=r.compare,r=r!==null?r:oc,r(s,i)&&e.ref===t.ref)return yn(e,t,n)}return t.flags|=1,e=ra(a,i),e.ref=t.ref,e.return=t,t.child=e}function r6(e,t,r,i,n){if(e!==null){var a=e.memoizedProps;if(oc(a,i)&&e.ref===t.ref)if(Ar=!1,t.pendingProps=i=a,(e.lanes&n)!==0)e.flags&131072&&(Ar=!0);else return t.lanes=e.lanes,yn(e,t,n)}return Np(e,t,r,i,n)}function i6(e,t,r){var i=t.pendingProps,n=i.children,a=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(Gs,Rr),Rr|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,te(Gs,Rr),Rr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:r,te(Gs,Rr),Rr|=i}else a!==null?(i=a.baseLanes|r,t.memoizedState=null):i=r,te(Gs,Rr),Rr|=i;return hr(e,t,n,r),t.child}function n6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Np(e,t,r,i,n){var a=Fr(r)?Va:sr.current;return a=Co(t,a),Js(t,n),r=Kg(e,t,r,i,a,n),i=Zg(),e!==null&&!Ar?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,yn(e,t,n)):(ae&&i&&Pg(t),t.flags|=1,hr(e,t,r,n),t.child)}function ax(e,t,r,i,n){if(Fr(r)){var a=!0;M0(t)}else a=!1;if(Js(t,n),t.stateNode===null)r0(e,t),J3(t,r,i),Op(t,r,i,n),i=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=ni(c):(c=Fr(r)?Va:sr.current,c=Co(t,c));var h=r.getDerivedStateFromProps,u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";u||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==i||l!==c)&&Jy(t,s,i,c),On=!1;var f=t.memoizedState;s.state=f,D0(t,i,s,n),l=t.memoizedState,o!==i||f!==l||Mr.current||On?(typeof h=="function"&&(Rp(t,r,h,i),l=t.memoizedState),(o=On||Zy(t,r,o,i,f,l,c))?(u||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),s.props=i,s.state=l,s.context=c,i=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,F3(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:di(t.type,o),s.props=c,u=t.pendingProps,f=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=ni(l):(l=Fr(r)?Va:sr.current,l=Co(t,l));var d=r.getDerivedStateFromProps;(h=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==u||f!==l)&&Jy(t,s,i,l),On=!1,f=t.memoizedState,s.state=f,D0(t,i,s,n);var g=t.memoizedState;o!==u||f!==g||Mr.current||On?(typeof d=="function"&&(Rp(t,r,d,i),g=t.memoizedState),(c=On||Zy(t,r,c,i,f,g,l)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=g),s.props=i,s.state=g,s.context=l,i=c):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return jp(e,t,r,i,a,n)}function jp(e,t,r,i,n,a){n6(e,t);var s=(t.flags&128)!==0;if(!i&&!s)return n&&Hy(t,r,!1),yn(e,t,a);i=t.stateNode,N_.current=t;var o=s&&typeof r.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&s?(t.child=wo(t,e.child,null,a),t.child=wo(t,null,o,a)):hr(e,t,o,a),t.memoizedState=i.state,n&&Hy(t,r,!0),t.child}function a6(e){var t=e.stateNode;t.pendingContext?Wy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wy(e,t.context,!1),Gg(e,t.containerInfo)}function sx(e,t,r,i,n){return ko(),jg(n),t.flags|=256,hr(e,t,r,i),t.child}var qp={dehydrated:null,treeContext:null,retryLane:0};function Wp(e){return{baseLanes:e,cachePool:null,transitions:null}}function s6(e,t,r){var i=t.pendingProps,n=ce.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(n&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),te(ce,n&1),e===null)return zp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},!(i&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=Vu(s,i,0,null),e=Ha(e,i,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Wp(r),t.memoizedState=qp,e):em(t,s));if(n=e.memoizedState,n!==null&&(o=n.dehydrated,o!==null))return j_(e,t,s,i,o,n,r);if(a){a=i.fallback,s=t.mode,n=e.child,o=n.sibling;var l={mode:"hidden",children:i.children};return!(s&1)&&t.child!==n?(i=t.child,i.childLanes=0,i.pendingProps=l,t.deletions=null):(i=ra(n,l),i.subtreeFlags=n.subtreeFlags&14680064),o!==null?a=ra(o,a):(a=Ha(a,s,r,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=e.child.memoizedState,s=s===null?Wp(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~r,t.memoizedState=qp,i}return a=e.child,e=a.sibling,i=ra(a,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=r),i.return=t,i.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function em(e,t){return t=Vu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vh(e,t,r,i){return i!==null&&jg(i),wo(t,e.child,null,r),e=em(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function j_(e,t,r,i,n,a,s){if(r)return t.flags&256?(t.flags&=-257,i=yf(Error(it(422))),vh(e,t,s,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=i.fallback,n=t.mode,i=Vu({mode:"visible",children:i.children},n,0,null),a=Ha(a,n,s,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,t.mode&1&&wo(t,e.child,null,s),t.child.memoizedState=Wp(s),t.memoizedState=qp,a);if(!(t.mode&1))return vh(e,t,s,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var o=i.dgst;return i=o,a=Error(it(419)),i=yf(a,i,void 0),vh(e,t,s,i)}if(o=(s&e.childLanes)!==0,Ar||o){if(i=We,i!==null){switch(s&-s){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(i.suspendedLanes|s)?0:n,n!==0&&n!==a.retryLane&&(a.retryLane=n,mn(e,n),bi(i,e,n,-1))}return om(),i=yf(Error(it(421))),vh(e,t,s,i)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=tB.bind(null,e),n._reactRetry=t,null):(e=a.treeContext,Pr=Zn(n.nextSibling),Nr=t,ae=!0,pi=null,e!==null&&(Jr[ti++]=ln,Jr[ti++]=cn,Jr[ti++]=Xa,ln=e.id,cn=e.overflow,Xa=t),t=em(t,i.children),t.flags|=4096,t)}function ox(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Dp(e.return,t,r)}function xf(e,t,r,i,n){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:n}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=r,a.tailMode=n)}function o6(e,t,r){var i=t.pendingProps,n=i.revealOrder,a=i.tail;if(hr(e,t,i.children,r),i=ce.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ox(e,r,t);else if(e.tag===19)ox(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(te(ce,i),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&R0(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),xf(t,!1,n,r,a);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&R0(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}xf(t,!0,r,null,a);break;case"together":xf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function r0(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(it(153));if(t.child!==null){for(e=t.child,r=ra(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ra(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function q_(e,t,r){switch(t.tag){case 3:a6(t),ko();break;case 5:$3(t);break;case 1:Fr(t.type)&&M0(t);break;case 4:Gg(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,n=t.memoizedProps.value;te(I0,i._currentValue),i._currentValue=n;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(te(ce,ce.current&1),t.flags|=128,null):r&t.child.childLanes?s6(e,t,r):(te(ce,ce.current&1),e=yn(e,t,r),e!==null?e.sibling:null);te(ce,ce.current&1);break;case 19:if(i=(r&t.childLanes)!==0,e.flags&128){if(i)return o6(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),te(ce,ce.current),i)break;return null;case 22:case 23:return t.lanes=0,i6(e,t,r)}return yn(e,t,r)}var l6,Hp,c6,h6;l6=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Hp=function(){};c6=function(e,t,r,i){var n=e.memoizedProps;if(n!==i){e=t.stateNode,Oa(Pi.current);var a=null;switch(r){case"input":n=dp(e,n),i=dp(e,i),a=[];break;case"select":n=fe({},n,{value:void 0}),i=fe({},i,{value:void 0}),a=[];break;case"textarea":n=gp(e,n),i=gp(e,i),a=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=A0)}yp(r,i);var s;r=null;for(c in n)if(!i.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var o=n[c];for(s in o)o.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(tc.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in i){var l=i[c];if(o=n!=null?n[c]:void 0,i.hasOwnProperty(c)&&l!==o&&(l!=null||o!=null))if(c==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(a||(a=[]),a.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(tc.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ee("scroll",e),a||o===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};h6=function(e,t,r,i){r!==i&&(t.flags|=4)};function sl(e,t){if(!ae)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function W_(e,t,r){var i=t.pendingProps;switch(Ng(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Fr(t.type)&&E0(),Je(t),null;case 3:return i=t.stateNode,So(),ie(Mr),ie(sr),Xg(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(yh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pi!==null&&(Zp(pi),pi=null))),Hp(e,t),Je(t),null;case 5:Vg(t);var n=Oa(dc.current);if(r=t.type,e!==null&&t.stateNode!=null)c6(e,t,r,i,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(it(166));return Je(t),null}if(e=Oa(Pi.current),yh(t)){i=t.stateNode,r=t.type;var a=t.memoizedProps;switch(i[Ii]=t,i[hc]=a,e=(t.mode&1)!==0,r){case"dialog":ee("cancel",i),ee("close",i);break;case"iframe":case"object":case"embed":ee("load",i);break;case"video":case"audio":for(n=0;n<Sl.length;n++)ee(Sl[n],i);break;case"source":ee("error",i);break;case"img":case"image":case"link":ee("error",i),ee("load",i);break;case"details":ee("toggle",i);break;case"input":my(i,a),ee("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},ee("invalid",i);break;case"textarea":xy(i,a),ee("invalid",i)}yp(r,a),n=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?i.textContent!==o&&(a.suppressHydrationWarning!==!0&&mh(i.textContent,o,e),n=["children",o]):typeof o=="number"&&i.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&mh(i.textContent,o,e),n=["children",""+o]):tc.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&ee("scroll",i)}switch(r){case"input":lh(i),yy(i,a,!0);break;case"textarea":lh(i),vy(i);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(i.onclick=A0)}i=n,t.updateQueue=i,i!==null&&(t.flags|=4)}else{s=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=O5(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),r==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[Ii]=t,e[hc]=i,l6(e,t,!1,!1),t.stateNode=e;t:{switch(s=xp(r,i),r){case"dialog":ee("cancel",e),ee("close",e),n=i;break;case"iframe":case"object":case"embed":ee("load",e),n=i;break;case"video":case"audio":for(n=0;n<Sl.length;n++)ee(Sl[n],e);n=i;break;case"source":ee("error",e),n=i;break;case"img":case"image":case"link":ee("error",e),ee("load",e),n=i;break;case"details":ee("toggle",e),n=i;break;case"input":my(e,i),n=dp(e,i),ee("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=fe({},i,{value:void 0}),ee("invalid",e);break;case"textarea":xy(e,i),n=gp(e,i),ee("invalid",e);break;default:n=i}yp(r,n),o=n;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?j5(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&P5(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ec(e,l):typeof l=="number"&&ec(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(tc.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ee("scroll",e):l!=null&&Tg(e,a,l,s))}switch(r){case"input":lh(e),yy(e,i,!1);break;case"textarea":lh(e),vy(e);break;case"option":i.value!=null&&e.setAttribute("value",""+sa(i.value));break;case"select":e.multiple=!!i.multiple,a=i.value,a!=null?Xs(e,!!i.multiple,a,!1):i.defaultValue!=null&&Xs(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=A0)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Je(t),null;case 6:if(e&&t.stateNode!=null)h6(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(it(166));if(r=Oa(dc.current),Oa(Pi.current),yh(t)){if(i=t.stateNode,r=t.memoizedProps,i[Ii]=t,(a=i.nodeValue!==r)&&(e=Nr,e!==null))switch(e.tag){case 3:mh(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mh(i.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[Ii]=t,t.stateNode=i}return Je(t),null;case 13:if(ie(ce),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&Pr!==null&&t.mode&1&&!(t.flags&128))L3(),ko(),t.flags|=98560,a=!1;else if(a=yh(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(it(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(it(317));a[Ii]=t}else ko(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),a=!1}else pi!==null&&(Zp(pi),pi=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||ce.current&1?ze===0&&(ze=3):om())),t.updateQueue!==null&&(t.flags|=4),Je(t),null);case 4:return So(),Hp(e,t),e===null&&lc(t.stateNode.containerInfo),Je(t),null;case 10:return Hg(t.type._context),Je(t),null;case 17:return Fr(t.type)&&E0(),Je(t),null;case 19:if(ie(ce),a=t.memoizedState,a===null)return Je(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)sl(a,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=R0(e),s!==null){for(t.flags|=128,sl(a,!1),i=s.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;r!==null;)a=r,e=i,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return te(ce,ce.current&1|2),t.child}e=e.sibling}a.tail!==null&&ve()>_o&&(t.flags|=128,i=!0,sl(a,!1),t.lanes=4194304)}else{if(!i)if(e=R0(s),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),sl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ae)return Je(t),null}else 2*ve()-a.renderingStartTime>_o&&r!==1073741824&&(t.flags|=128,i=!0,sl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(r=a.last,r!==null?r.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ve(),t.sibling=null,r=ce.current,te(ce,i?r&1|2:r&1),t):(Je(t),null);case 22:case 23:return sm(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Rr&1073741824&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),null;case 24:return null;case 25:return null}throw Error(it(156,t.tag))}function H_(e,t){switch(Ng(t),t.tag){case 1:return Fr(t.type)&&E0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),ie(Mr),ie(sr),Xg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vg(t),null;case 13:if(ie(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(it(340));ko()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ce),null;case 4:return So(),null;case 10:return Hg(t.type._context),null;case 22:case 23:return sm(),null;case 24:return null;default:return null}}var bh=!1,ir=!1,U_=typeof WeakSet=="function"?WeakSet:Set,ut=null;function Ys(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){xe(e,t,i)}else r.current=null}function Up(e,t,r){try{r()}catch(i){xe(e,t,i)}}var lx=!1;function Y_(e,t){if(Lp=_0,e=g3(),Og(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var n=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break t}var s=0,o=-1,l=-1,c=0,h=0,u=e,f=null;e:for(;;){for(var d;u!==r||n!==0&&u.nodeType!==3||(o=s+n),u!==a||i!==0&&u.nodeType!==3||(l=s+i),u.nodeType===3&&(s+=u.nodeValue.length),(d=u.firstChild)!==null;)f=u,u=d;for(;;){if(u===e)break e;if(f===r&&++c===n&&(o=s),f===a&&++h===i&&(l=s),(d=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=d}r=o===-1||l===-1?null:{start:o,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ap={focusedElem:e,selectionRange:r},_0=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){t=ut;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,m=g.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:di(t.type,p),m);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(it(163))}}catch(T){xe(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}return g=lx,lx=!1,g}function jl(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&e)===e){var a=n.destroy;n.destroy=void 0,a!==void 0&&Up(t,r,a)}n=n.next}while(n!==i)}}function Yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function Yp(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function u6(e){var t=e.alternate;t!==null&&(e.alternate=null,u6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ii],delete t[hc],delete t[Fp],delete t[L_],delete t[A_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function d6(e){return e.tag===5||e.tag===3||e.tag===4}function cx(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||d6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gp(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=A0));else if(i!==4&&(e=e.child,e!==null))for(Gp(e,t,r),e=e.sibling;e!==null;)Gp(e,t,r),e=e.sibling}function Vp(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Vp(e,t,r),e=e.sibling;e!==null;)Vp(e,t,r),e=e.sibling}var Ge=null,fi=!1;function $n(e,t,r){for(r=r.child;r!==null;)f6(e,t,r),r=r.sibling}function f6(e,t,r){if(Oi&&typeof Oi.onCommitFiberUnmount=="function")try{Oi.onCommitFiberUnmount(Ou,r)}catch{}switch(r.tag){case 5:ir||Ys(r,t);case 6:var i=Ge,n=fi;Ge=null,$n(e,t,r),Ge=i,fi=n,Ge!==null&&(fi?(e=Ge,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ge.removeChild(r.stateNode));break;case 18:Ge!==null&&(fi?(e=Ge,r=r.stateNode,e.nodeType===8?uf(e.parentNode,r):e.nodeType===1&&uf(e,r),ac(e)):uf(Ge,r.stateNode));break;case 4:i=Ge,n=fi,Ge=r.stateNode.containerInfo,fi=!0,$n(e,t,r),Ge=i,fi=n;break;case 0:case 11:case 14:case 15:if(!ir&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var a=n,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&Up(r,t,s),n=n.next}while(n!==i)}$n(e,t,r);break;case 1:if(!ir&&(Ys(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(o){xe(r,t,o)}$n(e,t,r);break;case 21:$n(e,t,r);break;case 22:r.mode&1?(ir=(i=ir)||r.memoizedState!==null,$n(e,t,r),ir=i):$n(e,t,r);break;default:$n(e,t,r)}}function hx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new U_),t.forEach(function(i){var n=eB.bind(null,e,i);r.has(i)||(r.add(i),i.then(n,n))})}}function ui(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var n=r[i];try{var a=e,s=t,o=s;t:for(;o!==null;){switch(o.tag){case 5:Ge=o.stateNode,fi=!1;break t;case 3:Ge=o.stateNode.containerInfo,fi=!0;break t;case 4:Ge=o.stateNode.containerInfo,fi=!0;break t}o=o.return}if(Ge===null)throw Error(it(160));f6(a,s,n),Ge=null,fi=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){xe(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)p6(t,e),t=t.sibling}function p6(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ui(t,e),Li(e),i&4){try{jl(3,e,e.return),Yu(3,e)}catch(p){xe(e,e.return,p)}try{jl(5,e,e.return)}catch(p){xe(e,e.return,p)}}break;case 1:ui(t,e),Li(e),i&512&&r!==null&&Ys(r,r.return);break;case 5:if(ui(t,e),Li(e),i&512&&r!==null&&Ys(r,r.return),e.flags&32){var n=e.stateNode;try{ec(n,"")}catch(p){xe(e,e.return,p)}}if(i&4&&(n=e.stateNode,n!=null)){var a=e.memoizedProps,s=r!==null?r.memoizedProps:a,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&D5(n,a),xp(o,s);var c=xp(o,a);for(s=0;s<l.length;s+=2){var h=l[s],u=l[s+1];h==="style"?j5(n,u):h==="dangerouslySetInnerHTML"?P5(n,u):h==="children"?ec(n,u):Tg(n,h,u,c)}switch(o){case"input":fp(n,a);break;case"textarea":R5(n,a);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!a.multiple;var d=a.value;d!=null?Xs(n,!!a.multiple,d,!1):f!==!!a.multiple&&(a.defaultValue!=null?Xs(n,!!a.multiple,a.defaultValue,!0):Xs(n,!!a.multiple,a.multiple?[]:"",!1))}n[hc]=a}catch(p){xe(e,e.return,p)}}break;case 6:if(ui(t,e),Li(e),i&4){if(e.stateNode===null)throw Error(it(162));n=e.stateNode,a=e.memoizedProps;try{n.nodeValue=a}catch(p){xe(e,e.return,p)}}break;case 3:if(ui(t,e),Li(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{ac(t.containerInfo)}catch(p){xe(e,e.return,p)}break;case 4:ui(t,e),Li(e);break;case 13:ui(t,e),Li(e),n=e.child,n.flags&8192&&(a=n.memoizedState!==null,n.stateNode.isHidden=a,!a||n.alternate!==null&&n.alternate.memoizedState!==null||(nm=ve())),i&4&&hx(e);break;case 22:if(h=r!==null&&r.memoizedState!==null,e.mode&1?(ir=(c=ir)||h,ui(t,e),ir=c):ui(t,e),Li(e),i&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(ut=e,h=e.child;h!==null;){for(u=ut=h;ut!==null;){switch(f=ut,d=f.child,f.tag){case 0:case 11:case 14:case 15:jl(4,f,f.return);break;case 1:Ys(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){i=f,r=f.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(p){xe(i,r,p)}}break;case 5:Ys(f,f.return);break;case 22:if(f.memoizedState!==null){dx(u);continue}}d!==null?(d.return=f,ut=d):dx(u)}h=h.sibling}t:for(h=null,u=e;;){if(u.tag===5){if(h===null){h=u;try{n=u.stateNode,c?(a=n.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=u.stateNode,l=u.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=N5("display",s))}catch(p){xe(e,e.return,p)}}}else if(u.tag===6){if(h===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(p){xe(e,e.return,p)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;h===u&&(h=null),u=u.return}h===u&&(h=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:ui(t,e),Li(e),i&4&&hx(e);break;case 21:break;default:ui(t,e),Li(e)}}function Li(e){var t=e.flags;if(t&2){try{t:{for(var r=e.return;r!==null;){if(d6(r)){var i=r;break t}r=r.return}throw Error(it(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(ec(n,""),i.flags&=-33);var a=cx(e);Vp(e,a,n);break;case 3:case 4:var s=i.stateNode.containerInfo,o=cx(e);Gp(e,o,s);break;default:throw Error(it(161))}}catch(l){xe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function G_(e,t,r){ut=e,g6(e)}function g6(e,t,r){for(var i=(e.mode&1)!==0;ut!==null;){var n=ut,a=n.child;if(n.tag===22&&i){var s=n.memoizedState!==null||bh;if(!s){var o=n.alternate,l=o!==null&&o.memoizedState!==null||ir;o=bh;var c=ir;if(bh=s,(ir=l)&&!c)for(ut=n;ut!==null;)s=ut,l=s.child,s.tag===22&&s.memoizedState!==null?fx(n):l!==null?(l.return=s,ut=l):fx(n);for(;a!==null;)ut=a,g6(a),a=a.sibling;ut=n,bh=o,ir=c}ux(e)}else n.subtreeFlags&8772&&a!==null?(a.return=n,ut=a):ux(e)}}function ux(e){for(;ut!==null;){var t=ut;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ir||Yu(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!ir)if(r===null)i.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:di(t.type,r.memoizedProps);i.componentDidUpdate(n,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Xy(t,a,i);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Xy(t,s,r)}break;case 5:var o=t.stateNode;if(r===null&&t.flags&4){r=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var u=h.dehydrated;u!==null&&ac(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(it(163))}ir||t.flags&512&&Yp(t)}catch(f){xe(t,t.return,f)}}if(t===e){ut=null;break}if(r=t.sibling,r!==null){r.return=t.return,ut=r;break}ut=t.return}}function dx(e){for(;ut!==null;){var t=ut;if(t===e){ut=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ut=r;break}ut=t.return}}function fx(e){for(;ut!==null;){var t=ut;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Yu(4,t)}catch(l){xe(t,r,l)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var n=t.return;try{i.componentDidMount()}catch(l){xe(t,n,l)}}var a=t.return;try{Yp(t)}catch(l){xe(t,a,l)}break;case 5:var s=t.return;try{Yp(t)}catch(l){xe(t,s,l)}}}catch(l){xe(t,t.return,l)}if(t===e){ut=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ut=o;break}ut=t.return}}var V_=Math.ceil,N0=Cn.ReactCurrentDispatcher,rm=Cn.ReactCurrentOwner,ii=Cn.ReactCurrentBatchConfig,Nt=0,We=null,Te=null,Xe=0,Rr=0,Gs=ya(0),ze=0,mc=null,Ka=0,Gu=0,im=0,ql=null,_r=null,nm=0,_o=1/0,an=null,j0=!1,Xp=null,ta=null,Ch=!1,Wn=null,q0=0,Wl=0,Qp=null,i0=-1,n0=0;function gr(){return Nt&6?ve():i0!==-1?i0:i0=ve()}function ea(e){return e.mode&1?Nt&2&&Xe!==0?Xe&-Xe:M_.transition!==null?(n0===0&&(n0=J5()),n0):(e=Qt,e!==0||(e=window.event,e=e===void 0?16:s3(e.type)),e):1}function bi(e,t,r,i){if(50<Wl)throw Wl=0,Qp=null,Error(it(185));Dc(e,r,i),(!(Nt&2)||e!==We)&&(e===We&&(!(Nt&2)&&(Gu|=r),ze===4&&jn(e,Xe)),$r(e,i),r===1&&Nt===0&&!(t.mode&1)&&(_o=ve()+500,Wu&&xa()))}function $r(e,t){var r=e.callbackNode;MT(e,t);var i=T0(e,e===We?Xe:0);if(i===0)r!==null&&ky(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(r!=null&&ky(r),t===1)e.tag===0?E_(px.bind(null,e)):T3(px.bind(null,e)),__(function(){!(Nt&6)&&xa()}),r=null;else{switch(t3(i)){case 1:r=Eg;break;case 4:r=K5;break;case 16:r=S0;break;case 536870912:r=Z5;break;default:r=S0}r=w6(r,m6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function m6(e,t){if(i0=-1,n0=0,Nt&6)throw Error(it(327));var r=e.callbackNode;if(to()&&e.callbackNode!==r)return null;var i=T0(e,e===We?Xe:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=W0(e,i);else{t=i;var n=Nt;Nt|=2;var a=x6();(We!==e||Xe!==t)&&(an=null,_o=ve()+500,Wa(e,t));do try{K_();break}catch(o){y6(e,o)}while(!0);Wg(),N0.current=a,Nt=n,Te!==null?t=0:(We=null,Xe=0,t=ze)}if(t!==0){if(t===2&&(n=wp(e),n!==0&&(i=n,t=Kp(e,n))),t===1)throw r=mc,Wa(e,0),jn(e,i),$r(e,ve()),r;if(t===6)jn(e,i);else{if(n=e.current.alternate,!(i&30)&&!X_(n)&&(t=W0(e,i),t===2&&(a=wp(e),a!==0&&(i=a,t=Kp(e,a))),t===1))throw r=mc,Wa(e,0),jn(e,i),$r(e,ve()),r;switch(e.finishedWork=n,e.finishedLanes=i,t){case 0:case 1:throw Error(it(345));case 2:Fa(e,_r,an);break;case 3:if(jn(e,i),(i&130023424)===i&&(t=nm+500-ve(),10<t)){if(T0(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){gr(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Mp(Fa.bind(null,e,_r,an),t);break}Fa(e,_r,an);break;case 4:if(jn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,n=-1;0<i;){var s=31-vi(i);a=1<<s,s=t[s],s>n&&(n=s),i&=~a}if(i=n,i=ve()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*V_(i/1960))-i,10<i){e.timeoutHandle=Mp(Fa.bind(null,e,_r,an),i);break}Fa(e,_r,an);break;case 5:Fa(e,_r,an);break;default:throw Error(it(329))}}}return $r(e,ve()),e.callbackNode===r?m6.bind(null,e):null}function Kp(e,t){var r=ql;return e.current.memoizedState.isDehydrated&&(Wa(e,t).flags|=256),e=W0(e,t),e!==2&&(t=_r,_r=r,t!==null&&Zp(t)),e}function Zp(e){_r===null?_r=e:_r.push.apply(_r,e)}function X_(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var n=r[i],a=n.getSnapshot;n=n.value;try{if(!wi(a(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function jn(e,t){for(t&=~im,t&=~Gu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-vi(t),i=1<<r;e[r]=-1,t&=~i}}function px(e){if(Nt&6)throw Error(it(327));to();var t=T0(e,0);if(!(t&1))return $r(e,ve()),null;var r=W0(e,t);if(e.tag!==0&&r===2){var i=wp(e);i!==0&&(t=i,r=Kp(e,i))}if(r===1)throw r=mc,Wa(e,0),jn(e,t),$r(e,ve()),r;if(r===6)throw Error(it(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fa(e,_r,an),$r(e,ve()),null}function am(e,t){var r=Nt;Nt|=1;try{return e(t)}finally{Nt=r,Nt===0&&(_o=ve()+500,Wu&&xa())}}function Za(e){Wn!==null&&Wn.tag===0&&!(Nt&6)&&to();var t=Nt;Nt|=1;var r=ii.transition,i=Qt;try{if(ii.transition=null,Qt=1,e)return e()}finally{Qt=i,ii.transition=r,Nt=t,!(Nt&6)&&xa()}}function sm(){Rr=Gs.current,ie(Gs)}function Wa(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,T_(r)),Te!==null)for(r=Te.return;r!==null;){var i=r;switch(Ng(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&E0();break;case 3:So(),ie(Mr),ie(sr),Xg();break;case 5:Vg(i);break;case 4:So();break;case 13:ie(ce);break;case 19:ie(ce);break;case 10:Hg(i.type._context);break;case 22:case 23:sm()}r=r.return}if(We=e,Te=e=ra(e.current,null),Xe=Rr=t,ze=0,mc=null,im=Gu=Ka=0,_r=ql=null,Ra!==null){for(t=0;t<Ra.length;t++)if(r=Ra[t],i=r.interleaved,i!==null){r.interleaved=null;var n=i.next,a=r.pending;if(a!==null){var s=a.next;a.next=n,i.next=s}r.pending=i}Ra=null}return e}function y6(e,t){do{var r=Te;try{if(Wg(),t0.current=P0,O0){for(var i=ue.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}O0=!1}if(Qa=0,Ne=Fe=ue=null,Nl=!1,fc=0,rm.current=null,r===null||r.return===null){ze=1,mc=t,Te=null;break}t:{var a=e,s=r.return,o=r,l=t;if(t=Xe,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,h=o,u=h.tag;if(!(h.mode&1)&&(u===0||u===11||u===15)){var f=h.alternate;f?(h.updateQueue=f.updateQueue,h.memoizedState=f.memoizedState,h.lanes=f.lanes):(h.updateQueue=null,h.memoizedState=null)}var d=ex(s);if(d!==null){d.flags&=-257,rx(d,s,o,a,t),d.mode&1&&tx(a,c,t),t=d,l=c;var g=t.updateQueue;if(g===null){var p=new Set;p.add(l),t.updateQueue=p}else g.add(l);break t}else{if(!(t&1)){tx(a,c,t),om();break t}l=Error(it(426))}}else if(ae&&o.mode&1){var m=ex(s);if(m!==null){!(m.flags&65536)&&(m.flags|=256),rx(m,s,o,a,t),jg(To(l,o));break t}}a=l=To(l,o),ze!==4&&(ze=2),ql===null?ql=[a]:ql.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=t6(a,l,t);Vy(a,y);break t;case 1:o=l;var x=a.type,k=a.stateNode;if(!(a.flags&128)&&(typeof x.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(ta===null||!ta.has(k)))){a.flags|=65536,t&=-t,a.lanes|=t;var T=e6(a,o,t);Vy(a,T);break t}}a=a.return}while(a!==null)}b6(r)}catch(_){t=_,Te===r&&r!==null&&(Te=r=r.return);continue}break}while(!0)}function x6(){var e=N0.current;return N0.current=P0,e===null?P0:e}function om(){(ze===0||ze===3||ze===2)&&(ze=4),We===null||!(Ka&268435455)&&!(Gu&268435455)||jn(We,Xe)}function W0(e,t){var r=Nt;Nt|=2;var i=x6();(We!==e||Xe!==t)&&(an=null,Wa(e,t));do try{Q_();break}catch(n){y6(e,n)}while(!0);if(Wg(),Nt=r,N0.current=i,Te!==null)throw Error(it(261));return We=null,Xe=0,ze}function Q_(){for(;Te!==null;)v6(Te)}function K_(){for(;Te!==null&&!kT();)v6(Te)}function v6(e){var t=k6(e.alternate,e,Rr);e.memoizedProps=e.pendingProps,t===null?b6(e):Te=t,rm.current=null}function b6(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=H_(r,t),r!==null){r.flags&=32767,Te=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Te=null;return}}else if(r=W_(r,t,Rr),r!==null){Te=r;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);ze===0&&(ze=5)}function Fa(e,t,r){var i=Qt,n=ii.transition;try{ii.transition=null,Qt=1,Z_(e,t,r,i)}finally{ii.transition=n,Qt=i}return null}function Z_(e,t,r,i){do to();while(Wn!==null);if(Nt&6)throw Error(it(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(it(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(FT(e,a),e===We&&(Te=We=null,Xe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ch||(Ch=!0,w6(S0,function(){return to(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=ii.transition,ii.transition=null;var s=Qt;Qt=1;var o=Nt;Nt|=4,rm.current=null,Y_(e,r),p6(r,e),x_(Ap),_0=!!Lp,Ap=Lp=null,e.current=r,G_(r),wT(),Nt=o,Qt=s,ii.transition=a}else e.current=r;if(Ch&&(Ch=!1,Wn=e,q0=n),a=e.pendingLanes,a===0&&(ta=null),_T(r.stateNode),$r(e,ve()),t!==null)for(i=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],i(n.value,{componentStack:n.stack,digest:n.digest});if(j0)throw j0=!1,e=Xp,Xp=null,e;return q0&1&&e.tag!==0&&to(),a=e.pendingLanes,a&1?e===Qp?Wl++:(Wl=0,Qp=e):Wl=0,xa(),null}function to(){if(Wn!==null){var e=t3(q0),t=ii.transition,r=Qt;try{if(ii.transition=null,Qt=16>e?16:e,Wn===null)var i=!1;else{if(e=Wn,Wn=null,q0=0,Nt&6)throw Error(it(331));var n=Nt;for(Nt|=4,ut=e.current;ut!==null;){var a=ut,s=a.child;if(ut.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var c=o[l];for(ut=c;ut!==null;){var h=ut;switch(h.tag){case 0:case 11:case 15:jl(8,h,a)}var u=h.child;if(u!==null)u.return=h,ut=u;else for(;ut!==null;){h=ut;var f=h.sibling,d=h.return;if(u6(h),h===c){ut=null;break}if(f!==null){f.return=d,ut=f;break}ut=d}}}var g=a.alternate;if(g!==null){var p=g.child;if(p!==null){g.child=null;do{var m=p.sibling;p.sibling=null,p=m}while(p!==null)}}ut=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,ut=s;else t:for(;ut!==null;){if(a=ut,a.flags&2048)switch(a.tag){case 0:case 11:case 15:jl(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,ut=y;break t}ut=a.return}}var x=e.current;for(ut=x;ut!==null;){s=ut;var k=s.child;if(s.subtreeFlags&2064&&k!==null)k.return=s,ut=k;else t:for(s=x;ut!==null;){if(o=ut,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Yu(9,o)}}catch(_){xe(o,o.return,_)}if(o===s){ut=null;break t}var T=o.sibling;if(T!==null){T.return=o.return,ut=T;break t}ut=o.return}}if(Nt=n,xa(),Oi&&typeof Oi.onPostCommitFiberRoot=="function")try{Oi.onPostCommitFiberRoot(Ou,e)}catch{}i=!0}return i}finally{Qt=r,ii.transition=t}}return!1}function gx(e,t,r){t=To(r,t),t=t6(e,t,1),e=Jn(e,t,1),t=gr(),e!==null&&(Dc(e,1,t),$r(e,t))}function xe(e,t,r){if(e.tag===3)gx(e,e,r);else for(;t!==null;){if(t.tag===3){gx(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ta===null||!ta.has(i))){e=To(r,e),e=e6(t,e,1),t=Jn(t,e,1),e=gr(),t!==null&&(Dc(t,1,e),$r(t,e));break}}t=t.return}}function J_(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),t=gr(),e.pingedLanes|=e.suspendedLanes&r,We===e&&(Xe&r)===r&&(ze===4||ze===3&&(Xe&130023424)===Xe&&500>ve()-nm?Wa(e,0):im|=r),$r(e,t)}function C6(e,t){t===0&&(e.mode&1?(t=uh,uh<<=1,!(uh&130023424)&&(uh=4194304)):t=1);var r=gr();e=mn(e,t),e!==null&&(Dc(e,t,r),$r(e,r))}function tB(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),C6(e,r)}function eB(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(it(314))}i!==null&&i.delete(t),C6(e,r)}var k6;k6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mr.current)Ar=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ar=!1,q_(e,t,r);Ar=!!(e.flags&131072)}else Ar=!1,ae&&t.flags&1048576&&_3(t,$0,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;r0(e,t),e=t.pendingProps;var n=Co(t,sr.current);Js(t,r),n=Kg(null,t,i,e,n,r);var a=Zg();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fr(i)?(a=!0,M0(t)):a=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Yg(t),n.updater=Uu,t.stateNode=n,n._reactInternals=t,Op(t,i,e,r),t=jp(null,t,i,!0,a,r)):(t.tag=0,ae&&a&&Pg(t),hr(null,t,n,r),t=t.child),t;case 16:i=t.elementType;t:{switch(r0(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=iB(i),e=di(i,e),n){case 0:t=Np(null,t,i,e,r);break t;case 1:t=ax(null,t,i,e,r);break t;case 11:t=ix(null,t,i,e,r);break t;case 14:t=nx(null,t,i,di(i.type,e),r);break t}throw Error(it(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:di(i,n),Np(e,t,i,n,r);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:di(i,n),ax(e,t,i,n,r);case 3:t:{if(a6(t),e===null)throw Error(it(387));i=t.pendingProps,a=t.memoizedState,n=a.element,F3(e,t),D0(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){n=To(Error(it(423)),t),t=sx(e,t,i,r,n);break t}else if(i!==n){n=To(Error(it(424)),t),t=sx(e,t,i,r,n);break t}else for(Pr=Zn(t.stateNode.containerInfo.firstChild),Nr=t,ae=!0,pi=null,r=E3(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ko(),i===n){t=yn(e,t,r);break t}hr(e,t,i,r)}t=t.child}return t;case 5:return $3(t),e===null&&zp(t),i=t.type,n=t.pendingProps,a=e!==null?e.memoizedProps:null,s=n.children,Ep(i,n)?s=null:a!==null&&Ep(i,a)&&(t.flags|=32),n6(e,t),hr(e,t,s,r),t.child;case 6:return e===null&&zp(t),null;case 13:return s6(e,t,r);case 4:return Gg(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=wo(t,null,i,r):hr(e,t,i,r),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:di(i,n),ix(e,t,i,n,r);case 7:return hr(e,t,t.pendingProps,r),t.child;case 8:return hr(e,t,t.pendingProps.children,r),t.child;case 12:return hr(e,t,t.pendingProps.children,r),t.child;case 10:t:{if(i=t.type._context,n=t.pendingProps,a=t.memoizedProps,s=n.value,te(I0,i._currentValue),i._currentValue=s,a!==null)if(wi(a.value,s)){if(a.children===n.children&&!Mr.current){t=yn(e,t,r);break t}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===i){if(a.tag===1){l=hn(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?l.next=l:(l.next=h.next,h.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Dp(a.return,r,t),o.lanes|=r;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(it(341));s.lanes|=r,o=s.alternate,o!==null&&(o.lanes|=r),Dp(s,r,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}hr(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,Js(t,r),n=ni(n),i=i(n),t.flags|=1,hr(e,t,i,r),t.child;case 14:return i=t.type,n=di(i,t.pendingProps),n=di(i.type,n),nx(e,t,i,n,r);case 15:return r6(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:di(i,n),r0(e,t),t.tag=1,Fr(i)?(e=!0,M0(t)):e=!1,Js(t,r),J3(t,i,n),Op(t,i,n,r),jp(null,t,i,!0,e,r);case 19:return o6(e,t,r);case 22:return i6(e,t,r)}throw Error(it(156,t.tag))};function w6(e,t){return Q5(e,t)}function rB(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,r,i){return new rB(e,t,r,i)}function lm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iB(e){if(typeof e=="function")return lm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bg)return 11;if(e===Lg)return 14}return 2}function ra(e,t){var r=e.alternate;return r===null?(r=ei(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function a0(e,t,r,i,n,a){var s=2;if(i=e,typeof e=="function")lm(e)&&(s=1);else if(typeof e=="string")s=5;else t:switch(e){case Rs:return Ha(r.children,n,a,t);case _g:s=8,n|=8;break;case lp:return e=ei(12,r,t,n|2),e.elementType=lp,e.lanes=a,e;case cp:return e=ei(13,r,t,n),e.elementType=cp,e.lanes=a,e;case hp:return e=ei(19,r,t,n),e.elementType=hp,e.lanes=a,e;case $5:return Vu(r,n,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M5:s=10;break t;case F5:s=9;break t;case Bg:s=11;break t;case Lg:s=14;break t;case Rn:s=16,i=null;break t}throw Error(it(130,e==null?e:typeof e,""))}return t=ei(s,r,t,n),t.elementType=e,t.type=i,t.lanes=a,t}function Ha(e,t,r,i){return e=ei(7,e,i,t),e.lanes=r,e}function Vu(e,t,r,i){return e=ei(22,e,i,t),e.elementType=$5,e.lanes=r,e.stateNode={isHidden:!1},e}function vf(e,t,r){return e=ei(6,e,null,t),e.lanes=r,e}function bf(e,t,r){return t=ei(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nB(e,t,r,i,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Jd(0),this.expirationTimes=Jd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jd(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function cm(e,t,r,i,n,a,s,o,l){return e=new nB(e,t,r,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ei(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yg(a),e}function aB(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ds,key:i==null?null:""+i,children:e,containerInfo:t,implementation:r}}function S6(e){if(!e)return oa;e=e._reactInternals;t:{if(hs(e)!==e||e.tag!==1)throw Error(it(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(Fr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(it(171))}if(e.tag===1){var r=e.type;if(Fr(r))return S3(e,r,t)}return t}function T6(e,t,r,i,n,a,s,o,l){return e=cm(r,i,!0,e,n,a,s,o,l),e.context=S6(null),r=e.current,i=gr(),n=ea(r),a=hn(i,n),a.callback=t??null,Jn(r,a,n),e.current.lanes=n,Dc(e,n,i),$r(e,i),e}function Xu(e,t,r,i){var n=t.current,a=gr(),s=ea(n);return r=S6(r),t.context===null?t.context=r:t.pendingContext=r,t=hn(a,s),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=Jn(n,t,s),e!==null&&(bi(e,n,s,a),Jh(e,n,s)),s}function H0(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function hm(e,t){mx(e,t),(e=e.alternate)&&mx(e,t)}function sB(){return null}var _6=typeof reportError=="function"?reportError:function(e){console.error(e)};function um(e){this._internalRoot=e}Qu.prototype.render=um.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(it(409));Xu(e,t,null,null)};Qu.prototype.unmount=um.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Za(function(){Xu(null,e,null,null)}),t[gn]=null}};function Qu(e){this._internalRoot=e}Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=i3();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Nn.length&&t!==0&&t<Nn[r].priority;r++);Nn.splice(r,0,e),r===0&&a3(e)}};function dm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yx(){}function oB(e,t,r,i,n){if(n){if(typeof i=="function"){var a=i;i=function(){var c=H0(s);a.call(c)}}var s=T6(t,i,e,0,null,!1,!1,"",yx);return e._reactRootContainer=s,e[gn]=s.current,lc(e.nodeType===8?e.parentNode:e),Za(),s}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var o=i;i=function(){var c=H0(l);o.call(c)}}var l=cm(e,0,!1,null,null,!1,!1,"",yx);return e._reactRootContainer=l,e[gn]=l.current,lc(e.nodeType===8?e.parentNode:e),Za(function(){Xu(t,l,r,i)}),l}function Zu(e,t,r,i,n){var a=r._reactRootContainer;if(a){var s=a;if(typeof n=="function"){var o=n;n=function(){var l=H0(s);o.call(l)}}Xu(t,s,e,n)}else s=oB(r,t,e,n,i);return H0(s)}e3=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=wl(t.pendingLanes);r!==0&&(Mg(t,r|1),$r(t,ve()),!(Nt&6)&&(_o=ve()+500,xa()))}break;case 13:Za(function(){var i=mn(e,1);if(i!==null){var n=gr();bi(i,e,1,n)}}),hm(e,1)}};Fg=function(e){if(e.tag===13){var t=mn(e,134217728);if(t!==null){var r=gr();bi(t,e,134217728,r)}hm(e,134217728)}};r3=function(e){if(e.tag===13){var t=ea(e),r=mn(e,t);if(r!==null){var i=gr();bi(r,e,t,i)}hm(e,t)}};i3=function(){return Qt};n3=function(e,t){var r=Qt;try{return Qt=e,t()}finally{Qt=r}};bp=function(e,t,r){switch(t){case"input":if(fp(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var n=qu(i);if(!n)throw Error(it(90));z5(i),fp(i,n)}}}break;case"textarea":R5(e,r);break;case"select":t=r.value,t!=null&&Xs(e,!!r.multiple,t,!1)}};H5=am;U5=Za;var lB={usingClientEntryPoint:!1,Events:[Oc,js,qu,q5,W5,am]},ol={findFiberByHostInstance:Da,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cB={bundleType:ol.bundleType,version:ol.version,rendererPackageName:ol.rendererPackageName,rendererConfig:ol.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=V5(e),e===null?null:e.stateNode},findFiberByHostInstance:ol.findFiberByHostInstance||sB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kh.isDisabled&&kh.supportsFiber)try{Ou=kh.inject(cB),Oi=kh}catch{}}Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lB;Yr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dm(t))throw Error(it(200));return aB(e,t,null,r)};Yr.createRoot=function(e,t){if(!dm(e))throw Error(it(299));var r=!1,i="",n=_6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=cm(e,1,!1,null,null,r,!1,i,n),e[gn]=t.current,lc(e.nodeType===8?e.parentNode:e),new um(t)};Yr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(it(188)):(e=Object.keys(e).join(","),Error(it(268,e)));return e=V5(t),e=e===null?null:e.stateNode,e};Yr.flushSync=function(e){return Za(e)};Yr.hydrate=function(e,t,r){if(!Ku(t))throw Error(it(200));return Zu(null,e,t,!0,r)};Yr.hydrateRoot=function(e,t,r){if(!dm(e))throw Error(it(405));var i=r!=null&&r.hydratedSources||null,n=!1,a="",s=_6;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=T6(t,null,e,1,r??null,n,!1,a,s),e[gn]=t.current,lc(e),i)for(e=0;e<i.length;e++)r=i[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Qu(t)};Yr.render=function(e,t,r){if(!Ku(t))throw Error(it(200));return Zu(null,e,t,!1,r)};Yr.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(it(40));return e._reactRootContainer?(Za(function(){Zu(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1};Yr.unstable_batchedUpdates=am;Yr.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Ku(r))throw Error(it(200));if(e==null||e._reactInternals===void 0)throw Error(it(38));return Zu(e,t,r,!1,i)};Yr.version="18.3.1-next-f1338f8080-20240426";function B6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B6)}catch(e){console.error(e)}}B6(),B5.exports=Yr;var hB=B5.exports,xx=hB;sp.createRoot=xx.createRoot,sp.hydrateRoot=xx.hydrateRoot;/**
|
|
42
|
+
* @remix-run/router v1.23.2
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Remix Software Inc.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
+
*
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},yc.apply(this,arguments)}var Hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hn||(Hn={}));const vx="popstate";function uB(e){e===void 0&&(e={});function t(i,n){let{pathname:a,search:s,hash:o}=i.location;return Jp("",{pathname:a,search:s,hash:o},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(i,n){return typeof n=="string"?n:U0(n)}return fB(t,r,null,e)}function Ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dB(){return Math.random().toString(36).substr(2,8)}function bx(e,t){return{usr:e.state,key:e.key,idx:t}}function Jp(e,t,r,i){return r===void 0&&(r=null),yc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jo(t):t,{state:r,key:t&&t.key||i||dB()})}function U0(e){let{pathname:t="/",search:r="",hash:i=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function jo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function fB(e,t,r,i){i===void 0&&(i={});let{window:n=document.defaultView,v5Compat:a=!1}=i,s=n.history,o=Hn.Pop,l=null,c=h();c==null&&(c=0,s.replaceState(yc({},s.state,{idx:c}),""));function h(){return(s.state||{idx:null}).idx}function u(){o=Hn.Pop;let m=h(),y=m==null?null:m-c;c=m,l&&l({action:o,location:p.location,delta:y})}function f(m,y){o=Hn.Push;let x=Jp(p.location,m,y);c=h()+1;let k=bx(x,c),T=p.createHref(x);try{s.pushState(k,"",T)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;n.location.assign(T)}a&&l&&l({action:o,location:p.location,delta:1})}function d(m,y){o=Hn.Replace;let x=Jp(p.location,m,y);c=h();let k=bx(x,c),T=p.createHref(x);s.replaceState(k,"",T),a&&l&&l({action:o,location:p.location,delta:0})}function g(m){let y=n.location.origin!=="null"?n.location.origin:n.location.href,x=typeof m=="string"?m:U0(m);return x=x.replace(/ $/,"%20"),Ce(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let p={get action(){return o},get location(){return e(n,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(vx,u),l=m,()=>{n.removeEventListener(vx,u),l=null}},createHref(m){return t(n,m)},createURL:g,encodeLocation(m){let y=g(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:d,go(m){return s.go(m)}};return p}var Cx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cx||(Cx={}));function pB(e,t,r){return r===void 0&&(r="/"),gB(e,t,r)}function gB(e,t,r,i){let n=typeof t=="string"?jo(t):t,a=pm(n.pathname||"/",r);if(a==null)return null;let s=L6(e);mB(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let c=LB(a);o=TB(s[l],c)}return o}function L6(e,t,r,i){t===void 0&&(t=[]),r===void 0&&(r=[]),i===void 0&&(i="");let n=(a,s,o)=>{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(Ce(l.relativePath.startsWith(i),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(i.length));let c=ia([i,l.relativePath]),h=r.concat(l);a.children&&a.children.length>0&&(Ce(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),L6(a.children,t,h,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:wB(c,a.index),routesMeta:h})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))n(a,s);else for(let l of A6(a.path))n(a,s,l)}),t}function A6(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,n=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return n?[a,""]:[a];let s=A6(i.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),n&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function mB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:SB(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const yB=/^:[\w-]+$/,xB=3,vB=2,bB=1,CB=10,kB=-2,kx=e=>e==="*";function wB(e,t){let r=e.split("/"),i=r.length;return r.some(kx)&&(i+=kB),t&&(i+=vB),r.filter(n=>!kx(n)).reduce((n,a)=>n+(yB.test(a)?xB:a===""?bB:CB),i)}function SB(e,t){return e.length===t.length&&e.slice(0,-1).every((i,n)=>i===t[n])?e[e.length-1]-t[t.length-1]:0}function TB(e,t,r){let{routesMeta:i}=e,n={},a="/",s=[];for(let o=0;o<i.length;++o){let l=i[o],c=o===i.length-1,h=a==="/"?t:t.slice(a.length)||"/",u=_B({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},h),f=l.route;if(!u)return null;Object.assign(n,u.params),s.push({params:n,pathname:ia([a,u.pathname]),pathnameBase:$B(ia([a,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(a=ia([a,u.pathnameBase]))}return s}function _B(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=BB(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let a=n[0],s=a.replace(/(.)\/+$/,"$1"),o=n.slice(1);return{params:i.reduce((c,h,u)=>{let{paramName:f,isOptional:d}=h;if(f==="*"){let p=o[u]||"";s=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const g=o[u];return d&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:e}}function BB(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),fm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),i]}function LB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}const AB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EB=e=>AB.test(e);function MB(e,t){t===void 0&&(t="/");let{pathname:r,search:i="",hash:n=""}=typeof e=="string"?jo(e):e,a;if(r)if(EB(r))a=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),fm(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+r))}r.startsWith("/")?a=wx(r.substring(1),"/"):a=wx(r,t)}else a=t;return{pathname:a,search:IB(i),hash:zB(n)}}function wx(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Cf(e,t,r,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function FB(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function gm(e,t){let r=FB(e);return t?r.map((i,n)=>n===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function mm(e,t,r,i){i===void 0&&(i=!1);let n;typeof e=="string"?n=jo(e):(n=yc({},e),Ce(!n.pathname||!n.pathname.includes("?"),Cf("?","pathname","search",n)),Ce(!n.pathname||!n.pathname.includes("#"),Cf("#","pathname","hash",n)),Ce(!n.search||!n.search.includes("#"),Cf("#","search","hash",n)));let a=e===""||n.pathname==="",s=a?"/":n.pathname,o;if(s==null)o=r;else{let u=t.length-1;if(!i&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),u-=1;n.pathname=f.join("/")}o=u>=0?t[u]:"/"}let l=MB(n,o),c=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||h)&&(l.pathname+="/"),l}const ia=e=>e.join("/").replace(/\/\/+/g,"/"),$B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),IB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const E6=["post","put","patch","delete"];new Set(E6);const RB=["get",...E6];new Set(RB);/**
|
|
51
|
+
* React Router v6.30.3
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/function xc(){return xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},xc.apply(this,arguments)}const ym=W.createContext(null),OB=W.createContext(null),va=W.createContext(null),Ju=W.createContext(null),ba=W.createContext({outlet:null,matches:[],isDataRoute:!1}),M6=W.createContext(null);function PB(e,t){let{relative:r}=t===void 0?{}:t;qo()||Ce(!1);let{basename:i,navigator:n}=W.useContext(va),{hash:a,pathname:s,search:o}=I6(e,{relative:r}),l=s;return i!=="/"&&(l=s==="/"?i:ia([i,s])),n.createHref({pathname:l,search:o,hash:a})}function qo(){return W.useContext(Ju)!=null}function Wo(){return qo()||Ce(!1),W.useContext(Ju).location}function F6(e){W.useContext(va).static||W.useLayoutEffect(e)}function $6(){let{isDataRoute:e}=W.useContext(ba);return e?ZB():NB()}function NB(){qo()||Ce(!1);let e=W.useContext(ym),{basename:t,future:r,navigator:i}=W.useContext(va),{matches:n}=W.useContext(ba),{pathname:a}=Wo(),s=JSON.stringify(gm(n,r.v7_relativeSplatPath)),o=W.useRef(!1);return F6(()=>{o.current=!0}),W.useCallback(function(c,h){if(h===void 0&&(h={}),!o.current)return;if(typeof c=="number"){i.go(c);return}let u=mm(c,JSON.parse(s),a,h.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:ia([t,u.pathname])),(h.replace?i.replace:i.push)(u,h.state,h)},[t,i,s,a,e])}function I6(e,t){let{relative:r}=t===void 0?{}:t,{future:i}=W.useContext(va),{matches:n}=W.useContext(ba),{pathname:a}=Wo(),s=JSON.stringify(gm(n,i.v7_relativeSplatPath));return W.useMemo(()=>mm(e,JSON.parse(s),a,r==="path"),[e,s,a,r])}function jB(e,t){return qB(e,t)}function qB(e,t,r,i){qo()||Ce(!1);let{navigator:n}=W.useContext(va),{matches:a}=W.useContext(ba),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Wo(),h;if(t){var u;let m=typeof t=="string"?jo(t):t;l==="/"||(u=m.pathname)!=null&&u.startsWith(l)||Ce(!1),h=m}else h=c;let f=h.pathname||"/",d=f;if(l!=="/"){let m=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let g=pB(e,{pathname:d}),p=GB(g&&g.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:ia([l,n.encodeLocation?n.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:ia([l,n.encodeLocation?n.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),a,r,i);return t&&p?W.createElement(Ju.Provider,{value:{location:xc({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Hn.Pop}},p):p}function WB(){let e=KB(),t=DB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return W.createElement(W.Fragment,null,W.createElement("h2",null,"Unexpected Application Error!"),W.createElement("h3",{style:{fontStyle:"italic"}},t),r?W.createElement("pre",{style:n},r):null,null)}const HB=W.createElement(WB,null);class UB extends W.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?W.createElement(ba.Provider,{value:this.props.routeContext},W.createElement(M6.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YB(e){let{routeContext:t,match:r,children:i}=e,n=W.useContext(ym);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),W.createElement(ba.Provider,{value:t},i)}function GB(e,t,r,i){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),i===void 0&&(i=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,o=(n=r)==null?void 0:n.errors;if(o!=null){let h=s.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);h>=0||Ce(!1),s=s.slice(0,Math.min(s.length,h+1))}let l=!1,c=-1;if(r&&i&&i.v7_partialHydration)for(let h=0;h<s.length;h++){let u=s[h];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=h),u.route.id){let{loaderData:f,errors:d}=r,g=u.route.loader&&f[u.route.id]===void 0&&(!d||d[u.route.id]===void 0);if(u.route.lazy||g){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((h,u,f)=>{let d,g=!1,p=null,m=null;r&&(d=o&&u.route.id?o[u.route.id]:void 0,p=u.route.errorElement||HB,l&&(c<0&&f===0?(JB("route-fallback"),g=!0,m=null):c===f&&(g=!0,m=u.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,f+1)),x=()=>{let k;return d?k=p:g?k=m:u.route.Component?k=W.createElement(u.route.Component,null):u.route.element?k=u.route.element:k=h,W.createElement(YB,{match:u,routeContext:{outlet:h,matches:y,isDataRoute:r!=null},children:k})};return r&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?W.createElement(UB,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var z6=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(z6||{}),D6=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(D6||{});function VB(e){let t=W.useContext(ym);return t||Ce(!1),t}function XB(e){let t=W.useContext(OB);return t||Ce(!1),t}function QB(e){let t=W.useContext(ba);return t||Ce(!1),t}function R6(e){let t=QB(),r=t.matches[t.matches.length-1];return r.route.id||Ce(!1),r.route.id}function KB(){var e;let t=W.useContext(M6),r=XB(),i=R6();return t!==void 0?t:(e=r.errors)==null?void 0:e[i]}function ZB(){let{router:e}=VB(z6.UseNavigateStable),t=R6(D6.UseNavigateStable),r=W.useRef(!1);return F6(()=>{r.current=!0}),W.useCallback(function(n,a){a===void 0&&(a={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,xc({fromRouteId:t},a)))},[e,t])}const Sx={};function JB(e,t,r){Sx[e]||(Sx[e]=!0)}function tL(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function eL(e){let{to:t,replace:r,state:i,relative:n}=e;qo()||Ce(!1);let{future:a,static:s}=W.useContext(va),{matches:o}=W.useContext(ba),{pathname:l}=Wo(),c=$6(),h=mm(t,gm(o,a.v7_relativeSplatPath),l,n==="path"),u=JSON.stringify(h);return W.useEffect(()=>c(JSON.parse(u),{replace:r,state:i,relative:n}),[c,u,n,r,i]),null}function en(e){Ce(!1)}function rL(e){let{basename:t="/",children:r=null,location:i,navigationType:n=Hn.Pop,navigator:a,static:s=!1,future:o}=e;qo()&&Ce(!1);let l=t.replace(/^\/*/,"/"),c=W.useMemo(()=>({basename:l,navigator:a,static:s,future:xc({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof i=="string"&&(i=jo(i));let{pathname:h="/",search:u="",hash:f="",state:d=null,key:g="default"}=i,p=W.useMemo(()=>{let m=pm(h,l);return m==null?null:{location:{pathname:m,search:u,hash:f,state:d,key:g},navigationType:n}},[l,h,u,f,d,g,n]);return p==null?null:W.createElement(va.Provider,{value:c},W.createElement(Ju.Provider,{children:r,value:p}))}function iL(e){let{children:t,location:r}=e;return jB(t1(t),r)}new Promise(()=>{});function t1(e,t){t===void 0&&(t=[]);let r=[];return W.Children.forEach(e,(i,n)=>{if(!W.isValidElement(i))return;let a=[...t,n];if(i.type===W.Fragment){r.push.apply(r,t1(i.props.children,a));return}i.type!==en&&Ce(!1),!i.props.index||!i.props.children||Ce(!1);let s={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=t1(i.props.children,a)),r.push(s)}),r}/**
|
|
60
|
+
* React Router DOM v6.30.3
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Remix Software Inc.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
+
*
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/function e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},e1.apply(this,arguments)}function nL(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,a;for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function aL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sL(e,t){return e.button===0&&(!t||t==="_self")&&!aL(e)}const oL=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lL="6";try{window.__reactRouterVersion=lL}catch{}const cL="startTransition",Tx=J9[cL];function hL(e){let{basename:t,children:r,future:i,window:n}=e,a=W.useRef();a.current==null&&(a.current=uB({window:n,v5Compat:!0}));let s=a.current,[o,l]=W.useState({action:s.action,location:s.location}),{v7_startTransition:c}=i||{},h=W.useCallback(u=>{c&&Tx?Tx(()=>l(u)):l(u)},[l,c]);return W.useLayoutEffect(()=>s.listen(h),[s,h]),W.useEffect(()=>tL(i),[i]),W.createElement(rL,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:s,future:i})}const uL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Es=W.forwardRef(function(t,r){let{onClick:i,relative:n,reloadDocument:a,replace:s,state:o,target:l,to:c,preventScrollReset:h,viewTransition:u}=t,f=nL(t,oL),{basename:d}=W.useContext(va),g,p=!1;if(typeof c=="string"&&dL.test(c)&&(g=c,uL))try{let k=new URL(window.location.href),T=c.startsWith("//")?new URL(k.protocol+c):new URL(c),_=pm(T.pathname,d);T.origin===k.origin&&_!=null?c=_+T.search+T.hash:p=!0}catch{}let m=PB(c,{relative:n}),y=fL(c,{replace:s,state:o,target:l,preventScrollReset:h,relative:n,viewTransition:u});function x(k){i&&i(k),k.defaultPrevented||y(k)}return W.createElement("a",e1({},f,{href:g||m,onClick:p||a?i:x,ref:r,target:l}))});var _x;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_x||(_x={}));var Bx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bx||(Bx={}));function fL(e,t){let{target:r,replace:i,state:n,preventScrollReset:a,relative:s,viewTransition:o}=t===void 0?{}:t,l=$6(),c=Wo(),h=I6(e,{relative:s});return W.useCallback(u=>{if(sL(u,r)){u.preventDefault();let f=i!==void 0?i:U0(c)===U0(h);l(e,{replace:f,state:n,preventScrollReset:a,relative:s,viewTransition:o})}},[c,l,h,i,n,r,e,a,s,o])}const xm="/api",pL="http://127.0.0.1:7474/api";let O6=!1,Lx=!1;function gL(){if(Lx)return;Lx=!0;const e=vm();if(!e)return;const t=new AbortController,r=setTimeout(()=>t.abort(),1500);fetch("http://127.0.0.1:7474/status",{headers:{"x-sync-token":e},signal:t.signal}).then(i=>i.json()).then(i=>{i!=null&&i.success&&(O6=!0)}).catch(()=>{}).finally(()=>clearTimeout(r))}function ws(){return O6?pL:xm}function vm(){return localStorage.getItem("syncToken")||""}async function bm(e,t,r,i){try{return await(await fetch(`${i??xm}${t}`,{method:e,headers:{"Content-Type":"application/json","x-sync-token":vm()},body:r?JSON.stringify(r):void 0})).json()}catch(n){return{success:!1,error:n instanceof Error?n.message:"网络错误"}}}const mr=(e,t)=>bm("GET",e,void 0,t),qe=(e,t,r)=>bm("POST",e,t,r),Cm=(e,t)=>bm("DELETE",e,void 0,t),Y0={login:e=>qe("/auth/login",{syncToken:e}),me:()=>mr("/auth/me"),setup:e=>qe("/auth/setup",{guardianName:e}),listStudents:()=>mr("/auth/students"),createStudent:(e,t,r)=>qe("/auth/students",{name:e,grade:t,subjects:r}),deleteStudent:e=>Cm(`/auth/students/${e}`),resetToken:()=>qe("/auth/reset-token")},Ua={getModels:()=>mr("/settings/models"),saveAIConfig:(e,t,r,i,n)=>qe("/settings/ai",{provider:e,modelId:t,modelName:r,apiKey:i,baseUrl:n}),getAIConfig:()=>mr("/settings/ai"),saveEmailConfig:(e,t,r,i)=>qe("/settings/email",{email:e,authCode:t,imapHost:r,imapPort:i}),getEmailConfig:()=>mr("/settings/email"),testEmailConnection:()=>qe("/settings/email/test")},s0={create:(e,t,r)=>qe("/plans",{title:e,description:t,subjects:r}),getActive:()=>mr("/plans/active"),list:()=>mr("/plans")},Un={getLogs:e=>mr(`/agent/logs${e?`?limit=${e}`:""}`),getTasks:(e,t,r)=>mr(`/agent/tasks?${new URLSearchParams({...e?{status:e}:{},page:String(t||1),pageSize:String(r||20)})}`),runCycle:()=>qe("/agent/run"),runProactiveReport:()=>qe("/agent/report"),setDoNotDisturb:(e,t)=>qe("/agent/dnd",{start:e,end:t}),clearDoNotDisturb:()=>Cm("/agent/dnd")},o0={getStatus:()=>mr("/email/status"),startPolling:()=>qe("/email/start"),stopPolling:()=>qe("/email/stop")},mL={send:e=>qe("/chat/send",{message:e}),stream(e,t,r,i,n){const a=new AbortController;return(async()=>{try{const s=await fetch(`${xm}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json","x-sync-token":vm()},body:JSON.stringify({messages:e}),signal:a.signal});if(!s.ok||!s.body){i("请求失败");return}const o=s.body.getReader(),l=new TextDecoder;let c="";for(;;){const{done:h,value:u}=await o.read();if(h){r();break}c+=l.decode(u,{stream:!0});const f=c.split(`
|
|
69
|
+
`);c=f.pop()??"";for(const d of f){if(!d.startsWith("data: "))continue;const g=d.slice(6).trim();if(g==="[DONE]"){r();return}try{const p=JSON.parse(g);if(p.token!=null)t(p.token);else if(p.tool)n==null||n(p.tool,p.display??p.tool);else if(p.thinking)n==null||n("thinking",p.thinking);else if(p.error){i(p.error);return}}catch{}}}}catch(s){s.name!=="AbortError"&&i(s.message||"网络错误")}})(),a}},Ax={get:()=>mr("/goals"),save:e=>qe("/goals",e)},yL={recordLearning:e=>qe("/data/learning",e),getSummary:(e,t,r)=>mr(`/data/summary?dateFrom=${e}&dateTo=${t}${r?`&subject=${r}`:""}`)},xL={write:(e,t)=>qe("/workspace/write",{relativePath:e,content:t},ws()),read:e=>mr(`/workspace/read?path=${encodeURIComponent(e)}`,ws()),list:e=>mr(`/workspace/list?path=${encodeURIComponent(e)}`,ws()),delete:e=>Cm(`/workspace/delete?path=${encodeURIComponent(e)}`,ws()),getStats:()=>mr("/workspace/stats",ws()),cleanupTemp:()=>qe("/workspace/cleanup-temp",void 0,ws())};function vL(){const[e,t]=W.useState(null),[r,i]=W.useState(null),[n,a]=W.useState([]),[s,o]=W.useState(null),[l,c]=W.useState(null),[h,u]=W.useState(null),[f,d]=W.useState(0),[g,p]=W.useState(!0),[m,y]=W.useState(!1);W.useEffect(()=>{x()},[]);const x=async()=>{p(!0);try{const S=await s0.getActive();S.success&&S.data&&t(S.data);const A=Date.now(),N=A-30*24*60*60*1e3,z=await yL.getSummary(N,A);z.success&&z.data&&i(z.data);const P=await Un.getLogs(5);P.success&&P.data&&a(P.data);const U=await Ua.getAIConfig();U.success&&U.data&&o(U.data);const Q=await o0.getStatus();Q.success&&Q.data&&c(Q.data);const Y=await xL.getStats();Y.success&&Y.data&&u(Y.data);const q=await Un.getTasks("completed",1,1);if(q.success&&q.data){const R=q.data;d(R.total??0)}}finally{p(!1)}},k=async()=>{if(!m){y(!0);try{await Un.runCycle(),setTimeout(()=>{Un.getLogs(5).then(S=>{S.success&&S.data&&a(S.data)})},2e3)}finally{y(!1)}}},T=S=>new Date(S).toLocaleString("zh-CN",{month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}),_=S=>({push_suggestion:"推送建议",send_bot_message:"发送消息",set_schedule:"设置定时",update_weakness:"更新薄弱点",no_action:"无动作",proactive_report:"主动报告",daily_review:"每日回顾",weakness_quiz:"薄弱点测验",generate_diagram:"生成图表",resource_brief:"资源简报"})[S]||S,M=S=>S<1024*1024?`${(S/1024).toFixed(1)} KB`:S<1024*1024*1024?`${(S/1024/1024).toFixed(1)} MB`:`${(S/1024/1024/1024).toFixed(2)} GB`;return g?b.jsxs("div",{className:"loading",children:[b.jsx("div",{className:"spinner"}),"加载中..."]}):b.jsxs("div",{children:[b.jsxs("div",{className:"page-header",children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[b.jsx("h1",{children:"仪表盘"}),b.jsx("span",{style:{background:"var(--primary-light)",color:"var(--primary)",fontSize:11,fontWeight:600,padding:"3px 10px",borderRadius:4,letterSpacing:"0.03em",border:"1px solid rgba(79,70,229,0.2)"},children:"SuperAdmin"})]}),b.jsx("p",{children:"欢迎回来,全功能访问已启用"})]}),b.jsxs("div",{className:"grid-2",style:{marginBottom:24},children:[b.jsxs("div",{className:"card",children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600},children:"当前学习方向"}),b.jsx(Es,{to:"/plans",style:{fontSize:12,color:"var(--primary)"},children:"管理方向"})]}),e?b.jsxs("div",{children:[b.jsx("div",{style:{fontWeight:600,fontSize:14,marginBottom:6},children:e.title}),e.description&&b.jsx("p",{style:{color:"var(--text-secondary)",fontSize:13,marginBottom:10},children:e.description}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:e.subjects.map(S=>b.jsx("span",{className:"tag",children:S},S))})]}):b.jsxs("div",{className:"empty-state",style:{padding:"20px 0"},children:[b.jsx("div",{className:"empty-icon",children:b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10"}),b.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),b.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),b.jsx("p",{style:{fontSize:13},children:"尚未设置学习方向"}),b.jsx(Es,{to:"/plans",children:b.jsx("button",{className:"btn btn-primary btn-sm",style:{marginTop:10},children:"设置方向"})})]})]}),b.jsxs("div",{className:"card",children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600,marginBottom:16},children:"薄弱知识点 Top 3"}),r!=null&&r.weakPoints&&r.weakPoints.length>0?b.jsx("div",{children:r.weakPoints.slice(0,3).map((S,A)=>b.jsxs("div",{style:{marginBottom:14},children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:4,fontSize:13},children:[b.jsxs("span",{children:[b.jsxs("span",{style:{color:"var(--text-muted)",marginRight:6},children:["[",S.subject,"]"]}),S.topic]}),b.jsxs("span",{style:{color:"var(--danger)",fontWeight:600},children:[Math.round(S.weakness_score*100),"%"]})]}),b.jsx("div",{className:"progress-bar",children:b.jsx("div",{className:`progress-bar-fill ${S.weakness_score>.7?"danger":S.weakness_score>.4?"warning":"success"}`,style:{width:`${S.weakness_score*100}%`}})})]},A))}):b.jsxs("div",{className:"empty-state",style:{padding:"20px 0"},children:[b.jsx("div",{className:"empty-icon",children:b.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("polyline",{points:"20 6 9 17 4 12"})})}),b.jsx("p",{style:{fontSize:13},children:"暂无薄弱知识点数据"})]})]})]}),b.jsxs("div",{className:"card",style:{marginBottom:16},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600},children:"最近 Agent 行为"}),b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[b.jsx("button",{className:"btn btn-secondary btn-sm",onClick:k,disabled:m,children:m?"运行中...":"触发分析"}),b.jsx(Es,{to:"/agent-logs",style:{fontSize:12,color:"var(--primary)"},children:"查看全部"})]})]}),n.length>0?b.jsx("div",{children:n.map(S=>b.jsxs("div",{style:{display:"flex",gap:12,padding:"8px 0",borderBottom:"1px solid var(--border)",alignItems:"flex-start"},children:[b.jsx("div",{style:{width:7,height:7,borderRadius:"50%",background:S.status==="success"?"var(--success)":"var(--danger)",marginTop:6,flexShrink:0}}),b.jsxs("div",{style:{flex:1,minWidth:0},children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:8,marginBottom:2},children:[b.jsx("span",{style:{fontWeight:500,fontSize:13},children:_(S.action_type)}),b.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",flexShrink:0},children:T(S.create_time)})]}),S.action_detail&&b.jsx("p",{style:{fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:S.action_detail})]})]},S.id))}):b.jsxs("div",{className:"empty-state",style:{padding:"20px 0"},children:[b.jsx("div",{className:"empty-icon",children:b.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}),b.jsx("p",{style:{fontSize:13},children:"Agent 尚未执行任何操作"})]})]}),b.jsxs("div",{className:"card",children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600,marginBottom:16},children:"系统状态"}),b.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16},children:[b.jsxs("div",{children:[b.jsx("div",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:4},children:"AI 配置"}),b.jsx("div",{style:{fontWeight:600,fontSize:14},children:s!=null&&s.apiKey?b.jsx("span",{style:{color:"var(--success)"},children:"已配置"}):b.jsx("span",{style:{color:"var(--warning)"},children:"未配置"})}),(s==null?void 0:s.modelId)&&b.jsx("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:2},children:s.modelId}),!(s!=null&&s.apiKey)&&b.jsx(Es,{to:"/config",style:{fontSize:12,color:"var(--primary)",display:"block",marginTop:4},children:"前往配置"})]}),b.jsxs("div",{children:[b.jsx("div",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:4},children:"邮件轮询"}),b.jsx("div",{style:{fontWeight:600,fontSize:14},children:l?b.jsx("span",{style:{color:l.polling?"var(--success)":"var(--text-muted)"},children:l.polling?"轮询中":"已停止"}):b.jsx("span",{style:{color:"var(--text-muted)"},children:"未配置"})}),(l==null?void 0:l.lastCheck)&&b.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:2},children:["上次: ",new Date(l.lastCheck).toLocaleTimeString("zh-CN")]})]}),b.jsxs("div",{children:[b.jsx("div",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:4},children:"磁盘剩余"}),h?b.jsxs(b.Fragment,{children:[b.jsx("div",{style:{fontWeight:600,fontSize:14},children:h.warning?b.jsxs("span",{style:{color:"var(--danger)"},children:[M(h.diskFree)," 可用"]}):b.jsxs("span",{style:{color:"var(--success)"},children:[M(h.diskFree)," 可用"]})}),b.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:2},children:["已用 ",M(h.usage??0),h.warning&&b.jsx("span",{style:{color:"var(--warning)",marginLeft:6},children:"空间不足"})]})]}):b.jsx("span",{style:{color:"var(--text-muted)",fontSize:13},children:"加载中..."})]}),b.jsxs("div",{children:[b.jsx("div",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:4},children:"Agent 任务"}),b.jsx("div",{style:{fontWeight:600,fontSize:14},children:b.jsxs("span",{style:{color:f>0?"var(--success)":"var(--text-muted)"},children:[f," 个已完成"]})}),b.jsx(Es,{to:"/agent-tasks",style:{fontSize:12,color:"var(--primary)",display:"block",marginTop:4},children:"查看记录"})]})]})]})]})}const bL=["数学","语文","英语","物理","化学","生物","历史","地理","政治","计算机","音乐","体育","美术","其他"];function CL(){const[e,t]=W.useState(null),[r,i]=W.useState([]),[n,a]=W.useState(!0),[s,o]=W.useState(!1),[l,c]=W.useState(!1),[h,u]=W.useState(""),[f,d]=W.useState(""),[g,p]=W.useState(""),[m,y]=W.useState(""),[x,k]=W.useState([]);W.useEffect(()=>{T()},[]);const T=async()=>{a(!0);try{const A=await s0.getActive();A.success&&A.data&&t(A.data);const N=await s0.list();N.success&&Array.isArray(N.data)&&i(N.data)}finally{a(!1)}},_=A=>{k(N=>N.includes(A)?N.filter(z=>z!==A):[...N,A])},M=async A=>{if(A.preventDefault(),u(""),d(""),!g.trim()){u("请输入方向标题");return}if(x.length===0){u("请至少选择一个学习科目");return}c(!0);try{const N=await s0.create(g.trim(),m.trim(),x);N.success?(d("学习方向已创建,旧方向已归档"),o(!1),p(""),y(""),k([]),await T()):u(N.error||"创建失败")}finally{c(!1)}},S=A=>new Date(A).toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"});return n?b.jsxs("div",{className:"loading",children:[b.jsx("div",{className:"spinner"}),"加载中..."]}):b.jsxs("div",{children:[b.jsxs("div",{className:"page-header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[b.jsxs("div",{children:[b.jsx("h1",{children:"学习方向管理"}),b.jsx("p",{children:"设置当前的学习目标和科目,Agent 将基于此提供个性化建议"})]}),b.jsx("button",{className:"btn btn-primary",onClick:()=>{o(!s),u(""),d("")},children:s?"取消":"创建新方向"})]}),h&&b.jsx("div",{className:"alert alert-error",children:h}),f&&b.jsx("div",{className:"alert alert-success",children:f}),s&&b.jsxs("div",{className:"card",style:{marginBottom:24},children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600,marginBottom:16},children:"创建新学习方向"}),b.jsx("div",{style:{background:"var(--warning-bg)",border:"1px solid var(--warning-border)",borderRadius:"var(--radius)",padding:"8px 12px",fontSize:12,color:"var(--warning)",marginBottom:16},children:"创建新方向后,当前 active 方向将自动归档"}),b.jsxs("form",{onSubmit:M,children:[b.jsxs("div",{className:"form-group",children:[b.jsx("label",{children:"方向标题 *"}),b.jsx("input",{className:"form-control",type:"text",value:g,onChange:A=>p(A.target.value),placeholder:"例如:备战高考 / 大学数学强化",autoFocus:!0})]}),b.jsxs("div",{className:"form-group",children:[b.jsx("label",{children:"方向描述"}),b.jsx("textarea",{className:"form-control",value:m,onChange:A=>y(A.target.value),placeholder:"描述这个学习方向的目标和计划(选填)",rows:3})]}),b.jsxs("div",{className:"form-group",children:[b.jsx("label",{children:"学习科目 * (可多选)"}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:8},children:bL.map(A=>b.jsx("button",{type:"button",onClick:()=>_(A),style:{padding:"5px 14px",borderRadius:"var(--radius)",border:`1px solid ${x.includes(A)?"var(--primary)":"var(--border)"}`,background:x.includes(A)?"var(--primary-light)":"var(--bg-card)",color:x.includes(A)?"var(--primary)":"var(--text)",cursor:"pointer",fontSize:13,fontWeight:x.includes(A)?500:400,transition:"all 0.13s",fontFamily:"inherit"},children:A},A))}),x.length>0&&b.jsxs("p",{style:{fontSize:12,color:"var(--text-secondary)",marginTop:6},children:["已选:",x.join("、")]})]}),b.jsxs("div",{style:{display:"flex",gap:8},children:[b.jsx("button",{type:"submit",className:"btn btn-primary",disabled:l,children:l?"保存中...":"保存方向"}),b.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>o(!1),children:"取消"})]})]})]}),b.jsxs("div",{style:{marginBottom:24},children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600,marginBottom:12},children:"当前 Active 方向"}),e?b.jsxs("div",{className:"card",style:{borderLeft:"3px solid var(--primary)"},children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:10},children:[b.jsxs("div",{children:[b.jsx("span",{className:"badge badge-green",style:{marginBottom:8,display:"inline-flex"},children:"Active"}),b.jsx("h3",{style:{fontSize:16,fontWeight:600,color:"var(--text)",marginBottom:6},children:e.title}),e.description&&b.jsx("p",{style:{color:"var(--text-secondary)",fontSize:13},children:e.description})]}),b.jsxs("span",{style:{fontSize:11,color:"var(--text-muted)",flexShrink:0},children:["创建于 ",S(e.create_time)]})]}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:e.subjects.map(A=>b.jsx("span",{className:"tag",children:A},A))})]}):b.jsx("div",{className:"card",children:b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-icon",children:b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),b.jsx("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]})}),b.jsx("h3",{children:"尚未设置学习方向"}),b.jsx("p",{children:"点击右上角按钮创建你的第一个学习方向"})]})})]}),r.filter(A=>A.status==="archived").length>0&&b.jsxs("div",{children:[b.jsx("h2",{style:{fontSize:15,fontWeight:600,marginBottom:12,color:"var(--text-secondary)"},children:"历史方向"}),b.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:r.filter(A=>A.status==="archived").map(A=>b.jsxs("div",{className:"card",style:{opacity:.7,borderLeft:"3px solid var(--border)"},children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[b.jsxs("div",{children:[b.jsx("span",{className:"badge badge-gray",style:{marginBottom:6,display:"inline-flex"},children:"已归档"}),b.jsx("h3",{style:{fontSize:14,fontWeight:600,marginBottom:4},children:A.title}),A.description&&b.jsx("p",{style:{fontSize:12,color:"var(--text-muted)"},children:A.description})]}),b.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",flexShrink:0},children:S(A.create_time)})]}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:8},children:A.subjects.map(N=>b.jsx("span",{style:{padding:"2px 9px",borderRadius:4,background:"#f1f5f9",color:"var(--text-muted)",fontSize:12,border:"1px solid var(--border)"},children:N},N))})]},A.id))})]})]})}function kL(){const[e,t]=W.useState("ai"),r=i=>({padding:"7px 18px",borderRadius:"var(--radius)",border:"none",cursor:"pointer",fontSize:13,fontWeight:e===i?600:400,background:e===i?"var(--primary)":"transparent",color:e===i?"#fff":"var(--text-secondary)",transition:"all 0.13s",fontFamily:"inherit"});return b.jsxs("div",{children:[b.jsxs("div",{className:"page-header",children:[b.jsx("h1",{children:"系统配置"}),b.jsx("p",{children:"配置 AI 模型与邮件服务"})]}),b.jsxs("div",{style:{display:"flex",gap:4,background:"var(--bg)",padding:4,borderRadius:8,marginBottom:24,width:"fit-content",border:"1px solid var(--border)"},children:[b.jsx("button",{style:r("ai"),onClick:()=>t("ai"),children:"AI 配置"}),b.jsx("button",{style:r("email"),onClick:()=>t("email"),children:"Email 插件"}),b.jsx("button",{style:r("goal"),onClick:()=>t("goal"),children:"学习目标"})]}),e==="ai"&&b.jsx(wL,{}),e==="email"&&b.jsx(SL,{}),e==="goal"&&b.jsx(_L,{})]})}function wL(){var P;const[e,t]=W.useState(!0),[r,i]=W.useState(""),[n,a]=W.useState(""),[s,o]=W.useState([]),[l,c]=W.useState(""),[h,u]=W.useState(null),[f,d]=W.useState(""),[g,p]=W.useState(""),[m,y]=W.useState(""),[x,k]=W.useState(!1),[T,_]=W.useState(!1),[M,S]=W.useState(!1);W.useEffect(()=>{A()},[]);const A=async()=>{t(!0);try{const U=await Ua.getAIConfig();if(U.success&&U.data){const Q=U.data;u(Q),d(Q.modelId||""),y(Q.baseUrl||"")}}finally{t(!1)}},N=async()=>{S(!0);try{const U=await Ua.getModels();U.success&&Array.isArray(U.data)&&o(U.data)}finally{S(!1)}},z=async()=>{if(i(""),a(""),!g.trim()&&!(h!=null&&h.apiKey)){i("请输入 API Key");return}const U=s.find(R=>R.id===f),Q=(U==null?void 0:U.provider)||"openai",Y=(U==null?void 0:U.name)||f,q=g.trim()||(h==null?void 0:h.apiKey)||"";_(!0);try{const R=await Ua.saveAIConfig(Q,f,Y,q,m||void 0);R.success?(a("AI 配置已保存"),p(""),await A()):i(R.error||"保存失败")}finally{_(!1)}};return e?b.jsxs("div",{className:"loading",children:[b.jsx("div",{className:"spinner"}),"加载中..."]}):b.jsxs("div",{children:[r&&b.jsx("div",{className:"alert alert-error",children:r}),n&&b.jsx("div",{className:"alert alert-success",children:n}),b.jsxs("div",{className:"card",style:{marginBottom:20},children:[b.jsx("h3",{style:{fontSize:15,fontWeight:600,marginBottom:16},children:"AI 模型配置"}),(h==null?void 0:h.modelId)&&b.jsxs("div",{className:"alert alert-success",style:{marginBottom:12},children:["当前模型:",h.modelId,h.apiKeyMasked&&` · API Key: ${h.apiKeyMasked}`]}),b.jsx("div",{style:{display:"flex",gap:8,marginBottom:12},children:b.jsx("button",{className:"btn btn-secondary btn-sm",onClick:N,disabled:M,children:M?"拉取中...":"从 models.dev 拉取模型列表"})}),s.length>0&&b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{children:["选择模型",b.jsxs("span",{style:{fontWeight:400,color:"var(--text-muted)",marginLeft:8,fontSize:12},children:["共 ",s.length," 个"]})]}),b.jsx("input",{className:"form-control",type:"text",placeholder:"搜索模型名称或提供商...",value:l,onChange:U=>c(U.target.value),style:{marginBottom:6}}),f&&b.jsxs("div",{style:{fontSize:12,color:"var(--success)",marginBottom:6},children:["已选:",((P=s.find(U=>U.id===f))==null?void 0:P.name)??f]}),b.jsxs("div",{style:{border:"1px solid var(--border)",borderRadius:"var(--radius)",maxHeight:220,overflowY:"auto",background:"var(--bg-card)"},children:[s.filter(U=>{const Q=l.toLowerCase();return!Q||U.name.toLowerCase().includes(Q)||U.provider.toLowerCase().includes(Q)||U.id.toLowerCase().includes(Q)}).slice(0,200).map(U=>b.jsxs("div",{onClick:()=>{d(U.id),U.baseUrl?(y(U.baseUrl),k(!0)):(y(""),k(!1))},style:{padding:"7px 12px",cursor:"pointer",background:f===U.id?"var(--primary-light)":"transparent",borderLeft:f===U.id?"3px solid var(--primary)":"3px solid transparent",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:13,borderBottom:"1px solid var(--border)"},children:[b.jsxs("span",{children:[b.jsxs("span",{style:{color:"var(--text-muted)",fontSize:11,marginRight:6},children:["[",U.provider,"]"]}),U.name]}),b.jsxs("span",{style:{fontSize:11,color:"var(--text-muted)",flexShrink:0},children:[U.supportsImages?"视觉 ":"",U.supportsTools?"工具":""]})]},U.id)),s.filter(U=>{const Q=l.toLowerCase();return!Q||U.name.toLowerCase().includes(Q)||U.provider.toLowerCase().includes(Q)||U.id.toLowerCase().includes(Q)}).length===0&&b.jsx("div",{style:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:13},children:"无匹配结果"})]})]}),b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{children:["API Key",(h==null?void 0:h.apiKeyMasked)&&` (当前: ${h.apiKeyMasked},留空不修改)`]}),b.jsx("input",{className:"form-control",type:"password",value:g,onChange:U=>p(U.target.value),placeholder:"sk-..."})]}),b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{children:["Base URL",x&&b.jsx("span",{style:{fontWeight:400,color:"var(--success)",marginLeft:6,fontSize:11},children:"自动填充自 models.dev"}),!x&&b.jsx("span",{style:{fontWeight:400,color:"var(--text-muted)",marginLeft:6,fontSize:11},children:"可选,默认 OpenAI"})]}),b.jsx("input",{className:"form-control",type:"text",value:m,onChange:U=>{y(U.target.value),k(!1)},placeholder:"https://api.openai.com/v1"})]}),b.jsx("button",{className:"btn btn-primary",onClick:z,disabled:T||!f,children:T?"保存中...":"保存 AI 配置"})]})]})}function SL(){const[e,t]=W.useState(null),[r,i]=W.useState(null),[n,a]=W.useState(!0),[s,o]=W.useState(""),[l,c]=W.useState(""),[h,u]=W.useState(!1),[f,d]=W.useState(!1),[g,p]=W.useState(!1),[m,y]=W.useState(""),[x,k]=W.useState(""),[T,_]=W.useState(""),[M,S]=W.useState(993),[A,N]=W.useState(!1);W.useEffect(()=>{z()},[]);const z=async()=>{a(!0);try{const[R,H]=await Promise.all([Ua.getEmailConfig(),o0.getStatus()]);if(R.success&&R.data){const F=R.data;t(F),F.configured&&(y(F.email||""),_(F.imapHost||""),S(F.imapPort||993))}if(H.success&&H.data){const F=H.data;i(F),N(F.polling)}}finally{a(!1)}},P=async R=>{if(R.preventDefault(),o(""),c(""),!m.trim()||!x.trim()||!T.trim()){o("请填写完整的邮件配置");return}d(!0);try{const H=await Ua.saveEmailConfig(m.trim(),x.trim(),T.trim(),M);H.success?(c("邮件配置已保存"),k(""),await z()):o(H.error||"保存失败")}finally{d(!1)}},U=async()=>{o(""),c(""),u(!0);try{const R=await Ua.testEmailConnection();R.success?c("连接测试成功"):o(R.error||"连接失败")}finally{u(!1)}},Q=async()=>{o(""),p(!0);try{const R=A?await o0.stopPolling():await o0.startPolling();R.success?(N(!A),await z()):o(R.error||"操作失败")}finally{p(!1)}},Y={"gmail.com":{host:"imap.gmail.com",port:993},"qq.com":{host:"imap.qq.com",port:993},"163.com":{host:"imap.163.com",port:993},"126.com":{host:"imap.126.com",port:993},"outlook.com":{host:"outlook.office365.com",port:993},"hotmail.com":{host:"outlook.office365.com",port:993}},q=R=>{var F;y(R);const H=(F=R.split("@")[1])==null?void 0:F.toLowerCase();H&&Y[H]&&(_(Y[H].host),S(Y[H].port))};return n?b.jsxs("div",{className:"loading",children:[b.jsx("div",{className:"spinner"}),"加载中..."]}):b.jsxs("div",{children:[s&&b.jsx("div",{className:"alert alert-error",children:s}),l&&b.jsx("div",{className:"alert alert-success",children:l}),b.jsx("div",{className:"card",style:{marginBottom:16},children:b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[b.jsxs("div",{children:[b.jsx("h3",{style:{fontSize:15,fontWeight:600,marginBottom:4},children:"邮件轮询状态"}),b.jsx("div",{style:{fontSize:13},children:r!=null&&r.polling?b.jsx("span",{style:{color:"var(--success)"},children:"正在轮询(每 5 分钟检查一次新邮件)"}):b.jsx("span",{style:{color:"var(--text-muted)"},children:"已停止"})}),(r==null?void 0:r.lastCheck)&&b.jsxs("div",{style:{fontSize:12,color:"var(--text-muted)",marginTop:4},children:["上次检查:",new Date(r.lastCheck).toLocaleString("zh-CN")]}),(r==null?void 0:r.error)&&b.jsxs("div",{style:{fontSize:12,color:"var(--danger)",marginTop:4},children:["最近错误:",r.error]})]}),(e==null?void 0:e.configured)&&b.jsx("button",{className:`btn ${A?"btn-danger":"btn-primary"}`,onClick:Q,disabled:g,children:g?"操作中...":A?"停止轮询":"启动轮询"})]})}),b.jsxs("div",{className:"card",children:[b.jsxs("h3",{style:{fontSize:15,fontWeight:600,marginBottom:6},children:["邮箱配置",(e==null?void 0:e.configured)&&b.jsx("span",{className:"badge badge-green",style:{marginLeft:8,fontSize:11},children:"已配置"})]}),(e==null?void 0:e.configured)&&b.jsxs("div",{style:{marginBottom:16,fontSize:13,color:"var(--text-secondary)"},children:["当前邮箱:",e.email," · IMAP:",e.imapHost,":",e.imapPort]}),b.jsxs("form",{onSubmit:P,children:[b.jsxs("div",{className:"form-group",children:[b.jsx("label",{children:"邮箱地址"}),b.jsx("input",{className:"form-control",type:"email",value:m,onChange:R=>q(R.target.value),placeholder:"your@email.com"}),b.jsx("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:4},children:"支持自动填充 IMAP:Gmail、QQ邮箱、163、Outlook"})]}),b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{children:["授权码 / 密码",(e==null?void 0:e.configured)&&"(留空不修改)"]}),b.jsx("input",{className:"form-control",type:"password",value:x,onChange:R=>k(R.target.value),placeholder:"邮箱授权码(非登录密码)"})]}),b.jsxs("div",{style:{display:"flex",gap:12},children:[b.jsxs("div",{className:"form-group",style:{flex:1,marginBottom:0},children:[b.jsx("label",{children:"IMAP 服务器"}),b.jsx("input",{className:"form-control",type:"text",value:T,onChange:R=>_(R.target.value),placeholder:"imap.example.com"})]}),b.jsxs("div",{className:"form-group",style:{flex:"0 0 100px",marginBottom:0},children:[b.jsx("label",{children:"端口"}),b.jsx("input",{className:"form-control",type:"number",value:M,onChange:R=>S(Number(R.target.value)),placeholder:"993"})]})]}),b.jsxs("div",{style:{display:"flex",gap:8,marginTop:16},children:[b.jsx("button",{type:"submit",className:"btn btn-primary",disabled:f,children:f?"保存中...":"保存配置"}),(e==null?void 0:e.configured)&&b.jsx("button",{type:"button",className:"btn btn-secondary",onClick:U,disabled:h,children:h?"测试中...":"测试连接"})]})]})]}),b.jsxs("div",{style:{marginTop:16,background:"#eff6ff",border:"1px solid #bfdbfe",borderRadius:"var(--radius)",padding:"12px 16px",fontSize:13,color:"#1d4ed8"},children:[b.jsx("strong",{children:"说明:"}),"开启邮件轮询后,系统每 5 分钟自动检查新邮件。邮件中的附件会被自动保存到 Workspace,并注册为学习资源,Agent 将收到通知并生成资源简报。"]})]})}const TL=["高考","中考","竞赛","期末考试","日常学习"];function _L(){const[e,t]=W.useState(""),[r,i]=W.useState(""),[n,a]=W.useState(""),[s,o]=W.useState(""),[l,c]=W.useState(!0),[h,u]=W.useState(!1),[f,d]=W.useState(!1),[g,p]=W.useState("");W.useEffect(()=>{Ax.get().then(y=>{if(y.success&&y.data){const x=y.data;t(x.exam_type??""),i(x.exam_date?new Date(x.exam_date).toISOString().slice(0,10):""),a(x.school_progress??""),o(x.guardian_notes??"")}c(!1)})},[]);async function m(){u(!0),p(""),d(!1);const y=await Ax.save({examType:e||void 0,examDate:r?new Date(r).getTime():void 0,schoolProgress:n||void 0,guardianNotes:s||void 0});u(!1),y.success?(d(!0),setTimeout(()=>d(!1),2e3)):p(y.error??"保存失败")}return l?b.jsx("div",{style:{color:"var(--text-muted)",fontSize:14},children:"加载中…"}):b.jsx("div",{style:{maxWidth:560},children:b.jsxs("div",{className:"card",style:{padding:"24px 28px"},children:[b.jsx("h3",{style:{margin:"0 0 4px",fontSize:15,fontWeight:600,color:"var(--text)"},children:"学习目标"}),b.jsx("p",{style:{margin:"0 0 24px",fontSize:13,color:"var(--text-secondary)",lineHeight:1.6},children:"AI 用这些信息决定当前讲解的范围和优先级。只填你知道的,留空也没关系。"}),b.jsxs("div",{className:"form-group",children:[b.jsx("label",{style:{fontWeight:600},children:"目标考试"}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginTop:6,marginBottom:4},children:TL.map(y=>b.jsx("button",{onClick:()=>t(e===y?"":y),style:{padding:"5px 14px",borderRadius:20,fontSize:13,cursor:"pointer",border:`1px solid ${e===y?"var(--primary)":"var(--border)"}`,background:e===y?"rgba(217,119,87,0.08)":"transparent",color:e===y?"var(--primary)":"var(--text-secondary)",fontWeight:e===y?600:400},children:y},y))})]}),b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{style:{fontWeight:600},children:["考试日期 ",b.jsx("span",{style:{fontWeight:400,color:"var(--text-muted)"},children:"(可选)"})]}),b.jsx("input",{className:"form-control",type:"date",value:r,onChange:y=>i(y.target.value)})]}),b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{style:{fontWeight:600},children:["学校当前进度 ",b.jsx("span",{style:{fontWeight:400,color:"var(--text-muted)"},children:"(可选)"})]}),b.jsx("input",{className:"form-control",type:"text",placeholder:"例如:高一下学期,数学必修二第三章向量",value:n,onChange:y=>a(y.target.value)}),b.jsx("div",{style:{fontSize:12,color:"var(--text-muted)",marginTop:5},children:"帮助 AI 了解当前教学进度,避免讲超前或滞后的内容"})]}),b.jsxs("div",{className:"form-group",children:[b.jsxs("label",{style:{fontWeight:600},children:["备注 ",b.jsx("span",{style:{fontWeight:400,color:"var(--text-muted)"},children:"(可选)"})]}),b.jsx("textarea",{className:"form-control",rows:3,placeholder:"例如:数学老师说代数基础较弱;英语听力需要加强",value:s,onChange:y=>o(y.target.value),style:{resize:"vertical"}})]}),g&&b.jsx("div",{className:"alert alert-error",style:{marginBottom:16},children:g}),b.jsx("button",{className:"btn btn-primary",onClick:m,disabled:h,style:{minWidth:100},children:h?"保存中…":f?"已保存":"保存"})]})})}const Ex=[{value:"all",label:"全部类型"},{value:"push_suggestion",label:"推送建议"},{value:"send_bot_message",label:"发送消息"},{value:"set_schedule",label:"设置定时"},{value:"update_weakness",label:"更新薄弱点"},{value:"no_action",label:"无动作"},{value:"proactive_report",label:"主动报告"},{value:"daily_review",label:"每日回顾"},{value:"weakness_quiz",label:"薄弱点测验"},{value:"generate_diagram",label:"生成图表"},{value:"resource_brief",label:"资源简报"}],BL=[{value:"all",label:"全部状态"},{value:"success",label:"成功"},{value:"failed",label:"失败"},{value:"pending",label:"进行中"}];function LL(){const[e,t]=W.useState([]),[r,i]=W.useState(!0),[n,a]=W.useState(!1),[s,o]=W.useState("all"),[l,c]=W.useState("all"),[h,u]=W.useState(50);W.useEffect(()=>{f()},[h]);const f=async()=>{i(!0);try{const _=await Un.getLogs(h);_.success&&Array.isArray(_.data)&&t(_.data)}finally{i(!1)}},d=async()=>{if(!n){a(!0);try{await Un.runCycle(),setTimeout(()=>{f(),a(!1)},3e3)}catch{a(!1)}}},g=e.filter(_=>!(s!=="all"&&_.action_type!==s||l!=="all"&&_.status!==l)),p=_=>new Date(_).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),m=_=>{const M=Ex.find(S=>S.value===_);return M?M.label:_},y=_=>_==="autonomous"?"自主触发":_.startsWith("schedule:")?"定时触发":_==="event"?"事件触发":_==="manual"?"手动触发":_,x=_=>_==="success"?"badge badge-green":_==="failed"?"badge badge-red":"badge badge-yellow",k=_=>_==="success"?"成功":_==="failed"?"失败":"进行中",T=_=>_==="success"?"var(--success)":_==="failed"?"var(--danger)":"var(--warning)";return b.jsxs("div",{children:[b.jsxs("div",{className:"page-header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[b.jsxs("div",{children:[b.jsx("h1",{children:"Agent 行为日志"}),b.jsx("p",{children:"查看 AI Agent 的自主决策和执行记录"})]}),b.jsxs("div",{style:{display:"flex",gap:8},children:[b.jsx("button",{className:"btn btn-primary",onClick:d,disabled:n,children:n?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"spinner",style:{width:14,height:14}}),"分析中..."]}):"立即分析"}),b.jsx("button",{className:"btn btn-secondary",onClick:f,disabled:r,children:"刷新"})]})]}),e.length>0&&b.jsxs("div",{className:"grid-4",style:{marginBottom:20},children:[b.jsxs("div",{className:"stat-card",children:[b.jsx("div",{className:"stat-label",children:"总记录"}),b.jsx("div",{className:"stat-value",children:e.length})]}),b.jsxs("div",{className:"stat-card",children:[b.jsx("div",{className:"stat-label",children:"成功"}),b.jsx("div",{className:"stat-value",style:{color:"var(--success)"},children:e.filter(_=>_.status==="success").length})]}),b.jsxs("div",{className:"stat-card",children:[b.jsx("div",{className:"stat-label",children:"失败"}),b.jsx("div",{className:"stat-value",style:{color:"var(--danger)"},children:e.filter(_=>_.status==="failed").length})]}),b.jsxs("div",{className:"stat-card",children:[b.jsx("div",{className:"stat-label",children:"推送建议"}),b.jsx("div",{className:"stat-value",children:e.filter(_=>_.action_type==="push_suggestion").length})]})]}),b.jsxs("div",{className:"card",style:{marginBottom:16,padding:"12px 16px",display:"flex",gap:16,flexWrap:"wrap",alignItems:"center"},children:[b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[b.jsx("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"动作类型:"}),b.jsx("select",{className:"form-control",value:s,onChange:_=>o(_.target.value),style:{width:"auto",padding:"4px 8px",fontSize:13},children:Ex.map(_=>b.jsx("option",{value:_.value,children:_.label},_.value))})]}),b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[b.jsx("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"状态:"}),b.jsx("select",{className:"form-control",value:l,onChange:_=>c(_.target.value),style:{width:"auto",padding:"4px 8px",fontSize:13},children:BL.map(_=>b.jsx("option",{value:_.value,children:_.label},_.value))})]}),b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[b.jsx("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"显示条数:"}),b.jsxs("select",{className:"form-control",value:h,onChange:_=>u(Number(_.target.value)),style:{width:"auto",padding:"4px 8px",fontSize:13},children:[b.jsx("option",{value:20,children:"20 条"}),b.jsx("option",{value:50,children:"50 条"}),b.jsx("option",{value:100,children:"100 条"})]})]}),b.jsxs("span",{style:{fontSize:12,color:"var(--text-muted)",marginLeft:"auto"},children:["显示 ",g.length," / ",e.length," 条"]})]}),r?b.jsxs("div",{className:"loading",children:[b.jsx("div",{className:"spinner"}),"加载中..."]}):g.length===0?b.jsx("div",{className:"card",children:b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-icon",children:b.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}),b.jsx("h3",{children:"暂无日志记录"}),b.jsx("p",{children:e.length===0?"Agent 尚未执行任何操作。配置 AI 后,Agent 将在有学习数据时自动运行。":"当前筛选条件下没有记录"}),e.length===0&&b.jsx("button",{className:"btn btn-primary",onClick:d,disabled:n,style:{marginTop:12},children:n?"分析中...":"立即触发 Agent 分析"})]})}):b.jsxs("div",{style:{position:"relative"},children:[b.jsx("div",{style:{position:"absolute",left:20,top:0,bottom:0,width:1,background:"var(--border)"}}),g.map((_,M)=>b.jsxs("div",{style:{display:"flex",gap:16,marginBottom:M<g.length-1?10:0,position:"relative"},children:[b.jsx("div",{style:{flexShrink:0,paddingTop:14},children:b.jsx("div",{style:{width:40,height:40,borderRadius:"50%",background:"var(--bg-card)",border:`2px solid ${T(_.status)}`,display:"flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:1},children:b.jsx("div",{style:{width:10,height:10,borderRadius:"50%",background:T(_.status)}})})}),b.jsxs("div",{className:"card",style:{flex:1,padding:"12px 16px",borderLeft:`3px solid ${T(_.status)}`},children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:6,gap:8},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[b.jsx("span",{style:{fontWeight:600,fontSize:13},children:m(_.action_type)}),b.jsx("span",{className:x(_.status),children:k(_.status)}),b.jsx("span",{className:"badge badge-gray",children:y(_.trigger_type)}),_.model_used&&b.jsx("span",{className:"badge badge-blue",style:{fontSize:10},children:_.model_used.split("/").pop()||_.model_used})]}),b.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",flexShrink:0,whiteSpace:"nowrap"},children:p(_.create_time)})]}),_.action_detail&&b.jsx("p",{style:{fontSize:13,color:"var(--text)",lineHeight:1.6,background:"var(--bg)",padding:"8px 12px",borderRadius:"var(--radius)",marginTop:4,whiteSpace:"pre-wrap",wordBreak:"break-word",border:"1px solid var(--border)"},children:_.action_detail})]})]},_.id)),g.length>=h&&b.jsx("div",{style:{textAlign:"center",marginTop:16,paddingLeft:56},children:b.jsx("button",{className:"btn btn-secondary",onClick:()=>u(_=>_+50),children:"加载更多"})})]})]})}function km(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let us=km();function P6(e){us=e}const N6=/[&<>"']/,AL=new RegExp(N6.source,"g"),j6=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,EL=new RegExp(j6.source,"g"),ML={"&":"&","<":"<",">":">",'"':""","'":"'"},Mx=e=>ML[e];function Or(e,t){if(t){if(N6.test(e))return e.replace(AL,Mx)}else if(j6.test(e))return e.replace(EL,Mx);return e}const FL=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function $L(e){return e.replace(FL,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const IL=/(^|[^\[])\^/g;function Kt(e,t){let r=typeof e=="string"?e:e.source;t=t||"";const i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(IL,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}function Fx(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Hl={exec:()=>null};function $x(e,t){const r=e.replace(/\|/g,(a,s,o)=>{let l=!1,c=s;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(/ \|/);let n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function wh(e,t,r){const i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function zL(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}function Ix(e,t,r,i){const n=t.href,a=t.title?Or(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const o={type:"link",raw:r,href:n,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,o}return{type:"image",raw:r,href:n,title:a,text:Or(s)}}function DL(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const i=r[1];return t.split(`
|
|
70
|
+
`).map(n=>{const a=n.match(/^\s+/);if(a===null)return n;const[s]=a;return s.length>=i.length?n.slice(i.length):n}).join(`
|
|
71
|
+
`)}class G0{constructor(t){kt(this,"options");kt(this,"rules");kt(this,"lexer");this.options=t||us}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const i=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:wh(i,`
|
|
72
|
+
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const i=r[0],n=DL(i,r[3]||"");return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(/#$/.test(i)){const n=wh(i,"#");(this.options.pedantic||!n||/ $/.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){let i=r[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
73
|
+
$1`);i=wh(i.replace(/^ *>[ \t]?/gm,""),`
|
|
74
|
+
`);const n=this.lexer.state.top;this.lexer.state.top=!0;const a=this.lexer.blockTokens(i);return this.lexer.state.top=n,{type:"blockquote",raw:r[0],tokens:a,text:i}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim();const n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");const s=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let o="",l="",c=!1;for(;t;){let h=!1;if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;o=r[0],t=t.substring(o.length);let u=r[2].split(`
|
|
75
|
+
`,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),f=t.split(`
|
|
76
|
+
`,1)[0],d=0;this.options.pedantic?(d=2,l=u.trimStart()):(d=r[2].search(/[^ ]/),d=d>4?1:d,l=u.slice(d),d+=r[1].length);let g=!1;if(!u&&/^ *$/.test(f)&&(o+=f+`
|
|
77
|
+
`,t=t.substring(f.length+1),h=!0),!h){const y=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),x=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),k=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),T=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;t;){const _=t.split(`
|
|
78
|
+
`,1)[0];if(f=_,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),k.test(f)||T.test(f)||y.test(f)||x.test(t))break;if(f.search(/[^ ]/)>=d||!f.trim())l+=`
|
|
79
|
+
`+f.slice(d);else{if(g||u.search(/[^ ]/)>=4||k.test(u)||T.test(u)||x.test(u))break;l+=`
|
|
80
|
+
`+f}!g&&!f.trim()&&(g=!0),o+=_+`
|
|
81
|
+
`,t=t.substring(_.length+1),u=f.slice(d)}}a.loose||(c?a.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let p=null,m;this.options.gfm&&(p=/^\[[ xX]\] /.exec(l),p&&(m=p[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:o,task:!!p,checked:m,loose:!1,text:l,tokens:[]}),a.raw+=o}a.items[a.items.length-1].raw=o.trimEnd(),a.items[a.items.length-1].text=l.trimEnd(),a.raw=a.raw.trimEnd();for(let h=0;h<a.items.length;h++)if(this.lexer.state.top=!1,a.items[h].tokens=this.lexer.blockTokens(a.items[h].text,[]),!a.loose){const u=a.items[h].tokens.filter(d=>d.type==="space"),f=u.length>0&&u.some(d=>/\n.*\n/.test(d.raw));a.loose=f}if(a.loose)for(let h=0;h<a.items.length;h++)a.items[h].loose=!0;return a}}html(t){const r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){const r=this.rules.block.def.exec(t);if(r){const i=r[1].toLowerCase().replace(/\s+/g," "),n=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){const r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;const i=$x(r[1]),n=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
|
82
|
+
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(const o of n)/^ *-+: *$/.test(o)?s.align.push("right"):/^ *:-+: *$/.test(o)?s.align.push("center"):/^ *:-+ *$/.test(o)?s.align.push("left"):s.align.push(null);for(const o of i)s.header.push({text:o,tokens:this.lexer.inline(o)});for(const o of a)s.rows.push($x(o,s.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return s}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const i=r[1].charAt(r[1].length-1)===`
|
|
83
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:Or(r[1])}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const i=r[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const s=wh(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{const s=zL(r[2],"()");if(s>-1){const l=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);s&&(n=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(i)?n=n.slice(1):n=n.slice(1,-1)),Ix(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){const n=(i[2]||i[1]).replace(/\s+/g," "),a=r[n.toLowerCase()];if(!a){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return Ix(i,a,i[0],this.lexer)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!n||n[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const s=[...n[0]].length-1;let o,l,c=s,h=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*t.length+s);(n=u.exec(r))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(l=[...o].length,n[3]||n[4]){c+=l;continue}else if((n[5]||n[6])&&s%3&&!((s+l)%3)){h+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+h);const f=[...n[0]][0].length,d=t.slice(0,s+n.index+f+l);if(Math.min(s,l)%2){const p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}const g=d.slice(2,-2);return{type:"strong",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(/\n/g," ");const n=/[^ ]/.test(i),a=/^ /.test(i)&&/ $/.test(i);return n&&a&&(i=i.substring(1,i.length-1)),i=Or(i,!0),{type:"codespan",raw:r[0],text:i}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){const r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=Or(r[1]),n="mailto:"+i):(i=Or(r[1]),n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=Or(r[0]),a="mailto:"+n;else{let s;do s=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(s!==r[0]);n=Or(r[0]),r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const r=this.rules.inline.text.exec(t);if(r){let i;return this.lexer.state.inRawBlock?i=r[0]:i=Or(r[0]),{type:"text",raw:r[0],text:i}}}}const RL=/^(?: *(?:\n|$))+/,OL=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,PL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Nc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,NL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,q6=/(?:[*+-]|\d{1,9}[.)])/,W6=Kt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,q6).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),wm=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jL=/^[^\n]+/,Sm=/(?!\s*\])(?:\\.|[^\[\]\\])+/,qL=Kt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Sm).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),WL=Kt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,q6).getRegex(),td="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tm=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,HL=Kt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Tm).replace("tag",td).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),H6=Kt(wm).replace("hr",Nc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",td).getRegex(),UL=Kt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",H6).getRegex(),_m={blockquote:UL,code:OL,def:qL,fences:PL,heading:NL,hr:Nc,html:HL,lheading:W6,list:WL,newline:RL,paragraph:H6,table:Hl,text:jL},zx=Kt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Nc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",td).getRegex(),YL={..._m,table:zx,paragraph:Kt(wm).replace("hr",Nc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",td).getRegex()},GL={..._m,html:Kt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tm).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Hl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Kt(wm).replace("hr",Nc).replace("heading",` *#{1,6} *[^
|
|
84
|
+
]`).replace("lheading",W6).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,VL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Y6=/^( {2,}|\\)\n(?!\s*$)/,XL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jc="\\p{P}\\p{S}",QL=Kt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,jc).getRegex(),KL=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,ZL=Kt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,jc).getRegex(),JL=Kt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,jc).getRegex(),tA=Kt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,jc).getRegex(),eA=Kt(/\\([punct])/,"gu").replace(/punct/g,jc).getRegex(),rA=Kt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),iA=Kt(Tm).replace("(?:-->|$)","-->").getRegex(),nA=Kt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",iA).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V0=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,aA=Kt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",V0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),G6=Kt(/^!?\[(label)\]\[(ref)\]/).replace("label",V0).replace("ref",Sm).getRegex(),V6=Kt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sm).getRegex(),sA=Kt("reflink|nolink(?!\\()","g").replace("reflink",G6).replace("nolink",V6).getRegex(),Bm={_backpedal:Hl,anyPunctuation:eA,autolink:rA,blockSkip:KL,br:Y6,code:VL,del:Hl,emStrongLDelim:ZL,emStrongRDelimAst:JL,emStrongRDelimUnd:tA,escape:U6,link:aA,nolink:V6,punctuation:QL,reflink:G6,reflinkSearch:sA,tag:nA,text:XL,url:Hl},oA={...Bm,link:Kt(/^!?\[(label)\]\((.*?)\)/).replace("label",V0).getRegex(),reflink:Kt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V0).getRegex()},r1={...Bm,escape:Kt(U6).replace("])","~|])").getRegex(),url:Kt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},lA={...r1,br:Kt(Y6).replace("{2,}","*").getRegex(),text:Kt(r1.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Sh={normal:_m,gfm:YL,pedantic:GL},ll={normal:Bm,gfm:r1,breaks:lA,pedantic:oA};class zi{constructor(t){kt(this,"tokens");kt(this,"options");kt(this,"state");kt(this,"tokenizer");kt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||us,this.options.tokenizer=this.options.tokenizer||new G0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:Sh.normal,inline:ll.normal};this.options.pedantic?(r.block=Sh.pedantic,r.inline=ll.pedantic):this.options.gfm&&(r.block=Sh.gfm,this.options.breaks?r.inline=ll.breaks:r.inline=ll.gfm),this.tokenizer.rules=r}static get rules(){return{block:Sh,inline:ll}}static lex(t,r){return new zi(r).lex(t)}static lexInline(t,r){return new zi(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
85
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,l,c)=>l+" ".repeat(c.length));let i,n,a,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(i=o.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
|
86
|
+
`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),n=r[r.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
|
|
87
|
+
`+i.raw,n.text+=`
|
|
88
|
+
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),n=r[r.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
|
|
89
|
+
`+i.raw,n.text+=`
|
|
90
|
+
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(a=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(h=>{c=h.call({lexer:this},l),typeof c=="number"&&c>=0&&(o=Math.min(o,c))}),o<1/0&&o>=0&&(a=t.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){n=r[r.length-1],s&&n.type==="paragraph"?(n.raw+=`
|
|
91
|
+
`+i.raw,n.text+=`
|
|
92
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(i),s=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),n=r[r.length-1],n&&n.type==="text"?(n.raw+=`
|
|
93
|
+
`+i.raw,n.text+=`
|
|
94
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(i);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i,n,a,s=t,o,l,c;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(i=h.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),n=r[r.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):r.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),n=r[r.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):r.push(i);continue}if(i=this.tokenizer.emStrong(t,s,c)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),r.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),r.push(i);continue}if(a=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const u=t.slice(1);let f;this.options.extensions.startInline.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(a=t.substring(0,h+1))}if(i=this.tokenizer.inlineText(a)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(c=i.raw.slice(-1)),l=!0,n=r[r.length-1],n&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):r.push(i);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}}class X0{constructor(t){kt(this,"options");this.options=t||us}code(t,r,i){var a;const n=(a=(r||"").match(/^\S*/))==null?void 0:a[0];return t=t.replace(/\n$/,"")+`
|
|
95
|
+
`,n?'<pre><code class="language-'+Or(n)+'">'+(i?t:Or(t,!0))+`</code></pre>
|
|
96
|
+
`:"<pre><code>"+(i?t:Or(t,!0))+`</code></pre>
|
|
97
|
+
`}blockquote(t){return`<blockquote>
|
|
98
|
+
${t}</blockquote>
|
|
99
|
+
`}html(t,r){return t}heading(t,r,i){return`<h${r}>${t}</h${r}>
|
|
100
|
+
`}hr(){return`<hr>
|
|
101
|
+
`}list(t,r,i){const n=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+n+a+`>
|
|
102
|
+
`+t+"</"+n+`>
|
|
103
|
+
`}listitem(t,r,i){return`<li>${t}</li>
|
|
104
|
+
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
105
|
+
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
106
|
+
<thead>
|
|
107
|
+
`+t+`</thead>
|
|
108
|
+
`+r+`</table>
|
|
109
|
+
`}tablerow(t){return`<tr>
|
|
110
|
+
${t}</tr>
|
|
111
|
+
`}tablecell(t,r){const i=r.header?"th":"td";return(r.align?`<${i} align="${r.align}">`:`<${i}>`)+t+`</${i}>
|
|
112
|
+
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,r,i){const n=Fx(t);if(n===null)return i;t=n;let a='<a href="'+t+'"';return r&&(a+=' title="'+r+'"'),a+=">"+i+"</a>",a}image(t,r,i){const n=Fx(t);if(n===null)return i;t=n;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${r}"`),a+=">",a}text(t){return t}}class Lm{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,i){return""+i}image(t,r,i){return""+i}br(){return""}}class Di{constructor(t){kt(this,"options");kt(this,"renderer");kt(this,"textRenderer");this.options=t||us,this.options.renderer=this.options.renderer||new X0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Lm}static parse(t,r){return new Di(r).parse(t)}static parseInline(t,r){return new Di(r).parseInline(t)}parse(t,r=!0){let i="";for(let n=0;n<t.length;n++){const a=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const s=a,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){i+=o||"";continue}}switch(a.type){case"space":continue;case"hr":{i+=this.renderer.hr();continue}case"heading":{const s=a;i+=this.renderer.heading(this.parseInline(s.tokens),s.depth,$L(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=a;i+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=a;let o="",l="";for(let h=0;h<s.header.length;h++)l+=this.renderer.tablecell(this.parseInline(s.header[h].tokens),{header:!0,align:s.align[h]});o+=this.renderer.tablerow(l);let c="";for(let h=0;h<s.rows.length;h++){const u=s.rows[h];l="";for(let f=0;f<u.length;f++)l+=this.renderer.tablecell(this.parseInline(u[f].tokens),{header:!1,align:s.align[f]});c+=this.renderer.tablerow(l)}i+=this.renderer.table(o,c);continue}case"blockquote":{const s=a,o=this.parse(s.tokens);i+=this.renderer.blockquote(o);continue}case"list":{const s=a,o=s.ordered,l=s.start,c=s.loose;let h="";for(let u=0;u<s.items.length;u++){const f=s.items[u],d=f.checked,g=f.task;let p="";if(f.task){const m=this.renderer.checkbox(!!d);c?f.tokens.length>0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=m+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=m+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:m+" "}):p+=m+" "}p+=this.parse(f.tokens,c),h+=this.renderer.listitem(p,g,!!d)}i+=this.renderer.list(h,o,l);continue}case"html":{const s=a;i+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=a;i+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=a,o=s.tokens?this.parseInline(s.tokens):s.text;for(;n+1<t.length&&t[n+1].type==="text";)s=t[++n],o+=`
|
|
113
|
+
`+(s.tokens?this.parseInline(s.tokens):s.text);i+=r?this.renderer.paragraph(o):o;continue}default:{const s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}parseInline(t,r){r=r||this.renderer;let i="";for(let n=0;n<t.length;n++){const a=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=s||"";continue}}switch(a.type){case"escape":{const s=a;i+=r.text(s.text);break}case"html":{const s=a;i+=r.html(s.text);break}case"link":{const s=a;i+=r.link(s.href,s.title,this.parseInline(s.tokens,r));break}case"image":{const s=a;i+=r.image(s.href,s.title,s.text);break}case"strong":{const s=a;i+=r.strong(this.parseInline(s.tokens,r));break}case"em":{const s=a;i+=r.em(this.parseInline(s.tokens,r));break}case"codespan":{const s=a;i+=r.codespan(s.text);break}case"br":{i+=r.br();break}case"del":{const s=a;i+=r.del(this.parseInline(s.tokens,r));break}case"text":{const s=a;i+=r.text(s.text);break}default:{const s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}}class Ul{constructor(t){kt(this,"options");this.options=t||us}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}kt(Ul,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var ls,i1,X6;class cA{constructor(...t){cy(this,ls);kt(this,"defaults",km());kt(this,"options",this.setOptions);kt(this,"parse",ah(this,ls,i1).call(this,zi.lex,Di.parse));kt(this,"parseInline",ah(this,ls,i1).call(this,zi.lexInline,Di.parseInline));kt(this,"Parser",Di);kt(this,"Renderer",X0);kt(this,"TextRenderer",Lm);kt(this,"Lexer",zi);kt(this,"Tokenizer",G0);kt(this,"Hooks",Ul);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(const s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{const o=s;for(const l of o.header)i=i.concat(this.walkTokens(l.tokens,r));for(const l of o.rows)for(const c of l)i=i.concat(this.walkTokens(c.tokens,r));break}case"list":{const o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{const o=s;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{const c=o[l].flat(1/0);i=i.concat(this.walkTokens(c,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...t){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{const n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){const a=this.defaults.renderer||new X0(this.defaults);for(const s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const o=s,l=i.renderer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){const a=this.defaults.tokenizer||new G0(this.defaults);for(const s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,l=i.tokenizer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){const a=this.defaults.hooks||new Ul;for(const s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const o=s,l=i.hooks[o],c=a[o];Ul.passThroughHooks.has(s)?a[o]=h=>{if(this.defaults.async)return Promise.resolve(l.call(a,h)).then(f=>c.call(a,f));const u=l.call(a,h);return c.call(a,u)}:a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){const a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return zi.lex(t,r??this.defaults)}parser(t,r){return Di.parse(t,r??this.defaults)}}ls=new WeakSet,i1=function(t,r){return(i,n)=>{const a={...n},s={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const o=ah(this,ls,X6).call(this,!!s.silent,!!s.async);if(typeof i>"u"||i===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(l=>t(l,s)).then(l=>s.hooks?s.hooks.processAllTokens(l):l).then(l=>s.walkTokens?Promise.all(this.walkTokens(l,s.walkTokens)).then(()=>l):l).then(l=>r(l,s)).then(l=>s.hooks?s.hooks.postprocess(l):l).catch(o);try{s.hooks&&(i=s.hooks.preprocess(i));let l=t(i,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let c=r(l,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(l){return o(l)}}},X6=function(t,r){return i=>{if(i.message+=`
|
|
114
|
+
Please report this to https://github.com/markedjs/marked.`,t){const n="<p>An error occurred:</p><pre>"+Or(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}};const Ja=new cA;function Yt(e,t){return Ja.parse(e,t)}Yt.options=Yt.setOptions=function(e){return Ja.setOptions(e),Yt.defaults=Ja.defaults,P6(Yt.defaults),Yt};Yt.getDefaults=km;Yt.defaults=us;Yt.use=function(...e){return Ja.use(...e),Yt.defaults=Ja.defaults,P6(Yt.defaults),Yt};Yt.walkTokens=function(e,t){return Ja.walkTokens(e,t)};Yt.parseInline=Ja.parseInline;Yt.Parser=Di;Yt.parser=Di.parse;Yt.Renderer=X0;Yt.TextRenderer=Lm;Yt.Lexer=zi;Yt.lexer=zi.lex;Yt.Tokenizer=G0;Yt.Hooks=Ul;Yt.parse=Yt;Yt.options;Yt.setOptions;Yt.use;Yt.walkTokens;Yt.parseInline;Di.parse;zi.lex;class rt extends Error{constructor(t,r){var i="KaTeX parse error: "+t,n,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;n=s.start,a=s.end,n===o.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var l=o.slice(n,a).replace(/[^]/g,"$&̲"),c;n>15?c="…"+o.slice(n-15,n):c=o.slice(0,n);var h;a+15<o.length?h=o.slice(a,a+15)+"…":h=o.slice(a),i+=c+l+h}super(i),this.name="ParseError",Object.setPrototypeOf(this,rt.prototype),this.position=n,n!=null&&a!=null&&(this.length=a-n),this.rawMessage=t}}var hA=/([A-Z])/g,Am=e=>e.replace(hA,"-$1").toLowerCase(),uA={"&":"&",">":">","<":"<",'"':""","'":"'"},dA=/[&><"']/g,nr=e=>String(e).replace(dA,t=>uA[t]),l0=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?l0(e.body[0]):e:e.type==="font"?l0(e.body):e,fA=new Set(["mathord","textord","atom"]),kn=e=>fA.has(l0(e).type),pA=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Q0={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function gA(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Em{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(Q0)){var i=Q0[r],n=t[r];this[r]=n!==void 0?i.processor?i.processor(n):n:gA(i)}}reportNonstrict(t,r,i){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,i)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new rt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),i);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,i){var n=this.strict;if(typeof n=="function")try{n=n(t,r,i)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=pA(t.url);if(r==null)return!1;t.protocol=r}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class In{constructor(t,r,i){this.id=t,this.size=r,this.cramped=i}sup(){return $i[mA[this.id]]}sub(){return $i[yA[this.id]]}fracNum(){return $i[xA[this.id]]}fracDen(){return $i[vA[this.id]]}cramp(){return $i[bA[this.id]]}text(){return $i[CA[this.id]]}isTight(){return this.size>=2}}var Mm=0,K0=1,eo=2,un=3,vc=4,ri=5,Bo=6,dr=7,$i=[new In(Mm,0,!1),new In(K0,0,!0),new In(eo,1,!1),new In(un,1,!0),new In(vc,2,!1),new In(ri,2,!0),new In(Bo,3,!1),new In(dr,3,!0)],mA=[vc,ri,vc,ri,Bo,dr,Bo,dr],yA=[ri,ri,ri,ri,dr,dr,dr,dr],xA=[eo,un,vc,ri,Bo,dr,Bo,dr],vA=[un,un,ri,ri,dr,dr,dr,dr],bA=[K0,K0,un,un,ri,ri,dr,dr],CA=[Mm,K0,eo,un,eo,un,eo,un],Ft={DISPLAY:$i[Mm],TEXT:$i[eo],SCRIPT:$i[vc],SCRIPTSCRIPT:$i[Bo]},n1=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kA(e){for(var t=0;t<n1.length;t++)for(var r=n1[t],i=0;i<r.blocks.length;i++){var n=r.blocks[i];if(e>=n[0]&&e<=n[1])return r.name}return null}var c0=[];n1.forEach(e=>e.blocks.forEach(t=>c0.push(...t)));function Q6(e){for(var t=0;t<c0.length;t+=2)if(e>=c0[t]&&e<=c0[t+1])return!0;return!1}var Me=e=>e+" "+e,Ss=80,wA=function(t,r){return"M95,"+(622+t+r)+`
|
|
115
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
116
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
117
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
118
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
119
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
120
|
+
l`+t/2.075+" -"+t+`
|
|
121
|
+
c5.3,-9.3,12,-14,20,-14
|
|
122
|
+
H400000v`+(40+t)+`H845.2724
|
|
123
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
124
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
125
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},SA=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
126
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
127
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
128
|
+
l`+t/2.084+" -"+t+`
|
|
129
|
+
c4.7,-7.3,11,-11,19,-11
|
|
130
|
+
H40000v`+(40+t)+`H1012.3
|
|
131
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
132
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
133
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
134
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
135
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},TA=function(t,r){return"M983 "+(10+t+r)+`
|
|
136
|
+
l`+t/3.13+" -"+t+`
|
|
137
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
138
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
139
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
140
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
141
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
142
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
143
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
144
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},_A=function(t,r){return"M424,"+(2398+t+r)+`
|
|
145
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
146
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
147
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
148
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
149
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
150
|
+
v`+(40+t)+`H1014.6
|
|
151
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
152
|
+
c-2,6,-10,9,-24,9
|
|
153
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
154
|
+
h400000v`+(40+t)+"h-400000z"},BA=function(t,r){return"M473,"+(2713+t+r)+`
|
|
155
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
156
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
157
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
158
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
159
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
160
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
161
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},LA=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},AA=function(t,r,i){var n=i-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
162
|
+
H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
163
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
164
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
165
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},EA=function(t,r,i){r=1e3*r;var n="";switch(t){case"sqrtMain":n=wA(r,Ss);break;case"sqrtSize1":n=SA(r,Ss);break;case"sqrtSize2":n=TA(r,Ss);break;case"sqrtSize3":n=_A(r,Ss);break;case"sqrtSize4":n=BA(r,Ss);break;case"sqrtTall":n=AA(r,Ss,i)}return n},MA=function(t,r){switch(t){case"⎜":return Me("M291 0 H417 V"+r+" H291z");case"∣":return Me("M145 0 H188 V"+r+" H145z");case"∥":return Me("M145 0 H188 V"+r+" H145z")+Me("M367 0 H410 V"+r+" H367z");case"⎟":return Me("M457 0 H583 V"+r+" H457z");case"⎢":return Me("M319 0 H403 V"+r+" H319z");case"⎥":return Me("M263 0 H347 V"+r+" H263z");case"⎪":return Me("M384 0 H504 V"+r+" H384z");case"⏐":return Me("M312 0 H355 V"+r+" H312z");case"‖":return Me("M257 0 H300 V"+r+" H257z")+Me("M478 0 H521 V"+r+" H478z");default:return""}},Dx={doubleleftarrow:`M262 157
|
|
166
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
167
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
168
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
169
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
170
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
171
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
172
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
173
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
174
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
175
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
176
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
177
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
178
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
179
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
180
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
181
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
182
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
183
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
184
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
185
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
186
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
187
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
188
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
189
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
190
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
191
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
192
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
193
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
194
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
195
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
196
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
197
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
198
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
199
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
200
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
201
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
202
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
203
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
204
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
205
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
206
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
207
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
208
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
209
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
210
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
211
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Me("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Me("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Me("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Me("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
212
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
213
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
214
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Me("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
215
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
216
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
217
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
218
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
219
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
220
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
221
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
222
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
223
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
224
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
225
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
226
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
227
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
228
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
229
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
230
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
231
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
232
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
233
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
234
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
235
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
236
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
237
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
238
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
239
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
240
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
241
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
242
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
243
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
244
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
245
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
246
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
247
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
248
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
249
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
250
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
251
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
252
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
253
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
254
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
255
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
256
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
257
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
258
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
259
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
260
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
261
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
262
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
263
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Me("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Me("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Me("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
264
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
265
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
266
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
267
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
268
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
269
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
270
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
271
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
272
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
273
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
274
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
275
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
276
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
277
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
278
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
279
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
280
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
281
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
282
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
283
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
284
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
285
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
286
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
287
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
288
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
289
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
290
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
291
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
292
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
293
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
294
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
295
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
296
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
297
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
298
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
299
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
300
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
301
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
302
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
303
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
304
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
305
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
306
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
307
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
308
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
309
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
310
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
311
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
312
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
313
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
314
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
315
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
316
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
317
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
318
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
319
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
320
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
321
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
322
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
323
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
324
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
325
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
326
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
327
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
328
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
329
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
330
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
331
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
332
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
333
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
334
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
335
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
336
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},FA=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
337
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
338
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
339
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
340
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
341
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
342
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
343
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
344
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
345
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
346
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
347
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
348
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
349
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
350
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
351
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
352
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
353
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
354
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
355
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
356
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
357
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
358
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
359
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
360
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
361
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
362
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
363
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
364
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Ho{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var a1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},$A={ex:!0,em:!0,mu:!0},K6=function(t){return typeof t!="string"&&(t=t.unit),t in a1||t in $A||t==="ex"},he=function(t,r){var i;if(t.unit in a1)i=a1[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")i=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")i=n.fontMetrics().xHeight;else if(t.unit==="em")i=n.fontMetrics().quad;else throw new rt("Invalid unit: '"+t.unit+"'");n!==r&&(i*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*i,r.maxSize)},st=function(t){return+t.toFixed(4)+"em"},la=function(t){return t.filter(r=>r).join(" ")},Z6=function(t,r,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},J6=function(t){var r=document.createElement(t);r.className=la(this.classes);for(var i of Object.keys(this.style))r.style[i]=this.style[i];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},IA=/[\s"'>/=\x00-\x1f]/,tb=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+nr(la(this.classes))+'"');var i="";for(var n of Object.keys(this.style))i+=Am(n)+":"+this.style[n]+";";i&&(r+=' style="'+nr(i)+'"');for(var a of Object.keys(this.attributes)){if(IA.test(a))throw new rt("Invalid attribute name '"+a+"'");r+=" "+a+'="'+nr(this.attributes[a])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Uo{constructor(t,r,i,n){Z6.call(this,t,i,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return J6.call(this,"span")}toMarkup(){return tb.call(this,"span")}}class ed{constructor(t,r,i,n){Z6.call(this,r,n),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return J6.call(this,"a")}toMarkup(){return tb.call(this,"a")}}class zA{constructor(t,r,i){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+nr(this.src)+'"'+(' alt="'+nr(this.alt)+'"'),r="";for(var i of Object.keys(this.style))r+=Am(i)+":"+this.style[i]+";";return r&&(t+=' style="'+nr(r)+'"'),t+="'/>",t}}var DA={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Hr{constructor(t,r,i,n,a,s,o,l){this.text=t,this.height=r||0,this.depth=i||0,this.italic=n||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var c=kA(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=DA[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=st(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=la(this.classes));for(var i of Object.keys(this.style))r=r||document.createElement("span"),r.style[i]=this.style[i];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=nr(la(this.classes)),r+='"');var i="";this.italic>0&&(i+="margin-right:"+st(this.italic)+";");for(var n of Object.keys(this.style))i+=Am(n)+":"+this.style[n]+";";i&&(t=!0,r+=' style="'+nr(i)+'"');var a=nr(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class xn{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+nr(this.attributes[r])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class ca{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Dx[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+nr(this.alternate)+'"/>':'<path d="'+nr(Dx[this.pathName])+'"/>'}}class s1{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+nr(this.attributes[r])+'"';return t+="/>",t}}function RA(e){if(e instanceof Hr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function OA(e){if(e instanceof Uo)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var PA=e=>e instanceof Uo||e instanceof ed||e instanceof Ho,Ri={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Th={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Rx={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function eb(e,t){Ri[e]=t}function Fm(e,t,r){if(!Ri[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),n=Ri[t][i];if(!n&&e[0]in Rx&&(i=Rx[e[0]].charCodeAt(0),n=Ri[t][i]),!n&&r==="text"&&Q6(i)&&(n=Ri[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var kf={};function NA(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!kf[t]){var r=kf[t]={cssEmPerMu:Th.quad[t]/18};for(var i in Th)Th.hasOwnProperty(i)&&(r[i]=Th[i][t])}return kf[t]}var jA={bin:1,close:1,inner:1,open:1,punct:1,rel:1},qA={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},se={math:{},text:{}};function v(e,t,r,i,n,a){se[e][n]={font:t,group:r,replace:i},a&&i&&(se[e][i]=se[e][n])}var w="math",tt="text",L="main",$="ams",oe="accent-token",ct="bin",Cr="close",Yo="inner",wt="mathord",Ae="op-token",Vr="open",qc="punct",I="rel",wn="spacing",O="textord";v(w,L,I,"≡","\\equiv",!0);v(w,L,I,"≺","\\prec",!0);v(w,L,I,"≻","\\succ",!0);v(w,L,I,"∼","\\sim",!0);v(w,L,I,"⊥","\\perp");v(w,L,I,"⪯","\\preceq",!0);v(w,L,I,"⪰","\\succeq",!0);v(w,L,I,"≃","\\simeq",!0);v(w,L,I,"∣","\\mid",!0);v(w,L,I,"≪","\\ll",!0);v(w,L,I,"≫","\\gg",!0);v(w,L,I,"≍","\\asymp",!0);v(w,L,I,"∥","\\parallel");v(w,L,I,"⋈","\\bowtie",!0);v(w,L,I,"⌣","\\smile",!0);v(w,L,I,"⊑","\\sqsubseteq",!0);v(w,L,I,"⊒","\\sqsupseteq",!0);v(w,L,I,"≐","\\doteq",!0);v(w,L,I,"⌢","\\frown",!0);v(w,L,I,"∋","\\ni",!0);v(w,L,I,"∝","\\propto",!0);v(w,L,I,"⊢","\\vdash",!0);v(w,L,I,"⊣","\\dashv",!0);v(w,L,I,"∋","\\owns");v(w,L,qc,".","\\ldotp");v(w,L,qc,"⋅","\\cdotp");v(w,L,qc,"⋅","·");v(tt,L,O,"⋅","·");v(w,L,O,"#","\\#");v(tt,L,O,"#","\\#");v(w,L,O,"&","\\&");v(tt,L,O,"&","\\&");v(w,L,O,"ℵ","\\aleph",!0);v(w,L,O,"∀","\\forall",!0);v(w,L,O,"ℏ","\\hbar",!0);v(w,L,O,"∃","\\exists",!0);v(w,L,O,"∇","\\nabla",!0);v(w,L,O,"♭","\\flat",!0);v(w,L,O,"ℓ","\\ell",!0);v(w,L,O,"♮","\\natural",!0);v(w,L,O,"♣","\\clubsuit",!0);v(w,L,O,"℘","\\wp",!0);v(w,L,O,"♯","\\sharp",!0);v(w,L,O,"♢","\\diamondsuit",!0);v(w,L,O,"ℜ","\\Re",!0);v(w,L,O,"♡","\\heartsuit",!0);v(w,L,O,"ℑ","\\Im",!0);v(w,L,O,"♠","\\spadesuit",!0);v(w,L,O,"§","\\S",!0);v(tt,L,O,"§","\\S");v(w,L,O,"¶","\\P",!0);v(tt,L,O,"¶","\\P");v(w,L,O,"†","\\dag");v(tt,L,O,"†","\\dag");v(tt,L,O,"†","\\textdagger");v(w,L,O,"‡","\\ddag");v(tt,L,O,"‡","\\ddag");v(tt,L,O,"‡","\\textdaggerdbl");v(w,L,Cr,"⎱","\\rmoustache",!0);v(w,L,Vr,"⎰","\\lmoustache",!0);v(w,L,Cr,"⟯","\\rgroup",!0);v(w,L,Vr,"⟮","\\lgroup",!0);v(w,L,ct,"∓","\\mp",!0);v(w,L,ct,"⊖","\\ominus",!0);v(w,L,ct,"⊎","\\uplus",!0);v(w,L,ct,"⊓","\\sqcap",!0);v(w,L,ct,"∗","\\ast");v(w,L,ct,"⊔","\\sqcup",!0);v(w,L,ct,"◯","\\bigcirc",!0);v(w,L,ct,"∙","\\bullet",!0);v(w,L,ct,"‡","\\ddagger");v(w,L,ct,"≀","\\wr",!0);v(w,L,ct,"⨿","\\amalg");v(w,L,ct,"&","\\And");v(w,L,I,"⟵","\\longleftarrow",!0);v(w,L,I,"⇐","\\Leftarrow",!0);v(w,L,I,"⟸","\\Longleftarrow",!0);v(w,L,I,"⟶","\\longrightarrow",!0);v(w,L,I,"⇒","\\Rightarrow",!0);v(w,L,I,"⟹","\\Longrightarrow",!0);v(w,L,I,"↔","\\leftrightarrow",!0);v(w,L,I,"⟷","\\longleftrightarrow",!0);v(w,L,I,"⇔","\\Leftrightarrow",!0);v(w,L,I,"⟺","\\Longleftrightarrow",!0);v(w,L,I,"↦","\\mapsto",!0);v(w,L,I,"⟼","\\longmapsto",!0);v(w,L,I,"↗","\\nearrow",!0);v(w,L,I,"↩","\\hookleftarrow",!0);v(w,L,I,"↪","\\hookrightarrow",!0);v(w,L,I,"↘","\\searrow",!0);v(w,L,I,"↼","\\leftharpoonup",!0);v(w,L,I,"⇀","\\rightharpoonup",!0);v(w,L,I,"↙","\\swarrow",!0);v(w,L,I,"↽","\\leftharpoondown",!0);v(w,L,I,"⇁","\\rightharpoondown",!0);v(w,L,I,"↖","\\nwarrow",!0);v(w,L,I,"⇌","\\rightleftharpoons",!0);v(w,$,I,"≮","\\nless",!0);v(w,$,I,"","\\@nleqslant");v(w,$,I,"","\\@nleqq");v(w,$,I,"⪇","\\lneq",!0);v(w,$,I,"≨","\\lneqq",!0);v(w,$,I,"","\\@lvertneqq");v(w,$,I,"⋦","\\lnsim",!0);v(w,$,I,"⪉","\\lnapprox",!0);v(w,$,I,"⊀","\\nprec",!0);v(w,$,I,"⋠","\\npreceq",!0);v(w,$,I,"⋨","\\precnsim",!0);v(w,$,I,"⪹","\\precnapprox",!0);v(w,$,I,"≁","\\nsim",!0);v(w,$,I,"","\\@nshortmid");v(w,$,I,"∤","\\nmid",!0);v(w,$,I,"⊬","\\nvdash",!0);v(w,$,I,"⊭","\\nvDash",!0);v(w,$,I,"⋪","\\ntriangleleft");v(w,$,I,"⋬","\\ntrianglelefteq",!0);v(w,$,I,"⊊","\\subsetneq",!0);v(w,$,I,"","\\@varsubsetneq");v(w,$,I,"⫋","\\subsetneqq",!0);v(w,$,I,"","\\@varsubsetneqq");v(w,$,I,"≯","\\ngtr",!0);v(w,$,I,"","\\@ngeqslant");v(w,$,I,"","\\@ngeqq");v(w,$,I,"⪈","\\gneq",!0);v(w,$,I,"≩","\\gneqq",!0);v(w,$,I,"","\\@gvertneqq");v(w,$,I,"⋧","\\gnsim",!0);v(w,$,I,"⪊","\\gnapprox",!0);v(w,$,I,"⊁","\\nsucc",!0);v(w,$,I,"⋡","\\nsucceq",!0);v(w,$,I,"⋩","\\succnsim",!0);v(w,$,I,"⪺","\\succnapprox",!0);v(w,$,I,"≆","\\ncong",!0);v(w,$,I,"","\\@nshortparallel");v(w,$,I,"∦","\\nparallel",!0);v(w,$,I,"⊯","\\nVDash",!0);v(w,$,I,"⋫","\\ntriangleright");v(w,$,I,"⋭","\\ntrianglerighteq",!0);v(w,$,I,"","\\@nsupseteqq");v(w,$,I,"⊋","\\supsetneq",!0);v(w,$,I,"","\\@varsupsetneq");v(w,$,I,"⫌","\\supsetneqq",!0);v(w,$,I,"","\\@varsupsetneqq");v(w,$,I,"⊮","\\nVdash",!0);v(w,$,I,"⪵","\\precneqq",!0);v(w,$,I,"⪶","\\succneqq",!0);v(w,$,I,"","\\@nsubseteqq");v(w,$,ct,"⊴","\\unlhd");v(w,$,ct,"⊵","\\unrhd");v(w,$,I,"↚","\\nleftarrow",!0);v(w,$,I,"↛","\\nrightarrow",!0);v(w,$,I,"⇍","\\nLeftarrow",!0);v(w,$,I,"⇏","\\nRightarrow",!0);v(w,$,I,"↮","\\nleftrightarrow",!0);v(w,$,I,"⇎","\\nLeftrightarrow",!0);v(w,$,I,"△","\\vartriangle");v(w,$,O,"ℏ","\\hslash");v(w,$,O,"▽","\\triangledown");v(w,$,O,"◊","\\lozenge");v(w,$,O,"Ⓢ","\\circledS");v(w,$,O,"®","\\circledR");v(tt,$,O,"®","\\circledR");v(w,$,O,"∡","\\measuredangle",!0);v(w,$,O,"∄","\\nexists");v(w,$,O,"℧","\\mho");v(w,$,O,"Ⅎ","\\Finv",!0);v(w,$,O,"⅁","\\Game",!0);v(w,$,O,"‵","\\backprime");v(w,$,O,"▲","\\blacktriangle");v(w,$,O,"▼","\\blacktriangledown");v(w,$,O,"■","\\blacksquare");v(w,$,O,"⧫","\\blacklozenge");v(w,$,O,"★","\\bigstar");v(w,$,O,"∢","\\sphericalangle",!0);v(w,$,O,"∁","\\complement",!0);v(w,$,O,"ð","\\eth",!0);v(tt,L,O,"ð","ð");v(w,$,O,"╱","\\diagup");v(w,$,O,"╲","\\diagdown");v(w,$,O,"□","\\square");v(w,$,O,"□","\\Box");v(w,$,O,"◊","\\Diamond");v(w,$,O,"¥","\\yen",!0);v(tt,$,O,"¥","\\yen",!0);v(w,$,O,"✓","\\checkmark",!0);v(tt,$,O,"✓","\\checkmark");v(w,$,O,"ℶ","\\beth",!0);v(w,$,O,"ℸ","\\daleth",!0);v(w,$,O,"ℷ","\\gimel",!0);v(w,$,O,"ϝ","\\digamma",!0);v(w,$,O,"ϰ","\\varkappa");v(w,$,Vr,"┌","\\@ulcorner",!0);v(w,$,Cr,"┐","\\@urcorner",!0);v(w,$,Vr,"└","\\@llcorner",!0);v(w,$,Cr,"┘","\\@lrcorner",!0);v(w,$,I,"≦","\\leqq",!0);v(w,$,I,"⩽","\\leqslant",!0);v(w,$,I,"⪕","\\eqslantless",!0);v(w,$,I,"≲","\\lesssim",!0);v(w,$,I,"⪅","\\lessapprox",!0);v(w,$,I,"≊","\\approxeq",!0);v(w,$,ct,"⋖","\\lessdot");v(w,$,I,"⋘","\\lll",!0);v(w,$,I,"≶","\\lessgtr",!0);v(w,$,I,"⋚","\\lesseqgtr",!0);v(w,$,I,"⪋","\\lesseqqgtr",!0);v(w,$,I,"≑","\\doteqdot");v(w,$,I,"≓","\\risingdotseq",!0);v(w,$,I,"≒","\\fallingdotseq",!0);v(w,$,I,"∽","\\backsim",!0);v(w,$,I,"⋍","\\backsimeq",!0);v(w,$,I,"⫅","\\subseteqq",!0);v(w,$,I,"⋐","\\Subset",!0);v(w,$,I,"⊏","\\sqsubset",!0);v(w,$,I,"≼","\\preccurlyeq",!0);v(w,$,I,"⋞","\\curlyeqprec",!0);v(w,$,I,"≾","\\precsim",!0);v(w,$,I,"⪷","\\precapprox",!0);v(w,$,I,"⊲","\\vartriangleleft");v(w,$,I,"⊴","\\trianglelefteq");v(w,$,I,"⊨","\\vDash",!0);v(w,$,I,"⊪","\\Vvdash",!0);v(w,$,I,"⌣","\\smallsmile");v(w,$,I,"⌢","\\smallfrown");v(w,$,I,"≏","\\bumpeq",!0);v(w,$,I,"≎","\\Bumpeq",!0);v(w,$,I,"≧","\\geqq",!0);v(w,$,I,"⩾","\\geqslant",!0);v(w,$,I,"⪖","\\eqslantgtr",!0);v(w,$,I,"≳","\\gtrsim",!0);v(w,$,I,"⪆","\\gtrapprox",!0);v(w,$,ct,"⋗","\\gtrdot");v(w,$,I,"⋙","\\ggg",!0);v(w,$,I,"≷","\\gtrless",!0);v(w,$,I,"⋛","\\gtreqless",!0);v(w,$,I,"⪌","\\gtreqqless",!0);v(w,$,I,"≖","\\eqcirc",!0);v(w,$,I,"≗","\\circeq",!0);v(w,$,I,"≜","\\triangleq",!0);v(w,$,I,"∼","\\thicksim");v(w,$,I,"≈","\\thickapprox");v(w,$,I,"⫆","\\supseteqq",!0);v(w,$,I,"⋑","\\Supset",!0);v(w,$,I,"⊐","\\sqsupset",!0);v(w,$,I,"≽","\\succcurlyeq",!0);v(w,$,I,"⋟","\\curlyeqsucc",!0);v(w,$,I,"≿","\\succsim",!0);v(w,$,I,"⪸","\\succapprox",!0);v(w,$,I,"⊳","\\vartriangleright");v(w,$,I,"⊵","\\trianglerighteq");v(w,$,I,"⊩","\\Vdash",!0);v(w,$,I,"∣","\\shortmid");v(w,$,I,"∥","\\shortparallel");v(w,$,I,"≬","\\between",!0);v(w,$,I,"⋔","\\pitchfork",!0);v(w,$,I,"∝","\\varpropto");v(w,$,I,"◀","\\blacktriangleleft");v(w,$,I,"∴","\\therefore",!0);v(w,$,I,"∍","\\backepsilon");v(w,$,I,"▶","\\blacktriangleright");v(w,$,I,"∵","\\because",!0);v(w,$,I,"⋘","\\llless");v(w,$,I,"⋙","\\gggtr");v(w,$,ct,"⊲","\\lhd");v(w,$,ct,"⊳","\\rhd");v(w,$,I,"≂","\\eqsim",!0);v(w,L,I,"⋈","\\Join");v(w,$,I,"≑","\\Doteq",!0);v(w,$,ct,"∔","\\dotplus",!0);v(w,$,ct,"∖","\\smallsetminus");v(w,$,ct,"⋒","\\Cap",!0);v(w,$,ct,"⋓","\\Cup",!0);v(w,$,ct,"⩞","\\doublebarwedge",!0);v(w,$,ct,"⊟","\\boxminus",!0);v(w,$,ct,"⊞","\\boxplus",!0);v(w,$,ct,"⋇","\\divideontimes",!0);v(w,$,ct,"⋉","\\ltimes",!0);v(w,$,ct,"⋊","\\rtimes",!0);v(w,$,ct,"⋋","\\leftthreetimes",!0);v(w,$,ct,"⋌","\\rightthreetimes",!0);v(w,$,ct,"⋏","\\curlywedge",!0);v(w,$,ct,"⋎","\\curlyvee",!0);v(w,$,ct,"⊝","\\circleddash",!0);v(w,$,ct,"⊛","\\circledast",!0);v(w,$,ct,"⋅","\\centerdot");v(w,$,ct,"⊺","\\intercal",!0);v(w,$,ct,"⋒","\\doublecap");v(w,$,ct,"⋓","\\doublecup");v(w,$,ct,"⊠","\\boxtimes",!0);v(w,$,I,"⇢","\\dashrightarrow",!0);v(w,$,I,"⇠","\\dashleftarrow",!0);v(w,$,I,"⇇","\\leftleftarrows",!0);v(w,$,I,"⇆","\\leftrightarrows",!0);v(w,$,I,"⇚","\\Lleftarrow",!0);v(w,$,I,"↞","\\twoheadleftarrow",!0);v(w,$,I,"↢","\\leftarrowtail",!0);v(w,$,I,"↫","\\looparrowleft",!0);v(w,$,I,"⇋","\\leftrightharpoons",!0);v(w,$,I,"↶","\\curvearrowleft",!0);v(w,$,I,"↺","\\circlearrowleft",!0);v(w,$,I,"↰","\\Lsh",!0);v(w,$,I,"⇈","\\upuparrows",!0);v(w,$,I,"↿","\\upharpoonleft",!0);v(w,$,I,"⇃","\\downharpoonleft",!0);v(w,L,I,"⊶","\\origof",!0);v(w,L,I,"⊷","\\imageof",!0);v(w,$,I,"⊸","\\multimap",!0);v(w,$,I,"↭","\\leftrightsquigarrow",!0);v(w,$,I,"⇉","\\rightrightarrows",!0);v(w,$,I,"⇄","\\rightleftarrows",!0);v(w,$,I,"↠","\\twoheadrightarrow",!0);v(w,$,I,"↣","\\rightarrowtail",!0);v(w,$,I,"↬","\\looparrowright",!0);v(w,$,I,"↷","\\curvearrowright",!0);v(w,$,I,"↻","\\circlearrowright",!0);v(w,$,I,"↱","\\Rsh",!0);v(w,$,I,"⇊","\\downdownarrows",!0);v(w,$,I,"↾","\\upharpoonright",!0);v(w,$,I,"⇂","\\downharpoonright",!0);v(w,$,I,"⇝","\\rightsquigarrow",!0);v(w,$,I,"⇝","\\leadsto");v(w,$,I,"⇛","\\Rrightarrow",!0);v(w,$,I,"↾","\\restriction");v(w,L,O,"‘","`");v(w,L,O,"$","\\$");v(tt,L,O,"$","\\$");v(tt,L,O,"$","\\textdollar");v(w,L,O,"%","\\%");v(tt,L,O,"%","\\%");v(w,L,O,"_","\\_");v(tt,L,O,"_","\\_");v(tt,L,O,"_","\\textunderscore");v(w,L,O,"∠","\\angle",!0);v(w,L,O,"∞","\\infty",!0);v(w,L,O,"′","\\prime");v(w,L,O,"△","\\triangle");v(w,L,O,"Γ","\\Gamma",!0);v(w,L,O,"Δ","\\Delta",!0);v(w,L,O,"Θ","\\Theta",!0);v(w,L,O,"Λ","\\Lambda",!0);v(w,L,O,"Ξ","\\Xi",!0);v(w,L,O,"Π","\\Pi",!0);v(w,L,O,"Σ","\\Sigma",!0);v(w,L,O,"Υ","\\Upsilon",!0);v(w,L,O,"Φ","\\Phi",!0);v(w,L,O,"Ψ","\\Psi",!0);v(w,L,O,"Ω","\\Omega",!0);v(w,L,O,"A","Α");v(w,L,O,"B","Β");v(w,L,O,"E","Ε");v(w,L,O,"Z","Ζ");v(w,L,O,"H","Η");v(w,L,O,"I","Ι");v(w,L,O,"K","Κ");v(w,L,O,"M","Μ");v(w,L,O,"N","Ν");v(w,L,O,"O","Ο");v(w,L,O,"P","Ρ");v(w,L,O,"T","Τ");v(w,L,O,"X","Χ");v(w,L,O,"¬","\\neg",!0);v(w,L,O,"¬","\\lnot");v(w,L,O,"⊤","\\top");v(w,L,O,"⊥","\\bot");v(w,L,O,"∅","\\emptyset");v(w,$,O,"∅","\\varnothing");v(w,L,wt,"α","\\alpha",!0);v(w,L,wt,"β","\\beta",!0);v(w,L,wt,"γ","\\gamma",!0);v(w,L,wt,"δ","\\delta",!0);v(w,L,wt,"ϵ","\\epsilon",!0);v(w,L,wt,"ζ","\\zeta",!0);v(w,L,wt,"η","\\eta",!0);v(w,L,wt,"θ","\\theta",!0);v(w,L,wt,"ι","\\iota",!0);v(w,L,wt,"κ","\\kappa",!0);v(w,L,wt,"λ","\\lambda",!0);v(w,L,wt,"μ","\\mu",!0);v(w,L,wt,"ν","\\nu",!0);v(w,L,wt,"ξ","\\xi",!0);v(w,L,wt,"ο","\\omicron",!0);v(w,L,wt,"π","\\pi",!0);v(w,L,wt,"ρ","\\rho",!0);v(w,L,wt,"σ","\\sigma",!0);v(w,L,wt,"τ","\\tau",!0);v(w,L,wt,"υ","\\upsilon",!0);v(w,L,wt,"ϕ","\\phi",!0);v(w,L,wt,"χ","\\chi",!0);v(w,L,wt,"ψ","\\psi",!0);v(w,L,wt,"ω","\\omega",!0);v(w,L,wt,"ε","\\varepsilon",!0);v(w,L,wt,"ϑ","\\vartheta",!0);v(w,L,wt,"ϖ","\\varpi",!0);v(w,L,wt,"ϱ","\\varrho",!0);v(w,L,wt,"ς","\\varsigma",!0);v(w,L,wt,"φ","\\varphi",!0);v(w,L,ct,"∗","*",!0);v(w,L,ct,"+","+");v(w,L,ct,"−","-",!0);v(w,L,ct,"⋅","\\cdot",!0);v(w,L,ct,"∘","\\circ",!0);v(w,L,ct,"÷","\\div",!0);v(w,L,ct,"±","\\pm",!0);v(w,L,ct,"×","\\times",!0);v(w,L,ct,"∩","\\cap",!0);v(w,L,ct,"∪","\\cup",!0);v(w,L,ct,"∖","\\setminus",!0);v(w,L,ct,"∧","\\land");v(w,L,ct,"∨","\\lor");v(w,L,ct,"∧","\\wedge",!0);v(w,L,ct,"∨","\\vee",!0);v(w,L,O,"√","\\surd");v(w,L,Vr,"⟨","\\langle",!0);v(w,L,Vr,"∣","\\lvert");v(w,L,Vr,"∥","\\lVert");v(w,L,Cr,"?","?");v(w,L,Cr,"!","!");v(w,L,Cr,"⟩","\\rangle",!0);v(w,L,Cr,"∣","\\rvert");v(w,L,Cr,"∥","\\rVert");v(w,L,I,"=","=");v(w,L,I,":",":");v(w,L,I,"≈","\\approx",!0);v(w,L,I,"≅","\\cong",!0);v(w,L,I,"≥","\\ge");v(w,L,I,"≥","\\geq",!0);v(w,L,I,"←","\\gets");v(w,L,I,">","\\gt",!0);v(w,L,I,"∈","\\in",!0);v(w,L,I,"","\\@not");v(w,L,I,"⊂","\\subset",!0);v(w,L,I,"⊃","\\supset",!0);v(w,L,I,"⊆","\\subseteq",!0);v(w,L,I,"⊇","\\supseteq",!0);v(w,$,I,"⊈","\\nsubseteq",!0);v(w,$,I,"⊉","\\nsupseteq",!0);v(w,L,I,"⊨","\\models");v(w,L,I,"←","\\leftarrow",!0);v(w,L,I,"≤","\\le");v(w,L,I,"≤","\\leq",!0);v(w,L,I,"<","\\lt",!0);v(w,L,I,"→","\\rightarrow",!0);v(w,L,I,"→","\\to");v(w,$,I,"≱","\\ngeq",!0);v(w,$,I,"≰","\\nleq",!0);v(w,L,wn," ","\\ ");v(w,L,wn," ","\\space");v(w,L,wn," ","\\nobreakspace");v(tt,L,wn," ","\\ ");v(tt,L,wn," "," ");v(tt,L,wn," ","\\space");v(tt,L,wn," ","\\nobreakspace");v(w,L,wn,null,"\\nobreak");v(w,L,wn,null,"\\allowbreak");v(w,L,qc,",",",");v(w,L,qc,";",";");v(w,$,ct,"⊼","\\barwedge",!0);v(w,$,ct,"⊻","\\veebar",!0);v(w,L,ct,"⊙","\\odot",!0);v(w,L,ct,"⊕","\\oplus",!0);v(w,L,ct,"⊗","\\otimes",!0);v(w,L,O,"∂","\\partial",!0);v(w,L,ct,"⊘","\\oslash",!0);v(w,$,ct,"⊚","\\circledcirc",!0);v(w,$,ct,"⊡","\\boxdot",!0);v(w,L,ct,"△","\\bigtriangleup");v(w,L,ct,"▽","\\bigtriangledown");v(w,L,ct,"†","\\dagger");v(w,L,ct,"⋄","\\diamond");v(w,L,ct,"⋆","\\star");v(w,L,ct,"◃","\\triangleleft");v(w,L,ct,"▹","\\triangleright");v(w,L,Vr,"{","\\{");v(tt,L,O,"{","\\{");v(tt,L,O,"{","\\textbraceleft");v(w,L,Cr,"}","\\}");v(tt,L,O,"}","\\}");v(tt,L,O,"}","\\textbraceright");v(w,L,Vr,"{","\\lbrace");v(w,L,Cr,"}","\\rbrace");v(w,L,Vr,"[","\\lbrack",!0);v(tt,L,O,"[","\\lbrack",!0);v(w,L,Cr,"]","\\rbrack",!0);v(tt,L,O,"]","\\rbrack",!0);v(w,L,Vr,"(","\\lparen",!0);v(w,L,Cr,")","\\rparen",!0);v(tt,L,O,"<","\\textless",!0);v(tt,L,O,">","\\textgreater",!0);v(w,L,Vr,"⌊","\\lfloor",!0);v(w,L,Cr,"⌋","\\rfloor",!0);v(w,L,Vr,"⌈","\\lceil",!0);v(w,L,Cr,"⌉","\\rceil",!0);v(w,L,O,"\\","\\backslash");v(w,L,O,"∣","|");v(w,L,O,"∣","\\vert");v(tt,L,O,"|","\\textbar",!0);v(w,L,O,"∥","\\|");v(w,L,O,"∥","\\Vert");v(tt,L,O,"∥","\\textbardbl");v(tt,L,O,"~","\\textasciitilde");v(tt,L,O,"\\","\\textbackslash");v(tt,L,O,"^","\\textasciicircum");v(w,L,I,"↑","\\uparrow",!0);v(w,L,I,"⇑","\\Uparrow",!0);v(w,L,I,"↓","\\downarrow",!0);v(w,L,I,"⇓","\\Downarrow",!0);v(w,L,I,"↕","\\updownarrow",!0);v(w,L,I,"⇕","\\Updownarrow",!0);v(w,L,Ae,"∐","\\coprod");v(w,L,Ae,"⋁","\\bigvee");v(w,L,Ae,"⋀","\\bigwedge");v(w,L,Ae,"⨄","\\biguplus");v(w,L,Ae,"⋂","\\bigcap");v(w,L,Ae,"⋃","\\bigcup");v(w,L,Ae,"∫","\\int");v(w,L,Ae,"∫","\\intop");v(w,L,Ae,"∬","\\iint");v(w,L,Ae,"∭","\\iiint");v(w,L,Ae,"∏","\\prod");v(w,L,Ae,"∑","\\sum");v(w,L,Ae,"⨂","\\bigotimes");v(w,L,Ae,"⨁","\\bigoplus");v(w,L,Ae,"⨀","\\bigodot");v(w,L,Ae,"∮","\\oint");v(w,L,Ae,"∯","\\oiint");v(w,L,Ae,"∰","\\oiiint");v(w,L,Ae,"⨆","\\bigsqcup");v(w,L,Ae,"∫","\\smallint");v(tt,L,Yo,"…","\\textellipsis");v(w,L,Yo,"…","\\mathellipsis");v(tt,L,Yo,"…","\\ldots",!0);v(w,L,Yo,"…","\\ldots",!0);v(w,L,Yo,"⋯","\\@cdots",!0);v(w,L,Yo,"⋱","\\ddots",!0);v(w,L,O,"⋮","\\varvdots");v(tt,L,O,"⋮","\\varvdots");v(w,L,oe,"ˊ","\\acute");v(w,L,oe,"ˋ","\\grave");v(w,L,oe,"¨","\\ddot");v(w,L,oe,"~","\\tilde");v(w,L,oe,"ˉ","\\bar");v(w,L,oe,"˘","\\breve");v(w,L,oe,"ˇ","\\check");v(w,L,oe,"^","\\hat");v(w,L,oe,"⃗","\\vec");v(w,L,oe,"˙","\\dot");v(w,L,oe,"˚","\\mathring");v(w,L,wt,"","\\@imath");v(w,L,wt,"","\\@jmath");v(w,L,O,"ı","ı");v(w,L,O,"ȷ","ȷ");v(tt,L,O,"ı","\\i",!0);v(tt,L,O,"ȷ","\\j",!0);v(tt,L,O,"ß","\\ss",!0);v(tt,L,O,"æ","\\ae",!0);v(tt,L,O,"œ","\\oe",!0);v(tt,L,O,"ø","\\o",!0);v(tt,L,O,"Æ","\\AE",!0);v(tt,L,O,"Œ","\\OE",!0);v(tt,L,O,"Ø","\\O",!0);v(tt,L,oe,"ˊ","\\'");v(tt,L,oe,"ˋ","\\`");v(tt,L,oe,"ˆ","\\^");v(tt,L,oe,"˜","\\~");v(tt,L,oe,"ˉ","\\=");v(tt,L,oe,"˘","\\u");v(tt,L,oe,"˙","\\.");v(tt,L,oe,"¸","\\c");v(tt,L,oe,"˚","\\r");v(tt,L,oe,"ˇ","\\v");v(tt,L,oe,"¨",'\\"');v(tt,L,oe,"˝","\\H");v(tt,L,oe,"◯","\\textcircled");var rb={"--":!0,"---":!0,"``":!0,"''":!0};v(tt,L,O,"–","--",!0);v(tt,L,O,"–","\\textendash");v(tt,L,O,"—","---",!0);v(tt,L,O,"—","\\textemdash");v(tt,L,O,"‘","`",!0);v(tt,L,O,"‘","\\textquoteleft");v(tt,L,O,"’","'",!0);v(tt,L,O,"’","\\textquoteright");v(tt,L,O,"“","``",!0);v(tt,L,O,"“","\\textquotedblleft");v(tt,L,O,"”","''",!0);v(tt,L,O,"”","\\textquotedblright");v(w,L,O,"°","\\degree",!0);v(tt,L,O,"°","\\degree");v(tt,L,O,"°","\\textdegree",!0);v(w,L,O,"£","\\pounds");v(w,L,O,"£","\\mathsterling",!0);v(tt,L,O,"£","\\pounds");v(tt,L,O,"£","\\textsterling",!0);v(w,$,O,"✠","\\maltese");v(tt,$,O,"✠","\\maltese");var Ox='0123456789/@."';for(var wf=0;wf<Ox.length;wf++){var Px=Ox.charAt(wf);v(w,L,O,Px,Px)}var Nx='0123456789!@*()-=+";:?/.,';for(var Sf=0;Sf<Nx.length;Sf++){var jx=Nx.charAt(Sf);v(tt,L,O,jx,jx)}var Z0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Tf=0;Tf<Z0.length;Tf++){var _h=Z0.charAt(Tf);v(w,L,wt,_h,_h),v(tt,L,O,_h,_h)}v(w,$,O,"C","ℂ");v(tt,$,O,"C","ℂ");v(w,$,O,"H","ℍ");v(tt,$,O,"H","ℍ");v(w,$,O,"N","ℕ");v(tt,$,O,"N","ℕ");v(w,$,O,"P","ℙ");v(tt,$,O,"P","ℙ");v(w,$,O,"Q","ℚ");v(tt,$,O,"Q","ℚ");v(w,$,O,"R","ℝ");v(tt,$,O,"R","ℝ");v(w,$,O,"Z","ℤ");v(tt,$,O,"Z","ℤ");v(w,L,wt,"h","ℎ");v(tt,L,wt,"h","ℎ");var Et="";for(var lr=0;lr<Z0.length;lr++){var ge=Z0.charAt(lr);Et=String.fromCharCode(55349,56320+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56372+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56424+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56580+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56684+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56736+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56788+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56840+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56944+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),lr<26&&(Et=String.fromCharCode(55349,56632+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et),Et=String.fromCharCode(55349,56476+lr),v(w,L,wt,ge,Et),v(tt,L,O,ge,Et))}Et="𝕜";v(w,L,wt,"k",Et);v(tt,L,O,"k",Et);for(var Ba=0;Ba<10;Ba++){var zn=Ba.toString();Et=String.fromCharCode(55349,57294+Ba),v(w,L,wt,zn,Et),v(tt,L,O,zn,Et),Et=String.fromCharCode(55349,57314+Ba),v(w,L,wt,zn,Et),v(tt,L,O,zn,Et),Et=String.fromCharCode(55349,57324+Ba),v(w,L,wt,zn,Et),v(tt,L,O,zn,Et),Et=String.fromCharCode(55349,57334+Ba),v(w,L,wt,zn,Et),v(tt,L,O,zn,Et)}var o1="ÐÞþ";for(var _f=0;_f<o1.length;_f++){var Bh=o1.charAt(_f);v(w,L,wt,Bh,Bh),v(tt,L,O,Bh,Bh)}var Lh=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],qx=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],WA=(e,t)=>{var r=e.charCodeAt(0),i=e.charCodeAt(1),n=(r-55296)*1024+(i-56320)+65536,a=t==="math"?0:1;if(119808<=n&&n<120484){var s=Math.floor((n-119808)/26);return[Lh[s][2],Lh[s][a]]}else if(120782<=n&&n<=120831){var o=Math.floor((n-120782)/10);return[qx[o][2],qx[o][a]]}else{if(n===120485||n===120486)return[Lh[0][2],Lh[0][a]];if(120486<n&&n<120782)return["",""];throw new rt("Unsupported character: "+e)}},rd=function(t,r,i){if(se[i][t]){var n=se[i][t].replace;n&&(t=n)}return{value:t,metrics:Fm(t,r,i)}},ur=function(t,r,i,n,a){var s=rd(t,r,i),o=s.metrics;t=s.value;var l;if(o){var c=o.italic;(i==="text"||n&&n.font==="mathit")&&(c=0),l=new Hr(t,o.height,o.depth,c,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+i+"'")),l=new Hr(t,0,0,0,0,0,a);if(n){l.maxFontSize=n.sizeMultiplier,n.style.isTight()&&l.classes.push("mtight");var h=n.getColor();h&&(l.style.color=h)}return l},$m=function(t,r,i,n){return n===void 0&&(n=[]),i.font==="boldsymbol"&&rd(t,"Main-Bold",r).metrics?ur(t,"Main-Bold",r,i,n.concat(["mathbf"])):t==="\\"||se[r][t].font==="main"?ur(t,"Main-Regular",r,i,n):ur(t,"AMS-Regular",r,i,n.concat(["amsrm"]))},HA=function(t,r,i,n,a){return a!=="textord"&&rd(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},id=function(t,r,i){var n=t.mode,a=t.text,s=["mord"],o=n==="math"||n==="text"&&r.font,l=o?r.font:r.fontFamily,c="",h="";if(a.charCodeAt(0)===55349&&([c,h]=WA(a,n)),c.length>0)return ur(a,c,n,r,s.concat(h));if(l){var u,f;if(l==="boldsymbol"){var d=HA(a,n,r,s,i);u=d.fontName,f=[d.fontClass]}else o?(u=l1[l].fontName,f=[l]):(u=Ah(l,r.fontWeight,r.fontShape),f=[l,r.fontWeight,r.fontShape]);if(rd(a,u,n).metrics)return ur(a,u,n,r,s.concat(f));if(rb.hasOwnProperty(a)&&u.slice(0,10)==="Typewriter"){for(var g=[],p=0;p<a.length;p++)g.push(ur(a[p],u,n,r,s.concat(f)));return Sn(g)}}if(i==="mathord")return ur(a,"Math-Italic",n,r,s.concat(["mathnormal"]));if(i==="textord"){var m=se[n][a]&&se[n][a].font;if(m==="ams"){var y=Ah("amsrm",r.fontWeight,r.fontShape);return ur(a,y,n,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(m==="main"||!m){var x=Ah("textrm",r.fontWeight,r.fontShape);return ur(a,x,n,r,s.concat(r.fontWeight,r.fontShape))}else{var k=Ah(m,r.fontWeight,r.fontShape);return ur(a,k,n,r,s.concat(k,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},UA=(e,t)=>{if(la(e.classes)!==la(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},ib=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],i=e[t+1];r instanceof Hr&&i instanceof Hr&&UA(r,i)&&(r.text+=i.text,r.height=Math.max(r.height,i.height),r.depth=Math.max(r.depth,i.depth),r.italic=i.italic,e.splice(t+1,1),t--)}return e},Im=function(t){for(var r=0,i=0,n=0,a=0;a<t.children.length;a++){var s=t.children[a];s.height>r&&(r=s.height),s.depth>i&&(i=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}t.height=r,t.depth=i,t.maxFontSize=n},et=function(t,r,i,n){var a=new Uo(t,r,i,n);return Im(a),a},ha=(e,t,r,i)=>new Uo(e,t,r,i),Lo=function(t,r,i){var n=et([t],[],r);return n.height=Math.max(i||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=st(n.height),n.maxFontSize=1,n},YA=function(t,r,i,n){var a=new ed(t,r,i,n);return Im(a),a},Sn=function(t){var r=new Ho(t);return Im(r),r},Ao=function(t,r){return t instanceof Ho?et([],[t],r):t},GA=function(t){if(t.positionType==="individualShift"){for(var r=t.children,i=[r[0]],n=-r[0].shift-r[0].elem.depth,a=n,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,l=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,i.push({type:"kern",size:l}),i.push(r[s])}return{children:i,depth:n}}var c;if(t.positionType==="top"){for(var h=t.positionData,u=0;u<t.children.length;u++){var f=t.children[u];h-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}c=h}else if(t.positionType==="bottom")c=-t.positionData;else{var d=t.children[0];if(d.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-d.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-d.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},Gt=function(t,r){for(var{children:i,depth:n}=GA(t),a=0,s=0;s<i.length;s++){var o=i[s];if(o.type==="elem"){var l=o.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var c=et(["pstrut"],[]);c.style.height=st(a);for(var h=[],u=n,f=n,d=n,g=0;g<i.length;g++){var p=i[g];if(p.type==="kern")d+=p.size;else{var m=p.elem,y=p.wrapperClasses||[],x=p.wrapperStyle||{},k=et(y,[c,m],void 0,x);k.style.top=st(-a-d-m.depth),p.marginLeft&&(k.style.marginLeft=p.marginLeft),p.marginRight&&(k.style.marginRight=p.marginRight),h.push(k),d+=m.height+m.depth}u=Math.min(u,d),f=Math.max(f,d)}var T=et(["vlist"],h);T.style.height=st(f);var _;if(u<0){var M=et([],[]),S=et(["vlist"],[M]);S.style.height=st(-u);var A=et(["vlist-s"],[new Hr("")]);_=[et(["vlist-r"],[T,A]),et(["vlist-r"],[S])]}else _=[et(["vlist-r"],[T])];var N=et(["vlist-t"],_);return _.length===2&&N.classes.push("vlist-t2"),N.height=f,N.depth=-u,N},nb=(e,t)=>{var r=et(["mspace"],[],t),i=he(e,t);return r.style.marginRight=st(i),r},Ah=function(t,r,i){var n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}var a;return r==="textbf"&&i==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},l1={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ab={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sb=function(t,r){var[i,n,a]=ab[t],s=new ca(i),o=new xn([s],{width:st(n),height:st(a),style:"width:"+st(n),viewBox:"0 0 "+1e3*n+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=ha(["overlay"],[o],r);return l.height=a,l.style.height=st(a),l.style.width=st(n),l},le={number:3,unit:"mu"},La={number:4,unit:"mu"},Zi={number:5,unit:"mu"},VA={mord:{mop:le,mbin:La,mrel:Zi,minner:le},mop:{mord:le,mop:le,mrel:Zi,minner:le},mbin:{mord:La,mop:La,mopen:La,minner:La},mrel:{mord:Zi,mop:Zi,mopen:Zi,minner:Zi},mopen:{},mclose:{mop:le,mbin:La,mrel:Zi,minner:le},mpunct:{mord:le,mop:le,mrel:Zi,mopen:le,mclose:le,mpunct:le,minner:le},minner:{mord:le,mop:le,mbin:La,mrel:Zi,mopen:le,mpunct:le,minner:le}},XA={mord:{mop:le},mop:{mord:le,mop:le},mbin:{},mrel:{},mopen:{},mclose:{mop:le},mpunct:{},minner:{mop:le}},ob={},J0={},tu={};function ot(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n},l=0;l<r.length;++l)ob[r[l]]=o;t&&(a&&(J0[t]=a),s&&(tu[t]=s))}function ds(e){var{type:t,htmlBuilder:r,mathmlBuilder:i}=e;ot({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:i})}var eu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},_e=function(t){return t.type==="ordgroup"?t.body:[t]},QA=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),KA=new Set(["rightmost","mrel","mclose","mpunct"]),ZA={display:Ft.DISPLAY,text:Ft.TEXT,script:Ft.SCRIPT,scriptscript:Ft.SCRIPTSCRIPT},JA={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},De=function(t,r,i,n){n===void 0&&(n=[null,null]);for(var a=[],s=0;s<t.length;s++){var o=Vt(t[s],r);if(o instanceof Ho){var l=o.children;a.push(...l)}else a.push(o)}if(ib(a),!i)return a;var c=r;if(t.length===1){var h=t[0];h.type==="sizing"?c=r.havingSize(h.size):h.type==="styling"&&(c=r.havingStyle(ZA[h.style]))}var u=et([n[0]||"leftmost"],[],r),f=et([n[1]||"rightmost"],[],r),d=i==="root";return c1(a,(g,p)=>{var m=p.classes[0],y=g.classes[0];m==="mbin"&&KA.has(y)?p.classes[0]="mord":y==="mbin"&&QA.has(m)&&(g.classes[0]="mord")},{node:u},f,d),c1(a,(g,p)=>{var m,y,x=u1(p),k=u1(g),T=x&&k?g.hasClass("mtight")?(m=XA[x])==null?void 0:m[k]:(y=VA[x])==null?void 0:y[k]:null;if(T)return nb(T,c)},{node:u},f,d),a},c1=function(t,r,i,n,a){n&&t.push(n);for(var s=0;s<t.length;s++){var o=t[s],l=lb(o);if(l){c1(l.children,r,i,null,a);continue}var c=!o.hasClass("mspace");if(c){var h=r(o,i.node);h&&(i.insertAfter?i.insertAfter(h):(t.unshift(h),s++))}c?i.node=o:a&&o.hasClass("newline")&&(i.node=et(["leftmost"])),i.insertAfter=(u=>f=>{t.splice(u+1,0,f),s++})(s)}n&&t.pop()},lb=function(t){return t instanceof Ho||t instanceof ed||t instanceof Uo&&t.hasClass("enclosing")?t:null},h1=function(t,r){var i=lb(t);if(i){var n=i.children;if(n.length){if(r==="right")return h1(n[n.length-1],"right");if(r==="left")return h1(n[0],"left")}}return t},u1=function(t,r){if(!t)return null;r&&(t=h1(t,r));var i=t.classes[0];return JA[i]||null},bc=function(t,r){var i=["nulldelimiter"].concat(t.baseSizingClasses());return et(r.concat(i))},Vt=function(t,r,i){if(!t)return et();if(J0[t.type]){var n=J0[t.type](t,r);if(i&&r.size!==i.size){n=et(r.sizingClasses(i),[n],r);var a=r.sizeMultiplier/i.sizeMultiplier;n.height*=a,n.depth*=a}return n}else throw new rt("Got group of unknown type: '"+t.type+"'")};function Eh(e,t){var r=et(["base"],e,t),i=et(["strut"]);return i.style.height=st(r.height+r.depth),r.depth&&(i.style.verticalAlign=st(-r.depth)),r.children.unshift(i),r}function d1(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var i=De(e,t,"root"),n;i.length===2&&i[1].hasClass("tag")&&(n=i.pop());for(var a=[],s=[],o=0;o<i.length;o++)if(s.push(i[o]),i[o].hasClass("mbin")||i[o].hasClass("mrel")||i[o].hasClass("allowbreak")){for(var l=!1;o<i.length-1&&i[o+1].hasClass("mspace")&&!i[o+1].hasClass("newline");)o++,s.push(i[o]),i[o].hasClass("nobreak")&&(l=!0);l||(a.push(Eh(s,t)),s=[])}else i[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(Eh(s,t)),s=[]),a.push(i[o]));s.length>0&&a.push(Eh(s,t));var c;r?(c=Eh(De(r,t,!0),t),c.classes=["tag"],a.push(c)):n&&a.push(n);var h=et(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),c){var u=c.children[0];u.style.height=st(h.height+h.depth),h.depth&&(u.style.verticalAlign=st(-h.depth))}return h}function cb(e){return new Ho(e)}class at{constructor(t,r,i){this.type=t,this.attributes={},this.children=r||[],this.classes=i||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=la(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Be&&this.children[i+1]instanceof Be){for(var n=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Be;)n+=this.children[++i].toText();t.appendChild(new Be(n).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=nr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+nr(la(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Be{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return nr(this.toText())}toText(){return this.text}}class hb{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",st(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+st(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var tE=new Set(["\\imath","\\jmath"]),eE=new Set(["mrow","mtable"]),si=function(t,r,i){return se[r][t]&&se[r][t].replace&&t.charCodeAt(0)!==55349&&!(rb.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=se[r][t].replace),new Be(t)},zm=function(t){return t.length===1?t[0]:new at("mrow",t)},Dm=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var i=r.font;if(!i||i==="mathnormal")return null;var n=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var a=t.text;if(tE.has(a))return null;if(se[n][a]){var s=se[n][a].replace;s&&(a=s)}var o=l1[i].fontName;return Fm(a,o,n)?l1[i].variant:null};function Bf(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Be&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Be&&r.text===","}else return!1}var Xr=function(t,r,i){if(t.length===1){var n=Zt(t[0],r);return i&&n instanceof at&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a=[],s,o=0;o<t.length;o++){var l=Zt(t[o],r);if(l instanceof at&&s instanceof at){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(Bf(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&Bf(s))l.children=[...s.children,...l.children],a.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||Bf(s))){var c=l.children[0];c instanceof at&&c.type==="mn"&&(c.children=[...s.children,...c.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var h=s.children[0];if(h instanceof Be&&h.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var u=l.children[0];u instanceof Be&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(l),s=l}return a},ua=function(t,r,i){return zm(Xr(t,r,i))},Zt=function(t,r){if(!t)return new at("mrow");if(tu[t.type]){var i=tu[t.type](t,r);return i}else throw new rt("Got group of unknown type: '"+t.type+"'")};function Wx(e,t,r,i,n){var a=Xr(e,r),s;a.length===1&&a[0]instanceof at&&eE.has(a[0].type)?s=a[0]:s=new at("mrow",a);var o=new at("annotation",[new Be(t)]);o.setAttribute("encoding","application/x-tex");var l=new at("semantics",[s,o]),c=new at("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&c.setAttribute("display","block");var h=n?"katex":"katex-mathml";return et([h],[c])}var rE=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Hx=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ux=function(t,r){return r.size<2?t:rE[t-1][r.size-1]};class on{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||on.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Hx[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new on(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ux(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Hx[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Ux(on.BASESIZE,t);return this.size===r&&this.textSize===on.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==on.BASESIZE?["sizing","reset-size"+this.size,"size"+on.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=NA(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}on.BASESIZE=6;var ub=function(t){return new on({style:t.displayMode?Ft.DISPLAY:Ft.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},db=function(t,r){if(r.displayMode){var i=["katex-display"];r.leqno&&i.push("leqno"),r.fleqn&&i.push("fleqn"),t=et(i,[t])}return t},iE=function(t,r,i){var n=ub(i),a;if(i.output==="mathml")return Wx(t,r,n,i.displayMode,!0);if(i.output==="html"){var s=d1(t,n);a=et(["katex"],[s])}else{var o=Wx(t,r,n,i.displayMode,!1),l=d1(t,n);a=et(["katex"],[o,l])}return db(a,i)},nE=function(t,r,i){var n=ub(i),a=d1(t,n),s=et(["katex"],[a]);return db(s,i)},aE={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},nd=function(t){var r=new at("mo",[new Be(aE[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},sE={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},oE=new Set(["widehat","widecheck","widetilde","utilde"]),ad=function(t,r){function i(){var o=4e5,l=t.label.slice(1);if(oE.has(l)){var c=t,h=c.base.type==="ordgroup"?c.base.body.length:1,u,f,d;if(h>5)l==="widehat"||l==="widecheck"?(u=420,o=2364,d=.42,f=l+"4"):(u=312,o=2340,d=.34,f="tilde4");else{var g=[1,1,2,2,3,3][h];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][g],u=[0,239,300,360,420][g],d=[0,.24,.3,.3,.36,.42][g],f=l+g):(o=[0,600,1033,2339,2340][g],u=[0,260,286,306,312][g],d=[0,.26,.286,.3,.306,.34][g],f="tilde"+g)}var p=new ca(f),m=new xn([p],{width:"100%",height:st(d),viewBox:"0 0 "+o+" "+u,preserveAspectRatio:"none"});return{span:ha([],[m],r),minWidth:0,height:d}}else{var y=[],x=sE[l],[k,T,_]=x,M=_/1e3,S=k.length,A,N;if(S===1){var z=x[3];A=["hide-tail"],N=[z]}else if(S===2)A=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else if(S===3)A=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
365
|
+
`+S+" children.");for(var P=0;P<S;P++){var U=new ca(k[P]),Q=new xn([U],{width:"400em",height:st(M),viewBox:"0 0 "+o+" "+_,preserveAspectRatio:N[P]+" slice"}),Y=ha([A[P]],[Q],r);if(S===1)return{span:Y,minWidth:T,height:M};Y.style.height=st(M),y.push(Y)}return{span:et(["stretchy"],y,r),minWidth:T,height:M}}}var{span:n,minWidth:a,height:s}=i();return n.height=s,n.style.height=st(s),a>0&&(n.style.minWidth=st(a)),n},lE=function(t,r,i,n,a){var s,o=t.height+t.depth+i+n;if(/fbox|color|angl/.test(r)){if(s=et(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new s1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new s1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new xn(c,{width:"100%",height:st(o)});s=ha([],[h],a)}return s.height=o,s.style.height=st(o),s};function It(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function sd(e){var t=od(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function od(e){return e&&(e.type==="atom"||qA.hasOwnProperty(e.type))?e:null}var fb=e=>{if(e instanceof Hr)return e;if(PA(e)&&e.children.length===1)return fb(e.children[0])},Rm=(e,t)=>{var r,i,n;e&&e.type==="supsub"?(i=It(e.base,"accent"),r=i.base,e.base=r,n=OA(Vt(e,t)),e.base=i):(i=It(e,"accent"),r=i.base);var a=Vt(r,t.havingCrampedStyle()),s=i.isShifty&&kn(r),o=0;if(s){var l,c;o=(l=(c=fb(a))==null?void 0:c.skew)!=null?l:0}var h=i.label==="\\c",u=h?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(i.isStretchy)f=ad(i,t),f=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+st(2*o)+")",marginLeft:st(2*o)}:void 0}]});else{var d,g;i.label==="\\vec"?(d=sb("vec",t),g=ab.vec[1]):(d=id({mode:i.mode,text:i.label},t,"textord"),d=RA(d),d.italic=0,g=d.width,h&&(u+=d.depth)),f=et(["accent-body"],[d]);var p=i.label==="\\textcircled";p&&(f.classes.push("accent-full"),u=a.height);var m=o;p||(m-=g/2),f.style.left=st(m),i.label==="\\textcircled"&&(f.style.top=".2em"),f=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-u},{type:"elem",elem:f}]})}var y=et(["mord","accent"],[f],t);return n?(n.children[0]=y,n.height=Math.max(y.height,n.height),n.classes[0]="mord",n):y},pb=(e,t)=>{var r=e.isStretchy?nd(e.label):new at("mo",[si(e.label,e.mode)]),i=new at("mover",[Zt(e.base,t),r]);return i.setAttribute("accent","true"),i},cE=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ot({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=eu(t[0]),i=!cE.test(e.funcName),n=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:r}},htmlBuilder:Rm,mathmlBuilder:pb});ot({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Rm,mathmlBuilder:pb});ot({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:i,base:n}},htmlBuilder:(e,t)=>{var r=Vt(e.base,t),i=ad(e,t),n=e.label==="\\utilde"?.12:0,a=Gt({positionType:"top",positionData:r.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return et(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=nd(e.label),i=new at("munder",[Zt(e.base,t),r]);return i.setAttribute("accentunder","true"),i}});var Mh=e=>{var t=new at("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ot({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:i,funcName:n}=e;return{type:"xArrow",mode:i.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,i=t.havingStyle(r.sup()),n=Ao(Vt(e.body,i,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(a+"-arrow-pad");var s;e.below&&(i=t.havingStyle(r.sub()),s=Ao(Vt(e.below,i,t),t),s.classes.push(a+"-arrow-pad"));var o=ad(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,c=-t.fontMetrics().axisHeight-.5*o.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(c-=n.depth);var h;if(s){var u=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;h=Gt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:u}]})}else h=Gt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:o,shift:l}]});return h.children[0].children[0].children[1].classes.push("svg-align"),et(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){var r=nd(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var n=Mh(Zt(e.body,t));if(e.below){var a=Mh(Zt(e.below,t));i=new at("munderover",[r,a,n])}else i=new at("mover",[r,n])}else if(e.below){var s=Mh(Zt(e.below,t));i=new at("munder",[r,s])}else i=Mh(),i=new at("mover",[r,i]);return i}});function gb(e,t){var r=De(e.body,t,!0);return et([e.mclass],r,t)}function mb(e,t){var r,i=Xr(e.body,t);return e.mclass==="minner"?r=new at("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(r=i[0],r.type="mi"):r=new at("mi",i):(e.isCharacterBox?(r=i[0],r.type="mo"):r=new at("mo",i),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ot({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+i.slice(5),body:_e(n),isCharacterBox:kn(n)}},htmlBuilder:gb,mathmlBuilder:mb});var ld=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ot({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:ld(t[0]),body:_e(t[1]),isCharacterBox:kn(t[1])}}});ot({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:i}=e,n=t[1],a=t[0],s;i!=="\\stackrel"?s=ld(n):s="mrel";var o={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:_e(n)},l={type:"supsub",mode:a.mode,base:o,sup:i==="\\underset"?null:a,sub:i==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:kn(l)}},htmlBuilder:gb,mathmlBuilder:mb});ot({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:ld(t[0]),body:_e(t[0])}},htmlBuilder(e,t){var r=De(e.body,t,!0),i=et([e.mclass],r,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var r=Xr(e.body,t),i=new at("mstyle",r);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var hE={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Yx=()=>({type:"styling",body:[],mode:"math",style:"display"}),Gx=e=>e.type==="textord"&&e.text==="@",uE=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function dE(e,t,r){var i=hE[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:i,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[n,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function fE(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new rt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],n=[i],a=0;a<t.length;a++){for(var s=t[a],o=Yx(),l=0;l<s.length;l++)if(!Gx(s[l]))o.body.push(s[l]);else{i.push(o),l+=1;var c=sd(s[l]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(c))if("<>AV".includes(c))for(var u=0;u<2;u++){for(var f=!0,d=l+1;d<s.length;d++){if(uE(s[d],c)){f=!1,l=d;break}if(Gx(s[d]))throw new rt("Missing a "+c+" character to complete a CD arrow.",s[d]);h[u].body.push(s[d])}if(f)throw new rt("Missing a "+c+" character to complete a CD arrow.",s[l])}else throw new rt('Expected one of "<>AV=|." after @',s[l]);var g=dE(c,h,e),p={type:"styling",body:[g],mode:"math",style:"display"};i.push(p),o=Yx()}a%2===0?i.push(o):i.shift(),i=[],n.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var m=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:m,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}ot({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e;return{type:"cdlabel",mode:r.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),i=Ao(Vt(e.label,r,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=st(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var r=new at("mrow",[Zt(e.label,t)]);return r=new at("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new at("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ot({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Ao(Vt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new at("mrow",[Zt(e.fragment,t)])}});ot({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,i=It(t[0],"ordgroup"),n=i.body,a="",s=0;s<n.length;s++){var o=It(n[s],"textord");a+=o.text}var l=parseInt(a),c;if(isNaN(l))throw new rt("\\@char has non-numeric argument "+a);if(l<0||l>=1114111)throw new rt("\\@char with invalid code point "+a);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:c}}});var yb=(e,t)=>{var r=De(e.body,t.withColor(e.color),!1);return Sn(r)},xb=(e,t)=>{var r=Xr(e.body,t.withColor(e.color)),i=new at("mstyle",r);return i.setAttribute("mathcolor",e.color),i};ot({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,i=It(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:i,body:_e(n)}},htmlBuilder:yb,mathmlBuilder:xb});ot({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:i}=e,n=It(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var a=r.parseExpression(!0,i);return{type:"color",mode:r.mode,color:n,body:a}},htmlBuilder:yb,mathmlBuilder:xb});ot({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:i}=e,n=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,a=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:a,size:n&&It(n,"size").value}},htmlBuilder(e,t){var r=et(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=st(he(e.size,t)))),r},mathmlBuilder(e,t){var r=new at("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",st(he(e.size,t)))),r}});var f1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vb=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new rt("Expected a control sequence",e);return t},pE=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},bb=(e,t,r,i)=>{var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,i)};ot({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var i=t.fetch();if(f1[i.text])return(r==="\\global"||r==="\\\\globallong")&&(i.text=f1[i.text]),It(t.parseFunction(),"internal");throw new rt("Invalid token after macro prefix",i)}});ot({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=t.gullet.popToken(),n=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new rt("Expected a control sequence",i);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new rt('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==a+1)throw new rt('Argument number "'+i.text+'" out of order');a++,o.push([])}else{if(i.text==="EOF")throw new rt("Expected a macro definition");o[a].push(i.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(n,{tokens:l,numArgs:a,delimiters:o},r===f1[r]),{type:"internal",mode:t.mode}}});ot({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=vb(t.gullet.popToken());t.gullet.consumeSpaces();var n=pE(t);return bb(t,i,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ot({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=vb(t.gullet.popToken()),n=t.gullet.popToken(),a=t.gullet.popToken();return bb(t,i,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var Tl=function(t,r,i){var n=se.math[t]&&se.math[t].replace,a=Fm(n||t,r,i);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},Om=function(t,r,i,n){var a=i.havingBaseStyle(r),s=et(n.concat(a.sizingClasses(i)),[t],i),o=a.sizeMultiplier/i.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Cb=function(t,r,i){var n=r.havingBaseStyle(i),a=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=st(a),t.height-=a,t.depth+=a},gE=function(t,r,i,n,a,s){var o=ur(t,"Main-Regular",a,n),l=Om(o,r,n,s);return Cb(l,n,r),l},mE=function(t,r,i,n){return ur(t,"Size"+r+"-Regular",i,n)},kb=function(t,r,i,n,a,s){var o=mE(t,r,a,n),l=Om(et(["delimsizing","size"+r],[o],n),Ft.TEXT,n,s);return i&&Cb(l,n,Ft.TEXT),l},Lf=function(t,r,i){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var a=et(["delimsizinginner",n],[et([],[ur(t,r,i)])]);return{type:"elem",elem:a}},Af=function(t,r,i){var n=Ri["Size4-Regular"][t.charCodeAt(0)]?Ri["Size4-Regular"][t.charCodeAt(0)][4]:Ri["Size1-Regular"][t.charCodeAt(0)][4],a=new ca("inner",MA(t,Math.round(1e3*r))),s=new xn([a],{width:st(n),height:st(r),style:"width:"+st(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=ha([],[s],i);return o.height=r,o.style.height=st(r),o.style.width=st(n),{type:"elem",elem:o}},p1=.008,Fh={type:"kern",size:-1*p1},yE=new Set(["|","\\lvert","\\rvert","\\vert"]),xE=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),wb=function(t,r,i,n,a,s){var o,l,c,h,u="",f=0;o=c=h=t,l=null;var d="Size1-Regular";t==="\\uparrow"?c=h="⏐":t==="\\Uparrow"?c=h="‖":t==="\\downarrow"?o=c="⏐":t==="\\Downarrow"?o=c="‖":t==="\\updownarrow"?(o="\\uparrow",c="⏐",h="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",c="‖",h="\\Downarrow"):yE.has(t)?(c="∣",u="vert",f=333):xE.has(t)?(c="∥",u="doublevert",f=556):t==="["||t==="\\lbrack"?(o="⎡",c="⎢",h="⎣",d="Size4-Regular",u="lbrack",f=667):t==="]"||t==="\\rbrack"?(o="⎤",c="⎥",h="⎦",d="Size4-Regular",u="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(c=o="⎢",h="⎣",d="Size4-Regular",u="lfloor",f=667):t==="\\lceil"||t==="⌈"?(o="⎡",c=h="⎢",d="Size4-Regular",u="lceil",f=667):t==="\\rfloor"||t==="⌋"?(c=o="⎥",h="⎦",d="Size4-Regular",u="rfloor",f=667):t==="\\rceil"||t==="⌉"?(o="⎤",c=h="⎥",d="Size4-Regular",u="rceil",f=667):t==="("||t==="\\lparen"?(o="⎛",c="⎜",h="⎝",d="Size4-Regular",u="lparen",f=875):t===")"||t==="\\rparen"?(o="⎞",c="⎟",h="⎠",d="Size4-Regular",u="rparen",f=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",h="⎩",c="⎪",d="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",h="⎭",c="⎪",d="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",h="⎩",c="⎪",d="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",h="⎭",c="⎪",d="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",h="⎭",c="⎪",d="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",h="⎩",c="⎪",d="Size4-Regular");var g=Tl(o,d,a),p=g.height+g.depth,m=Tl(c,d,a),y=m.height+m.depth,x=Tl(h,d,a),k=x.height+x.depth,T=0,_=1;if(l!==null){var M=Tl(l,d,a);T=M.height+M.depth,_=2}var S=p+k+T,A=Math.max(0,Math.ceil((r-S)/(_*y))),N=S+A*_*y,z=n.fontMetrics().axisHeight;i&&(z*=n.sizeMultiplier);var P=N/2-z,U=[];if(u.length>0){var Q=N-p-k,Y=Math.round(N*1e3),q=FA(u,Math.round(Q*1e3)),R=new ca(u,q),H=st(f/1e3),F=st(Y/1e3),V=new xn([R],{width:H,height:F,viewBox:"0 0 "+f+" "+Y}),K=ha([],[V],n);K.height=Y/1e3,K.style.width=H,K.style.height=F,U.push({type:"elem",elem:K})}else{if(U.push(Lf(h,d,a)),U.push(Fh),l===null){var nt=N-p-k+2*p1;U.push(Af(c,nt,n))}else{var dt=(N-p-k-T)/2+2*p1;U.push(Af(c,dt,n)),U.push(Fh),U.push(Lf(l,d,a)),U.push(Fh),U.push(Af(c,dt,n))}U.push(Fh),U.push(Lf(o,d,a))}var ht=n.havingBaseStyle(Ft.TEXT),_t=Gt({positionType:"bottom",positionData:P,children:U});return Om(et(["delimsizing","mult"],[_t],ht),Ft.TEXT,n,s)},Ef=80,Mf=.08,Ff=function(t,r,i,n,a){var s=EA(t,n,i),o=new ca(t,s),l=new xn([o],{width:"400em",height:st(r),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return ha(["hide-tail"],[l],a)},vE=function(t,r){var i=r.havingBaseSizing(),n=Lb("\\surd",t*i.sizeMultiplier,Bb,i),a=i.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l=0,c=0,h=0,u;return n.type==="small"?(h=1e3+1e3*s+Ef,t<1?a=1:t<1.4&&(a=.7),l=(1+s+Mf)/a,c=(1+s)/a,o=Ff("sqrtMain",l,h,s,r),o.style.minWidth="0.853em",u=.833/a):n.type==="large"?(h=(1e3+Ef)*Yl[n.size],c=(Yl[n.size]+s)/a,l=(Yl[n.size]+s+Mf)/a,o=Ff("sqrtSize"+n.size,l,h,s,r),o.style.minWidth="1.02em",u=1/a):(l=t+s+Mf,c=t+s,h=Math.floor(1e3*t+s)+Ef,o=Ff("sqrtTall",l,h,s,r),o.style.minWidth="0.742em",u=1.056),o.height=c,o.style.height=st(l),{span:o,advanceWidth:u,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},Sb=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),bE=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Tb=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Yl=[0,1.2,1.8,2.4,3],_b=function(t,r,i,n,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Sb.has(t)||Tb.has(t))return kb(t,r,!1,i,n,a);if(bE.has(t))return wb(t,Yl[r],!1,i,n,a);throw new rt("Illegal delimiter: '"+t+"'")},CE=[{type:"small",style:Ft.SCRIPTSCRIPT},{type:"small",style:Ft.SCRIPT},{type:"small",style:Ft.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],kE=[{type:"small",style:Ft.SCRIPTSCRIPT},{type:"small",style:Ft.SCRIPT},{type:"small",style:Ft.TEXT},{type:"stack"}],Bb=[{type:"small",style:Ft.SCRIPTSCRIPT},{type:"small",style:Ft.SCRIPT},{type:"small",style:Ft.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],wE=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},Lb=function(t,r,i,n){for(var a=Math.min(2,3-n.style.size),s=a;s<i.length;s++){var o=i[s];if(o.type==="stack")break;var l=Tl(t,wE(o),"math"),c=l.height+l.depth;if(o.type==="small"){var h=n.havingBaseStyle(o.style);c*=h.sizeMultiplier}if(c>r)return o}return i[i.length-1]},g1=function(t,r,i,n,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Tb.has(t)?o=CE:Sb.has(t)?o=Bb:o=kE;var l=Lb(t,r,o,n);return l.type==="small"?gE(t,l.style,i,n,a,s):l.type==="large"?kb(t,l.size,i,n,a,s):wb(t,r,i,n,a,s)},$f=function(t,r,i,n,a,s){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,c=5/n.fontMetrics().ptPerEm,h=Math.max(r-o,i+o),u=Math.max(h/500*l,2*h-c);return g1(t,u,!0,n,a,s)},Vx={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},SE=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function cd(e,t){var r=od(e);if(r&&SE.has(r.text))return r;throw r?new rt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new rt("Invalid delimiter type '"+e.type+"'",e)}ot({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=cd(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Vx[e.funcName].size,mclass:Vx[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?et([e.mclass]):_b(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(si(e.delim,e.mode));var r=new at("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var i=st(Yl[e.size]);return r.setAttribute("minsize",i),r.setAttribute("maxsize",i),r}});function Xx(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ot({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new rt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:cd(t[0],e).text,color:r}}});ot({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=cd(t[0],e),i=e.parser;++i.leftrightDepth;var n=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var a=It(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:n,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Xx(e);for(var r=De(e.body,t,!0,["mopen","mclose"]),i=0,n=0,a=!1,s=0;s<r.length;s++)r[s].isMiddle?a=!0:(i=Math.max(r[s].height,i),n=Math.max(r[s].depth,n));i*=t.sizeMultiplier,n*=t.sizeMultiplier;var o;if(e.left==="."?o=bc(t,["mopen"]):o=$f(e.left,i,n,t,e.mode,["mopen"]),r.unshift(o),a)for(var l=1;l<r.length;l++){var c=r[l],h=c.isMiddle;h&&(r[l]=$f(h.delim,i,n,h.options,e.mode,[]))}var u;if(e.right===".")u=bc(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;u=$f(e.right,i,n,f,e.mode,["mclose"])}return r.push(u),et(["minner"],r,t)},mathmlBuilder:(e,t)=>{Xx(e);var r=Xr(e.body,t);if(e.left!=="."){var i=new at("mo",[si(e.left,e.mode)]);i.setAttribute("fence","true"),r.unshift(i)}if(e.right!=="."){var n=new at("mo",[si(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return zm(r)}});ot({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=cd(t[0],e);if(!e.parser.leftrightDepth)throw new rt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=bc(t,[]);else{r=_b(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};r.isMiddle=i}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?si("|","text"):si(e.delim,e.mode),i=new at("mo",[r]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var hd=(e,t)=>{var r=Ao(Vt(e.body,t),t),i=e.label.slice(1),n=t.sizeMultiplier,a,s=0,o=kn(e.body);if(i==="sout")a=et(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/n,s=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var l=he({number:.6,unit:"pt"},t),c=he({number:.35,unit:"ex"},t),h=t.havingBaseSizing();n=n/h.sizeMultiplier;var u=r.height+r.depth+l+c;r.style.paddingLeft=st(u/2+l);var f=Math.floor(1e3*u*n),d=LA(f),g=new xn([new ca("phase",d)],{width:"400em",height:st(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=ha(["hide-tail"],[g],t),a.style.height=st(u),s=r.depth+l+c}else{/cancel/.test(i)?o||r.classes.push("cancel-pad"):i==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var p=0,m=0,y=0;/box/.test(i)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(i==="colorbox"?0:y),m=p):i==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*y,m=Math.max(0,.25-r.depth)):(p=o?.2:0,m=p),a=lE(r,i,p,m,t),/fbox|boxed|fcolorbox/.test(i)?(a.style.borderStyle="solid",a.style.borderWidth=st(y)):i==="angl"&&y!==.049&&(a.style.borderTopWidth=st(y),a.style.borderRightWidth=st(y)),s=r.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=Gt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var k=/cancel|phase/.test(i)?["svg-align"]:[];x=Gt({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]})}return/cancel/.test(i)&&(x.height=r.height,x.depth=r.depth),/cancel/.test(i)&&!o?et(["mord","cancel-lap"],[x],t):et(["mord"],[x],t)},ud=(e,t)=>{var r=0,i=new at(e.label.includes("colorbox")?"mpadded":"menclose",[Zt(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*r+"pt"),i.setAttribute("height","+"+2*r+"pt"),i.setAttribute("lspace",r+"pt"),i.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+st(n)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};ot({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:i,funcName:n}=e,a=It(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:i.mode,label:n,backgroundColor:a,body:s}},htmlBuilder:hd,mathmlBuilder:ud});ot({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:i,funcName:n}=e,a=It(t[0],"color-token").color,s=It(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:i.mode,label:n,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:hd,mathmlBuilder:ud});ot({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ot({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];return{type:"enclose",mode:r.mode,label:i,body:n}},htmlBuilder:hd,mathmlBuilder:ud});ot({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=t[0];return{type:"enclose",mode:r.mode,label:i,body:n}},htmlBuilder:hd,mathmlBuilder:ud});ot({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Ab={};function Wi(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)Ab[r[l]]=o;a&&(J0[t]=a),s&&(tu[t]=s)}var Eb={};function E(e,t){Eb[e]=t}class Tr{constructor(t,r,i){this.lexer=t,this.start=r,this.end=i}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new Tr(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class jr{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new jr(r,Tr.range(this,t))}}function Qx(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var dd=e=>{var t=e.parser.settings;if(!t.displayMode)throw new rt("{"+e.envName+"} can be used only in display mode.")},TE=new Set(["gather","gather*"]);function Pm(e){if(!e.includes("ed"))return!e.includes("*")}function Ca(e,t,r){var{hskipBeforeAndAfter:i,addJot:n,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:c,emptySingleRow:h,maxNumCols:u,leqno:f}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var d=e.gullet.expandMacroAsText("\\arraystretch");if(d==null)s=1;else if(s=parseFloat(d),!s||s<0)throw new rt("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var g=[],p=[g],m=[],y=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function T(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new jr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),y.push(Qx(e));;){var _=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var M={type:"ordgroup",mode:e.mode,body:_};r&&(M={type:"styling",mode:e.mode,style:r,body:[M]}),g.push(M);var S=e.fetch().text;if(S==="&"){if(u&&g.length===u){if(c||o)throw new rt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(S==="\\end"){T(),g.length===1&&M.type==="styling"&&M.body.length===1&&M.body[0].type==="ordgroup"&&M.body[0].body.length===0&&(p.length>1||!h)&&p.pop(),y.length<p.length+1&&y.push([]);break}else if(S==="\\\\"){e.consume();var A=void 0;e.gullet.future().text!==" "&&(A=e.parseSizeGroup(!0)),m.push(A?A.value:null),T(),y.push(Qx(e)),g=[],p.push(g),k()}else throw new rt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:s,body:p,cols:a,rowGaps:m,hskipBeforeAndAfter:i,hLinesBeforeRow:y,colSeparationType:o,tags:x,leqno:f}}function Nm(e){return e.slice(0,1)==="d"?"display":"text"}var Hi=function(t,r){var i,n,a=t.body.length,s=t.hLinesBeforeRow,o=0,l=new Array(a),c=[],h=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),u=1/r.fontMetrics().ptPerEm,f=5*u;if(t.colSeparationType&&t.colSeparationType==="small"){var d=r.havingStyle(Ft.SCRIPT).sizeMultiplier;f=.2778*(d/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?he({number:3,unit:"ex"},r):12*u,p=3*u,m=t.arraystretch*g,y=.7*m,x=.3*m,k=0;function T(Fn){for(var Ta=0;Ta<Fn.length;++Ta)Ta>0&&(k+=.25),c.push({pos:k,isDashed:Fn[Ta]})}for(T(s[0]),i=0;i<t.body.length;++i){var _=t.body[i],M=y,S=x;o<_.length&&(o=_.length);var A=new Array(_.length);for(n=0;n<_.length;++n){var N=Vt(_[n],r);S<N.depth&&(S=N.depth),M<N.height&&(M=N.height),A[n]=N}var z=t.rowGaps[i],P=0;z&&(P=he(z,r),P>0&&(P+=x,S<P&&(S=P),P=0)),t.addJot&&i<t.body.length-1&&(S+=p),A.height=M,A.depth=S,k+=M,A.pos=k,k+=S+P,l[i]=A,T(s[i+1])}var U=k/2+r.fontMetrics().axisHeight,Q=t.cols||[],Y=[],q,R,H=[];if(t.tags&&t.tags.some(Fn=>Fn))for(i=0;i<a;++i){var F=l[i],V=F.pos-U,K=t.tags[i],nt=void 0;K===!0?nt=et(["eqn-num"],[],r):K===!1?nt=et([],[],r):nt=et([],De(K,r,!0),r),nt.depth=F.depth,nt.height=F.height,H.push({type:"elem",elem:nt,shift:V})}for(n=0,R=0;n<o||R<Q.length;++n,++R){for(var dt,ht=Q[R],_t=!0;((vt=ht)==null?void 0:vt.type)==="separator";){var vt;if(_t||(q=et(["arraycolsep"],[]),q.style.width=st(r.fontMetrics().doubleRuleSep),Y.push(q)),ht.separator==="|"||ht.separator===":"){var Rt=ht.separator==="|"?"solid":"dashed",jt=et(["vertical-separator"],[],r);jt.style.height=st(k),jt.style.borderRightWidth=st(h),jt.style.borderRightStyle=Rt,jt.style.margin="0 "+st(-h/2);var pe=k-U;pe&&(jt.style.verticalAlign=st(-pe)),Y.push(jt)}else throw new rt("Invalid separator type: "+ht.separator);R++,ht=Q[R],_t=!1}if(!(n>=o)){var ke=void 0;if(n>0||t.hskipBeforeAndAfter){var ft,At;ke=(ft=(At=ht)==null?void 0:At.pregap)!=null?ft:f,ke!==0&&(q=et(["arraycolsep"],[]),q.style.width=st(ke),Y.push(q))}var Ht=[];for(i=0;i<a;++i){var Ut=l[i],Re=Ut[n];if(Re){var Oe=Ut.pos-U;Re.depth=Ut.depth,Re.height=Ut.height,Ht.push({type:"elem",elem:Re,shift:Oe})}}var An=Gt({positionType:"individualShift",children:Ht}),ys=et(["col-align-"+(((dt=ht)==null?void 0:dt.align)||"c")],[An]);if(Y.push(ys),n<o-1||t.hskipBeforeAndAfter){var Ir,Sa;ke=(Ir=(Sa=ht)==null?void 0:Sa.postgap)!=null?Ir:f,ke!==0&&(q=et(["arraycolsep"],[]),q.style.width=st(ke),Y.push(q))}}}var Qi=et(["mtable"],Y);if(c.length>0){for(var eh=Lo("hline",r,h),rh=Lo("hdashline",r,h),xs=[{type:"elem",elem:Qi,shift:0}];c.length>0;){var vs=c.pop(),En=vs.pos-U;vs.isDashed?xs.push({type:"elem",elem:rh,shift:En}):xs.push({type:"elem",elem:eh,shift:En})}Qi=Gt({positionType:"individualShift",children:xs})}if(H.length===0)return et(["mord"],[Qi],r);var Mn=Gt({positionType:"individualShift",children:H}),Qr=et(["tag"],[Mn],r);return Sn([Qi,Qr])},_E={c:"center ",l:"left ",r:"right "},Ui=function(t,r){for(var i=[],n=new at("mtd",[],["mtr-glue"]),a=new at("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],l=[],c=0;c<o.length;c++)l.push(new at("mtd",[Zt(o[c],r)]));t.tags&&t.tags[s]&&(l.unshift(n),l.push(n),t.leqno?l.unshift(a):l.push(a)),i.push(new at("mtr",l))}var h=new at("mtable",i),u=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);h.setAttribute("rowspacing",st(u));var f="",d="";if(t.cols&&t.cols.length>0){var g=t.cols,p="",m=!1,y=0,x=g.length;g[0].type==="separator"&&(f+="top ",y=1),g[g.length-1].type==="separator"&&(f+="bottom ",x-=1);for(var k=y;k<x;k++){var T=g[k];T.type==="align"?(d+=_E[T.align],m&&(p+="none "),m=!0):T.type==="separator"&&m&&(p+=T.separator==="|"?"solid ":"dashed ",m=!1)}h.setAttribute("columnalign",d.trim()),/[sd]/.test(p)&&h.setAttribute("columnlines",p.trim())}if(t.colSeparationType==="align"){for(var _=t.cols||[],M="",S=1;S<_.length;S++)M+=S%2?"0em ":"1em ";h.setAttribute("columnspacing",M.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var A="",N=t.hLinesBeforeRow;f+=N[0].length>0?"left ":"",f+=N[N.length-1].length>0?"right ":"";for(var z=1;z<N.length-1;z++)A+=N[z].length===0?"none ":N[z][0]?"dashed ":"solid ";return/[sd]/.test(A)&&h.setAttribute("rowlines",A.trim()),f!==""&&(h=new at("menclose",[h]),h.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(h=new at("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Mb=function(t,r){t.envName.includes("ed")||dd(t);var i=[],n=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",s=Ca(t.parser,{cols:i,addJot:!0,autoTag:a?void 0:Pm(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o=0,l=0,c={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var h="",u=0;u<r[0].body.length;u++){var f=It(r[0].body[u],"textord");h+=f.text}o=Number(h),l=o*2}var d=!l;s.body.forEach(function(y){for(var x=1;x<y.length;x+=2){var k=It(y[x],"styling"),T=It(k.body[0],"ordgroup");T.body.unshift(c)}if(d)l<y.length&&(l=y.length);else{var _=y.length/2;if(o<_)throw new rt("Too many math in a row: "+("expected "+o+", but got "+_),y[0])}});for(var g=0;g<l;++g){var p="r",m=0;g%2===1?p="l":g>0&&d&&(m=1),i[g]={type:"align",align:p,pregap:m,postgap:0}}return s.colSeparationType=d?"align":"alignat",s};Wi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=od(t[0]),i=r?[t[0]]:It(t[0],"ordgroup").body,n=i.map(function(s){var o=sd(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new rt("Unknown column alignment: "+l,s)}),a={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ca(e.parser,a,Nm(e.envName))},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,!"lcr".includes(r))throw new rt("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),i.cols=[{type:"align",align:r}]}}var a=Ca(e.parser,i,Nm(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Ca(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=od(t[0]),i=r?[t[0]]:It(t[0],"ordgroup").body,n=i.map(function(o){var l=sd(o),c=l.text;if("lc".includes(c))return{type:"align",align:c};throw new rt("Unknown column alignment: "+c,o)});if(n.length>1)throw new rt("{subarray} can contain only one column");var a={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},s=Ca(e.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new rt("{subarray} can contain only one column");return s},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Ca(e.parser,t,Nm(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Mb,htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){TE.has(e.envName)&&dd(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Pm(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ca(e.parser,t,"display")},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Mb,htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){dd(e);var t={autoTag:Pm(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ca(e.parser,t,"display")},htmlBuilder:Hi,mathmlBuilder:Ui});Wi({type:"array",names:["CD"],props:{numArgs:0},handler(e){return dd(e),fE(e.parser)},htmlBuilder:Hi,mathmlBuilder:Ui});E("\\nonumber","\\gdef\\@eqnsw{0}");E("\\notag","\\nonumber");ot({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new rt(e.funcName+" valid only within array environment")}});var Kx=Ab;ot({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];if(n.type!=="ordgroup")throw new rt("Invalid environment name",n);for(var a="",s=0;s<n.body.length;++s)a+=It(n.body[s],"textord").text;if(i==="\\begin"){if(!Kx.hasOwnProperty(a))throw new rt("No such environment: "+a,n);var o=Kx[a],{args:l,optArgs:c}=r.parseArguments("\\begin{"+a+"}",o),h={mode:r.mode,envName:a,parser:r},u=o.handler(h,l,c);r.expect("\\end",!1);var f=r.nextToken,d=It(r.parseFunction(),"environment");if(d.name!==a)throw new rt("Mismatch: \\begin{"+a+"} matched by \\end{"+d.name+"}",f);return u}return{type:"environment",mode:r.mode,name:a,nameGroup:n}}});var Fb=(e,t)=>{var r=e.font,i=t.withFont(r);return Vt(e.body,i)},$b=(e,t)=>{var r=e.font,i=t.withFont(r);return Zt(e.body,i)},Zx={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ot({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=eu(t[0]),a=i;return a in Zx&&(a=Zx[a]),{type:"font",mode:r.mode,font:a.slice(1),body:n}},htmlBuilder:Fb,mathmlBuilder:$b});ot({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:ld(i),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:i}],isCharacterBox:kn(i)}}});ot({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i,breakOnTokenText:n}=e,{mode:a}=r,s=r.parseExpression(!0,n),o="math"+i.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Fb,mathmlBuilder:$b});var BE=(e,t)=>{var r=t.style,i=r.fracNum(),n=r.fracDen(),a;a=t.havingStyle(i);var s=Vt(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}a=t.havingStyle(n);var c=Vt(e.denom,a,t),h,u,f;e.hasBarLine?(e.barSize?(u=he(e.barSize,t),h=Lo("frac-line",t,u)):h=Lo("frac-line",t),u=h.height,f=h.height):(h=null,u=0,f=t.fontMetrics().defaultRuleThickness);var d,g,p;r.size===Ft.DISPLAY.size?(d=t.fontMetrics().num1,u>0?g=3*f:g=7*f,p=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,g=f):(d=t.fontMetrics().num3,g=3*f),p=t.fontMetrics().denom2);var m;if(h){var x=t.fontMetrics().axisHeight;d-s.depth-(x+.5*u)<g&&(d+=g-(d-s.depth-(x+.5*u))),x-.5*u-(c.height-p)<g&&(p+=g-(x-.5*u-(c.height-p)));var k=-(x-.5*u);m=Gt({positionType:"individualShift",children:[{type:"elem",elem:c,shift:p},{type:"elem",elem:h,shift:k},{type:"elem",elem:s,shift:-d}]})}else{var y=d-s.depth-(c.height-p);y<g&&(d+=.5*(g-y),p+=.5*(g-y)),m=Gt({positionType:"individualShift",children:[{type:"elem",elem:c,shift:p},{type:"elem",elem:s,shift:-d}]})}a=t.havingStyle(r),m.height*=a.sizeMultiplier/t.sizeMultiplier,m.depth*=a.sizeMultiplier/t.sizeMultiplier;var T;r.size===Ft.DISPLAY.size?T=t.fontMetrics().delim1:r.size===Ft.SCRIPTSCRIPT.size?T=t.havingStyle(Ft.SCRIPT).fontMetrics().delim2:T=t.fontMetrics().delim2;var _,M;return e.leftDelim==null?_=bc(t,["mopen"]):_=g1(e.leftDelim,T,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?M=et([]):e.rightDelim==null?M=bc(t,["mclose"]):M=g1(e.rightDelim,T,!0,t.havingStyle(r),e.mode,["mclose"]),et(["mord"].concat(a.sizingClasses(t)),[_,et(["mfrac"],[m]),M],t)},LE=(e,t)=>{var r=new at("mfrac",[Zt(e.numer,t),Zt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var i=he(e.barSize,t);r.setAttribute("linethickness",st(i))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var a=new at("mo",[new Be(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}if(n.push(r),e.rightDelim!=null){var s=new at("mo",[new Be(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),n.push(s)}return zm(n)}return r},Ib=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};ot({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0],a=t[1],s,o=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var c=i==="\\cfrac",h=null;return c||i.startsWith("\\d")?h="display":i.startsWith("\\t")&&(h="text"),Ib({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:c,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},h)},htmlBuilder:BE,mathmlBuilder:LE});ot({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:i}=e,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:n,token:i}}});var Jx=["display","text","script","scriptscript"],t4=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ot({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,i=t[4],n=t[5],a=eu(t[0]),s=a.type==="atom"&&a.family==="open"?t4(a.text):null,o=eu(t[1]),l=o.type==="atom"&&o.family==="close"?t4(o.text):null,c=It(t[2],"size"),h,u=null;c.isBlank?h=!0:(u=c.value,h=u.number>0);var f=null,d=t[3];if(d.type==="ordgroup"){if(d.body.length>0){var g=It(d.body[0],"textord");f=Jx[Number(g.text)]}}else d=It(d,"textord"),f=Jx[Number(d.text)];return Ib({type:"genfrac",mode:r.mode,numer:i,denom:n,continued:!1,hasBarLine:h,barSize:u,leftDelim:s,rightDelim:l},f)}});ot({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:i,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:It(t[0],"size").value,token:n}}});ot({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0],a=It(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var zb=(e,t)=>{var r=t.style,i,n;e.type==="supsub"?(i=e.sup?Vt(e.sup,t.havingStyle(r.sup()),t):Vt(e.sub,t.havingStyle(r.sub()),t),n=It(e.base,"horizBrace")):n=It(e,"horizBrace");var a=Vt(n.base,t.havingBaseStyle(Ft.DISPLAY)),s=ad(n,t),o;if(n.isOver?(o=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Gt({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),o.children[0].children[0].children[0].classes.push("svg-align")),i){var l=et(["minner",n.isOver?"mover":"munder"],[o],t);n.isOver?o=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:i}]}):o=Gt({positionType:"bottom",positionData:l.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:l}]})}return et(["minner",n.isOver?"mover":"munder"],[o],t)},AE=(e,t)=>{var r=nd(e.label);return new at(e.isOver?"mover":"munder",[Zt(e.base,t),r])};ot({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e;return{type:"horizBrace",mode:r.mode,label:i,isOver:i.includes("\\over"),base:t[0]}},htmlBuilder:zb,mathmlBuilder:AE});ot({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[1],n=It(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:_e(i)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=De(e.body,t,!1);return YA(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=ua(e.body,t);return r instanceof at||(r=new at("mrow",[r])),r.setAttribute("href",e.href),r}});ot({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=It(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:i}))return r.formatUnsupportedCmd("\\url");for(var n=[],a=0;a<i.length;a++){var s=i[a];s==="~"&&(s="\\textasciitilde"),n.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:i,body:_e(o)}}});ot({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:_e(t[0])}},htmlBuilder(e,t){var r=De(e.body,t,!1);return Sn(r)},mathmlBuilder(e,t){return new at("mrow",Xr(e.body,t))}});ot({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i,token:n}=e,a=It(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(i){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),h=0;h<c.length;h++){var u=c[h],f=u.indexOf("=");if(f<0)throw new rt("\\htmlData key/value '"+u+"' missing equals sign");var d=u.slice(0,f),g=u.slice(f+1);l["data-"+d.trim()]=g}o={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:l,body:_e(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var r=De(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var n=et(i,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&n.setAttribute(a,e.attributes[a]);return n},mathmlBuilder:(e,t)=>ua(e.body,t)});ot({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:_e(t[0]),mathml:_e(t[1])}},htmlBuilder:(e,t)=>{var r=De(e.html,t,!1);return Sn(r)},mathmlBuilder:(e,t)=>ua(e.mathml,t)});var If=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new rt("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(r[1]+r[2]),unit:r[3]};if(!K6(i))throw new rt("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};ot({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:i}=e,n={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=It(r[0],"raw").string,c=l.split(","),h=0;h<c.length;h++){var u=c[h].split("=");if(u.length===2){var f=u[1].trim();switch(u[0].trim()){case"alt":o=f;break;case"width":n=If(f);break;case"height":a=If(f);break;case"totalheight":s=If(f);break;default:throw new rt("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var d=It(t[0],"url").url;return o===""&&(o=d,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:d})?{type:"includegraphics",mode:i.mode,alt:o,width:n,height:a,totalheight:s,src:d}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=he(e.height,t),i=0;e.totalheight.number>0&&(i=he(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=he(e.width,t));var a={height:st(r+i)};n>0&&(a.width=st(n)),i>0&&(a.verticalAlign=st(-i));var s=new zA(e.src,e.alt,a);return s.height=r,s.depth=i,s},mathmlBuilder:(e,t)=>{var r=new at("mglyph",[]);r.setAttribute("alt",e.alt);var i=he(e.height,t),n=0;if(e.totalheight.number>0&&(n=he(e.totalheight,t)-i,r.setAttribute("valign",st(-n))),r.setAttribute("height",st(i+n)),e.width.number>0){var a=he(e.width,t);r.setAttribute("width",st(a))}return r.setAttribute("src",e.src),r}});ot({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e,n=It(t[0],"size");if(r.settings.strict){var a=i[1]==="m",s=n.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return nb(e.dimension,t)},mathmlBuilder(e,t){var r=he(e.dimension,t);return new hb(r)}});ot({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:i.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=et([],[Vt(e.body,t)]),r=et(["inner"],[r],t)):r=et(["inner"],[Vt(e.body,t)]);var i=et(["fix"],[]),n=et([e.alignment],[r,i],t),a=et(["strut"]);return a.style.height=st(n.height+n.depth),n.depth&&(a.style.verticalAlign=st(-n.depth)),n.children.unshift(a),n=et(["thinbox"],[n],t),et(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new at("mpadded",[Zt(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",i+"width")}return r.setAttribute("width","0px"),r}});ot({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:i}=e,n=i.mode;i.switchMode("math");var a=r==="\\("?"\\)":"$",s=i.parseExpression(!1,a);return i.expect(a),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:s}}});ot({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new rt("Mismatched "+e.funcName)}});var e4=(e,t)=>{switch(t.style.size){case Ft.DISPLAY.size:return e.display;case Ft.TEXT.size:return e.text;case Ft.SCRIPT.size:return e.script;case Ft.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ot({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:_e(t[0]),text:_e(t[1]),script:_e(t[2]),scriptscript:_e(t[3])}},htmlBuilder:(e,t)=>{var r=e4(e,t),i=De(r,t,!1);return Sn(i)},mathmlBuilder:(e,t)=>{var r=e4(e,t);return ua(r,t)}});var Db=(e,t,r,i,n,a,s)=>{e=et([],[e]);var o=r&&kn(r),l,c;if(t){var h=Vt(t,i.havingStyle(n.sup()),i);c={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var u=Vt(r,i.havingStyle(n.sub()),i);l={elem:u,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-u.height)}}var f;if(c&&l){var d=i.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;f=Gt({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:st(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:st(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(l){var g=e.height-s;f=Gt({positionType:"top",positionData:g,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:st(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(c){var p=e.depth+s;f=Gt({positionType:"bottom",positionData:p,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:st(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var m=[f];if(l&&a!==0&&!o){var y=et(["mspace"],[],i);y.style.marginRight=st(a),m.unshift(y)}return et(["mop","op-limits"],m,i)},Rb=new Set(["\\smallint"]),Go=(e,t)=>{var r,i,n=!1,a;e.type==="supsub"?(r=e.sup,i=e.sub,a=It(e.base,"op"),n=!0):a=It(e,"op");var s=t.style,o=!1;s.size===Ft.DISPLAY.size&&a.symbol&&!Rb.has(a.name)&&(o=!0);var l;if(a.symbol){var c=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),l=ur(a.name,c,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),h.length>0){var u=l.italic,f=sb(h+"Size"+(o?"2":"1"),t);l=Gt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(a.body){var d=De(a.body,t,!0);d.length===1&&d[0]instanceof Hr?(l=d[0],l.classes[0]="mop"):l=et(["mop"],d,t)}else{for(var g=[],p=1;p<a.name.length;p++)g.push($m(a.name[p],a.mode,t));l=et(["mop"],g,t)}var m=0,y=0;return(l instanceof Hr||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(m=(l.height-l.depth)/2-t.fontMetrics().axisHeight,y=l.italic||0),n?Db(l,r,i,t,s,y,m):(m&&(l.style.position="relative",l.style.top=st(m)),l)},Wc=(e,t)=>{var r;if(e.symbol)r=new at("mo",[si(e.name,e.mode)]),Rb.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new at("mo",Xr(e.body,t));else{r=new at("mi",[new Be(e.name.slice(1))]);var i=new at("mo",[si("","text")]);e.parentIsSupSub?r=new at("mrow",[r,i]):r=cb([r,i])}return r},EE={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ot({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=i;return n.length===1&&(n=EE[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Go,mathmlBuilder:Wc});ot({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:_e(i)}},htmlBuilder:Go,mathmlBuilder:Wc});var ME={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ot({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Go,mathmlBuilder:Wc});ot({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Go,mathmlBuilder:Wc});ot({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,i=r;return i.length===1&&(i=ME[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Go,mathmlBuilder:Wc});var Ob=(e,t)=>{var r,i,n=!1,a;e.type==="supsub"?(r=e.sup,i=e.sub,a=It(e.base,"operatorname"),n=!0):a=It(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(u=>{var f="text"in u?u.text:void 0;return typeof f=="string"?{type:"textord",mode:u.mode,text:f}:u}),l=De(o,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var h=l[c];h instanceof Hr&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=et(["mop"],l,t)}else s=et(["mop"],[],t);return n?Db(s,r,i,t,t.style,0,0):s},FE=(e,t)=>{for(var r=Xr(e.body,t.withFont("mathrm")),i=!0,n=0;n<r.length;n++){var a=r[n];if(!(a instanceof hb))if(a instanceof at)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof Be?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var o=r.map(h=>h.toText()).join("");r=[new Be(o)]}var l=new at("mi",r);l.setAttribute("mathvariant","normal");var c=new at("mo",[si("","text")]);return e.parentIsSupSub?new at("mrow",[l,c]):cb([l,c])};ot({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:_e(n),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ob,mathmlBuilder:FE});E("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ds({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Sn(De(e.body,t,!1)):et(["mord"],De(e.body,t,!0),t)},mathmlBuilder(e,t){return ua(e.body,t,!0)}});ot({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,i=t[0];return{type:"overline",mode:r.mode,body:i}},htmlBuilder(e,t){var r=Vt(e.body,t.havingCrampedStyle()),i=Lo("overline-line",t),n=t.fontMetrics().defaultRuleThickness,a=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]});return et(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new at("mo",[new Be("‾")]);r.setAttribute("stretchy","true");var i=new at("mover",[Zt(e.body,t),r]);return i.setAttribute("accent","true"),i}});ot({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"phantom",mode:r.mode,body:_e(i)}},htmlBuilder:(e,t)=>{var r=De(e.body,t.withPhantom(),!1);return Sn(r)},mathmlBuilder:(e,t)=>{var r=Xr(e.body,t);return new at("mphantom",r)}});E("\\hphantom","\\smash{\\phantom{#1}}");ot({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"vphantom",mode:r.mode,body:i}},htmlBuilder:(e,t)=>{var r=et(["inner"],[Vt(e.body,t.withPhantom())]),i=et(["fix"],[]);return et(["mord","rlap"],[r,i],t)},mathmlBuilder:(e,t)=>{var r=Xr(_e(e.body),t),i=new at("mphantom",r),n=new at("mpadded",[i]);return n.setAttribute("width","0px"),n}});ot({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,i=It(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:i,body:n}},htmlBuilder(e,t){var r=Vt(e.body,t),i=he(e.dy,t);return Gt({positionType:"shift",positionData:-i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new at("mpadded",[Zt(e.body,t)]),i=e.dy.number+e.dy.unit;return r.setAttribute("voffset",i),r}});ot({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ot({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:i}=e,n=r[0],a=It(t[0],"size"),s=It(t[1],"size");return{type:"rule",mode:i.mode,shift:n&&It(n,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=et(["mord","rule"],[],t),i=he(e.width,t),n=he(e.height,t),a=e.shift?he(e.shift,t):0;return r.style.borderRightWidth=st(i),r.style.borderTopWidth=st(n),r.style.bottom=st(a),r.width=i,r.height=n+a,r.depth=-a,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=he(e.width,t),i=he(e.height,t),n=e.shift?he(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new at("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",st(r)),s.setAttribute("height",st(i));var o=new at("mpadded",[s]);return n>=0?o.setAttribute("height",st(n)):(o.setAttribute("height",st(n)),o.setAttribute("depth",st(-n))),o.setAttribute("voffset",st(n)),o}});function Pb(e,t,r){for(var i=De(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,a=0;a<i.length;a++){var s=i[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(i[a].classes,t.sizingClasses(r)):i[a].classes[s+1]==="reset-size"+t.size&&(i[a].classes[s+1]="reset-size"+r.size),i[a].height*=n,i[a].depth*=n}return Sn(i)}var r4=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],$E=(e,t)=>{var r=t.havingSize(e.size);return Pb(e.body,r,t)};ot({type:"sizing",names:r4,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:i,parser:n}=e,a=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:r4.indexOf(i)+1,body:a}},htmlBuilder:$E,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),i=Xr(e.body,r),n=new at("mstyle",i);return n.setAttribute("mathsize",st(r.sizeMultiplier)),n}});ot({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:i}=e,n=!1,a=!1,s=r[0]&&It(r[0],"ordgroup");if(s)for(var o="",l=0;l<s.body.length;++l){var c=s.body[l];if(o=sd(c).text,o==="t")n=!0;else if(o==="b")a=!0;else{n=!1,a=!1;break}}else n=!0,a=!0;var h=t[0];return{type:"smash",mode:i.mode,body:h,smashHeight:n,smashDepth:a}},htmlBuilder:(e,t)=>{var r=et([],[Vt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return et(["mord","smash"],[r],t);if(r.children)for(var i=0;i<r.children.length;i++)e.smashHeight&&(r.children[i].height=0),e.smashDepth&&(r.children[i].depth=0);var n=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return et(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new at("mpadded",[Zt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ot({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:i}=e,n=r[0],a=t[0];return{type:"sqrt",mode:i.mode,body:a,index:n}},htmlBuilder(e,t){var r=Vt(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Ao(r,t);var i=t.fontMetrics(),n=i.defaultRuleThickness,a=n;t.style.id<Ft.TEXT.id&&(a=t.fontMetrics().xHeight);var s=n+a/4,o=r.height+r.depth+s+n,{span:l,ruleWidth:c,advanceWidth:h}=vE(o,t),u=l.height-c;u>r.height+r.depth+s&&(s=(s+u-r.height-r.depth)/2);var f=l.height-r.height-s-c;r.style.paddingLeft=st(h);var d=Gt({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:c}]});if(e.index){var g=t.havingStyle(Ft.SCRIPTSCRIPT),p=Vt(e.index,g,t),m=.6*(d.height-d.depth),y=Gt({positionType:"shift",positionData:-m,children:[{type:"elem",elem:p}]}),x=et(["root"],[y]);return et(["mord","sqrt"],[x,d],t)}else return et(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:r,index:i}=e;return i?new at("mroot",[Zt(r,t),Zt(i,t)]):new at("msqrt",[Zt(r,t)])}});var i4={display:Ft.DISPLAY,text:Ft.TEXT,script:Ft.SCRIPT,scriptscript:Ft.SCRIPTSCRIPT};ot({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:i,parser:n}=e,a=n.parseExpression(!0,r),s=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:s,body:a}},htmlBuilder(e,t){var r=i4[e.style],i=t.havingStyle(r).withFont("");return Pb(e.body,i,t)},mathmlBuilder(e,t){var r=i4[e.style],i=t.havingStyle(r),n=Xr(e.body,i),a=new at("mstyle",n),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var IE=function(t,r){var i=t.base;if(i)if(i.type==="op"){var n=i.limits&&(r.style.size===Ft.DISPLAY.size||i.alwaysHandleSupSub);return n?Go:null}else if(i.type==="operatorname"){var a=i.alwaysHandleSupSub&&(r.style.size===Ft.DISPLAY.size||i.limits);return a?Ob:null}else{if(i.type==="accent")return kn(i.base)?Rm:null;if(i.type==="horizBrace"){var s=!t.sub;return s===i.isOver?zb:null}else return null}else return null};ds({type:"supsub",htmlBuilder(e,t){var r=IE(e,t);if(r)return r(e,t);var{base:i,sup:n,sub:a}=e,s=Vt(i,t),o,l,c=t.fontMetrics(),h=0,u=0,f=i&&kn(i);if(n){var d=t.havingStyle(t.style.sup());o=Vt(n,d,t),f||(h=s.height-d.fontMetrics().supDrop*d.sizeMultiplier/t.sizeMultiplier)}if(a){var g=t.havingStyle(t.style.sub());l=Vt(a,g,t),f||(u=s.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var p;t.style===Ft.DISPLAY?p=c.sup1:t.style.cramped?p=c.sup3:p=c.sup2;var m=t.sizeMultiplier,y=st(.5/c.ptPerEm/m),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Hr||k)&&(x=st(-s.italic))}var T;if(o&&l){h=Math.max(h,p,o.depth+.25*c.xHeight),u=Math.max(u,c.sub2);var _=c.defaultRuleThickness,M=4*_;if(h-o.depth-(l.height-u)<M){u=M-(h-o.depth)+l.height;var S=.8*c.xHeight-(h-o.depth);S>0&&(h+=S,u-=S)}var A=[{type:"elem",elem:l,shift:u,marginRight:y,marginLeft:x},{type:"elem",elem:o,shift:-h,marginRight:y}];T=Gt({positionType:"individualShift",children:A})}else if(l){u=Math.max(u,c.sub1,l.height-.8*c.xHeight);var N=[{type:"elem",elem:l,marginLeft:x,marginRight:y}];T=Gt({positionType:"shift",positionData:u,children:N})}else if(o)h=Math.max(h,p,o.depth+.25*c.xHeight),T=Gt({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var z=u1(s,"right")||"mord";return et([z],[s,et(["msupsub"],[T])],t)},mathmlBuilder(e,t){var r=!1,i,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Zt(e.base,t)];e.sub&&a.push(Zt(e.sub,t)),e.sup&&a.push(Zt(e.sup,t));var s;if(r)s=i?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Ft.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Ft.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ft.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ft.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ft.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ft.DISPLAY)?s="mover":s="msup"}return new at(s,a)}});ds({type:"atom",htmlBuilder(e,t){return $m(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new at("mo",[si(e.text,e.mode)]);if(e.family==="bin"){var i=Dm(e,t);i==="bold-italic"&&r.setAttribute("mathvariant",i)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Nb={mi:"italic",mn:"normal",mtext:"normal"};ds({type:"mathord",htmlBuilder(e,t){return id(e,t,"mathord")},mathmlBuilder(e,t){var r=new at("mi",[si(e.text,e.mode,t)]),i=Dm(e,t)||"italic";return i!==Nb[r.type]&&r.setAttribute("mathvariant",i),r}});ds({type:"textord",htmlBuilder(e,t){return id(e,t,"textord")},mathmlBuilder(e,t){var r=si(e.text,e.mode,t),i=Dm(e,t)||"normal",n;return e.mode==="text"?n=new at("mtext",[r]):/[0-9]/.test(e.text)?n=new at("mn",[r]):e.text==="\\prime"?n=new at("mo",[r]):n=new at("mi",[r]),i!==Nb[n.type]&&n.setAttribute("mathvariant",i),n}});var zf={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Df={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ds({type:"spacing",htmlBuilder(e,t){if(Df.hasOwnProperty(e.text)){var r=Df[e.text].className||"";if(e.mode==="text"){var i=id(e,t,"textord");return i.classes.push(r),i}else return et(["mspace",r],[$m(e.text,e.mode,t)],t)}else{if(zf.hasOwnProperty(e.text))return et(["mspace",zf[e.text]],[],t);throw new rt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Df.hasOwnProperty(e.text))r=new at("mtext",[new Be(" ")]);else{if(zf.hasOwnProperty(e.text))return new at("mspace");throw new rt('Unknown type of space "'+e.text+'"')}return r}});var n4=()=>{var e=new at("mtd",[]);return e.setAttribute("width","50%"),e};ds({type:"tag",mathmlBuilder(e,t){var r=new at("mtable",[new at("mtr",[n4(),new at("mtd",[ua(e.body,t)]),n4(),new at("mtd",[ua(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var a4={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},s4={"\\textbf":"textbf","\\textmd":"textmd"},zE={"\\textit":"textit","\\textup":"textup"},o4=(e,t)=>{var r=e.font;if(r){if(a4[r])return t.withTextFontFamily(a4[r]);if(s4[r])return t.withTextFontWeight(s4[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(zE[r])};ot({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];return{type:"text",mode:r.mode,body:_e(n),font:i}},htmlBuilder(e,t){var r=o4(e,t),i=De(e.body,r,!0);return et(["mord","text"],i,r)},mathmlBuilder(e,t){var r=o4(e,t);return ua(e.body,r)}});ot({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Vt(e.body,t),i=Lo("underline-line",t),n=t.fontMetrics().defaultRuleThickness,a=Gt({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:r}]});return et(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new at("mo",[new Be("‾")]);r.setAttribute("stretchy","true");var i=new at("munder",[Zt(e.body,t),r]);return i.setAttribute("accentunder","true"),i}});ot({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Vt(e.body,t),i=t.fontMetrics().axisHeight,n=.5*(r.height-i-(r.depth+i));return Gt({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new at("mpadded",[Zt(e.body,t)],["vcenter"]);return new at("mrow",[r])}});ot({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new rt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=l4(e),i=[],n=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),i.push(ur(s,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return et(["mord","text"].concat(n.sizingClasses(t)),ib(i),n)},mathmlBuilder(e,t){var r=new Be(l4(e)),i=new at("mtext",[r]);return i.setAttribute("mathvariant","monospace"),i}});var l4=e=>e.body.replace(/ /g,e.star?"␣":" "),Yn=ob,jb=`[ \r
|
|
366
|
+
]`,DE="\\\\[a-zA-Z@]+",RE="\\\\[^\uD800-\uDFFF]",OE="("+DE+")"+jb+"*",PE=`\\\\(
|
|
367
|
+
|[ \r ]+
|
|
368
|
+
?)[ \r ]*`,m1="[̀-ͯ]",NE=new RegExp(m1+"+$"),jE="("+jb+"+)|"+(PE+"|")+"([!-\\[\\]-‧-豈-]"+(m1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(m1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+OE)+("|"+RE+")");class c4{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(jE,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new jr("EOF",new Tr(this,r,r));var i=this.tokenRegex.exec(t);if(i===null||i.index!==r)throw new rt("Unexpected character: '"+t[r]+"'",new jr(t[r],new Tr(this,r,r+1)));var n=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[n]===14){var a=t.indexOf(`
|
|
369
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new jr(n,new Tr(this,r,this.tokenRegex.lastIndex))}}class qE{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new rt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,i){if(i===void 0&&(i=!1),i){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var WE=Eb;E("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});E("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});E("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});E("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});E("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});E("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");E("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var h4={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};E("\\char",function(e){var t=e.popToken(),r,i=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new rt("\\char` missing argument");i=t.text.charCodeAt(0)}else r=10;if(r){if(i=h4[t.text],i==null||i>=r)throw new rt("Invalid base-"+r+" digit "+t.text);for(var n;(n=h4[e.future().text])!=null&&n<r;)i*=r,i+=n,e.popToken()}return"\\@char{"+i+"}"});var jm=(e,t,r,i)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new rt("\\newcommand's first argument must be a macro name");var a=n[0].text,s=e.isDefined(a);if(s&&!t)throw new rt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new rt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new rt("Invalid number of arguments: "+l);o=parseInt(l),n=e.consumeArg().tokens}return s&&i||e.macros.set(a,{tokens:n,numArgs:o}),""};E("\\newcommand",e=>jm(e,!1,!0,!1));E("\\renewcommand",e=>jm(e,!0,!1,!1));E("\\providecommand",e=>jm(e,!0,!0,!0));E("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});E("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});E("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Yn[r],se.math[r],se.text[r]),""});E("\\bgroup","{");E("\\egroup","}");E("~","\\nobreakspace");E("\\lq","`");E("\\rq","'");E("\\aa","\\r a");E("\\AA","\\r A");E("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");E("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");E("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");E("ℬ","\\mathscr{B}");E("ℰ","\\mathscr{E}");E("ℱ","\\mathscr{F}");E("ℋ","\\mathscr{H}");E("ℐ","\\mathscr{I}");E("ℒ","\\mathscr{L}");E("ℳ","\\mathscr{M}");E("ℛ","\\mathscr{R}");E("ℭ","\\mathfrak{C}");E("ℌ","\\mathfrak{H}");E("ℨ","\\mathfrak{Z}");E("\\Bbbk","\\Bbb{k}");E("\\llap","\\mathllap{\\textrm{#1}}");E("\\rlap","\\mathrlap{\\textrm{#1}}");E("\\clap","\\mathclap{\\textrm{#1}}");E("\\mathstrut","\\vphantom{(}");E("\\underbar","\\underline{\\text{#1}}");E("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');E("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");E("\\ne","\\neq");E("≠","\\neq");E("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");E("∉","\\notin");E("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");E("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");E("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");E("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");E("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");E("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");E("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");E("⟂","\\perp");E("‼","\\mathclose{!\\mkern-0.8mu!}");E("∌","\\notni");E("⌜","\\ulcorner");E("⌝","\\urcorner");E("⌞","\\llcorner");E("⌟","\\lrcorner");E("©","\\copyright");E("®","\\textregistered");E("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');E("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');E("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');E("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');E("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");E("⋮","\\vdots");E("\\varGamma","\\mathit{\\Gamma}");E("\\varDelta","\\mathit{\\Delta}");E("\\varTheta","\\mathit{\\Theta}");E("\\varLambda","\\mathit{\\Lambda}");E("\\varXi","\\mathit{\\Xi}");E("\\varPi","\\mathit{\\Pi}");E("\\varSigma","\\mathit{\\Sigma}");E("\\varUpsilon","\\mathit{\\Upsilon}");E("\\varPhi","\\mathit{\\Phi}");E("\\varPsi","\\mathit{\\Psi}");E("\\varOmega","\\mathit{\\Omega}");E("\\substack","\\begin{subarray}{c}#1\\end{subarray}");E("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");E("\\boxed","\\fbox{$\\displaystyle{#1}$}");E("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");E("\\implies","\\DOTSB\\;\\Longrightarrow\\;");E("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");E("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");E("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var u4={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},HE=new Set(["bin","rel"]);E("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in u4?t=u4[r]:(r.slice(0,4)==="\\not"||r in se.math&&HE.has(se.math[r].group))&&(t="\\dotsb"),t});var qm={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};E("\\dotso",function(e){var t=e.future().text;return t in qm?"\\ldots\\,":"\\ldots"});E("\\dotsc",function(e){var t=e.future().text;return t in qm&&t!==","?"\\ldots\\,":"\\ldots"});E("\\cdots",function(e){var t=e.future().text;return t in qm?"\\@cdots\\,":"\\@cdots"});E("\\dotsb","\\cdots");E("\\dotsm","\\cdots");E("\\dotsi","\\!\\cdots");E("\\dotsx","\\ldots\\,");E("\\DOTSI","\\relax");E("\\DOTSB","\\relax");E("\\DOTSX","\\relax");E("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");E("\\,","\\tmspace+{3mu}{.1667em}");E("\\thinspace","\\,");E("\\>","\\mskip{4mu}");E("\\:","\\tmspace+{4mu}{.2222em}");E("\\medspace","\\:");E("\\;","\\tmspace+{5mu}{.2777em}");E("\\thickspace","\\;");E("\\!","\\tmspace-{3mu}{.1667em}");E("\\negthinspace","\\!");E("\\negmedspace","\\tmspace-{4mu}{.2222em}");E("\\negthickspace","\\tmspace-{5mu}{.277em}");E("\\enspace","\\kern.5em ");E("\\enskip","\\hskip.5em\\relax");E("\\quad","\\hskip1em\\relax");E("\\qquad","\\hskip2em\\relax");E("\\tag","\\@ifstar\\tag@literal\\tag@paren");E("\\tag@paren","\\tag@literal{({#1})}");E("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new rt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});E("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");E("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");E("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");E("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");E("\\newline","\\\\\\relax");E("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var qb=st(Ri["Main-Regular"][84][1]-.7*Ri["Main-Regular"][65][1]);E("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+qb+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");E("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+qb+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");E("\\hspace","\\@ifstar\\@hspacer\\@hspace");E("\\@hspace","\\hskip #1\\relax");E("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");E("\\ordinarycolon",":");E("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");E("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');E("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');E("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');E("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');E("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');E("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');E("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');E("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');E("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');E("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');E("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');E("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');E("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');E("∷","\\dblcolon");E("∹","\\eqcolon");E("≔","\\coloneqq");E("≕","\\eqqcolon");E("⩴","\\Coloneqq");E("\\ratio","\\vcentcolon");E("\\coloncolon","\\dblcolon");E("\\colonequals","\\coloneqq");E("\\coloncolonequals","\\Coloneqq");E("\\equalscolon","\\eqqcolon");E("\\equalscoloncolon","\\Eqqcolon");E("\\colonminus","\\coloneq");E("\\coloncolonminus","\\Coloneq");E("\\minuscolon","\\eqcolon");E("\\minuscoloncolon","\\Eqcolon");E("\\coloncolonapprox","\\Colonapprox");E("\\coloncolonsim","\\Colonsim");E("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");E("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");E("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");E("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");E("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");E("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");E("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");E("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");E("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");E("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");E("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");E("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");E("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");E("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");E("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");E("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");E("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");E("\\nleqq","\\html@mathml{\\@nleqq}{≰}");E("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");E("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");E("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");E("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");E("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");E("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");E("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");E("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");E("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");E("\\imath","\\html@mathml{\\@imath}{ı}");E("\\jmath","\\html@mathml{\\@jmath}{ȷ}");E("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");E("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");E("⟦","\\llbracket");E("⟧","\\rrbracket");E("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");E("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");E("⦃","\\lBrace");E("⦄","\\rBrace");E("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");E("⦵","\\minuso");E("\\darr","\\downarrow");E("\\dArr","\\Downarrow");E("\\Darr","\\Downarrow");E("\\lang","\\langle");E("\\rang","\\rangle");E("\\uarr","\\uparrow");E("\\uArr","\\Uparrow");E("\\Uarr","\\Uparrow");E("\\N","\\mathbb{N}");E("\\R","\\mathbb{R}");E("\\Z","\\mathbb{Z}");E("\\alef","\\aleph");E("\\alefsym","\\aleph");E("\\Alpha","\\mathrm{A}");E("\\Beta","\\mathrm{B}");E("\\bull","\\bullet");E("\\Chi","\\mathrm{X}");E("\\clubs","\\clubsuit");E("\\cnums","\\mathbb{C}");E("\\Complex","\\mathbb{C}");E("\\Dagger","\\ddagger");E("\\diamonds","\\diamondsuit");E("\\empty","\\emptyset");E("\\Epsilon","\\mathrm{E}");E("\\Eta","\\mathrm{H}");E("\\exist","\\exists");E("\\harr","\\leftrightarrow");E("\\hArr","\\Leftrightarrow");E("\\Harr","\\Leftrightarrow");E("\\hearts","\\heartsuit");E("\\image","\\Im");E("\\infin","\\infty");E("\\Iota","\\mathrm{I}");E("\\isin","\\in");E("\\Kappa","\\mathrm{K}");E("\\larr","\\leftarrow");E("\\lArr","\\Leftarrow");E("\\Larr","\\Leftarrow");E("\\lrarr","\\leftrightarrow");E("\\lrArr","\\Leftrightarrow");E("\\Lrarr","\\Leftrightarrow");E("\\Mu","\\mathrm{M}");E("\\natnums","\\mathbb{N}");E("\\Nu","\\mathrm{N}");E("\\Omicron","\\mathrm{O}");E("\\plusmn","\\pm");E("\\rarr","\\rightarrow");E("\\rArr","\\Rightarrow");E("\\Rarr","\\Rightarrow");E("\\real","\\Re");E("\\reals","\\mathbb{R}");E("\\Reals","\\mathbb{R}");E("\\Rho","\\mathrm{P}");E("\\sdot","\\cdot");E("\\sect","\\S");E("\\spades","\\spadesuit");E("\\sub","\\subset");E("\\sube","\\subseteq");E("\\supe","\\supseteq");E("\\Tau","\\mathrm{T}");E("\\thetasym","\\vartheta");E("\\weierp","\\wp");E("\\Zeta","\\mathrm{Z}");E("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");E("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");E("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");E("\\bra","\\mathinner{\\langle{#1}|}");E("\\ket","\\mathinner{|{#1}\\rangle}");E("\\braket","\\mathinner{\\langle{#1}\\rangle}");E("\\Bra","\\left\\langle#1\\right|");E("\\Ket","\\left|#1\\right\\rangle");var Wb=e=>t=>{var r=t.consumeArg().tokens,i=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=u=>f=>{e&&(f.macros.set("|",s),n.length&&f.macros.set("\\|",o));var d=u;if(!u&&n.length){var g=f.future();g.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?n:i,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,h=t.expandTokens([...a,...c,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};E("\\bra@ket",Wb(!1));E("\\bra@set",Wb(!0));E("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");E("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");E("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");E("\\angln","{\\angl n}");E("\\blue","\\textcolor{##6495ed}{#1}");E("\\orange","\\textcolor{##ffa500}{#1}");E("\\pink","\\textcolor{##ff00af}{#1}");E("\\red","\\textcolor{##df0030}{#1}");E("\\green","\\textcolor{##28ae7b}{#1}");E("\\gray","\\textcolor{gray}{#1}");E("\\purple","\\textcolor{##9d38bd}{#1}");E("\\blueA","\\textcolor{##ccfaff}{#1}");E("\\blueB","\\textcolor{##80f6ff}{#1}");E("\\blueC","\\textcolor{##63d9ea}{#1}");E("\\blueD","\\textcolor{##11accd}{#1}");E("\\blueE","\\textcolor{##0c7f99}{#1}");E("\\tealA","\\textcolor{##94fff5}{#1}");E("\\tealB","\\textcolor{##26edd5}{#1}");E("\\tealC","\\textcolor{##01d1c1}{#1}");E("\\tealD","\\textcolor{##01a995}{#1}");E("\\tealE","\\textcolor{##208170}{#1}");E("\\greenA","\\textcolor{##b6ffb0}{#1}");E("\\greenB","\\textcolor{##8af281}{#1}");E("\\greenC","\\textcolor{##74cf70}{#1}");E("\\greenD","\\textcolor{##1fab54}{#1}");E("\\greenE","\\textcolor{##0d923f}{#1}");E("\\goldA","\\textcolor{##ffd0a9}{#1}");E("\\goldB","\\textcolor{##ffbb71}{#1}");E("\\goldC","\\textcolor{##ff9c39}{#1}");E("\\goldD","\\textcolor{##e07d10}{#1}");E("\\goldE","\\textcolor{##a75a05}{#1}");E("\\redA","\\textcolor{##fca9a9}{#1}");E("\\redB","\\textcolor{##ff8482}{#1}");E("\\redC","\\textcolor{##f9685d}{#1}");E("\\redD","\\textcolor{##e84d39}{#1}");E("\\redE","\\textcolor{##bc2612}{#1}");E("\\maroonA","\\textcolor{##ffbde0}{#1}");E("\\maroonB","\\textcolor{##ff92c6}{#1}");E("\\maroonC","\\textcolor{##ed5fa6}{#1}");E("\\maroonD","\\textcolor{##ca337c}{#1}");E("\\maroonE","\\textcolor{##9e034e}{#1}");E("\\purpleA","\\textcolor{##ddd7ff}{#1}");E("\\purpleB","\\textcolor{##c6b9fc}{#1}");E("\\purpleC","\\textcolor{##aa87ff}{#1}");E("\\purpleD","\\textcolor{##7854ab}{#1}");E("\\purpleE","\\textcolor{##543b78}{#1}");E("\\mintA","\\textcolor{##f5f9e8}{#1}");E("\\mintB","\\textcolor{##edf2df}{#1}");E("\\mintC","\\textcolor{##e0e5cc}{#1}");E("\\grayA","\\textcolor{##f6f7f7}{#1}");E("\\grayB","\\textcolor{##f0f1f2}{#1}");E("\\grayC","\\textcolor{##e3e5e6}{#1}");E("\\grayD","\\textcolor{##d6d8da}{#1}");E("\\grayE","\\textcolor{##babec2}{#1}");E("\\grayF","\\textcolor{##888d93}{#1}");E("\\grayG","\\textcolor{##626569}{#1}");E("\\grayH","\\textcolor{##3b3e40}{#1}");E("\\grayI","\\textcolor{##21242c}{#1}");E("\\kaBlue","\\textcolor{##314453}{#1}");E("\\kaGreen","\\textcolor{##71B307}{#1}");var Hb={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class UE{constructor(t,r,i){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new qE(WE,r.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new c4(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,i,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:r,end:i}=this.consumeArg());return this.pushToken(new jr("EOF",i.loc)),this.pushTokens(n),new jr("",Tr.range(r,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],i=t&&t.length>0;i||this.consumeSpaces();var n=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new rt("Extra }",a)}else if(a.text==="EOF")throw new rt("Unexpected end of input in a macro argument, expected '"+(t&&i?t[o]:"}")+"'",a);if(t&&i)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){r.splice(-o,o);break}}else o=0}while(s!==0||i);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new rt("The length of delimiters doesn't match the number of args!");for(var i=r[0],n=0;n<i.length;n++){var a=this.popToken();if(i[n]!==a.text)throw new rt("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new rt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),i=r.text,n=r.noexpand?null:this._getExpansion(i);if(n==null||t&&n.unexpandable){if(t&&n==null&&i[0]==="\\"&&!this.isDefined(i))throw new rt("Undefined control sequence: "+i);return this.pushToken(r),!1}this.countExpansion(1);var a=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new rt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new rt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new jr(t)]):void 0}expandTokens(t){var r=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),r.push(n)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(i=>i.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var a=0;if(n.includes("#"))for(var s=n.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new c4(n,this.settings),l=[],c=o.lex();c.text!=="EOF";)l.push(c),c=o.lex();l.reverse();var h={tokens:l,numArgs:a};return h}return n}isDefined(t){return this.macros.has(t)||Yn.hasOwnProperty(t)||se.math.hasOwnProperty(t)||se.text.hasOwnProperty(t)||Hb.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Yn.hasOwnProperty(t)&&!Yn[t].primitive}}var d4=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$h=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Rf={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},f4={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class fd{constructor(t,r){this.mode="math",this.gullet=new UE(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new rt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new jr("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,i}parseExpression(t,r){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(fd.endOfExpression.has(n.text)||r&&n.text===r||t&&Yn[n.text]&&Yn[n.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;i.push(a)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var r=-1,i,n=0;n<t.length;n++){var a=t[n];if(a.type==="infix"){if(r!==-1)throw new rt("only one infix operator per group",a.token);r=n,i=a.replaceWith}}if(r!==-1&&i){var s,o,l=t.slice(0,r),c=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},c.length===1&&c[0].type==="ordgroup"?o=c[0]:o={type:"ordgroup",mode:this.mode,body:c};var h;return i==="\\\\abovefrac"?h=this.callFunction(i,[s,t[r],o],[]):h=this.callFunction(i,[s,o],[]),[h]}else return t}handleSupSubscript(t){var r=this.fetch(),i=r.text;this.consume(),this.consumeSpaces();var n;do{var a;n=this.parseGroup(t)}while(((a=n)==null?void 0:a.type)==="internal");if(!n)throw new rt("Expected group after '"+i+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],i=0;i<t.length;i++)r.push({type:"textord",mode:"text",text:t[i]});var n={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var i,n;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new rt("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(i)throw new rt("Double superscript",a);i=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(n)throw new rt("Double subscript",a);n=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(i)throw new rt("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},l=[o];for(this.consume();this.fetch().text==="'";)l.push(o),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:l}}else if($h[a.text]){var c=d4.test(a.text),h=[];for(h.push(new jr($h[a.text])),this.consume();;){var u=this.fetch().text;if(!$h[u]||d4.test(u)!==c)break;h.unshift(new jr($h[u])),this.consume()}var f=this.subparse(h);c?n={type:"ordgroup",mode:"math",body:f}:i={type:"ordgroup",mode:"math",body:f}}else break}return i||n?{type:"supsub",mode:this.mode,base:r,sup:i,sub:n}:r}parseFunction(t,r){var i=this.fetch(),n=i.text,a=Yn[n];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new rt("Got function '"+n+"' with no arguments"+(r?" as "+r:""),i);if(this.mode==="text"&&!a.allowedInText)throw new rt("Can't use function '"+n+"' in text mode",i);if(this.mode==="math"&&a.allowedInMath===!1)throw new rt("Can't use function '"+n+"' in math mode",i);var{args:s,optArgs:o}=this.parseArguments(n,a);return this.callFunction(n,s,o,i,t)}callFunction(t,r,i,n,a){var s={funcName:t,parser:this,token:n,breakOnTokenText:a},o=Yn[t];if(o&&o.handler)return o.handler(s,r,i);throw new rt("No function handler for "+t)}parseArguments(t,r){var i=r.numArgs+r.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var n=[],a=[],s=0;s<i;s++){var o=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",o,l);if(l)a.push(c);else if(c!=null)n.push(c);else throw new rt("Null argument, please report this as a bug")}return{args:n,optArgs:a}}parseGroupOfType(t,r,i){switch(r){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,r);case"hbox":{var n=this.parseArgumentGroup(i,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",i);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(i)throw new rt("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new rt("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new rt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var i=this.gullet.scanArgument(r);if(i==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),i.text=n,i}parseRegexGroup(t,r){for(var i=this.fetch(),n=i,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)n=s,a+=n.text,this.consume();if(a==="")throw new rt("Invalid "+r+": '"+i.text+"'",i);return i.range(n,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!i)throw new rt("Invalid color: '"+r.text+"'",r);var n=i[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",i=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new rt("Invalid size: '"+r.text+"'",r);var a={number:+(n[1]+n[2]),unit:n[3]};if(!K6(a))throw new rt("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var i=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,r){var i=this.gullet.scanArgument(t);if(i==null)return null;var n=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:i.loc,body:a};return r&&this.switchMode(n),s}parseGroup(t,r){var i=this.fetch(),n=i.text,a;if(n==="{"||n==="\\begingroup"){this.consume();var s=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:Tr.range(i,l),body:o,semisimple:n==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&n[0]==="\\"&&!Hb.hasOwnProperty(n)){if(this.settings.throwOnError)throw new rt("Undefined control sequence: "+n,i);a=this.formatUnsupportedCmd(n),this.consume()}return a}formLigatures(t){for(var r=t.length-1,i=0;i<r;++i){var n=t[i];if(n.type==="textord"){var a=n.text,s=t[i+1];if(!(!s||s.type!=="textord")){if(a==="-"&&s.text==="-"){var o=t[i+2];i+1<r&&o&&o.type==="textord"&&o.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Tr.range(n,o),text:"---"}),r-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Tr.range(n,s),text:"--"}),r-=1)}(a==="'"||a==="`")&&s.text===a&&(t.splice(i,2,{type:"textord",mode:"text",loc:Tr.range(n,s),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var i=r.slice(5),n=i.charAt(0)==="*";if(n&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new rt(`\\verb assertion failed --
|
|
370
|
+
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:n}}f4.hasOwnProperty(r[0])&&!se[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=f4[r[0]]+r.slice(1));var a=NE.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(se[this.mode][r]){this.settings.strict&&this.mode==="math"&&o1.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=se[this.mode][r].group,l=Tr.range(t),c;if(jA.hasOwnProperty(o)){var h=o;c={type:"atom",mode:this.mode,family:h,loc:l,text:r}}else c={type:o,mode:this.mode,loc:l,text:r};s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Q6(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Tr.range(t),text:r};else return null;if(this.consume(),a)for(var u=0;u<a[0].length;u++){var f=a[0][u];if(!Rf[f])throw new rt("Unknown accent ' "+f+"'",t);var d=Rf[f][this.mode]||Rf[f].text;if(!d)throw new rt("Accent "+f+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:Tr.range(t),label:d,isStretchy:!1,isShifty:!0,base:s}}return s}}fd.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Wm=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new fd(t,r);delete i.gullet.macros.current["\\df@tag"];var n=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new rt("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:i.subparse([new jr("\\df@tag")])}]}return n},Hm=function(t,r,i){r.textContent="";var n=pd(t,i).toNode();r.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Hm=function(){throw new rt("KaTeX doesn't work in quirks mode.")});var Ub=function(t,r){var i=pd(t,r).toMarkup();return i},Yb=function(t,r){var i=new Em(r);return Wm(t,i)},Gb=function(t,r,i){if(i.throwOnError||!(t instanceof rt))throw t;var n=et(["katex-error"],[new Hr(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+i.errorColor),n},pd=function(t,r){var i=new Em(r);try{var n=Wm(t,i);return iE(n,t,i)}catch(a){return Gb(a,t,i)}},Vb=function(t,r){var i=new Em(r);try{var n=Wm(t,i);return nE(n,t,i)}catch(a){return Gb(a,t,i)}},Xb="0.16.45",Qb={Span:Uo,Anchor:ed,SymbolNode:Hr,SvgNode:xn,PathNode:ca,LineNode:s1},Um={version:Xb,render:Hm,renderToString:Ub,ParseError:rt,SETTINGS_SCHEMA:Q0,__parse:Yb,__renderToDomTree:pd,__renderToHTMLTree:Vb,__setFontMetrics:eb,__defineSymbol:v,__defineFunction:ot,__defineMacro:E,__domTree:Qb};const YE=Object.freeze(Object.defineProperty({__proto__:null,ParseError:rt,SETTINGS_SCHEMA:Q0,__defineFunction:ot,__defineMacro:E,__defineSymbol:v,__domTree:Qb,__parse:Yb,__renderToDomTree:pd,__renderToHTMLTree:Vb,__setFontMetrics:eb,default:Um,get render(){return Hm},renderToString:Ub,version:Xb},Symbol.toStringTag,{value:"Module"})),GE="modulepreload",VE=function(e){return"/"+e},p4={},Pt=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));n=Promise.allSettled(r.map(l=>{if(l=VE(l),l in p4)return;p4[l]=!0;const c=l.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${h}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":GE,c||(u.as="script"),u.crossOrigin="",u.href=l,o&&u.setAttribute("nonce",o),document.head.appendChild(u),c)return new Promise((f,d)=>{u.addEventListener("load",f),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return n.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})};var Kb={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(R9,function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",u="month",f="quarter",d="year",g="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,x={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(Y){var q=["th","st","nd","rd"],R=Y%100;return"["+Y+(q[(R-20)%10]||q[R]||q[0])+"]"}},k=function(Y,q,R){var H=String(Y);return!H||H.length>=q?Y:""+Array(q+1-H.length).join(R)+Y},T={s:k,z:function(Y){var q=-Y.utcOffset(),R=Math.abs(q),H=Math.floor(R/60),F=R%60;return(q<=0?"+":"-")+k(H,2,"0")+":"+k(F,2,"0")},m:function Y(q,R){if(q.date()<R.date())return-Y(R,q);var H=12*(R.year()-q.year())+(R.month()-q.month()),F=q.clone().add(H,u),V=R-F<0,K=q.clone().add(H+(V?-1:1),u);return+(-(H+(R-F)/(V?F-K:K-F))||0)},a:function(Y){return Y<0?Math.ceil(Y)||0:Math.floor(Y)},p:function(Y){return{M:u,y:d,w:h,d:c,D:g,h:l,m:o,s,ms:a,Q:f}[Y]||String(Y||"").toLowerCase().replace(/s$/,"")},u:function(Y){return Y===void 0}},_="en",M={};M[_]=x;var S="$isDayjsObject",A=function(Y){return Y instanceof U||!(!Y||!Y[S])},N=function Y(q,R,H){var F;if(!q)return _;if(typeof q=="string"){var V=q.toLowerCase();M[V]&&(F=V),R&&(M[V]=R,F=V);var K=q.split("-");if(!F&&K.length>1)return Y(K[0])}else{var nt=q.name;M[nt]=q,F=nt}return!H&&F&&(_=F),F||!H&&_},z=function(Y,q){if(A(Y))return Y.clone();var R=typeof q=="object"?q:{};return R.date=Y,R.args=arguments,new U(R)},P=T;P.l=N,P.i=A,P.w=function(Y,q){return z(Y,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var U=function(){function Y(R){this.$L=N(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[S]=!0}var q=Y.prototype;return q.parse=function(R){this.$d=function(H){var F=H.date,V=H.utc;if(F===null)return new Date(NaN);if(P.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var K=F.match(m);if(K){var nt=K[2]-1||0,dt=(K[7]||"0").substring(0,3);return V?new Date(Date.UTC(K[1],nt,K[3]||1,K[4]||0,K[5]||0,K[6]||0,dt)):new Date(K[1],nt,K[3]||1,K[4]||0,K[5]||0,K[6]||0,dt)}}return new Date(F)}(R),this.init()},q.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},q.$utils=function(){return P},q.isValid=function(){return this.$d.toString()!==p},q.isSame=function(R,H){var F=z(R);return this.startOf(H)<=F&&F<=this.endOf(H)},q.isAfter=function(R,H){return z(R)<this.startOf(H)},q.isBefore=function(R,H){return this.endOf(H)<z(R)},q.$g=function(R,H,F){return P.u(R)?this[H]:this.set(F,R)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(R,H){var F=this,V=!!P.u(H)||H,K=P.p(R),nt=function(ke,ft){var At=P.w(F.$u?Date.UTC(F.$y,ft,ke):new Date(F.$y,ft,ke),F);return V?At:At.endOf(c)},dt=function(ke,ft){return P.w(F.toDate()[ke].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(ft)),F)},ht=this.$W,_t=this.$M,vt=this.$D,Rt="set"+(this.$u?"UTC":"");switch(K){case d:return V?nt(1,0):nt(31,11);case u:return V?nt(1,_t):nt(0,_t+1);case h:var jt=this.$locale().weekStart||0,pe=(ht<jt?ht+7:ht)-jt;return nt(V?vt-pe:vt+(6-pe),_t);case c:case g:return dt(Rt+"Hours",0);case l:return dt(Rt+"Minutes",1);case o:return dt(Rt+"Seconds",2);case s:return dt(Rt+"Milliseconds",3);default:return this.clone()}},q.endOf=function(R){return this.startOf(R,!1)},q.$set=function(R,H){var F,V=P.p(R),K="set"+(this.$u?"UTC":""),nt=(F={},F[c]=K+"Date",F[g]=K+"Date",F[u]=K+"Month",F[d]=K+"FullYear",F[l]=K+"Hours",F[o]=K+"Minutes",F[s]=K+"Seconds",F[a]=K+"Milliseconds",F)[V],dt=V===c?this.$D+(H-this.$W):H;if(V===u||V===d){var ht=this.clone().set(g,1);ht.$d[nt](dt),ht.init(),this.$d=ht.set(g,Math.min(this.$D,ht.daysInMonth())).$d}else nt&&this.$d[nt](dt);return this.init(),this},q.set=function(R,H){return this.clone().$set(R,H)},q.get=function(R){return this[P.p(R)]()},q.add=function(R,H){var F,V=this;R=Number(R);var K=P.p(H),nt=function(_t){var vt=z(V);return P.w(vt.date(vt.date()+Math.round(_t*R)),V)};if(K===u)return this.set(u,this.$M+R);if(K===d)return this.set(d,this.$y+R);if(K===c)return nt(1);if(K===h)return nt(7);var dt=(F={},F[o]=i,F[l]=n,F[s]=r,F)[K]||1,ht=this.$d.getTime()+R*dt;return P.w(ht,this)},q.subtract=function(R,H){return this.add(-1*R,H)},q.format=function(R){var H=this,F=this.$locale();if(!this.isValid())return F.invalidDate||p;var V=R||"YYYY-MM-DDTHH:mm:ssZ",K=P.z(this),nt=this.$H,dt=this.$m,ht=this.$M,_t=F.weekdays,vt=F.months,Rt=F.meridiem,jt=function(ft,At,Ht,Ut){return ft&&(ft[At]||ft(H,V))||Ht[At].slice(0,Ut)},pe=function(ft){return P.s(nt%12||12,ft,"0")},ke=Rt||function(ft,At,Ht){var Ut=ft<12?"AM":"PM";return Ht?Ut.toLowerCase():Ut};return V.replace(y,function(ft,At){return At||function(Ht){switch(Ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return P.s(H.$y,4,"0");case"M":return ht+1;case"MM":return P.s(ht+1,2,"0");case"MMM":return jt(F.monthsShort,ht,vt,3);case"MMMM":return jt(vt,ht);case"D":return H.$D;case"DD":return P.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return jt(F.weekdaysMin,H.$W,_t,2);case"ddd":return jt(F.weekdaysShort,H.$W,_t,3);case"dddd":return _t[H.$W];case"H":return String(nt);case"HH":return P.s(nt,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return ke(nt,dt,!0);case"A":return ke(nt,dt,!1);case"m":return String(dt);case"mm":return P.s(dt,2,"0");case"s":return String(H.$s);case"ss":return P.s(H.$s,2,"0");case"SSS":return P.s(H.$ms,3,"0");case"Z":return K}return null}(ft)||K.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(R,H,F){var V,K=this,nt=P.p(H),dt=z(R),ht=(dt.utcOffset()-this.utcOffset())*i,_t=this-dt,vt=function(){return P.m(K,dt)};switch(nt){case d:V=vt()/12;break;case u:V=vt();break;case f:V=vt()/3;break;case h:V=(_t-ht)/6048e5;break;case c:V=(_t-ht)/864e5;break;case l:V=_t/n;break;case o:V=_t/i;break;case s:V=_t/r;break;default:V=_t}return F?V:P.a(V)},q.daysInMonth=function(){return this.endOf(u).$D},q.$locale=function(){return M[this.$L]},q.locale=function(R,H){if(!R)return this.$L;var F=this.clone(),V=N(R,H,!0);return V&&(F.$L=V),F},q.clone=function(){return P.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},Y}(),Q=U.prototype;return z.prototype=Q,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",u],["$y",d],["$D",g]].forEach(function(Y){Q[Y[1]]=function(q){return this.$g(q,Y[0],Y[1])}}),z.extend=function(Y,q){return Y.$i||(Y(q,U,z),Y.$i=!0),z},z.locale=N,z.isDayjs=A,z.unix=function(Y){return z(1e3*Y)},z.en=M[_],z.Ls=M,z.p={},z})})(Kb);var XE=Kb.exports;const QE=p5(XE);var Zb=Object.defineProperty,C=(e,t)=>Zb(e,"name",{value:t,configurable:!0}),KE=(e,t)=>{for(var r in t)Zb(e,r,{get:t[r],enumerable:!0})},Ji={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Z={trace:C((...e)=>{},"trace"),debug:C((...e)=>{},"debug"),info:C((...e)=>{},"info"),warn:C((...e)=>{},"warn"),error:C((...e)=>{},"error"),fatal:C((...e)=>{},"fatal")},Ym=C(function(e="fatal"){let t=Ji.fatal;typeof e=="string"?e.toLowerCase()in Ji&&(t=Ji[e]):typeof e=="number"&&(t=e),Z.trace=()=>{},Z.debug=()=>{},Z.info=()=>{},Z.warn=()=>{},Z.error=()=>{},Z.fatal=()=>{},t<=Ji.fatal&&(Z.fatal=console.error?console.error.bind(console,Zr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Zr("FATAL"))),t<=Ji.error&&(Z.error=console.error?console.error.bind(console,Zr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Zr("ERROR"))),t<=Ji.warn&&(Z.warn=console.warn?console.warn.bind(console,Zr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Zr("WARN"))),t<=Ji.info&&(Z.info=console.info?console.info.bind(console,Zr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Zr("INFO"))),t<=Ji.debug&&(Z.debug=console.debug?console.debug.bind(console,Zr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Zr("DEBUG"))),t<=Ji.trace&&(Z.trace=console.debug?console.debug.bind(console,Zr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Zr("TRACE")))},"setLogLevel"),Zr=C(e=>`%c${QE().format("ss.SSS")} : ${e} : `,"format");const h0={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 h0.hue2rgb(a,n,e+1/3)*255;case"g":return h0.hue2rgb(a,n,e)*255;case"b":return h0.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}}},ZE={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},JE={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Mt={channel:h0,lang:ZE,unit:JE},Dn={};for(let e=0;e<=255;e++)Dn[e]=Mt.unit.dec2hex(e);const tr={ALL:0,RGB:1,HSL:2};class tM{constructor(){this.type=tr.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=tr.ALL}is(t){return this.type===t}}class eM{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new tM}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=tr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=Mt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Mt.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=Mt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=Mt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Mt.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=Mt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(tr.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(tr.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(tr.HSL)&&r!==void 0?r:(this._ensureHSL(),Mt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(tr.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(tr.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(tr.RGB)&&r!==void 0?r:(this._ensureRGB(),Mt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(tr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(tr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(tr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(tr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(tr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(tr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const gd=new eM({r:0,g:0,b:0,a:0},"transparent"),ro={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ro.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 gd.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?`#${Dn[Math.round(t)]}${Dn[Math.round(r)]}${Dn[Math.round(i)]}${Dn[Math.round(n*255)]}`:`#${Dn[Math.round(t)]}${Dn[Math.round(r)]}${Dn[Math.round(i)]}`}},Pa={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(Pa.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Mt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Mt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Mt.channel.clamp.h(parseFloat(r)*360)}}return Mt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Pa.re);if(!r)return;const[,i,n,a,s,o]=r;return gd.set({h:Pa._hue2deg(i),s:Mt.channel.clamp.s(parseFloat(n)),l:Mt.channel.clamp.l(parseFloat(a)),a:s?Mt.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(${Mt.lang.round(t)}, ${Mt.lang.round(r)}%, ${Mt.lang.round(i)}%, ${n})`:`hsl(${Mt.lang.round(t)}, ${Mt.lang.round(r)}%, ${Mt.lang.round(i)}%)`}},Gl={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=Gl.colors[e];if(t)return ro.parse(t)},stringify:e=>{const t=ro.stringify(e);for(const r in Gl.colors)if(Gl.colors[r]===t)return r}},_l={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(_l.re);if(!r)return;const[,i,n,a,s,o,l,c,h]=r;return gd.set({r:Mt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Mt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Mt.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?Mt.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(${Mt.lang.round(t)}, ${Mt.lang.round(r)}, ${Mt.lang.round(i)}, ${Mt.lang.round(n)})`:`rgb(${Mt.lang.round(t)}, ${Mt.lang.round(r)}, ${Mt.lang.round(i)})`}},ji={format:{keyword:Gl,hex:ro,rgb:_l,rgba:_l,hsl:Pa,hsla:Pa},parse:e=>{if(typeof e!="string")return e;const t=ro.parse(e)||_l.parse(e)||Pa.parse(e)||Gl.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(tr.HSL)||e.data.r===void 0?Pa.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?_l.stringify(e):ro.stringify(e)},Jb=(e,t)=>{const r=ji.parse(e);for(const i in t)r[i]=Mt.channel.clamp[i](t[i]);return ji.stringify(r)},na=(e,t,r=0,i=1)=>{if(typeof e!="number")return Jb(e,{a:t});const n=gd.set({r:Mt.channel.clamp.r(e),g:Mt.channel.clamp.g(t),b:Mt.channel.clamp.b(r),a:Mt.channel.clamp.a(i)});return ji.stringify(n)},rM=e=>{const{r:t,g:r,b:i}=ji.parse(e),n=.2126*Mt.channel.toLinear(t)+.7152*Mt.channel.toLinear(r)+.0722*Mt.channel.toLinear(i);return Mt.lang.round(n)},iM=e=>rM(e)>=.5,Ti=e=>!iM(e),tC=(e,t,r)=>{const i=ji.parse(e),n=i[t],a=Mt.channel.clamp[t](n+r);return n!==a&&(i[t]=a),ji.stringify(i)},X=(e,t)=>tC(e,"l",t),G=(e,t)=>tC(e,"l",-t),B=(e,t)=>{const r=ji.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return Jb(e,i)},nM=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=ji.parse(e),{r:o,g:l,b:c,a:h}=ji.parse(t),u=r/100,f=u*2-1,d=s-h,p=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,m=1-p,y=i*p+o*m,x=n*p+l*m,k=a*p+c*m,T=s*u+h*(1-u);return na(y,x,k,T)},j=(e,t=100)=>{const r=ji.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,nM(r,e,t)};/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */const{entries:eC,setPrototypeOf:g4,isFrozen:aM,getPrototypeOf:sM,getOwnPropertyDescriptor:oM}=Object;let{freeze:yr,seal:oi,create:Ms}=Object,{apply:y1,construct:x1}=typeof Reflect<"u"&&Reflect;yr||(yr=function(t){return t});oi||(oi=function(t){return t});y1||(y1=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)});x1||(x1=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 cl=Le(Array.prototype.forEach),lM=Le(Array.prototype.lastIndexOf),m4=Le(Array.prototype.pop),hl=Le(Array.prototype.push),cM=Le(Array.prototype.splice),cr=Array.isArray,Bl=Le(String.prototype.toLowerCase),Of=Le(String.prototype.toString),y4=Le(String.prototype.match),Ts=Le(String.prototype.replace),x4=Le(String.prototype.indexOf),hM=Le(String.prototype.trim),uM=Le(Number.prototype.toString),dM=Le(Boolean.prototype.toString),v4=typeof BigInt>"u"?null:Le(BigInt.prototype.toString),b4=typeof Symbol>"u"?null:Le(Symbol.prototype.toString),ye=Le(Object.prototype.hasOwnProperty),ul=Le(Object.prototype.toString),Ue=Le(RegExp.prototype.test),Ih=fM(TypeError);function Le(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 y1(e,t,i)}}function fM(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return x1(e,r)}}function $t(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bl;if(g4&&g4(e,null),!cr(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(aM(t)||(t[i]=a),n=a)}e[n]=!0}return e}function pM(e){for(let t=0;t<e.length;t++)ye(e,t)||(e[t]=null);return e}function Sr(e){const t=Ms(null);for(const[r,i]of eC(e))ye(e,r)&&(cr(i)?t[r]=pM(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Sr(i):t[r]=i);return t}function gM(e){switch(typeof e){case"string":return e;case"number":return uM(e);case"boolean":return dM(e);case"bigint":return v4?v4(e):"0";case"symbol":return b4?b4(e):"Symbol()";case"undefined":return ul(e);case"function":case"object":{if(e===null)return ul(e);const t=e,r=Fs(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:ul(i)}return ul(e)}default:return ul(e)}}function Fs(e,t){for(;e!==null;){const i=oM(e,t);if(i){if(i.get)return Le(i.get);if(typeof i.value=="function")return Le(i.value)}e=sM(e)}function r(){return null}return r}function mM(e){try{return Ue(e,""),!0}catch{return!1}}const C4=yr(["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"]),Pf=yr(["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"]),Nf=yr(["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"]),yM=yr(["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"]),jf=yr(["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"]),xM=yr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),k4=yr(["#text"]),w4=yr(["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"]),qf=yr(["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"]),S4=yr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zh=yr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vM=oi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bM=oi(/<%[\w\W]*|[\w\W]*%>/gm),CM=oi(/\$\{[\w\W]*/gm),kM=oi(/^data-[\-\w.\u00B7-\uFFFF]+$/),wM=oi(/^aria-[\-\w]+$/),rC=oi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),SM=oi(/^(?:\w+script|data):/i),TM=oi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iC=oi(/^html$/i),_M=oi(/^[a-z][.\w]*(-[.\w]+)+$/i);var T4=Object.freeze({__proto__:null,ARIA_ATTR:wM,ATTR_WHITESPACE:TM,CUSTOM_ELEMENT:_M,DATA_ATTR:kM,DOCTYPE_NAME:iC,ERB_EXPR:bM,IS_ALLOWED_URI:rC,IS_SCRIPT_OR_DATA:SM,MUSTACHE_EXPR:vM,TMPLIT_EXPR:CM});const dl={element:1,text:3,progressingInstruction:7,comment:8,document:9},BM=function(){return typeof window>"u"?null:window},LM=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}},_4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BM();const t=Ct=>nC(Ct);if(t.version="3.4.2",t.removed=[],!e||!e.document||e.document.nodeType!==dl.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:f,trustedTypes:d}=e,g=l.prototype,p=Fs(g,"cloneNode"),m=Fs(g,"remove"),y=Fs(g,"nextSibling"),x=Fs(g,"childNodes"),k=Fs(g,"parentNode");if(typeof s=="function"){const Ct=r.createElement("template");Ct.content&&Ct.content.ownerDocument&&(r=Ct.content.ownerDocument)}let T,_="";const{implementation:M,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:N}=r,{importNode:z}=i;let P=_4();t.isSupported=typeof eC=="function"&&typeof k=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:Q,TMPLIT_EXPR:Y,DATA_ATTR:q,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:V}=T4;let{IS_ALLOWED_URI:K}=T4,nt=null;const dt=$t({},[...C4,...Pf,...Nf,...jf,...k4]);let ht=null;const _t=$t({},[...w4,...qf,...S4,...zh]);let vt=Object.seal(Ms(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}})),Rt=null,jt=null;const pe=Object.seal(Ms(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,ft=!0,At=!1,Ht=!0,Ut=!1,Re=!0,Oe=!1,An=!1,ys=!1,Ir=!1,Sa=!1,Qi=!1,eh=!0,rh=!1;const xs="user-content-";let vs=!0,En=!1,Mn={},Qr=null;const Fn=$t({},["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 Ta=null;const V2=$t({},["audio","video","img","source","image","track"]);let Pd=null;const X2=$t({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ih="http://www.w3.org/1998/Math/MathML",nh="http://www.w3.org/2000/svg",Bi="http://www.w3.org/1999/xhtml";let bs=Bi,Nd=!1,jd=null;const _9=$t({},[ih,nh,Bi],Of);let qd=$t({},["mi","mo","mn","ms","mtext"]),Wd=$t({},["annotation-xml"]);const B9=$t({},["title","style","font","a","script"]);let Jo=null;const L9=["application/xhtml+xml","text/html"],A9="text/html";let Ee=null,Cs=null;const E9=r.createElement("form"),Q2=function(D){return D instanceof RegExp||D instanceof Function},Hd=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Cs&&Cs===D)return;(!D||typeof D!="object")&&(D={}),D=Sr(D),Jo=L9.indexOf(D.PARSER_MEDIA_TYPE)===-1?A9:D.PARSER_MEDIA_TYPE,Ee=Jo==="application/xhtml+xml"?Of:Bl,nt=ye(D,"ALLOWED_TAGS")&&cr(D.ALLOWED_TAGS)?$t({},D.ALLOWED_TAGS,Ee):dt,ht=ye(D,"ALLOWED_ATTR")&&cr(D.ALLOWED_ATTR)?$t({},D.ALLOWED_ATTR,Ee):_t,jd=ye(D,"ALLOWED_NAMESPACES")&&cr(D.ALLOWED_NAMESPACES)?$t({},D.ALLOWED_NAMESPACES,Of):_9,Pd=ye(D,"ADD_URI_SAFE_ATTR")&&cr(D.ADD_URI_SAFE_ATTR)?$t(Sr(X2),D.ADD_URI_SAFE_ATTR,Ee):X2,Ta=ye(D,"ADD_DATA_URI_TAGS")&&cr(D.ADD_DATA_URI_TAGS)?$t(Sr(V2),D.ADD_DATA_URI_TAGS,Ee):V2,Qr=ye(D,"FORBID_CONTENTS")&&cr(D.FORBID_CONTENTS)?$t({},D.FORBID_CONTENTS,Ee):Fn,Rt=ye(D,"FORBID_TAGS")&&cr(D.FORBID_TAGS)?$t({},D.FORBID_TAGS,Ee):Sr({}),jt=ye(D,"FORBID_ATTR")&&cr(D.FORBID_ATTR)?$t({},D.FORBID_ATTR,Ee):Sr({}),Mn=ye(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Sr(D.USE_PROFILES):D.USE_PROFILES:!1,ke=D.ALLOW_ARIA_ATTR!==!1,ft=D.ALLOW_DATA_ATTR!==!1,At=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Ht=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ut=D.SAFE_FOR_TEMPLATES||!1,Re=D.SAFE_FOR_XML!==!1,Oe=D.WHOLE_DOCUMENT||!1,Ir=D.RETURN_DOM||!1,Sa=D.RETURN_DOM_FRAGMENT||!1,Qi=D.RETURN_TRUSTED_TYPE||!1,ys=D.FORCE_BODY||!1,eh=D.SANITIZE_DOM!==!1,rh=D.SANITIZE_NAMED_PROPS||!1,vs=D.KEEP_CONTENT!==!1,En=D.IN_PLACE||!1,K=mM(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:rC,bs=typeof D.NAMESPACE=="string"?D.NAMESPACE:Bi,qd=ye(D,"MATHML_TEXT_INTEGRATION_POINTS")&&D.MATHML_TEXT_INTEGRATION_POINTS&&typeof D.MATHML_TEXT_INTEGRATION_POINTS=="object"?Sr(D.MATHML_TEXT_INTEGRATION_POINTS):$t({},["mi","mo","mn","ms","mtext"]),Wd=ye(D,"HTML_INTEGRATION_POINTS")&&D.HTML_INTEGRATION_POINTS&&typeof D.HTML_INTEGRATION_POINTS=="object"?Sr(D.HTML_INTEGRATION_POINTS):$t({},["annotation-xml"]);const J=ye(D,"CUSTOM_ELEMENT_HANDLING")&&D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING=="object"?Sr(D.CUSTOM_ELEMENT_HANDLING):Ms(null);if(vt=Ms(null),ye(J,"tagNameCheck")&&Q2(J.tagNameCheck)&&(vt.tagNameCheck=J.tagNameCheck),ye(J,"attributeNameCheck")&&Q2(J.attributeNameCheck)&&(vt.attributeNameCheck=J.attributeNameCheck),ye(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&(vt.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),Ut&&(ft=!1),Sa&&(Ir=!0),Mn&&(nt=$t({},k4),ht=Ms(null),Mn.html===!0&&($t(nt,C4),$t(ht,w4)),Mn.svg===!0&&($t(nt,Pf),$t(ht,qf),$t(ht,zh)),Mn.svgFilters===!0&&($t(nt,Nf),$t(ht,qf),$t(ht,zh)),Mn.mathMl===!0&&($t(nt,jf),$t(ht,S4),$t(ht,zh))),pe.tagCheck=null,pe.attributeCheck=null,ye(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?pe.tagCheck=D.ADD_TAGS:cr(D.ADD_TAGS)&&(nt===dt&&(nt=Sr(nt)),$t(nt,D.ADD_TAGS,Ee))),ye(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?pe.attributeCheck=D.ADD_ATTR:cr(D.ADD_ATTR)&&(ht===_t&&(ht=Sr(ht)),$t(ht,D.ADD_ATTR,Ee))),ye(D,"ADD_URI_SAFE_ATTR")&&cr(D.ADD_URI_SAFE_ATTR)&&$t(Pd,D.ADD_URI_SAFE_ATTR,Ee),ye(D,"FORBID_CONTENTS")&&cr(D.FORBID_CONTENTS)&&(Qr===Fn&&(Qr=Sr(Qr)),$t(Qr,D.FORBID_CONTENTS,Ee)),ye(D,"ADD_FORBID_CONTENTS")&&cr(D.ADD_FORBID_CONTENTS)&&(Qr===Fn&&(Qr=Sr(Qr)),$t(Qr,D.ADD_FORBID_CONTENTS,Ee)),vs&&(nt["#text"]=!0),Oe&&$t(nt,["html","head","body"]),nt.table&&($t(nt,["tbody"]),delete Rt.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ih('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ih('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=D.TRUSTED_TYPES_POLICY,_=T.createHTML("")}else T===void 0&&(T=LM(d,n)),T!==null&&typeof _=="string"&&(_=T.createHTML(""));yr&&yr(D),Cs=D},K2=$t({},[...Pf,...Nf,...yM]),Z2=$t({},[...jf,...xM]),M9=function(D){let J=k(D);(!J||!J.tagName)&&(J={namespaceURI:bs,tagName:"template"});const gt=Bl(D.tagName),Jt=Bl(J.tagName);return jd[D.namespaceURI]?D.namespaceURI===nh?J.namespaceURI===Bi?gt==="svg":J.namespaceURI===ih?gt==="svg"&&(Jt==="annotation-xml"||qd[Jt]):!!K2[gt]:D.namespaceURI===ih?J.namespaceURI===Bi?gt==="math":J.namespaceURI===nh?gt==="math"&&Wd[Jt]:!!Z2[gt]:D.namespaceURI===Bi?J.namespaceURI===nh&&!Wd[Jt]||J.namespaceURI===ih&&!qd[Jt]?!1:!Z2[gt]&&(B9[gt]||!K2[gt]):!!(Jo==="application/xhtml+xml"&&jd[D.namespaceURI]):!1},ci=function(D){hl(t.removed,{element:D});try{k(D).removeChild(D)}catch{m(D)}},_a=function(D,J){try{hl(t.removed,{attribute:J.getAttributeNode(D),from:J})}catch{hl(t.removed,{attribute:null,from:J})}if(J.removeAttribute(D),D==="is")if(Ir||Sa)try{ci(J)}catch{}else try{J.setAttribute(D,"")}catch{}},J2=function(D){let J=null,gt=null;if(ys)D="<remove></remove>"+D;else{const we=y4(D,/^[\r\n\t ]+/);gt=we&&we[0]}Jo==="application/xhtml+xml"&&bs===Bi&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Jt=T?T.createHTML(D):D;if(bs===Bi)try{J=new f().parseFromString(Jt,Jo)}catch{}if(!J||!J.documentElement){J=M.createDocument(bs,"template",null);try{J.documentElement.innerHTML=Nd?_:Jt}catch{}}const Ke=J.body||J.documentElement;return D&>&&Ke.insertBefore(r.createTextNode(gt),Ke.childNodes[0]||null),bs===Bi?N.call(J,Oe?"html":"body")[0]:Oe?J.documentElement:Ke},ty=function(D){return S.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ud=function(D){return D instanceof u&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof h)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},Yd=function(D){return typeof o=="function"&&D instanceof o};function Ki(Ct,D,J){cl(Ct,gt=>{gt.call(t,D,J,Cs)})}const ey=function(D){let J=null;if(Ki(P.beforeSanitizeElements,D,null),Ud(D))return ci(D),!0;const gt=Ee(D.nodeName);if(Ki(P.uponSanitizeElement,D,{tagName:gt,allowedTags:nt}),Re&&D.hasChildNodes()&&!Yd(D.firstElementChild)&&Ue(/<[/\w!]/g,D.innerHTML)&&Ue(/<[/\w!]/g,D.textContent)||Re&&D.namespaceURI===Bi&>==="style"&&Yd(D.firstElementChild)||D.nodeType===dl.progressingInstruction||Re&&D.nodeType===dl.comment&&Ue(/<[/\w]/g,D.data))return ci(D),!0;if(Rt[gt]||!(pe.tagCheck instanceof Function&&pe.tagCheck(gt))&&!nt[gt]){if(!Rt[gt]&&iy(gt)&&(vt.tagNameCheck instanceof RegExp&&Ue(vt.tagNameCheck,gt)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(gt)))return!1;if(vs&&!Qr[gt]){const Jt=k(D)||D.parentNode,Ke=x(D)||D.childNodes;if(Ke&&Jt){const we=Ke.length;for(let kr=we-1;kr>=0;--kr){const Kr=p(Ke[kr],!0);Jt.insertBefore(Kr,y(D))}}}return ci(D),!0}return D instanceof l&&!M9(D)||(gt==="noscript"||gt==="noembed"||gt==="noframes")&&Ue(/<\/no(script|embed|frames)/i,D.innerHTML)?(ci(D),!0):(Ut&&D.nodeType===dl.text&&(J=D.textContent,cl([U,Q,Y],Jt=>{J=Ts(J,Jt," ")}),D.textContent!==J&&(hl(t.removed,{element:D.cloneNode()}),D.textContent=J)),Ki(P.afterSanitizeElements,D,null),!1)},ry=function(D,J,gt){if(jt[J]||eh&&(J==="id"||J==="name")&&(gt in r||gt in E9))return!1;const Jt=ht[J]||pe.attributeCheck instanceof Function&&pe.attributeCheck(J,D);if(!(ft&&!jt[J]&&Ue(q,J))){if(!(ke&&Ue(R,J))){if(!Jt||jt[J]){if(!(iy(D)&&(vt.tagNameCheck instanceof RegExp&&Ue(vt.tagNameCheck,D)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(D))&&(vt.attributeNameCheck instanceof RegExp&&Ue(vt.attributeNameCheck,J)||vt.attributeNameCheck instanceof Function&&vt.attributeNameCheck(J,D))||J==="is"&&vt.allowCustomizedBuiltInElements&&(vt.tagNameCheck instanceof RegExp&&Ue(vt.tagNameCheck,gt)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(gt))))return!1}else if(!Pd[J]){if(!Ue(K,Ts(gt,F,""))){if(!((J==="src"||J==="xlink:href"||J==="href")&&D!=="script"&&x4(gt,"data:")===0&&Ta[D])){if(!(At&&!Ue(H,Ts(gt,F,"")))){if(gt)return!1}}}}}}return!0},F9=$t({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),iy=function(D){return!F9[Bl(D)]&&Ue(V,D)},ny=function(D){Ki(P.beforeSanitizeAttributes,D,null);const{attributes:J}=D;if(!J||Ud(D))return;const gt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ht,forceKeepAttr:void 0};let Jt=J.length;for(;Jt--;){const Ke=J[Jt],{name:we,namespaceURI:kr,value:Kr}=Ke,hi=Ee(we),Gd=Kr;let Pe=we==="value"?Gd:hM(Gd);if(gt.attrName=hi,gt.attrValue=Pe,gt.keepAttr=!0,gt.forceKeepAttr=void 0,Ki(P.uponSanitizeAttribute,D,gt),Pe=gt.attrValue,rh&&(hi==="id"||hi==="name")&&x4(Pe,xs)!==0&&(_a(we,D),Pe=xs+Pe),Re&&Ue(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pe)){_a(we,D);continue}if(hi==="attributename"&&y4(Pe,"href")){_a(we,D);continue}if(gt.forceKeepAttr)continue;if(!gt.keepAttr){_a(we,D);continue}if(!Ht&&Ue(/\/>/i,Pe)){_a(we,D);continue}Ut&&cl([U,Q,Y],oy=>{Pe=Ts(Pe,oy," ")});const sy=Ee(D.nodeName);if(!ry(sy,hi,Pe)){_a(we,D);continue}if(T&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!kr)switch(d.getAttributeType(sy,hi)){case"TrustedHTML":{Pe=T.createHTML(Pe);break}case"TrustedScriptURL":{Pe=T.createScriptURL(Pe);break}}if(Pe!==Gd)try{kr?D.setAttributeNS(kr,we,Pe):D.setAttribute(we,Pe),Ud(D)?ci(D):m4(t.removed)}catch{_a(we,D)}}Ki(P.afterSanitizeAttributes,D,null)},ay=function(D){let J=null;const gt=ty(D);for(Ki(P.beforeSanitizeShadowDOM,D,null);J=gt.nextNode();)Ki(P.uponSanitizeShadowNode,J,null),ey(J),ny(J),J.content instanceof a&&ay(J.content);Ki(P.afterSanitizeShadowDOM,D,null)};return t.sanitize=function(Ct){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,gt=null,Jt=null,Ke=null;if(Nd=!Ct,Nd&&(Ct="<!-->"),typeof Ct!="string"&&!Yd(Ct)&&(Ct=gM(Ct),typeof Ct!="string"))throw Ih("dirty is not a string, aborting");if(!t.isSupported)return Ct;if(An||Hd(D),t.removed=[],typeof Ct=="string"&&(En=!1),En){const Kr=Ct.nodeName;if(typeof Kr=="string"){const hi=Ee(Kr);if(!nt[hi]||Rt[hi])throw Ih("root node is forbidden and cannot be sanitized in-place")}}else if(Ct instanceof o)J=J2("<!---->"),gt=J.ownerDocument.importNode(Ct,!0),gt.nodeType===dl.element&>.nodeName==="BODY"||gt.nodeName==="HTML"?J=gt:J.appendChild(gt);else{if(!Ir&&!Ut&&!Oe&&Ct.indexOf("<")===-1)return T&&Qi?T.createHTML(Ct):Ct;if(J=J2(Ct),!J)return Ir?null:Qi?_:""}J&&ys&&ci(J.firstChild);const we=ty(En?Ct:J);for(;Jt=we.nextNode();)ey(Jt),ny(Jt),Jt.content instanceof a&&ay(Jt.content);if(En)return Ct;if(Ir){if(Ut){J.normalize();let Kr=J.innerHTML;cl([U,Q,Y],hi=>{Kr=Ts(Kr,hi," ")}),J.innerHTML=Kr}if(Sa)for(Ke=A.call(J.ownerDocument);J.firstChild;)Ke.appendChild(J.firstChild);else Ke=J;return(ht.shadowroot||ht.shadowrootmode)&&(Ke=z.call(i,Ke,!0)),Ke}let kr=Oe?J.outerHTML:J.innerHTML;return Oe&&nt["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Ue(iC,J.ownerDocument.doctype.name)&&(kr="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
|
|
371
|
+
`+kr),Ut&&cl([U,Q,Y],Kr=>{kr=Ts(kr,Kr," ")}),T&&Qi?T.createHTML(kr):kr},t.setConfig=function(){let Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hd(Ct),An=!0},t.clearConfig=function(){Cs=null,An=!1},t.isValidAttribute=function(Ct,D,J){Cs||Hd({});const gt=Ee(Ct),Jt=Ee(D);return ry(gt,Jt,J)},t.addHook=function(Ct,D){typeof D=="function"&&hl(P[Ct],D)},t.removeHook=function(Ct,D){if(D!==void 0){const J=lM(P[Ct],D);return J===-1?void 0:cM(P[Ct],J,1)[0]}return m4(P[Ct])},t.removeHooks=function(Ct){P[Ct]=[]},t.removeAllHooks=function(){P=_4()},t}var Eo=nC(),aC=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Vl=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,AM=/\s*%%.*\n/gm,ao,sC=(ao=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},C(ao,"UnknownDiagramError"),ao),ts={},Gm=C(function(e,t){e=e.replace(aC,"").replace(Vl,"").replace(AM,`
|
|
372
|
+
`);for(const[r,{detector:i}]of Object.entries(ts))if(i(e,t))return r;throw new sC(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),v1=C((...e)=>{for(const{id:t,detector:r,loader:i}of e)oC(t,r,i)},"registerLazyLoadedDiagrams"),oC=C((e,t,r)=>{ts[e]&&Z.warn(`Detector with key ${e} already exists. Overwriting.`),ts[e]={detector:t,loader:r},Z.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),EM=C(e=>ts[e].loader,"getDiagramLoader"),b1=C((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>b1(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]=b1(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),$e=b1,Yi="#ffffff",Gi="#f2f2f2",Lt=C((e,t)=>t?B(e,{s:-40,l:10}):B(e,{s:-40,l:-10}),"mkBorder"),so,MM=(so=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,a,s,o,l,c,h,u,f,d,g,p,m,y,x,k,T,_,M,S;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(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?G(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||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(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||X(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||G(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||G(this.mainBkg,10)):(this.rowOdd=this.rowOdd||X(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||X(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||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=G(this["cScale"+A],75);else for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=G(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||j(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||X(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||G(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||B(this.mainBkg,{h:180,s:-15,l:t*(5+A*3)}),this["surfacePeer"+A]=this["surfacePeer"+A]||B(this.mainBkg,{h:180,s:-15,l:t*(8+A*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||B(this.primaryColor,{h:64}),this.fillType3=this.fillType3||B(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||B(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||B(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||B(this.primaryColor,{h:128}),this.fillType7=this.fillType7||B(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||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-10}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||B(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??B(this.primaryColor,{l:-30}),this.venn2=this.venn2??B(this.secondaryColor,{l:-30}),this.venn3=this.venn3??B(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??B(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??B(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??B(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??B(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??B(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.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||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,dataLabelColor:((g=this.xyChart)==null?void 0:g.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((m=this.xyChart)==null?void 0:m.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((x=this.xyChart)==null?void 0:x.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((k=this.xyChart)==null?void 0:k.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((T=this.xyChart)==null?void 0:T.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((_=this.xyChart)==null?void 0:_.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((M=this.xyChart)==null?void 0:M.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((S=this.xyChart)==null?void 0:S.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?G(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||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(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||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}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]})}},C(so,"Theme"),so),FM=C(e=>{const t=new MM;return t.calculate(e),t},"getThemeVariables"),oo,$M=(oo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=X(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.tertiaryColor),this.lineColor=j(this.background),this.textColor=j(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=X(j("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=na(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=G("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=G(this.sectionBkgColor,10),this.taskBorderColor=na(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=na(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||X(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||G(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,n,a,s,o,l,c,h,u,f,d,g,p,m,y,x,k,T,_,M;this.secondBkg=X(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=X(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=X(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=j(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=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(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||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330});for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||j(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScalePeer"+S]=this["cScalePeer"+S]||X(this["cScale"+S],10);for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||B(this.mainBkg,{h:30,s:-30,l:-(-10+S*4)}),this["surfacePeer"+S]=this["surfacePeer"+S]||B(this.mainBkg,{h:30,s:-30,l:-(-7+S*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["pie"+S]=this["cScale"+S];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 S=0;S<8;S++)this["venn"+(S+1)]=this["venn"+(S+1)]??X(this["cScale"+S],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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:((d=this.radar)==null?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((T=this.radar)==null?void 0:T.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((M=this.radar)==null?void 0:M.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?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=X(this.secondaryColor,20),this.git1=X(this.pie2||this.secondaryColor,20),this.git2=X(this.pie3||this.tertiaryColor,20),this.git3=X(this.pie4||B(this.primaryColor,{h:-30}),20),this.git4=X(this.pie5||B(this.primaryColor,{h:-60}),20),this.git5=X(this.pie6||B(this.primaryColor,{h:-90}),10),this.git6=X(this.pie7||B(this.primaryColor,{h:60}),10),this.git7=X(this.pie8||B(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||j(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||j(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||X(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||X(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]})}},C(oo,"Theme"),oo),IM=C(e=>{const t=new $M;return t.calculate(e),t},"getThemeVariables"),lo,zM=(lo=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=B(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.tertiaryColor),this.lineColor=j(this.background),this.textColor=j(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=na(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,n,a,s,o,l,c,h,u,f,d,g,p,m,y,x,k,T,_,M;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||G(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||G(this.tertiaryColor,40);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=G(this["cScale"+S],10),this["cScalePeer"+S]=this["cScalePeer"+S]||G(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||B(this["cScale"+S],{h:180});for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||B(this.mainBkg,{h:30,l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||B(this.mainBkg,{h:30,l:-(7+S*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||j(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||j(this.labelTextColor);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||X(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||X(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=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||B(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-30}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||B(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||B(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??B(this.primaryColor,{l:-30}),this.venn2=this.venn2??B(this.secondaryColor,{l:-30}),this.venn3=this.venn3??B(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??B(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??B(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??B(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??B(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??B(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||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,dataLabelColor:((d=this.xyChart)==null?void 0:d.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((k=this.xyChart)==null?void 0:k.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((T=this.xyChart)==null?void 0:T.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((M=this.xyChart)==null?void 0:M.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||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||G(j(this.git0),25),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||j(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||j(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||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(lo,"Theme"),lo),DM=C(e=>{const t=new zM;return t.calculate(e),t},"getThemeVariables"),co,RM=(co=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=X("#cde498",10),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.primaryColor),this.lineColor=j(this.background),this.textColor=j(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,n,a,s,o,l,c,h,u,f,d,g,p,m,y,x,k,T,_,M;this.actorBorder=G(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||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||G(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||G(this.tertiaryColor,40);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=G(this["cScale"+S],10),this["cScalePeer"+S]=this["cScalePeer"+S]||G(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||B(this["cScale"+S],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||B(this.mainBkg,{h:30,s:-30,l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||B(this.mainBkg,{h:30,s:-30,l:-(8+S*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||X(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||X(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=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(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||B(this.primaryColor,{l:-30}),this.pie5=this.pie5||B(this.secondaryColor,{l:-30}),this.pie6=this.pie6||B(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||B(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??B(this.primaryColor,{l:-30}),this.venn2=this.venn2??B(this.secondaryColor,{l:-30}),this.venn3=this.venn3??B(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??B(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??B(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??B(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??B(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??B(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||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,dataLabelColor:((d=this.xyChart)==null?void 0:d.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((m=this.xyChart)==null?void 0:m.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((x=this.xyChart)==null?void 0:x.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((k=this.xyChart)==null?void 0:k.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((T=this.xyChart)==null?void 0:T.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((M=this.xyChart)==null?void 0:M.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||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||j(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||j(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||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(co,"Theme"),co),OM=C(e=>{const t=new RM;return t.calculate(e),t},"getThemeVariables"),ho,PM=(ho=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=X(this.contrast,55),this.background="#ffffff",this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.tertiaryColor),this.lineColor=j(this.background),this.textColor=j(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||X(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,n,a,s,o,l,c,h,u,f,d,g,p,m,y,x,k,T,_,M;this.secondBkg=X(this.contrast,55),this.border2=this.contrast,this.actorBorder=X(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 S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||j(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this.darkMode?this["cScalePeer"+S]=this["cScalePeer"+S]||X(this["cScale"+S],10):this["cScalePeer"+S]=this["cScalePeer"+S]||G(this["cScale"+S],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||B(this.mainBkg,{l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||B(this.mainBkg,{l:-(8+S*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=X(this.contrast,30),this.sectionBkgColor2=X(this.contrast,30),this.taskBorderColor=G(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=X(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=G(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=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128});for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["pie"+S]=this["cScale"+S];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 S=0;S<8;S++)this["venn"+(S+1)]=this["venn"+(S+1)]??this["cScale"+S];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((d=this.radar)==null?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((m=this.radar)==null?void 0:m.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((T=this.radar)==null?void 0:T.graticuleOpacity)||.3,legendBoxSize:((_=this.radar)==null?void 0:_.legendBoxSize)||12,legendFontSize:((M=this.radar)==null?void 0:M.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=G(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||B(this.primaryColor,{h:-30}),this.git4=this.pie5||B(this.primaryColor,{h:-60}),this.git5=this.pie6||B(this.primaryColor,{h:-90}),this.git6=this.pie7||B(this.primaryColor,{h:60}),this.git7=this.pie8||B(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(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||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(ho,"Theme"),ho),NM=C(e=>{const t=new PM;return t.calculate(e),t},"getThemeVariables"),uo,jM=(uo=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var a,s,o,l,c,h,u,f,d,g,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(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?G(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||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=B(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||X(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||B(t,{h:30}),this.cScale4=this.cScale4||B(t,{h:60}),this.cScale5=this.cScale5||B(t,{h:90}),this.cScale6=this.cScale6||B(t,{h:120}),this.cScale7=this.cScale7||B(t,{h:150}),this.cScale8=this.cScale8||B(t,{h:210,l:150}),this.cScale9=this.cScale9||B(t,{h:270}),this.cScale10=this.cScale10||B(t,{h:300}),this.cScale11=this.cScale11||B(t,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=G(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=G(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||j(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||X(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||G(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||B(this.mainBkg,{h:180,s:-15,l:n*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||B(this.mainBkg,{h:180,s:-15,l:n*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||B(t,{h:64}),this.fillType3=this.fillType3||B(r,{h:64}),this.fillType4=this.fillType4||B(t,{h:-64}),this.fillType5=this.fillType5||B(r,{h:-64}),this.fillType6=this.fillType6||B(t,{h:128}),this.fillType7=this.fillType7||B(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||B(t,{l:-10}),this.pie5=this.pie5||B(r,{l:-10}),this.pie6=this.pie6||B(i,{l:-10}),this.pie7=this.pie7||B(t,{h:60,l:-10}),this.pie8=this.pie8||B(t,{h:-60,l:-10}),this.pie9=this.pie9||B(t,{h:120,l:0}),this.pie10=this.pie10||B(t,{h:60,l:-20}),this.pie11=this.pie11||B(t,{h:-60,l:-20}),this.pie12=this.pie12||B(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||B(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||B(t,{h:-30}),this.git4=this.git4||B(t,{h:-60}),this.git5=this.git5||B(t,{h:-90}),this.git6=this.git6||B(t,{h:60}),this.git7=this.git7||B(t,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(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||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(uo,"Theme"),uo),qM=C(e=>{const t=new jM;return t.calculate(e),t},"getThemeVariables"),fo,WM=(fo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=X(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=X(j("#323D47"),10),this.border1="#ccc",this.border2=na(255,255,255,.25),this.arrowheadColor=j(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,n,a,s,o,l,c,h,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?G(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||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(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||X(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=G(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=G(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||j(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||X(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||G(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||B(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||B(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||B(this.primaryColor,{h:64}),this.fillType3=this.fillType3||B(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||B(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||B(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||B(this.primaryColor,{h:128}),this.fillType7=this.fillType7||B(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||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-10}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(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||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(fo,"Theme"),fo),HM=C(e=>{const t=new WM;return t.calculate(e),t},"getThemeVariables"),po,UM=(po=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Lt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var a,s,o,l,c,h,u,f,d,g,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(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?G(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=B(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||X(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=this.mainBkg;if(this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=G(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=G(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||j(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||X(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||G(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||B(this.mainBkg,{h:180,s:-15,l:n*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||B(this.mainBkg,{h:180,s:-15,l:n*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||B(t,{h:64}),this.fillType3=this.fillType3||B(r,{h:64}),this.fillType4=this.fillType4||B(t,{h:-64}),this.fillType5=this.fillType5||B(r,{h:-64}),this.fillType6=this.fillType6||B(t,{h:128}),this.fillType7=this.fillType7||B(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||B(t,{l:-10}),this.pie5=this.pie5||B(r,{l:-10}),this.pie6=this.pie6||B(i,{l:-10}),this.pie7=this.pie7||B(t,{h:60,l:-10}),this.pie8=this.pie8||B(t,{h:-60,l:-10}),this.pie9=this.pie9||B(t,{h:120,l:0}),this.pie10=this.pie10||B(t,{h:60,l:-20}),this.pie11=this.pie11||B(t,{h:-60,l:-20}),this.pie12=this.pie12||B(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||B(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||B(t,{h:-30}),this.git4=this.git4||B(t,{h:-60}),this.git5=this.git5||B(t,{h:-90}),this.git6=this.git6||B(t,{h:60}),this.git7=this.git7||B(t,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(po,"Theme"),po),YM=C(e=>{const t=new UM;return t.calculate(e),t},"getThemeVariables"),go,GM=(go=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=X(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=X(j("#323D47"),10),this.border1="#ccc",this.border2=na(255,255,255,.25),this.arrowheadColor=j(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,n,a,s,o,l,c,h,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(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||X(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=G(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=G(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||j(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||X(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||G(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||B(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||B(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||B(this.primaryColor,{h:64}),this.fillType3=this.fillType3||B(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||B(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||B(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||B(this.primaryColor,{h:128}),this.fillType7=this.fillType7||B(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||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-10}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(go,"Theme"),go),VM=C(e=>{const t=new GM;return t.calculate(e),t},"getThemeVariables"),mo,XM=(mo=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Lt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var a,s,o,l,c,h,u,f,d,g,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(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?G(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||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=B(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||X(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||j(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||X(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||G(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||B(this.mainBkg,{h:180,s:-15,l:n*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||B(this.mainBkg,{h:180,s:-15,l:n*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||B(t,{h:64}),this.fillType3=this.fillType3||B(r,{h:64}),this.fillType4=this.fillType4||B(t,{h:-64}),this.fillType5=this.fillType5||B(r,{h:-64}),this.fillType6=this.fillType6||B(t,{h:128}),this.fillType7=this.fillType7||B(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||B(t,{l:-10}),this.pie5=this.pie5||B(r,{l:-10}),this.pie6=this.pie6||B(i,{l:-10}),this.pie7=this.pie7||B(t,{h:60,l:-10}),this.pie8=this.pie8||B(t,{h:-60,l:-10}),this.pie9=this.pie9||B(t,{h:120,l:0}),this.pie10=this.pie10||B(t,{h:60,l:-20}),this.pie11=this.pie11||B(t,{h:-60,l:-20}),this.pie12=this.pie12||B(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||B(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((c=this.xyChart)==null?void 0:c.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((h=this.xyChart)==null?void 0:h.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||B(t,{h:-30}),this.git4=this.git4||B(t,{h:-60}),this.git5=this.git5||B(t,{h:-90}),this.git6=this.git6||B(t,{h:60}),this.git7=this.git7||B(t,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(mo,"Theme"),mo),QM=C(e=>{const t=new XM;return t.calculate(e),t},"getThemeVariables"),yo,KM=(yo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=X(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=j(this.background),this.secondaryBorderColor=Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Lt(this.tertiaryColor,this.darkMode),this.primaryTextColor=j(this.primaryColor),this.secondaryTextColor=j(this.secondaryColor),this.tertiaryTextColor=j(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=X(j("#323D47"),10),this.border1="#ccc",this.border2=na(255,255,255,.25),this.arrowheadColor=j(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,n,a,s,o,l,c,h,u,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Lt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Lt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Lt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Lt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||j(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||j(this.tertiaryColor),this.lineColor=this.lineColor||j(this.background),this.arrowheadColor=this.arrowheadColor||j(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?G(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||G(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||j(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||X(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||j(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||X(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||G(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=G(this["cScale"+d],75);const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||B(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||B(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||B(this.primaryColor,{h:64}),this.fillType3=this.fillType3||B(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||B(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||B(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||B(this.primaryColor,{h:128}),this.fillType7=this.fillType7||B(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||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-10}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||B(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||B(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||B(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||B(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||B(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||B(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ti(this.quadrant1Fill)?X(this.quadrant1Fill):G(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((c=this.xyChart)==null?void 0:c.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?G(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||B(this.primaryColor,{h:-30}),this.git4=this.git4||B(this.primaryColor,{h:-60}),this.git5=this.git5||B(this.primaryColor,{h:-90}),this.git6=this.git6||B(this.primaryColor,{h:60}),this.git7=this.git7||B(this.primaryColor,{h:120}),this.darkMode?(this.git0=X(this.git0,25),this.git1=X(this.git1,25),this.git2=X(this.git2,25),this.git3=X(this.git3,25),this.git4=X(this.git4,25),this.git5=X(this.git5,25),this.git6=X(this.git6,25),this.git7=X(this.git7,25)):(this.git0=G(this.git0,25),this.git1=G(this.git1,25),this.git2=G(this.git2,25),this.git3=G(this.git3,25),this.git4=G(this.git4,25),this.git5=G(this.git5,25),this.git6=G(this.git6,25),this.git7=G(this.git7,25)),this.gitInv0=this.gitInv0||j(this.git0),this.gitInv1=this.gitInv1||j(this.git1),this.gitInv2=this.gitInv2||j(this.git2),this.gitInv3=this.gitInv3||j(this.git3),this.gitInv4=this.gitInv4||j(this.git4),this.gitInv5=this.gitInv5||j(this.git5),this.gitInv6=this.gitInv6||j(this.git6),this.gitInv7=this.gitInv7||j(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gi}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]})}},C(yo,"Theme"),yo),ZM=C(e=>{const t=new KM;return t.calculate(e),t},"getThemeVariables"),dn={base:{getThemeVariables:FM},dark:{getThemeVariables:IM},default:{getThemeVariables:DM},forest:{getThemeVariables:OM},neutral:{getThemeVariables:NM},neo:{getThemeVariables:qM},"neo-dark":{getThemeVariables:HM},redux:{getThemeVariables:YM},"redux-dark":{getThemeVariables:VM},"redux-color":{getThemeVariables:QM},"redux-dark-color":{getThemeVariables:ZM}},zr={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,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},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},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},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},lC={...zr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:dn.default.getThemeVariables(),sequence:{...zr.sequence,messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:C(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:C(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...zr.gantt,tickInterval:void 0,useWidth:void 0},c4:{...zr.c4,useWidth:void 0,personFont:C(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...zr.flowchart,inheritDir:!1},external_personFont:C(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:C(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:C(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:C(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:C(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:C(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:C(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:C(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:C(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:C(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:C(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:C(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:C(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:C(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:C(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:C(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:C(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:C(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:C(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:C(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...zr.pie,useWidth:984},xyChart:{...zr.xyChart,useWidth:void 0},requirement:{...zr.requirement,useWidth:void 0},packet:{...zr.packet},treeView:{...zr.treeView,useWidth:void 0},radar:{...zr.radar},ishikawa:{...zr.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...zr.venn}},cC=C((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...cC(e[i],"")]:[...r,t+i],[]),"keyify"),JM=new Set(cC(lC,"")),hC=lC,ru=C(e=>{if(Z.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>ru(t));return}for(const t of Object.keys(e)){if(Z.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!JM.has(t)||e[t]==null){Z.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Z.debug("sanitizing object",t),ru(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(Z.debug("sanitizing css option",t),e[t]=tF(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Z.debug("After sanitization",e)}},"sanitizeDirective"),tF=C(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"),Mo=Object.freeze(hC),Tn=C(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Br=$e({},Mo),iu,es=[],Xl=$e({},Mo),md=C((e,t)=>{let r=$e({},e),i={};for(const n of t)fC(n),i=$e(i,n);if(r=$e(r,i),i.theme&&i.theme in dn){const n=$e({},iu),a=$e(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in dn&&(r.themeVariables=dn[r.theme].getThemeVariables(a))}return Xl=r,gC(Xl),Xl},"updateCurrentConfig"),eF=C(e=>(Br=$e({},Mo),Br=$e(Br,e),e.theme&&dn[e.theme]&&(Br.themeVariables=dn[e.theme].getThemeVariables(e.themeVariables)),md(Br,es),Br),"setSiteConfig"),rF=C(e=>{iu=$e({},e)},"saveConfigFromInitialize"),iF=C(e=>(Br=$e(Br,e),md(Br,es),Br),"updateSiteConfig"),uC=C(()=>$e({},Br),"getSiteConfig"),dC=C(e=>(gC(e),$e(Xl,e),de()),"setConfig"),de=C(()=>$e({},Xl),"getConfig"),fC=C(e=>{e&&(["secure",...Br.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Z.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"&&fC(e[t])}))},"sanitize"),nF=C(e=>{var t;ru(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),es.push(e),md(Br,es)},"addDirective"),nu=C((e=Br)=>{es=[],md(e,es)},"reset"),aF={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."},B4={},pC=C(e=>{B4[e]||(Z.warn(aF[e]),B4[e]=!0)},"issueWarning"),gC=C(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&pC("LAZY_LOAD_DEPRECATED")},"checkConfig"),sG=C(()=>{let e={};iu&&(e=$e(e,iu));for(const t of es)e=$e(e,t);return e},"getUserDefinedConfig"),xr=C(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&pC("FLOWCHART_HTML_LABELS_DEPRECATED"),Tn(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),Hc=/<br\s*\/?>/gi,sF=C(e=>e?xC(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),oF=(()=>{let e=!1;return()=>{e||(mC(),e=!0)}})();function mC(){const e="data-temp-href-target";Eo.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Eo.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"))})}C(mC,"setupDompurifyHooks");var yC=C(e=>(oF(),Eo.sanitize(e)),"removeScript"),L4=C((e,t)=>{if(xr(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=yC(e):r!=="loose"&&(e=xC(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=uF(e))}return e},"sanitizeMore"),Si=C((e,t)=>e&&(t.dompurifyConfig?e=Eo.sanitize(L4(e,t),t.dompurifyConfig).toString():e=Eo.sanitize(L4(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),lF=C((e,t)=>typeof e=="string"?Si(e,t):e.flat().map(r=>Si(r,t)),"sanitizeTextOrArray"),cF=C(e=>Hc.test(e),"hasBreaks"),hF=C(e=>e.split(Hc),"splitBreaks"),uF=C(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),xC=C(e=>e.replace(Hc,"#br#"),"breakToPlaceholder"),dF=C(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),fF=C(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),pF=C(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),A4=C(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];gF(a,s)&&(n=a+","+s,i++,r.pop())}r.push(mF(n))}return r.join("")},"parseGenericTypes"),C1=C((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),gF=C((e,t)=>{const r=C1(e,"~"),i=C1(t,"~");return r===1&&i===1},"shouldCombineSets"),mF=C(e=>{const t=C1(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"),E4=C(()=>window.MathMLElement!==void 0,"isMathMLSupported"),k1=/\$\$(.*)\$\$/g,Cc=C(e=>{var t;return(((t=e.match(k1))==null?void 0:t.length)??0)>0},"hasKatex"),oG=C(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await vC(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),yF=C(async(e,t)=>{if(!Cc(e))return e;if(!(E4()||t.legacyMathML||t.forceLegacyMathML))return e.replace(k1,"MathML is unsupported in this environment.");{const{default:r}=await Pt(async()=>{const{default:n}=await Promise.resolve().then(()=>YE);return{default:n}},void 0),i=t.forceLegacyMathML||!E4()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Hc).map(n=>Cc(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(k1,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),vC=C(async(e,t)=>Si(await yF(e,t),t),"renderKatexSanitized"),Uc={getRows:sF,sanitizeText:Si,sanitizeTextOrArray:lF,hasBreaks:cF,splitBreaks:hF,lineBreakRegex:Hc,removeScript:yC,getUrl:dF,evaluate:Tn,getMax:fF,getMin:pF},xF=C(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),vF=C(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"),bC=C(function(e,t,r,i){const n=vF(t,r,i);xF(e,n)},"configureSvgSize"),bF=C(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,s=n.height;Z.info(`SVG bounds: ${a}x${s}`,n);let o=0,l=0;Z.info(`Graph bounds: ${o}x${l}`,e),o=a+r*2,l=s+r*2,Z.info(`Calculated bounds: ${o}x${l}`),bC(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"),u0={},CF=C((e,t,r,i)=>{let n="";return e in u0&&u0[e]?n=u0[e]({...r,svgId:i}):Z.warn(`No theme found for ${e}`),` & {
|
|
373
|
+
font-family: ${r.fontFamily};
|
|
374
|
+
font-size: ${r.fontSize};
|
|
375
|
+
fill: ${r.textColor}
|
|
376
|
+
}
|
|
377
|
+
@keyframes edge-animation-frame {
|
|
378
|
+
from {
|
|
379
|
+
stroke-dashoffset: 0;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
@keyframes dash {
|
|
383
|
+
to {
|
|
384
|
+
stroke-dashoffset: 0;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
& .edge-animation-slow {
|
|
388
|
+
stroke-dasharray: 9,5 !important;
|
|
389
|
+
stroke-dashoffset: 900;
|
|
390
|
+
animation: dash 50s linear infinite;
|
|
391
|
+
stroke-linecap: round;
|
|
392
|
+
}
|
|
393
|
+
& .edge-animation-fast {
|
|
394
|
+
stroke-dasharray: 9,5 !important;
|
|
395
|
+
stroke-dashoffset: 900;
|
|
396
|
+
animation: dash 20s linear infinite;
|
|
397
|
+
stroke-linecap: round;
|
|
398
|
+
}
|
|
399
|
+
/* Classes common for multiple diagrams */
|
|
400
|
+
|
|
401
|
+
& .error-icon {
|
|
402
|
+
fill: ${r.errorBkgColor};
|
|
403
|
+
}
|
|
404
|
+
& .error-text {
|
|
405
|
+
fill: ${r.errorTextColor};
|
|
406
|
+
stroke: ${r.errorTextColor};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
& .edge-thickness-normal {
|
|
410
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
411
|
+
}
|
|
412
|
+
& .edge-thickness-thick {
|
|
413
|
+
stroke-width: 3.5px
|
|
414
|
+
}
|
|
415
|
+
& .edge-pattern-solid {
|
|
416
|
+
stroke-dasharray: 0;
|
|
417
|
+
}
|
|
418
|
+
& .edge-thickness-invisible {
|
|
419
|
+
stroke-width: 0;
|
|
420
|
+
fill: none;
|
|
421
|
+
}
|
|
422
|
+
& .edge-pattern-dashed{
|
|
423
|
+
stroke-dasharray: 3;
|
|
424
|
+
}
|
|
425
|
+
.edge-pattern-dotted {
|
|
426
|
+
stroke-dasharray: 2;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
& .marker {
|
|
430
|
+
fill: ${r.lineColor};
|
|
431
|
+
stroke: ${r.lineColor};
|
|
432
|
+
}
|
|
433
|
+
& .marker.cross {
|
|
434
|
+
stroke: ${r.lineColor};
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
& svg {
|
|
438
|
+
font-family: ${r.fontFamily};
|
|
439
|
+
font-size: ${r.fontSize};
|
|
440
|
+
}
|
|
441
|
+
& p {
|
|
442
|
+
margin: 0
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
${n}
|
|
446
|
+
.node .neo-node {
|
|
447
|
+
stroke: ${r.nodeBorder};
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
451
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
452
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
[data-look="neo"].node path {
|
|
457
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
458
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
[data-look="neo"].node .outer-path {
|
|
462
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
[data-look="neo"].node .neo-line path {
|
|
466
|
+
stroke: ${r.nodeBorder};
|
|
467
|
+
filter: none;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
[data-look="neo"].node circle{
|
|
471
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
472
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
[data-look="neo"].node circle .state-start{
|
|
476
|
+
fill: #000000;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
[data-look="neo"].icon-shape .icon {
|
|
480
|
+
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
481
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
485
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
486
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
${t}
|
|
490
|
+
`},"getStyles"),kF=C((e,t)=>{t!==void 0&&(u0[e]=t)},"addStylesForDiagram"),wF=CF,CC={};KE(CC,{clear:()=>SF,getAccDescription:()=>LF,getAccTitle:()=>_F,getDiagramTitle:()=>EF,setAccDescription:()=>BF,setAccTitle:()=>TF,setDiagramTitle:()=>AF});var Vm="",Xm="",Qm="",Km=C(e=>Si(e,de()),"sanitizeText"),SF=C(()=>{Vm="",Qm="",Xm=""},"clear"),TF=C(e=>{Vm=Km(e).replace(/^\s+/g,"")},"setAccTitle"),_F=C(()=>Vm,"getAccTitle"),BF=C(e=>{Qm=Km(e).replace(/\n\s+/g,`
|
|
491
|
+
`)},"setAccDescription"),LF=C(()=>Qm,"getAccDescription"),AF=C(e=>{Xm=Km(e)},"setDiagramTitle"),EF=C(()=>Xm,"getDiagramTitle"),M4=Z,MF=Ym,qt=de,lG=dC,cG=Mo,Zm=C(e=>Si(e,qt()),"sanitizeText"),FF=bF,$F=C(()=>CC,"getCommonDb"),au={},su=C((e,t,r)=>{var i;au[e]&&M4.warn(`Diagram with id ${e} already registered. Overwriting.`),au[e]=t,r&&oC(e,r),kF(e,t.styles),(i=t.injectUtils)==null||i.call(t,M4,MF,qt,Zm,FF,$F(),()=>{})},"registerDiagram"),w1=C(e=>{if(e in au)return au[e];throw new IF(e)},"getDiagram"),xo,IF=(xo=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},C(xo,"DiagramNotFoundError"),xo),zF={value:()=>{}};function kC(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new d0(r)}function d0(e){this._=e}function DF(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}d0.prototype=kC.prototype={constructor:d0,on:function(e,t){var r=this._,i=DF(e+"",r),n,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=RF(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=F4(r[n],e.name,t);else if(t==null)for(n in r)r[n]=F4(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new d0(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function RF(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function F4(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=zF,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var S1="http://www.w3.org/1999/xhtml";const $4={svg:"http://www.w3.org/2000/svg",xhtml:S1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yd(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),$4.hasOwnProperty(t)?{space:$4[t],local:e}:e}function OF(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===S1&&t.documentElement.namespaceURI===S1?t.createElement(e):t.createElementNS(r,e)}}function PF(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wC(e){var t=yd(e);return(t.local?PF:OF)(t)}function NF(){}function Jm(e){return e==null?NF:function(){return this.querySelector(e)}}function jF(e){typeof e!="function"&&(e=Jm(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=new Array(s),l,c,h=0;h<s;++h)(l=a[h])&&(c=e.call(l,l.__data__,h,a))&&("__data__"in l&&(c.__data__=l.__data__),o[h]=c);return new Ur(i,this._parents)}function qF(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function WF(){return[]}function SC(e){return e==null?WF:function(){return this.querySelectorAll(e)}}function HF(e){return function(){return qF(e.apply(this,arguments))}}function UF(e){typeof e=="function"?e=HF(e):e=SC(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var s=t[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(i.push(e.call(l,l.__data__,c,s)),n.push(l));return new Ur(i,n)}function TC(e){return function(){return this.matches(e)}}function _C(e){return function(t){return t.matches(e)}}var YF=Array.prototype.find;function GF(e){return function(){return YF.call(this.children,e)}}function VF(){return this.firstElementChild}function XF(e){return this.select(e==null?VF:GF(typeof e=="function"?e:_C(e)))}var QF=Array.prototype.filter;function KF(){return Array.from(this.children)}function ZF(e){return function(){return QF.call(this.children,e)}}function JF(e){return this.selectAll(e==null?KF:ZF(typeof e=="function"?e:_C(e)))}function t$(e){typeof e!="function"&&(e=TC(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new Ur(i,this._parents)}function BC(e){return new Array(e.length)}function e$(){return new Ur(this._enter||this._groups.map(BC),this._parents)}function ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ou.prototype={constructor:ou,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function r$(e){return function(){return e}}function i$(e,t,r,i,n,a){for(var s=0,o,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],i[s]=o):r[s]=new ou(e,a[s]);for(;s<l;++s)(o=t[s])&&(n[s]=o)}function n$(e,t,r,i,n,a,s){var o,l,c=new Map,h=t.length,u=a.length,f=new Array(h),d;for(o=0;o<h;++o)(l=t[o])&&(f[o]=d=s.call(l,l.__data__,o,t)+"",c.has(d)?n[o]=l:c.set(d,l));for(o=0;o<u;++o)d=s.call(e,a[o],o,a)+"",(l=c.get(d))?(i[o]=l,l.__data__=a[o],c.delete(d)):r[o]=new ou(e,a[o]);for(o=0;o<h;++o)(l=t[o])&&c.get(f[o])===l&&(n[o]=l)}function a$(e){return e.__data__}function s$(e,t){if(!arguments.length)return Array.from(this,a$);var r=t?n$:i$,i=this._parents,n=this._groups;typeof e!="function"&&(e=r$(e));for(var a=n.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var h=i[c],u=n[c],f=u.length,d=o$(e.call(h,h&&h.__data__,c,i)),g=d.length,p=o[c]=new Array(g),m=s[c]=new Array(g),y=l[c]=new Array(f);r(h,u,p,m,y,d,t);for(var x=0,k=0,T,_;x<g;++x)if(T=p[x]){for(x>=k&&(k=x+1);!(_=m[k])&&++k<g;);T._next=_||null}}return s=new Ur(s,i),s._enter=o,s._exit=l,s}function o$(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function l$(){return new Ur(this._exit||this._groups.map(BC),this._parents)}function c$(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function h$(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,s=Math.min(n,a),o=new Array(n),l=0;l<s;++l)for(var c=r[l],h=i[l],u=c.length,f=o[l]=new Array(u),d,g=0;g<u;++g)(d=c[g]||h[g])&&(f[g]=d);for(;l<n;++l)o[l]=r[l];return new Ur(o,this._parents)}function u$(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],s;--n>=0;)(s=i[n])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function d$(e){e||(e=f$);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var s=r[a],o=s.length,l=n[a]=new Array(o),c,h=0;h<o;++h)(c=s[h])&&(l[h]=c);l.sort(t)}return new Ur(n,this._parents).order()}function f$(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function p$(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function g$(){return Array.from(this)}function m$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var s=i[n];if(s)return s}return null}function y$(){let e=0;for(const t of this)++e;return e}function x$(){return!this.node()}function v$(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,s=n.length,o;a<s;++a)(o=n[a])&&e.call(o,o.__data__,a,n);return this}function b$(e){return function(){this.removeAttribute(e)}}function C$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function k$(e,t){return function(){this.setAttribute(e,t)}}function w$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function S$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function T$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function _$(e,t){var r=yd(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?C$:b$:typeof t=="function"?r.local?T$:S$:r.local?w$:k$)(r,t))}function LC(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function B$(e){return function(){this.style.removeProperty(e)}}function L$(e,t,r){return function(){this.style.setProperty(e,t,r)}}function A$(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function E$(e,t,r){return arguments.length>1?this.each((t==null?B$:typeof t=="function"?A$:L$)(e,t,r??"")):Fo(this.node(),e)}function Fo(e,t){return e.style.getPropertyValue(t)||LC(e).getComputedStyle(e,null).getPropertyValue(t)}function M$(e){return function(){delete this[e]}}function F$(e,t){return function(){this[e]=t}}function $$(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function I$(e,t){return arguments.length>1?this.each((t==null?M$:typeof t=="function"?$$:F$)(e,t)):this.node()[e]}function AC(e){return e.trim().split(/^|\s+/)}function t2(e){return e.classList||new EC(e)}function EC(e){this._node=e,this._names=AC(e.getAttribute("class")||"")}EC.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function MC(e,t){for(var r=t2(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function FC(e,t){for(var r=t2(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function z$(e){return function(){MC(this,e)}}function D$(e){return function(){FC(this,e)}}function R$(e,t){return function(){(t.apply(this,arguments)?MC:FC)(this,e)}}function O$(e,t){var r=AC(e+"");if(arguments.length<2){for(var i=t2(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?R$:t?z$:D$)(r,t))}function P$(){this.textContent=""}function N$(e){return function(){this.textContent=e}}function j$(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function q$(e){return arguments.length?this.each(e==null?P$:(typeof e=="function"?j$:N$)(e)):this.node().textContent}function W$(){this.innerHTML=""}function H$(e){return function(){this.innerHTML=e}}function U$(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Y$(e){return arguments.length?this.each(e==null?W$:(typeof e=="function"?U$:H$)(e)):this.node().innerHTML}function G$(){this.nextSibling&&this.parentNode.appendChild(this)}function V$(){return this.each(G$)}function X$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Q$(){return this.each(X$)}function K$(e){var t=typeof e=="function"?e:wC(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Z$(){return null}function J$(e,t){var r=typeof e=="function"?e:wC(e),i=t==null?Z$:typeof t=="function"?t:Jm(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function tI(){var e=this.parentNode;e&&e.removeChild(this)}function eI(){return this.each(tI)}function rI(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function iI(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nI(e){return this.select(e?iI:rI)}function aI(e){return arguments.length?this.property("__data__",e):this.node().__data__}function sI(e){return function(t){e.call(this,t,this.__data__)}}function oI(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function lI(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function cI(e,t,r){return function(){var i=this.__on,n,a=sI(t);if(i){for(var s=0,o=i.length;s<o;++s)if((n=i[s]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function hI(e,t,r){var i=oI(e+""),n,a=i.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,h;l<c;++l)for(n=0,h=o[l];n<a;++n)if((s=i[n]).type===h.type&&s.name===h.name)return h.value}return}for(o=t?cI:lI,n=0;n<a;++n)this.each(o(i[n],t,r));return this}function $C(e,t,r){var i=LC(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function uI(e,t){return function(){return $C(this,e,t)}}function dI(e,t){return function(){return $C(this,e,t.apply(this,arguments))}}function fI(e,t){return this.each((typeof t=="function"?dI:uI)(e,t))}function*pI(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,s;n<a;++n)(s=i[n])&&(yield s)}var IC=[null];function Ur(e,t){this._groups=e,this._parents=t}function Yc(){return new Ur([[document.documentElement]],IC)}function gI(){return this}Ur.prototype=Yc.prototype={constructor:Ur,select:jF,selectAll:UF,selectChild:XF,selectChildren:JF,filter:t$,data:s$,enter:e$,exit:l$,join:c$,merge:h$,selection:gI,order:u$,sort:d$,call:p$,nodes:g$,node:m$,size:y$,empty:x$,each:v$,attr:_$,style:E$,property:I$,classed:O$,text:q$,html:Y$,raise:V$,lower:Q$,append:K$,insert:J$,remove:eI,clone:nI,datum:aI,on:hI,dispatch:fI,[Symbol.iterator]:pI};function zt(e){return typeof e=="string"?new Ur([[document.querySelector(e)]],[document.documentElement]):new Ur([[e]],IC)}function e2(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function zC(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Gc(){}var kc=.7,lu=1/kc,io="\\s*([+-]?\\d+)\\s*",wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ni="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mI=/^#([0-9a-f]{3,8})$/,yI=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),xI=new RegExp(`^rgb\\(${Ni},${Ni},${Ni}\\)$`),vI=new RegExp(`^rgba\\(${io},${io},${io},${wc}\\)$`),bI=new RegExp(`^rgba\\(${Ni},${Ni},${Ni},${wc}\\)$`),CI=new RegExp(`^hsl\\(${wc},${Ni},${Ni}\\)$`),kI=new RegExp(`^hsla\\(${wc},${Ni},${Ni},${wc}\\)$`),I4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};e2(Gc,Sc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z4,formatHex:z4,formatHex8:wI,formatHsl:SI,formatRgb:D4,toString:D4});function z4(){return this.rgb().formatHex()}function wI(){return this.rgb().formatHex8()}function SI(){return DC(this).formatHsl()}function D4(){return this.rgb().formatRgb()}function Sc(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mI.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?R4(t):r===3?new Er(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=yI.exec(e))?new Er(t[1],t[2],t[3],1):(t=xI.exec(e))?new Er(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vI.exec(e))?Dh(t[1],t[2],t[3],t[4]):(t=bI.exec(e))?Dh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CI.exec(e))?N4(t[1],t[2]/100,t[3]/100,1):(t=kI.exec(e))?N4(t[1],t[2]/100,t[3]/100,t[4]):I4.hasOwnProperty(e)?R4(I4[e]):e==="transparent"?new Er(NaN,NaN,NaN,0):null}function R4(e){return new Er(e>>16&255,e>>8&255,e&255,1)}function Dh(e,t,r,i){return i<=0&&(e=t=r=NaN),new Er(e,t,r,i)}function TI(e){return e instanceof Gc||(e=Sc(e)),e?(e=e.rgb(),new Er(e.r,e.g,e.b,e.opacity)):new Er}function T1(e,t,r,i){return arguments.length===1?TI(e):new Er(e,t,r,i??1)}function Er(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}e2(Er,T1,zC(Gc,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new Er(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?kc:Math.pow(kc,e),new Er(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Er(Ya(this.r),Ya(this.g),Ya(this.b),cu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:O4,formatHex:O4,formatHex8:_I,formatRgb:P4,toString:P4}));function O4(){return`#${Na(this.r)}${Na(this.g)}${Na(this.b)}`}function _I(){return`#${Na(this.r)}${Na(this.g)}${Na(this.b)}${Na((isNaN(this.opacity)?1:this.opacity)*255)}`}function P4(){const e=cu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ya(this.r)}, ${Ya(this.g)}, ${Ya(this.b)}${e===1?")":`, ${e})`}`}function cu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ya(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Na(e){return e=Ya(e),(e<16?"0":"")+e.toString(16)}function N4(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yi(e,t,r,i)}function DC(e){if(e instanceof yi)return new yi(e.h,e.s,e.l,e.opacity);if(e instanceof Gc||(e=Sc(e)),!e)return new yi;if(e instanceof yi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),s=NaN,o=a-n,l=(a+n)/2;return o?(t===a?s=(r-i)/o+(r<i)*6:r===a?s=(i-t)/o+2:s=(t-r)/o+4,o/=l<.5?a+n:2-a-n,s*=60):o=l>0&&l<1?0:s,new yi(s,o,l,e.opacity)}function BI(e,t,r,i){return arguments.length===1?DC(e):new yi(e,t,r,i??1)}function yi(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}e2(yi,BI,zC(Gc,{brighter(e){return e=e==null?lu:Math.pow(lu,e),new yi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?kc:Math.pow(kc,e),new yi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Er(Wf(e>=240?e-240:e+120,n,i),Wf(e,n,i),Wf(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new yi(j4(this.h),Rh(this.s),Rh(this.l),cu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=cu(this.opacity);return`${e===1?"hsl(":"hsla("}${j4(this.h)}, ${Rh(this.s)*100}%, ${Rh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function j4(e){return e=(e||0)%360,e<0?e+360:e}function Rh(e){return Math.max(0,Math.min(1,e||0))}function Wf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const r2=e=>()=>e;function RC(e,t){return function(r){return e+r*t}}function LI(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function hG(e,t){var r=t-e;return r?RC(e,r>180||r<-180?r-360*Math.round(r/360):r):r2(isNaN(e)?t:e)}function AI(e){return(e=+e)==1?OC:function(t,r){return r-t?LI(t,r,e):r2(isNaN(t)?r:t)}}function OC(e,t){var r=t-e;return r?RC(e,r):r2(isNaN(e)?t:e)}const q4=function e(t){var r=AI(t);function i(n,a){var s=r((n=T1(n)).r,(a=T1(a)).r),o=r(n.g,a.g),l=r(n.b,a.b),c=OC(n.opacity,a.opacity);return function(h){return n.r=s(h),n.g=o(h),n.b=l(h),n.opacity=c(h),n+""}}return i.gamma=e,i}(1);function Pn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var _1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hf=new RegExp(_1.source,"g");function EI(e){return function(){return e}}function MI(e){return function(t){return e(t)+""}}function FI(e,t){var r=_1.lastIndex=Hf.lastIndex=0,i,n,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(i=_1.exec(e))&&(n=Hf.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(i=i[0])===(n=n[0])?o[s]?o[s]+=n:o[++s]=n:(o[++s]=null,l.push({i:s,x:Pn(i,n)})),r=Hf.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?MI(l[0].x):EI(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)o[(u=l[h]).i]=u.x(c);return o.join("")})}var W4=180/Math.PI,B1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function PC(e,t,r,i,n,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),e*i<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*W4,skewX:Math.atan(l)*W4,scaleX:s,scaleY:o}}var Oh;function $I(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?B1:PC(t.a,t.b,t.c,t.d,t.e,t.f)}function II(e){return e==null||(Oh||(Oh=document.createElementNS("http://www.w3.org/2000/svg","g")),Oh.setAttribute("transform",e),!(e=Oh.transform.baseVal.consolidate()))?B1:(e=e.matrix,PC(e.a,e.b,e.c,e.d,e.e,e.f))}function NC(e,t,r,i){function n(c){return c.length?c.pop()+" ":""}function a(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push("translate(",null,t,null,r);g.push({i:p-4,x:Pn(c,u)},{i:p-2,x:Pn(h,f)})}else(u||f)&&d.push("translate("+u+t+f+r)}function s(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:Pn(c,h)})):h&&u.push(n(u)+"rotate("+h+i)}function o(c,h,u,f){c!==h?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:Pn(c,h)}):h&&u.push(n(u)+"skewX("+h+i)}function l(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push(n(d)+"scale(",null,",",null,")");g.push({i:p-4,x:Pn(c,u)},{i:p-2,x:Pn(h,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=e(c),h=e(h),a(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(c.rotate,h.rotate,u,f),o(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(d){for(var g=-1,p=f.length,m;++g<p;)u[(m=f[g]).i]=m.x(d);return u.join("")}}}var zI=NC($I,"px, ","px)","deg)"),DI=NC(II,", ",")",")"),$o=0,Ll=0,fl=0,jC=1e3,hu,Al,uu=0,rs=0,xd=0,Tc=typeof performance=="object"&&performance.now?performance:Date,qC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function i2(){return rs||(qC(RI),rs=Tc.now()+xd)}function RI(){rs=0}function du(){this._call=this._time=this._next=null}du.prototype=WC.prototype={constructor:du,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?i2():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:hu=this,Al=this),this._call=e,this._time=r,L1()},stop:function(){this._call&&(this._call=null,this._time=1/0,L1())}};function WC(e,t,r){var i=new du;return i.restart(e,t,r),i}function OI(){i2(),++$o;for(var e=hu,t;e;)(t=rs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$o}function H4(){rs=(uu=Tc.now())+xd,$o=Ll=0;try{OI()}finally{$o=0,NI(),rs=0}}function PI(){var e=Tc.now(),t=e-uu;t>jC&&(xd-=t,uu=e)}function NI(){for(var e,t=hu,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:hu=r);Al=e,L1(i)}function L1(e){if(!$o){Ll&&(Ll=clearTimeout(Ll));var t=e-rs;t>24?(e<1/0&&(Ll=setTimeout(H4,e-Tc.now()-xd)),fl&&(fl=clearInterval(fl))):(fl||(uu=Tc.now(),fl=setInterval(PI,jC)),$o=1,qC(H4))}}function U4(e,t,r){var i=new du;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var jI=kC("start","end","cancel","interrupt"),qI=[],HC=0,Y4=1,A1=2,f0=3,G4=4,E1=5,p0=6;function vd(e,t,r,i,n,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;WI(e,r,{name:t,index:i,group:n,on:jI,tween:qI,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:HC})}function n2(e,t){var r=_i(e,t);if(r.state>HC)throw new Error("too late; already scheduled");return r}function Vi(e,t){var r=_i(e,t);if(r.state>f0)throw new Error("too late; already running");return r}function _i(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function WI(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=WC(a,0,r.time);function a(c){r.state=Y4,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}function s(c){var h,u,f,d;if(r.state!==Y4)return l();for(h in i)if(d=i[h],d.name===r.name){if(d.state===f0)return U4(s);d.state===G4?(d.state=p0,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[h]):+h<t&&(d.state=p0,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[h])}if(U4(function(){r.state===f0&&(r.state=G4,r.timer.restart(o,r.delay,r.time),o(c))}),r.state=A1,r.on.call("start",e,e.__data__,r.index,r.group),r.state===A1){for(r.state=f0,n=new Array(f=r.tween.length),h=0,u=-1;h<f;++h)(d=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function o(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=E1,1),u=-1,f=n.length;++u<f;)n[u].call(e,h);r.state===E1&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=p0,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function HI(e,t){var r=e.__transition,i,n,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){a=!1;continue}n=i.state>A1&&i.state<E1,i.state=p0,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function UI(e){return this.each(function(){HI(this,e)})}function YI(e,t){var r,i;return function(){var n=Vi(this,e),a=n.tween;if(a!==r){i=r=a;for(var s=0,o=i.length;s<o;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}n.tween=i}}function GI(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=Vi(this,e),s=a.tween;if(s!==i){n=(i=s).slice();for(var o={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=o;break}l===c&&n.push(o)}a.tween=n}}function VI(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=_i(this.node(),r).tween,n=0,a=i.length,s;n<a;++n)if((s=i[n]).name===e)return s.value;return null}return this.each((t==null?YI:GI)(r,e,t))}function a2(e,t,r){var i=e._id;return e.each(function(){var n=Vi(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return _i(n,i).value[t]}}function UC(e,t){var r;return(typeof t=="number"?Pn:t instanceof Sc?q4:(r=Sc(t))?(t=r,q4):FI)(e,t)}function XI(e){return function(){this.removeAttribute(e)}}function QI(e){return function(){this.removeAttributeNS(e.space,e.local)}}function KI(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttribute(e);return s===n?null:s===i?a:a=t(i=s,r)}}function ZI(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===n?null:s===i?a:a=t(i=s,r)}}function JI(e,t,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o)))}}function tz(e,t,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o)))}}function ez(e,t){var r=yd(e),i=r==="transform"?DI:UC;return this.attrTween(e,typeof t=="function"?(r.local?tz:JI)(r,i,a2(this,"attr."+e,t)):t==null?(r.local?QI:XI)(r):(r.local?ZI:KI)(r,i,t))}function rz(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function iz(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function nz(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&iz(e,a)),r}return n._value=t,n}function az(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&rz(e,a)),r}return n._value=t,n}function sz(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=yd(e);return this.tween(r,(i.local?nz:az)(i,t))}function oz(e,t){return function(){n2(this,e).delay=+t.apply(this,arguments)}}function lz(e,t){return t=+t,function(){n2(this,e).delay=t}}function cz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?oz:lz)(t,e)):_i(this.node(),t).delay}function hz(e,t){return function(){Vi(this,e).duration=+t.apply(this,arguments)}}function uz(e,t){return t=+t,function(){Vi(this,e).duration=t}}function dz(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hz:uz)(t,e)):_i(this.node(),t).duration}function fz(e,t){if(typeof t!="function")throw new Error;return function(){Vi(this,e).ease=t}}function pz(e){var t=this._id;return arguments.length?this.each(fz(t,e)):_i(this.node(),t).ease}function gz(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Vi(this,e).ease=r}}function mz(e){if(typeof e!="function")throw new Error;return this.each(gz(this._id,e))}function yz(e){typeof e!="function"&&(e=TC(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=[],l,c=0;c<s;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&o.push(l);return new vn(i,this._parents,this._name,this._id)}function xz(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),s=new Array(i),o=0;o<a;++o)for(var l=t[o],c=r[o],h=l.length,u=s[o]=new Array(h),f,d=0;d<h;++d)(f=l[d]||c[d])&&(u[d]=f);for(;o<i;++o)s[o]=t[o];return new vn(s,this._parents,this._name,this._id)}function vz(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function bz(e,t,r){var i,n,a=vz(t)?n2:Vi;return function(){var s=a(this,e),o=s.on;o!==i&&(n=(i=o).copy()).on(t,r),s.on=n}}function Cz(e,t){var r=this._id;return arguments.length<2?_i(this.node(),r).on.on(e):this.each(bz(r,e,t))}function kz(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function wz(){return this.on("end.remove",kz(this._id))}function Sz(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Jm(e));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var o=i[s],l=o.length,c=a[s]=new Array(l),h,u,f=0;f<l;++f)(h=o[f])&&(u=e.call(h,h.__data__,f,o))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,vd(c[f],t,r,f,c,_i(h,r)));return new vn(a,this._parents,t,r)}function Tz(e){var t=this._name,r=this._id;typeof e!="function"&&(e=SC(e));for(var i=this._groups,n=i.length,a=[],s=[],o=0;o<n;++o)for(var l=i[o],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=e.call(h,h.__data__,u,l),d,g=_i(h,r),p=0,m=f.length;p<m;++p)(d=f[p])&&vd(d,t,r,p,f,g);a.push(f),s.push(h)}return new vn(a,s,t,r)}var _z=Yc.prototype.constructor;function Bz(){return new _z(this._groups,this._parents)}function Lz(e,t){var r,i,n;return function(){var a=Fo(this,e),s=(this.style.removeProperty(e),Fo(this,e));return a===s?null:a===r&&s===i?n:n=t(r=a,i=s)}}function YC(e){return function(){this.style.removeProperty(e)}}function Az(e,t,r){var i,n=r+"",a;return function(){var s=Fo(this,e);return s===n?null:s===i?a:a=t(i=s,r)}}function Ez(e,t,r){var i,n,a;return function(){var s=Fo(this,e),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),Fo(this,e))),s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o))}}function Mz(e,t){var r,i,n,a="style."+t,s="end."+a,o;return function(){var l=Vi(this,e),c=l.on,h=l.value[a]==null?o||(o=YC(t)):void 0;(c!==r||n!==h)&&(i=(r=c).copy()).on(s,n=h),l.on=i}}function Fz(e,t,r){var i=(e+="")=="transform"?zI:UC;return t==null?this.styleTween(e,Lz(e,i)).on("end.style."+e,YC(e)):typeof t=="function"?this.styleTween(e,Ez(e,i,a2(this,"style."+e,t))).each(Mz(this._id,e)):this.styleTween(e,Az(e,i,t),r).on("end.style."+e,null)}function $z(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function Iz(e,t,r){var i,n;function a(){var s=t.apply(this,arguments);return s!==n&&(i=(n=s)&&$z(e,s,r)),i}return a._value=t,a}function zz(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Iz(e,t,r??""))}function Dz(e){return function(){this.textContent=e}}function Rz(e){return function(){var t=e(this);this.textContent=t??""}}function Oz(e){return this.tween("text",typeof e=="function"?Rz(a2(this,"text",e)):Dz(e==null?"":e+""))}function Pz(e){return function(t){this.textContent=e.call(this,t)}}function Nz(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&Pz(n)),t}return i._value=e,i}function jz(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Nz(e))}function qz(){for(var e=this._name,t=this._id,r=GC(),i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,l,c=0;c<o;++c)if(l=s[c]){var h=_i(l,t);vd(l,e,r,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new vn(i,this._parents,e,r)}function Wz(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--n===0&&a()}};r.each(function(){var c=Vi(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),n===0&&a()})}var Hz=0;function vn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function GC(){return++Hz}var tn=Yc.prototype;vn.prototype={constructor:vn,select:Sz,selectAll:Tz,selectChild:tn.selectChild,selectChildren:tn.selectChildren,filter:yz,merge:xz,selection:Bz,transition:qz,call:tn.call,nodes:tn.nodes,node:tn.node,size:tn.size,empty:tn.empty,each:tn.each,on:Cz,attr:ez,attrTween:sz,style:Fz,styleTween:zz,text:Oz,textTween:jz,remove:wz,tween:VI,delay:cz,duration:dz,ease:pz,easeVarying:mz,end:Wz,[Symbol.iterator]:tn[Symbol.iterator]};function Uz(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Yz={time:null,delay:0,duration:250,ease:Uz};function Gz(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Vz(e){var t,r;e instanceof vn?(t=e._id,e=e._name):(t=GC(),(r=Yz).time=i2(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&vd(l,e,t,c,s,r||Gz(l,t));return new vn(i,this._parents,e,t)}Yc.prototype.interrupt=UI;Yc.prototype.transition=Vz;const M1=Math.PI,F1=2*M1,$a=1e-6,Xz=F1-$a;function VC(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Qz(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return VC;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class Kz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?VC:Qz(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,s){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=i-t,c=n-r,h=s-t,u=o-r,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>$a)if(!(Math.abs(u*l-c*h)>$a)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-s,g=n-o,p=l*l+c*c,m=d*d+g*g,y=Math.sqrt(p),x=Math.sqrt(f),k=a*Math.tan((M1-Math.acos((p+f-m)/(2*y*x)))/2),T=k/x,_=k/y;Math.abs(T-1)>$a&&this._append`L${t+T*h},${r+T*u}`,this._append`A${a},${a},0,0,${+(u*d>h*g)},${this._x1=t+_*l},${this._y1=r+_*c}`}}arc(t,r,i,n,a,s){if(t=+t,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),c=t+o,h=r+l,u=1^s,f=s?n-a:a-n;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>$a||Math.abs(this._y1-h)>$a)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%F1+F1),f>Xz?this._append`A${i},${i},0,1,${u},${t-o},${r-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:f>$a&&this._append`A${i},${i},0,${+(f>=M1)},${u},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function _s(e){return function(){return e}}const uG=Math.abs,dG=Math.atan2,fG=Math.cos,pG=Math.max,gG=Math.min,mG=Math.sin,yG=Math.sqrt,V4=1e-12,s2=Math.PI,X4=s2/2,xG=2*s2;function vG(e){return e>1?0:e<-1?s2:Math.acos(e)}function bG(e){return e>=1?X4:e<=-1?-X4:Math.asin(e)}function Zz(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new Kz(t)}function Jz(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function XC(e){this._context=e}XC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ql(e){return new XC(e)}function tD(e){return e[0]}function eD(e){return e[1]}function rD(e,t){var r=_s(!0),i=null,n=Ql,a=null,s=Zz(o);e=typeof e=="function"?e:e===void 0?tD:_s(e),t=typeof t=="function"?t:t===void 0?eD:_s(t);function o(l){var c,h=(l=Jz(l)).length,u,f=!1,d;for(i==null&&(a=n(d=s())),c=0;c<=h;++c)!(c<h&&r(u=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(u,c,l),+t(u,c,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:_s(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:_s(+l),o):t},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:_s(!!l),o):r},o.curve=function(l){return arguments.length?(n=l,i!=null&&(a=n(i)),o):n},o.context=function(l){return arguments.length?(l==null?i=a=null:a=n(i=l),o):i},o}class QC{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function KC(e){return new QC(e,!0)}function ZC(e){return new QC(e,!1)}function da(){}function fu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function bd(e){this._context=e}bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:fu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:fu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $1(e){return new bd(e)}function JC(e){this._context=e}JC.prototype={areaStart:da,areaEnd:da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:fu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iD(e){return new JC(e)}function t7(e){this._context=e}t7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:fu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nD(e){return new t7(e)}function e7(e,t){this._basis=new bd(e),this._beta=t}e7.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,s=t[r]-n,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*e[o]+(1-this._beta)*(i+l*a),this._beta*t[o]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const aD=function e(t){function r(i){return t===1?new bd(i):new e7(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function pu(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function o2(e,t){this._context=e,this._k=(1-t)/6}o2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pu(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:pu(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const r7=function e(t){function r(i){return new o2(i,t)}return r.tension=function(i){return e(+i)},r}(0);function l2(e,t){this._context=e,this._k=(1-t)/6}l2.prototype={areaStart:da,areaEnd:da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:pu(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sD=function e(t){function r(i){return new l2(i,t)}return r.tension=function(i){return e(+i)},r}(0);function c2(e,t){this._context=e,this._k=(1-t)/6}c2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pu(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oD=function e(t){function r(i){return new c2(i,t)}return r.tension=function(i){return e(+i)},r}(0);function h2(e,t,r){var i=e._x1,n=e._y1,a=e._x2,s=e._y2;if(e._l01_a>V4){var o=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>V4){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/h,s=(s*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,n,a,s,e._x2,e._y2)}function i7(e,t){this._context=e,this._alpha=t}i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:h2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const n7=function e(t){function r(i){return t?new i7(i,t):new o2(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function a7(e,t){this._context=e,this._alpha=t}a7.prototype={areaStart:da,areaEnd:da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:h2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lD=function e(t){function r(i){return t?new a7(i,t):new l2(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function s7(e,t){this._context=e,this._alpha=t}s7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:h2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cD=function e(t){function r(i){return t?new s7(i,t):new c2(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function o7(e){this._context=e}o7.prototype={areaStart:da,areaEnd:da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hD(e){return new o7(e)}function Q4(e){return e<0?-1:1}function K4(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),s=(r-e._y1)/(n||i<0&&-0),o=(a*n+s*i)/(i+n);return(Q4(a)+Q4(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function Z4(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Uf(e,t,r){var i=e._x0,n=e._y0,a=e._x1,s=e._y1,o=(a-i)/3;e._context.bezierCurveTo(i+o,n+o*t,a-o,s-o*r,a,s)}function gu(e){this._context=e}gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Uf(this,this._t0,Z4(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Uf(this,Z4(this,r=K4(this,e,t)),r);break;default:Uf(this,this._t0,r=K4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function l7(e){this._context=new c7(e)}(l7.prototype=Object.create(gu.prototype)).point=function(e,t){gu.prototype.point.call(this,t,e)};function c7(e){this._context=e}c7.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function h7(e){return new gu(e)}function u7(e){return new l7(e)}function d7(e){this._context=e}d7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=J4(e),n=J4(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function J4(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),s=new Array(r);for(n[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,s[t]-=i*s[t-1];for(n[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(s[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function f7(e){return new d7(e)}function Cd(e,t){this._context=e,this._t=t}Cd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function p7(e){return new Cd(e,.5)}function g7(e){return new Cd(e,0)}function m7(e){return new Cd(e,1)}function El(e,t,r){this.k=e,this.x=t,this.y=r}El.prototype={constructor:El,scale:function(e){return e===1?this:new El(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new El(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};El.prototype;var uD=C(e=>{var n;const{securityLevel:t}=qt();let r=zt("body");if(t==="sandbox"){const s=((n=zt(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=zt(s.body)}return r.select(`#${e}`)},"selectSvgElement");function u2(e){return typeof e>"u"||e===null}C(u2,"isNothing");function y7(e){return typeof e=="object"&&e!==null}C(y7,"isObject");function x7(e){return Array.isArray(e)?e:u2(e)?[]:[e]}C(x7,"toArray");function v7(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}C(v7,"extend");function b7(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}C(b7,"repeat");function C7(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}C(C7,"isNegativeZero");var dD=u2,fD=y7,pD=x7,gD=b7,mD=C7,yD=v7,Ie={isNothing:dD,isObject:fD,toArray:pD,repeat:gD,isNegativeZero:mD,extend:yD};function d2(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
492
|
+
|
|
493
|
+
`+e.mark.snippet),i+" "+r):i}C(d2,"formatError");function Io(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=d2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}C(Io,"YAMLException$1");Io.prototype=Object.create(Error.prototype);Io.prototype.constructor=Io;Io.prototype.toString=C(function(t){return this.name+": "+d2(this,t)},"toString");var Lr=Io;function g0(e,t,r,i,n){var a="",s="",o=Math.floor(n/2)-1;return i-t>o&&(a=" ... ",t=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+s,pos:i-t+a.length}}C(g0,"getLine");function m0(e,t){return Ie.repeat(" ",t-e.length)+e}C(m0,"padStart");function k7(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",l,c,h=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)c=g0(e.buffer,i[s-l],n[s-l],e.position-(i[s]-i[s-l]),u),o=Ie.repeat(" ",t.indent)+m0((e.line-l+1).toString(),h)+" | "+c.str+`
|
|
494
|
+
`+o;for(c=g0(e.buffer,i[s],n[s],e.position,u),o+=Ie.repeat(" ",t.indent)+m0((e.line+1).toString(),h)+" | "+c.str+`
|
|
495
|
+
`,o+=Ie.repeat("-",t.indent+h+3+c.pos)+`^
|
|
496
|
+
`,l=1;l<=t.linesAfter&&!(s+l>=n.length);l++)c=g0(e.buffer,i[s+l],n[s+l],e.position-(i[s]-i[s+l]),u),o+=Ie.repeat(" ",t.indent)+m0((e.line+l+1).toString(),h)+" | "+c.str+`
|
|
497
|
+
`;return o.replace(/\n$/,"")}C(k7,"makeSnippet");var xD=k7,vD=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],bD=["scalar","sequence","mapping"];function w7(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}C(w7,"compileStyleAliases");function S7(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(vD.indexOf(r)===-1)throw new Lr('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=w7(t.styleAliases||null),bD.indexOf(this.kind)===-1)throw new Lr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}C(S7,"Type$1");var ar=S7;function I1(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}C(I1,"compileList");function T7(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(C(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}C(T7,"compileMap");function mu(e){return this.extend(e)}C(mu,"Schema$1");mu.prototype.extend=C(function(t){var r=[],i=[];if(t instanceof ar)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Lr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof ar))throw new Lr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Lr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Lr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof ar))throw new Lr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(mu.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=I1(n,"implicit"),n.compiledExplicit=I1(n,"explicit"),n.compiledTypeMap=T7(n.compiledImplicit,n.compiledExplicit),n},"extend");var CD=mu,kD=new ar("tag:yaml.org,2002:str",{kind:"scalar",construct:C(function(e){return e!==null?e:""},"construct")}),wD=new ar("tag:yaml.org,2002:seq",{kind:"sequence",construct:C(function(e){return e!==null?e:[]},"construct")}),SD=new ar("tag:yaml.org,2002:map",{kind:"mapping",construct:C(function(e){return e!==null?e:{}},"construct")}),TD=new CD({explicit:[kD,wD,SD]});function _7(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}C(_7,"resolveYamlNull");function B7(){return null}C(B7,"constructYamlNull");function L7(e){return e===null}C(L7,"isNull");var _D=new ar("tag:yaml.org,2002:null",{kind:"scalar",resolve:_7,construct:B7,predicate:L7,represent:{canonical:C(function(){return"~"},"canonical"),lowercase:C(function(){return"null"},"lowercase"),uppercase:C(function(){return"NULL"},"uppercase"),camelcase:C(function(){return"Null"},"camelcase"),empty:C(function(){return""},"empty")},defaultStyle:"lowercase"});function A7(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}C(A7,"resolveYamlBoolean");function E7(e){return e==="true"||e==="True"||e==="TRUE"}C(E7,"constructYamlBoolean");function M7(e){return Object.prototype.toString.call(e)==="[object Boolean]"}C(M7,"isBoolean");var BD=new ar("tag:yaml.org,2002:bool",{kind:"scalar",resolve:A7,construct:E7,predicate:M7,represent:{lowercase:C(function(e){return e?"true":"false"},"lowercase"),uppercase:C(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:C(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function F7(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}C(F7,"isHexCode");function $7(e){return 48<=e&&e<=55}C($7,"isOctCode");function I7(e){return 48<=e&&e<=57}C(I7,"isDecCode");function z7(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!F7(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!$7(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!I7(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}C(z7,"resolveYamlInteger");function D7(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}C(D7,"constructYamlInteger");function R7(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ie.isNegativeZero(e)}C(R7,"isInteger");var LD=new ar("tag:yaml.org,2002:int",{kind:"scalar",resolve:z7,construct:D7,predicate:R7,represent:{binary:C(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:C(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:C(function(e){return e.toString(10)},"decimal"),hexadecimal:C(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),AD=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function O7(e){return!(e===null||!AD.test(e)||e[e.length-1]==="_")}C(O7,"resolveYamlFloat");function P7(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}C(P7,"constructYamlFloat");var ED=/^[-+]?[0-9]+e/;function N7(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ie.isNegativeZero(e))return"-0.0";return r=e.toString(10),ED.test(r)?r.replace("e",".e"):r}C(N7,"representYamlFloat");function j7(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ie.isNegativeZero(e))}C(j7,"isFloat");var MD=new ar("tag:yaml.org,2002:float",{kind:"scalar",resolve:O7,construct:P7,predicate:j7,represent:N7,defaultStyle:"lowercase"}),q7=TD.extend({implicit:[_D,BD,LD,MD]}),FD=q7,W7=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),H7=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function U7(e){return e===null?!1:W7.exec(e)!==null||H7.exec(e)!==null}C(U7,"resolveYamlTimestamp");function Y7(e){var t,r,i,n,a,s,o,l=0,c=null,h,u,f;if(t=W7.exec(e),t===null&&(t=H7.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(h=+t[10],u=+(t[11]||0),c=(h*60+u)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,a,s,o,l)),c&&f.setTime(f.getTime()-c),f}C(Y7,"constructYamlTimestamp");function G7(e){return e.toISOString()}C(G7,"representYamlTimestamp");var $D=new ar("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:U7,construct:Y7,instanceOf:Date,represent:G7});function V7(e){return e==="<<"||e===null}C(V7,"resolveYamlMerge");var ID=new ar("tag:yaml.org,2002:merge",{kind:"scalar",resolve:V7}),f2=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
498
|
+
\r`;function X7(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=f2;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}C(X7,"resolveYamlBinary");function Q7(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=f2,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}C(Q7,"constructYamlBinary");function K7(e){var t="",r=0,i,n,a=e.length,s=f2;for(i=0;i<a;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}C(K7,"representYamlBinary");function Z7(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}C(Z7,"isBinary");var zD=new ar("tag:yaml.org,2002:binary",{kind:"scalar",resolve:X7,construct:Q7,predicate:Z7,represent:K7}),DD=Object.prototype.hasOwnProperty,RD=Object.prototype.toString;function J7(e){if(e===null)return!0;var t=[],r,i,n,a,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,RD.call(n)!=="[object Object]")return!1;for(a in n)if(DD.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}C(J7,"resolveYamlOmap");function tk(e){return e!==null?e:[]}C(tk,"constructYamlOmap");var OD=new ar("tag:yaml.org,2002:omap",{kind:"sequence",resolve:J7,construct:tk}),PD=Object.prototype.toString;function ek(e){if(e===null)return!0;var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],PD.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}C(ek,"resolveYamlPairs");function rk(e){if(e===null)return[];var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}C(rk,"constructYamlPairs");var ND=new ar("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ek,construct:rk}),jD=Object.prototype.hasOwnProperty;function ik(e){if(e===null)return!0;var t,r=e;for(t in r)if(jD.call(r,t)&&r[t]!==null)return!1;return!0}C(ik,"resolveYamlSet");function nk(e){return e!==null?e:{}}C(nk,"constructYamlSet");var qD=new ar("tag:yaml.org,2002:set",{kind:"mapping",resolve:ik,construct:nk}),ak=FD.extend({implicit:[$D,ID],explicit:[zD,OD,ND,qD]}),fa=Object.prototype.hasOwnProperty,yu=1,sk=2,ok=3,xu=4,Yf=1,WD=2,tv=3,HD=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,UD=/[\x85\u2028\u2029]/,YD=/[,\[\]\{\}]/,lk=/^(?:!|!!|![a-z\-]+!)$/i,ck=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function z1(e){return Object.prototype.toString.call(e)}C(z1,"_class");function Ci(e){return e===10||e===13}C(Ci,"is_EOL");function aa(e){return e===9||e===32}C(aa,"is_WHITE_SPACE");function fr(e){return e===9||e===32||e===10||e===13}C(fr,"is_WS_OR_EOL");function ja(e){return e===44||e===91||e===93||e===123||e===125}C(ja,"is_FLOW_INDICATOR");function hk(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}C(hk,"fromHexCode");function uk(e){return e===120?2:e===117?4:e===85?8:0}C(uk,"escapedHexLen");function dk(e){return 48<=e&&e<=57?e-48:-1}C(dk,"fromDecimalCode");function D1(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
499
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}C(D1,"simpleEscapeSequence");function fk(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}C(fk,"charFromCodepoint");function p2(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}C(p2,"setProperty");var pk=new Array(256),gk=new Array(256);for(Aa=0;Aa<256;Aa++)pk[Aa]=D1(Aa)?1:0,gk[Aa]=D1(Aa);var Aa;function mk(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ak,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}C(mk,"State$1");function g2(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=xD(r),new Lr(t,r)}C(g2,"generateError");function bt(e,t){throw g2(e,t)}C(bt,"throwError");function _c(e,t){e.onWarning&&e.onWarning.call(null,g2(e,t))}C(_c,"throwWarning");var ev={YAML:C(function(t,r,i){var n,a,s;t.version!==null&&bt(t,"duplication of %YAML directive"),i.length!==1&&bt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&bt(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&bt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&_c(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:C(function(t,r,i){var n,a;i.length!==2&&bt(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],lk.test(n)||bt(t,"ill-formed tag handle (first argument) of the TAG directive"),fa.call(t.tagMap,n)&&bt(t,'there is a previously declared suffix for "'+n+'" tag handle'),ck.test(a)||bt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{bt(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function fn(e,t,r,i){var n,a,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||bt(e,"expected valid JSON character");else HD.test(o)&&bt(e,"the stream contains non-printable characters");e.result+=o}}C(fn,"captureSegment");function R1(e,t,r,i){var n,a,s,o;for(Ie.isObject(r)||bt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],fa.call(t,a)||(p2(t,a,r[a]),i[a]=!0)}C(R1,"mergeMappings");function qa(e,t,r,i,n,a,s,o,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&bt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&z1(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&z1(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)R1(e,t,a[c],r);else R1(e,t,a,r);else!e.json&&!fa.call(r,n)&&fa.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,bt(e,"duplicated mapping key")),p2(t,n,a),delete r[n];return t}C(qa,"storeMappingPair");function kd(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):bt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}C(kd,"readLineBreak");function be(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;aa(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Ci(n))for(kd(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&_c(e,"deficient indentation"),i}C(be,"skipSeparationSpace");function Vc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||fr(r)))}C(Vc,"testDocumentSeparator");function wd(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ie.repeat(`
|
|
500
|
+
`,t-1))}C(wd,"writeFoldedLines");function yk(e,t,r){var i,n,a,s,o,l,c,h,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),fr(d)||ja(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),fr(n)||r&&ja(n)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),fr(n)||r&&ja(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),fr(i))break}else{if(e.position===e.lineStart&&Vc(e)||r&&ja(d))break;if(Ci(d))if(l=e.line,c=e.lineStart,h=e.lineIndent,be(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=h;break}}o&&(fn(e,a,s,!1),wd(e,e.line-l),a=s=e.position,o=!1),aa(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return fn(e,a,s,!1),e.result?!0:(e.kind=u,e.result=f,!1)}C(yk,"readPlainScalar");function xk(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(fn(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Ci(r)?(fn(e,i,n,!0),wd(e,be(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Vc(e)?bt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);bt(e,"unexpected end of the stream within a single quoted scalar")}C(xk,"readSingleQuotedScalar");function vk(e,t){var r,i,n,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return fn(e,r,e.position,!0),e.position++,!0;if(o===92){if(fn(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),Ci(o))be(e,!1,t);else if(o<256&&pk[o])e.result+=gk[o],e.position++;else if((s=uk(o))>0){for(n=s,a=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=hk(o))>=0?a=(a<<4)+s:bt(e,"expected hexadecimal character");e.result+=fk(a),e.position++}else bt(e,"unknown escape sequence");r=i=e.position}else Ci(o)?(fn(e,r,i,!0),wd(e,be(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Vc(e)?bt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}bt(e,"unexpected end of the stream within a double quoted scalar")}C(vk,"readDoubleQuotedScalar");function bk(e,t){var r=!0,i,n,a,s=e.tag,o,l=e.anchor,c,h,u,f,d,g=Object.create(null),p,m,y,x;if(x=e.input.charCodeAt(e.position),x===91)h=93,d=!1,o=[];else if(x===123)h=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),x=e.input.charCodeAt(++e.position);x!==0;){if(be(e,!0,t),x=e.input.charCodeAt(e.position),x===h)return e.position++,e.tag=s,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=o,!0;r?x===44&&bt(e,"expected the node content, but found ','"):bt(e,"missed comma between flow collection entries"),m=p=y=null,u=f=!1,x===63&&(c=e.input.charCodeAt(e.position+1),fr(c)&&(u=f=!0,e.position++,be(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,is(e,t,yu,!1,!0),m=e.tag,p=e.result,be(e,!0,t),x=e.input.charCodeAt(e.position),(f||e.line===i)&&x===58&&(u=!0,x=e.input.charCodeAt(++e.position),be(e,!0,t),is(e,t,yu,!1,!0),y=e.result),d?qa(e,o,g,m,p,y,i,n,a):u?o.push(qa(e,null,g,m,p,y,i,n,a)):o.push(p),be(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}bt(e,"unexpected end of the stream within a flow collection")}C(bk,"readFlowCollection");function Ck(e,t){var r,i,n=Yf,a=!1,s=!1,o=t,l=0,c=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)Yf===n?n=u===43?tv:WD:bt(e,"repeat of a chomping mode identifier");else if((h=dk(u))>=0)h===0?bt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?bt(e,"repeat of an indentation width identifier"):(o=t+h-1,s=!0);else break;if(aa(u)){do u=e.input.charCodeAt(++e.position);while(aa(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Ci(u)&&u!==0)}for(;u!==0;){for(kd(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),Ci(u)){l++;continue}if(e.lineIndent<o){n===tv?e.result+=Ie.repeat(`
|
|
501
|
+
`,a?1+l:l):n===Yf&&a&&(e.result+=`
|
|
502
|
+
`);break}for(i?aa(u)?(c=!0,e.result+=Ie.repeat(`
|
|
503
|
+
`,a?1+l:l)):c?(c=!1,e.result+=Ie.repeat(`
|
|
504
|
+
`,l+1)):l===0?a&&(e.result+=" "):e.result+=Ie.repeat(`
|
|
505
|
+
`,l):e.result+=Ie.repeat(`
|
|
506
|
+
`,a?1+l:l),a=!0,s=!0,l=0,r=e.position;!Ci(u)&&u!==0;)u=e.input.charCodeAt(++e.position);fn(e,r,e.position,!1)}return!0}C(Ck,"readBlockScalar");function O1(e,t){var r,i=e.tag,n=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,bt(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!fr(s))));){if(o=!0,e.position++,be(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,is(e,t,ok,!1,!0),a.push(e.result),be(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)bt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}C(O1,"readBlockSequence");function kk(e,t,r){var i,n,a,s,o,l,c=e.tag,h=e.anchor,u={},f=Object.create(null),d=null,g=null,p=null,m=!1,y=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),x=e.input.charCodeAt(e.position);x!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,bt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(x===63||x===58)&&fr(i))x===63?(m&&(qa(e,u,f,d,g,null,s,o,l),d=g=p=null),y=!0,m=!0,n=!0):m?(m=!1,n=!0):bt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=i;else{if(s=e.line,o=e.lineStart,l=e.position,!is(e,r,sk,!1,!0))break;if(e.line===a){for(x=e.input.charCodeAt(e.position);aa(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),fr(x)||bt(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(qa(e,u,f,d,g,null,s,o,l),d=g=p=null),y=!0,m=!1,n=!1,d=e.tag,g=e.result;else if(y)bt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(y)bt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===a||e.lineIndent>t)&&(m&&(s=e.line,o=e.lineStart,l=e.position),is(e,t,xu,!0,n)&&(m?g=e.result:p=e.result),m||(qa(e,u,f,d,g,p,s,o,l),d=g=p=null),be(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&x!==0)bt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&qa(e,u,f,d,g,null,s,o,l),y&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),y}C(kk,"readBlockMapping");function wk(e){var t,r=!1,i=!1,n,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&bt(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):bt(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!fr(s);)s===33&&(i?bt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),lk.test(n)||bt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),YD.test(a)&&bt(e,"tag suffix cannot contain flow indicator characters")}a&&!ck.test(a)&&bt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{bt(e,"tag name is malformed: "+a)}return r?e.tag=a:fa.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:bt(e,'undeclared tag handle "'+n+'"'),!0}C(wk,"readTagProperty");function Sk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&bt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!fr(r)&&!ja(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&bt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}C(Sk,"readAnchorProperty");function Tk(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!fr(i)&&!ja(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&bt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),fa.call(e.anchorMap,r)||bt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],be(e,!0,-1),!0}C(Tk,"readAlias");function is(e,t,r,i,n){var a,s,o,l=1,c=!1,h=!1,u,f,d,g,p,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=xu===r||ok===r,i&&be(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;wk(e)||Sk(e);)be(e,!0,-1)?(c=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=c||n),(l===1||xu===r)&&(yu===r||sk===r?p=t:p=t+1,m=e.position-e.lineStart,l===1?o&&(O1(e,m)||kk(e,m,p))||bk(e,p)?h=!0:(s&&Ck(e,p)||xk(e,p)||vk(e,p)?h=!0:Tk(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&bt(e,"alias node should not have any properties")):yk(e,p,yu===r)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(h=o&&O1(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&bt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,f=e.implicitTypes.length;u<f;u+=1)if(g=e.implicitTypes[u],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(fa.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(e.tag.slice(0,d[u].tag.length)===d[u].tag){g=d[u];break}g||bt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&bt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):bt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}C(is,"composeNode");function _k(e){var t=e.position,r,i,n,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(be(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!fr(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&bt(e,"directive name must not be less than one character in length");s!==0;){for(;aa(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Ci(s));break}if(Ci(s))break;for(r=e.position;s!==0&&!fr(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&kd(e),fa.call(ev,i)?ev[i](e,i,n):_c(e,'unknown document directive "'+i+'"')}if(be(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,be(e,!0,-1)):a&&bt(e,"directives end mark is expected"),is(e,e.lineIndent-1,xu,!1,!0),be(e,!0,-1),e.checkLineBreaks&&UD.test(e.input.slice(t,e.position))&&_c(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Vc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,be(e,!0,-1));return}if(e.position<e.length-1)bt(e,"end of the stream or a document separator is expected");else return}C(_k,"readDocument");function m2(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
507
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new mk(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,bt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)_k(r);return r.documents}C(m2,"loadDocuments");function GD(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=m2(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}C(GD,"loadAll$1");function Bk(e,t){var r=m2(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Lr("expected a single document in the stream, but found more")}}C(Bk,"load$1");var VD=Bk,XD={load:VD},Lk=Object.prototype.toString,Ak=Object.prototype.hasOwnProperty,y2=65279,QD=9,Bc=10,KD=13,ZD=32,JD=33,tR=34,P1=35,eR=37,rR=38,iR=39,nR=42,Ek=44,aR=45,vu=58,sR=61,oR=62,lR=63,cR=64,Mk=91,Fk=93,hR=96,$k=123,uR=124,Ik=125,or={};or[0]="\\0";or[7]="\\a";or[8]="\\b";or[9]="\\t";or[10]="\\n";or[11]="\\v";or[12]="\\f";or[13]="\\r";or[27]="\\e";or[34]='\\"';or[92]="\\\\";or[133]="\\N";or[160]="\\_";or[8232]="\\L";or[8233]="\\P";var dR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],fR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zk(e,t){var r,i,n,a,s,o,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Ak.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}C(zk,"compileStyleMap");function Dk(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Lr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ie.repeat("0",i-t.length)+t}C(Dk,"encodeHex");var pR=1,Lc=2;function Rk(e){this.schema=e.schema||ak,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ie.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=zk(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Lc:pR,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}C(Rk,"State");function N1(e,t){for(var r=Ie.repeat(" ",t),i=0,n=-1,a="",s,o=e.length;i<o;)n=e.indexOf(`
|
|
508
|
+
`,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
|
|
509
|
+
`&&(a+=r),a+=s;return a}C(N1,"indentString");function bu(e,t){return`
|
|
510
|
+
`+Ie.repeat(" ",e.indent*t)}C(bu,"generateNextLine");function Ok(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}C(Ok,"testImplicitResolving");function Ac(e){return e===ZD||e===QD}C(Ac,"isWhitespace");function zo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==y2||65536<=e&&e<=1114111}C(zo,"isPrintable");function j1(e){return zo(e)&&e!==y2&&e!==KD&&e!==Bc}C(j1,"isNsCharOrWhitespace");function q1(e,t,r){var i=j1(e),n=i&&!Ac(e);return(r?i:i&&e!==Ek&&e!==Mk&&e!==Fk&&e!==$k&&e!==Ik)&&e!==P1&&!(t===vu&&!n)||j1(t)&&!Ac(t)&&e===P1||t===vu&&n}C(q1,"isPlainSafe");function Pk(e){return zo(e)&&e!==y2&&!Ac(e)&&e!==aR&&e!==lR&&e!==vu&&e!==Ek&&e!==Mk&&e!==Fk&&e!==$k&&e!==Ik&&e!==P1&&e!==rR&&e!==nR&&e!==JD&&e!==uR&&e!==sR&&e!==oR&&e!==iR&&e!==tR&&e!==eR&&e!==cR&&e!==hR}C(Pk,"isPlainSafeFirst");function Nk(e){return!Ac(e)&&e!==vu}C(Nk,"isPlainSafeLast");function Vs(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}C(Vs,"codePointAt");function x2(e){var t=/^\n* /;return t.test(e)}C(x2,"needIndentIndicator");var jk=1,W1=2,qk=3,Wk=4,$s=5;function Hk(e,t,r,i,n,a,s,o){var l,c=0,h=null,u=!1,f=!1,d=i!==-1,g=-1,p=Pk(Vs(e,0))&&Nk(Vs(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Vs(e,l),!zo(c))return $s;p=p&&q1(c,h,o),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Vs(e,l),c===Bc)u=!0,d&&(f=f||l-g-1>i&&e[g+1]!==" ",g=l);else if(!zo(c))return $s;p=p&&q1(c,h,o),h=c}f=f||d&&l-g-1>i&&e[g+1]!==" "}return!u&&!f?p&&!s&&!n(e)?jk:a===Lc?$s:W1:r>9&&x2(e)?$s:s?a===Lc?$s:W1:f?Wk:qk}C(Hk,"chooseScalarStyle");function Uk(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===Lc?'""':"''";if(!e.noCompatMode&&(dR.indexOf(t)!==-1||fR.test(t)))return e.quotingType===Lc?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return Ok(e,c)}switch(C(l,"testAmbiguity"),Hk(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,n)){case jk:return t;case W1:return"'"+t.replace(/'/g,"''")+"'";case qk:return"|"+H1(t,e.indent)+U1(N1(t,a));case Wk:return">"+H1(t,e.indent)+U1(N1(Yk(t,s),a));case $s:return'"'+Gk(t)+'"';default:throw new Lr("impossible error: invalid scalar style")}}()}C(Uk,"writeScalar");function H1(e,t){var r=x2(e)?String(t):"",i=e[e.length-1]===`
|
|
511
|
+
`,n=i&&(e[e.length-2]===`
|
|
512
|
+
`||e===`
|
|
513
|
+
`),a=n?"+":i?"":"-";return r+a+`
|
|
514
|
+
`}C(H1,"blockHeader");function U1(e){return e[e.length-1]===`
|
|
515
|
+
`?e.slice(0,-1):e}C(U1,"dropEndingNewline");function Yk(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=e.indexOf(`
|
|
516
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,Y1(e.slice(0,c),t)}(),n=e[0]===`
|
|
517
|
+
`||e[0]===" ",a,s;s=r.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",i+=o+(!n&&!a&&l!==""?`
|
|
518
|
+
`:"")+Y1(l,t),n=a}return i}C(Yk,"foldString");function Y1(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,s=0,o=0,l="";i=r.exec(e);)o=i.index,o-n>t&&(a=s>n?s:o,l+=`
|
|
519
|
+
`+e.slice(n,a),n=a+1),s=o;return l+=`
|
|
520
|
+
`,e.length-n>t&&s>n?l+=e.slice(n,s)+`
|
|
521
|
+
`+e.slice(s+1):l+=e.slice(n),l.slice(1)}C(Y1,"foldLine");function Gk(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Vs(e,n),i=or[r],!i&&zo(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Dk(r);return t}C(Gk,"escapeString");function Vk(e,t,r){var i="",n=e.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(qi(e,t,o,!1,!1)||typeof o>"u"&&qi(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}C(Vk,"writeFlowSequence");function G1(e,t,r,i){var n="",a=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(qi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&qi(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=bu(e,t)),e.dump&&Bc===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}C(G1,"writeBlockSequence");function Xk(e,t,r){var i="",n=e.tag,a=Object.keys(r),s,o,l,c,h;for(s=0,o=a.length;s<o;s+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=a[s],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),qi(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),qi(e,t,c,!1,!1)&&(h+=e.dump,i+=h));e.tag=n,e.dump="{"+i+"}"}C(Xk,"writeFlowMapping");function Qk(e,t,r,i){var n="",a=e.tag,s=Object.keys(r),o,l,c,h,u,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Lr("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)f="",(!i||n!=="")&&(f+=bu(e,t)),c=s[o],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),qi(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Bc===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=bu(e,t)),qi(e,t+1,h,!0,u)&&(e.dump&&Bc===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}C(Qk,"writeBlockMapping");function V1(e,t,r){var i,n,a,s,o,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,s=n.length;a<s;a+=1)if(o=n[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,Lk.call(o.represent)==="[object Function]")i=o.represent(t,l);else if(Ak.call(o.represent,l))i=o.represent[l](t,l);else throw new Lr("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}C(V1,"detectType");function qi(e,t,r,i,n,a,s){e.tag=null,e.dump=r,V1(e,r,!1)||V1(e,r,!0);var o=Lk.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=o==="[object Object]"||o==="[object Array]",u,f;if(h&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(Qk(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Xk(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?G1(e,t-1,e.dump,n):G1(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Vk(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Uk(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Lr("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}C(qi,"writeNode");function Kk(e,t){var r=[],i=[],n,a;for(Cu(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}C(Kk,"getDuplicateReferences");function Cu(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)Cu(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)Cu(e[i[n]],t,r)}C(Cu,"inspectNode");function gR(e,t){t=t||{};var r=new Rk(t);r.noRefs||Kk(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),qi(r,0,i,!0,!0)?r.dump+`
|
|
522
|
+
`:""}C(gR,"dump$1");function mR(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}C(mR,"renamed");var yR=q7,xR=XD.load;/*! Bundled license information:
|
|
523
|
+
|
|
524
|
+
js-yaml/dist/js-yaml.mjs:
|
|
525
|
+
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
526
|
+
*/var pl=C((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),rr={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},rv={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Ml(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=ne(e),t=ne(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],s=n-r,o=a-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}C(Ml,"calculateDeltaAndAngle");var ne=C(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),vR=C(e=>({x:C(function(t,r,i){let n=0;const a=ne(i[0]).x<ne(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(rr,e.arrowTypeStart)){const{angle:d,deltaX:g}=Ml(i[0],i[1]);n=rr[e.arrowTypeStart]*Math.cos(d)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(rr,e.arrowTypeEnd)){const{angle:d,deltaX:g}=Ml(i[i.length-1],i[i.length-2]);n=rr[e.arrowTypeEnd]*Math.cos(d)*(g>=0?1:-1)}const s=Math.abs(ne(t).x-ne(i[i.length-1]).x),o=Math.abs(ne(t).y-ne(i[i.length-1]).y),l=Math.abs(ne(t).x-ne(i[0]).x),c=Math.abs(ne(t).y-ne(i[0]).y),h=rr[e.arrowTypeStart],u=rr[e.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){let d=u+f-s;d*=a==="right"?-1:1,n-=d}if(l<h&&l>0&&c<h){let d=h+f-l;d*=a==="right"?-1:1,n+=d}return ne(t).x+n},"x"),y:C(function(t,r,i){let n=0;const a=ne(i[0]).y<ne(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(rr,e.arrowTypeStart)){const{angle:d,deltaY:g}=Ml(i[0],i[1]);n=rr[e.arrowTypeStart]*Math.abs(Math.sin(d))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(rr,e.arrowTypeEnd)){const{angle:d,deltaY:g}=Ml(i[i.length-1],i[i.length-2]);n=rr[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(g>=0?1:-1)}const s=Math.abs(ne(t).y-ne(i[i.length-1]).y),o=Math.abs(ne(t).x-ne(i[i.length-1]).x),l=Math.abs(ne(t).y-ne(i[0]).y),c=Math.abs(ne(t).x-ne(i[0]).x),h=rr[e.arrowTypeStart],u=rr[e.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){let d=u+f-s;d*=a==="up"?-1:1,n-=d}if(l<h&&l>0&&c<h){let d=h+f-l;d*=a==="up"?-1:1,n+=d}return ne(t).y+n},"y")}),"getLineFunctionsWithOffset"),Zk={},je={};Object.defineProperty(je,"__esModule",{value:!0});je.BLANK_URL=je.relativeFirstCharacters=je.whitespaceEscapeCharsRegex=je.urlSchemeRegex=je.ctrlCharactersRegex=je.htmlCtrlEntityRegex=je.htmlEntitiesRegex=je.invalidProtocolRegex=void 0;je.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;je.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;je.htmlCtrlEntityRegex=/&(newline|tab);/gi;je.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;je.urlSchemeRegex=/^.+(:|:)/gim;je.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;je.relativeFirstCharacters=[".","/"];je.BLANK_URL="about:blank";Object.defineProperty(Zk,"__esModule",{value:!0});var bR=Zk.sanitizeUrl=SR,er=je;function CR(e){return er.relativeFirstCharacters.indexOf(e[0])>-1}function kR(e){var t=e.replace(er.ctrlCharactersRegex,"");return t.replace(er.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function wR(e){return URL.canParse(e)}function iv(e){try{return decodeURIComponent(e)}catch{return e}}function SR(e){if(!e)return er.BLANK_URL;var t,r=iv(e.trim());do r=kR(r).replace(er.htmlCtrlEntityRegex,"").replace(er.ctrlCharactersRegex,"").replace(er.whitespaceEscapeCharsRegex,"").trim(),r=iv(r),t=r.match(er.ctrlCharactersRegex)||r.match(er.htmlEntitiesRegex)||r.match(er.htmlCtrlEntityRegex)||r.match(er.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return er.BLANK_URL;if(CR(i))return i;var n=i.trimStart(),a=n.match(er.urlSchemeRegex);if(!a)return i;var s=a[0].toLowerCase().trim();if(er.invalidProtocolRegex.test(s))return er.BLANK_URL;var o=n.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return o;if(s==="http:"||s==="https:"){if(!wR(o))return er.BLANK_URL;var l=new URL(o);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return o}var Jk=typeof global=="object"&&global&&global.Object===Object&&global,TR=typeof self=="object"&&self&&self.Object===Object&&self,Xi=Jk||TR||Function("return this")(),ku=Xi.Symbol,t8=Object.prototype,_R=t8.hasOwnProperty,BR=t8.toString,gl=ku?ku.toStringTag:void 0;function LR(e){var t=_R.call(e,gl),r=e[gl];try{e[gl]=void 0;var i=!0}catch{}var n=BR.call(e);return i&&(t?e[gl]=r:delete e[gl]),n}var AR=Object.prototype,ER=AR.toString;function MR(e){return ER.call(e)}var FR="[object Null]",$R="[object Undefined]",nv=ku?ku.toStringTag:void 0;function Vo(e){return e==null?e===void 0?$R:FR:nv&&nv in Object(e)?LR(e):MR(e)}function fs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var IR="[object AsyncFunction]",zR="[object Function]",DR="[object GeneratorFunction]",RR="[object Proxy]";function v2(e){if(!fs(e))return!1;var t=Vo(e);return t==zR||t==DR||t==IR||t==RR}var Gf=Xi["__core-js_shared__"],av=function(){var e=/[^.]+$/.exec(Gf&&Gf.keys&&Gf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function OR(e){return!!av&&av in e}var PR=Function.prototype,NR=PR.toString;function ps(e){if(e!=null){try{return NR.call(e)}catch{}try{return e+""}catch{}}return""}var jR=/[\\^$.*+?()[\]{}|]/g,qR=/^\[object .+?Constructor\]$/,WR=Function.prototype,HR=Object.prototype,UR=WR.toString,YR=HR.hasOwnProperty,GR=RegExp("^"+UR.call(YR).replace(jR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VR(e){if(!fs(e)||OR(e))return!1;var t=v2(e)?GR:qR;return t.test(ps(e))}function XR(e,t){return e==null?void 0:e[t]}function gs(e,t){var r=XR(e,t);return VR(r)?r:void 0}var Ec=gs(Object,"create");function QR(){this.__data__=Ec?Ec(null):{},this.size=0}function KR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZR="__lodash_hash_undefined__",JR=Object.prototype,tO=JR.hasOwnProperty;function eO(e){var t=this.__data__;if(Ec){var r=t[e];return r===ZR?void 0:r}return tO.call(t,e)?t[e]:void 0}var rO=Object.prototype,iO=rO.hasOwnProperty;function nO(e){var t=this.__data__;return Ec?t[e]!==void 0:iO.call(t,e)}var aO="__lodash_hash_undefined__";function sO(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ec&&t===void 0?aO:t,this}function ns(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ns.prototype.clear=QR;ns.prototype.delete=KR;ns.prototype.get=eO;ns.prototype.has=nO;ns.prototype.set=sO;function oO(){this.__data__=[],this.size=0}function Sd(e,t){return e===t||e!==e&&t!==t}function Td(e,t){for(var r=e.length;r--;)if(Sd(e[r][0],t))return r;return-1}var lO=Array.prototype,cO=lO.splice;function hO(e){var t=this.__data__,r=Td(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():cO.call(t,r,1),--this.size,!0}function uO(e){var t=this.__data__,r=Td(t,e);return r<0?void 0:t[r][1]}function dO(e){return Td(this.__data__,e)>-1}function fO(e,t){var r=this.__data__,i=Td(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function _n(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}_n.prototype.clear=oO;_n.prototype.delete=hO;_n.prototype.get=uO;_n.prototype.has=dO;_n.prototype.set=fO;var Mc=gs(Xi,"Map");function pO(){this.size=0,this.__data__={hash:new ns,map:new(Mc||_n),string:new ns}}function gO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _d(e,t){var r=e.__data__;return gO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function mO(e){var t=_d(this,e).delete(e);return this.size-=t?1:0,t}function yO(e){return _d(this,e).get(e)}function xO(e){return _d(this,e).has(e)}function vO(e,t){var r=_d(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function ka(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ka.prototype.clear=pO;ka.prototype.delete=mO;ka.prototype.get=yO;ka.prototype.has=xO;ka.prototype.set=vO;var bO="Expected a function";function Xc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(bO);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var s=e.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(Xc.Cache||ka),r}Xc.Cache=ka;function CO(){this.__data__=new _n,this.size=0}function kO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function wO(e){return this.__data__.get(e)}function SO(e){return this.__data__.has(e)}var TO=200;function _O(e,t){var r=this.__data__;if(r instanceof _n){var i=r.__data__;if(!Mc||i.length<TO-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ka(i)}return r.set(e,t),this.size=r.size,this}function Xo(e){var t=this.__data__=new _n(e);this.size=t.size}Xo.prototype.clear=CO;Xo.prototype.delete=kO;Xo.prototype.get=wO;Xo.prototype.has=SO;Xo.prototype.set=_O;var wu=function(){try{var e=gs(Object,"defineProperty");return e({},"",{}),e}catch{}}();function b2(e,t,r){t=="__proto__"&&wu?wu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function X1(e,t,r){(r!==void 0&&!Sd(e[t],r)||r===void 0&&!(t in e))&&b2(e,t,r)}function BO(e){return function(t,r,i){for(var n=-1,a=Object(t),s=i(t),o=s.length;o--;){var l=s[++n];if(r(a[l],l,a)===!1)break}return t}}var LO=BO(),e8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sv=e8&&typeof module=="object"&&module&&!module.nodeType&&module,AO=sv&&sv.exports===e8,ov=AO?Xi.Buffer:void 0,lv=ov?ov.allocUnsafe:void 0;function EO(e,t){if(t)return e.slice();var r=e.length,i=lv?lv(r):new e.constructor(r);return e.copy(i),i}var cv=Xi.Uint8Array;function MO(e){var t=new e.constructor(e.byteLength);return new cv(t).set(new cv(e)),t}function FO(e,t){var r=t?MO(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function $O(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var hv=Object.create,IO=function(){function e(){}return function(t){if(!fs(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function r8(e,t){return function(r){return e(t(r))}}var i8=r8(Object.getPrototypeOf,Object),zO=Object.prototype;function Bd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zO;return e===r}function DO(e){return typeof e.constructor=="function"&&!Bd(e)?IO(i8(e)):{}}function Qc(e){return e!=null&&typeof e=="object"}var RO="[object Arguments]";function uv(e){return Qc(e)&&Vo(e)==RO}var n8=Object.prototype,OO=n8.hasOwnProperty,PO=n8.propertyIsEnumerable,Su=uv(function(){return arguments}())?uv:function(e){return Qc(e)&&OO.call(e,"callee")&&!PO.call(e,"callee")},Tu=Array.isArray,NO=9007199254740991;function a8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=NO}function Ld(e){return e!=null&&a8(e.length)&&!v2(e)}function jO(e){return Qc(e)&&Ld(e)}function qO(){return!1}var s8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dv=s8&&typeof module=="object"&&module&&!module.nodeType&&module,WO=dv&&dv.exports===s8,fv=WO?Xi.Buffer:void 0,HO=fv?fv.isBuffer:void 0,C2=HO||qO,UO="[object Object]",YO=Function.prototype,GO=Object.prototype,o8=YO.toString,VO=GO.hasOwnProperty,XO=o8.call(Object);function QO(e){if(!Qc(e)||Vo(e)!=UO)return!1;var t=i8(e);if(t===null)return!0;var r=VO.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&o8.call(r)==XO}var KO="[object Arguments]",ZO="[object Array]",JO="[object Boolean]",tP="[object Date]",eP="[object Error]",rP="[object Function]",iP="[object Map]",nP="[object Number]",aP="[object Object]",sP="[object RegExp]",oP="[object Set]",lP="[object String]",cP="[object WeakMap]",hP="[object ArrayBuffer]",uP="[object DataView]",dP="[object Float32Array]",fP="[object Float64Array]",pP="[object Int8Array]",gP="[object Int16Array]",mP="[object Int32Array]",yP="[object Uint8Array]",xP="[object Uint8ClampedArray]",vP="[object Uint16Array]",bP="[object Uint32Array]",re={};re[dP]=re[fP]=re[pP]=re[gP]=re[mP]=re[yP]=re[xP]=re[vP]=re[bP]=!0;re[KO]=re[ZO]=re[hP]=re[JO]=re[uP]=re[tP]=re[eP]=re[rP]=re[iP]=re[nP]=re[aP]=re[sP]=re[oP]=re[lP]=re[cP]=!1;function CP(e){return Qc(e)&&a8(e.length)&&!!re[Vo(e)]}function kP(e){return function(t){return e(t)}}var l8=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kl=l8&&typeof module=="object"&&module&&!module.nodeType&&module,wP=Kl&&Kl.exports===l8,Vf=wP&&Jk.process,pv=function(){try{var e=Kl&&Kl.require&&Kl.require("util").types;return e||Vf&&Vf.binding&&Vf.binding("util")}catch{}}(),gv=pv&&pv.isTypedArray,k2=gv?kP(gv):CP;function Q1(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var SP=Object.prototype,TP=SP.hasOwnProperty;function _P(e,t,r){var i=e[t];(!(TP.call(e,t)&&Sd(i,r))||r===void 0&&!(t in e))&&b2(e,t,r)}function BP(e,t,r,i){var n=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=void 0;l===void 0&&(l=e[o]),n?b2(r,o,l):_P(r,o,l)}return r}function LP(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var AP=9007199254740991,EP=/^(?:0|[1-9]\d*)$/;function c8(e,t){var r=typeof e;return t=t??AP,!!t&&(r=="number"||r!="symbol"&&EP.test(e))&&e>-1&&e%1==0&&e<t}var MP=Object.prototype,FP=MP.hasOwnProperty;function $P(e,t){var r=Tu(e),i=!r&&Su(e),n=!r&&!i&&C2(e),a=!r&&!i&&!n&&k2(e),s=r||i||n||a,o=s?LP(e.length,String):[],l=o.length;for(var c in e)(t||FP.call(e,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||c8(c,l)))&&o.push(c);return o}function IP(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var zP=Object.prototype,DP=zP.hasOwnProperty;function RP(e){if(!fs(e))return IP(e);var t=Bd(e),r=[];for(var i in e)i=="constructor"&&(t||!DP.call(e,i))||r.push(i);return r}function h8(e){return Ld(e)?$P(e,!0):RP(e)}function OP(e){return BP(e,h8(e))}function PP(e,t,r,i,n,a,s){var o=Q1(e,r),l=Q1(t,r),c=s.get(l);if(c){X1(e,r,c);return}var h=a?a(o,l,r+"",e,t,s):void 0,u=h===void 0;if(u){var f=Tu(l),d=!f&&C2(l),g=!f&&!d&&k2(l);h=l,f||d||g?Tu(o)?h=o:jO(o)?h=$O(o):d?(u=!1,h=EO(l,!0)):g?(u=!1,h=FO(l,!0)):h=[]:QO(l)||Su(l)?(h=o,Su(o)?h=OP(o):(!fs(o)||v2(o))&&(h=DO(l))):u=!1}u&&(s.set(l,h),n(h,l,i,a,s),s.delete(l)),X1(e,r,h)}function u8(e,t,r,i,n){e!==t&&LO(t,function(a,s){if(n||(n=new Xo),fs(a))PP(e,t,s,r,u8,i,n);else{var o=i?i(Q1(e,s),a,s+"",e,t,n):void 0;o===void 0&&(o=a),X1(e,s,o)}},h8)}function d8(e){return e}function NP(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var mv=Math.max;function jP(e,t,r){return t=mv(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=mv(i.length-t,0),s=Array(a);++n<a;)s[n]=i[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=i[n];return o[t]=r(s),NP(e,this,o)}}function qP(e){return function(){return e}}var WP=wu?function(e,t){return wu(e,"toString",{configurable:!0,enumerable:!1,value:qP(t),writable:!0})}:d8,HP=800,UP=16,YP=Date.now;function GP(e){var t=0,r=0;return function(){var i=YP(),n=UP-(i-r);if(r=i,n>0){if(++t>=HP)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VP=GP(WP);function XP(e,t){return VP(jP(e,t,d8),e+"")}function QP(e,t,r){if(!fs(r))return!1;var i=typeof t;return(i=="number"?Ld(r)&&c8(t,r.length):i=="string"&&t in r)?Sd(r[t],e):!1}function KP(e){return XP(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,s&&QP(r[0],r[1],s)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var o=r[i];o&&e(t,o,i,a)}return t})}var ZP=KP(function(e,t,r){u8(e,t,r)}),JP="",tN={curveBasis:$1,curveBasisClosed:iD,curveBasisOpen:nD,curveBumpX:KC,curveBumpY:ZC,curveBundle:aD,curveCardinalClosed:sD,curveCardinalOpen:oD,curveCardinal:r7,curveCatmullRomClosed:lD,curveCatmullRomOpen:cD,curveCatmullRom:n7,curveLinear:Ql,curveLinearClosed:hD,curveMonotoneX:h7,curveMonotoneY:u7,curveNatural:f7,curveStep:p7,curveStepAfter:m7,curveStepBefore:g7},eN=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,rN=C(function(e,t){const r=f8(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(o=>o.args);ru(s),i=$e(i,[...s])}else i=r.args;if(!i)return;let n=Gm(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),f8=C(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${eN.source})(?=[}][%]{2}).*
|
|
527
|
+
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),Z.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const s=[];for(;(a=Vl.exec(e))!==null;)if(a.index===Vl.lastIndex&&Vl.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const o=a[1]?a[1]:a[2],l=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:o,args:l})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(n){return Z.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),iN=C(function(e){return e.replace(Vl,"")},"removeDirectives"),nN=C(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function w2(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return tN[r]??t}C(w2,"interpolateToCurve");function p8(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?bR(r):r}C(p8,"formatUrl");var aN=C((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){Z.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function S2(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}C(S2,"distance");function g8(e){let t,r=0;e.forEach(n=>{r+=S2(n,t),t=n});const i=r/2;return T2(e,i)}C(g8,"traverseEdge");function m8(e){return e.length===1?e[0]:g8(e)}C(m8,"calcLabelPosition");var yv=C((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),T2=C((e,t)=>{let r,i=t;for(const n of e){if(r){const a=S2(n,r);if(a===0)return r;if(a<i)i-=a;else{const s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:yv((1-s)*r.x+s*n.x,5),y:yv((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),sN=C((e,t,r)=>{Z.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=T2(t,25),a=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(t[0].x+n.x)/2,o.y=-Math.cos(s)*a+(t[0].y+n.y)/2,o},"calcCardinalityPosition");function y8(e,t,r){const i=structuredClone(r);Z.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=T2(i,n),s=10+e*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(o)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2),l}C(y8,"calcTerminalLabelPosition");function x8(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}C(x8,"getStylesFromArray");var xv=0,oN=C(()=>(xv++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xv),"generateId");function v8(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}C(v8,"makeRandomHex");var lN=C(e=>v8(e.length),"random"),cN=C(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),hN=C(function(e,t){const r=t.text.replace(Uc.lineBreakRegex," "),[,i]=Ad(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),uN=Xc((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Uc.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((s,o)=>{const l=bn(`${s} `,r),c=bn(a,r);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=dN(s,t,"-",r);n.push(a,...f),a=d}else c+l>=t?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),dN=Xc((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let s="";return n.forEach((o,l)=>{const c=`${s}${o}`;if(bn(c,i)>=t){const u=l+1,f=n.length===u,d=`${c}${r}`;a.push(f?c:d),s=""}else s=c}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function b8(e,t){return _2(e,t).height}C(b8,"calculateTextHeight");function bn(e,t){return _2(e,t).width}C(bn,"calculateTextWidth");var _2=Xc((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=Ad(r),s=["sans-serif",i],o=e.split(Uc.lineBreakRegex),l=[],c=zt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const f of s){let d=0;const g={width:0,height:0,lineHeight:0};for(const p of o){const m=cN();m.text=p||JP;const y=hN(h,m).style("font-size",a).style("font-weight",n).style("font-family",f),x=(y._groups||y)[0][0].getBBox();if(x.width===0&&x.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,x.width)),d=Math.round(x.height),g.height+=d,g.lineHeight=Math.round(Math.max(g.lineHeight,d))}l.push(g)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),vo,fN=(vo=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},C(vo,"InitIDGenerator"),vo),Ph,pN=C(function(e){return Ph=Ph||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ph.innerHTML=e,unescape(Ph.textContent)},"entityDecode");function B2(e){return"str"in e}C(B2,"isDetailedError");var gN=C((e,t,r,i)=>{var a;if(!i)return;const n=(a=e.node())==null?void 0:a.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Ad=C(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function L2(e,t){return ZP({},e,t)}C(L2,"cleanAndMerge");var xi={assignWithDepth:$e,wrapLabel:uN,calculateTextHeight:b8,calculateTextWidth:bn,calculateTextDimensions:_2,cleanAndMerge:L2,detectInit:rN,detectDirective:f8,isSubstringInArray:nN,interpolateToCurve:w2,calcLabelPosition:m8,calcCardinalityPosition:sN,calcTerminalLabelPosition:y8,formatUrl:p8,getStylesFromArray:x8,generateId:oN,random:lN,runFunc:aN,entityDecode:pN,insertTitle:gN,isLabelCoordinateInPath:C8,parseFontSize:Ad,InitIDGenerator:fN},mN=C(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),as=C(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),CG=C((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function He(e){return e??null}C(He,"handleUndefinedAttr");function C8(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}C(C8,"isLabelCoordinateInPath");var A2=C(({flowchart:e})=>{var n,a;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function k8(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(a=>{function s(){if(n.style.display="flex",n.style.flexDirection="column",i){const o=qt().fontSize?qt().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[c=hC.fontSize]=Ad(o),h=c*l+"px";n.style.minWidth=h,n.style.maxWidth=h}else n.style.width="100%";a(n)}C(s,"setupImage"),setTimeout(()=>{n.complete&&s()}),n.addEventListener("error",s),n.addEventListener("load",s)})))}C(k8,"configureLabelImages");var yN=C(e=>{const{handDrawnSeed:t}=qt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Qo=C(e=>{const t=xN([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),xN=C(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),w8=C(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),yt=C(e=>{const{stylesArray:t}=Qo(e),r=[],i=[],n=[],a=[];return t.forEach(s=>{const o=s[0];w8(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&n.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),mt=C((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=qt(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=Qo(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:((l=s.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:vN(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),vN=C(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const bN=Object.freeze({left:0,top:0,width:16,height:16}),_u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),S8=Object.freeze({...bN,..._u}),CN=Object.freeze({...S8,body:"",hidden:!1}),kN=Object.freeze({width:null,height:null}),wN=Object.freeze({...kN,..._u}),SN=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const o=n.pop(),l=n.pop(),c={provider:n.length>0?n[0]:i,prefix:l,name:o};return Xf(c)?c:null}const a=n[0],s=a.split("-");if(s.length>1){const o={provider:i,prefix:s.shift(),name:s.join("-")};return Xf(o)?o:null}if(r&&i===""){const o={provider:i,prefix:"",name:a};return Xf(o,r)?o:null}return null},Xf=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function TN(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function vv(e,t){const r=TN(e,t);for(const i in CN)i in _u?i in e&&!(i in r)&&(r[i]=_u[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function _N(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;const o=i[s]&&i[s].parent,l=o&&a(o);l&&(n[s]=[o].concat(l))}return n[s]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function bv(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function s(o){a=vv(i[o]||n[o],a)}return s(t),r.forEach(s),vv(e,a)}function BN(e,t){if(e.icons[t])return bv(e,t,[]);const r=_N(e,[t])[t];return r?bv(e,t,r):null}const LN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,AN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Cv(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(LN);if(i===null||!i.length)return e;const n=[];let a=i.shift(),s=AN.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?n.push(a):n.push(Math.ceil(o*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");s=!s}}function EN(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const s=e.indexOf(">",a);if(s===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}function MN(e,t){return e?"<defs>"+e+"</defs>"+t:t}function FN(e,t,r){const i=EN(e);return MN(i.defs,t+i.content+r)}const $N=e=>e==="unset"||e==="undefined"||e==="none";function IN(e,t){const r={...S8,...e},i={...wN,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(p=>{const m=[],y=p.hFlip,x=p.vFlip;let k=p.rotate;y?x?k+=2:(m.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),m.push("scale(-1 1)"),n.top=n.left=0):x&&(m.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),m.push("scale(1 -1)"),n.top=n.left=0);let T;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:T=n.height/2+n.top,m.unshift("rotate(90 "+T.toString()+" "+T.toString()+")");break;case 2:m.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:T=n.width/2+n.left,m.unshift("rotate(-90 "+T.toString()+" "+T.toString()+")");break}k%2===1&&(n.left!==n.top&&(T=n.left,n.left=n.top,n.top=T),n.width!==n.height&&(T=n.width,n.width=n.height,n.height=T)),m.length&&(a=FN(a,'<g transform="'+m.join(" ")+'">',"</g>"))});const s=i.width,o=i.height,l=n.width,c=n.height;let h,u;s===null?(u=o===null?"1em":o==="auto"?c:o,h=Cv(u,l/c)):(h=s==="auto"?l:s,u=o===null?Cv(h,c/l):o==="auto"?c:o);const f={},d=(p,m)=>{$N(m)||(f[p]=m.toString())};d("width",h),d("height",u);const g=[n.left,n.top,l,c];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:a}}const zN=/\sid="(\S+)"/g,kv=new Map;function DN(e){e=e.replace(/[0-9]+$/,"")||"a";const t=kv.get(e)||0;return kv.set(e,t+1),t?`${e}${t}`:e}function RN(e){const t=[];let r;for(;r=zN.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const a=DN(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function ON(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function E2(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ms=E2();function T8(e){ms=e}var Zl={exec:()=>null};function Wt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(pr.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}var PN=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),pr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},NN=/^(?:[ \t]*(?:\n|$))+/,jN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Kc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,WN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,M2=/(?:[*+-]|\d{1,9}[.)])/,_8=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,B8=Wt(_8).replace(/bull/g,M2).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),HN=Wt(_8).replace(/bull/g,M2).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F2=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,UN=/^[^\n]+/,$2=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,YN=Wt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$2).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),GN=Wt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,M2).getRegex(),Ed="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I2=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,VN=Wt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",I2).replace("tag",Ed).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),L8=Wt(F2).replace("hr",Kc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ed).getRegex(),XN=Wt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",L8).getRegex(),z2={blockquote:XN,code:jN,def:YN,fences:qN,heading:WN,hr:Kc,html:VN,lheading:B8,list:GN,newline:NN,paragraph:L8,table:Zl,text:UN},wv=Wt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ed).getRegex(),QN={...z2,lheading:HN,table:wv,paragraph:Wt(F2).replace("hr",Kc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wv).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ed).getRegex()},KN={...z2,html:Wt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",I2).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wt(F2).replace("hr",Kc).replace("heading",` *#{1,6} *[^
|
|
528
|
+
]`).replace("lheading",B8).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ZN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,JN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,A8=/^( {2,}|\\)\n(?!\s*$)/,tj=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Md=/[\p{P}\p{S}]/u,D2=/[\s\p{P}\p{S}]/u,E8=/[^\s\p{P}\p{S}]/u,ej=Wt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D2).getRegex(),M8=/(?!~)[\p{P}\p{S}]/u,rj=/(?!~)[\s\p{P}\p{S}]/u,ij=/(?:[^\s\p{P}\p{S}]|~)/u,nj=Wt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",PN?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),F8=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,aj=Wt(F8,"u").replace(/punct/g,Md).getRegex(),sj=Wt(F8,"u").replace(/punct/g,M8).getRegex(),$8="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",oj=Wt($8,"gu").replace(/notPunctSpace/g,E8).replace(/punctSpace/g,D2).replace(/punct/g,Md).getRegex(),lj=Wt($8,"gu").replace(/notPunctSpace/g,ij).replace(/punctSpace/g,rj).replace(/punct/g,M8).getRegex(),cj=Wt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,E8).replace(/punctSpace/g,D2).replace(/punct/g,Md).getRegex(),hj=Wt(/\\(punct)/,"gu").replace(/punct/g,Md).getRegex(),uj=Wt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),dj=Wt(I2).replace("(?:-->|$)","-->").getRegex(),fj=Wt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",dj).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,pj=Wt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Bu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),I8=Wt(/^!?\[(label)\]\[(ref)\]/).replace("label",Bu).replace("ref",$2).getRegex(),z8=Wt(/^!?\[(ref)\](?:\[\])?/).replace("ref",$2).getRegex(),gj=Wt("reflink|nolink(?!\\()","g").replace("reflink",I8).replace("nolink",z8).getRegex(),Sv=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,R2={_backpedal:Zl,anyPunctuation:hj,autolink:uj,blockSkip:nj,br:A8,code:JN,del:Zl,emStrongLDelim:aj,emStrongRDelimAst:oj,emStrongRDelimUnd:cj,escape:ZN,link:pj,nolink:z8,punctuation:ej,reflink:I8,reflinkSearch:gj,tag:fj,text:tj,url:Zl},mj={...R2,link:Wt(/^!?\[(label)\]\((.*?)\)/).replace("label",Bu).getRegex(),reflink:Wt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bu).getRegex()},K1={...R2,emStrongRDelimAst:lj,emStrongLDelim:sj,url:Wt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Sv).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Wt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Sv).getRegex()},yj={...K1,br:Wt(A8).replace("{2,}","*").getRegex(),text:Wt(K1.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Nh={normal:z2,gfm:QN,pedantic:KN},ml={normal:R2,gfm:K1,breaks:yj,pedantic:mj},xj={"&":"&","<":"<",">":">",'"':""","'":"'"},Tv=e=>xj[e];function Ai(e,t){if(t){if(pr.escapeTest.test(e))return e.replace(pr.escapeReplace,Tv)}else if(pr.escapeTestNoEncode.test(e))return e.replace(pr.escapeReplaceNoEncode,Tv);return e}function _v(e){try{e=encodeURI(e).replace(pr.percentDecode,"%")}catch{return null}return e}function Bv(e,t){var a;let r=e.replace(pr.findPipe,(s,o,l)=>{let c=!1,h=o;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),i=r.split(pr.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(pr.slashPipe,"|");return i}function yl(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function vj(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function Lv(e,t,r,i,n){let a=t.href,s=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function bj(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
529
|
+
`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=n.length?a.slice(n.length):a}).join(`
|
|
530
|
+
`)}var Lu=class{constructor(t){kt(this,"options");kt(this,"rules");kt(this,"lexer");this.options=t||ms}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:yl(i,`
|
|
531
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=bj(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=yl(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:yl(r[0],`
|
|
532
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=yl(r[0],`
|
|
533
|
+
`).split(`
|
|
534
|
+
`),n="",a="",s=[];for(;i.length>0;){let o=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),o=!0;else if(!o)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
|
|
535
|
+
`),u=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
536
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
537
|
+
${h}`:h,a=a?`${a}
|
|
538
|
+
${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=f,i.length===0)break;let d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let g=d,p=g.raw+`
|
|
539
|
+
`+i.join(`
|
|
540
|
+
`),m=this.blockquote(p);s[s.length-1]=m,n=n.substring(0,n.length-g.raw.length)+m.raw,a=a.substring(0,a.length-g.text.length)+m.text;break}else if((d==null?void 0:d.type)==="list"){let g=d,p=g.raw+`
|
|
541
|
+
`+i.join(`
|
|
542
|
+
`),m=this.list(p);s[s.length-1]=m,n=n.substring(0,n.length-d.raw.length)+m.raw,a=a.substring(0,a.length-g.raw.length)+m.raw,i=p.substring(s.at(-1).raw.length).split(`
|
|
543
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let s=this.rules.other.listItemRegex(i),o=!1;for(;t;){let c=!1,h="",u="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let f=r[2].split(`
|
|
544
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),d=t.split(`
|
|
545
|
+
`,1)[0],g=!f.trim(),p=0;if(this.options.pedantic?(p=2,u=f.trimStart()):g?p=r[1].length+1:(p=r[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=f.slice(p),p+=r[1].length),g&&this.rules.other.blankLine.test(d)&&(h+=d+`
|
|
546
|
+
`,t=t.substring(d.length+1),c=!0),!c){let x=this.rules.other.nextBulletRegex(p),k=this.rules.other.hrRegex(p),T=this.rules.other.fencesBeginRegex(p),_=this.rules.other.headingBeginRegex(p),M=this.rules.other.htmlBeginRegex(p);for(;t;){let S=t.split(`
|
|
547
|
+
`,1)[0],A;if(d=S,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),A=d):A=d.replace(this.rules.other.tabCharGlobal," "),T.test(d)||_.test(d)||M.test(d)||x.test(d)||k.test(d))break;if(A.search(this.rules.other.nonSpaceChar)>=p||!d.trim())u+=`
|
|
548
|
+
`+A.slice(p);else{if(g||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(f)||_.test(f)||k.test(f))break;u+=`
|
|
549
|
+
`+d}!g&&!d.trim()&&(g=!0),h+=S+`
|
|
550
|
+
`,t=t.substring(S.length+1),f=A.slice(p)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let m=null,y;this.options.gfm&&(m=this.rules.other.listIsTask.exec(u),m&&(y=m[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:h,task:!!m,checked:y,loose:!1,text:u,tokens:[]}),a.raw+=h}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let h=a.items[c].tokens.filter(f=>f.type==="space"),u=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=u}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){var o;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Bv(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(o=r[3])!=null&&o.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
551
|
+
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let l of n)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<i.length;l++)s.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:s.align[l]});for(let l of a)s.rows.push(Bv(l,s.header.length).map((c,h)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[h]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
552
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=yl(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=vj(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),Lv(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return Lv(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,s,o,l=a,c=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(n=h.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){l+=o;continue}else if((n[5]||n[6])&&a%3&&!((a+o)%3)){c+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+c);let u=[...n[0]][0].length,f=t.slice(0,a+n.index+u+o);if(Math.min(a,o)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let s;do s=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(s!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},gi=class Z1{constructor(t){kt(this,"tokens");kt(this,"options");kt(this,"state");kt(this,"tokenizer");kt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ms,this.options.tokenizer=this.options.tokenizer||new Lu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:pr,block:Nh.normal,inline:ml.normal};this.options.pedantic?(r.block=Nh.pedantic,r.inline=ml.pedantic):this.options.gfm&&(r.block=Nh.gfm,this.options.breaks?r.inline=ml.breaks:r.inline=ml.gfm),this.tokenizer.rules=r}static get rules(){return{block:Nh,inline:ml}}static lex(t,r){return new Z1(r).lex(t)}static lexInline(t,r){return new Z1(r).inlineTokens(t)}lex(t){t=t.replace(pr.carriageReturn,`
|
|
553
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var n,a,s;for(this.options.pedantic&&(t=t.replace(pr.tabCharGlobal," ").replace(pr.spaceLine,""));t;){let o;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(c=>(o=c.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let c=r.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
|
|
554
|
+
`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
555
|
+
`)?"":`
|
|
556
|
+
`)+o.raw,c.text+=`
|
|
557
|
+
`+o.text,this.inlineQueue.at(-1).src=c.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
558
|
+
`)?"":`
|
|
559
|
+
`)+o.raw,c.text+=`
|
|
560
|
+
`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let c=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},h),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let c=r.at(-1);i&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
561
|
+
`)?"":`
|
|
562
|
+
`)+o.raw,c.text+=`
|
|
563
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(o),i=l.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
564
|
+
`)?"":`
|
|
565
|
+
`)+o.raw,c.text+=`
|
|
566
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(o);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,c,h,u,f;let i=t,n=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},i))??i;let s=!1,o="";for(;t;){s||(o=""),s=!1;let d;if((u=(h=this.options.extensions)==null?void 0:h.inline)!=null&&u.some(p=>(d=p.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let p=r.at(-1);d.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=d.raw,p.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,o)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let g=t;if((f=this.options.extensions)!=null&&f.startInline){let p=1/0,m=t.slice(1),y;this.options.extensions.startInline.forEach(x=>{y=x.call({lexer:this},m),typeof y=="number"&&y>=0&&(p=Math.min(p,y))}),p<1/0&&p>=0&&(g=t.substring(0,p+1))}if(d=this.tokenizer.inlineText(g)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),s=!0;let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=d.raw,p.text+=d.text):r.push(d);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},Au=class{constructor(t){kt(this,"options");kt(this,"parser");this.options=t||ms}space(t){return""}code({text:t,lang:r,escaped:i}){var s;let n=(s=(r||"").match(pr.notSpaceStart))==null?void 0:s[0],a=t.replace(pr.endingNewline,"")+`
|
|
567
|
+
`;return n?'<pre><code class="language-'+Ai(n)+'">'+(i?a:Ai(a,!0))+`</code></pre>
|
|
568
|
+
`:"<pre><code>"+(i?a:Ai(a,!0))+`</code></pre>
|
|
569
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
570
|
+
${this.parser.parse(t)}</blockquote>
|
|
571
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
572
|
+
`}hr(t){return`<hr>
|
|
573
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let o=0;o<t.items.length;o++){let l=t.items[o];n+=this.listitem(l)}let a=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+a+s+`>
|
|
574
|
+
`+n+"</"+a+`>
|
|
575
|
+
`}listitem(t){var i;let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+Ai(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
576
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
577
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let s=t.rows[a];i="";for(let o=0;o<s.length;o++)i+=this.tablecell(s[o]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
578
|
+
<thead>
|
|
579
|
+
`+r+`</thead>
|
|
580
|
+
`+n+`</table>
|
|
581
|
+
`}tablerow({text:t}){return`<tr>
|
|
582
|
+
${t}</tr>
|
|
583
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
584
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Ai(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),a=_v(t);if(a===null)return n;t=a;let s='<a href="'+t+'"';return r&&(s+=' title="'+Ai(r)+'"'),s+=">"+n+"</a>",s}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=_v(t);if(a===null)return Ai(i);t=a;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${Ai(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Ai(t.text)}},O2=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},mi=class J1{constructor(t){kt(this,"options");kt(this,"renderer");kt(this,"textRenderer");this.options=t||ms,this.options.renderer=this.options.renderer||new Au,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new O2}static parse(t,r){return new J1(r).parse(t)}static parseInline(t,r){return new J1(r).parseInline(t)}parse(t,r=!0){var n,a;let i="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let c=o,h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=h||"";continue}}let l=o;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"def":{i+=this.renderer.def(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let c=l,h=this.renderer.text(c);for(;s+1<t.length&&t[s+1].type==="text";)c=t[++s],h+=`
|
|
585
|
+
`+this.renderer.text(c);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}parseInline(t,r=this.renderer){var n,a;let i="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=c||"";continue}}let l=o;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},Gh,Fl=(Gh=class{constructor(t){kt(this,"options");kt(this,"block");this.options=t||ms}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?gi.lex:gi.lexInline}provideParser(){return this.block?mi.parse:mi.parseInline}},kt(Gh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),kt(Gh,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Gh),Cj=class{constructor(...t){kt(this,"defaults",E2());kt(this,"options",this.setOptions);kt(this,"parse",this.parseMarkdown(!0));kt(this,"parseInline",this.parseMarkdown(!1));kt(this,"Parser",mi);kt(this,"Renderer",Au);kt(this,"TextRenderer",O2);kt(this,"Lexer",gi);kt(this,"Tokenizer",Lu);kt(this,"Hooks",Fl);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let l of o.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of o.rows)for(let c of l)i=i.concat(this.walkTokens(c.tokens,r));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=s;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{let c=o[l].flat(1/0);i=i.concat(this.walkTokens(c,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new Au(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Lu(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new Fl;for(let s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],c=a[o];Fl.passThroughHooks.has(s)?a[o]=h=>{if(this.defaults.async&&Fl.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,h);return c.call(a,f)})();let u=l.call(a,h);return c.call(a,u)}:a[o]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,h);return f===!1&&(f=await c.apply(a,h)),f})();let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return gi.lex(t,r??this.defaults)}parser(t,r){return mi.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():t?gi.lex:gi.lexInline)(o,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?mi.parse:mi.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():t?gi.lex:gi.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():t?mi.parse:mi.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(t,r){return i=>{if(i.message+=`
|
|
586
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Ai(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},ss=new Cj;function Xt(e,t){return ss.parse(e,t)}Xt.options=Xt.setOptions=function(e){return ss.setOptions(e),Xt.defaults=ss.defaults,T8(Xt.defaults),Xt};Xt.getDefaults=E2;Xt.defaults=ms;Xt.use=function(...e){return ss.use(...e),Xt.defaults=ss.defaults,T8(Xt.defaults),Xt};Xt.walkTokens=function(e,t){return ss.walkTokens(e,t)};Xt.parseInline=ss.parseInline;Xt.Parser=mi;Xt.parser=mi.parse;Xt.Renderer=Au;Xt.TextRenderer=O2;Xt.Lexer=gi;Xt.lexer=gi.lex;Xt.Tokenizer=Lu;Xt.Hooks=Fl;Xt.parse=Xt;Xt.options;Xt.setOptions;Xt.use;Xt.walkTokens;Xt.parseInline;mi.parse;gi.lex;function D8(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(o,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?o.concat(c.map(function(h){var u,f;return(f=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):o},[]);if(n.length){var a=new RegExp(`
|
|
587
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(o){return o.replace(a,`
|
|
588
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(o,l){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=o;typeof o=="string"&&o.includes(`
|
|
589
|
+
`)&&(u=String(o).split(`
|
|
590
|
+
`).map(function(f,d){return d===0?f:""+h+f}).join(`
|
|
591
|
+
`)),s+=u+i[l+1]}),s}var kj={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},tg=new Map,R8=new Map,wj=C(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Z.debug("Registering icon pack:",t.name),"loader"in t)R8.set(t.name,t.loader);else if("icons"in t)tg.set(t.name,t.icons);else throw Z.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),O8=C(async(e,t)=>{const r=SN(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=tg.get(i);if(!n){const s=R8.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},tg.set(i,n)}catch(o){throw Z.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=BN(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),Sj=C(async e=>{try{return await O8(e),!0}catch{return!1}},"isIconAvailable"),Zc=C(async(e,t,r)=>{let i;try{i=await O8(e,t==null?void 0:t.fallbackPrefix)}catch(s){Z.error(s),i=kj}const n=IN(i,t),a=ON(RN(n.body),{...n.attributes,...r});return Si(a,de())},"getIconSVG");function P8(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
592
|
+
`).replace(/\n{2,}/g,`
|
|
593
|
+
`);return D8(i)}C(P8,"preprocessMarkdown");function N8(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}C(N8,"nonMarkdownToLines");function j8(e,t={}){const r=P8(e,t),i=Xt.lexer(r),n=[[]];let a=0;function s(o,l="normal"){o.type==="text"?o.text.split(`
|
|
594
|
+
`).forEach((h,u)=>{u!==0&&(a++,n.push([])),h.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&n[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(c=>{s(c,o.type)}):o.type==="html"&&n[a].push({content:o.text,type:"normal"})}return C(s,"processNode"),i.forEach(o=>{var l;o.type==="paragraph"?(l=o.tokens)==null||l.forEach(c=>{s(c)}):o.type==="html"?n[a].push({content:o.text,type:"normal"}):n[a].push({content:o.raw,type:"normal"})}),n}C(j8,"markdownToLines");function q8(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}C(q8,"nonMarkdownToHTML");function W8(e,{markdownAutoWrap:t}={}){const r=Xt.lexer(e);function i(n){var a,s,o;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(s=n.tokens)==null?void 0:s.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(o=n.tokens)==null?void 0:o.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(Z.warn(`Unsupported markdown: ${n.type}`),n.raw)}return C(i,"output"),r.map(i).join("")}C(W8,"markdownToHTML");function H8(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}C(H8,"splitTextToChars");function U8(e,t){const r=H8(t.content);return P2(e,[],r,t.type)}C(U8,"splitWordToFitWidth");function P2(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,s=[...t,n];return e([{content:s.join(""),type:i}])?P2(e,s,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}C(P2,"splitWordToFitWidthRecursion");function Y8(e,t){if(e.some(({content:r})=>r.includes(`
|
|
595
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Eu(e,t)}C(Y8,"splitLineToFitWidth");function Eu(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),t(s))return Eu(e,t,r,s);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[o,l]=U8(t,a);r.push([o]),l.content&&e.unshift(l)}return Eu(e,t,r)}C(Eu,"splitLineToFitWidthRecursion");function eg(e,t){t&&e.attr("style",t)}C(eg,"applyStyle");var Av=16384;async function G8(e,t,r,i,n=!1,a=de()){const s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,Av)}px`),s.attr("height",`${Math.min(10*r,Av)}px`);const o=s.append("xhtml:div"),l=Cc(t.label)?await vC(t.label.replace(Uc.lineBreakRegex,`
|
|
596
|
+
`),a):Si(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),eg(h,t.labelStyle),h.attr("class",`${c} ${i}`),eg(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),s.node()}C(G8,"addHtmlSpan");function Fd(e,t,r,i=!1){const n=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}C(Fd,"createTspan");function V8(e,t,r){const i=e.append("text"),n=Fd(i,1,t);$d(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}C(V8,"computeWidthOfText");function Tj(e,t,r){var s;const i=e.append("text"),n=Fd(i,1,t);$d(n,[{content:r,type:"normal"}]);const a=(s=n.node())==null?void 0:s.getBoundingClientRect();return a&&i.remove(),a}C(Tj,"computeDimensionOfText");function X8(e,t,r,i=!1,n=!1){const s=t.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");n&&l.attr("text-anchor","middle");let c=0;for(const h of r){const u=C(d=>V8(s,1.1,d)<=e,"checkWidth"),f=u(h)?[h]:Y8(h,u);for(const d of f){const g=Fd(l,c,1.1,n);$d(g,d),c++}}if(i){const h=l.node().getBBox(),u=2;return o.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),s.node()}else return l.node()}C(X8,"createFormattedText");function rg(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}C(rg,"decodeHTMLEntities");function $d(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(rg(r.content)):n.text(" "+rg(r.content))})}C($d,"updateTextContentAndStyles");async function Q8(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await Sj(o)?await Zc(o,void 0,{class:"label-icon"}):`<i class='${Si(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}C(Q8,"replaceIconSubstring");var Bn=C(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(Z.debug("XYZ createText",t,r,i,n,a,o,"addSvgBackground: ",c),a){const u=s?W8(t,h):q8(t),f=await Q8(as(u),h),d=t.replace(/\\\\/g,"\\"),g={isNode:o,label:Cc(t)?d:f,labelStyle:r.replace("fill:","color:")};return await G8(e,g,l,n,c,h)}else{const u=as(t.replace(/<br\s*\/?>/g,"<br/>")),f=s?j8(u.replace("<br>","<br/>"),h):N8(u),d=X8(l,e,f,t?c:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");zt(d).attr("style",g)}else{const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");zt(d).select("rect").attr("style",g.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");zt(d).select("text").attr("style",p)}return i?zt(d).selectAll("tspan.text-outer-tspan").classed("title-row",!0):zt(d).selectAll("tspan.text-outer-tspan").classed("row",!0),d}},"createText");function Qf(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of e){const[c,h]=l;l[0]=(c-i)*s-(h-n)*o+i,l[1]=(c-i)*o+(h-n)*s+n}}}function _j(e,t){return e[0]===t[0]&&e[1]===t[1]}function Bj(e,t,r,i=1){const n=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,o=[0,0];if(n)for(const c of s)Qf(c,o,n);const l=function(c,h,u){const f=[];for(const x of c){const k=[...x];_j(k[0],k[k.length-1])||k.push([k[0][0],k[0][1]]),k.length>2&&f.push(k)}const d=[];h=Math.max(h,.1);const g=[];for(const x of f)for(let k=0;k<x.length-1;k++){const T=x[k],_=x[k+1];if(T[1]!==_[1]){const M=Math.min(T[1],_[1]);g.push({ymin:M,ymax:Math.max(T[1],_[1]),x:M===T[1]?T[0]:_[0],islope:(_[0]-T[0])/(_[1]-T[1])})}}if(g.sort((x,k)=>x.ymin<k.ymin?-1:x.ymin>k.ymin?1:x.x<k.x?-1:x.x>k.x?1:x.ymax===k.ymax?0:(x.ymax-k.ymax)/Math.abs(x.ymax-k.ymax)),!g.length)return d;let p=[],m=g[0].ymin,y=0;for(;p.length||g.length;){if(g.length){let x=-1;for(let k=0;k<g.length&&!(g[k].ymin>m);k++)x=k;g.splice(0,x+1).forEach(k=>{p.push({s:m,edge:k})})}if(p=p.filter(x=>!(x.edge.ymax<=m)),p.sort((x,k)=>x.edge.x===k.edge.x?0:(x.edge.x-k.edge.x)/Math.abs(x.edge.x-k.edge.x)),(u!==1||y%h==0)&&p.length>1)for(let x=0;x<p.length;x+=2){const k=x+1;if(k>=p.length)break;const T=p[x].edge,_=p[k].edge;d.push([[Math.round(T.x),m],[Math.round(_.x),m]])}m+=u,p.forEach(x=>{x.edge.x=x.edge.x+u*x.edge.islope}),y++}return d}(s,a,i);if(n){for(const c of s)Qf(c,o,-n);(function(c,h,u){const f=[];c.forEach(d=>f.push(...d)),Qf(f,h,u)})(l,o,-n)}return l}function Jc(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),Bj(e,n,i,a||1)}class N2{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Jc(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function Id(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class Lj extends N2{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=Jc(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(const[c,h]of n)Id([c,h])&&s.push([[c[0]-o,c[1]+l],[...h]],[[c[0]+o,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class Aj extends N2{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class Ej{constructor(t){this.helper=t}fillPolygons(t,r){const i=Jc(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=n/4;for(const o of t){const l=Id(o),c=l/n,h=Math.ceil(c)-1,u=l-h*n,f=(o[0][0]+o[1][0])/2-n/4,d=Math.min(o[0][1],o[1][1]);for(let g=0;g<h;g++){const p=d+u+g*n,m=f-s+2*Math.random()*s,y=p-s+2*Math.random()*s,x=this.helper.ellipse(m,y,a,a,r);i.push(...x.ops)}}return{type:"fillSketch",ops:i}}}class Mj{constructor(t){this.helper=t}fillPolygons(t,r){const i=Jc(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach(s=>{const o=Id(s),l=Math.floor(o/(i+n)),c=(o+n-l*(i+n))/2;let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const f=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let d=0;d<l;d++){const g=d*(i+n),p=g+i,m=[h[0]+g*Math.cos(f)+c*Math.cos(f),h[1]+g*Math.sin(f)+c*Math.sin(f)],y=[h[0]+p*Math.cos(f)+c*Math.cos(f),h[1]+p*Math.sin(f)+c*Math.sin(f)];a.push(...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],r))}}),a}}class Fj{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=Jc(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach(a=>{const s=Id(a),o=Math.round(s/(2*r));let l=a[0],c=a[1];l[0]>c[0]&&(l=a[1],c=a[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<o;u++){const f=2*u*r,d=2*(u+1)*r,g=Math.sqrt(2*Math.pow(r,2)),p=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],m=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],y=[p[0]+g*Math.cos(h+Math.PI/4),p[1]+g*Math.sin(h+Math.PI/4)];n.push(...this.helper.doubleLineOps(p[0],p[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],m[0],m[1],i))}}),n}}const wr={};class $j{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Ij=0,Kf=1,Ev=2,jh={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Zf(e,t){return e.type===t}function j2(e){const t=[],r=function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:Ij,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:Kf,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:Ev,text:""},o}(e);let i="BOD",n=0,a=r[n];for(;!Zf(a,Ev);){let s=0;const o=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return j2("M0,0"+e);n++,s=jh[a.text],i=a.text}else Zf(a,Kf)?s=jh[i]:(n++,s=jh[a.text],i=a.text);if(!(n+s<r.length))throw new Error("Path data ended short");for(let l=n;l<n+s;l++){const c=r[l];if(!Zf(c,Kf))throw new Error("Param not a number: "+i+","+c.text);o[o.length]=+c.text}if(typeof jh[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:o};t.push(l),n+=s,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function K8(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:s,data:o}of e)switch(s){case"M":a.push({key:"M",data:[...o]}),[t,r]=o,[i,n]=o;break;case"m":t+=o[0],r+=o[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...o]}),[t,r]=o;break;case"l":t+=o[0],r+=o[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...o]}),t=o[4],r=o[5];break;case"c":{const l=o.map((c,h)=>h%2?c+r:c+t);a.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],r=o[3];break;case"q":{const l=o.map((c,h)=>h%2?c+r:c+t);a.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],r=o[6];break;case"a":t+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,r]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],r=o[3];break;case"s":{const l=o.map((c,h)=>h%2?c+r:c+t);a.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],r=o[1];break;case"t":t+=o[0],r+=o[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function Z8(e){const t=[];let r="",i=0,n=0,a=0,s=0,o=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,n]=h,[a,s]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],n=h[5],o=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,n]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,n]});break;case"V":n=h[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-o),f=n+(n-l)):(u=i,f=n),t.push({key:"C",data:[u,f,...h]}),o=h[0],l=h[1],i=h[2],n=h[3];break}case"T":{const[u,f]=h;let d=0,g=0;r==="Q"||r==="T"?(d=i+(i-o),g=n+(n-l)):(d=i,g=n);const p=i+2*(d-i)/3,m=n+2*(g-n)/3,y=u+2*(d-u)/3,x=f+2*(g-f)/3;t.push({key:"C",data:[p,m,y,x,u,f]}),o=d,l=g,i=u,n=f;break}case"Q":{const[u,f,d,g]=h,p=i+2*(u-i)/3,m=n+2*(f-n)/3,y=d+2*(u-d)/3,x=g+2*(f-g)/3;t.push({key:"C",data:[p,m,y,x,d,g]}),o=u,l=f,i=d,n=g;break}case"A":{const u=Math.abs(h[0]),f=Math.abs(h[1]),d=h[2],g=h[3],p=h[4],m=h[5],y=h[6];u===0||f===0?(t.push({key:"C",data:[i,n,m,y,m,y]}),i=m,n=y):(i!==m||n!==y)&&(J8(i,n,m,y,u,f,d,g,p).forEach(function(x){t.push({key:"C",data:x})}),i=m,n=y);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=s}r=c}return t}function xl(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function J8(e,t,r,i,n,a,s,o,l,c){const h=(u=s,Math.PI*u/180);var u;let f=[],d=0,g=0,p=0,m=0;if(c)[d,g,p,m]=c;else{[e,t]=xl(e,t,-h),[r,i]=xl(r,i,-h);const Q=(e-r)/2,Y=(t-i)/2;let q=Q*Q/(n*n)+Y*Y/(a*a);q>1&&(q=Math.sqrt(q),n*=q,a*=q);const R=n*n,H=a*a,F=R*H-R*Y*Y-H*Q*Q,V=R*Y*Y+H*Q*Q,K=(o===l?-1:1)*Math.sqrt(Math.abs(F/V));p=K*n*Y/a+(e+r)/2,m=K*-a*Q/n+(t+i)/2,d=Math.asin(parseFloat(((t-m)/a).toFixed(9))),g=Math.asin(parseFloat(((i-m)/a).toFixed(9))),e<p&&(d=Math.PI-d),r<p&&(g=Math.PI-g),d<0&&(d=2*Math.PI+d),g<0&&(g=2*Math.PI+g),l&&d>g&&(d-=2*Math.PI),!l&&g>d&&(g-=2*Math.PI)}let y=g-d;if(Math.abs(y)>120*Math.PI/180){const Q=g,Y=r,q=i;g=l&&g>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=J8(r=p+n*Math.cos(g),i=m+a*Math.sin(g),Y,q,n,a,s,0,l,[g,Q,p,m])}y=g-d;const x=Math.cos(d),k=Math.sin(d),T=Math.cos(g),_=Math.sin(g),M=Math.tan(y/4),S=4/3*n*M,A=4/3*a*M,N=[e,t],z=[e+S*k,t-A*x],P=[r+S*_,i-A*T],U=[r,i];if(z[0]=2*N[0]-z[0],z[1]=2*N[1]-z[1],c)return[z,P,U].concat(f);{f=[z,P,U].concat(f);const Q=[];for(let Y=0;Y<f.length;Y+=3){const q=xl(f[Y][0],f[Y][1],h),R=xl(f[Y+1][0],f[Y+1][1],h),H=xl(f[Y+2][0],f[Y+2][1],h);Q.push([q[0],q[1],R[0],R[1],H[0],H[1]])}return Q}}const zj={randOffset:function(e,t){return Bt(e,t)},randOffsetWithRange:function(e,t,r){return Mu(e,t,r)},ellipse:function(e,t,r,i,n){const a=ew(r,i,n);return ig(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return pa(e,t,r,i,n,!0)}};function tw(e,t,r,i,n){return{type:"path",ops:pa(e,t,r,i,n)}}function y0(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...pa(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...pa(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?tw(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function Dj(e,t,r,i,n){return function(a,s){return y0(a,!0,s)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function Mv(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=qh(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:qh(r[0],1.5*(1+.22*t.roughness),Iv(t));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const o=qh(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:qh(s,1.5*(1+.22*t.roughness),Iv(t));for(const c of o)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&n.push(c)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function ew(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let s=Math.abs(e/2),o=Math.abs(t/2);const l=1-r.curveFitting;return s+=Bt(s*l,r),o+=Bt(o*l,r),{increment:a,rx:s,ry:o}}function ig(e,t,r,i){const[n,a]=zv(i.increment,e,t,i.rx,i.ry,1,i.increment*Mu(.1,Mu(.4,1,r),r),r);let s=Fu(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=zv(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Fu(o,null,r);s=s.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function Fv(e,t,r,i,n,a,s,o,l){const c=e,h=t;let u=Math.abs(r/2),f=Math.abs(i/2);u+=Bt(.01*u,l),f+=Bt(.01*f,l);let d=n,g=a;for(;d<0;)d+=2*Math.PI,g+=2*Math.PI;g-d>2*Math.PI&&(d=0,g=2*Math.PI);const p=2*Math.PI/l.curveStepCount,m=Math.min(p/2,(g-d)/2),y=Dv(m,c,h,u,f,d,g,1,l);if(!l.disableMultiStroke){const x=Dv(m,c,h,u,f,d,g,1.5,l);y.push(...x)}return s&&(o?y.push(...pa(c,h,c+u*Math.cos(d),h+f*Math.sin(d),l),...pa(c,h,c+u*Math.cos(g),h+f*Math.sin(g),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(d),h+f*Math.sin(d)]})),{type:"path",ops:y}}function $v(e,t){const r=Z8(K8(j2(e))),i=[];let n=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],n=[o[0],o[1]];break;case"L":i.push(...pa(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case"C":{const[l,c,h,u,f,d]=o;i.push(...Rj(l,c,h,u,f,d,a,t)),a=[f,d];break}case"Z":i.push(...pa(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function Jf(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+Bt(n,t),i[0][1]+Bt(n,t)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[i[s][0]+Bt(n,t),i[s][1]+Bt(n,t)]})}}return{type:"fillPath",ops:r}}function Bs(e,t){return function(r,i){let n=r.fillStyle||"hachure";if(!wr[n])switch(n){case"zigzag":wr[n]||(wr[n]=new Lj(i));break;case"cross-hatch":wr[n]||(wr[n]=new Aj(i));break;case"dots":wr[n]||(wr[n]=new Ej(i));break;case"dashed":wr[n]||(wr[n]=new Mj(i));break;case"zigzag-line":wr[n]||(wr[n]=new Fj(i));break;default:n="hachure",wr[n]||(wr[n]=new N2(i))}return wr[n]}(t,zj).fillPolygons(e,t)}function Iv(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function rw(e){return e.randomizer||(e.randomizer=new $j(e.seed||0)),e.randomizer.next()}function Mu(e,t,r,i=1){return r.roughness*i*(rw(r)*(t-e)+e)}function Bt(e,t,r=1){return Mu(-e,e,t,r)}function pa(e,t,r,i,n,a=!1){const s=a?n.disableMultiStrokeFill:n.disableMultiStroke,o=ng(e,t,r,i,n,!0,!1);if(s)return o;const l=ng(e,t,r,i,n,!0,!0);return o.concat(l)}function ng(e,t,r,i,n,a,s){const o=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(o);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=n.maxRandomnessOffset||0;h*h*100>o&&(h=l/10);const u=h/2,f=.2+.2*rw(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,g=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=Bt(d,n,c),g=Bt(g,n,c);const p=[],m=()=>Bt(u,n,c),y=()=>Bt(h,n,c),x=n.preserveVertices;return s?p.push({op:"move",data:[e+(x?0:m()),t+(x?0:m())]}):p.push({op:"move",data:[e+(x?0:Bt(h,n,c)),t+(x?0:Bt(h,n,c))]}),s?p.push({op:"bcurveTo",data:[d+e+(r-e)*f+m(),g+t+(i-t)*f+m(),d+e+2*(r-e)*f+m(),g+t+2*(i-t)*f+m(),r+(x?0:m()),i+(x?0:m())]}):p.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),g+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),g+t+2*(i-t)*f+y(),r+(x?0:y()),i+(x?0:y())]}),p}function qh(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+Bt(t,r),e[0][1]+Bt(t,r)]),i.push([e[0][0]+Bt(t,r),e[0][1]+Bt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+Bt(t,r),e[n][1]+Bt(t,r)]),n===e.length-1&&i.push([e[n][0]+Bt(t,r),e[n][1]+Bt(t,r)]);return Fu(i,null,r)}function Fu(e,t,r){const i=e.length,n=[];if(i>3){const a=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let o=1;o+2<i;o++){const l=e[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*e[o+1][0]-s*e[o-1][0])/6,l[1]+(s*e[o+1][1]-s*e[o-1][1])/6],a[2]=[e[o+1][0]+(s*e[o][0]-s*e[o+2][0])/6,e[o+1][1]+(s*e[o][1]-s*e[o+2][1])/6],a[3]=[e[o+1][0],e[o+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...ng(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function zv(e,t,r,i,n,a,s,o){const l=[],c=[];if(o.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+n*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+n*Math.sin(0)]),c.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const h=Bt(.5,o)-Math.PI/2;c.push([Bt(a,o)+t+.9*i*Math.cos(h-e),Bt(a,o)+r+.9*n*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let f=h;f<u;f+=e){const d=[Bt(a,o)+t+i*Math.cos(f),Bt(a,o)+r+n*Math.sin(f)];l.push(d),c.push(d)}c.push([Bt(a,o)+t+i*Math.cos(h+2*Math.PI+.5*s),Bt(a,o)+r+n*Math.sin(h+2*Math.PI+.5*s)]),c.push([Bt(a,o)+t+.98*i*Math.cos(h+s),Bt(a,o)+r+.98*n*Math.sin(h+s)]),c.push([Bt(a,o)+t+.9*i*Math.cos(h+.5*s),Bt(a,o)+r+.9*n*Math.sin(h+.5*s)])}return[c,l]}function Dv(e,t,r,i,n,a,s,o,l){const c=a+Bt(.1,l),h=[];h.push([Bt(o,l)+t+.9*i*Math.cos(c-e),Bt(o,l)+r+.9*n*Math.sin(c-e)]);for(let u=c;u<=s;u+=e)h.push([Bt(o,l)+t+i*Math.cos(u),Bt(o,l)+r+n*Math.sin(u)]);return h.push([t+i*Math.cos(s),r+n*Math.sin(s)]),h.push([t+i*Math.cos(s),r+n*Math.sin(s)]),Fu(h,null,l)}function Rj(e,t,r,i,n,a,s,o){const l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let h=[0,0];const u=o.disableMultiStroke?1:2,f=o.preserveVertices;for(let d=0;d<u;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:Bt(c[0],o)),s[1]+(f?0:Bt(c[0],o))]}),h=f?[n,a]:[n+Bt(c[d],o),a+Bt(c[d],o)],l.push({op:"bcurveTo",data:[e+Bt(c[d],o),t+Bt(c[d],o),r+Bt(c[d],o),i+Bt(c[d],o),h[0],h[1]]});return l}function vl(e){return[...e]}function Rv(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(vl(e[0]),vl(e[1]),vl(e[2]),vl(e[2]));else{const n=[];n.push(e[0],e[0]);for(let o=1;o<e.length;o++)n.push(e[o]),o===e.length-1&&n.push(e[o]);const a=[],s=1-t;i.push(vl(n[0]));for(let o=1;o+2<n.length;o++){const l=n[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*n[o+1][0]-s*n[o-1][0])/6,l[1]+(s*n[o+1][1]-s*n[o-1][1])/6],a[2]=[n[o+1][0]+(s*n[o][0]-s*n[o+2][0])/6,n[o+1][1]+(s*n[o][1]-s*n[o+2][1])/6],a[3]=[n[o+1][0],n[o+1][1]],i.push(a[1],a[2],a[3])}}return i}function x0(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function Oj(e,t,r){const i=x0(t,r);if(i===0)return x0(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),x0(e,Ia(t,r,n))}function Ia(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function ag(e,t,r,i){const n=i||[];if(function(o,l){const c=o[l+0],h=o[l+1],u=o[l+2],f=o[l+3];let d=3*h[0]-2*c[0]-f[0];d*=d;let g=3*h[1]-2*c[1]-f[1];g*=g;let p=3*u[0]-2*f[0]-c[0];p*=p;let m=3*u[1]-2*f[1]-c[1];return m*=m,d<p&&(d=p),g<m&&(g=m),d+g}(e,t)<r){const o=e[t+0];n.length?(a=n[n.length-1],s=o,Math.sqrt(x0(a,s))>1&&n.push(o)):n.push(o),n.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],f=Ia(l,c,.5),d=Ia(c,h,.5),g=Ia(h,u,.5),p=Ia(f,d,.5),m=Ia(d,g,.5),y=Ia(p,m,.5);ag([l,f,p,y],0,r,n),ag([y,m,g,u],0,r,n)}var a,s;return n}function Pj(e,t){return $u(e,0,e.length,t)}function $u(e,t,r,i,n){const a=n||[],s=e[t],o=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=Oj(e[h],s,o);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?($u(e,t,c+1,i,a),$u(e,c,r,i,a)):(a.length||a.push(s),a.push(o)),a}function tp(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)ag(e,3*a,t,i);return r&&r>0?$u(i,0,i.length,r):i}const Dr="none";class Iu{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,a){const s=this._o(a);return this._d("line",[tw(t,r,i,n,s)],s)}rectangle(t,r,i,n,a){const s=this._o(a),o=[],l=Dj(t,r,i,n,s);if(s.fill){const c=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];s.fillStyle==="solid"?o.push(Jf([c],s)):o.push(Bs([c],s))}return s.stroke!==Dr&&o.push(l),this._d("rectangle",o,s)}ellipse(t,r,i,n,a){const s=this._o(a),o=[],l=ew(i,n,s),c=ig(t,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const h=ig(t,r,s,l).opset;h.type="fillPath",o.push(h)}else o.push(Bs([c.estimatedPoints],s));return s.stroke!==Dr&&o.push(c.opset),this._d("ellipse",o,s)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[y0(t,!1,i)],i)}arc(t,r,i,n,a,s,o=!1,l){const c=this._o(l),h=[],u=Fv(t,r,i,n,a,s,o,!0,c);if(o&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const d=Fv(t,r,i,n,a,s,!0,!1,f);d.type="fillPath",h.push(d)}else h.push(function(f,d,g,p,m,y,x){const k=f,T=d;let _=Math.abs(g/2),M=Math.abs(p/2);_+=Bt(.01*_,x),M+=Bt(.01*M,x);let S=m,A=y;for(;S<0;)S+=2*Math.PI,A+=2*Math.PI;A-S>2*Math.PI&&(S=0,A=2*Math.PI);const N=(A-S)/x.curveStepCount,z=[];for(let P=S;P<=A;P+=N)z.push([k+_*Math.cos(P),T+M*Math.sin(P)]);return z.push([k+_*Math.cos(A),T+M*Math.sin(A)]),z.push([k,T]),Bs([z],x)}(t,r,i,n,a,s,c));return c.stroke!==Dr&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),n=[],a=Mv(t,i);if(i.fill&&i.fill!==Dr)if(i.fillStyle==="solid"){const s=Mv(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=t;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...tp(Rv([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):s.push(...tp(Rv(c),10,(1+i.roughness)/2))}s.length&&n.push(Bs([s],i))}return i.stroke!==Dr&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=y0(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(Jf([t],i)):n.push(Bs([t],i))),i.stroke!==Dr&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==Dr,s=i.stroke!==Dr,o=!!(i.simplification&&i.simplification<1),l=function(h,u,f){const d=Z8(K8(j2(h))),g=[];let p=[],m=[0,0],y=[];const x=()=>{y.length>=4&&p.push(...tp(y,u)),y=[]},k=()=>{x(),p.length&&(g.push(p),p=[])};for(const{key:_,data:M}of d)switch(_){case"M":k(),m=[M[0],M[1]],p.push(m);break;case"L":x(),p.push([M[0],M[1]]);break;case"C":if(!y.length){const S=p.length?p[p.length-1]:m;y.push([S[0],S[1]])}y.push([M[0],M[1]]),y.push([M[2],M[3]]),y.push([M[4],M[5]]);break;case"Z":x(),p.push([m[0],m[1]])}if(k(),!f)return g;const T=[];for(const _ of g){const M=Pj(_,f);M.length&&T.push(M)}return T}(t,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),c=$v(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const h=$v(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else n.push(Jf(l,i));else n.push(Bs(l,i));return s&&(o?l.forEach(h=>{n.push(y0(h,!1,i))}):n.push(c)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map(s=>+s.toFixed(r)):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Dr};break;case"fillPath":s={d:this.opsToPath(a),stroke:Dr,strokeWidth:0,fill:i.fill||Dr};break;case"fillSketch":s=this.fillSketch(a,i)}s&&n.push(s)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Dr,strokeWidth:i,fill:Dr}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class Nj{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Iu(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const o=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,o),n.restore();break}case"fillSketch":this.fillSketch(n,s,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const s=typeof i=="number"&&i>=0?a.data.map(o=>+o.toFixed(i)):a.data;switch(a.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s),s}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s),s}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s),s}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,a,s,o=!1,l){const c=this.gen.arc(t,r,i,n,a,s,o,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const Wh="http://www.w3.org/2000/svg";class jj{constructor(t,r){this.svg=t,this.gen=new Iu(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(Wh,"g"),s=t.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=n.createElementNS(Wh,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS(Wh,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,o,i)}l&&a.appendChild(l)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(Wh,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s)}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s)}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,a,s,o=!1,l){const c=this.gen.arc(t,r,i,n,a,s,o,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var pt={canvas:(e,t)=>new Nj(e,t),svg:(e,t)=>new jj(e,t),generator:e=>new Iu(e),newSeed:()=>Iu.newSeed()},Tt=C(async(e,t,r)=>{var d,g;let i;const n=t.useHtmlLabels||Tn((d=qt())==null?void 0:d.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=a.insert("g").attr("class","label").attr("style",He(t.labelStyle));let o;t.label===void 0?o="":o=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,c=t.labelType==="markdown",h=await Bn(s,Si(as(o),qt()),{useHtmlLabels:n,width:t.width||((g=qt().flowchart)==null?void 0:g.wrappingWidth),classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:c},qt());let u=h.getBBox();const f=((t==null?void 0:t.padding)??0)/2;if(n){const p=h.children[0],m=zt(h);await k8(p,o),u=p.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}return n?s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):s.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:u,halfPadding:f,label:s}},"labelHelper"),ep=C(async(e,t,r)=>{var l,c;const i=r.useHtmlLabels??xr(qt()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Bn(n,Si(as(t),qt()),{useHtmlLabels:i,width:r.width||((c=(l=qt())==null?void 0:l.flowchart)==null?void 0:c.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(xr(qt())){const h=a.children[0],u=zt(a);s=h.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return i?n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):n.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:o,label:n}},"insertLabel"),xt=C((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),St=C((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Ot(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}C(Ot,"createPathFromPoints");function ga(e,t,r,i,n,a){const s=[],l=r-e,c=i-t,h=l/a,u=2*Math.PI/h,f=t+c/2;for(let d=0;d<=50;d++){const g=d/50,p=e+g*l,m=f+n*Math.sin(u*(p-e));s.push({x:p,y:m})}return s}C(ga,"generateFullSineWavePoints");function Fc(e,t,r,i,n,a){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}C(Fc,"generateCirclePoints");function sg(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const n=t.find(l=>l.getAttribute("fill")!=="none"),a=t.find(l=>l.getAttribute("stroke")!=="none"),s=C((l,c)=>(l==null?void 0:l.getAttribute(c))??void 0,"getAttr");if(n){const l={fill:s(n,"fill"),"fill-opacity":s(n,"fill-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}if(a){const l={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}const o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}C(sg,"mergePaths");var qj=C((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,s=e.width/2,o=e.height/2,l,c;return Math.abs(a)*s>Math.abs(n)*o?(a<0&&(o=-o),l=a===0?0:o*n/a,c=o):(n<0&&(s=-s),l=s,c=n===0?0:s*a/n),{x:r+l,y:i+c}},"intersectRect"),Ko=qj,Wj=C(async(e,t,r,i=!1,n=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);const s=qt(),o=xr(s);return await Bn(e,a,{style:r,isTitle:i,useHtmlLabels:o,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Gn=Wj,wa=C((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),iw=C(async(e,t)=>{Z.info("Creating subgraph rect for ",t.id,t);const r=qt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:h}=yt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=xr(r),d=u.insert("g").attr("class","cluster-label ");let g;t.labelType==="markdown"?g=await Bn(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}):g=await Gn(d,t.label,t.labelStyle||"",!1,!0);let p=g.getBBox();if(xr(r)){const S=g.children[0],A=zt(g);p=S.getBoundingClientRect(),A.attr("width",p.width),A.attr("height",p.height)}const m=t.width<=p.width+t.padding?p.width+t.padding:t.width;t.width<=p.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,x=t.x-m/2,k=t.y-y/2;Z.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const S=pt.svg(u),A=mt(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:n}),N=S.path(wa(x,k,m,y,0),A);T=u.insert(()=>(Z.debug("Rough node insert CXC",N),N),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",x).attr("y",k).attr("width",m).attr("height",y);const{subGraphTitleTopMargin:_}=A2(r);if(d.attr("transform",`translate(${t.x-p.width/2}, ${t.y-t.height/2+_})`),o){const S=d.select("span");S&&S.attr("style",o)}const M=T.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=p.height-t.padding/2,t.intersect=function(S){return Ko(t,S)},{cluster:u,labelBBox:p}},"rect"),Hj=C((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(o){return Ko(t,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Uj=C(async(e,t)=>{const r=qt(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let f=c.append("rect");const d=await Gn(u,t.label,t.labelStyle,void 0,!0);let g=d.getBBox();if(xr(r)){const N=d.children[0],z=zt(d);g=N.getBoundingClientRect(),z.attr("width",g.width),z.attr("height",g.height)}const p=0*t.padding,m=p/2,y=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+p;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height+p,k=t.height+p-g.height-6,T=t.x-y/2,_=t.y-x/2;t.width=y;const M=t.y-t.height/2-m+g.height+2;let S;if(t.look==="handDrawn"){const N=t.cssClasses.includes("statediagram-cluster-alt"),z=pt.svg(c),P=t.rx||t.ry?z.path(wa(T,_,y,x,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:n}):z.rectangle(T,_,y,x,{seed:n});S=c.insert(()=>P,":first-child");const U=z.rectangle(T,M,y,k,{fill:N?a:s,fillStyle:N?"hachure":"solid",stroke:l,seed:n});S=c.insert(()=>P,":first-child"),f=c.insert(()=>U)}else S=h.insert("rect",":first-child"),S.attr("class","outer").attr("x",T).attr("y",_).attr("width",y).attr("height",x).attr("data-look",t.look),f.attr("class","inner").attr("x",T).attr("y",M).attr("width",y).attr("height",k);u.attr("transform",`translate(${t.x-g.width/2}, ${_+1-(xr(r)?0:3)})`);const A=S.node().getBBox();return t.height=A.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(N){return Ko(t,N)},{cluster:c,labelBBox:g}},"roundedWithTitle"),Yj=C(async(e,t)=>{Z.info("Creating subgraph rect for ",t.id,t);const r=qt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:h}=yt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=xr(r),d=u.insert("g").attr("class","cluster-label "),g=await Bn(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let p=g.getBBox();if(xr(r)){const S=g.children[0],A=zt(g);p=S.getBoundingClientRect(),A.attr("width",p.width),A.attr("height",p.height)}const m=t.width<=p.width+t.padding?p.width+t.padding:t.width;t.width<=p.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,x=t.x-m/2,k=t.y-y/2;Z.trace("Data ",t,JSON.stringify(t));let T;if(t.look==="handDrawn"){const S=pt.svg(u),A=mt(t,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:n}),N=S.path(wa(x,k,m,y,t.rx),A);T=u.insert(()=>(Z.debug("Rough node insert CXC",N),N),":first-child"),T.select("path:nth-child(2)").attr("style",c.join(";")),T.select("path").attr("style",h.join(";").replace("fill","stroke"))}else T=u.insert("rect",":first-child"),T.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",x).attr("y",k).attr("width",m).attr("height",y);const{subGraphTitleTopMargin:_}=A2(r);if(d.attr("transform",`translate(${t.x-p.width/2}, ${t.y-t.height/2+_})`),o){const S=d.select("span");S&&S.attr("style",o)}const M=T.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=p.height-t.padding/2,t.intersect=function(S){return Ko(t,S)},{cluster:u,labelBBox:p}},"kanbanSection"),Gj=C((e,t)=>{const r=qt(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),o=s.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,f=t.y-h/2;t.width=c;let d;if(t.look==="handDrawn"){const m=pt.svg(s).rectangle(u,f,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});d=s.insert(()=>m,":first-child")}else{d=o.insert("rect",":first-child");let p="outer";t.look,p="divider",d.attr("class",p).attr("x",u).attr("y",f).attr("width",c).attr("height",h).attr("data-look",t.look)}const g=d.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(p){return Ko(t,p)},{cluster:s,labelBBox:{}}},"divider"),Vj=iw,Xj={rect:iw,squareRect:Vj,roundedWithTitle:Uj,noteGroup:Hj,divider:Gj,kanbanSection:Yj},nw=new Map,Qj=C(async(e,t)=>{const r=t.shape||"rect",i=await Xj[r](e,t);return nw.set(t.id,i),i},"insertCluster"),BG=C(()=>{nw=new Map},"clear");function aw(e,t){return e.intersect(t)}C(aw,"intersectNode");var Kj=aw;function sw(e,t,r,i){var n=e.x,a=e.y,s=n-i.x,o=a-i.y,l=Math.sqrt(t*t*o*o+r*r*s*s),c=Math.abs(t*r*s/l);i.x<n&&(c=-c);var h=Math.abs(t*r*o/l);return i.y<a&&(h=-h),{x:n+c,y:a+h}}C(sw,"intersectEllipse");var ow=sw;function lw(e,t,r){return ow(e,t,t,r)}C(lw,"intersectCircle");var Zj=lw;function cw(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,s=t.x*e.y-e.x*t.y,o=n*r.x+a*r.y+s,l=n*i.x+a*i.y+s,c=1e-6;if(o!==0&&l!==0&&og(o,l))return;const h=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=h*e.x+u*e.y+f,g=h*t.x+u*t.y+f;if(Math.abs(d)<c&&Math.abs(g)<c&&og(d,g))return;const p=n*u-h*a;if(p===0)return;const m=Math.abs(p/2);let y=a*f-u*s;const x=y<0?(y-m)/p:(y+m)/p;y=h*s-n*f;const k=y<0?(y-m)/p:(y+m)/p;return{x,y:k}}}C(cw,"intersectLine");function og(e,t){return e*t>0}C(og,"sameSign");var Jj=cw;function hw(e,t,r){let i=e.x,n=e.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){s=Math.min(s,h.x),o=Math.min(o,h.y)}):(s=Math.min(s,t.x),o=Math.min(o,t.y));let l=i-e.width/2-s,c=n-e.height/2-o;for(let h=0;h<t.length;h++){let u=t[h],f=t[h<t.length-1?h+1:0],d=Jj(e,r,{x:l+u.x,y:c+u.y},{x:l+f.x,y:c+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(h,u){let f=h.x-r.x,d=h.y-r.y,g=Math.sqrt(f*f+d*d),p=u.x-r.x,m=u.y-r.y,y=Math.sqrt(p*p+m*m);return g<y?-1:g===y?0:1}),a[0]):e}C(hw,"intersectPolygon");var tq=hw,lt={node:Kj,circle:Zj,ellipse:ow,polygon:tq,rect:Ko};function uw(e,t){const{labelStyles:r}=yt(t);t.labelStyle=r;const i=St(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=1,{cssStyles:o}=t,l=pt.svg(a),c=mt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,s*2,c),u=a.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",He(o)),xt(t,u),t.intersect=function(f){return Z.info("Circle intersect",t,s,f),lt.circle(t,s,f)},a}C(uw,"anchor");function lg(e,t,r,i,n,a,s){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,g=f/a,p=Math.sqrt(d**2+g**2);if(p>1)throw new Error("The given radii are too small to create an arc between the points.");const m=Math.sqrt(1-p**2),y=l+m*a*Math.sin(h)*(s?-1:1),x=c-m*n*Math.cos(h)*(s?-1:1),k=Math.atan2((t-x)/a,(e-y)/n);let _=Math.atan2((i-x)/a,(r-y)/n)-k;s&&_<0&&(_+=2*Math.PI),!s&&_>0&&(_-=2*Math.PI);const M=[];for(let S=0;S<20;S++){const A=S/19,N=k+A*_,z=y+n*Math.cos(N),P=x+a*Math.sin(N);M.push({x:z,y:P})}return M}C(lg,"generateArcPoints");function dw(e,t,r){const[i,n]=[t,r].sort((a,s)=>s-a);return n*(1-Math.sqrt(1-(e/i/2)**2))}C(dw,"calculateArcSagitta");async function fw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=C(N=>N+s,"calcTotalHeight"),l=C(N=>{const z=N/2;return[z/(2.5+N/50),z]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await Tt(e,t,St(t)),u=o(t!=null&&t.height?t==null?void 0:t.height:h.height),[f,d]=l(u),g=dw(u,f,d),m=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2+g-g,y=u,{cssStyles:x}=t,k=[{x:m/2,y:-y/2},{x:-m/2,y:-y/2},...lg(-m/2,-y/2,-m/2,y/2,f,d,!1),{x:m/2,y:y/2},...lg(m/2,y/2,m/2,-y/2,f,d,!0)],T=pt.svg(c),_=mt(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const M=Ot(k),S=T.path(M,_),A=c.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${f/2}, 0)`),xt(t,A),t.intersect=function(N){return lt.polygon(t,k,N)},c}C(fw,"bowTieRect");function Ln(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}C(Ln,"insertPolygonShape");var Hh=12;async function pw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?28:n,s=t.look==="neo"?24:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?a*2:a+Hh),h=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?s*2:s),u=0,f=c,d=-h,g=0,p=[{x:u+Hh,y:d},{x:f,y:d},{x:f,y:g},{x:u,y:g},{x:u,y:d+Hh},{x:u+Hh,y:d}];let m;const{cssStyles:y}=t;if(t.look==="handDrawn"){const x=pt.svg(o),k=mt(t,{}),T=Ot(p),_=x.path(T,k);m=o.insert(()=>_,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),y&&m.attr("style",y)}else m=Ln(o,c,h,p);return i&&m.attr("style",i),xt(t,m),t.intersect=function(x){return lt.polygon(t,p,x)},o}C(pw,"card");function gw(e,t){const{nodeStyles:r}=yt(t);t.label="";const i=e.insert("g").attr("class",St(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=pt.svg(i),l=mt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=Ot(s),h=o.path(c,l),u=i.insert(()=>h,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return lt.polygon(t,s,f)},i}C(gw,"choice");async function q2(e,t,r){const{labelStyles:i,nodeStyles:n}=yt(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:o}=await Tt(e,t,St(t)),l=16,c=(r==null?void 0:r.padding)??o,h=t.look==="neo"?s.width/2+l*2:s.width/2+c;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=pt.svg(a),g=mt(t,{}),p=d.circle(0,0,h*2,g);u=a.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",He(f))}else u=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0);return xt(t,u),t.calcIntersect=function(d,g){const p=d.width/2;return lt.circle(d,p,g)},t.intersect=function(d){return Z.info("Circle intersect",t,h,d),lt.circle(t,h,d)},a}C(q2,"circle");function mw(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},o={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y}
|
|
597
|
+
M ${n.x},${n.y} L ${s.x},${s.y}`}C(mw,"createLine");function yw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",St(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,o=pt.svg(n),l=mt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=o.circle(0,0,a*2,l),h=mw(a),u=o.path(h,l),f=n.insert(()=>c,":first-child");return f.insert(()=>u),f.attr("class","outer-path"),s&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),xt(t,f),t.intersect=function(d){return Z.info("crossedCircle intersect",t,{radius:a,point:d}),lt.circle(t,a,d)},n}C(yw,"crossedCircle");function rn(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}C(rn,"generateCirclePoints");async function xw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Tt(e,t,St(t)),o=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=a.width+o,h=a.height+l,u=Math.max(5,h*.1),{cssStyles:f}=t,d=[...rn(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...rn(c/2+u*2,-u,u,20,-180,-270),...rn(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...rn(c/2,h/2,u,20,0,90)],g=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...rn(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...rn(c/2+c*.1,-u,u,20,-180,-270),...rn(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...rn(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],p=pt.svg(n),m=mt(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=Ot(d).replace("Z",""),k=p.path(x,m),T=Ot(g),_=p.path(T,{...m}),M=n.insert("g",":first-child");return M.insert(()=>_,":first-child").attr("stroke-opacity",0),M.insert(()=>k,":first-child"),M.attr("class","text"),f&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${u}, 0)`),s.attr("transform",`translate(${-c/2+u-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),xt(t,M),t.intersect=function(S){return lt.polygon(t,g,S)},n}C(xw,"curlyBraceLeft");function nn(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:d,y:g})}return s}C(nn,"generateCirclePoints");async function vw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Tt(e,t,St(t)),o=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=a.width+(t.look==="neo"?o*2:o),h=a.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:f}=t,d=[...nn(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...nn(c/2+u*2,-u,u,20,-180,-270),...nn(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...nn(c/2,h/2,u,20,0,90)],g=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u},...nn(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...nn(c/2+u*2,-u,u,20,-180,-270),...nn(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...nn(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],p=pt.svg(n),m=mt(t,{fill:"none"});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=Ot(d).replace("Z",""),k=p.path(x,m),T=Ot(g),_=p.path(T,{...m}),M=n.insert("g",":first-child");return M.insert(()=>_,":first-child").attr("stroke-opacity",0),M.insert(()=>k,":first-child"),M.attr("class","text"),f&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${-u}, 0)`),s.attr("transform",`translate(${-c/2+(t.padding??0)/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),xt(t,M),t.intersect=function(S){return lt.polygon(t,g,S)},n}C(vw,"curlyBraceRight");function Ye(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,h=(a*Math.PI/180-o)/(i-1);for(let u=0;u<i;u++){const f=o+u*h,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}C(Ye,"generateCirclePoints");async function bw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Tt(e,t,St(t)),o=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=a.width+(t.look==="neo"?o*2:o),h=a.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:f}=t,d=[...Ye(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Ye(c/2+u*2,-u,u,20,-180,-270),...Ye(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Ye(c/2,h/2,u,20,0,90)],g=[...Ye(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...Ye(-c/2-u/2,-u,u,20,0,90),...Ye(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...Ye(-c/2+u+u/2,h/2,u,30,-180,-270)],p=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Ye(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Ye(c/2+u*2,-u,u,20,-180,-270),...Ye(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Ye(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2-u-u/2,y:h/2+u},...Ye(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...Ye(-c/2-u/2,-u,u,20,0,90),...Ye(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...Ye(-c/2+u+u/2,h/2,u,30,-180,-270)],m=pt.svg(n),y=mt(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const k=Ot(d).replace("Z",""),T=m.path(k,y),M=Ot(g).replace("Z",""),S=m.path(M,y),A=Ot(p),N=m.path(A,{...y}),z=n.insert("g",":first-child");return z.insert(()=>N,":first-child").attr("stroke-opacity",0),z.insert(()=>T,":first-child"),z.insert(()=>S,":first-child"),z.attr("class","text"),f&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),z.attr("transform",`translate(${u-u/4}, 0)`),s.attr("transform",`translate(${-c/2+(t.padding??0)/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),xt(t,z),t.intersect=function(P){return lt.polygon(t,p,P)},n}C(bw,"curlyBraces");async function Cw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=20,l=5,{shapeSvg:c,bbox:h}=await Tt(e,t,St(t)),u=Math.max(o,(h.width+a*2)*1.25,(t==null?void 0:t.width)??0),f=Math.max(l,h.height+s*2,(t==null?void 0:t.height)??0),d=f/2,{cssStyles:g}=t,p=pt.svg(c),m=mt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=u,x=f,k=y-d,T=x/4,_=[{x:k,y:0},{x:T,y:0},{x:0,y:x/2},{x:T,y:x},{x:k,y:x},...Fc(-k,-x/2,d,50,270,90)],M=Ot(_),S=p.path(M,m),A=c.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",i),A.attr("transform",`translate(${-u/2}, ${-f/2})`),xt(t,A),t.intersect=function(N){return lt.polygon(t,_,N)},c}C(Cw,"curvedTrapezoid");var eq=C((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),rq=C((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),iq=C((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Ov=8,Pv=8;async function kw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?24:n,s=t.look==="neo"?24:n;if(t.width||t.height){const m=t.width??0;t.width=(t.width??0)-s,t.width<Pv&&(t.width=Pv);const x=m/2/(2.5+m/50);t.height=(t.height??0)-a-x*3,t.height<Ov&&(t.height=Ov)}const{shapeSvg:o,bbox:l,label:c}=await Tt(e,t,St(t)),h=(t.width?t.width:l.width)+s,u=h/2,f=u/(2.5+h/50),d=(t.height?t.height:l.height)+a+f;let g;const{cssStyles:p}=t;if(t.look==="handDrawn"){const m=pt.svg(o),y=rq(0,0,h,d,u,f),x=iq(0,f,h,d,u,f),k=mt(t,{}),T=m.path(y,k),_=m.path(x,mt(t,{fill:"none"}));g=o.insert(()=>_,":first-child"),g=o.insert(()=>T,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const m=eq(0,0,h,d,u,f);g=o.insert("path",":first-child").attr("d",m).attr("class","basic label-container outer-path").attr("style",He(p)).attr("style",i)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-h/2}, ${-(d/2+f)})`),xt(t,g),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(t.padding??0)/1.5-(l.y-(l.top??0))})`),t.intersect=function(m){const y=lt.rect(t,m),x=y.x-(t.x??0);if(u!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-f)){let k=f*f*(1-x*x/(u*u));k>0&&(k=Math.sqrt(k)),k=f-k,m.y-(t.y??0)>0&&(k=-k),y.y+=k}return y},o}C(kw,"cylinder");async function ww(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=o.width+n,h=o.height+a,u=h*.2,f=-c/2,d=-h/2-u/2,{cssStyles:g}=t,p=pt.svg(s),m=mt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:f,y:d+u},{x:-f,y:d+u},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+u}],x=p.polygon(y.map(T=>[T.x,T.y]),m),k=s.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),l.attr("transform",`translate(${f+(t.padding??0)/2-(o.x-(o.left??0))}, ${d+u+(t.padding??0)/2-(o.y-(o.top??0))})`),xt(t,k),t.intersect=function(T){return lt.rect(t,T)},s}C(ww,"dividedRectangle");async function Sw(e,t){var d,g;const{labelStyles:r,nodeStyles:i}=yt(t),n=t.look==="neo"?12:5;t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(s??0),h=c-n;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=pt.svg(o),m=mt(t,{roughness:.2,strokeWidth:2.5}),y=mt(t,{roughness:.2,strokeWidth:1.5}),x=p.circle(0,0,c*2,m),k=p.circle(0,0,h*2,y);u=o.insert("g",":first-child"),u.attr("class",He(t.cssClasses)).attr("style",He(f)),(d=u.node())==null||d.appendChild(x),(g=u.node())==null||g.appendChild(k)}else{u=o.insert("g",":first-child");const p=u.insert("circle",":first-child"),m=u.insert("circle");u.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return xt(t,u),t.intersect=function(p){return Z.info("DoubleCircle intersect",t,c,p),lt.circle(t,c,p)},o}C(Sw,"doublecircle");function Tw(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=yt(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",St(t)).attr("id",t.domId??t.id),s=7,{cssStyles:o}=t,l=pt.svg(a),{nodeBorder:c}=r,h=mt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,s*2,h),f=a.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${c} !important;`),o&&o.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),xt(t,f),t.intersect=function(d){return Z.info("filledCircle intersect",t,{radius:s,point:d}),lt.circle(t,s,d)},a}C(Tw,"filledCircle");var Nv=10,jv=10;async function _w(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<Nv&&(t.height=Nv),t.width=((t==null?void 0:t.width)??0)-a-a/2,t.width<jv&&(t.width=jv));const{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=(t!=null&&t.width?t==null?void 0:t.width:o.width)+(a??0),h=t!=null&&t.height?t==null?void 0:t.height:c+o.height,u=h,f=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:d}=t,g=pt.svg(s),p=mt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=Ot(f),y=g.path(m,p),x=s.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return d&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=c,t.height=h,xt(t,x),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-h/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(k){return Z.info("Triangle intersect",t,f,k),lt.polygon(t,f,k)},s}C(_w,"flippedTriangle");function Bw(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=yt(t);t.label="";const s=e.insert("g").attr("class",St(t)).attr("id",t.domId??t.id),{cssStyles:o}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*l/2,u=-1*c/2,f=pt.svg(s),d=mt(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=f.rectangle(h,u,l,c,d),p=s.insert(()=>g,":first-child");o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),xt(t,p);const m=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(y){return lt.rect(t,y)},s}C(Bw,"forkJoin");async function Lw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=15,a=10,s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-o*2,t.height<a&&(t.height=a),t.width=((t==null?void 0:t.width)??0)-s*2,t.width<n&&(t.width=n));const{shapeSvg:l,bbox:c}=await Tt(e,t,St(t)),h=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,c.width))+s*2,u=(t!=null&&t.height?t==null?void 0:t.height:Math.max(a,c.height))+o*2,f=u/2,{cssStyles:d}=t,g=pt.svg(l),p=mt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:-h/2,y:-u/2},{x:h/2-f,y:-u/2},...Fc(-h/2+f,0,f,50,90,270),{x:h/2-f,y:u/2},{x:-h/2,y:u/2}],y=Ot(m),x=g.path(y,p),k=l.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),xt(t,k),t.intersect=function(T){return Z.info("Pill intersect",t,{radius:f,point:T}),lt.polygon(t,m,T)},l}C(Lw,"halfRoundedRectangle");var nq=C((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function Aw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const a=t.padding??0,s=70,o=32,l=t.look==="neo"?s:a,c=t.look==="neo"?o:a;if(t.width||t.height){const k=(t.height??0)/n;t.width=((t==null?void 0:t.width)??0)-2*k-c,t.height=(t.height??0)-l}const{shapeSvg:h,bbox:u}=await Tt(e,t,St(t)),f=(t!=null&&t.height?t==null?void 0:t.height:u.height)+l,d=f/n,g=(t!=null&&t.width?t==null?void 0:t.width:u.width)+2*d+c,p=[{x:d,y:0},{x:g-d,y:0},{x:g,y:-f/2},{x:g-d,y:-f},{x:d,y:-f},{x:0,y:-f/2}];let m;const{cssStyles:y}=t;if(t.look==="handDrawn"){const x=pt.svg(h),k=mt(t,{}),T=nq(0,0,g,f,d),_=x.path(T,k);m=h.insert(()=>_,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),y&&m.attr("style",y)}else m=Ln(h,g,f,p);return i&&m.attr("style",i),t.width=g,t.height=f,xt(t,m),t.intersect=function(x){return lt.polygon(t,p,x)},h}C(Aw,"hexagon");async function Ew(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await Tt(e,t,St(t)),a=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:o}=t,l=pt.svg(n),c=mt(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],u=Ot(h),f=l.path(u,c),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container outer-path"),o&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-a/2}, ${-s/2})`),xt(t,d),t.intersect=function(g){return Z.info("Pill intersect",t,{points:h}),lt.polygon(t,h,g)},n}C(Ew,"hourglass");async function Mw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=yt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,label:u}=await Tt(e,t,"icon-shape default"),f=t.pos==="t",d=o,g=o,{nodeBorder:p}=r,{stylesMap:m}=Qo(t),y=-g/2,x=-d/2,k=t.label?8:0,T=pt.svg(c),_=mt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const M=T.rectangle(y,x,g,d,_),S=Math.max(g,h.width),A=d+h.height+k,N=T.rectangle(-S/2,-A/2,S,A,{..._,fill:"transparent",stroke:"none"}),z=c.insert(()=>M,":first-child"),P=c.insert(()=>N);if(t.icon){const U=c.append("g");U.html(`<g>${await Zc(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const Q=U.node().getBBox(),Y=Q.width,q=Q.height,R=Q.x,H=Q.y;U.attr("transform",`translate(${-Y/2-R},${f?h.height/2+k/2-q/2-H:-h.height/2-k/2-q/2-H})`),U.attr("style",`color: ${m.get("stroke")??p};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-A/2:A/2-h.height})`),z.attr("transform",`translate(0,${f?h.height/2+k/2:-h.height/2-k/2})`),xt(t,P),t.intersect=function(U){if(Z.info("iconSquare intersect",t,U),!t.label)return lt.rect(t,U);const Q=t.x??0,Y=t.y??0,q=t.height??0;let R=[];return f?R=[{x:Q-h.width/2,y:Y-q/2},{x:Q+h.width/2,y:Y-q/2},{x:Q+h.width/2,y:Y-q/2+h.height+k},{x:Q+g/2,y:Y-q/2+h.height+k},{x:Q+g/2,y:Y+q/2},{x:Q-g/2,y:Y+q/2},{x:Q-g/2,y:Y-q/2+h.height+k},{x:Q-h.width/2,y:Y-q/2+h.height+k}]:R=[{x:Q-g/2,y:Y-q/2},{x:Q+g/2,y:Y-q/2},{x:Q+g/2,y:Y-q/2+d},{x:Q+h.width/2,y:Y-q/2+d},{x:Q+h.width/2/2,y:Y+q/2},{x:Q-h.width/2,y:Y+q/2},{x:Q-h.width/2,y:Y-q/2+d},{x:Q-g/2,y:Y-q/2+d}],lt.polygon(t,R,U)},c}C(Mw,"icon");async function Fw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=yt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,label:u}=await Tt(e,t,"icon-shape default"),f=20,d=t.label?8:0,g=t.pos==="t",{nodeBorder:p,mainBkg:m}=r,{stylesMap:y}=Qo(t),x=pt.svg(c),k=mt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=y.get("fill");k.stroke=T??m;const _=c.append("g");t.icon&&_.html(`<g>${await Zc(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const M=_.node().getBBox(),S=M.width,A=M.height,N=M.x,z=M.y,P=Math.max(S,A)*Math.SQRT2+f*2,U=x.circle(0,0,P,k),Q=Math.max(P,h.width),Y=P+h.height+d,q=x.rectangle(-Q/2,-Y/2,Q,Y,{...k,fill:"transparent",stroke:"none"}),R=c.insert(()=>U,":first-child"),H=c.insert(()=>q);return _.attr("transform",`translate(${-S/2-N},${g?h.height/2+d/2-A/2-z:-h.height/2-d/2-A/2-z})`),_.attr("style",`color: ${y.get("stroke")??p};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-Y/2:Y/2-h.height})`),R.attr("transform",`translate(0,${g?h.height/2+d/2:-h.height/2-d/2})`),xt(t,H),t.intersect=function(F){return Z.info("iconSquare intersect",t,F),lt.rect(t,F)},c}C(Fw,"iconCircle");async function $w(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=yt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:f}=await Tt(e,t,"icon-shape default"),d=t.pos==="t",g=o+u*2,p=o+u*2,{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=Qo(t),k=-p/2,T=-g/2,_=t.label?8:0,M=pt.svg(c),S=mt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=x.get("fill");S.stroke=A??y;const N=M.path(wa(k,T,p,g,5),S),z=Math.max(p,h.width),P=g+h.height+_,U=M.rectangle(-z/2,-P/2,z,P,{...S,fill:"transparent",stroke:"none"}),Q=c.insert(()=>N,":first-child").attr("class","icon-shape2"),Y=c.insert(()=>U);if(t.icon){const q=c.append("g");q.html(`<g>${await Zc(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const R=q.node().getBBox(),H=R.width,F=R.height,V=R.x,K=R.y;q.attr("transform",`translate(${-H/2-V},${d?h.height/2+_/2-F/2-K:-h.height/2-_/2-F/2-K})`),q.attr("style",`color: ${x.get("stroke")??m};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-P/2:P/2-h.height})`),Q.attr("transform",`translate(0,${d?h.height/2+_/2:-h.height/2-_/2})`),xt(t,Y),t.intersect=function(q){if(Z.info("iconSquare intersect",t,q),!t.label)return lt.rect(t,q);const R=t.x??0,H=t.y??0,F=t.height??0;let V=[];return d?V=[{x:R-h.width/2,y:H-F/2},{x:R+h.width/2,y:H-F/2},{x:R+h.width/2,y:H-F/2+h.height+_},{x:R+p/2,y:H-F/2+h.height+_},{x:R+p/2,y:H+F/2},{x:R-p/2,y:H+F/2},{x:R-p/2,y:H-F/2+h.height+_},{x:R-h.width/2,y:H-F/2+h.height+_}]:V=[{x:R-p/2,y:H-F/2},{x:R+p/2,y:H-F/2},{x:R+p/2,y:H-F/2+g},{x:R+h.width/2,y:H-F/2+g},{x:R+h.width/2/2,y:H+F/2},{x:R-h.width/2,y:H+F/2},{x:R-h.width/2,y:H-F/2+g},{x:R-p/2,y:H-F/2+g}],lt.polygon(t,V,q)},c}C($w,"iconRounded");async function Iw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=yt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:f}=await Tt(e,t,"icon-shape default"),d=t.pos==="t",g=o+u*2,p=o+u*2,{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=Qo(t),k=-p/2,T=-g/2,_=t.label?8:0,M=pt.svg(c),S=mt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=x.get("fill");S.stroke=A??y;const N=M.path(wa(k,T,p,g,.1),S),z=Math.max(p,h.width),P=g+h.height+_,U=M.rectangle(-z/2,-P/2,z,P,{...S,fill:"transparent",stroke:"none"}),Q=c.insert(()=>N,":first-child"),Y=c.insert(()=>U);if(t.icon){const q=c.append("g");q.html(`<g>${await Zc(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const R=q.node().getBBox(),H=R.width,F=R.height,V=R.x,K=R.y;q.attr("transform",`translate(${-H/2-V},${d?h.height/2+_/2-F/2-K:-h.height/2-_/2-F/2-K})`),q.attr("style",`color: ${x.get("stroke")??m};`)}return f.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-P/2:P/2-h.height})`),Q.attr("transform",`translate(0,${d?h.height/2+_/2:-h.height/2-_/2})`),xt(t,Y),t.intersect=function(q){if(Z.info("iconSquare intersect",t,q),!t.label)return lt.rect(t,q);const R=t.x??0,H=t.y??0,F=t.height??0;let V=[];return d?V=[{x:R-h.width/2,y:H-F/2},{x:R+h.width/2,y:H-F/2},{x:R+h.width/2,y:H-F/2+h.height+_},{x:R+p/2,y:H-F/2+h.height+_},{x:R+p/2,y:H+F/2},{x:R-p/2,y:H+F/2},{x:R-p/2,y:H-F/2+h.height+_},{x:R-h.width/2,y:H-F/2+h.height+_}]:V=[{x:R-p/2,y:H-F/2},{x:R+p/2,y:H-F/2},{x:R+p/2,y:H-F/2+g},{x:R+h.width/2,y:H-F/2+g},{x:R+h.width/2/2,y:H+F/2},{x:R-h.width/2,y:H+F/2},{x:R-h.width/2,y:H-F/2+g},{x:R-p/2,y:H-F/2+g}],lt.polygon(t,V,q)},c}C(Iw,"iconSquare");async function zw(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:s}=yt(t);t.labelStyle=s;const o=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?o??0:0,(t==null?void 0:t.assetWidth)??n),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(c,o??0);const{shapeSvg:u,bbox:f,label:d}=await Tt(e,t,"image-shape default"),g=t.pos==="t",p=-c/2,m=-h/2,y=t.label?8:0,x=pt.svg(u),k=mt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=x.rectangle(p,m,c,h,k),_=Math.max(c,f.width),M=h+f.height+y,S=x.rectangle(-_/2,-M/2,_,M,{...k,fill:"none",stroke:"none"}),A=u.insert(()=>T,":first-child"),N=u.insert(()=>S);if(t.img){const z=u.append("image");z.attr("href",t.img),z.attr("width",c),z.attr("height",h),z.attr("preserveAspectRatio","none"),z.attr("transform",`translate(${-c/2},${g?M/2-h:-M/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-h/2-f.height/2-y/2:h/2-f.height/2+y/2})`),A.attr("transform",`translate(0,${g?f.height/2+y/2:-f.height/2-y/2})`),xt(t,N),t.intersect=function(z){if(Z.info("iconSquare intersect",t,z),!t.label)return lt.rect(t,z);const P=t.x??0,U=t.y??0,Q=t.height??0;let Y=[];return g?Y=[{x:P-f.width/2,y:U-Q/2},{x:P+f.width/2,y:U-Q/2},{x:P+f.width/2,y:U-Q/2+f.height+y},{x:P+c/2,y:U-Q/2+f.height+y},{x:P+c/2,y:U+Q/2},{x:P-c/2,y:U+Q/2},{x:P-c/2,y:U-Q/2+f.height+y},{x:P-f.width/2,y:U-Q/2+f.height+y}]:Y=[{x:P-c/2,y:U-Q/2},{x:P+c/2,y:U-Q/2},{x:P+c/2,y:U-Q/2+h},{x:P+f.width/2,y:U-Q/2+h},{x:P+f.width/2/2,y:U+Q/2},{x:P-f.width/2,y:U+Q/2},{x:P-f.width/2,y:U-Q/2+h},{x:P-c/2,y:U-Q/2+h}],lt.polygon(t,Y,z)},u}C(zw,"imageSquare");async function Dw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=Math.max(l.width+(s??0)*2,(t==null?void 0:t.width)??0),h=Math.max(l.height+(a??0)*2,(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:-3*h/6,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=pt.svg(o),p=mt(t,{}),m=Ot(u),y=g.path(m,p);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=Ln(o,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,xt(t,f),t.intersect=function(g){return lt.polygon(t,u,g)},o}C(Dw,"inv_trapezoid");async function th(e,t,r){const{labelStyles:i,nodeStyles:n}=yt(t);t.labelStyle=i;const{shapeSvg:a,bbox:s}=await Tt(e,t,St(t)),o=Math.max(s.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(s.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-o/2,h=-l/2;let u,{rx:f,ry:d}=t;const{cssStyles:g}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const p=pt.svg(a),m=mt(t,{}),y=f||d?p.path(wa(c,h,o,l,f||0),m):p.rectangle(c,h,o,l,m);u=a.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",He(g))}else u=a.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",He(f)).attr("ry",He(d)).attr("x",c).attr("y",h).attr("width",o).attr("height",l);return xt(t,u),t.calcIntersect=function(p,m){return lt.rect(p,m)},t.intersect=function(p){return lt.rect(t,p)},a}C(th,"drawRect");async function Rw(e,t){const{shapeSvg:r,bbox:i,label:n}=await Tt(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),xt(t,a),t.intersect=function(l){return lt.rect(t,l)},r}C(Rw,"labelRect");async function Ow(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=((t==null?void 0:t.height)??l.height)+a,h=((t==null?void 0:t.width)??l.width)+s,u=[{x:0,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:-(3*c)/6,y:-c}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=pt.svg(o),p=mt(t,{}),m=Ot(u),y=g.path(m,p);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),d&&f.attr("style",d)}else f=Ln(o,h,c,u);return i&&f.attr("style",i),t.width=h,t.height=c,xt(t,f),t.intersect=function(g){return lt.polygon(t,u,g)},o}C(Ow,"lean_left");async function Pw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=((t==null?void 0:t.height)??l.height)+a,h=((t==null?void 0:t.width)??l.width)+s,u=[{x:-3*c/6,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:0,y:-c}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=pt.svg(o),p=mt(t,{}),m=Ot(u),y=g.path(m,p);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),d&&f.attr("style",d)}else f=Ln(o,h,c,u);return i&&f.attr("style",i),t.width=h,t.height=c,xt(t,f),t.intersect=function(g){return lt.polygon(t,u,g)},o}C(Pw,"lean_right");function Nw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",St(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=Math.max(35,(t==null?void 0:t.width)??0),o=Math.max(35,(t==null?void 0:t.height)??0),l=7,c=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],h=pt.svg(n),u=mt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=Ot(c),d=h.path(f,u),g=n.insert(()=>d,":first-child");return g.attr("class","outer-path"),a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${s/2},${-o})`),xt(t,g),t.intersect=function(p){return Z.info("lightningBolt intersect",t,p),lt.polygon(t,c,p)},n}C(Nw,"lightningBolt");var aq=C((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),sq=C((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),oq=C((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),qv=10,Wv=10;async function jw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?24:n;if(t.width||t.height){const y=t.width??0;t.width=(t.width??0)-a,t.width<Wv&&(t.width=Wv);const k=y/2/(2.5+y/50);t.height=(t.height??0)-s-k*3,t.height<qv&&(t.height=qv)}const{shapeSvg:o,bbox:l,label:c}=await Tt(e,t,St(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,u=h/2,f=u/(2.5+h/50),d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+f+s*2,g=d*.1;let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const y=pt.svg(o),x=sq(0,0,h,d,u,f,g),k=oq(0,f,h,d,u,f),T=mt(t,{}),_=y.path(x,T),M=y.path(k,T);o.insert(()=>M,":first-child").attr("class","line"),p=o.insert(()=>_,":first-child"),p.attr("class","basic label-container"),m&&p.attr("style",m)}else{const y=aq(0,0,h,d,u,f,g);p=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",He(m)).attr("style",i)}return p.attr("label-offset-y",f),p.attr("transform",`translate(${-h/2}, ${-(d/2+f)})`),xt(t,p),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),t.intersect=function(y){const x=lt.rect(t,y),k=x.x-(t.x??0);if(u!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-f)){let T=f*f*(1-k*k/(u*u));T>0&&(T=Math.sqrt(T)),T=f-T,y.y-(t.y??0)>0&&(T=-T),x.y+=T}return x},o}C(jw,"linedCylinder");async function qw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;if(t.width||t.height){const T=t.width;t.width=(T??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10)}const{shapeSvg:o,bbox:l,label:c}=await Tt(e,t,St(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(a??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(s??0)*2,f=t.look==="neo"?u/4:u/8,d=u+f,{cssStyles:g}=t,p=pt.svg(o),m=mt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-h/2-h/2*.1,y:-d/2},{x:-h/2-h/2*.1,y:d/2},...ga(-h/2-h/2*.1,d/2,h/2+h/2*.1,d/2,f,.8),{x:h/2+h/2*.1,y:-d/2},{x:-h/2-h/2*.1,y:-d/2},{x:-h/2,y:-d/2},{x:-h/2,y:d/2*1.1},{x:-h/2,y:-d/2}],x=p.polygon(y.map(T=>[T.x,T.y]),m),k=o.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-f/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-f/2-(l.y-(l.top??0))})`),xt(t,k),t.intersect=function(T){return lt.polygon(t,y,T)},o}C(qw,"linedWaveEdgedRect");async function Ww(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-2*o,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-2*o,10));const{shapeSvg:l,bbox:c,label:h}=await Tt(e,t,St(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2+2*o,f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+s*2+2*o,d=u-2*o,g=f-2*o,p=-d/2,m=-g/2,{cssStyles:y}=t,x=pt.svg(l),k=mt(t,{}),T=[{x:p-o,y:m+o},{x:p-o,y:m+g+o},{x:p+d-o,y:m+g+o},{x:p+d-o,y:m+g},{x:p+d,y:m+g},{x:p+d,y:m+g-o},{x:p+d+o,y:m+g-o},{x:p+d+o,y:m-o},{x:p+o,y:m-o},{x:p+o,y:m},{x:p,y:m},{x:p,y:m+o}],_=[{x:p,y:m+o},{x:p+d-o,y:m+o},{x:p+d-o,y:m+g},{x:p+d,y:m+g},{x:p+d,y:m},{x:p,y:m}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const M=Ot(T);let S=x.path(M,k);const A=Ot(_);let N=x.path(A,k);t.look!=="handDrawn"&&(S=sg(S),N=sg(N));const z=l.insert("g",":first-child");return z.insert(()=>S),z.insert(()=>N),z.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)-o-(c.x-(c.left??0))}, ${-(c.height/2)+o-(c.y-(c.top??0))})`),xt(t,z),t.intersect=function(P){return lt.polygon(t,T,P)},l}C(Ww,"multiRect");async function Hw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Tt(e,t,St(t)),o=t.padding??0,l=t.look==="neo"?16:o,c=t.look==="neo"?12:o;let h=!0;(t.width||t.height)&&(h=!1,t.width=((t==null?void 0:t.width)??0)-l*2,t.height=((t==null?void 0:t.height)??0)-c*3);const u=Math.max(a.width,(t==null?void 0:t.width)??0)+l*2,f=Math.max(a.height,(t==null?void 0:t.height)??0)+c*3,d=t.look==="neo"?f/4:f/8,g=f+(h?d/2:-d/2),p=-u/2,m=-g/2,y=10,{cssStyles:x}=t,k=ga(p-y,m+g+y,p+u-y,m+g+y,d,.8),T=k==null?void 0:k[k.length-1],_=[{x:p-y,y:m+y},{x:p-y,y:m+g+y},...k,{x:p+u-y,y:T.y-y},{x:p+u,y:T.y-y},{x:p+u,y:T.y-2*y},{x:p+u+y,y:T.y-2*y},{x:p+u+y,y:m-y},{x:p+y,y:m-y},{x:p+y,y:m},{x:p,y:m},{x:p,y:m+y}],M=[{x:p,y:m+y},{x:p+u-y,y:m+y},{x:p+u-y,y:T.y-y},{x:p+u,y:T.y-y},{x:p+u,y:m},{x:p,y:m}],S=pt.svg(n),A=mt(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const N=Ot(_),z=S.path(N,A),P=Ot(M),U=S.path(P,A),Q=n.insert(()=>z,":first-child");return Q.insert(()=>U),Q.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&Q.selectAll("path").attr("style",i),Q.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-(a.width/2)-y-(a.x-(a.left??0))}, ${-(a.height/2)+y-d/2-(a.y-(a.top??0))})`),xt(t,Q),t.intersect=function(Y){return lt.polygon(t,_,Y)},n}C(Hw,"multiWaveEdgedRectangle");async function Uw(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=yt(t);t.labelStyle=i,t.useHtmlLabels||xr(de())||(t.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-c/2,f=-h/2,{cssStyles:d}=t,g=pt.svg(s),p=mt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=g.rectangle(u,f,c,h,p),y=s.insert(()=>m,":first-child");return y.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),d&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),xt(t,y),t.intersect=function(x){return lt.rect(t,x)},s}C(Uw,"note");var lq=C((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Yw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await Tt(e,t,St(t)),s=a.width+(t.padding??0),o=a.height+(t.padding??0),l=s+o,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=pt.svg(n),g=mt(t,{}),p=lq(0,0,l),m=d.path(p,g);u=n.insert(()=>m,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),f&&u.attr("style",f)}else u=Ln(n,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),xt(t,u),t.calcIntersect=function(d,g){const p=d.width,m=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],y=lt.polygon(d,m,g);return{x:y.x-.5,y:y.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}C(Yw,"question");async function Gw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?21:n??0,s=t.look==="neo"?12:n??0,{shapeSvg:o,bbox:l,label:c}=await Tt(e,t,St(t)),h=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?a*2:a),u=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?s*2:s),f=-h/2,d=-u/2,g=d/2,p=[{x:f+g,y:d},{x:f,y:0},{x:f+g,y:-d},{x:-f,y:-d},{x:-f,y:d}],{cssStyles:m}=t,y=pt.svg(o),x=mt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=Ot(p),T=y.path(k,x),_=o.insert(()=>T,":first-child");return _.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-g/2},0)`),c.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),xt(t,_),t.intersect=function(M){return lt.polygon(t,p,M)},o}C(Gw,"rect_left_inv_arrow");async function Vw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=await Gn(o,c,t.labelStyle,!0,!0);let u={width:0,height:0};if(xr(qt())){const A=h.children[0],N=zt(h);u=A.getBoundingClientRect(),N.attr("width",u.width),N.attr("height",u.height)}Z.info("Text 2",l);const f=l||[],d=h.getBBox(),g=await Gn(o,Array.isArray(f)?f.join("<br/>"):f,t.labelStyle,!0,!0),p=g.children[0],m=zt(g);u=p.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height);const y=(t.padding||0)/2;zt(g).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+y+5)+")"),zt(h).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=o.node().getBBox(),o.attr("transform","translate("+-u.width/2+", "+(-u.height/2-y+3)+")");const x=u.width+(t.padding||0),k=u.height+(t.padding||0),T=-u.width/2-y,_=-u.height/2-y;let M,S;if(t.look==="handDrawn"){const A=pt.svg(a),N=mt(t,{}),z=A.path(wa(T,_,x,k,t.rx||0),N),P=A.line(-u.width/2-y,-u.height/2-y+d.height+y,u.width/2+y,-u.height/2-y+d.height+y,N);S=a.insert(()=>(Z.debug("Rough node insert CXC",z),P),":first-child"),M=a.insert(()=>(Z.debug("Rough node insert CXC",z),z),":first-child")}else M=s.insert("rect",":first-child"),S=s.insert("line"),M.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-y).attr("y",-u.height/2-y).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),S.attr("class","divider").attr("x1",-u.width/2-y).attr("x2",u.width/2+y).attr("y1",-u.height/2-y+d.height+y).attr("y2",-u.height/2-y+d.height+y);return xt(t,M),t.intersect=function(A){return lt.rect(t,A)},a}C(Vw,"rectWithTitle");async function Xw(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,n={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return th(e,t,n)}C(Xw,"roundedRect");var Ea=8;async function Qw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=((t==null?void 0:t.width)??o.width)+n*2+(t.look==="neo"?Ea:Ea*2),h=((t==null?void 0:t.height)??o.height)+a*2,u=c-Ea,f=h,d=Ea-c/2,g=-h/2,{cssStyles:p}=t,m=pt.svg(s),y=mt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:d,y:g},{x:d+u,y:g},{x:d+u,y:g+f},{x:d-Ea,y:g+f},{x:d-Ea,y:g},{x:d,y:g},{x:d,y:g+f}],k=m.polygon(x.map(_=>[_.x,_.y]),y),T=s.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path").attr("style",He(p)),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),p&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),l.attr("transform",`translate(${Ea/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),xt(t,T),t.intersect=function(_){return lt.rect(t,_)},s}C(Qw,"shadedProcess");async function Kw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:c}=await Tt(e,t,St(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,u=((t!=null&&t.height?t==null?void 0:t.height:l.height)+s*2)*1.5,f=h,d=u/1.5,g=-f/2,p=-d/2,{cssStyles:m}=t,y=pt.svg(o),x=mt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=[{x:g,y:p},{x:g,y:p+d},{x:g+f,y:p+d},{x:g+f,y:p-d/2}],T=Ot(k),_=y.path(T,x),M=o.insert(()=>_,":first-child");return M.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",i),M.attr("transform",`translate(0, ${d/4})`),c.attr("transform",`translate(${-f/2+(t.padding??0)-(l.x-(l.left??0))}, ${-d/4+(t.padding??0)-(l.y-(l.top??0))})`),xt(t,M),t.intersect=function(S){return lt.polygon(t,k,S)},o}C(Kw,"slopedRect");async function Zw(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return th(e,t,a)}C(Zw,"squareRect");async function Jw(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?20:n,s=t.look==="neo"?12:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=l.height+(t.look==="neo"?s*2:s),h=l.width+c/4+(t.look==="neo"?a*2:a),u=c/2,{cssStyles:f}=t,d=pt.svg(o),g=mt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const p=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...Fc(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...Fc(h/2-u,0,u,50,270,450)],m=Ot(p),y=d.path(m,g),x=o.insert(()=>y,":first-child");return x.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),xt(t,x),t.intersect=function(k){return lt.polygon(t,p,k)},o}C(Jw,"stadium");async function tS(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return th(e,t,r)}C(tS,"state");function eS(e,t,{config:{themeVariables:r}}){var x,k;const{labelStyles:i,nodeStyles:n}=yt(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:s,stateBorder:o,nodeBorder:l,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=pt.svg(h),f=mt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=u.circle(0,0,t.width,{...f,stroke:s,strokeWidth:2}),g=o??l,p=(t.width??0)*5/14,m=u.circle(0,0,p,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=h.insert(()=>d,":first-child");if(y.insert(()=>m),t.look!=="handDrawn"&&y.attr("class","outer-path"),a&&y.selectAll("path").attr("style",a),n&&y.selectAll("path").attr("style",n),t.width<25&&c&&t.look!=="handDrawn"){const T=((k=(x=e.node())==null?void 0:x.ownerSVGElement)==null?void 0:k.id)??"",_=T?`${T}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${_})`)}return xt(t,y),t.intersect=function(T){return lt.circle(t,(t.width??0)/2,T)},h}C(eS,"stateEnd");function rS(e,t,{config:{themeVariables:r}}){var o,l;const{lineColor:i,nodeShadow:n}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s;if(t.look==="handDrawn"){const h=pt.svg(a).circle(0,0,t.width,yN(i));s=a.insert(()=>h),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&n&&t.look!=="handDrawn"){const c=((l=(o=e.node())==null?void 0:o.ownerSVGElement)==null?void 0:l.id)??"",h=c?`${c}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${h})`)}return xt(t,s),t.intersect=function(c){return lt.circle(t,(t.width??7)/2,c)},a}C(rS,"stateStart");var Ls=8;async function iS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,a=t.look==="neo"?28:n,s=t.look==="neo"?12:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=((t==null?void 0:t.width)??l.width)+2*Ls+a,h=((t==null?void 0:t.height)??l.height)+s,u=c-2*Ls,f=h,d=-c/2,g=-h/2,p=[{x:0,y:0},{x:u,y:0},{x:u,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(t.look==="handDrawn"){const m=pt.svg(o),y=mt(t,{}),x=m.rectangle(d,g,u+16,f,y),k=m.line(d+Ls,g,d+Ls,g+f,y),T=m.line(d+Ls+u,g,d+Ls+u,g+f,y);o.insert(()=>k,":first-child"),o.insert(()=>T,":first-child");const _=o.insert(()=>x,":first-child"),{cssStyles:M}=t;_.attr("class","basic label-container").attr("style",He(M)),xt(t,_)}else{const m=Ln(o,u,f,p);i&&m.attr("style",i),xt(t,m)}return t.intersect=function(m){return lt.polygon(t,p,m)},o}C(iS,"subroutine");var rp=.2;async function nS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-s*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-rp*(t.height+s*2),10));const{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+s*2,h=rp*c,u=rp*c,d=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2+h-h,g=c,p=-d/2,m=-g/2,{cssStyles:y}=t,x=pt.svg(o),k=mt(t,{}),T=[{x:p-h/2,y:m},{x:p+d+h/2,y:m},{x:p+d+h/2,y:m+g},{x:p-h/2,y:m+g}],_=[{x:p+d-h/2,y:m+g},{x:p+d+h/2,y:m+g},{x:p+d+h/2,y:m+g-u}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const M=Ot(T),S=x.path(M,k),A=Ot(_),N=x.path(A,{...k,fillStyle:"solid"}),z=o.insert(()=>N,":first-child");return z.insert(()=>S,":first-child"),z.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&z.selectAll("path").attr("style",i),xt(t,z),t.intersect=function(P){return lt.polygon(t,T,P)},o}C(nS,"taggedRect");async function aS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Tt(e,t,St(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,h=.2*o,u=.2*l,f=l+c,{cssStyles:d}=t,g=pt.svg(n),p=mt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:-o/2-o/2*.1,y:f/2},...ga(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,c,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],y=-o/2+o/2*.1,x=-f/2-u*.4,k=[{x:y+o-h,y:(x+l)*1.3},{x:y+o,y:x+l-u},{x:y+o,y:(x+l)*.9},...ga(y+o,(x+l)*1.25,y+o-h,(x+l)*1.3,-l*.02,.5)],T=Ot(m),_=g.path(T,p),M=Ot(k),S=g.path(M,{...p,fillStyle:"solid"}),A=n.insert(()=>S,":first-child");return A.insert(()=>_,":first-child"),A.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),xt(t,A),t.intersect=function(N){return lt.polygon(t,m,N)},n}C(aS,"taggedWaveEdgedRectangle");async function sS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await Tt(e,t,St(t)),s=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)||0),o=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)||0),l=-s/2,c=-o/2,h=n.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",s).attr("height",o),xt(t,h),t.intersect=function(u){return lt.rect(t,u)},n}C(sS,"text");var cq=C((e,t,r,i,n,a)=>`M${e},${t}
|
|
598
|
+
a${n},${a} 0,0,1 0,${-i}
|
|
599
|
+
l${r},0
|
|
600
|
+
a${n},${a} 0,0,1 0,${i}
|
|
601
|
+
M${r},${-i}
|
|
602
|
+
a${n},${a} 0,0,0 0,${i}
|
|
603
|
+
l${-r},0`,"createCylinderPathD"),hq=C((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),uq=C((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Hv=5,Uv=10;async function oS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?12:n/2;if(t.width||t.height){const p=t.height??0;t.height=(t.height??0)-a,t.height<Hv&&(t.height=Hv);const y=p/2/(2.5+p/50);t.width=(t.width??0)-a-y*3,t.width<Uv&&(t.width=Uv)}const{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=(t.height?t.height:o.height)+a,h=c/2,u=h/(2.5+c/50),f=(t.width?t.width:o.width)+u+a,{cssStyles:d}=t;let g;if(t.look==="handDrawn"){const p=pt.svg(s),m=hq(0,0,f,c,u,h),y=uq(0,0,f,c,u,h),x=p.path(m,mt(t,{})),k=p.path(y,mt(t,{fill:"none"}));g=s.insert(()=>k,":first-child"),g=s.insert(()=>x,":first-child"),g.attr("class","basic label-container"),d&&g.attr("style",d)}else{const p=cq(0,0,f,c,u,h);g=s.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",He(d)).attr("style",i),g.attr("class","basic label-container outer-path"),d&&g.selectAll("path").attr("style",d),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",u),g.attr("transform",`translate(${-f/2}, ${c/2} )`),l.attr("transform",`translate(${-(o.width/2)-u-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),xt(t,g),t.intersect=function(p){const m=lt.rect(t,p),y=m.y-(t.y??0);if(h!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(m.x-(t.x??0))>(t.width??0)/2-u)){let x=u*u*(1-y*y/(h*h));x!=0&&(x=Math.sqrt(Math.abs(x))),x=u-x,p.x-(t.x??0)>0&&(x=-x),m.x+=x}return m},s}C(oS,"tiltedCylinder");async function lS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=(t.look==="neo",n),s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=((t==null?void 0:t.height)??l.height)+a,h=((t==null?void 0:t.width)??l.width)+s,u=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=pt.svg(o),p=mt(t,{}),m=Ot(u),y=g.path(m,p);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),d&&f.attr("style",d)}else f=Ln(o,h,c,u);return i&&f.attr("style",i),t.width=h,t.height=c,xt(t,f),t.intersect=function(g){return lt.polygon(t,u,g)},o}C(lS,"trapezoid");async function cS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=15,l=5;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.height<l&&(t.height=l),t.width=(t.width??0)-a*2,t.width<o&&(t.width=o));const{shapeSvg:c,bbox:h}=await Tt(e,t,St(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+s*2,{cssStyles:d}=t,g=pt.svg(c),p=mt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:-u/2*.8,y:-f/2},{x:u/2*.8,y:-f/2},{x:u/2,y:-f/2*.6},{x:u/2,y:f/2},{x:-u/2,y:f/2},{x:-u/2,y:-f/2*.6}],y=Ot(m),x=g.path(y,p),k=c.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),xt(t,k),t.intersect=function(T){return lt.polygon(t,m,T)},c}C(cS,"trapezoidalPentagon");var Yv=10,Gv=10;async function hS(e,t){var T;const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-a)/2,t.width<Gv&&(t.width=Gv),t.height=(t==null?void 0:t.height)??0,t.height<Yv&&(t.height=Yv));const{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=Tn((T=qt().flowchart)==null?void 0:T.htmlLabels),h=(t!=null&&t.width?t==null?void 0:t.width:o.width)+a,u=t!=null&&t.height?t==null?void 0:t.height:h+o.height,f=u,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-u}],{cssStyles:g}=t,p=pt.svg(s),m=mt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=Ot(d),x=p.path(y,m),k=s.insert(()=>x,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=h,t.height=u,xt(t,k),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${u/2-(o.height+(t.padding??0)/(c?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(_){return Z.info("Triangle intersect",t,d,_),lt.polygon(t,d,_)},s}C(hS,"triangle");async function uS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;let o=!0;(t.width||t.height)&&(o=!1,t.width=((t==null?void 0:t.width)??0)-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:h}=await Tt(e,t,St(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(a??0)*2,f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+(s??0)*2,d=t.look==="neo"?f/4:f/8,g=f+(o?d:-d),{cssStyles:p}=t,y=14-u,x=y>0?y/2:0,k=pt.svg(l),T=mt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=[{x:-u/2-x,y:g/2},...ga(-u/2-x,g/2,u/2+x,g/2,d,.8),{x:u/2+x,y:-g/2},{x:-u/2-x,y:-g/2}],M=Ot(_),S=k.path(M,T),A=l.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(0,${-d/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-f/2+(t.padding??0)-d-(c.y-(c.top??0))})`),xt(t,A),t.intersect=function(N){return lt.polygon(t,_,N)},l}C(uS,"waveEdgedRectangle");async function dS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?20:n;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const T=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-T*(20/9)),t.width=t.width-a*2}const{shapeSvg:o,bbox:l}=await Tt(e,t,St(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+s,u=h/8,f=h+u*2,{cssStyles:d}=t,g=pt.svg(o),p=mt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:-c/2,y:f/2},...ga(-c/2,f/2,c/2,f/2,u,1),{x:c/2,y:-f/2},...ga(c/2,-f/2,-c/2,-f/2,u,-1)],y=Ot(m),x=g.path(y,p),k=o.insert(()=>x,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),xt(t,k),t.intersect=function(T){return lt.polygon(t,m,T)},o}C(dS,"waveRectangle");var me=10;async function fS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-me,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-me,10));const{shapeSvg:s,bbox:o,label:l}=await Tt(e,t,St(t)),c=(t!=null&&t.width?t==null?void 0:t.width:o.width)+n*2+me,h=(t!=null&&t.height?t==null?void 0:t.height:o.height)+a*2+me,u=c-me,f=h-me,d=-u/2,g=-f/2,{cssStyles:p}=t,m=pt.svg(s),y=mt(t,{}),x=[{x:d-me,y:g-me},{x:d-me,y:g+f},{x:d+u,y:g+f},{x:d+u,y:g-me}],k=`M${d-me},${g-me} L${d+u},${g-me} L${d+u},${g+f} L${d-me},${g+f} L${d-me},${g-me}
|
|
604
|
+
M${d-me},${g} L${d+u},${g}
|
|
605
|
+
M${d},${g-me} L${d},${g+f}`;t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const T=m.path(k,y),_=s.insert(()=>T,":first-child");return _.attr("transform",`translate(${me/2}, ${me/2})`),_.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(o.width/2)+me/2-(o.x-(o.left??0))}, ${-(o.height/2)+me/2-(o.y-(o.top??0))})`),xt(t,_),t.intersect=function(M){return lt.polygon(t,x,M)},s}C(fS,"windowPane");var Vv=new Set(["redux-color","redux-dark-color"]),dq=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function W2(e,t){var Rt,jt,pe,ke;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=de(),{rowEven:a,rowOdd:s,nodeBorder:o,borderColorArray:l}=n;if(t.look==="handDrawn"){const{themeVariables:ft}=de(),{background:At}=ft,Ht={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${At}`]};await W2(e,Ht)}const c=de();t.useHtmlLabels=c.htmlLabels;let h=((Rt=c.er)==null?void 0:Rt.diagramPadding)??10,u=((jt=c.er)==null?void 0:jt.entityPadding)??6;const{cssStyles:f}=t,{labelStyles:d,nodeStyles:g}=yt(t);if(r.attributes.length===0&&t.label){const ft={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};bn(t.label,c)+ft.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const At=await th(e,t,ft);if(i!=null&&Vv.has(i)){const Ht=r.colorIndex??0;At.attr("data-color-id",`color-${Ht%l.length}`)}if(!Tn(c.htmlLabels)){const Ht=At.select("text"),Ut=(pe=Ht.node())==null?void 0:pe.getBBox();Ht.attr("transform",`translate(${-Ut.width/2}, 0)`)}return At}c.htmlLabels||(h*=1.25,u*=1.25);let p=St(t);p||(p="node default");const m=e.insert("g").attr("class",p).attr("id",t.domId||t.id),y=await Is(m,t.label??"",c,0,0,["name"],d);y.height+=u;let x=0;const k=[],T=[];let _=0,M=0,S=0,A=0,N=!0,z=!0;for(const ft of r.attributes){const At=await Is(m,ft.type,c,0,x,["attribute-type"],d);_=Math.max(_,At.width+h);const Ht=await Is(m,ft.name,c,0,x,["attribute-name"],d);M=Math.max(M,Ht.width+h);const Ut=await Is(m,ft.keys.join(),c,0,x,["attribute-keys"],d);S=Math.max(S,Ut.width+h);const Re=await Is(m,ft.comment,c,0,x,["attribute-comment"],d);A=Math.max(A,Re.width+h);const Oe=Math.max(At.height,Ht.height,Ut.height,Re.height)+u;T.push({yOffset:x,rowHeight:Oe}),x+=Oe}let P=4;S<=h&&(N=!1,S=0,P--),A<=h&&(z=!1,A=0,P--);const U=m.node().getBBox();if(y.width+h*2-(_+M+S+A)>0){const ft=y.width+h*2-(_+M+S+A);_+=ft/P,M+=ft/P,S>0&&(S+=ft/P),A>0&&(A+=ft/P)}const Q=_+M+S+A,Y=pt.svg(m),q=mt(t,{});t.look!=="handDrawn"&&(q.roughness=0,q.fillStyle="solid");let R=0;T.length>0&&(R=T.reduce((ft,At)=>ft+((At==null?void 0:At.rowHeight)??0),0));const H=Math.max(U.width+h*2,(t==null?void 0:t.width)||0,Q),F=Math.max((R??0)+y.height,(t==null?void 0:t.height)||0),V=-H/2,K=-F/2;if(m.selectAll("g:not(:first-child)").each((ft,At,Ht)=>{const Ut=zt(Ht[At]),Re=Ut.attr("transform");let Oe=0,An=0;if(Re){const Ir=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Re);Ir&&(Oe=parseFloat(Ir[1]),An=parseFloat(Ir[2]),Ut.attr("class").includes("attribute-name")?Oe+=_:Ut.attr("class").includes("attribute-keys")?Oe+=_+M:Ut.attr("class").includes("attribute-comment")&&(Oe+=_+M+S))}Ut.attr("transform",`translate(${V+h/2+Oe}, ${An+K+y.height+u/2})`)}),m.select(".name").attr("transform","translate("+-y.width/2+", "+(K+u/2)+")"),i!=null&&Vv.has(i)){const ft=r.colorIndex??0;m.attr("data-color-id",`color-${ft%l.length}`)}const nt=Y.rectangle(V,K,H,F,q),dt=m.insert(()=>nt,":first-child").attr("class","outer-path").attr("style",f.join(""));k.push(0);for(const[ft,At]of T.entries()){const Ut=(ft+1)%2===0&&At.yOffset!==0,Re=Y.rectangle(V,y.height+K+(At==null?void 0:At.yOffset),H,At==null?void 0:At.rowHeight,{...q,fill:Ut?a:s,stroke:o});m.insert(()=>Re,"g.label").attr("style",f.join("")).attr("class",`row-rect-${Ut?"even":"odd"}`)}const ht=1e-4;let _t=zs(V,y.height+K,H+V,y.height+K,ht),vt=Y.polygon(_t.map(ft=>[ft.x,ft.y]),q);if(m.insert(()=>vt).attr("class","divider"),_t=zs(_+V,y.height+K,_+V,F+K,ht),vt=Y.polygon(_t.map(ft=>[ft.x,ft.y]),q),m.insert(()=>vt).attr("class","divider"),N){const ft=_+M+V;_t=zs(ft,y.height+K,ft,F+K,ht),vt=Y.polygon(_t.map(At=>[At.x,At.y]),q),m.insert(()=>vt).attr("class","divider")}if(z){const ft=_+M+S+V;_t=zs(ft,y.height+K,ft,F+K,ht),vt=Y.polygon(_t.map(At=>[At.x,At.y]),q),m.insert(()=>vt).attr("class","divider")}for(const ft of k){const At=y.height+K+ft;_t=zs(V,At,H+V,At,ht),vt=Y.polygon(_t.map(Ht=>[Ht.x,Ht.y]),q),m.insert(()=>vt).attr("class","divider")}if(xt(t,dt),g&&t.look!=="handDrawn")if(i!=null&&dq.has(i))m.selectAll("path").attr("style",g);else{const ft=g.split(";"),At=(ke=ft==null?void 0:ft.filter(Ht=>Ht.includes("stroke")))==null?void 0:ke.map(Ht=>`${Ht}`).join("; ");m.selectAll("path").attr("style",At??""),m.selectAll(".row-rect-even path").attr("style",g)}return t.intersect=function(ft){return lt.rect(t,ft)},m}C(W2,"erBox");async function Is(e,t,r,i=0,n=0,a=[],s=""){const o=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);t!==A4(t)&&(t=A4(t),t=t.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await Bn(o,t,{width:bn(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">")}let c=l.getBBox();if(Tn(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=zt(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}C(Is,"addText");function zs(e,t,r,i,n){return e===r?[{x:e-n/2,y:t},{x:e+n/2,y:t},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:e,y:t-n/2},{x:e,y:t+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}C(zs,"lineToPolygon");async function pS(e,t,r,i,n=r.class.padding??12){const a=i?0:3,s=e.insert("g").attr("class",St(t)).attr("id",t.domId||t.id);let o=null,l=null,c=null,h=null,u=0,f=0,d=0;if(o=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const x=t.annotations[0];await $l(o,{text:`«${x}»`},0),u=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await $l(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,c=s.insert("g").attr("class","members-group text");let p=0;for(const x of t.members){const k=await $l(c,x,p,[x.parseClassifier()]);p+=k+a}d=c.node().getBBox().height,d<=0&&(d=n/2),h=s.insert("g").attr("class","methods-group text");let m=0;for(const x of t.methods){const k=await $l(h,x,m,[x.parseClassifier()]);m+=k+a}let y=s.node().getBBox();if(o!==null){const x=o.node().getBBox();o.attr("transform",`translate(${-x.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),y=s.node().getBBox(),c.attr("transform",`translate(0, ${u+f+n*2})`),y=s.node().getBBox(),h.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),y=s.node().getBBox(),{shapeSvg:s,bbox:y}}C(pS,"textHelper");async function $l(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=de();let s="useHtmlLabels"in t?t.useHtmlLabels:Tn(a.htmlLabels)??!0,o="";"text"in t?o=t.text:o=t.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Cc(o)&&(s=!0);const l=await Bn(n,Zm(as(o)),{width:bn(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let c,h=1;if(s){const u=l.children[0],f=zt(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const g=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(p=>new Promise(m=>{function y(){var x;if(p.style.display="flex",p.style.flexDirection="column",g){const k=((x=a.fontSize)==null?void 0:x.toString())??window.getComputedStyle(document.body).fontSize,_=parseInt(k,10)*5+"px";p.style.minWidth=_,p.style.maxWidth=_}else p.style.width="100%";m(p)}C(y,"setupImage"),setTimeout(()=>{p.complete&&y()}),p.addEventListener("error",y),p.addEventListener("load",y)})))}c=u.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{i.includes("font-weight: bolder")&&zt(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(u.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return n.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}C($l,"addText");async function gS(e,t){var Y,q;const r=qt(),{themeVariables:i}=r,{useGradient:n}=i,a=r.class.padding??12,s=a,o=t.useHtmlLabels??Tn(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:h}=await pS(e,t,r,o,s),{labelStyles:u,nodeStyles:f}=yt(t);t.labelStyle=u,t.cssStyles=l.styles||"";const d=((Y=l.styles)==null?void 0:Y.join(";"))||f||"";t.cssStyles||(t.cssStyles=d.replaceAll("!important","").split(";"));const g=l.members.length===0&&l.methods.length===0&&!((q=r.class)!=null&&q.hideEmptyMembersBox),p=pt.svg(c),m=mt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=Math.max(t.width??0,h.width);let x=Math.max(t.height??0,h.height);const k=(t.height??0)>h.height;l.members.length===0&&l.methods.length===0?x+=s:l.members.length>0&&l.methods.length===0&&(x+=s*2);const T=-y/2,_=-x/2;let M=g?a*2:l.members.length===0&&l.methods.length===0?-a:0;k&&(M=a*2);const S=p.rectangle(T-a,_-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0),y+2*a,x+2*a+M,m),A=c.insert(()=>S,":first-child");A.attr("class","basic label-container outer-path");const N=A.node().getBBox(),z=c.select(".annotation-group").node().getBBox().height-(g?a/2:0)||0,P=c.select(".label-group").node().getBBox().height-(g?a/2:0)||0,U=c.select(".members-group").node().getBBox().height-(g?a/2:0)||0,Q=(z+P+_+a-(_-a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(c.selectAll(".text").each((R,H,F)=>{var _t,vt;const V=zt(F[H]),K=V.attr("transform");let nt=0;if(K){const jt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(K);jt&&(nt=parseFloat(jt[2]))}let dt=nt+_+a-(g?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(V.attr("class").includes("methods-group")){const Rt=Math.max(U,s/2);k?dt=Math.max(Q,z+P+Rt+_+s*2+a)+s*2:dt=z+P+Rt+_+s*4+a}l.members.length===0&&l.methods.length===0&&((_t=r.class)!=null&&_t.hideEmptyMembersBox)&&(l.annotations.length>0?dt=nt-s:dt=nt),o||(dt-=4);let ht=T;(V.attr("class").includes("label-group")||V.attr("class").includes("annotation-group"))&&(ht=-((vt=V.node())==null?void 0:vt.getBBox().width)/2||0,c.selectAll("text").each(function(Rt,jt,pe){window.getComputedStyle(pe[jt]).textAnchor==="middle"&&(ht=0)})),V.attr("transform",`translate(${ht}, ${dt})`)}),l.members.length>0||l.methods.length>0||g){const R=z+P+_+a,H=p.line(N.x,R,N.x+N.width,R+.001,m);c.insert(()=>H).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(g||l.members.length>0||l.methods.length>0){const R=z+P+U+_+s*2+a,H=p.line(N.x,k?Math.max(Q,R):R,N.x+N.width,(k?Math.max(Q,R):R)+.001,m);c.insert(()=>H).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(l.look!=="handDrawn"&&c.selectAll("path").attr("style",d),A.select(":nth-child(2)").attr("style",d),c.selectAll(".divider").select("path").attr("style",d),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",d),!o){const R=RegExp(/color\s*:\s*([^;]*)/),H=R.exec(d);if(H){const F=H[0].replace("color","fill");c.selectAll("tspan").attr("style",F)}else if(u){const F=R.exec(u);if(F){const V=F[0].replace("color","fill");c.selectAll("tspan").attr("style",V)}}}return xt(t,A),t.intersect=function(R){return lt.rect(t,R)},c}C(gS,"classBox");async function mS(e,t){var N,z;const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const n=t,a=t,s=20,o=20,l="verifyMethod"in t,c=St(t),{themeVariables:h}=qt(),{borderColorArray:u,requirementEdgeLabelBackground:f}=h,d=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let g;l?g=await Ei(d,`<<${n.type}>>`,0,t.labelStyle):g=await Ei(d,"<<Element>>",0,t.labelStyle);let p=g;const m=await Ei(d,n.name,p,t.labelStyle+"; font-weight: bold;");if(p+=m+o,l){const P=await Ei(d,`${n.requirementId?`ID: ${n.requirementId}`:""}`,p,t.labelStyle);p+=P;const U=await Ei(d,`${n.text?`Text: ${n.text}`:""}`,p,t.labelStyle);p+=U;const Q=await Ei(d,`${n.risk?`Risk: ${n.risk}`:""}`,p,t.labelStyle);p+=Q,await Ei(d,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,p,t.labelStyle)}else{const P=await Ei(d,`${a.type?`Type: ${a.type}`:""}`,p,t.labelStyle);p+=P,await Ei(d,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,p,t.labelStyle)}const y=(((N=d.node())==null?void 0:N.getBBox().width)??200)+s,x=(((z=d.node())==null?void 0:z.getBBox().height)??200)+s,k=-y/2,T=-x/2,_=pt.svg(d),M=mt(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const S=_.rectangle(k,T,y,x,M),A=d.insert(()=>S,":first-child");if(A.attr("class","basic label-container outer-path").attr("style",i),u!=null&&u.length){const P=t.colorIndex??0;d.attr("data-color-id",`color-${P%u.length}`)}if(d.selectAll(".label").each((P,U,Q)=>{const Y=zt(Q[U]),q=Y.attr("transform");let R=0,H=0;if(q){const nt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(q);nt&&(R=parseFloat(nt[1]),H=parseFloat(nt[2]))}const F=H-x/2;let V=k+s/2;(U===0||U===1)&&(V=R),Y.attr("transform",`translate(${V}, ${F+s})`)}),p>g+m+o){const P=T+g+m+o;let U;if(t.look==="neo"){const q=[[k,P],[k+y,P],[k+y,P+.001],[k,P+.001]];U=_.polygon(q,M)}else U=_.line(k,P,k+y,P,M);d.insert(()=>U).attr("class","divider")}return xt(t,A),t.intersect=function(P){return lt.rect(t,P)},i&&t.look!=="handDrawn"&&(f||u!=null&&u.length)&&d.selectAll("path").attr("style",i),d}C(mS,"requirementBox");async function Ei(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=qt(),s=a.htmlLabels??!0,o=await Bn(n,Zm(as(t)),{width:bn(t,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},a);let l;if(s){const c=o.children[0],h=zt(o);l=c.getBoundingClientRect(),h.attr("width",l.width),h.attr("height",l.height)}else{const c=o.children[0];for(const h of c.children)i&&h.setAttribute("style",i);l=o.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}C(Ei,"addText");var fq=C(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function yS(e,t,{config:r}){var U,Q;const{labelStyles:i,nodeStyles:n}=yt(t);t.labelStyle=i||"";const a=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:o,bbox:l,label:c}=await Tt(e,t,St(t)),h=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((U=r==null?void 0:r.kanban)!=null&&U.ticketBaseUrl)&&(u=(Q=r==null?void 0:r.kanban)==null?void 0:Q.ticketBaseUrl.replace("#TICKET#",t.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,p;f?{label:g,bbox:p}=await ep(f,"ticket"in t&&t.ticket||"",d):{label:g,bbox:p}=await ep(o,"ticket"in t&&t.ticket||"",d);const{label:m,bbox:y}=await ep(o,"assigned"in t&&t.assigned||"",d);t.width=s;const x=10,k=(t==null?void 0:t.width)||0,T=Math.max(p.height,y.height)/2,_=Math.max(l.height+x*2,(t==null?void 0:t.height)||0)+T,M=-k/2,S=-_/2;c.attr("transform","translate("+(h-k/2)+", "+(-T-l.height/2)+")"),g.attr("transform","translate("+(h-k/2)+", "+(-T+l.height/2)+")"),m.attr("transform","translate("+(h+k/2-y.width-2*a)+", "+(-T+l.height/2)+")");let A;const{rx:N,ry:z}=t,{cssStyles:P}=t;if(t.look==="handDrawn"){const Y=pt.svg(o),q=mt(t,{}),R=N||z?Y.path(wa(M,S,k,_,N||0),q):Y.rectangle(M,S,k,_,q);A=o.insert(()=>R,":first-child"),A.attr("class","basic label-container").attr("style",P||null)}else{A=o.insert("rect",":first-child"),A.attr("class","basic label-container __APA__").attr("style",n).attr("rx",N??5).attr("ry",z??5).attr("x",M).attr("y",S).attr("width",k).attr("height",_);const Y="priority"in t&&t.priority;if(Y){const q=o.append("line"),R=M+2,H=S+Math.floor((N??0)/2),F=S+_-Math.floor((N??0)/2);q.attr("x1",R).attr("y1",H).attr("x2",R).attr("y2",F).attr("stroke-width","4").attr("stroke",fq(Y))}}return xt(t,A),t.height=_,t.intersect=function(Y){return lt.rect(t,Y)},o}C(yS,"kanbanItem");async function xS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await Tt(e,t,St(t)),l=a.width+10*s,c=a.height+8*s,h=.15*l,{cssStyles:u}=t,f=a.width+20,d=a.height+20,g=Math.max(l,f),p=Math.max(c,d);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let m;const y=`M0 0
|
|
606
|
+
a${h},${h} 1 0,0 ${g*.25},${-1*p*.1}
|
|
607
|
+
a${h},${h} 1 0,0 ${g*.25},0
|
|
608
|
+
a${h},${h} 1 0,0 ${g*.25},0
|
|
609
|
+
a${h},${h} 1 0,0 ${g*.25},${p*.1}
|
|
610
|
+
|
|
611
|
+
a${h},${h} 1 0,0 ${g*.15},${p*.33}
|
|
612
|
+
a${h*.8},${h*.8} 1 0,0 0,${p*.34}
|
|
613
|
+
a${h},${h} 1 0,0 ${-1*g*.15},${p*.33}
|
|
614
|
+
|
|
615
|
+
a${h},${h} 1 0,0 ${-1*g*.25},${p*.15}
|
|
616
|
+
a${h},${h} 1 0,0 ${-1*g*.25},0
|
|
617
|
+
a${h},${h} 1 0,0 ${-1*g*.25},0
|
|
618
|
+
a${h},${h} 1 0,0 ${-1*g*.25},${-1*p*.15}
|
|
619
|
+
|
|
620
|
+
a${h},${h} 1 0,0 ${-1*g*.1},${-1*p*.33}
|
|
621
|
+
a${h*.8},${h*.8} 1 0,0 0,${-1*p*.34}
|
|
622
|
+
a${h},${h} 1 0,0 ${g*.1},${-1*p*.33}
|
|
623
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const x=pt.svg(n),k=mt(t,{}),T=x.path(y,k);m=n.insert(()=>T,":first-child"),m.attr("class","basic label-container").attr("style",He(u))}else m=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return m.attr("transform",`translate(${-g/2}, ${-p/2})`),xt(t,m),t.calcIntersect=function(x,k){return lt.rect(x,k)},t.intersect=function(x){return Z.info("Bang intersect",t,x),lt.rect(t,x)},n}C(xS,"bang");async function vS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await Tt(e,t,St(t)),l=a.width+2*s,c=a.height+2*s,h=.15*l,u=.25*l,f=.35*l,d=.2*l,{cssStyles:g}=t;let p;const m=`M0 0
|
|
624
|
+
a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
|
|
625
|
+
a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
|
|
626
|
+
a${u},${u} 1 0,1 ${l*.35},${l*.2}
|
|
627
|
+
|
|
628
|
+
a${h},${h} 1 0,1 ${l*.15},${c*.35}
|
|
629
|
+
a${d},${d} 1 0,1 ${-1*l*.15},${c*.65}
|
|
630
|
+
|
|
631
|
+
a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
|
|
632
|
+
a${f},${f} 1 0,1 ${-1*l*.5},0
|
|
633
|
+
a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
|
|
634
|
+
|
|
635
|
+
a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
|
|
636
|
+
a${d},${d} 1 0,1 ${l*.1},${-1*c*.65}
|
|
637
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const y=pt.svg(n),x=mt(t,{}),k=y.path(m,x);p=n.insert(()=>k,":first-child"),p.attr("class","basic label-container").attr("style",He(g))}else p=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",m);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),p.attr("transform",`translate(${-l/2}, ${-c/2})`),xt(t,p),t.calcIntersect=function(y,x){return lt.rect(y,x)},t.intersect=function(y){return Z.info("Cloud intersect",t,y),lt.rect(t,y)},n}C(vS,"cloud");async function bS(e,t){const{labelStyles:r,nodeStyles:i}=yt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await Tt(e,t,St(t)),l=a.width+8*s,c=a.height+2*s,h=5,u=t.look==="neo"?`
|
|
638
|
+
M${-l/2} ${c/2-h}
|
|
639
|
+
v${-c+2*h}
|
|
640
|
+
q0,-${h} ${h},-${h}
|
|
641
|
+
h${l-2*h}
|
|
642
|
+
q${h},0 ${h},${h}
|
|
643
|
+
v${c-h}
|
|
644
|
+
H${-l/2}
|
|
645
|
+
Z
|
|
646
|
+
`:`
|
|
647
|
+
M${-l/2} ${c/2-h}
|
|
648
|
+
v${-c+2*h}
|
|
649
|
+
q0,-${h} ${h},-${h}
|
|
650
|
+
h${l-2*h}
|
|
651
|
+
q${h},0 ${h},${h}
|
|
652
|
+
v${c-2*h}
|
|
653
|
+
q0,${h} ${-h},${h}
|
|
654
|
+
h${-(l-2*h)}
|
|
655
|
+
q${-h},0 ${-h},${-h}
|
|
656
|
+
Z
|
|
657
|
+
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const f=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>o.node()),xt(t,f),t.calcIntersect=function(d,g){return lt.rect(d,g)},t.intersect=function(d){return lt.rect(t,d)},n}C(bS,"defaultMindmapNode");async function CS(e,t){const r={padding:t.padding??0};return q2(e,t,r)}C(CS,"mindmapCircle");var pq=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Zw},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Xw},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Jw},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:iS},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:kw},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:q2},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:xS},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:vS},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Yw},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Aw},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Pw},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Ow},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:lS},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Dw},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Sw},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:sS},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:pw},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Qw},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:rS},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:eS},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Bw},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Ew},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:xw},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:vw},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:bw},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Nw},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:uS},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Lw},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:oS},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:jw},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Cw},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ww},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:hS},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:fS},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Tw},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:cS},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:_w},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Kw},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Hw},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ww},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:fw},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:yw},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:aS},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:nS},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:dS},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Gw},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:qw}],gq=C(()=>{const t=[...Object.entries({state:tS,choice:gw,note:Uw,rectWithTitle:Vw,labelRect:Rw,iconSquare:Iw,iconCircle:Fw,icon:Mw,iconRounded:$w,imageSquare:zw,anchor:uw,kanbanItem:yS,mindmapCircle:CS,defaultMindmapNode:bS,classBox:gS,erBox:W2,requirementBox:mS}),...pq.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),kS=gq();function mq(e){return e in kS}C(mq,"isValidShape");var zd=new Map;async function wS(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?kS[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return i.attr("data-look",He(t.look)),t.tooltip&&n.attr("title",t.tooltip),zd.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}C(wS,"insertNode");var LG=C((e,t)=>{zd.set(t.id,e)},"setNodeElem"),AG=C(()=>{zd.clear()},"clear"),EG=C(e=>{const t=zd.get(e.id);Z.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),yq=C((e,t,r,i,n,a=!1,s)=>{t.arrowTypeStart&&Xv(e,"start",t.arrowTypeStart,r,i,n,a,s),t.arrowTypeEnd&&Xv(e,"end",t.arrowTypeEnd,r,i,n,a,s)},"addEdgeMarkers"),xq={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},vq=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Xv=C((e,t,r,i,n,a,s=!1,o)=>{var g;const l=xq[r],c=l&&vq.includes(l.type);if(!l){Z.warn(`Unknown arrow type: ${r}`);return}const h=l.type,d=`${n}_${a}-${h}${t==="start"?"Start":"End"}${s&&c?"-margin":""}`;if(o&&o.trim()!==""){const p=o.replace(/[^\dA-Za-z]/g,"_"),m=`${d}_${p}`;if(!document.getElementById(m)){const y=document.getElementById(d);if(y){const x=y.cloneNode(!0);x.id=m,x.querySelectorAll("path, circle, line").forEach(T=>{T.setAttribute("stroke",o),l.fill&&T.setAttribute("fill",o)}),(g=y.parentNode)==null||g.appendChild(x)}}e.attr(`marker-${t}`,`url(${i}#${m})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},"addEdgeMarker"),bq=C(e=>{var t,r;return typeof e=="string"?e:(r=(t=qt())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),zu=new Map,Ve=new Map,MG=C(()=>{zu.clear(),Ve.clear()},"clear"),bl=C(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),Cq=C(async(e,t)=>{const r=qt();let i=xr(r);const{labelStyles:n}=yt(t);t.labelStyle=n;const a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",t.id),o=t.labelType==="markdown",c=await Bn(e,t.label,{style:bl(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(c),Z.info("abc82",t,t.labelType);let h=c.getBBox(),u=h;if(i){const d=c.children[0],g=zt(c);h=d.getBoundingClientRect(),u=h,g.attr("width",h.width),g.attr("height",h.height)}else{const d=zt(c).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}s.attr("transform",pl(u,i)),zu.set(t.id,a),t.width=h.width,t.height=h.height;let f;if(t.startLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Gn(g,t.startLabelLeft,bl(t.labelStyle)||"",!1,!1);f=p;let m=p.getBBox();if(i){const y=p.children[0],x=zt(p);m=y.getBoundingClientRect(),x.attr("width",m.width),x.attr("height",m.height)}g.attr("transform",pl(m,i)),Ve.get(t.id)||Ve.set(t.id,{}),Ve.get(t.id).startLeft=d,Il(f,t.startLabelLeft)}if(t.startLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Gn(g,t.startLabelRight,bl(t.labelStyle)||"",!1,!1);f=p,g.node().appendChild(p);let m=p.getBBox();if(i){const y=p.children[0],x=zt(p);m=y.getBoundingClientRect(),x.attr("width",m.width),x.attr("height",m.height)}g.attr("transform",pl(m,i)),Ve.get(t.id)||Ve.set(t.id,{}),Ve.get(t.id).startRight=d,Il(f,t.startLabelRight)}if(t.endLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Gn(g,t.endLabelLeft,bl(t.labelStyle)||"",!1,!1);f=p;let m=p.getBBox();if(i){const y=p.children[0],x=zt(p);m=y.getBoundingClientRect(),x.attr("width",m.width),x.attr("height",m.height)}g.attr("transform",pl(m,i)),d.node().appendChild(p),Ve.get(t.id)||Ve.set(t.id,{}),Ve.get(t.id).endLeft=d,Il(f,t.endLabelLeft)}if(t.endLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Gn(g,t.endLabelRight,bl(t.labelStyle)||"",!1,!1);f=p;let m=p.getBBox();if(i){const y=p.children[0],x=zt(p);m=y.getBoundingClientRect(),x.attr("width",m.width),x.attr("height",m.height)}g.attr("transform",pl(m,i)),d.node().appendChild(p),Ve.get(t.id)||Ve.set(t.id,{}),Ve.get(t.id).endRight=d,Il(f,t.endLabelRight)}return c},"insertEdgeLabel");function Il(e,t){xr(qt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}C(Il,"setTerminalWidth");var kq=C((e,t)=>{Z.debug("Moving label abc88 ",e.id,e.label,zu.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=qt(),{subGraphTitleTotalMargin:n}=A2(i);if(e.label){const a=zu.get(e.id);let s=e.x,o=e.y;if(r){const l=xi.calcLabelPosition(r);Z.debug("Moving label "+e.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+n/2})`)}if(e.startLabelLeft){const a=Ve.get(e.id).startLeft;let s=e.x,o=e.y;if(r){const l=xi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.startLabelRight){const a=Ve.get(e.id).startRight;let s=e.x,o=e.y;if(r){const l=xi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelLeft){const a=Ve.get(e.id).endLeft;let s=e.x,o=e.y;if(r){const l=xi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelRight){const a=Ve.get(e.id).endRight;let s=e.x,o=e.y;if(r){const l=xi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),wq=C((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),s=e.width/2,o=e.height/2;return n>=s||a>=o},"outsideNode"),Sq=C((e,t,r)=>{Z.debug(`intersection calc abc89:
|
|
658
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
659
|
+
insidePoint : ${JSON.stringify(r)}
|
|
660
|
+
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 f={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&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),c===0&&(f.y=t.y),Z.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${o}`,f),f}else{r.x<t.x?o=t.x-s-i:o=i-s-t.x;let u=c*o/h,f=r.x<t.x?r.x+h-o:r.x-h+o,d=r.y<t.y?r.y+u:r.y-u;return Z.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${o}`,{_x:f,_y:d}),o===0&&(f=t.x,d=t.y),h===0&&(f=t.x),c===0&&(d=t.y),{x:f,y:d}}},"intersection"),Qv=C((e,t)=>{Z.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(Z.info("abc88 checking point",a,t),!wq(t,a)&&!n){const s=Sq(t,i,a);Z.debug("abc88 inside",a,i,s),Z.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)?Z.warn("abc88 no intersect",s,r):r.push(s),n=!0}else Z.warn("abc88 outside",a,i),i=a,n||r.push(a)}),Z.debug("returning points",r),r},"cutPathAtIntersect");function SS(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}}C(SS,"extractCornerPoints");var Kv=C(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"),Tq=C(function(e){const{cornerPointPositions:t}=SS(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=Kv(n,s,5),l=Kv(a,s,5),c=l.x-o.x,h=l.y-o.y;r.push(o);const u=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){Z.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const d=5;s.x===o.x?f={x:c<0?o.x-d+u:o.x+d-u,y:h<0?o.y-u:o.y+u}:f={x:c<0?o.x-u:o.x+u,y:h<0?o.y-d+u:o.y+d-u}}else Z.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),_q=C((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"),Bq=C(function(e,t,r,i,n,a,s,o=!1){var H;if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=qt();let c=t.points,h=!1;const u=n;var f=a;const d=[];for(const F in t.cssCompiledStyles)w8(F)||d.push(t.cssCompiledStyles[F]);Z.debug("UIO intersect check",t.points,f.x,u.x),f.intersect&&u.intersect&&!o&&(c=c.slice(1,t.points.length-1),c.unshift(u.intersect(c[0])),Z.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],f,f.intersect(c[c.length-1])),c.push(f.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));t.toCluster&&(Z.info("to cluster abc88",r.get(t.toCluster)),c=Qv(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(Z.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=Qv(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let p=c.filter(F=>!Number.isNaN(F.y));const m=bq(t.curve);m!=="rounded"&&(p=Tq(p));let y=Ql;switch(m){case"linear":y=Ql;break;case"basis":y=$1;break;case"cardinal":y=r7;break;case"bumpX":y=KC;break;case"bumpY":y=ZC;break;case"catmullRom":y=n7;break;case"monotoneX":y=h7;break;case"monotoneY":y=u7;break;case"natural":y=f7;break;case"step":y=p7;break;case"stepAfter":y=m7;break;case"stepBefore":y=g7;break;case"rounded":y=Ql;break;default:y=$1}const{x,y:k}=vR(t),T=rD().x(x).y(k).curve(y);let _;switch(t.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible";break;default:_="edge-thickness-normal"}switch(t.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break;default:_+=" edge-pattern-solid"}let M,S=m==="rounded"?TS(_S(p,t),5):T(p);const A=Array.isArray(t.style)?t.style:[t.style];let N=A.find(F=>F==null?void 0:F.startsWith("stroke:")),z="";t.animate&&(z="edge-animation-fast"),t.animation&&(z="edge-animation-"+t.animation);let P=!1;if(t.look==="handDrawn"){const F=pt.svg(e);Object.assign([],p);const V=F.path(S,{roughness:.3,seed:l});_+=" transition",M=zt(V).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",A?A.reduce((nt,dt)=>nt+";"+dt,""):"");let K=M.attr("d");M.attr("d",K),e.node().appendChild(M.node())}else{const F=d.join(";"),V=A?A.reduce((vt,Rt)=>vt+Rt+";",""):"",K=(F?F+";"+V+";":V)+";"+(A?A.reduce((vt,Rt)=>vt+";"+Rt,""):"");M=e.append("path").attr("d",S).attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",K),N=(H=K.match(/stroke:([^;]+)/))==null?void 0:H[1],P=t.animate===!0||!!t.animation||F.includes("animation");const nt=M.node(),dt=typeof nt.getTotalLength=="function"?nt.getTotalLength():0,ht=rv[t.arrowTypeStart]||0,_t=rv[t.arrowTypeEnd]||0;if(t.look==="neo"&&!P){const Rt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?_q(dt,ht,_t):`0 ${ht} ${dt-ht-_t} ${_t}`}; stroke-dashoffset: 0;`;M.attr("style",Rt+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",g),M.attr("data-look",He(t.look)),t.showPoints&&p.forEach(F=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",F.x).attr("cy",F.y)});let U="";(qt().flowchart.arrowMarkerAbsolute||qt().state.arrowMarkerAbsolute)&&(U=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,U=U.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Z.info("arrowTypeStart",t.arrowTypeStart),Z.info("arrowTypeEnd",t.arrowTypeEnd);const Q=!P&&(t==null?void 0:t.look)==="neo";yq(M,t,U,s,i,Q,N);const Y=Math.floor(c.length/2),q=c[Y];xi.isLabelCoordinateInPath(q,M.attr("d"))||(h=!0);let R={};return h&&(R.updatedPath=c),R.originalPath=t.points,R},"insertEdge");function TS(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,f=l.y-s.y,d=Math.hypot(c,h),g=Math.hypot(u,f);if(d<n||g<n){r+=`L${s.x},${s.y}`;continue}const p=c/d,m=h/d,y=u/g,x=f/g,k=p*y+m*x,T=Math.max(-1,Math.min(1,k)),_=Math.acos(T);if(_<n||Math.abs(Math.PI-_)<n){r+=`L${s.x},${s.y}`;continue}const M=Math.min(t/Math.sin(_/2),d/2,g/2),S=s.x-p*M,A=s.y-m*M,N=s.x+y*M,z=s.y+x*M;r+=`L${S},${A}`,r+=`Q${s.x},${s.y} ${N},${z}`}}return r}C(TS,"generateRoundedPath");function cg(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}}C(cg,"calculateDeltaAndAngle");function _S(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&rr[t.arrowTypeStart]){const n=rr[t.arrowTypeStart],a=e[0],s=e[1],{angle:o}=cg(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&&rr[t.arrowTypeEnd]){const n=rr[t.arrowTypeEnd],a=e[i-1],s=e[i-2],{angle:o}=cg(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}C(_S,"applyMarkerOffsetsToPoints");var Lq=C((e,t,r,i)=>{t.forEach(n=>{Kq[n](e,r,i)})},"insertMarkers"),Aq=C((e,t,r)=>{Z.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").attr("markerUnits","userSpaceOnUse").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"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Eq=C((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Mq=C((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Fq=C((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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),$q=C((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),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Iq=C((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"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),zq=C((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"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Dq=C((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"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),Rq=C((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"),Oq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{transitionColor:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),Pq=C((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"),Nq=C((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"),jq=C((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"),qq=C((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"),Wq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{strokeWidth:a}=n;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),Hq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=n,o=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").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);const l=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("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),Uq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{strokeWidth:a}=n;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),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("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),Yq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=n,o=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("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);const l=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").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),Gq=C((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
|
|
661
|
+
L20,10
|
|
662
|
+
M20,10
|
|
663
|
+
L0,20`)},"requirement_arrow"),Vq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{strokeWidth:a}=n;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").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
664
|
+
L20,10
|
|
665
|
+
M20,10
|
|
666
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Xq=C((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"),Qq=C((e,t,r)=>{const i=de(),{themeVariables:n}=i,{strokeWidth:a}=n,s=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").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),Kq={extension:Aq,composition:Eq,aggregation:Mq,dependency:Fq,lollipop:$q,point:Iq,circle:zq,cross:Dq,barb:Rq,barbNeo:Oq,only_one:Pq,zero_or_one:Nq,one_or_more:jq,zero_or_more:qq,only_one_neo:Wq,zero_or_one_neo:Hq,one_or_more_neo:Uq,zero_or_more_neo:Yq,requirement_arrow:Gq,requirement_contains:Xq,requirement_arrow_neo:Vq,requirement_contains_neo:Qq},Zq=Lq,Jq={common:Uc,getConfig:de,insertCluster:Qj,insertEdge:Bq,insertEdgeLabel:Cq,insertMarkers:Zq,insertNode:wS,interpolateToCurve:w2,labelHelper:Tt,log:Z,positionEdgeLabel:kq},$c={},BS=C(e=>{for(const t of e)$c[t.name]=t},"registerLayoutLoaders"),tW=C(()=>{BS([{name:"dagre",loader:C(async()=>await Pt(()=>import("./dagre-KV5264BT-DLeQYvAA.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:C(async()=>await Pt(()=>import("./cose-bilkent-S5V4N54A-BBqCwo63.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");tW();var FG=C(async(e,t)=>{if(!(e.layoutAlgorithm in $c))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const u=h.domId||h.id;h.domId=`${e.diagramId}-${u}`}const r=$c[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:a}=e.config,{useGradient:s,gradientStart:o,gradientStop:l}=a,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),s){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,Jq,{algorithm:r.algorithm})},"render"),$G=C((e="",{fallback:t="dagre"}={})=>{if(e in $c)return e;if(t in $c)return Z.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"),LS="comm",AS="rule",ES="decl",eW="@import",rW="@namespace",iW="@keyframes",nW="@layer",aW=Math.abs,Jl=String.fromCharCode;function MS(e){return e.trim()}function hg(e,t,r){return e.replace(t,r)}function no(e,t){return e.charCodeAt(t)|0}function Do(e,t,r){return e.slice(t,r)}function Fi(e){return e.length}function sW(e){return e.length}function Uh(e,t){return t.push(e),e}var Dd=1,Ro=1,FS=0,li=0,Se=0,Zo="";function H2(e,t,r,i,n,a,s,o){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Dd,column:Ro,length:s,return:"",siblings:o}}function oW(){return Se}function lW(){return Se=li>0?no(Zo,--li):0,Ro--,Se===10&&(Ro=1,Dd--),Se}function ki(){return Se=li<FS?no(Zo,li++):0,Ro++,Se===10&&(Ro=1,Dd++),Se}function Vn(){return no(Zo,li)}function v0(){return li}function Rd(e,t){return Do(Zo,e,t)}function Ic(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 cW(e){return Dd=Ro=1,FS=Fi(Zo=e),li=0,[]}function hW(e){return Zo="",e}function ip(e){return MS(Rd(li-1,ug(e===91?e+2:e===40?e+1:e)))}function uW(e){for(;(Se=Vn())&&Se<33;)ki();return Ic(e)>2||Ic(Se)>3?"":" "}function dW(e,t){for(;--t&&ki()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Rd(e,v0()+(t<6&&Vn()==32&&ki()==32))}function ug(e){for(;ki();)switch(Se){case e:return li;case 34:case 39:e!==34&&e!==39&&ug(Se);break;case 40:e===41&&ug(e);break;case 92:ki();break}return li}function fW(e,t){for(;ki()&&e+Se!==57;)if(e+Se===84&&Vn()===47)break;return"/*"+Rd(t,li-1)+"*"+Jl(e===47?e:ki())}function pW(e){for(;!Ic(Vn());)ki();return Rd(e,li)}function gW(e){return hW(b0("",null,null,null,[""],e=cW(e),0,[0],e))}function b0(e,t,r,i,n,a,s,o,l){for(var c=0,h=0,u=s,f=0,d=0,g=0,p=1,m=1,y=1,x=0,k=0,T="",_=n,M=a,S=i,A=T;m;)switch(g=k,k=ki()){case 40:g!=108&&no(A,u-1)==58?(x++,A+="("):A+=ip(k);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=ip(k);break;case 9:case 10:case 13:case 32:if(x>0){A+=Jl(k);break}A+=uW(g);break;case 92:A+=dW(v0()-1,7);continue;case 47:switch(Vn()){case 42:case 47:Uh(mW(fW(ki(),v0()),t,r,l),l),(Ic(g||1)==5||Ic(Vn()||1)==5)&&Fi(A)&&Do(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*p:o[c++]=Fi(A)*y;case 125*p:case 59:case 0:if(x>0&&k){A+=Jl(k);break}switch(k){case 0:case 125:m=0;case 59+h:y==-1&&(A=hg(A,/\f/g,"")),d>0&&(Fi(A)-u||p===0)&&Uh(d>32?Jv(A+";",i,r,u-1,l):Jv(hg(A," ","")+";",i,r,u-2,l),l);break;case 59:A+=";";default:if(Uh(S=Zv(A,t,r,c,h,n,o,T,_=[],M=[],u,a),a),k===123)if(h===0)b0(A,t,S,S,_,a,u,o,M);else{switch(f){case 99:if(no(A,3)===110)break;case 108:if(no(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?b0(e,S,S,i&&Uh(Zv(e,S,S,0,0,n,o,T,n,_=[],u,M),M),n,M,u,o,i?_:M):b0(A,S,S,S,[""],M,0,o,M)}}c=h=d=0,p=y=1,T=A="",u=s;break;case 58:u=1+Fi(A),d=g;default:if(p<1){if(k==123)--p;else if(k==125&&p++==0&&lW()==125)continue}switch(A+=Jl(k),k*p){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;o[c++]=(Fi(A)-1)*y,y=1;break;case 64:Vn()===45&&(A+=ip(ki())),f=Vn(),h=u=Fi(T=A+=pW(v0())),k++;break;case 45:g===45&&Fi(A)==2&&(p=0)}}return a}function Zv(e,t,r,i,n,a,s,o,l,c,h,u){for(var f=n-1,d=n===0?a:[""],g=sW(d),p=0,m=0,y=0;p<i;++p)for(var x=0,k=Do(e,f+1,f=aW(m=s[p])),T=e;x<g;++x)(T=MS(m>0?d[x]+" "+k:hg(k,/&\f/g,d[x])))&&(l[y++]=T);return H2(e,t,r,n===0?AS:o,l,c,h,u)}function mW(e,t,r,i){return H2(e,t,r,LS,Jl(oW()),Do(e,2,-2),0,i)}function Jv(e,t,r,i,n){return H2(e,t,r,ES,Do(e,0,i),Do(e,i+1,-1),i,n)}function dg(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function yW(e,t,r,i){switch(e.type){case nW:if(e.children.length)break;case eW:case rW:case ES:return e.return=e.return||e.value;case LS:return"";case iW:return e.return=e.value+"{"+dg(e.children,i)+"}";case AS:if(!Fi(e.value=e.props.join(",")))return""}return Fi(r=dg(e.children,i))?e.return=e.value+"{"+r+"}":""}var xW=r8(Object.keys,Object),vW=Object.prototype,bW=vW.hasOwnProperty;function CW(e){if(!Bd(e))return xW(e);var t=[];for(var r in Object(e))bW.call(e,r)&&r!="constructor"&&t.push(r);return t}var fg=gs(Xi,"DataView"),pg=gs(Xi,"Promise"),gg=gs(Xi,"Set"),mg=gs(Xi,"WeakMap"),t5="[object Map]",kW="[object Object]",e5="[object Promise]",r5="[object Set]",i5="[object WeakMap]",n5="[object DataView]",wW=ps(fg),SW=ps(Mc),TW=ps(pg),_W=ps(gg),BW=ps(mg),za=Vo;(fg&&za(new fg(new ArrayBuffer(1)))!=n5||Mc&&za(new Mc)!=t5||pg&&za(pg.resolve())!=e5||gg&&za(new gg)!=r5||mg&&za(new mg)!=i5)&&(za=function(e){var t=Vo(e),r=t==kW?e.constructor:void 0,i=r?ps(r):"";if(i)switch(i){case wW:return n5;case SW:return t5;case TW:return e5;case _W:return r5;case BW:return i5}return t});var LW="[object Map]",AW="[object Set]",EW=Object.prototype,MW=EW.hasOwnProperty;function a5(e){if(e==null)return!0;if(Ld(e)&&(Tu(e)||typeof e=="string"||typeof e.splice=="function"||C2(e)||k2(e)||Su(e)))return!e.length;var t=za(e);if(t==LW||t==AW)return!e.size;if(Bd(e))return!CW(e).length;for(var r in e)if(MW.call(e,r))return!1;return!0}var $S="c4",FW=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),$W=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-brLyKMPJ.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:$S,diagram:e}},"loader"),IW={id:$S,detector:FW,loader:$W},zW=IW,IS="flowchart",DW=C((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),RW=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-B1Wy36da.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:IS,diagram:e}},"loader"),OW={id:IS,detector:DW,loader:RW},PW=OW,zS="flowchart-v2",NW=C((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),jW=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-B1Wy36da.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:zS,diagram:e}},"loader"),qW={id:zS,detector:NW,loader:jW},WW=qW,DS="er",HW=C(e=>/^\s*erDiagram/.test(e),"detector"),UW=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-DDSp8ANa.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:DS,diagram:e}},"loader"),YW={id:DS,detector:HW,loader:UW},GW=YW,RS="gitGraph",VW=C(e=>/^\s*gitGraph/.test(e),"detector"),XW=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-BhvM7s41.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:RS,diagram:e}},"loader"),QW={id:RS,detector:VW,loader:XW},KW=QW,OS="gantt",ZW=C(e=>/^\s*gantt/.test(e),"detector"),JW=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-CQ7VWheo.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:OS,diagram:e}},"loader"),tH={id:OS,detector:ZW,loader:JW},eH=tH,PS="info",rH=C(e=>/^\s*info/.test(e),"detector"),iH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-4eawOC2G.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:PS,diagram:e}},"loader"),nH={id:PS,detector:rH,loader:iH},NS="pie",aH=C(e=>/^\s*pie/.test(e),"detector"),sH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-Dp2x5kvP.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:NS,diagram:e}},"loader"),oH={id:NS,detector:aH,loader:sH},jS="quadrantChart",lH=C(e=>/^\s*quadrantChart/.test(e),"detector"),cH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-B4yqA6XF.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:jS,diagram:e}},"loader"),hH={id:jS,detector:lH,loader:cH},uH=hH,qS="xychart",dH=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),fH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-ILdmj7ok.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:qS,diagram:e}},"loader"),pH={id:qS,detector:dH,loader:fH},gH=pH,WS="requirement",mH=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),yH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-DEjN_2tG.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:WS,diagram:e}},"loader"),xH={id:WS,detector:mH,loader:yH},vH=xH,HS="sequence",bH=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),CH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-07BCMKjW.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:HS,diagram:e}},"loader"),kH={id:HS,detector:bH,loader:CH},wH=kH,US="class",SH=C((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),TH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-BXgAb5m4.js");return{diagram:t}},__vite__mapDeps([32,33,11,9,12,13]));return{id:US,diagram:e}},"loader"),_H={id:US,detector:SH,loader:TH},BH=_H,YS="classDiagram",LH=C((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),AH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-BXgAb5m4.js");return{diagram:t}},__vite__mapDeps([34,33,11,9,12,13]));return{id:YS,diagram:e}},"loader"),EH={id:YS,detector:LH,loader:AH},MH=EH,GS="state",FH=C((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),$H=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-DVz6GtR8.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:GS,diagram:e}},"loader"),IH={id:GS,detector:FH,loader:$H},zH=IH,VS="stateDiagram",DH=C((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),RH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-DYiYr0PB.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:VS,diagram:e}},"loader"),OH={id:VS,detector:DH,loader:RH},PH=OH,XS="journey",NH=C(e=>/^\s*journey/.test(e),"detector"),jH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-C4Zx3dpF.js");return{diagram:t}},__vite__mapDeps([38,11,9,26]));return{id:XS,diagram:e}},"loader"),qH={id:XS,detector:NH,loader:jH},WH=qH,HH=C((e,t,r)=>{Z.debug(`rendering svg for syntax error
|
|
667
|
+
`);const i=uD(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),bC(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"),QS={draw:HH},UH=QS,YH={db:{},renderer:QS,parser:{parse:C(()=>{},"parse")}},GH=YH,KS="flowchart-elk",VH=C((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),XH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-B1Wy36da.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:KS,diagram:e}},"loader"),QH={id:KS,detector:VH,loader:XH},KH=QH,ZS="timeline",ZH=C(e=>/^\s*timeline/.test(e),"detector"),JH=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ-C0u67FqY.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:ZS,diagram:e}},"loader"),tU={id:ZS,detector:ZH,loader:JH},eU=tU,JS="mindmap",rU=C(e=>/^\s*mindmap/.test(e),"detector"),iU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH-KzGyX4Em.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:JS,diagram:e}},"loader"),nU={id:JS,detector:rU,loader:iU},aU=nU,t9="kanban",sU=C(e=>/^\s*kanban/.test(e),"detector"),oU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY-CV1vDcC8.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:t9,diagram:e}},"loader"),lU={id:t9,detector:sU,loader:oU},cU=lU,e9="sankey",hU=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),uU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6-BKm_F5FA.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:e9,diagram:e}},"loader"),dU={id:e9,detector:hU,loader:uU},fU=dU,r9="packet",pU=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),gU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./diagram-TYMM5635-C_oGwrmX.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:r9,diagram:e}},"loader"),mU={id:r9,detector:pU,loader:gU},i9="radar",yU=C(e=>/^\s*radar-beta/.test(e),"detector"),xU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5-DRNEGNZA.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:i9,diagram:e}},"loader"),vU={id:i9,detector:yU,loader:xU},n9="block",bU=C(e=>/^\s*block(-beta)?/.test(e),"detector"),CU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D-B-4wwQNT.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:n9,diagram:e}},"loader"),kU={id:n9,detector:bU,loader:CU},wU=kU,a9="treeView",SU=C(e=>/^\s*treeView-beta/.test(e),"detector"),TU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD-D85z2LaM.js");return{diagram:t}},__vite__mapDeps([46,17,18,19,4,2]));return{id:a9,diagram:e}},"loader"),_U={id:a9,detector:SU,loader:TU},BU=_U,s9="architecture",LU=C(e=>/^\s*architecture/.test(e),"detector"),AU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46-EbiUvXBr.js");return{diagram:t}},__vite__mapDeps([47,17,19,4,2,7]));return{id:s9,diagram:e}},"loader"),EU={id:s9,detector:LU,loader:AU},MU=EU,o9="ishikawa",FU=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),$U=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A-CJWfG1fv.js");return{diagram:t}},[]);return{id:o9,diagram:e}},"loader"),IU={id:o9,detector:FU,loader:$U},l9="venn",zU=C(e=>/^\s*venn-beta/.test(e),"detector"),DU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP-BiAlMVLe.js");return{diagram:t}},[]);return{id:l9,diagram:e}},"loader"),RU={id:l9,detector:zU,loader:DU},OU=RU,c9="treemap",PU=C(e=>/^\s*treemap/.test(e),"detector"),NU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6-4AvBmvcP.js");return{diagram:t}},__vite__mapDeps([48,13,17,19,4,2,23,27,22]));return{id:c9,diagram:e}},"loader"),jU={id:c9,detector:PU,loader:NU},h9="wardley-beta",qU=C(e=>/^\s*wardley-beta/i.test(e),"detector"),WU=C(async()=>{const{diagram:e}=await Pt(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D-DEL2Lx6S.js");return{diagram:t}},__vite__mapDeps([49,17,19,4,2]));return{id:h9,diagram:e}},"loader"),HU={id:h9,detector:qU,loader:WU},UU=HU,s5=!1,Od=C(()=>{s5||(s5=!0,su("error",GH,e=>e.toLowerCase().trim()==="error"),su("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{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:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),v1(KH,aU,MU),v1(zW,cU,MH,BH,GW,eH,nH,oH,vH,wH,WW,PW,eU,KW,PH,zH,WH,uH,fU,mU,gH,wU,BU,vU,IU,jU,OU,UU))},"addDiagrams"),YU=C(async()=>{Z.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ts).map(async([r,{detector:i,loader:n}])=>{if(n)try{w1(r)}catch{try{const{diagram:a,id:s}=await n();su(s,a,i)}catch(a){throw Z.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete ts[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Z.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Z.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),GU="graphics-document document";function u9(e,t){e.attr("role",GU),t!==""&&e.attr("aria-roledescription",t)}C(u9,"setA11yDiagramInfo");function d9(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)}}}C(d9,"addSVGa11yTitleDescription");var Ga,yg=(Ga=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={}){var c,h;const i=de(),n=Gm(t,i);t=mN(t)+`
|
|
668
|
+
`;try{w1(n)}catch{const u=EM(n);if(!u)throw new sC(`Diagram ${n} not found.`);const{id:f,diagram:d}=await u();su(f,d)}const{db:a,parser:s,renderer:o,init:l}=w1(n);return s.parser&&(s.parser.yy=a),(c=a.clear)==null||c.call(a),l==null||l(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await s.parse(t),new Ga(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}},C(Ga,"Diagram"),Ga),o5=[],VU=C(()=>{o5.forEach(e=>{e()}),o5=[]},"attachFunctions"),XU=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f9(e){const t=e.match(aC);if(!t)return{text:e,metadata:{}};let r=xR(t[1],{schema:yR})??{};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}}C(f9,"extractFrontMatter");var QU=C(e=>e.replace(/\r\n?/g,`
|
|
669
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),KU=C(e=>{const{text:t,metadata:r}=f9(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"),ZU=C(e=>{const t=xi.detectInit(e)??{},r=xi.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:iN(e),directive:t}},"processDirectives");function U2(e){const t=QU(e),r=KU(t),i=ZU(r.text),n=L2(r.config,i.directive);return e=XU(i.text),{code:e,title:r.title,config:n}}C(U2,"preprocessDiagram");function p9(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}C(p9,"toBase64");var JU=5e4,tY="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",eY="sandbox",rY="loose",iY="http://www.w3.org/2000/svg",nY="http://www.w3.org/1999/xlink",aY="http://www.w3.org/1999/xhtml",sY="100%",oY="100%",lY="border:0;margin:0;",cY="margin:0",hY="allow-top-navigation-by-user-activation allow-popups",uY='The "iframe" tag is not supported by your browser.',dY=["foreignobject"],fY=["dominant-baseline"];function Y2(e){const t=U2(e);return nu(),nF(t.config??{}),t}C(Y2,"processAndSetConfigs");async function g9(e,t){Od();try{const{code:r,config:i}=Y2(e);return{diagramType:(await y9(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}C(g9,"parse");var l5=C((e,t,r=[])=>`
|
|
670
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),pY=C((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
671
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
672
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
673
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=xr(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(o=>{a5(o.styles)||s.forEach(l=>{r+=l5(o.id,l,o.styles)}),a5(o.textStyles)||(r+=l5(o.id,"tspan",((o==null?void 0:o.textStyles)||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),gY=C((e,t,r,i)=>{const n=pY(e,r),a=wF(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return dg(gW(`${i}{${a}}`),yW)},"createUserStyles"),mY=C((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=as(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),yY=C((e="",t)=>{var n,a;const r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":oY,i=p9(`<body style="${cY}">${e}</body>`);return`<iframe style="width:${sY};height:${r};${lY}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${hY}">
|
|
674
|
+
${uY}
|
|
675
|
+
</iframe>`},"putIntoIFrame"),c5=C((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",iY);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function xg(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}C(xg,"sandboxedIframe");var xY=C((e,t,r,i)=>{var n,a,s;(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(s=e.getElementById(i))==null||s.remove()},"removeExistingElements"),vY=C(async function(e,t,r){var U,Q,Y,q,R,H;Od();const i=Y2(t);t=i.code;const n=de();Z.debug(n),t.length>((n==null?void 0:n.maxTextSize)??JU)&&(t=tY);const a="#"+e,s="i"+e,o="#"+s,l="d"+e,c="#"+l,h=C(()=>{const V=zt(f?o:c).node();V&&"remove"in V&&V.remove()},"removeTempElements");let u=zt("body");const f=n.securityLevel===eY,d=n.securityLevel===rY,g=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const F=xg(zt(r),s);u=zt(F.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=zt(r);c5(u,e,l,`font-family: ${g}`,nY)}else{if(xY(document,e,l,s),f){const F=xg(zt("body"),s);u=zt(F.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=zt("body");c5(u,e,l)}let p,m;try{p=await yg.fromText(t,{title:i.title})}catch(F){if(n.suppressErrorRendering)throw h(),F;p=await yg.fromText("error"),m=F}const y=u.select(c).node(),x=p.type,k=y.firstChild,T=k.firstChild,_=(Q=(U=p.renderer).getClasses)==null?void 0:Q.call(U,t,p),M=gY(n,x,_,a),S=document.createElement("style");S.innerHTML=M,k.insertBefore(S,T);try{await p.renderer.draw(t,e,"11.14.0",p)}catch(F){throw n.suppressErrorRendering?h():UH.draw(t,e,"11.14.0"),F}const A=u.select(`${c} svg`),N=(q=(Y=p.db).getAccTitle)==null?void 0:q.call(Y),z=(H=(R=p.db).getAccDescription)==null?void 0:H.call(R);x9(x,A,N,z),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",aY);let P=u.select(c).node().innerHTML;if(Z.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),P=mY(P,f,Tn(n.arrowMarkerAbsolute)),f){const F=u.select(c+" svg").node();P=yY(P,F)}else d||(P=Eo.sanitize(P,{ADD_TAGS:dY,ADD_ATTR:fY,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(VU(),m)throw m;return h(),{diagramType:x,svg:P,bindFunctions:p.db.bindFunctions}},"render");function m9(e={}){var i;const t=$e({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),rF(t),t!=null&&t.theme&&t.theme in dn?t.themeVariables=dn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=dn.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?eF(t):uC();Ym(r.logLevel),Od()}C(m9,"initialize");var y9=C((e,t={})=>{const{code:r}=U2(e);return yg.fromText(r,t)},"getDiagramFromText");function x9(e,t,r,i){u9(t,e),d9(t,r,i,t.attr("id"))}C(x9,"addA11yInfo");var os=Object.freeze({render:vY,parse:g9,getDiagramFromText:y9,initialize:m9,getConfig:de,setConfig:dC,getSiteConfig:uC,updateSiteConfig:iF,reset:C(()=>{nu()},"reset"),globalReset:C(()=>{nu(Mo)},"globalReset"),defaultConfig:Mo});Ym(de().logLevel);nu(de());var bY=C((e,t,r)=>{Z.warn(e),B2(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),v9=C(async function(e={querySelector:".mermaid"}){try{await CY(e)}catch(t){if(B2(t)&&Z.error(t.str),qr.parseError&&qr.parseError(t),!e.suppressErrors)throw Z.error("Use the suppressErrors option to suppress these errors"),t}},"run"),CY=C(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=os.getConfig();Z.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");Z.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(Z.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),os.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new xi.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const l of Array.from(n)){if(Z.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;s=l.innerHTML,s=D8(xi.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=xi.detectInit(s);h&&Z.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:f}=await w9(c,s,l);l.innerHTML=u,e&&await e(c),f&&f(l)}catch(u){bY(u,o,qr.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),b9=C(function(e){os.initialize(e)},"initialize"),kY=C(async function(e,t,r){Z.warn("mermaid.init is deprecated. Please use run instead."),e&&b9(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await v9(i)},"init"),wY=C(async(e,{lazyLoad:t=!0}={})=>{Od(),v1(...e),t===!1&&await YU()},"registerExternalDiagrams"),C9=C(function(){if(qr.startOnLoad){const{startOnLoad:e}=os.getConfig();e&&qr.run().catch(t=>Z.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",C9,!1);var SY=C(function(e){qr.parseError=e},"setParseErrorHandler"),Du=[],np=!1,k9=C(async()=>{if(!np){for(np=!0;Du.length>0;){const e=Du.shift();if(e)try{await e()}catch(t){Z.error("Error executing queue",t)}}np=!1}},"executeQueue"),TY=C(async(e,t)=>new Promise((r,i)=>{const n=C(()=>new Promise((a,s)=>{os.parse(e,t).then(o=>{a(o),r(o)},o=>{var l;Z.error("Error parsing",o),(l=qr.parseError)==null||l.call(qr,o),s(o),i(o)})}),"performCall");Du.push(n),k9().catch(i)}),"parse"),w9=C((e,t,r)=>new Promise((i,n)=>{const a=C(()=>new Promise((s,o)=>{os.render(e,t,r).then(l=>{s(l),i(l)},l=>{var c;Z.error("Error parsing",l),(c=qr.parseError)==null||c.call(qr,l),o(l),n(l)})}),"performCall");Du.push(a),k9().catch(n)}),"render"),_Y=C(()=>Object.keys(ts).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),qr={startOnLoad:!0,mermaidAPI:os,parse:TY,render:w9,init:kY,run:v9,registerExternalDiagrams:wY,registerLayoutLoaders:BS,initialize:b9,parseError:void 0,contentLoaded:C9,setParseErrorHandler:SY,detectType:Gm,registerIconPacks:wj,getRegisteredDiagramsMetadata:_Y},S9=qr;/*! Check if previously processed *//*!
|
|
676
|
+
* Wait for document loaded before starting the execution
|
|
677
|
+
*/let h5=!1;function BY(){h5||(S9.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose"}),h5=!0)}function LY({chart:e,id:t}){const r=W.useRef(null),[i,n]=W.useState(""),[a,s]=W.useState(""),[o,l]=W.useState(!0),c=t||`mermaid-${Math.random().toString(36).slice(2,9)}`;return W.useEffect(()=>{BY(),l(!0),s(""),n("");let h=!1;return S9.render(c,e.trim()).then(u=>{h||(n(u.svg),l(!1))}).catch(u=>{h||(s(u instanceof Error?u.message:String(u)),l(!1))}),()=>{h=!0}},[e,c]),o?b.jsx("div",{style:{padding:"16px",background:"#f9fafb",borderRadius:8,border:"1px solid #e5e7eb",color:"#6b7280",fontSize:13,textAlign:"center"},children:"渲染图表中..."}):a?b.jsxs("div",{style:{padding:"12px 16px",background:"#fef2f2",borderRadius:8,border:"1px solid #fecaca"},children:[b.jsxs("div",{style:{fontSize:12,color:"#dc2626",marginBottom:8},children:["Mermaid 渲染失败:",a]}),b.jsx("pre",{style:{fontSize:12,color:"#374151",background:"#f9fafb",padding:"8px 12px",borderRadius:6,overflowX:"auto",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e})]}):b.jsx("div",{ref:r,style:{padding:"16px",background:"white",borderRadius:8,border:"1px solid #e5e7eb",overflowX:"auto",textAlign:"center"},dangerouslySetInnerHTML:{__html:i}})}function AY({level:e}){if(!e)return b.jsx(b.Fragment,{});const r={easy:{bg:"#d1fae5",color:"#065f46",label:"简单"},medium:{bg:"#fef3c7",color:"#92400e",label:"中等"},hard:{bg:"#fee2e2",color:"#991b1b",label:"困难"}}[e];return b.jsx("span",{style:{background:r.bg,color:r.color,fontSize:11,fontWeight:600,padding:"2px 8px",borderRadius:10,marginLeft:8},children:r.label})}function EY({latex:e}){const t=W.useRef(null);return W.useEffect(()=>{if(t.current)try{Um.render(e,t.current,{throwOnError:!1,displayMode:!0,output:"html"})}catch{t.current&&(t.current.textContent=e)}},[e]),b.jsx("div",{ref:t,style:{background:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:6,padding:"10px 16px",overflowX:"auto",textAlign:"center"}})}function MY({data:e}){return b.jsxs("div",{style:{border:"1px solid #e5e7eb",borderRadius:12,overflow:"hidden",background:"white",boxShadow:"0 1px 3px rgba(0,0,0,0.08)"},children:[b.jsxs("div",{style:{background:"linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%)",color:"white",padding:"14px 18px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[b.jsx("span",{style:{fontSize:20},children:"📚"}),b.jsxs("div",{children:[b.jsx("div",{style:{fontWeight:700,fontSize:16},children:e.title}),e.subject&&b.jsx("div",{style:{fontSize:12,opacity:.8,marginTop:2},children:e.subject})]})]}),b.jsx(AY,{level:e.difficulty})]}),b.jsxs("div",{style:{padding:"16px 18px"},children:[e.keyPoints&&e.keyPoints.length>0&&b.jsxs("div",{style:{marginBottom:14},children:[b.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#374151",marginBottom:8,display:"flex",alignItems:"center",gap:6},children:[b.jsx("span",{children:"🔑"}),b.jsx("span",{children:"重点"})]}),b.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:e.keyPoints.map((t,r)=>b.jsxs("li",{style:{display:"flex",gap:8,alignItems:"flex-start",fontSize:13,color:"#4b5563",marginBottom:6,lineHeight:1.5},children:[b.jsxs("span",{style:{color:"#4f46e5",fontWeight:700,flexShrink:0,marginTop:1},children:[r+1,"."]}),b.jsx("span",{children:t})]},r))})]}),e.formula&&b.jsxs("div",{style:{marginBottom:14},children:[b.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#374151",marginBottom:8,display:"flex",alignItems:"center",gap:6},children:[b.jsx("span",{children:"∑"}),b.jsx("span",{children:"公式"})]}),b.jsx(EY,{latex:e.formula})]}),e.example&&b.jsxs("div",{style:{marginBottom:14},children:[b.jsxs("div",{style:{fontSize:13,fontWeight:600,color:"#374151",marginBottom:8,display:"flex",alignItems:"center",gap:6},children:[b.jsx("span",{children:"✏️"}),b.jsx("span",{children:"例题"})]}),b.jsx("div",{style:{background:"#f0f9ff",border:"1px solid #bae6fd",borderRadius:8,padding:"10px 14px",fontSize:13,color:"#0369a1",lineHeight:1.6,whiteSpace:"pre-wrap"},children:e.example})]}),e.tips&&b.jsx("div",{children:b.jsxs("div",{style:{background:"#f9fafb",border:"1px solid #e5e7eb",borderRadius:8,padding:"10px 14px",display:"flex",gap:8,alignItems:"flex-start"},children:[b.jsx("span",{style:{fontSize:16,flexShrink:0},children:"💡"}),b.jsx("div",{style:{fontSize:13,color:"#6b7280",lineHeight:1.6},children:e.tips})]})})]})]})}function FY({content:e}){const[t,r]=W.useState("");return W.useEffect(()=>{const i=Yt.parse(e,{async:!1});r(i)},[e]),b.jsx("div",{style:{fontSize:14,lineHeight:1.7,color:"#374151"},dangerouslySetInnerHTML:{__html:t}})}function $Y({content:e}){const t=W.useRef(null);return W.useEffect(()=>{if(t.current)try{Um.render(e.trim(),t.current,{throwOnError:!1,displayMode:!0,output:"html"})}catch{t.current&&(t.current.textContent=e)}},[e]),b.jsx("div",{ref:t,style:{padding:"12px 16px",background:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:8,overflowX:"auto",textAlign:"center"}})}function IY({content:e,language:t}){const[r,i]=W.useState(!1),n=()=>{navigator.clipboard.writeText(e).then(()=>{i(!0),setTimeout(()=>i(!1),2e3)})};return b.jsxs("div",{style:{position:"relative",background:"#1e1b4b",borderRadius:8,overflow:"hidden"},children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 12px",background:"rgba(255,255,255,0.05)",borderBottom:"1px solid rgba(255,255,255,0.1)"},children:[b.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.5)"},children:t||"code"}),b.jsx("button",{onClick:n,style:{background:"none",border:"none",color:r?"#10b981":"rgba(255,255,255,0.6)",cursor:"pointer",fontSize:12,padding:"2px 8px",borderRadius:4},children:r?"已复制":"复制"})]}),b.jsx("pre",{style:{margin:0,padding:"14px 16px",fontSize:13,color:"#e2e8f0",overflowX:"auto",whiteSpace:"pre",fontFamily:'Consolas, Monaco, "Courier New", monospace'},children:b.jsx("code",{children:e})})]})}function zY({output:e}){switch(e.type){case"text":return b.jsx(FY,{content:e.content});case"mermaid":return b.jsx(LY,{chart:e.content});case"knowledge_card":{let t;try{t=JSON.parse(e.content)}catch{return b.jsxs("div",{style:{padding:"12px 16px",background:"#fef2f2",borderRadius:8,border:"1px solid #fecaca",fontSize:13,color:"#dc2626"},children:["知识卡片解析失败:",e.content]})}return b.jsx(MY,{data:t})}case"code":return b.jsx(IY,{content:e.content,language:e.language});case"latex":return b.jsx($Y,{content:e.content});default:return b.jsx("pre",{style:{fontSize:13,color:"#374151",background:"#f9fafb",padding:"12px",borderRadius:8,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content})}}const DY=[{value:"all",label:"全部状态"},{value:"pending",label:"等待中"},{value:"running",label:"运行中"},{value:"completed",label:"已完成"},{value:"failed",label:"失败"}],RY={proactive_report:"主动报告",resource_brief:"资源简报",daily_review:"每日回顾",weakness_quiz:"薄弱点测验",generate_diagram:"生成图表",sandbox_run:"沙盒运行"},OY={email_resource:"邮件资源",workspace_update:"工作区更新",scheduled:"定时触发",manual:"手动触发"};function PY(e){return{pending:"badge badge-yellow",running:"badge badge-blue",completed:"badge badge-green",failed:"badge badge-red"}[e]||"badge badge-gray"}function NY(e){return{pending:"等待中",running:"运行中",completed:"已完成",failed:"失败"}[e]||e}function jY(e){if(!e)return null;try{const t=JSON.parse(e);return t.type&&t.content!==void 0?t:{type:"text",content:e}}catch{return{type:"text",content:e}}}function u5(e){return e?new Date(e).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-"}function qY({task:e}){const[t,r]=W.useState(!1),i=jY(e.output);return b.jsxs("div",{className:"card",style:{marginBottom:8,cursor:"pointer"},onClick:()=>r(n=>!n),children:[b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12},children:[b.jsxs("div",{style:{flex:1,minWidth:0},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",marginBottom:4},children:[b.jsx("span",{style:{fontWeight:600,fontSize:13},children:RY[e.task_type]||e.task_type}),b.jsx("span",{className:PY(e.status),children:NY(e.status)}),e.trigger_type&&b.jsx("span",{className:"badge badge-gray",children:OY[e.trigger_type]||e.trigger_type})]}),e.input_summary&&b.jsx("p",{style:{fontSize:12,color:"var(--text-secondary)",margin:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.input_summary})]}),b.jsxs("div",{style:{flexShrink:0,textAlign:"right"},children:[b.jsx("div",{style:{fontSize:11,color:"var(--text-muted)"},children:u5(e.started_at||e.create_time)}),b.jsx("div",{style:{fontSize:11,color:t?"var(--primary)":"var(--text-muted)",marginTop:4},children:t?"收起":"展开查看输出"})]})]}),t&&b.jsxs("div",{style:{marginTop:14,paddingTop:14,borderTop:"1px solid var(--border)"},onClick:n=>n.stopPropagation(),children:[e.error&&b.jsxs("div",{className:"alert alert-error",children:[b.jsx("strong",{children:"错误:"}),e.error]}),i?b.jsx(zY,{output:i}):b.jsx("div",{style:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:13,background:"var(--bg)",borderRadius:"var(--radius)",border:"1px solid var(--border)"},children:e.status==="pending"||e.status==="running"?"任务尚未完成,输出生成中...":"暂无输出"}),e.completed_at&&b.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:10,textAlign:"right"},children:["完成时间:",u5(e.completed_at)]})]})]})}function WY(){const[e,t]=W.useState([]),[r,i]=W.useState(0),[n,a]=W.useState(!0),[s,o]=W.useState(!1),[l,c]=W.useState("all"),[h,u]=W.useState(1),[f,d]=W.useState(""),[g,p]=W.useState(""),m=20;W.useEffect(()=>{y()},[l,h]);const y=async()=>{a(!0),d("");try{const T=await Un.getTasks(l==="all"?void 0:l,h,m);if(T.success&&T.data){const _=T.data;t(_.tasks||[]),i(_.total||0)}}catch(T){d(T instanceof Error?T.message:"加载失败")}finally{a(!1)}},x=async()=>{if(!s){o(!0),d(""),p("");try{const T=await Un.runProactiveReport();T.success?(p("主动报告任务已触发,请稍后刷新查看结果"),setTimeout(()=>{u(1),y()},3e3)):d(T.error||"触发失败")}finally{o(!1)}}},k=Math.ceil(r/m);return b.jsxs("div",{children:[b.jsxs("div",{className:"page-header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[b.jsxs("div",{children:[b.jsx("h1",{children:"Agent 主动任务"}),b.jsx("p",{children:"查看 Agent 生成的资源简报、每日回顾和薄弱点测验"})]}),b.jsxs("div",{style:{display:"flex",gap:8},children:[b.jsx("button",{className:"btn btn-primary",onClick:x,disabled:s,children:s?"触发中...":"手动触发主动报告"}),b.jsx("button",{className:"btn btn-secondary",onClick:y,disabled:n,children:"刷新"})]})]}),f&&b.jsx("div",{className:"alert alert-error",children:f}),g&&b.jsx("div",{className:"alert alert-success",children:g}),b.jsxs("div",{className:"card",style:{marginBottom:16,padding:"12px 16px",display:"flex",gap:16,flexWrap:"wrap",alignItems:"center"},children:[b.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[b.jsx("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"状态筛选:"}),b.jsx("select",{className:"form-control",value:l,onChange:T=>{c(T.target.value),u(1)},style:{width:"auto",padding:"4px 8px",fontSize:13},children:DY.map(T=>b.jsx("option",{value:T.value,children:T.label},T.value))})]}),b.jsxs("span",{style:{fontSize:12,color:"var(--text-muted)",marginLeft:"auto"},children:["共 ",r," 条任务"]})]}),n?b.jsxs("div",{className:"loading",children:[b.jsx("div",{className:"spinner"}),"加载中..."]}):e.length===0?b.jsx("div",{className:"card",children:b.jsxs("div",{className:"empty-state",children:[b.jsx("div",{className:"empty-icon",children:b.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}),b.jsx("h3",{children:"暂无主动任务"}),b.jsx("p",{children:"当系统收到新资源时,Agent 会自动生成简报。你也可以手动触发主动报告。"}),b.jsx("button",{className:"btn btn-primary",onClick:x,disabled:s,style:{marginTop:12},children:s?"触发中...":"手动触发主动报告"})]})}):b.jsxs(b.Fragment,{children:[e.map(T=>b.jsx(qY,{task:T},T.id)),k>1&&b.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:8,marginTop:16},children:[b.jsx("button",{className:"btn btn-secondary btn-sm",disabled:h===1,onClick:()=>u(T=>T-1),children:"上一页"}),b.jsxs("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:[h," / ",k]}),b.jsx("button",{className:"btn btn-secondary btn-sm",disabled:h===k,onClick:()=>u(T=>T+1),children:"下一页"})]})]})]})}Yt.setOptions({breaks:!0,gfm:!0});const HY=e=>Yt.parse(e);let UY=0;const d5=()=>String(++UY),Yh=()=>new Date().toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"});function YY(){return b.jsx("div",{style:{width:32,height:32,borderRadius:8,flexShrink:0,background:"var(--primary)",display:"flex",alignItems:"center",justifyContent:"center",marginRight:10,marginTop:2},children:b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"M12 2a7 7 0 0 1 7 7c0 4-3 6-5 8l-2 2-2-2c-2-2-5-4-5-8a7 7 0 0 1 7-7z"}),b.jsx("circle",{cx:"12",cy:"9",r:"2",fill:"#fff",stroke:"none"})]})})}function GY({initial:e}){return b.jsx("div",{style:{width:32,height:32,borderRadius:"50%",flexShrink:0,background:"var(--text)",color:"var(--bg)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700,marginLeft:10,marginTop:2},children:e})}function VY({text:e}){return b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 10px",background:"rgba(217,119,87,0.08)",border:"1px solid rgba(217,119,87,0.2)",borderRadius:20,fontSize:12,color:"var(--primary)",marginBottom:6},children:[b.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:"var(--primary)",animation:"blink .7s step-end infinite"}}),e]})}function G2({minimal:e=!1}){const[t,r]=W.useState([]),[i,n]=W.useState(""),[a,s]=W.useState([]),[o,l]=W.useState(!1),c=W.useRef(null),h=W.useRef(null),u=W.useRef(null),f=W.useRef(null),g=(localStorage.getItem("username")||"U").charAt(0).toUpperCase();W.useEffect(()=>{var S;(S=c.current)==null||S.scrollIntoView({behavior:"smooth"})},[t]);const p=S=>S.filter(A=>{var N;return!A.error&&(A.content||((N=A.images)==null?void 0:N.length))}).map(A=>{var N;return{role:A.role==="user"?"user":"assistant",content:(N=A.images)!=null&&N.length?[...A.images,{type:"text",text:A.content}]:A.content}}),m=W.useCallback(()=>{const S=i.trim();if(!S&&a.length===0||o)return;n("");const A=[...a];s([]);const N={id:d5(),role:"user",content:S,images:A,time:Yh()};r(z=>{const P=[...z,N],U=d5(),Q={id:U,role:"ai",content:"",time:"",streaming:!0};l(!0);const Y=mL.stream(p([...P]),q=>r(R=>R.map(H=>H.id===U?{...H,content:H.content+q,thinking:void 0}:H)),()=>{r(q=>q.map(R=>R.id===U?{...R,streaming:!1,thinking:void 0,time:Yh()}:R)),l(!1),setTimeout(()=>{var q;return(q=h.current)==null?void 0:q.focus()},0)},q=>{r(R=>R.map(H=>H.id===U?{...H,content:q,streaming:!1,thinking:void 0,error:!0,time:Yh()}:H)),l(!1)},(q,R)=>r(H=>H.map(F=>F.id===U?{...F,thinking:R}:F)));return f.current=Y,[...P,Q]})},[i,a,o]),y=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),m())},x=S=>{if(!S.type.startsWith("image/"))return;const A=new FileReader;A.onload=()=>{const N=A.result.split(",")[1];s(z=>[...z,{type:"image",data:N,mediaType:S.type}])},A.readAsDataURL(S)},k=S=>{Array.from(S.target.files??[]).forEach(x),S.target.value=""},T=S=>{Array.from(S.clipboardData.items).forEach(A=>{if(A.type.startsWith("image/")){const N=A.getAsFile();N&&x(N)}})},_=()=>{var S;(S=f.current)==null||S.abort(),r(A=>A.map(N=>N.streaming?{...N,streaming:!1,thinking:void 0,time:Yh()}:N)),l(!1)},M=e?"100vh":"calc(100vh - 56px)";return b.jsxs("div",{style:{display:"flex",flexDirection:"column",height:M},children:[b.jsx("style",{children:"@keyframes blink { 50% { opacity: 0 } }"}),!e&&b.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingBottom:16,flexShrink:0},children:[b.jsxs("div",{children:[b.jsx("h1",{style:{margin:0,fontSize:20,fontWeight:600,letterSpacing:"-0.01em"},children:"AI 对话"}),b.jsx("p",{style:{margin:"3px 0 0",fontSize:13,color:"var(--text-secondary)"},children:"支持发送图片(截图/拍照)· Enter 发送 · Shift+Enter 换行"})]}),t.length>0&&b.jsx("button",{className:"btn btn-ghost btn-sm",onClick:()=>{o&&_(),r([])},style:{color:"var(--text-secondary)"},children:"清空"})]}),b.jsxs("div",{style:{flex:1,overflowY:"auto",background:"var(--bg-card)",borderRadius:e?0:"var(--radius-lg)",border:e?"none":"1px solid var(--border)",padding:e?"16px 20px":"20px",marginBottom:12},children:[t.length===0?b.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"var(--text-muted)",userSelect:"none"},children:[b.jsx("div",{style:{width:48,height:48,borderRadius:10,background:"rgba(217,119,87,0.08)",border:"1px solid rgba(217,119,87,0.18)",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:16},children:b.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"var(--primary)",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}),b.jsx("div",{style:{fontSize:15,fontWeight:500,marginBottom:6,color:"var(--text)"},children:"开始对话"}),b.jsx("div",{style:{fontSize:13},children:"问问题,或发送一张截图让 AI 分析"})]}):t.map(S=>{var A;return b.jsxs("div",{style:{display:"flex",justifyContent:S.role==="user"?"flex-end":"flex-start",marginBottom:20,alignItems:"flex-start"},children:[S.role==="ai"&&b.jsx(YY,{}),b.jsxs("div",{style:{maxWidth:"74%"},children:[S.thinking&&b.jsx(VY,{text:S.thinking}),(A=S.images)==null?void 0:A.map((N,z)=>b.jsx("img",{src:`data:${N.mediaType};base64,${N.data}`,alt:"上传图片",style:{maxWidth:"100%",maxHeight:240,borderRadius:8,marginBottom:6,display:"block",border:"1px solid var(--border)"}},z)),b.jsx("div",{style:{padding:"10px 14px",borderRadius:S.role==="user"?"12px 12px 3px 12px":"3px 12px 12px 12px",background:S.role==="user"?"var(--primary)":S.error?"rgba(220,38,38,0.06)":"var(--bg)",color:S.role==="user"?"#fff":S.error?"#dc2626":"var(--text)",fontSize:14,lineHeight:1.7,wordBreak:"break-word",border:S.role==="ai"?`1px solid ${S.error?"rgba(220,38,38,0.18)":"var(--border)"}`:"none",display:!S.content&&S.streaming?"none":void 0},children:S.role==="ai"&&!S.error?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"markdown-body",style:{all:"unset",display:"block",fontSize:14,lineHeight:1.7,color:"inherit"},dangerouslySetInnerHTML:{__html:S.content?HY(S.content):""}}),S.streaming&&b.jsx("span",{style:{display:"inline-block",width:2,height:"1em",background:"var(--primary)",marginLeft:2,verticalAlign:"text-bottom",animation:"blink .6s step-end infinite"}})]}):b.jsx("span",{style:{whiteSpace:"pre-wrap"},children:S.content})}),S.time&&!S.streaming&&b.jsx("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:4,textAlign:S.role==="user"?"right":"left"},children:S.time})]}),S.role==="user"&&b.jsx(GY,{initial:g})]},S.id)}),b.jsx("div",{ref:c})]}),a.length>0&&b.jsx("div",{style:{display:"flex",gap:8,marginBottom:8,flexWrap:"wrap"},children:a.map((S,A)=>b.jsxs("div",{style:{position:"relative"},children:[b.jsx("img",{src:`data:${S.mediaType};base64,${S.data}`,alt:"",style:{width:64,height:64,objectFit:"cover",borderRadius:6,border:"1px solid var(--border)"}}),b.jsx("button",{onClick:()=>s(N=>N.filter((z,P)=>P!==A)),style:{position:"absolute",top:-6,right:-6,width:18,height:18,borderRadius:"50%",border:"none",background:"var(--text)",color:"var(--bg)",cursor:"pointer",fontSize:10,display:"flex",alignItems:"center",justifyContent:"center"},children:"×"})]},A))}),b.jsxs("div",{style:{flexShrink:0,background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)",padding:"10px 12px",display:"flex",alignItems:"flex-end",gap:8},children:[b.jsx("input",{ref:u,type:"file",accept:"image/*",multiple:!0,style:{display:"none"},onChange:k}),b.jsx("button",{onClick:()=>{var S;return(S=u.current)==null?void 0:S.click()},style:{flexShrink:0,width:32,height:32,borderRadius:7,border:"1px solid var(--border)",background:"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-secondary)"},title:"上传图片(支持试卷截图)",children:b.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),b.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),b.jsx("polyline",{points:"21 15 16 10 5 21"})]})}),b.jsx("textarea",{ref:h,value:i,onChange:S=>n(S.target.value),onKeyDown:y,onPaste:T,placeholder:"输入消息,或粘贴/上传图片…",disabled:o,rows:1,style:{flex:1,border:"none",outline:"none",resize:"none",background:"transparent",fontSize:14,lineHeight:1.6,color:"var(--text)",fontFamily:"inherit",padding:"2px 0",maxHeight:160,overflowY:"auto",opacity:o?.5:1},onInput:S=>{const A=S.currentTarget;A.style.height="auto",A.style.height=Math.min(A.scrollHeight,160)+"px"}}),o?b.jsx("button",{onClick:_,title:"停止",style:{flexShrink:0,width:32,height:32,borderRadius:7,border:"1px solid var(--border)",background:"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-secondary)"},children:b.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"currentColor",children:b.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"})})}):b.jsx("button",{onClick:m,disabled:!i.trim()&&a.length===0,style:{flexShrink:0,width:32,height:32,borderRadius:7,border:"none",background:i.trim()||a.length>0?"var(--primary)":"var(--bg-secondary)",cursor:i.trim()||a.length>0?"pointer":"default",display:"flex",alignItems:"center",justifyContent:"center",color:i.trim()||a.length>0?"#fff":"var(--text-muted)",transition:"all .12s"},children:b.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),b.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]})]})}function XY(){return b.jsx("div",{style:{height:"100vh",background:"var(--bg)"},children:b.jsx(G2,{minimal:!0})})}function QY(){return b.jsx("div",{style:{height:"100vh",background:"var(--bg)"},children:b.jsx(G2,{minimal:!0})})}function KY({onLogin:e}){const[t,r]=W.useState(""),[i,n]=W.useState(""),[a,s]=W.useState(!1);async function o(l){if(l.preventDefault(),!t.trim()){n("请输入访问码");return}n(""),s(!0);try{const c=await Y0.login(t.trim());c.success?(localStorage.setItem("syncToken",t.trim()),e()):n(c.error||"访问码错误")}finally{s(!1)}}return b.jsx("div",{style:{minHeight:"100vh",background:"var(--bg)",display:"flex",alignItems:"center",justifyContent:"center",padding:24},children:b.jsxs("div",{style:{width:"100%",maxWidth:400,background:"#fff",border:"1px solid var(--border)",borderTop:"3px solid var(--primary)",borderRadius:12,padding:"40px 40px 36px"},children:[b.jsxs("div",{style:{marginBottom:28},children:[b.jsx("div",{style:{fontSize:20,fontWeight:700,color:"var(--text)",letterSpacing:"-0.01em"},children:"PersonalAC"}),b.jsx("div",{style:{fontSize:13,color:"var(--text-muted)",marginTop:4},children:"v1.3"})]}),i&&b.jsx("div",{className:"alert alert-error",style:{marginBottom:20},children:i}),b.jsxs("form",{onSubmit:o,children:[b.jsxs("div",{className:"form-group",style:{marginBottom:24},children:[b.jsx("label",{htmlFor:"token-input",style:{fontWeight:600},children:"访问码"}),b.jsx("input",{id:"token-input",className:"form-control",type:"password",value:t,onChange:l=>r(l.target.value),placeholder:"启动时终端显示的访问码",autoFocus:!0,autoComplete:"current-password",style:{fontFamily:"monospace",letterSpacing:"0.04em"}}),b.jsxs("div",{style:{fontSize:12,color:"var(--text-muted)",marginTop:6},children:["运行 ",b.jsx("code",{style:{background:"var(--bg-secondary)",padding:"1px 5px",borderRadius:4},children:"personalac token"})," 查看访问码"]})]}),b.jsx("button",{type:"submit",disabled:a||!t.trim(),className:"btn btn-primary",style:{width:"100%",justifyContent:"center",padding:"11px 0"},children:a?"验证中…":"登录"})]})]})})}const ZY=["小学低年级","小学高年级","初一","初二","初三","高一","高二","高三","大学","其他"],JY={初一:["语文","数学","英语","历史","地理","生物"],初二:["语文","数学","英语","物理","历史","地理","生物"],初三:["语文","数学","英语","物理","化学","历史","地理","生物","政治"],高一:["语文","数学","英语","物理","化学","生物","历史","地理","政治"],高二:["语文","数学","英语","物理","化学","生物","历史","地理","政治"],高三:["语文","数学","英语","物理","化学","生物","历史","地理","政治"],大学:["高数","线性代数","概率论","英语","编程","专业课"]},tG=["语文","数学","英语","物理","化学"];function ap({children:e}){return b.jsx("div",{style:{minHeight:"100vh",background:"var(--bg)",display:"flex",alignItems:"center",justifyContent:"center",padding:24},children:b.jsx("div",{style:{width:"100%",maxWidth:480,background:"#fff",border:"1px solid var(--border)",borderTop:"3px solid var(--primary)",borderRadius:12,padding:"40px 40px 36px"},children:e})})}function eG({onDone:e}){const[t,r]=W.useState("guardian"),[i,n]=W.useState(""),[a,s]=W.useState(""),[o,l]=W.useState(""),[c,h]=W.useState([]),[u,f]=W.useState(""),[d,g]=W.useState(null),[p,m]=W.useState(!1),[y,x]=W.useState(!1),[k,T]=W.useState(""),_=JY[o]??tG;function M(z){h(P=>P.includes(z)?P.filter(U=>U!==z):[...P,z])}async function S(){if(!i.trim()){T("请填写你的称呼");return}x(!0),T("");const z=await Y0.setup(i.trim());x(!1),z.success?r("student"):T(z.error||"保存失败")}async function A(){if(!a.trim()){T("请填写学生姓名");return}x(!0),T("");const z=[...c,...u.split(/[,,、\s]+/).map(U=>U.trim()).filter(Boolean)],P=await Y0.createStudent(a.trim(),o||void 0,z.length?z:void 0);x(!1),P.success&&P.data?(g(P.data),r("token")):T(P.error||"创建失败")}function N(){d&&navigator.clipboard.writeText(d.token).then(()=>{m(!0),setTimeout(()=>m(!1),2e3)})}return t==="guardian"?b.jsxs(ap,{children:[b.jsxs("div",{style:{marginBottom:28},children:[b.jsx("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:8},children:"初始配置 1/2"}),b.jsx("h2",{style:{margin:"0 0 8px",fontSize:20,fontWeight:700,color:"var(--text)"},children:"你的称呼"}),b.jsx("p",{style:{margin:0,fontSize:13,color:"var(--text-secondary)",lineHeight:1.6},children:"你是监护人,AI 会用这个称呼和你对话。"})]}),b.jsxs("div",{className:"form-group",style:{marginBottom:24},children:[b.jsx("label",{style:{fontWeight:600},children:"称呼"}),b.jsx("input",{className:"form-control",type:"text",placeholder:"例如:张爸爸、李妈妈",value:i,onChange:z=>n(z.target.value),onKeyDown:z=>z.key==="Enter"&&S(),autoFocus:!0})]}),k&&b.jsx("div",{className:"alert alert-error",style:{marginBottom:16},children:k}),b.jsx("button",{className:"btn btn-primary",onClick:S,disabled:y||!i.trim(),style:{width:"100%",justifyContent:"center"},children:y?"保存中…":"下一步"})]}):t==="student"?b.jsxs(ap,{children:[b.jsxs("div",{style:{marginBottom:24},children:[b.jsx("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:8},children:"初始配置 2/2"}),b.jsx("h2",{style:{margin:"0 0 8px",fontSize:20,fontWeight:700,color:"var(--text)"},children:"添加学生账户"}),b.jsx("p",{style:{margin:0,fontSize:13,color:"var(--text-secondary)",lineHeight:1.6},children:"系统会生成一个访问码,把它发给学生即可登录。"})]}),b.jsxs("div",{className:"form-group",style:{marginBottom:16},children:[b.jsx("label",{style:{fontWeight:600},children:"学生姓名"}),b.jsx("input",{className:"form-control",type:"text",placeholder:"例如:小明",value:a,onChange:z=>s(z.target.value),autoFocus:!0})]}),b.jsxs("div",{className:"form-group",style:{marginBottom:16},children:[b.jsxs("label",{style:{fontWeight:600},children:["年级 ",b.jsx("span",{style:{fontWeight:400,color:"var(--text-muted)"},children:"(可选)"})]}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:7,marginTop:6},children:ZY.map(z=>b.jsx("button",{onClick:()=>l(o===z?"":z),style:{padding:"4px 12px",borderRadius:20,fontSize:13,cursor:"pointer",border:`1px solid ${o===z?"var(--primary)":"var(--border)"}`,background:o===z?"rgba(217,119,87,0.08)":"transparent",color:o===z?"var(--primary)":"var(--text-secondary)",fontWeight:o===z?600:400},children:z},z))})]}),b.jsxs("div",{className:"form-group",style:{marginBottom:20},children:[b.jsxs("label",{style:{fontWeight:600},children:["学习科目 ",b.jsx("span",{style:{fontWeight:400,color:"var(--text-muted)"},children:"(可选)"})]}),b.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:7,margin:"6px 0 10px"},children:_.map(z=>b.jsx("button",{onClick:()=>M(z),style:{padding:"4px 12px",borderRadius:20,fontSize:13,cursor:"pointer",border:`1px solid ${c.includes(z)?"var(--primary)":"var(--border)"}`,background:c.includes(z)?"rgba(217,119,87,0.08)":"transparent",color:c.includes(z)?"var(--primary)":"var(--text-secondary)",fontWeight:c.includes(z)?600:400},children:z},z))}),b.jsx("input",{className:"form-control",type:"text",placeholder:"其他科目(逗号分隔)",value:u,onChange:z=>f(z.target.value)})]}),k&&b.jsx("div",{className:"alert alert-error",style:{marginBottom:16},children:k}),b.jsxs("div",{style:{display:"flex",gap:10},children:[b.jsx("button",{className:"btn",onClick:()=>r("guardian"),style:{flex:1,justifyContent:"center"},children:"返回"}),b.jsx("button",{className:"btn btn-primary",onClick:A,disabled:y||!a.trim(),style:{flex:2,justifyContent:"center"},children:y?"创建中…":"创建学生账户"})]})]}):b.jsxs(ap,{children:[b.jsxs("div",{style:{marginBottom:28},children:[b.jsx("h2",{style:{margin:"0 0 8px",fontSize:20,fontWeight:700,color:"var(--text)"},children:"学生访问码"}),b.jsxs("p",{style:{margin:0,fontSize:13,color:"var(--text-secondary)",lineHeight:1.6},children:["把下面的访问码发给 ",b.jsx("strong",{children:d==null?void 0:d.name}),",让他/她用这个码登录同一个网址。学生登录后只有聊天界面。"]})]}),b.jsxs("div",{style:{background:"var(--bg-secondary)",border:"1px solid var(--border)",borderRadius:8,padding:"16px 18px",marginBottom:16},children:[b.jsx("div",{style:{fontSize:11,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:8},children:"学生访问码"}),b.jsx("div",{style:{fontFamily:"monospace",fontSize:14,color:"var(--text)",wordBreak:"break-all",lineHeight:1.6},children:d==null?void 0:d.token})]}),b.jsx("button",{className:"btn",onClick:N,style:{width:"100%",justifyContent:"center",marginBottom:12},children:p?"已复制":"复制访问码"}),b.jsx("div",{style:{fontSize:12,color:"var(--text-muted)",marginBottom:24,lineHeight:1.6},children:"访问码可在设置页面重置。监护人可以在设置页面继续添加更多学生。"}),b.jsx("button",{className:"btn btn-primary",onClick:e,style:{width:"100%",justifyContent:"center"},children:"进入系统"})]})}function f5({name:e,size:t=15}){const r={fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"};return{dashboard:b.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:[b.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),b.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),b.jsx("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"}),b.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"})]}),chat:b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:b.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),plans:b.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:[b.jsx("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),b.jsx("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]}),logs:b.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:[b.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),b.jsx("polyline",{points:"14 2 14 8 20 8"}),b.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),b.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]}),tasks:b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:b.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),config:b.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),logout:b.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",...r,children:[b.jsx("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),b.jsx("polyline",{points:"16 17 21 12 16 7"}),b.jsx("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}[e]??b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24"})}const rG=[{path:"/",label:"仪表盘",icon:"dashboard"},{path:"/chat",label:"AI 对话",icon:"chat"},{path:"/plans",label:"学习方向",icon:"plans"},{path:"/agent-logs",label:"Agent 日志",icon:"logs"},{path:"/agent-tasks",label:"主动任务",icon:"tasks"},{path:"/config",label:"系统配置",icon:"config"}];function As({children:e}){const t=Wo(),r=localStorage.getItem("username")||"superadmin",i=r.charAt(0).toUpperCase(),n=()=>{localStorage.removeItem("syncToken"),localStorage.removeItem("username"),window.location.href="/"};return b.jsxs("div",{style:{display:"flex",minHeight:"100vh"},children:[b.jsxs("aside",{style:{width:216,background:"var(--sidebar-bg)",display:"flex",flexDirection:"column",flexShrink:0,borderRight:"1px solid var(--sidebar-border)"},children:[b.jsxs("div",{style:{padding:"18px 16px 14px",borderBottom:"1px solid var(--sidebar-border)"},children:[b.jsx("div",{style:{fontSize:15,fontWeight:700,color:"var(--sidebar-text-active)",letterSpacing:"-0.01em"},children:"PersonalAC"}),b.jsx("div",{style:{fontSize:11,color:"var(--sidebar-accent)",marginTop:2,opacity:.8},children:"v1.3"})]}),b.jsxs("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--sidebar-border)",display:"flex",alignItems:"center",gap:9},children:[b.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(217,119,87,0.2)",border:"1px solid rgba(217,119,87,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,fontWeight:700,color:"var(--sidebar-accent)",flexShrink:0},children:i}),b.jsxs("div",{style:{overflow:"hidden",minWidth:0},children:[b.jsx("div",{style:{fontSize:12.5,fontWeight:500,color:"var(--sidebar-text-active)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r}),b.jsx("div",{style:{fontSize:10.5,color:"var(--sidebar-text)",marginTop:1},children:"superadmin"})]})]}),b.jsx("nav",{style:{flex:1,padding:"6px 0"},children:rG.map(a=>{const s=a.path==="/"?t.pathname==="/":t.pathname.startsWith(a.path);return b.jsxs(Es,{to:a.path,className:`nav-link${s?" active":""}`,children:[b.jsx("span",{className:"nav-icon",children:b.jsx(f5,{name:a.icon,size:15})}),b.jsx("span",{children:a.label})]},a.path)})}),b.jsx("div",{style:{borderTop:"1px solid var(--sidebar-border)",paddingTop:4},children:b.jsxs("button",{className:"sidebar-logout",onClick:n,children:[b.jsx("span",{style:{opacity:.6,display:"flex",alignItems:"center"},children:b.jsx(f5,{name:"logout",size:14})}),b.jsx("span",{children:"退出登录"})]})})]}),b.jsx("main",{style:{flex:1,overflow:"auto",background:"var(--bg)",padding:"30px 36px"},children:e})]})}function iG(){const[e,t]=W.useState("loading");async function r(){if(!localStorage.getItem("syncToken")){t("login");return}const n=await Y0.me();if(!n.success||!n.data){t("login");return}const a=n.data;gL(),a.role==="student"?t("student"):a.displayName?t("guardian"):t("setup")}return W.useEffect(()=>{r()},[]),e==="loading"?b.jsx("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--bg)"},children:b.jsx("div",{style:{color:"var(--text-muted)",fontSize:14},children:"加载中…"})}):e==="login"?b.jsx(KY,{onLogin:()=>r()}):e==="setup"?b.jsx(eG,{onDone:()=>r()}):e==="student"?b.jsx(QY,{}):b.jsx(hL,{children:b.jsxs(iL,{children:[b.jsx(en,{path:"/",element:b.jsx(As,{children:b.jsx(vL,{})})}),b.jsx(en,{path:"/chat",element:b.jsx(As,{children:b.jsx(G2,{})})}),b.jsx(en,{path:"/plans",element:b.jsx(As,{children:b.jsx(CL,{})})}),b.jsx(en,{path:"/agent-logs",element:b.jsx(As,{children:b.jsx(LL,{})})}),b.jsx(en,{path:"/agent-tasks",element:b.jsx(As,{children:b.jsx(WY,{})})}),b.jsx(en,{path:"/config",element:b.jsx(As,{children:b.jsx(kL,{})})}),b.jsx(en,{path:"/quick",element:b.jsx(XY,{})}),b.jsx(en,{path:"*",element:b.jsx(eL,{to:"/",replace:!0})})]})})}const T9=document.getElementById("root");if(!T9)throw new Error("Root element not found");sp.createRoot(T9).render(b.jsx(T5.StrictMode,{children:b.jsx(iG,{})}));export{CC as $,cG as A,na as B,KE as C,de as D,FF as E,L2 as F,hC as G,lN as H,uD as I,yR as J,DM as K,Cc as L,oG as M,Ad as N,dF as O,vC as P,A4 as Q,rD as R,$1 as S,oN as T,Hc as U,Ti as V,X as W,G as X,bF as Y,JP as Z,C as _,_F as a,kP as a$,Zz as a0,X4 as a1,V4 as a2,xG as a3,fG as a4,mG as a5,gG as a6,uG as a7,s2 as a8,yG as a9,kq as aA,Cq as aB,Tj as aC,tC as aD,Jz as aE,sG as aF,Ld as aG,Tu as aH,d8 as aI,R9 as aJ,p5 as aK,Zc as aL,wj as aM,kj as aN,r2 as aO,Pn as aP,Sc as aQ,q4 as aR,FI as aS,BP as aT,h8 as aU,i8 as aV,MO as aW,ku as aX,FO as aY,Qc as aZ,za as a_,dG as aa,_s as ab,bG as ac,vG as ad,pG as ae,Qj as af,wS as ag,EG as ah,vR as ai,xr as aj,Bn as ak,pl as al,A2 as am,x8 as an,as as ao,k8 as ap,Mt as aq,ji as ar,pt as as,Zq as at,AG as au,MG as av,BG as aw,xt as ax,LG as ay,Bq as az,TF as b,pv as b0,fs as b1,$O as b2,C2 as b3,EO as b4,DO as b5,Xo as b6,_P as b7,XP as b8,jO as b9,ka as bA,cv as bB,k2 as bC,a8 as bD,gg as bE,aG as bF,Pt as bG,qP as ba,v2 as bb,a5 as bc,yt as bd,w8 as be,Er as bf,TI as bg,e2 as bh,zC as bi,Gc as bj,OC as bk,hG as bl,QE as bm,VP as bn,jP as bo,QP as bp,Sd as bq,LO as br,b2 as bs,c8 as bt,ZP as bu,Vo as bv,$P as bw,CW as bx,Xc as by,Su as bz,qt as c,zt as d,bC as e,$e as f,LF as g,bn as h,Si as i,bR as j,Uc as k,Z as l,b8 as m,lG as n,$G as o,AF as p,EF as q,FG as r,BF as s,xR as t,xi as u,mq as v,uN as w,CG as x,Eo as y,SF as z};
|