@dayinxisheng/zreadbrow 1.0.4 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/assets/{_baseUniq-OYZggmI7.js → _baseUniq-CPDoE7er.js} +1 -1
- package/dist/public/assets/{arc-Do70yPZY.js → arc-BbhTxmcy.js} +1 -1
- package/dist/public/assets/{architectureDiagram-Q4EWVU46-DtjK6LfO.js → architectureDiagram-Q4EWVU46-CU_-Npf-.js} +1 -1
- package/dist/public/assets/{blockDiagram-DXYQGD6D-D-J4AWOc.js → blockDiagram-DXYQGD6D-fpH-DE-6.js} +1 -1
- package/dist/public/assets/{c4Diagram-AHTNJAMY-C2svHtHd.js → c4Diagram-AHTNJAMY-DHtUllaa.js} +1 -1
- package/dist/public/assets/channel-DWAnss0H.js +1 -0
- package/dist/public/assets/{chunk-4BX2VUAB-BxQLfhjk.js → chunk-4BX2VUAB-FepST6MX.js} +1 -1
- package/dist/public/assets/{chunk-4TB4RGXK-D1IJMxxZ.js → chunk-4TB4RGXK-BxPnK-Cm.js} +1 -1
- package/dist/public/assets/{chunk-55IACEB6-CbeuowJC.js → chunk-55IACEB6-DqdoFdZ3.js} +1 -1
- package/dist/public/assets/{chunk-EDXVE4YY-gq6Rm2e9.js → chunk-EDXVE4YY-R75awyzx.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-Dskli35B.js → chunk-FMBD7UC4-D5SsROPY.js} +1 -1
- package/dist/public/assets/{chunk-OYMX7WX6-CtMIqPYA.js → chunk-OYMX7WX6-DOyOS6kd.js} +1 -1
- package/dist/public/assets/{chunk-QZHKN3VN-BZvIyYlc.js → chunk-QZHKN3VN-DdX-8bfz.js} +1 -1
- package/dist/public/assets/{chunk-YZCP3GAM-Bq3cYA_3.js → chunk-YZCP3GAM-2u6FkhaN.js} +1 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-BpechaYv.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-BpechaYv.js +1 -0
- package/dist/public/assets/clone-BlECVuK6.js +1 -0
- package/dist/public/assets/{cose-bilkent-S5V4N54A-DyKcM_Ft.js → cose-bilkent-S5V4N54A-C9WrFkX6.js} +1 -1
- package/dist/public/assets/{dagre-KV5264BT-CqqZAnfi.js → dagre-KV5264BT-CsiBELor.js} +1 -1
- package/dist/public/assets/{diagram-5BDNPKRD-Cy3V7bcG.js → diagram-5BDNPKRD-BJdSOPb0.js} +1 -1
- package/dist/public/assets/{diagram-G4DWMVQ6-DUtdWbLg.js → diagram-G4DWMVQ6-D1__2nn4.js} +1 -1
- package/dist/public/assets/{diagram-MMDJMWI5-jNH5iO6v.js → diagram-MMDJMWI5-D5TZZBIo.js} +1 -1
- package/dist/public/assets/{diagram-TYMM5635-BEQMXYiS.js → diagram-TYMM5635-CVKJLdJj.js} +1 -1
- package/dist/public/assets/{erDiagram-SMLLAGMA-BOu00pgZ.js → erDiagram-SMLLAGMA-cc8eUNV5.js} +1 -1
- package/dist/public/assets/{flowDiagram-DWJPFMVM-BAxygbW_.js → flowDiagram-DWJPFMVM-zklMEuvT.js} +1 -1
- package/dist/public/assets/{ganttDiagram-T4ZO3ILL-BDIRknaP.js → ganttDiagram-T4ZO3ILL-DDRsXkg4.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-DpCrvb-c.js → gitGraphDiagram-UUTBAWPF-B-9XFdIx.js} +1 -1
- package/dist/public/assets/{graph-CRle1L2w.js → graph-CT-9-Yxv.js} +1 -1
- package/dist/public/assets/index-CajJGCnJ.js +384 -0
- package/dist/public/assets/index-J4Mhhrjp.css +1 -0
- package/dist/public/assets/{infoDiagram-42DDH7IO-DSZsO32C.js → infoDiagram-42DDH7IO-CuGRK3Rs.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-wLXQ-0kc.js → ishikawaDiagram-UXIWVN3A-8Yce7SbN.js} +1 -1
- package/dist/public/assets/{journeyDiagram-VCZTEJTY-D6ybPNfZ.js → journeyDiagram-VCZTEJTY-CZ3Rabre.js} +1 -1
- package/dist/public/assets/{kanban-definition-6JOO6SKY-B47ibwqw.js → kanban-definition-6JOO6SKY-BMn0cvU6.js} +1 -1
- package/dist/public/assets/{layout-BfPAQzhB.js → layout-BE_tpkNg.js} +1 -1
- package/dist/public/assets/{linear-BYSRnc6z.js → linear-BMHNcSPe.js} +1 -1
- package/dist/public/assets/{min-DUZc6_qu.js → min-DwUXZ4Bb.js} +1 -1
- package/dist/public/assets/{mindmap-definition-QFDTVHPH-Byg9EDEf.js → mindmap-definition-QFDTVHPH-D0zbBATS.js} +1 -1
- package/dist/public/assets/{pieDiagram-DEJITSTG-BaO4djdd.js → pieDiagram-DEJITSTG-DYrHyPT2.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-34T5L4WZ-DjOVuL9Z.js → quadrantDiagram-34T5L4WZ-C1LMCM9T.js} +1 -1
- package/dist/public/assets/{requirementDiagram-MS252O5E-qy4lP90H.js → requirementDiagram-MS252O5E-DrvV-AW9.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-XADWPNL6-OpfFStE8.js → sankeyDiagram-XADWPNL6-BnK8Hrsk.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-FGHM5R23-BfLktgJr.js → sequenceDiagram-FGHM5R23-BEicEP4j.js} +1 -1
- package/dist/public/assets/{stateDiagram-FHFEXIEX-CEA-RrVC.js → stateDiagram-FHFEXIEX-BmfbYS3C.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-DiwaHt21.js +1 -0
- package/dist/public/assets/{timeline-definition-GMOUNBTQ-DiPD59I4.js → timeline-definition-GMOUNBTQ-D2wzBWb4.js} +1 -1
- package/dist/public/assets/{vennDiagram-DHZGUBPP-DSCxAvb_.js → vennDiagram-DHZGUBPP-zHzYpF8t.js} +1 -1
- package/dist/public/assets/{wardley-RL74JXVD-CFZO0XVm.js → wardley-RL74JXVD-g6-nQiS2.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-NUSXRM2D-BWa8t8o-.js → wardleyDiagram-NUSXRM2D-DKk8z2ft.js} +1 -1
- package/dist/public/assets/{xychartDiagram-5P7HB3ND-ZplCit9D.js → xychartDiagram-5P7HB3ND-B2NjqqEU.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/server/index.js +1 -1
- package/dist/server/middleware/errorHandler.js +1 -1
- package/dist/server/routes/config.js +1 -1
- package/dist/server/routes/files.js +1 -1
- package/dist/server/routes/projects.js +1 -1
- package/dist/server/routes/scan.js +1 -1
- package/dist/server/routes/search.js +1 -1
- package/dist/server/routes/wiki.js +1 -1
- package/dist/server/services/config.js +1 -1
- package/dist/server/services/scanner.js +1 -1
- package/dist/server/services/search.js +1 -1
- package/dist/server/services/wiki-loader.js +1 -1
- package/package.json +6 -1
- package/dist/public/assets/channel-hPiJ7w5T.js +0 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-3O1DCKVl.js +0 -1
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-3O1DCKVl.js +0 -1
- package/dist/public/assets/clone-UzahnEK0.js +0 -1
- package/dist/public/assets/index-BlXRYVPH.js +0 -377
- package/dist/public/assets/index-DytBrat0.css +0 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-QjCaGLFg.js +0 -1
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-CsiBELor.js","assets/graph-CT-9-Yxv.js","assets/_baseUniq-CPDoE7er.js","assets/layout-BE_tpkNg.js","assets/min-DwUXZ4Bb.js","assets/clone-BlECVuK6.js","assets/cose-bilkent-S5V4N54A-C9WrFkX6.js","assets/cytoscape.esm-DxGcaOPV.js","assets/c4Diagram-AHTNJAMY-DHtUllaa.js","assets/chunk-YZCP3GAM-2u6FkhaN.js","assets/flowDiagram-DWJPFMVM-zklMEuvT.js","assets/chunk-FMBD7UC4-D5SsROPY.js","assets/chunk-55IACEB6-DqdoFdZ3.js","assets/chunk-EDXVE4YY-R75awyzx.js","assets/channel-DWAnss0H.js","assets/erDiagram-SMLLAGMA-cc8eUNV5.js","assets/gitGraphDiagram-UUTBAWPF-B-9XFdIx.js","assets/chunk-4BX2VUAB-FepST6MX.js","assets/chunk-QZHKN3VN-DdX-8bfz.js","assets/wardley-RL74JXVD-g6-nQiS2.js","assets/ganttDiagram-T4ZO3ILL-DDRsXkg4.js","assets/linear-BMHNcSPe.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-CuGRK3Rs.js","assets/pieDiagram-DEJITSTG-DYrHyPT2.js","assets/arc-BbhTxmcy.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-C1LMCM9T.js","assets/xychartDiagram-5P7HB3ND-B2NjqqEU.js","assets/requirementDiagram-MS252O5E-DrvV-AW9.js","assets/sequenceDiagram-FGHM5R23-BEicEP4j.js","assets/classDiagram-6PBFFD2Q-BpechaYv.js","assets/chunk-4TB4RGXK-BxPnK-Cm.js","assets/classDiagram-v2-HSJHXN6E-BpechaYv.js","assets/stateDiagram-FHFEXIEX-BmfbYS3C.js","assets/chunk-OYMX7WX6-DOyOS6kd.js","assets/stateDiagram-v2-QKLJ7IA2-DiwaHt21.js","assets/journeyDiagram-VCZTEJTY-CZ3Rabre.js","assets/timeline-definition-GMOUNBTQ-D2wzBWb4.js","assets/mindmap-definition-QFDTVHPH-D0zbBATS.js","assets/kanban-definition-6JOO6SKY-BMn0cvU6.js","assets/sankeyDiagram-XADWPNL6-BnK8Hrsk.js","assets/diagram-TYMM5635-CVKJLdJj.js","assets/diagram-MMDJMWI5-D5TZZBIo.js","assets/blockDiagram-DXYQGD6D-fpH-DE-6.js","assets/diagram-5BDNPKRD-BJdSOPb0.js","assets/architectureDiagram-Q4EWVU46-CU_-Npf-.js","assets/diagram-G4DWMVQ6-D1__2nn4.js","assets/wardleyDiagram-NUSXRM2D-DKk8z2ft.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var wE=Object.defineProperty;var SE=(e,t,r)=>t in e?wE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fe=(e,t,r)=>SE(e,typeof t!="symbol"?t+"":t,r);(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 s of n)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function r(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=r(n);fetch(n.href,s)}})();function Kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GU(e){if(Object.prototype.hasOwnProperty.call(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 Kf={exports:{}},Ja={},Zf={exports:{}},Zt={};/**
|
|
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 Zx;function TE(){if(Zx)return Zt;Zx=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;function m(z){return z===null||typeof z!="object"?null:(z=p&&z[p]||z["@@iterator"],typeof z=="function"?z:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function k(z,tt,D){this.props=z,this.context=tt,this.refs=C,this.updater=D||g}k.prototype.isReactComponent={},k.prototype.setState=function(z,tt){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,tt,"setState")},k.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function w(){}w.prototype=k.prototype;function T(z,tt,D){this.props=z,this.context=tt,this.refs=C,this.updater=D||g}var _=T.prototype=new w;_.constructor=T,x(_,k.prototype),_.isPureReactComponent=!0;var P=Array.isArray,O=Object.prototype.hasOwnProperty,F={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function q(z,tt,D){var mt,ft={},Ct=null,Dt=null;if(tt!=null)for(mt in tt.ref!==void 0&&(Dt=tt.ref),tt.key!==void 0&&(Ct=""+tt.key),tt)O.call(tt,mt)&&!A.hasOwnProperty(mt)&&(ft[mt]=tt[mt]);var At=arguments.length-2;if(At===1)ft.children=D;else if(1<At){for(var Yt=Array(At),yt=0;yt<At;yt++)Yt[yt]=arguments[yt+2];ft.children=Yt}if(z&&z.defaultProps)for(mt in At=z.defaultProps,At)ft[mt]===void 0&&(ft[mt]=At[mt]);return{$$typeof:e,type:z,key:Ct,ref:Dt,props:ft,_owner:F.current}}function et(z,tt){return{$$typeof:e,type:z.type,key:tt,ref:z.ref,props:z.props,_owner:z._owner}}function I(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function N(z){var tt={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(D){return tt[D]})}var J=/\/+/g;function nt(z,tt){return typeof z=="object"&&z!==null&&z.key!=null?N(""+z.key):tt.toString(36)}function V(z,tt,D,mt,ft){var Ct=typeof z;(Ct==="undefined"||Ct==="boolean")&&(z=null);var Dt=!1;if(z===null)Dt=!0;else switch(Ct){case"string":case"number":Dt=!0;break;case"object":switch(z.$$typeof){case e:case t:Dt=!0}}if(Dt)return Dt=z,ft=ft(Dt),z=mt===""?"."+nt(Dt,0):mt,P(ft)?(D="",z!=null&&(D=z.replace(J,"$&/")+"/"),V(ft,tt,D,"",function(yt){return yt})):ft!=null&&(I(ft)&&(ft=et(ft,D+(!ft.key||Dt&&Dt.key===ft.key?"":(""+ft.key).replace(J,"$&/")+"/")+z)),tt.push(ft)),1;if(Dt=0,mt=mt===""?".":mt+":",P(z))for(var At=0;At<z.length;At++){Ct=z[At];var Yt=mt+nt(Ct,At);Dt+=V(Ct,tt,D,Yt,ft)}else if(Yt=m(z),typeof Yt=="function")for(z=Yt.call(z),At=0;!(Ct=z.next()).done;)Ct=Ct.value,Yt=mt+nt(Ct,At++),Dt+=V(Ct,tt,D,Yt,ft);else if(Ct==="object")throw tt=String(z),Error("Objects are not valid as a React child (found: "+(tt==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":tt)+"). If you meant to render a collection of children, use an array instead.");return Dt}function j(z,tt,D){if(z==null)return z;var mt=[],ft=0;return V(z,mt,"","",function(Ct){return tt.call(D,Ct,ft++)}),mt}function W(z){if(z._status===-1){var tt=z._result;tt=tt(),tt.then(function(D){(z._status===0||z._status===-1)&&(z._status=1,z._result=D)},function(D){(z._status===0||z._status===-1)&&(z._status=2,z._result=D)}),z._status===-1&&(z._status=0,z._result=tt)}if(z._status===1)return z._result.default;throw z._result}var G={current:null},R={transition:null},K={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:R,ReactCurrentOwner:F};function M(){throw Error("act(...) is not supported in production builds of React.")}return Zt.Children={map:j,forEach:function(z,tt,D){j(z,function(){tt.apply(this,arguments)},D)},count:function(z){var tt=0;return j(z,function(){tt++}),tt},toArray:function(z){return j(z,function(tt){return tt})||[]},only:function(z){if(!I(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Zt.Component=k,Zt.Fragment=r,Zt.Profiler=n,Zt.PureComponent=T,Zt.StrictMode=i,Zt.Suspense=h,Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Zt.act=M,Zt.cloneElement=function(z,tt,D){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var mt=x({},z.props),ft=z.key,Ct=z.ref,Dt=z._owner;if(tt!=null){if(tt.ref!==void 0&&(Ct=tt.ref,Dt=F.current),tt.key!==void 0&&(ft=""+tt.key),z.type&&z.type.defaultProps)var At=z.type.defaultProps;for(Yt in tt)O.call(tt,Yt)&&!A.hasOwnProperty(Yt)&&(mt[Yt]=tt[Yt]===void 0&&At!==void 0?At[Yt]:tt[Yt])}var Yt=arguments.length-2;if(Yt===1)mt.children=D;else if(1<Yt){At=Array(Yt);for(var yt=0;yt<Yt;yt++)At[yt]=arguments[yt+2];mt.children=At}return{$$typeof:e,type:z.type,key:ft,ref:Ct,props:mt,_owner:Dt}},Zt.createContext=function(z){return z={$$typeof:a,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:s,_context:z},z.Consumer=z},Zt.createElement=q,Zt.createFactory=function(z){var tt=q.bind(null,z);return tt.type=z,tt},Zt.createRef=function(){return{current:null}},Zt.forwardRef=function(z){return{$$typeof:c,render:z}},Zt.isValidElement=I,Zt.lazy=function(z){return{$$typeof:d,_payload:{_status:-1,_result:z},_init:W}},Zt.memo=function(z,tt){return{$$typeof:u,type:z,compare:tt===void 0?null:tt}},Zt.startTransition=function(z){var tt=R.transition;R.transition={};try{z()}finally{R.transition=tt}},Zt.unstable_act=M,Zt.useCallback=function(z,tt){return G.current.useCallback(z,tt)},Zt.useContext=function(z){return G.current.useContext(z)},Zt.useDebugValue=function(){},Zt.useDeferredValue=function(z){return G.current.useDeferredValue(z)},Zt.useEffect=function(z,tt){return G.current.useEffect(z,tt)},Zt.useId=function(){return G.current.useId()},Zt.useImperativeHandle=function(z,tt,D){return G.current.useImperativeHandle(z,tt,D)},Zt.useInsertionEffect=function(z,tt){return G.current.useInsertionEffect(z,tt)},Zt.useLayoutEffect=function(z,tt){return G.current.useLayoutEffect(z,tt)},Zt.useMemo=function(z,tt){return G.current.useMemo(z,tt)},Zt.useReducer=function(z,tt,D){return G.current.useReducer(z,tt,D)},Zt.useRef=function(z){return G.current.useRef(z)},Zt.useState=function(z){return G.current.useState(z)},Zt.useSyncExternalStore=function(z,tt,D){return G.current.useSyncExternalStore(z,tt,D)},Zt.useTransition=function(){return G.current.useTransition()},Zt.version="18.3.1",Zt}var Jx;function sm(){return Jx||(Jx=1,Zf.exports=TE()),Zf.exports}/**
|
|
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 t1;function _E(){if(t1)return Ja;t1=1;var e=sm(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,h,u){var d,p={},m=null,g=null;u!==void 0&&(m=""+u),h.key!==void 0&&(m=""+h.key),h.ref!==void 0&&(g=h.ref);for(d in h)i.call(h,d)&&!s.hasOwnProperty(d)&&(p[d]=h[d]);if(c&&c.defaultProps)for(d in h=c.defaultProps,h)p[d]===void 0&&(p[d]=h[d]);return{$$typeof:t,type:c,key:m,ref:g,props:p,_owner:n.current}}return Ja.Fragment=r,Ja.jsx=a,Ja.jsxs=a,Ja}var e1;function BE(){return e1||(e1=1,Kf.exports=_E()),Kf.exports}var E=BE(),xt=sm();const gn=Kl(xt);var kh={},Jf={exports:{}},Fr={},tp={exports:{}},ep={};/**
|
|
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
|
+
*/var r1;function LE(){return r1||(r1=1,(function(e){function t(R,K){var M=R.length;R.push(K);t:for(;0<M;){var z=M-1>>>1,tt=R[z];if(0<n(tt,K))R[z]=K,R[M]=tt,M=z;else break t}}function r(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var K=R[0],M=R.pop();if(M!==K){R[0]=M;t:for(var z=0,tt=R.length,D=tt>>>1;z<D;){var mt=2*(z+1)-1,ft=R[mt],Ct=mt+1,Dt=R[Ct];if(0>n(ft,M))Ct<tt&&0>n(Dt,ft)?(R[z]=Dt,R[Ct]=M,z=Ct):(R[z]=ft,R[mt]=M,z=mt);else if(Ct<tt&&0>n(Dt,M))R[z]=Dt,R[Ct]=M,z=Ct;else break t}}return K}function n(R,K){var M=R.sortIndex-K.sortIndex;return M!==0?M:R.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var h=[],u=[],d=1,p=null,m=3,g=!1,x=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(R){for(var K=r(u);K!==null;){if(K.callback===null)i(u);else if(K.startTime<=R)i(u),K.sortIndex=K.expirationTime,t(h,K);else break;K=r(u)}}function P(R){if(C=!1,_(R),!x)if(r(h)!==null)x=!0,W(O);else{var K=r(u);K!==null&&G(P,K.startTime-R)}}function O(R,K){x=!1,C&&(C=!1,w(q),q=-1),g=!0;var M=m;try{for(_(K),p=r(h);p!==null&&(!(p.expirationTime>K)||R&&!N());){var z=p.callback;if(typeof z=="function"){p.callback=null,m=p.priorityLevel;var tt=z(p.expirationTime<=K);K=e.unstable_now(),typeof tt=="function"?p.callback=tt:p===r(h)&&i(h),_(K)}else i(h);p=r(h)}if(p!==null)var D=!0;else{var mt=r(u);mt!==null&&G(P,mt.startTime-K),D=!1}return D}finally{p=null,m=M,g=!1}}var F=!1,A=null,q=-1,et=5,I=-1;function N(){return!(e.unstable_now()-I<et)}function J(){if(A!==null){var R=e.unstable_now();I=R;var K=!0;try{K=A(!0,R)}finally{K?nt():(F=!1,A=null)}}else F=!1}var nt;if(typeof T=="function")nt=function(){T(J)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,j=V.port2;V.port1.onmessage=J,nt=function(){j.postMessage(null)}}else nt=function(){k(J,0)};function W(R){A=R,F||(F=!0,nt())}function G(R,K){q=k(function(){R(e.unstable_now())},K)}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(R){R.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,W(O))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):et=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(R){switch(m){case 1:case 2:case 3:var K=3;break;default:K=m}var M=m;m=K;try{return R()}finally{m=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var M=m;m=R;try{return K()}finally{m=M}},e.unstable_scheduleCallback=function(R,K,M){var z=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?z+M:z):M=z,R){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}return tt=M+tt,R={id:d++,callback:K,priorityLevel:R,startTime:M,expirationTime:tt,sortIndex:-1},M>z?(R.sortIndex=M,t(u,R),r(h)===null&&R===r(u)&&(C?(w(q),q=-1):C=!0,G(P,M-z))):(R.sortIndex=tt,t(h,R),x||g||(x=!0,W(O))),R},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(R){var K=m;return function(){var M=m;m=K;try{return R.apply(this,arguments)}finally{m=M}}}})(ep)),ep}var i1;function EE(){return i1||(i1=1,tp.exports=LE()),tp.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 n1;function FE(){if(n1)return Fr;n1=1;var e=sm(),t=EE();function r(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,f=1;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,n={};function s(o,l){a(o,l),a(o+"Capture",l)}function a(o,l){for(n[o]=l,o=0;o<l.length;o++)i.add(l[o])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},p={};function m(o){return h.call(p,o)?!0:h.call(d,o)?!1:u.test(o)?p[o]=!0:(d[o]=!0,!1)}function g(o,l,f,y){if(f!==null&&f.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return y?!1:f!==null?!f.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function x(o,l,f,y){if(l===null||typeof l>"u"||g(o,l,f,y))return!0;if(y)return!1;if(f!==null)switch(f.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function C(o,l,f,y,b,S,L){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=y,this.attributeNamespace=b,this.mustUseProperty=f,this.propertyName=o,this.type=l,this.sanitizeURL=S,this.removeEmptyString=L}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){k[o]=new C(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];k[l]=new C(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){k[o]=new C(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){k[o]=new C(o,2,!1,o,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(o){k[o]=new C(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){k[o]=new C(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){k[o]=new C(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){k[o]=new C(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){k[o]=new C(o,5,!1,o.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function T(o){return o[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(o){var l=o.replace(w,T);k[l]=new C(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(w,T);k[l]=new C(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(w,T);k[l]=new C(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){k[o]=new C(o,1,!1,o.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){k[o]=new C(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,f,y){var b=k.hasOwnProperty(l)?k[l]:null;(b!==null?b.type!==0:y||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(x(l,f,b,y)&&(f=null),y||b===null?m(l)&&(f===null?o.removeAttribute(l):o.setAttribute(l,""+f)):b.mustUseProperty?o[b.propertyName]=f===null?b.type===3?!1:"":f:(l=b.attributeName,y=b.attributeNamespace,f===null?o.removeAttribute(l):(b=b.type,f=b===3||b===4&&f===!0?"":""+f,y?o.setAttributeNS(y,l,f):o.setAttribute(l,f))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),F=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),et=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),N=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),R=Symbol.iterator;function K(o){return o===null||typeof o!="object"?null:(o=R&&o[R]||o["@@iterator"],typeof o=="function"?o:null)}var M=Object.assign,z;function tt(o){if(z===void 0)try{throw Error()}catch(f){var l=f.stack.trim().match(/\n( *(at )?)/);z=l&&l[1]||""}return`
|
|
35
|
+
`+z+o}var D=!1;function mt(o,l){if(!o||D)return"";D=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(rt){var y=rt}Reflect.construct(o,[],l)}else{try{l.call()}catch(rt){y=rt}o.call(l.prototype)}else{try{throw Error()}catch(rt){y=rt}o()}}catch(rt){if(rt&&y&&typeof rt.stack=="string"){for(var b=rt.stack.split(`
|
|
36
|
+
`),S=y.stack.split(`
|
|
37
|
+
`),L=b.length-1,$=S.length-1;1<=L&&0<=$&&b[L]!==S[$];)$--;for(;1<=L&&0<=$;L--,$--)if(b[L]!==S[$]){if(L!==1||$!==1)do if(L--,$--,0>$||b[L]!==S[$]){var H=`
|
|
38
|
+
`+b[L].replace(" at new "," at ");return o.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",o.displayName)),H}while(1<=L&&0<=$);break}}}finally{D=!1,Error.prepareStackTrace=f}return(o=o?o.displayName||o.name:"")?tt(o):""}function ft(o){switch(o.tag){case 5:return tt(o.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 2:case 15:return o=mt(o.type,!1),o;case 11:return o=mt(o.type.render,!1),o;case 1:return o=mt(o.type,!0),o;default:return""}}function Ct(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case A:return"Fragment";case F:return"Portal";case et:return"Profiler";case q:return"StrictMode";case nt:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case N:return(o.displayName||"Context")+".Consumer";case I:return(o._context.displayName||"Context")+".Provider";case J:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case j:return l=o.displayName||null,l!==null?l:Ct(o.type)||"Memo";case W:l=o._payload,o=o._init;try{return Ct(o(l))}catch{}}return null}function Dt(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ct(l);case 8:return l===q?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function At(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Yt(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function yt(o){var l=Yt(o)?"checked":"value",f=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),y=""+o[l];if(!o.hasOwnProperty(l)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var b=f.get,S=f.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return b.call(this)},set:function(L){y=""+L,S.call(this,L)}}),Object.defineProperty(o,l,{enumerable:f.enumerable}),{getValue:function(){return y},setValue:function(L){y=""+L},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Ot(o){o._valueTracker||(o._valueTracker=yt(o))}function oe(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var f=l.getValue(),y="";return o&&(y=Yt(o)?o.checked?"true":"false":o.value),o=y,o!==f?(l.setValue(o),!0):!1}function ae(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function He(o,l){var f=l.checked;return M({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??o._wrapperState.initialChecked})}function Be(o,l){var f=l.defaultValue==null?"":l.defaultValue,y=l.checked!=null?l.checked:l.defaultChecked;f=At(l.value!=null?l.value:f),o._wrapperState={initialChecked:y,initialValue:f,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function Kr(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function ui(o,l){Kr(o,l);var f=At(l.value),y=l.type;if(f!=null)y==="number"?(f===0&&o.value===""||o.value!=f)&&(o.value=""+f):o.value!==""+f&&(o.value=""+f);else if(y==="submit"||y==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?di(o,l.type,f):l.hasOwnProperty("defaultValue")&&di(o,l.type,At(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function pr(o,l,f){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var y=l.type;if(!(y!=="submit"&&y!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,f||l===o.value||(o.value=l),o.defaultValue=l}f=o.name,f!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,f!==""&&(o.name=f)}function di(o,l,f){(l!=="number"||ae(o.ownerDocument)!==o)&&(f==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+f&&(o.defaultValue=""+f))}var Rr=Array.isArray;function fi(o,l,f,y){if(o=o.options,l){l={};for(var b=0;b<f.length;b++)l["$"+f[b]]=!0;for(f=0;f<o.length;f++)b=l.hasOwnProperty("$"+o[f].value),o[f].selected!==b&&(o[f].selected=b),b&&y&&(o[f].defaultSelected=!0)}else{for(f=""+At(f),l=null,b=0;b<o.length;b++){if(o[b].value===f){o[b].selected=!0,y&&(o[b].defaultSelected=!0);return}l!==null||o[b].disabled||(l=o[b])}l!==null&&(l.selected=!0)}}function Tn(o,l){if(l.dangerouslySetInnerHTML!=null)throw Error(r(91));return M({},l,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Ko(o,l){var f=l.value;if(f==null){if(f=l.children,l=l.defaultValue,f!=null){if(l!=null)throw Error(r(92));if(Rr(f)){if(1<f.length)throw Error(r(93));f=f[0]}l=f}l==null&&(l=""),f=l}o._wrapperState={initialValue:At(f)}}function _n(o,l){var f=At(l.value),y=At(l.defaultValue);f!=null&&(f=""+f,f!==o.value&&(o.value=f),l.defaultValue==null&&o.defaultValue!==f&&(o.defaultValue=f)),y!=null&&(o.defaultValue=""+y)}function Oi(o){var l=o.textContent;l===o._wrapperState.initialValue&&l!==""&&l!==null&&(o.value=l)}function st(o){switch(o){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 ut(o,l){return o==null||o==="http://www.w3.org/1999/xhtml"?st(l):o==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Rt,Gt=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,f,y,b){MSApp.execUnsafeLocalFunction(function(){return o(l,f,y,b)})}:o})(function(o,l){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=l;else{for(Rt=Rt||document.createElement("div"),Rt.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=Rt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function ee(o,l){if(l){var f=o.firstChild;if(f&&f===o.lastChild&&f.nodeType===3){f.nodeValue=l;return}}o.textContent=l}var Me={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},Zr=["Webkit","ms","Moz","O"];Object.keys(Me).forEach(function(o){Zr.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Me[l]=Me[o]})});function Qe(o,l,f){return l==null||typeof l=="boolean"||l===""?"":f||typeof l!="number"||l===0||Me.hasOwnProperty(o)&&Me[o]?(""+l).trim():l+"px"}function $r(o,l){o=o.style;for(var f in l)if(l.hasOwnProperty(f)){var y=f.indexOf("--")===0,b=Qe(f,l[f],y);f==="float"&&(f="cssFloat"),y?o.setProperty(f,b):o[f]=b}}var Ke=M({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 be(o,l){if(l){if(Ke[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function Sr(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Ze=null;function fa(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Bn=null,pi=null,Ln=null;function En(o){if(o=$a(o)){if(typeof Bn!="function")throw Error(r(280));var l=o.stateNode;l&&(l=Oc(l),Bn(o.stateNode,o.type,l))}}function dc(o){pi?Ln?Ln.push(o):Ln=[o]:pi=o}function fc(){if(pi){var o=pi,l=Ln;if(Ln=pi=null,En(o),l)for(o=0;o<l.length;o++)En(l[o])}}function Le(o,l){return o(l)}function tn(){}var pa=!1;function ga(o,l,f){if(pa)return o(l,f);pa=!0;try{return Le(o,l,f)}finally{pa=!1,(pi!==null||Ln!==null)&&(tn(),fc())}}function en(o,l){var f=o.stateNode;if(f===null)return null;var y=Oc(f);if(y===null)return null;f=y[l];t:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(o=o.type,y=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!y;break t;default:o=!1}if(o)return null;if(f&&typeof f!="function")throw Error(r(231,l,typeof f));return f}var Zo=!1;if(c)try{var Fn={};Object.defineProperty(Fn,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",Fn,Fn),window.removeEventListener("test",Fn,Fn)}catch{Zo=!1}function md(o,l,f,y,b,S,L,$,H){var rt=Array.prototype.slice.call(arguments,3);try{l.apply(f,rt)}catch(ct){this.onError(ct)}}var ir=!1,Jr=null,ho=!1,Jo=null,ma={onError:function(o){ir=!0,Jr=o}};function pc(o,l,f,y,b,S,L,$,H){ir=!1,Jr=null,md.apply(ma,arguments)}function gi(o,l,f,y,b,S,L,$,H){if(pc.apply(this,arguments),ir){if(ir){var rt=Jr;ir=!1,Jr=null}else throw Error(r(198));ho||(ho=!0,Jo=rt)}}function Di(o){var l=o,f=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(f=l.return),o=l.return;while(o)}return l.tag===3?f:null}function ya(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function xa(o){if(Di(o)!==o)throw Error(r(188))}function gc(o){var l=o.alternate;if(!l){if(l=Di(o),l===null)throw Error(r(188));return l!==o?null:o}for(var f=o,y=l;;){var b=f.return;if(b===null)break;var S=b.alternate;if(S===null){if(y=b.return,y!==null){f=y;continue}break}if(b.child===S.child){for(S=b.child;S;){if(S===f)return xa(b),o;if(S===y)return xa(b),l;S=S.sibling}throw Error(r(188))}if(f.return!==y.return)f=b,y=S;else{for(var L=!1,$=b.child;$;){if($===f){L=!0,f=b,y=S;break}if($===y){L=!0,y=b,f=S;break}$=$.sibling}if(!L){for($=S.child;$;){if($===f){L=!0,f=S,y=b;break}if($===y){L=!0,y=S,f=b;break}$=$.sibling}if(!L)throw Error(r(189))}}if(f.alternate!==y)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?o:l}function mc(o){return o=gc(o),o!==null?Mt(o):null}function Mt(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var l=Mt(o);if(l!==null)return l;o=o.sibling}return null}var U=t.unstable_scheduleCallback,dt=t.unstable_cancelCallback,St=t.unstable_shouldYield,ge=t.unstable_requestPaint,Kt=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,Ue=t.unstable_ImmediatePriority,ti=t.unstable_UserBlockingPriority,mi=t.unstable_NormalPriority,Ca=t.unstable_LowPriority,Oe=t.unstable_IdlePriority,uo=null,zr=null;function $B(o){if(zr&&typeof zr.onCommitFiberRoot=="function")try{zr.onCommitFiberRoot(uo,o,void 0,(o.current.flags&128)===128)}catch{}}var yi=Math.clz32?Math.clz32:jB,zB=Math.log,NB=Math.LN2;function jB(o){return o>>>=0,o===0?32:31-(zB(o)/NB|0)|0}var yc=64,xc=4194304;function ka(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Cc(o,l){var f=o.pendingLanes;if(f===0)return 0;var y=0,b=o.suspendedLanes,S=o.pingedLanes,L=f&268435455;if(L!==0){var $=L&~b;$!==0?y=ka($):(S&=L,S!==0&&(y=ka(S)))}else L=f&~b,L!==0?y=ka(L):S!==0&&(y=ka(S));if(y===0)return 0;if(l!==0&&l!==y&&(l&b)===0&&(b=y&-y,S=l&-l,b>=S||b===16&&(S&4194240)!==0))return l;if((y&4)!==0&&(y|=f&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=y;0<l;)f=31-yi(l),b=1<<f,y|=o[f],l&=~b;return y}function WB(o,l){switch(o){case 1:case 2:case 4:return l+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 l+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 qB(o,l){for(var f=o.suspendedLanes,y=o.pingedLanes,b=o.expirationTimes,S=o.pendingLanes;0<S;){var L=31-yi(S),$=1<<L,H=b[L];H===-1?(($&f)===0||($&y)!==0)&&(b[L]=WB($,l)):H<=l&&(o.expiredLanes|=$),S&=~$}}function yd(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Ey(){var o=yc;return yc<<=1,(yc&4194240)===0&&(yc=64),o}function xd(o){for(var l=[],f=0;31>f;f++)l.push(o);return l}function ba(o,l,f){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-yi(l),o[l]=f}function HB(o,l){var f=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var y=o.eventTimes;for(o=o.expirationTimes;0<f;){var b=31-yi(f),S=1<<b;l[b]=0,y[b]=-1,o[b]=-1,f&=~S}}function Cd(o,l){var f=o.entangledLanes|=l;for(o=o.entanglements;f;){var y=31-yi(f),b=1<<y;b&l|o[y]&l&&(o[y]|=l),f&=~b}}var de=0;function Fy(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var Ay,kd,My,Iy,Py,bd=!1,kc=[],An=null,Mn=null,In=null,va=new Map,wa=new Map,Pn=[],UB="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 Oy(o,l){switch(o){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":va.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":wa.delete(l.pointerId)}}function Sa(o,l,f,y,b,S){return o===null||o.nativeEvent!==S?(o={blockedOn:l,domEventName:f,eventSystemFlags:y,nativeEvent:S,targetContainers:[b]},l!==null&&(l=$a(l),l!==null&&kd(l)),o):(o.eventSystemFlags|=y,l=o.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),o)}function VB(o,l,f,y,b){switch(l){case"focusin":return An=Sa(An,o,l,f,y,b),!0;case"dragenter":return Mn=Sa(Mn,o,l,f,y,b),!0;case"mouseover":return In=Sa(In,o,l,f,y,b),!0;case"pointerover":var S=b.pointerId;return va.set(S,Sa(va.get(S)||null,o,l,f,y,b)),!0;case"gotpointercapture":return S=b.pointerId,wa.set(S,Sa(wa.get(S)||null,o,l,f,y,b)),!0}return!1}function Dy(o){var l=fo(o.target);if(l!==null){var f=Di(l);if(f!==null){if(l=f.tag,l===13){if(l=ya(f),l!==null){o.blockedOn=l,Py(o.priority,function(){My(f)});return}}else if(l===3&&f.stateNode.current.memoizedState.isDehydrated){o.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}o.blockedOn=null}function bc(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var f=wd(o.domEventName,o.eventSystemFlags,l[0],o.nativeEvent);if(f===null){f=o.nativeEvent;var y=new f.constructor(f.type,f);Ze=y,f.target.dispatchEvent(y),Ze=null}else return l=$a(f),l!==null&&kd(l),o.blockedOn=f,!1;l.shift()}return!0}function Ry(o,l,f){bc(o)&&f.delete(l)}function YB(){bd=!1,An!==null&&bc(An)&&(An=null),Mn!==null&&bc(Mn)&&(Mn=null),In!==null&&bc(In)&&(In=null),va.forEach(Ry),wa.forEach(Ry)}function Ta(o,l){o.blockedOn===l&&(o.blockedOn=null,bd||(bd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,YB)))}function _a(o){function l(b){return Ta(b,o)}if(0<kc.length){Ta(kc[0],o);for(var f=1;f<kc.length;f++){var y=kc[f];y.blockedOn===o&&(y.blockedOn=null)}}for(An!==null&&Ta(An,o),Mn!==null&&Ta(Mn,o),In!==null&&Ta(In,o),va.forEach(l),wa.forEach(l),f=0;f<Pn.length;f++)y=Pn[f],y.blockedOn===o&&(y.blockedOn=null);for(;0<Pn.length&&(f=Pn[0],f.blockedOn===null);)Dy(f),f.blockedOn===null&&Pn.shift()}var ts=P.ReactCurrentBatchConfig,vc=!0;function GB(o,l,f,y){var b=de,S=ts.transition;ts.transition=null;try{de=1,vd(o,l,f,y)}finally{de=b,ts.transition=S}}function XB(o,l,f,y){var b=de,S=ts.transition;ts.transition=null;try{de=4,vd(o,l,f,y)}finally{de=b,ts.transition=S}}function vd(o,l,f,y){if(vc){var b=wd(o,l,f,y);if(b===null)Nd(o,l,y,wc,f),Oy(o,y);else if(VB(b,o,l,f,y))y.stopPropagation();else if(Oy(o,y),l&4&&-1<UB.indexOf(o)){for(;b!==null;){var S=$a(b);if(S!==null&&Ay(S),S=wd(o,l,f,y),S===null&&Nd(o,l,y,wc,f),S===b)break;b=S}b!==null&&y.stopPropagation()}else Nd(o,l,y,null,f)}}var wc=null;function wd(o,l,f,y){if(wc=null,o=fa(y),o=fo(o),o!==null)if(l=Di(o),l===null)o=null;else if(f=l.tag,f===13){if(o=ya(l),o!==null)return o;o=null}else if(f===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null);return wc=o,null}function $y(o){switch(o){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(Ee()){case Ue:return 1;case ti:return 4;case mi:case Ca:return 16;case Oe:return 536870912;default:return 16}default:return 16}}var On=null,Sd=null,Sc=null;function zy(){if(Sc)return Sc;var o,l=Sd,f=l.length,y,b="value"in On?On.value:On.textContent,S=b.length;for(o=0;o<f&&l[o]===b[o];o++);var L=f-o;for(y=1;y<=L&&l[f-y]===b[S-y];y++);return Sc=b.slice(o,1<y?1-y:void 0)}function Tc(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function _c(){return!0}function Ny(){return!1}function Nr(o){function l(f,y,b,S,L){this._reactName=f,this._targetInst=b,this.type=y,this.nativeEvent=S,this.target=L,this.currentTarget=null;for(var $ in o)o.hasOwnProperty($)&&(f=o[$],this[$]=f?f(S):S[$]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?_c:Ny,this.isPropagationStopped=Ny,this}return M(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=_c)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=_c)},persist:function(){},isPersistent:_c}),l}var es={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=Nr(es),Ba=M({},es,{view:0,detail:0}),QB=Nr(Ba),_d,Bd,La,Bc=M({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ed,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==La&&(La&&o.type==="mousemove"?(_d=o.screenX-La.screenX,Bd=o.screenY-La.screenY):Bd=_d=0,La=o),_d)},movementY:function(o){return"movementY"in o?o.movementY:Bd}}),jy=Nr(Bc),KB=M({},Bc,{dataTransfer:0}),ZB=Nr(KB),JB=M({},Ba,{relatedTarget:0}),Ld=Nr(JB),tL=M({},es,{animationName:0,elapsedTime:0,pseudoElement:0}),eL=Nr(tL),rL=M({},es,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),iL=Nr(rL),nL=M({},es,{data:0}),Wy=Nr(nL),oL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sL={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"},aL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lL(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=aL[o])?!!l[o]:!1}function Ed(){return lL}var cL=M({},Ba,{key:function(o){if(o.key){var l=oL[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Tc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?sL[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ed,charCode:function(o){return o.type==="keypress"?Tc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Tc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),hL=Nr(cL),uL=M({},Bc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qy=Nr(uL),dL=M({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ed}),fL=Nr(dL),pL=M({},es,{propertyName:0,elapsedTime:0,pseudoElement:0}),gL=Nr(pL),mL=M({},Bc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),yL=Nr(mL),xL=[9,13,27,32],Fd=c&&"CompositionEvent"in window,Ea=null;c&&"documentMode"in document&&(Ea=document.documentMode);var CL=c&&"TextEvent"in window&&!Ea,Hy=c&&(!Fd||Ea&&8<Ea&&11>=Ea),Uy=" ",Vy=!1;function Yy(o,l){switch(o){case"keyup":return xL.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gy(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var rs=!1;function kL(o,l){switch(o){case"compositionend":return Gy(l);case"keypress":return l.which!==32?null:(Vy=!0,Uy);case"textInput":return o=l.data,o===Uy&&Vy?null:o;default:return null}}function bL(o,l){if(rs)return o==="compositionend"||!Fd&&Yy(o,l)?(o=zy(),Sc=Sd=On=null,rs=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Hy&&l.locale!=="ko"?null:l.data;default:return null}}var vL={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 Xy(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!vL[o.type]:l==="textarea"}function Qy(o,l,f,y){dc(y),l=Mc(l,"onChange"),0<l.length&&(f=new Td("onChange","change",null,f,y),o.push({event:f,listeners:l}))}var Fa=null,Aa=null;function wL(o){p0(o,0)}function Lc(o){var l=as(o);if(oe(l))return o}function SL(o,l){if(o==="change")return l}var Ky=!1;if(c){var Ad;if(c){var Md="oninput"in document;if(!Md){var Zy=document.createElement("div");Zy.setAttribute("oninput","return;"),Md=typeof Zy.oninput=="function"}Ad=Md}else Ad=!1;Ky=Ad&&(!document.documentMode||9<document.documentMode)}function Jy(){Fa&&(Fa.detachEvent("onpropertychange",t0),Aa=Fa=null)}function t0(o){if(o.propertyName==="value"&&Lc(Aa)){var l=[];Qy(l,Aa,o,fa(o)),ga(wL,l)}}function TL(o,l,f){o==="focusin"?(Jy(),Fa=l,Aa=f,Fa.attachEvent("onpropertychange",t0)):o==="focusout"&&Jy()}function _L(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Lc(Aa)}function BL(o,l){if(o==="click")return Lc(l)}function LL(o,l){if(o==="input"||o==="change")return Lc(l)}function EL(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var xi=typeof Object.is=="function"?Object.is:EL;function Ma(o,l){if(xi(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var f=Object.keys(o),y=Object.keys(l);if(f.length!==y.length)return!1;for(y=0;y<f.length;y++){var b=f[y];if(!h.call(l,b)||!xi(o[b],l[b]))return!1}return!0}function e0(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function r0(o,l){var f=e0(o);o=0;for(var y;f;){if(f.nodeType===3){if(y=o+f.textContent.length,o<=l&&y>=l)return{node:f,offset:l-o};o=y}t:{for(;f;){if(f.nextSibling){f=f.nextSibling;break t}f=f.parentNode}f=void 0}f=e0(f)}}function i0(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?i0(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function n0(){for(var o=window,l=ae();l instanceof o.HTMLIFrameElement;){try{var f=typeof l.contentWindow.location.href=="string"}catch{f=!1}if(f)o=l.contentWindow;else break;l=ae(o.document)}return l}function Id(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function FL(o){var l=n0(),f=o.focusedElem,y=o.selectionRange;if(l!==f&&f&&f.ownerDocument&&i0(f.ownerDocument.documentElement,f)){if(y!==null&&Id(f)){if(l=y.start,o=y.end,o===void 0&&(o=l),"selectionStart"in f)f.selectionStart=l,f.selectionEnd=Math.min(o,f.value.length);else if(o=(l=f.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var b=f.textContent.length,S=Math.min(y.start,b);y=y.end===void 0?S:Math.min(y.end,b),!o.extend&&S>y&&(b=y,y=S,S=b),b=r0(f,S);var L=r0(f,y);b&&L&&(o.rangeCount!==1||o.anchorNode!==b.node||o.anchorOffset!==b.offset||o.focusNode!==L.node||o.focusOffset!==L.offset)&&(l=l.createRange(),l.setStart(b.node,b.offset),o.removeAllRanges(),S>y?(o.addRange(l),o.extend(L.node,L.offset)):(l.setEnd(L.node,L.offset),o.addRange(l)))}}for(l=[],o=f;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<l.length;f++)o=l[f],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var AL=c&&"documentMode"in document&&11>=document.documentMode,is=null,Pd=null,Ia=null,Od=!1;function o0(o,l,f){var y=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Od||is==null||is!==ae(y)||(y=is,"selectionStart"in y&&Id(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Ia&&Ma(Ia,y)||(Ia=y,y=Mc(Pd,"onSelect"),0<y.length&&(l=new Td("onSelect","select",null,l,f),o.push({event:l,listeners:y}),l.target=is)))}function Ec(o,l){var f={};return f[o.toLowerCase()]=l.toLowerCase(),f["Webkit"+o]="webkit"+l,f["Moz"+o]="moz"+l,f}var ns={animationend:Ec("Animation","AnimationEnd"),animationiteration:Ec("Animation","AnimationIteration"),animationstart:Ec("Animation","AnimationStart"),transitionend:Ec("Transition","TransitionEnd")},Dd={},s0={};c&&(s0=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 Fc(o){if(Dd[o])return Dd[o];if(!ns[o])return o;var l=ns[o],f;for(f in l)if(l.hasOwnProperty(f)&&f in s0)return Dd[o]=l[f];return o}var a0=Fc("animationend"),l0=Fc("animationiteration"),c0=Fc("animationstart"),h0=Fc("transitionend"),u0=new Map,d0="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 Dn(o,l){u0.set(o,l),s(l,[o])}for(var Rd=0;Rd<d0.length;Rd++){var $d=d0[Rd],ML=$d.toLowerCase(),IL=$d[0].toUpperCase()+$d.slice(1);Dn(ML,"on"+IL)}Dn(a0,"onAnimationEnd"),Dn(l0,"onAnimationIteration"),Dn(c0,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(h0,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),PL=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pa));function f0(o,l,f){var y=o.type||"unknown-event";o.currentTarget=f,gi(y,l,void 0,o),o.currentTarget=null}function p0(o,l){l=(l&4)!==0;for(var f=0;f<o.length;f++){var y=o[f],b=y.event;y=y.listeners;t:{var S=void 0;if(l)for(var L=y.length-1;0<=L;L--){var $=y[L],H=$.instance,rt=$.currentTarget;if($=$.listener,H!==S&&b.isPropagationStopped())break t;f0(b,$,rt),S=H}else for(L=0;L<y.length;L++){if($=y[L],H=$.instance,rt=$.currentTarget,$=$.listener,H!==S&&b.isPropagationStopped())break t;f0(b,$,rt),S=H}}}if(ho)throw o=Jo,ho=!1,Jo=null,o}function xe(o,l){var f=l[Vd];f===void 0&&(f=l[Vd]=new Set);var y=o+"__bubble";f.has(y)||(g0(l,o,2,!1),f.add(y))}function zd(o,l,f){var y=0;l&&(y|=4),g0(f,o,y,l)}var Ac="_reactListening"+Math.random().toString(36).slice(2);function Oa(o){if(!o[Ac]){o[Ac]=!0,i.forEach(function(f){f!=="selectionchange"&&(PL.has(f)||zd(f,!1,o),zd(f,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Ac]||(l[Ac]=!0,zd("selectionchange",!1,l))}}function g0(o,l,f,y){switch($y(l)){case 1:var b=GB;break;case 4:b=XB;break;default:b=vd}f=b.bind(null,l,f,o),b=void 0,!Zo||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),y?b!==void 0?o.addEventListener(l,f,{capture:!0,passive:b}):o.addEventListener(l,f,!0):b!==void 0?o.addEventListener(l,f,{passive:b}):o.addEventListener(l,f,!1)}function Nd(o,l,f,y,b){var S=y;if((l&1)===0&&(l&2)===0&&y!==null)t:for(;;){if(y===null)return;var L=y.tag;if(L===3||L===4){var $=y.stateNode.containerInfo;if($===b||$.nodeType===8&&$.parentNode===b)break;if(L===4)for(L=y.return;L!==null;){var H=L.tag;if((H===3||H===4)&&(H=L.stateNode.containerInfo,H===b||H.nodeType===8&&H.parentNode===b))return;L=L.return}for(;$!==null;){if(L=fo($),L===null)return;if(H=L.tag,H===5||H===6){y=S=L;continue t}$=$.parentNode}}y=y.return}ga(function(){var rt=S,ct=fa(f),ht=[];t:{var lt=u0.get(o);if(lt!==void 0){var kt=Td,wt=o;switch(o){case"keypress":if(Tc(f)===0)break t;case"keydown":case"keyup":kt=hL;break;case"focusin":wt="focus",kt=Ld;break;case"focusout":wt="blur",kt=Ld;break;case"beforeblur":case"afterblur":kt=Ld;break;case"click":if(f.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":kt=jy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":kt=ZB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":kt=fL;break;case a0:case l0:case c0:kt=eL;break;case h0:kt=gL;break;case"scroll":kt=QB;break;case"wheel":kt=yL;break;case"copy":case"cut":case"paste":kt=iL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":kt=qy}var _t=(l&4)!==0,Ie=!_t&&o==="scroll",Q=_t?lt!==null?lt+"Capture":null:lt;_t=[];for(var Y=rt,Z;Y!==null;){Z=Y;var gt=Z.stateNode;if(Z.tag===5&>!==null&&(Z=gt,Q!==null&&(gt=en(Y,Q),gt!=null&&_t.push(Da(Y,gt,Z)))),Ie)break;Y=Y.return}0<_t.length&&(lt=new kt(lt,wt,null,f,ct),ht.push({event:lt,listeners:_t}))}}if((l&7)===0){t:{if(lt=o==="mouseover"||o==="pointerover",kt=o==="mouseout"||o==="pointerout",lt&&f!==Ze&&(wt=f.relatedTarget||f.fromElement)&&(fo(wt)||wt[rn]))break t;if((kt||lt)&&(lt=ct.window===ct?ct:(lt=ct.ownerDocument)?lt.defaultView||lt.parentWindow:window,kt?(wt=f.relatedTarget||f.toElement,kt=rt,wt=wt?fo(wt):null,wt!==null&&(Ie=Di(wt),wt!==Ie||wt.tag!==5&&wt.tag!==6)&&(wt=null)):(kt=null,wt=rt),kt!==wt)){if(_t=jy,gt="onMouseLeave",Q="onMouseEnter",Y="mouse",(o==="pointerout"||o==="pointerover")&&(_t=qy,gt="onPointerLeave",Q="onPointerEnter",Y="pointer"),Ie=kt==null?lt:as(kt),Z=wt==null?lt:as(wt),lt=new _t(gt,Y+"leave",kt,f,ct),lt.target=Ie,lt.relatedTarget=Z,gt=null,fo(ct)===rt&&(_t=new _t(Q,Y+"enter",wt,f,ct),_t.target=Z,_t.relatedTarget=Ie,gt=_t),Ie=gt,kt&&wt)e:{for(_t=kt,Q=wt,Y=0,Z=_t;Z;Z=os(Z))Y++;for(Z=0,gt=Q;gt;gt=os(gt))Z++;for(;0<Y-Z;)_t=os(_t),Y--;for(;0<Z-Y;)Q=os(Q),Z--;for(;Y--;){if(_t===Q||Q!==null&&_t===Q.alternate)break e;_t=os(_t),Q=os(Q)}_t=null}else _t=null;kt!==null&&m0(ht,lt,kt,_t,!1),wt!==null&&Ie!==null&&m0(ht,Ie,wt,_t,!0)}}t:{if(lt=rt?as(rt):window,kt=lt.nodeName&<.nodeName.toLowerCase(),kt==="select"||kt==="input"&<.type==="file")var Ft=SL;else if(Xy(lt))if(Ky)Ft=LL;else{Ft=_L;var $t=TL}else(kt=lt.nodeName)&&kt.toLowerCase()==="input"&&(lt.type==="checkbox"||lt.type==="radio")&&(Ft=BL);if(Ft&&(Ft=Ft(o,rt))){Qy(ht,Ft,f,ct);break t}$t&&$t(o,lt,rt),o==="focusout"&&($t=lt._wrapperState)&&$t.controlled&<.type==="number"&&di(lt,"number",lt.value)}switch($t=rt?as(rt):window,o){case"focusin":(Xy($t)||$t.contentEditable==="true")&&(is=$t,Pd=rt,Ia=null);break;case"focusout":Ia=Pd=is=null;break;case"mousedown":Od=!0;break;case"contextmenu":case"mouseup":case"dragend":Od=!1,o0(ht,f,ct);break;case"selectionchange":if(AL)break;case"keydown":case"keyup":o0(ht,f,ct)}var zt;if(Fd)t:{switch(o){case"compositionstart":var Ut="onCompositionStart";break t;case"compositionend":Ut="onCompositionEnd";break t;case"compositionupdate":Ut="onCompositionUpdate";break t}Ut=void 0}else rs?Yy(o,f)&&(Ut="onCompositionEnd"):o==="keydown"&&f.keyCode===229&&(Ut="onCompositionStart");Ut&&(Hy&&f.locale!=="ko"&&(rs||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&rs&&(zt=zy()):(On=ct,Sd="value"in On?On.value:On.textContent,rs=!0)),$t=Mc(rt,Ut),0<$t.length&&(Ut=new Wy(Ut,o,null,f,ct),ht.push({event:Ut,listeners:$t}),zt?Ut.data=zt:(zt=Gy(f),zt!==null&&(Ut.data=zt)))),(zt=CL?kL(o,f):bL(o,f))&&(rt=Mc(rt,"onBeforeInput"),0<rt.length&&(ct=new Wy("onBeforeInput","beforeinput",null,f,ct),ht.push({event:ct,listeners:rt}),ct.data=zt))}p0(ht,l)})}function Da(o,l,f){return{instance:o,listener:l,currentTarget:f}}function Mc(o,l){for(var f=l+"Capture",y=[];o!==null;){var b=o,S=b.stateNode;b.tag===5&&S!==null&&(b=S,S=en(o,f),S!=null&&y.unshift(Da(o,S,b)),S=en(o,l),S!=null&&y.push(Da(o,S,b))),o=o.return}return y}function os(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function m0(o,l,f,y,b){for(var S=l._reactName,L=[];f!==null&&f!==y;){var $=f,H=$.alternate,rt=$.stateNode;if(H!==null&&H===y)break;$.tag===5&&rt!==null&&($=rt,b?(H=en(f,S),H!=null&&L.unshift(Da(f,H,$))):b||(H=en(f,S),H!=null&&L.push(Da(f,H,$)))),f=f.return}L.length!==0&&o.push({event:l,listeners:L})}var OL=/\r\n?/g,DL=/\u0000|\uFFFD/g;function y0(o){return(typeof o=="string"?o:""+o).replace(OL,`
|
|
39
|
+
`).replace(DL,"")}function Ic(o,l,f){if(l=y0(l),y0(o)!==l&&f)throw Error(r(425))}function Pc(){}var jd=null,Wd=null;function qd(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Hd=typeof setTimeout=="function"?setTimeout:void 0,RL=typeof clearTimeout=="function"?clearTimeout:void 0,x0=typeof Promise=="function"?Promise:void 0,$L=typeof queueMicrotask=="function"?queueMicrotask:typeof x0<"u"?function(o){return x0.resolve(null).then(o).catch(zL)}:Hd;function zL(o){setTimeout(function(){throw o})}function Ud(o,l){var f=l,y=0;do{var b=f.nextSibling;if(o.removeChild(f),b&&b.nodeType===8)if(f=b.data,f==="/$"){if(y===0){o.removeChild(b),_a(l);return}y--}else f!=="$"&&f!=="$?"&&f!=="$!"||y++;f=b}while(f);_a(l)}function Rn(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return o}function C0(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var f=o.data;if(f==="$"||f==="$!"||f==="$?"){if(l===0)return o;l--}else f==="/$"&&l++}o=o.previousSibling}return null}var ss=Math.random().toString(36).slice(2),Ri="__reactFiber$"+ss,Ra="__reactProps$"+ss,rn="__reactContainer$"+ss,Vd="__reactEvents$"+ss,NL="__reactListeners$"+ss,jL="__reactHandles$"+ss;function fo(o){var l=o[Ri];if(l)return l;for(var f=o.parentNode;f;){if(l=f[rn]||f[Ri]){if(f=l.alternate,l.child!==null||f!==null&&f.child!==null)for(o=C0(o);o!==null;){if(f=o[Ri])return f;o=C0(o)}return l}o=f,f=o.parentNode}return null}function $a(o){return o=o[Ri]||o[rn],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function as(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function Oc(o){return o[Ra]||null}var Yd=[],ls=-1;function $n(o){return{current:o}}function Ce(o){0>ls||(o.current=Yd[ls],Yd[ls]=null,ls--)}function me(o,l){ls++,Yd[ls]=o.current,o.current=l}var zn={},nr=$n(zn),Tr=$n(!1),po=zn;function cs(o,l){var f=o.type.contextTypes;if(!f)return zn;var y=o.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===l)return y.__reactInternalMemoizedMaskedChildContext;var b={},S;for(S in f)b[S]=l[S];return y&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=b),b}function _r(o){return o=o.childContextTypes,o!=null}function Dc(){Ce(Tr),Ce(nr)}function k0(o,l,f){if(nr.current!==zn)throw Error(r(168));me(nr,l),me(Tr,f)}function b0(o,l,f){var y=o.stateNode;if(l=l.childContextTypes,typeof y.getChildContext!="function")return f;y=y.getChildContext();for(var b in y)if(!(b in l))throw Error(r(108,Dt(o)||"Unknown",b));return M({},f,y)}function Rc(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||zn,po=nr.current,me(nr,o),me(Tr,Tr.current),!0}function v0(o,l,f){var y=o.stateNode;if(!y)throw Error(r(169));f?(o=b0(o,l,po),y.__reactInternalMemoizedMergedChildContext=o,Ce(Tr),Ce(nr),me(nr,o)):Ce(Tr),me(Tr,f)}var nn=null,$c=!1,Gd=!1;function w0(o){nn===null?nn=[o]:nn.push(o)}function WL(o){$c=!0,w0(o)}function Nn(){if(!Gd&&nn!==null){Gd=!0;var o=0,l=de;try{var f=nn;for(de=1;o<f.length;o++){var y=f[o];do y=y(!0);while(y!==null)}nn=null,$c=!1}catch(b){throw nn!==null&&(nn=nn.slice(o+1)),U(Ue,Nn),b}finally{de=l,Gd=!1}}return null}var hs=[],us=0,zc=null,Nc=0,ei=[],ri=0,go=null,on=1,sn="";function mo(o,l){hs[us++]=Nc,hs[us++]=zc,zc=o,Nc=l}function S0(o,l,f){ei[ri++]=on,ei[ri++]=sn,ei[ri++]=go,go=o;var y=on;o=sn;var b=32-yi(y)-1;y&=~(1<<b),f+=1;var S=32-yi(l)+b;if(30<S){var L=b-b%5;S=(y&(1<<L)-1).toString(32),y>>=L,b-=L,on=1<<32-yi(l)+b|f<<b|y,sn=S+o}else on=1<<S|f<<b|y,sn=o}function Xd(o){o.return!==null&&(mo(o,1),S0(o,1,0))}function Qd(o){for(;o===zc;)zc=hs[--us],hs[us]=null,Nc=hs[--us],hs[us]=null;for(;o===go;)go=ei[--ri],ei[ri]=null,sn=ei[--ri],ei[ri]=null,on=ei[--ri],ei[ri]=null}var jr=null,Wr=null,ve=!1,Ci=null;function T0(o,l){var f=si(5,null,null,0);f.elementType="DELETED",f.stateNode=l,f.return=o,l=o.deletions,l===null?(o.deletions=[f],o.flags|=16):l.push(f)}function _0(o,l){switch(o.tag){case 5:var f=o.type;return l=l.nodeType!==1||f.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(o.stateNode=l,jr=o,Wr=Rn(l.firstChild),!0):!1;case 6:return l=o.pendingProps===""||l.nodeType!==3?null:l,l!==null?(o.stateNode=l,jr=o,Wr=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(f=go!==null?{id:on,overflow:sn}:null,o.memoizedState={dehydrated:l,treeContext:f,retryLane:1073741824},f=si(18,null,null,0),f.stateNode=l,f.return=o,o.child=f,jr=o,Wr=null,!0):!1;default:return!1}}function Kd(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Zd(o){if(ve){var l=Wr;if(l){var f=l;if(!_0(o,l)){if(Kd(o))throw Error(r(418));l=Rn(f.nextSibling);var y=jr;l&&_0(o,l)?T0(y,f):(o.flags=o.flags&-4097|2,ve=!1,jr=o)}}else{if(Kd(o))throw Error(r(418));o.flags=o.flags&-4097|2,ve=!1,jr=o}}}function B0(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;jr=o}function jc(o){if(o!==jr)return!1;if(!ve)return B0(o),ve=!0,!1;var l;if((l=o.tag!==3)&&!(l=o.tag!==5)&&(l=o.type,l=l!=="head"&&l!=="body"&&!qd(o.type,o.memoizedProps)),l&&(l=Wr)){if(Kd(o))throw L0(),Error(r(418));for(;l;)T0(o,l),l=Rn(l.nextSibling)}if(B0(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));t:{for(o=o.nextSibling,l=0;o;){if(o.nodeType===8){var f=o.data;if(f==="/$"){if(l===0){Wr=Rn(o.nextSibling);break t}l--}else f!=="$"&&f!=="$!"&&f!=="$?"||l++}o=o.nextSibling}Wr=null}}else Wr=jr?Rn(o.stateNode.nextSibling):null;return!0}function L0(){for(var o=Wr;o;)o=Rn(o.nextSibling)}function ds(){Wr=jr=null,ve=!1}function Jd(o){Ci===null?Ci=[o]:Ci.push(o)}var qL=P.ReactCurrentBatchConfig;function za(o,l,f){if(o=f.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(r(309));var y=f.stateNode}if(!y)throw Error(r(147,o));var b=y,S=""+o;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===S?l.ref:(l=function(L){var $=b.refs;L===null?delete $[S]:$[S]=L},l._stringRef=S,l)}if(typeof o!="string")throw Error(r(284));if(!f._owner)throw Error(r(290,o))}return o}function Wc(o,l){throw o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o))}function E0(o){var l=o._init;return l(o._payload)}function F0(o){function l(Q,Y){if(o){var Z=Q.deletions;Z===null?(Q.deletions=[Y],Q.flags|=16):Z.push(Y)}}function f(Q,Y){if(!o)return null;for(;Y!==null;)l(Q,Y),Y=Y.sibling;return null}function y(Q,Y){for(Q=new Map;Y!==null;)Y.key!==null?Q.set(Y.key,Y):Q.set(Y.index,Y),Y=Y.sibling;return Q}function b(Q,Y){return Q=Gn(Q,Y),Q.index=0,Q.sibling=null,Q}function S(Q,Y,Z){return Q.index=Z,o?(Z=Q.alternate,Z!==null?(Z=Z.index,Z<Y?(Q.flags|=2,Y):Z):(Q.flags|=2,Y)):(Q.flags|=1048576,Y)}function L(Q){return o&&Q.alternate===null&&(Q.flags|=2),Q}function $(Q,Y,Z,gt){return Y===null||Y.tag!==6?(Y=Uf(Z,Q.mode,gt),Y.return=Q,Y):(Y=b(Y,Z),Y.return=Q,Y)}function H(Q,Y,Z,gt){var Ft=Z.type;return Ft===A?ct(Q,Y,Z.props.children,gt,Z.key):Y!==null&&(Y.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===W&&E0(Ft)===Y.type)?(gt=b(Y,Z.props),gt.ref=za(Q,Y,Z),gt.return=Q,gt):(gt=dh(Z.type,Z.key,Z.props,null,Q.mode,gt),gt.ref=za(Q,Y,Z),gt.return=Q,gt)}function rt(Q,Y,Z,gt){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==Z.containerInfo||Y.stateNode.implementation!==Z.implementation?(Y=Vf(Z,Q.mode,gt),Y.return=Q,Y):(Y=b(Y,Z.children||[]),Y.return=Q,Y)}function ct(Q,Y,Z,gt,Ft){return Y===null||Y.tag!==7?(Y=So(Z,Q.mode,gt,Ft),Y.return=Q,Y):(Y=b(Y,Z),Y.return=Q,Y)}function ht(Q,Y,Z){if(typeof Y=="string"&&Y!==""||typeof Y=="number")return Y=Uf(""+Y,Q.mode,Z),Y.return=Q,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case O:return Z=dh(Y.type,Y.key,Y.props,null,Q.mode,Z),Z.ref=za(Q,null,Y),Z.return=Q,Z;case F:return Y=Vf(Y,Q.mode,Z),Y.return=Q,Y;case W:var gt=Y._init;return ht(Q,gt(Y._payload),Z)}if(Rr(Y)||K(Y))return Y=So(Y,Q.mode,Z,null),Y.return=Q,Y;Wc(Q,Y)}return null}function lt(Q,Y,Z,gt){var Ft=Y!==null?Y.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number")return Ft!==null?null:$(Q,Y,""+Z,gt);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return Z.key===Ft?H(Q,Y,Z,gt):null;case F:return Z.key===Ft?rt(Q,Y,Z,gt):null;case W:return Ft=Z._init,lt(Q,Y,Ft(Z._payload),gt)}if(Rr(Z)||K(Z))return Ft!==null?null:ct(Q,Y,Z,gt,null);Wc(Q,Z)}return null}function kt(Q,Y,Z,gt,Ft){if(typeof gt=="string"&>!==""||typeof gt=="number")return Q=Q.get(Z)||null,$(Y,Q,""+gt,Ft);if(typeof gt=="object"&>!==null){switch(gt.$$typeof){case O:return Q=Q.get(gt.key===null?Z:gt.key)||null,H(Y,Q,gt,Ft);case F:return Q=Q.get(gt.key===null?Z:gt.key)||null,rt(Y,Q,gt,Ft);case W:var $t=gt._init;return kt(Q,Y,Z,$t(gt._payload),Ft)}if(Rr(gt)||K(gt))return Q=Q.get(Z)||null,ct(Y,Q,gt,Ft,null);Wc(Y,gt)}return null}function wt(Q,Y,Z,gt){for(var Ft=null,$t=null,zt=Y,Ut=Y=0,Ge=null;zt!==null&&Ut<Z.length;Ut++){zt.index>Ut?(Ge=zt,zt=null):Ge=zt.sibling;var le=lt(Q,zt,Z[Ut],gt);if(le===null){zt===null&&(zt=Ge);break}o&&zt&&le.alternate===null&&l(Q,zt),Y=S(le,Y,Ut),$t===null?Ft=le:$t.sibling=le,$t=le,zt=Ge}if(Ut===Z.length)return f(Q,zt),ve&&mo(Q,Ut),Ft;if(zt===null){for(;Ut<Z.length;Ut++)zt=ht(Q,Z[Ut],gt),zt!==null&&(Y=S(zt,Y,Ut),$t===null?Ft=zt:$t.sibling=zt,$t=zt);return ve&&mo(Q,Ut),Ft}for(zt=y(Q,zt);Ut<Z.length;Ut++)Ge=kt(zt,Q,Ut,Z[Ut],gt),Ge!==null&&(o&&Ge.alternate!==null&&zt.delete(Ge.key===null?Ut:Ge.key),Y=S(Ge,Y,Ut),$t===null?Ft=Ge:$t.sibling=Ge,$t=Ge);return o&&zt.forEach(function(Xn){return l(Q,Xn)}),ve&&mo(Q,Ut),Ft}function _t(Q,Y,Z,gt){var Ft=K(Z);if(typeof Ft!="function")throw Error(r(150));if(Z=Ft.call(Z),Z==null)throw Error(r(151));for(var $t=Ft=null,zt=Y,Ut=Y=0,Ge=null,le=Z.next();zt!==null&&!le.done;Ut++,le=Z.next()){zt.index>Ut?(Ge=zt,zt=null):Ge=zt.sibling;var Xn=lt(Q,zt,le.value,gt);if(Xn===null){zt===null&&(zt=Ge);break}o&&zt&&Xn.alternate===null&&l(Q,zt),Y=S(Xn,Y,Ut),$t===null?Ft=Xn:$t.sibling=Xn,$t=Xn,zt=Ge}if(le.done)return f(Q,zt),ve&&mo(Q,Ut),Ft;if(zt===null){for(;!le.done;Ut++,le=Z.next())le=ht(Q,le.value,gt),le!==null&&(Y=S(le,Y,Ut),$t===null?Ft=le:$t.sibling=le,$t=le);return ve&&mo(Q,Ut),Ft}for(zt=y(Q,zt);!le.done;Ut++,le=Z.next())le=kt(zt,Q,Ut,le.value,gt),le!==null&&(o&&le.alternate!==null&&zt.delete(le.key===null?Ut:le.key),Y=S(le,Y,Ut),$t===null?Ft=le:$t.sibling=le,$t=le);return o&&zt.forEach(function(vE){return l(Q,vE)}),ve&&mo(Q,Ut),Ft}function Ie(Q,Y,Z,gt){if(typeof Z=="object"&&Z!==null&&Z.type===A&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:t:{for(var Ft=Z.key,$t=Y;$t!==null;){if($t.key===Ft){if(Ft=Z.type,Ft===A){if($t.tag===7){f(Q,$t.sibling),Y=b($t,Z.props.children),Y.return=Q,Q=Y;break t}}else if($t.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===W&&E0(Ft)===$t.type){f(Q,$t.sibling),Y=b($t,Z.props),Y.ref=za(Q,$t,Z),Y.return=Q,Q=Y;break t}f(Q,$t);break}else l(Q,$t);$t=$t.sibling}Z.type===A?(Y=So(Z.props.children,Q.mode,gt,Z.key),Y.return=Q,Q=Y):(gt=dh(Z.type,Z.key,Z.props,null,Q.mode,gt),gt.ref=za(Q,Y,Z),gt.return=Q,Q=gt)}return L(Q);case F:t:{for($t=Z.key;Y!==null;){if(Y.key===$t)if(Y.tag===4&&Y.stateNode.containerInfo===Z.containerInfo&&Y.stateNode.implementation===Z.implementation){f(Q,Y.sibling),Y=b(Y,Z.children||[]),Y.return=Q,Q=Y;break t}else{f(Q,Y);break}else l(Q,Y);Y=Y.sibling}Y=Vf(Z,Q.mode,gt),Y.return=Q,Q=Y}return L(Q);case W:return $t=Z._init,Ie(Q,Y,$t(Z._payload),gt)}if(Rr(Z))return wt(Q,Y,Z,gt);if(K(Z))return _t(Q,Y,Z,gt);Wc(Q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,Y!==null&&Y.tag===6?(f(Q,Y.sibling),Y=b(Y,Z),Y.return=Q,Q=Y):(f(Q,Y),Y=Uf(Z,Q.mode,gt),Y.return=Q,Q=Y),L(Q)):f(Q,Y)}return Ie}var fs=F0(!0),A0=F0(!1),qc=$n(null),Hc=null,ps=null,tf=null;function ef(){tf=ps=Hc=null}function rf(o){var l=qc.current;Ce(qc),o._currentValue=l}function nf(o,l,f){for(;o!==null;){var y=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,y!==null&&(y.childLanes|=l)):y!==null&&(y.childLanes&l)!==l&&(y.childLanes|=l),o===f)break;o=o.return}}function gs(o,l){Hc=o,tf=ps=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&l)!==0&&(Br=!0),o.firstContext=null)}function ii(o){var l=o._currentValue;if(tf!==o)if(o={context:o,memoizedValue:l,next:null},ps===null){if(Hc===null)throw Error(r(308));ps=o,Hc.dependencies={lanes:0,firstContext:o}}else ps=ps.next=o;return l}var yo=null;function of(o){yo===null?yo=[o]:yo.push(o)}function M0(o,l,f,y){var b=l.interleaved;return b===null?(f.next=f,of(l)):(f.next=b.next,b.next=f),l.interleaved=f,an(o,y)}function an(o,l){o.lanes|=l;var f=o.alternate;for(f!==null&&(f.lanes|=l),f=o,o=o.return;o!==null;)o.childLanes|=l,f=o.alternate,f!==null&&(f.childLanes|=l),f=o,o=o.return;return f.tag===3?f.stateNode:null}var jn=!1;function sf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function I0(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ln(o,l){return{eventTime:o,lane:l,tag:0,payload:null,callback:null,next:null}}function Wn(o,l,f){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,(se&2)!==0){var b=y.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),y.pending=l,an(o,f)}return b=y.interleaved,b===null?(l.next=l,of(y)):(l.next=b.next,b.next=l),y.interleaved=l,an(o,f)}function Uc(o,l,f){if(l=l.updateQueue,l!==null&&(l=l.shared,(f&4194240)!==0)){var y=l.lanes;y&=o.pendingLanes,f|=y,l.lanes=f,Cd(o,f)}}function P0(o,l){var f=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,f===y)){var b=null,S=null;if(f=f.firstBaseUpdate,f!==null){do{var L={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};S===null?b=S=L:S=S.next=L,f=f.next}while(f!==null);S===null?b=S=l:S=S.next=l}else b=S=l;f={baseState:y.baseState,firstBaseUpdate:b,lastBaseUpdate:S,shared:y.shared,effects:y.effects},o.updateQueue=f;return}o=f.lastBaseUpdate,o===null?f.firstBaseUpdate=l:o.next=l,f.lastBaseUpdate=l}function Vc(o,l,f,y){var b=o.updateQueue;jn=!1;var S=b.firstBaseUpdate,L=b.lastBaseUpdate,$=b.shared.pending;if($!==null){b.shared.pending=null;var H=$,rt=H.next;H.next=null,L===null?S=rt:L.next=rt,L=H;var ct=o.alternate;ct!==null&&(ct=ct.updateQueue,$=ct.lastBaseUpdate,$!==L&&($===null?ct.firstBaseUpdate=rt:$.next=rt,ct.lastBaseUpdate=H))}if(S!==null){var ht=b.baseState;L=0,ct=rt=H=null,$=S;do{var lt=$.lane,kt=$.eventTime;if((y<)===lt){ct!==null&&(ct=ct.next={eventTime:kt,lane:0,tag:$.tag,payload:$.payload,callback:$.callback,next:null});t:{var wt=o,_t=$;switch(lt=l,kt=f,_t.tag){case 1:if(wt=_t.payload,typeof wt=="function"){ht=wt.call(kt,ht,lt);break t}ht=wt;break t;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=_t.payload,lt=typeof wt=="function"?wt.call(kt,ht,lt):wt,lt==null)break t;ht=M({},ht,lt);break t;case 2:jn=!0}}$.callback!==null&&$.lane!==0&&(o.flags|=64,lt=b.effects,lt===null?b.effects=[$]:lt.push($))}else kt={eventTime:kt,lane:lt,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ct===null?(rt=ct=kt,H=ht):ct=ct.next=kt,L|=lt;if($=$.next,$===null){if($=b.shared.pending,$===null)break;lt=$,$=lt.next,lt.next=null,b.lastBaseUpdate=lt,b.shared.pending=null}}while(!0);if(ct===null&&(H=ht),b.baseState=H,b.firstBaseUpdate=rt,b.lastBaseUpdate=ct,l=b.shared.interleaved,l!==null){b=l;do L|=b.lane,b=b.next;while(b!==l)}else S===null&&(b.shared.lanes=0);ko|=L,o.lanes=L,o.memoizedState=ht}}function O0(o,l,f){if(o=l.effects,l.effects=null,o!==null)for(l=0;l<o.length;l++){var y=o[l],b=y.callback;if(b!==null){if(y.callback=null,y=f,typeof b!="function")throw Error(r(191,b));b.call(y)}}}var Na={},$i=$n(Na),ja=$n(Na),Wa=$n(Na);function xo(o){if(o===Na)throw Error(r(174));return o}function af(o,l){switch(me(Wa,l),me(ja,o),me($i,Na),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:ut(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=ut(l,o)}Ce($i),me($i,l)}function ms(){Ce($i),Ce(ja),Ce(Wa)}function D0(o){xo(Wa.current);var l=xo($i.current),f=ut(l,o.type);l!==f&&(me(ja,o),me($i,f))}function lf(o){ja.current===o&&(Ce($i),Ce(ja))}var Se=$n(0);function Yc(o){for(var l=o;l!==null;){if(l.tag===13){var f=l.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var cf=[];function hf(){for(var o=0;o<cf.length;o++)cf[o]._workInProgressVersionPrimary=null;cf.length=0}var Gc=P.ReactCurrentDispatcher,uf=P.ReactCurrentBatchConfig,Co=0,Te=null,ze=null,Ve=null,Xc=!1,qa=!1,Ha=0,HL=0;function or(){throw Error(r(321))}function df(o,l){if(l===null)return!1;for(var f=0;f<l.length&&f<o.length;f++)if(!xi(o[f],l[f]))return!1;return!0}function ff(o,l,f,y,b,S){if(Co=S,Te=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Gc.current=o===null||o.memoizedState===null?GL:XL,o=f(y,b),qa){S=0;do{if(qa=!1,Ha=0,25<=S)throw Error(r(301));S+=1,Ve=ze=null,l.updateQueue=null,Gc.current=QL,o=f(y,b)}while(qa)}if(Gc.current=Zc,l=ze!==null&&ze.next!==null,Co=0,Ve=ze=Te=null,Xc=!1,l)throw Error(r(300));return o}function pf(){var o=Ha!==0;return Ha=0,o}function zi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Te.memoizedState=Ve=o:Ve=Ve.next=o,Ve}function ni(){if(ze===null){var o=Te.alternate;o=o!==null?o.memoizedState:null}else o=ze.next;var l=Ve===null?Te.memoizedState:Ve.next;if(l!==null)Ve=l,ze=o;else{if(o===null)throw Error(r(310));ze=o,o={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ve===null?Te.memoizedState=Ve=o:Ve=Ve.next=o}return Ve}function Ua(o,l){return typeof l=="function"?l(o):l}function gf(o){var l=ni(),f=l.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=o;var y=ze,b=y.baseQueue,S=f.pending;if(S!==null){if(b!==null){var L=b.next;b.next=S.next,S.next=L}y.baseQueue=b=S,f.pending=null}if(b!==null){S=b.next,y=y.baseState;var $=L=null,H=null,rt=S;do{var ct=rt.lane;if((Co&ct)===ct)H!==null&&(H=H.next={lane:0,action:rt.action,hasEagerState:rt.hasEagerState,eagerState:rt.eagerState,next:null}),y=rt.hasEagerState?rt.eagerState:o(y,rt.action);else{var ht={lane:ct,action:rt.action,hasEagerState:rt.hasEagerState,eagerState:rt.eagerState,next:null};H===null?($=H=ht,L=y):H=H.next=ht,Te.lanes|=ct,ko|=ct}rt=rt.next}while(rt!==null&&rt!==S);H===null?L=y:H.next=$,xi(y,l.memoizedState)||(Br=!0),l.memoizedState=y,l.baseState=L,l.baseQueue=H,f.lastRenderedState=y}if(o=f.interleaved,o!==null){b=o;do S=b.lane,Te.lanes|=S,ko|=S,b=b.next;while(b!==o)}else b===null&&(f.lanes=0);return[l.memoizedState,f.dispatch]}function mf(o){var l=ni(),f=l.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=o;var y=f.dispatch,b=f.pending,S=l.memoizedState;if(b!==null){f.pending=null;var L=b=b.next;do S=o(S,L.action),L=L.next;while(L!==b);xi(S,l.memoizedState)||(Br=!0),l.memoizedState=S,l.baseQueue===null&&(l.baseState=S),f.lastRenderedState=S}return[S,y]}function R0(){}function $0(o,l){var f=Te,y=ni(),b=l(),S=!xi(y.memoizedState,b);if(S&&(y.memoizedState=b,Br=!0),y=y.queue,yf(j0.bind(null,f,y,o),[o]),y.getSnapshot!==l||S||Ve!==null&&Ve.memoizedState.tag&1){if(f.flags|=2048,Va(9,N0.bind(null,f,y,b,l),void 0,null),Ye===null)throw Error(r(349));(Co&30)!==0||z0(f,l,b)}return b}function z0(o,l,f){o.flags|=16384,o={getSnapshot:l,value:f},l=Te.updateQueue,l===null?(l={lastEffect:null,stores:null},Te.updateQueue=l,l.stores=[o]):(f=l.stores,f===null?l.stores=[o]:f.push(o))}function N0(o,l,f,y){l.value=f,l.getSnapshot=y,W0(l)&&q0(o)}function j0(o,l,f){return f(function(){W0(l)&&q0(o)})}function W0(o){var l=o.getSnapshot;o=o.value;try{var f=l();return!xi(o,f)}catch{return!0}}function q0(o){var l=an(o,1);l!==null&&wi(l,o,1,-1)}function H0(o){var l=zi();return typeof o=="function"&&(o=o()),l.memoizedState=l.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:o},l.queue=o,o=o.dispatch=YL.bind(null,Te,o),[l.memoizedState,o]}function Va(o,l,f,y){return o={tag:o,create:l,destroy:f,deps:y,next:null},l=Te.updateQueue,l===null?(l={lastEffect:null,stores:null},Te.updateQueue=l,l.lastEffect=o.next=o):(f=l.lastEffect,f===null?l.lastEffect=o.next=o:(y=f.next,f.next=o,o.next=y,l.lastEffect=o)),o}function U0(){return ni().memoizedState}function Qc(o,l,f,y){var b=zi();Te.flags|=o,b.memoizedState=Va(1|l,f,void 0,y===void 0?null:y)}function Kc(o,l,f,y){var b=ni();y=y===void 0?null:y;var S=void 0;if(ze!==null){var L=ze.memoizedState;if(S=L.destroy,y!==null&&df(y,L.deps)){b.memoizedState=Va(l,f,S,y);return}}Te.flags|=o,b.memoizedState=Va(1|l,f,S,y)}function V0(o,l){return Qc(8390656,8,o,l)}function yf(o,l){return Kc(2048,8,o,l)}function Y0(o,l){return Kc(4,2,o,l)}function G0(o,l){return Kc(4,4,o,l)}function X0(o,l){if(typeof l=="function")return o=o(),l(o),function(){l(null)};if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function Q0(o,l,f){return f=f!=null?f.concat([o]):null,Kc(4,4,X0.bind(null,l,o),f)}function xf(){}function K0(o,l){var f=ni();l=l===void 0?null:l;var y=f.memoizedState;return y!==null&&l!==null&&df(l,y[1])?y[0]:(f.memoizedState=[o,l],o)}function Z0(o,l){var f=ni();l=l===void 0?null:l;var y=f.memoizedState;return y!==null&&l!==null&&df(l,y[1])?y[0]:(o=o(),f.memoizedState=[o,l],o)}function J0(o,l,f){return(Co&21)===0?(o.baseState&&(o.baseState=!1,Br=!0),o.memoizedState=f):(xi(f,l)||(f=Ey(),Te.lanes|=f,ko|=f,o.baseState=!0),l)}function UL(o,l){var f=de;de=f!==0&&4>f?f:4,o(!0);var y=uf.transition;uf.transition={};try{o(!1),l()}finally{de=f,uf.transition=y}}function tx(){return ni().memoizedState}function VL(o,l,f){var y=Vn(o);if(f={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null},ex(o))rx(l,f);else if(f=M0(o,l,f,y),f!==null){var b=mr();wi(f,o,y,b),ix(f,l,y)}}function YL(o,l,f){var y=Vn(o),b={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null};if(ex(o))rx(l,b);else{var S=o.alternate;if(o.lanes===0&&(S===null||S.lanes===0)&&(S=l.lastRenderedReducer,S!==null))try{var L=l.lastRenderedState,$=S(L,f);if(b.hasEagerState=!0,b.eagerState=$,xi($,L)){var H=l.interleaved;H===null?(b.next=b,of(l)):(b.next=H.next,H.next=b),l.interleaved=b;return}}catch{}finally{}f=M0(o,l,b,y),f!==null&&(b=mr(),wi(f,o,y,b),ix(f,l,y))}}function ex(o){var l=o.alternate;return o===Te||l!==null&&l===Te}function rx(o,l){qa=Xc=!0;var f=o.pending;f===null?l.next=l:(l.next=f.next,f.next=l),o.pending=l}function ix(o,l,f){if((f&4194240)!==0){var y=l.lanes;y&=o.pendingLanes,f|=y,l.lanes=f,Cd(o,f)}}var Zc={readContext:ii,useCallback:or,useContext:or,useEffect:or,useImperativeHandle:or,useInsertionEffect:or,useLayoutEffect:or,useMemo:or,useReducer:or,useRef:or,useState:or,useDebugValue:or,useDeferredValue:or,useTransition:or,useMutableSource:or,useSyncExternalStore:or,useId:or,unstable_isNewReconciler:!1},GL={readContext:ii,useCallback:function(o,l){return zi().memoizedState=[o,l===void 0?null:l],o},useContext:ii,useEffect:V0,useImperativeHandle:function(o,l,f){return f=f!=null?f.concat([o]):null,Qc(4194308,4,X0.bind(null,l,o),f)},useLayoutEffect:function(o,l){return Qc(4194308,4,o,l)},useInsertionEffect:function(o,l){return Qc(4,2,o,l)},useMemo:function(o,l){var f=zi();return l=l===void 0?null:l,o=o(),f.memoizedState=[o,l],o},useReducer:function(o,l,f){var y=zi();return l=f!==void 0?f(l):l,y.memoizedState=y.baseState=l,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:l},y.queue=o,o=o.dispatch=VL.bind(null,Te,o),[y.memoizedState,o]},useRef:function(o){var l=zi();return o={current:o},l.memoizedState=o},useState:H0,useDebugValue:xf,useDeferredValue:function(o){return zi().memoizedState=o},useTransition:function(){var o=H0(!1),l=o[0];return o=UL.bind(null,o[1]),zi().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,f){var y=Te,b=zi();if(ve){if(f===void 0)throw Error(r(407));f=f()}else{if(f=l(),Ye===null)throw Error(r(349));(Co&30)!==0||z0(y,l,f)}b.memoizedState=f;var S={value:f,getSnapshot:l};return b.queue=S,V0(j0.bind(null,y,S,o),[o]),y.flags|=2048,Va(9,N0.bind(null,y,S,f,l),void 0,null),f},useId:function(){var o=zi(),l=Ye.identifierPrefix;if(ve){var f=sn,y=on;f=(y&~(1<<32-yi(y)-1)).toString(32)+f,l=":"+l+"R"+f,f=Ha++,0<f&&(l+="H"+f.toString(32)),l+=":"}else f=HL++,l=":"+l+"r"+f.toString(32)+":";return o.memoizedState=l},unstable_isNewReconciler:!1},XL={readContext:ii,useCallback:K0,useContext:ii,useEffect:yf,useImperativeHandle:Q0,useInsertionEffect:Y0,useLayoutEffect:G0,useMemo:Z0,useReducer:gf,useRef:U0,useState:function(){return gf(Ua)},useDebugValue:xf,useDeferredValue:function(o){var l=ni();return J0(l,ze.memoizedState,o)},useTransition:function(){var o=gf(Ua)[0],l=ni().memoizedState;return[o,l]},useMutableSource:R0,useSyncExternalStore:$0,useId:tx,unstable_isNewReconciler:!1},QL={readContext:ii,useCallback:K0,useContext:ii,useEffect:yf,useImperativeHandle:Q0,useInsertionEffect:Y0,useLayoutEffect:G0,useMemo:Z0,useReducer:mf,useRef:U0,useState:function(){return mf(Ua)},useDebugValue:xf,useDeferredValue:function(o){var l=ni();return ze===null?l.memoizedState=o:J0(l,ze.memoizedState,o)},useTransition:function(){var o=mf(Ua)[0],l=ni().memoizedState;return[o,l]},useMutableSource:R0,useSyncExternalStore:$0,useId:tx,unstable_isNewReconciler:!1};function ki(o,l){if(o&&o.defaultProps){l=M({},l),o=o.defaultProps;for(var f in o)l[f]===void 0&&(l[f]=o[f]);return l}return l}function Cf(o,l,f,y){l=o.memoizedState,f=f(y,l),f=f==null?l:M({},l,f),o.memoizedState=f,o.lanes===0&&(o.updateQueue.baseState=f)}var Jc={isMounted:function(o){return(o=o._reactInternals)?Di(o)===o:!1},enqueueSetState:function(o,l,f){o=o._reactInternals;var y=mr(),b=Vn(o),S=ln(y,b);S.payload=l,f!=null&&(S.callback=f),l=Wn(o,S,b),l!==null&&(wi(l,o,b,y),Uc(l,o,b))},enqueueReplaceState:function(o,l,f){o=o._reactInternals;var y=mr(),b=Vn(o),S=ln(y,b);S.tag=1,S.payload=l,f!=null&&(S.callback=f),l=Wn(o,S,b),l!==null&&(wi(l,o,b,y),Uc(l,o,b))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var f=mr(),y=Vn(o),b=ln(f,y);b.tag=2,l!=null&&(b.callback=l),l=Wn(o,b,y),l!==null&&(wi(l,o,y,f),Uc(l,o,y))}};function nx(o,l,f,y,b,S,L){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,S,L):l.prototype&&l.prototype.isPureReactComponent?!Ma(f,y)||!Ma(b,S):!0}function ox(o,l,f){var y=!1,b=zn,S=l.contextType;return typeof S=="object"&&S!==null?S=ii(S):(b=_r(l)?po:nr.current,y=l.contextTypes,S=(y=y!=null)?cs(o,b):zn),l=new l(f,S),o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Jc,o.stateNode=l,l._reactInternals=o,y&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=b,o.__reactInternalMemoizedMaskedChildContext=S),l}function sx(o,l,f,y){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(f,y),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(f,y),l.state!==o&&Jc.enqueueReplaceState(l,l.state,null)}function kf(o,l,f,y){var b=o.stateNode;b.props=f,b.state=o.memoizedState,b.refs={},sf(o);var S=l.contextType;typeof S=="object"&&S!==null?b.context=ii(S):(S=_r(l)?po:nr.current,b.context=cs(o,S)),b.state=o.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Cf(o,l,S,f),b.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(l=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),l!==b.state&&Jc.enqueueReplaceState(b,b.state,null),Vc(o,f,b,y),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308)}function ys(o,l){try{var f="",y=l;do f+=ft(y),y=y.return;while(y);var b=f}catch(S){b=`
|
|
40
|
+
Error generating stack: `+S.message+`
|
|
41
|
+
`+S.stack}return{value:o,source:l,stack:b,digest:null}}function bf(o,l,f){return{value:o,source:null,stack:f??null,digest:l??null}}function vf(o,l){try{console.error(l.value)}catch(f){setTimeout(function(){throw f})}}var KL=typeof WeakMap=="function"?WeakMap:Map;function ax(o,l,f){f=ln(-1,f),f.tag=3,f.payload={element:null};var y=l.value;return f.callback=function(){sh||(sh=!0,Rf=y),vf(o,l)},f}function lx(o,l,f){f=ln(-1,f),f.tag=3;var y=o.type.getDerivedStateFromError;if(typeof y=="function"){var b=l.value;f.payload=function(){return y(b)},f.callback=function(){vf(o,l)}}var S=o.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(f.callback=function(){vf(o,l),typeof y!="function"&&(Hn===null?Hn=new Set([this]):Hn.add(this));var L=l.stack;this.componentDidCatch(l.value,{componentStack:L!==null?L:""})}),f}function cx(o,l,f){var y=o.pingCache;if(y===null){y=o.pingCache=new KL;var b=new Set;y.set(l,b)}else b=y.get(l),b===void 0&&(b=new Set,y.set(l,b));b.has(f)||(b.add(f),o=uE.bind(null,o,l,f),l.then(o,o))}function hx(o){do{var l;if((l=o.tag===13)&&(l=o.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return o;o=o.return}while(o!==null);return null}function ux(o,l,f,y,b){return(o.mode&1)===0?(o===l?o.flags|=65536:(o.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(l=ln(-1,1),l.tag=2,Wn(f,l,1))),f.lanes|=1),o):(o.flags|=65536,o.lanes=b,o)}var ZL=P.ReactCurrentOwner,Br=!1;function gr(o,l,f,y){l.child=o===null?A0(l,null,f,y):fs(l,o.child,f,y)}function dx(o,l,f,y,b){f=f.render;var S=l.ref;return gs(l,b),y=ff(o,l,f,y,S,b),f=pf(),o!==null&&!Br?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~b,cn(o,l,b)):(ve&&f&&Xd(l),l.flags|=1,gr(o,l,y,b),l.child)}function fx(o,l,f,y,b){if(o===null){var S=f.type;return typeof S=="function"&&!Hf(S)&&S.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(l.tag=15,l.type=S,px(o,l,S,y,b)):(o=dh(f.type,null,y,l,l.mode,b),o.ref=l.ref,o.return=l,l.child=o)}if(S=o.child,(o.lanes&b)===0){var L=S.memoizedProps;if(f=f.compare,f=f!==null?f:Ma,f(L,y)&&o.ref===l.ref)return cn(o,l,b)}return l.flags|=1,o=Gn(S,y),o.ref=l.ref,o.return=l,l.child=o}function px(o,l,f,y,b){if(o!==null){var S=o.memoizedProps;if(Ma(S,y)&&o.ref===l.ref)if(Br=!1,l.pendingProps=y=S,(o.lanes&b)!==0)(o.flags&131072)!==0&&(Br=!0);else return l.lanes=o.lanes,cn(o,l,b)}return wf(o,l,f,y,b)}function gx(o,l,f){var y=l.pendingProps,b=y.children,S=o!==null?o.memoizedState:null;if(y.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Cs,qr),qr|=f;else{if((f&1073741824)===0)return o=S!==null?S.baseLanes|f:f,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:o,cachePool:null,transitions:null},l.updateQueue=null,me(Cs,qr),qr|=o,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=S!==null?S.baseLanes:f,me(Cs,qr),qr|=y}else S!==null?(y=S.baseLanes|f,l.memoizedState=null):y=f,me(Cs,qr),qr|=y;return gr(o,l,b,f),l.child}function mx(o,l){var f=l.ref;(o===null&&f!==null||o!==null&&o.ref!==f)&&(l.flags|=512,l.flags|=2097152)}function wf(o,l,f,y,b){var S=_r(f)?po:nr.current;return S=cs(l,S),gs(l,b),f=ff(o,l,f,y,S,b),y=pf(),o!==null&&!Br?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~b,cn(o,l,b)):(ve&&y&&Xd(l),l.flags|=1,gr(o,l,f,b),l.child)}function yx(o,l,f,y,b){if(_r(f)){var S=!0;Rc(l)}else S=!1;if(gs(l,b),l.stateNode===null)eh(o,l),ox(l,f,y),kf(l,f,y,b),y=!0;else if(o===null){var L=l.stateNode,$=l.memoizedProps;L.props=$;var H=L.context,rt=f.contextType;typeof rt=="object"&&rt!==null?rt=ii(rt):(rt=_r(f)?po:nr.current,rt=cs(l,rt));var ct=f.getDerivedStateFromProps,ht=typeof ct=="function"||typeof L.getSnapshotBeforeUpdate=="function";ht||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||($!==y||H!==rt)&&sx(l,L,y,rt),jn=!1;var lt=l.memoizedState;L.state=lt,Vc(l,y,L,b),H=l.memoizedState,$!==y||lt!==H||Tr.current||jn?(typeof ct=="function"&&(Cf(l,f,ct,y),H=l.memoizedState),($=jn||nx(l,f,$,y,lt,H,rt))?(ht||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(l.flags|=4194308)):(typeof L.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=y,l.memoizedState=H),L.props=y,L.state=H,L.context=rt,y=$):(typeof L.componentDidMount=="function"&&(l.flags|=4194308),y=!1)}else{L=l.stateNode,I0(o,l),$=l.memoizedProps,rt=l.type===l.elementType?$:ki(l.type,$),L.props=rt,ht=l.pendingProps,lt=L.context,H=f.contextType,typeof H=="object"&&H!==null?H=ii(H):(H=_r(f)?po:nr.current,H=cs(l,H));var kt=f.getDerivedStateFromProps;(ct=typeof kt=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||($!==ht||lt!==H)&&sx(l,L,y,H),jn=!1,lt=l.memoizedState,L.state=lt,Vc(l,y,L,b);var wt=l.memoizedState;$!==ht||lt!==wt||Tr.current||jn?(typeof kt=="function"&&(Cf(l,f,kt,y),wt=l.memoizedState),(rt=jn||nx(l,f,rt,y,lt,wt,H)||!1)?(ct||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(y,wt,H),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(y,wt,H)),typeof L.componentDidUpdate=="function"&&(l.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof L.componentDidUpdate!="function"||$===o.memoizedProps&<===o.memoizedState||(l.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||$===o.memoizedProps&<===o.memoizedState||(l.flags|=1024),l.memoizedProps=y,l.memoizedState=wt),L.props=y,L.state=wt,L.context=H,y=rt):(typeof L.componentDidUpdate!="function"||$===o.memoizedProps&<===o.memoizedState||(l.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||$===o.memoizedProps&<===o.memoizedState||(l.flags|=1024),y=!1)}return Sf(o,l,f,y,S,b)}function Sf(o,l,f,y,b,S){mx(o,l);var L=(l.flags&128)!==0;if(!y&&!L)return b&&v0(l,f,!1),cn(o,l,S);y=l.stateNode,ZL.current=l;var $=L&&typeof f.getDerivedStateFromError!="function"?null:y.render();return l.flags|=1,o!==null&&L?(l.child=fs(l,o.child,null,S),l.child=fs(l,null,$,S)):gr(o,l,$,S),l.memoizedState=y.state,b&&v0(l,f,!0),l.child}function xx(o){var l=o.stateNode;l.pendingContext?k0(o,l.pendingContext,l.pendingContext!==l.context):l.context&&k0(o,l.context,!1),af(o,l.containerInfo)}function Cx(o,l,f,y,b){return ds(),Jd(b),l.flags|=256,gr(o,l,f,y),l.child}var Tf={dehydrated:null,treeContext:null,retryLane:0};function _f(o){return{baseLanes:o,cachePool:null,transitions:null}}function kx(o,l,f){var y=l.pendingProps,b=Se.current,S=!1,L=(l.flags&128)!==0,$;if(($=L)||($=o!==null&&o.memoizedState===null?!1:(b&2)!==0),$?(S=!0,l.flags&=-129):(o===null||o.memoizedState!==null)&&(b|=1),me(Se,b&1),o===null)return Zd(l),o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((l.mode&1)===0?l.lanes=1:o.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(L=y.children,o=y.fallback,S?(y=l.mode,S=l.child,L={mode:"hidden",children:L},(y&1)===0&&S!==null?(S.childLanes=0,S.pendingProps=L):S=fh(L,y,0,null),o=So(o,y,f,null),S.return=l,o.return=l,S.sibling=o,l.child=S,l.child.memoizedState=_f(f),l.memoizedState=Tf,o):Bf(l,L));if(b=o.memoizedState,b!==null&&($=b.dehydrated,$!==null))return JL(o,l,L,y,$,b,f);if(S){S=y.fallback,L=l.mode,b=o.child,$=b.sibling;var H={mode:"hidden",children:y.children};return(L&1)===0&&l.child!==b?(y=l.child,y.childLanes=0,y.pendingProps=H,l.deletions=null):(y=Gn(b,H),y.subtreeFlags=b.subtreeFlags&14680064),$!==null?S=Gn($,S):(S=So(S,L,f,null),S.flags|=2),S.return=l,y.return=l,y.sibling=S,l.child=y,y=S,S=l.child,L=o.child.memoizedState,L=L===null?_f(f):{baseLanes:L.baseLanes|f,cachePool:null,transitions:L.transitions},S.memoizedState=L,S.childLanes=o.childLanes&~f,l.memoizedState=Tf,y}return S=o.child,o=S.sibling,y=Gn(S,{mode:"visible",children:y.children}),(l.mode&1)===0&&(y.lanes=f),y.return=l,y.sibling=null,o!==null&&(f=l.deletions,f===null?(l.deletions=[o],l.flags|=16):f.push(o)),l.child=y,l.memoizedState=null,y}function Bf(o,l){return l=fh({mode:"visible",children:l},o.mode,0,null),l.return=o,o.child=l}function th(o,l,f,y){return y!==null&&Jd(y),fs(l,o.child,null,f),o=Bf(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function JL(o,l,f,y,b,S,L){if(f)return l.flags&256?(l.flags&=-257,y=bf(Error(r(422))),th(o,l,L,y)):l.memoizedState!==null?(l.child=o.child,l.flags|=128,null):(S=y.fallback,b=l.mode,y=fh({mode:"visible",children:y.children},b,0,null),S=So(S,b,L,null),S.flags|=2,y.return=l,S.return=l,y.sibling=S,l.child=y,(l.mode&1)!==0&&fs(l,o.child,null,L),l.child.memoizedState=_f(L),l.memoizedState=Tf,S);if((l.mode&1)===0)return th(o,l,L,null);if(b.data==="$!"){if(y=b.nextSibling&&b.nextSibling.dataset,y)var $=y.dgst;return y=$,S=Error(r(419)),y=bf(S,y,void 0),th(o,l,L,y)}if($=(L&o.childLanes)!==0,Br||$){if(y=Ye,y!==null){switch(L&-L){case 4:b=2;break;case 16:b=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:b=32;break;case 536870912:b=268435456;break;default:b=0}b=(b&(y.suspendedLanes|L))!==0?0:b,b!==0&&b!==S.retryLane&&(S.retryLane=b,an(o,b),wi(y,o,b,-1))}return qf(),y=bf(Error(r(421))),th(o,l,L,y)}return b.data==="$?"?(l.flags|=128,l.child=o.child,l=dE.bind(null,o),b._reactRetry=l,null):(o=S.treeContext,Wr=Rn(b.nextSibling),jr=l,ve=!0,Ci=null,o!==null&&(ei[ri++]=on,ei[ri++]=sn,ei[ri++]=go,on=o.id,sn=o.overflow,go=l),l=Bf(l,y.children),l.flags|=4096,l)}function bx(o,l,f){o.lanes|=l;var y=o.alternate;y!==null&&(y.lanes|=l),nf(o.return,l,f)}function Lf(o,l,f,y,b){var S=o.memoizedState;S===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:y,tail:f,tailMode:b}:(S.isBackwards=l,S.rendering=null,S.renderingStartTime=0,S.last=y,S.tail=f,S.tailMode=b)}function vx(o,l,f){var y=l.pendingProps,b=y.revealOrder,S=y.tail;if(gr(o,l,y.children,f),y=Se.current,(y&2)!==0)y=y&1|2,l.flags|=128;else{if(o!==null&&(o.flags&128)!==0)t:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&bx(o,f,l);else if(o.tag===19)bx(o,f,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break t;for(;o.sibling===null;){if(o.return===null||o.return===l)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}y&=1}if(me(Se,y),(l.mode&1)===0)l.memoizedState=null;else switch(b){case"forwards":for(f=l.child,b=null;f!==null;)o=f.alternate,o!==null&&Yc(o)===null&&(b=f),f=f.sibling;f=b,f===null?(b=l.child,l.child=null):(b=f.sibling,f.sibling=null),Lf(l,!1,b,f,S);break;case"backwards":for(f=null,b=l.child,l.child=null;b!==null;){if(o=b.alternate,o!==null&&Yc(o)===null){l.child=b;break}o=b.sibling,b.sibling=f,f=b,b=o}Lf(l,!0,f,null,S);break;case"together":Lf(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function eh(o,l){(l.mode&1)===0&&o!==null&&(o.alternate=null,l.alternate=null,l.flags|=2)}function cn(o,l,f){if(o!==null&&(l.dependencies=o.dependencies),ko|=l.lanes,(f&l.childLanes)===0)return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,f=Gn(o,o.pendingProps),l.child=f,f.return=l;o.sibling!==null;)o=o.sibling,f=f.sibling=Gn(o,o.pendingProps),f.return=l;f.sibling=null}return l.child}function tE(o,l,f){switch(l.tag){case 3:xx(l),ds();break;case 5:D0(l);break;case 1:_r(l.type)&&Rc(l);break;case 4:af(l,l.stateNode.containerInfo);break;case 10:var y=l.type._context,b=l.memoizedProps.value;me(qc,y._currentValue),y._currentValue=b;break;case 13:if(y=l.memoizedState,y!==null)return y.dehydrated!==null?(me(Se,Se.current&1),l.flags|=128,null):(f&l.child.childLanes)!==0?kx(o,l,f):(me(Se,Se.current&1),o=cn(o,l,f),o!==null?o.sibling:null);me(Se,Se.current&1);break;case 19:if(y=(f&l.childLanes)!==0,(o.flags&128)!==0){if(y)return vx(o,l,f);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),me(Se,Se.current),y)break;return null;case 22:case 23:return l.lanes=0,gx(o,l,f)}return cn(o,l,f)}var wx,Ef,Sx,Tx;wx=function(o,l){for(var f=l.child;f!==null;){if(f.tag===5||f.tag===6)o.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Ef=function(){},Sx=function(o,l,f,y){var b=o.memoizedProps;if(b!==y){o=l.stateNode,xo($i.current);var S=null;switch(f){case"input":b=He(o,b),y=He(o,y),S=[];break;case"select":b=M({},b,{value:void 0}),y=M({},y,{value:void 0}),S=[];break;case"textarea":b=Tn(o,b),y=Tn(o,y),S=[];break;default:typeof b.onClick!="function"&&typeof y.onClick=="function"&&(o.onclick=Pc)}be(f,y);var L;f=null;for(rt in b)if(!y.hasOwnProperty(rt)&&b.hasOwnProperty(rt)&&b[rt]!=null)if(rt==="style"){var $=b[rt];for(L in $)$.hasOwnProperty(L)&&(f||(f={}),f[L]="")}else rt!=="dangerouslySetInnerHTML"&&rt!=="children"&&rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&rt!=="autoFocus"&&(n.hasOwnProperty(rt)?S||(S=[]):(S=S||[]).push(rt,null));for(rt in y){var H=y[rt];if($=b!=null?b[rt]:void 0,y.hasOwnProperty(rt)&&H!==$&&(H!=null||$!=null))if(rt==="style")if($){for(L in $)!$.hasOwnProperty(L)||H&&H.hasOwnProperty(L)||(f||(f={}),f[L]="");for(L in H)H.hasOwnProperty(L)&&$[L]!==H[L]&&(f||(f={}),f[L]=H[L])}else f||(S||(S=[]),S.push(rt,f)),f=H;else rt==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,$=$?$.__html:void 0,H!=null&&$!==H&&(S=S||[]).push(rt,H)):rt==="children"?typeof H!="string"&&typeof H!="number"||(S=S||[]).push(rt,""+H):rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&(n.hasOwnProperty(rt)?(H!=null&&rt==="onScroll"&&xe("scroll",o),S||$===H||(S=[])):(S=S||[]).push(rt,H))}f&&(S=S||[]).push("style",f);var rt=S;(l.updateQueue=rt)&&(l.flags|=4)}},Tx=function(o,l,f,y){f!==y&&(l.flags|=4)};function Ya(o,l){if(!ve)switch(o.tailMode){case"hidden":l=o.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?o.tail=null:f.sibling=null;break;case"collapsed":f=o.tail;for(var y=null;f!==null;)f.alternate!==null&&(y=f),f=f.sibling;y===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function sr(o){var l=o.alternate!==null&&o.alternate.child===o.child,f=0,y=0;if(l)for(var b=o.child;b!==null;)f|=b.lanes|b.childLanes,y|=b.subtreeFlags&14680064,y|=b.flags&14680064,b.return=o,b=b.sibling;else for(b=o.child;b!==null;)f|=b.lanes|b.childLanes,y|=b.subtreeFlags,y|=b.flags,b.return=o,b=b.sibling;return o.subtreeFlags|=y,o.childLanes=f,l}function eE(o,l,f){var y=l.pendingProps;switch(Qd(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sr(l),null;case 1:return _r(l.type)&&Dc(),sr(l),null;case 3:return y=l.stateNode,ms(),Ce(Tr),Ce(nr),hf(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(o===null||o.child===null)&&(jc(l)?l.flags|=4:o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ci!==null&&(Nf(Ci),Ci=null))),Ef(o,l),sr(l),null;case 5:lf(l);var b=xo(Wa.current);if(f=l.type,o!==null&&l.stateNode!=null)Sx(o,l,f,y,b),o.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!y){if(l.stateNode===null)throw Error(r(166));return sr(l),null}if(o=xo($i.current),jc(l)){y=l.stateNode,f=l.type;var S=l.memoizedProps;switch(y[Ri]=l,y[Ra]=S,o=(l.mode&1)!==0,f){case"dialog":xe("cancel",y),xe("close",y);break;case"iframe":case"object":case"embed":xe("load",y);break;case"video":case"audio":for(b=0;b<Pa.length;b++)xe(Pa[b],y);break;case"source":xe("error",y);break;case"img":case"image":case"link":xe("error",y),xe("load",y);break;case"details":xe("toggle",y);break;case"input":Be(y,S),xe("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!S.multiple},xe("invalid",y);break;case"textarea":Ko(y,S),xe("invalid",y)}be(f,S),b=null;for(var L in S)if(S.hasOwnProperty(L)){var $=S[L];L==="children"?typeof $=="string"?y.textContent!==$&&(S.suppressHydrationWarning!==!0&&Ic(y.textContent,$,o),b=["children",$]):typeof $=="number"&&y.textContent!==""+$&&(S.suppressHydrationWarning!==!0&&Ic(y.textContent,$,o),b=["children",""+$]):n.hasOwnProperty(L)&&$!=null&&L==="onScroll"&&xe("scroll",y)}switch(f){case"input":Ot(y),pr(y,S,!0);break;case"textarea":Ot(y),Oi(y);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(y.onclick=Pc)}y=b,l.updateQueue=y,y!==null&&(l.flags|=4)}else{L=b.nodeType===9?b:b.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=st(f)),o==="http://www.w3.org/1999/xhtml"?f==="script"?(o=L.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof y.is=="string"?o=L.createElement(f,{is:y.is}):(o=L.createElement(f),f==="select"&&(L=o,y.multiple?L.multiple=!0:y.size&&(L.size=y.size))):o=L.createElementNS(o,f),o[Ri]=l,o[Ra]=y,wx(o,l,!1,!1),l.stateNode=o;t:{switch(L=Sr(f,y),f){case"dialog":xe("cancel",o),xe("close",o),b=y;break;case"iframe":case"object":case"embed":xe("load",o),b=y;break;case"video":case"audio":for(b=0;b<Pa.length;b++)xe(Pa[b],o);b=y;break;case"source":xe("error",o),b=y;break;case"img":case"image":case"link":xe("error",o),xe("load",o),b=y;break;case"details":xe("toggle",o),b=y;break;case"input":Be(o,y),b=He(o,y),xe("invalid",o);break;case"option":b=y;break;case"select":o._wrapperState={wasMultiple:!!y.multiple},b=M({},y,{value:void 0}),xe("invalid",o);break;case"textarea":Ko(o,y),b=Tn(o,y),xe("invalid",o);break;default:b=y}be(f,b),$=b;for(S in $)if($.hasOwnProperty(S)){var H=$[S];S==="style"?$r(o,H):S==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&Gt(o,H)):S==="children"?typeof H=="string"?(f!=="textarea"||H!=="")&&ee(o,H):typeof H=="number"&&ee(o,""+H):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(n.hasOwnProperty(S)?H!=null&&S==="onScroll"&&xe("scroll",o):H!=null&&_(o,S,H,L))}switch(f){case"input":Ot(o),pr(o,y,!1);break;case"textarea":Ot(o),Oi(o);break;case"option":y.value!=null&&o.setAttribute("value",""+At(y.value));break;case"select":o.multiple=!!y.multiple,S=y.value,S!=null?fi(o,!!y.multiple,S,!1):y.defaultValue!=null&&fi(o,!!y.multiple,y.defaultValue,!0);break;default:typeof b.onClick=="function"&&(o.onclick=Pc)}switch(f){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break t;case"img":y=!0;break t;default:y=!1}}y&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return sr(l),null;case 6:if(o&&l.stateNode!=null)Tx(o,l,o.memoizedProps,y);else{if(typeof y!="string"&&l.stateNode===null)throw Error(r(166));if(f=xo(Wa.current),xo($i.current),jc(l)){if(y=l.stateNode,f=l.memoizedProps,y[Ri]=l,(S=y.nodeValue!==f)&&(o=jr,o!==null))switch(o.tag){case 3:Ic(y.nodeValue,f,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Ic(y.nodeValue,f,(o.mode&1)!==0)}S&&(l.flags|=4)}else y=(f.nodeType===9?f:f.ownerDocument).createTextNode(y),y[Ri]=l,l.stateNode=y}return sr(l),null;case 13:if(Ce(Se),y=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(ve&&Wr!==null&&(l.mode&1)!==0&&(l.flags&128)===0)L0(),ds(),l.flags|=98560,S=!1;else if(S=jc(l),y!==null&&y.dehydrated!==null){if(o===null){if(!S)throw Error(r(318));if(S=l.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(r(317));S[Ri]=l}else ds(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;sr(l),S=!1}else Ci!==null&&(Nf(Ci),Ci=null),S=!0;if(!S)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=f,l):(y=y!==null,y!==(o!==null&&o.memoizedState!==null)&&y&&(l.child.flags|=8192,(l.mode&1)!==0&&(o===null||(Se.current&1)!==0?Ne===0&&(Ne=3):qf())),l.updateQueue!==null&&(l.flags|=4),sr(l),null);case 4:return ms(),Ef(o,l),o===null&&Oa(l.stateNode.containerInfo),sr(l),null;case 10:return rf(l.type._context),sr(l),null;case 17:return _r(l.type)&&Dc(),sr(l),null;case 19:if(Ce(Se),S=l.memoizedState,S===null)return sr(l),null;if(y=(l.flags&128)!==0,L=S.rendering,L===null)if(y)Ya(S,!1);else{if(Ne!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(L=Yc(o),L!==null){for(l.flags|=128,Ya(S,!1),y=L.updateQueue,y!==null&&(l.updateQueue=y,l.flags|=4),l.subtreeFlags=0,y=f,f=l.child;f!==null;)S=f,o=y,S.flags&=14680066,L=S.alternate,L===null?(S.childLanes=0,S.lanes=o,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=L.childLanes,S.lanes=L.lanes,S.child=L.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=L.memoizedProps,S.memoizedState=L.memoizedState,S.updateQueue=L.updateQueue,S.type=L.type,o=L.dependencies,S.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),f=f.sibling;return me(Se,Se.current&1|2),l.child}o=o.sibling}S.tail!==null&&Kt()>ks&&(l.flags|=128,y=!0,Ya(S,!1),l.lanes=4194304)}else{if(!y)if(o=Yc(L),o!==null){if(l.flags|=128,y=!0,f=o.updateQueue,f!==null&&(l.updateQueue=f,l.flags|=4),Ya(S,!0),S.tail===null&&S.tailMode==="hidden"&&!L.alternate&&!ve)return sr(l),null}else 2*Kt()-S.renderingStartTime>ks&&f!==1073741824&&(l.flags|=128,y=!0,Ya(S,!1),l.lanes=4194304);S.isBackwards?(L.sibling=l.child,l.child=L):(f=S.last,f!==null?f.sibling=L:l.child=L,S.last=L)}return S.tail!==null?(l=S.tail,S.rendering=l,S.tail=l.sibling,S.renderingStartTime=Kt(),l.sibling=null,f=Se.current,me(Se,y?f&1|2:f&1),l):(sr(l),null);case 22:case 23:return Wf(),y=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==y&&(l.flags|=8192),y&&(l.mode&1)!==0?(qr&1073741824)!==0&&(sr(l),l.subtreeFlags&6&&(l.flags|=8192)):sr(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function rE(o,l){switch(Qd(l),l.tag){case 1:return _r(l.type)&&Dc(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ms(),Ce(Tr),Ce(nr),hf(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 5:return lf(l),null;case 13:if(Ce(Se),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));ds()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return Ce(Se),null;case 4:return ms(),null;case 10:return rf(l.type._context),null;case 22:case 23:return Wf(),null;case 24:return null;default:return null}}var rh=!1,ar=!1,iE=typeof WeakSet=="function"?WeakSet:Set,vt=null;function xs(o,l){var f=o.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(y){Fe(o,l,y)}else f.current=null}function Ff(o,l,f){try{f()}catch(y){Fe(o,l,y)}}var _x=!1;function nE(o,l){if(jd=vc,o=n0(),Id(o)){if("selectionStart"in o)var f={start:o.selectionStart,end:o.selectionEnd};else t:{f=(f=o.ownerDocument)&&f.defaultView||window;var y=f.getSelection&&f.getSelection();if(y&&y.rangeCount!==0){f=y.anchorNode;var b=y.anchorOffset,S=y.focusNode;y=y.focusOffset;try{f.nodeType,S.nodeType}catch{f=null;break t}var L=0,$=-1,H=-1,rt=0,ct=0,ht=o,lt=null;e:for(;;){for(var kt;ht!==f||b!==0&&ht.nodeType!==3||($=L+b),ht!==S||y!==0&&ht.nodeType!==3||(H=L+y),ht.nodeType===3&&(L+=ht.nodeValue.length),(kt=ht.firstChild)!==null;)lt=ht,ht=kt;for(;;){if(ht===o)break e;if(lt===f&&++rt===b&&($=L),lt===S&&++ct===y&&(H=L),(kt=ht.nextSibling)!==null)break;ht=lt,lt=ht.parentNode}ht=kt}f=$===-1||H===-1?null:{start:$,end:H}}else f=null}f=f||{start:0,end:0}}else f=null;for(Wd={focusedElem:o,selectionRange:f},vc=!1,vt=l;vt!==null;)if(l=vt,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,vt=o;else for(;vt!==null;){l=vt;try{var wt=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(wt!==null){var _t=wt.memoizedProps,Ie=wt.memoizedState,Q=l.stateNode,Y=Q.getSnapshotBeforeUpdate(l.elementType===l.type?_t:ki(l.type,_t),Ie);Q.__reactInternalSnapshotBeforeUpdate=Y}break;case 3:var Z=l.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(gt){Fe(l,l.return,gt)}if(o=l.sibling,o!==null){o.return=l.return,vt=o;break}vt=l.return}return wt=_x,_x=!1,wt}function Ga(o,l,f){var y=l.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var b=y=y.next;do{if((b.tag&o)===o){var S=b.destroy;b.destroy=void 0,S!==void 0&&Ff(l,f,S)}b=b.next}while(b!==y)}}function ih(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var f=l=l.next;do{if((f.tag&o)===o){var y=f.create;f.destroy=y()}f=f.next}while(f!==l)}}function Af(o){var l=o.ref;if(l!==null){var f=o.stateNode;switch(o.tag){case 5:o=f;break;default:o=f}typeof l=="function"?l(o):l.current=o}}function Bx(o){var l=o.alternate;l!==null&&(o.alternate=null,Bx(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Ri],delete l[Ra],delete l[Vd],delete l[NL],delete l[jL])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Lx(o){return o.tag===5||o.tag===3||o.tag===4}function Ex(o){t:for(;;){for(;o.sibling===null;){if(o.return===null||Lx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue t;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Mf(o,l,f){var y=o.tag;if(y===5||y===6)o=o.stateNode,l?f.nodeType===8?f.parentNode.insertBefore(o,l):f.insertBefore(o,l):(f.nodeType===8?(l=f.parentNode,l.insertBefore(o,f)):(l=f,l.appendChild(o)),f=f._reactRootContainer,f!=null||l.onclick!==null||(l.onclick=Pc));else if(y!==4&&(o=o.child,o!==null))for(Mf(o,l,f),o=o.sibling;o!==null;)Mf(o,l,f),o=o.sibling}function If(o,l,f){var y=o.tag;if(y===5||y===6)o=o.stateNode,l?f.insertBefore(o,l):f.appendChild(o);else if(y!==4&&(o=o.child,o!==null))for(If(o,l,f),o=o.sibling;o!==null;)If(o,l,f),o=o.sibling}var Je=null,bi=!1;function qn(o,l,f){for(f=f.child;f!==null;)Fx(o,l,f),f=f.sibling}function Fx(o,l,f){if(zr&&typeof zr.onCommitFiberUnmount=="function")try{zr.onCommitFiberUnmount(uo,f)}catch{}switch(f.tag){case 5:ar||xs(f,l);case 6:var y=Je,b=bi;Je=null,qn(o,l,f),Je=y,bi=b,Je!==null&&(bi?(o=Je,f=f.stateNode,o.nodeType===8?o.parentNode.removeChild(f):o.removeChild(f)):Je.removeChild(f.stateNode));break;case 18:Je!==null&&(bi?(o=Je,f=f.stateNode,o.nodeType===8?Ud(o.parentNode,f):o.nodeType===1&&Ud(o,f),_a(o)):Ud(Je,f.stateNode));break;case 4:y=Je,b=bi,Je=f.stateNode.containerInfo,bi=!0,qn(o,l,f),Je=y,bi=b;break;case 0:case 11:case 14:case 15:if(!ar&&(y=f.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){b=y=y.next;do{var S=b,L=S.destroy;S=S.tag,L!==void 0&&((S&2)!==0||(S&4)!==0)&&Ff(f,l,L),b=b.next}while(b!==y)}qn(o,l,f);break;case 1:if(!ar&&(xs(f,l),y=f.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=f.memoizedProps,y.state=f.memoizedState,y.componentWillUnmount()}catch($){Fe(f,l,$)}qn(o,l,f);break;case 21:qn(o,l,f);break;case 22:f.mode&1?(ar=(y=ar)||f.memoizedState!==null,qn(o,l,f),ar=y):qn(o,l,f);break;default:qn(o,l,f)}}function Ax(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var f=o.stateNode;f===null&&(f=o.stateNode=new iE),l.forEach(function(y){var b=fE.bind(null,o,y);f.has(y)||(f.add(y),y.then(b,b))})}}function vi(o,l){var f=l.deletions;if(f!==null)for(var y=0;y<f.length;y++){var b=f[y];try{var S=o,L=l,$=L;t:for(;$!==null;){switch($.tag){case 5:Je=$.stateNode,bi=!1;break t;case 3:Je=$.stateNode.containerInfo,bi=!0;break t;case 4:Je=$.stateNode.containerInfo,bi=!0;break t}$=$.return}if(Je===null)throw Error(r(160));Fx(S,L,b),Je=null,bi=!1;var H=b.alternate;H!==null&&(H.return=null),b.return=null}catch(rt){Fe(b,l,rt)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)Mx(l,o),l=l.sibling}function Mx(o,l){var f=o.alternate,y=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(vi(l,o),Ni(o),y&4){try{Ga(3,o,o.return),ih(3,o)}catch(_t){Fe(o,o.return,_t)}try{Ga(5,o,o.return)}catch(_t){Fe(o,o.return,_t)}}break;case 1:vi(l,o),Ni(o),y&512&&f!==null&&xs(f,f.return);break;case 5:if(vi(l,o),Ni(o),y&512&&f!==null&&xs(f,f.return),o.flags&32){var b=o.stateNode;try{ee(b,"")}catch(_t){Fe(o,o.return,_t)}}if(y&4&&(b=o.stateNode,b!=null)){var S=o.memoizedProps,L=f!==null?f.memoizedProps:S,$=o.type,H=o.updateQueue;if(o.updateQueue=null,H!==null)try{$==="input"&&S.type==="radio"&&S.name!=null&&Kr(b,S),Sr($,L);var rt=Sr($,S);for(L=0;L<H.length;L+=2){var ct=H[L],ht=H[L+1];ct==="style"?$r(b,ht):ct==="dangerouslySetInnerHTML"?Gt(b,ht):ct==="children"?ee(b,ht):_(b,ct,ht,rt)}switch($){case"input":ui(b,S);break;case"textarea":_n(b,S);break;case"select":var lt=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!S.multiple;var kt=S.value;kt!=null?fi(b,!!S.multiple,kt,!1):lt!==!!S.multiple&&(S.defaultValue!=null?fi(b,!!S.multiple,S.defaultValue,!0):fi(b,!!S.multiple,S.multiple?[]:"",!1))}b[Ra]=S}catch(_t){Fe(o,o.return,_t)}}break;case 6:if(vi(l,o),Ni(o),y&4){if(o.stateNode===null)throw Error(r(162));b=o.stateNode,S=o.memoizedProps;try{b.nodeValue=S}catch(_t){Fe(o,o.return,_t)}}break;case 3:if(vi(l,o),Ni(o),y&4&&f!==null&&f.memoizedState.isDehydrated)try{_a(l.containerInfo)}catch(_t){Fe(o,o.return,_t)}break;case 4:vi(l,o),Ni(o);break;case 13:vi(l,o),Ni(o),b=o.child,b.flags&8192&&(S=b.memoizedState!==null,b.stateNode.isHidden=S,!S||b.alternate!==null&&b.alternate.memoizedState!==null||(Df=Kt())),y&4&&Ax(o);break;case 22:if(ct=f!==null&&f.memoizedState!==null,o.mode&1?(ar=(rt=ar)||ct,vi(l,o),ar=rt):vi(l,o),Ni(o),y&8192){if(rt=o.memoizedState!==null,(o.stateNode.isHidden=rt)&&!ct&&(o.mode&1)!==0)for(vt=o,ct=o.child;ct!==null;){for(ht=vt=ct;vt!==null;){switch(lt=vt,kt=lt.child,lt.tag){case 0:case 11:case 14:case 15:Ga(4,lt,lt.return);break;case 1:xs(lt,lt.return);var wt=lt.stateNode;if(typeof wt.componentWillUnmount=="function"){y=lt,f=lt.return;try{l=y,wt.props=l.memoizedProps,wt.state=l.memoizedState,wt.componentWillUnmount()}catch(_t){Fe(y,f,_t)}}break;case 5:xs(lt,lt.return);break;case 22:if(lt.memoizedState!==null){Ox(ht);continue}}kt!==null?(kt.return=lt,vt=kt):Ox(ht)}ct=ct.sibling}t:for(ct=null,ht=o;;){if(ht.tag===5){if(ct===null){ct=ht;try{b=ht.stateNode,rt?(S=b.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"):($=ht.stateNode,H=ht.memoizedProps.style,L=H!=null&&H.hasOwnProperty("display")?H.display:null,$.style.display=Qe("display",L))}catch(_t){Fe(o,o.return,_t)}}}else if(ht.tag===6){if(ct===null)try{ht.stateNode.nodeValue=rt?"":ht.memoizedProps}catch(_t){Fe(o,o.return,_t)}}else if((ht.tag!==22&&ht.tag!==23||ht.memoizedState===null||ht===o)&&ht.child!==null){ht.child.return=ht,ht=ht.child;continue}if(ht===o)break t;for(;ht.sibling===null;){if(ht.return===null||ht.return===o)break t;ct===ht&&(ct=null),ht=ht.return}ct===ht&&(ct=null),ht.sibling.return=ht.return,ht=ht.sibling}}break;case 19:vi(l,o),Ni(o),y&4&&Ax(o);break;case 21:break;default:vi(l,o),Ni(o)}}function Ni(o){var l=o.flags;if(l&2){try{t:{for(var f=o.return;f!==null;){if(Lx(f)){var y=f;break t}f=f.return}throw Error(r(160))}switch(y.tag){case 5:var b=y.stateNode;y.flags&32&&(ee(b,""),y.flags&=-33);var S=Ex(o);If(o,S,b);break;case 3:case 4:var L=y.stateNode.containerInfo,$=Ex(o);Mf(o,$,L);break;default:throw Error(r(161))}}catch(H){Fe(o,o.return,H)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function oE(o,l,f){vt=o,Ix(o)}function Ix(o,l,f){for(var y=(o.mode&1)!==0;vt!==null;){var b=vt,S=b.child;if(b.tag===22&&y){var L=b.memoizedState!==null||rh;if(!L){var $=b.alternate,H=$!==null&&$.memoizedState!==null||ar;$=rh;var rt=ar;if(rh=L,(ar=H)&&!rt)for(vt=b;vt!==null;)L=vt,H=L.child,L.tag===22&&L.memoizedState!==null?Dx(b):H!==null?(H.return=L,vt=H):Dx(b);for(;S!==null;)vt=S,Ix(S),S=S.sibling;vt=b,rh=$,ar=rt}Px(o)}else(b.subtreeFlags&8772)!==0&&S!==null?(S.return=b,vt=S):Px(o)}}function Px(o){for(;vt!==null;){var l=vt;if((l.flags&8772)!==0){var f=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:ar||ih(5,l);break;case 1:var y=l.stateNode;if(l.flags&4&&!ar)if(f===null)y.componentDidMount();else{var b=l.elementType===l.type?f.memoizedProps:ki(l.type,f.memoizedProps);y.componentDidUpdate(b,f.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var S=l.updateQueue;S!==null&&O0(l,S,y);break;case 3:var L=l.updateQueue;if(L!==null){if(f=null,l.child!==null)switch(l.child.tag){case 5:f=l.child.stateNode;break;case 1:f=l.child.stateNode}O0(l,L,f)}break;case 5:var $=l.stateNode;if(f===null&&l.flags&4){f=$;var H=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&f.focus();break;case"img":H.src&&(f.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var rt=l.alternate;if(rt!==null){var ct=rt.memoizedState;if(ct!==null){var ht=ct.dehydrated;ht!==null&&_a(ht)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}ar||l.flags&512&&Af(l)}catch(lt){Fe(l,l.return,lt)}}if(l===o){vt=null;break}if(f=l.sibling,f!==null){f.return=l.return,vt=f;break}vt=l.return}}function Ox(o){for(;vt!==null;){var l=vt;if(l===o){vt=null;break}var f=l.sibling;if(f!==null){f.return=l.return,vt=f;break}vt=l.return}}function Dx(o){for(;vt!==null;){var l=vt;try{switch(l.tag){case 0:case 11:case 15:var f=l.return;try{ih(4,l)}catch(H){Fe(l,f,H)}break;case 1:var y=l.stateNode;if(typeof y.componentDidMount=="function"){var b=l.return;try{y.componentDidMount()}catch(H){Fe(l,b,H)}}var S=l.return;try{Af(l)}catch(H){Fe(l,S,H)}break;case 5:var L=l.return;try{Af(l)}catch(H){Fe(l,L,H)}}}catch(H){Fe(l,l.return,H)}if(l===o){vt=null;break}var $=l.sibling;if($!==null){$.return=l.return,vt=$;break}vt=l.return}}var sE=Math.ceil,nh=P.ReactCurrentDispatcher,Pf=P.ReactCurrentOwner,oi=P.ReactCurrentBatchConfig,se=0,Ye=null,De=null,tr=0,qr=0,Cs=$n(0),Ne=0,Xa=null,ko=0,oh=0,Of=0,Qa=null,Lr=null,Df=0,ks=1/0,hn=null,sh=!1,Rf=null,Hn=null,ah=!1,Un=null,lh=0,Ka=0,$f=null,ch=-1,hh=0;function mr(){return(se&6)!==0?Kt():ch!==-1?ch:ch=Kt()}function Vn(o){return(o.mode&1)===0?1:(se&2)!==0&&tr!==0?tr&-tr:qL.transition!==null?(hh===0&&(hh=Ey()),hh):(o=de,o!==0||(o=window.event,o=o===void 0?16:$y(o.type)),o)}function wi(o,l,f,y){if(50<Ka)throw Ka=0,$f=null,Error(r(185));ba(o,f,y),((se&2)===0||o!==Ye)&&(o===Ye&&((se&2)===0&&(oh|=f),Ne===4&&Yn(o,tr)),Er(o,y),f===1&&se===0&&(l.mode&1)===0&&(ks=Kt()+500,$c&&Nn()))}function Er(o,l){var f=o.callbackNode;qB(o,l);var y=Cc(o,o===Ye?tr:0);if(y===0)f!==null&&dt(f),o.callbackNode=null,o.callbackPriority=0;else if(l=y&-y,o.callbackPriority!==l){if(f!=null&&dt(f),l===1)o.tag===0?WL($x.bind(null,o)):w0($x.bind(null,o)),$L(function(){(se&6)===0&&Nn()}),f=null;else{switch(Fy(y)){case 1:f=Ue;break;case 4:f=ti;break;case 16:f=mi;break;case 536870912:f=Oe;break;default:f=mi}f=Vx(f,Rx.bind(null,o))}o.callbackPriority=l,o.callbackNode=f}}function Rx(o,l){if(ch=-1,hh=0,(se&6)!==0)throw Error(r(327));var f=o.callbackNode;if(bs()&&o.callbackNode!==f)return null;var y=Cc(o,o===Ye?tr:0);if(y===0)return null;if((y&30)!==0||(y&o.expiredLanes)!==0||l)l=uh(o,y);else{l=y;var b=se;se|=2;var S=Nx();(Ye!==o||tr!==l)&&(hn=null,ks=Kt()+500,vo(o,l));do try{cE();break}catch($){zx(o,$)}while(!0);ef(),nh.current=S,se=b,De!==null?l=0:(Ye=null,tr=0,l=Ne)}if(l!==0){if(l===2&&(b=yd(o),b!==0&&(y=b,l=zf(o,b))),l===1)throw f=Xa,vo(o,0),Yn(o,y),Er(o,Kt()),f;if(l===6)Yn(o,y);else{if(b=o.current.alternate,(y&30)===0&&!aE(b)&&(l=uh(o,y),l===2&&(S=yd(o),S!==0&&(y=S,l=zf(o,S))),l===1))throw f=Xa,vo(o,0),Yn(o,y),Er(o,Kt()),f;switch(o.finishedWork=b,o.finishedLanes=y,l){case 0:case 1:throw Error(r(345));case 2:wo(o,Lr,hn);break;case 3:if(Yn(o,y),(y&130023424)===y&&(l=Df+500-Kt(),10<l)){if(Cc(o,0)!==0)break;if(b=o.suspendedLanes,(b&y)!==y){mr(),o.pingedLanes|=o.suspendedLanes&b;break}o.timeoutHandle=Hd(wo.bind(null,o,Lr,hn),l);break}wo(o,Lr,hn);break;case 4:if(Yn(o,y),(y&4194240)===y)break;for(l=o.eventTimes,b=-1;0<y;){var L=31-yi(y);S=1<<L,L=l[L],L>b&&(b=L),y&=~S}if(y=b,y=Kt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*sE(y/1960))-y,10<y){o.timeoutHandle=Hd(wo.bind(null,o,Lr,hn),y);break}wo(o,Lr,hn);break;case 5:wo(o,Lr,hn);break;default:throw Error(r(329))}}}return Er(o,Kt()),o.callbackNode===f?Rx.bind(null,o):null}function zf(o,l){var f=Qa;return o.current.memoizedState.isDehydrated&&(vo(o,l).flags|=256),o=uh(o,l),o!==2&&(l=Lr,Lr=f,l!==null&&Nf(l)),o}function Nf(o){Lr===null?Lr=o:Lr.push.apply(Lr,o)}function aE(o){for(var l=o;;){if(l.flags&16384){var f=l.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var y=0;y<f.length;y++){var b=f[y],S=b.getSnapshot;b=b.value;try{if(!xi(S(),b))return!1}catch{return!1}}}if(f=l.child,l.subtreeFlags&16384&&f!==null)f.return=l,l=f;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Yn(o,l){for(l&=~Of,l&=~oh,o.suspendedLanes|=l,o.pingedLanes&=~l,o=o.expirationTimes;0<l;){var f=31-yi(l),y=1<<f;o[f]=-1,l&=~y}}function $x(o){if((se&6)!==0)throw Error(r(327));bs();var l=Cc(o,0);if((l&1)===0)return Er(o,Kt()),null;var f=uh(o,l);if(o.tag!==0&&f===2){var y=yd(o);y!==0&&(l=y,f=zf(o,y))}if(f===1)throw f=Xa,vo(o,0),Yn(o,l),Er(o,Kt()),f;if(f===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=l,wo(o,Lr,hn),Er(o,Kt()),null}function jf(o,l){var f=se;se|=1;try{return o(l)}finally{se=f,se===0&&(ks=Kt()+500,$c&&Nn())}}function bo(o){Un!==null&&Un.tag===0&&(se&6)===0&&bs();var l=se;se|=1;var f=oi.transition,y=de;try{if(oi.transition=null,de=1,o)return o()}finally{de=y,oi.transition=f,se=l,(se&6)===0&&Nn()}}function Wf(){qr=Cs.current,Ce(Cs)}function vo(o,l){o.finishedWork=null,o.finishedLanes=0;var f=o.timeoutHandle;if(f!==-1&&(o.timeoutHandle=-1,RL(f)),De!==null)for(f=De.return;f!==null;){var y=f;switch(Qd(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&Dc();break;case 3:ms(),Ce(Tr),Ce(nr),hf();break;case 5:lf(y);break;case 4:ms();break;case 13:Ce(Se);break;case 19:Ce(Se);break;case 10:rf(y.type._context);break;case 22:case 23:Wf()}f=f.return}if(Ye=o,De=o=Gn(o.current,null),tr=qr=l,Ne=0,Xa=null,Of=oh=ko=0,Lr=Qa=null,yo!==null){for(l=0;l<yo.length;l++)if(f=yo[l],y=f.interleaved,y!==null){f.interleaved=null;var b=y.next,S=f.pending;if(S!==null){var L=S.next;S.next=b,y.next=L}f.pending=y}yo=null}return o}function zx(o,l){do{var f=De;try{if(ef(),Gc.current=Zc,Xc){for(var y=Te.memoizedState;y!==null;){var b=y.queue;b!==null&&(b.pending=null),y=y.next}Xc=!1}if(Co=0,Ve=ze=Te=null,qa=!1,Ha=0,Pf.current=null,f===null||f.return===null){Ne=1,Xa=l,De=null;break}t:{var S=o,L=f.return,$=f,H=l;if(l=tr,$.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var rt=H,ct=$,ht=ct.tag;if((ct.mode&1)===0&&(ht===0||ht===11||ht===15)){var lt=ct.alternate;lt?(ct.updateQueue=lt.updateQueue,ct.memoizedState=lt.memoizedState,ct.lanes=lt.lanes):(ct.updateQueue=null,ct.memoizedState=null)}var kt=hx(L);if(kt!==null){kt.flags&=-257,ux(kt,L,$,S,l),kt.mode&1&&cx(S,rt,l),l=kt,H=rt;var wt=l.updateQueue;if(wt===null){var _t=new Set;_t.add(H),l.updateQueue=_t}else wt.add(H);break t}else{if((l&1)===0){cx(S,rt,l),qf();break t}H=Error(r(426))}}else if(ve&&$.mode&1){var Ie=hx(L);if(Ie!==null){(Ie.flags&65536)===0&&(Ie.flags|=256),ux(Ie,L,$,S,l),Jd(ys(H,$));break t}}S=H=ys(H,$),Ne!==4&&(Ne=2),Qa===null?Qa=[S]:Qa.push(S),S=L;do{switch(S.tag){case 3:S.flags|=65536,l&=-l,S.lanes|=l;var Q=ax(S,H,l);P0(S,Q);break t;case 1:$=H;var Y=S.type,Z=S.stateNode;if((S.flags&128)===0&&(typeof Y.getDerivedStateFromError=="function"||Z!==null&&typeof Z.componentDidCatch=="function"&&(Hn===null||!Hn.has(Z)))){S.flags|=65536,l&=-l,S.lanes|=l;var gt=lx(S,$,l);P0(S,gt);break t}}S=S.return}while(S!==null)}Wx(f)}catch(Ft){l=Ft,De===f&&f!==null&&(De=f=f.return);continue}break}while(!0)}function Nx(){var o=nh.current;return nh.current=Zc,o===null?Zc:o}function qf(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Ye===null||(ko&268435455)===0&&(oh&268435455)===0||Yn(Ye,tr)}function uh(o,l){var f=se;se|=2;var y=Nx();(Ye!==o||tr!==l)&&(hn=null,vo(o,l));do try{lE();break}catch(b){zx(o,b)}while(!0);if(ef(),se=f,nh.current=y,De!==null)throw Error(r(261));return Ye=null,tr=0,Ne}function lE(){for(;De!==null;)jx(De)}function cE(){for(;De!==null&&!St();)jx(De)}function jx(o){var l=Ux(o.alternate,o,qr);o.memoizedProps=o.pendingProps,l===null?Wx(o):De=l,Pf.current=null}function Wx(o){var l=o;do{var f=l.alternate;if(o=l.return,(l.flags&32768)===0){if(f=eE(f,l,qr),f!==null){De=f;return}}else{if(f=rE(f,l),f!==null){f.flags&=32767,De=f;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Ne=6,De=null;return}}if(l=l.sibling,l!==null){De=l;return}De=l=o}while(l!==null);Ne===0&&(Ne=5)}function wo(o,l,f){var y=de,b=oi.transition;try{oi.transition=null,de=1,hE(o,l,f,y)}finally{oi.transition=b,de=y}return null}function hE(o,l,f,y){do bs();while(Un!==null);if((se&6)!==0)throw Error(r(327));f=o.finishedWork;var b=o.finishedLanes;if(f===null)return null;if(o.finishedWork=null,o.finishedLanes=0,f===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var S=f.lanes|f.childLanes;if(HB(o,S),o===Ye&&(De=Ye=null,tr=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||ah||(ah=!0,Vx(mi,function(){return bs(),null})),S=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||S){S=oi.transition,oi.transition=null;var L=de;de=1;var $=se;se|=4,Pf.current=null,nE(o,f),Mx(f,o),FL(Wd),vc=!!jd,Wd=jd=null,o.current=f,oE(f),ge(),se=$,de=L,oi.transition=S}else o.current=f;if(ah&&(ah=!1,Un=o,lh=b),S=o.pendingLanes,S===0&&(Hn=null),$B(f.stateNode),Er(o,Kt()),l!==null)for(y=o.onRecoverableError,f=0;f<l.length;f++)b=l[f],y(b.value,{componentStack:b.stack,digest:b.digest});if(sh)throw sh=!1,o=Rf,Rf=null,o;return(lh&1)!==0&&o.tag!==0&&bs(),S=o.pendingLanes,(S&1)!==0?o===$f?Ka++:(Ka=0,$f=o):Ka=0,Nn(),null}function bs(){if(Un!==null){var o=Fy(lh),l=oi.transition,f=de;try{if(oi.transition=null,de=16>o?16:o,Un===null)var y=!1;else{if(o=Un,Un=null,lh=0,(se&6)!==0)throw Error(r(331));var b=se;for(se|=4,vt=o.current;vt!==null;){var S=vt,L=S.child;if((vt.flags&16)!==0){var $=S.deletions;if($!==null){for(var H=0;H<$.length;H++){var rt=$[H];for(vt=rt;vt!==null;){var ct=vt;switch(ct.tag){case 0:case 11:case 15:Ga(8,ct,S)}var ht=ct.child;if(ht!==null)ht.return=ct,vt=ht;else for(;vt!==null;){ct=vt;var lt=ct.sibling,kt=ct.return;if(Bx(ct),ct===rt){vt=null;break}if(lt!==null){lt.return=kt,vt=lt;break}vt=kt}}}var wt=S.alternate;if(wt!==null){var _t=wt.child;if(_t!==null){wt.child=null;do{var Ie=_t.sibling;_t.sibling=null,_t=Ie}while(_t!==null)}}vt=S}}if((S.subtreeFlags&2064)!==0&&L!==null)L.return=S,vt=L;else t:for(;vt!==null;){if(S=vt,(S.flags&2048)!==0)switch(S.tag){case 0:case 11:case 15:Ga(9,S,S.return)}var Q=S.sibling;if(Q!==null){Q.return=S.return,vt=Q;break t}vt=S.return}}var Y=o.current;for(vt=Y;vt!==null;){L=vt;var Z=L.child;if((L.subtreeFlags&2064)!==0&&Z!==null)Z.return=L,vt=Z;else t:for(L=Y;vt!==null;){if($=vt,($.flags&2048)!==0)try{switch($.tag){case 0:case 11:case 15:ih(9,$)}}catch(Ft){Fe($,$.return,Ft)}if($===L){vt=null;break t}var gt=$.sibling;if(gt!==null){gt.return=$.return,vt=gt;break t}vt=$.return}}if(se=b,Nn(),zr&&typeof zr.onPostCommitFiberRoot=="function")try{zr.onPostCommitFiberRoot(uo,o)}catch{}y=!0}return y}finally{de=f,oi.transition=l}}return!1}function qx(o,l,f){l=ys(f,l),l=ax(o,l,1),o=Wn(o,l,1),l=mr(),o!==null&&(ba(o,1,l),Er(o,l))}function Fe(o,l,f){if(o.tag===3)qx(o,o,f);else for(;l!==null;){if(l.tag===3){qx(l,o,f);break}else if(l.tag===1){var y=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Hn===null||!Hn.has(y))){o=ys(f,o),o=lx(l,o,1),l=Wn(l,o,1),o=mr(),l!==null&&(ba(l,1,o),Er(l,o));break}}l=l.return}}function uE(o,l,f){var y=o.pingCache;y!==null&&y.delete(l),l=mr(),o.pingedLanes|=o.suspendedLanes&f,Ye===o&&(tr&f)===f&&(Ne===4||Ne===3&&(tr&130023424)===tr&&500>Kt()-Df?vo(o,0):Of|=f),Er(o,l)}function Hx(o,l){l===0&&((o.mode&1)===0?l=1:(l=xc,xc<<=1,(xc&130023424)===0&&(xc=4194304)));var f=mr();o=an(o,l),o!==null&&(ba(o,l,f),Er(o,f))}function dE(o){var l=o.memoizedState,f=0;l!==null&&(f=l.retryLane),Hx(o,f)}function fE(o,l){var f=0;switch(o.tag){case 13:var y=o.stateNode,b=o.memoizedState;b!==null&&(f=b.retryLane);break;case 19:y=o.stateNode;break;default:throw Error(r(314))}y!==null&&y.delete(l),Hx(o,f)}var Ux;Ux=function(o,l,f){if(o!==null)if(o.memoizedProps!==l.pendingProps||Tr.current)Br=!0;else{if((o.lanes&f)===0&&(l.flags&128)===0)return Br=!1,tE(o,l,f);Br=(o.flags&131072)!==0}else Br=!1,ve&&(l.flags&1048576)!==0&&S0(l,Nc,l.index);switch(l.lanes=0,l.tag){case 2:var y=l.type;eh(o,l),o=l.pendingProps;var b=cs(l,nr.current);gs(l,f),b=ff(null,l,y,o,b,f);var S=pf();return l.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,_r(y)?(S=!0,Rc(l)):S=!1,l.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,sf(l),b.updater=Jc,l.stateNode=b,b._reactInternals=l,kf(l,y,o,f),l=Sf(null,l,y,!0,S,f)):(l.tag=0,ve&&S&&Xd(l),gr(null,l,b,f),l=l.child),l;case 16:y=l.elementType;t:{switch(eh(o,l),o=l.pendingProps,b=y._init,y=b(y._payload),l.type=y,b=l.tag=gE(y),o=ki(y,o),b){case 0:l=wf(null,l,y,o,f);break t;case 1:l=yx(null,l,y,o,f);break t;case 11:l=dx(null,l,y,o,f);break t;case 14:l=fx(null,l,y,ki(y.type,o),f);break t}throw Error(r(306,y,""))}return l;case 0:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),wf(o,l,y,b,f);case 1:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),yx(o,l,y,b,f);case 3:t:{if(xx(l),o===null)throw Error(r(387));y=l.pendingProps,S=l.memoizedState,b=S.element,I0(o,l),Vc(l,y,null,f);var L=l.memoizedState;if(y=L.element,S.isDehydrated)if(S={element:y,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},l.updateQueue.baseState=S,l.memoizedState=S,l.flags&256){b=ys(Error(r(423)),l),l=Cx(o,l,y,f,b);break t}else if(y!==b){b=ys(Error(r(424)),l),l=Cx(o,l,y,f,b);break t}else for(Wr=Rn(l.stateNode.containerInfo.firstChild),jr=l,ve=!0,Ci=null,f=A0(l,null,y,f),l.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(ds(),y===b){l=cn(o,l,f);break t}gr(o,l,y,f)}l=l.child}return l;case 5:return D0(l),o===null&&Zd(l),y=l.type,b=l.pendingProps,S=o!==null?o.memoizedProps:null,L=b.children,qd(y,b)?L=null:S!==null&&qd(y,S)&&(l.flags|=32),mx(o,l),gr(o,l,L,f),l.child;case 6:return o===null&&Zd(l),null;case 13:return kx(o,l,f);case 4:return af(l,l.stateNode.containerInfo),y=l.pendingProps,o===null?l.child=fs(l,null,y,f):gr(o,l,y,f),l.child;case 11:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),dx(o,l,y,b,f);case 7:return gr(o,l,l.pendingProps,f),l.child;case 8:return gr(o,l,l.pendingProps.children,f),l.child;case 12:return gr(o,l,l.pendingProps.children,f),l.child;case 10:t:{if(y=l.type._context,b=l.pendingProps,S=l.memoizedProps,L=b.value,me(qc,y._currentValue),y._currentValue=L,S!==null)if(xi(S.value,L)){if(S.children===b.children&&!Tr.current){l=cn(o,l,f);break t}}else for(S=l.child,S!==null&&(S.return=l);S!==null;){var $=S.dependencies;if($!==null){L=S.child;for(var H=$.firstContext;H!==null;){if(H.context===y){if(S.tag===1){H=ln(-1,f&-f),H.tag=2;var rt=S.updateQueue;if(rt!==null){rt=rt.shared;var ct=rt.pending;ct===null?H.next=H:(H.next=ct.next,ct.next=H),rt.pending=H}}S.lanes|=f,H=S.alternate,H!==null&&(H.lanes|=f),nf(S.return,f,l),$.lanes|=f;break}H=H.next}}else if(S.tag===10)L=S.type===l.type?null:S.child;else if(S.tag===18){if(L=S.return,L===null)throw Error(r(341));L.lanes|=f,$=L.alternate,$!==null&&($.lanes|=f),nf(L,f,l),L=S.sibling}else L=S.child;if(L!==null)L.return=S;else for(L=S;L!==null;){if(L===l){L=null;break}if(S=L.sibling,S!==null){S.return=L.return,L=S;break}L=L.return}S=L}gr(o,l,b.children,f),l=l.child}return l;case 9:return b=l.type,y=l.pendingProps.children,gs(l,f),b=ii(b),y=y(b),l.flags|=1,gr(o,l,y,f),l.child;case 14:return y=l.type,b=ki(y,l.pendingProps),b=ki(y.type,b),fx(o,l,y,b,f);case 15:return px(o,l,l.type,l.pendingProps,f);case 17:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),eh(o,l),l.tag=1,_r(y)?(o=!0,Rc(l)):o=!1,gs(l,f),ox(l,y,b),kf(l,y,b,f),Sf(null,l,y,!0,o,f);case 19:return vx(o,l,f);case 22:return gx(o,l,f)}throw Error(r(156,l.tag))};function Vx(o,l){return U(o,l)}function pE(o,l,f,y){this.tag=o,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(o,l,f,y){return new pE(o,l,f,y)}function Hf(o){return o=o.prototype,!(!o||!o.isReactComponent)}function gE(o){if(typeof o=="function")return Hf(o)?1:0;if(o!=null){if(o=o.$$typeof,o===J)return 11;if(o===j)return 14}return 2}function Gn(o,l){var f=o.alternate;return f===null?(f=si(o.tag,l,o.key,o.mode),f.elementType=o.elementType,f.type=o.type,f.stateNode=o.stateNode,f.alternate=o,o.alternate=f):(f.pendingProps=l,f.type=o.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=o.flags&14680064,f.childLanes=o.childLanes,f.lanes=o.lanes,f.child=o.child,f.memoizedProps=o.memoizedProps,f.memoizedState=o.memoizedState,f.updateQueue=o.updateQueue,l=o.dependencies,f.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},f.sibling=o.sibling,f.index=o.index,f.ref=o.ref,f}function dh(o,l,f,y,b,S){var L=2;if(y=o,typeof o=="function")Hf(o)&&(L=1);else if(typeof o=="string")L=5;else t:switch(o){case A:return So(f.children,b,S,l);case q:L=8,b|=8;break;case et:return o=si(12,f,l,b|2),o.elementType=et,o.lanes=S,o;case nt:return o=si(13,f,l,b),o.elementType=nt,o.lanes=S,o;case V:return o=si(19,f,l,b),o.elementType=V,o.lanes=S,o;case G:return fh(f,b,S,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case I:L=10;break t;case N:L=9;break t;case J:L=11;break t;case j:L=14;break t;case W:L=16,y=null;break t}throw Error(r(130,o==null?o:typeof o,""))}return l=si(L,f,l,b),l.elementType=o,l.type=y,l.lanes=S,l}function So(o,l,f,y){return o=si(7,o,y,l),o.lanes=f,o}function fh(o,l,f,y){return o=si(22,o,y,l),o.elementType=G,o.lanes=f,o.stateNode={isHidden:!1},o}function Uf(o,l,f){return o=si(6,o,null,l),o.lanes=f,o}function Vf(o,l,f){return l=si(4,o.children!==null?o.children:[],o.key,l),l.lanes=f,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function mE(o,l,f,y,b){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xd(0),this.expirationTimes=xd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xd(0),this.identifierPrefix=y,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function Yf(o,l,f,y,b,S,L,$,H){return o=new mE(o,l,f,$,H),l===1?(l=1,S===!0&&(l|=8)):l=0,S=si(3,null,null,l),o.current=S,S.stateNode=o,S.memoizedState={element:y,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},sf(S),o}function yE(o,l,f){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:y==null?null:""+y,children:o,containerInfo:l,implementation:f}}function Yx(o){if(!o)return zn;o=o._reactInternals;t:{if(Di(o)!==o||o.tag!==1)throw Error(r(170));var l=o;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(_r(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(r(171))}if(o.tag===1){var f=o.type;if(_r(f))return b0(o,f,l)}return l}function Gx(o,l,f,y,b,S,L,$,H){return o=Yf(f,y,!0,o,b,S,L,$,H),o.context=Yx(null),f=o.current,y=mr(),b=Vn(f),S=ln(y,b),S.callback=l??null,Wn(f,S,b),o.current.lanes=b,ba(o,b,y),Er(o,y),o}function ph(o,l,f,y){var b=l.current,S=mr(),L=Vn(b);return f=Yx(f),l.context===null?l.context=f:l.pendingContext=f,l=ln(S,L),l.payload={element:o},y=y===void 0?null:y,y!==null&&(l.callback=y),o=Wn(b,l,L),o!==null&&(wi(o,b,L,S),Uc(o,b,L)),L}function gh(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function Xx(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var f=o.retryLane;o.retryLane=f!==0&&f<l?f:l}}function Gf(o,l){Xx(o,l),(o=o.alternate)&&Xx(o,l)}function xE(){return null}var Qx=typeof reportError=="function"?reportError:function(o){console.error(o)};function Xf(o){this._internalRoot=o}mh.prototype.render=Xf.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));ph(o,l,null,null)},mh.prototype.unmount=Xf.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;bo(function(){ph(null,o,null,null)}),l[rn]=null}};function mh(o){this._internalRoot=o}mh.prototype.unstable_scheduleHydration=function(o){if(o){var l=Iy();o={blockedOn:null,target:o,priority:l};for(var f=0;f<Pn.length&&l!==0&&l<Pn[f].priority;f++);Pn.splice(f,0,o),f===0&&Dy(o)}};function Qf(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function yh(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function Kx(){}function CE(o,l,f,y,b){if(b){if(typeof y=="function"){var S=y;y=function(){var rt=gh(L);S.call(rt)}}var L=Gx(l,y,o,0,null,!1,!1,"",Kx);return o._reactRootContainer=L,o[rn]=L.current,Oa(o.nodeType===8?o.parentNode:o),bo(),L}for(;b=o.lastChild;)o.removeChild(b);if(typeof y=="function"){var $=y;y=function(){var rt=gh(H);$.call(rt)}}var H=Yf(o,0,!1,null,null,!1,!1,"",Kx);return o._reactRootContainer=H,o[rn]=H.current,Oa(o.nodeType===8?o.parentNode:o),bo(function(){ph(l,H,f,y)}),H}function xh(o,l,f,y,b){var S=f._reactRootContainer;if(S){var L=S;if(typeof b=="function"){var $=b;b=function(){var H=gh(L);$.call(H)}}ph(l,L,o,b)}else L=CE(f,l,o,b,y);return gh(L)}Ay=function(o){switch(o.tag){case 3:var l=o.stateNode;if(l.current.memoizedState.isDehydrated){var f=ka(l.pendingLanes);f!==0&&(Cd(l,f|1),Er(l,Kt()),(se&6)===0&&(ks=Kt()+500,Nn()))}break;case 13:bo(function(){var y=an(o,1);if(y!==null){var b=mr();wi(y,o,1,b)}}),Gf(o,1)}},kd=function(o){if(o.tag===13){var l=an(o,134217728);if(l!==null){var f=mr();wi(l,o,134217728,f)}Gf(o,134217728)}},My=function(o){if(o.tag===13){var l=Vn(o),f=an(o,l);if(f!==null){var y=mr();wi(f,o,l,y)}Gf(o,l)}},Iy=function(){return de},Py=function(o,l){var f=de;try{return de=o,l()}finally{de=f}},Bn=function(o,l,f){switch(l){case"input":if(ui(o,f),l=f.name,f.type==="radio"&&l!=null){for(f=o;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<f.length;l++){var y=f[l];if(y!==o&&y.form===o.form){var b=Oc(y);if(!b)throw Error(r(90));oe(y),ui(y,b)}}}break;case"textarea":_n(o,f);break;case"select":l=f.value,l!=null&&fi(o,!!f.multiple,l,!1)}},Le=jf,tn=bo;var kE={usingClientEntryPoint:!1,Events:[$a,as,Oc,dc,fc,jf]},Za={findFiberByHostInstance:fo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bE={bundleType:Za.bundleType,version:Za.version,rendererPackageName:Za.rendererPackageName,rendererConfig:Za.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=mc(o),o===null?null:o.stateNode},findFiberByHostInstance:Za.findFiberByHostInstance||xE,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 Ch=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ch.isDisabled&&Ch.supportsFiber)try{uo=Ch.inject(bE),zr=Ch}catch{}}return Fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kE,Fr.createPortal=function(o,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qf(l))throw Error(r(200));return yE(o,l,null,f)},Fr.createRoot=function(o,l){if(!Qf(o))throw Error(r(299));var f=!1,y="",b=Qx;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),l=Yf(o,1,!1,null,null,f,!1,y,b),o[rn]=l.current,Oa(o.nodeType===8?o.parentNode:o),new Xf(l)},Fr.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=mc(l),o=o===null?null:o.stateNode,o},Fr.flushSync=function(o){return bo(o)},Fr.hydrate=function(o,l,f){if(!yh(l))throw Error(r(200));return xh(null,o,l,!0,f)},Fr.hydrateRoot=function(o,l,f){if(!Qf(o))throw Error(r(405));var y=f!=null&&f.hydratedSources||null,b=!1,S="",L=Qx;if(f!=null&&(f.unstable_strictMode===!0&&(b=!0),f.identifierPrefix!==void 0&&(S=f.identifierPrefix),f.onRecoverableError!==void 0&&(L=f.onRecoverableError)),l=Gx(l,null,o,1,f??null,b,!1,S,L),o[rn]=l.current,Oa(o),y)for(o=0;o<y.length;o++)f=y[o],b=f._getVersion,b=b(f._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[f,b]:l.mutableSourceEagerHydrationData.push(f,b);return new mh(l)},Fr.render=function(o,l,f){if(!yh(l))throw Error(r(200));return xh(null,o,l,!1,f)},Fr.unmountComponentAtNode=function(o){if(!yh(o))throw Error(r(40));return o._reactRootContainer?(bo(function(){xh(null,null,o,!1,function(){o._reactRootContainer=null,o[rn]=null})}),!0):!1},Fr.unstable_batchedUpdates=jf,Fr.unstable_renderSubtreeIntoContainer=function(o,l,f,y){if(!yh(f))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return xh(o,l,f,!1,y)},Fr.version="18.3.1-next-f1338f8080-20240426",Fr}var o1;function AE(){if(o1)return Jf.exports;o1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jf.exports=FE(),Jf.exports}var s1;function ME(){if(s1)return kh;s1=1;var e=AE();return kh.createRoot=e.createRoot,kh.hydrateRoot=e.hydrateRoot,kh}var IE=ME();const PE=Kl(IE);class OE extends gn.Component{constructor(t){super(t),this.handleRetry=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught an error:",t,r)}render(){var t,r;return this.state.hasError?E.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",color:"var(--text-primary)"},children:[E.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:":("}),E.jsx("h2",{style:{fontSize:"18px",fontWeight:600,marginBottom:"8px"},children:"出现了一些问题"}),E.jsx("p",{style:{fontSize:"14px",color:"var(--text-secondary)",marginBottom:"8px",maxWidth:"400px",textAlign:"center"},children:((t=this.state.error)==null?void 0:t.message)||"发生了未知错误"}),E.jsx("pre",{style:{fontSize:"12px",color:"var(--text-tertiary)",marginBottom:"20px",maxWidth:"600px",overflow:"auto",padding:"12px",background:"var(--bg-secondary)",borderRadius:"8px",border:"1px solid var(--border)",maxHeight:"150px",width:"100%"},children:(r=this.state.error)==null?void 0:r.stack}),E.jsx("button",{onClick:this.handleRetry,style:{padding:"8px 24px",border:"1px solid var(--border)",borderRadius:"8px",background:"var(--accent)",color:"var(--text-inverse)",fontSize:"14px",cursor:"pointer",fontWeight:500},children:"重试"})]}):this.props.children}}const DE="modulepreload",RE=function(e){return"/"+e},a1={},re=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){let a=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),h=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));n=a(r.map(u=>{if(u=RE(u),u in a1)return;a1[u]=!0;const d=u.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${p}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":DE,d||(m.as="script"),m.crossOrigin="",m.href=u,h&&m.setAttribute("nonce",h),document.head.appendChild(m),d)return new Promise((g,x)=>{m.addEventListener("load",g),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return n.then(a=>{for(const c of a||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},l1=e=>{let t;const r=new Set,i=(u,d)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const m=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(g=>g(t,m))}},n=()=>t,c={setState:i,getState:n,getInitialState:()=>h,subscribe:u=>(r.add(u),()=>r.delete(u))},h=t=e(i,n,c);return c},$E=(e=>e?l1(e):l1),zE=e=>e;function NE(e,t=zE){const r=gn.useSyncExternalStore(e.subscribe,gn.useCallback(()=>t(e.getState()),[e,t]),gn.useCallback(()=>t(e.getInitialState()),[e,t]));return gn.useDebugValue(r),r}const c1=e=>{const t=$E(e),r=i=>NE(t,i);return Object.assign(r,t),r},jE=(e=>e?c1(e):c1),h1={projects:[],config:null,currentWiki:null,currentView:null,sidebarOpen:!0,settingsOpen:!1,searchOpen:!1,searchQuery:"",searchResults:[],expandedSections:[],expandedGroups:[],referenceOpen:!1,referenceData:null,mermaidViewerOpen:!1,mermaidViewerData:null,loadingWiki:!1,loadingPage:!1,loadingProjects:!1},Pt=jE(e=>({...h1,setProjects:t=>e({projects:t}),setConfig:t=>e({config:t}),setCurrentWiki:t=>e({currentWiki:t}),setCurrentView:t=>e({currentView:t}),setCurrentProject:t=>e(r=>({config:r.config?{...r.config,lastOpenedProject:t}:r.config})),toggleSidebar:()=>e(t=>({sidebarOpen:!t.sidebarOpen})),setSidebarOpen:t=>e({sidebarOpen:t}),toggleSettings:()=>e(t=>({settingsOpen:!t.settingsOpen})),setSettingsOpen:t=>e({settingsOpen:t}),toggleSearch:()=>e(t=>({searchOpen:!t.searchOpen})),setSearchOpen:t=>e(r=>({searchOpen:t,searchQuery:t?r.searchQuery:"",searchResults:t?r.searchResults:[]})),setSearchQuery:t=>e({searchQuery:t}),setSearchResults:t=>e({searchResults:t}),openReference:(t,r,i)=>e({referenceOpen:!0,referenceData:{filePath:t,startLine:r,endLine:i}}),closeReference:()=>e({referenceOpen:!1,referenceData:null}),openMermaidViewer:(t,r)=>e({mermaidViewerOpen:!0,mermaidViewerData:{svg:t,code:r}}),closeMermaidViewer:()=>e({mermaidViewerOpen:!1,mermaidViewerData:null}),toggleSection:t=>e(r=>({expandedSections:r.expandedSections.includes(t)?r.expandedSections.filter(i=>i!==t):[...r.expandedSections,t]})),toggleGroup:t=>e(r=>({expandedGroups:r.expandedGroups.includes(t)?r.expandedGroups.filter(i=>i!==t):[...r.expandedGroups,t]})),setExpandedSections:t=>e({expandedSections:t}),setExpandedGroups:t=>e({expandedGroups:t}),setLoadingWiki:t=>e({loadingWiki:t}),setLoadingPage:t=>e({loadingPage:t}),setLoadingProjects:t=>e({loadingProjects:t}),reset:()=>e(h1)})),WE=({size:e=16})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("path",{d:"M6 9l6 6 6-6"})}),qE=({size:e=16})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"11",cy:"11",r:"8"}),E.jsx("path",{d:"M21 21l-4.35-4.35"})]}),HE=({size:e=18})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"12",cy:"12",r:"3"}),E.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"})]}),Hp=({size:e=22})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),E.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),UE=()=>{const e=Pt(u=>u.projects),t=Pt(u=>u.config),r=Pt(u=>u.setCurrentProject),[i,n]=xt.useState(!1),s=xt.useRef(null),a=t==null?void 0:t.lastOpenedProject,c=e.find(u=>u.id===a);xt.useEffect(()=>{function u(d){s.current&&!s.current.contains(d.target)&&n(!1)}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const h=async u=>{r(u.id),n(!1);try{const{updateConfig:d}=await re(async()=>{const{updateConfig:p}=await Promise.resolve().then(()=>nb);return{updateConfig:p}},void 0);await d({lastOpenedProject:u.id})}catch(d){console.error("Failed to persist project selection:",d)}};return e.length===0?E.jsx("div",{style:{color:"var(--text-tertiary)",fontSize:"13px"},children:"暂无项目"}):E.jsxs("div",{ref:s,style:{position:"relative"},children:[E.jsxs("button",{onClick:()=>n(!i),style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 12px",border:"1px solid var(--border)",borderRadius:"8px",background:"var(--bg-secondary)",color:"var(--text-primary)",cursor:"pointer",fontSize:"13px",fontWeight:500,minWidth:"140px",transition:"all 0.15s ease"},children:[E.jsx(Hp,{size:14}),E.jsx("span",{style:{flex:1,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(c==null?void 0:c.name)||"选择项目"}),E.jsx(WE,{size:14})]}),i&&E.jsx("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",minWidth:"220px",background:"var(--bg-primary)",border:"1px solid var(--border)",borderRadius:"8px",boxShadow:"var(--shadow-lg)",zIndex:50,overflow:"hidden"},children:e.map(u=>E.jsxs("button",{onClick:()=>h(u),style:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"8px 12px",border:"none",background:u.id===a?"var(--accent-light)":"transparent",color:u.id===a?"var(--accent-text)":"var(--text-primary)",cursor:"pointer",fontSize:"13px",textAlign:"left",transition:"background 0.1s ease"},onMouseEnter:d=>{u.id!==a&&(d.target.style.background="var(--bg-hover)")},onMouseLeave:d=>{u.id!==a&&(d.target.style.background="transparent")},children:[E.jsx(Hp,{size:14}),E.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.name})]},u.id))})]})},VE=()=>{const e=Pt(r=>r.toggleSearch),t=Pt(r=>r.toggleSettings);return E.jsxs("header",{style:{height:"var(--header-height)",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 16px",borderBottom:"1px solid var(--border)",background:"var(--bg-primary)",flexShrink:0,zIndex:10},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontWeight:700,fontSize:"15px",color:"var(--accent)",userSelect:"none"},children:[E.jsx(Hp,{size:22}),E.jsx("span",{children:"Zread Browser"})]}),E.jsx("div",{style:{width:"1px",height:"24px",background:"var(--border)"}}),E.jsx(UE,{})]}),E.jsxs("button",{onClick:e,style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 14px",border:"1px solid var(--border)",borderRadius:"8px",background:"var(--bg-secondary)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"13px",transition:"all 0.15s ease",minWidth:"200px"},children:[E.jsx(qE,{size:14}),E.jsx("span",{style:{flex:1,textAlign:"left"},children:"搜索..."}),E.jsx("kbd",{style:{fontSize:"11px",padding:"1px 6px",borderRadius:"4px",background:"var(--bg-tertiary)",border:"1px solid var(--border)",color:"var(--text-tertiary)",fontFamily:"inherit"},children:"Ctrl+K"})]}),E.jsx("button",{onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"36px",height:"36px",border:"1px solid var(--border)",borderRadius:"8px",background:"var(--bg-secondary)",color:"var(--text-secondary)",cursor:"pointer",transition:"all 0.15s ease"},title:"设置",children:E.jsx(HE,{size:18})})]})},YE="/api";async function Mi(e,t){const i=await(await fetch(`${YE}${e}`,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t})).json();if(!i.success)throw new Error(i.error.message);return i.data}async function GE(){return Mi("/projects")}async function am(e){return Mi(`/wiki/${encodeURIComponent(e)}`)}async function lm(e,t,r){return Mi(`/wiki/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${encodeURIComponent(r)}`)}async function Jk(e,t){return Mi(`/search/${encodeURIComponent(e)}?q=${encodeURIComponent(t)}`)}async function Tl(){return Mi("/config")}async function zh(e){return Mi("/config",{method:"PUT",body:JSON.stringify(e)})}async function tb(e){return Mi("/projects",{method:"POST",body:JSON.stringify({path:e})})}async function eb(e){return Mi(`/projects/${encodeURIComponent(e)}`,{method:"DELETE"})}async function rb(){return Mi("/scan",{method:"POST"})}async function Up(){return Mi("/scan/status")}async function ib(e,t,r){const i=new URLSearchParams({path:e});return t&&i.append("startLine",t.toString()),r&&i.append("endLine",r.toString()),Mi(`/files/content?${i.toString()}`)}const nb=Object.freeze(Object.defineProperty({__proto__:null,addProject:tb,deleteProject:eb,getConfig:Tl,getFileContent:ib,getPage:lm,getProjects:GE,getScanStatus:Up,getWiki:am,searchProject:Jk,triggerScan:rb,updateConfig:zh},Symbol.toStringTag,{value:"Module"})),ob=({size:e=14,rotated:t})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transition:"transform 0.15s ease",transform:t?"rotate(90deg)":"rotate(0deg)",flexShrink:0},children:E.jsx("path",{d:"M9 18l6-6-6-6"})}),XE=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),E.jsx("polyline",{points:"14 2 14 8 20 8"})]}),QE=({size:e=14,open:t})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t?E.jsxs(E.Fragment,{children:[E.jsx("path",{d:"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1"}),E.jsx("path",{d:"M20.27 9.69l-2.12 9.31H6.76L4.62 9.69H20.27z"})]}):E.jsx(E.Fragment,{children:E.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})})});function KE(e){const t=new Map;for(const i of e.pages){t.has(i.section)||t.set(i.section,{grouped:new Map,ungrouped:[]});const n=t.get(i.section);i.group?(n.grouped.has(i.group)||n.grouped.set(i.group,[]),n.grouped.get(i.group).push(i)):n.ungrouped.push(i)}const r=[];for(const[i,n]of t){const s=[];for(const[a,c]of n.grouped)s.push({name:a,pages:c});r.push({name:i,groups:s,ungroupedPages:n.ungrouped})}return{sections:r}}const sb=({page:e,isActive:t,onClick:r})=>{const i=e.level==="Beginner"?"badge-beginner":e.level==="Intermediate"?"badge-intermediate":"badge-advanced";return E.jsxs("button",{onClick:r,style:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"5px 12px 5px 28px",border:"none",background:t?"var(--accent-light)":"transparent",color:t?"var(--accent-text)":"var(--text-primary)",cursor:"pointer",fontSize:"13px",textAlign:"left",borderRadius:"6px",transition:"background 0.1s ease"},onMouseEnter:n=>{t||(n.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:n=>{t||(n.currentTarget.style.background="transparent")},children:[E.jsx(XE,{size:13}),E.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title}),E.jsx("span",{className:`badge ${i}`,children:e.level})]})},ZE=({name:e,pages:t,expanded:r,currentSlug:i,onToggle:n,onPageClick:s})=>E.jsxs("div",{children:[E.jsxs("button",{onClick:n,style:{display:"flex",alignItems:"center",gap:"6px",width:"100%",padding:"5px 12px 5px 20px",border:"none",background:"transparent",color:"var(--text-secondary)",cursor:"pointer",fontSize:"13px",fontWeight:500,textAlign:"left",borderRadius:"6px",transition:"background 0.1s ease"},onMouseEnter:a=>{a.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:a=>{a.currentTarget.style.background="transparent"},children:[E.jsx(ob,{size:12,rotated:r}),E.jsx(QE,{size:13,open:r}),E.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),E.jsx("span",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:t.length})]}),r&&E.jsx("div",{children:t.map(a=>E.jsx(sb,{page:a,isActive:a.slug===i,onClick:()=>s(a)},a.slug))})]}),JE=({section:e,expanded:t,currentSlug:r,expandedGroups:i,onToggleSection:n,onToggleGroup:s,onPageClick:a})=>E.jsxs("div",{style:{marginBottom:"2px"},children:[E.jsxs("button",{onClick:n,style:{display:"flex",alignItems:"center",gap:"6px",width:"100%",padding:"7px 12px",border:"none",background:"transparent",color:"var(--text-primary)",cursor:"pointer",fontSize:"13px",fontWeight:600,textAlign:"left",borderRadius:"6px",transition:"background 0.1s ease"},onMouseEnter:c=>{c.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:c=>{c.currentTarget.style.background="transparent"},children:[E.jsx(ob,{size:12,rotated:t}),E.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name})]}),t&&E.jsxs("div",{children:[e.groups.map(c=>E.jsx(ZE,{name:c.name,pages:c.pages,expanded:i.includes(`${e.name}::${c.name}`),currentSlug:r,onToggle:()=>s(`${e.name}::${c.name}`),onPageClick:a},c.name)),e.ungroupedPages.map(c=>E.jsx(sb,{page:c,isActive:c.slug===r,onClick:()=>a(c)},c.slug))]})]}),tF=()=>{const e=Pt(x=>x.currentWiki),t=Pt(x=>x.currentView),r=Pt(x=>x.config),i=Pt(x=>x.expandedSections),n=Pt(x=>x.expandedGroups),s=Pt(x=>x.toggleSection),a=Pt(x=>x.toggleGroup),c=Pt(x=>x.setCurrentView),h=Pt(x=>x.setCurrentWiki),u=Pt(x=>x.setLoadingWiki);Pt(x=>x.setLoadingPage);const d=r==null?void 0:r.lastOpenedProject;xt.useEffect(()=>{if(!d){h(null),c(null);return}let x=!1;return u(!0),c(null),am(d).then(C=>{x||h(C)}).catch(C=>{console.error("Failed to load wiki:",C),x||h(null)}).finally(()=>{x||u(!1)}),()=>{x=!0}},[d,h,c,u]);const p=xt.useMemo(()=>e?KE(e):null,[e]);xt.useEffect(()=>{var x;if(p&&p.sections.length>0){const C=p.sections.map(_=>_.name),k=p.sections.flatMap(_=>_.groups.map(P=>`${_.name}::${P.name}`));Pt.getState().setExpandedSections(C),Pt.getState().setExpandedGroups(k);const w=p.sections[0],T=((x=w.groups[0])==null?void 0:x.pages[0])||w.ungroupedPages[0];T&&!g&&m(T)}},[p]);const m=async x=>{if(!d)return;const C=Pt.getState().projects.find(w=>w.id===d),k=(C==null?void 0:C.currentVersion)||"latest";c({projectId:d,version:k,slug:x.slug,content:"",loading:!0});try{const w=await lm(d,k,x.slug);c({projectId:d,version:k,slug:x.slug,content:w.content,loading:!1})}catch(w){c({projectId:d,version:k,slug:x.slug,content:"",loading:!1,error:w instanceof Error?w.message:"Failed to load page"})}},g=t==null?void 0:t.slug;return E.jsxs("aside",{style:{width:"var(--sidebar-width)",height:"100%",borderRight:"1px solid var(--border)",background:"var(--bg-primary)",display:"flex",flexDirection:"column",overflow:"hidden",flexShrink:0},children:[E.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--border)",fontSize:"12px",fontWeight:600,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.5px",userSelect:"none"},children:"导航"}),E.jsx("div",{style:{flex:1,overflowY:"auto",padding:"8px"},children:p?p.sections.length===0?E.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:"暂无内容"}):p.sections.map(x=>E.jsx(JE,{section:x,expanded:i.includes(x.name),currentSlug:g,expandedGroups:n,onToggleSection:()=>s(x.name),onToggleGroup:C=>a(C),onPageClick:m},x.name)):E.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:d?"加载中...":"请先选择一个项目"})})]})};function eF(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const rF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nF={};function u1(e,t){return(nF.jsx?iF:rF).test(e)}const oF=/[ \t\n\f\r]/g;function sF(e){return typeof e=="object"?e.type==="text"?d1(e.value):!1:d1(e)}function d1(e){return e.replace(oF,"")===""}class Zl{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}Zl.prototype.normal={};Zl.prototype.property={};Zl.prototype.space=void 0;function ab(e,t){const r={},i={};for(const n of e)Object.assign(r,n.property),Object.assign(i,n.normal);return new Zl(r,i,t)}function Vp(e){return e.toLowerCase()}class Dr{constructor(t,r){this.attribute=r,this.property=t}}Dr.prototype.attribute="";Dr.prototype.booleanish=!1;Dr.prototype.boolean=!1;Dr.prototype.commaOrSpaceSeparated=!1;Dr.prototype.commaSeparated=!1;Dr.prototype.defined=!1;Dr.prototype.mustUseProperty=!1;Dr.prototype.number=!1;Dr.prototype.overloadedBoolean=!1;Dr.prototype.property="";Dr.prototype.spaceSeparated=!1;Dr.prototype.space=void 0;let aF=0;const Xt=Vo(),Re=Vo(),Yp=Vo(),pt=Vo(),ye=Vo(),Is=Vo(),Vr=Vo();function Vo(){return 2**++aF}const Gp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xt,booleanish:Re,commaOrSpaceSeparated:Vr,commaSeparated:Is,number:pt,overloadedBoolean:Yp,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),rp=Object.keys(Gp);class cm extends Dr{constructor(t,r,i,n){let s=-1;if(super(t,r),f1(this,"space",n),typeof i=="number")for(;++s<rp.length;){const a=rp[s];f1(this,rp[s],(i&Gp[a])===Gp[a])}}}cm.prototype.defined=!0;function f1(e,t,r){r&&(e[t]=r)}function sa(e){const t={},r={};for(const[i,n]of Object.entries(e.properties)){const s=new cm(i,e.transform(e.attributes||{},i),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Vp(i)]=i,r[Vp(s.attribute)]=i}return new Zl(t,r,e.space)}const lb=sa({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:pt,ariaColIndex:pt,ariaColSpan:pt,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:ye,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:pt,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:pt,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:ye,ariaRowCount:pt,ariaRowIndex:pt,ariaRowSpan:pt,ariaSelected:Re,ariaSetSize:pt,ariaSort:null,ariaValueMax:pt,ariaValueMin:pt,ariaValueNow:pt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cb(e,t){return t in e?e[t]:t}function hb(e,t){return cb(e,t.toLowerCase())}const lF=sa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Is,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:Xt,allowPaymentRequest:Xt,allowUserMedia:Xt,alt:null,as:null,async:Xt,autoCapitalize:null,autoComplete:ye,autoFocus:Xt,autoPlay:Xt,blocking:ye,capture:null,charSet:null,checked:Xt,cite:null,className:ye,cols:pt,colSpan:null,content:null,contentEditable:Re,controls:Xt,controlsList:ye,coords:pt|Is,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:Yp,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xt,formTarget:null,headers:ye,height:pt,hidden:Yp,high:pt,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:Xt,inputMode:null,integrity:null,is:null,isMap:Xt,itemId:null,itemProp:ye,itemRef:ye,itemScope:Xt,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xt,low:pt,manifest:null,max:null,maxLength:pt,media:null,method:null,min:null,minLength:pt,multiple:Xt,muted:Xt,name:null,nonce:null,noModule:Xt,noValidate:Xt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xt,optimum:pt,pattern:null,ping:ye,placeholder:null,playsInline:Xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xt,referrerPolicy:null,rel:ye,required:Xt,reversed:Xt,rows:pt,rowSpan:pt,sandbox:ye,scope:null,scoped:Xt,seamless:Xt,selected:Xt,shadowRootClonable:Xt,shadowRootDelegatesFocus:Xt,shadowRootMode:null,shape:null,size:pt,sizes:null,slot:null,span:pt,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pt,step:null,style:null,tabIndex:pt,target:null,title:null,translate:null,type:null,typeMustMatch:Xt,useMap:null,value:Re,width:pt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:pt,borderColor:null,bottomMargin:pt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xt,declare:Xt,event:null,face:null,frame:null,frameBorder:null,hSpace:pt,leftMargin:pt,link:null,longDesc:null,lowSrc:null,marginHeight:pt,marginWidth:pt,noResize:Xt,noHref:Xt,noShade:Xt,noWrap:Xt,object:null,profile:null,prompt:null,rev:null,rightMargin:pt,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:pt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xt,disableRemotePlayback:Xt,prefix:null,property:null,results:pt,security:null,unselectable:null},space:"html",transform:hb}),cF=sa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Vr,accentHeight:pt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pt,amplitude:pt,arabicForm:null,ascent:pt,attributeName:null,attributeType:null,azimuth:pt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pt,by:null,calcMode:null,capHeight:pt,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pt,diffuseConstant:pt,direction:null,display:null,dur:null,divisor:pt,dominantBaseline:null,download:Xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:pt,enableBackground:null,end:null,event:null,exponent:pt,externalResourcesRequired:null,fill:null,fillOpacity:pt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Is,g2:Is,glyphName:Is,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pt,horizOriginX:pt,horizOriginY:pt,id:null,ideographic:pt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pt,k:pt,k1:pt,k2:pt,k3:pt,k4:pt,kernelMatrix:Vr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pt,overlineThickness:pt,paintOrder:null,panose1:null,path:null,pathLength:pt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pt,pointsAtY:pt,pointsAtZ:pt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vr,rev:Vr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vr,requiredFeatures:Vr,requiredFonts:Vr,requiredFormats:Vr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pt,specularExponent:pt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pt,strikethroughThickness:pt,string:null,stroke:null,strokeDashArray:Vr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pt,strokeOpacity:pt,strokeWidth:null,style:null,surfaceScale:pt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vr,tabIndex:pt,tableValues:null,target:null,targetX:pt,targetY:pt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pt,underlineThickness:pt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pt,values:null,vAlphabetic:pt,vMathematical:pt,vectorEffect:null,vHanging:pt,vIdeographic:pt,version:null,vertAdvY:pt,vertOriginX:pt,vertOriginY:pt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cb}),ub=sa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),db=sa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hb}),fb=sa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hF={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},uF=/[A-Z]/g,p1=/-[a-z]/g,dF=/^data[-\w.:]+$/i;function fF(e,t){const r=Vp(t);let i=t,n=Dr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&dF.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(p1,gF);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!p1.test(s)){let a=s.replace(uF,pF);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}n=cm}return new n(i,t)}function pF(e){return"-"+e.toLowerCase()}function gF(e){return e.charAt(1).toUpperCase()}const mF=ab([lb,lF,ub,db,fb],"html"),hm=ab([lb,cF,ub,db,fb],"svg");function yF(e){return e.join(" ").trim()}var vs={},ip,g1;function xF(){if(g1)return ip;g1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g,h=`
|
|
42
|
+
`,u="/",d="*",p="",m="comment",g="declaration";function x(k,w){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];w=w||{};var T=1,_=1;function P(V){var j=V.match(t);j&&(T+=j.length);var W=V.lastIndexOf(h);_=~W?V.length-W:_+V.length}function O(){var V={line:T,column:_};return function(j){return j.position=new F(V),et(),j}}function F(V){this.start=V,this.end={line:T,column:_},this.source=w.source}F.prototype.content=k;function A(V){var j=new Error(w.source+":"+T+":"+_+": "+V);if(j.reason=V,j.filename=w.source,j.line=T,j.column=_,j.source=k,!w.silent)throw j}function q(V){var j=V.exec(k);if(j){var W=j[0];return P(W),k=k.slice(W.length),j}}function et(){q(r)}function I(V){var j;for(V=V||[];j=N();)j!==!1&&V.push(j);return V}function N(){var V=O();if(!(u!=k.charAt(0)||d!=k.charAt(1))){for(var j=2;p!=k.charAt(j)&&(d!=k.charAt(j)||u!=k.charAt(j+1));)++j;if(j+=2,p===k.charAt(j-1))return A("End of comment missing");var W=k.slice(2,j-2);return _+=2,P(W),k=k.slice(j),_+=2,V({type:m,comment:W})}}function J(){var V=O(),j=q(i);if(j){if(N(),!q(n))return A("property missing ':'");var W=q(s),G=V({type:g,property:C(j[0].replace(e,p)),value:W?C(W[0].replace(e,p)):p});return q(a),G}}function nt(){var V=[];I(V);for(var j;j=J();)j!==!1&&(V.push(j),I(V));return V}return et(),nt()}function C(k){return k?k.replace(c,p):p}return ip=x,ip}var m1;function CF(){if(m1)return vs;m1=1;var e=vs&&vs.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=r;const t=e(xF());function r(i,n){let s=null;if(!i||typeof i!="string")return s;const a=(0,t.default)(i),c=typeof n=="function";return a.forEach(h=>{if(h.type!=="declaration")return;const{property:u,value:d}=h;c?n(u,d,h):d&&(s=s||{},s[u]=d)}),s}return vs}var tl={},y1;function kF(){if(y1)return tl;y1=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,s=function(u){return!u||r.test(u)||e.test(u)},a=function(u,d){return d.toUpperCase()},c=function(u,d){return"".concat(d,"-")},h=function(u,d){return d===void 0&&(d={}),s(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(n,c):u=u.replace(i,c),u.replace(t,a))};return tl.camelCase=h,tl}var el,x1;function bF(){if(x1)return el;x1=1;var e=el&&el.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(CF()),r=kF();function i(n,s){var a={};return!n||typeof n!="string"||(0,t.default)(n,function(c,h){c&&h&&(a[(0,r.camelCase)(c,s)]=h)}),a}return i.default=i,el=i,el}var vF=bF();const wF=Kl(vF),pb=gb("end"),um=gb("start");function gb(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function SF(e){const t=um(e),r=pb(e);if(t&&r)return{start:t,end:r}}function _l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?C1(e.position):"start"in e||"end"in e?C1(e):"line"in e||"column"in e?Xp(e):""}function Xp(e){return k1(e&&e.line)+":"+k1(e&&e.column)}function C1(e){return Xp(e&&e.start)+"-"+Xp(e&&e.end)}function k1(e){return e&&typeof e=="number"?e:1}class dr extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let n="",s={},a=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?n=t:!s.cause&&t&&(a=!0,n=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=c?c.line:void 0,this.name=_l(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}dr.prototype.file="";dr.prototype.name="";dr.prototype.reason="";dr.prototype.message="";dr.prototype.stack="";dr.prototype.column=void 0;dr.prototype.line=void 0;dr.prototype.ancestors=void 0;dr.prototype.cause=void 0;dr.prototype.fatal=void 0;dr.prototype.place=void 0;dr.prototype.ruleId=void 0;dr.prototype.source=void 0;const dm={}.hasOwnProperty,TF=new Map,_F=/[A-Z]/g,BF=new Set(["table","tbody","thead","tfoot","tr"]),LF=new Set(["td","th"]),mb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function EF(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=RF(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=DF(r,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?hm:mF,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=yb(n,e,void 0);return s&&typeof s!="string"?s:n.create(e,n.Fragment,{children:s||void 0},void 0)}function yb(e,t,r){if(t.type==="element")return FF(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return AF(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return IF(e,t,r);if(t.type==="mdxjsEsm")return MF(e,t);if(t.type==="root")return PF(e,t,r);if(t.type==="text")return OF(e,t)}function FF(e,t,r){const i=e.schema;let n=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(n=hm,e.schema=n),e.ancestors.push(t);const s=Cb(e,t.tagName,!1),a=$F(e,t);let c=pm(e,t);return BF.has(t.tagName)&&(c=c.filter(function(h){return typeof h=="string"?!sF(h):!0})),xb(e,a,s,t),fm(a,c),e.ancestors.pop(),e.schema=i,e.create(t,s,a,r)}function AF(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Ol(e,t.position)}function MF(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ol(e,t.position)}function IF(e,t,r){const i=e.schema;let n=i;t.name==="svg"&&i.space==="html"&&(n=hm,e.schema=n),e.ancestors.push(t);const s=t.name===null?e.Fragment:Cb(e,t.name,!0),a=zF(e,t),c=pm(e,t);return xb(e,a,s,t),fm(a,c),e.ancestors.pop(),e.schema=i,e.create(t,s,a,r)}function PF(e,t,r){const i={};return fm(i,pm(e,t)),e.create(t,e.Fragment,i,r)}function OF(e,t){return t.value}function xb(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function fm(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function DF(e,t,r){return i;function i(n,s,a,c){const u=Array.isArray(a.children)?r:t;return c?u(s,a,c):u(s,a)}}function RF(e,t){return r;function r(i,n,s,a){const c=Array.isArray(s.children),h=um(i);return t(n,s,a,c,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function $F(e,t){const r={};let i,n;for(n in t.properties)if(n!=="children"&&dm.call(t.properties,n)){const s=NF(e,n,t.properties[n]);if(s){const[a,c]=s;e.tableCellAlignToStyle&&a==="align"&&typeof c=="string"&&LF.has(t.tagName)?i=c:r[a]=c}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function zF(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const a=s.expression;a.type;const c=a.properties[0];c.type,Object.assign(r,e.evaluater.evaluateExpression(c.argument))}else Ol(e,t.position);else{const n=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,s=e.evaluater.evaluateExpression(c.expression)}else Ol(e,t.position);else s=i.value===null?!0:i.value;r[n]=s}return r}function pm(e,t){const r=[];let i=-1;const n=e.passKeys?new Map:TF;for(;++i<t.children.length;){const s=t.children[i];let a;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const u=n.get(h)||0;a=h+"-"+u,n.set(h,u+1)}}const c=yb(e,s,a);c!==void 0&&r.push(c)}return r}function NF(e,t,r){const i=fF(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?eF(r):yF(r)),i.property==="style"){let n=typeof r=="object"?r:jF(e,String(r));return e.stylePropertyNameCase==="css"&&(n=WF(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&i.space?hF[i.property]||i.property:i.attribute,r]}}function jF(e,t){try{return wF(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,n=new dr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=mb+"#cannot-parse-style-attribute",n}}function Cb(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let s=-1,a;for(;++s<n.length;){const c=u1(n[s])?{type:"Identifier",name:n[s]}:{type:"Literal",value:n[s]};a=a?{type:"MemberExpression",object:a,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}i=a}else i=u1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const n=i.value;return dm.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ol(e)}function Ol(e,t){const r=new dr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=mb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function WF(e){const t={};let r;for(r in e)dm.call(e,r)&&(t[qF(r)]=e[r]);return t}function qF(e){let t=e.replace(_F,HF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function HF(e){return"-"+e.toLowerCase()}const np={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},UF={};function gm(e,t){const r=UF,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return kb(e,i,n)}function kb(e,t,r){if(VF(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return b1(e.children,t,r)}return Array.isArray(e)?b1(e,t,r):""}function b1(e,t,r){const i=[];let n=-1;for(;++n<e.length;)i[n]=kb(e[n],t,r);return i.join("")}function VF(e){return!!(e&&typeof e=="object")}const v1=document.createElement("i");function mm(e){const t="&"+e+";";v1.innerHTML=t;const r=v1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Gr(e,t,r,i){const n=e.length;let s=0,a;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);s<i.length;)a=i.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function li(e,t){return e.length>0?(Gr(e,e.length,0,t),e):t}const w1={}.hasOwnProperty;function bb(e){const t={};let r=-1;for(;++r<e.length;)YF(t,e[r]);return t}function YF(e,t){let r;for(r in t){const n=(w1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let a;if(s)for(a in s){w1.call(n,a)||(n[a]=[]);const c=s[a];GF(n[a],Array.isArray(c)?c:c?[c]:[])}}}function GF(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);Gr(e,0,0,i)}function vb(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Li(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xr=ao(/[A-Za-z]/),hr=ao(/[\dA-Za-z]/),XF=ao(/[#-'*+\--9=?A-Z^-~]/);function ru(e){return e!==null&&(e<32||e===127)}const Qp=ao(/\d/),QF=ao(/[\dA-Fa-f]/),KF=ao(/[!-/:-@[-`{-~]/);function Nt(e){return e!==null&&e<-2}function pe(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}const ju=ao(new RegExp("\\p{P}|\\p{S}","u")),Ro=ao(/\s/);function ao(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function aa(e){const t=[];let r=-1,i=0,n=0;for(;++r<e.length;){const s=e.charCodeAt(r);let a="";if(s===37&&hr(e.charCodeAt(r+1))&&hr(e.charCodeAt(r+2)))n=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(r+1);s<56320&&c>56319&&c<57344?(a=String.fromCharCode(s,c),n=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+n+1,a=""),n&&(r+=n,n=0)}return t.join("")+e.slice(i)}function ne(e,t,r,i){const n=i?i-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(h){return te(h)?(e.enter(r),c(h)):t(h)}function c(h){return te(h)&&s++<n?(e.consume(h),c):(e.exit(r),t(h))}}const ZF={tokenize:JF};function JF(e){const t=e.attempt(this.parser.constructs.contentInitial,i,n);let r;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ne(e,t,"linePrefix")}function n(c){return e.enter("paragraph"),s(c)}function s(c){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,a(c)}function a(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Nt(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),a)}}const tA={tokenize:eA},S1={tokenize:rA};function eA(e){const t=this,r=[];let i=0,n,s,a;return c;function c(_){if(i<r.length){const P=r[i];return t.containerState=P[1],e.attempt(P[0].continuation,h,u)(_)}return u(_)}function h(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&T();const P=t.events.length;let O=P,F;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){F=t.events[O][1].end;break}w(i);let A=P;for(;A<t.events.length;)t.events[A][1].end={...F},A++;return Gr(t.events,O+1,0,t.events.slice(P)),t.events.length=A,u(_)}return c(_)}function u(_){if(i===r.length){if(!n)return m(_);if(n.currentConstruct&&n.currentConstruct.concrete)return x(_);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(S1,d,p)(_)}function d(_){return n&&T(),w(i),m(_)}function p(_){return t.parser.lazy[t.now().line]=i!==r.length,a=t.now().offset,x(_)}function m(_){return t.containerState={},e.attempt(S1,g,x)(_)}function g(_){return i++,r.push([t.currentConstruct,t.containerState]),m(_)}function x(_){if(_===null){n&&T(),w(0),e.consume(_);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:s}),C(_)}function C(_){if(_===null){k(e.exit("chunkFlow"),!0),w(0),e.consume(_);return}return Nt(_)?(e.consume(_),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(_),C)}function k(_,P){const O=t.sliceStream(_);if(P&&O.push(null),_.previous=s,s&&(s.next=_),s=_,n.defineSkip(_.start),n.write(O),t.parser.lazy[_.start.line]){let F=n.events.length;for(;F--;)if(n.events[F][1].start.offset<a&&(!n.events[F][1].end||n.events[F][1].end.offset>a))return;const A=t.events.length;let q=A,et,I;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(et){I=t.events[q][1].end;break}et=!0}for(w(i),F=A;F<t.events.length;)t.events[F][1].end={...I},F++;Gr(t.events,q+1,0,t.events.slice(A)),t.events.length=F}}function w(_){let P=r.length;for(;P-- >_;){const O=r[P];t.containerState=O[1],O[0].exit.call(t,e)}r.length=_}function T(){n.write([null]),s=void 0,n=void 0,t.containerState._closeFlow=void 0}}function rA(e,t,r){return ne(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ks(e){if(e===null||pe(e)||Ro(e))return 1;if(ju(e))return 2}function Wu(e,t,r){const i=[];let n=-1;for(;++n<e.length;){const s=e[n].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Kp={name:"attention",resolveAll:iA,tokenize:nA};function iA(e,t){let r=-1,i,n,s,a,c,h,u,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const p={...e[i][1].end},m={...e[r][1].start};T1(p,-h),T1(m,h),a={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},c={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},n={type:h>1?"strong":"emphasis",start:{...a.start},end:{...c.end}},e[i][1].end={...a.start},e[r][1].start={...c.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=li(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=li(u,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",s,t]]),u=li(u,Wu(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=li(u,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,u=li(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,Gr(e,i-1,r-i+3,u),r=i+u.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function nA(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,n=Ks(i);let s;return a;function a(h){return s=h,e.enter("attentionSequence"),c(h)}function c(h){if(h===s)return e.consume(h),c;const u=e.exit("attentionSequence"),d=Ks(h),p=!d||d===2&&n||r.includes(h),m=!n||n===2&&d||r.includes(i);return u._open=!!(s===42?p:p&&(n||!m)),u._close=!!(s===42?m:m&&(d||!p)),t(h)}}function T1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const oA={name:"autolink",tokenize:sA};function sA(e,t,r){let i=0;return n;function n(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(g){return xr(g)?(e.consume(g),a):g===64?r(g):u(g)}function a(g){return g===43||g===45||g===46||hr(g)?(i=1,c(g)):u(g)}function c(g){return g===58?(e.consume(g),i=0,h):(g===43||g===45||g===46||hr(g))&&i++<32?(e.consume(g),c):(i=0,u(g))}function h(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||ru(g)?r(g):(e.consume(g),h)}function u(g){return g===64?(e.consume(g),d):XF(g)?(e.consume(g),u):r(g)}function d(g){return hr(g)?p(g):r(g)}function p(g){return g===46?(e.consume(g),i=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||hr(g))&&i++<63){const x=g===45?m:p;return e.consume(g),x}return r(g)}}const Jl={partial:!0,tokenize:aA};function aA(e,t,r){return i;function i(s){return te(s)?ne(e,n,"linePrefix")(s):n(s)}function n(s){return s===null||Nt(s)?t(s):r(s)}}const wb={continuation:{tokenize:cA},exit:hA,name:"blockQuote",tokenize:lA};function lA(e,t,r){const i=this;return n;function n(a){if(a===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return r(a)}function s(a){return te(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function cA(e,t,r){const i=this;return n;function n(a){return te(a)?ne(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(wb,t,r)(a)}}function hA(e){e.exit("blockQuote")}const Sb={name:"characterEscape",tokenize:uA};function uA(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),n}function n(s){return KF(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const Tb={name:"characterReference",tokenize:dA};function dA(e,t,r){const i=this;let n=0,s,a;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),h}function h(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,a=hr,d(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=QF,d):(e.enter("characterReferenceValue"),s=7,a=Qp,d(p))}function d(p){if(p===59&&n){const m=e.exit("characterReferenceValue");return a===hr&&!mm(i.sliceSerialize(m))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&n++<s?(e.consume(p),d):r(p)}}const _1={partial:!0,tokenize:pA},B1={concrete:!0,name:"codeFenced",tokenize:fA};function fA(e,t,r){const i=this,n={partial:!0,tokenize:O};let s=0,a=0,c;return h;function h(F){return u(F)}function u(F){const A=i.events[i.events.length-1];return s=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,c=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(F)}function d(F){return F===c?(a++,e.consume(F),d):a<3?r(F):(e.exit("codeFencedFenceSequence"),te(F)?ne(e,p,"whitespace")(F):p(F))}function p(F){return F===null||Nt(F)?(e.exit("codeFencedFence"),i.interrupt?t(F):e.check(_1,C,P)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(F))}function m(F){return F===null||Nt(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(F)):te(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,g,"whitespace")(F)):F===96&&F===c?r(F):(e.consume(F),m)}function g(F){return F===null||Nt(F)?p(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(F))}function x(F){return F===null||Nt(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(F)):F===96&&F===c?r(F):(e.consume(F),x)}function C(F){return e.attempt(n,P,k)(F)}function k(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),w}function w(F){return s>0&&te(F)?ne(e,T,"linePrefix",s+1)(F):T(F)}function T(F){return F===null||Nt(F)?e.check(_1,C,P)(F):(e.enter("codeFlowValue"),_(F))}function _(F){return F===null||Nt(F)?(e.exit("codeFlowValue"),T(F)):(e.consume(F),_)}function P(F){return e.exit("codeFenced"),t(F)}function O(F,A,q){let et=0;return I;function I(j){return F.enter("lineEnding"),F.consume(j),F.exit("lineEnding"),N}function N(j){return F.enter("codeFencedFence"),te(j)?ne(F,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):J(j)}function J(j){return j===c?(F.enter("codeFencedFenceSequence"),nt(j)):q(j)}function nt(j){return j===c?(et++,F.consume(j),nt):et>=a?(F.exit("codeFencedFenceSequence"),te(j)?ne(F,V,"whitespace")(j):V(j)):q(j)}function V(j){return j===null||Nt(j)?(F.exit("codeFencedFence"),A(j)):q(j)}}}function pA(e,t,r){const i=this;return n;function n(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const op={name:"codeIndented",tokenize:mA},gA={partial:!0,tokenize:yA};function mA(e,t,r){const i=this;return n;function n(u){return e.enter("codeIndented"),ne(e,s,"linePrefix",5)(u)}function s(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):r(u)}function a(u){return u===null?h(u):Nt(u)?e.attempt(gA,a,h)(u):(e.enter("codeFlowValue"),c(u))}function c(u){return u===null||Nt(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),c)}function h(u){return e.exit("codeIndented"),t(u)}}function yA(e,t,r){const i=this;return n;function n(a){return i.parser.lazy[i.now().line]?r(a):Nt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n):ne(e,s,"linePrefix",5)(a)}function s(a){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):Nt(a)?n(a):r(a)}}const xA={name:"codeText",previous:kA,resolve:CA,tokenize:bA};function CA(e){let t=e.length-4,r=3,i,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)n===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(n=i):(i===t||e[i][1].type==="lineEnding")&&(e[n][1].type="codeTextData",i!==n+2&&(e[n][1].end=e[i-1][1].end,e.splice(n+2,i-n-2),t-=i-n-2,i=n+2),n=void 0);return e}function kA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bA(e,t,r){let i=0,n,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),i++,c):(e.exit("codeTextSequence"),h(p))}function h(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),h):p===96?(s=e.enter("codeTextSequence"),n=0,d(p)):Nt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Nt(p)?(e.exit("codeTextData"),h(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),n++,d):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",u(p))}}class vA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const n=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return i&&rl(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),rl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),rl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);rl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);rl(this.left,r.reverse())}}}function rl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function _b(e){const t={};let r=-1,i,n,s,a,c,h,u;const d=new vA(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(i=d.get(r),r&&i[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,wA(d,r)),r=t[r],u=!0);else if(i[1]._container){for(s=r,n=void 0;s--;)if(a=d.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(n&&(d.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;n&&(i[1].end={...d.get(n)[1].start},c=d.slice(n,r),c.unshift(i),d.splice(n,r-n+1,c))}}return Gr(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function wA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let n=t-1;const s=[];let a=r._tokenizer;a||(a=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const c=a.events,h=[],u={};let d,p,m=-1,g=r,x=0,C=0;const k=[C];for(;g;){for(;e.get(++n)[1]!==g;);s.push(n),g._tokenizer||(d=i.sliceStream(g),g.next||d.push(null),p&&a.defineSkip(g.start),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=g,g=g.next}for(g=r;++m<c.length;)c[m][0]==="exit"&&c[m-1][0]==="enter"&&c[m][1].type===c[m-1][1].type&&c[m][1].start.line!==c[m][1].end.line&&(C=m+1,k.push(C),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(a.events=[],g?(g._tokenizer=void 0,g.previous=void 0):k.pop(),m=k.length;m--;){const w=c.slice(k[m],k[m+1]),T=s.pop();h.push([T,T+w.length-1]),e.splice(T,2,w)}for(h.reverse(),m=-1;++m<h.length;)u[x+h[m][0]]=x+h[m][1],x+=h[m][1]-h[m][0]-1;return u}const SA={resolve:_A,tokenize:BA},TA={partial:!0,tokenize:LA};function _A(e){return _b(e),e}function BA(e,t){let r;return i;function i(c){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(c)}function n(c){return c===null?s(c):Nt(c)?e.check(TA,a,s)(c):(e.consume(c),n)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function a(c){return e.consume(c),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function LA(e,t,r){const i=this;return n;function n(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ne(e,s,"linePrefix")}function s(a){if(a===null||Nt(a))return r(a);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function Bb(e,t,r,i,n,s,a,c,h){const u=h||Number.POSITIVE_INFINITY;let d=0;return p;function p(w){return w===60?(e.enter(i),e.enter(n),e.enter(s),e.consume(w),e.exit(s),m):w===null||w===32||w===41||ru(w)?r(w):(e.enter(i),e.enter(a),e.enter(c),e.enter("chunkString",{contentType:"string"}),C(w))}function m(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(n),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(c),m(w)):w===null||w===60||Nt(w)?r(w):(e.consume(w),w===92?x:g)}function x(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function C(w){return!d&&(w===null||w===41||pe(w))?(e.exit("chunkString"),e.exit(c),e.exit(a),e.exit(i),t(w)):d<u&&w===40?(e.consume(w),d++,C):w===41?(e.consume(w),d--,C):w===null||w===32||w===40||ru(w)?r(w):(e.consume(w),w===92?k:C)}function k(w){return w===40||w===41||w===92?(e.consume(w),C):C(w)}}function Lb(e,t,r,i,n,s){const a=this;let c=0,h;return u;function u(g){return e.enter(i),e.enter(n),e.consume(g),e.exit(n),e.enter(s),d}function d(g){return c>999||g===null||g===91||g===93&&!h||g===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(g):g===93?(e.exit(s),e.enter(n),e.consume(g),e.exit(n),e.exit(i),t):Nt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||Nt(g)||c++>999?(e.exit("chunkString"),d(g)):(e.consume(g),h||(h=!te(g)),g===92?m:p)}function m(g){return g===91||g===92||g===93?(e.consume(g),c++,p):p(g)}}function Eb(e,t,r,i,n,s){let a;return c;function c(m){return m===34||m===39||m===40?(e.enter(i),e.enter(n),e.consume(m),e.exit(n),a=m===40?41:m,h):r(m)}function h(m){return m===a?(e.enter(n),e.consume(m),e.exit(n),e.exit(i),t):(e.enter(s),u(m))}function u(m){return m===a?(e.exit(s),h(a)):m===null?r(m):Nt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===a||m===null||Nt(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?p:d)}function p(m){return m===a||m===92?(e.consume(m),d):d(m)}}function Bl(e,t){let r;return i;function i(n){return Nt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,i):te(n)?ne(e,i,r?"linePrefix":"lineSuffix")(n):t(n)}}const EA={name:"definition",tokenize:AA},FA={partial:!0,tokenize:MA};function AA(e,t,r){const i=this;let n;return s;function s(g){return e.enter("definition"),a(g)}function a(g){return Lb.call(i,e,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return n=Li(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),h):r(g)}function h(g){return pe(g)?Bl(e,u)(g):u(g)}function u(g){return Bb(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(FA,p,p)(g)}function p(g){return te(g)?ne(e,m,"whitespace")(g):m(g)}function m(g){return g===null||Nt(g)?(e.exit("definition"),i.parser.defined.push(n),t(g)):r(g)}}function MA(e,t,r){return i;function i(c){return pe(c)?Bl(e,n)(c):r(c)}function n(c){return Eb(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return te(c)?ne(e,a,"whitespace")(c):a(c)}function a(c){return c===null||Nt(c)?t(c):r(c)}}const IA={name:"hardBreakEscape",tokenize:PA};function PA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),n}function n(s){return Nt(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const OA={name:"headingAtx",resolve:DA,tokenize:RA};function DA(e,t){let r=e.length-2,i=3,n,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Gr(e,i,r-i+1,[["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t]])),e}function RA(e,t,r){let i=0;return n;function n(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&i++<6?(e.consume(d),a):d===null||pe(d)?(e.exit("atxHeadingSequence"),c(d)):r(d)}function c(d){return d===35?(e.enter("atxHeadingSequence"),h(d)):d===null||Nt(d)?(e.exit("atxHeading"),t(d)):te(d)?ne(e,c,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function h(d){return d===35?(e.consume(d),h):(e.exit("atxHeadingSequence"),c(d))}function u(d){return d===null||d===35||pe(d)?(e.exit("atxHeadingText"),c(d)):(e.consume(d),u)}}const $A=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],L1=["pre","script","style","textarea"],zA={concrete:!0,name:"htmlFlow",resolveTo:WA,tokenize:qA},NA={partial:!0,tokenize:UA},jA={partial:!0,tokenize:HA};function WA(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function qA(e,t,r){const i=this;let n,s,a,c,h;return u;function u(D){return d(D)}function d(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),p}function p(D){return D===33?(e.consume(D),m):D===47?(e.consume(D),s=!0,C):D===63?(e.consume(D),n=3,i.interrupt?t:M):xr(D)?(e.consume(D),a=String.fromCharCode(D),k):r(D)}function m(D){return D===45?(e.consume(D),n=2,g):D===91?(e.consume(D),n=5,c=0,x):xr(D)?(e.consume(D),n=4,i.interrupt?t:M):r(D)}function g(D){return D===45?(e.consume(D),i.interrupt?t:M):r(D)}function x(D){const mt="CDATA[";return D===mt.charCodeAt(c++)?(e.consume(D),c===mt.length?i.interrupt?t:J:x):r(D)}function C(D){return xr(D)?(e.consume(D),a=String.fromCharCode(D),k):r(D)}function k(D){if(D===null||D===47||D===62||pe(D)){const mt=D===47,ft=a.toLowerCase();return!mt&&!s&&L1.includes(ft)?(n=1,i.interrupt?t(D):J(D)):$A.includes(a.toLowerCase())?(n=6,mt?(e.consume(D),w):i.interrupt?t(D):J(D)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(D):s?T(D):_(D))}return D===45||hr(D)?(e.consume(D),a+=String.fromCharCode(D),k):r(D)}function w(D){return D===62?(e.consume(D),i.interrupt?t:J):r(D)}function T(D){return te(D)?(e.consume(D),T):I(D)}function _(D){return D===47?(e.consume(D),I):D===58||D===95||xr(D)?(e.consume(D),P):te(D)?(e.consume(D),_):I(D)}function P(D){return D===45||D===46||D===58||D===95||hr(D)?(e.consume(D),P):O(D)}function O(D){return D===61?(e.consume(D),F):te(D)?(e.consume(D),O):_(D)}function F(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),h=D,A):te(D)?(e.consume(D),F):q(D)}function A(D){return D===h?(e.consume(D),h=null,et):D===null||Nt(D)?r(D):(e.consume(D),A)}function q(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||pe(D)?O(D):(e.consume(D),q)}function et(D){return D===47||D===62||te(D)?_(D):r(D)}function I(D){return D===62?(e.consume(D),N):r(D)}function N(D){return D===null||Nt(D)?J(D):te(D)?(e.consume(D),N):r(D)}function J(D){return D===45&&n===2?(e.consume(D),W):D===60&&n===1?(e.consume(D),G):D===62&&n===4?(e.consume(D),z):D===63&&n===3?(e.consume(D),M):D===93&&n===5?(e.consume(D),K):Nt(D)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(NA,tt,nt)(D)):D===null||Nt(D)?(e.exit("htmlFlowData"),nt(D)):(e.consume(D),J)}function nt(D){return e.check(jA,V,tt)(D)}function V(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),j}function j(D){return D===null||Nt(D)?nt(D):(e.enter("htmlFlowData"),J(D))}function W(D){return D===45?(e.consume(D),M):J(D)}function G(D){return D===47?(e.consume(D),a="",R):J(D)}function R(D){if(D===62){const mt=a.toLowerCase();return L1.includes(mt)?(e.consume(D),z):J(D)}return xr(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),R):J(D)}function K(D){return D===93?(e.consume(D),M):J(D)}function M(D){return D===62?(e.consume(D),z):D===45&&n===2?(e.consume(D),M):J(D)}function z(D){return D===null||Nt(D)?(e.exit("htmlFlowData"),tt(D)):(e.consume(D),z)}function tt(D){return e.exit("htmlFlow"),t(D)}}function HA(e,t,r){const i=this;return n;function n(a){return Nt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):r(a)}function s(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function UA(e,t,r){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Jl,t,r)}}const VA={name:"htmlText",tokenize:YA};function YA(e,t,r){const i=this;let n,s,a;return c;function c(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),h}function h(M){return M===33?(e.consume(M),u):M===47?(e.consume(M),O):M===63?(e.consume(M),_):xr(M)?(e.consume(M),q):r(M)}function u(M){return M===45?(e.consume(M),d):M===91?(e.consume(M),s=0,x):xr(M)?(e.consume(M),T):r(M)}function d(M){return M===45?(e.consume(M),g):r(M)}function p(M){return M===null?r(M):M===45?(e.consume(M),m):Nt(M)?(a=p,G(M)):(e.consume(M),p)}function m(M){return M===45?(e.consume(M),g):p(M)}function g(M){return M===62?W(M):M===45?m(M):p(M)}function x(M){const z="CDATA[";return M===z.charCodeAt(s++)?(e.consume(M),s===z.length?C:x):r(M)}function C(M){return M===null?r(M):M===93?(e.consume(M),k):Nt(M)?(a=C,G(M)):(e.consume(M),C)}function k(M){return M===93?(e.consume(M),w):C(M)}function w(M){return M===62?W(M):M===93?(e.consume(M),w):C(M)}function T(M){return M===null||M===62?W(M):Nt(M)?(a=T,G(M)):(e.consume(M),T)}function _(M){return M===null?r(M):M===63?(e.consume(M),P):Nt(M)?(a=_,G(M)):(e.consume(M),_)}function P(M){return M===62?W(M):_(M)}function O(M){return xr(M)?(e.consume(M),F):r(M)}function F(M){return M===45||hr(M)?(e.consume(M),F):A(M)}function A(M){return Nt(M)?(a=A,G(M)):te(M)?(e.consume(M),A):W(M)}function q(M){return M===45||hr(M)?(e.consume(M),q):M===47||M===62||pe(M)?et(M):r(M)}function et(M){return M===47?(e.consume(M),W):M===58||M===95||xr(M)?(e.consume(M),I):Nt(M)?(a=et,G(M)):te(M)?(e.consume(M),et):W(M)}function I(M){return M===45||M===46||M===58||M===95||hr(M)?(e.consume(M),I):N(M)}function N(M){return M===61?(e.consume(M),J):Nt(M)?(a=N,G(M)):te(M)?(e.consume(M),N):et(M)}function J(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),n=M,nt):Nt(M)?(a=J,G(M)):te(M)?(e.consume(M),J):(e.consume(M),V)}function nt(M){return M===n?(e.consume(M),n=void 0,j):M===null?r(M):Nt(M)?(a=nt,G(M)):(e.consume(M),nt)}function V(M){return M===null||M===34||M===39||M===60||M===61||M===96?r(M):M===47||M===62||pe(M)?et(M):(e.consume(M),V)}function j(M){return M===47||M===62||pe(M)?et(M):r(M)}function W(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):r(M)}function G(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),R}function R(M){return te(M)?ne(e,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):K(M)}function K(M){return e.enter("htmlTextData"),a(M)}}const ym={name:"labelEnd",resolveAll:KA,resolveTo:ZA,tokenize:JA},GA={tokenize:t5},XA={tokenize:e5},QA={tokenize:r5};function KA(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const n=i.type==="labelImage"?4:2;i.type="data",t+=n}}return e.length!==r.length&&Gr(e,0,e.length,r),e}function ZA(e,t){let r=e.length,i=0,n,s,a,c;for(;r--;)if(n=e[r][1],s){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(s=r,n.type!=="labelLink")){i=2;break}}else n.type==="labelEnd"&&(a=r);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[a-2][1].start}};return c=[["enter",h,t],["enter",u,t]],c=li(c,e.slice(s+1,s+i+3)),c=li(c,[["enter",d,t]]),c=li(c,Wu(t.parser.constructs.insideSpan.null,e.slice(s+i+4,a-3),t)),c=li(c,[["exit",d,t],e[a-2],e[a-1],["exit",u,t]]),c=li(c,e.slice(a+1)),c=li(c,[["exit",h,t]]),Gr(e,s,e.length,c),e}function JA(e,t,r){const i=this;let n=i.events.length,s,a;for(;n--;)if((i.events[n][1].type==="labelImage"||i.events[n][1].type==="labelLink")&&!i.events[n][1]._balanced){s=i.events[n][1];break}return c;function c(m){return s?s._inactive?p(m):(a=i.parser.defined.includes(Li(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),h):r(m)}function h(m){return m===40?e.attempt(GA,d,a?d:p)(m):m===91?e.attempt(XA,d,a?u:p)(m):a?d(m):p(m)}function u(m){return e.attempt(QA,d,p)(m)}function d(m){return t(m)}function p(m){return s._balanced=!0,r(m)}}function t5(e,t,r){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),n}function n(p){return pe(p)?Bl(e,s)(p):s(p)}function s(p){return p===41?d(p):Bb(e,a,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return pe(p)?Bl(e,h)(p):d(p)}function c(p){return r(p)}function h(p){return p===34||p===39||p===40?Eb(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function u(p){return pe(p)?Bl(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}function e5(e,t,r){const i=this;return n;function n(c){return Lb.call(i,e,s,a,"reference","referenceMarker","referenceString")(c)}function s(c){return i.parser.defined.includes(Li(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):r(c)}function a(c){return r(c)}}function r5(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),n}function n(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const i5={name:"labelStartImage",resolveAll:ym.resolveAll,tokenize:n5};function n5(e,t,r){const i=this;return n;function n(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),a):r(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const o5={name:"labelStartLink",resolveAll:ym.resolveAll,tokenize:s5};function s5(e,t,r){const i=this;return n;function n(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(a):t(a)}}const sp={name:"lineEnding",tokenize:a5};function a5(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ne(e,t,"linePrefix")}}const Nh={name:"thematicBreak",tokenize:l5};function l5(e,t,r){let i=0,n;return s;function s(u){return e.enter("thematicBreak"),a(u)}function a(u){return n=u,c(u)}function c(u){return u===n?(e.enter("thematicBreakSequence"),h(u)):i>=3&&(u===null||Nt(u))?(e.exit("thematicBreak"),t(u)):r(u)}function h(u){return u===n?(e.consume(u),i++,h):(e.exit("thematicBreakSequence"),te(u)?ne(e,c,"whitespace")(u):c(u))}}const Mr={continuation:{tokenize:d5},exit:p5,name:"list",tokenize:u5},c5={partial:!0,tokenize:g5},h5={partial:!0,tokenize:f5};function u5(e,t,r){const i=this,n=i.events[i.events.length-1];let s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,a=0;return c;function c(g){const x=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:Qp(g)){if(i.containerState.type||(i.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Nh,r,u)(g):u(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(g)}return r(g)}function h(g){return Qp(g)&&++a<10?(e.consume(g),h):(!i.interrupt||a<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):r(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(Jl,i.interrupt?r:d,e.attempt(c5,m,p))}function d(g){return i.containerState.initialBlankLine=!0,s++,m(g)}function p(g){return te(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):r(g)}function m(g){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function d5(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Jl,n,s);function n(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ne(e,t,"listItemIndent",i.containerState.size+1)(c)}function s(c){return i.containerState.furtherBlankLines||!te(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(h5,t,a)(c))}function a(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,ne(e,e.attempt(Mr,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function f5(e,t,r){const i=this;return ne(e,n,"listItemIndent",i.containerState.size+1);function n(s){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(s):r(s)}}function p5(e){e.exit(this.containerState.type)}function g5(e,t,r){const i=this;return ne(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){const a=i.events[i.events.length-1];return!te(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const E1={name:"setextUnderline",resolveTo:m5,tokenize:y5};function m5(e,t){let r=e.length,i,n,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",s?(e.splice(n,0,["enter",a,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=a,e.push(["exit",a,t]),e}function y5(e,t,r){const i=this;let n;return s;function s(u){let d=i.events.length,p;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){p=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),n=u,a(u)):r(u)}function a(u){return e.enter("setextHeadingLineSequence"),c(u)}function c(u){return u===n?(e.consume(u),c):(e.exit("setextHeadingLineSequence"),te(u)?ne(e,h,"lineSuffix")(u):h(u))}function h(u){return u===null||Nt(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const x5={tokenize:C5};function C5(e){const t=this,r=e.attempt(Jl,i,e.attempt(this.parser.constructs.flowInitial,n,ne(e,e.attempt(this.parser.constructs.flow,n,e.attempt(SA,n)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const k5={resolveAll:Ab()},b5=Fb("string"),v5=Fb("text");function Fb(e){return{resolveAll:Ab(e==="text"?w5:void 0),tokenize:t};function t(r){const i=this,n=this.parser.constructs[e],s=r.attempt(n,a,c);return a;function a(d){return u(d)?s(d):c(d)}function c(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),h}function h(d){return u(d)?(r.exit("data"),s(d)):(r.consume(d),h)}function u(d){if(d===null)return!0;const p=n[d];let m=-1;if(p)for(;++m<p.length;){const g=p[m];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function Ab(e){return t;function t(r,i){let n=-1,s;for(;++n<=r.length;)s===void 0?r[n]&&r[n][1].type==="data"&&(s=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==s+2&&(r[s][1].end=r[n-1][1].end,r.splice(s+2,n-s-2),n=s+2),s=void 0);return e?e(r,i):r}}function w5(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],n=t.sliceStream(i);let s=n.length,a=-1,c=0,h;for(;s--;){const u=n[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(u===-2)h=!0,c++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){const u={type:r===e.length||h||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:i.start._bufferIndex+a,_index:i.start._index+s,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const S5={42:Mr,43:Mr,45:Mr,48:Mr,49:Mr,50:Mr,51:Mr,52:Mr,53:Mr,54:Mr,55:Mr,56:Mr,57:Mr,62:wb},T5={91:EA},_5={[-2]:op,[-1]:op,32:op},B5={35:OA,42:Nh,45:[E1,Nh],60:zA,61:E1,95:Nh,96:B1,126:B1},L5={38:Tb,92:Sb},E5={[-5]:sp,[-4]:sp,[-3]:sp,33:i5,38:Tb,42:Kp,60:[oA,VA],91:o5,92:[IA,Sb],93:ym,95:Kp,96:xA},F5={null:[Kp,k5]},A5={null:[42,95]},M5={null:[]},I5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:A5,contentInitial:T5,disable:M5,document:S5,flow:B5,flowInitial:_5,insideSpan:F5,string:L5,text:E5},Symbol.toStringTag,{value:"Module"}));function P5(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const n={},s=[];let a=[],c=[];const h={attempt:A(O),check:A(F),consume:T,enter:_,exit:P,interrupt:A(F,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:p};let d=t.tokenize.call(u,h);return t.resolveAll&&s.push(t),u;function p(N){return a=li(a,N),k(),a[a.length-1]!==null?[]:(q(t,0),u.events=Wu(s,u.events,u),u.events)}function m(N,J){return D5(g(N),J)}function g(N){return O5(a,N)}function x(){const{_bufferIndex:N,_index:J,line:nt,column:V,offset:j}=i;return{_bufferIndex:N,_index:J,line:nt,column:V,offset:j}}function C(N){n[N.line]=N.column,I()}function k(){let N;for(;i._index<a.length;){const J=a[i._index];if(typeof J=="string")for(N=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===N&&i._bufferIndex<J.length;)w(J.charCodeAt(i._bufferIndex));else w(J)}}function w(N){d=d(N)}function T(N){Nt(N)?(i.line++,i.column=1,i.offset+=N===-3?2:1,I()):N!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=N}function _(N,J){const nt=J||{};return nt.type=N,nt.start=x(),u.events.push(["enter",nt,u]),c.push(nt),nt}function P(N){const J=c.pop();return J.end=x(),u.events.push(["exit",J,u]),J}function O(N,J){q(N,J.from)}function F(N,J){J.restore()}function A(N,J){return nt;function nt(V,j,W){let G,R,K,M;return Array.isArray(V)?tt(V):"tokenize"in V?tt([V]):z(V);function z(Ct){return Dt;function Dt(At){const Yt=At!==null&&Ct[At],yt=At!==null&&Ct.null,Ot=[...Array.isArray(Yt)?Yt:Yt?[Yt]:[],...Array.isArray(yt)?yt:yt?[yt]:[]];return tt(Ot)(At)}}function tt(Ct){return G=Ct,R=0,Ct.length===0?W:D(Ct[R])}function D(Ct){return Dt;function Dt(At){return M=et(),K=Ct,Ct.partial||(u.currentConstruct=Ct),Ct.name&&u.parser.constructs.disable.null.includes(Ct.name)?ft():Ct.tokenize.call(J?Object.assign(Object.create(u),J):u,h,mt,ft)(At)}}function mt(Ct){return N(K,M),j}function ft(Ct){return M.restore(),++R<G.length?D(G[R]):W}}}function q(N,J){N.resolveAll&&!s.includes(N)&&s.push(N),N.resolve&&Gr(u.events,J,u.events.length-J,N.resolve(u.events.slice(J),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function et(){const N=x(),J=u.previous,nt=u.currentConstruct,V=u.events.length,j=Array.from(c);return{from:V,restore:W};function W(){i=N,u.previous=J,u.currentConstruct=nt,u.events.length=V,c=j,I()}}function I(){i.line in n&&i.column<2&&(i.column=n[i.line],i.offset+=n[i.line]-1)}}function O5(e,t){const r=t.start._index,i=t.start._bufferIndex,n=t.end._index,s=t.end._bufferIndex;let a;if(r===n)a=[e[r].slice(i,s)];else{if(a=e.slice(r,n),i>-1){const c=a[0];typeof c=="string"?a[0]=c.slice(i):a.shift()}s>0&&a.push(e[n].slice(0,s))}return a}function D5(e,t){let r=-1;const i=[];let n;for(;++r<e.length;){const s=e[r];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
|
|
43
|
+
`;break}case-3:{a=`\r
|
|
44
|
+
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&n)continue;a=" ";break}default:a=String.fromCharCode(s)}n=s===-2,i.push(a)}return i.join("")}function R5(e){const i={constructs:bb([I5,...(e||{}).extensions||[]]),content:n(ZF),defined:[],document:n(tA),flow:n(x5),lazy:{},string:n(b5),text:n(v5)};return i;function n(s){return a;function a(c){return P5(i,s,c)}}}function $5(e){for(;!_b(e););return e}const F1=/[\0\t\n\r]/g;function z5(){let e=1,t="",r=!0,i;return n;function n(s,a,c){const h=[];let u,d,p,m,g;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,t="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(F1.lastIndex=p,u=F1.exec(s),m=u&&u.index!==void 0?u.index:s.length,g=s.charCodeAt(m),!u){t=s.slice(p);break}if(g===10&&p===m&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),p<m&&(h.push(s.slice(p,m)),e+=m-p),g){case 0:{h.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,h.push(-2);e++<d;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}p=m+1}return c&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const N5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function j5(e){return e.replace(N5,W5)}function W5(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const n=r.charCodeAt(1),s=n===120||n===88;return vb(r.slice(s?2:1),s?16:10)}return mm(r)||e}const Mb={}.hasOwnProperty;function q5(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),H5(r)($5(R5(r).document().write(z5()(e,t,!0))))}function H5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(di),autolinkProtocol:et,autolinkEmail:et,atxHeading:s(Be),blockQuote:s(yt),characterEscape:et,characterReference:et,codeFenced:s(Ot),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(Ot,a),codeText:s(oe,a),codeTextData:et,data:et,codeFlowValue:et,definition:s(ae),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(He),hardBreakEscape:s(Kr),hardBreakTrailing:s(Kr),htmlFlow:s(ui,a),htmlFlowData:et,htmlText:s(ui,a),htmlTextData:et,image:s(pr),label:a,link:s(di),listItem:s(fi),listItemValue:m,listOrdered:s(Rr,p),listUnordered:s(Rr),paragraph:s(Tn),reference:D,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Be),strong:s(Ko),thematicBreak:s(Oi)},exit:{atxHeading:h(),atxHeadingSequence:O,autolink:h(),autolinkEmail:Yt,autolinkProtocol:At,blockQuote:h(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:ft,characterReferenceMarkerNumeric:ft,characterReferenceValue:Ct,characterReference:Dt,codeFenced:h(k),codeFencedFence:C,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:I,codeIndented:h(w),codeText:h(j),codeTextData:I,data:I,definition:h(),definitionDestinationString:P,definitionLabelString:T,definitionTitleString:_,emphasis:h(),hardBreakEscape:h(J),hardBreakTrailing:h(J),htmlFlow:h(nt),htmlFlowData:I,htmlText:h(V),htmlTextData:I,image:h(G),label:K,labelText:R,lineEnding:N,link:h(W),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:mt,resourceDestinationString:M,resourceTitleString:z,resource:tt,setextHeading:h(q),setextHeadingLineSequence:A,setextHeadingText:F,strong:h(),thematicBreak:h()}};Ib(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(st){let ut={type:"root",children:[]};const Rt={stack:[ut],tokenStack:[],config:t,enter:c,exit:u,buffer:a,resume:d,data:r},Gt=[];let ee=-1;for(;++ee<st.length;)if(st[ee][1].type==="listOrdered"||st[ee][1].type==="listUnordered")if(st[ee][0]==="enter")Gt.push(ee);else{const Me=Gt.pop();ee=n(st,Me,ee)}for(ee=-1;++ee<st.length;){const Me=t[st[ee][0]];Mb.call(Me,st[ee][1].type)&&Me[st[ee][1].type].call(Object.assign({sliceSerialize:st[ee][2].sliceSerialize},Rt),st[ee][1])}if(Rt.tokenStack.length>0){const Me=Rt.tokenStack[Rt.tokenStack.length-1];(Me[1]||A1).call(Rt,void 0,Me[0])}for(ut.position={start:Qn(st.length>0?st[0][1].start:{line:1,column:1,offset:0}),end:Qn(st.length>0?st[st.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)ut=t.transforms[ee](ut)||ut;return ut}function n(st,ut,Rt){let Gt=ut-1,ee=-1,Me=!1,Zr,Qe,$r,Ke;for(;++Gt<=Rt;){const be=st[Gt];switch(be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{be[0]==="enter"?ee++:ee--,Ke=void 0;break}case"lineEndingBlank":{be[0]==="enter"&&(Zr&&!Ke&&!ee&&!$r&&($r=Gt),Ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ke=void 0}if(!ee&&be[0]==="enter"&&be[1].type==="listItemPrefix"||ee===-1&&be[0]==="exit"&&(be[1].type==="listUnordered"||be[1].type==="listOrdered")){if(Zr){let Sr=Gt;for(Qe=void 0;Sr--;){const Ze=st[Sr];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;Qe&&(st[Qe][1].type="lineEndingBlank",Me=!0),Ze[1].type="lineEnding",Qe=Sr}else if(!(Ze[1].type==="linePrefix"||Ze[1].type==="blockQuotePrefix"||Ze[1].type==="blockQuotePrefixWhitespace"||Ze[1].type==="blockQuoteMarker"||Ze[1].type==="listItemIndent"))break}$r&&(!Qe||$r<Qe)&&(Zr._spread=!0),Zr.end=Object.assign({},Qe?st[Qe][1].start:be[1].end),st.splice(Qe||Gt,0,["exit",Zr,be[2]]),Gt++,Rt++}if(be[1].type==="listItemPrefix"){const Sr={type:"listItem",_spread:!1,start:Object.assign({},be[1].start),end:void 0};Zr=Sr,st.splice(Gt,0,["enter",Sr,be[2]]),Gt++,Rt++,$r=void 0,Ke=!0}}}return st[ut][1]._spread=Me,Rt}function s(st,ut){return Rt;function Rt(Gt){c.call(this,st(Gt),Gt),ut&&ut.call(this,Gt)}}function a(){this.stack.push({type:"fragment",children:[]})}function c(st,ut,Rt){this.stack[this.stack.length-1].children.push(st),this.stack.push(st),this.tokenStack.push([ut,Rt||void 0]),st.position={start:Qn(ut.start),end:void 0}}function h(st){return ut;function ut(Rt){st&&st.call(this,Rt),u.call(this,Rt)}}function u(st,ut){const Rt=this.stack.pop(),Gt=this.tokenStack.pop();if(Gt)Gt[0].type!==st.type&&(ut?ut.call(this,st,Gt[0]):(Gt[1]||A1).call(this,st,Gt[0]));else throw new Error("Cannot close `"+st.type+"` ("+_l({start:st.start,end:st.end})+"): it’s not open");Rt.position.end=Qn(st.end)}function d(){return gm(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function m(st){if(this.data.expectingFirstListItemValue){const ut=this.stack[this.stack.length-2];ut.start=Number.parseInt(this.sliceSerialize(st),10),this.data.expectingFirstListItemValue=void 0}}function g(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.lang=st}function x(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.meta=st}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.value=st.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.value=st.replace(/(\r?\n|\r)$/g,"")}function T(st){const ut=this.resume(),Rt=this.stack[this.stack.length-1];Rt.label=ut,Rt.identifier=Li(this.sliceSerialize(st)).toLowerCase()}function _(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.title=st}function P(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.url=st}function O(st){const ut=this.stack[this.stack.length-1];if(!ut.depth){const Rt=this.sliceSerialize(st).length;ut.depth=Rt}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function A(st){const ut=this.stack[this.stack.length-1];ut.depth=this.sliceSerialize(st).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function et(st){const Rt=this.stack[this.stack.length-1].children;let Gt=Rt[Rt.length-1];(!Gt||Gt.type!=="text")&&(Gt=_n(),Gt.position={start:Qn(st.start),end:void 0},Rt.push(Gt)),this.stack.push(Gt)}function I(st){const ut=this.stack.pop();ut.value+=this.sliceSerialize(st),ut.position.end=Qn(st.end)}function N(st){const ut=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Rt=ut.children[ut.children.length-1];Rt.position.end=Qn(st.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ut.type)&&(et.call(this,st),I.call(this,st))}function J(){this.data.atHardBreak=!0}function nt(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.value=st}function V(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.value=st}function j(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.value=st}function W(){const st=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";st.type+="Reference",st.referenceType=ut,delete st.url,delete st.title}else delete st.identifier,delete st.label;this.data.referenceType=void 0}function G(){const st=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";st.type+="Reference",st.referenceType=ut,delete st.url,delete st.title}else delete st.identifier,delete st.label;this.data.referenceType=void 0}function R(st){const ut=this.sliceSerialize(st),Rt=this.stack[this.stack.length-2];Rt.label=j5(ut),Rt.identifier=Li(ut).toLowerCase()}function K(){const st=this.stack[this.stack.length-1],ut=this.resume(),Rt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Rt.type==="link"){const Gt=st.children;Rt.children=Gt}else Rt.alt=ut}function M(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.url=st}function z(){const st=this.resume(),ut=this.stack[this.stack.length-1];ut.title=st}function tt(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function mt(st){const ut=this.resume(),Rt=this.stack[this.stack.length-1];Rt.label=ut,Rt.identifier=Li(this.sliceSerialize(st)).toLowerCase(),this.data.referenceType="full"}function ft(st){this.data.characterReferenceType=st.type}function Ct(st){const ut=this.sliceSerialize(st),Rt=this.data.characterReferenceType;let Gt;Rt?(Gt=vb(ut,Rt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Gt=mm(ut);const ee=this.stack[this.stack.length-1];ee.value+=Gt}function Dt(st){const ut=this.stack.pop();ut.position.end=Qn(st.end)}function At(st){I.call(this,st);const ut=this.stack[this.stack.length-1];ut.url=this.sliceSerialize(st)}function Yt(st){I.call(this,st);const ut=this.stack[this.stack.length-1];ut.url="mailto:"+this.sliceSerialize(st)}function yt(){return{type:"blockquote",children:[]}}function Ot(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function He(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function Kr(){return{type:"break"}}function ui(){return{type:"html",value:""}}function pr(){return{type:"image",title:null,url:"",alt:null}}function di(){return{type:"link",title:null,url:"",children:[]}}function Rr(st){return{type:"list",ordered:st.type==="listOrdered",start:null,spread:st._spread,children:[]}}function fi(st){return{type:"listItem",spread:st._spread,checked:null,children:[]}}function Tn(){return{type:"paragraph",children:[]}}function Ko(){return{type:"strong",children:[]}}function _n(){return{type:"text",value:""}}function Oi(){return{type:"thematicBreak"}}}function Qn(e){return{line:e.line,column:e.column,offset:e.offset}}function Ib(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Ib(e,i):U5(e,i)}}function U5(e,t){let r;for(r in t)if(Mb.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function A1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_l({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_l({start:t.start,end:t.end})+") is still open")}function V5(e){const t=this;t.parser=r;function r(i){return q5(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Y5(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function G5(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
45
|
+
`}]}function X5(e,t){const r=t.value?t.value+`
|
|
46
|
+
`:"",i={},n=t.lang?t.lang.split(/\s+/):[];n.length>0&&(i.className=["language-"+n[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Q5(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function K5(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Z5(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),n=aa(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let a,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),a=e.footnoteOrder.length):a=s+1,c+=1,e.footnoteCounts.set(i,c);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,h);const u={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,u),e.applyData(t,u)}function J5(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tM(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Pb(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const n=e.all(t),s=n[0];s&&s.type==="text"?s.value="["+s.value:n.unshift({type:"text",value:"["});const a=n[n.length-1];return a&&a.type==="text"?a.value+=i:n.push({type:"text",value:i}),n}function eM(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Pb(e,t);const n={src:aa(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(n.title=i.title);const s={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,s),e.applyData(t,s)}function rM(e,t){const r={src:aa(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function iM(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function nM(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Pb(e,t);const n={href:aa(i.url||"")};i.title!==null&&i.title!==void 0&&(n.title=i.title);const s={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function oM(e,t){const r={href:aa(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function sM(e,t,r){const i=e.all(t),n=r?aM(r):Ob(t),s={},a=[];if(typeof t.checked=="boolean"){const d=i[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const d=i[c];(n||c!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
|
|
47
|
+
`}),d.type==="element"&&d.tagName==="p"&&!n?a.push(...d.children):a.push(d)}const h=i[i.length-1];h&&(n||h.type!=="element"||h.tagName!=="p")&&a.push({type:"text",value:`
|
|
48
|
+
`});const u={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,u),e.applyData(t,u)}function aM(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Ob(r[i])}return t}function Ob(e){const t=e.spread;return t??e.children.length>1}function lM(e,t){const r={},i=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++n<i.length;){const a=i[n];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function cM(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hM(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function uM(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dM(e,t){const r=e.all(t),i=r.shift(),n=[];if(i){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],a),n.push(a)}if(r.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},c=um(t.children[1]),h=pb(t.children[t.children.length-1]);c&&h&&(a.position={start:c,end:h}),n.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)}function fM(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,c=a?a.length:t.children.length;let h=-1;const u=[];for(;++h<c;){const p=t.children[h],m={},g=a?a[h]:void 0;g&&(m.align=g);let x={type:"element",tagName:s,properties:m,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),u.push(x)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function pM(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const M1=9,I1=32;function gM(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),n=0;const s=[];for(;i;)s.push(P1(t.slice(n,i.index),n>0,!0),i[0]),n=i.index+i[0].length,i=r.exec(t);return s.push(P1(t.slice(n),n>0,!1)),s.join("")}function P1(e,t,r){let i=0,n=e.length;if(t){let s=e.codePointAt(i);for(;s===M1||s===I1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(n-1);for(;s===M1||s===I1;)n--,s=e.codePointAt(n-1)}return n>i?e.slice(i,n):""}function mM(e,t){const r={type:"text",value:gM(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function yM(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const xM={blockquote:Y5,break:G5,code:X5,delete:Q5,emphasis:K5,footnoteReference:Z5,heading:J5,html:tM,imageReference:eM,image:rM,inlineCode:iM,linkReference:nM,link:oM,listItem:sM,list:lM,paragraph:cM,root:hM,strong:uM,table:dM,tableCell:pM,tableRow:fM,text:mM,thematicBreak:yM,toml:bh,yaml:bh,definition:bh,footnoteDefinition:bh};function bh(){}const Db=-1,qu=0,Ll=1,iu=2,xm=3,Cm=4,km=5,bm=6,Rb=7,$b=8,O1=typeof self=="object"?self:globalThis,CM=(e,t)=>{const r=(n,s)=>(e.set(s,n),n),i=n=>{if(e.has(n))return e.get(n);const[s,a]=t[n];switch(s){case qu:case Db:return r(a,n);case Ll:{const c=r([],n);for(const h of a)c.push(i(h));return c}case iu:{const c=r({},n);for(const[h,u]of a)c[i(h)]=i(u);return c}case xm:return r(new Date(a),n);case Cm:{const{source:c,flags:h}=a;return r(new RegExp(c,h),n)}case km:{const c=r(new Map,n);for(const[h,u]of a)c.set(i(h),i(u));return c}case bm:{const c=r(new Set,n);for(const h of a)c.add(i(h));return c}case Rb:{const{name:c,message:h}=a;return r(new O1[c](h),n)}case $b:return r(BigInt(a),n);case"BigInt":return r(Object(BigInt(a)),n);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:c}=new Uint8Array(a);return r(new DataView(c),a)}}return r(new O1[s](a),n)};return i},D1=e=>CM(new Map,e)(0),ws="",{toString:kM}={},{keys:bM}=Object,il=e=>{const t=typeof e;if(t!=="object"||!e)return[qu,t];const r=kM.call(e).slice(8,-1);switch(r){case"Array":return[Ll,ws];case"Object":return[iu,ws];case"Date":return[xm,ws];case"RegExp":return[Cm,ws];case"Map":return[km,ws];case"Set":return[bm,ws];case"DataView":return[Ll,r]}return r.includes("Array")?[Ll,r]:r.includes("Error")?[Rb,r]:[iu,r]},vh=([e,t])=>e===qu&&(t==="function"||t==="symbol"),vM=(e,t,r,i)=>{const n=(a,c)=>{const h=i.push(a)-1;return r.set(c,h),h},s=a=>{if(r.has(a))return r.get(a);let[c,h]=il(a);switch(c){case qu:{let d=a;switch(h){case"bigint":c=$b,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);d=null;break;case"undefined":return n([Db],a)}return n([c,d],a)}case Ll:{if(h){let m=a;return h==="DataView"?m=new Uint8Array(a.buffer):h==="ArrayBuffer"&&(m=new Uint8Array(a)),n([h,[...m]],a)}const d=[],p=n([c,d],a);for(const m of a)d.push(s(m));return p}case iu:{if(h)switch(h){case"BigInt":return n([h,a.toString()],a);case"Boolean":case"Number":case"String":return n([h,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const d=[],p=n([c,d],a);for(const m of bM(a))(e||!vh(il(a[m])))&&d.push([s(m),s(a[m])]);return p}case xm:return n([c,a.toISOString()],a);case Cm:{const{source:d,flags:p}=a;return n([c,{source:d,flags:p}],a)}case km:{const d=[],p=n([c,d],a);for(const[m,g]of a)(e||!(vh(il(m))||vh(il(g))))&&d.push([s(m),s(g)]);return p}case bm:{const d=[],p=n([c,d],a);for(const m of a)(e||!vh(il(m)))&&d.push(s(m));return p}}const{message:u}=a;return n([c,{name:h,message:u}],a)};return s},R1=(e,{json:t,lossy:r}={})=>{const i=[];return vM(!(t||r),!!t,new Map,i)(e),i},nu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?D1(R1(e,t)):structuredClone(e):(e,t)=>D1(R1(e,t));function wM(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function SM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function TM(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||wM,i=e.options.footnoteBackLabel||SM,n=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let h=-1;for(;++h<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[h]);if(!u)continue;const d=e.all(u),p=String(u.identifier).toUpperCase(),m=aa(p.toLowerCase());let g=0;const x=[],C=e.footnoteCounts.get(p);for(;C!==void 0&&++g<=C;){x.length>0&&x.push({type:"text",value:" "});let T=typeof r=="string"?r:r(h,g);typeof T=="string"&&(T={type:"text",value:T}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,g),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const T=k.children[k.children.length-1];T&&T.type==="text"?T.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...x)}else d.push(...x);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(u,w),c.push(w)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...nu(a),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
|
|
49
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
50
|
+
`}]}}const Hu=(function(e){if(e==null)return EM;if(typeof e=="function")return Uu(e);if(typeof e=="object")return Array.isArray(e)?_M(e):BM(e);if(typeof e=="string")return LM(e);throw new Error("Expected function, string, or object as test")});function _M(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Hu(e[r]);return Uu(i);function i(...n){let s=-1;for(;++s<t.length;)if(t[s].apply(this,n))return!0;return!1}}function BM(e){const t=e;return Uu(r);function r(i){const n=i;let s;for(s in e)if(n[s]!==t[s])return!1;return!0}}function LM(e){return Uu(t);function t(r){return r&&r.type===e}}function Uu(e){return t;function t(r,i,n){return!!(FM(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function EM(){return!0}function FM(e){return e!==null&&typeof e=="object"&&"type"in e}const zb=[],AM=!0,Zp=!1,MM="skip";function Nb(e,t,r,i){let n;typeof t=="function"&&typeof r!="function"?(i=r,r=t):n=t;const s=Hu(n),a=i?-1:1;c(e,void 0,[])();function c(h,u,d){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const g=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(h.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=zb,x,C,k;if((!t||s(h,u,d[d.length-1]||void 0))&&(g=IM(r(h,d)),g[0]===Zp))return g;if("children"in h&&h.children){const w=h;if(w.children&&g[0]!==MM)for(C=(i?w.children.length:-1)+a,k=d.concat(w);C>-1&&C<w.children.length;){const T=w.children[C];if(x=c(T,C,k)(),x[0]===Zp)return x;C=typeof x[1]=="number"?x[1]:C+a}}return g}}}function IM(e){return Array.isArray(e)?e:typeof e=="number"?[AM,e]:e==null?zb:[e]}function vm(e,t,r,i){let n,s,a;typeof t=="function"&&typeof r!="function"?(s=void 0,a=t,n=r):(s=t,a=r,n=i),Nb(e,s,c,n);function c(h,u){const d=u[u.length-1],p=d?d.children.indexOf(h):void 0;return a(h,p,d)}}const Jp={}.hasOwnProperty,PM={};function OM(e,t){const r=t||PM,i=new Map,n=new Map,s=new Map,a={...xM,...r.handlers},c={all:u,applyData:RM,definitionById:i,footnoteById:n,footnoteCounts:s,footnoteOrder:[],handlers:a,one:h,options:r,patch:DM,wrap:zM};return vm(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?i:n,m=String(d.identifier).toUpperCase();p.has(m)||p.set(m,d)}}),c;function h(d,p){const m=d.type,g=c.handlers[m];if(Jp.call(c.handlers,m)&&g)return g(c,d,p);if(c.options.passThrough&&c.options.passThrough.includes(m)){if("children"in d){const{children:C,...k}=d,w=nu(k);return w.children=c.all(d),w}return nu(d)}return(c.options.unknownHandler||$M)(c,d,p)}function u(d){const p=[];if("children"in d){const m=d.children;let g=-1;for(;++g<m.length;){const x=c.one(m[g],d);if(x){if(g&&m[g-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=$1(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=$1(C.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function DM(e,t){e.position&&(t.position=SF(e))}function RM(e,t){let r=t;if(e&&e.data){const i=e.data.hName,n=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const a="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:a}}r.type==="element"&&s&&Object.assign(r.properties,nu(s)),"children"in r&&r.children&&n!==null&&n!==void 0&&(r.children=n)}return r}function $M(e,t){const r=t.data||{},i="value"in t&&!(Jp.call(r,"hProperties")||Jp.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function zM(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
51
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
52
|
+
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
53
|
+
`}),r}function $1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function z1(e,t){const r=OM(e,t),i=r.one(e,void 0),n=TM(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return n&&s.children.push({type:"text",value:`
|
|
54
|
+
`},n),s}function NM(e,t){return e&&"run"in e?async function(r,i){const n=z1(r,{file:i,...t});await e.run(n,i)}:function(r,i){return z1(r,{file:i,...e||t})}}function N1(e){if(e)throw e}var ap,j1;function jM(){if(j1)return ap;j1=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},a=function(u,d){r&&d.name==="__proto__"?r(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},c=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(i)return i(u,d).value}else return;return u[d]};return ap=function h(){var u,d,p,m,g,x,C=arguments[0],k=1,w=arguments.length,T=!1;for(typeof C=="boolean"&&(T=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<w;++k)if(u=arguments[k],u!=null)for(d in u)p=c(C,d),m=c(u,d),C!==m&&(T&&m&&(s(m)||(g=n(m)))?(g?(g=!1,x=p&&n(p)?p:[]):x=p&&s(p)?p:{},a(C,{name:d,newValue:h(T,x,m)})):typeof m<"u"&&a(C,{name:d,newValue:m}));return C},ap}var WM=jM();const lp=Kl(WM);function tg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qM(){const e=[],t={run:r,use:i};return t;function r(...n){let s=-1;const a=n.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...n);function c(h,...u){const d=e[++s];let p=-1;if(h){a(h);return}for(;++p<n.length;)(u[p]===null||u[p]===void 0)&&(u[p]=n[p]);n=u,d?HM(d,c)(...u):a(null,...u)}}function i(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function HM(e,t){let r;return i;function i(...a){const c=e.length>a.length;let h;c&&a.push(n);try{h=e.apply(this,a)}catch(u){const d=u;if(c&&r)throw d;return n(d)}c||(h&&h.then&&typeof h.then=="function"?h.then(s,n):h instanceof Error?n(h):s(h))}function n(a,...c){r||(r=!0,t(a,...c))}function s(a){n(null,a)}}const Hi={basename:UM,dirname:VM,extname:YM,join:GM,sep:"/"};function UM(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tc(e);let r=0,i=-1,n=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(s){r=n+1;break}}else i<0&&(s=!0,i=n+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,c=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(s){r=n+1;break}}else a<0&&(s=!0,a=n+1),c>-1&&(e.codePointAt(n)===t.codePointAt(c--)?c<0&&(i=n):(c=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function VM(e){if(tc(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function YM(e){tc(e);let t=e.length,r=-1,i=0,n=-1,s=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),c===46?n<0?n=t:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||r<0||s===0||s===1&&n===r-1&&n===i+1?"":e.slice(n,r)}function GM(...e){let t=-1,r;for(;++t<e.length;)tc(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":XM(r)}function XM(e){tc(e);const t=e.codePointAt(0)===47;let r=QM(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function QM(e,t){let r="",i=0,n=-1,s=0,a=-1,c,h;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(n===a-1||s===1))if(n!==a-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",i=0):(r=r.slice(0,h),i=r.length-1-r.lastIndexOf("/")),n=a,s=0;continue}}else if(r.length>0){r="",i=0,n=a,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(n+1,a):r=e.slice(n+1,a),i=a-n-1;n=a,s=0}else c===46&&s>-1?s++:s=-1}return r}function tc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const KM={cwd:ZM};function ZM(){return"/"}function eg(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function JM(e){if(typeof e=="string")e=new URL(e);else if(!eg(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return t3(e)}function t3(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(t)}const cp=["history","path","basename","stem","extname","dirname"];class jb{constructor(t){let r;t?eg(t)?r={path:t}:typeof t=="string"||e3(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":KM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<cp.length;){const s=cp[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let n;for(n in r)cp.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?Hi.basename(this.path):void 0}set basename(t){up(t,"basename"),hp(t,"basename"),this.path=Hi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Hi.dirname(this.path):void 0}set dirname(t){W1(this.basename,"dirname"),this.path=Hi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Hi.extname(this.path):void 0}set extname(t){if(hp(t,"extname"),W1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Hi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){eg(t)&&(t=JM(t)),up(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Hi.basename(this.path,this.extname):void 0}set stem(t){up(t,"stem"),hp(t,"stem"),this.path=Hi.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const n=this.message(t,r,i);throw n.fatal=!0,n}info(t,r,i){const n=this.message(t,r,i);return n.fatal=void 0,n}message(t,r,i){const n=new dr(t,r,i);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function hp(e,t){if(e&&e.includes(Hi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Hi.sep+"`")}function up(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function W1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function e3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r3=(function(e){const i=this.constructor.prototype,n=i[e],s=function(){return n.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),i3={}.hasOwnProperty;class wm extends r3{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qM()}copy(){const t=new wm;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(lp(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(pp("data",this.frozen),this.namespace[t]=r,this):i3.call(this.namespace,t)&&this.namespace[t]||void 0:t?(pp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const n=r.call(t,...i);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=wh(t),i=this.parser||this.Parser;return dp("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),dp("process",this.parser||this.Parser),fp("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(s,a){const c=wh(t),h=i.parse(c);i.run(h,c,function(d,p,m){if(d||!p||!m)return u(d);const g=p,x=i.stringify(g,m);s3(x)?m.value=x:m.result=x,u(d,m)});function u(d,p){d||!p?a(d):s?s(p):r(void 0,p)}}}processSync(t){let r=!1,i;return this.freeze(),dp("processSync",this.parser||this.Parser),fp("processSync",this.compiler||this.Compiler),this.process(t,n),H1("processSync","process",r),i;function n(s,a){r=!0,N1(s),i=a}}run(t,r,i){q1(t),this.freeze();const n=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(a,c){const h=wh(r);n.run(t,h,u);function u(d,p,m){const g=p||t;d?c(d):a?a(g):i(void 0,g,m)}}}runSync(t,r){let i=!1,n;return this.run(t,r,s),H1("runSync","run",i),n;function s(a,c){N1(a),n=c,i=!0}}stringify(t,r){this.freeze();const i=wh(r),n=this.compiler||this.Compiler;return fp("stringify",n),q1(t),n(t,i)}use(t,...r){const i=this.attachers,n=this.namespace;if(pp("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")h(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...p]=u;h(d,p)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(u.plugins),u.settings&&(n.settings=lp(!0,n.settings,u.settings))}function c(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const p=u[d];s(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function h(u,d){let p=-1,m=-1;for(;++p<i.length;)if(i[p][0]===u){m=p;break}if(m===-1)i.push([u,...d]);else if(d.length>0){let[g,...x]=d;const C=i[m][1];tg(C)&&tg(g)&&(g=lp(!0,C,g)),i[m]=[u,g,...x]}}}}const n3=new wm().freeze();function dp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function q1(e){if(!tg(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function H1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wh(e){return o3(e)?e:new jb(e)}function o3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function s3(e){return typeof e=="string"||a3(e)}function a3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const l3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",U1=[],V1={allowDangerousHtml:!0},c3=/^(https?|ircs?|mailto|xmpp)$/i,h3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function u3(e){const t=d3(e),r=f3(e);return p3(t.runSync(t.parse(r),r),e)}function d3(e){const t=e.rehypePlugins||U1,r=e.remarkPlugins||U1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...V1}:V1;return n3().use(V5).use(r).use(NM,i).use(t)}function f3(e){const t=e.children||"",r=new jb;return typeof t=="string"&&(r.value=t),r}function p3(e,t){const r=t.allowedElements,i=t.allowElement,n=t.components,s=t.disallowedElements,a=t.skipHtml,c=t.unwrapDisallowed,h=t.urlTransform||g3;for(const d of h3)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+l3+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),vm(e,u),EF(e,{Fragment:E.Fragment,components:n,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function u(d,p,m){if(d.type==="raw"&&m&&typeof p=="number")return a?m.children.splice(p,1):m.children[p]={type:"text",value:d.value},p;if(d.type==="element"){let g;for(g in np)if(Object.hasOwn(np,g)&&Object.hasOwn(d.properties,g)){const x=d.properties[g],C=np[g];(C===null||C.includes(d.tagName))&&(d.properties[g]=h(String(x||""),g,d))}}if(d.type==="element"){let g=r?!r.includes(d.tagName):s?s.includes(d.tagName):!1;if(!g&&i&&typeof p=="number"&&(g=!i(d,p,m)),g&&m&&typeof p=="number")return c&&d.children?m.children.splice(p,1,...d.children):m.children.splice(p,1),p}}}function g3(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),n=e.indexOf("/");return t===-1||n!==-1&&t>n||r!==-1&&t>r||i!==-1&&t>i||c3.test(e.slice(0,t))?e:""}function Y1(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,n=r.indexOf(t);for(;n!==-1;)i++,n=r.indexOf(t,n+t.length);return i}function m3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function y3(e,t,r){const n=Hu((r||{}).ignore||[]),s=x3(t);let a=-1;for(;++a<s.length;)Nb(e,"text",c);function c(u,d){let p=-1,m;for(;++p<d.length;){const g=d[p],x=m?m.children:void 0;if(n(g,x?x.indexOf(g):void 0,m))return;m=g}if(m)return h(u,d)}function h(u,d){const p=d[d.length-1],m=s[a][0],g=s[a][1];let x=0;const k=p.children.indexOf(u);let w=!1,T=[];m.lastIndex=0;let _=m.exec(u.value);for(;_;){const P=_.index,O={index:_.index,input:_.input,stack:[...d,u]};let F=g(..._,O);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?m.lastIndex=P+1:(x!==P&&T.push({type:"text",value:u.value.slice(x,P)}),Array.isArray(F)?T.push(...F):F&&T.push(F),x=P+_[0].length,w=!0),!m.global)break;_=m.exec(u.value)}return w?(x<u.value.length&&T.push({type:"text",value:u.value.slice(x)}),p.children.splice(k,1,...T)):T=[u],k+T.length}}function x3(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const n=r[i];t.push([C3(n[0]),k3(n[1])])}return t}function C3(e){return typeof e=="string"?new RegExp(m3(e),"g"):e}function k3(e){return typeof e=="function"?e:function(){return e}}const gp="phrasing",mp=["autolink","link","image","label"];function b3(){return{transforms:[L3],enter:{literalAutolink:w3,literalAutolinkEmail:yp,literalAutolinkHttp:yp,literalAutolinkWww:yp},exit:{literalAutolink:B3,literalAutolinkEmail:_3,literalAutolinkHttp:S3,literalAutolinkWww:T3}}}function v3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gp,notInConstruct:mp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gp,notInConstruct:mp},{character:":",before:"[ps]",after:"\\/",inConstruct:gp,notInConstruct:mp}]}}function w3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function yp(e){this.config.enter.autolinkProtocol.call(this,e)}function S3(e){this.config.exit.autolinkProtocol.call(this,e)}function T3(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function _3(e){this.config.exit.autolinkEmail.call(this,e)}function B3(e){this.exit(e)}function L3(e){y3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,E3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),F3]],{ignore:["link","linkReference"]})}function E3(e,t,r,i,n){let s="";if(!Wb(n)||(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!A3(r)))return!1;const a=M3(r+i);if(!a[0])return!1;const c={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[c,{type:"text",value:a[1]}]:c}function F3(e,t,r,i){return!Wb(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function A3(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function M3(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const n=Y1(e,"(");let s=Y1(e,")");for(;i!==-1&&n>s;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),s++;return[e,r]}function Wb(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ro(r)||ju(r))&&(!t||r!==47)}qb.peek=j3;function I3(){this.buffer()}function P3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function O3(){this.buffer()}function D3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function R3(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Li(this.sliceSerialize(e)).toLowerCase(),r.label=t}function $3(e){this.exit(e)}function z3(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Li(this.sliceSerialize(e)).toLowerCase(),r.label=t}function N3(e){this.exit(e)}function j3(){return"["}function qb(e,t,r,i){const n=r.createTracker(i);let s=n.move("[^");const a=r.enter("footnoteReference"),c=r.enter("reference");return s+=n.move(r.safe(r.associationId(e),{after:"]",before:s})),c(),a(),s+=n.move("]"),s}function W3(){return{enter:{gfmFootnoteCallString:I3,gfmFootnoteCall:P3,gfmFootnoteDefinitionLabelString:O3,gfmFootnoteDefinition:D3},exit:{gfmFootnoteCallString:R3,gfmFootnoteCall:$3,gfmFootnoteDefinitionLabelString:z3,gfmFootnoteDefinition:N3}}}function q3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:qb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,n,s,a){const c=s.createTracker(a);let h=c.move("[^");const u=s.enter("footnoteDefinition"),d=s.enter("label");return h+=c.move(s.safe(s.associationId(i),{before:h,after:"]"})),d(),h+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),h+=c.move((t?`
|
|
55
|
+
`:" ")+s.indentLines(s.containerFlow(i,c.current()),t?Hb:H3))),u(),h}}function H3(e,t,r){return t===0?e:Hb(e,t,r)}function Hb(e,t,r){return(r?"":" ")+e}const U3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ub.peek=Q3;function V3(){return{canContainEols:["delete"],enter:{strikethrough:G3},exit:{strikethrough:X3}}}function Y3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:U3}],handlers:{delete:Ub}}}function G3(e){this.enter({type:"delete",children:[]},e)}function X3(e){this.exit(e)}function Ub(e,t,r,i){const n=r.createTracker(i),s=r.enter("strikethrough");let a=n.move("~~");return a+=r.containerPhrasing(e,{...n.current(),before:a,after:"~"}),a+=n.move("~~"),s(),a}function Q3(){return"~"}function K3(e){return e.length}function Z3(e,t){const r=t||{},i=(r.align||[]).concat(),n=r.stringLength||K3,s=[],a=[],c=[],h=[];let u=0,d=-1;for(;++d<e.length;){const C=[],k=[];let w=-1;for(e[d].length>u&&(u=e[d].length);++w<e[d].length;){const T=J3(e[d][w]);if(r.alignDelimiters!==!1){const _=n(T);k[w]=_,(h[w]===void 0||_>h[w])&&(h[w]=_)}C.push(T)}a[d]=C,c[d]=k}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<u;)s[p]=G1(i[p]);else{const C=G1(i);for(;++p<u;)s[p]=C}p=-1;const m=[],g=[];for(;++p<u;){const C=s[p];let k="",w="";C===99?(k=":",w=":"):C===108?k=":":C===114&&(w=":");let T=r.alignDelimiters===!1?1:Math.max(1,h[p]-k.length-w.length);const _=k+"-".repeat(T)+w;r.alignDelimiters!==!1&&(T=k.length+T+w.length,T>h[p]&&(h[p]=T),g[p]=T),m[p]=_}a.splice(1,0,m),c.splice(1,0,g),d=-1;const x=[];for(;++d<a.length;){const C=a[d],k=c[d];p=-1;const w=[];for(;++p<u;){const T=C[p]||"";let _="",P="";if(r.alignDelimiters!==!1){const O=h[p]-(k[p]||0),F=s[p];F===114?_=" ".repeat(O):F===99?O%2?(_=" ".repeat(O/2+.5),P=" ".repeat(O/2-.5)):(_=" ".repeat(O/2),P=_):P=" ".repeat(O)}r.delimiterStart!==!1&&!p&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||p)&&w.push(" "),r.alignDelimiters!==!1&&w.push(_),w.push(T),r.alignDelimiters!==!1&&w.push(P),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||p!==u-1)&&w.push("|")}x.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return x.join(`
|
|
56
|
+
`)}function J3(e){return e==null?"":String(e)}function G1(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function tI(e,t,r,i){const n=r.enter("blockquote"),s=r.createTracker(i);s.move("> "),s.shift(2);const a=r.indentLines(r.containerFlow(e,s.current()),eI);return n(),a}function eI(e,t,r){return">"+(r?"":" ")+e}function rI(e,t){return X1(e,t.inConstruct,!0)&&!X1(e,t.notInConstruct,!1)}function X1(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Q1(e,t,r,i){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===`
|
|
57
|
+
`&&rI(r.stack,r.unsafe[n]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
58
|
+
`}function iI(e,t){const r=String(e);let i=r.indexOf(t),n=i,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===n?++s>a&&(a=s):s=1,n=i+t.length,i=r.indexOf(t,n);return a}function nI(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function oI(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function sI(e,t,r,i){const n=oI(r),s=e.value||"",a=n==="`"?"GraveAccent":"Tilde";if(nI(e,r)){const p=r.enter("codeIndented"),m=r.indentLines(s,aI);return p(),m}const c=r.createTracker(i),h=n.repeat(Math.max(iI(s,n)+1,3)),u=r.enter("codeFenced");let d=c.move(h);if(e.lang){const p=r.enter(`codeFencedLang${a}`);d+=c.move(r.safe(e.lang,{before:d,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=r.enter(`codeFencedMeta${a}`);d+=c.move(" "),d+=c.move(r.safe(e.meta,{before:d,after:`
|
|
59
|
+
`,encode:["`"],...c.current()})),p()}return d+=c.move(`
|
|
60
|
+
`),s&&(d+=c.move(s+`
|
|
61
|
+
`)),d+=c.move(h),u(),d}function aI(e,t,r){return(r?"":" ")+e}function Sm(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lI(e,t,r,i){const n=Sm(r),s=n==='"'?"Quote":"Apostrophe",a=r.enter("definition");let c=r.enter("label");const h=r.createTracker(i);let u=h.move("[");return u+=h.move(r.safe(r.associationId(e),{before:u,after:"]",...h.current()})),u+=h.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),u+=h.move("<"),u+=h.move(r.safe(e.url,{before:u,after:">",...h.current()})),u+=h.move(">")):(c=r.enter("destinationRaw"),u+=h.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
62
|
+
`,...h.current()}))),c(),e.title&&(c=r.enter(`title${s}`),u+=h.move(" "+n),u+=h.move(r.safe(e.title,{before:u,after:n,...h.current()})),u+=h.move(n),c()),a(),u}function cI(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Dl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ou(e,t,r){const i=Ks(e),n=Ks(t);return i===void 0?n===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vb.peek=hI;function Vb(e,t,r,i){const n=cI(r),s=r.enter("emphasis"),a=r.createTracker(i),c=a.move(n);let h=a.move(r.containerPhrasing(e,{after:n,before:c,...a.current()}));const u=h.charCodeAt(0),d=ou(i.before.charCodeAt(i.before.length-1),u,n);d.inside&&(h=Dl(u)+h.slice(1));const p=h.charCodeAt(h.length-1),m=ou(i.after.charCodeAt(0),p,n);m.inside&&(h=h.slice(0,-1)+Dl(p));const g=a.move(n);return s(),r.attentionEncodeSurroundingInfo={after:m.outside,before:d.outside},c+h+g}function hI(e,t,r){return r.options.emphasis||"*"}function uI(e,t){let r=!1;return vm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Zp}),!!((!e.depth||e.depth<3)&&gm(e)&&(t.options.setext||r))}function dI(e,t,r,i){const n=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(uI(e,r)){const d=r.enter("headingSetext"),p=r.enter("phrasing"),m=r.containerPhrasing(e,{...s.current(),before:`
|
|
63
|
+
`,after:`
|
|
64
|
+
`});return p(),d(),m+`
|
|
65
|
+
`+(n===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
66
|
+
`))+1))}const a="#".repeat(n),c=r.enter("headingAtx"),h=r.enter("phrasing");s.move(a+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
67
|
+
`,...s.current()});return/^[\t ]/.test(u)&&(u=Dl(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,r.options.closeAtx&&(u+=" "+a),h(),c(),u}Yb.peek=fI;function Yb(e){return e.value||""}function fI(){return"<"}Gb.peek=pI;function Gb(e,t,r,i){const n=Sm(r),s=n==='"'?"Quote":"Apostrophe",a=r.enter("image");let c=r.enter("label");const h=r.createTracker(i);let u=h.move("![");return u+=h.move(r.safe(e.alt,{before:u,after:"]",...h.current()})),u+=h.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=r.enter("destinationLiteral"),u+=h.move("<"),u+=h.move(r.safe(e.url,{before:u,after:">",...h.current()})),u+=h.move(">")):(c=r.enter("destinationRaw"),u+=h.move(r.safe(e.url,{before:u,after:e.title?" ":")",...h.current()}))),c(),e.title&&(c=r.enter(`title${s}`),u+=h.move(" "+n),u+=h.move(r.safe(e.title,{before:u,after:n,...h.current()})),u+=h.move(n),c()),u+=h.move(")"),a(),u}function pI(){return"!"}Xb.peek=gI;function Xb(e,t,r,i){const n=e.referenceType,s=r.enter("imageReference");let a=r.enter("label");const c=r.createTracker(i);let h=c.move("![");const u=r.safe(e.alt,{before:h,after:"]",...c.current()});h+=c.move(u+"]["),a();const d=r.stack;r.stack=[],a=r.enter("reference");const p=r.safe(r.associationId(e),{before:h,after:"]",...c.current()});return a(),r.stack=d,s(),n==="full"||!u||u!==p?h+=c.move(p+"]"):n==="shortcut"?h=h.slice(0,-1):h+=c.move("]"),h}function gI(){return"!"}Qb.peek=mI;function Qb(e,t,r){let i=e.value||"",n="`",s=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(i);)n+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<r.unsafe.length;){const a=r.unsafe[s],c=r.compilePattern(a);let h;if(a.atBreak)for(;h=c.exec(i);){let u=h.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(h.index+1)}}return n+i+n}function mI(){return"`"}function Kb(e,t){const r=gm(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Zb.peek=yI;function Zb(e,t,r,i){const n=Sm(r),s=n==='"'?"Quote":"Apostrophe",a=r.createTracker(i);let c,h;if(Kb(e,r)){const d=r.stack;r.stack=[],c=r.enter("autolink");let p=a.move("<");return p+=a.move(r.containerPhrasing(e,{before:p,after:">",...a.current()})),p+=a.move(">"),c(),r.stack=d,p}c=r.enter("link"),h=r.enter("label");let u=a.move("[");return u+=a.move(r.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(r.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(h=r.enter("destinationRaw"),u+=a.move(r.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),h(),e.title&&(h=r.enter(`title${s}`),u+=a.move(" "+n),u+=a.move(r.safe(e.title,{before:u,after:n,...a.current()})),u+=a.move(n),h()),u+=a.move(")"),c(),u}function yI(e,t,r){return Kb(e,r)?"<":"["}Jb.peek=xI;function Jb(e,t,r,i){const n=e.referenceType,s=r.enter("linkReference");let a=r.enter("label");const c=r.createTracker(i);let h=c.move("[");const u=r.containerPhrasing(e,{before:h,after:"]",...c.current()});h+=c.move(u+"]["),a();const d=r.stack;r.stack=[],a=r.enter("reference");const p=r.safe(r.associationId(e),{before:h,after:"]",...c.current()});return a(),r.stack=d,s(),n==="full"||!u||u!==p?h+=c.move(p+"]"):n==="shortcut"?h=h.slice(0,-1):h+=c.move("]"),h}function xI(){return"["}function Tm(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function CI(e){const t=Tm(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function kI(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function t2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bI(e,t,r,i){const n=r.enter("list"),s=r.bulletCurrent;let a=e.ordered?kI(r):Tm(r);const c=e.ordered?a==="."?")":".":CI(r);let h=t&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(h=!0),t2(r)===a&&d){let p=-1;for(;++p<e.children.length;){const m=e.children[p];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(a=c),r.bulletCurrent=a;const u=r.containerFlow(e,i);return r.bulletLastUsed=a,r.bulletCurrent=s,n(),u}function vI(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function wI(e,t,r,i){const n=vI(r);let s=r.bulletCurrent||Tm(r);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const c=r.createTracker(i);c.move(s+" ".repeat(a-s.length)),c.shift(a);const h=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,c.current()),d);return h(),u;function d(p,m,g){return m?(g?"":" ".repeat(a))+p:(g?s:s+" ".repeat(a-s.length))+p}}function SI(e,t,r,i){const n=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(e,i);return s(),n(),a}const TI=Hu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _I(e,t,r,i){return(e.children.some(function(a){return TI(a)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function BI(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}e2.peek=LI;function e2(e,t,r,i){const n=BI(r),s=r.enter("strong"),a=r.createTracker(i),c=a.move(n+n);let h=a.move(r.containerPhrasing(e,{after:n,before:c,...a.current()}));const u=h.charCodeAt(0),d=ou(i.before.charCodeAt(i.before.length-1),u,n);d.inside&&(h=Dl(u)+h.slice(1));const p=h.charCodeAt(h.length-1),m=ou(i.after.charCodeAt(0),p,n);m.inside&&(h=h.slice(0,-1)+Dl(p));const g=a.move(n+n);return s(),r.attentionEncodeSurroundingInfo={after:m.outside,before:d.outside},c+h+g}function LI(e,t,r){return r.options.strong||"*"}function EI(e,t,r,i){return r.safe(e.value,i)}function FI(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function AI(e,t,r){const i=(t2(r)+(r.options.ruleSpaces?" ":"")).repeat(FI(r));return r.options.ruleSpaces?i.slice(0,-1):i}const r2={blockquote:tI,break:Q1,code:sI,definition:lI,emphasis:Vb,hardBreak:Q1,heading:dI,html:Yb,image:Gb,imageReference:Xb,inlineCode:Qb,link:Zb,linkReference:Jb,list:bI,listItem:wI,paragraph:SI,root:_I,strong:e2,text:EI,thematicBreak:AI};function MI(){return{enter:{table:II,tableData:K1,tableHeader:K1,tableRow:OI},exit:{codeText:DI,table:PI,tableData:xp,tableHeader:xp,tableRow:xp}}}function II(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function PI(e){this.exit(e),this.data.inTable=void 0}function OI(e){this.enter({type:"tableRow",children:[]},e)}function xp(e){this.exit(e)}function K1(e){this.enter({type:"tableCell",children:[]},e)}function DI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,RI));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function RI(e,t){return t==="|"?t:e}function $I(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,n=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
68
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:a,tableCell:h,tableRow:c}};function a(g,x,C,k){return u(d(g,C,k),g.align)}function c(g,x,C,k){const w=p(g,C,k),T=u([w]);return T.slice(0,T.indexOf(`
|
|
69
|
+
`))}function h(g,x,C,k){const w=C.enter("tableCell"),T=C.enter("phrasing"),_=C.containerPhrasing(g,{...k,before:s,after:s});return T(),w(),_}function u(g,x){return Z3(g,{align:x,alignDelimiters:i,padding:r,stringLength:n})}function d(g,x,C){const k=g.children;let w=-1;const T=[],_=x.enter("table");for(;++w<k.length;)T[w]=p(k[w],x,C);return _(),T}function p(g,x,C){const k=g.children;let w=-1;const T=[],_=x.enter("tableRow");for(;++w<k.length;)T[w]=h(k[w],g,x,C);return _(),T}function m(g,x,C){let k=r2.inlineCode(g,x,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function zI(){return{exit:{taskListCheckValueChecked:Z1,taskListCheckValueUnchecked:Z1,paragraph:jI}}}function NI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:WI}}}function Z1(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function jI(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const n=t.children;let s=-1,a;for(;++s<n.length;){const c=n[s];if(c.type==="paragraph"){a=c;break}}a===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function WI(e,t,r,i){const n=e.children[0],s=typeof e.checked=="boolean"&&n&&n.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",c=r.createTracker(i);s&&c.move(a);let h=r2.listItem(e,t,r,{...i,...c.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),h;function u(d){return d+a}}function qI(){return[b3(),W3(),V3(),MI(),zI()]}function HI(e){return{extensions:[v3(),q3(e),Y3(),$I(e),NI()]}}const UI={tokenize:KI,partial:!0},i2={tokenize:ZI,partial:!0},n2={tokenize:JI,partial:!0},o2={tokenize:t4,partial:!0},VI={tokenize:e4,partial:!0},s2={name:"wwwAutolink",tokenize:XI,previous:l2},a2={name:"protocolAutolink",tokenize:QI,previous:c2},kn={name:"emailAutolink",tokenize:GI,previous:h2},Xi={};function YI(){return{text:Xi}}let To=48;for(;To<123;)Xi[To]=kn,To++,To===58?To=65:To===91&&(To=97);Xi[43]=kn;Xi[45]=kn;Xi[46]=kn;Xi[95]=kn;Xi[72]=[kn,a2];Xi[104]=[kn,a2];Xi[87]=[kn,s2];Xi[119]=[kn,s2];function GI(e,t,r){const i=this;let n,s;return a;function a(p){return!rg(p)||!h2.call(i,i.previous)||_m(i.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return rg(p)?(e.consume(p),c):p===64?(e.consume(p),h):r(p)}function h(p){return p===46?e.check(VI,d,u)(p):p===45||p===95||hr(p)?(s=!0,e.consume(p),h):d(p)}function u(p){return e.consume(p),n=!0,h}function d(p){return s&&n&&xr(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):r(p)}}function XI(e,t,r){const i=this;return n;function n(a){return a!==87&&a!==119||!l2.call(i,i.previous)||_m(i.events)?r(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(UI,e.attempt(i2,e.attempt(n2,s),r),r)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function QI(e,t,r){const i=this;let n="",s=!1;return a;function a(p){return(p===72||p===104)&&c2.call(i,i.previous)&&!_m(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),n+=String.fromCodePoint(p),e.consume(p),c):r(p)}function c(p){if(xr(p)&&n.length<5)return n+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const m=n.toLowerCase();if(m==="http"||m==="https")return e.consume(p),h}return r(p)}function h(p){return p===47?(e.consume(p),s?u:(s=!0,h)):r(p)}function u(p){return p===null||ru(p)||pe(p)||Ro(p)||ju(p)?r(p):e.attempt(i2,e.attempt(n2,d),r)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function KI(e,t,r){let i=0;return n;function n(a){return(a===87||a===119)&&i<3?(i++,e.consume(a),n):a===46&&i===3?(e.consume(a),s):r(a)}function s(a){return a===null?r(a):t(a)}}function ZI(e,t,r){let i,n,s;return a;function a(u){return u===46||u===95?e.check(o2,h,c)(u):u===null||pe(u)||Ro(u)||u!==45&&ju(u)?h(u):(s=!0,e.consume(u),a)}function c(u){return u===95?i=!0:(n=i,i=void 0),e.consume(u),a}function h(u){return n||i||!s?r(u):t(u)}}function JI(e,t){let r=0,i=0;return n;function n(a){return a===40?(r++,e.consume(a),n):a===41&&i<r?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(o2,t,s)(a):a===null||pe(a)||Ro(a)?t(a):(e.consume(a),n)}function s(a){return a===41&&i++,e.consume(a),n}}function t4(e,t,r){return i;function i(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),i):c===38?(e.consume(c),s):c===93?(e.consume(c),n):c===60||c===null||pe(c)||Ro(c)?t(c):r(c)}function n(c){return c===null||c===40||c===91||pe(c)||Ro(c)?t(c):i(c)}function s(c){return xr(c)?a(c):r(c)}function a(c){return c===59?(e.consume(c),i):xr(c)?(e.consume(c),a):r(c)}}function e4(e,t,r){return i;function i(s){return e.consume(s),n}function n(s){return hr(s)?r(s):t(s)}}function l2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||pe(e)}function c2(e){return!xr(e)}function h2(e){return!(e===47||rg(e))}function rg(e){return e===43||e===45||e===46||e===95||hr(e)}function _m(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const r4={tokenize:h4,partial:!0};function i4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:a4,continuation:{tokenize:l4},exit:c4}},text:{91:{name:"gfmFootnoteCall",tokenize:s4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:n4,resolveTo:o4}}}}function n4(e,t,r){const i=this;let n=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a;for(;n--;){const h=i.events[n][1];if(h.type==="labelImage"){a=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return c;function c(h){if(!a||!a._balanced)return r(h);const u=Li(i.sliceSerialize({start:a.end,end:i.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function o4(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},n={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};n.end.column++,n.end.offset++,n.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",n,t],["exit",n,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...c),e}function s4(e,t,r){const i=this,n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,a;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?r(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(s>999||p===93&&!a||p===null||p===91||pe(p))return r(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return n.includes(Li(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(p)}return pe(p)||(a=!0),s++,e.consume(p),p===92?d:u}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function a4(e,t,r){const i=this,n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,a=0,c;return h;function h(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(x)}function d(x){if(a>999||x===93&&!c||x===null||x===91||pe(x))return r(x);if(x===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return s=Li(i.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return pe(x)||(c=!0),a++,e.consume(x),x===92?p:d}function p(x){return x===91||x===92||x===93?(e.consume(x),a++,d):d(x)}function m(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),n.includes(s)||n.push(s),ne(e,g,"gfmFootnoteDefinitionWhitespace")):r(x)}function g(x){return t(x)}}function l4(e,t,r){return e.check(Jl,t,e.attempt(r4,t,r))}function c4(e){e.exit("gfmFootnoteDefinition")}function h4(e,t,r){const i=this;return ne(e,n,"gfmFootnoteDefinitionIndent",5);function n(s){const a=i.events[i.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):r(s)}}function u4(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:n};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function n(a,c){let h=-1;for(;++h<a.length;)if(a[h][0]==="enter"&&a[h][1].type==="strikethroughSequenceTemporary"&&a[h][1]._close){let u=h;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[h][1].end.offset-a[h][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[h][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[h][1].end)},p={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[h][1].start)},m=[["enter",d,c],["enter",a[u][1],c],["exit",a[u][1],c],["enter",p,c]],g=c.parser.constructs.insideSpan.null;g&&Gr(m,m.length,0,Wu(g,a.slice(u+1,h),c)),Gr(m,m.length,0,[["exit",p,c],["enter",a[h][1],c],["exit",a[h][1],c],["exit",d,c]]),Gr(a,u-1,h-u+3,m),h=u+m.length-2;break}}for(h=-1;++h<a.length;)a[h][1].type==="strikethroughSequenceTemporary"&&(a[h][1].type="data");return a}function s(a,c,h){const u=this.previous,d=this.events;let p=0;return m;function m(x){return u===126&&d[d.length-1][1].type!=="characterEscape"?h(x):(a.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const C=Ks(u);if(x===126)return p>1?h(x):(a.consume(x),p++,g);if(p<2&&!r)return h(x);const k=a.exit("strikethroughSequenceTemporary"),w=Ks(x);return k._open=!w||w===2&&!!C,k._close=!C||C===2&&!!w,c(x)}}}class d4{constructor(){this.map=[]}add(t,r,i){f4(this,t,r,i)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let n=i.pop();for(;n;){for(const s of n)t.push(s);n=i.pop()}this.map.length=0}}function f4(e,t,r,i){let n=0;if(!(r===0&&i.length===0)){for(;n<e.map.length;){if(e.map[n][0]===t){e.map[n][1]+=r,e.map[n][2].push(...i);return}n+=1}e.map.push([t,r,i])}}function p4(e,t){let r=!1;const i=[];for(;t<e.length;){const n=e[t];if(r){if(n[0]==="enter")n[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(n[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(n[1].type==="tableDelimiterRow")break}else n[0]==="enter"&&n[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function g4(){return{flow:{null:{name:"table",tokenize:m4,resolveAll:y4}}}}function m4(e,t,r){const i=this;let n=0,s=0,a;return c;function c(I){let N=i.events.length-1;for(;N>-1;){const V=i.events[N][1].type;if(V==="lineEnding"||V==="linePrefix")N--;else break}const J=N>-1?i.events[N][1].type:null,nt=J==="tableHead"||J==="tableRow"?F:h;return nt===F&&i.parser.lazy[i.now().line]?r(I):nt(I)}function h(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(a=!0,s+=1),d(I)}function d(I){return I===null?r(I):Nt(I)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),g):r(I):te(I)?ne(e,d,"whitespace")(I):(s+=1,a&&(a=!1,n+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),a=!0,d):(e.enter("data"),p(I)))}function p(I){return I===null||I===124||pe(I)?(e.exit("data"),d(I)):(e.consume(I),I===92?m:p)}function m(I){return I===92||I===124?(e.consume(I),p):p(I)}function g(I){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(I):(e.enter("tableDelimiterRow"),a=!1,te(I)?ne(e,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):x(I))}function x(I){return I===45||I===58?k(I):I===124?(a=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),C):O(I)}function C(I){return te(I)?ne(e,k,"whitespace")(I):k(I)}function k(I){return I===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):I===45?(s+=1,w(I)):I===null||Nt(I)?P(I):O(I)}function w(I){return I===45?(e.enter("tableDelimiterFiller"),T(I)):O(I)}function T(I){return I===45?(e.consume(I),T):I===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(I))}function _(I){return te(I)?ne(e,P,"whitespace")(I):P(I)}function P(I){return I===124?x(I):I===null||Nt(I)?!a||n!==s?O(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):O(I)}function O(I){return r(I)}function F(I){return e.enter("tableRow"),A(I)}function A(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),A):I===null||Nt(I)?(e.exit("tableRow"),t(I)):te(I)?ne(e,A,"whitespace")(I):(e.enter("data"),q(I))}function q(I){return I===null||I===124||pe(I)?(e.exit("data"),A(I)):(e.consume(I),I===92?et:q)}function et(I){return I===92||I===124?(e.consume(I),q):q(I)}}function y4(e,t){let r=-1,i=!0,n=0,s=[0,0,0,0],a=[0,0,0,0],c=!1,h=0,u,d,p;const m=new d4;for(;++r<e.length;){const g=e[r],x=g[1];g[0]==="enter"?x.type==="tableHead"?(c=!1,h!==0&&(J1(m,t,h,u,d),d=void 0,h=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",u,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(i=!0,p=void 0,s=[0,0,0,0],a=[0,r+1,0,0],c&&(c=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",d,t]])),n=x.type==="tableDelimiterRow"?2:d?3:1):n&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],p=Sh(m,t,s,n,void 0,p),s=[0,0,0,0]),a[2]=r)):x.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(a[0]=a[1],p=Sh(m,t,s,n,void 0,p)),s=a,a=[s[1],r,0,0])):x.type==="tableHead"?(c=!0,h=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(h=r,s[1]!==0?(a[0]=a[1],p=Sh(m,t,s,n,r,p)):a[1]!==0&&(p=Sh(m,t,a,n,r,p)),n=0):n&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(a[3]=r)}for(h!==0&&J1(m,t,h,u,d),m.consume(t.events),r=-1;++r<t.events.length;){const g=t.events[r];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=p4(t.events,r))}return e}function Sh(e,t,r,i,n,s){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";r[0]!==0&&(s.end=Object.assign({},Ls(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));const h=Ls(t.events,r[1]);if(s={type:a,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",s,t]]),r[2]!==0){const u=Ls(t.events,r[2]),d=Ls(t.events,r[3]),p={type:c,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(r[2],0,[["enter",p,t]]),i!==2){const m=t.events[r[2]],g=t.events[r[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;e.add(x,C,[])}}e.add(r[3]+1,0,[["exit",p,t]])}return n!==void 0&&(s.end=Object.assign({},Ls(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function J1(e,t,r,i,n){const s=[],a=Ls(t.events,r);n&&(n.end=Object.assign({},a),s.push(["exit",n,t])),i.end=Object.assign({},a),s.push(["exit",i,t]),e.add(r+1,0,s)}function Ls(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const x4={name:"tasklistCheck",tokenize:k4};function C4(){return{text:{91:x4}}}function k4(e,t,r){const i=this;return n;function n(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return pe(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),a):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),a):r(h)}function a(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):r(h)}function c(h){return Nt(h)?t(h):te(h)?e.check({tokenize:b4},t,r)(h):r(h)}}function b4(e,t,r){return ne(e,i,"whitespace");function i(n){return n===null?r(n):t(n)}}function v4(e){return bb([YI(),i4(),u4(e),g4(),C4()])}const w4={};function S4(e){const t=this,r=e||w4,i=t.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),a=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(v4(r)),s.push(qI()),a.push(HI(r))}var jh={exports:{}},T4=jh.exports,tC;function _4(){return tC||(tC=1,(function(e,t){(function(r,i){e.exports=i()})(T4,(function(){var r=1e3,i=6e4,n=36e5,s="millisecond",a="second",c="minute",h="hour",u="day",d="week",p="month",m="quarter",g="year",x="date",C="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,T={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(V){var j=["th","st","nd","rd"],W=V%100;return"["+V+(j[(W-20)%10]||j[W]||j[0])+"]"}},_=function(V,j,W){var G=String(V);return!G||G.length>=j?V:""+Array(j+1-G.length).join(W)+V},P={s:_,z:function(V){var j=-V.utcOffset(),W=Math.abs(j),G=Math.floor(W/60),R=W%60;return(j<=0?"+":"-")+_(G,2,"0")+":"+_(R,2,"0")},m:function V(j,W){if(j.date()<W.date())return-V(W,j);var G=12*(W.year()-j.year())+(W.month()-j.month()),R=j.clone().add(G,p),K=W-R<0,M=j.clone().add(G+(K?-1:1),p);return+(-(G+(W-R)/(K?R-M:M-R))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:p,y:g,w:d,d:u,D:x,h,m:c,s:a,ms:s,Q:m}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},O="en",F={};F[O]=T;var A="$isDayjsObject",q=function(V){return V instanceof J||!(!V||!V[A])},et=function V(j,W,G){var R;if(!j)return O;if(typeof j=="string"){var K=j.toLowerCase();F[K]&&(R=K),W&&(F[K]=W,R=K);var M=j.split("-");if(!R&&M.length>1)return V(M[0])}else{var z=j.name;F[z]=j,R=z}return!G&&R&&(O=R),R||!G&&O},I=function(V,j){if(q(V))return V.clone();var W=typeof j=="object"?j:{};return W.date=V,W.args=arguments,new J(W)},N=P;N.l=et,N.i=q,N.w=function(V,j){return I(V,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var J=(function(){function V(W){this.$L=et(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[A]=!0}var j=V.prototype;return j.parse=function(W){this.$d=(function(G){var R=G.date,K=G.utc;if(R===null)return new Date(NaN);if(N.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var M=R.match(k);if(M){var z=M[2]-1||0,tt=(M[7]||"0").substring(0,3);return K?new Date(Date.UTC(M[1],z,M[3]||1,M[4]||0,M[5]||0,M[6]||0,tt)):new Date(M[1],z,M[3]||1,M[4]||0,M[5]||0,M[6]||0,tt)}}return new Date(R)})(W),this.init()},j.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==C},j.isSame=function(W,G){var R=I(W);return this.startOf(G)<=R&&R<=this.endOf(G)},j.isAfter=function(W,G){return I(W)<this.startOf(G)},j.isBefore=function(W,G){return this.endOf(G)<I(W)},j.$g=function(W,G,R){return N.u(W)?this[G]:this.set(R,W)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(W,G){var R=this,K=!!N.u(G)||G,M=N.p(W),z=function(Yt,yt){var Ot=N.w(R.$u?Date.UTC(R.$y,yt,Yt):new Date(R.$y,yt,Yt),R);return K?Ot:Ot.endOf(u)},tt=function(Yt,yt){return N.w(R.toDate()[Yt].apply(R.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(yt)),R)},D=this.$W,mt=this.$M,ft=this.$D,Ct="set"+(this.$u?"UTC":"");switch(M){case g:return K?z(1,0):z(31,11);case p:return K?z(1,mt):z(0,mt+1);case d:var Dt=this.$locale().weekStart||0,At=(D<Dt?D+7:D)-Dt;return z(K?ft-At:ft+(6-At),mt);case u:case x:return tt(Ct+"Hours",0);case h:return tt(Ct+"Minutes",1);case c:return tt(Ct+"Seconds",2);case a:return tt(Ct+"Milliseconds",3);default:return this.clone()}},j.endOf=function(W){return this.startOf(W,!1)},j.$set=function(W,G){var R,K=N.p(W),M="set"+(this.$u?"UTC":""),z=(R={},R[u]=M+"Date",R[x]=M+"Date",R[p]=M+"Month",R[g]=M+"FullYear",R[h]=M+"Hours",R[c]=M+"Minutes",R[a]=M+"Seconds",R[s]=M+"Milliseconds",R)[K],tt=K===u?this.$D+(G-this.$W):G;if(K===p||K===g){var D=this.clone().set(x,1);D.$d[z](tt),D.init(),this.$d=D.set(x,Math.min(this.$D,D.daysInMonth())).$d}else z&&this.$d[z](tt);return this.init(),this},j.set=function(W,G){return this.clone().$set(W,G)},j.get=function(W){return this[N.p(W)]()},j.add=function(W,G){var R,K=this;W=Number(W);var M=N.p(G),z=function(mt){var ft=I(K);return N.w(ft.date(ft.date()+Math.round(mt*W)),K)};if(M===p)return this.set(p,this.$M+W);if(M===g)return this.set(g,this.$y+W);if(M===u)return z(1);if(M===d)return z(7);var tt=(R={},R[c]=i,R[h]=n,R[a]=r,R)[M]||1,D=this.$d.getTime()+W*tt;return N.w(D,this)},j.subtract=function(W,G){return this.add(-1*W,G)},j.format=function(W){var G=this,R=this.$locale();if(!this.isValid())return R.invalidDate||C;var K=W||"YYYY-MM-DDTHH:mm:ssZ",M=N.z(this),z=this.$H,tt=this.$m,D=this.$M,mt=R.weekdays,ft=R.months,Ct=R.meridiem,Dt=function(yt,Ot,oe,ae){return yt&&(yt[Ot]||yt(G,K))||oe[Ot].slice(0,ae)},At=function(yt){return N.s(z%12||12,yt,"0")},Yt=Ct||function(yt,Ot,oe){var ae=yt<12?"AM":"PM";return oe?ae.toLowerCase():ae};return K.replace(w,(function(yt,Ot){return Ot||(function(oe){switch(oe){case"YY":return String(G.$y).slice(-2);case"YYYY":return N.s(G.$y,4,"0");case"M":return D+1;case"MM":return N.s(D+1,2,"0");case"MMM":return Dt(R.monthsShort,D,ft,3);case"MMMM":return Dt(ft,D);case"D":return G.$D;case"DD":return N.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Dt(R.weekdaysMin,G.$W,mt,2);case"ddd":return Dt(R.weekdaysShort,G.$W,mt,3);case"dddd":return mt[G.$W];case"H":return String(z);case"HH":return N.s(z,2,"0");case"h":return At(1);case"hh":return At(2);case"a":return Yt(z,tt,!0);case"A":return Yt(z,tt,!1);case"m":return String(tt);case"mm":return N.s(tt,2,"0");case"s":return String(G.$s);case"ss":return N.s(G.$s,2,"0");case"SSS":return N.s(G.$ms,3,"0");case"Z":return M}return null})(yt)||M.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(W,G,R){var K,M=this,z=N.p(G),tt=I(W),D=(tt.utcOffset()-this.utcOffset())*i,mt=this-tt,ft=function(){return N.m(M,tt)};switch(z){case g:K=ft()/12;break;case p:K=ft();break;case m:K=ft()/3;break;case d:K=(mt-D)/6048e5;break;case u:K=(mt-D)/864e5;break;case h:K=mt/n;break;case c:K=mt/i;break;case a:K=mt/r;break;default:K=mt}return R?K:N.a(K)},j.daysInMonth=function(){return this.endOf(p).$D},j.$locale=function(){return F[this.$L]},j.locale=function(W,G){if(!W)return this.$L;var R=this.clone(),K=et(W,G,!0);return K&&(R.$L=K),R},j.clone=function(){return N.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},V})(),nt=J.prototype;return I.prototype=nt,[["$ms",s],["$s",a],["$m",c],["$H",h],["$W",u],["$M",p],["$y",g],["$D",x]].forEach((function(V){nt[V[1]]=function(j){return this.$g(j,V[0],V[1])}})),I.extend=function(V,j){return V.$i||(V(j,J,I),V.$i=!0),I},I.locale=et,I.isDayjs=q,I.unix=function(V){return I(1e3*V)},I.en=F[O],I.Ls=F,I.p={},I}))})(jh)),jh.exports}var B4=_4();const L4=Kl(B4);var u2=Object.defineProperty,v=(e,t)=>u2(e,"name",{value:t,configurable:!0}),E4=(e,t)=>{for(var r in t)u2(e,r,{get:t[r],enumerable:!0})},un={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},at={trace:v((...e)=>{},"trace"),debug:v((...e)=>{},"debug"),info:v((...e)=>{},"info"),warn:v((...e)=>{},"warn"),error:v((...e)=>{},"error"),fatal:v((...e)=>{},"fatal")},Bm=v(function(e="fatal"){let t=un.fatal;typeof e=="string"?e.toLowerCase()in un&&(t=un[e]):typeof e=="number"&&(t=e),at.trace=()=>{},at.debug=()=>{},at.info=()=>{},at.warn=()=>{},at.error=()=>{},at.fatal=()=>{},t<=un.fatal&&(at.fatal=console.error?console.error.bind(console,ai("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ai("FATAL"))),t<=un.error&&(at.error=console.error?console.error.bind(console,ai("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ai("ERROR"))),t<=un.warn&&(at.warn=console.warn?console.warn.bind(console,ai("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ai("WARN"))),t<=un.info&&(at.info=console.info?console.info.bind(console,ai("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ai("INFO"))),t<=un.debug&&(at.debug=console.debug?console.debug.bind(console,ai("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ai("DEBUG"))),t<=un.trace&&(at.trace=console.debug?console.debug.bind(console,ai("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ai("TRACE")))},"setLogLevel"),ai=v(e=>`%c${L4().format("ss.SSS")} : ${e} : `,"format");const Wh={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,s=2*r-n;switch(i){case"r":return Wh.hue2rgb(s,n,e+1/3)*255;case"g":return Wh.hue2rgb(s,n,e)*255;case"b":return Wh.hue2rgb(s,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),s=Math.min(e,t,r),a=(n+s)/2;if(i==="l")return a*100;if(n===s)return 0;const c=n-s,h=a>.5?c/(2-n-s):c/(n+s);if(i==="s")return h*100;switch(n){case e:return((t-r)/c+(t<r?6:0))*60;case t:return((r-e)/c+2)*60;case r:return((e-t)/c+4)*60;default:return-1}}},F4={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},A4={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Vt={channel:Wh,lang:F4,unit:A4},Kn={};for(let e=0;e<=255;e++)Kn[e]=Vt.unit.dec2hex(e);const lr={ALL:0,RGB:1,HSL:2};class M4{constructor(){this.type=lr.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=lr.ALL}is(t){return this.type===t}}class I4{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new M4}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=lr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=Vt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Vt.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=Vt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=Vt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Vt.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=Vt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(lr.HSL)&&r!==void 0?r:(this._ensureHSL(),Vt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(lr.HSL)&&r!==void 0?r:(this._ensureHSL(),Vt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(lr.HSL)&&r!==void 0?r:(this._ensureHSL(),Vt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(lr.RGB)&&r!==void 0?r:(this._ensureRGB(),Vt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(lr.RGB)&&r!==void 0?r:(this._ensureRGB(),Vt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(lr.RGB)&&r!==void 0?r:(this._ensureRGB(),Vt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(lr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(lr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(lr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(lr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(lr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(lr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Vu=new I4({r:0,g:0,b:0,a:0},"transparent"),Ps={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Ps.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,s=n%4===0,a=n>4,c=a?1:17,h=a?8:4,u=s?0:-1,d=a?255:15;return Vu.set({r:(i>>h*(u+3)&d)*c,g:(i>>h*(u+2)&d)*c,b:(i>>h*(u+1)&d)*c,a:s?(i&d)*c/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Kn[Math.round(t)]}${Kn[Math.round(r)]}${Kn[Math.round(i)]}${Kn[Math.round(n*255)]}`:`#${Kn[Math.round(t)]}${Kn[Math.round(r)]}${Kn[Math.round(i)]}`}},Ao={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(Ao.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Vt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Vt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Vt.channel.clamp.h(parseFloat(r)*360)}}return Vt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Ao.re);if(!r)return;const[,i,n,s,a,c]=r;return Vu.set({h:Ao._hue2deg(i),s:Vt.channel.clamp.s(parseFloat(n)),l:Vt.channel.clamp.l(parseFloat(s)),a:a?Vt.channel.clamp.a(c?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${Vt.lang.round(t)}, ${Vt.lang.round(r)}%, ${Vt.lang.round(i)}%, ${n})`:`hsl(${Vt.lang.round(t)}, ${Vt.lang.round(r)}%, ${Vt.lang.round(i)}%)`}},El={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=El.colors[e];if(t)return Ps.parse(t)},stringify:e=>{const t=Ps.stringify(e);for(const r in El.colors)if(El.colors[r]===t)return r}},yl={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(yl.re);if(!r)return;const[,i,n,s,a,c,h,u,d]=r;return Vu.set({r:Vt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Vt.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:Vt.channel.clamp.b(h?parseFloat(c)*2.55:parseFloat(c)),a:u?Vt.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${Vt.lang.round(t)}, ${Vt.lang.round(r)}, ${Vt.lang.round(i)}, ${Vt.lang.round(n)})`:`rgb(${Vt.lang.round(t)}, ${Vt.lang.round(r)}, ${Vt.lang.round(i)})`}},Yi={format:{keyword:El,hex:Ps,rgb:yl,rgba:yl,hsl:Ao,hsla:Ao},parse:e=>{if(typeof e!="string")return e;const t=Ps.parse(e)||yl.parse(e)||Ao.parse(e)||El.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(lr.HSL)||e.data.r===void 0?Ao.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?yl.stringify(e):Ps.stringify(e)},d2=(e,t)=>{const r=Yi.parse(e);for(const i in t)r[i]=Vt.channel.clamp[i](t[i]);return Yi.stringify(r)},eo=(e,t,r=0,i=1)=>{if(typeof e!="number")return d2(e,{a:t});const n=Vu.set({r:Vt.channel.clamp.r(e),g:Vt.channel.clamp.g(t),b:Vt.channel.clamp.b(r),a:Vt.channel.clamp.a(i)});return Yi.stringify(n)},P4=e=>{const{r:t,g:r,b:i}=Yi.parse(e),n=.2126*Vt.channel.toLinear(t)+.7152*Vt.channel.toLinear(r)+.0722*Vt.channel.toLinear(i);return Vt.lang.round(n)},O4=e=>P4(e)>=.5,Ii=e=>!O4(e),f2=(e,t,r)=>{const i=Yi.parse(e),n=i[t],s=Vt.channel.clamp[t](n+r);return n!==s&&(i[t]=s),Yi.stringify(i)},ot=(e,t)=>f2(e,"l",t),it=(e,t)=>f2(e,"l",-t),B=(e,t)=>{const r=Yi.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return d2(e,i)},D4=(e,t,r=50)=>{const{r:i,g:n,b:s,a}=Yi.parse(e),{r:c,g:h,b:u,a:d}=Yi.parse(t),p=r/100,m=p*2-1,g=a-d,C=((m*g===-1?m:(m+g)/(1+m*g))+1)/2,k=1-C,w=i*C+c*k,T=n*C+h*k,_=s*C+u*k,P=a*p+d*(1-p);return eo(w,T,_,P)},X=(e,t=100)=>{const r=Yi.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,D4(r,e,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:p2,setPrototypeOf:eC,isFrozen:R4,getPrototypeOf:$4,getOwnPropertyDescriptor:z4}=Object;let{freeze:br,seal:ci,create:qh}=Object,{apply:ig,construct:ng}=typeof Reflect<"u"&&Reflect;br||(br=function(t){return t});ci||(ci=function(t){return t});ig||(ig=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return t.apply(r,n)});ng||(ng=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 Th=vr(Array.prototype.forEach),N4=vr(Array.prototype.lastIndexOf),rC=vr(Array.prototype.pop),nl=vr(Array.prototype.push),j4=vr(Array.prototype.splice),Hh=vr(String.prototype.toLowerCase),Cp=vr(String.prototype.toString),kp=vr(String.prototype.match),ol=vr(String.prototype.replace),W4=vr(String.prototype.indexOf),q4=vr(String.prototype.trim),Yr=vr(Object.prototype.hasOwnProperty),yr=vr(RegExp.prototype.test),sl=H4(TypeError);function vr(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 ig(e,t,i)}}function H4(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return ng(e,r)}}function Jt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hh;eC&&eC(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const s=r(n);s!==n&&(R4(t)||(t[i]=s),n=s)}e[n]=!0}return e}function U4(e){for(let t=0;t<e.length;t++)Yr(e,t)||(e[t]=null);return e}function ji(e){const t=qh(null);for(const[r,i]of p2(e))Yr(e,r)&&(Array.isArray(i)?t[r]=U4(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=ji(i):t[r]=i);return t}function al(e,t){for(;e!==null;){const i=z4(e,t);if(i){if(i.get)return vr(i.get);if(typeof i.value=="function")return vr(i.value)}e=$4(e)}function r(){return null}return r}const iC=br(["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"]),bp=br(["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"]),vp=br(["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"]),V4=br(["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"]),wp=br(["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"]),Y4=br(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nC=br(["#text"]),oC=br(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Sp=br(["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"]),sC=br(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_h=br(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G4=ci(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X4=ci(/<%[\w\W]*|[\w\W]*%>/gm),Q4=ci(/\$\{[\w\W]*/gm),K4=ci(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z4=ci(/^aria-[\-\w]+$/),g2=ci(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J4=ci(/^(?:\w+script|data):/i),tP=ci(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),m2=ci(/^html$/i),eP=ci(/^[a-z][.\w]*(-[.\w]+)+$/i);var aC=Object.freeze({__proto__:null,ARIA_ATTR:Z4,ATTR_WHITESPACE:tP,CUSTOM_ELEMENT:eP,DATA_ATTR:K4,DOCTYPE_NAME:m2,ERB_EXPR:X4,IS_ALLOWED_URI:g2,IS_SCRIPT_OR_DATA:J4,MUSTACHE_EXPR:G4,TMPLIT_EXPR:Q4});const ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},rP=function(){return typeof window>"u"?null:window},iP=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 s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},lC=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function y2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rP();const t=Mt=>y2(Mt);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==ll.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:h,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:m,trustedTypes:g}=e,x=h.prototype,C=al(x,"cloneNode"),k=al(x,"remove"),w=al(x,"nextSibling"),T=al(x,"childNodes"),_=al(x,"parentNode");if(typeof a=="function"){const Mt=r.createElement("template");Mt.content&&Mt.content.ownerDocument&&(r=Mt.content.ownerDocument)}let P,O="";const{implementation:F,createNodeIterator:A,createDocumentFragment:q,getElementsByTagName:et}=r,{importNode:I}=i;let N=lC();t.isSupported=typeof p2=="function"&&typeof _=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:nt,TMPLIT_EXPR:V,DATA_ATTR:j,ARIA_ATTR:W,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:K}=aC;let{IS_ALLOWED_URI:M}=aC,z=null;const tt=Jt({},[...iC,...bp,...vp,...wp,...nC]);let D=null;const mt=Jt({},[...oC,...Sp,...sC,..._h]);let ft=Object.seal(qh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,Dt=null;const At=Object.seal(qh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Yt=!0,yt=!0,Ot=!1,oe=!0,ae=!1,He=!0,Be=!1,Kr=!1,ui=!1,pr=!1,di=!1,Rr=!1,fi=!0,Tn=!1;const Ko="user-content-";let _n=!0,Oi=!1,st={},ut=null;const Rt=Jt({},["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 Gt=null;const ee=Jt({},["audio","video","img","source","image","track"]);let Me=null;const Zr=Jt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",$r="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let be=Ke,Sr=!1,Ze=null;const fa=Jt({},[Qe,$r,Ke],Cp);let Bn=Jt({},["mi","mo","mn","ms","mtext"]),pi=Jt({},["annotation-xml"]);const Ln=Jt({},["title","style","font","a","script"]);let En=null;const dc=["application/xhtml+xml","text/html"],fc="text/html";let Le=null,tn=null;const pa=r.createElement("form"),ga=function(U){return U instanceof RegExp||U instanceof Function},en=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(tn&&tn===U)){if((!U||typeof U!="object")&&(U={}),U=ji(U),En=dc.indexOf(U.PARSER_MEDIA_TYPE)===-1?fc:U.PARSER_MEDIA_TYPE,Le=En==="application/xhtml+xml"?Cp:Hh,z=Yr(U,"ALLOWED_TAGS")?Jt({},U.ALLOWED_TAGS,Le):tt,D=Yr(U,"ALLOWED_ATTR")?Jt({},U.ALLOWED_ATTR,Le):mt,Ze=Yr(U,"ALLOWED_NAMESPACES")?Jt({},U.ALLOWED_NAMESPACES,Cp):fa,Me=Yr(U,"ADD_URI_SAFE_ATTR")?Jt(ji(Zr),U.ADD_URI_SAFE_ATTR,Le):Zr,Gt=Yr(U,"ADD_DATA_URI_TAGS")?Jt(ji(ee),U.ADD_DATA_URI_TAGS,Le):ee,ut=Yr(U,"FORBID_CONTENTS")?Jt({},U.FORBID_CONTENTS,Le):Rt,Ct=Yr(U,"FORBID_TAGS")?Jt({},U.FORBID_TAGS,Le):ji({}),Dt=Yr(U,"FORBID_ATTR")?Jt({},U.FORBID_ATTR,Le):ji({}),st=Yr(U,"USE_PROFILES")?U.USE_PROFILES:!1,Yt=U.ALLOW_ARIA_ATTR!==!1,yt=U.ALLOW_DATA_ATTR!==!1,Ot=U.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ae=U.SAFE_FOR_TEMPLATES||!1,He=U.SAFE_FOR_XML!==!1,Be=U.WHOLE_DOCUMENT||!1,pr=U.RETURN_DOM||!1,di=U.RETURN_DOM_FRAGMENT||!1,Rr=U.RETURN_TRUSTED_TYPE||!1,ui=U.FORCE_BODY||!1,fi=U.SANITIZE_DOM!==!1,Tn=U.SANITIZE_NAMED_PROPS||!1,_n=U.KEEP_CONTENT!==!1,Oi=U.IN_PLACE||!1,M=U.ALLOWED_URI_REGEXP||g2,be=U.NAMESPACE||Ke,Bn=U.MATHML_TEXT_INTEGRATION_POINTS||Bn,pi=U.HTML_INTEGRATION_POINTS||pi,ft=U.CUSTOM_ELEMENT_HANDLING||{},U.CUSTOM_ELEMENT_HANDLING&&ga(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ft.tagNameCheck=U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),U.CUSTOM_ELEMENT_HANDLING&&ga(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ft.attributeNameCheck=U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ft.allowCustomizedBuiltInElements=U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ae&&(yt=!1),di&&(pr=!0),st&&(z=Jt({},nC),D=qh(null),st.html===!0&&(Jt(z,iC),Jt(D,oC)),st.svg===!0&&(Jt(z,bp),Jt(D,Sp),Jt(D,_h)),st.svgFilters===!0&&(Jt(z,vp),Jt(D,Sp),Jt(D,_h)),st.mathMl===!0&&(Jt(z,wp),Jt(D,sC),Jt(D,_h))),Yr(U,"ADD_TAGS")||(At.tagCheck=null),Yr(U,"ADD_ATTR")||(At.attributeCheck=null),U.ADD_TAGS&&(typeof U.ADD_TAGS=="function"?At.tagCheck=U.ADD_TAGS:(z===tt&&(z=ji(z)),Jt(z,U.ADD_TAGS,Le))),U.ADD_ATTR&&(typeof U.ADD_ATTR=="function"?At.attributeCheck=U.ADD_ATTR:(D===mt&&(D=ji(D)),Jt(D,U.ADD_ATTR,Le))),U.ADD_URI_SAFE_ATTR&&Jt(Me,U.ADD_URI_SAFE_ATTR,Le),U.FORBID_CONTENTS&&(ut===Rt&&(ut=ji(ut)),Jt(ut,U.FORBID_CONTENTS,Le)),U.ADD_FORBID_CONTENTS&&(ut===Rt&&(ut=ji(ut)),Jt(ut,U.ADD_FORBID_CONTENTS,Le)),_n&&(z["#text"]=!0),Be&&Jt(z,["html","head","body"]),z.table&&(Jt(z,["tbody"]),delete Ct.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');P=U.TRUSTED_TYPES_POLICY,O=P.createHTML("")}else P===void 0&&(P=iP(g,n)),P!==null&&typeof O=="string"&&(O=P.createHTML(""));br&&br(U),tn=U}},Zo=Jt({},[...bp,...vp,...V4]),Fn=Jt({},[...wp,...Y4]),md=function(U){let dt=_(U);(!dt||!dt.tagName)&&(dt={namespaceURI:be,tagName:"template"});const St=Hh(U.tagName),ge=Hh(dt.tagName);return Ze[U.namespaceURI]?U.namespaceURI===$r?dt.namespaceURI===Ke?St==="svg":dt.namespaceURI===Qe?St==="svg"&&(ge==="annotation-xml"||Bn[ge]):!!Zo[St]:U.namespaceURI===Qe?dt.namespaceURI===Ke?St==="math":dt.namespaceURI===$r?St==="math"&&pi[ge]:!!Fn[St]:U.namespaceURI===Ke?dt.namespaceURI===$r&&!pi[ge]||dt.namespaceURI===Qe&&!Bn[ge]?!1:!Fn[St]&&(Ln[St]||!Zo[St]):!!(En==="application/xhtml+xml"&&Ze[U.namespaceURI]):!1},ir=function(U){nl(t.removed,{element:U});try{_(U).removeChild(U)}catch{k(U)}},Jr=function(U,dt){try{nl(t.removed,{attribute:dt.getAttributeNode(U),from:dt})}catch{nl(t.removed,{attribute:null,from:dt})}if(dt.removeAttribute(U),U==="is")if(pr||di)try{ir(dt)}catch{}else try{dt.setAttribute(U,"")}catch{}},ho=function(U){let dt=null,St=null;if(ui)U="<remove></remove>"+U;else{const Ee=kp(U,/^[\r\n\t ]+/);St=Ee&&Ee[0]}En==="application/xhtml+xml"&&be===Ke&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const ge=P?P.createHTML(U):U;if(be===Ke)try{dt=new m().parseFromString(ge,En)}catch{}if(!dt||!dt.documentElement){dt=F.createDocument(be,"template",null);try{dt.documentElement.innerHTML=Sr?O:ge}catch{}}const Kt=dt.body||dt.documentElement;return U&&St&&Kt.insertBefore(r.createTextNode(St),Kt.childNodes[0]||null),be===Ke?et.call(dt,Be?"html":"body")[0]:Be?dt.documentElement:Kt},Jo=function(U){return A.call(U.ownerDocument||U,U,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ma=function(U){return U instanceof p&&(typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||!(U.attributes instanceof d)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function")},pc=function(U){return typeof c=="function"&&U instanceof c};function gi(Mt,U,dt){Th(Mt,St=>{St.call(t,U,dt,tn)})}const Di=function(U){let dt=null;if(gi(N.beforeSanitizeElements,U,null),ma(U))return ir(U),!0;const St=Le(U.nodeName);if(gi(N.uponSanitizeElement,U,{tagName:St,allowedTags:z}),He&&U.hasChildNodes()&&!pc(U.firstElementChild)&&yr(/<[/\w!]/g,U.innerHTML)&&yr(/<[/\w!]/g,U.textContent)||U.nodeType===ll.progressingInstruction||He&&U.nodeType===ll.comment&&yr(/<[/\w]/g,U.data))return ir(U),!0;if(!(At.tagCheck instanceof Function&&At.tagCheck(St))&&(!z[St]||Ct[St])){if(!Ct[St]&&xa(St)&&(ft.tagNameCheck instanceof RegExp&&yr(ft.tagNameCheck,St)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(St)))return!1;if(_n&&!ut[St]){const ge=_(U)||U.parentNode,Kt=T(U)||U.childNodes;if(Kt&&ge){const Ee=Kt.length;for(let Ue=Ee-1;Ue>=0;--Ue){const ti=C(Kt[Ue],!0);ti.__removalCount=(U.__removalCount||0)+1,ge.insertBefore(ti,w(U))}}}return ir(U),!0}return U instanceof h&&!md(U)||(St==="noscript"||St==="noembed"||St==="noframes")&&yr(/<\/no(script|embed|frames)/i,U.innerHTML)?(ir(U),!0):(ae&&U.nodeType===ll.text&&(dt=U.textContent,Th([J,nt,V],ge=>{dt=ol(dt,ge," ")}),U.textContent!==dt&&(nl(t.removed,{element:U.cloneNode()}),U.textContent=dt)),gi(N.afterSanitizeElements,U,null),!1)},ya=function(U,dt,St){if(Dt[dt]||fi&&(dt==="id"||dt==="name")&&(St in r||St in pa))return!1;if(!(yt&&!Dt[dt]&&yr(j,dt))){if(!(Yt&&yr(W,dt))){if(!(At.attributeCheck instanceof Function&&At.attributeCheck(dt,U))){if(!D[dt]||Dt[dt]){if(!(xa(U)&&(ft.tagNameCheck instanceof RegExp&&yr(ft.tagNameCheck,U)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(U))&&(ft.attributeNameCheck instanceof RegExp&&yr(ft.attributeNameCheck,dt)||ft.attributeNameCheck instanceof Function&&ft.attributeNameCheck(dt,U))||dt==="is"&&ft.allowCustomizedBuiltInElements&&(ft.tagNameCheck instanceof RegExp&&yr(ft.tagNameCheck,St)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(St))))return!1}else if(!Me[dt]){if(!yr(M,ol(St,R,""))){if(!((dt==="src"||dt==="xlink:href"||dt==="href")&&U!=="script"&&W4(St,"data:")===0&&Gt[U])){if(!(Ot&&!yr(G,ol(St,R,"")))){if(St)return!1}}}}}}}return!0},xa=function(U){return U!=="annotation-xml"&&kp(U,K)},gc=function(U){gi(N.beforeSanitizeAttributes,U,null);const{attributes:dt}=U;if(!dt||ma(U))return;const St={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0};let ge=dt.length;for(;ge--;){const Kt=dt[ge],{name:Ee,namespaceURI:Ue,value:ti}=Kt,mi=Le(Ee),Ca=ti;let Oe=Ee==="value"?Ca:q4(Ca);if(St.attrName=mi,St.attrValue=Oe,St.keepAttr=!0,St.forceKeepAttr=void 0,gi(N.uponSanitizeAttribute,U,St),Oe=St.attrValue,Tn&&(mi==="id"||mi==="name")&&(Jr(Ee,U),Oe=Ko+Oe),He&&yr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Oe)){Jr(Ee,U);continue}if(mi==="attributename"&&kp(Oe,"href")){Jr(Ee,U);continue}if(St.forceKeepAttr)continue;if(!St.keepAttr){Jr(Ee,U);continue}if(!oe&&yr(/\/>/i,Oe)){Jr(Ee,U);continue}ae&&Th([J,nt,V],zr=>{Oe=ol(Oe,zr," ")});const uo=Le(U.nodeName);if(!ya(uo,mi,Oe)){Jr(Ee,U);continue}if(P&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Ue)switch(g.getAttributeType(uo,mi)){case"TrustedHTML":{Oe=P.createHTML(Oe);break}case"TrustedScriptURL":{Oe=P.createScriptURL(Oe);break}}if(Oe!==Ca)try{Ue?U.setAttributeNS(Ue,Ee,Oe):U.setAttribute(Ee,Oe),ma(U)?ir(U):rC(t.removed)}catch{Jr(Ee,U)}}gi(N.afterSanitizeAttributes,U,null)},mc=function Mt(U){let dt=null;const St=Jo(U);for(gi(N.beforeSanitizeShadowDOM,U,null);dt=St.nextNode();)gi(N.uponSanitizeShadowNode,dt,null),Di(dt),gc(dt),dt.content instanceof s&&Mt(dt.content);gi(N.afterSanitizeShadowDOM,U,null)};return t.sanitize=function(Mt){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=null,St=null,ge=null,Kt=null;if(Sr=!Mt,Sr&&(Mt="<!-->"),typeof Mt!="string"&&!pc(Mt))if(typeof Mt.toString=="function"){if(Mt=Mt.toString(),typeof Mt!="string")throw sl("dirty is not a string, aborting")}else throw sl("toString is not a function");if(!t.isSupported)return Mt;if(Kr||en(U),t.removed=[],typeof Mt=="string"&&(Oi=!1),Oi){if(Mt.nodeName){const ti=Le(Mt.nodeName);if(!z[ti]||Ct[ti])throw sl("root node is forbidden and cannot be sanitized in-place")}}else if(Mt instanceof c)dt=ho("<!---->"),St=dt.ownerDocument.importNode(Mt,!0),St.nodeType===ll.element&&St.nodeName==="BODY"||St.nodeName==="HTML"?dt=St:dt.appendChild(St);else{if(!pr&&!ae&&!Be&&Mt.indexOf("<")===-1)return P&&Rr?P.createHTML(Mt):Mt;if(dt=ho(Mt),!dt)return pr?null:Rr?O:""}dt&&ui&&ir(dt.firstChild);const Ee=Jo(Oi?Mt:dt);for(;ge=Ee.nextNode();)Di(ge),gc(ge),ge.content instanceof s&&mc(ge.content);if(Oi)return Mt;if(pr){if(di)for(Kt=q.call(dt.ownerDocument);dt.firstChild;)Kt.appendChild(dt.firstChild);else Kt=dt;return(D.shadowroot||D.shadowrootmode)&&(Kt=I.call(i,Kt,!0)),Kt}let Ue=Be?dt.outerHTML:dt.innerHTML;return Be&&z["!doctype"]&&dt.ownerDocument&&dt.ownerDocument.doctype&&dt.ownerDocument.doctype.name&&yr(m2,dt.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+dt.ownerDocument.doctype.name+`>
|
|
70
|
+
`+Ue),ae&&Th([J,nt,V],ti=>{Ue=ol(Ue,ti," ")}),P&&Rr?P.createHTML(Ue):Ue},t.setConfig=function(){let Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(Mt),Kr=!0},t.clearConfig=function(){tn=null,Kr=!1},t.isValidAttribute=function(Mt,U,dt){tn||en({});const St=Le(Mt),ge=Le(U);return ya(St,ge,dt)},t.addHook=function(Mt,U){typeof U=="function"&&nl(N[Mt],U)},t.removeHook=function(Mt,U){if(U!==void 0){const dt=N4(N[Mt],U);return dt===-1?void 0:j4(N[Mt],dt,1)[0]}return rC(N[Mt])},t.removeHooks=function(Mt){N[Mt]=[]},t.removeAllHooks=function(){N=lC()},t}var Zs=y2(),x2=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Fl=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,nP=/\s*%%.*\n/gm,Rs,C2=(Rs=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},v(Rs,"UnknownDiagramError"),Rs),$o={},Lm=v(function(e,t){e=e.replace(x2,"").replace(Fl,"").replace(nP,`
|
|
71
|
+
`);for(const[r,{detector:i}]of Object.entries($o))if(i(e,t))return r;throw new C2(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),og=v((...e)=>{for(const{id:t,detector:r,loader:i}of e)k2(t,r,i)},"registerLazyLoadedDiagrams"),k2=v((e,t,r)=>{$o[e]&&at.warn(`Detector with key ${e} already exists. Overwriting.`),$o[e]={detector:t,loader:r},at.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),oP=v(e=>$o[e].loader,"getDiagramLoader"),sg=v((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>sg(e,s,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),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(s=>{typeof t[s]=="object"&&t[s]!==null&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=sg(e[s],t[s],{depth:r-1,clobber:i})):(i||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),We=sg,Qi="#ffffff",Ki="#f2f2f2",Ht=v((e,t)=>t?B(e,{s:-40,l:10}):B(e,{s:-40,l:-10}),"mkBorder"),$s,sP=($s=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,s,a,c,h,u,d,p,m,g,x,C,k,w,T,_,P,O,F,A;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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||it(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,10)):(this.rowOdd=this.rowOdd||ot(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||ot(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 q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScale"+q]=it(this["cScale"+q],75);else for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScale"+q]=it(this["cScale"+q],25);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||X(this["cScale"+q]);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this.darkMode?this["cScalePeer"+q]=this["cScalePeer"+q]||ot(this["cScale"+q],10):this["cScalePeer"+q]=this["cScalePeer"+q]||it(this["cScale"+q],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||B(this.mainBkg,{h:180,s:-15,l:t*(5+q*3)}),this["surfacePeer"+q]=this["surfacePeer"+q]||B(this.mainBkg,{h:180,s:-15,l:t*(8+q*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:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((c=this.radar)==null?void 0:c.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((h=this.radar)==null?void 0:h.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((p=this.radar)==null?void 0:p.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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((m=this.xyChart)==null?void 0:m.backgroundColor)||this.background,titleColor:((g=this.xyChart)==null?void 0:g.titleColor)||this.primaryTextColor,dataLabelColor:((x=this.xyChart)==null?void 0:x.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((C=this.xyChart)==null?void 0:C.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((k=this.xyChart)==null?void 0:k.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((w=this.xyChart)==null?void 0:w.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((T=this.xyChart)==null?void 0:T.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((P=this.xyChart)==null?void 0:P.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((O=this.xyChart)==null?void 0:O.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((F=this.xyChart)==null?void 0:F.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki,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]})}},v($s,"Theme"),$s),aP=v(e=>{const t=new sP;return t.calculate(e),t},"getThemeVariables"),zs,lP=(zs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ot(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.background),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.lineColor=X(this.background),this.textColor=X(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ot(X("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=eo(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=it("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=it(this.sectionBkgColor,10),this.taskBorderColor=eo(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=eo(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||ot(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||it(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,s,a,c,h,u,d,p,m,g,x,C,k,w,T,_,P,O,F;this.secondBkg=ot(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=ot(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=ot(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=X(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 A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||X(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScalePeer"+A]=this["cScalePeer"+A]||ot(this["cScale"+A],10);for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||B(this.mainBkg,{h:30,s:-30,l:-(-10+A*4)}),this["surfacePeer"+A]=this["surfacePeer"+A]||B(this.mainBkg,{h:30,s:-30,l:-(-7+A*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];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 A=0;A<8;A++)this["venn"+(A+1)]=this["venn"+(A+1)]??ot(this["cScale"+A],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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((C=this.radar)==null?void 0:C.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((T=this.radar)==null?void 0:T.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((P=this.radar)==null?void 0:P.graticuleOpacity)||.3,legendBoxSize:((O=this.radar)==null?void 0:O.legendBoxSize)||12,legendFontSize:((F=this.radar)==null?void 0:F.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?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ot(this.secondaryColor,20),this.git1=ot(this.pie2||this.secondaryColor,20),this.git2=ot(this.pie3||this.tertiaryColor,20),this.git3=ot(this.pie4||B(this.primaryColor,{h:-30}),20),this.git4=ot(this.pie5||B(this.primaryColor,{h:-60}),20),this.git5=ot(this.pie6||B(this.primaryColor,{h:-90}),10),this.git6=ot(this.pie7||B(this.primaryColor,{h:60}),10),this.git7=ot(this.pie8||B(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||X(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||X(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||ot(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ot(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]})}},v(zs,"Theme"),zs),cP=v(e=>{const t=new lP;return t.calculate(e),t},"getThemeVariables"),Ns,hP=(Ns=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=Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.lineColor=X(this.background),this.textColor=X(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Ht(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=eo(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,s,a,c,h,u,d,p,m,g,x,C,k,w,T,_,P,O,F;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||it(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||it(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=it(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||it(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||B(this["cScale"+A],{h:180});for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||B(this.mainBkg,{h:30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||B(this.mainBkg,{h:30,l:-(7+A*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||X(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||X(this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||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||ot(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||ot(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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((a=this.radar)==null?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:((g=this.xyChart)==null?void 0:g.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((k=this.xyChart)==null?void 0:k.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((T=this.xyChart)==null?void 0:T.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((P=this.xyChart)==null?void 0:P.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((O=this.xyChart)==null?void 0:O.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((F=this.xyChart)==null?void 0:F.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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||it(X(this.git0),25),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||X(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Ns,"Theme"),Ns),uP=v(e=>{const t=new hP;return t.calculate(e),t},"getThemeVariables"),js,dP=(js=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=ot("#cde498",10),this.primaryBorderColor=Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.primaryColor),this.lineColor=X(this.background),this.textColor=X(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,s,a,c,h,u,d,p,m,g,x,C,k,w,T,_,P,O,F;this.actorBorder=it(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||it(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||it(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=it(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||it(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||B(this["cScale"+A],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||B(this.mainBkg,{h:30,s:-30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||B(this.mainBkg,{h:30,s:-30,l:-(8+A*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||ot(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||ot(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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((a=this.radar)==null?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:((g=this.xyChart)==null?void 0:g.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((k=this.xyChart)==null?void 0:k.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((T=this.xyChart)==null?void 0:T.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((P=this.xyChart)==null?void 0:P.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((O=this.xyChart)==null?void 0:O.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((F=this.xyChart)==null?void 0:F.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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||X(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(js,"Theme"),js),fP=v(e=>{const t=new dP;return t.calculate(e),t},"getThemeVariables"),Ws,pP=(Ws=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=ot(this.contrast,55),this.background="#ffffff",this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.lineColor=X(this.background),this.textColor=X(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||ot(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,s,a,c,h,u,d,p,m,g,x,C,k,w,T,_,P,O,F;this.secondBkg=ot(this.contrast,55),this.border2=this.contrast,this.actorBorder=ot(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 A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||X(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||ot(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||it(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||B(this.mainBkg,{l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||B(this.mainBkg,{l:-(8+A*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=ot(this.contrast,30),this.sectionBkgColor2=ot(this.contrast,30),this.taskBorderColor=it(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=ot(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=it(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 A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];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 A=0;A<8;A++)this["venn"+(A+1)]=this["venn"+(A+1)]??this["cScale"+A];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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((C=this.radar)==null?void 0:C.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((T=this.radar)==null?void 0:T.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((P=this.radar)==null?void 0:P.graticuleOpacity)||.3,legendBoxSize:((O=this.radar)==null?void 0:O.legendBoxSize)||12,legendFontSize:((F=this.radar)==null?void 0:F.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=it(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||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Ws,"Theme"),Ws),gP=v(e=>{const t=new pP;return t.calculate(e),t},"getThemeVariables"),qs,mP=(qs=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=Ht(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 s,a,c,h,u,d,p,m,g,x,C;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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 k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||X(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||ot(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||B(this.mainBkg,{h:180,s:-15,l:n*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||B(this.mainBkg,{h:180,s:-15,l:n*(8+k*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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((h=this.xyChart)==null?void 0:h.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(qs,"Theme"),qs),yP=v(e=>{const t=new mP;return t.calculate(e),t},"getThemeVariables"),Hs,xP=(Hs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ot(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.background),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ot(X("#323D47"),10),this.border1="#ccc",this.border2=eo(255,255,255,.25),this.arrowheadColor=X(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,s,a,c,h,u,d,p,m;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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 g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||X(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||ot(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||it(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||B(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||B(this.mainBkg,{h:180,s:-15,l:t*(8+g*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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Hs,"Theme"),Hs),CP=v(e=>{const t=new xP;return t.calculate(e),t},"getThemeVariables"),Us,kP=(Us=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=Ht("#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 s,a,c,h,u,d,p,m,g,x,C;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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 k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=this.mainBkg;if(this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||X(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||ot(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||B(this.mainBkg,{h:180,s:-15,l:n*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||B(this.mainBkg,{h:180,s:-15,l:n*(8+k*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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((h=this.xyChart)==null?void 0:h.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Us,"Theme"),Us),bP=v(e=>{const t=new kP;return t.calculate(e),t},"getThemeVariables"),Vs,vP=(Vs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ot(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.background),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ot(X("#323D47"),10),this.border1="#ccc",this.border2=eo(255,255,255,.25),this.arrowheadColor=X(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,s,a,c,h,u,d,p,m;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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 g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||X(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||ot(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||it(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||B(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||B(this.mainBkg,{h:180,s:-15,l:t*(8+g*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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Vs,"Theme"),Vs),wP=v(e=>{const t=new vP;return t.calculate(e),t},"getThemeVariables"),Ys,SP=(Ys=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=Ht(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 s,a,c,h,u,d,p,m,g,x,C;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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 k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||X(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||ot(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||B(this.mainBkg,{h:180,s:-15,l:n*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||B(this.mainBkg,{h:180,s:-15,l:n*(8+k*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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((h=this.xyChart)==null?void 0:h.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((p=this.xyChart)==null?void 0:p.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Ys,"Theme"),Ys),TP=v(e=>{const t=new SP;return t.calculate(e),t},"getThemeVariables"),Gs,_P=(Gs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ot(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.background),this.secondaryBorderColor=Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ot(X("#323D47"),10),this.border1="#ccc",this.border2=eo(255,255,255,.25),this.arrowheadColor=X(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,s,a,c,h,u,d,p,m;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||Ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.arrowheadColor=this.arrowheadColor||X(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(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||ot(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 g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||X(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||ot(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||it(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=it(this["cScale"+g],75);const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||B(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||B(this.mainBkg,{h:180,s:-15,l:t*(8+g*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||Ii(this.quadrant1Fill)?ot(this.quadrant1Fill):it(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:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?it(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=ot(this.git0,25),this.git1=ot(this.git1,25),this.git2=ot(this.git2,25),this.git3=ot(this.git3,25),this.git4=ot(this.git4,25),this.git5=ot(this.git5,25),this.git6=ot(this.git6,25),this.git7=ot(this.git7,25)):(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(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||Qi,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ki}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]})}},v(Gs,"Theme"),Gs),BP=v(e=>{const t=new _P;return t.calculate(e),t},"getThemeVariables"),mn={base:{getThemeVariables:aP},dark:{getThemeVariables:cP},default:{getThemeVariables:uP},forest:{getThemeVariables:fP},neutral:{getThemeVariables:gP},neo:{getThemeVariables:yP},"neo-dark":{getThemeVariables:CP},redux:{getThemeVariables:bP},"redux-dark":{getThemeVariables:wP},"redux-color":{getThemeVariables:TP},"redux-dark-color":{getThemeVariables:BP}},Hr={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},b2={...Hr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:mn.default.getThemeVariables(),sequence:{...Hr.sequence,messageFont:v(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:v(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:v(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Hr.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Hr.c4,useWidth:void 0,personFont:v(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Hr.flowchart,inheritDir:!1},external_personFont:v(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:v(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:v(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:v(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:v(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:v(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:v(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:v(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:v(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:v(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:v(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:v(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:v(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:v(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:v(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:v(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:v(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:v(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:v(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:v(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:v(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Hr.pie,useWidth:984},xyChart:{...Hr.xyChart,useWidth:void 0},requirement:{...Hr.requirement,useWidth:void 0},packet:{...Hr.packet},treeView:{...Hr.treeView,useWidth:void 0},radar:{...Hr.radar},ishikawa:{...Hr.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Hr.venn}},v2=v((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...v2(e[i],"")]:[...r,t+i],[]),"keyify"),LP=new Set(v2(b2,"")),w2=b2,su=v(e=>{if(at.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>su(t));return}for(const t of Object.keys(e)){if(at.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!LP.has(t)||e[t]==null){at.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){at.debug("sanitizing object",t),su(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(at.debug("sanitizing css option",t),e[t]=EP(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]="")}at.debug("After sanitization",e)}},"sanitizeDirective"),EP=v(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"),Js=Object.freeze(w2),bn=v(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ir=We({},Js),au,zo=[],Al=We({},Js),Yu=v((e,t)=>{let r=We({},e),i={};for(const n of t)_2(n),i=We(i,n);if(r=We(r,i),i.theme&&i.theme in mn){const n=We({},au),s=We(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in mn&&(r.themeVariables=mn[r.theme].getThemeVariables(s))}return Al=r,L2(Al),Al},"updateCurrentConfig"),FP=v(e=>(Ir=We({},Js),Ir=We(Ir,e),e.theme&&mn[e.theme]&&(Ir.themeVariables=mn[e.theme].getThemeVariables(e.themeVariables)),Yu(Ir,zo),Ir),"setSiteConfig"),AP=v(e=>{au=We({},e)},"saveConfigFromInitialize"),MP=v(e=>(Ir=We(Ir,e),Yu(Ir,zo),Ir),"updateSiteConfig"),S2=v(()=>We({},Ir),"getSiteConfig"),T2=v(e=>(L2(e),We(Al,e),_e()),"setConfig"),_e=v(()=>We({},Al),"getConfig"),_2=v(e=>{e&&(["secure",...Ir.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(at.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"&&_2(e[t])}))},"sanitize"),IP=v(e=>{var t;su(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),zo.push(e),Yu(Ir,zo)},"addDirective"),lu=v((e=Ir)=>{zo=[],Yu(e,zo)},"reset"),PP={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."},cC={},B2=v(e=>{cC[e]||(at.warn(PP[e]),cC[e]=!0)},"issueWarning"),L2=v(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&B2("LAZY_LOAD_DEPRECATED")},"checkConfig"),XU=v(()=>{let e={};au&&(e=We(e,au));for(const t of zo)e=We(e,t);return e},"getUserDefinedConfig"),wr=v(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&B2("FLOWCHART_HTML_LABELS_DEPRECATED"),bn(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),ec=/<br\s*\/?>/gi,OP=v(e=>e?A2(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),DP=(()=>{let e=!1;return()=>{e||(E2(),e=!0)}})();function E2(){const e="data-temp-href-target";Zs.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Zs.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"))})}v(E2,"setupDompurifyHooks");var F2=v(e=>(DP(),Zs.sanitize(e)),"removeScript"),hC=v((e,t)=>{if(wr(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=F2(e):r!=="loose"&&(e=A2(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=NP(e))}return e},"sanitizeMore"),Ai=v((e,t)=>e&&(t.dompurifyConfig?e=Zs.sanitize(hC(e,t),t.dompurifyConfig).toString():e=Zs.sanitize(hC(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),RP=v((e,t)=>typeof e=="string"?Ai(e,t):e.flat().map(r=>Ai(r,t)),"sanitizeTextOrArray"),$P=v(e=>ec.test(e),"hasBreaks"),zP=v(e=>e.split(ec),"splitBreaks"),NP=v(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),A2=v(e=>e.replace(ec,"#br#"),"breakToPlaceholder"),jP=v(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),WP=v(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),qP=v(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),uC=v(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 s=t[i-1],a=t[i+1];HP(s,a)&&(n=s+","+a,i++,r.pop())}r.push(UP(n))}return r.join("")},"parseGenericTypes"),ag=v((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),HP=v((e,t)=>{const r=ag(e,"~"),i=ag(t,"~");return r===1&&i===1},"shouldCombineSets"),UP=v(e=>{const t=ag(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("~"),s=i.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)i[n]="<",i[s]=">",n=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),dC=v(()=>window.MathMLElement!==void 0,"isMathMLSupported"),lg=/\$\$(.*)\$\$/g,Rl=v(e=>{var t;return(((t=e.match(lg))==null?void 0:t.length)??0)>0},"hasKatex"),QU=v(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await M2(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"),VP=v(async(e,t)=>{if(!Rl(e))return e;if(!(dC()||t.legacyMathML||t.forceLegacyMathML))return e.replace(lg,"MathML is unsupported in this environment.");{const{default:r}=await re(async()=>{const{default:n}=await import("./katex-DkKDou_j.js");return{default:n}},[]),i=t.forceLegacyMathML||!dC()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(ec).map(n=>Rl(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(lg,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),M2=v(async(e,t)=>Ai(await VP(e,t),t),"renderKatexSanitized"),rc={getRows:OP,sanitizeText:Ai,sanitizeTextOrArray:RP,hasBreaks:$P,splitBreaks:zP,lineBreakRegex:ec,removeScript:F2,getUrl:jP,evaluate:bn,getMax:WP,getMin:qP},YP=v(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),GP=v(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"),I2=v(function(e,t,r,i){const n=GP(t,r,i);YP(e,n)},"configureSvgSize"),XP=v(function(e,t,r,i){const n=t.node().getBBox(),s=n.width,a=n.height;at.info(`SVG bounds: ${s}x${a}`,n);let c=0,h=0;at.info(`Graph bounds: ${c}x${h}`,e),c=s+r*2,h=a+r*2,at.info(`Calculated bounds: ${c}x${h}`),I2(t,h,c,i);const u=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",u)},"setupGraphViewbox"),Uh={},QP=v((e,t,r,i)=>{let n="";return e in Uh&&Uh[e]?n=Uh[e]({...r,svgId:i}):at.warn(`No theme found for ${e}`),` & {
|
|
72
|
+
font-family: ${r.fontFamily};
|
|
73
|
+
font-size: ${r.fontSize};
|
|
74
|
+
fill: ${r.textColor}
|
|
75
|
+
}
|
|
76
|
+
@keyframes edge-animation-frame {
|
|
77
|
+
from {
|
|
78
|
+
stroke-dashoffset: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
@keyframes dash {
|
|
82
|
+
to {
|
|
83
|
+
stroke-dashoffset: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
& .edge-animation-slow {
|
|
87
|
+
stroke-dasharray: 9,5 !important;
|
|
88
|
+
stroke-dashoffset: 900;
|
|
89
|
+
animation: dash 50s linear infinite;
|
|
90
|
+
stroke-linecap: round;
|
|
91
|
+
}
|
|
92
|
+
& .edge-animation-fast {
|
|
93
|
+
stroke-dasharray: 9,5 !important;
|
|
94
|
+
stroke-dashoffset: 900;
|
|
95
|
+
animation: dash 20s linear infinite;
|
|
96
|
+
stroke-linecap: round;
|
|
97
|
+
}
|
|
98
|
+
/* Classes common for multiple diagrams */
|
|
99
|
+
|
|
100
|
+
& .error-icon {
|
|
101
|
+
fill: ${r.errorBkgColor};
|
|
102
|
+
}
|
|
103
|
+
& .error-text {
|
|
104
|
+
fill: ${r.errorTextColor};
|
|
105
|
+
stroke: ${r.errorTextColor};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& .edge-thickness-normal {
|
|
109
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
110
|
+
}
|
|
111
|
+
& .edge-thickness-thick {
|
|
112
|
+
stroke-width: 3.5px
|
|
113
|
+
}
|
|
114
|
+
& .edge-pattern-solid {
|
|
115
|
+
stroke-dasharray: 0;
|
|
116
|
+
}
|
|
117
|
+
& .edge-thickness-invisible {
|
|
118
|
+
stroke-width: 0;
|
|
119
|
+
fill: none;
|
|
120
|
+
}
|
|
121
|
+
& .edge-pattern-dashed{
|
|
122
|
+
stroke-dasharray: 3;
|
|
123
|
+
}
|
|
124
|
+
.edge-pattern-dotted {
|
|
125
|
+
stroke-dasharray: 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
& .marker {
|
|
129
|
+
fill: ${r.lineColor};
|
|
130
|
+
stroke: ${r.lineColor};
|
|
131
|
+
}
|
|
132
|
+
& .marker.cross {
|
|
133
|
+
stroke: ${r.lineColor};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& svg {
|
|
137
|
+
font-family: ${r.fontFamily};
|
|
138
|
+
font-size: ${r.fontSize};
|
|
139
|
+
}
|
|
140
|
+
& p {
|
|
141
|
+
margin: 0
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
${n}
|
|
145
|
+
.node .neo-node {
|
|
146
|
+
stroke: ${r.nodeBorder};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
150
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
151
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
[data-look="neo"].node path {
|
|
156
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
157
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[data-look="neo"].node .outer-path {
|
|
161
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-look="neo"].node .neo-line path {
|
|
165
|
+
stroke: ${r.nodeBorder};
|
|
166
|
+
filter: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[data-look="neo"].node circle{
|
|
170
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
171
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-look="neo"].node circle .state-start{
|
|
175
|
+
fill: #000000;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[data-look="neo"].icon-shape .icon {
|
|
179
|
+
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
180
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
184
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
185
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
${t}
|
|
189
|
+
`},"getStyles"),KP=v((e,t)=>{t!==void 0&&(Uh[e]=t)},"addStylesForDiagram"),ZP=QP,P2={};E4(P2,{clear:()=>JP,getAccDescription:()=>iO,getAccTitle:()=>eO,getDiagramTitle:()=>oO,setAccDescription:()=>rO,setAccTitle:()=>tO,setDiagramTitle:()=>nO});var Em="",Fm="",Am="",Mm=v(e=>Ai(e,_e()),"sanitizeText"),JP=v(()=>{Em="",Am="",Fm=""},"clear"),tO=v(e=>{Em=Mm(e).replace(/^\s+/g,"")},"setAccTitle"),eO=v(()=>Em,"getAccTitle"),rO=v(e=>{Am=Mm(e).replace(/\n\s+/g,`
|
|
190
|
+
`)},"setAccDescription"),iO=v(()=>Am,"getAccDescription"),nO=v(e=>{Fm=Mm(e)},"setDiagramTitle"),oO=v(()=>Fm,"getDiagramTitle"),fC=at,sO=Bm,ce=_e,KU=T2,ZU=Js,Im=v(e=>Ai(e,ce()),"sanitizeText"),aO=XP,lO=v(()=>P2,"getCommonDb"),cu={},hu=v((e,t,r)=>{var i;cu[e]&&fC.warn(`Diagram with id ${e} already registered. Overwriting.`),cu[e]=t,r&&k2(e,r),KP(e,t.styles),(i=t.injectUtils)==null||i.call(t,fC,sO,ce,Im,aO,lO(),()=>{})},"registerDiagram"),cg=v(e=>{if(e in cu)return cu[e];throw new cO(e)},"getDiagram"),Xs,cO=(Xs=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},v(Xs,"DiagramNotFoundError"),Xs),hO={value:()=>{}};function O2(){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 Vh(r)}function Vh(e){this._=e}function uO(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}})}Vh.prototype=O2.prototype={constructor:Vh,on:function(e,t){var r=this._,i=uO(e+"",r),n,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((n=(e=i[s]).type)&&(n=dO(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(n=(e=i[s]).type)r[n]=pC(r[n],e.name,t);else if(t==null)for(n in r)r[n]=pC(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 Vh(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,n=s.length;i<n;++i)s[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,s=i.length;n<s;++n)i[n].value.apply(t,r)}};function dO(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function pC(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=hO,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var hg="http://www.w3.org/1999/xhtml";const gC={svg:"http://www.w3.org/2000/svg",xhtml:hg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),gC.hasOwnProperty(t)?{space:gC[t],local:e}:e}function fO(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===hg&&t.documentElement.namespaceURI===hg?t.createElement(e):t.createElementNS(r,e)}}function pO(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function D2(e){var t=Gu(e);return(t.local?pO:fO)(t)}function gO(){}function Pm(e){return e==null?gO:function(){return this.querySelector(e)}}function mO(e){typeof e!="function"&&(e=Pm(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],a=s.length,c=i[n]=new Array(a),h,u,d=0;d<a;++d)(h=s[d])&&(u=e.call(h,h.__data__,d,s))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u);return new Qr(i,this._parents)}function yO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function xO(){return[]}function R2(e){return e==null?xO:function(){return this.querySelectorAll(e)}}function CO(e){return function(){return yO(e.apply(this,arguments))}}function kO(e){typeof e=="function"?e=CO(e):e=R2(e);for(var t=this._groups,r=t.length,i=[],n=[],s=0;s<r;++s)for(var a=t[s],c=a.length,h,u=0;u<c;++u)(h=a[u])&&(i.push(e.call(h,h.__data__,u,a)),n.push(h));return new Qr(i,n)}function $2(e){return function(){return this.matches(e)}}function z2(e){return function(t){return t.matches(e)}}var bO=Array.prototype.find;function vO(e){return function(){return bO.call(this.children,e)}}function wO(){return this.firstElementChild}function SO(e){return this.select(e==null?wO:vO(typeof e=="function"?e:z2(e)))}var TO=Array.prototype.filter;function _O(){return Array.from(this.children)}function BO(e){return function(){return TO.call(this.children,e)}}function LO(e){return this.selectAll(e==null?_O:BO(typeof e=="function"?e:z2(e)))}function EO(e){typeof e!="function"&&(e=$2(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],a=s.length,c=i[n]=[],h,u=0;u<a;++u)(h=s[u])&&e.call(h,h.__data__,u,s)&&c.push(h);return new Qr(i,this._parents)}function N2(e){return new Array(e.length)}function FO(){return new Qr(this._enter||this._groups.map(N2),this._parents)}function uu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uu.prototype={constructor:uu,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 AO(e){return function(){return e}}function MO(e,t,r,i,n,s){for(var a=0,c,h=t.length,u=s.length;a<u;++a)(c=t[a])?(c.__data__=s[a],i[a]=c):r[a]=new uu(e,s[a]);for(;a<h;++a)(c=t[a])&&(n[a]=c)}function IO(e,t,r,i,n,s,a){var c,h,u=new Map,d=t.length,p=s.length,m=new Array(d),g;for(c=0;c<d;++c)(h=t[c])&&(m[c]=g=a.call(h,h.__data__,c,t)+"",u.has(g)?n[c]=h:u.set(g,h));for(c=0;c<p;++c)g=a.call(e,s[c],c,s)+"",(h=u.get(g))?(i[c]=h,h.__data__=s[c],u.delete(g)):r[c]=new uu(e,s[c]);for(c=0;c<d;++c)(h=t[c])&&u.get(m[c])===h&&(n[c]=h)}function PO(e){return e.__data__}function OO(e,t){if(!arguments.length)return Array.from(this,PO);var r=t?IO:MO,i=this._parents,n=this._groups;typeof e!="function"&&(e=AO(e));for(var s=n.length,a=new Array(s),c=new Array(s),h=new Array(s),u=0;u<s;++u){var d=i[u],p=n[u],m=p.length,g=DO(e.call(d,d&&d.__data__,u,i)),x=g.length,C=c[u]=new Array(x),k=a[u]=new Array(x),w=h[u]=new Array(m);r(d,p,C,k,w,g,t);for(var T=0,_=0,P,O;T<x;++T)if(P=C[T]){for(T>=_&&(_=T+1);!(O=k[_])&&++_<x;);P._next=O||null}}return a=new Qr(a,i),a._enter=c,a._exit=h,a}function DO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function RO(){return new Qr(this._exit||this._groups.map(N2),this._parents)}function $O(e,t,r){var i=this.enter(),n=this,s=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?s.remove():r(s),i&&n?i.merge(n).order():n}function zO(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,s=i.length,a=Math.min(n,s),c=new Array(n),h=0;h<a;++h)for(var u=r[h],d=i[h],p=u.length,m=c[h]=new Array(p),g,x=0;x<p;++x)(g=u[x]||d[x])&&(m[x]=g);for(;h<n;++h)c[h]=r[h];return new Qr(c,this._parents)}function NO(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,s=i[n],a;--n>=0;)(a=i[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function jO(e){e||(e=WO);function t(p,m){return p&&m?e(p.__data__,m.__data__):!p-!m}for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var a=r[s],c=a.length,h=n[s]=new Array(c),u,d=0;d<c;++d)(u=a[d])&&(h[d]=u);h.sort(t)}return new Qr(n,this._parents).order()}function WO(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qO(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function HO(){return Array.from(this)}function UO(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,s=i.length;n<s;++n){var a=i[n];if(a)return a}return null}function VO(){let e=0;for(const t of this)++e;return e}function YO(){return!this.node()}function GO(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],s=0,a=n.length,c;s<a;++s)(c=n[s])&&e.call(c,c.__data__,s,n);return this}function XO(e){return function(){this.removeAttribute(e)}}function QO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function KO(e,t){return function(){this.setAttribute(e,t)}}function ZO(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function JO(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function tD(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 eD(e,t){var r=Gu(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?QO:XO:typeof t=="function"?r.local?tD:JO:r.local?ZO:KO)(r,t))}function j2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function rD(e){return function(){this.style.removeProperty(e)}}function iD(e,t,r){return function(){this.style.setProperty(e,t,r)}}function nD(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function oD(e,t,r){return arguments.length>1?this.each((t==null?rD:typeof t=="function"?nD:iD)(e,t,r??"")):ta(this.node(),e)}function ta(e,t){return e.style.getPropertyValue(t)||j2(e).getComputedStyle(e,null).getPropertyValue(t)}function sD(e){return function(){delete this[e]}}function aD(e,t){return function(){this[e]=t}}function lD(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function cD(e,t){return arguments.length>1?this.each((t==null?sD:typeof t=="function"?lD:aD)(e,t)):this.node()[e]}function W2(e){return e.trim().split(/^|\s+/)}function Om(e){return e.classList||new q2(e)}function q2(e){this._node=e,this._names=W2(e.getAttribute("class")||"")}q2.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 H2(e,t){for(var r=Om(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function U2(e,t){for(var r=Om(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function hD(e){return function(){H2(this,e)}}function uD(e){return function(){U2(this,e)}}function dD(e,t){return function(){(t.apply(this,arguments)?H2:U2)(this,e)}}function fD(e,t){var r=W2(e+"");if(arguments.length<2){for(var i=Om(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?dD:t?hD:uD)(r,t))}function pD(){this.textContent=""}function gD(e){return function(){this.textContent=e}}function mD(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function yD(e){return arguments.length?this.each(e==null?pD:(typeof e=="function"?mD:gD)(e)):this.node().textContent}function xD(){this.innerHTML=""}function CD(e){return function(){this.innerHTML=e}}function kD(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function bD(e){return arguments.length?this.each(e==null?xD:(typeof e=="function"?kD:CD)(e)):this.node().innerHTML}function vD(){this.nextSibling&&this.parentNode.appendChild(this)}function wD(){return this.each(vD)}function SD(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function TD(){return this.each(SD)}function _D(e){var t=typeof e=="function"?e:D2(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function BD(){return null}function LD(e,t){var r=typeof e=="function"?e:D2(e),i=t==null?BD:typeof t=="function"?t:Pm(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function ED(){var e=this.parentNode;e&&e.removeChild(this)}function FD(){return this.each(ED)}function AD(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function MD(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ID(e){return this.select(e?MD:AD)}function PD(e){return arguments.length?this.property("__data__",e):this.node().__data__}function OD(e){return function(t){e.call(this,t,this.__data__)}}function DD(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 RD(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,s;r<n;++r)s=t[r],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function $D(e,t,r){return function(){var i=this.__on,n,s=OD(t);if(i){for(var a=0,c=i.length;a<c;++a)if((n=i[a]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=t;return}}this.addEventListener(e.type,s,r),n={type:e.type,name:e.name,value:t,listener:s,options:r},i?i.push(n):this.__on=[n]}}function zD(e,t,r){var i=DD(e+""),n,s=i.length,a;if(arguments.length<2){var c=this.node().__on;if(c){for(var h=0,u=c.length,d;h<u;++h)for(n=0,d=c[h];n<s;++n)if((a=i[n]).type===d.type&&a.name===d.name)return d.value}return}for(c=t?$D:RD,n=0;n<s;++n)this.each(c(i[n],t,r));return this}function V2(e,t,r){var i=j2(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 ND(e,t){return function(){return V2(this,e,t)}}function jD(e,t){return function(){return V2(this,e,t.apply(this,arguments))}}function WD(e,t){return this.each((typeof t=="function"?jD:ND)(e,t))}function*qD(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,s=i.length,a;n<s;++n)(a=i[n])&&(yield a)}var Y2=[null];function Qr(e,t){this._groups=e,this._parents=t}function ic(){return new Qr([[document.documentElement]],Y2)}function HD(){return this}Qr.prototype=ic.prototype={constructor:Qr,select:mO,selectAll:kO,selectChild:SO,selectChildren:LO,filter:EO,data:OO,enter:FO,exit:RO,join:$O,merge:zO,selection:HD,order:NO,sort:jO,call:qO,nodes:HO,node:UO,size:VO,empty:YO,each:GO,attr:eD,style:oD,property:cD,classed:fD,text:yD,html:bD,raise:wD,lower:TD,append:_D,insert:LD,remove:FD,clone:ID,datum:PD,on:zD,dispatch:WD,[Symbol.iterator]:qD};function Qt(e){return typeof e=="string"?new Qr([[document.querySelector(e)]],[document.documentElement]):new Qr([[e]],Y2)}function Dm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function G2(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function nc(){}var $l=.7,du=1/$l,Os="\\s*([+-]?\\d+)\\s*",zl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UD=/^#([0-9a-f]{3,8})$/,VD=new RegExp(`^rgb\\(${Os},${Os},${Os}\\)$`),YD=new RegExp(`^rgb\\(${Vi},${Vi},${Vi}\\)$`),GD=new RegExp(`^rgba\\(${Os},${Os},${Os},${zl}\\)$`),XD=new RegExp(`^rgba\\(${Vi},${Vi},${Vi},${zl}\\)$`),QD=new RegExp(`^hsl\\(${zl},${Vi},${Vi}\\)$`),KD=new RegExp(`^hsla\\(${zl},${Vi},${Vi},${zl}\\)$`),mC={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};Dm(nc,Nl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yC,formatHex:yC,formatHex8:ZD,formatHsl:JD,formatRgb:xC,toString:xC});function yC(){return this.rgb().formatHex()}function ZD(){return this.rgb().formatHex8()}function JD(){return X2(this).formatHsl()}function xC(){return this.rgb().formatRgb()}function Nl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=UD.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?CC(t):r===3?new Or(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Bh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Bh(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=VD.exec(e))?new Or(t[1],t[2],t[3],1):(t=YD.exec(e))?new Or(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=GD.exec(e))?Bh(t[1],t[2],t[3],t[4]):(t=XD.exec(e))?Bh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=QD.exec(e))?vC(t[1],t[2]/100,t[3]/100,1):(t=KD.exec(e))?vC(t[1],t[2]/100,t[3]/100,t[4]):mC.hasOwnProperty(e)?CC(mC[e]):e==="transparent"?new Or(NaN,NaN,NaN,0):null}function CC(e){return new Or(e>>16&255,e>>8&255,e&255,1)}function Bh(e,t,r,i){return i<=0&&(e=t=r=NaN),new Or(e,t,r,i)}function t6(e){return e instanceof nc||(e=Nl(e)),e?(e=e.rgb(),new Or(e.r,e.g,e.b,e.opacity)):new Or}function ug(e,t,r,i){return arguments.length===1?t6(e):new Or(e,t,r,i??1)}function Or(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Dm(Or,ug,G2(nc,{brighter(e){return e=e==null?du:Math.pow(du,e),new Or(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$l:Math.pow($l,e),new Or(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Or(Oo(this.r),Oo(this.g),Oo(this.b),fu(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:kC,formatHex:kC,formatHex8:e6,formatRgb:bC,toString:bC}));function kC(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}`}function e6(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}${Mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function bC(){const e=fu(this.opacity);return`${e===1?"rgb(":"rgba("}${Oo(this.r)}, ${Oo(this.g)}, ${Oo(this.b)}${e===1?")":`, ${e})`}`}function fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mo(e){return e=Oo(e),(e<16?"0":"")+e.toString(16)}function vC(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _i(e,t,r,i)}function X2(e){if(e instanceof _i)return new _i(e.h,e.s,e.l,e.opacity);if(e instanceof nc||(e=Nl(e)),!e)return new _i;if(e instanceof _i)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),s=Math.max(t,r,i),a=NaN,c=s-n,h=(s+n)/2;return c?(t===s?a=(r-i)/c+(r<i)*6:r===s?a=(i-t)/c+2:a=(t-r)/c+4,c/=h<.5?s+n:2-s-n,a*=60):c=h>0&&h<1?0:a,new _i(a,c,h,e.opacity)}function r6(e,t,r,i){return arguments.length===1?X2(e):new _i(e,t,r,i??1)}function _i(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Dm(_i,r6,G2(nc,{brighter(e){return e=e==null?du:Math.pow(du,e),new _i(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$l:Math.pow($l,e),new _i(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 Or(Tp(e>=240?e-240:e+120,n,i),Tp(e,n,i),Tp(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new _i(wC(this.h),Lh(this.s),Lh(this.l),fu(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=fu(this.opacity);return`${e===1?"hsl(":"hsla("}${wC(this.h)}, ${Lh(this.s)*100}%, ${Lh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function wC(e){return e=(e||0)%360,e<0?e+360:e}function Lh(e){return Math.max(0,Math.min(1,e||0))}function Tp(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 Rm=e=>()=>e;function Q2(e,t){return function(r){return e+r*t}}function i6(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 JU(e,t){var r=t-e;return r?Q2(e,r>180||r<-180?r-360*Math.round(r/360):r):Rm(isNaN(e)?t:e)}function n6(e){return(e=+e)==1?K2:function(t,r){return r-t?i6(t,r,e):Rm(isNaN(t)?r:t)}}function K2(e,t){var r=t-e;return r?Q2(e,r):Rm(isNaN(e)?t:e)}const SC=(function e(t){var r=n6(t);function i(n,s){var a=r((n=ug(n)).r,(s=ug(s)).r),c=r(n.g,s.g),h=r(n.b,s.b),u=K2(n.opacity,s.opacity);return function(d){return n.r=a(d),n.g=c(d),n.b=h(d),n.opacity=u(d),n+""}}return i.gamma=e,i})(1);function Zn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var dg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_p=new RegExp(dg.source,"g");function o6(e){return function(){return e}}function s6(e){return function(t){return e(t)+""}}function a6(e,t){var r=dg.lastIndex=_p.lastIndex=0,i,n,s,a=-1,c=[],h=[];for(e=e+"",t=t+"";(i=dg.exec(e))&&(n=_p.exec(t));)(s=n.index)>r&&(s=t.slice(r,s),c[a]?c[a]+=s:c[++a]=s),(i=i[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,h.push({i:a,x:Zn(i,n)})),r=_p.lastIndex;return r<t.length&&(s=t.slice(r),c[a]?c[a]+=s:c[++a]=s),c.length<2?h[0]?s6(h[0].x):o6(t):(t=h.length,function(u){for(var d=0,p;d<t;++d)c[(p=h[d]).i]=p.x(u);return c.join("")})}var TC=180/Math.PI,fg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Z2(e,t,r,i,n,s){var a,c,h;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(h=e*r+t*i)&&(r-=e*h,i-=t*h),(c=Math.sqrt(r*r+i*i))&&(r/=c,i/=c,h/=c),e*i<t*r&&(e=-e,t=-t,h=-h,a=-a),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*TC,skewX:Math.atan(h)*TC,scaleX:a,scaleY:c}}var Eh;function l6(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?fg:Z2(t.a,t.b,t.c,t.d,t.e,t.f)}function c6(e){return e==null||(Eh||(Eh=document.createElementNS("http://www.w3.org/2000/svg","g")),Eh.setAttribute("transform",e),!(e=Eh.transform.baseVal.consolidate()))?fg:(e=e.matrix,Z2(e.a,e.b,e.c,e.d,e.e,e.f))}function J2(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function s(u,d,p,m,g,x){if(u!==p||d!==m){var C=g.push("translate(",null,t,null,r);x.push({i:C-4,x:Zn(u,p)},{i:C-2,x:Zn(d,m)})}else(p||m)&&g.push("translate("+p+t+m+r)}function a(u,d,p,m){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),m.push({i:p.push(n(p)+"rotate(",null,i)-2,x:Zn(u,d)})):d&&p.push(n(p)+"rotate("+d+i)}function c(u,d,p,m){u!==d?m.push({i:p.push(n(p)+"skewX(",null,i)-2,x:Zn(u,d)}):d&&p.push(n(p)+"skewX("+d+i)}function h(u,d,p,m,g,x){if(u!==p||d!==m){var C=g.push(n(g)+"scale(",null,",",null,")");x.push({i:C-4,x:Zn(u,p)},{i:C-2,x:Zn(d,m)})}else(p!==1||m!==1)&&g.push(n(g)+"scale("+p+","+m+")")}return function(u,d){var p=[],m=[];return u=e(u),d=e(d),s(u.translateX,u.translateY,d.translateX,d.translateY,p,m),a(u.rotate,d.rotate,p,m),c(u.skewX,d.skewX,p,m),h(u.scaleX,u.scaleY,d.scaleX,d.scaleY,p,m),u=d=null,function(g){for(var x=-1,C=m.length,k;++x<C;)p[(k=m[x]).i]=k.x(g);return p.join("")}}}var h6=J2(l6,"px, ","px)","deg)"),u6=J2(c6,", ",")",")"),ea=0,xl=0,cl=0,tv=1e3,pu,Cl,gu=0,No=0,Xu=0,jl=typeof performance=="object"&&performance.now?performance:Date,ev=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function $m(){return No||(ev(d6),No=jl.now()+Xu)}function d6(){No=0}function mu(){this._call=this._time=this._next=null}mu.prototype=rv.prototype={constructor:mu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?$m():+r)+(t==null?0:+t),!this._next&&Cl!==this&&(Cl?Cl._next=this:pu=this,Cl=this),this._call=e,this._time=r,pg()},stop:function(){this._call&&(this._call=null,this._time=1/0,pg())}};function rv(e,t,r){var i=new mu;return i.restart(e,t,r),i}function f6(){$m(),++ea;for(var e=pu,t;e;)(t=No-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ea}function _C(){No=(gu=jl.now())+Xu,ea=xl=0;try{f6()}finally{ea=0,g6(),No=0}}function p6(){var e=jl.now(),t=e-gu;t>tv&&(Xu-=t,gu=e)}function g6(){for(var e,t=pu,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:pu=r);Cl=e,pg(i)}function pg(e){if(!ea){xl&&(xl=clearTimeout(xl));var t=e-No;t>24?(e<1/0&&(xl=setTimeout(_C,e-jl.now()-Xu)),cl&&(cl=clearInterval(cl))):(cl||(gu=jl.now(),cl=setInterval(p6,tv)),ea=1,ev(_C))}}function BC(e,t,r){var i=new mu;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var m6=O2("start","end","cancel","interrupt"),y6=[],iv=0,LC=1,gg=2,Yh=3,EC=4,mg=5,Gh=6;function Qu(e,t,r,i,n,s){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;x6(e,r,{name:t,index:i,group:n,on:m6,tween:y6,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:iv})}function zm(e,t){var r=Pi(e,t);if(r.state>iv)throw new Error("too late; already scheduled");return r}function Zi(e,t){var r=Pi(e,t);if(r.state>Yh)throw new Error("too late; already running");return r}function Pi(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function x6(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=rv(s,0,r.time);function s(u){r.state=LC,r.timer.restart(a,r.delay,r.time),r.delay<=u&&a(u-r.delay)}function a(u){var d,p,m,g;if(r.state!==LC)return h();for(d in i)if(g=i[d],g.name===r.name){if(g.state===Yh)return BC(a);g.state===EC?(g.state=Gh,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete i[d]):+d<t&&(g.state=Gh,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete i[d])}if(BC(function(){r.state===Yh&&(r.state=EC,r.timer.restart(c,r.delay,r.time),c(u))}),r.state=gg,r.on.call("start",e,e.__data__,r.index,r.group),r.state===gg){for(r.state=Yh,n=new Array(m=r.tween.length),d=0,p=-1;d<m;++d)(g=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(n[++p]=g);n.length=p+1}}function c(u){for(var d=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(h),r.state=mg,1),p=-1,m=n.length;++p<m;)n[p].call(e,d);r.state===mg&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Gh,r.timer.stop(),delete i[t];for(var u in i)return;delete e.__transition}}function C6(e,t){var r=e.__transition,i,n,s=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((i=r[a]).name!==t){s=!1;continue}n=i.state>gg&&i.state<mg,i.state=Gh,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}s&&delete e.__transition}}function k6(e){return this.each(function(){C6(this,e)})}function b6(e,t){var r,i;return function(){var n=Zi(this,e),s=n.tween;if(s!==r){i=r=s;for(var a=0,c=i.length;a<c;++a)if(i[a].name===t){i=i.slice(),i.splice(a,1);break}}n.tween=i}}function v6(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=Zi(this,e),a=s.tween;if(a!==i){n=(i=a).slice();for(var c={name:t,value:r},h=0,u=n.length;h<u;++h)if(n[h].name===t){n[h]=c;break}h===u&&n.push(c)}s.tween=n}}function w6(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Pi(this.node(),r).tween,n=0,s=i.length,a;n<s;++n)if((a=i[n]).name===e)return a.value;return null}return this.each((t==null?b6:v6)(r,e,t))}function Nm(e,t,r){var i=e._id;return e.each(function(){var n=Zi(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Pi(n,i).value[t]}}function nv(e,t){var r;return(typeof t=="number"?Zn:t instanceof Nl?SC:(r=Nl(t))?(t=r,SC):a6)(e,t)}function S6(e){return function(){this.removeAttribute(e)}}function T6(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _6(e,t,r){var i,n=r+"",s;return function(){var a=this.getAttribute(e);return a===n?null:a===i?s:s=t(i=a,r)}}function B6(e,t,r){var i,n=r+"",s;return function(){var a=this.getAttributeNS(e.space,e.local);return a===n?null:a===i?s:s=t(i=a,r)}}function L6(e,t,r){var i,n,s;return function(){var a,c=r(this),h;return c==null?void this.removeAttribute(e):(a=this.getAttribute(e),h=c+"",a===h?null:a===i&&h===n?s:(n=h,s=t(i=a,c)))}}function E6(e,t,r){var i,n,s;return function(){var a,c=r(this),h;return c==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),h=c+"",a===h?null:a===i&&h===n?s:(n=h,s=t(i=a,c)))}}function F6(e,t){var r=Gu(e),i=r==="transform"?u6:nv;return this.attrTween(e,typeof t=="function"?(r.local?E6:L6)(r,i,Nm(this,"attr."+e,t)):t==null?(r.local?T6:S6)(r):(r.local?B6:_6)(r,i,t))}function A6(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function M6(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function I6(e,t){var r,i;function n(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&M6(e,s)),r}return n._value=t,n}function P6(e,t){var r,i;function n(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&A6(e,s)),r}return n._value=t,n}function O6(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=Gu(e);return this.tween(r,(i.local?I6:P6)(i,t))}function D6(e,t){return function(){zm(this,e).delay=+t.apply(this,arguments)}}function R6(e,t){return t=+t,function(){zm(this,e).delay=t}}function $6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?D6:R6)(t,e)):Pi(this.node(),t).delay}function z6(e,t){return function(){Zi(this,e).duration=+t.apply(this,arguments)}}function N6(e,t){return t=+t,function(){Zi(this,e).duration=t}}function j6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?z6:N6)(t,e)):Pi(this.node(),t).duration}function W6(e,t){if(typeof t!="function")throw new Error;return function(){Zi(this,e).ease=t}}function q6(e){var t=this._id;return arguments.length?this.each(W6(t,e)):Pi(this.node(),t).ease}function H6(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Zi(this,e).ease=r}}function U6(e){if(typeof e!="function")throw new Error;return this.each(H6(this._id,e))}function V6(e){typeof e!="function"&&(e=$2(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],a=s.length,c=i[n]=[],h,u=0;u<a;++u)(h=s[u])&&e.call(h,h.__data__,u,s)&&c.push(h);return new xn(i,this._parents,this._name,this._id)}function Y6(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,s=Math.min(i,n),a=new Array(i),c=0;c<s;++c)for(var h=t[c],u=r[c],d=h.length,p=a[c]=new Array(d),m,g=0;g<d;++g)(m=h[g]||u[g])&&(p[g]=m);for(;c<i;++c)a[c]=t[c];return new xn(a,this._parents,this._name,this._id)}function G6(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 X6(e,t,r){var i,n,s=G6(t)?zm:Zi;return function(){var a=s(this,e),c=a.on;c!==i&&(n=(i=c).copy()).on(t,r),a.on=n}}function Q6(e,t){var r=this._id;return arguments.length<2?Pi(this.node(),r).on.on(e):this.each(X6(r,e,t))}function K6(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Z6(){return this.on("end.remove",K6(this._id))}function J6(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Pm(e));for(var i=this._groups,n=i.length,s=new Array(n),a=0;a<n;++a)for(var c=i[a],h=c.length,u=s[a]=new Array(h),d,p,m=0;m<h;++m)(d=c[m])&&(p=e.call(d,d.__data__,m,c))&&("__data__"in d&&(p.__data__=d.__data__),u[m]=p,Qu(u[m],t,r,m,u,Pi(d,r)));return new xn(s,this._parents,t,r)}function tR(e){var t=this._name,r=this._id;typeof e!="function"&&(e=R2(e));for(var i=this._groups,n=i.length,s=[],a=[],c=0;c<n;++c)for(var h=i[c],u=h.length,d,p=0;p<u;++p)if(d=h[p]){for(var m=e.call(d,d.__data__,p,h),g,x=Pi(d,r),C=0,k=m.length;C<k;++C)(g=m[C])&&Qu(g,t,r,C,m,x);s.push(m),a.push(d)}return new xn(s,a,t,r)}var eR=ic.prototype.constructor;function rR(){return new eR(this._groups,this._parents)}function iR(e,t){var r,i,n;return function(){var s=ta(this,e),a=(this.style.removeProperty(e),ta(this,e));return s===a?null:s===r&&a===i?n:n=t(r=s,i=a)}}function ov(e){return function(){this.style.removeProperty(e)}}function nR(e,t,r){var i,n=r+"",s;return function(){var a=ta(this,e);return a===n?null:a===i?s:s=t(i=a,r)}}function oR(e,t,r){var i,n,s;return function(){var a=ta(this,e),c=r(this),h=c+"";return c==null&&(h=c=(this.style.removeProperty(e),ta(this,e))),a===h?null:a===i&&h===n?s:(n=h,s=t(i=a,c))}}function sR(e,t){var r,i,n,s="style."+t,a="end."+s,c;return function(){var h=Zi(this,e),u=h.on,d=h.value[s]==null?c||(c=ov(t)):void 0;(u!==r||n!==d)&&(i=(r=u).copy()).on(a,n=d),h.on=i}}function aR(e,t,r){var i=(e+="")=="transform"?h6:nv;return t==null?this.styleTween(e,iR(e,i)).on("end.style."+e,ov(e)):typeof t=="function"?this.styleTween(e,oR(e,i,Nm(this,"style."+e,t))).each(sR(this._id,e)):this.styleTween(e,nR(e,i,t),r).on("end.style."+e,null)}function lR(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function cR(e,t,r){var i,n;function s(){var a=t.apply(this,arguments);return a!==n&&(i=(n=a)&&lR(e,a,r)),i}return s._value=t,s}function hR(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,cR(e,t,r??""))}function uR(e){return function(){this.textContent=e}}function dR(e){return function(){var t=e(this);this.textContent=t??""}}function fR(e){return this.tween("text",typeof e=="function"?dR(Nm(this,"text",e)):uR(e==null?"":e+""))}function pR(e){return function(t){this.textContent=e.call(this,t)}}function gR(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&pR(n)),t}return i._value=e,i}function mR(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,gR(e))}function yR(){for(var e=this._name,t=this._id,r=sv(),i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],c=a.length,h,u=0;u<c;++u)if(h=a[u]){var d=Pi(h,t);Qu(h,e,r,u,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new xn(i,this._parents,e,r)}function xR(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(s,a){var c={value:a},h={value:function(){--n===0&&s()}};r.each(function(){var u=Zi(this,i),d=u.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(c),t._.interrupt.push(c),t._.end.push(h)),u.on=t}),n===0&&s()})}var CR=0;function xn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function sv(){return++CR}var dn=ic.prototype;xn.prototype={constructor:xn,select:J6,selectAll:tR,selectChild:dn.selectChild,selectChildren:dn.selectChildren,filter:V6,merge:Y6,selection:rR,transition:yR,call:dn.call,nodes:dn.nodes,node:dn.node,size:dn.size,empty:dn.empty,each:dn.each,on:Q6,attr:F6,attrTween:O6,style:aR,styleTween:hR,text:fR,textTween:mR,remove:Z6,tween:w6,delay:$6,duration:j6,ease:q6,easeVarying:U6,end:xR,[Symbol.iterator]:dn[Symbol.iterator]};function kR(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var bR={time:null,delay:0,duration:250,ease:kR};function vR(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 wR(e){var t,r;e instanceof xn?(t=e._id,e=e._name):(t=sv(),(r=bR).time=$m(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var a=i[s],c=a.length,h,u=0;u<c;++u)(h=a[u])&&Qu(h,e,t,u,a,r||vR(h,t));return new xn(i,this._parents,e,t)}ic.prototype.interrupt=k6;ic.prototype.transition=wR;const yg=Math.PI,xg=2*yg,Lo=1e-6,SR=xg-Lo;function av(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function TR(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return av;const r=10**t;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class _R{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?av:TR(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,s,a){this._append`C${+t},${+r},${+i},${+n},${this._x1=+s},${this._y1=+a}`}arcTo(t,r,i,n,s){if(t=+t,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,c=this._y1,h=i-t,u=n-r,d=a-t,p=c-r,m=d*d+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Lo)if(!(Math.abs(p*h-u*d)>Lo)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let g=i-a,x=n-c,C=h*h+u*u,k=g*g+x*x,w=Math.sqrt(C),T=Math.sqrt(m),_=s*Math.tan((yg-Math.acos((C+m-k)/(2*w*T)))/2),P=_/T,O=_/w;Math.abs(P-1)>Lo&&this._append`L${t+P*d},${r+P*p}`,this._append`A${s},${s},0,0,${+(p*g>d*x)},${this._x1=t+O*h},${this._y1=r+O*u}`}}arc(t,r,i,n,s,a){if(t=+t,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(n),h=i*Math.sin(n),u=t+c,d=r+h,p=1^a,m=a?n-s:s-n;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Lo||Math.abs(this._y1-d)>Lo)&&this._append`L${u},${d}`,i&&(m<0&&(m=m%xg+xg),m>SR?this._append`A${i},${i},0,1,${p},${t-c},${r-h}A${i},${i},0,1,${p},${this._x1=u},${this._y1=d}`:m>Lo&&this._append`A${i},${i},0,${+(m>=yg)},${p},${this._x1=t+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}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 Ss(e){return function(){return e}}const tV=Math.abs,eV=Math.atan2,rV=Math.cos,iV=Math.max,nV=Math.min,oV=Math.sin,sV=Math.sqrt,FC=1e-12,jm=Math.PI,AC=jm/2,aV=2*jm;function lV(e){return e>1?0:e<-1?jm:Math.acos(e)}function cV(e){return e>=1?AC:e<=-1?-AC:Math.asin(e)}function BR(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 _R(t)}function LR(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lv(e){this._context=e}lv.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 Ml(e){return new lv(e)}function ER(e){return e[0]}function FR(e){return e[1]}function AR(e,t){var r=Ss(!0),i=null,n=Ml,s=null,a=BR(c);e=typeof e=="function"?e:e===void 0?ER:Ss(e),t=typeof t=="function"?t:t===void 0?FR:Ss(t);function c(h){var u,d=(h=LR(h)).length,p,m=!1,g;for(i==null&&(s=n(g=a())),u=0;u<=d;++u)!(u<d&&r(p=h[u],u,h))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+e(p,u,h),+t(p,u,h));if(g)return s=null,g+""||null}return c.x=function(h){return arguments.length?(e=typeof h=="function"?h:Ss(+h),c):e},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:Ss(+h),c):t},c.defined=function(h){return arguments.length?(r=typeof h=="function"?h:Ss(!!h),c):r},c.curve=function(h){return arguments.length?(n=h,i!=null&&(s=n(i)),c):n},c.context=function(h){return arguments.length?(h==null?i=s=null:s=n(i=h),c):i},c}class cv{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 hv(e){return new cv(e,!0)}function uv(e){return new cv(e,!1)}function io(){}function yu(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 Ku(e){this._context=e}Ku.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:yu(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:yu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cg(e){return new Ku(e)}function dv(e){this._context=e}dv.prototype={areaStart:io,areaEnd:io,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:yu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MR(e){return new dv(e)}function fv(e){this._context=e}fv.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:yu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IR(e){return new fv(e)}function pv(e,t){this._basis=new Ku(e),this._beta=t}pv.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],s=e[r]-i,a=t[r]-n,c=-1,h;++c<=r;)h=c/r,this._basis.point(this._beta*e[c]+(1-this._beta)*(i+h*s),this._beta*t[c]+(1-this._beta)*(n+h*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const PR=(function e(t){function r(i){return t===1?new Ku(i):new pv(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function xu(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 Wm(e,t){this._context=e,this._k=(1-t)/6}Wm.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:xu(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:xu(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 gv=(function e(t){function r(i){return new Wm(i,t)}return r.tension=function(i){return e(+i)},r})(0);function qm(e,t){this._context=e,this._k=(1-t)/6}qm.prototype={areaStart:io,areaEnd:io,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:xu(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 OR=(function e(t){function r(i){return new qm(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Hm(e,t){this._context=e,this._k=(1-t)/6}Hm.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:xu(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 DR=(function e(t){function r(i){return new Hm(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Um(e,t,r){var i=e._x1,n=e._y1,s=e._x2,a=e._y2;if(e._l01_a>FC){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,h=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/h,n=(n*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/h}if(e._l23_a>FC){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*u+e._x1*e._l23_2a-t*e._l12_2a)/d,a=(a*u+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(i,n,s,a,e._x2,e._y2)}function mv(e,t){this._context=e,this._alpha=t}mv.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:Um(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 yv=(function e(t){function r(i){return t?new mv(i,t):new Wm(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function xv(e,t){this._context=e,this._alpha=t}xv.prototype={areaStart:io,areaEnd:io,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:Um(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 RR=(function e(t){function r(i){return t?new xv(i,t):new qm(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Cv(e,t){this._context=e,this._alpha=t}Cv.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:Um(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 $R=(function e(t){function r(i){return t?new Cv(i,t):new Hm(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function kv(e){this._context=e}kv.prototype={areaStart:io,areaEnd:io,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 zR(e){return new kv(e)}function MC(e){return e<0?-1:1}function IC(e,t,r){var i=e._x1-e._x0,n=t-e._x1,s=(e._y1-e._y0)/(i||n<0&&-0),a=(r-e._y1)/(n||i<0&&-0),c=(s*n+a*i)/(i+n);return(MC(s)+MC(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(c))||0}function PC(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Bp(e,t,r){var i=e._x0,n=e._y0,s=e._x1,a=e._y1,c=(s-i)/3;e._context.bezierCurveTo(i+c,n+c*t,s-c,a-c*r,s,a)}function Cu(e){this._context=e}Cu.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:Bp(this,this._t0,PC(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,Bp(this,PC(this,r=IC(this,e,t)),r);break;default:Bp(this,this._t0,r=IC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bv(e){this._context=new vv(e)}(bv.prototype=Object.create(Cu.prototype)).point=function(e,t){Cu.prototype.point.call(this,t,e)};function vv(e){this._context=e}vv.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,s){this._context.bezierCurveTo(t,e,i,r,s,n)}};function wv(e){return new Cu(e)}function Sv(e){return new bv(e)}function Tv(e){this._context=e}Tv.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=OC(e),n=OC(t),s=0,a=1;a<r;++s,++a)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],e[a],t[a]);(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 OC(e){var t,r=e.length-1,i,n=new Array(r),s=new Array(r),a=new Array(r);for(n[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,s[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/s[t-1],s[t]-=i,a[t]-=i*a[t-1];for(n[r-1]=a[r-1]/s[r-1],t=r-2;t>=0;--t)n[t]=(a[t]-n[t+1])/s[t];for(s[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-n[t+1];return[n,s]}function _v(e){return new Tv(e)}function Zu(e,t){this._context=e,this._t=t}Zu.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 Bv(e){return new Zu(e,.5)}function Lv(e){return new Zu(e,0)}function Ev(e){return new Zu(e,1)}function kl(e,t,r){this.k=e,this.x=t,this.y=r}kl.prototype={constructor:kl,scale:function(e){return e===1?this:new kl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new kl(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+")"}};kl.prototype;var NR=v(e=>{var n;const{securityLevel:t}=ce();let r=Qt("body");if(t==="sandbox"){const a=((n=Qt(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=Qt(a.body)}return r.select(`#${e}`)},"selectSvgElement");function Vm(e){return typeof e>"u"||e===null}v(Vm,"isNothing");function Fv(e){return typeof e=="object"&&e!==null}v(Fv,"isObject");function Av(e){return Array.isArray(e)?e:Vm(e)?[]:[e]}v(Av,"toArray");function Mv(e,t){var r,i,n,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)n=s[r],e[n]=t[n];return e}v(Mv,"extend");function Iv(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}v(Iv,"repeat");function Pv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}v(Pv,"isNegativeZero");var jR=Vm,WR=Fv,qR=Av,HR=Iv,UR=Pv,VR=Mv,qe={isNothing:jR,isObject:WR,toArray:qR,repeat:HR,isNegativeZero:UR,extend:VR};function Ym(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+=`
|
|
191
|
+
|
|
192
|
+
`+e.mark.snippet),i+" "+r):i}v(Ym,"formatError");function ra(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ym(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}v(ra,"YAMLException$1");ra.prototype=Object.create(Error.prototype);ra.prototype.constructor=ra;ra.prototype.toString=v(function(t){return this.name+": "+Ym(this,t)},"toString");var Pr=ra;function Xh(e,t,r,i,n){var s="",a="",c=Math.floor(n/2)-1;return i-t>c&&(s=" ... ",t=i-c+s.length),r-i>c&&(a=" ...",r=i+c-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:i-t+s.length}}v(Xh,"getLine");function Qh(e,t){return qe.repeat(" ",t-e.length)+e}v(Qh,"padStart");function Ov(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=[],s,a=-1;s=r.exec(e.buffer);)n.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var c="",h,u,d=Math.min(e.line+t.linesAfter,n.length).toString().length,p=t.maxLength-(t.indent+d+3);for(h=1;h<=t.linesBefore&&!(a-h<0);h++)u=Xh(e.buffer,i[a-h],n[a-h],e.position-(i[a]-i[a-h]),p),c=qe.repeat(" ",t.indent)+Qh((e.line-h+1).toString(),d)+" | "+u.str+`
|
|
193
|
+
`+c;for(u=Xh(e.buffer,i[a],n[a],e.position,p),c+=qe.repeat(" ",t.indent)+Qh((e.line+1).toString(),d)+" | "+u.str+`
|
|
194
|
+
`,c+=qe.repeat("-",t.indent+d+3+u.pos)+`^
|
|
195
|
+
`,h=1;h<=t.linesAfter&&!(a+h>=n.length);h++)u=Xh(e.buffer,i[a+h],n[a+h],e.position-(i[a]-i[a+h]),p),c+=qe.repeat(" ",t.indent)+Qh((e.line+h+1).toString(),d)+" | "+u.str+`
|
|
196
|
+
`;return c.replace(/\n$/,"")}v(Ov,"makeSnippet");var YR=Ov,GR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],XR=["scalar","sequence","mapping"];function Dv(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}v(Dv,"compileStyleAliases");function Rv(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(GR.indexOf(r)===-1)throw new Pr('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=Dv(t.styleAliases||null),XR.indexOf(this.kind)===-1)throw new Pr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}v(Rv,"Type$1");var ur=Rv;function kg(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=a)}),r[n]=i}),r}v(kg,"compileList");function $v(){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(v(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}v($v,"compileMap");function ku(e){return this.extend(e)}v(ku,"Schema$1");ku.prototype.extend=v(function(t){var r=[],i=[];if(t instanceof ur)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 Pr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ur))throw new Pr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Pr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Pr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof ur))throw new Pr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ku.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=kg(n,"implicit"),n.compiledExplicit=kg(n,"explicit"),n.compiledTypeMap=$v(n.compiledImplicit,n.compiledExplicit),n},"extend");var QR=ku,KR=new ur("tag:yaml.org,2002:str",{kind:"scalar",construct:v(function(e){return e!==null?e:""},"construct")}),ZR=new ur("tag:yaml.org,2002:seq",{kind:"sequence",construct:v(function(e){return e!==null?e:[]},"construct")}),JR=new ur("tag:yaml.org,2002:map",{kind:"mapping",construct:v(function(e){return e!==null?e:{}},"construct")}),t$=new QR({explicit:[KR,ZR,JR]});function zv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}v(zv,"resolveYamlNull");function Nv(){return null}v(Nv,"constructYamlNull");function jv(e){return e===null}v(jv,"isNull");var e$=new ur("tag:yaml.org,2002:null",{kind:"scalar",resolve:zv,construct:Nv,predicate:jv,represent:{canonical:v(function(){return"~"},"canonical"),lowercase:v(function(){return"null"},"lowercase"),uppercase:v(function(){return"NULL"},"uppercase"),camelcase:v(function(){return"Null"},"camelcase"),empty:v(function(){return""},"empty")},defaultStyle:"lowercase"});function Wv(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")}v(Wv,"resolveYamlBoolean");function qv(e){return e==="true"||e==="True"||e==="TRUE"}v(qv,"constructYamlBoolean");function Hv(e){return Object.prototype.toString.call(e)==="[object Boolean]"}v(Hv,"isBoolean");var r$=new ur("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Wv,construct:qv,predicate:Hv,represent:{lowercase:v(function(e){return e?"true":"false"},"lowercase"),uppercase:v(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:v(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Uv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}v(Uv,"isHexCode");function Vv(e){return 48<=e&&e<=55}v(Vv,"isOctCode");function Yv(e){return 48<=e&&e<=57}v(Yv,"isDecCode");function Gv(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(!Uv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Vv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!Yv(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}v(Gv,"resolveYamlInteger");function Xv(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)}v(Xv,"constructYamlInteger");function Qv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qe.isNegativeZero(e)}v(Qv,"isInteger");var i$=new ur("tag:yaml.org,2002:int",{kind:"scalar",resolve:Gv,construct:Xv,predicate:Qv,represent:{binary:v(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:v(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:v(function(e){return e.toString(10)},"decimal"),hexadecimal:v(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"]}}),n$=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Kv(e){return!(e===null||!n$.test(e)||e[e.length-1]==="_")}v(Kv,"resolveYamlFloat");function Zv(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)}v(Zv,"constructYamlFloat");var o$=/^[-+]?[0-9]+e/;function Jv(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(qe.isNegativeZero(e))return"-0.0";return r=e.toString(10),o$.test(r)?r.replace("e",".e"):r}v(Jv,"representYamlFloat");function tw(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||qe.isNegativeZero(e))}v(tw,"isFloat");var s$=new ur("tag:yaml.org,2002:float",{kind:"scalar",resolve:Kv,construct:Zv,predicate:tw,represent:Jv,defaultStyle:"lowercase"}),ew=t$.extend({implicit:[e$,r$,i$,s$]}),a$=ew,rw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),iw=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 nw(e){return e===null?!1:rw.exec(e)!==null||iw.exec(e)!==null}v(nw,"resolveYamlTimestamp");function ow(e){var t,r,i,n,s,a,c,h=0,u=null,d,p,m;if(t=rw.exec(e),t===null&&(t=iw.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(s=+t[4],a=+t[5],c=+t[6],t[7]){for(h=t[7].slice(0,3);h.length<3;)h+="0";h=+h}return t[9]&&(d=+t[10],p=+(t[11]||0),u=(d*60+p)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,i,n,s,a,c,h)),u&&m.setTime(m.getTime()-u),m}v(ow,"constructYamlTimestamp");function sw(e){return e.toISOString()}v(sw,"representYamlTimestamp");var l$=new ur("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nw,construct:ow,instanceOf:Date,represent:sw});function aw(e){return e==="<<"||e===null}v(aw,"resolveYamlMerge");var c$=new ur("tag:yaml.org,2002:merge",{kind:"scalar",resolve:aw}),Gm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
197
|
+
\r`;function lw(e){if(e===null)return!1;var t,r,i=0,n=e.length,s=Gm;for(r=0;r<n;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}v(lw,"resolveYamlBinary");function cw(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,s=Gm,a=0,c=[];for(t=0;t<n;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(t));return r=n%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),new Uint8Array(c)}v(cw,"constructYamlBinary");function hw(e){var t="",r=0,i,n,s=e.length,a=Gm;for(i=0;i<s;i++)i%3===0&&i&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[i];return n=s%3,n===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):n===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):n===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}v(hw,"representYamlBinary");function uw(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}v(uw,"isBinary");var h$=new ur("tag:yaml.org,2002:binary",{kind:"scalar",resolve:lw,construct:cw,predicate:uw,represent:hw}),u$=Object.prototype.hasOwnProperty,d$=Object.prototype.toString;function dw(e){if(e===null)return!0;var t=[],r,i,n,s,a,c=e;for(r=0,i=c.length;r<i;r+=1){if(n=c[r],a=!1,d$.call(n)!=="[object Object]")return!1;for(s in n)if(u$.call(n,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}v(dw,"resolveYamlOmap");function fw(e){return e!==null?e:[]}v(fw,"constructYamlOmap");var f$=new ur("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dw,construct:fw}),p$=Object.prototype.toString;function pw(e){if(e===null)return!0;var t,r,i,n,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(i=a[t],p$.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[t]=[n[0],i[n[0]]]}return!0}v(pw,"resolveYamlPairs");function gw(e){if(e===null)return[];var t,r,i,n,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)i=a[t],n=Object.keys(i),s[t]=[n[0],i[n[0]]];return s}v(gw,"constructYamlPairs");var g$=new ur("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:pw,construct:gw}),m$=Object.prototype.hasOwnProperty;function mw(e){if(e===null)return!0;var t,r=e;for(t in r)if(m$.call(r,t)&&r[t]!==null)return!1;return!0}v(mw,"resolveYamlSet");function yw(e){return e!==null?e:{}}v(yw,"constructYamlSet");var y$=new ur("tag:yaml.org,2002:set",{kind:"mapping",resolve:mw,construct:yw}),xw=a$.extend({implicit:[l$,c$],explicit:[h$,f$,g$,y$]}),no=Object.prototype.hasOwnProperty,bu=1,Cw=2,kw=3,vu=4,Lp=1,x$=2,DC=3,C$=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k$=/[\x85\u2028\u2029]/,b$=/[,\[\]\{\}]/,bw=/^(?:!|!!|![a-z\-]+!)$/i,vw=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function bg(e){return Object.prototype.toString.call(e)}v(bg,"_class");function Ei(e){return e===10||e===13}v(Ei,"is_EOL");function ro(e){return e===9||e===32}v(ro,"is_WHITE_SPACE");function Cr(e){return e===9||e===32||e===10||e===13}v(Cr,"is_WS_OR_EOL");function Io(e){return e===44||e===91||e===93||e===123||e===125}v(Io,"is_FLOW_INDICATOR");function ww(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}v(ww,"fromHexCode");function Sw(e){return e===120?2:e===117?4:e===85?8:0}v(Sw,"escapedHexLen");function Tw(e){return 48<=e&&e<=57?e-48:-1}v(Tw,"fromDecimalCode");function vg(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
198
|
+
`: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":""}v(vg,"simpleEscapeSequence");function _w(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}v(_w,"charFromCodepoint");function Xm(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}v(Xm,"setProperty");var Bw=new Array(256),Lw=new Array(256);for(_o=0;_o<256;_o++)Bw[_o]=vg(_o)?1:0,Lw[_o]=vg(_o);var _o;function Ew(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||xw,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=[]}v(Ew,"State$1");function Qm(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=YR(r),new Pr(t,r)}v(Qm,"generateError");function It(e,t){throw Qm(e,t)}v(It,"throwError");function Wl(e,t){e.onWarning&&e.onWarning.call(null,Qm(e,t))}v(Wl,"throwWarning");var RC={YAML:v(function(t,r,i){var n,s,a;t.version!==null&&It(t,"duplication of %YAML directive"),i.length!==1&&It(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&It(t,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),a=parseInt(n[2],10),s!==1&&It(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Wl(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:v(function(t,r,i){var n,s;i.length!==2&&It(t,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],bw.test(n)||It(t,"ill-formed tag handle (first argument) of the TAG directive"),no.call(t.tagMap,n)&&It(t,'there is a previously declared suffix for "'+n+'" tag handle'),vw.test(s)||It(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{It(t,"tag prefix is malformed: "+s)}t.tagMap[n]=s},"handleTagDirective")};function yn(e,t,r,i){var n,s,a,c;if(t<r){if(c=e.input.slice(t,r),i)for(n=0,s=c.length;n<s;n+=1)a=c.charCodeAt(n),a===9||32<=a&&a<=1114111||It(e,"expected valid JSON character");else C$.test(c)&&It(e,"the stream contains non-printable characters");e.result+=c}}v(yn,"captureSegment");function wg(e,t,r,i){var n,s,a,c;for(qe.isObject(r)||It(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),a=0,c=n.length;a<c;a+=1)s=n[a],no.call(t,s)||(Xm(t,s,r[s]),i[s]=!0)}v(wg,"mergeMappings");function Po(e,t,r,i,n,s,a,c,h){var u,d;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,d=n.length;u<d;u+=1)Array.isArray(n[u])&&It(e,"nested arrays are not supported inside keys"),typeof n=="object"&&bg(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&bg(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,d=s.length;u<d;u+=1)wg(e,t,s[u],r);else wg(e,t,s,r);else!e.json&&!no.call(r,n)&&no.call(t,n)&&(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=h||e.position,It(e,"duplicated mapping key")),Xm(t,n,s),delete r[n];return t}v(Po,"storeMappingPair");function Ju(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++):It(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}v(Ju,"readLineBreak");function Pe(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;ro(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(Ei(n))for(Ju(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&&Wl(e,"deficient indentation"),i}v(Pe,"skipSeparationSpace");function oc(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||Cr(r)))}v(oc,"testDocumentSeparator");function td(e,t){t===1?e.result+=" ":t>1&&(e.result+=qe.repeat(`
|
|
199
|
+
`,t-1))}v(td,"writeFoldedLines");function Fw(e,t,r){var i,n,s,a,c,h,u,d,p=e.kind,m=e.result,g;if(g=e.input.charCodeAt(e.position),Cr(g)||Io(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(n=e.input.charCodeAt(e.position+1),Cr(n)||r&&Io(n)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;g!==0;){if(g===58){if(n=e.input.charCodeAt(e.position+1),Cr(n)||r&&Io(n))break}else if(g===35){if(i=e.input.charCodeAt(e.position-1),Cr(i))break}else{if(e.position===e.lineStart&&oc(e)||r&&Io(g))break;if(Ei(g))if(h=e.line,u=e.lineStart,d=e.lineIndent,Pe(e,!1,-1),e.lineIndent>=t){c=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=h,e.lineStart=u,e.lineIndent=d;break}}c&&(yn(e,s,a,!1),td(e,e.line-h),s=a=e.position,c=!1),ro(g)||(a=e.position+1),g=e.input.charCodeAt(++e.position)}return yn(e,s,a,!1),e.result?!0:(e.kind=p,e.result=m,!1)}v(Fw,"readPlainScalar");function Aw(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(yn(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 Ei(r)?(yn(e,i,n,!0),td(e,Pe(e,!1,t)),i=n=e.position):e.position===e.lineStart&&oc(e)?It(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);It(e,"unexpected end of the stream within a single quoted scalar")}v(Aw,"readSingleQuotedScalar");function Mw(e,t){var r,i,n,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return yn(e,r,e.position,!0),e.position++,!0;if(c===92){if(yn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Ei(c))Pe(e,!1,t);else if(c<256&&Bw[c])e.result+=Lw[c],e.position++;else if((a=Sw(c))>0){for(n=a,s=0;n>0;n--)c=e.input.charCodeAt(++e.position),(a=ww(c))>=0?s=(s<<4)+a:It(e,"expected hexadecimal character");e.result+=_w(s),e.position++}else It(e,"unknown escape sequence");r=i=e.position}else Ei(c)?(yn(e,r,i,!0),td(e,Pe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&oc(e)?It(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}It(e,"unexpected end of the stream within a double quoted scalar")}v(Mw,"readDoubleQuotedScalar");function Iw(e,t){var r=!0,i,n,s,a=e.tag,c,h=e.anchor,u,d,p,m,g,x=Object.create(null),C,k,w,T;if(T=e.input.charCodeAt(e.position),T===91)d=93,g=!1,c=[];else if(T===123)d=125,g=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),T=e.input.charCodeAt(++e.position);T!==0;){if(Pe(e,!0,t),T=e.input.charCodeAt(e.position),T===d)return e.position++,e.tag=a,e.anchor=h,e.kind=g?"mapping":"sequence",e.result=c,!0;r?T===44&&It(e,"expected the node content, but found ','"):It(e,"missed comma between flow collection entries"),k=C=w=null,p=m=!1,T===63&&(u=e.input.charCodeAt(e.position+1),Cr(u)&&(p=m=!0,e.position++,Pe(e,!0,t))),i=e.line,n=e.lineStart,s=e.position,jo(e,t,bu,!1,!0),k=e.tag,C=e.result,Pe(e,!0,t),T=e.input.charCodeAt(e.position),(m||e.line===i)&&T===58&&(p=!0,T=e.input.charCodeAt(++e.position),Pe(e,!0,t),jo(e,t,bu,!1,!0),w=e.result),g?Po(e,c,x,k,C,w,i,n,s):p?c.push(Po(e,null,x,k,C,w,i,n,s)):c.push(C),Pe(e,!0,t),T=e.input.charCodeAt(e.position),T===44?(r=!0,T=e.input.charCodeAt(++e.position)):r=!1}It(e,"unexpected end of the stream within a flow collection")}v(Iw,"readFlowCollection");function Pw(e,t){var r,i,n=Lp,s=!1,a=!1,c=t,h=0,u=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)i=!1;else if(p===62)i=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Lp===n?n=p===43?DC:x$:It(e,"repeat of a chomping mode identifier");else if((d=Tw(p))>=0)d===0?It(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?It(e,"repeat of an indentation width identifier"):(c=t+d-1,a=!0);else break;if(ro(p)){do p=e.input.charCodeAt(++e.position);while(ro(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Ei(p)&&p!==0)}for(;p!==0;){for(Ju(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Ei(p)){h++;continue}if(e.lineIndent<c){n===DC?e.result+=qe.repeat(`
|
|
200
|
+
`,s?1+h:h):n===Lp&&s&&(e.result+=`
|
|
201
|
+
`);break}for(i?ro(p)?(u=!0,e.result+=qe.repeat(`
|
|
202
|
+
`,s?1+h:h)):u?(u=!1,e.result+=qe.repeat(`
|
|
203
|
+
`,h+1)):h===0?s&&(e.result+=" "):e.result+=qe.repeat(`
|
|
204
|
+
`,h):e.result+=qe.repeat(`
|
|
205
|
+
`,s?1+h:h),s=!0,a=!0,h=0,r=e.position;!Ei(p)&&p!==0;)p=e.input.charCodeAt(++e.position);yn(e,r,e.position,!1)}return!0}v(Pw,"readBlockScalar");function Sg(e,t){var r,i=e.tag,n=e.anchor,s=[],a,c=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),h=e.input.charCodeAt(e.position);h!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,It(e,"tab characters must not be used in indentation")),!(h!==45||(a=e.input.charCodeAt(e.position+1),!Cr(a))));){if(c=!0,e.position++,Pe(e,!0,-1)&&e.lineIndent<=t){s.push(null),h=e.input.charCodeAt(e.position);continue}if(r=e.line,jo(e,t,kw,!1,!0),s.push(e.result),Pe(e,!0,-1),h=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&h!==0)It(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=s,!0):!1}v(Sg,"readBlockSequence");function Ow(e,t,r){var i,n,s,a,c,h,u=e.tag,d=e.anchor,p={},m=Object.create(null),g=null,x=null,C=null,k=!1,w=!1,T;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),T=e.input.charCodeAt(e.position);T!==0;){if(!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,It(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(T===63||T===58)&&Cr(i))T===63?(k&&(Po(e,p,m,g,x,null,a,c,h),g=x=C=null),w=!0,k=!0,n=!0):k?(k=!1,n=!0):It(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,T=i;else{if(a=e.line,c=e.lineStart,h=e.position,!jo(e,r,Cw,!1,!0))break;if(e.line===s){for(T=e.input.charCodeAt(e.position);ro(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Cr(T)||It(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Po(e,p,m,g,x,null,a,c,h),g=x=C=null),w=!0,k=!1,n=!1,g=e.tag,x=e.result;else if(w)It(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=d,!0}else if(w)It(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=d,!0}if((e.line===s||e.lineIndent>t)&&(k&&(a=e.line,c=e.lineStart,h=e.position),jo(e,t,vu,!0,n)&&(k?x=e.result:C=e.result),k||(Po(e,p,m,g,x,C,a,c,h),g=x=C=null),Pe(e,!0,-1),T=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&T!==0)It(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&Po(e,p,m,g,x,null,a,c,h),w&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),w}v(Ow,"readBlockMapping");function Dw(e){var t,r=!1,i=!1,n,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&It(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(i=!0,n="!!",a=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):It(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Cr(a);)a===33&&(i?It(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),bw.test(n)||It(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),b$.test(s)&&It(e,"tag suffix cannot contain flow indicator characters")}s&&!vw.test(s)&&It(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{It(e,"tag name is malformed: "+s)}return r?e.tag=s:no.call(e.tagMap,n)?e.tag=e.tagMap[n]+s:n==="!"?e.tag="!"+s:n==="!!"?e.tag="tag:yaml.org,2002:"+s:It(e,'undeclared tag handle "'+n+'"'),!0}v(Dw,"readTagProperty");function Rw(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&It(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Cr(r)&&!Io(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&It(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}v(Rw,"readAnchorProperty");function $w(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&&!Cr(i)&&!Io(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&It(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),no.call(e.anchorMap,r)||It(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Pe(e,!0,-1),!0}v($w,"readAlias");function jo(e,t,r,i,n){var s,a,c,h=1,u=!1,d=!1,p,m,g,x,C,k;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=vu===r||kw===r,i&&Pe(e,!0,-1)&&(u=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),h===1)for(;Dw(e)||Rw(e);)Pe(e,!0,-1)?(u=!0,c=s,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):c=!1;if(c&&(c=u||n),(h===1||vu===r)&&(bu===r||Cw===r?C=t:C=t+1,k=e.position-e.lineStart,h===1?c&&(Sg(e,k)||Ow(e,k,C))||Iw(e,C)?d=!0:(a&&Pw(e,C)||Aw(e,C)||Mw(e,C)?d=!0:$w(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&It(e,"alias node should not have any properties")):Fw(e,C,bu===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):h===0&&(d=c&&Sg(e,k))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&It(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,m=e.implicitTypes.length;p<m;p+=1)if(x=e.implicitTypes[p],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(no.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,g=e.typeMap.multi[e.kind||"fallback"],p=0,m=g.length;p<m;p+=1)if(e.tag.slice(0,g[p].tag.length)===g[p].tag){x=g[p];break}x||It(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&It(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):It(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}v(jo,"composeNode");function zw(e){var t=e.position,r,i,n,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Pe(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Cr(a);)a=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&It(e,"directive name must not be less than one character in length");a!==0;){for(;ro(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ei(a));break}if(Ei(a))break;for(r=e.position;a!==0&&!Cr(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}a!==0&&Ju(e),no.call(RC,i)?RC[i](e,i,n):Wl(e,'unknown document directive "'+i+'"')}if(Pe(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,Pe(e,!0,-1)):s&&It(e,"directives end mark is expected"),jo(e,e.lineIndent-1,vu,!1,!0),Pe(e,!0,-1),e.checkLineBreaks&&k$.test(e.input.slice(t,e.position))&&Wl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&oc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Pe(e,!0,-1));return}if(e.position<e.length-1)It(e,"end of the stream or a document separator is expected");else return}v(zw,"readDocument");function Km(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
206
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Ew(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,It(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;)zw(r);return r.documents}v(Km,"loadDocuments");function v$(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Km(e,r);if(typeof t!="function")return i;for(var n=0,s=i.length;n<s;n+=1)t(i[n])}v(v$,"loadAll$1");function Nw(e,t){var r=Km(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Pr("expected a single document in the stream, but found more")}}v(Nw,"load$1");var w$=Nw,S$={load:w$},jw=Object.prototype.toString,Ww=Object.prototype.hasOwnProperty,Zm=65279,T$=9,ql=10,_$=13,B$=32,L$=33,E$=34,Tg=35,F$=37,A$=38,M$=39,I$=42,qw=44,P$=45,wu=58,O$=61,D$=62,R$=63,$$=64,Hw=91,Uw=93,z$=96,Vw=123,N$=124,Yw=125,fr={};fr[0]="\\0";fr[7]="\\a";fr[8]="\\b";fr[9]="\\t";fr[10]="\\n";fr[11]="\\v";fr[12]="\\f";fr[13]="\\r";fr[27]="\\e";fr[34]='\\"';fr[92]="\\\\";fr[133]="\\N";fr[160]="\\_";fr[8232]="\\L";fr[8233]="\\P";var j$=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],W$=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Gw(e,t){var r,i,n,s,a,c,h;if(t===null)return{};for(r={},i=Object.keys(t),n=0,s=i.length;n<s;n+=1)a=i[n],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),h=e.compiledTypeMap.fallback[a],h&&Ww.call(h.styleAliases,c)&&(c=h.styleAliases[c]),r[a]=c;return r}v(Gw,"compileStyleMap");function Xw(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 Pr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+qe.repeat("0",i-t.length)+t}v(Xw,"encodeHex");var q$=1,Hl=2;function Qw(e){this.schema=e.schema||xw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=qe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Gw(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==='"'?Hl:q$,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}v(Qw,"State");function _g(e,t){for(var r=qe.repeat(" ",t),i=0,n=-1,s="",a,c=e.length;i<c;)n=e.indexOf(`
|
|
207
|
+
`,i),n===-1?(a=e.slice(i),i=c):(a=e.slice(i,n+1),i=n+1),a.length&&a!==`
|
|
208
|
+
`&&(s+=r),s+=a;return s}v(_g,"indentString");function Su(e,t){return`
|
|
209
|
+
`+qe.repeat(" ",e.indent*t)}v(Su,"generateNextLine");function Kw(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}v(Kw,"testImplicitResolving");function Ul(e){return e===B$||e===T$}v(Ul,"isWhitespace");function ia(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Zm||65536<=e&&e<=1114111}v(ia,"isPrintable");function Bg(e){return ia(e)&&e!==Zm&&e!==_$&&e!==ql}v(Bg,"isNsCharOrWhitespace");function Lg(e,t,r){var i=Bg(e),n=i&&!Ul(e);return(r?i:i&&e!==qw&&e!==Hw&&e!==Uw&&e!==Vw&&e!==Yw)&&e!==Tg&&!(t===wu&&!n)||Bg(t)&&!Ul(t)&&e===Tg||t===wu&&n}v(Lg,"isPlainSafe");function Zw(e){return ia(e)&&e!==Zm&&!Ul(e)&&e!==P$&&e!==R$&&e!==wu&&e!==qw&&e!==Hw&&e!==Uw&&e!==Vw&&e!==Yw&&e!==Tg&&e!==A$&&e!==I$&&e!==L$&&e!==N$&&e!==O$&&e!==D$&&e!==M$&&e!==E$&&e!==F$&&e!==$$&&e!==z$}v(Zw,"isPlainSafeFirst");function Jw(e){return!Ul(e)&&e!==wu}v(Jw,"isPlainSafeLast");function Ms(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}v(Ms,"codePointAt");function Jm(e){var t=/^\n* /;return t.test(e)}v(Jm,"needIndentIndicator");var tS=1,Eg=2,eS=3,rS=4,Es=5;function iS(e,t,r,i,n,s,a,c){var h,u=0,d=null,p=!1,m=!1,g=i!==-1,x=-1,C=Zw(Ms(e,0))&&Jw(Ms(e,e.length-1));if(t||a)for(h=0;h<e.length;u>=65536?h+=2:h++){if(u=Ms(e,h),!ia(u))return Es;C=C&&Lg(u,d,c),d=u}else{for(h=0;h<e.length;u>=65536?h+=2:h++){if(u=Ms(e,h),u===ql)p=!0,g&&(m=m||h-x-1>i&&e[x+1]!==" ",x=h);else if(!ia(u))return Es;C=C&&Lg(u,d,c),d=u}m=m||g&&h-x-1>i&&e[x+1]!==" "}return!p&&!m?C&&!a&&!n(e)?tS:s===Hl?Es:Eg:r>9&&Jm(e)?Es:a?s===Hl?Es:Eg:m?rS:eS}v(iS,"chooseScalarStyle");function nS(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===Hl?'""':"''";if(!e.noCompatMode&&(j$.indexOf(t)!==-1||W$.test(t)))return e.quotingType===Hl?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),c=i||e.flowLevel>-1&&r>=e.flowLevel;function h(u){return Kw(e,u)}switch(v(h,"testAmbiguity"),iS(t,c,e.indent,a,h,e.quotingType,e.forceQuotes&&!i,n)){case tS:return t;case Eg:return"'"+t.replace(/'/g,"''")+"'";case eS:return"|"+Fg(t,e.indent)+Ag(_g(t,s));case rS:return">"+Fg(t,e.indent)+Ag(_g(oS(t,a),s));case Es:return'"'+sS(t)+'"';default:throw new Pr("impossible error: invalid scalar style")}})()}v(nS,"writeScalar");function Fg(e,t){var r=Jm(e)?String(t):"",i=e[e.length-1]===`
|
|
210
|
+
`,n=i&&(e[e.length-2]===`
|
|
211
|
+
`||e===`
|
|
212
|
+
`),s=n?"+":i?"":"-";return r+s+`
|
|
213
|
+
`}v(Fg,"blockHeader");function Ag(e){return e[e.length-1]===`
|
|
214
|
+
`?e.slice(0,-1):e}v(Ag,"dropEndingNewline");function oS(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=e.indexOf(`
|
|
215
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,Mg(e.slice(0,u),t)})(),n=e[0]===`
|
|
216
|
+
`||e[0]===" ",s,a;a=r.exec(e);){var c=a[1],h=a[2];s=h[0]===" ",i+=c+(!n&&!s&&h!==""?`
|
|
217
|
+
`:"")+Mg(h,t),n=s}return i}v(oS,"foldString");function Mg(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,s,a=0,c=0,h="";i=r.exec(e);)c=i.index,c-n>t&&(s=a>n?a:c,h+=`
|
|
218
|
+
`+e.slice(n,s),n=s+1),a=c;return h+=`
|
|
219
|
+
`,e.length-n>t&&a>n?h+=e.slice(n,a)+`
|
|
220
|
+
`+e.slice(a+1):h+=e.slice(n),h.slice(1)}v(Mg,"foldLine");function sS(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Ms(e,n),i=fr[r],!i&&ia(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Xw(r);return t}v(sS,"escapeString");function aS(e,t,r){var i="",n=e.tag,s,a,c;for(s=0,a=r.length;s<a;s+=1)c=r[s],e.replacer&&(c=e.replacer.call(r,String(s),c)),(Gi(e,t,c,!1,!1)||typeof c>"u"&&Gi(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}v(aS,"writeFlowSequence");function Ig(e,t,r,i){var n="",s=e.tag,a,c,h;for(a=0,c=r.length;a<c;a+=1)h=r[a],e.replacer&&(h=e.replacer.call(r,String(a),h)),(Gi(e,t+1,h,!0,!0,!1,!0)||typeof h>"u"&&Gi(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Su(e,t)),e.dump&&ql===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=s,e.dump=n||"[]"}v(Ig,"writeBlockSequence");function lS(e,t,r){var i="",n=e.tag,s=Object.keys(r),a,c,h,u,d;for(a=0,c=s.length;a<c;a+=1)d="",i!==""&&(d+=", "),e.condenseFlow&&(d+='"'),h=s[a],u=r[h],e.replacer&&(u=e.replacer.call(r,h,u)),Gi(e,t,h,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Gi(e,t,u,!1,!1)&&(d+=e.dump,i+=d));e.tag=n,e.dump="{"+i+"}"}v(lS,"writeFlowMapping");function cS(e,t,r,i){var n="",s=e.tag,a=Object.keys(r),c,h,u,d,p,m;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Pr("sortKeys must be a boolean or a function");for(c=0,h=a.length;c<h;c+=1)m="",(!i||n!=="")&&(m+=Su(e,t)),u=a[c],d=r[u],e.replacer&&(d=e.replacer.call(r,u,d)),Gi(e,t+1,u,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&ql===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,p&&(m+=Su(e,t)),Gi(e,t+1,d,!0,p)&&(e.dump&&ql===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,n+=m));e.tag=s,e.dump=n||"{}"}v(cS,"writeBlockMapping");function Pg(e,t,r){var i,n,s,a,c,h;for(n=r?e.explicitTypes:e.implicitTypes,s=0,a=n.length;s<a;s+=1)if(c=n[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(h=e.styleMap[c.tag]||c.defaultStyle,jw.call(c.represent)==="[object Function]")i=c.represent(t,h);else if(Ww.call(c.represent,h))i=c.represent[h](t,h);else throw new Pr("!<"+c.tag+'> tag resolver accepts not "'+h+'" style');e.dump=i}return!0}return!1}v(Pg,"detectType");function Gi(e,t,r,i,n,s,a){e.tag=null,e.dump=r,Pg(e,r,!1)||Pg(e,r,!0);var c=jw.call(e.dump),h=i,u;i&&(i=e.flowLevel<0||e.flowLevel>t);var d=c==="[object Object]"||c==="[object Array]",p,m;if(d&&(p=e.duplicates.indexOf(r),m=p!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(n=!1),m&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),c==="[object Object]")i&&Object.keys(e.dump).length!==0?(cS(e,t,e.dump,n),m&&(e.dump="&ref_"+p+e.dump)):(lS(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?Ig(e,t-1,e.dump,n):Ig(e,t,e.dump,n),m&&(e.dump="&ref_"+p+e.dump)):(aS(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&nS(e,e.dump,t,s,h);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Pr("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}v(Gi,"writeNode");function hS(e,t){var r=[],i=[],n,s;for(Tu(e,r,i),n=0,s=i.length;n<s;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(s)}v(hS,"getDuplicateReferences");function Tu(e,t,r){var i,n,s;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,s=e.length;n<s;n+=1)Tu(e[n],t,r);else for(i=Object.keys(e),n=0,s=i.length;n<s;n+=1)Tu(e[i[n]],t,r)}v(Tu,"inspectNode");function H$(e,t){t=t||{};var r=new Qw(t);r.noRefs||hS(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Gi(r,0,i,!0,!0)?r.dump+`
|
|
221
|
+
`:""}v(H$,"dump$1");function U$(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.")}}v(U$,"renamed");var V$=ew,Y$=S$.load;/*! Bundled license information:
|
|
222
|
+
|
|
223
|
+
js-yaml/dist/js-yaml.mjs:
|
|
224
|
+
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
225
|
+
*/var hl=v((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"),cr={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},$C={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function bl(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=we(e),t=we(t);const[r,i]=[e.x,e.y],[n,s]=[t.x,t.y],a=n-r,c=s-i;return{angle:Math.atan(c/a),deltaX:a,deltaY:c}}v(bl,"calculateDeltaAndAngle");var we=v(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),G$=v(e=>({x:v(function(t,r,i){let n=0;const s=we(i[0]).x<we(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(cr,e.arrowTypeStart)){const{angle:g,deltaX:x}=bl(i[0],i[1]);n=cr[e.arrowTypeStart]*Math.cos(g)*(x>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(cr,e.arrowTypeEnd)){const{angle:g,deltaX:x}=bl(i[i.length-1],i[i.length-2]);n=cr[e.arrowTypeEnd]*Math.cos(g)*(x>=0?1:-1)}const a=Math.abs(we(t).x-we(i[i.length-1]).x),c=Math.abs(we(t).y-we(i[i.length-1]).y),h=Math.abs(we(t).x-we(i[0]).x),u=Math.abs(we(t).y-we(i[0]).y),d=cr[e.arrowTypeStart],p=cr[e.arrowTypeEnd],m=1;if(a<p&&a>0&&c<p){let g=p+m-a;g*=s==="right"?-1:1,n-=g}if(h<d&&h>0&&u<d){let g=d+m-h;g*=s==="right"?-1:1,n+=g}return we(t).x+n},"x"),y:v(function(t,r,i){let n=0;const s=we(i[0]).y<we(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(cr,e.arrowTypeStart)){const{angle:g,deltaY:x}=bl(i[0],i[1]);n=cr[e.arrowTypeStart]*Math.abs(Math.sin(g))*(x>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(cr,e.arrowTypeEnd)){const{angle:g,deltaY:x}=bl(i[i.length-1],i[i.length-2]);n=cr[e.arrowTypeEnd]*Math.abs(Math.sin(g))*(x>=0?1:-1)}const a=Math.abs(we(t).y-we(i[i.length-1]).y),c=Math.abs(we(t).x-we(i[i.length-1]).x),h=Math.abs(we(t).y-we(i[0]).y),u=Math.abs(we(t).x-we(i[0]).x),d=cr[e.arrowTypeStart],p=cr[e.arrowTypeEnd],m=1;if(a<p&&a>0&&c<p){let g=p+m-a;g*=s==="up"?-1:1,n-=g}if(h<d&&h>0&&u<d){let g=d+m-h;g*=s==="up"?-1:1,n+=g}return we(t).y+n},"y")}),"getLineFunctionsWithOffset"),Fh={},je={},zC;function X$(){return zC||(zC=1,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"),je}var NC;function Q$(){if(NC)return Fh;NC=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.sanitizeUrl=s;var e=X$();function t(a){return e.relativeFirstCharacters.indexOf(a[0])>-1}function r(a){var c=a.replace(e.ctrlCharactersRegex,"");return c.replace(e.htmlEntitiesRegex,function(h,u){return String.fromCharCode(u)})}function i(a){return URL.canParse(a)}function n(a){try{return decodeURIComponent(a)}catch{return a}}function s(a){if(!a)return e.BLANK_URL;var c,h=n(a.trim());do h=r(h).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),h=n(h),c=h.match(e.ctrlCharactersRegex)||h.match(e.htmlEntitiesRegex)||h.match(e.htmlCtrlEntityRegex)||h.match(e.whitespaceEscapeCharsRegex);while(c&&c.length>0);var u=h;if(!u)return e.BLANK_URL;if(t(u))return u;var d=u.trimStart(),p=d.match(e.urlSchemeRegex);if(!p)return u;var m=p[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(m))return e.BLANK_URL;var g=d.replace(/\\/g,"/");if(m==="mailto:"||m.includes("://"))return g;if(m==="http:"||m==="https:"){if(!i(g))return e.BLANK_URL;var x=new URL(g);return x.protocol=x.protocol.toLowerCase(),x.hostname=x.hostname.toLowerCase(),x.toString()}return g}return Fh}var K$=Q$(),uS=typeof global=="object"&&global&&global.Object===Object&&global,Z$=typeof self=="object"&&self&&self.Object===Object&&self,Ji=uS||Z$||Function("return this")(),_u=Ji.Symbol,dS=Object.prototype,J$=dS.hasOwnProperty,t8=dS.toString,ul=_u?_u.toStringTag:void 0;function e8(e){var t=J$.call(e,ul),r=e[ul];try{e[ul]=void 0;var i=!0}catch{}var n=t8.call(e);return i&&(t?e[ul]=r:delete e[ul]),n}var r8=Object.prototype,i8=r8.toString;function n8(e){return i8.call(e)}var o8="[object Null]",s8="[object Undefined]",jC=_u?_u.toStringTag:void 0;function la(e){return e==null?e===void 0?s8:o8:jC&&jC in Object(e)?e8(e):n8(e)}function Yo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var a8="[object AsyncFunction]",l8="[object Function]",c8="[object GeneratorFunction]",h8="[object Proxy]";function ty(e){if(!Yo(e))return!1;var t=la(e);return t==l8||t==c8||t==a8||t==h8}var Ep=Ji["__core-js_shared__"],WC=(function(){var e=/[^.]+$/.exec(Ep&&Ep.keys&&Ep.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function u8(e){return!!WC&&WC in e}var d8=Function.prototype,f8=d8.toString;function Go(e){if(e!=null){try{return f8.call(e)}catch{}try{return e+""}catch{}}return""}var p8=/[\\^$.*+?()[\]{}|]/g,g8=/^\[object .+?Constructor\]$/,m8=Function.prototype,y8=Object.prototype,x8=m8.toString,C8=y8.hasOwnProperty,k8=RegExp("^"+x8.call(C8).replace(p8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b8(e){if(!Yo(e)||u8(e))return!1;var t=ty(e)?k8:g8;return t.test(Go(e))}function v8(e,t){return e==null?void 0:e[t]}function Xo(e,t){var r=v8(e,t);return b8(r)?r:void 0}var Vl=Xo(Object,"create");function w8(){this.__data__=Vl?Vl(null):{},this.size=0}function S8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var T8="__lodash_hash_undefined__",_8=Object.prototype,B8=_8.hasOwnProperty;function L8(e){var t=this.__data__;if(Vl){var r=t[e];return r===T8?void 0:r}return B8.call(t,e)?t[e]:void 0}var E8=Object.prototype,F8=E8.hasOwnProperty;function A8(e){var t=this.__data__;return Vl?t[e]!==void 0:F8.call(t,e)}var M8="__lodash_hash_undefined__";function I8(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vl&&t===void 0?M8:t,this}function Wo(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])}}Wo.prototype.clear=w8;Wo.prototype.delete=S8;Wo.prototype.get=L8;Wo.prototype.has=A8;Wo.prototype.set=I8;function P8(){this.__data__=[],this.size=0}function ed(e,t){return e===t||e!==e&&t!==t}function rd(e,t){for(var r=e.length;r--;)if(ed(e[r][0],t))return r;return-1}var O8=Array.prototype,D8=O8.splice;function R8(e){var t=this.__data__,r=rd(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():D8.call(t,r,1),--this.size,!0}function $8(e){var t=this.__data__,r=rd(t,e);return r<0?void 0:t[r][1]}function z8(e){return rd(this.__data__,e)>-1}function N8(e,t){var r=this.__data__,i=rd(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function vn(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])}}vn.prototype.clear=P8;vn.prototype.delete=R8;vn.prototype.get=$8;vn.prototype.has=z8;vn.prototype.set=N8;var Yl=Xo(Ji,"Map");function j8(){this.size=0,this.__data__={hash:new Wo,map:new(Yl||vn),string:new Wo}}function W8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function id(e,t){var r=e.__data__;return W8(t)?r[typeof t=="string"?"string":"hash"]:r.map}function q8(e){var t=id(this,e).delete(e);return this.size-=t?1:0,t}function H8(e){return id(this,e).get(e)}function U8(e){return id(this,e).has(e)}function V8(e,t){var r=id(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function lo(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])}}lo.prototype.clear=j8;lo.prototype.delete=q8;lo.prototype.get=H8;lo.prototype.has=U8;lo.prototype.set=V8;var Y8="Expected a function";function sc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Y8);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var a=e.apply(this,i);return r.cache=s.set(n,a)||s,a};return r.cache=new(sc.Cache||lo),r}sc.Cache=lo;function G8(){this.__data__=new vn,this.size=0}function X8(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Q8(e){return this.__data__.get(e)}function K8(e){return this.__data__.has(e)}var Z8=200;function J8(e,t){var r=this.__data__;if(r instanceof vn){var i=r.__data__;if(!Yl||i.length<Z8-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new lo(i)}return r.set(e,t),this.size=r.size,this}function ca(e){var t=this.__data__=new vn(e);this.size=t.size}ca.prototype.clear=G8;ca.prototype.delete=X8;ca.prototype.get=Q8;ca.prototype.has=K8;ca.prototype.set=J8;var Bu=(function(){try{var e=Xo(Object,"defineProperty");return e({},"",{}),e}catch{}})();function ey(e,t,r){t=="__proto__"&&Bu?Bu(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Og(e,t,r){(r!==void 0&&!ed(e[t],r)||r===void 0&&!(t in e))&&ey(e,t,r)}function tz(e){return function(t,r,i){for(var n=-1,s=Object(t),a=i(t),c=a.length;c--;){var h=a[++n];if(r(s[h],h,s)===!1)break}return t}}var ez=tz(),fS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qC=fS&&typeof module=="object"&&module&&!module.nodeType&&module,rz=qC&&qC.exports===fS,HC=rz?Ji.Buffer:void 0,UC=HC?HC.allocUnsafe:void 0;function iz(e,t){if(t)return e.slice();var r=e.length,i=UC?UC(r):new e.constructor(r);return e.copy(i),i}var VC=Ji.Uint8Array;function nz(e){var t=new e.constructor(e.byteLength);return new VC(t).set(new VC(e)),t}function oz(e,t){var r=t?nz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function sz(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var YC=Object.create,az=(function(){function e(){}return function(t){if(!Yo(t))return{};if(YC)return YC(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function pS(e,t){return function(r){return e(t(r))}}var gS=pS(Object.getPrototypeOf,Object),lz=Object.prototype;function nd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lz;return e===r}function cz(e){return typeof e.constructor=="function"&&!nd(e)?az(gS(e)):{}}function ac(e){return e!=null&&typeof e=="object"}var hz="[object Arguments]";function GC(e){return ac(e)&&la(e)==hz}var mS=Object.prototype,uz=mS.hasOwnProperty,dz=mS.propertyIsEnumerable,Lu=GC((function(){return arguments})())?GC:function(e){return ac(e)&&uz.call(e,"callee")&&!dz.call(e,"callee")},Eu=Array.isArray,fz=9007199254740991;function yS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fz}function od(e){return e!=null&&yS(e.length)&&!ty(e)}function pz(e){return ac(e)&&od(e)}function gz(){return!1}var xS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,XC=xS&&typeof module=="object"&&module&&!module.nodeType&&module,mz=XC&&XC.exports===xS,QC=mz?Ji.Buffer:void 0,yz=QC?QC.isBuffer:void 0,ry=yz||gz,xz="[object Object]",Cz=Function.prototype,kz=Object.prototype,CS=Cz.toString,bz=kz.hasOwnProperty,vz=CS.call(Object);function wz(e){if(!ac(e)||la(e)!=xz)return!1;var t=gS(e);if(t===null)return!0;var r=bz.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&CS.call(r)==vz}var Sz="[object Arguments]",Tz="[object Array]",_z="[object Boolean]",Bz="[object Date]",Lz="[object Error]",Ez="[object Function]",Fz="[object Map]",Az="[object Number]",Mz="[object Object]",Iz="[object RegExp]",Pz="[object Set]",Oz="[object String]",Dz="[object WeakMap]",Rz="[object ArrayBuffer]",$z="[object DataView]",zz="[object Float32Array]",Nz="[object Float64Array]",jz="[object Int8Array]",Wz="[object Int16Array]",qz="[object Int32Array]",Hz="[object Uint8Array]",Uz="[object Uint8ClampedArray]",Vz="[object Uint16Array]",Yz="[object Uint32Array]",ke={};ke[zz]=ke[Nz]=ke[jz]=ke[Wz]=ke[qz]=ke[Hz]=ke[Uz]=ke[Vz]=ke[Yz]=!0;ke[Sz]=ke[Tz]=ke[Rz]=ke[_z]=ke[$z]=ke[Bz]=ke[Lz]=ke[Ez]=ke[Fz]=ke[Az]=ke[Mz]=ke[Iz]=ke[Pz]=ke[Oz]=ke[Dz]=!1;function Gz(e){return ac(e)&&yS(e.length)&&!!ke[la(e)]}function Xz(e){return function(t){return e(t)}}var kS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Il=kS&&typeof module=="object"&&module&&!module.nodeType&&module,Qz=Il&&Il.exports===kS,Fp=Qz&&uS.process,KC=(function(){try{var e=Il&&Il.require&&Il.require("util").types;return e||Fp&&Fp.binding&&Fp.binding("util")}catch{}})(),ZC=KC&&KC.isTypedArray,iy=ZC?Xz(ZC):Gz;function Dg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Kz=Object.prototype,Zz=Kz.hasOwnProperty;function Jz(e,t,r){var i=e[t];(!(Zz.call(e,t)&&ed(i,r))||r===void 0&&!(t in e))&&ey(e,t,r)}function tN(e,t,r,i){var n=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var c=t[s],h=void 0;h===void 0&&(h=e[c]),n?ey(r,c,h):Jz(r,c,h)}return r}function eN(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var rN=9007199254740991,iN=/^(?:0|[1-9]\d*)$/;function bS(e,t){var r=typeof e;return t=t??rN,!!t&&(r=="number"||r!="symbol"&&iN.test(e))&&e>-1&&e%1==0&&e<t}var nN=Object.prototype,oN=nN.hasOwnProperty;function sN(e,t){var r=Eu(e),i=!r&&Lu(e),n=!r&&!i&&ry(e),s=!r&&!i&&!n&&iy(e),a=r||i||n||s,c=a?eN(e.length,String):[],h=c.length;for(var u in e)(t||oN.call(e,u))&&!(a&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bS(u,h)))&&c.push(u);return c}function aN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var lN=Object.prototype,cN=lN.hasOwnProperty;function hN(e){if(!Yo(e))return aN(e);var t=nd(e),r=[];for(var i in e)i=="constructor"&&(t||!cN.call(e,i))||r.push(i);return r}function vS(e){return od(e)?sN(e,!0):hN(e)}function uN(e){return tN(e,vS(e))}function dN(e,t,r,i,n,s,a){var c=Dg(e,r),h=Dg(t,r),u=a.get(h);if(u){Og(e,r,u);return}var d=s?s(c,h,r+"",e,t,a):void 0,p=d===void 0;if(p){var m=Eu(h),g=!m&&ry(h),x=!m&&!g&&iy(h);d=h,m||g||x?Eu(c)?d=c:pz(c)?d=sz(c):g?(p=!1,d=iz(h,!0)):x?(p=!1,d=oz(h,!0)):d=[]:wz(h)||Lu(h)?(d=c,Lu(c)?d=uN(c):(!Yo(c)||ty(c))&&(d=cz(h))):p=!1}p&&(a.set(h,d),n(d,h,i,s,a),a.delete(h)),Og(e,r,d)}function wS(e,t,r,i,n){e!==t&&ez(t,function(s,a){if(n||(n=new ca),Yo(s))dN(e,t,a,r,wS,i,n);else{var c=i?i(Dg(e,a),s,a+"",e,t,n):void 0;c===void 0&&(c=s),Og(e,a,c)}},vS)}function SS(e){return e}function fN(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 JC=Math.max;function pN(e,t,r){return t=JC(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,s=JC(i.length-t,0),a=Array(s);++n<s;)a[n]=i[t+n];n=-1;for(var c=Array(t+1);++n<t;)c[n]=i[n];return c[t]=r(a),fN(e,this,c)}}function gN(e){return function(){return e}}var mN=Bu?function(e,t){return Bu(e,"toString",{configurable:!0,enumerable:!1,value:gN(t),writable:!0})}:SS,yN=800,xN=16,CN=Date.now;function kN(e){var t=0,r=0;return function(){var i=CN(),n=xN-(i-r);if(r=i,n>0){if(++t>=yN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bN=kN(mN);function vN(e,t){return bN(pN(e,t,SS),e+"")}function wN(e,t,r){if(!Yo(r))return!1;var i=typeof t;return(i=="number"?od(r)&&bS(t,r.length):i=="string"&&t in r)?ed(r[t],e):!1}function SN(e){return vN(function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,a&&wN(r[0],r[1],a)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var c=r[i];c&&e(t,c,i,s)}return t})}var TN=SN(function(e,t,r){wS(e,t,r)}),_N="",BN={curveBasis:Cg,curveBasisClosed:MR,curveBasisOpen:IR,curveBumpX:hv,curveBumpY:uv,curveBundle:PR,curveCardinalClosed:OR,curveCardinalOpen:DR,curveCardinal:gv,curveCatmullRomClosed:RR,curveCatmullRomOpen:$R,curveCatmullRom:yv,curveLinear:Ml,curveLinearClosed:zR,curveMonotoneX:wv,curveMonotoneY:Sv,curveNatural:_v,curveStep:Bv,curveStepAfter:Ev,curveStepBefore:Lv},LN=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,EN=v(function(e,t){const r=TS(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const a=r.map(c=>c.args);su(a),i=We(i,[...a])}else i=r.args;if(!i)return;let n=Lm(e,t);const s="config";return i[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[s],delete i[s]),i},"detectInit"),TS=v(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${LN.source})(?=[}][%]{2}).*
|
|
226
|
+
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),at.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let s;const a=[];for(;(s=Fl.exec(e))!==null;)if(s.index===Fl.lastIndex&&Fl.lastIndex++,s&&!t||t&&((r=s[1])!=null&&r.match(t))||t&&((i=s[2])!=null&&i.match(t))){const c=s[1]?s[1]:s[2],h=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;a.push({type:c,args:h})}return a.length===0?{type:e,args:null}:a.length===1?a[0]:a}catch(n){return at.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),FN=v(function(e){return e.replace(Fl,"")},"removeDirectives"),AN=v(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function ny(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return BN[r]??t}v(ny,"interpolateToCurve");function _S(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?K$.sanitizeUrl(r):r}v(_S,"formatUrl");var MN=v((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let s=window;for(let a=0;a<i;a++)if(s=s[r[a]],!s){at.error(`Function name: ${e} not found in window`);return}s[n](...t)},"runFunc");function oy(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}v(oy,"distance");function BS(e){let t,r=0;e.forEach(n=>{r+=oy(n,t),t=n});const i=r/2;return sy(e,i)}v(BS,"traverseEdge");function LS(e){return e.length===1?e[0]:BS(e)}v(LS,"calcLabelPosition");var tk=v((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),sy=v((e,t)=>{let r,i=t;for(const n of e){if(r){const s=oy(n,r);if(s===0)return r;if(s<i)i-=s;else{const a=i/s;if(a<=0)return r;if(a>=1)return{x:n.x,y:n.y};if(a>0&&a<1)return{x:tk((1-a)*r.x+a*n.x,5),y:tk((1-a)*r.y+a*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),IN=v((e,t,r)=>{at.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=sy(t,25),s=e?10:5,a=Math.atan2(t[0].y-n.y,t[0].x-n.x),c={x:0,y:0};return c.x=Math.sin(a)*s+(t[0].x+n.x)/2,c.y=-Math.cos(a)*s+(t[0].y+n.y)/2,c},"calcCardinalityPosition");function ES(e,t,r){const i=structuredClone(r);at.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,s=sy(i,n),a=10+e*.5,c=Math.atan2(i[0].y-s.y,i[0].x-s.x),h={x:0,y:0};return t==="start_left"?(h.x=Math.sin(c+Math.PI)*a+(i[0].x+s.x)/2,h.y=-Math.cos(c+Math.PI)*a+(i[0].y+s.y)/2):t==="end_right"?(h.x=Math.sin(c-Math.PI)*a+(i[0].x+s.x)/2-5,h.y=-Math.cos(c-Math.PI)*a+(i[0].y+s.y)/2-5):t==="end_left"?(h.x=Math.sin(c)*a+(i[0].x+s.x)/2-5,h.y=-Math.cos(c)*a+(i[0].y+s.y)/2-5):(h.x=Math.sin(c)*a+(i[0].x+s.x)/2,h.y=-Math.cos(c)*a+(i[0].y+s.y)/2),h}v(ES,"calcTerminalLabelPosition");function FS(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}}v(FS,"getStylesFromArray");var ek=0,PN=v(()=>(ek++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ek),"generateId");function AS(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}v(AS,"makeRandomHex");var ON=v(e=>AS(e.length),"random"),DN=v(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"),RN=v(function(e,t){const r=t.text.replace(rc.lineBreakRegex," "),[,i]=sd(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 s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),n},"drawSimpleText"),$N=sc((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),rc.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let s="";return i.forEach((a,c)=>{const h=Cn(`${a} `,r),u=Cn(s,r);if(h>t){const{hyphenatedStrings:m,remainingWord:g}=zN(a,t,"-",r);n.push(s,...m),s=g}else u+h>=t?(n.push(s),s=a):s=[s,a].filter(Boolean).join(" ");c+1===i.length&&n.push(s)}),n.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),zN=sc((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],s=[];let a="";return n.forEach((c,h)=>{const u=`${a}${c}`;if(Cn(u,i)>=t){const p=h+1,m=n.length===p,g=`${u}${r}`;s.push(m?u:g),a=""}else a=u}),{hyphenatedStrings:s,remainingWord:a}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function MS(e,t){return ay(e,t).height}v(MS,"calculateTextHeight");function Cn(e,t){return ay(e,t).width}v(Cn,"calculateTextWidth");var ay=sc((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,s]=sd(r),a=["sans-serif",i],c=e.split(rc.lineBreakRegex),h=[],u=Qt("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const d=u.append("svg");for(const m of a){let g=0;const x={width:0,height:0,lineHeight:0};for(const C of c){const k=DN();k.text=C||_N;const w=RN(d,k).style("font-size",s).style("font-weight",n).style("font-family",m),T=(w._groups||w)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,T.width)),g=Math.round(T.height),x.height+=g,x.lineHeight=Math.round(Math.max(x.lineHeight,g))}h.push(x)}d.remove();const p=isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1;return h[p]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Qs,NN=(Qs=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},v(Qs,"InitIDGenerator"),Qs),Ah,jN=v(function(e){return Ah=Ah||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ah.innerHTML=e,unescape(Ah.textContent)},"entityDecode");function ly(e){return"str"in e}v(ly,"isDetailedError");var WN=v((e,t,r,i)=>{var s;if(!i)return;const n=(s=e.node())==null?void 0:s.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"),sd=v(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 cy(e,t){return TN({},e,t)}v(cy,"cleanAndMerge");var Bi={assignWithDepth:We,wrapLabel:$N,calculateTextHeight:MS,calculateTextWidth:Cn,calculateTextDimensions:ay,cleanAndMerge:cy,detectInit:EN,detectDirective:TS,isSubstringInArray:AN,interpolateToCurve:ny,calcLabelPosition:LS,calcCardinalityPosition:IN,calcTerminalLabelPosition:ES,formatUrl:_S,getStylesFromArray:FS,generateId:PN,random:ON,runFunc:MN,entityDecode:jN,insertTitle:WN,isLabelCoordinateInPath:IS,parseFontSize:sd,InitIDGenerator:NN},qN=v(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"),qo=v(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),hV=v((e,t,{counter:r=0,prefix:i,suffix:n},s)=>s||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Xe(e){return e??null}v(Xe,"handleUndefinedAttr");function IS(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return n.includes(r.toString())||n.includes(i.toString())}v(IS,"isLabelCoordinateInPath");var hy=v(({flowchart:e})=>{var n,s;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function PS(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(s=>{function a(){if(n.style.display="flex",n.style.flexDirection="column",i){const c=ce().fontSize?ce().fontSize:window.getComputedStyle(document.body).fontSize,h=5,[u=w2.fontSize]=sd(c),d=u*h+"px";n.style.minWidth=d,n.style.maxWidth=d}else n.style.width="100%";s(n)}v(a,"setupImage"),setTimeout(()=>{n.complete&&a()}),n.addEventListener("error",a),n.addEventListener("load",a)})))}v(PS,"configureLabelImages");var HN=v(e=>{const{handDrawnSeed:t}=ce();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ha=v(e=>{const t=UN([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),UN=v(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"),OS=v(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"),Lt=v(e=>{const{stylesArray:t}=ha(e),r=[],i=[],n=[],s=[];return t.forEach(a=>{const c=a[0];OS(c)?r.push(a.join(":")+" !important"):(i.push(a.join(":")+" !important"),c.includes("stroke")&&n.push(a.join(":")+" !important"),c==="fill"&&s.push(a.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:s}},"styles2String"),Bt=v((e,t)=>{var h;const{themeVariables:r,handDrawnSeed:i}=ce(),{nodeBorder:n,mainBkg:s}=r,{stylesMap:a}=ha(e);return Object.assign({roughness:.7,fill:a.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:a.get("stroke")||n,seed:i,strokeWidth:((h=a.get("stroke-width"))==null?void 0:h.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:VN(a.get("stroke-dasharray"))},t)},"userNodeOverrides"),VN=v(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 YN=Object.freeze({left:0,top:0,width:16,height:16}),Fu=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),DS=Object.freeze({...YN,...Fu}),GN=Object.freeze({...DS,body:"",hidden:!1}),XN=Object.freeze({width:null,height:null}),QN=Object.freeze({...XN,...Fu}),KN=(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 c=n.pop(),h=n.pop(),u={provider:n.length>0?n[0]:i,prefix:h,name:c};return Ap(u)?u:null}const s=n[0],a=s.split("-");if(a.length>1){const c={provider:i,prefix:a.shift(),name:a.join("-")};return Ap(c)?c:null}if(r&&i===""){const c={provider:i,prefix:"",name:s};return Ap(c,r)?c:null}return null},Ap=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function ZN(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 rk(e,t){const r=ZN(e,t);for(const i in GN)i in Fu?i in e&&!(i in r)&&(r[i]=Fu[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function JN(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function s(a){if(r[a])return n[a]=[];if(!(a in n)){n[a]=null;const c=i[a]&&i[a].parent,h=c&&s(c);h&&(n[a]=[c].concat(h))}return n[a]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(s),n}function ik(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let s={};function a(c){s=rk(i[c]||n[c],s)}return a(t),r.forEach(a),rk(e,s)}function tj(e,t){if(e.icons[t])return ik(e,t,[]);const r=JN(e,[t])[t];return r?ik(e,t,r):null}const ej=/(-?[0-9.]*[0-9]+[0-9.]*)/g,rj=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nk(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(ej);if(i===null||!i.length)return e;const n=[];let s=i.shift(),a=rj.test(s);for(;;){if(a){const c=parseFloat(s);isNaN(c)?n.push(s):n.push(Math.ceil(c*t*r)/r)}else n.push(s);if(s=i.shift(),s===void 0)return n.join("");a=!a}}function ij(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),s=e.indexOf("</"+t);if(n===-1||s===-1)break;const a=e.indexOf(">",s);if(a===-1)break;r+=e.slice(n+1,s).trim(),e=e.slice(0,i).trim()+e.slice(a+1)}return{defs:r,content:e}}function nj(e,t){return e?"<defs>"+e+"</defs>"+t:t}function oj(e,t,r){const i=ij(e);return nj(i.defs,t+i.content+r)}const sj=e=>e==="unset"||e==="undefined"||e==="none";function aj(e,t){const r={...DS,...e},i={...QN,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,i].forEach(C=>{const k=[],w=C.hFlip,T=C.vFlip;let _=C.rotate;w?T?_+=2:(k.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),k.push("scale(-1 1)"),n.top=n.left=0):T&&(k.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),k.push("scale(1 -1)"),n.top=n.left=0);let P;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:P=n.height/2+n.top,k.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:k.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:P=n.width/2+n.left,k.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}_%2===1&&(n.left!==n.top&&(P=n.left,n.left=n.top,n.top=P),n.width!==n.height&&(P=n.width,n.width=n.height,n.height=P)),k.length&&(s=oj(s,'<g transform="'+k.join(" ")+'">',"</g>"))});const a=i.width,c=i.height,h=n.width,u=n.height;let d,p;a===null?(p=c===null?"1em":c==="auto"?u:c,d=nk(p,h/u)):(d=a==="auto"?h:a,p=c===null?nk(d,u/h):c==="auto"?u:c);const m={},g=(C,k)=>{sj(k)||(m[C]=k.toString())};g("width",d),g("height",p);const x=[n.left,n.top,h,u];return m.viewBox=x.join(" "),{attributes:m,viewBox:x,body:s}}const lj=/\sid="(\S+)"/g,ok=new Map;function cj(e){e=e.replace(/[0-9]+$/,"")||"a";const t=ok.get(e)||0;return ok.set(e,t+1),t?`${e}${t}`:e}function hj(e){const t=[];let r;for(;r=lj.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 s=cj(n),a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function uj(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 uy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Qo=uy();function RS(e){Qo=e}var Pl={exec:()=>null};function he(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(kr.caret,"$1"),r=r.replace(n,a),i},getRegex:()=>new RegExp(r,t)};return i}var dj=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),kr={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")},fj=/^(?:[ \t]*(?:\n|$))+/,pj=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gj=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mj=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,dy=/(?:[*+-]|\d{1,9}[.)])/,$S=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zS=he($S).replace(/bull/g,dy).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(),yj=he($S).replace(/bull/g,dy).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(),fy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xj=/^[^\n]+/,py=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Cj=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",py).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kj=he(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dy).getRegex(),ad="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",gy=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bj=he("^ {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",gy).replace("tag",ad).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),NS=he(fy).replace("hr",lc).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",ad).getRegex(),vj=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",NS).getRegex(),my={blockquote:vj,code:pj,def:Cj,fences:gj,heading:mj,hr:lc,html:bj,lheading:zS,list:kj,newline:fj,paragraph:NS,table:Pl,text:xj},sk=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lc).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",ad).getRegex(),wj={...my,lheading:yj,table:sk,paragraph:he(fy).replace("hr",lc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sk).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",ad).getRegex()},Sj={...my,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gy).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:Pl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(fy).replace("hr",lc).replace("heading",` *#{1,6} *[^
|
|
227
|
+
]`).replace("lheading",zS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Tj=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_j=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,jS=/^( {2,}|\\)\n(?!\s*$)/,Bj=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ld=/[\p{P}\p{S}]/u,yy=/[\s\p{P}\p{S}]/u,WS=/[^\s\p{P}\p{S}]/u,Lj=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,yy).getRegex(),qS=/(?!~)[\p{P}\p{S}]/u,Ej=/(?!~)[\s\p{P}\p{S}]/u,Fj=/(?:[^\s\p{P}\p{S}]|~)/u,Aj=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",dj?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),HS=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Mj=he(HS,"u").replace(/punct/g,ld).getRegex(),Ij=he(HS,"u").replace(/punct/g,qS).getRegex(),US="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Pj=he(US,"gu").replace(/notPunctSpace/g,WS).replace(/punctSpace/g,yy).replace(/punct/g,ld).getRegex(),Oj=he(US,"gu").replace(/notPunctSpace/g,Fj).replace(/punctSpace/g,Ej).replace(/punct/g,qS).getRegex(),Dj=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,WS).replace(/punctSpace/g,yy).replace(/punct/g,ld).getRegex(),Rj=he(/\\(punct)/,"gu").replace(/punct/g,ld).getRegex(),$j=he(/^<(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(),zj=he(gy).replace("(?:-->|$)","-->").getRegex(),Nj=he("^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",zj).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Au=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,jj=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Au).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),VS=he(/^!?\[(label)\]\[(ref)\]/).replace("label",Au).replace("ref",py).getRegex(),YS=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",py).getRegex(),Wj=he("reflink|nolink(?!\\()","g").replace("reflink",VS).replace("nolink",YS).getRegex(),ak=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xy={_backpedal:Pl,anyPunctuation:Rj,autolink:$j,blockSkip:Aj,br:jS,code:_j,del:Pl,emStrongLDelim:Mj,emStrongRDelimAst:Pj,emStrongRDelimUnd:Dj,escape:Tj,link:jj,nolink:YS,punctuation:Lj,reflink:VS,reflinkSearch:Wj,tag:Nj,text:Bj,url:Pl},qj={...xy,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",Au).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Au).getRegex()},Rg={...xy,emStrongRDelimAst:Oj,emStrongLDelim:Ij,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ak).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:he(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ak).getRegex()},Hj={...Rg,br:he(jS).replace("{2,}","*").getRegex(),text:he(Rg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Mh={normal:my,gfm:wj,pedantic:Sj},dl={normal:xy,gfm:Rg,breaks:Hj,pedantic:qj},Uj={"&":"&","<":"<",">":">",'"':""","'":"'"},lk=e=>Uj[e];function Wi(e,t){if(t){if(kr.escapeTest.test(e))return e.replace(kr.escapeReplace,lk)}else if(kr.escapeTestNoEncode.test(e))return e.replace(kr.escapeReplaceNoEncode,lk);return e}function ck(e){try{e=encodeURI(e).replace(kr.percentDecode,"%")}catch{return null}return e}function hk(e,t){var s;let r=e.replace(kr.findPipe,(a,c,h)=>{let u=!1,d=c;for(;--d>=0&&h[d]==="\\";)u=!u;return u?"|":" |"}),i=r.split(kr.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.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(kr.slashPipe,"|");return i}function fl(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 uk(e,t,r,i,n){let s=t.href,a=t.title||null,c=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:a,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,h}function Yj(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
228
|
+
`).map(s=>{let a=s.match(r.other.beginningSpace);if(a===null)return s;let[c]=a;return c.length>=n.length?s.slice(n.length):s}).join(`
|
|
229
|
+
`)}var Mu=class{constructor(t){fe(this,"options");fe(this,"rules");fe(this,"lexer");this.options=t||Qo}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:fl(i,`
|
|
230
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=Yj(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=fl(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:fl(r[0],`
|
|
231
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=fl(r[0],`
|
|
232
|
+
`).split(`
|
|
233
|
+
`),n="",s="",a=[];for(;i.length>0;){let c=!1,h=[],u;for(u=0;u<i.length;u++)if(this.rules.other.blockquoteStart.test(i[u]))h.push(i[u]),c=!0;else if(!c)h.push(i[u]);else break;i=i.slice(u);let d=h.join(`
|
|
234
|
+
`),p=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
235
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
236
|
+
${d}`:d,s=s?`${s}
|
|
237
|
+
${p}`:p;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=m,i.length===0)break;let g=a.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let x=g,C=x.raw+`
|
|
238
|
+
`+i.join(`
|
|
239
|
+
`),k=this.blockquote(C);a[a.length-1]=k,n=n.substring(0,n.length-x.raw.length)+k.raw,s=s.substring(0,s.length-x.text.length)+k.text;break}else if((g==null?void 0:g.type)==="list"){let x=g,C=x.raw+`
|
|
240
|
+
`+i.join(`
|
|
241
|
+
`),k=this.list(C);a[a.length-1]=k,n=n.substring(0,n.length-g.raw.length)+k.raw,s=s.substring(0,s.length-x.raw.length)+k.raw,i=C.substring(a.at(-1).raw.length).split(`
|
|
242
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:a,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,s={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 a=this.rules.other.listItemRegex(i),c=!1;for(;t;){let u=!1,d="",p="";if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;d=r[0],t=t.substring(d.length);let m=r[2].split(`
|
|
243
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),g=t.split(`
|
|
244
|
+
`,1)[0],x=!m.trim(),C=0;if(this.options.pedantic?(C=2,p=m.trimStart()):x?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,p=m.slice(C),C+=r[1].length),x&&this.rules.other.blankLine.test(g)&&(d+=g+`
|
|
245
|
+
`,t=t.substring(g.length+1),u=!0),!u){let T=this.rules.other.nextBulletRegex(C),_=this.rules.other.hrRegex(C),P=this.rules.other.fencesBeginRegex(C),O=this.rules.other.headingBeginRegex(C),F=this.rules.other.htmlBeginRegex(C);for(;t;){let A=t.split(`
|
|
246
|
+
`,1)[0],q;if(g=A,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),q=g):q=g.replace(this.rules.other.tabCharGlobal," "),P.test(g)||O.test(g)||F.test(g)||T.test(g)||_.test(g))break;if(q.search(this.rules.other.nonSpaceChar)>=C||!g.trim())p+=`
|
|
247
|
+
`+q.slice(C);else{if(x||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||P.test(m)||O.test(m)||_.test(m))break;p+=`
|
|
248
|
+
`+g}!x&&!g.trim()&&(x=!0),d+=A+`
|
|
249
|
+
`,t=t.substring(A.length+1),m=q.slice(C)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(c=!0));let k=null,w;this.options.gfm&&(k=this.rules.other.listIsTask.exec(p),k&&(w=k[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:d,task:!!k,checked:w,loose:!1,text:p,tokens:[]}),s.raw+=d}let h=s.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let u=0;u<s.items.length;u++)if(this.lexer.state.top=!1,s.items[u].tokens=this.lexer.blockTokens(s.items[u].text,[]),!s.loose){let d=s.items[u].tokens.filter(m=>m.type==="space"),p=d.length>0&&d.some(m=>this.rules.other.anyLine.test(m.raw));s.loose=p}if(s.loose)for(let u=0;u<s.items.length;u++)s.items[u].loose=!0;return s}}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"):"",s=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:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=hk(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
250
|
+
`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let h of n)this.rules.other.tableAlignRight.test(h)?a.align.push("right"):this.rules.other.tableAlignCenter.test(h)?a.align.push("center"):this.rules.other.tableAlignLeft.test(h)?a.align.push("left"):a.align.push(null);for(let h=0;h<i.length;h++)a.header.push({text:i[h],tokens:this.lexer.inline(i[h]),header:!0,align:a.align[h]});for(let h of s)a.rows.push(hk(h,a.header.length).map((u,d)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:a.align[d]})));return a}}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)===`
|
|
251
|
+
`?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 a=fl(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=Vj(r[2],"()");if(a===-2)return;if(a>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let n=r[2],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],s=a[3])}else s=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)),uk(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.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," "),s=r[n.toLowerCase()];if(!s){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return uk(i,s,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 s=[...n[0]].length-1,a,c,h=s,u=0,d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+s);(n=d.exec(r))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(c=[...a].length,n[3]||n[4]){h+=c;continue}else if((n[5]||n[6])&&s%3&&!((s+c)%3)){u+=c;continue}if(h-=c,h>0)continue;c=Math.min(c,c+h+u);let p=[...n[0]][0].length,m=t.slice(0,s+n.index+p+c);if(Math.min(s,c)%2){let x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}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),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&s&&(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,s;if(r[2]==="@")n=r[0],s="mailto:"+n;else{let a;do a=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(a!==r[0]);n=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:n,href:s,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}}}},Si=class $g{constructor(t){fe(this,"tokens");fe(this,"options");fe(this,"state");fe(this,"tokenizer");fe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Qo,this.options.tokenizer=this.options.tokenizer||new Mu,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:kr,block:Mh.normal,inline:dl.normal};this.options.pedantic?(r.block=Mh.pedantic,r.inline=dl.pedantic):this.options.gfm&&(r.block=Mh.gfm,this.options.breaks?r.inline=dl.breaks:r.inline=dl.gfm),this.tokenizer.rules=r}static get rules(){return{block:Mh,inline:dl}}static lex(t,r){return new $g(r).lex(t)}static lexInline(t,r){return new $g(r).inlineTokens(t)}lex(t){t=t.replace(kr.carriageReturn,`
|
|
252
|
+
`),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,s,a;for(this.options.pedantic&&(t=t.replace(kr.tabCharGlobal," ").replace(kr.spaceLine,""));t;){let c;if((s=(n=this.options.extensions)==null?void 0:n.block)!=null&&s.some(u=>(c=u.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let u=r.at(-1);c.raw.length===1&&u!==void 0?u.raw+=`
|
|
253
|
+
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
254
|
+
`)?"":`
|
|
255
|
+
`)+c.raw,u.text+=`
|
|
256
|
+
`+c.text,this.inlineQueue.at(-1).src=u.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
257
|
+
`)?"":`
|
|
258
|
+
`)+c.raw,u.text+=`
|
|
259
|
+
`+c.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let h=t;if((a=this.options.extensions)!=null&&a.startBlock){let u=1/0,d=t.slice(1),p;this.options.extensions.startBlock.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(h=t.substring(0,u+1))}if(this.state.top&&(c=this.tokenizer.paragraph(h))){let u=r.at(-1);i&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=(u.raw.endsWith(`
|
|
260
|
+
`)?"":`
|
|
261
|
+
`)+c.raw,u.text+=`
|
|
262
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(c),i=h.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
263
|
+
`)?"":`
|
|
264
|
+
`)+c.raw,u.text+=`
|
|
265
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(c);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var h,u,d,p,m;let i=t,n=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)g.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 s;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=n[2]?n[2].length:0,i=i.slice(0,n.index+s)+"["+"a".repeat(n[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((u=(h=this.options.hooks)==null?void 0:h.emStrongMask)==null?void 0:u.call({lexer:this},i))??i;let a=!1,c="";for(;t;){a||(c=""),a=!1;let g;if((p=(d=this.options.extensions)==null?void 0:d.inline)!=null&&p.some(C=>(g=C.call({lexer:this},t,r))?(t=t.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(g.raw.length);let C=r.at(-1);g.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=g.raw,C.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(t,i,c)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(t)){t=t.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(t))){t=t.substring(g.raw.length),r.push(g);continue}let x=t;if((m=this.options.extensions)!=null&&m.startInline){let C=1/0,k=t.slice(1),w;this.options.extensions.startInline.forEach(T=>{w=T.call({lexer:this},k),typeof w=="number"&&w>=0&&(C=Math.min(C,w))}),C<1/0&&C>=0&&(x=t.substring(0,C+1))}if(g=this.tokenizer.inlineText(x)){t=t.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(c=g.raw.slice(-1)),a=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=g.raw,C.text+=g.text):r.push(g);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 r}},Iu=class{constructor(t){fe(this,"options");fe(this,"parser");this.options=t||Qo}space(t){return""}code({text:t,lang:r,escaped:i}){var a;let n=(a=(r||"").match(kr.notSpaceStart))==null?void 0:a[0],s=t.replace(kr.endingNewline,"")+`
|
|
266
|
+
`;return n?'<pre><code class="language-'+Wi(n)+'">'+(i?s:Wi(s,!0))+`</code></pre>
|
|
267
|
+
`:"<pre><code>"+(i?s:Wi(s,!0))+`</code></pre>
|
|
268
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
269
|
+
${this.parser.parse(t)}</blockquote>
|
|
270
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
271
|
+
`}hr(t){return`<hr>
|
|
272
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let c=0;c<t.items.length;c++){let h=t.items[c];n+=this.listitem(h)}let s=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+s+a+`>
|
|
273
|
+
`+n+"</"+s+`>
|
|
274
|
+
`}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+" "+Wi(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>
|
|
275
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
276
|
+
`}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let n="";for(let s=0;s<t.rows.length;s++){let a=t.rows[s];i="";for(let c=0;c<a.length;c++)i+=this.tablecell(a[c]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
277
|
+
<thead>
|
|
278
|
+
`+r+`</thead>
|
|
279
|
+
`+n+`</table>
|
|
280
|
+
`}tablerow({text:t}){return`<tr>
|
|
281
|
+
${t}</tr>
|
|
282
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
283
|
+
`}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>${Wi(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),s=ck(t);if(s===null)return n;t=s;let a='<a href="'+t+'"';return r&&(a+=' title="'+Wi(r)+'"'),a+=">"+n+"</a>",a}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let s=ck(t);if(s===null)return Wi(i);t=s;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${Wi(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Wi(t.text)}},Cy=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""}},Ti=class zg{constructor(t){fe(this,"options");fe(this,"renderer");fe(this,"textRenderer");this.options=t||Qo,this.options.renderer=this.options.renderer||new Iu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Cy}static parse(t,r){return new zg(r).parse(t)}static parseInline(t,r){return new zg(r).parseInline(t)}parse(t,r=!0){var n,s;let i="";for(let a=0;a<t.length;a++){let c=t[a];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[c.type]){let u=c,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){i+=d||"";continue}}let h=c;switch(h.type){case"space":{i+=this.renderer.space(h);continue}case"hr":{i+=this.renderer.hr(h);continue}case"heading":{i+=this.renderer.heading(h);continue}case"code":{i+=this.renderer.code(h);continue}case"table":{i+=this.renderer.table(h);continue}case"blockquote":{i+=this.renderer.blockquote(h);continue}case"list":{i+=this.renderer.list(h);continue}case"html":{i+=this.renderer.html(h);continue}case"def":{i+=this.renderer.def(h);continue}case"paragraph":{i+=this.renderer.paragraph(h);continue}case"text":{let u=h,d=this.renderer.text(u);for(;a+1<t.length&&t[a+1].type==="text";)u=t[++a],d+=`
|
|
284
|
+
`+this.renderer.text(u);r?i+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):i+=d;continue}default:{let u='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return i}parseInline(t,r=this.renderer){var n,s;let i="";for(let a=0;a<t.length;a++){let c=t[a];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[c.type]){let u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=u||"";continue}}let h=c;switch(h.type){case"escape":{i+=r.text(h);break}case"html":{i+=r.html(h);break}case"link":{i+=r.link(h);break}case"image":{i+=r.image(h);break}case"strong":{i+=r.strong(h);break}case"em":{i+=r.em(h);break}case"codespan":{i+=r.codespan(h);break}case"br":{i+=r.br(h);break}case"del":{i+=r.del(h);break}case"text":{i+=r.text(h);break}default:{let u='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return i}},$h,vl=($h=class{constructor(t){fe(this,"options");fe(this,"block");this.options=t||Qo}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Si.lex:Si.lexInline}provideParser(){return this.block?Ti.parse:Ti.parseInline}},fe($h,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),fe($h,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),$h),Gj=class{constructor(...t){fe(this,"defaults",uy());fe(this,"options",this.setOptions);fe(this,"parse",this.parseMarkdown(!0));fe(this,"parseInline",this.parseMarkdown(!1));fe(this,"Parser",Ti);fe(this,"Renderer",Iu);fe(this,"TextRenderer",Cy);fe(this,"Lexer",Si);fe(this,"Tokenizer",Mu);fe(this,"Hooks",vl);this.use(...t)}walkTokens(t,r){var n,s;let i=[];for(let a of t)switch(i=i.concat(r.call(this,a)),a.type){case"table":{let c=a;for(let h of c.header)i=i.concat(this.walkTokens(h.tokens,r));for(let h of c.rows)for(let u of h)i=i.concat(this.walkTokens(u.tokens,r));break}case"list":{let c=a;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=a;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(h=>{let u=c[h].flat(1/0);i=i.concat(this.walkTokens(u,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.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(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...c){let h=s.renderer.apply(this,c);return h===!1&&(h=a.apply(this,c)),h}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),n.extensions=r),i.renderer){let s=this.defaults.renderer||new Iu(this.defaults);for(let a in i.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let c=a,h=i.renderer[c],u=s[c];s[c]=(...d)=>{let p=h.apply(s,d);return p===!1&&(p=u.apply(s,d)),p||""}}n.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Mu(this.defaults);for(let a in i.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let c=a,h=i.tokenizer[c],u=s[c];s[c]=(...d)=>{let p=h.apply(s,d);return p===!1&&(p=u.apply(s,d)),p}}n.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new vl;for(let a in i.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let c=a,h=i.hooks[c],u=s[c];vl.passThroughHooks.has(a)?s[c]=d=>{if(this.defaults.async&&vl.passThroughHooksRespectAsync.has(a))return(async()=>{let m=await h.call(s,d);return u.call(s,m)})();let p=h.call(s,d);return u.call(s,p)}:s[c]=(...d)=>{if(this.defaults.async)return(async()=>{let m=await h.apply(s,d);return m===!1&&(m=await u.apply(s,d)),m})();let p=h.apply(s,d);return p===!1&&(p=u.apply(s,d)),p}}n.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,a=i.walkTokens;n.walkTokens=function(c){let h=[];return h.push(a.call(this,c)),s&&(h=h.concat(s.call(this,c))),h}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Si.lex(t,r??this.defaults)}parser(t,r){return Ti.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},s={...this.defaults,...n},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&n.async===!1)return a(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 a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,h=await(s.hooks?await s.hooks.provideLexer():t?Si.lex:Si.lexInline)(c,s),u=s.hooks?await s.hooks.processAllTokens(h):h;s.walkTokens&&await Promise.all(this.walkTokens(u,s.walkTokens));let d=await(s.hooks?await s.hooks.provideParser():t?Ti.parse:Ti.parseInline)(u,s);return s.hooks?await s.hooks.postprocess(d):d})().catch(a);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?Si.lex:Si.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let h=(s.hooks?s.hooks.provideParser():t?Ti.parse:Ti.parseInline)(c,s);return s.hooks&&(h=s.hooks.postprocess(h)),h}catch(c){return a(c)}}}onError(t,r){return i=>{if(i.message+=`
|
|
285
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Wi(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},Ho=new Gj;function ue(e,t){return Ho.parse(e,t)}ue.options=ue.setOptions=function(e){return Ho.setOptions(e),ue.defaults=Ho.defaults,RS(ue.defaults),ue};ue.getDefaults=uy;ue.defaults=Qo;ue.use=function(...e){return Ho.use(...e),ue.defaults=Ho.defaults,RS(ue.defaults),ue};ue.walkTokens=function(e,t){return Ho.walkTokens(e,t)};ue.parseInline=Ho.parseInline;ue.Parser=Ti;ue.parser=Ti.parse;ue.Renderer=Iu;ue.TextRenderer=Cy;ue.Lexer=Si;ue.lexer=Si.lex;ue.Tokenizer=Mu;ue.Hooks=vl;ue.parse=ue;ue.options;ue.setOptions;ue.use;ue.walkTokens;ue.parseInline;Ti.parse;Si.lex;function GS(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(c,h){var u=h.match(/\n([\t ]+|(?!\s).)/g);return u?c.concat(u.map(function(d){var p,m;return(m=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&m!==void 0?m:0})):c},[]);if(n.length){var s=new RegExp(`
|
|
286
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(c){return c.replace(s,`
|
|
287
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(c,h){var u=a.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=c;typeof c=="string"&&c.includes(`
|
|
288
|
+
`)&&(p=String(c).split(`
|
|
289
|
+
`).map(function(m,g){return g===0?m:""+d+m}).join(`
|
|
290
|
+
`)),a+=p+i[h+1]}),a}var Xj={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},Ng=new Map,XS=new Map,Qj=v(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(at.debug("Registering icon pack:",t.name),"loader"in t)XS.set(t.name,t.loader);else if("icons"in t)Ng.set(t.name,t.icons);else throw at.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),QS=v(async(e,t)=>{const r=KN(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=Ng.get(i);if(!n){const a=XS.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await a(),prefix:i},Ng.set(i,n)}catch(c){throw at.error(c),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=tj(n,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),Kj=v(async e=>{try{return await QS(e),!0}catch{return!1}},"isIconAvailable"),cc=v(async(e,t,r)=>{let i;try{i=await QS(e,t==null?void 0:t.fallbackPrefix)}catch(a){at.error(a),i=Xj}const n=aj(i,t),s=uj(hj(n.body),{...n.attributes,...r});return Ai(s,_e())},"getIconSVG");function KS(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
291
|
+
`).replace(/\n{2,}/g,`
|
|
292
|
+
`);return GS(i)}v(KS,"preprocessMarkdown");function ZS(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"})))??[]})}v(ZS,"nonMarkdownToLines");function JS(e,t={}){const r=KS(e,t),i=ue.lexer(r),n=[[]];let s=0;function a(c,h="normal"){c.type==="text"?c.text.split(`
|
|
293
|
+
`).forEach((d,p)=>{p!==0&&(s++,n.push([])),d.split(" ").forEach(m=>{m=m.replace(/'/g,"'"),m&&n[s].push({content:m,type:h})})}):c.type==="strong"||c.type==="em"?c.tokens.forEach(u=>{a(u,c.type)}):c.type==="html"&&n[s].push({content:c.text,type:"normal"})}return v(a,"processNode"),i.forEach(c=>{var h;c.type==="paragraph"?(h=c.tokens)==null||h.forEach(u=>{a(u)}):c.type==="html"?n[s].push({content:c.text,type:"normal"}):n[s].push({content:c.raw,type:"normal"})}),n}v(JS,"markdownToLines");function tT(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}v(tT,"nonMarkdownToHTML");function eT(e,{markdownAutoWrap:t}={}){const r=ue.lexer(e);function i(n){var s,a,c;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(s=n.tokens)==null?void 0:s.map(i).join("")}</strong>`:n.type==="em"?`<em>${(a=n.tokens)==null?void 0:a.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(c=n.tokens)==null?void 0:c.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(at.warn(`Unsupported markdown: ${n.type}`),n.raw)}return v(i,"output"),r.map(i).join("")}v(eT,"markdownToHTML");function rT(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}v(rT,"splitTextToChars");function iT(e,t){const r=rT(t.content);return ky(e,[],r,t.type)}v(iT,"splitWordToFitWidth");function ky(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...s]=r,a=[...t,n];return e([{content:a.join(""),type:i}])?ky(e,a,s,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}v(ky,"splitWordToFitWidthRecursion");function nT(e,t){if(e.some(({content:r})=>r.includes(`
|
|
294
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Pu(e,t)}v(nT,"splitLineToFitWidth");function Pu(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 s=e.shift()??{content:" ",type:"normal"},a=[...i];if(n!==""&&a.push({content:n,type:"normal"}),a.push(s),t(a))return Pu(e,t,r,a);if(i.length>0)r.push(i),e.unshift(s);else if(s.content){const[c,h]=iT(t,s);r.push([c]),h.content&&e.unshift(h)}return Pu(e,t,r)}v(Pu,"splitLineToFitWidthRecursion");function jg(e,t){t&&e.attr("style",t)}v(jg,"applyStyle");var dk=16384;async function oT(e,t,r,i,n=!1,s=_e()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,dk)}px`),a.attr("height",`${Math.min(10*r,dk)}px`);const c=a.append("xhtml:div"),h=Rl(t.label)?await M2(t.label.replace(rc.lineBreakRegex,`
|
|
295
|
+
`),s):Ai(t.label,s),u=t.isNode?"nodeLabel":"edgeLabel",d=c.append("span");d.html(h),jg(d,t.labelStyle),d.attr("class",`${u} ${i}`),jg(c,t.labelStyle),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(c.style("max-width",r+"px"),c.style("text-align","center")),c.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&c.attr("class","labelBkg");let p=c.node().getBoundingClientRect();return p.width===r&&(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",r+"px"),p=c.node().getBoundingClientRect()),a.node()}v(oT,"addHtmlSpan");function cd(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}v(cd,"createTspan");function sT(e,t,r){const i=e.append("text"),n=cd(i,1,t);hd(n,r);const s=n.node().getComputedTextLength();return i.remove(),s}v(sT,"computeWidthOfText");function Zj(e,t,r){var a;const i=e.append("text"),n=cd(i,1,t);hd(n,[{content:r,type:"normal"}]);const s=(a=n.node())==null?void 0:a.getBoundingClientRect();return s&&i.remove(),s}v(Zj,"computeDimensionOfText");function aT(e,t,r,i=!1,n=!1){const a=t.append("g"),c=a.insert("rect").attr("class","background").attr("style","stroke: none"),h=a.append("text").attr("y","-10.1");n&&h.attr("text-anchor","middle");let u=0;for(const d of r){const p=v(g=>sT(a,1.1,g)<=e,"checkWidth"),m=p(d)?[d]:nT(d,p);for(const g of m){const x=cd(h,u,1.1,n);hd(x,g),u++}}if(i){const d=h.node().getBBox(),p=2;return c.attr("x",d.x-p).attr("y",d.y-p).attr("width",d.width+2*p).attr("height",d.height+2*p),a.node()}else return h.node()}v(aT,"createFormattedText");function Wg(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}})}v(Wg,"decodeHTMLEntities");function hd(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(Wg(r.content)):n.text(" "+Wg(r.content))})}v(hd,"updateTextContentAndStyles");async function lT(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,s,a)=>(r.push((async()=>{const c=`${s}:${a}`;return await Kj(c)?await cc(c,void 0,{class:"label-icon"}):`<i class='${Ai(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}v(lT,"replaceIconSubstring");var wn=v(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:s=!0,markdown:a=!0,isNode:c=!0,width:h=200,addSvgBackground:u=!1}={},d)=>{if(at.debug("XYZ createText",t,r,i,n,s,c,"addSvgBackground: ",u),s){const p=a?eT(t,d):tT(t),m=await lT(qo(p),d),g=t.replace(/\\\\/g,"\\"),x={isNode:c,label:Rl(t)?g:m,labelStyle:r.replace("fill:","color:")};return await oT(e,x,h,n,u,d)}else{const p=qo(t.replace(/<br\s*\/?>/g,"<br/>")),m=a?JS(p.replace("<br>","<br/>"),d):ZS(p),g=aT(h,e,m,t?u:!1,!c);if(c){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Qt(g).attr("style",x)}else{const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Qt(g).select("rect").attr("style",x.replace(/background:/g,"fill:"));const C=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Qt(g).select("text").attr("style",C)}return i?Qt(g).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Qt(g).selectAll("tspan.text-outer-tspan").classed("row",!0),g}},"createText");function Mp(e,t,r){if(e&&e.length){const[i,n]=t,s=Math.PI/180*r,a=Math.cos(s),c=Math.sin(s);for(const h of e){const[u,d]=h;h[0]=(u-i)*a-(d-n)*c+i,h[1]=(u-i)*c+(d-n)*a+n}}}function Jj(e,t){return e[0]===t[0]&&e[1]===t[1]}function t9(e,t,r,i=1){const n=r,s=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,c=[0,0];if(n)for(const u of a)Mp(u,c,n);const h=(function(u,d,p){const m=[];for(const T of u){const _=[...T];Jj(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&m.push(_)}const g=[];d=Math.max(d,.1);const x=[];for(const T of m)for(let _=0;_<T.length-1;_++){const P=T[_],O=T[_+1];if(P[1]!==O[1]){const F=Math.min(P[1],O[1]);x.push({ymin:F,ymax:Math.max(P[1],O[1]),x:F===P[1]?P[0]:O[0],islope:(O[0]-P[0])/(O[1]-P[1])})}}if(x.sort(((T,_)=>T.ymin<_.ymin?-1:T.ymin>_.ymin?1:T.x<_.x?-1:T.x>_.x?1:T.ymax===_.ymax?0:(T.ymax-_.ymax)/Math.abs(T.ymax-_.ymax))),!x.length)return g;let C=[],k=x[0].ymin,w=0;for(;C.length||x.length;){if(x.length){let T=-1;for(let _=0;_<x.length&&!(x[_].ymin>k);_++)T=_;x.splice(0,T+1).forEach((_=>{C.push({s:k,edge:_})}))}if(C=C.filter((T=>!(T.edge.ymax<=k))),C.sort(((T,_)=>T.edge.x===_.edge.x?0:(T.edge.x-_.edge.x)/Math.abs(T.edge.x-_.edge.x))),(p!==1||w%d==0)&&C.length>1)for(let T=0;T<C.length;T+=2){const _=T+1;if(_>=C.length)break;const P=C[T].edge,O=C[_].edge;g.push([[Math.round(P.x),k],[Math.round(O.x),k]])}k+=p,C.forEach((T=>{T.edge.x=T.edge.x+p*T.edge.islope})),w++}return g})(a,s,i);if(n){for(const u of a)Mp(u,c,-n);(function(u,d,p){const m=[];u.forEach((g=>m.push(...g))),Mp(m,d,p)})(h,c,-n)}return h}function hc(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 s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=n),t9(e,n,i,s||1)}class by{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=hc(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 ud(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 e9 extends by{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=hc(t,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,a=[],c=.5*i*Math.cos(s),h=.5*i*Math.sin(s);for(const[u,d]of n)ud([u,d])&&a.push([[u[0]-c,u[1]+h],[...d]],[[u[0]+c,u[1]-h],[...d]]);return{type:"fillSketch",ops:this.renderLines(a,r)}}}class r9 extends by{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,n);return i.ops=i.ops.concat(s.ops),i}}class i9{constructor(t){this.helper=t}fillPolygons(t,r){const i=hc(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 s=r.fillWeight;s<0&&(s=r.strokeWidth/2);const a=n/4;for(const c of t){const h=ud(c),u=h/n,d=Math.ceil(u)-1,p=h-d*n,m=(c[0][0]+c[1][0])/2-n/4,g=Math.min(c[0][1],c[1][1]);for(let x=0;x<d;x++){const C=g+p+x*n,k=m-a+2*Math.random()*a,w=C-a+2*Math.random()*a,T=this.helper.ellipse(k,w,s,s,r);i.push(...T.ops)}}return{type:"fillSketch",ops:i}}}let n9=class{constructor(t){this.helper=t}fillPolygons(t,r){const i=hc(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,s=[];return t.forEach((a=>{const c=ud(a),h=Math.floor(c/(i+n)),u=(c+n-h*(i+n))/2;let d=a[0],p=a[1];d[0]>p[0]&&(d=a[1],p=a[0]);const m=Math.atan((p[1]-d[1])/(p[0]-d[0]));for(let g=0;g<h;g++){const x=g*(i+n),C=x+i,k=[d[0]+x*Math.cos(m)+u*Math.cos(m),d[1]+x*Math.sin(m)+u*Math.sin(m)],w=[d[0]+C*Math.cos(m)+u*Math.cos(m),d[1]+C*Math.sin(m)+u*Math.sin(m)];s.push(...this.helper.doubleLineOps(k[0],k[1],w[0],w[1],r))}})),s}};class o9{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,s=hc(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(s,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach((s=>{const a=ud(s),c=Math.round(a/(2*r));let h=s[0],u=s[1];h[0]>u[0]&&(h=s[1],u=s[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let p=0;p<c;p++){const m=2*p*r,g=2*(p+1)*r,x=Math.sqrt(2*Math.pow(r,2)),C=[h[0]+m*Math.cos(d),h[1]+m*Math.sin(d)],k=[h[0]+g*Math.cos(d),h[1]+g*Math.sin(d)],w=[C[0]+x*Math.cos(d+Math.PI/4),C[1]+x*Math.sin(d+Math.PI/4)];n.push(...this.helper.doubleLineOps(C[0],C[1],w[0],w[1],i),...this.helper.doubleLineOps(w[0],w[1],k[0],k[1],i))}})),n}}const Ar={};class s9{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const a9=0,Ip=1,fk=2,Ih={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 Pp(e,t){return e.type===t}function vy(e){const t=[],r=(function(a){const c=new Array;for(;a!=="";)if(a.match(/^([ \t\r\n,]+)/))a=a.substr(RegExp.$1.length);else if(a.match(/^([aAcChHlLmMqQsStTvVzZ])/))c[c.length]={type:a9,text:RegExp.$1},a=a.substr(RegExp.$1.length);else{if(!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];c[c.length]={type:Ip,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return c[c.length]={type:fk,text:""},c})(e);let i="BOD",n=0,s=r[n];for(;!Pp(s,fk);){let a=0;const c=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return vy("M0,0"+e);n++,a=Ih[s.text],i=s.text}else Pp(s,Ip)?a=Ih[i]:(n++,a=Ih[s.text],i=s.text);if(!(n+a<r.length))throw new Error("Path data ended short");for(let h=n;h<n+a;h++){const u=r[h];if(!Pp(u,Ip))throw new Error("Param not a number: "+i+","+u.text);c[c.length]=+u.text}if(typeof Ih[i]!="number")throw new Error("Bad segment: "+i);{const h={key:i,data:c};t.push(h),n+=a,s=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function cT(e){let t=0,r=0,i=0,n=0;const s=[];for(const{key:a,data:c}of e)switch(a){case"M":s.push({key:"M",data:[...c]}),[t,r]=c,[i,n]=c;break;case"m":t+=c[0],r+=c[1],s.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":s.push({key:"L",data:[...c]}),[t,r]=c;break;case"l":t+=c[0],r+=c[1],s.push({key:"L",data:[t,r]});break;case"C":s.push({key:"C",data:[...c]}),t=c[4],r=c[5];break;case"c":{const h=c.map(((u,d)=>d%2?u+r:u+t));s.push({key:"C",data:h}),t=h[4],r=h[5];break}case"Q":s.push({key:"Q",data:[...c]}),t=c[2],r=c[3];break;case"q":{const h=c.map(((u,d)=>d%2?u+r:u+t));s.push({key:"Q",data:h}),t=h[2],r=h[3];break}case"A":s.push({key:"A",data:[...c]}),t=c[5],r=c[6];break;case"a":t+=c[5],r+=c[6],s.push({key:"A",data:[c[0],c[1],c[2],c[3],c[4],t,r]});break;case"H":s.push({key:"H",data:[...c]}),t=c[0];break;case"h":t+=c[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...c]}),r=c[0];break;case"v":r+=c[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...c]}),t=c[2],r=c[3];break;case"s":{const h=c.map(((u,d)=>d%2?u+r:u+t));s.push({key:"S",data:h}),t=h[2],r=h[3];break}case"T":s.push({key:"T",data:[...c]}),t=c[0],r=c[1];break;case"t":t+=c[0],r+=c[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=i,r=n}return s}function hT(e){const t=[];let r="",i=0,n=0,s=0,a=0,c=0,h=0;for(const{key:u,data:d}of e){switch(u){case"M":t.push({key:"M",data:[...d]}),[i,n]=d,[s,a]=d;break;case"C":t.push({key:"C",data:[...d]}),i=d[4],n=d[5],c=d[2],h=d[3];break;case"L":t.push({key:"L",data:[...d]}),[i,n]=d;break;case"H":i=d[0],t.push({key:"L",data:[i,n]});break;case"V":n=d[0],t.push({key:"L",data:[i,n]});break;case"S":{let p=0,m=0;r==="C"||r==="S"?(p=i+(i-c),m=n+(n-h)):(p=i,m=n),t.push({key:"C",data:[p,m,...d]}),c=d[0],h=d[1],i=d[2],n=d[3];break}case"T":{const[p,m]=d;let g=0,x=0;r==="Q"||r==="T"?(g=i+(i-c),x=n+(n-h)):(g=i,x=n);const C=i+2*(g-i)/3,k=n+2*(x-n)/3,w=p+2*(g-p)/3,T=m+2*(x-m)/3;t.push({key:"C",data:[C,k,w,T,p,m]}),c=g,h=x,i=p,n=m;break}case"Q":{const[p,m,g,x]=d,C=i+2*(p-i)/3,k=n+2*(m-n)/3,w=g+2*(p-g)/3,T=x+2*(m-x)/3;t.push({key:"C",data:[C,k,w,T,g,x]}),c=p,h=m,i=g,n=x;break}case"A":{const p=Math.abs(d[0]),m=Math.abs(d[1]),g=d[2],x=d[3],C=d[4],k=d[5],w=d[6];p===0||m===0?(t.push({key:"C",data:[i,n,k,w,k,w]}),i=k,n=w):(i!==k||n!==w)&&(uT(i,n,k,w,p,m,g,x,C).forEach((function(T){t.push({key:"C",data:T})})),i=k,n=w);break}case"Z":t.push({key:"Z",data:[]}),i=s,n=a}r=u}return t}function pl(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function uT(e,t,r,i,n,s,a,c,h,u){const d=(p=a,Math.PI*p/180);var p;let m=[],g=0,x=0,C=0,k=0;if(u)[g,x,C,k]=u;else{[e,t]=pl(e,t,-d),[r,i]=pl(r,i,-d);const nt=(e-r)/2,V=(t-i)/2;let j=nt*nt/(n*n)+V*V/(s*s);j>1&&(j=Math.sqrt(j),n*=j,s*=j);const W=n*n,G=s*s,R=W*G-W*V*V-G*nt*nt,K=W*V*V+G*nt*nt,M=(c===h?-1:1)*Math.sqrt(Math.abs(R/K));C=M*n*V/s+(e+r)/2,k=M*-s*nt/n+(t+i)/2,g=Math.asin(parseFloat(((t-k)/s).toFixed(9))),x=Math.asin(parseFloat(((i-k)/s).toFixed(9))),e<C&&(g=Math.PI-g),r<C&&(x=Math.PI-x),g<0&&(g=2*Math.PI+g),x<0&&(x=2*Math.PI+x),h&&g>x&&(g-=2*Math.PI),!h&&x>g&&(x-=2*Math.PI)}let w=x-g;if(Math.abs(w)>120*Math.PI/180){const nt=x,V=r,j=i;x=h&&x>g?g+120*Math.PI/180*1:g+120*Math.PI/180*-1,m=uT(r=C+n*Math.cos(x),i=k+s*Math.sin(x),V,j,n,s,a,0,h,[x,nt,C,k])}w=x-g;const T=Math.cos(g),_=Math.sin(g),P=Math.cos(x),O=Math.sin(x),F=Math.tan(w/4),A=4/3*n*F,q=4/3*s*F,et=[e,t],I=[e+A*_,t-q*T],N=[r+A*O,i-q*P],J=[r,i];if(I[0]=2*et[0]-I[0],I[1]=2*et[1]-I[1],u)return[I,N,J].concat(m);{m=[I,N,J].concat(m);const nt=[];for(let V=0;V<m.length;V+=3){const j=pl(m[V][0],m[V][1],d),W=pl(m[V+1][0],m[V+1][1],d),G=pl(m[V+2][0],m[V+2][1],d);nt.push([j[0],j[1],W[0],W[1],G[0],G[1]])}return nt}}const l9={randOffset:function(e,t){return qt(e,t)},randOffsetWithRange:function(e,t,r){return Ou(e,t,r)},ellipse:function(e,t,r,i,n){const s=fT(r,i,n);return qg(e,t,n,s).opset},doubleLineOps:function(e,t,r,i,n){return oo(e,t,r,i,n,!0)}};function dT(e,t,r,i,n){return{type:"path",ops:oo(e,t,r,i,n)}}function Kh(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let s=0;s<i-1;s++)n.push(...oo(e[s][0],e[s][1],e[s+1][0],e[s+1][1],r));return t&&n.push(...oo(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?dT(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function c9(e,t,r,i,n){return(function(s,a){return Kh(s,!0,a)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function pk(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Ph(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:Ph(r[0],1.5*(1+.22*t.roughness),yk(t));for(let s=1;s<r.length;s++){const a=r[s];if(a.length){const c=Ph(a,1*(1+.2*t.roughness),t),h=t.disableMultiStroke?[]:Ph(a,1.5*(1+.22*t.roughness),yk(t));for(const u of c)u.op!=="move"&&i.push(u);for(const u of h)u.op!=="move"&&n.push(u)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function fT(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)),s=2*Math.PI/n;let a=Math.abs(e/2),c=Math.abs(t/2);const h=1-r.curveFitting;return a+=qt(a*h,r),c+=qt(c*h,r),{increment:s,rx:a,ry:c}}function qg(e,t,r,i){const[n,s]=xk(i.increment,e,t,i.rx,i.ry,1,i.increment*Ou(.1,Ou(.4,1,r),r),r);let a=Du(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[c]=xk(i.increment,e,t,i.rx,i.ry,1.5,0,r),h=Du(c,null,r);a=a.concat(h)}return{estimatedPoints:s,opset:{type:"path",ops:a}}}function gk(e,t,r,i,n,s,a,c,h){const u=e,d=t;let p=Math.abs(r/2),m=Math.abs(i/2);p+=qt(.01*p,h),m+=qt(.01*m,h);let g=n,x=s;for(;g<0;)g+=2*Math.PI,x+=2*Math.PI;x-g>2*Math.PI&&(g=0,x=2*Math.PI);const C=2*Math.PI/h.curveStepCount,k=Math.min(C/2,(x-g)/2),w=Ck(k,u,d,p,m,g,x,1,h);if(!h.disableMultiStroke){const T=Ck(k,u,d,p,m,g,x,1.5,h);w.push(...T)}return a&&(c?w.push(...oo(u,d,u+p*Math.cos(g),d+m*Math.sin(g),h),...oo(u,d,u+p*Math.cos(x),d+m*Math.sin(x),h)):w.push({op:"lineTo",data:[u,d]},{op:"lineTo",data:[u+p*Math.cos(g),d+m*Math.sin(g)]})),{type:"path",ops:w}}function mk(e,t){const r=hT(cT(vy(e))),i=[];let n=[0,0],s=[0,0];for(const{key:a,data:c}of r)switch(a){case"M":s=[c[0],c[1]],n=[c[0],c[1]];break;case"L":i.push(...oo(s[0],s[1],c[0],c[1],t)),s=[c[0],c[1]];break;case"C":{const[h,u,d,p,m,g]=c;i.push(...h9(h,u,d,p,m,g,s,t)),s=[m,g];break}case"Z":i.push(...oo(s[0],s[1],n[0],n[1],t)),s=[n[0],n[1]]}return{type:"path",ops:i}}function Op(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+qt(n,t),i[0][1]+qt(n,t)]});for(let a=1;a<s;a++)r.push({op:"lineTo",data:[i[a][0]+qt(n,t),i[a][1]+qt(n,t)]})}}return{type:"fillPath",ops:r}}function Ts(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!Ar[n])switch(n){case"zigzag":Ar[n]||(Ar[n]=new e9(i));break;case"cross-hatch":Ar[n]||(Ar[n]=new r9(i));break;case"dots":Ar[n]||(Ar[n]=new i9(i));break;case"dashed":Ar[n]||(Ar[n]=new n9(i));break;case"zigzag-line":Ar[n]||(Ar[n]=new o9(i));break;default:n="hachure",Ar[n]||(Ar[n]=new by(i))}return Ar[n]})(t,l9).fillPolygons(e,t)}function yk(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function pT(e){return e.randomizer||(e.randomizer=new s9(e.seed||0)),e.randomizer.next()}function Ou(e,t,r,i=1){return r.roughness*i*(pT(r)*(t-e)+e)}function qt(e,t,r=1){return Ou(-e,e,t,r)}function oo(e,t,r,i,n,s=!1){const a=s?n.disableMultiStrokeFill:n.disableMultiStroke,c=Hg(e,t,r,i,n,!0,!1);if(a)return c;const h=Hg(e,t,r,i,n,!0,!0);return c.concat(h)}function Hg(e,t,r,i,n,s,a){const c=Math.pow(e-r,2)+Math.pow(t-i,2),h=Math.sqrt(c);let u=1;u=h<200?1:h>500?.4:-.0016668*h+1.233334;let d=n.maxRandomnessOffset||0;d*d*100>c&&(d=h/10);const p=d/2,m=.2+.2*pT(n);let g=n.bowing*n.maxRandomnessOffset*(i-t)/200,x=n.bowing*n.maxRandomnessOffset*(e-r)/200;g=qt(g,n,u),x=qt(x,n,u);const C=[],k=()=>qt(p,n,u),w=()=>qt(d,n,u),T=n.preserveVertices;return a?C.push({op:"move",data:[e+(T?0:k()),t+(T?0:k())]}):C.push({op:"move",data:[e+(T?0:qt(d,n,u)),t+(T?0:qt(d,n,u))]}),a?C.push({op:"bcurveTo",data:[g+e+(r-e)*m+k(),x+t+(i-t)*m+k(),g+e+2*(r-e)*m+k(),x+t+2*(i-t)*m+k(),r+(T?0:k()),i+(T?0:k())]}):C.push({op:"bcurveTo",data:[g+e+(r-e)*m+w(),x+t+(i-t)*m+w(),g+e+2*(r-e)*m+w(),x+t+2*(i-t)*m+w(),r+(T?0:w()),i+(T?0:w())]}),C}function Ph(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+qt(t,r),e[0][1]+qt(t,r)]),i.push([e[0][0]+qt(t,r),e[0][1]+qt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+qt(t,r),e[n][1]+qt(t,r)]),n===e.length-1&&i.push([e[n][0]+qt(t,r),e[n][1]+qt(t,r)]);return Du(i,null,r)}function Du(e,t,r){const i=e.length,n=[];if(i>3){const s=[],a=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let c=1;c+2<i;c++){const h=e[c];s[0]=[h[0],h[1]],s[1]=[h[0]+(a*e[c+1][0]-a*e[c-1][0])/6,h[1]+(a*e[c+1][1]-a*e[c-1][1])/6],s[2]=[e[c+1][0]+(a*e[c][0]-a*e[c+2][0])/6,e[c+1][1]+(a*e[c][1]-a*e[c+2][1])/6],s[3]=[e[c+1][0],e[c+1][1]],n.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[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(...Hg(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function xk(e,t,r,i,n,s,a,c){const h=[],u=[];if(c.roughness===0){e/=4,u.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){const p=[t+i*Math.cos(d),r+n*Math.sin(d)];h.push(p),u.push(p)}u.push([t+i*Math.cos(0),r+n*Math.sin(0)]),u.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const d=qt(.5,c)-Math.PI/2;u.push([qt(s,c)+t+.9*i*Math.cos(d-e),qt(s,c)+r+.9*n*Math.sin(d-e)]);const p=2*Math.PI+d-.01;for(let m=d;m<p;m+=e){const g=[qt(s,c)+t+i*Math.cos(m),qt(s,c)+r+n*Math.sin(m)];h.push(g),u.push(g)}u.push([qt(s,c)+t+i*Math.cos(d+2*Math.PI+.5*a),qt(s,c)+r+n*Math.sin(d+2*Math.PI+.5*a)]),u.push([qt(s,c)+t+.98*i*Math.cos(d+a),qt(s,c)+r+.98*n*Math.sin(d+a)]),u.push([qt(s,c)+t+.9*i*Math.cos(d+.5*a),qt(s,c)+r+.9*n*Math.sin(d+.5*a)])}return[u,h]}function Ck(e,t,r,i,n,s,a,c,h){const u=s+qt(.1,h),d=[];d.push([qt(c,h)+t+.9*i*Math.cos(u-e),qt(c,h)+r+.9*n*Math.sin(u-e)]);for(let p=u;p<=a;p+=e)d.push([qt(c,h)+t+i*Math.cos(p),qt(c,h)+r+n*Math.sin(p)]);return d.push([t+i*Math.cos(a),r+n*Math.sin(a)]),d.push([t+i*Math.cos(a),r+n*Math.sin(a)]),Du(d,null,h)}function h9(e,t,r,i,n,s,a,c){const h=[],u=[c.maxRandomnessOffset||1,(c.maxRandomnessOffset||1)+.3];let d=[0,0];const p=c.disableMultiStroke?1:2,m=c.preserveVertices;for(let g=0;g<p;g++)g===0?h.push({op:"move",data:[a[0],a[1]]}):h.push({op:"move",data:[a[0]+(m?0:qt(u[0],c)),a[1]+(m?0:qt(u[0],c))]}),d=m?[n,s]:[n+qt(u[g],c),s+qt(u[g],c)],h.push({op:"bcurveTo",data:[e+qt(u[g],c),t+qt(u[g],c),r+qt(u[g],c),i+qt(u[g],c),d[0],d[1]]});return h}function gl(e){return[...e]}function kk(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(gl(e[0]),gl(e[1]),gl(e[2]),gl(e[2]));else{const n=[];n.push(e[0],e[0]);for(let c=1;c<e.length;c++)n.push(e[c]),c===e.length-1&&n.push(e[c]);const s=[],a=1-t;i.push(gl(n[0]));for(let c=1;c+2<n.length;c++){const h=n[c];s[0]=[h[0],h[1]],s[1]=[h[0]+(a*n[c+1][0]-a*n[c-1][0])/6,h[1]+(a*n[c+1][1]-a*n[c-1][1])/6],s[2]=[n[c+1][0]+(a*n[c][0]-a*n[c+2][0])/6,n[c+1][1]+(a*n[c][1]-a*n[c+2][1])/6],s[3]=[n[c+1][0],n[c+1][1]],i.push(s[1],s[2],s[3])}}return i}function Zh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function u9(e,t,r){const i=Zh(t,r);if(i===0)return Zh(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)),Zh(e,Eo(t,r,n))}function Eo(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Ug(e,t,r,i){const n=i||[];if((function(c,h){const u=c[h+0],d=c[h+1],p=c[h+2],m=c[h+3];let g=3*d[0]-2*u[0]-m[0];g*=g;let x=3*d[1]-2*u[1]-m[1];x*=x;let C=3*p[0]-2*m[0]-u[0];C*=C;let k=3*p[1]-2*m[1]-u[1];return k*=k,g<C&&(g=C),x<k&&(x=k),g+x})(e,t)<r){const c=e[t+0];n.length?(s=n[n.length-1],a=c,Math.sqrt(Zh(s,a))>1&&n.push(c)):n.push(c),n.push(e[t+3])}else{const h=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],m=Eo(h,u,.5),g=Eo(u,d,.5),x=Eo(d,p,.5),C=Eo(m,g,.5),k=Eo(g,x,.5),w=Eo(C,k,.5);Ug([h,m,C,w],0,r,n),Ug([w,k,x,p],0,r,n)}var s,a;return n}function d9(e,t){return Ru(e,0,e.length,t)}function Ru(e,t,r,i,n){const s=n||[],a=e[t],c=e[r-1];let h=0,u=1;for(let d=t+1;d<r-1;++d){const p=u9(e[d],a,c);p>h&&(h=p,u=d)}return Math.sqrt(h)>i?(Ru(e,t,u+1,i,s),Ru(e,u,r,i,s)):(s.length||s.push(a),s.push(c)),s}function Dp(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let s=0;s<n;s++)Ug(e,3*s,t,i);return r&&r>0?Ru(i,0,i.length,r):i}const Ur="none";class $u{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,s){const a=this._o(s);return this._d("line",[dT(t,r,i,n,a)],a)}rectangle(t,r,i,n,s){const a=this._o(s),c=[],h=c9(t,r,i,n,a);if(a.fill){const u=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];a.fillStyle==="solid"?c.push(Op([u],a)):c.push(Ts([u],a))}return a.stroke!==Ur&&c.push(h),this._d("rectangle",c,a)}ellipse(t,r,i,n,s){const a=this._o(s),c=[],h=fT(i,n,a),u=qg(t,r,a,h);if(a.fill)if(a.fillStyle==="solid"){const d=qg(t,r,a,h).opset;d.type="fillPath",c.push(d)}else c.push(Ts([u.estimatedPoints],a));return a.stroke!==Ur&&c.push(u.opset),this._d("ellipse",c,a)}circle(t,r,i,n){const s=this.ellipse(t,r,i,i,n);return s.shape="circle",s}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[Kh(t,!1,i)],i)}arc(t,r,i,n,s,a,c=!1,h){const u=this._o(h),d=[],p=gk(t,r,i,n,s,a,c,!0,u);if(c&&u.fill)if(u.fillStyle==="solid"){const m=Object.assign({},u);m.disableMultiStroke=!0;const g=gk(t,r,i,n,s,a,!0,!1,m);g.type="fillPath",d.push(g)}else d.push((function(m,g,x,C,k,w,T){const _=m,P=g;let O=Math.abs(x/2),F=Math.abs(C/2);O+=qt(.01*O,T),F+=qt(.01*F,T);let A=k,q=w;for(;A<0;)A+=2*Math.PI,q+=2*Math.PI;q-A>2*Math.PI&&(A=0,q=2*Math.PI);const et=(q-A)/T.curveStepCount,I=[];for(let N=A;N<=q;N+=et)I.push([_+O*Math.cos(N),P+F*Math.sin(N)]);return I.push([_+O*Math.cos(q),P+F*Math.sin(q)]),I.push([_,P]),Ts([I],T)})(t,r,i,n,s,a,u));return u.stroke!==Ur&&d.push(p),this._d("arc",d,u)}curve(t,r){const i=this._o(r),n=[],s=pk(t,i);if(i.fill&&i.fill!==Ur)if(i.fillStyle==="solid"){const a=pk(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],c=t;if(c.length){const h=typeof c[0][0]=="number"?[c]:c;for(const u of h)u.length<3?a.push(...u):u.length===3?a.push(...Dp(kk([u[0],u[0],u[1],u[2]]),10,(1+i.roughness)/2)):a.push(...Dp(kk(u),10,(1+i.roughness)/2))}a.length&&n.push(Ts([a],i))}return i.stroke!==Ur&&n.push(s),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],s=Kh(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(Op([t],i)):n.push(Ts([t],i))),i.stroke!==Ur&&n.push(s),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 s=i.fill&&i.fill!=="transparent"&&i.fill!==Ur,a=i.stroke!==Ur,c=!!(i.simplification&&i.simplification<1),h=(function(d,p,m){const g=hT(cT(vy(d))),x=[];let C=[],k=[0,0],w=[];const T=()=>{w.length>=4&&C.push(...Dp(w,p)),w=[]},_=()=>{T(),C.length&&(x.push(C),C=[])};for(const{key:O,data:F}of g)switch(O){case"M":_(),k=[F[0],F[1]],C.push(k);break;case"L":T(),C.push([F[0],F[1]]);break;case"C":if(!w.length){const A=C.length?C[C.length-1]:k;w.push([A[0],A[1]])}w.push([F[0],F[1]]),w.push([F[2],F[3]]),w.push([F[4],F[5]]);break;case"Z":T(),C.push([k[0],k[1]])}if(_(),!m)return x;const P=[];for(const O of x){const F=d9(O,m);F.length&&P.push(F)}return P})(t,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),u=mk(t,i);if(s)if(i.fillStyle==="solid")if(h.length===1){const d=mk(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else n.push(Op(h,i));else n.push(Ts(h,i));return a&&(c?h.forEach((d=>{n.push(Kh(d,!1,i))})):n.push(u)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const s=typeof r=="number"&&r>=0?n.data.map((a=>+a.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const s of r){let a=null;switch(s.type){case"path":a={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ur};break;case"fillPath":a={d:this.opsToPath(s),stroke:Ur,strokeWidth:0,fill:i.fill||Ur};break;case"fillSketch":a=this.fillSketch(s,i)}a&&n.push(a)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Ur,strokeWidth:i,fill:Ur}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class f9{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new $u(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(const a of r)switch(a.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,a,s),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const c=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,a,s,c),n.restore();break}case"fillSketch":this.fillSketch(n,a,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 s of r.ops){const a=typeof i=="number"&&i>=0?s.data.map((c=>+c.toFixed(i))):s.data;switch(s.op){case"move":t.moveTo(a[0],a[1]);break;case"bcurveTo":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":t.lineTo(a[0],a[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,s){const a=this.gen.line(t,r,i,n,s);return this.draw(a),a}rectangle(t,r,i,n,s){const a=this.gen.rectangle(t,r,i,n,s);return this.draw(a),a}ellipse(t,r,i,n,s){const a=this.gen.ellipse(t,r,i,n,s);return this.draw(a),a}circle(t,r,i,n){const s=this.gen.circle(t,r,i,n);return this.draw(s),s}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,s,a,c=!1,h){const u=this.gen.arc(t,r,i,n,s,a,c,h);return this.draw(u),u}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 Oh="http://www.w3.org/2000/svg";class p9{constructor(t,r){this.svg=t,this.gen=new $u(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,s=n.createElementNS(Oh,"g"),a=t.options.fixedDecimalPlaceDigits;for(const c of r){let h=null;switch(c.type){case"path":h=n.createElementNS(Oh,"path"),h.setAttribute("d",this.opsToPath(c,a)),h.setAttribute("stroke",i.stroke),h.setAttribute("stroke-width",i.strokeWidth+""),h.setAttribute("fill","none"),i.strokeLineDash&&h.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":h=n.createElementNS(Oh,"path"),h.setAttribute("d",this.opsToPath(c,a)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(n,c,i)}h&&s.appendChild(h)}return s}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const s=t.createElementNS(Oh,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",n+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,s){const a=this.gen.line(t,r,i,n,s);return this.draw(a)}rectangle(t,r,i,n,s){const a=this.gen.rectangle(t,r,i,n,s);return this.draw(a)}ellipse(t,r,i,n,s){const a=this.gen.ellipse(t,r,i,n,s);return this.draw(a)}circle(t,r,i,n){const s=this.gen.circle(t,r,i,n);return this.draw(s)}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,s,a,c=!1,h){const u=this.gen.arc(t,r,i,n,s,a,c,h);return this.draw(u)}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 Tt={canvas:(e,t)=>new f9(e,t),svg:(e,t)=>new p9(e,t),generator:e=>new $u(e),newSeed:()=>$u.newSeed()},Wt=v(async(e,t,r)=>{var g,x;let i;const n=t.useHtmlLabels||bn((g=ce())==null?void 0:g.htmlLabels);r?i=r:i="node default";const s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=s.insert("g").attr("class","label").attr("style",Xe(t.labelStyle));let c;t.label===void 0?c="":c=typeof t.label=="string"?t.label:t.label[0];const h=!!t.icon||!!t.img,u=t.labelType==="markdown",d=await wn(a,Ai(qo(c),ce()),{useHtmlLabels:n,width:t.width||((x=ce().flowchart)==null?void 0:x.wrappingWidth),classes:u?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:h,markdown:u},ce());let p=d.getBBox();const m=((t==null?void 0:t.padding)??0)/2;if(n){const C=d.children[0],k=Qt(d);await PS(C,c),p=C.getBoundingClientRect(),k.attr("width",p.width),k.attr("height",p.height)}return n?a.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):a.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&a.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:s,bbox:p,halfPadding:m,label:a}},"labelHelper"),Rp=v(async(e,t,r)=>{var h,u;const i=r.useHtmlLabels??wr(ce()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await wn(n,Ai(qo(t),ce()),{useHtmlLabels:i,width:r.width||((u=(h=ce())==null?void 0:h.flowchart)==null?void 0:u.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let a=s.getBBox();const c=r.padding/2;if(wr(ce())){const d=s.children[0],p=Qt(s);a=d.getBoundingClientRect(),p.attr("width",a.width),p.attr("height",a.height)}return i?n.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"):n.attr("transform","translate(0, "+-a.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:a,halfPadding:c,label:n}},"insertLabel"),Et=v((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),jt=v((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function ie(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}v(ie,"createPathFromPoints");function so(e,t,r,i,n,s){const a=[],h=r-e,u=i-t,d=h/s,p=2*Math.PI/d,m=t+u/2;for(let g=0;g<=50;g++){const x=g/50,C=e+x*h,k=m+n*Math.sin(p*(C-e));a.push({x:C,y:k})}return a}v(so,"generateFullSineWavePoints");function Gl(e,t,r,i,n,s){const a=[],c=n*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);a.push({x:-g,y:-x})}return a}v(Gl,"generateCirclePoints");function Vg(e){const t=Array.from(e.childNodes).filter(h=>h.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(h=>h.getAttribute("d")).filter(h=>h!==null).join(" ");r.setAttribute("d",i);const n=t.find(h=>h.getAttribute("fill")!=="none"),s=t.find(h=>h.getAttribute("stroke")!=="none"),a=v((h,u)=>(h==null?void 0:h.getAttribute(u))??void 0,"getAttr");if(n){const h={fill:a(n,"fill"),"fill-opacity":a(n,"fill-opacity")??"1"};Object.entries(h).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}if(s){const h={stroke:a(s,"stroke"),"stroke-width":a(s,"stroke-width")??"1","stroke-opacity":a(s,"stroke-opacity")??"1"};Object.entries(h).forEach(([u,d])=>{d&&r.setAttribute(u,d)})}const c=document.createElementNS("http://www.w3.org/2000/svg","g");return c.appendChild(r),c}v(Vg,"mergePaths");var g9=v((e,t)=>{var r=e.x,i=e.y,n=t.x-r,s=t.y-i,a=e.width/2,c=e.height/2,h,u;return Math.abs(s)*a>Math.abs(n)*c?(s<0&&(c=-c),h=s===0?0:c*n/s,u=c):(n<0&&(a=-a),h=a,u=n===0?0:a*s/n),{x:r+h,y:i+u}},"intersectRect"),ua=g9,m9=v(async(e,t,r,i=!1,n=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);const a=ce(),c=wr(a);return await wn(e,s,{style:r,isTitle:i,useHtmlLabels:c,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},a)},"createLabel"),Jn=m9,co=v((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"),gT=v(async(e,t)=>{at.info("Creating subgraph rect for ",t.id,t);const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:a}=i,{labelStyles:c,nodeStyles:h,borderStyles:u,backgroundStyles:d}=Lt(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),m=wr(r),g=p.insert("g").attr("class","cluster-label ");let x;t.labelType==="markdown"?x=await wn(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}):x=await Jn(g,t.label,t.labelStyle||"",!1,!0);let C=x.getBBox();if(wr(r)){const A=x.children[0],q=Qt(x);C=A.getBoundingClientRect(),q.attr("width",C.width),q.attr("height",C.height)}const k=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height,T=t.x-k/2,_=t.y-w/2;at.trace("Data ",t,JSON.stringify(t));let P;if(t.look==="handDrawn"){const A=Tt.svg(p),q=Bt(t,{roughness:.7,fill:s,stroke:a,fillWeight:3,seed:n}),et=A.path(co(T,_,k,w,0),q);P=p.insert(()=>(at.debug("Rough node insert CXC",et),et),":first-child"),P.select("path:nth-child(2)").attr("style",u.join(";")),P.select("path").attr("style",d.join(";").replace("fill","stroke"))}else P=p.insert("rect",":first-child"),P.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",k).attr("height",w);const{subGraphTitleTopMargin:O}=hy(r);if(g.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+O})`),c){const A=g.select("span");A&&A.attr("style",c)}const F=P.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=C.height-t.padding/2,t.intersect=function(A){return ua(t,A)},{cluster:p,labelBBox:C}},"rect"),y9=v((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,s=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(c){return ua(t,c)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),x9=v(async(e,t)=>{const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:s,compositeBackground:a,compositeTitleBackground:c,nodeBorder:h}=i,u=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),d=u.insert("g",":first-child"),p=u.insert("g").attr("class","cluster-label");let m=u.append("rect");const g=await Jn(p,t.label,t.labelStyle,void 0,!0);let x=g.getBBox();if(wr(r)){const et=g.children[0],I=Qt(g);x=et.getBoundingClientRect(),I.attr("width",x.width),I.attr("height",x.height)}const C=0*t.padding,k=C/2,w=(t.width<=x.width+t.padding?x.width+t.padding:t.width)+C;t.width<=x.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;const T=t.height+C,_=t.height+C-x.height-6,P=t.x-w/2,O=t.y-T/2;t.width=w;const F=t.y-t.height/2-k+x.height+2;let A;if(t.look==="handDrawn"){const et=t.cssClasses.includes("statediagram-cluster-alt"),I=Tt.svg(u),N=t.rx||t.ry?I.path(co(P,O,w,T,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:h,seed:n}):I.rectangle(P,O,w,T,{seed:n});A=u.insert(()=>N,":first-child");const J=I.rectangle(P,F,w,_,{fill:et?s:a,fillStyle:et?"hachure":"solid",stroke:h,seed:n});A=u.insert(()=>N,":first-child"),m=u.insert(()=>J)}else A=d.insert("rect",":first-child"),A.attr("class","outer").attr("x",P).attr("y",O).attr("width",w).attr("height",T).attr("data-look",t.look),m.attr("class","inner").attr("x",P).attr("y",F).attr("width",w).attr("height",_);p.attr("transform",`translate(${t.x-x.width/2}, ${O+1-(wr(r)?0:3)})`);const q=A.node().getBBox();return t.height=q.height,t.offsetX=0,t.offsetY=x.height-t.padding/2,t.labelBBox=x,t.intersect=function(et){return ua(t,et)},{cluster:u,labelBBox:x}},"roundedWithTitle"),C9=v(async(e,t)=>{at.info("Creating subgraph rect for ",t.id,t);const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:a}=i,{labelStyles:c,nodeStyles:h,borderStyles:u,backgroundStyles:d}=Lt(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),m=wr(r),g=p.insert("g").attr("class","cluster-label "),x=await wn(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width});let C=x.getBBox();if(wr(r)){const A=x.children[0],q=Qt(x);C=A.getBoundingClientRect(),q.attr("width",C.width),q.attr("height",C.height)}const k=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height,T=t.x-k/2,_=t.y-w/2;at.trace("Data ",t,JSON.stringify(t));let P;if(t.look==="handDrawn"){const A=Tt.svg(p),q=Bt(t,{roughness:.7,fill:s,stroke:a,fillWeight:4,seed:n}),et=A.path(co(T,_,k,w,t.rx),q);P=p.insert(()=>(at.debug("Rough node insert CXC",et),et),":first-child"),P.select("path:nth-child(2)").attr("style",u.join(";")),P.select("path").attr("style",d.join(";").replace("fill","stroke"))}else P=p.insert("rect",":first-child"),P.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",k).attr("height",w);const{subGraphTitleTopMargin:O}=hy(r);if(g.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+O})`),c){const A=g.select("span");A&&A.attr("style",c)}const F=P.node().getBBox();return t.offsetX=0,t.width=F.width,t.height=F.height,t.offsetY=C.height-t.padding/2,t.intersect=function(A){return ua(t,A)},{cluster:p,labelBBox:C}},"kanbanSection"),k9=v((e,t)=>{const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:s}=i,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),c=a.insert("g",":first-child"),h=0*t.padding,u=t.width+h;t.diff=-t.padding;const d=t.height+h,p=t.x-u/2,m=t.y-d/2;t.width=u;let g;if(t.look==="handDrawn"){const k=Tt.svg(a).rectangle(p,m,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:n});g=a.insert(()=>k,":first-child")}else{g=c.insert("rect",":first-child");let C="outer";t.look,C="divider",g.attr("class",C).attr("x",p).attr("y",m).attr("width",u).attr("height",d).attr("data-look",t.look)}const x=g.node().getBBox();return t.height=x.height,t.offsetX=0,t.offsetY=0,t.intersect=function(C){return ua(t,C)},{cluster:a,labelBBox:{}}},"divider"),b9=gT,v9={rect:gT,squareRect:b9,roundedWithTitle:x9,noteGroup:y9,divider:k9,kanbanSection:C9},mT=new Map,w9=v(async(e,t)=>{const r=t.shape||"rect",i=await v9[r](e,t);return mT.set(t.id,i),i},"insertCluster"),yV=v(()=>{mT=new Map},"clear");function yT(e,t){return e.intersect(t)}v(yT,"intersectNode");var S9=yT;function xT(e,t,r,i){var n=e.x,s=e.y,a=n-i.x,c=s-i.y,h=Math.sqrt(t*t*c*c+r*r*a*a),u=Math.abs(t*r*a/h);i.x<n&&(u=-u);var d=Math.abs(t*r*c/h);return i.y<s&&(d=-d),{x:n+u,y:s+d}}v(xT,"intersectEllipse");var CT=xT;function kT(e,t,r){return CT(e,t,t,r)}v(kT,"intersectCircle");var T9=kT;function bT(e,t,r,i){{const n=t.y-e.y,s=e.x-t.x,a=t.x*e.y-e.x*t.y,c=n*r.x+s*r.y+a,h=n*i.x+s*i.y+a,u=1e-6;if(c!==0&&h!==0&&Yg(c,h))return;const d=i.y-r.y,p=r.x-i.x,m=i.x*r.y-r.x*i.y,g=d*e.x+p*e.y+m,x=d*t.x+p*t.y+m;if(Math.abs(g)<u&&Math.abs(x)<u&&Yg(g,x))return;const C=n*p-d*s;if(C===0)return;const k=Math.abs(C/2);let w=s*m-p*a;const T=w<0?(w-k)/C:(w+k)/C;w=d*a-n*m;const _=w<0?(w-k)/C:(w+k)/C;return{x:T,y:_}}}v(bT,"intersectLine");function Yg(e,t){return e*t>0}v(Yg,"sameSign");var _9=bT;function vT(e,t,r){let i=e.x,n=e.y,s=[],a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){a=Math.min(a,d.x),c=Math.min(c,d.y)}):(a=Math.min(a,t.x),c=Math.min(c,t.y));let h=i-e.width/2-a,u=n-e.height/2-c;for(let d=0;d<t.length;d++){let p=t[d],m=t[d<t.length-1?d+1:0],g=_9(e,r,{x:h+p.x,y:u+p.y},{x:h+m.x,y:u+m.y});g&&s.push(g)}return s.length?(s.length>1&&s.sort(function(d,p){let m=d.x-r.x,g=d.y-r.y,x=Math.sqrt(m*m+g*g),C=p.x-r.x,k=p.y-r.y,w=Math.sqrt(C*C+k*k);return x<w?-1:x===w?0:1}),s[0]):e}v(vT,"intersectPolygon");var B9=vT,bt={node:S9,circle:T9,ellipse:CT,polygon:B9,rect:ua};function wT(e,t){const{labelStyles:r}=Lt(t);t.labelStyle=r;const i=jt(t);let n=i;i||(n="anchor");const s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),a=1,{cssStyles:c}=t,h=Tt.svg(s),u=Bt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);const d=h.circle(0,0,a*2,u),p=s.insert(()=>d,":first-child");return p.attr("class","anchor").attr("style",Xe(c)),Et(t,p),t.intersect=function(m){return at.info("Circle intersect",t,a,m),bt.circle(t,a,m)},s}v(wT,"anchor");function Gg(e,t,r,i,n,s,a){const h=(e+r)/2,u=(t+i)/2,d=Math.atan2(i-t,r-e),p=(r-e)/2,m=(i-t)/2,g=p/n,x=m/s,C=Math.sqrt(g**2+x**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const k=Math.sqrt(1-C**2),w=h+k*s*Math.sin(d)*(a?-1:1),T=u-k*n*Math.cos(d)*(a?-1:1),_=Math.atan2((t-T)/s,(e-w)/n);let O=Math.atan2((i-T)/s,(r-w)/n)-_;a&&O<0&&(O+=2*Math.PI),!a&&O>0&&(O-=2*Math.PI);const F=[];for(let A=0;A<20;A++){const q=A/19,et=_+q*O,I=w+n*Math.cos(et),N=T+s*Math.sin(et);F.push({x:I,y:N})}return F}v(Gg,"generateArcPoints");function ST(e,t,r){const[i,n]=[t,r].sort((s,a)=>a-s);return n*(1-Math.sqrt(1-(e/i/2)**2))}v(ST,"calculateArcSagitta");async function TT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n,c=v(et=>et+a,"calcTotalHeight"),h=v(et=>{const I=et/2;return[I/(2.5+et/50),I]},"calcEllipseRadius"),{shapeSvg:u,bbox:d}=await Wt(e,t,jt(t)),p=c(t!=null&&t.height?t==null?void 0:t.height:d.height),[m,g]=h(p),x=ST(p,m,g),k=(t!=null&&t.width?t==null?void 0:t.width:d.width)+s*2+x-x,w=p,{cssStyles:T}=t,_=[{x:k/2,y:-w/2},{x:-k/2,y:-w/2},...Gg(-k/2,-w/2,-k/2,w/2,m,g,!1),{x:k/2,y:w/2},...Gg(k/2,w/2,k/2,-w/2,m,g,!0)],P=Tt.svg(u),O=Bt(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");const F=ie(_),A=P.path(F,O),q=u.insert(()=>A,":first-child");return q.attr("class","basic label-container outer-path"),T&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",T),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.attr("transform",`translate(${m/2}, 0)`),Et(t,q),t.intersect=function(et){return bt.polygon(t,_,et)},u}v(TT,"bowTieRect");function Sn(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+")")}v(Sn,"insertPolygonShape");var Dh=12;async function _T(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?28:n,a=t.look==="neo"?24:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=((t==null?void 0:t.width)??h.width)+(t.look==="neo"?s*2:s+Dh),d=((t==null?void 0:t.height)??h.height)+(t.look==="neo"?a*2:a),p=0,m=u,g=-d,x=0,C=[{x:p+Dh,y:g},{x:m,y:g},{x:m,y:x},{x:p,y:x},{x:p,y:g+Dh},{x:p+Dh,y:g}];let k;const{cssStyles:w}=t;if(t.look==="handDrawn"){const T=Tt.svg(c),_=Bt(t,{}),P=ie(C),O=T.path(P,_);k=c.insert(()=>O,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),w&&k.attr("style",w)}else k=Sn(c,u,d,C);return i&&k.attr("style",i),Et(t,k),t.intersect=function(T){return bt.polygon(t,C,T)},c}v(_T,"card");function BT(e,t){const{nodeStyles:r}=Lt(t);t.label="";const i=e.insert("g").attr("class",jt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,s=Math.max(28,t.width??0),a=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],c=Tt.svg(i),h=Bt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const u=ie(a),d=c.path(u,h),p=i.insert(()=>d,":first-child");return n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(m){return bt.polygon(t,a,m)},i}v(BT,"choice");async function wy(e,t,r){const{labelStyles:i,nodeStyles:n}=Lt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a,halfPadding:c}=await Wt(e,t,jt(t)),h=16,u=(r==null?void 0:r.padding)??c,d=t.look==="neo"?a.width/2+h*2:a.width/2+u;let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const g=Tt.svg(s),x=Bt(t,{}),C=g.circle(0,0,d*2,x);p=s.insert(()=>C,":first-child"),p.attr("class","basic label-container").attr("style",Xe(m))}else p=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0);return Et(t,p),t.calcIntersect=function(g,x){const C=g.width/2;return bt.circle(g,C,x)},t.intersect=function(g){return at.info("Circle intersect",t,d,g),bt.circle(t,d,g)},s}v(wy,"circle");function LT(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},s={x:-(i/2)*t,y:i/2*r},a={x:-(i/2)*t,y:-(i/2)*r},c={x:i/2*t,y:-(i/2)*r};return`M ${s.x},${s.y} L ${c.x},${c.y}
|
|
296
|
+
M ${n.x},${n.y} L ${a.x},${a.y}`}v(LT,"createLine");function ET(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",jt(t)).attr("id",t.domId??t.id),s=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:a}=t,c=Tt.svg(n),h=Bt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const u=c.circle(0,0,s*2,h),d=LT(s),p=c.path(d,h),m=n.insert(()=>u,":first-child");return m.insert(()=>p),m.attr("class","outer-path"),a&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),Et(t,m),t.intersect=function(g){return at.info("crossedCircle intersect",t,{radius:s,point:g}),bt.circle(t,s,g)},n}v(ET,"crossedCircle");function fn(e,t,r,i=100,n=0,s=180){const a=[],c=n*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);a.push({x:-g,y:-x})}return a}v(fn,"generateCirclePoints");async function FT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:a}=await Wt(e,t,jt(t)),c=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,u=s.width+c,d=s.height+h,p=Math.max(5,d*.1),{cssStyles:m}=t,g=[...fn(u/2,-d/2,p,30,-90,0),{x:-u/2-p,y:p},...fn(u/2+p*2,-p,p,20,-180,-270),...fn(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:-d/2},...fn(u/2,d/2,p,20,0,90)],x=[{x:u/2,y:-d/2-p},{x:-u/2,y:-d/2-p},...fn(u/2,-d/2,p,20,-90,0),{x:-u/2-p,y:-p},...fn(u/2+u*.1,-p,p,20,-180,-270),...fn(u/2+u*.1,p,p,20,-90,-180),{x:-u/2-p,y:d/2},...fn(u/2,d/2,p,20,0,90),{x:-u/2,y:d/2+p},{x:u/2,y:d/2+p}],C=Tt.svg(n),k=Bt(t,{fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=ie(g).replace("Z",""),_=C.path(T,k),P=ie(x),O=C.path(P,{...k}),F=n.insert("g",":first-child");return F.insert(()=>O,":first-child").attr("stroke-opacity",0),F.insert(()=>_,":first-child"),F.attr("class","text"),m&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(${p}, 0)`),a.attr("transform",`translate(${-u/2+p-(s.x-(s.left??0))},${-d/2+(t.padding??0)/2-(s.y-(s.top??0))})`),Et(t,F),t.intersect=function(A){return bt.polygon(t,x,A)},n}v(FT,"curlyBraceLeft");function pn(e,t,r,i=100,n=0,s=180){const a=[],c=n*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);a.push({x:g,y:x})}return a}v(pn,"generateCirclePoints");async function AT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:a}=await Wt(e,t,jt(t)),c=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,u=s.width+(t.look==="neo"?c*2:c),d=s.height+(t.look==="neo"?h*2:h),p=Math.max(5,d*.1),{cssStyles:m}=t,g=[...pn(u/2,-d/2,p,20,-90,0),{x:u/2+p,y:-p},...pn(u/2+p*2,-p,p,20,-180,-270),...pn(u/2+p*2,p,p,20,-90,-180),{x:u/2+p,y:d/2},...pn(u/2,d/2,p,20,0,90)],x=[{x:-u/2,y:-d/2-p},{x:u/2,y:-d/2-p},...pn(u/2,-d/2,p,20,-90,0),{x:u/2+p,y:-p},...pn(u/2+p*2,-p,p,20,-180,-270),...pn(u/2+p*2,p,p,20,-90,-180),{x:u/2+p,y:d/2},...pn(u/2,d/2,p,20,0,90),{x:u/2,y:d/2+p},{x:-u/2,y:d/2+p}],C=Tt.svg(n),k=Bt(t,{fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=ie(g).replace("Z",""),_=C.path(T,k),P=ie(x),O=C.path(P,{...k}),F=n.insert("g",":first-child");return F.insert(()=>O,":first-child").attr("stroke-opacity",0),F.insert(()=>_,":first-child"),F.attr("class","text"),m&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(${-p}, 0)`),a.attr("transform",`translate(${-u/2+(t.padding??0)/2-(s.x-(s.left??0))},${-d/2+(t.padding??0)/2-(s.y-(s.top??0))})`),Et(t,F),t.intersect=function(A){return bt.polygon(t,x,A)},n}v(AT,"curlyBraceRight");function er(e,t,r,i=100,n=0,s=180){const a=[],c=n*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);a.push({x:-g,y:-x})}return a}v(er,"generateCirclePoints");async function MT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:a}=await Wt(e,t,jt(t)),c=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,u=s.width+(t.look==="neo"?c*2:c),d=s.height+(t.look==="neo"?h*2:h),p=Math.max(5,d*.1),{cssStyles:m}=t,g=[...er(u/2,-d/2,p,30,-90,0),{x:-u/2-p,y:p},...er(u/2+p*2,-p,p,20,-180,-270),...er(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:-d/2},...er(u/2,d/2,p,20,0,90)],x=[...er(-u/2+p+p/2,-d/2,p,20,-90,-180),{x:u/2-p/2,y:p},...er(-u/2-p/2,-p,p,20,0,90),...er(-u/2-p/2,p,p,20,-90,0),{x:u/2-p/2,y:-p},...er(-u/2+p+p/2,d/2,p,30,-180,-270)],C=[{x:u/2,y:-d/2-p},{x:-u/2,y:-d/2-p},...er(u/2,-d/2,p,20,-90,0),{x:-u/2-p,y:-p},...er(u/2+p*2,-p,p,20,-180,-270),...er(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:d/2},...er(u/2,d/2,p,20,0,90),{x:-u/2,y:d/2+p},{x:u/2-p-p/2,y:d/2+p},...er(-u/2+p+p/2,-d/2,p,20,-90,-180),{x:u/2-p/2,y:p},...er(-u/2-p/2,-p,p,20,0,90),...er(-u/2-p/2,p,p,20,-90,0),{x:u/2-p/2,y:-p},...er(-u/2+p+p/2,d/2,p,30,-180,-270)],k=Tt.svg(n),w=Bt(t,{fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=ie(g).replace("Z",""),P=k.path(_,w),F=ie(x).replace("Z",""),A=k.path(F,w),q=ie(C),et=k.path(q,{...w}),I=n.insert("g",":first-child");return I.insert(()=>et,":first-child").attr("stroke-opacity",0),I.insert(()=>P,":first-child"),I.insert(()=>A,":first-child"),I.attr("class","text"),m&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(${p-p/4}, 0)`),a.attr("transform",`translate(${-u/2+(t.padding??0)/2-(s.x-(s.left??0))},${-d/2+(t.padding??0)/2-(s.y-(s.top??0))})`),Et(t,I),t.intersect=function(N){return bt.polygon(t,C,N)},n}v(MT,"curlyBraces");async function IT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n,c=20,h=5,{shapeSvg:u,bbox:d}=await Wt(e,t,jt(t)),p=Math.max(c,(d.width+s*2)*1.25,(t==null?void 0:t.width)??0),m=Math.max(h,d.height+a*2,(t==null?void 0:t.height)??0),g=m/2,{cssStyles:x}=t,C=Tt.svg(u),k=Bt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=p,T=m,_=w-g,P=T/4,O=[{x:_,y:0},{x:P,y:0},{x:0,y:T/2},{x:P,y:T},{x:_,y:T},...Gl(-_,-T/2,g,50,270,90)],F=ie(O),A=C.path(F,k),q=u.insert(()=>A,":first-child");return q.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&q.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&q.selectChildren("path").attr("style",i),q.attr("transform",`translate(${-p/2}, ${-m/2})`),Et(t,q),t.intersect=function(et){return bt.polygon(t,O,et)},u}v(IT,"curvedTrapezoid");var L9=v((e,t,r,i,n,s)=>[`M${e},${t+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),E9=v((e,t,r,i,n,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),F9=v((e,t,r,i,n,s)=>[`M${e-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),bk=8,vk=8;async function PT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?24:n,a=t.look==="neo"?24:n;if(t.width||t.height){const k=t.width??0;t.width=(t.width??0)-a,t.width<vk&&(t.width=vk);const T=k/2/(2.5+k/50);t.height=(t.height??0)-s-T*3,t.height<bk&&(t.height=bk)}const{shapeSvg:c,bbox:h,label:u}=await Wt(e,t,jt(t)),d=(t.width?t.width:h.width)+a,p=d/2,m=p/(2.5+d/50),g=(t.height?t.height:h.height)+s+m;let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=Tt.svg(c),w=E9(0,0,d,g,p,m),T=F9(0,m,d,g,p,m),_=Bt(t,{}),P=k.path(w,_),O=k.path(T,Bt(t,{fill:"none"}));x=c.insert(()=>O,":first-child"),x=c.insert(()=>P,":first-child"),x.attr("class","basic label-container"),C&&x.attr("style",C)}else{const k=L9(0,0,d,g,p,m);x=c.insert("path",":first-child").attr("d",k).attr("class","basic label-container outer-path").attr("style",Xe(C)).attr("style",i)}return x.attr("label-offset-y",m),x.attr("transform",`translate(${-d/2}, ${-(g/2+m)})`),Et(t,x),u.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${-(h.height/2)+(t.padding??0)/1.5-(h.y-(h.top??0))})`),t.intersect=function(k){const w=bt.rect(t,k),T=w.x-(t.x??0);if(p!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(w.y-(t.y??0))>(t.height??0)/2-m)){let _=m*m*(1-T*T/(p*p));_>0&&(_=Math.sqrt(_)),_=m-_,k.y-(t.y??0)>0&&(_=-_),w.y+=_}return w},c}v(PT,"cylinder");async function OT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?16:t.padding??0,{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=c.width+n,d=c.height+s,p=d*.2,m=-u/2,g=-d/2-p/2,{cssStyles:x}=t,C=Tt.svg(a),k=Bt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=[{x:m,y:g+p},{x:-m,y:g+p},{x:-m,y:-g},{x:m,y:-g},{x:m,y:g},{x:-m,y:g},{x:-m,y:g+p}],T=C.polygon(w.map(P=>[P.x,P.y]),k),_=a.insert(()=>T,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),h.attr("transform",`translate(${m+(t.padding??0)/2-(c.x-(c.left??0))}, ${g+p+(t.padding??0)/2-(c.y-(c.top??0))})`),Et(t,_),t.intersect=function(P){return bt.rect(t,P)},a}v(OT,"dividedRectangle");async function DT(e,t){var g,x;const{labelStyles:r,nodeStyles:i}=Lt(t),n=t.look==="neo"?12:5;t.labelStyle=r;const s=t.padding??0,a=t.look==="neo"?16:s,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=(t!=null&&t.width?(t==null?void 0:t.width)/2:h.width/2)+(a??0),d=u-n;let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const C=Tt.svg(c),k=Bt(t,{roughness:.2,strokeWidth:2.5}),w=Bt(t,{roughness:.2,strokeWidth:1.5}),T=C.circle(0,0,u*2,k),_=C.circle(0,0,d*2,w);p=c.insert("g",":first-child"),p.attr("class",Xe(t.cssClasses)).attr("style",Xe(m)),(g=p.node())==null||g.appendChild(T),(x=p.node())==null||x.appendChild(_)}else{p=c.insert("g",":first-child");const C=p.insert("circle",":first-child"),k=p.insert("circle");p.attr("class","basic label-container").attr("style",i),C.attr("class","outer-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0),k.attr("class","inner-circle").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0)}return Et(t,p),t.intersect=function(C){return at.info("DoubleCircle intersect",t,u,C),bt.circle(t,u,C)},c}v(DT,"doublecircle");function RT(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Lt(t);t.label="",t.labelStyle=i;const s=e.insert("g").attr("class",jt(t)).attr("id",t.domId??t.id),a=7,{cssStyles:c}=t,h=Tt.svg(s),{nodeBorder:u}=r,d=Bt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);const p=h.circle(0,0,a*2,d),m=s.insert(()=>p,":first-child");return m.selectAll("path").attr("style",`fill: ${u} !important;`),c&&c.length>0&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",c),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),Et(t,m),t.intersect=function(g){return at.info("filledCircle intersect",t,{radius:a,point:g}),bt.circle(t,a,g)},s}v(RT,"filledCircle");var wk=10,Sk=10;async function $T(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<wk&&(t.height=wk),t.width=((t==null?void 0:t.width)??0)-s-s/2,t.width<Sk&&(t.width=Sk));const{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(s??0),d=t!=null&&t.height?t==null?void 0:t.height:u+c.height,p=d,m=[{x:0,y:-d},{x:p,y:-d},{x:p/2,y:0}],{cssStyles:g}=t,x=Tt.svg(a),C=Bt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=ie(m),w=x.path(k,C),T=a.insert(()=>w,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),t.width=u,t.height=d,Et(t,T),h.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-d/2+(t.padding??0)/2+(c.y-(c.top??0))})`),t.intersect=function(_){return at.info("Triangle intersect",t,m,_),bt.polygon(t,m,_)},a}v($T,"flippedTriangle");function zT(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:s}=Lt(t);t.label="";const a=e.insert("g").attr("class",jt(t)).attr("id",t.domId??t.id),{cssStyles:c}=t;let h=Math.max(70,(t==null?void 0:t.width)??0),u=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(h=Math.max(10,(t==null?void 0:t.width)??0),u=Math.max(70,(t==null?void 0:t.height)??0));const d=-1*h/2,p=-1*u/2,m=Tt.svg(a),g=Bt(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=m.rectangle(d,p,h,u,g),C=a.insert(()=>x,":first-child");c&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",c),s&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",s),Et(t,C);const k=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=k/2||0,t.height+=k/2||0),t.intersect=function(w){return bt.rect(t,w)},a}v(zT,"forkJoin");async function NT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=15,s=10,a=t.look==="neo"?16:t.padding??0,c=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-c*2,t.height<s&&(t.height=s),t.width=((t==null?void 0:t.width)??0)-a*2,t.width<n&&(t.width=n));const{shapeSvg:h,bbox:u}=await Wt(e,t,jt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,u.width))+a*2,p=(t!=null&&t.height?t==null?void 0:t.height:Math.max(s,u.height))+c*2,m=p/2,{cssStyles:g}=t,x=Tt.svg(h),C=Bt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-d/2,y:-p/2},{x:d/2-m,y:-p/2},...Gl(-d/2+m,0,m,50,90,270),{x:d/2-m,y:p/2},{x:-d/2,y:p/2}],w=ie(k),T=x.path(w,C),_=h.insert(()=>T,":first-child");return _.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),Et(t,_),t.intersect=function(P){return at.info("Pill intersect",t,{radius:m,point:P}),bt.polygon(t,k,P)},h}v(NT,"halfRoundedRectangle");var A9=v((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 jT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const s=t.padding??0,a=70,c=32,h=t.look==="neo"?a:s,u=t.look==="neo"?c:s;if(t.width||t.height){const _=(t.height??0)/n;t.width=((t==null?void 0:t.width)??0)-2*_-u,t.height=(t.height??0)-h}const{shapeSvg:d,bbox:p}=await Wt(e,t,jt(t)),m=(t!=null&&t.height?t==null?void 0:t.height:p.height)+h,g=m/n,x=(t!=null&&t.width?t==null?void 0:t.width:p.width)+2*g+u,C=[{x:g,y:0},{x:x-g,y:0},{x,y:-m/2},{x:x-g,y:-m},{x:g,y:-m},{x:0,y:-m/2}];let k;const{cssStyles:w}=t;if(t.look==="handDrawn"){const T=Tt.svg(d),_=Bt(t,{}),P=A9(0,0,x,m,g),O=T.path(P,_);k=d.insert(()=>O,":first-child").attr("transform",`translate(${-x/2}, ${m/2})`),w&&k.attr("style",w)}else k=Sn(d,x,m,C);return i&&k.attr("style",i),t.width=x,t.height=m,Et(t,k),t.intersect=function(T){return bt.polygon(t,C,T)},d}v(jT,"hexagon");async function WT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await Wt(e,t,jt(t)),s=Math.max(30,(t==null?void 0:t.width)??0),a=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:c}=t,h=Tt.svg(n),u=Bt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=[{x:0,y:0},{x:s,y:0},{x:0,y:a},{x:s,y:a}],p=ie(d),m=h.path(p,u),g=n.insert(()=>m,":first-child");return g.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",i),g.attr("transform",`translate(${-s/2}, ${-a/2})`),Et(t,g),t.intersect=function(x){return at.info("Pill intersect",t,{points:d}),bt.polygon(t,d,x)},n}v(WT,"hourglass");async function qT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Lt(t);t.labelStyle=n;const s=t.assetHeight??48,a=t.assetWidth??48,c=Math.max(s,a),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:d,label:p}=await Wt(e,t,"icon-shape default"),m=t.pos==="t",g=c,x=c,{nodeBorder:C}=r,{stylesMap:k}=ha(t),w=-x/2,T=-g/2,_=t.label?8:0,P=Tt.svg(u),O=Bt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");const F=P.rectangle(w,T,x,g,O),A=Math.max(x,d.width),q=g+d.height+_,et=P.rectangle(-A/2,-q/2,A,q,{...O,fill:"transparent",stroke:"none"}),I=u.insert(()=>F,":first-child"),N=u.insert(()=>et);if(t.icon){const J=u.append("g");J.html(`<g>${await cc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const nt=J.node().getBBox(),V=nt.width,j=nt.height,W=nt.x,G=nt.y;J.attr("transform",`translate(${-V/2-W},${m?d.height/2+_/2-j/2-G:-d.height/2-_/2-j/2-G})`),J.attr("style",`color: ${k.get("stroke")??C};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-q/2:q/2-d.height})`),I.attr("transform",`translate(0,${m?d.height/2+_/2:-d.height/2-_/2})`),Et(t,N),t.intersect=function(J){if(at.info("iconSquare intersect",t,J),!t.label)return bt.rect(t,J);const nt=t.x??0,V=t.y??0,j=t.height??0;let W=[];return m?W=[{x:nt-d.width/2,y:V-j/2},{x:nt+d.width/2,y:V-j/2},{x:nt+d.width/2,y:V-j/2+d.height+_},{x:nt+x/2,y:V-j/2+d.height+_},{x:nt+x/2,y:V+j/2},{x:nt-x/2,y:V+j/2},{x:nt-x/2,y:V-j/2+d.height+_},{x:nt-d.width/2,y:V-j/2+d.height+_}]:W=[{x:nt-x/2,y:V-j/2},{x:nt+x/2,y:V-j/2},{x:nt+x/2,y:V-j/2+g},{x:nt+d.width/2,y:V-j/2+g},{x:nt+d.width/2/2,y:V+j/2},{x:nt-d.width/2,y:V+j/2},{x:nt-d.width/2,y:V-j/2+g},{x:nt-x/2,y:V-j/2+g}],bt.polygon(t,W,J)},u}v(qT,"icon");async function HT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Lt(t);t.labelStyle=n;const s=t.assetHeight??48,a=t.assetWidth??48,c=Math.max(s,a),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:d,label:p}=await Wt(e,t,"icon-shape default"),m=20,g=t.label?8:0,x=t.pos==="t",{nodeBorder:C,mainBkg:k}=r,{stylesMap:w}=ha(t),T=Tt.svg(u),_=Bt(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const P=w.get("fill");_.stroke=P??k;const O=u.append("g");t.icon&&O.html(`<g>${await cc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const F=O.node().getBBox(),A=F.width,q=F.height,et=F.x,I=F.y,N=Math.max(A,q)*Math.SQRT2+m*2,J=T.circle(0,0,N,_),nt=Math.max(N,d.width),V=N+d.height+g,j=T.rectangle(-nt/2,-V/2,nt,V,{..._,fill:"transparent",stroke:"none"}),W=u.insert(()=>J,":first-child"),G=u.insert(()=>j);return O.attr("transform",`translate(${-A/2-et},${x?d.height/2+g/2-q/2-I:-d.height/2-g/2-q/2-I})`),O.attr("style",`color: ${w.get("stroke")??C};`),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${x?-V/2:V/2-d.height})`),W.attr("transform",`translate(0,${x?d.height/2+g/2:-d.height/2-g/2})`),Et(t,G),t.intersect=function(R){return at.info("iconSquare intersect",t,R),bt.rect(t,R)},u}v(HT,"iconCircle");async function UT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Lt(t);t.labelStyle=n;const s=t.assetHeight??48,a=t.assetWidth??48,c=Math.max(s,a),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:d,halfPadding:p,label:m}=await Wt(e,t,"icon-shape default"),g=t.pos==="t",x=c+p*2,C=c+p*2,{nodeBorder:k,mainBkg:w}=r,{stylesMap:T}=ha(t),_=-C/2,P=-x/2,O=t.label?8:0,F=Tt.svg(u),A=Bt(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const q=T.get("fill");A.stroke=q??w;const et=F.path(co(_,P,C,x,5),A),I=Math.max(C,d.width),N=x+d.height+O,J=F.rectangle(-I/2,-N/2,I,N,{...A,fill:"transparent",stroke:"none"}),nt=u.insert(()=>et,":first-child").attr("class","icon-shape2"),V=u.insert(()=>J);if(t.icon){const j=u.append("g");j.html(`<g>${await cc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const W=j.node().getBBox(),G=W.width,R=W.height,K=W.x,M=W.y;j.attr("transform",`translate(${-G/2-K},${g?d.height/2+O/2-R/2-M:-d.height/2-O/2-R/2-M})`),j.attr("style",`color: ${T.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-N/2:N/2-d.height})`),nt.attr("transform",`translate(0,${g?d.height/2+O/2:-d.height/2-O/2})`),Et(t,V),t.intersect=function(j){if(at.info("iconSquare intersect",t,j),!t.label)return bt.rect(t,j);const W=t.x??0,G=t.y??0,R=t.height??0;let K=[];return g?K=[{x:W-d.width/2,y:G-R/2},{x:W+d.width/2,y:G-R/2},{x:W+d.width/2,y:G-R/2+d.height+O},{x:W+C/2,y:G-R/2+d.height+O},{x:W+C/2,y:G+R/2},{x:W-C/2,y:G+R/2},{x:W-C/2,y:G-R/2+d.height+O},{x:W-d.width/2,y:G-R/2+d.height+O}]:K=[{x:W-C/2,y:G-R/2},{x:W+C/2,y:G-R/2},{x:W+C/2,y:G-R/2+x},{x:W+d.width/2,y:G-R/2+x},{x:W+d.width/2/2,y:G+R/2},{x:W-d.width/2,y:G+R/2},{x:W-d.width/2,y:G-R/2+x},{x:W-C/2,y:G-R/2+x}],bt.polygon(t,K,j)},u}v(UT,"iconRounded");async function VT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Lt(t);t.labelStyle=n;const s=t.assetHeight??48,a=t.assetWidth??48,c=Math.max(s,a),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:d,halfPadding:p,label:m}=await Wt(e,t,"icon-shape default"),g=t.pos==="t",x=c+p*2,C=c+p*2,{nodeBorder:k,mainBkg:w}=r,{stylesMap:T}=ha(t),_=-C/2,P=-x/2,O=t.label?8:0,F=Tt.svg(u),A=Bt(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const q=T.get("fill");A.stroke=q??w;const et=F.path(co(_,P,C,x,.1),A),I=Math.max(C,d.width),N=x+d.height+O,J=F.rectangle(-I/2,-N/2,I,N,{...A,fill:"transparent",stroke:"none"}),nt=u.insert(()=>et,":first-child"),V=u.insert(()=>J);if(t.icon){const j=u.append("g");j.html(`<g>${await cc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const W=j.node().getBBox(),G=W.width,R=W.height,K=W.x,M=W.y;j.attr("transform",`translate(${-G/2-K},${g?d.height/2+O/2-R/2-M:-d.height/2-O/2-R/2-M})`),j.attr("style",`color: ${T.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-N/2:N/2-d.height})`),nt.attr("transform",`translate(0,${g?d.height/2+O/2:-d.height/2-O/2})`),Et(t,V),t.intersect=function(j){if(at.info("iconSquare intersect",t,j),!t.label)return bt.rect(t,j);const W=t.x??0,G=t.y??0,R=t.height??0;let K=[];return g?K=[{x:W-d.width/2,y:G-R/2},{x:W+d.width/2,y:G-R/2},{x:W+d.width/2,y:G-R/2+d.height+O},{x:W+C/2,y:G-R/2+d.height+O},{x:W+C/2,y:G+R/2},{x:W-C/2,y:G+R/2},{x:W-C/2,y:G-R/2+d.height+O},{x:W-d.width/2,y:G-R/2+d.height+O}]:K=[{x:W-C/2,y:G-R/2},{x:W+C/2,y:G-R/2},{x:W+C/2,y:G-R/2+x},{x:W+d.width/2,y:G-R/2+x},{x:W+d.width/2/2,y:G+R/2},{x:W-d.width/2,y:G+R/2},{x:W-d.width/2,y:G-R/2+x},{x:W-C/2,y:G-R/2+x}],bt.polygon(t,K,j)},u}v(VT,"iconSquare");async function YT(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","")),s=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/s;const{labelStyles:a}=Lt(t);t.labelStyle=a;const c=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const h=Math.max(t.label?c??0:0,(t==null?void 0:t.assetWidth)??n),u=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:h,d=t.constraint==="on"?u/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??s;t.width=Math.max(u,c??0);const{shapeSvg:p,bbox:m,label:g}=await Wt(e,t,"image-shape default"),x=t.pos==="t",C=-u/2,k=-d/2,w=t.label?8:0,T=Tt.svg(p),_=Bt(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const P=T.rectangle(C,k,u,d,_),O=Math.max(u,m.width),F=d+m.height+w,A=T.rectangle(-O/2,-F/2,O,F,{..._,fill:"none",stroke:"none"}),q=p.insert(()=>P,":first-child"),et=p.insert(()=>A);if(t.img){const I=p.append("image");I.attr("href",t.img),I.attr("width",u),I.attr("height",d),I.attr("preserveAspectRatio","none"),I.attr("transform",`translate(${-u/2},${x?F/2-d:-F/2})`)}return g.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-d/2-m.height/2-w/2:d/2-m.height/2+w/2})`),q.attr("transform",`translate(0,${x?m.height/2+w/2:-m.height/2-w/2})`),Et(t,et),t.intersect=function(I){if(at.info("iconSquare intersect",t,I),!t.label)return bt.rect(t,I);const N=t.x??0,J=t.y??0,nt=t.height??0;let V=[];return x?V=[{x:N-m.width/2,y:J-nt/2},{x:N+m.width/2,y:J-nt/2},{x:N+m.width/2,y:J-nt/2+m.height+w},{x:N+u/2,y:J-nt/2+m.height+w},{x:N+u/2,y:J+nt/2},{x:N-u/2,y:J+nt/2},{x:N-u/2,y:J-nt/2+m.height+w},{x:N-m.width/2,y:J-nt/2+m.height+w}]:V=[{x:N-u/2,y:J-nt/2},{x:N+u/2,y:J-nt/2},{x:N+u/2,y:J-nt/2+d},{x:N+m.width/2,y:J-nt/2+d},{x:N+m.width/2/2,y:J+nt/2},{x:N-m.width/2,y:J+nt/2},{x:N-m.width/2,y:J-nt/2+d},{x:N-u/2,y:J-nt/2+d}],bt.polygon(t,V,I)},p}v(YT,"imageSquare");async function GT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=n,a=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=Math.max(h.width+(a??0)*2,(t==null?void 0:t.width)??0),d=Math.max(h.height+(s??0)*2,(t==null?void 0:t.height)??0),p=[{x:0,y:0},{x:u,y:0},{x:u+3*d/6,y:-d},{x:-3*d/6,y:-d}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Tt.svg(c),C=Bt(t,{}),k=ie(p),w=x.path(k,C);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-u/2}, ${d/2})`),g&&m.attr("style",g)}else m=Sn(c,u,d,p);return i&&m.attr("style",i),t.width=u,t.height=d,Et(t,m),t.intersect=function(x){return bt.polygon(t,p,x)},c}v(GT,"inv_trapezoid");async function uc(e,t,r){const{labelStyles:i,nodeStyles:n}=Lt(t);t.labelStyle=i;const{shapeSvg:s,bbox:a}=await Wt(e,t,jt(t)),c=Math.max(a.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),h=Math.max(a.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),u=-c/2,d=-h/2;let p,{rx:m,ry:g}=t;const{cssStyles:x}=t;if(r!=null&&r.rx&&r.ry&&(m=r.rx,g=r.ry),t.look==="handDrawn"){const C=Tt.svg(s),k=Bt(t,{}),w=m||g?C.path(co(u,d,c,h,m||0),k):C.rectangle(u,d,c,h,k);p=s.insert(()=>w,":first-child"),p.attr("class","basic label-container").attr("style",Xe(x))}else p=s.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",n).attr("rx",Xe(m)).attr("ry",Xe(g)).attr("x",u).attr("y",d).attr("width",c).attr("height",h);return Et(t,p),t.calcIntersect=function(C,k){return bt.rect(C,k)},t.intersect=function(C){return bt.rect(t,C)},s}v(uc,"drawRect");async function XT(e,t){const{shapeSvg:r,bbox:i,label:n}=await Wt(e,t,"label"),s=r.insert("rect",":first-child");return s.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))})`),Et(t,s),t.intersect=function(h){return bt.rect(t,h)},r}v(XT,"labelRect");async function QT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=n,a=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=((t==null?void 0:t.height)??h.height)+s,d=((t==null?void 0:t.width)??h.width)+a,p=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Tt.svg(c),C=Bt(t,{}),k=ie(p),w=x.path(k,C);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),g&&m.attr("style",g)}else m=Sn(c,d,u,p);return i&&m.attr("style",i),t.width=d,t.height=u,Et(t,m),t.intersect=function(x){return bt.polygon(t,p,x)},c}v(QT,"lean_left");async function KT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=n,a=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=((t==null?void 0:t.height)??h.height)+s,d=((t==null?void 0:t.width)??h.width)+a,p=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Tt.svg(c),C=Bt(t,{}),k=ie(p),w=x.path(k,C);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),g&&m.attr("style",g)}else m=Sn(c,d,u,p);return i&&m.attr("style",i),t.width=d,t.height=u,Et(t,m),t.intersect=function(x){return bt.polygon(t,p,x)},c}v(KT,"lean_right");function ZT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",jt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,a=Math.max(35,(t==null?void 0:t.width)??0),c=Math.max(35,(t==null?void 0:t.height)??0),h=7,u=[{x:a,y:0},{x:0,y:c+h/2},{x:a-2*h,y:c+h/2},{x:0,y:2*c},{x:a,y:c-h/2},{x:2*h,y:c-h/2}],d=Tt.svg(n),p=Bt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=ie(u),g=d.path(m,p),x=n.insert(()=>g,":first-child");return x.attr("class","outer-path"),s&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${a/2},${-c})`),Et(t,x),t.intersect=function(C){return at.info("lightningBolt intersect",t,C),bt.polygon(t,u,C)},n}v(ZT,"lightningBolt");var M9=v((e,t,r,i,n,s,a)=>[`M${e},${t+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+a}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),I9=v((e,t,r,i,n,s,a)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+a}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),P9=v((e,t,r,i,n,s)=>[`M${e-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Tk=10,_k=10;async function JT(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?24:n;if(t.width||t.height){const w=t.width??0;t.width=(t.width??0)-s,t.width<_k&&(t.width=_k);const _=w/2/(2.5+w/50);t.height=(t.height??0)-a-_*3,t.height<Tk&&(t.height=Tk)}const{shapeSvg:c,bbox:h,label:u}=await Wt(e,t,jt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+s*2,p=d/2,m=p/(2.5+d/50),g=(t!=null&&t.height?t==null?void 0:t.height:h.height)+m+a*2,x=g*.1;let C;const{cssStyles:k}=t;if(t.look==="handDrawn"){const w=Tt.svg(c),T=I9(0,0,d,g,p,m,x),_=P9(0,m,d,g,p,m),P=Bt(t,{}),O=w.path(T,P),F=w.path(_,P);c.insert(()=>F,":first-child").attr("class","line"),C=c.insert(()=>O,":first-child"),C.attr("class","basic label-container"),k&&C.attr("style",k)}else{const w=M9(0,0,d,g,p,m,x);C=c.insert("path",":first-child").attr("d",w).attr("class","basic label-container outer-path").attr("style",Xe(k)).attr("style",i)}return C.attr("label-offset-y",m),C.attr("transform",`translate(${-d/2}, ${-(g/2+m)})`),Et(t,C),u.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${-(h.height/2)+m-(h.y-(h.top??0))})`),t.intersect=function(w){const T=bt.rect(t,w),_=T.x-(t.x??0);if(p!=0&&(Math.abs(_)<(t.width??0)/2||Math.abs(_)==(t.width??0)/2&&Math.abs(T.y-(t.y??0))>(t.height??0)/2-m)){let P=m*m*(1-_*_/(p*p));P>0&&(P=Math.sqrt(P)),P=m-P,w.y-(t.y??0)>0&&(P=-P),T.y+=P}return T},c}v(JT,"linedCylinder");async function t_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n;if(t.width||t.height){const P=t.width;t.width=(P??0)*10/11-s*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-a*2,t.height<10&&(t.height=10)}const{shapeSvg:c,bbox:h,label:u}=await Wt(e,t,jt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(s??0)*2,p=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(a??0)*2,m=t.look==="neo"?p/4:p/8,g=p+m,{cssStyles:x}=t,C=Tt.svg(c),k=Bt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=[{x:-d/2-d/2*.1,y:-g/2},{x:-d/2-d/2*.1,y:g/2},...so(-d/2-d/2*.1,g/2,d/2+d/2*.1,g/2,m,.8),{x:d/2+d/2*.1,y:-g/2},{x:-d/2-d/2*.1,y:-g/2},{x:-d/2,y:-g/2},{x:-d/2,y:g/2*1.1},{x:-d/2,y:-g/2}],T=C.polygon(w.map(P=>[P.x,P.y]),k),_=c.insert(()=>T,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-m/2})`),u.attr("transform",`translate(${-d/2+(t.padding??0)+d/2*.1/2-(h.x-(h.left??0))},${-p/2+(t.padding??0)-m/2-(h.y-(h.top??0))})`),Et(t,_),t.intersect=function(P){return bt.polygon(t,w,P)},c}v(t_,"linedWaveEdgedRect");async function e_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n,c=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-2*c,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-2*c,10));const{shapeSvg:h,bbox:u,label:d}=await Wt(e,t,jt(t)),p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+s*2+2*c,m=(t!=null&&t.height?t==null?void 0:t.height:u.height)+a*2+2*c,g=p-2*c,x=m-2*c,C=-g/2,k=-x/2,{cssStyles:w}=t,T=Tt.svg(h),_=Bt(t,{}),P=[{x:C-c,y:k+c},{x:C-c,y:k+x+c},{x:C+g-c,y:k+x+c},{x:C+g-c,y:k+x},{x:C+g,y:k+x},{x:C+g,y:k+x-c},{x:C+g+c,y:k+x-c},{x:C+g+c,y:k-c},{x:C+c,y:k-c},{x:C+c,y:k},{x:C,y:k},{x:C,y:k+c}],O=[{x:C,y:k+c},{x:C+g-c,y:k+c},{x:C+g-c,y:k+x},{x:C+g,y:k+x},{x:C+g,y:k},{x:C,y:k}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const F=ie(P);let A=T.path(F,_);const q=ie(O);let et=T.path(q,_);t.look!=="handDrawn"&&(A=Vg(A),et=Vg(et));const I=h.insert("g",":first-child");return I.insert(()=>A),I.insert(()=>et),I.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",w),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),d.attr("transform",`translate(${-(u.width/2)-c-(u.x-(u.left??0))}, ${-(u.height/2)+c-(u.y-(u.top??0))})`),Et(t,I),t.intersect=function(N){return bt.polygon(t,P,N)},h}v(e_,"multiRect");async function r_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:a}=await Wt(e,t,jt(t)),c=t.padding??0,h=t.look==="neo"?16:c,u=t.look==="neo"?12:c;let d=!0;(t.width||t.height)&&(d=!1,t.width=((t==null?void 0:t.width)??0)-h*2,t.height=((t==null?void 0:t.height)??0)-u*3);const p=Math.max(s.width,(t==null?void 0:t.width)??0)+h*2,m=Math.max(s.height,(t==null?void 0:t.height)??0)+u*3,g=t.look==="neo"?m/4:m/8,x=m+(d?g/2:-g/2),C=-p/2,k=-x/2,w=10,{cssStyles:T}=t,_=so(C-w,k+x+w,C+p-w,k+x+w,g,.8),P=_==null?void 0:_[_.length-1],O=[{x:C-w,y:k+w},{x:C-w,y:k+x+w},..._,{x:C+p-w,y:P.y-w},{x:C+p,y:P.y-w},{x:C+p,y:P.y-2*w},{x:C+p+w,y:P.y-2*w},{x:C+p+w,y:k-w},{x:C+w,y:k-w},{x:C+w,y:k},{x:C,y:k},{x:C,y:k+w}],F=[{x:C,y:k+w},{x:C+p-w,y:k+w},{x:C+p-w,y:P.y-w},{x:C+p,y:P.y-w},{x:C+p,y:k},{x:C,y:k}],A=Tt.svg(n),q=Bt(t,{});t.look!=="handDrawn"&&(q.roughness=0,q.fillStyle="solid");const et=ie(O),I=A.path(et,q),N=ie(F),J=A.path(N,q),nt=n.insert(()=>I,":first-child");return nt.insert(()=>J),nt.attr("class","basic label-container outer-path"),T&&t.look!=="handDrawn"&&nt.selectAll("path").attr("style",T),i&&t.look!=="handDrawn"&&nt.selectAll("path").attr("style",i),nt.attr("transform",`translate(0,${-g/2})`),a.attr("transform",`translate(${-(s.width/2)-w-(s.x-(s.left??0))}, ${-(s.height/2)+w-g/2-(s.y-(s.top??0))})`),Et(t,nt),t.intersect=function(V){return bt.polygon(t,O,V)},n}v(r_,"multiWaveEdgedRectangle");async function i_(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Lt(t);t.labelStyle=i,t.useHtmlLabels||wr(_e())||(t.centerLabel=!0);const{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=Math.max(c.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),d=Math.max(c.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=-u/2,m=-d/2,{cssStyles:g}=t,x=Tt.svg(a),C=Bt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=x.rectangle(p,m,u,d,C),w=a.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),g&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",n),h.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),Et(t,w),t.intersect=function(T){return bt.rect(t,T)},a}v(i_,"note");var O9=v((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 n_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s}=await Wt(e,t,jt(t)),a=s.width+(t.padding??0),c=s.height+(t.padding??0),h=a+c,u=.5,d=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}];let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const g=Tt.svg(n),x=Bt(t,{}),C=O9(0,0,h),k=g.path(C,x);p=n.insert(()=>k,":first-child").attr("transform",`translate(${-h/2+u}, ${h/2})`),m&&p.attr("style",m)}else p=Sn(n,h,h,d),p.attr("transform",`translate(${-h/2+u}, ${h/2})`);return i&&p.attr("style",i),Et(t,p),t.calcIntersect=function(g,x){const C=g.width,k=[{x:C/2,y:0},{x:C,y:-C/2},{x:C/2,y:-C},{x:0,y:-C/2}],w=bt.polygon(g,k,x);return{x:w.x-.5,y:w.y-.5}},t.intersect=function(g){return this.calcIntersect(t,g)},n}v(n_,"question");async function o_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?21:n??0,a=t.look==="neo"?12:n??0,{shapeSvg:c,bbox:h,label:u}=await Wt(e,t,jt(t)),d=((t==null?void 0:t.width)??h.width)+(t.look==="neo"?s*2:s),p=((t==null?void 0:t.height)??h.height)+(t.look==="neo"?a*2:a),m=-d/2,g=-p/2,x=g/2,C=[{x:m+x,y:g},{x:m,y:0},{x:m+x,y:-g},{x:-m,y:-g},{x:-m,y:g}],{cssStyles:k}=t,w=Tt.svg(c),T=Bt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=ie(C),P=w.path(_,T),O=c.insert(()=>P,":first-child");return O.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",i),O.attr("transform",`translate(${-x/2},0)`),u.attr("transform",`translate(${-x/2-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),Et(t,O),t.intersect=function(F){return bt.polygon(t,C,F)},c}v(o_,"rect_left_inv_arrow");async function s_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),a=s.insert("g"),c=s.insert("g").attr("class","label").attr("style",i),h=t.description,u=t.label,d=await Jn(c,u,t.labelStyle,!0,!0);let p={width:0,height:0};if(wr(ce())){const q=d.children[0],et=Qt(d);p=q.getBoundingClientRect(),et.attr("width",p.width),et.attr("height",p.height)}at.info("Text 2",h);const m=h||[],g=d.getBBox(),x=await Jn(c,Array.isArray(m)?m.join("<br/>"):m,t.labelStyle,!0,!0),C=x.children[0],k=Qt(x);p=C.getBoundingClientRect(),k.attr("width",p.width),k.attr("height",p.height);const w=(t.padding||0)/2;Qt(x).attr("transform","translate( "+(p.width>g.width?0:(g.width-p.width)/2)+", "+(g.height+w+5)+")"),Qt(d).attr("transform","translate( "+(p.width<g.width?0:-(g.width-p.width)/2)+", 0)"),p=c.node().getBBox(),c.attr("transform","translate("+-p.width/2+", "+(-p.height/2-w+3)+")");const T=p.width+(t.padding||0),_=p.height+(t.padding||0),P=-p.width/2-w,O=-p.height/2-w;let F,A;if(t.look==="handDrawn"){const q=Tt.svg(s),et=Bt(t,{}),I=q.path(co(P,O,T,_,t.rx||0),et),N=q.line(-p.width/2-w,-p.height/2-w+g.height+w,p.width/2+w,-p.height/2-w+g.height+w,et);A=s.insert(()=>(at.debug("Rough node insert CXC",I),N),":first-child"),F=s.insert(()=>(at.debug("Rough node insert CXC",I),I),":first-child")}else F=a.insert("rect",":first-child"),A=a.insert("line"),F.attr("class","outer title-state").attr("style",i).attr("x",-p.width/2-w).attr("y",-p.height/2-w).attr("width",p.width+(t.padding||0)).attr("height",p.height+(t.padding||0)),A.attr("class","divider").attr("x1",-p.width/2-w).attr("x2",p.width/2+w).attr("y1",-p.height/2-w+g.height+w).attr("y2",-p.height/2-w+g.height+w);return Et(t,F),t.intersect=function(q){return bt.rect(t,q)},s}v(s_,"rectWithTitle");async function a_(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 uc(e,t,n)}v(a_,"roundedRect");var Bo=8;async function l_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0,{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=((t==null?void 0:t.width)??c.width)+n*2+(t.look==="neo"?Bo:Bo*2),d=((t==null?void 0:t.height)??c.height)+s*2,p=u-Bo,m=d,g=Bo-u/2,x=-d/2,{cssStyles:C}=t,k=Tt.svg(a),w=Bt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const T=[{x:g,y:x},{x:g+p,y:x},{x:g+p,y:x+m},{x:g-Bo,y:x+m},{x:g-Bo,y:x},{x:g,y:x},{x:g,y:x+m}],_=k.polygon(T.map(O=>[O.x,O.y]),w),P=a.insert(()=>_,":first-child");return P.attr("class","basic label-container outer-path").attr("style",Xe(C)),i&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),h.attr("transform",`translate(${Bo/2-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),Et(t,P),t.intersect=function(O){return bt.rect(t,O)},a}v(l_,"shadedProcess");async function c_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-a*2,10));const{shapeSvg:c,bbox:h,label:u}=await Wt(e,t,jt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+s*2,p=((t!=null&&t.height?t==null?void 0:t.height:h.height)+a*2)*1.5,m=d,g=p/1.5,x=-m/2,C=-g/2,{cssStyles:k}=t,w=Tt.svg(c),T=Bt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=[{x,y:C},{x,y:C+g},{x:x+m,y:C+g},{x:x+m,y:C-g/2}],P=ie(_),O=w.path(P,T),F=c.insert(()=>O,":first-child");return F.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&F.selectChildren("path").attr("style",k),i&&t.look!=="handDrawn"&&F.selectChildren("path").attr("style",i),F.attr("transform",`translate(0, ${g/4})`),u.attr("transform",`translate(${-m/2+(t.padding??0)-(h.x-(h.left??0))}, ${-g/4+(t.padding??0)-(h.y-(h.top??0))})`),Et(t,F),t.intersect=function(A){return bt.polygon(t,_,A)},c}v(c_,"slopedRect");async function h_(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,s={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return uc(e,t,s)}v(h_,"squareRect");async function u_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?20:n,a=t.look==="neo"?12:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=h.height+(t.look==="neo"?a*2:a),d=h.width+u/4+(t.look==="neo"?s*2:s),p=u/2,{cssStyles:m}=t,g=Tt.svg(c),x=Bt(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-d/2+p,y:-u/2},{x:d/2-p,y:-u/2},...Gl(-d/2+p,0,p,50,90,270),{x:d/2-p,y:u/2},...Gl(d/2-p,0,p,50,270,450)],k=ie(C),w=g.path(k,x),T=c.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),Et(t,T),t.intersect=function(_){return bt.polygon(t,C,_)},c}v(u_,"stadium");async function d_(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return uc(e,t,r)}v(d_,"state");function f_(e,t,{config:{themeVariables:r}}){var T,_;const{labelStyles:i,nodeStyles:n}=Lt(t);t.labelStyle=i;const{cssStyles:s}=t,{lineColor:a,stateBorder:c,nodeBorder:h,nodeShadow:u}=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 d=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),p=Tt.svg(d),m=Bt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=p.circle(0,0,t.width,{...m,stroke:a,strokeWidth:2}),x=c??h,C=(t.width??0)*5/14,k=p.circle(0,0,C,{...m,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),w=d.insert(()=>g,":first-child");if(w.insert(()=>k),t.look!=="handDrawn"&&w.attr("class","outer-path"),s&&w.selectAll("path").attr("style",s),n&&w.selectAll("path").attr("style",n),t.width<25&&u&&t.look!=="handDrawn"){const P=((_=(T=e.node())==null?void 0:T.ownerSVGElement)==null?void 0:_.id)??"",O=P?`${P}-drop-shadow-small`:"drop-shadow-small";w.attr("style",`filter:url(#${O})`)}return Et(t,w),t.intersect=function(P){return bt.circle(t,(t.width??0)/2,P)},d}v(f_,"stateEnd");function p_(e,t,{config:{themeVariables:r}}){var c,h;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 s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const d=Tt.svg(s).circle(0,0,t.width,HN(i));a=s.insert(()=>d),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else a=s.insert("circle",":first-child"),a.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 u=((h=(c=e.node())==null?void 0:c.ownerSVGElement)==null?void 0:h.id)??"",d=u?`${u}-drop-shadow-small`:"drop-shadow-small";a.attr("style",`filter:url(#${d})`)}return Et(t,a),t.intersect=function(u){return bt.circle(t,(t.width??7)/2,u)},s}v(p_,"stateStart");var _s=8;async function g_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,s=t.look==="neo"?28:n,a=t.look==="neo"?12:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=((t==null?void 0:t.width)??h.width)+2*_s+s,d=((t==null?void 0:t.height)??h.height)+a,p=u-2*_s,m=d,g=-u/2,x=-d/2,C=[{x:0,y:0},{x:p,y:0},{x:p,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-m},{x:-8,y:-m},{x:-8,y:0}];if(t.look==="handDrawn"){const k=Tt.svg(c),w=Bt(t,{}),T=k.rectangle(g,x,p+16,m,w),_=k.line(g+_s,x,g+_s,x+m,w),P=k.line(g+_s+p,x,g+_s+p,x+m,w);c.insert(()=>_,":first-child"),c.insert(()=>P,":first-child");const O=c.insert(()=>T,":first-child"),{cssStyles:F}=t;O.attr("class","basic label-container").attr("style",Xe(F)),Et(t,O)}else{const k=Sn(c,p,m,C);i&&k.attr("style",i),Et(t,k)}return t.intersect=function(k){return bt.polygon(t,C,k)},c}v(g_,"subroutine");var $p=.2;async function m_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-a*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-$p*(t.height+a*2),10));const{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=(t!=null&&t.height?t==null?void 0:t.height:h.height)+a*2,d=$p*u,p=$p*u,g=(t!=null&&t.width?t==null?void 0:t.width:h.width)+s*2+d-d,x=u,C=-g/2,k=-x/2,{cssStyles:w}=t,T=Tt.svg(c),_=Bt(t,{}),P=[{x:C-d/2,y:k},{x:C+g+d/2,y:k},{x:C+g+d/2,y:k+x},{x:C-d/2,y:k+x}],O=[{x:C+g-d/2,y:k+x},{x:C+g+d/2,y:k+x},{x:C+g+d/2,y:k+x-p}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const F=ie(P),A=T.path(F,_),q=ie(O),et=T.path(q,{..._,fillStyle:"solid"}),I=c.insert(()=>et,":first-child");return I.insert(()=>A,":first-child"),I.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",w),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),Et(t,I),t.intersect=function(N){return bt.polygon(t,P,N)},c}v(m_,"taggedRect");async function y_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:a}=await Wt(e,t,jt(t)),c=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=h/8,d=.2*c,p=.2*h,m=h+u,{cssStyles:g}=t,x=Tt.svg(n),C=Bt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-c/2-c/2*.1,y:m/2},...so(-c/2-c/2*.1,m/2,c/2+c/2*.1,m/2,u,.8),{x:c/2+c/2*.1,y:-m/2},{x:-c/2-c/2*.1,y:-m/2}],w=-c/2+c/2*.1,T=-m/2-p*.4,_=[{x:w+c-d,y:(T+h)*1.3},{x:w+c,y:T+h-p},{x:w+c,y:(T+h)*.9},...so(w+c,(T+h)*1.25,w+c-d,(T+h)*1.3,-h*.02,.5)],P=ie(k),O=x.path(P,C),F=ie(_),A=x.path(F,{...C,fillStyle:"solid"}),q=n.insert(()=>A,":first-child");return q.insert(()=>O,":first-child"),q.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.attr("transform",`translate(0,${-u/2})`),a.attr("transform",`translate(${-c/2+(t.padding??0)-(s.x-(s.left??0))},${-h/2+(t.padding??0)-u/2-(s.y-(s.top??0))})`),Et(t,q),t.intersect=function(et){return bt.polygon(t,k,et)},n}v(y_,"taggedWaveEdgedRectangle");async function x_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s}=await Wt(e,t,jt(t)),a=Math.max(s.width+(t.padding??0),(t==null?void 0:t.width)||0),c=Math.max(s.height+(t.padding??0),(t==null?void 0:t.height)||0),h=-a/2,u=-c/2,d=n.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",h).attr("y",u).attr("width",a).attr("height",c),Et(t,d),t.intersect=function(p){return bt.rect(t,p)},n}v(x_,"text");var D9=v((e,t,r,i,n,s)=>`M${e},${t}
|
|
297
|
+
a${n},${s} 0,0,1 0,${-i}
|
|
298
|
+
l${r},0
|
|
299
|
+
a${n},${s} 0,0,1 0,${i}
|
|
300
|
+
M${r},${-i}
|
|
301
|
+
a${n},${s} 0,0,0 0,${i}
|
|
302
|
+
l${-r},0`,"createCylinderPathD"),R9=v((e,t,r,i,n,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),$9=v((e,t,r,i,n,s)=>[`M${e+r/2},${-i/2}`,`a${n},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Bk=5,Lk=10;async function C_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?12:n/2;if(t.width||t.height){const C=t.height??0;t.height=(t.height??0)-s,t.height<Bk&&(t.height=Bk);const w=C/2/(2.5+C/50);t.width=(t.width??0)-s-w*3,t.width<Lk&&(t.width=Lk)}const{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=(t.height?t.height:c.height)+s,d=u/2,p=d/(2.5+u/50),m=(t.width?t.width:c.width)+p+s,{cssStyles:g}=t;let x;if(t.look==="handDrawn"){const C=Tt.svg(a),k=R9(0,0,m,u,p,d),w=$9(0,0,m,u,p,d),T=C.path(k,Bt(t,{})),_=C.path(w,Bt(t,{fill:"none"}));x=a.insert(()=>_,":first-child"),x=a.insert(()=>T,":first-child"),x.attr("class","basic label-container"),g&&x.attr("style",g)}else{const C=D9(0,0,m,u,p,d);x=a.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",Xe(g)).attr("style",i),x.attr("class","basic label-container outer-path"),g&&x.selectAll("path").attr("style",g),i&&x.selectAll("path").attr("style",i)}return x.attr("label-offset-x",p),x.attr("transform",`translate(${-m/2}, ${u/2} )`),h.attr("transform",`translate(${-(c.width/2)-p-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),Et(t,x),t.intersect=function(C){const k=bt.rect(t,C),w=k.y-(t.y??0);if(d!=0&&(Math.abs(w)<(t.height??0)/2||Math.abs(w)==(t.height??0)/2&&Math.abs(k.x-(t.x??0))>(t.width??0)/2-p)){let T=p*p*(1-w*w/(d*d));T!=0&&(T=Math.sqrt(Math.abs(T))),T=p-T,C.x-(t.x??0)>0&&(T=-T),k.x+=T}return k},a}v(C_,"tiltedCylinder");async function k_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=(t.look==="neo",n),a=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=((t==null?void 0:t.height)??h.height)+s,d=((t==null?void 0:t.width)??h.width)+a,p=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Tt.svg(c),C=Bt(t,{}),k=ie(p),w=x.path(k,C);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-d/2}, ${u/2})`),g&&m.attr("style",g)}else m=Sn(c,d,u,p);return i&&m.attr("style",i),t.width=d,t.height=u,Et(t,m),t.intersect=function(x){return bt.polygon(t,p,x)},c}v(k_,"trapezoid");async function b_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n,c=15,h=5;(t.width||t.height)&&(t.height=(t.height??0)-a*2,t.height<h&&(t.height=h),t.width=(t.width??0)-s*2,t.width<c&&(t.width=c));const{shapeSvg:u,bbox:d}=await Wt(e,t,jt(t)),p=(t!=null&&t.width?t==null?void 0:t.width:d.width)+s*2,m=(t!=null&&t.height?t==null?void 0:t.height:d.height)+a*2,{cssStyles:g}=t,x=Tt.svg(u),C=Bt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-p/2*.8,y:-m/2},{x:p/2*.8,y:-m/2},{x:p/2,y:-m/2*.6},{x:p/2,y:m/2},{x:-p/2,y:m/2},{x:-p/2,y:-m/2*.6}],w=ie(k),T=x.path(w,C),_=u.insert(()=>T,":first-child");return _.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),Et(t,_),t.intersect=function(P){return bt.polygon(t,k,P)},u}v(b_,"trapezoidalPentagon");var Ek=10,Fk=10;async function v_(e,t){var P;const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-s)/2,t.width<Fk&&(t.width=Fk),t.height=(t==null?void 0:t.height)??0,t.height<Ek&&(t.height=Ek));const{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=bn((P=ce().flowchart)==null?void 0:P.htmlLabels),d=(t!=null&&t.width?t==null?void 0:t.width:c.width)+s,p=t!=null&&t.height?t==null?void 0:t.height:d+c.height,m=p,g=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-p}],{cssStyles:x}=t,C=Tt.svg(a),k=Bt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=ie(g),T=C.path(w,k),_=a.insert(()=>T,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`).attr("class","outer-path");return x&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),t.width=d,t.height=p,Et(t,_),h.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${p/2-(c.height+(t.padding??0)/(u?2:1)-(c.y-(c.top??0)))})`),t.intersect=function(O){return at.info("Triangle intersect",t,g,O),bt.polygon(t,g,O)},a}v(v_,"triangle");async function w_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=t.look==="neo"?12:n;let c=!0;(t.width||t.height)&&(c=!1,t.width=((t==null?void 0:t.width)??0)-s*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-a*2,t.height<10&&(t.height=10));const{shapeSvg:h,bbox:u,label:d}=await Wt(e,t,jt(t)),p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+(s??0)*2,m=(t!=null&&t.height?t==null?void 0:t.height:u.height)+(a??0)*2,g=t.look==="neo"?m/4:m/8,x=m+(c?g:-g),{cssStyles:C}=t,w=14-p,T=w>0?w/2:0,_=Tt.svg(h),P=Bt(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const O=[{x:-p/2-T,y:x/2},...so(-p/2-T,x/2,p/2+T,x/2,g,.8),{x:p/2+T,y:-x/2},{x:-p/2-T,y:-x/2}],F=ie(O),A=_.path(F,P),q=h.insert(()=>A,":first-child");return q.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.attr("transform",`translate(0,${-g/2})`),d.attr("transform",`translate(${-p/2+(t.padding??0)-(u.x-(u.left??0))},${-m/2+(t.padding??0)-g-(u.y-(u.top??0))})`),Et(t,q),t.intersect=function(et){return bt.polygon(t,O,et)},h}v(w_,"waveEdgedRectangle");async function S_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,a=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 P=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-a-P*(20/9)),t.width=t.width-s*2}const{shapeSvg:c,bbox:h}=await Wt(e,t,jt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+s*2,d=(t!=null&&t.height?t==null?void 0:t.height:h.height)+a,p=d/8,m=d+p*2,{cssStyles:g}=t,x=Tt.svg(c),C=Bt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-u/2,y:m/2},...so(-u/2,m/2,u/2,m/2,p,1),{x:u/2,y:-m/2},...so(u/2,-m/2,-u/2,-m/2,p,-1)],w=ie(k),T=x.path(w,C),_=c.insert(()=>T,":first-child");return _.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),Et(t,_),t.intersect=function(P){return bt.polygon(t,k,P)},c}v(S_,"waveRectangle");var Ae=10;async function T_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-Ae,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-Ae,10));const{shapeSvg:a,bbox:c,label:h}=await Wt(e,t,jt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+n*2+Ae,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+s*2+Ae,p=u-Ae,m=d-Ae,g=-p/2,x=-m/2,{cssStyles:C}=t,k=Tt.svg(a),w=Bt(t,{}),T=[{x:g-Ae,y:x-Ae},{x:g-Ae,y:x+m},{x:g+p,y:x+m},{x:g+p,y:x-Ae}],_=`M${g-Ae},${x-Ae} L${g+p},${x-Ae} L${g+p},${x+m} L${g-Ae},${x+m} L${g-Ae},${x-Ae}
|
|
303
|
+
M${g-Ae},${x} L${g+p},${x}
|
|
304
|
+
M${g},${x-Ae} L${g},${x+m}`;t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const P=k.path(_,w),O=a.insert(()=>P,":first-child");return O.attr("transform",`translate(${Ae/2}, ${Ae/2})`),O.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)+Ae/2-(c.x-(c.left??0))}, ${-(c.height/2)+Ae/2-(c.y-(c.top??0))})`),Et(t,O),t.intersect=function(F){return bt.polygon(t,T,F)},a}v(T_,"windowPane");var Ak=new Set(["redux-color","redux-dark-color"]),z9=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Sy(e,t){var Ct,Dt,At,Yt;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=_e(),{rowEven:s,rowOdd:a,nodeBorder:c,borderColorArray:h}=n;if(t.look==="handDrawn"){const{themeVariables:yt}=_e(),{background:Ot}=yt,oe={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Ot}`]};await Sy(e,oe)}const u=_e();t.useHtmlLabels=u.htmlLabels;let d=((Ct=u.er)==null?void 0:Ct.diagramPadding)??10,p=((Dt=u.er)==null?void 0:Dt.entityPadding)??6;const{cssStyles:m}=t,{labelStyles:g,nodeStyles:x}=Lt(t);if(r.attributes.length===0&&t.label){const yt={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};Cn(t.label,u)+yt.labelPaddingX*2<u.er.minEntityWidth&&(t.width=u.er.minEntityWidth);const Ot=await uc(e,t,yt);if(i!=null&&Ak.has(i)){const oe=r.colorIndex??0;Ot.attr("data-color-id",`color-${oe%h.length}`)}if(!bn(u.htmlLabels)){const oe=Ot.select("text"),ae=(At=oe.node())==null?void 0:At.getBBox();oe.attr("transform",`translate(${-ae.width/2}, 0)`)}return Ot}u.htmlLabels||(d*=1.25,p*=1.25);let C=jt(t);C||(C="node default");const k=e.insert("g").attr("class",C).attr("id",t.domId||t.id),w=await Fs(k,t.label??"",u,0,0,["name"],g);w.height+=p;let T=0;const _=[],P=[];let O=0,F=0,A=0,q=0,et=!0,I=!0;for(const yt of r.attributes){const Ot=await Fs(k,yt.type,u,0,T,["attribute-type"],g);O=Math.max(O,Ot.width+d);const oe=await Fs(k,yt.name,u,0,T,["attribute-name"],g);F=Math.max(F,oe.width+d);const ae=await Fs(k,yt.keys.join(),u,0,T,["attribute-keys"],g);A=Math.max(A,ae.width+d);const He=await Fs(k,yt.comment,u,0,T,["attribute-comment"],g);q=Math.max(q,He.width+d);const Be=Math.max(Ot.height,oe.height,ae.height,He.height)+p;P.push({yOffset:T,rowHeight:Be}),T+=Be}let N=4;A<=d&&(et=!1,A=0,N--),q<=d&&(I=!1,q=0,N--);const J=k.node().getBBox();if(w.width+d*2-(O+F+A+q)>0){const yt=w.width+d*2-(O+F+A+q);O+=yt/N,F+=yt/N,A>0&&(A+=yt/N),q>0&&(q+=yt/N)}const nt=O+F+A+q,V=Tt.svg(k),j=Bt(t,{});t.look!=="handDrawn"&&(j.roughness=0,j.fillStyle="solid");let W=0;P.length>0&&(W=P.reduce((yt,Ot)=>yt+((Ot==null?void 0:Ot.rowHeight)??0),0));const G=Math.max(J.width+d*2,(t==null?void 0:t.width)||0,nt),R=Math.max((W??0)+w.height,(t==null?void 0:t.height)||0),K=-G/2,M=-R/2;if(k.selectAll("g:not(:first-child)").each((yt,Ot,oe)=>{const ae=Qt(oe[Ot]),He=ae.attr("transform");let Be=0,Kr=0;if(He){const pr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(He);pr&&(Be=parseFloat(pr[1]),Kr=parseFloat(pr[2]),ae.attr("class").includes("attribute-name")?Be+=O:ae.attr("class").includes("attribute-keys")?Be+=O+F:ae.attr("class").includes("attribute-comment")&&(Be+=O+F+A))}ae.attr("transform",`translate(${K+d/2+Be}, ${Kr+M+w.height+p/2})`)}),k.select(".name").attr("transform","translate("+-w.width/2+", "+(M+p/2)+")"),i!=null&&Ak.has(i)){const yt=r.colorIndex??0;k.attr("data-color-id",`color-${yt%h.length}`)}const z=V.rectangle(K,M,G,R,j),tt=k.insert(()=>z,":first-child").attr("class","outer-path").attr("style",m.join(""));_.push(0);for(const[yt,Ot]of P.entries()){const ae=(yt+1)%2===0&&Ot.yOffset!==0,He=V.rectangle(K,w.height+M+(Ot==null?void 0:Ot.yOffset),G,Ot==null?void 0:Ot.rowHeight,{...j,fill:ae?s:a,stroke:c});k.insert(()=>He,"g.label").attr("style",m.join("")).attr("class",`row-rect-${ae?"even":"odd"}`)}const D=1e-4;let mt=As(K,w.height+M,G+K,w.height+M,D),ft=V.polygon(mt.map(yt=>[yt.x,yt.y]),j);if(k.insert(()=>ft).attr("class","divider"),mt=As(O+K,w.height+M,O+K,R+M,D),ft=V.polygon(mt.map(yt=>[yt.x,yt.y]),j),k.insert(()=>ft).attr("class","divider"),et){const yt=O+F+K;mt=As(yt,w.height+M,yt,R+M,D),ft=V.polygon(mt.map(Ot=>[Ot.x,Ot.y]),j),k.insert(()=>ft).attr("class","divider")}if(I){const yt=O+F+A+K;mt=As(yt,w.height+M,yt,R+M,D),ft=V.polygon(mt.map(Ot=>[Ot.x,Ot.y]),j),k.insert(()=>ft).attr("class","divider")}for(const yt of _){const Ot=w.height+M+yt;mt=As(K,Ot,G+K,Ot,D),ft=V.polygon(mt.map(oe=>[oe.x,oe.y]),j),k.insert(()=>ft).attr("class","divider")}if(Et(t,tt),x&&t.look!=="handDrawn")if(i!=null&&z9.has(i))k.selectAll("path").attr("style",x);else{const yt=x.split(";"),Ot=(Yt=yt==null?void 0:yt.filter(oe=>oe.includes("stroke")))==null?void 0:Yt.map(oe=>`${oe}`).join("; ");k.selectAll("path").attr("style",Ot??""),k.selectAll(".row-rect-even path").attr("style",x)}return t.intersect=function(yt){return bt.rect(t,yt)},k}v(Sy,"erBox");async function Fs(e,t,r,i=0,n=0,s=[],a=""){const c=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",a);t!==uC(t)&&(t=uC(t),t=t.replaceAll("<","<").replaceAll(">",">"));const h=c.node().appendChild(await wn(c,t,{width:Cn(t,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=h.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let u=h.getBBox();if(bn(r.htmlLabels)){const d=h.children[0];d.style.textAlign="start";const p=Qt(h);u=d.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height)}return u}v(Fs,"addText");function As(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}]}v(As,"lineToPolygon");async function __(e,t,r,i,n=r.class.padding??12){const s=i?0:3,a=e.insert("g").attr("class",jt(t)).attr("id",t.domId||t.id);let c=null,h=null,u=null,d=null,p=0,m=0,g=0;if(c=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const T=t.annotations[0];await wl(c,{text:`«${T}»`},0),p=c.node().getBBox().height}h=a.insert("g").attr("class","label-group text"),await wl(h,t,0,["font-weight: bolder"]);const x=h.node().getBBox();m=x.height,u=a.insert("g").attr("class","members-group text");let C=0;for(const T of t.members){const _=await wl(u,T,C,[T.parseClassifier()]);C+=_+s}g=u.node().getBBox().height,g<=0&&(g=n/2),d=a.insert("g").attr("class","methods-group text");let k=0;for(const T of t.methods){const _=await wl(d,T,k,[T.parseClassifier()]);k+=_+s}let w=a.node().getBBox();if(c!==null){const T=c.node().getBBox();c.attr("transform",`translate(${-T.width/2})`)}return h.attr("transform",`translate(${-x.width/2}, ${p})`),w=a.node().getBBox(),u.attr("transform",`translate(0, ${p+m+n*2})`),w=a.node().getBBox(),d.attr("transform",`translate(0, ${p+m+(g?g+n*4:n*2)})`),w=a.node().getBBox(),{shapeSvg:a,bbox:w}}v(__,"textHelper");async function wl(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),s=_e();let a="useHtmlLabels"in t?t.useHtmlLabels:bn(s.htmlLabels)??!0,c="";"text"in t?c=t.text:c=t.label,!a&&c.startsWith("\\")&&(c=c.substring(1)),Rl(c)&&(a=!0);const h=await wn(n,Im(qo(c)),{width:Cn(c,s)+50,classes:"markdown-node-label",useHtmlLabels:a},s);let u,d=1;if(a){const p=h.children[0],m=Qt(h);d=p.innerHTML.split("<br>").length,p.innerHTML.includes("</math>")&&(d+=p.innerHTML.split("<mrow>").length-1);const g=p.getElementsByTagName("img");if(g){const x=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(C=>new Promise(k=>{function w(){var T;if(C.style.display="flex",C.style.flexDirection="column",x){const _=((T=s.fontSize)==null?void 0:T.toString())??window.getComputedStyle(document.body).fontSize,O=parseInt(_,10)*5+"px";C.style.minWidth=O,C.style.maxWidth=O}else C.style.width="100%";k(C)}v(w,"setupImage"),setTimeout(()=>{C.complete&&w()}),C.addEventListener("error",w),C.addEventListener("load",w)})))}u=p.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}else{i.includes("font-weight: bolder")&&Qt(h).selectAll("tspan").attr("font-weight",""),d=h.children.length;const p=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(p.textContent=c[0]+c.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),c[1]===" "&&(p.textContent=p.textContent[0]+" "+p.textContent.substring(1))),p.textContent==="undefined"&&(p.textContent=""),u=h.getBBox()}return n.attr("transform","translate(0,"+(-u.height/(2*d)+r)+")"),u.height}v(wl,"addText");async function B_(e,t){var V,j;const r=ce(),{themeVariables:i}=r,{useGradient:n}=i,s=r.class.padding??12,a=s,c=t.useHtmlLabels??bn(r.htmlLabels)??!0,h=t;h.annotations=h.annotations??[],h.members=h.members??[],h.methods=h.methods??[];const{shapeSvg:u,bbox:d}=await __(e,t,r,c,a),{labelStyles:p,nodeStyles:m}=Lt(t);t.labelStyle=p,t.cssStyles=h.styles||"";const g=((V=h.styles)==null?void 0:V.join(";"))||m||"";t.cssStyles||(t.cssStyles=g.replaceAll("!important","").split(";"));const x=h.members.length===0&&h.methods.length===0&&!((j=r.class)!=null&&j.hideEmptyMembersBox),C=Tt.svg(u),k=Bt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=Math.max(t.width??0,d.width);let T=Math.max(t.height??0,d.height);const _=(t.height??0)>d.height;h.members.length===0&&h.methods.length===0?T+=a:h.members.length>0&&h.methods.length===0&&(T+=a*2);const P=-w/2,O=-T/2;let F=x?s*2:h.members.length===0&&h.methods.length===0?-s:0;_&&(F=s*2);const A=C.rectangle(P-s,O-s-(x?s:h.members.length===0&&h.methods.length===0?-s/2:0),w+2*s,T+2*s+F,k),q=u.insert(()=>A,":first-child");q.attr("class","basic label-container outer-path");const et=q.node().getBBox(),I=u.select(".annotation-group").node().getBBox().height-(x?s/2:0)||0,N=u.select(".label-group").node().getBBox().height-(x?s/2:0)||0,J=u.select(".members-group").node().getBBox().height-(x?s/2:0)||0,nt=(I+N+O+s-(O-s-(x?s:h.members.length===0&&h.methods.length===0?-s/2:0)))/2;if(u.selectAll(".text").each((W,G,R)=>{var mt,ft;const K=Qt(R[G]),M=K.attr("transform");let z=0;if(M){const Dt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(M);Dt&&(z=parseFloat(Dt[2]))}let tt=z+O+s-(x?s:h.members.length===0&&h.methods.length===0?-s/2:0);if(K.attr("class").includes("methods-group")){const Ct=Math.max(J,a/2);_?tt=Math.max(nt,I+N+Ct+O+a*2+s)+a*2:tt=I+N+Ct+O+a*4+s}h.members.length===0&&h.methods.length===0&&((mt=r.class)!=null&&mt.hideEmptyMembersBox)&&(h.annotations.length>0?tt=z-a:tt=z),c||(tt-=4);let D=P;(K.attr("class").includes("label-group")||K.attr("class").includes("annotation-group"))&&(D=-((ft=K.node())==null?void 0:ft.getBBox().width)/2||0,u.selectAll("text").each(function(Ct,Dt,At){window.getComputedStyle(At[Dt]).textAnchor==="middle"&&(D=0)})),K.attr("transform",`translate(${D}, ${tt})`)}),h.members.length>0||h.methods.length>0||x){const W=I+N+O+s,G=C.line(et.x,W,et.x+et.width,W+.001,k);u.insert(()=>G).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",g)}if(x||h.members.length>0||h.methods.length>0){const W=I+N+J+O+a*2+s,G=C.line(et.x,_?Math.max(nt,W):W,et.x+et.width,(_?Math.max(nt,W):W)+.001,k);u.insert(()=>G).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",g)}if(h.look!=="handDrawn"&&u.selectAll("path").attr("style",g),q.select(":nth-child(2)").attr("style",g),u.selectAll(".divider").select("path").attr("style",g),t.labelStyle?u.selectAll("span").attr("style",t.labelStyle):u.selectAll("span").attr("style",g),!c){const W=RegExp(/color\s*:\s*([^;]*)/),G=W.exec(g);if(G){const R=G[0].replace("color","fill");u.selectAll("tspan").attr("style",R)}else if(p){const R=W.exec(p);if(R){const K=R[0].replace("color","fill");u.selectAll("tspan").attr("style",K)}}}return Et(t,q),t.intersect=function(W){return bt.rect(t,W)},u}v(B_,"classBox");async function L_(e,t){var et,I;const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const n=t,s=t,a=20,c=20,h="verifyMethod"in t,u=jt(t),{themeVariables:d}=ce(),{borderColorArray:p,requirementEdgeLabelBackground:m}=d,g=e.insert("g").attr("class",u).attr("id",t.domId??t.id);let x;h?x=await qi(g,`<<${n.type}>>`,0,t.labelStyle):x=await qi(g,"<<Element>>",0,t.labelStyle);let C=x;const k=await qi(g,n.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+c,h){const N=await qi(g,`${n.requirementId?`ID: ${n.requirementId}`:""}`,C,t.labelStyle);C+=N;const J=await qi(g,`${n.text?`Text: ${n.text}`:""}`,C,t.labelStyle);C+=J;const nt=await qi(g,`${n.risk?`Risk: ${n.risk}`:""}`,C,t.labelStyle);C+=nt,await qi(g,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,C,t.labelStyle)}else{const N=await qi(g,`${s.type?`Type: ${s.type}`:""}`,C,t.labelStyle);C+=N,await qi(g,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,C,t.labelStyle)}const w=(((et=g.node())==null?void 0:et.getBBox().width)??200)+a,T=(((I=g.node())==null?void 0:I.getBBox().height)??200)+a,_=-w/2,P=-T/2,O=Tt.svg(g),F=Bt(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const A=O.rectangle(_,P,w,T,F),q=g.insert(()=>A,":first-child");if(q.attr("class","basic label-container outer-path").attr("style",i),p!=null&&p.length){const N=t.colorIndex??0;g.attr("data-color-id",`color-${N%p.length}`)}if(g.selectAll(".label").each((N,J,nt)=>{const V=Qt(nt[J]),j=V.attr("transform");let W=0,G=0;if(j){const z=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(j);z&&(W=parseFloat(z[1]),G=parseFloat(z[2]))}const R=G-T/2;let K=_+a/2;(J===0||J===1)&&(K=W),V.attr("transform",`translate(${K}, ${R+a})`)}),C>x+k+c){const N=P+x+k+c;let J;if(t.look==="neo"){const j=[[_,N],[_+w,N],[_+w,N+.001],[_,N+.001]];J=O.polygon(j,F)}else J=O.line(_,N,_+w,N,F);g.insert(()=>J).attr("class","divider")}return Et(t,q),t.intersect=function(N){return bt.rect(t,N)},i&&t.look!=="handDrawn"&&(m||p!=null&&p.length)&&g.selectAll("path").attr("style",i),g}v(L_,"requirementBox");async function qi(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),s=ce(),a=s.htmlLabels??!0,c=await wn(n,Im(qo(t)),{width:Cn(t,s)+50,classes:"markdown-node-label",useHtmlLabels:a,style:i},s);let h;if(a){const u=c.children[0],d=Qt(c);h=u.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}else{const u=c.children[0];for(const d of u.children)i&&d.setAttribute("style",i);h=c.getBBox(),h.height+=6}return n.attr("transform",`translate(${-h.width/2},${-h.height/2+r})`),h.height}v(qi,"addText");var N9=v(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 E_(e,t,{config:r}){var J,nt;const{labelStyles:i,nodeStyles:n}=Lt(t);t.labelStyle=i||"";const s=10,a=t.width;t.width=(t.width??200)-10;const{shapeSvg:c,bbox:h,label:u}=await Wt(e,t,jt(t)),d=t.padding||10;let p="",m;"ticket"in t&&t.ticket&&((J=r==null?void 0:r.kanban)!=null&&J.ticketBaseUrl)&&(p=(nt=r==null?void 0:r.kanban)==null?void 0:nt.ticketBaseUrl.replace("#TICKET#",t.ticket),m=c.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const g={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let x,C;m?{label:x,bbox:C}=await Rp(m,"ticket"in t&&t.ticket||"",g):{label:x,bbox:C}=await Rp(c,"ticket"in t&&t.ticket||"",g);const{label:k,bbox:w}=await Rp(c,"assigned"in t&&t.assigned||"",g);t.width=a;const T=10,_=(t==null?void 0:t.width)||0,P=Math.max(C.height,w.height)/2,O=Math.max(h.height+T*2,(t==null?void 0:t.height)||0)+P,F=-_/2,A=-O/2;u.attr("transform","translate("+(d-_/2)+", "+(-P-h.height/2)+")"),x.attr("transform","translate("+(d-_/2)+", "+(-P+h.height/2)+")"),k.attr("transform","translate("+(d+_/2-w.width-2*s)+", "+(-P+h.height/2)+")");let q;const{rx:et,ry:I}=t,{cssStyles:N}=t;if(t.look==="handDrawn"){const V=Tt.svg(c),j=Bt(t,{}),W=et||I?V.path(co(F,A,_,O,et||0),j):V.rectangle(F,A,_,O,j);q=c.insert(()=>W,":first-child"),q.attr("class","basic label-container").attr("style",N||null)}else{q=c.insert("rect",":first-child"),q.attr("class","basic label-container __APA__").attr("style",n).attr("rx",et??5).attr("ry",I??5).attr("x",F).attr("y",A).attr("width",_).attr("height",O);const V="priority"in t&&t.priority;if(V){const j=c.append("line"),W=F+2,G=A+Math.floor((et??0)/2),R=A+O-Math.floor((et??0)/2);j.attr("x1",W).attr("y1",G).attr("x2",W).attr("y2",R).attr("stroke-width","4").attr("stroke",N9(V))}}return Et(t,q),t.height=O,t.intersect=function(V){return bt.rect(t,V)},c}v(E_,"kanbanItem");async function F_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:a,label:c}=await Wt(e,t,jt(t)),h=s.width+10*a,u=s.height+8*a,d=.15*h,{cssStyles:p}=t,m=s.width+20,g=s.height+20,x=Math.max(h,m),C=Math.max(u,g);c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let k;const w=`M0 0
|
|
305
|
+
a${d},${d} 1 0,0 ${x*.25},${-1*C*.1}
|
|
306
|
+
a${d},${d} 1 0,0 ${x*.25},0
|
|
307
|
+
a${d},${d} 1 0,0 ${x*.25},0
|
|
308
|
+
a${d},${d} 1 0,0 ${x*.25},${C*.1}
|
|
309
|
+
|
|
310
|
+
a${d},${d} 1 0,0 ${x*.15},${C*.33}
|
|
311
|
+
a${d*.8},${d*.8} 1 0,0 0,${C*.34}
|
|
312
|
+
a${d},${d} 1 0,0 ${-1*x*.15},${C*.33}
|
|
313
|
+
|
|
314
|
+
a${d},${d} 1 0,0 ${-1*x*.25},${C*.15}
|
|
315
|
+
a${d},${d} 1 0,0 ${-1*x*.25},0
|
|
316
|
+
a${d},${d} 1 0,0 ${-1*x*.25},0
|
|
317
|
+
a${d},${d} 1 0,0 ${-1*x*.25},${-1*C*.15}
|
|
318
|
+
|
|
319
|
+
a${d},${d} 1 0,0 ${-1*x*.1},${-1*C*.33}
|
|
320
|
+
a${d*.8},${d*.8} 1 0,0 0,${-1*C*.34}
|
|
321
|
+
a${d},${d} 1 0,0 ${x*.1},${-1*C*.33}
|
|
322
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const T=Tt.svg(n),_=Bt(t,{}),P=T.path(w,_);k=n.insert(()=>P,":first-child"),k.attr("class","basic label-container").attr("style",Xe(p))}else k=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",w);return k.attr("transform",`translate(${-x/2}, ${-C/2})`),Et(t,k),t.calcIntersect=function(T,_){return bt.rect(T,_)},t.intersect=function(T){return at.info("Bang intersect",t,T),bt.rect(t,T)},n}v(F_,"bang");async function A_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:a,label:c}=await Wt(e,t,jt(t)),h=s.width+2*a,u=s.height+2*a,d=.15*h,p=.25*h,m=.35*h,g=.2*h,{cssStyles:x}=t;let C;const k=`M0 0
|
|
323
|
+
a${d},${d} 0 0,1 ${h*.25},${-1*h*.1}
|
|
324
|
+
a${m},${m} 1 0,1 ${h*.4},${-1*h*.1}
|
|
325
|
+
a${p},${p} 1 0,1 ${h*.35},${h*.2}
|
|
326
|
+
|
|
327
|
+
a${d},${d} 1 0,1 ${h*.15},${u*.35}
|
|
328
|
+
a${g},${g} 1 0,1 ${-1*h*.15},${u*.65}
|
|
329
|
+
|
|
330
|
+
a${p},${d} 1 0,1 ${-1*h*.25},${h*.15}
|
|
331
|
+
a${m},${m} 1 0,1 ${-1*h*.5},0
|
|
332
|
+
a${d},${d} 1 0,1 ${-1*h*.25},${-1*h*.15}
|
|
333
|
+
|
|
334
|
+
a${d},${d} 1 0,1 ${-1*h*.1},${-1*u*.35}
|
|
335
|
+
a${g},${g} 1 0,1 ${h*.1},${-1*u*.65}
|
|
336
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const w=Tt.svg(n),T=Bt(t,{}),_=w.path(k,T);C=n.insert(()=>_,":first-child"),C.attr("class","basic label-container").attr("style",Xe(x))}else C=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",k);return c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),C.attr("transform",`translate(${-h/2}, ${-u/2})`),Et(t,C),t.calcIntersect=function(w,T){return bt.rect(w,T)},t.intersect=function(w){return at.info("Cloud intersect",t,w),bt.rect(t,w)},n}v(A_,"cloud");async function M_(e,t){const{labelStyles:r,nodeStyles:i}=Lt(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:a,label:c}=await Wt(e,t,jt(t)),h=s.width+8*a,u=s.height+2*a,d=5,p=t.look==="neo"?`
|
|
337
|
+
M${-h/2} ${u/2-d}
|
|
338
|
+
v${-u+2*d}
|
|
339
|
+
q0,-${d} ${d},-${d}
|
|
340
|
+
h${h-2*d}
|
|
341
|
+
q${d},0 ${d},${d}
|
|
342
|
+
v${u-d}
|
|
343
|
+
H${-h/2}
|
|
344
|
+
Z
|
|
345
|
+
`:`
|
|
346
|
+
M${-h/2} ${u/2-d}
|
|
347
|
+
v${-u+2*d}
|
|
348
|
+
q0,-${d} ${d},-${d}
|
|
349
|
+
h${h-2*d}
|
|
350
|
+
q${d},0 ${d},${d}
|
|
351
|
+
v${u-2*d}
|
|
352
|
+
q0,${d} ${-d},${d}
|
|
353
|
+
h${-(h-2*d)}
|
|
354
|
+
q${-d},0 ${-d},${-d}
|
|
355
|
+
Z
|
|
356
|
+
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const m=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",p);return n.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",u/2).attr("x2",h/2).attr("y2",u/2),c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),n.append(()=>c.node()),Et(t,m),t.calcIntersect=function(g,x){return bt.rect(g,x)},t.intersect=function(g){return bt.rect(t,g)},n}v(M_,"defaultMindmapNode");async function I_(e,t){const r={padding:t.padding??0};return wy(e,t,r)}v(I_,"mindmapCircle");var j9=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:h_},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:a_},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:u_},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:g_},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:PT},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:wy},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:F_},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:A_},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:n_},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:jT},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:KT},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:QT},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:k_},{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:GT},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:DT},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:x_},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:_T},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:l_},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:p_},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:f_},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:zT},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:WT},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:FT},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:AT},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:MT},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:ZT},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:w_},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:NT},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:C_},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:JT},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:IT},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:OT},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:v_},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:T_},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:RT},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:b_},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:$T},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:c_},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:r_},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:e_},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:TT},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ET},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:y_},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:m_},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:S_},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:o_},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:t_}],W9=v(()=>{const t=[...Object.entries({state:d_,choice:BT,note:i_,rectWithTitle:s_,labelRect:XT,iconSquare:VT,iconCircle:HT,icon:qT,iconRounded:UT,imageSquare:YT,anchor:wT,kanbanItem:E_,mindmapCircle:I_,defaultMindmapNode:M_,classBox:B_,erBox:Sy,requirementBox:L_}),...j9.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),P_=W9();function q9(e){return e in P_}v(q9,"isValidShape");var dd=new Map;async function O_(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const s=t.shape?P_[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;r.config.securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),n=await s(i,t,r)}else n=await s(e,t,r),i=n;return i.attr("data-look",Xe(t.look)),t.tooltip&&n.attr("title",t.tooltip),dd.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}v(O_,"insertNode");var xV=v((e,t)=>{dd.set(t.id,e)},"setNodeElem"),CV=v(()=>{dd.clear()},"clear"),kV=v(e=>{const t=dd.get(e.id);at.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"),H9=v((e,t,r,i,n,s=!1,a)=>{t.arrowTypeStart&&Mk(e,"start",t.arrowTypeStart,r,i,n,s,a),t.arrowTypeEnd&&Mk(e,"end",t.arrowTypeEnd,r,i,n,s,a)},"addEdgeMarkers"),U9={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}},V9=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Mk=v((e,t,r,i,n,s,a=!1,c)=>{var x;const h=U9[r],u=h&&V9.includes(h.type);if(!h){at.warn(`Unknown arrow type: ${r}`);return}const d=h.type,g=`${n}_${s}-${d}${t==="start"?"Start":"End"}${a&&u?"-margin":""}`;if(c&&c.trim()!==""){const C=c.replace(/[^\dA-Za-z]/g,"_"),k=`${g}_${C}`;if(!document.getElementById(k)){const w=document.getElementById(g);if(w){const T=w.cloneNode(!0);T.id=k,T.querySelectorAll("path, circle, line").forEach(P=>{P.setAttribute("stroke",c),h.fill&&P.setAttribute("fill",c)}),(x=w.parentNode)==null||x.appendChild(T)}}e.attr(`marker-${t}`,`url(${i}#${k})`)}else e.attr(`marker-${t}`,`url(${i}#${g})`)},"addEdgeMarker"),Y9=v(e=>{var t,r;return typeof e=="string"?e:(r=(t=ce())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),zu=new Map,rr=new Map,bV=v(()=>{zu.clear(),rr.clear()},"clear"),ml=v(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),G9=v(async(e,t)=>{const r=ce();let i=wr(r);const{labelStyles:n}=Lt(t);t.labelStyle=n;const s=e.insert("g").attr("class","edgeLabel"),a=s.insert("g").attr("class","label").attr("data-id",t.id),c=t.labelType==="markdown",u=await wn(e,t.label,{style:ml(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:c,width:c?void 0:void 0},r);a.node().appendChild(u),at.info("abc82",t,t.labelType);let d=u.getBBox(),p=d;if(i){const g=u.children[0],x=Qt(u);d=g.getBoundingClientRect(),p=d,x.attr("width",d.width),x.attr("height",d.height)}else{const g=Qt(u).select("text").node();g&&typeof g.getBBox=="function"&&(p=g.getBBox())}a.attr("transform",hl(p,i)),zu.set(t.id,s),t.width=d.width,t.height=d.height;let m;if(t.startLabelLeft){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Jn(x,t.startLabelLeft,ml(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(i){const w=C.children[0],T=Qt(C);k=w.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",hl(k,i)),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).startLeft=g,Sl(m,t.startLabelLeft)}if(t.startLabelRight){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Jn(x,t.startLabelRight,ml(t.labelStyle)||"",!1,!1);m=C,x.node().appendChild(C);let k=C.getBBox();if(i){const w=C.children[0],T=Qt(C);k=w.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",hl(k,i)),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).startRight=g,Sl(m,t.startLabelRight)}if(t.endLabelLeft){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Jn(x,t.endLabelLeft,ml(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(i){const w=C.children[0],T=Qt(C);k=w.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",hl(k,i)),g.node().appendChild(C),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).endLeft=g,Sl(m,t.endLabelLeft)}if(t.endLabelRight){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Jn(x,t.endLabelRight,ml(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(i){const w=C.children[0],T=Qt(C);k=w.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",hl(k,i)),g.node().appendChild(C),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).endRight=g,Sl(m,t.endLabelRight)}return u},"insertEdgeLabel");function Sl(e,t){wr(ce())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}v(Sl,"setTerminalWidth");var X9=v((e,t)=>{at.debug("Moving label abc88 ",e.id,e.label,zu.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=ce(),{subGraphTitleTotalMargin:n}=hy(i);if(e.label){const s=zu.get(e.id);let a=e.x,c=e.y;if(r){const h=Bi.calcLabelPosition(r);at.debug("Moving label "+e.label+" from (",a,",",c,") to (",h.x,",",h.y,") abc88"),t.updatedPath&&(a=h.x,c=h.y)}s.attr("transform",`translate(${a}, ${c+n/2})`)}if(e.startLabelLeft){const s=rr.get(e.id).startLeft;let a=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=h.x,c=h.y}s.attr("transform",`translate(${a}, ${c})`)}if(e.startLabelRight){const s=rr.get(e.id).startRight;let a=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=h.x,c=h.y}s.attr("transform",`translate(${a}, ${c})`)}if(e.endLabelLeft){const s=rr.get(e.id).endLeft;let a=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=h.x,c=h.y}s.attr("transform",`translate(${a}, ${c})`)}if(e.endLabelRight){const s=rr.get(e.id).endRight;let a=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=h.x,c=h.y}s.attr("transform",`translate(${a}, ${c})`)}},"positionEdgeLabel"),Q9=v((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),s=Math.abs(t.y-i),a=e.width/2,c=e.height/2;return n>=a||s>=c},"outsideNode"),K9=v((e,t,r)=>{at.debug(`intersection calc abc89:
|
|
357
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
358
|
+
insidePoint : ${JSON.stringify(r)}
|
|
359
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,s=Math.abs(i-r.x),a=e.width/2;let c=r.x<t.x?a-s:a+s;const h=e.height/2,u=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*a>Math.abs(i-t.x)*h){let p=r.y<t.y?t.y-h-n:n-h-t.y;c=d*p/u;const m={x:r.x<t.x?r.x+c:r.x-d+c,y:r.y<t.y?r.y+u-p:r.y-u+p};return c===0&&(m.x=t.x,m.y=t.y),d===0&&(m.x=t.x),u===0&&(m.y=t.y),at.debug(`abc89 top/bottom calc, Q ${u}, q ${p}, R ${d}, r ${c}`,m),m}else{r.x<t.x?c=t.x-a-i:c=i-a-t.x;let p=u*c/d,m=r.x<t.x?r.x+d-c:r.x-d+c,g=r.y<t.y?r.y+p:r.y-p;return at.debug(`sides calc abc89, Q ${u}, q ${p}, R ${d}, r ${c}`,{_x:m,_y:g}),c===0&&(m=t.x,g=t.y),d===0&&(m=t.x),u===0&&(g=t.y),{x:m,y:g}}},"intersection"),Ik=v((e,t)=>{at.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(s=>{if(at.info("abc88 checking point",s,t),!Q9(t,s)&&!n){const a=K9(t,i,s);at.debug("abc88 inside",s,i,a),at.debug("abc88 intersection",a,t);let c=!1;r.forEach(h=>{c=c||h.x===a.x&&h.y===a.y}),r.some(h=>h.x===a.x&&h.y===a.y)?at.warn("abc88 no intersect",a,r):r.push(a),n=!0}else at.warn("abc88 outside",s,i),i=s,n||r.push(s)}),at.debug("returning points",r),r},"cutPathAtIntersect");function D_(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],s=e[i],a=e[i+1];(n.x===s.x&&s.y===a.y&&Math.abs(s.x-a.x)>5&&Math.abs(s.y-n.y)>5||n.y===s.y&&s.x===a.x&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-a.y)>5)&&(t.push(s),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}v(D_,"extractCornerPoints");var Pk=v(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,s=Math.sqrt(i*i+n*n),a=r/s;return{x:t.x-a*i,y:t.y-a*n}},"findAdjacentPoint"),Z9=v(function(e){const{cornerPointPositions:t}=D_(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],s=e[i+1],a=e[i],c=Pk(n,a,5),h=Pk(s,a,5),u=h.x-c.x,d=h.y-c.y;r.push(c);const p=Math.sqrt(2)*2;let m={x:a.x,y:a.y};if(Math.abs(s.x-n.x)>10&&Math.abs(s.y-n.y)>=10){at.debug("Corner point fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));const g=5;a.x===c.x?m={x:u<0?c.x-g+p:c.x+g-p,y:d<0?c.y-p:c.y+p}:m={x:u<0?c.x-p:c.x+p,y:d<0?c.y-g+p:c.y+g-p}}else at.debug("Corner point skipping fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));r.push(m,h)}else r.push(e[i]);return r},"fixCorners"),J9=v((e,t,r)=>{const i=e-t-r,n=2,s=2,a=n+s,c=Math.floor(i/a),h=Array(c).fill(`${n} ${s}`).join(" ");return`0 ${t} ${h} ${r}`},"generateDashArray"),t7=v(function(e,t,r,i,n,s,a,c=!1){var G;if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:h}=ce();let u=t.points,d=!1;const p=n;var m=s;const g=[];for(const R in t.cssCompiledStyles)OS(R)||g.push(t.cssCompiledStyles[R]);at.debug("UIO intersect check",t.points,m.x,p.x),m.intersect&&p.intersect&&!c&&(u=u.slice(1,t.points.length-1),u.unshift(p.intersect(u[0])),at.debug("Last point UIO",t.start,"-->",t.end,u[u.length-1],m,m.intersect(u[u.length-1])),u.push(m.intersect(u[u.length-1])));const x=btoa(JSON.stringify(u));t.toCluster&&(at.info("to cluster abc88",r.get(t.toCluster)),u=Ik(t.points,r.get(t.toCluster).node),d=!0),t.fromCluster&&(at.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=Ik(u.reverse(),r.get(t.fromCluster).node).reverse(),d=!0);let C=u.filter(R=>!Number.isNaN(R.y));const k=Y9(t.curve);k!=="rounded"&&(C=Z9(C));let w=Ml;switch(k){case"linear":w=Ml;break;case"basis":w=Cg;break;case"cardinal":w=gv;break;case"bumpX":w=hv;break;case"bumpY":w=uv;break;case"catmullRom":w=yv;break;case"monotoneX":w=wv;break;case"monotoneY":w=Sv;break;case"natural":w=_v;break;case"step":w=Bv;break;case"stepAfter":w=Ev;break;case"stepBefore":w=Lv;break;case"rounded":w=Ml;break;default:w=Cg}const{x:T,y:_}=G$(t),P=AR().x(T).y(_).curve(w);let O;switch(t.thickness){case"normal":O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible";break;default:O="edge-thickness-normal"}switch(t.pattern){case"solid":O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed";break;default:O+=" edge-pattern-solid"}let F,A=k==="rounded"?R_($_(C,t),5):P(C);const q=Array.isArray(t.style)?t.style:[t.style];let et=q.find(R=>R==null?void 0:R.startsWith("stroke:")),I="";t.animate&&(I="edge-animation-fast"),t.animation&&(I="edge-animation-"+t.animation);let N=!1;if(t.look==="handDrawn"){const R=Tt.svg(e);Object.assign([],C);const K=R.path(A,{roughness:.3,seed:h});O+=" transition",F=Qt(K).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",q?q.reduce((z,tt)=>z+";"+tt,""):"");let M=F.attr("d");F.attr("d",M),e.node().appendChild(F.node())}else{const R=g.join(";"),K=q?q.reduce((ft,Ct)=>ft+Ct+";",""):"",M=(R?R+";"+K+";":K)+";"+(q?q.reduce((ft,Ct)=>ft+";"+Ct,""):"");F=e.append("path").attr("d",A).attr("id",`${a}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",M),et=(G=M.match(/stroke:([^;]+)/))==null?void 0:G[1],N=t.animate===!0||!!t.animation||R.includes("animation");const z=F.node(),tt=typeof z.getTotalLength=="function"?z.getTotalLength():0,D=$C[t.arrowTypeStart]||0,mt=$C[t.arrowTypeEnd]||0;if(t.look==="neo"&&!N){const Ct=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?J9(tt,D,mt):`0 ${D} ${tt-D-mt} ${mt}`}; stroke-dashoffset: 0;`;F.attr("style",Ct+F.attr("style"))}}F.attr("data-edge",!0),F.attr("data-et","edge"),F.attr("data-id",t.id),F.attr("data-points",x),F.attr("data-look",Xe(t.look)),t.showPoints&&C.forEach(R=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",R.x).attr("cy",R.y)});let J="";(ce().flowchart.arrowMarkerAbsolute||ce().state.arrowMarkerAbsolute)&&(J=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,J=J.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),at.info("arrowTypeStart",t.arrowTypeStart),at.info("arrowTypeEnd",t.arrowTypeEnd);const nt=!N&&(t==null?void 0:t.look)==="neo";H9(F,t,J,a,i,nt,et);const V=Math.floor(u.length/2),j=u[V];Bi.isLabelCoordinateInPath(j,F.attr("d"))||(d=!0);let W={};return d&&(W.updatedPath=u),W.originalPath=t.points,W},"insertEdge");function R_(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let s=0;s<i;s++){const a=e[s],c=e[s-1],h=e[s+1];if(s===0)r+=`M${a.x},${a.y}`;else if(s===i-1)r+=`L${a.x},${a.y}`;else{const u=a.x-c.x,d=a.y-c.y,p=h.x-a.x,m=h.y-a.y,g=Math.hypot(u,d),x=Math.hypot(p,m);if(g<n||x<n){r+=`L${a.x},${a.y}`;continue}const C=u/g,k=d/g,w=p/x,T=m/x,_=C*w+k*T,P=Math.max(-1,Math.min(1,_)),O=Math.acos(P);if(O<n||Math.abs(Math.PI-O)<n){r+=`L${a.x},${a.y}`;continue}const F=Math.min(t/Math.sin(O/2),g/2,x/2),A=a.x-C*F,q=a.y-k*F,et=a.x+w*F,I=a.y+T*F;r+=`L${A},${q}`,r+=`Q${a.x},${a.y} ${et},${I}`}}return r}v(R_,"generateRoundedPath");function Xg(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}}v(Xg,"calculateDeltaAndAngle");function $_(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&cr[t.arrowTypeStart]){const n=cr[t.arrowTypeStart],s=e[0],a=e[1],{angle:c}=Xg(s,a),h=n*Math.cos(c),u=n*Math.sin(c);r[0].x=s.x+h,r[0].y=s.y+u}const i=e.length;if(i>=2&&cr[t.arrowTypeEnd]){const n=cr[t.arrowTypeEnd],s=e[i-1],a=e[i-2],{angle:c}=Xg(a,s),h=n*Math.cos(c),u=n*Math.sin(c);r[i-1].x=s.x-h,r[i-1].y=s.y-u}return r}v($_,"applyMarkerOffsetsToPoints");var e7=v((e,t,r,i)=>{t.forEach(n=>{S7[n](e,r,i)})},"insertMarkers"),r7=v((e,t,r)=>{at.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"),i7=v((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"),n7=v((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"),o7=v((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"),s7=v((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"),a7=v((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"),l7=v((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"),c7=v((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"),h7=v((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"),u7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{transitionColor:s}=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",`${s}`)},"barbNeo"),d7=v((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"),f7=v((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"),p7=v((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"),g7=v((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"),m7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:s}=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",`${s}`),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",`${s}`)},"only_one_neo"),y7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:a}=n,c=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");c.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),c.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);const h=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");h.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),h.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),x7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:s}=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",`${s}`),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",`${s}`)},"one_or_more_neo"),C7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:a}=n,c=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");c.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),c.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);const h=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");h.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),h.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),k7=v((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
|
|
360
|
+
L20,10
|
|
361
|
+
M20,10
|
|
362
|
+
L0,20`)},"requirement_arrow"),b7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:s}=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",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
363
|
+
L20,10
|
|
364
|
+
M20,10
|
|
365
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),v7=v((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"),w7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:s}=n,a=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");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),S7={extension:r7,composition:i7,aggregation:n7,dependency:o7,lollipop:s7,point:a7,circle:l7,cross:c7,barb:h7,barbNeo:u7,only_one:d7,zero_or_one:f7,one_or_more:p7,zero_or_more:g7,only_one_neo:m7,zero_or_one_neo:y7,one_or_more_neo:x7,zero_or_more_neo:C7,requirement_arrow:k7,requirement_contains:v7,requirement_arrow_neo:b7,requirement_contains_neo:w7},T7=e7,_7={common:rc,getConfig:_e,insertCluster:w9,insertEdge:t7,insertEdgeLabel:G9,insertMarkers:T7,insertNode:O_,interpolateToCurve:ny,labelHelper:Wt,log:at,positionEdgeLabel:X9},Xl={},z_=v(e=>{for(const t of e)Xl[t.name]=t},"registerLayoutLoaders"),B7=v(()=>{z_([{name:"dagre",loader:v(async()=>await re(()=>import("./dagre-KV5264BT-CsiBELor.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:v(async()=>await re(()=>import("./cose-bilkent-S5V4N54A-C9WrFkX6.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");B7();var vV=v(async(e,t)=>{if(!(e.layoutAlgorithm in Xl))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const d of e.nodes){const p=d.domId||d.id;d.domId=`${e.diagramId}-${p}`}const r=Xl[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:s}=e.config,{useGradient:a,gradientStart:c,gradientStop:h}=s,u=t.attr("id");if(t.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${u}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),a){const d=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(e,t,_7,{algorithm:r.algorithm})},"render"),wV=v((e="",{fallback:t="dagre"}={})=>{if(e in Xl)return e;if(t in Xl)return at.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"),N_="comm",j_="rule",W_="decl",L7="@import",E7="@namespace",F7="@keyframes",A7="@layer",q_=Math.abs,Ty=String.fromCharCode;function H_(e){return e.trim()}function Jh(e,t,r){return e.replace(t,r)}function M7(e,t,r){return e.indexOf(t,r)}function Ds(e,t){return e.charCodeAt(t)|0}function na(e,t,r){return e.slice(t,r)}function Ui(e){return e.length}function I7(e){return e.length}function Rh(e,t){return t.push(e),e}var fd=1,oa=1,U_=0,hi=0,$e=0,da="";function _y(e,t,r,i,n,s,a,c){return{value:e,root:t,parent:r,type:i,props:n,children:s,line:fd,column:oa,length:a,return:"",siblings:c}}function P7(){return $e}function O7(){return $e=hi>0?Ds(da,--hi):0,oa--,$e===10&&(oa=1,fd--),$e}function Fi(){return $e=hi<U_?Ds(da,hi++):0,oa++,$e===10&&(oa=1,fd++),$e}function to(){return Ds(da,hi)}function tu(){return hi}function pd(e,t){return na(da,e,t)}function Ql(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 D7(e){return fd=oa=1,U_=Ui(da=e),hi=0,[]}function R7(e){return da="",e}function zp(e){return H_(pd(hi-1,Qg(e===91?e+2:e===40?e+1:e)))}function $7(e){for(;($e=to())&&$e<33;)Fi();return Ql(e)>2||Ql($e)>3?"":" "}function z7(e,t){for(;--t&&Fi()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return pd(e,tu()+(t<6&&to()==32&&Fi()==32))}function Qg(e){for(;Fi();)switch($e){case e:return hi;case 34:case 39:e!==34&&e!==39&&Qg($e);break;case 40:e===41&&Qg(e);break;case 92:Fi();break}return hi}function N7(e,t){for(;Fi()&&e+$e!==57;)if(e+$e===84&&to()===47)break;return"/*"+pd(t,hi-1)+"*"+Ty(e===47?e:Fi())}function j7(e){for(;!Ql(to());)Fi();return pd(e,hi)}function W7(e){return R7(eu("",null,null,null,[""],e=D7(e),0,[0],e))}function eu(e,t,r,i,n,s,a,c,h){for(var u=0,d=0,p=a,m=0,g=0,x=0,C=1,k=1,w=1,T=0,_="",P=n,O=s,F=i,A=_;k;)switch(x=T,T=Fi()){case 40:if(x!=108&&Ds(A,p-1)==58){M7(A+=Jh(zp(T),"&","&\f"),"&\f",q_(u?c[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:A+=zp(T);break;case 9:case 10:case 13:case 32:A+=$7(x);break;case 92:A+=z7(tu()-1,7);continue;case 47:switch(to()){case 42:case 47:Rh(q7(N7(Fi(),tu()),t,r,h),h),(Ql(x||1)==5||Ql(to()||1)==5)&&Ui(A)&&na(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*C:c[u++]=Ui(A)*w;case 125*C:case 59:case 0:switch(T){case 0:case 125:k=0;case 59+d:w==-1&&(A=Jh(A,/\f/g,"")),g>0&&(Ui(A)-p||C===0&&x===47)&&Rh(g>32?Dk(A+";",i,r,p-1,h):Dk(Jh(A," ","")+";",i,r,p-2,h),h);break;case 59:A+=";";default:if(Rh(F=Ok(A,t,r,u,d,n,c,_,P=[],O=[],p,s),s),T===123)if(d===0)eu(A,t,F,F,P,s,p,c,O);else{switch(m){case 99:if(Ds(A,3)===110)break;case 108:if(Ds(A,2)===97)break;default:d=0;case 100:case 109:case 115:}d?eu(e,F,F,i&&Rh(Ok(e,F,F,0,0,n,c,_,n,P=[],p,O),O),n,O,p,c,i?P:O):eu(A,F,F,F,[""],O,0,c,O)}}u=d=g=0,C=w=1,_=A="",p=a;break;case 58:p=1+Ui(A),g=x;default:if(C<1){if(T==123)--C;else if(T==125&&C++==0&&O7()==125)continue}switch(A+=Ty(T),T*C){case 38:w=d>0?1:(A+="\f",-1);break;case 44:c[u++]=(Ui(A)-1)*w,w=1;break;case 64:to()===45&&(A+=zp(Fi())),m=to(),d=p=Ui(_=A+=j7(tu())),T++;break;case 45:x===45&&Ui(A)==2&&(C=0)}}return s}function Ok(e,t,r,i,n,s,a,c,h,u,d,p){for(var m=n-1,g=n===0?s:[""],x=I7(g),C=0,k=0,w=0;C<i;++C)for(var T=0,_=na(e,m+1,m=q_(k=a[C])),P=e;T<x;++T)(P=H_(k>0?g[T]+" "+_:Jh(_,/&\f/g,g[T])))&&(h[w++]=P);return _y(e,t,r,n===0?j_:c,h,u,d,p)}function q7(e,t,r,i){return _y(e,t,r,N_,Ty(P7()),na(e,2,-2),0,i)}function Dk(e,t,r,i,n){return _y(e,t,r,W_,na(e,0,i),na(e,i+1,-1),i,n)}function Kg(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function H7(e,t,r,i){switch(e.type){case A7:if(e.children.length)break;case L7:case E7:case W_:return e.return=e.return||e.value;case N_:return"";case F7:return e.return=e.value+"{"+Kg(e.children,i)+"}";case j_:if(!Ui(e.value=e.props.join(",")))return""}return Ui(r=Kg(e.children,i))?e.return=e.value+"{"+r+"}":""}var U7=pS(Object.keys,Object),V7=Object.prototype,Y7=V7.hasOwnProperty;function G7(e){if(!nd(e))return U7(e);var t=[];for(var r in Object(e))Y7.call(e,r)&&r!="constructor"&&t.push(r);return t}var Zg=Xo(Ji,"DataView"),Jg=Xo(Ji,"Promise"),tm=Xo(Ji,"Set"),em=Xo(Ji,"WeakMap"),Rk="[object Map]",X7="[object Object]",$k="[object Promise]",zk="[object Set]",Nk="[object WeakMap]",jk="[object DataView]",Q7=Go(Zg),K7=Go(Yl),Z7=Go(Jg),J7=Go(tm),tW=Go(em),Fo=la;(Zg&&Fo(new Zg(new ArrayBuffer(1)))!=jk||Yl&&Fo(new Yl)!=Rk||Jg&&Fo(Jg.resolve())!=$k||tm&&Fo(new tm)!=zk||em&&Fo(new em)!=Nk)&&(Fo=function(e){var t=la(e),r=t==X7?e.constructor:void 0,i=r?Go(r):"";if(i)switch(i){case Q7:return jk;case K7:return Rk;case Z7:return $k;case J7:return zk;case tW:return Nk}return t});var eW="[object Map]",rW="[object Set]",iW=Object.prototype,nW=iW.hasOwnProperty;function Wk(e){if(e==null)return!0;if(od(e)&&(Eu(e)||typeof e=="string"||typeof e.splice=="function"||ry(e)||iy(e)||Lu(e)))return!e.length;var t=Fo(e);if(t==eW||t==rW)return!e.size;if(nd(e))return!G7(e).length;for(var r in e)if(nW.call(e,r))return!1;return!0}var V_="c4",oW=v(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),sW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-DHtUllaa.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:V_,diagram:e}},"loader"),aW={id:V_,detector:oW,loader:sW},lW=aW,Y_="flowchart",cW=v((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"),hW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-zklMEuvT.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:Y_,diagram:e}},"loader"),uW={id:Y_,detector:cW,loader:hW},dW=uW,G_="flowchart-v2",fW=v((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"),pW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-zklMEuvT.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:G_,diagram:e}},"loader"),gW={id:G_,detector:fW,loader:pW},mW=gW,X_="er",yW=v(e=>/^\s*erDiagram/.test(e),"detector"),xW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-cc8eUNV5.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:X_,diagram:e}},"loader"),CW={id:X_,detector:yW,loader:xW},kW=CW,Q_="gitGraph",bW=v(e=>/^\s*gitGraph/.test(e),"detector"),vW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-B-9XFdIx.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:Q_,diagram:e}},"loader"),wW={id:Q_,detector:bW,loader:vW},SW=wW,K_="gantt",TW=v(e=>/^\s*gantt/.test(e),"detector"),_W=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-DDRsXkg4.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:K_,diagram:e}},"loader"),BW={id:K_,detector:TW,loader:_W},LW=BW,Z_="info",EW=v(e=>/^\s*info/.test(e),"detector"),FW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-CuGRK3Rs.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:Z_,diagram:e}},"loader"),AW={id:Z_,detector:EW,loader:FW},J_="pie",MW=v(e=>/^\s*pie/.test(e),"detector"),IW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-DYrHyPT2.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:J_,diagram:e}},"loader"),PW={id:J_,detector:MW,loader:IW},tB="quadrantChart",OW=v(e=>/^\s*quadrantChart/.test(e),"detector"),DW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-C1LMCM9T.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:tB,diagram:e}},"loader"),RW={id:tB,detector:OW,loader:DW},$W=RW,eB="xychart",zW=v(e=>/^\s*xychart(-beta)?/.test(e),"detector"),NW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-B2NjqqEU.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:eB,diagram:e}},"loader"),jW={id:eB,detector:zW,loader:NW},WW=jW,rB="requirement",qW=v(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),HW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-DrvV-AW9.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:rB,diagram:e}},"loader"),UW={id:rB,detector:qW,loader:HW},VW=UW,iB="sequence",YW=v(e=>/^\s*sequenceDiagram/.test(e),"detector"),GW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-BEicEP4j.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:iB,diagram:e}},"loader"),XW={id:iB,detector:YW,loader:GW},QW=XW,nB="class",KW=v((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"),ZW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-BpechaYv.js");return{diagram:t}},__vite__mapDeps([32,33,11,9,12,13]));return{id:nB,diagram:e}},"loader"),JW={id:nB,detector:KW,loader:ZW},tq=JW,oB="classDiagram",eq=v((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"),rq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-BpechaYv.js");return{diagram:t}},__vite__mapDeps([34,33,11,9,12,13]));return{id:oB,diagram:e}},"loader"),iq={id:oB,detector:eq,loader:rq},nq=iq,sB="state",oq=v((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"),sq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-BmfbYS3C.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:sB,diagram:e}},"loader"),aq={id:sB,detector:oq,loader:sq},lq=aq,aB="stateDiagram",cq=v((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"),hq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-DiwaHt21.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:aB,diagram:e}},"loader"),uq={id:aB,detector:cq,loader:hq},dq=uq,lB="journey",fq=v(e=>/^\s*journey/.test(e),"detector"),pq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-CZ3Rabre.js");return{diagram:t}},__vite__mapDeps([38,11,9,26]));return{id:lB,diagram:e}},"loader"),gq={id:lB,detector:fq,loader:pq},mq=gq,yq=v((e,t,r)=>{at.debug(`rendering svg for syntax error
|
|
366
|
+
`);const i=NR(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),I2(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"),cB={draw:yq},xq=cB,Cq={db:{},renderer:cB,parser:{parse:v(()=>{},"parse")}},kq=Cq,hB="flowchart-elk",bq=v((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"),vq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-zklMEuvT.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:hB,diagram:e}},"loader"),wq={id:hB,detector:bq,loader:vq},Sq=wq,uB="timeline",Tq=v(e=>/^\s*timeline/.test(e),"detector"),_q=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ-D2wzBWb4.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:uB,diagram:e}},"loader"),Bq={id:uB,detector:Tq,loader:_q},Lq=Bq,dB="mindmap",Eq=v(e=>/^\s*mindmap/.test(e),"detector"),Fq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH-D0zbBATS.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:dB,diagram:e}},"loader"),Aq={id:dB,detector:Eq,loader:Fq},Mq=Aq,fB="kanban",Iq=v(e=>/^\s*kanban/.test(e),"detector"),Pq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY-BMn0cvU6.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:fB,diagram:e}},"loader"),Oq={id:fB,detector:Iq,loader:Pq},Dq=Oq,pB="sankey",Rq=v(e=>/^\s*sankey(-beta)?/.test(e),"detector"),$q=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6-BnK8Hrsk.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:pB,diagram:e}},"loader"),zq={id:pB,detector:Rq,loader:$q},Nq=zq,gB="packet",jq=v(e=>/^\s*packet(-beta)?/.test(e),"detector"),Wq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-TYMM5635-CVKJLdJj.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:gB,diagram:e}},"loader"),qq={id:gB,detector:jq,loader:Wq},mB="radar",Hq=v(e=>/^\s*radar-beta/.test(e),"detector"),Uq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5-D5TZZBIo.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:mB,diagram:e}},"loader"),Vq={id:mB,detector:Hq,loader:Uq},yB="block",Yq=v(e=>/^\s*block(-beta)?/.test(e),"detector"),Gq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D-fpH-DE-6.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:yB,diagram:e}},"loader"),Xq={id:yB,detector:Yq,loader:Gq},Qq=Xq,xB="treeView",Kq=v(e=>/^\s*treeView-beta/.test(e),"detector"),Zq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD-BJdSOPb0.js");return{diagram:t}},__vite__mapDeps([46,17,18,19,4,2]));return{id:xB,diagram:e}},"loader"),Jq={id:xB,detector:Kq,loader:Zq},tH=Jq,CB="architecture",eH=v(e=>/^\s*architecture/.test(e),"detector"),rH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46-CU_-Npf-.js");return{diagram:t}},__vite__mapDeps([47,17,19,4,2,7]));return{id:CB,diagram:e}},"loader"),iH={id:CB,detector:eH,loader:rH},nH=iH,kB="ishikawa",oH=v(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),sH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A-8Yce7SbN.js");return{diagram:t}},[]);return{id:kB,diagram:e}},"loader"),aH={id:kB,detector:oH,loader:sH},bB="venn",lH=v(e=>/^\s*venn-beta/.test(e),"detector"),cH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP-zHzYpF8t.js");return{diagram:t}},[]);return{id:bB,diagram:e}},"loader"),hH={id:bB,detector:lH,loader:cH},uH=hH,vB="treemap",dH=v(e=>/^\s*treemap/.test(e),"detector"),fH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6-D1__2nn4.js");return{diagram:t}},__vite__mapDeps([48,13,17,19,4,2,23,27,22]));return{id:vB,diagram:e}},"loader"),pH={id:vB,detector:dH,loader:fH},wB="wardley-beta",gH=v(e=>/^\s*wardley-beta/i.test(e),"detector"),mH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D-DKk8z2ft.js");return{diagram:t}},__vite__mapDeps([49,17,19,4,2]));return{id:wB,diagram:e}},"loader"),yH={id:wB,detector:gH,loader:mH},xH=yH,qk=!1,gd=v(()=>{qk||(qk=!0,hu("error",kq,e=>e.toLowerCase().trim()==="error"),hu("---",{db:{clear:v(()=>{},"clear")},styles:{},renderer:{draw:v(()=>{},"draw")},parser:{parse:v(()=>{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:v(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),og(Sq,Mq,nH),og(lW,Dq,nq,tq,kW,LW,AW,PW,VW,QW,mW,dW,Lq,SW,dq,lq,mq,$W,Nq,qq,WW,Qq,tH,Vq,aH,pH,uH,xH))},"addDiagrams"),CH=v(async()=>{at.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries($o).map(async([r,{detector:i,loader:n}])=>{if(n)try{cg(r)}catch{try{const{diagram:s,id:a}=await n();hu(a,s,i)}catch(s){throw at.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete $o[r],s}}}))).filter(r=>r.status==="rejected");if(t.length>0){at.error(`Failed to load ${t.length} external diagrams`);for(const r of t)at.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),kH="graphics-document document";function SB(e,t){e.attr("role",kH),t!==""&&e.attr("aria-roledescription",t)}v(SB,"setA11yDiagramInfo");function TB(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)}}}v(TB,"addSVGa11yTitleDescription");var Do,rm=(Do=class{constructor(t,r,i,n,s){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=s}static async fromText(t,r={}){var u,d;const i=_e(),n=Lm(t,i);t=qN(t)+`
|
|
367
|
+
`;try{cg(n)}catch{const p=oP(n);if(!p)throw new C2(`Diagram ${n} not found.`);const{id:m,diagram:g}=await p();hu(m,g)}const{db:s,parser:a,renderer:c,init:h}=cg(n);return a.parser&&(a.parser.yy=s),(u=s.clear)==null||u.call(s),h==null||h(i),r.title&&((d=s.setDiagramTitle)==null||d.call(s,r.title)),await a.parse(t),new Do(n,t,s,a,c)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},v(Do,"Diagram"),Do),Hk=[],bH=v(()=>{Hk.forEach(e=>{e()}),Hk=[]},"attachFunctions"),vH=v(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function _B(e){const t=e.match(x2);if(!t)return{text:e,metadata:{}};let r=Y$(t[1],{schema:V$})??{};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}}v(_B,"extractFrontMatter");var wH=v(e=>e.replace(/\r\n?/g,`
|
|
368
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),SH=v(e=>{const{text:t,metadata:r}=_B(e),{displayMode:i,title:n,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:n,config:s,text:t}},"processFrontmatter"),TH=v(e=>{const t=Bi.detectInit(e)??{},r=Bi.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:FN(e),directive:t}},"processDirectives");function By(e){const t=wH(e),r=SH(t),i=TH(r.text),n=cy(r.config,i.directive);return e=vH(i.text),{code:e,title:r.title,config:n}}v(By,"preprocessDiagram");function BB(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}v(BB,"toBase64");var _H=5e4,BH="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",LH="sandbox",EH="loose",FH="http://www.w3.org/2000/svg",AH="http://www.w3.org/1999/xlink",MH="http://www.w3.org/1999/xhtml",IH="100%",PH="100%",OH="border:0;margin:0;",DH="margin:0",RH="allow-top-navigation-by-user-activation allow-popups",$H='The "iframe" tag is not supported by your browser.',zH=["foreignobject"],NH=["dominant-baseline"];function Ly(e){const t=By(e);return lu(),IP(t.config??{}),t}v(Ly,"processAndSetConfigs");async function LB(e,t){gd();try{const{code:r,config:i}=Ly(e);return{diagramType:(await FB(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}v(LB,"parse");var Uk=v((e,t,r=[])=>`
|
|
369
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),jH=v((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
370
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
371
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
372
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const a=wr(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(c=>{Wk(c.styles)||a.forEach(h=>{r+=Uk(c.id,h,c.styles)}),Wk(c.textStyles)||(r+=Uk(c.id,"tspan",((c==null?void 0:c.textStyles)||[]).map(h=>h.replace("color","fill"))))})}return r},"createCssStyles"),WH=v((e,t,r,i)=>{const n=jH(e,r),s=ZP(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return Kg(W7(`${i}{${s}}`),H7)},"createUserStyles"),qH=v((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=qo(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),HH=v((e="",t)=>{var n,s;const r=(s=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&s.height?t.viewBox.baseVal.height+"px":PH,i=BB(`<body style="${DH}">${e}</body>`);return`<iframe style="width:${IH};height:${r};${OH}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${RH}">
|
|
373
|
+
${$H}
|
|
374
|
+
</iframe>`},"putIntoIFrame"),Vk=v((e,t,r,i,n)=>{const s=e.append("div");s.attr("id",r),i&&s.attr("style",i);const a=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",FH);return n&&a.attr("xmlns:xlink",n),a.append("g"),e},"appendDivSvgG");function im(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}v(im,"sandboxedIframe");var UH=v((e,t,r,i)=>{var n,s,a;(n=e.getElementById(t))==null||n.remove(),(s=e.getElementById(r))==null||s.remove(),(a=e.getElementById(i))==null||a.remove()},"removeExistingElements"),VH=v(async function(e,t,r){var J,nt,V,j,W,G;gd();const i=Ly(t);t=i.code;const n=_e();at.debug(n),t.length>((n==null?void 0:n.maxTextSize)??_H)&&(t=BH);const s="#"+e,a="i"+e,c="#"+a,h="d"+e,u="#"+h,d=v(()=>{const K=Qt(m?c:u).node();K&&"remove"in K&&K.remove()},"removeTempElements");let p=Qt("body");const m=n.securityLevel===LH,g=n.securityLevel===EH,x=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const R=im(Qt(r),a);p=Qt(R.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Qt(r);Vk(p,e,h,`font-family: ${x}`,AH)}else{if(UH(document,e,h,a),m){const R=im(Qt("body"),a);p=Qt(R.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Qt("body");Vk(p,e,h)}let C,k;try{C=await rm.fromText(t,{title:i.title})}catch(R){if(n.suppressErrorRendering)throw d(),R;C=await rm.fromText("error"),k=R}const w=p.select(u).node(),T=C.type,_=w.firstChild,P=_.firstChild,O=(nt=(J=C.renderer).getClasses)==null?void 0:nt.call(J,t,C),F=WH(n,T,O,s),A=document.createElement("style");A.innerHTML=F,_.insertBefore(A,P);try{await C.renderer.draw(t,e,"11.14.0",C)}catch(R){throw n.suppressErrorRendering?d():xq.draw(t,e,"11.14.0"),R}const q=p.select(`${u} svg`),et=(j=(V=C.db).getAccTitle)==null?void 0:j.call(V),I=(G=(W=C.db).getAccDescription)==null?void 0:G.call(W);AB(T,q,et,I),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",MH);let N=p.select(u).node().innerHTML;if(at.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),N=qH(N,m,bn(n.arrowMarkerAbsolute)),m){const R=p.select(u+" svg").node();N=HH(N,R)}else g||(N=Zs.sanitize(N,{ADD_TAGS:zH,ADD_ATTR:NH,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(bH(),k)throw k;return d(),{diagramType:T,svg:N,bindFunctions:C.db.bindFunctions}},"render");function EB(e={}){var i;const t=We({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),AP(t),t!=null&&t.theme&&t.theme in mn?t.themeVariables=mn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=mn.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?FP(t):S2();Bm(r.logLevel),gd()}v(EB,"initialize");var FB=v((e,t={})=>{const{code:r}=By(e);return rm.fromText(r,t)},"getDiagramFromText");function AB(e,t,r,i){SB(t,e),TB(t,r,i,t.attr("id"))}v(AB,"addA11yInfo");var Uo=Object.freeze({render:VH,parse:LB,getDiagramFromText:FB,initialize:EB,getConfig:_e,setConfig:T2,getSiteConfig:S2,updateSiteConfig:MP,reset:v(()=>{lu()},"reset"),globalReset:v(()=>{lu(Js)},"globalReset"),defaultConfig:Js});Bm(_e().logLevel);lu(_e());var YH=v((e,t,r)=>{at.warn(e),ly(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"),MB=v(async function(e={querySelector:".mermaid"}){try{await GH(e)}catch(t){if(ly(t)&&at.error(t.str),Xr.parseError&&Xr.parseError(t),!e.suppressErrors)throw at.error("Use the suppressErrors option to suppress these errors"),t}},"run"),GH=v(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Uo.getConfig();at.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");at.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(at.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Uo.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const s=new Bi.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const c=[];for(const h of Array.from(n)){if(at.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const u=`mermaid-${s.next()}`;a=h.innerHTML,a=GS(Bi.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=Bi.detectInit(a);d&&at.debug("Detected early reinit: ",d);try{const{svg:p,bindFunctions:m}=await DB(u,a,h);h.innerHTML=p,e&&await e(u),m&&m(h)}catch(p){YH(p,c,Xr.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),IB=v(function(e){Uo.initialize(e)},"initialize"),XH=v(async function(e,t,r){at.warn("mermaid.init is deprecated. Please use run instead."),e&&IB(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await MB(i)},"init"),QH=v(async(e,{lazyLoad:t=!0}={})=>{gd(),og(...e),t===!1&&await CH()},"registerExternalDiagrams"),PB=v(function(){if(Xr.startOnLoad){const{startOnLoad:e}=Uo.getConfig();e&&Xr.run().catch(t=>at.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",PB,!1);var KH=v(function(e){Xr.parseError=e},"setParseErrorHandler"),Nu=[],Np=!1,OB=v(async()=>{if(!Np){for(Np=!0;Nu.length>0;){const e=Nu.shift();if(e)try{await e()}catch(t){at.error("Error executing queue",t)}}Np=!1}},"executeQueue"),ZH=v(async(e,t)=>new Promise((r,i)=>{const n=v(()=>new Promise((s,a)=>{Uo.parse(e,t).then(c=>{s(c),r(c)},c=>{var h;at.error("Error parsing",c),(h=Xr.parseError)==null||h.call(Xr,c),a(c),i(c)})}),"performCall");Nu.push(n),OB().catch(i)}),"parse"),DB=v((e,t,r)=>new Promise((i,n)=>{const s=v(()=>new Promise((a,c)=>{Uo.render(e,t,r).then(h=>{a(h),i(h)},h=>{var u;at.error("Error parsing",h),(u=Xr.parseError)==null||u.call(Xr,h),c(h),n(h)})}),"performCall");Nu.push(s),OB().catch(n)}),"render"),JH=v(()=>Object.keys($o).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Xr={startOnLoad:!0,mermaidAPI:Uo,parse:ZH,render:DB,init:XH,run:MB,registerExternalDiagrams:QH,registerLayoutLoaders:z_,initialize:IB,parseError:void 0,contentLoaded:PB,setParseErrorHandler:KH,detectType:Lm,registerIconPacks:Qj,getRegisteredDiagramsMetadata:JH},jp=Xr;/*! Check if previously processed *//*!
|
|
375
|
+
* Wait for document loaded before starting the execution
|
|
376
|
+
*/const tU=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),E.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),eU=({size:e=14})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"20 6 9 17 4 12"})}),rU=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"15 3 21 3 21 9"}),E.jsx("polyline",{points:"9 21 3 21 3 15"}),E.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),E.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]});let Yk=!1,iU=0;function Gk(){return document.documentElement.getAttribute("data-theme")==="dark"?"dark":"default"}const nU=({chart:e})=>{const t=xt.useRef(null),[r,i]=xt.useState(null),[n,s]=xt.useState(""),[a,c]=xt.useState(!1),[h,u]=xt.useState(!1),d=Pt(g=>g.openMermaidViewer);xt.useEffect(()=>{Yk||(jp.initialize({startOnLoad:!1,theme:Gk(),securityLevel:"loose",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,diagramMarginX:10,diagramMarginY:10},gantt:{useMaxWidth:!0}}),Yk=!0);let g=!1;async function x(){try{const C=`mermaid-${++iU}`,k=Gk();jp.initialize({startOnLoad:!1,theme:k,securityLevel:"loose",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,diagramMarginX:10,diagramMarginY:10},gantt:{useMaxWidth:!0}});const{svg:w}=await jp.render(C,e.trim());g||(s(w),i(null))}catch(C){g||(i(C instanceof Error?C.message:"Mermaid rendering failed"),s(""))}}return x(),()=>{g=!0}},[e]);const p=xt.useCallback(async()=>{try{await navigator.clipboard.writeText(e.trim()),c(!0),setTimeout(()=>c(!1),2e3)}catch(g){console.error("Failed to copy mermaid code:",g)}},[e]),m=xt.useCallback(()=>{n&&d(n,e.trim())},[n,e,d]);return r?E.jsx("div",{className:"mermaid-error",children:r}):E.jsxs("div",{className:"mermaid-container",ref:t,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{position:"relative"},children:[E.jsxs("div",{style:{position:"absolute",top:8,right:8,display:"flex",gap:6,opacity:h?1:0,transition:"opacity 0.15s ease",zIndex:10},children:[E.jsxs("button",{onClick:g=>{g.stopPropagation(),p()},style:{padding:"6px 10px",background:a?"var(--success, #4ade80)":"var(--bg-primary, #fff)",border:"1px solid var(--border-color, #e0e0e0)",borderRadius:6,color:a?"#fff":"var(--text-primary, #333)",cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12,fontWeight:500,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",transition:"all 0.15s ease"},title:"复制 Mermaid 代码",children:[a?E.jsx(eU,{size:12}):E.jsx(tU,{size:12}),a?"已复制":"复制"]}),E.jsxs("button",{onClick:g=>{g.stopPropagation(),m()},style:{padding:"6px 10px",background:"var(--bg-primary, #fff)",border:"1px solid var(--border-color, #e0e0e0)",borderRadius:6,color:"var(--text-primary, #333)",cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12,fontWeight:500,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",transition:"all 0.15s ease"},title:"查看大图",children:[E.jsx(rU,{size:12}),"查看"]})]}),E.jsx("div",{onClick:m,style:{cursor:"pointer",userSelect:"none"},title:"点击查看大图",children:n&&E.jsx("div",{className:"mermaid-svg-wrapper",dangerouslySetInnerHTML:{__html:n}})})]})},oU=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),E.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),sU=({size:e=14})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"20 6 9 17 4 12"})});function nm(e){return typeof e=="string"?e:typeof e=="number"?String(e):e?Array.isArray(e)?e.map(nm).join(""):typeof e=="object"&&"props"in e?nm(e.props.children):"":""}const aU=({children:e})=>{const[t,r]=xt.useState(!1),[i,n]=xt.useState(!1),s=xt.useRef(null),a=xt.useCallback(async()=>{const c=nm(e);try{await navigator.clipboard.writeText(c.replace(/\n$/,"")),r(!0),setTimeout(()=>r(!1),2e3)}catch(h){console.error("Failed to copy code:",h)}},[e]);return E.jsxs("div",{ref:s,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),style:{position:"relative"},children:[E.jsx("button",{onClick:a,style:{position:"absolute",top:8,right:8,padding:"4px 6px",background:t?"var(--success, #4ade80)":"var(--bg-primary, #fff)",border:"1px solid var(--border-color, #e0e0e0)",borderRadius:4,color:t?"#fff":"var(--text-primary, #333)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.15s ease",zIndex:10},title:t?"已复制":"复制代码",children:t?E.jsx(sU,{size:14}):E.jsx(oU,{size:14})}),e]})};function lU(e){return e.toLowerCase().replace(/[^\w\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||"heading"}function om(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(om).join(""):gn.isValidElement(e)&&e.props.children?om(e.props.children):""}function Bs(e){const t=({children:r})=>{const i=om(r),n=lU(i);return gn.createElement(e,{id:n},r)};return t.displayName=`Heading_${e}`,t}async function cU(e,t){t.preventDefault();const{currentView:r,projects:i,setCurrentView:n,setLoadingPage:s,openReference:a}=Pt.getState(),c=e.match(/^(.+?)(?:#L(\d+)(?:-L(\d+))?)?$/);if(!c){window.open(e,"_blank");return}const[,h,u,d]=c;if(/^https?:\/\//.test(h)){window.open(h,"_blank");return}let p=h;for(;p.startsWith("./");)p=p.slice(2);if(p.includes("../")&&(p=p.split("/").pop()||p),/^[A-Za-z]:\\/.test(p)){a(p,u?parseInt(u,10):void 0,d?parseInt(d,10):void 0);return}const m=/\.[^/.\\]+$/.test(p),g=p.endsWith(".md");if(m&&!g){if(!r)return;const C=i.find(w=>w.id===r.projectId);if(!C)return;const k=p.startsWith("/")?p:`${C.path}/${h}`;a(k,u?parseInt(u,10):void 0,d?parseInt(d,10):void 0);return}if(!r){console.warn("No current view");return}let x=p;x.startsWith("/")&&(x=x.slice(1)),g&&(x=x.slice(0,-3)),s(!0);try{const C=await lm(r.projectId,r.version,x);n({...r,slug:x,content:C.content});return}catch{if(g){const C=i.find(k=>k.id===r.projectId);if(C){const k=p.startsWith("/")?p:`${C.path}/${h}`;a(k,u?parseInt(u,10):void 0,d?parseInt(d,10):void 0)}}}finally{s(!1)}}const hU=({content:e})=>{const t=xt.useMemo(()=>({h1:Bs("h1"),h2:Bs("h2"),h3:Bs("h3"),h4:Bs("h4"),h5:Bs("h5"),h6:Bs("h6"),code({className:r,children:i,...n}){const s=/language-(\w+)/.exec(r||""),a=s?s[1]:"",c=String(i).replace(/\n$/,""),h=a||c.includes(`
|
|
377
|
+
`);return a==="mermaid"?E.jsx(nU,{chart:c}):h?E.jsx("code",{className:r,...n,children:i}):E.jsx("code",{className:r,...n,children:i})},pre({children:r}){var a;const i=gn.Children.only(r),n=((a=i==null?void 0:i.props)==null?void 0:a.className)||"";return/language-mermaid/.test(n)?E.jsx("pre",{children:r}):E.jsx(aU,{children:E.jsx("pre",{children:r})})},a({href:r,children:i}){return E.jsx("a",{href:r,onClick:n=>{r&&cU(r,n)},style:{color:"var(--accent)",cursor:"pointer",textDecoration:"none"},children:i})}}),[]);return e?E.jsx("div",{className:"markdown-body",children:E.jsx(u3,{remarkPlugins:[S4],components:t,children:e})}):null};function uU(e,t){return e.toLowerCase().replace(/[^\w\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||`heading-${t}`}function dU(e){var i;const t=e.split(`
|
|
378
|
+
`),r=[];for(let n=0;n<t.length;n++){const s=t[n].match(/^(#{1,6})\s+(.+?)\r?$/);if(s){const a=s[1].length,c=s[2].trim(),h=uU(c,r.length);r.push({id:h,text:c,level:a,position:n,contentLength:0})}}for(let n=0;n<r.length;n++){const s=((i=r[n+1])==null?void 0:i.position)??t.length;r[n].contentLength=s-r[n].position}return r}function fU(e){const[t,r]=xt.useState(null);return xt.useEffect(()=>{if(e.length===0)return;const i=new IntersectionObserver(n=>{const s=n.filter(a=>a.isIntersecting);if(s.length>0){const a=s.sort((c,h)=>c.boundingClientRect.top-h.boundingClientRect.top)[0];r(a.target.id)}},{rootMargin:"-20% 0px -70% 0px"});return e.forEach(n=>{const s=document.getElementById(n);s&&i.observe(s)}),()=>i.disconnect()},[e]),t}function pU(e){const t=xt.useMemo(()=>dU(e),[e]),r=xt.useMemo(()=>t.map(s=>s.id),[t]),i=fU(r),n=xt.useCallback(s=>{const a=document.getElementById(s);a&&a.scrollIntoView({behavior:"smooth",block:"start"})},[]);return{items:t,activeId:i,scrollToHeading:n}}const gU=({items:e,activeId:t,onJump:r})=>E.jsxs("div",{className:"toc-panel",children:[E.jsx("div",{className:"toc-panel-title",children:"目录"}),E.jsx("div",{className:"toc-panel-list",children:e.map(i=>{const n=i.id===t;return E.jsx("div",{className:`toc-item${n?" active":""}`,style:{paddingLeft:12+(i.level-1)*12},onClick:()=>r(i.id),title:i.text,children:i.text},i.id)})})]});function mU(e){return e>2e3?8:e>500?6:4}const yU=({items:e,activeId:t,onJump:r})=>{const[i,n]=xt.useState(!1);return e.length===0?null:E.jsxs("div",{style:{position:"fixed",right:0,top:0,bottom:0,width:i?280:40,zIndex:98,transition:"width 0.15s ease"},onMouseLeave:()=>n(!1),children:[E.jsx("div",{className:"toc-indicator",onMouseEnter:()=>n(!0),children:e.map(s=>{const a=mU(s.contentLength),c=s.id===t;return E.jsx("div",{className:`toc-dot${c?" active":""}`,onClick:()=>r(s.id),title:s.text,children:E.jsx("span",{style:{display:"block",width:a,height:a,borderRadius:"50%",backgroundColor:c?"var(--accent)":"var(--text-muted)",transition:"background-color 0.15s, transform 0.15s",cursor:"pointer"}})},s.id)})}),i&&E.jsx(gU,{items:e,activeId:t,onJump:s=>{r(s),n(!1)}})]})},xU=({content:e})=>{const{items:t,activeId:r,scrollToHeading:i}=pU(e);return t.length===0?null:E.jsx(yU,{items:t,activeId:r,onJump:i})},CU=({size:e=48})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:"var(--text-tertiary)",opacity:.4},children:[E.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),E.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),kU=({size:e=24})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{animation:"spin 1s linear infinite"},children:E.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),bU=()=>{const e=Pt(i=>i.currentView),t=Pt(i=>i.currentWiki),r=t==null?void 0:t.pages.find(i=>i.slug===(e==null?void 0:e.slug));return e?e.loading?E.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"var(--text-tertiary)",gap:"12px"},children:[E.jsx(kU,{size:28}),E.jsx("div",{style:{fontSize:"13px"},children:"加载中..."})]}):e.error?E.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",gap:"12px"},children:[E.jsx("div",{style:{fontSize:"36px",color:"var(--danger)"},children:"!"}),E.jsx("div",{style:{fontSize:"16px",fontWeight:500,color:"var(--text-primary)"},children:"加载失败"}),E.jsx("div",{style:{fontSize:"13px",color:"var(--text-secondary)",maxWidth:"400px",textAlign:"center"},children:e.error})]}):E.jsxs("div",{style:{flex:1,height:"100%",position:"relative",overflow:"hidden"},children:[E.jsxs("div",{style:{height:"100%",overflowY:"auto",display:"flex",flexDirection:"column"},children:[r&&E.jsxs("div",{style:{padding:"24px 40px 0",borderBottom:"1px solid var(--border-light)"},children:[E.jsx("h1",{style:{fontSize:"24px",fontWeight:700,color:"var(--text-primary)",marginBottom:"4px",lineHeight:1.3},children:r.title}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",paddingBottom:"16px",fontSize:"12px",color:"var(--text-tertiary)"},children:[E.jsx("span",{children:r.section}),r.group&&E.jsxs(E.Fragment,{children:[E.jsx("span",{children:"/"}),E.jsx("span",{children:r.group})]}),E.jsx("span",{className:`badge ${r.level==="Beginner"?"badge-beginner":r.level==="Intermediate"?"badge-intermediate":"badge-advanced"}`,children:r.level})]})]}),E.jsx("div",{style:{flex:1,padding:"24px 40px 60px",maxWidth:"100%",overflowX:"hidden"},children:E.jsx(hU,{content:e.content})})]}),e.content&&E.jsx(xU,{content:e.content})]}):E.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"var(--text-tertiary)",gap:"16px"},children:[E.jsx(CU,{size:56}),E.jsx("div",{style:{fontSize:"16px",fontWeight:500},children:"Zread Browser"}),E.jsx("div",{style:{fontSize:"13px",maxWidth:"360px",textAlign:"center"},children:"从左侧导航选择一个页面开始阅读,或使用 Ctrl+K 搜索内容"})]})};function vU(e,t,r,i){var n=this,s=xt.useRef(null),a=xt.useRef(0),c=xt.useRef(0),h=xt.useRef(null),u=xt.useRef([]),d=xt.useRef(),p=xt.useRef(),m=xt.useRef(e),g=xt.useRef(!0),x=xt.useRef(),C=xt.useRef();m.current=e;var k=typeof window<"u",w=!t&&t!==0&&k;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var T=!!(r=r||{}).leading,_=!("trailing"in r)||!!r.trailing,P=!!r.flushOnExit&&_,O="maxWait"in r,F="debounceOnServer"in r&&!!r.debounceOnServer,A=O?Math.max(+r.maxWait||0,t):null,q=xt.useMemo(function(){var et=function(W){var G=u.current,R=d.current;return u.current=d.current=null,a.current=W,c.current=c.current||W,p.current=m.current.apply(R,G)},I=function(W,G){w&&cancelAnimationFrame(h.current),h.current=w?requestAnimationFrame(W):setTimeout(W,G)},N=function(W){if(!g.current)return!1;var G=W-s.current;return!s.current||G>=t||G<0||O&&W-a.current>=A},J=function(W){return h.current=null,_&&u.current?et(W):(u.current=d.current=null,p.current)},nt=function W(){var G=Date.now();if(T&&c.current===a.current&&V(),N(G))return J(G);if(g.current){var R=t-(G-s.current),K=O?Math.min(R,A-(G-a.current)):R;I(W,K)}},V=function(){},j=function(){if(k||F){var W,G=Date.now(),R=N(G);if(u.current=[].slice.call(arguments),d.current=n,s.current=G,P&&!x.current&&(x.current=function(){var K;((K=globalThis.document)==null?void 0:K.visibilityState)==="hidden"&&C.current.flush()},(W=globalThis.document)==null||W.addEventListener==null||W.addEventListener("visibilitychange",x.current)),R){if(!h.current&&g.current)return a.current=s.current,I(nt,t),T?et(s.current):p.current;if(O)return I(nt,t),et(s.current)}return h.current||I(nt,t),p.current}};return j.cancel=function(){var W=h.current;W&&(w?cancelAnimationFrame(h.current):clearTimeout(h.current)),a.current=0,u.current=s.current=d.current=h.current=null},j.isPending=function(){return!!h.current},j.flush=function(){return h.current?J(Date.now()):p.current},j},[T,O,t,A,_,P,w,k,F,i]);return C.current=q,xt.useEffect(function(){return g.current=!0,function(){var et;P&&C.current.flush(),x.current&&((et=globalThis.document)==null||et.removeEventListener==null||et.removeEventListener("visibilitychange",x.current),x.current=null),g.current=!1}},[P]),q}const wU=({size:e=16})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"11",cy:"11",r:"8"}),E.jsx("path",{d:"M21 21l-4.35-4.35"})]}),SU=({size:e=18})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M18 6L6 18"}),E.jsx("path",{d:"M6 6l12 12"})]}),TU=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),E.jsx("polyline",{points:"14 2 14 8 20 8"})]}),_U=({result:e,onClick:t})=>{const r=e.page.level==="Beginner"?"badge-beginner":e.page.level==="Intermediate"?"badge-intermediate":"badge-advanced";return E.jsxs("button",{onClick:t,style:{display:"flex",alignItems:"flex-start",gap:"10px",width:"100%",padding:"10px 14px",border:"none",background:"transparent",color:"var(--text-primary)",cursor:"pointer",textAlign:"left",borderRadius:"6px",transition:"background 0.1s ease"},onMouseEnter:i=>{i.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:i=>{i.currentTarget.style.background="transparent"},children:[E.jsx(TU,{size:16}),E.jsxs("div",{style:{flex:1,minWidth:0},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"2px"},children:[E.jsx("span",{style:{fontWeight:500,fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.page.title}),E.jsx("span",{className:`badge ${r}`,children:e.page.level})]}),E.jsxs("div",{style:{fontSize:"12px",color:"var(--text-tertiary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[e.page.section,e.page.group?` / ${e.page.group}`:""]}),e.content&&E.jsx("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e.content})]})]})},BU=()=>{const e=Pt(x=>x.searchOpen),t=Pt(x=>x.searchQuery),r=Pt(x=>x.searchResults),i=Pt(x=>x.config),n=Pt(x=>x.setSearchOpen),s=Pt(x=>x.setSearchQuery),a=Pt(x=>x.setSearchResults),c=Pt(x=>x.setCurrentProject),h=Pt(x=>x.setCurrentView),u=xt.useRef(null);xt.useEffect(()=>{e&&setTimeout(()=>{var x;(x=u.current)==null||x.focus()},50)},[e]);const d=vU(async x=>{if(!x.trim()){a([]);return}const C=i==null?void 0:i.lastOpenedProject;if(!C){a([]);return}try{const k=await Jk(C,x);a(k)}catch(k){console.error("Search failed:",k),a([])}},200),p=xt.useCallback(x=>{const C=x.target.value;s(C),d(C)},[s,d]),m=xt.useCallback(x=>{x.projectId!==(i==null?void 0:i.lastOpenedProject)&&c(x.projectId);const C=Pt.getState().projects.find(w=>w.id===x.projectId),k=(C==null?void 0:C.currentVersion)||"latest";h({projectId:x.projectId,version:k,slug:x.page.slug,content:"",loading:!0}),re(async()=>{const{getPage:w}=await Promise.resolve().then(()=>nb);return{getPage:w}},void 0).then(({getPage:w})=>{w(x.projectId,k,x.page.slug).then(T=>{h({projectId:x.projectId,version:k,slug:x.page.slug,content:T.content,loading:!1})}).catch(T=>{h({projectId:x.projectId,version:k,slug:x.page.slug,content:"",loading:!1,error:T instanceof Error?T.message:"Failed to load page"})})}),n(!1)},[i==null?void 0:i.lastOpenedProject,c,h,n]),g=xt.useCallback(x=>{x.target===x.currentTarget&&n(!1)},[n]);return e?E.jsx("div",{className:"overlay overlay-centered",onClick:g,children:E.jsxs("div",{className:"modal",style:{width:"560px",maxHeight:"70vh",background:"var(--bg-primary)",border:"1px solid var(--border)",borderRadius:"12px",boxShadow:"var(--shadow-lg)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",borderBottom:"1px solid var(--border)"},children:[E.jsx(wU,{size:18}),E.jsx("input",{ref:u,type:"text",value:t,onChange:p,placeholder:"搜索文档...",style:{flex:1,border:"none",outline:"none",background:"transparent",color:"var(--text-primary)",fontSize:"15px"}}),E.jsx("button",{onClick:()=>n(!1),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"1px solid var(--border)",borderRadius:"6px",background:"var(--bg-secondary)",color:"var(--text-tertiary)",cursor:"pointer",fontSize:"11px"},title:"关闭 (Esc)",children:E.jsx(SU,{size:14})})]}),E.jsx("div",{style:{flex:1,overflowY:"auto",padding:"8px"},children:t&&r.length===0?E.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:"没有找到相关结果"}):t?r.map((x,C)=>E.jsx(_U,{result:x,onClick:()=>m(x)},`${x.projectId}-${x.page.slug}-${C}`)):E.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:"输入关键词开始搜索"})}),r.length>0&&E.jsxs("div",{style:{padding:"8px 16px",borderTop:"1px solid var(--border)",fontSize:"11px",color:"var(--text-tertiary)",textAlign:"center"},children:["找到 ",r.length," 个结果"]})]})}):null},LU=({size:e=18})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M18 6L6 18"}),E.jsx("path",{d:"M6 6l12 12"})]}),Xk=({size:e=16})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M12 5v14"}),E.jsx("path",{d:"M5 12h14"})]}),Qk=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"3 6 5 6 21 6"}),E.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),EU=({size:e=16})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("polyline",{points:"23 4 23 10 17 10"}),E.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),FU=({size:e=18})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"12",cy:"12",r:"5"}),E.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),E.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),E.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),E.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),E.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),E.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),E.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),E.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}),AU=({size:e=18})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),Kk=({size:e=14})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),MU=()=>{const e=Pt(I=>I.settingsOpen),t=Pt(I=>I.config),r=Pt(I=>I.projects),i=Pt(I=>I.setSettingsOpen),n=Pt(I=>I.setConfig),s=Pt(I=>I.setProjects),[a,c]=xt.useState(""),[h,u]=xt.useState(""),[d,p]=xt.useState(null),[m,g]=xt.useState(!1),[x,C]=xt.useState(null),[k,w]=xt.useState("general");xt.useEffect(()=>{e&&Up().then(p).catch(()=>{})},[e]);const T=xt.useCallback(I=>{I.target===I.currentTarget&&i(!1)},[i]),_=xt.useCallback(async()=>{if(!t)return;const I=t.theme==="dark"?"light":"dark";try{const N=await zh({theme:I});n(N)}catch(N){console.error("Failed to update theme:",N)}},[t,n]),P=xt.useCallback(async()=>{if(a.trim()){C(null);try{const I=await zh({scanPaths:[...(t==null?void 0:t.scanPaths)||[],a.trim()]});n(I),c("")}catch(I){C(I instanceof Error?I.message:"Failed to add scan path")}}},[a,t,n]),O=xt.useCallback(async I=>{if(t){C(null);try{const N=await zh({scanPaths:t.scanPaths.filter(J=>J!==I)});n(N)}catch(N){C(N instanceof Error?N.message:"Failed to remove scan path")}}},[t,n]),F=xt.useCallback(async()=>{if(h.trim()){C(null);try{const I=await tb(h.trim());s([...r,I]),u("");const N=await Tl();n(N)}catch(I){C(I instanceof Error?I.message:"Failed to add project")}}},[h,r,s,n]),A=xt.useCallback(async I=>{C(null);try{await eb(I),s(r.filter(J=>J.id!==I));const N=await Tl();n(N)}catch(N){C(N instanceof Error?N.message:"Failed to delete project")}},[r,s,n]),q=xt.useCallback(async()=>{g(!0),C(null),rb().catch(N=>{C(N instanceof Error?N.message:"Scan failed")});const I=setInterval(async()=>{try{const N=await Up();if(p(N),!N.scanning&&N.lastScanAt){clearInterval(I),g(!1);const J=await Tl();n(J),s(J.projects)}}catch(N){console.error("Failed to get scan status:",N)}},500);return()=>clearInterval(I)},[n,s]);if(!e)return null;const et=(t==null?void 0:t.theme)==="dark";return E.jsx("div",{className:"overlay overlay-centered",onClick:T,children:E.jsxs("div",{className:"modal",style:{width:"640px",maxHeight:"80vh",background:"var(--bg-primary)",border:"1px solid var(--border)",borderRadius:"12px",boxShadow:"var(--shadow-lg)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid var(--border)"},children:[E.jsx("h2",{style:{fontSize:"16px",fontWeight:600,color:"var(--text-primary)",margin:0},children:"设置"}),E.jsx("button",{onClick:()=>i(!1),style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"6px",background:"transparent",color:"var(--text-secondary)",cursor:"pointer"},children:E.jsx(LU,{size:18})})]}),E.jsx("div",{style:{display:"flex",borderBottom:"1px solid var(--border)",padding:"0 20px"},children:[{key:"general",label:"通用"},{key:"projects",label:"项目管理"},{key:"scan",label:"扫描"}].map(I=>E.jsx("button",{onClick:()=>w(I.key),style:{padding:"10px 16px",border:"none",borderBottom:k===I.key?"2px solid var(--accent)":"2px solid transparent",background:"transparent",color:k===I.key?"var(--accent)":"var(--text-secondary)",cursor:"pointer",fontSize:"13px",fontWeight:k===I.key?500:400,transition:"all 0.15s ease"},children:I.label},I.key))}),x&&E.jsx("div",{style:{margin:"12px 20px 0",padding:"8px 12px",borderRadius:"6px",background:"#fff5f5",border:"1px solid #ffc9c9",color:"var(--danger)",fontSize:"13px"},children:x}),E.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"20px"},children:[k==="general"&&E.jsx("div",{children:E.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderRadius:"8px",background:"var(--bg-secondary)",marginBottom:"16px"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[et?E.jsx(AU,{size:18}):E.jsx(FU,{size:18}),E.jsxs("div",{children:[E.jsx("div",{style:{fontSize:"14px",fontWeight:500,color:"var(--text-primary)"},children:"主题"}),E.jsx("div",{style:{fontSize:"12px",color:"var(--text-tertiary)"},children:et?"暗色模式":"浅色模式"})]})]}),E.jsx("button",{onClick:_,style:{position:"relative",width:"44px",height:"24px",borderRadius:"12px",border:"none",background:et?"var(--accent)":"var(--bg-tertiary)",cursor:"pointer",transition:"background 0.2s ease",padding:0},children:E.jsx("div",{style:{position:"absolute",top:"3px",left:et?"23px":"3px",width:"18px",height:"18px",borderRadius:"50%",background:"white",transition:"left 0.2s ease",boxShadow:"var(--shadow-sm)"}})})]})}),k==="projects"&&E.jsxs("div",{children:[E.jsxs("div",{style:{marginBottom:"20px"},children:[E.jsx("label",{style:{display:"block",fontSize:"13px",fontWeight:500,color:"var(--text-primary)",marginBottom:"6px"},children:"手动添加项目"}),E.jsxs("div",{style:{display:"flex",gap:"8px"},children:[E.jsx("input",{type:"text",className:"input",value:h,onChange:I=>u(I.target.value),placeholder:"输入项目路径...",onKeyDown:I=>{I.key==="Enter"&&F()}}),E.jsxs("button",{className:"btn btn-primary",onClick:F,children:[E.jsx(Xk,{size:14}),"添加"]})]})]}),E.jsxs("div",{children:[E.jsxs("label",{style:{display:"block",fontSize:"13px",fontWeight:500,color:"var(--text-primary)",marginBottom:"8px"},children:["已发现的项目 (",r.length,")"]}),r.length===0?E.jsx("div",{style:{padding:"20px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px",background:"var(--bg-secondary)",borderRadius:"8px"},children:"暂无项目,请手动添加或扫描发现"}):E.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:r.map(I=>E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px 14px",borderRadius:"8px",background:"var(--bg-secondary)",border:"1px solid var(--border-light)"},children:[E.jsx(Kk,{size:16}),E.jsxs("div",{style:{flex:1,minWidth:0},children:[E.jsx("div",{style:{fontSize:"13px",fontWeight:500,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:I.name}),E.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:I.path})]}),E.jsx("button",{className:"btn btn-icon",onClick:()=>A(I.id),title:"删除项目",style:{color:"var(--danger)",flexShrink:0},children:E.jsx(Qk,{size:14})})]},I.id))})]})]}),k==="scan"&&E.jsxs("div",{children:[E.jsxs("div",{style:{marginBottom:"20px"},children:[E.jsx("label",{style:{display:"block",fontSize:"13px",fontWeight:500,color:"var(--text-primary)",marginBottom:"6px"},children:"扫描路径"}),E.jsxs("div",{style:{display:"flex",gap:"8px",marginBottom:"8px"},children:[E.jsx("input",{type:"text",className:"input",value:a,onChange:I=>c(I.target.value),placeholder:"输入要扫描的目录路径...",onKeyDown:I=>{I.key==="Enter"&&P()}}),E.jsxs("button",{className:"btn btn-primary",onClick:P,children:[E.jsx(Xk,{size:14}),"添加"]})]}),((t==null?void 0:t.scanPaths)||[]).length===0?E.jsx("div",{style:{padding:"12px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px",background:"var(--bg-secondary)",borderRadius:"6px"},children:"暂无扫描路径"}):E.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:((t==null?void 0:t.scanPaths)||[]).map(I=>E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",borderRadius:"6px",background:"var(--bg-secondary)",border:"1px solid var(--border-light)",fontSize:"13px",color:"var(--text-secondary)"},children:[E.jsx(Kk,{size:13}),E.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:I}),E.jsx("button",{className:"btn btn-icon",onClick:()=>O(I),style:{color:"var(--danger)"},children:E.jsx(Qk,{size:12})})]},I))})]}),E.jsxs("div",{children:[E.jsxs("button",{className:"btn btn-primary",onClick:q,disabled:m,style:{marginBottom:"12px",opacity:m?.7:1,cursor:m?"not-allowed":"pointer"},children:[E.jsx(EU,{size:14}),m?"扫描中...":"开始扫描"]}),d&&E.jsxs("div",{style:{padding:"12px 16px",borderRadius:"8px",background:"var(--bg-secondary)",border:"1px solid var(--border-light)",fontSize:"13px"},children:[E.jsxs("div",{style:{color:"var(--text-primary)",marginBottom:"4px"},children:["状态:",d.scanning?"扫描中":"空闲"]}),d.progress&&E.jsxs("div",{style:{color:"var(--text-secondary)",fontSize:"12px"},children:["已扫描 ",d.progress.scanned,"/",d.progress.total,", 发现 ",d.progress.found," 个项目"]}),d.lastScanAt&&E.jsxs("div",{style:{color:"var(--text-tertiary)",fontSize:"11px",marginTop:"4px"},children:["上次扫描:",new Date(d.lastScanAt).toLocaleString("zh-CN")]})]})]})]})]})]})})},IU=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),E.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),PU=({size:e=14})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"20 6 9 17 4 12"})}),OU=({size:e=20})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M18 6L6 18"}),E.jsx("path",{d:"M6 6l12 12"})]}),DU=()=>{const e=Pt(g=>g.referenceOpen),t=Pt(g=>g.referenceData),r=Pt(g=>g.closeReference),[i,n]=xt.useState([]),[s,a]=xt.useState(!1),[c,h]=xt.useState(null),[u,d]=xt.useState(!1);xt.useEffect(()=>{e&&t&&p()},[e,t]);const p=async()=>{if(t){a(!0),h(null);try{const g=await ib(t.filePath,t.startLine,t.endLine);n(g.lines)}catch(g){h(g instanceof Error?g.message:"Failed to load file")}finally{a(!1)}}},m=xt.useCallback(async()=>{if(i.length===0)return;const g=i.map(x=>x.content).join(`
|
|
379
|
+
`);try{await navigator.clipboard.writeText(g),d(!0),setTimeout(()=>d(!1),2e3)}catch(x){console.error("Failed to copy content:",x)}},[i]);return e?E.jsx("div",{className:"overlay overlay-centered",onClick:r,children:E.jsxs("div",{className:"modal",style:{width:"800px",maxHeight:"70vh",background:"#1e1e2e",borderRadius:"12px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:g=>g.stopPropagation(),children:[E.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid #333",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[E.jsxs("div",{children:[E.jsx("div",{style:{color:"#fff",fontSize:"14px",fontWeight:500},children:t==null?void 0:t.filePath}),(t==null?void 0:t.startLine)&&(t==null?void 0:t.endLine)&&E.jsxs("div",{style:{color:"#888",fontSize:"12px",marginTop:"4px"},children:["L",t.startLine,"-L",t.endLine]})]}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[E.jsxs("button",{onClick:m,disabled:s||c!==null||i.length===0,style:{padding:"6px 12px",background:u?"#4ade80":"transparent",border:`1px solid ${u?"#4ade80":"#444"}`,borderRadius:"6px",color:u?"#fff":"#888",cursor:s||c!==null||i.length===0?"not-allowed":"pointer",fontSize:"13px",display:"flex",alignItems:"center",gap:6,transition:"all 0.15s ease",opacity:s||c!==null||i.length===0?.5:1},title:"复制内容",children:[u?E.jsx(PU,{size:14}):E.jsx(IU,{size:14}),u?"已复制":"复制"]}),E.jsx("button",{onClick:r,style:{background:"transparent",border:"none",color:"#888",cursor:"pointer",fontSize:"20px",lineHeight:1,padding:"4px 8px",display:"flex",alignItems:"center"},title:"关闭",children:E.jsx(OU,{size:20})})]})]}),E.jsx("div",{style:{flex:1,overflow:"auto",padding:"16px 0",fontFamily:"'SF Mono', Monaco, 'Cascadia Code', monospace",fontSize:"13px",lineHeight:"1.6"},children:s?E.jsx("div",{style:{color:"#888",textAlign:"center",padding:"40px"},children:"加载中..."}):c?E.jsx("div",{style:{color:"#ff6b6b",textAlign:"center",padding:"40px"},children:c}):E.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:E.jsx("tbody",{children:i.map(g=>E.jsxs("tr",{style:{background:g.highlighted?"#0d3d3d":"transparent"},children:[E.jsx("td",{style:{padding:"2px 12px 2px 20px",color:"#666",textAlign:"right",userSelect:"none",width:"50px"},children:g.lineNumber}),E.jsx("td",{style:{padding:"2px 20px 2px 12px",color:g.highlighted?"#e4e4e4":"#a0a0a0",whiteSpace:"pre"},children:g.content||" "})]},g.lineNumber))})})})]})}):null},RU=({size:e=18})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M18 6L6 18"}),E.jsx("path",{d:"M6 6l12 12"})]}),$U=({size:e=14})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),E.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),zU=({size:e=14})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("polyline",{points:"20 6 9 17 4 12"})}),NU=({size:e=16})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"11",cy:"11",r:"8"}),E.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),E.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),E.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]}),jU=({size:e=16})=>E.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("circle",{cx:"11",cy:"11",r:"8"}),E.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),E.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]}),WU=({size:e=16})=>E.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:E.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})}),qU=()=>{const e=Pt(F=>F.mermaidViewerOpen),t=Pt(F=>F.mermaidViewerData),r=Pt(F=>F.closeMermaidViewer),[i,n]=xt.useState(2),[s,a]=xt.useState(!1),[c,h]=xt.useState({x:0,y:0}),[u,d]=xt.useState({x:0,y:0}),[p,m]=xt.useState(!1),g=xt.useRef(null),x=xt.useCallback(()=>{n(F=>Math.min(F*1.2,5))},[]),C=xt.useCallback(()=>{n(F=>Math.max(F/1.2,.3))},[]),k=xt.useCallback(()=>{n(1),h({x:0,y:0})},[]),w=xt.useCallback(async()=>{if(t!=null&&t.code)try{await navigator.clipboard.writeText(t.code),m(!0),setTimeout(()=>m(!1),2e3)}catch(F){console.error("Failed to copy:",F)}},[t==null?void 0:t.code]),T=xt.useCallback(F=>{F.button===0&&(a(!0),d({x:F.clientX-c.x,y:F.clientY-c.y}))},[c]),_=xt.useCallback(F=>{s&&h({x:F.clientX-u.x,y:F.clientY-u.y})},[s,u]),P=xt.useCallback(()=>{a(!1)},[]),O=xt.useCallback(F=>{F.preventDefault();const A=F.deltaY>0?.9:1.1;n(q=>Math.max(.3,Math.min(5,q*A)))},[]);return!e||!t?null:E.jsxs("div",{style:{position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(4px)",zIndex:1e3,display:"flex",flexDirection:"column",animation:"fadeIn 0.2s ease"},onClick:r,children:[E.jsxs("div",{style:{padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:"var(--bg-primary)",borderBottom:"1px solid var(--border-color)",flexShrink:0},onClick:F=>F.stopPropagation(),children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[E.jsx("span",{style:{color:"var(--text-primary)",fontSize:15,fontWeight:600},children:"图表预览"}),E.jsxs("span",{style:{color:"var(--text-tertiary)",fontSize:13,fontWeight:500,padding:"2px 8px",background:"var(--bg-secondary)",borderRadius:4},children:[Math.round(i*100),"%"]})]}),E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:1,background:"var(--bg-secondary)",borderRadius:8,padding:2},children:[E.jsx(Wp,{onClick:C,title:"缩小 (-)",children:E.jsx(jU,{size:16})}),E.jsx(Wp,{onClick:k,title:"适应屏幕 (0)",children:E.jsx(WU,{size:16})}),E.jsx(Wp,{onClick:x,title:"放大 (+)",children:E.jsx(NU,{size:16})})]}),E.jsx("div",{style:{width:1,height:20,background:"var(--border-color)",margin:"0 4px"}}),E.jsxs("button",{onClick:w,style:{padding:"6px 12px",background:p?"var(--success)":"var(--accent)",border:"none",borderRadius:8,color:"#fff",cursor:"pointer",display:"flex",alignItems:"center",gap:6,fontSize:13,fontWeight:500,transition:"all 0.15s ease",boxShadow:p?"none":"0 1px 2px rgba(0,0,0,0.1)"},children:[p?E.jsx(zU,{size:14}):E.jsx($U,{size:14}),p?"已复制":"复制代码"]}),E.jsx("button",{onClick:r,style:{padding:8,background:"transparent",border:"none",borderRadius:8,color:"var(--text-secondary)",cursor:"pointer",display:"flex",alignItems:"center",marginLeft:4,transition:"all 0.15s ease"},onMouseEnter:F=>{F.currentTarget.style.background="var(--bg-secondary)",F.currentTarget.style.color="var(--text-primary)"},onMouseLeave:F=>{F.currentTarget.style.background="transparent",F.currentTarget.style.color="var(--text-secondary)"},title:"关闭 (Esc)",children:E.jsx(RU,{size:18})})]})]}),E.jsx("div",{ref:g,style:{flex:1,overflow:"hidden",cursor:s?"grabbing":"grab",display:"flex",alignItems:"center",justifyContent:"center",padding:40},onMouseDown:T,onMouseMove:_,onMouseUp:P,onMouseLeave:P,onWheel:O,children:E.jsx("div",{style:{transform:`translate(${c.x}px, ${c.y}px) scale(${i})`,transition:s?"none":"transform 0.15s cubic-bezier(0.4, 0, 0.2, 1)",background:"var(--bg-primary)",borderRadius:12,padding:32,boxShadow:"0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1)",maxWidth:"calc(100vw - 80px)",maxHeight:"calc(100vh - 160px)",overflow:"auto"},onClick:F=>F.stopPropagation(),dangerouslySetInnerHTML:{__html:t.svg}})}),E.jsxs("div",{style:{position:"absolute",bottom:20,left:"50%",transform:"translateX(-50%)",padding:"8px 16px",background:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(8px)",borderRadius:20,color:"rgba(255, 255, 255, 0.9)",fontSize:12,pointerEvents:"none",display:"flex",alignItems:"center",gap:12},children:[E.jsx(qp,{children:"滚轮缩放"}),E.jsx(Zk,{}),E.jsx(qp,{children:"拖拽移动"}),E.jsx(Zk,{}),E.jsx(qp,{children:"点击背景关闭"})]}),E.jsx("style",{children:`
|
|
380
|
+
@keyframes fadeIn {
|
|
381
|
+
from { opacity: 0; }
|
|
382
|
+
to { opacity: 1; }
|
|
383
|
+
}
|
|
384
|
+
`})]})},Wp=({onClick:e,title:t,children:r})=>E.jsx("button",{onClick:e,title:t,style:{padding:"6px 10px",background:"transparent",border:"none",borderRadius:6,color:"var(--text-secondary)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.15s ease"},onMouseEnter:i=>{i.currentTarget.style.background="var(--bg-primary)",i.currentTarget.style.color="var(--text-primary)"},onMouseLeave:i=>{i.currentTarget.style.background="transparent",i.currentTarget.style.color="var(--text-secondary)"},children:r}),qp=({children:e})=>E.jsx("span",{style:{whiteSpace:"nowrap"},children:e}),Zk=()=>E.jsx("span",{style:{width:4,height:4,borderRadius:"50%",background:"rgba(255,255,255,0.4)"}});function HU(){const e=Pt(t=>t.config);xt.useEffect(()=>{const t=(e==null?void 0:e.theme)||"light";document.documentElement.setAttribute("data-theme",t)},[e==null?void 0:e.theme])}function UU(){const e=Pt(s=>s.toggleSearch),t=Pt(s=>s.setSearchOpen),r=Pt(s=>s.setSettingsOpen),i=Pt(s=>s.searchOpen),n=Pt(s=>s.settingsOpen);xt.useEffect(()=>{function s(a){if((a.ctrlKey||a.metaKey)&&a.key==="k"){a.preventDefault(),e();return}a.key==="Escape"&&(i?t(!1):n&&r(!1))}return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[e,t,r,i,n])}const VU=()=>{const e=Pt(i=>i.setConfig),t=Pt(i=>i.setProjects),r=Pt(i=>i.setCurrentWiki);return Pt(i=>i.setCurrentView),Pt(i=>i.setCurrentProject),HU(),UU(),xt.useEffect(()=>{let i=!1;async function n(){try{const s=await Tl();if(i)return;if(e(s),t(s.projects),s.lastOpenedProject)try{const a=await am(s.lastOpenedProject);if(i)return;r(a)}catch(a){console.error("Failed to load last opened project wiki:",a)}}catch(s){console.error("Failed to initialize app:",s)}}return n(),()=>{i=!0}},[e,t,r]),E.jsxs(OE,{children:[E.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[E.jsx(VE,{}),E.jsxs("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[E.jsx(tF,{}),E.jsx(bU,{})]})]}),E.jsx(BU,{}),E.jsx(MU,{}),E.jsx(DU,{}),E.jsx(qU,{})]})},RB=document.getElementById("root");if(!RB)throw new Error("Root element not found");PE.createRoot(RB).render(E.jsx(gn.StrictMode,{children:E.jsx(VU,{})}));export{P2 as $,ZU as A,eo as B,E4 as C,_e as D,aO as E,cy as F,w2 as G,ON as H,NR as I,V$ as J,uP as K,Rl as L,QU as M,sd as N,jP as O,M2 as P,uC as Q,AR as R,Cg as S,PN as T,ec as U,Ii as V,ot as W,it as X,XP as Y,_N as Z,v as _,eO as a,KC as a$,BR as a0,AC as a1,FC as a2,aV as a3,rV as a4,oV as a5,nV as a6,tV as a7,jm as a8,sV as a9,X9 as aA,G9 as aB,Zj as aC,f2 as aD,LR as aE,XU as aF,od as aG,Eu as aH,SS as aI,Kl as aJ,cc as aK,Qj as aL,Xj as aM,Rm as aN,Zn as aO,Nl as aP,SC as aQ,a6 as aR,tN as aS,vS as aT,gS as aU,nz as aV,_u as aW,oz as aX,ac as aY,Fo as aZ,Xz as a_,eV as aa,Ss as ab,cV as ac,lV as ad,iV as ae,w9 as af,O_ as ag,kV as ah,G$ as ai,wr as aj,wn as ak,hl as al,hy as am,FS as an,qo as ao,PS as ap,Vt as aq,Yi as ar,Tt as as,T7 as at,CV as au,bV as av,yV as aw,Et as ax,xV as ay,t7 as az,tO as b,Yo as b0,sz as b1,ry as b2,iz as b3,cz as b4,ca as b5,Jz as b6,vN as b7,pz as b8,gN as b9,VC as bA,iy as bB,yS as bC,tm as bD,GU as bE,re as bF,ty as ba,Wk as bb,Lt as bc,OS as bd,Or as be,t6 as bf,Dm as bg,G2 as bh,nc as bi,K2 as bj,JU as bk,L4 as bl,bN as bm,pN as bn,wN as bo,ed as bp,ez as bq,ey as br,bS as bs,TN as bt,la as bu,sN as bv,G7 as bw,sc as bx,Lu as by,lo as bz,ce as c,Qt as d,I2 as e,We as f,iO as g,Cn as h,Ai as i,K$ as j,rc as k,at as l,MS as m,KU as n,wV as o,nO as p,oO as q,vV as r,rO as s,Y$ as t,Bi as u,q9 as v,$N as w,hV as x,Zs as y,JP as z};
|