@dayinxisheng/zreadbrow 1.0.4

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.
Files changed (70) hide show
  1. package/bin/zreadbrow.js +72 -0
  2. package/dist/public/assets/_baseUniq-OYZggmI7.js +1 -0
  3. package/dist/public/assets/arc-Do70yPZY.js +1 -0
  4. package/dist/public/assets/architectureDiagram-Q4EWVU46-DtjK6LfO.js +36 -0
  5. package/dist/public/assets/blockDiagram-DXYQGD6D-D-J4AWOc.js +132 -0
  6. package/dist/public/assets/c4Diagram-AHTNJAMY-C2svHtHd.js +10 -0
  7. package/dist/public/assets/channel-hPiJ7w5T.js +1 -0
  8. package/dist/public/assets/chunk-4BX2VUAB-BxQLfhjk.js +1 -0
  9. package/dist/public/assets/chunk-4TB4RGXK-D1IJMxxZ.js +206 -0
  10. package/dist/public/assets/chunk-55IACEB6-CbeuowJC.js +1 -0
  11. package/dist/public/assets/chunk-EDXVE4YY-gq6Rm2e9.js +1 -0
  12. package/dist/public/assets/chunk-FMBD7UC4-Dskli35B.js +15 -0
  13. package/dist/public/assets/chunk-OYMX7WX6-CtMIqPYA.js +231 -0
  14. package/dist/public/assets/chunk-QZHKN3VN-BZvIyYlc.js +1 -0
  15. package/dist/public/assets/chunk-YZCP3GAM-Bq3cYA_3.js +1 -0
  16. package/dist/public/assets/classDiagram-6PBFFD2Q-3O1DCKVl.js +1 -0
  17. package/dist/public/assets/classDiagram-v2-HSJHXN6E-3O1DCKVl.js +1 -0
  18. package/dist/public/assets/clone-UzahnEK0.js +1 -0
  19. package/dist/public/assets/cose-bilkent-S5V4N54A-DyKcM_Ft.js +1 -0
  20. package/dist/public/assets/cytoscape.esm-DxGcaOPV.js +331 -0
  21. package/dist/public/assets/dagre-KV5264BT-CqqZAnfi.js +4 -0
  22. package/dist/public/assets/defaultLocale-DX6XiGOO.js +1 -0
  23. package/dist/public/assets/diagram-5BDNPKRD-Cy3V7bcG.js +10 -0
  24. package/dist/public/assets/diagram-G4DWMVQ6-DUtdWbLg.js +24 -0
  25. package/dist/public/assets/diagram-MMDJMWI5-jNH5iO6v.js +43 -0
  26. package/dist/public/assets/diagram-TYMM5635-BEQMXYiS.js +24 -0
  27. package/dist/public/assets/erDiagram-SMLLAGMA-BOu00pgZ.js +85 -0
  28. package/dist/public/assets/flowDiagram-DWJPFMVM-BAxygbW_.js +162 -0
  29. package/dist/public/assets/ganttDiagram-T4ZO3ILL-BDIRknaP.js +292 -0
  30. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-DpCrvb-c.js +106 -0
  31. package/dist/public/assets/graph-CRle1L2w.js +1 -0
  32. package/dist/public/assets/index-BlXRYVPH.js +377 -0
  33. package/dist/public/assets/index-DytBrat0.css +1 -0
  34. package/dist/public/assets/infoDiagram-42DDH7IO-DSZsO32C.js +2 -0
  35. package/dist/public/assets/init-Gi6I4Gst.js +1 -0
  36. package/dist/public/assets/ishikawaDiagram-UXIWVN3A-wLXQ-0kc.js +70 -0
  37. package/dist/public/assets/journeyDiagram-VCZTEJTY-D6ybPNfZ.js +139 -0
  38. package/dist/public/assets/kanban-definition-6JOO6SKY-B47ibwqw.js +89 -0
  39. package/dist/public/assets/katex-DkKDou_j.js +257 -0
  40. package/dist/public/assets/layout-BfPAQzhB.js +1 -0
  41. package/dist/public/assets/linear-BYSRnc6z.js +1 -0
  42. package/dist/public/assets/min-DUZc6_qu.js +1 -0
  43. package/dist/public/assets/mindmap-definition-QFDTVHPH-Byg9EDEf.js +96 -0
  44. package/dist/public/assets/ordinal-Cboi1Yqb.js +1 -0
  45. package/dist/public/assets/pieDiagram-DEJITSTG-BaO4djdd.js +30 -0
  46. package/dist/public/assets/quadrantDiagram-34T5L4WZ-DjOVuL9Z.js +7 -0
  47. package/dist/public/assets/requirementDiagram-MS252O5E-qy4lP90H.js +84 -0
  48. package/dist/public/assets/sankeyDiagram-XADWPNL6-OpfFStE8.js +10 -0
  49. package/dist/public/assets/sequenceDiagram-FGHM5R23-BfLktgJr.js +157 -0
  50. package/dist/public/assets/stateDiagram-FHFEXIEX-CEA-RrVC.js +1 -0
  51. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-QjCaGLFg.js +1 -0
  52. package/dist/public/assets/timeline-definition-GMOUNBTQ-DiPD59I4.js +120 -0
  53. package/dist/public/assets/vennDiagram-DHZGUBPP-DSCxAvb_.js +34 -0
  54. package/dist/public/assets/wardley-RL74JXVD-CFZO0XVm.js +162 -0
  55. package/dist/public/assets/wardleyDiagram-NUSXRM2D-BWa8t8o-.js +20 -0
  56. package/dist/public/assets/xychartDiagram-5P7HB3ND-ZplCit9D.js +7 -0
  57. package/dist/public/index.html +13 -0
  58. package/dist/server/index.js +1 -0
  59. package/dist/server/middleware/errorHandler.js +1 -0
  60. package/dist/server/routes/config.js +1 -0
  61. package/dist/server/routes/files.js +1 -0
  62. package/dist/server/routes/projects.js +1 -0
  63. package/dist/server/routes/scan.js +1 -0
  64. package/dist/server/routes/search.js +1 -0
  65. package/dist/server/routes/wiki.js +1 -0
  66. package/dist/server/services/config.js +1 -0
  67. package/dist/server/services/scanner.js +1 -0
  68. package/dist/server/services/search.js +1 -0
  69. package/dist/server/services/wiki-loader.js +1 -0
  70. package/package.json +36 -0
@@ -0,0 +1,377 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-CqqZAnfi.js","assets/graph-CRle1L2w.js","assets/_baseUniq-OYZggmI7.js","assets/layout-BfPAQzhB.js","assets/min-DUZc6_qu.js","assets/clone-UzahnEK0.js","assets/cose-bilkent-S5V4N54A-DyKcM_Ft.js","assets/cytoscape.esm-DxGcaOPV.js","assets/c4Diagram-AHTNJAMY-C2svHtHd.js","assets/chunk-YZCP3GAM-Bq3cYA_3.js","assets/flowDiagram-DWJPFMVM-BAxygbW_.js","assets/chunk-FMBD7UC4-Dskli35B.js","assets/chunk-55IACEB6-CbeuowJC.js","assets/chunk-EDXVE4YY-gq6Rm2e9.js","assets/channel-hPiJ7w5T.js","assets/erDiagram-SMLLAGMA-BOu00pgZ.js","assets/gitGraphDiagram-UUTBAWPF-DpCrvb-c.js","assets/chunk-4BX2VUAB-BxQLfhjk.js","assets/chunk-QZHKN3VN-BZvIyYlc.js","assets/wardley-RL74JXVD-CFZO0XVm.js","assets/ganttDiagram-T4ZO3ILL-BDIRknaP.js","assets/linear-BYSRnc6z.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-DSZsO32C.js","assets/pieDiagram-DEJITSTG-BaO4djdd.js","assets/arc-Do70yPZY.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-DjOVuL9Z.js","assets/xychartDiagram-5P7HB3ND-ZplCit9D.js","assets/requirementDiagram-MS252O5E-qy4lP90H.js","assets/sequenceDiagram-FGHM5R23-BfLktgJr.js","assets/classDiagram-6PBFFD2Q-3O1DCKVl.js","assets/chunk-4TB4RGXK-D1IJMxxZ.js","assets/classDiagram-v2-HSJHXN6E-3O1DCKVl.js","assets/stateDiagram-FHFEXIEX-CEA-RrVC.js","assets/chunk-OYMX7WX6-CtMIqPYA.js","assets/stateDiagram-v2-QKLJ7IA2-QjCaGLFg.js","assets/journeyDiagram-VCZTEJTY-D6ybPNfZ.js","assets/timeline-definition-GMOUNBTQ-DiPD59I4.js","assets/mindmap-definition-QFDTVHPH-Byg9EDEf.js","assets/kanban-definition-6JOO6SKY-B47ibwqw.js","assets/sankeyDiagram-XADWPNL6-OpfFStE8.js","assets/diagram-TYMM5635-BEQMXYiS.js","assets/diagram-MMDJMWI5-jNH5iO6v.js","assets/blockDiagram-DXYQGD6D-D-J4AWOc.js","assets/diagram-5BDNPKRD-Cy3V7bcG.js","assets/architectureDiagram-Q4EWVU46-DtjK6LfO.js","assets/diagram-G4DWMVQ6-DUtdWbLg.js","assets/wardleyDiagram-NUSXRM2D-BWa8t8o-.js"])))=>i.map(i=>d[i]);
2
+ var yE=Object.defineProperty;var xE=(e,t,r)=>t in e?yE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var de=(e,t,r)=>xE(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 a of n)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();function Ql(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yU(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 Qd={exports:{}},Zs={},Kd={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 Yx;function CE(){if(Yx)return Zt;Yx=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"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=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,O){this.props=z,this.context=tt,this.refs=C,this.updater=O||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 S(){}S.prototype=k.prototype;function T(z,tt,O){this.props=z,this.context=tt,this.refs=C,this.updater=O||g}var _=T.prototype=new S;_.constructor=T,x(_,k.prototype),_.isPureReactComponent=!0;var I=Array.isArray,P=Object.prototype.hasOwnProperty,A={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function W(z,tt,O){var mt,dt={},xt=null,Pt=null;if(tt!=null)for(mt in tt.ref!==void 0&&(Pt=tt.ref),tt.key!==void 0&&(xt=""+tt.key),tt)P.call(tt,mt)&&!E.hasOwnProperty(mt)&&(dt[mt]=tt[mt]);var Ft=arguments.length-2;if(Ft===1)dt.children=O;else if(1<Ft){for(var Yt=Array(Ft),yt=0;yt<Ft;yt++)Yt[yt]=arguments[yt+2];dt.children=Yt}if(z&&z.defaultProps)for(mt in Ft=z.defaultProps,Ft)dt[mt]===void 0&&(dt[mt]=Ft[mt]);return{$$typeof:e,type:z,key:xt,ref:Pt,props:dt,_owner:A.current}}function et(z,tt){return{$$typeof:e,type:z.type,key:tt,ref:z.ref,props:z.props,_owner:z._owner}}function M(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function N(z){var tt={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(O){return tt[O]})}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,O,mt,dt){var xt=typeof z;(xt==="undefined"||xt==="boolean")&&(z=null);var Pt=!1;if(z===null)Pt=!0;else switch(xt){case"string":case"number":Pt=!0;break;case"object":switch(z.$$typeof){case e:case t:Pt=!0}}if(Pt)return Pt=z,dt=dt(Pt),z=mt===""?"."+nt(Pt,0):mt,I(dt)?(O="",z!=null&&(O=z.replace(J,"$&/")+"/"),V(dt,tt,O,"",function(yt){return yt})):dt!=null&&(M(dt)&&(dt=et(dt,O+(!dt.key||Pt&&Pt.key===dt.key?"":(""+dt.key).replace(J,"$&/")+"/")+z)),tt.push(dt)),1;if(Pt=0,mt=mt===""?".":mt+":",I(z))for(var Ft=0;Ft<z.length;Ft++){xt=z[Ft];var Yt=mt+nt(xt,Ft);Pt+=V(xt,tt,O,Yt,dt)}else if(Yt=m(z),typeof Yt=="function")for(z=Yt.call(z),Ft=0;!(xt=z.next()).done;)xt=xt.value,Yt=mt+nt(xt,Ft++),Pt+=V(xt,tt,O,Yt,dt);else if(xt==="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 Pt}function j(z,tt,O){if(z==null)return z;var mt=[],dt=0;return V(z,mt,"","",function(xt){return tt.call(O,xt,dt++)}),mt}function q(z){if(z._status===-1){var tt=z._result;tt=tt(),tt.then(function(O){(z._status===0||z._status===-1)&&(z._status=1,z._result=O)},function(O){(z._status===0||z._status===-1)&&(z._status=2,z._result=O)}),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:A};function F(){throw Error("act(...) is not supported in production builds of React.")}return Zt.Children={map:j,forEach:function(z,tt,O){j(z,function(){tt.apply(this,arguments)},O)},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(!M(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=F,Zt.cloneElement=function(z,tt,O){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var mt=x({},z.props),dt=z.key,xt=z.ref,Pt=z._owner;if(tt!=null){if(tt.ref!==void 0&&(xt=tt.ref,Pt=A.current),tt.key!==void 0&&(dt=""+tt.key),z.type&&z.type.defaultProps)var Ft=z.type.defaultProps;for(Yt in tt)P.call(tt,Yt)&&!E.hasOwnProperty(Yt)&&(mt[Yt]=tt[Yt]===void 0&&Ft!==void 0?Ft[Yt]:tt[Yt])}var Yt=arguments.length-2;if(Yt===1)mt.children=O;else if(1<Yt){Ft=Array(Yt);for(var yt=0;yt<Yt;yt++)Ft[yt]=arguments[yt+2];mt.children=Ft}return{$$typeof:e,type:z.type,key:dt,ref:xt,props:mt,_owner:Pt}},Zt.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:a,_context:z},z.Consumer=z},Zt.createElement=W,Zt.createFactory=function(z){var tt=W.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=M,Zt.lazy=function(z){return{$$typeof:f,_payload:{_status:-1,_result:z},_init:q}},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=F,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,O){return G.current.useImperativeHandle(z,tt,O)},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,O){return G.current.useReducer(z,tt,O)},Zt.useRef=function(z){return G.current.useRef(z)},Zt.useState=function(z){return G.current.useState(z)},Zt.useSyncExternalStore=function(z,tt,O){return G.current.useSyncExternalStore(z,tt,O)},Zt.useTransition=function(){return G.current.useTransition()},Zt.version="18.3.1",Zt}var Gx;function em(){return Gx||(Gx=1,Kd.exports=CE()),Kd.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 Xx;function kE(){if(Xx)return Zs;Xx=1;var e=em(),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,a={key:!0,ref:!0,__self:!0,__source:!0};function s(c,h,u){var f,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(f in h)i.call(h,f)&&!a.hasOwnProperty(f)&&(p[f]=h[f]);if(c&&c.defaultProps)for(f in h=c.defaultProps,h)p[f]===void 0&&(p[f]=h[f]);return{$$typeof:t,type:c,key:m,ref:g,props:p,_owner:n.current}}return Zs.Fragment=r,Zs.jsx=s,Zs.jsxs=s,Zs}var Qx;function bE(){return Qx||(Qx=1,Qd.exports=kE()),Qd.exports}var D=bE(),jt=em();const Fa=Ql(jt);var Ch={},Zd={exports:{}},Fr={},Jd={exports:{}},tp={};/**
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 Kx;function vE(){return Kx||(Kx=1,(function(e){function t(R,K){var F=R.length;R.push(K);t:for(;0<F;){var z=F-1>>>1,tt=R[z];if(0<n(tt,K))R[z]=K,R[F]=tt,F=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],F=R.pop();if(F!==K){R[0]=F;t:for(var z=0,tt=R.length,O=tt>>>1;z<O;){var mt=2*(z+1)-1,dt=R[mt],xt=mt+1,Pt=R[xt];if(0>n(dt,F))xt<tt&&0>n(Pt,dt)?(R[z]=Pt,R[xt]=F,z=xt):(R[z]=dt,R[mt]=F,z=mt);else if(xt<tt&&0>n(Pt,F))R[z]=Pt,R[xt]=F,z=xt;else break t}}return K}function n(R,K){var F=R.sortIndex-K.sortIndex;return F!==0?F:R.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var h=[],u=[],f=1,p=null,m=3,g=!1,x=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,S=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 I(R){if(C=!1,_(R),!x)if(r(h)!==null)x=!0,q(P);else{var K=r(u);K!==null&&G(I,K.startTime-R)}}function P(R,K){x=!1,C&&(C=!1,S(W),W=-1),g=!0;var F=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 O=!0;else{var mt=r(u);mt!==null&&G(I,mt.startTime-K),O=!1}return O}finally{p=null,m=F,g=!1}}var A=!1,E=null,W=-1,et=5,M=-1;function N(){return!(e.unstable_now()-M<et)}function J(){if(E!==null){var R=e.unstable_now();M=R;var K=!0;try{K=E(!0,R)}finally{K?nt():(A=!1,E=null)}}else A=!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 q(R){E=R,A||(A=!0,nt())}function G(R,K){W=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,q(P))},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 F=m;m=K;try{return R()}finally{m=F}},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 F=m;m=R;try{return K()}finally{m=F}},e.unstable_scheduleCallback=function(R,K,F){var z=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?z+F:z):F=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=F+tt,R={id:f++,callback:K,priorityLevel:R,startTime:F,expirationTime:tt,sortIndex:-1},F>z?(R.sortIndex=F,t(u,R),r(h)===null&&R===r(u)&&(C?(S(W),W=-1):C=!0,G(I,F-z))):(R.sortIndex=tt,t(h,R),x||g||(x=!0,q(P))),R},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(R){var K=m;return function(){var F=m;m=K;try{return R.apply(this,arguments)}finally{m=F}}}})(tp)),tp}var Zx;function wE(){return Zx||(Zx=1,Jd.exports=vE()),Jd.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 Jx;function SE(){if(Jx)return Fr;Jx=1;var e=em(),t=wE();function r(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,d=1;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d]);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 a(o,l){s(o,l),s(o+"Capture",l)}function s(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]*$/,f={},p={};function m(o){return h.call(p,o)?!0:h.call(f,o)?!1:u.test(o)?p[o]=!0:(f[o]=!0,!1)}function g(o,l,d,y){if(d!==null&&d.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return y?!1:d!==null?!d.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function x(o,l,d,y){if(l===null||typeof l>"u"||g(o,l,d,y))return!0;if(y)return!1;if(d!==null)switch(d.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,d,y,b,w,L){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=y,this.attributeNamespace=b,this.mustUseProperty=d,this.propertyName=o,this.type=l,this.sanitizeURL=w,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 S=/[\-:]([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(S,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(S,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(S,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,d,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,d,b,y)&&(d=null),y||b===null?m(l)&&(d===null?o.removeAttribute(l):o.setAttribute(l,""+d)):b.mustUseProperty?o[b.propertyName]=d===null?b.type===3?!1:"":d:(l=b.attributeName,y=b.attributeNamespace,d===null?o.removeAttribute(l):(b=b.type,d=b===3||b===4&&d===!0?"":""+d,y?o.setAttributeNS(y,l,d):o.setAttribute(l,d))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for("react.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),et=Symbol.for("react.profiler"),M=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"),q=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 F=Object.assign,z;function tt(o){if(z===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);z=l&&l[1]||""}return`
35
+ `+z+o}var O=!1;function mt(o,l){if(!o||O)return"";O=!0;var d=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
+ `),w=y.stack.split(`
37
+ `),L=b.length-1,$=w.length-1;1<=L&&0<=$&&b[L]!==w[$];)$--;for(;1<=L&&0<=$;L--,$--)if(b[L]!==w[$]){if(L!==1||$!==1)do if(L--,$--,0>$||b[L]!==w[$]){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{O=!1,Error.prepareStackTrace=d}return(o=o?o.displayName||o.name:"")?tt(o):""}function dt(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 xt(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 E:return"Fragment";case A:return"Portal";case et:return"Profiler";case W: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 M: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:xt(o.type)||"Memo";case q:l=o._payload,o=o._init;try{return xt(o(l))}catch{}}return null}function Pt(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 xt(l);case 8:return l===W?"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 Ft(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",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),y=""+o[l];if(!o.hasOwnProperty(l)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,w=d.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return b.call(this)},set:function(L){y=""+L,w.call(this,L)}}),Object.defineProperty(o,l,{enumerable:d.enumerable}),{getValue:function(){return y},setValue:function(L){y=""+L},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function It(o){o._valueTracker||(o._valueTracker=yt(o))}function oe(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),y="";return o&&(y=Yt(o)?o.checked?"true":"false":o.value),o=y,o!==d?(l.setValue(o),!0):!1}function se(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 d=l.checked;return F({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??o._wrapperState.initialChecked})}function Be(o,l){var d=l.defaultValue==null?"":l.defaultValue,y=l.checked!=null?l.checked:l.defaultChecked;d=Ft(l.value!=null?l.value:d),o._wrapperState={initialChecked:y,initialValue:d,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 d=Ft(l.value),y=l.type;if(d!=null)y==="number"?(d===0&&o.value===""||o.value!=d)&&(o.value=""+d):o.value!==""+d&&(o.value=""+d);else if(y==="submit"||y==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?fi(o,l.type,d):l.hasOwnProperty("defaultValue")&&fi(o,l.type,Ft(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function pr(o,l,d){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,d||l===o.value||(o.value=l),o.defaultValue=l}d=o.name,d!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,d!==""&&(o.name=d)}function fi(o,l,d){(l!=="number"||se(o.ownerDocument)!==o)&&(d==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+d&&(o.defaultValue=""+d))}var Rr=Array.isArray;function di(o,l,d,y){if(o=o.options,l){l={};for(var b=0;b<d.length;b++)l["$"+d[b]]=!0;for(d=0;d<o.length;d++)b=l.hasOwnProperty("$"+o[d].value),o[d].selected!==b&&(o[d].selected=b),b&&y&&(o[d].defaultSelected=!0)}else{for(d=""+Ft(d),l=null,b=0;b<o.length;b++){if(o[b].value===d){o[b].selected=!0,y&&(o[b].defaultSelected=!0);return}l!==null||o[b].disabled||(l=o[b])}l!==null&&(l.selected=!0)}}function Sn(o,l){if(l.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},l,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function Qo(o,l){var d=l.value;if(d==null){if(d=l.children,l=l.defaultValue,d!=null){if(l!=null)throw Error(r(92));if(Rr(d)){if(1<d.length)throw Error(r(93));d=d[0]}l=d}l==null&&(l=""),d=l}o._wrapperState={initialValue:Ft(d)}}function Tn(o,l){var d=Ft(l.value),y=Ft(l.defaultValue);d!=null&&(d=""+d,d!==o.value&&(o.value=d),l.defaultValue==null&&o.defaultValue!==d&&(o.defaultValue=d)),y!=null&&(o.defaultValue=""+y)}function Oi(o){var l=o.textContent;l===o._wrapperState.initialValue&&l!==""&&l!==null&&(o.value=l)}function at(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"?at(l):o==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Ot,Gt=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,d,y,b){MSApp.execUnsafeLocalFunction(function(){return o(l,d,y,b)})}:o})(function(o,l){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=l;else{for(Ot=Ot||document.createElement("div"),Ot.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=Ot.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function ee(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.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,d){return l==null||typeof l=="boolean"||l===""?"":d||typeof l!="number"||l===0||Me.hasOwnProperty(o)&&Me[o]?(""+l).trim():l+"px"}function $r(o,l){o=o.style;for(var d in l)if(l.hasOwnProperty(d)){var y=d.indexOf("--")===0,b=Qe(d,l[d],y);d==="float"&&(d="cssFloat"),y?o.setProperty(d,b):o[d]=b}}var Ke=F({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 fs(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var _n=null,pi=null,Bn=null;function Ln(o){if(o=Rs(o)){if(typeof _n!="function")throw Error(r(280));var l=o.stateNode;l&&(l=Pc(l),_n(o.stateNode,o.type,l))}}function uc(o){pi?Bn?Bn.push(o):Bn=[o]:pi=o}function fc(){if(pi){var o=pi,l=Bn;if(Bn=pi=null,Ln(o),l)for(o=0;o<l.length;o++)Ln(l[o])}}function Le(o,l){return o(l)}function tn(){}var ds=!1;function ps(o,l,d){if(ds)return o(l,d);ds=!0;try{return Le(o,l,d)}finally{ds=!1,(pi!==null||Bn!==null)&&(tn(),fc())}}function en(o,l){var d=o.stateNode;if(d===null)return null;var y=Pc(d);if(y===null)return null;d=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(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Ko=!1;if(c)try{var En={};Object.defineProperty(En,"passive",{get:function(){Ko=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{Ko=!1}function mf(o,l,d,y,b,w,L,$,H){var rt=Array.prototype.slice.call(arguments,3);try{l.apply(d,rt)}catch(ct){this.onError(ct)}}var ir=!1,Jr=null,co=!1,Zo=null,gs={onError:function(o){ir=!0,Jr=o}};function dc(o,l,d,y,b,w,L,$,H){ir=!1,Jr=null,mf.apply(gs,arguments)}function gi(o,l,d,y,b,w,L,$,H){if(dc.apply(this,arguments),ir){if(ir){var rt=Jr;ir=!1,Jr=null}else throw Error(r(198));co||(co=!0,Zo=rt)}}function Di(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function ms(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 ys(o){if(Di(o)!==o)throw Error(r(188))}function pc(o){var l=o.alternate;if(!l){if(l=Di(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,y=l;;){var b=d.return;if(b===null)break;var w=b.alternate;if(w===null){if(y=b.return,y!==null){d=y;continue}break}if(b.child===w.child){for(w=b.child;w;){if(w===d)return ys(b),o;if(w===y)return ys(b),l;w=w.sibling}throw Error(r(188))}if(d.return!==y.return)d=b,y=w;else{for(var L=!1,$=b.child;$;){if($===d){L=!0,d=b,y=w;break}if($===y){L=!0,y=b,d=w;break}$=$.sibling}if(!L){for($=w.child;$;){if($===d){L=!0,d=w,y=b;break}if($===y){L=!0,y=w,d=b;break}$=$.sibling}if(!L)throw Error(r(189))}}if(d.alternate!==y)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function gc(o){return o=pc(o),o!==null?At(o):null}function At(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var l=At(o);if(l!==null)return l;o=o.sibling}return null}var U=t.unstable_scheduleCallback,ft=t.unstable_cancelCallback,wt=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,xs=t.unstable_LowPriority,Oe=t.unstable_IdlePriority,ho=null,zr=null;function MB(o){if(zr&&typeof zr.onCommitFiberRoot=="function")try{zr.onCommitFiberRoot(ho,o,void 0,(o.current.flags&128)===128)}catch{}}var yi=Math.clz32?Math.clz32:OB,IB=Math.log,PB=Math.LN2;function OB(o){return o>>>=0,o===0?32:31-(IB(o)/PB|0)|0}var mc=64,yc=4194304;function Cs(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 xc(o,l){var d=o.pendingLanes;if(d===0)return 0;var y=0,b=o.suspendedLanes,w=o.pingedLanes,L=d&268435455;if(L!==0){var $=L&~b;$!==0?y=Cs($):(w&=L,w!==0&&(y=Cs(w)))}else L=d&~b,L!==0?y=Cs(L):w!==0&&(y=Cs(w));if(y===0)return 0;if(l!==0&&l!==y&&(l&b)===0&&(b=y&-y,w=l&-l,b>=w||b===16&&(w&4194240)!==0))return l;if((y&4)!==0&&(y|=d&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=y;0<l;)d=31-yi(l),b=1<<d,y|=o[d],l&=~b;return y}function DB(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 RB(o,l){for(var d=o.suspendedLanes,y=o.pingedLanes,b=o.expirationTimes,w=o.pendingLanes;0<w;){var L=31-yi(w),$=1<<L,H=b[L];H===-1?(($&d)===0||($&y)!==0)&&(b[L]=DB($,l)):H<=l&&(o.expiredLanes|=$),w&=~$}}function yf(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Sy(){var o=mc;return mc<<=1,(mc&4194240)===0&&(mc=64),o}function xf(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function ks(o,l,d){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-yi(l),o[l]=d}function $B(o,l){var d=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<d;){var b=31-yi(d),w=1<<b;l[b]=0,y[b]=-1,o[b]=-1,d&=~w}}function Cf(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var y=31-yi(d),b=1<<y;b&l|o[y]&l&&(o[y]|=l),d&=~b}}var fe=0;function Ty(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var _y,kf,By,Ly,Ey,bf=!1,Cc=[],Fn=null,An=null,Mn=null,bs=new Map,vs=new Map,In=[],zB="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 Fy(o,l){switch(o){case"focusin":case"focusout":Fn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":bs.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(l.pointerId)}}function ws(o,l,d,y,b,w){return o===null||o.nativeEvent!==w?(o={blockedOn:l,domEventName:d,eventSystemFlags:y,nativeEvent:w,targetContainers:[b]},l!==null&&(l=Rs(l),l!==null&&kf(l)),o):(o.eventSystemFlags|=y,l=o.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),o)}function NB(o,l,d,y,b){switch(l){case"focusin":return Fn=ws(Fn,o,l,d,y,b),!0;case"dragenter":return An=ws(An,o,l,d,y,b),!0;case"mouseover":return Mn=ws(Mn,o,l,d,y,b),!0;case"pointerover":var w=b.pointerId;return bs.set(w,ws(bs.get(w)||null,o,l,d,y,b)),!0;case"gotpointercapture":return w=b.pointerId,vs.set(w,ws(vs.get(w)||null,o,l,d,y,b)),!0}return!1}function Ay(o){var l=uo(o.target);if(l!==null){var d=Di(l);if(d!==null){if(l=d.tag,l===13){if(l=ms(d),l!==null){o.blockedOn=l,Ey(o.priority,function(){By(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function kc(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=wf(o.domEventName,o.eventSystemFlags,l[0],o.nativeEvent);if(d===null){d=o.nativeEvent;var y=new d.constructor(d.type,d);Ze=y,d.target.dispatchEvent(y),Ze=null}else return l=Rs(d),l!==null&&kf(l),o.blockedOn=d,!1;l.shift()}return!0}function My(o,l,d){kc(o)&&d.delete(l)}function jB(){bf=!1,Fn!==null&&kc(Fn)&&(Fn=null),An!==null&&kc(An)&&(An=null),Mn!==null&&kc(Mn)&&(Mn=null),bs.forEach(My),vs.forEach(My)}function Ss(o,l){o.blockedOn===l&&(o.blockedOn=null,bf||(bf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jB)))}function Ts(o){function l(b){return Ss(b,o)}if(0<Cc.length){Ss(Cc[0],o);for(var d=1;d<Cc.length;d++){var y=Cc[d];y.blockedOn===o&&(y.blockedOn=null)}}for(Fn!==null&&Ss(Fn,o),An!==null&&Ss(An,o),Mn!==null&&Ss(Mn,o),bs.forEach(l),vs.forEach(l),d=0;d<In.length;d++)y=In[d],y.blockedOn===o&&(y.blockedOn=null);for(;0<In.length&&(d=In[0],d.blockedOn===null);)Ay(d),d.blockedOn===null&&In.shift()}var Jo=I.ReactCurrentBatchConfig,bc=!0;function qB(o,l,d,y){var b=fe,w=Jo.transition;Jo.transition=null;try{fe=1,vf(o,l,d,y)}finally{fe=b,Jo.transition=w}}function WB(o,l,d,y){var b=fe,w=Jo.transition;Jo.transition=null;try{fe=4,vf(o,l,d,y)}finally{fe=b,Jo.transition=w}}function vf(o,l,d,y){if(bc){var b=wf(o,l,d,y);if(b===null)Nf(o,l,y,vc,d),Fy(o,y);else if(NB(b,o,l,d,y))y.stopPropagation();else if(Fy(o,y),l&4&&-1<zB.indexOf(o)){for(;b!==null;){var w=Rs(b);if(w!==null&&_y(w),w=wf(o,l,d,y),w===null&&Nf(o,l,y,vc,d),w===b)break;b=w}b!==null&&y.stopPropagation()}else Nf(o,l,y,null,d)}}var vc=null;function wf(o,l,d,y){if(vc=null,o=fs(y),o=uo(o),o!==null)if(l=Di(o),l===null)o=null;else if(d=l.tag,d===13){if(o=ms(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null);return vc=o,null}function Iy(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 xs:return 16;case Oe:return 536870912;default:return 16}default:return 16}}var Pn=null,Sf=null,wc=null;function Py(){if(wc)return wc;var o,l=Sf,d=l.length,y,b="value"in Pn?Pn.value:Pn.textContent,w=b.length;for(o=0;o<d&&l[o]===b[o];o++);var L=d-o;for(y=1;y<=L&&l[d-y]===b[w-y];y++);return wc=b.slice(o,1<y?1-y:void 0)}function Sc(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 Tc(){return!0}function Oy(){return!1}function Nr(o){function l(d,y,b,w,L){this._reactName=d,this._targetInst=b,this.type=y,this.nativeEvent=w,this.target=L,this.currentTarget=null;for(var $ in o)o.hasOwnProperty($)&&(d=o[$],this[$]=d?d(w):w[$]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Tc:Oy,this.isPropagationStopped=Oy,this}return F(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Tc)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Tc)},persist:function(){},isPersistent:Tc}),l}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tf=Nr(ta),_s=F({},ta,{view:0,detail:0}),HB=Nr(_s),_f,Bf,Bs,_c=F({},_s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,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!==Bs&&(Bs&&o.type==="mousemove"?(_f=o.screenX-Bs.screenX,Bf=o.screenY-Bs.screenY):Bf=_f=0,Bs=o),_f)},movementY:function(o){return"movementY"in o?o.movementY:Bf}}),Dy=Nr(_c),UB=F({},_c,{dataTransfer:0}),VB=Nr(UB),YB=F({},_s,{relatedTarget:0}),Lf=Nr(YB),GB=F({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),XB=Nr(GB),QB=F({},ta,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),KB=Nr(QB),ZB=F({},ta,{data:0}),Ry=Nr(ZB),JB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tL={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"},eL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rL(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=eL[o])?!!l[o]:!1}function Ef(){return rL}var iL=F({},_s,{key:function(o){if(o.key){var l=JB[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=Sc(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?tL[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(o){return o.type==="keypress"?Sc(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Sc(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),nL=Nr(iL),oL=F({},_c,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$y=Nr(oL),aL=F({},_s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),sL=Nr(aL),lL=F({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),cL=Nr(lL),hL=F({},_c,{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}),uL=Nr(hL),fL=[9,13,27,32],Ff=c&&"CompositionEvent"in window,Ls=null;c&&"documentMode"in document&&(Ls=document.documentMode);var dL=c&&"TextEvent"in window&&!Ls,zy=c&&(!Ff||Ls&&8<Ls&&11>=Ls),Ny=" ",jy=!1;function qy(o,l){switch(o){case"keyup":return fL.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wy(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ea=!1;function pL(o,l){switch(o){case"compositionend":return Wy(l);case"keypress":return l.which!==32?null:(jy=!0,Ny);case"textInput":return o=l.data,o===Ny&&jy?null:o;default:return null}}function gL(o,l){if(ea)return o==="compositionend"||!Ff&&qy(o,l)?(o=Py(),wc=Sf=Pn=null,ea=!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 zy&&l.locale!=="ko"?null:l.data;default:return null}}var mL={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 Hy(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!mL[o.type]:l==="textarea"}function Uy(o,l,d,y){uc(y),l=Ac(l,"onChange"),0<l.length&&(d=new Tf("onChange","change",null,d,y),o.push({event:d,listeners:l}))}var Es=null,Fs=null;function yL(o){c0(o,0)}function Bc(o){var l=aa(o);if(oe(l))return o}function xL(o,l){if(o==="change")return l}var Vy=!1;if(c){var Af;if(c){var Mf="oninput"in document;if(!Mf){var Yy=document.createElement("div");Yy.setAttribute("oninput","return;"),Mf=typeof Yy.oninput=="function"}Af=Mf}else Af=!1;Vy=Af&&(!document.documentMode||9<document.documentMode)}function Gy(){Es&&(Es.detachEvent("onpropertychange",Xy),Fs=Es=null)}function Xy(o){if(o.propertyName==="value"&&Bc(Fs)){var l=[];Uy(l,Fs,o,fs(o)),ps(yL,l)}}function CL(o,l,d){o==="focusin"?(Gy(),Es=l,Fs=d,Es.attachEvent("onpropertychange",Xy)):o==="focusout"&&Gy()}function kL(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Bc(Fs)}function bL(o,l){if(o==="click")return Bc(l)}function vL(o,l){if(o==="input"||o==="change")return Bc(l)}function wL(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var xi=typeof Object.is=="function"?Object.is:wL;function As(o,l){if(xi(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),y=Object.keys(l);if(d.length!==y.length)return!1;for(y=0;y<d.length;y++){var b=d[y];if(!h.call(l,b)||!xi(o[b],l[b]))return!1}return!0}function Qy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Ky(o,l){var d=Qy(o);o=0;for(var y;d;){if(d.nodeType===3){if(y=o+d.textContent.length,o<=l&&y>=l)return{node:d,offset:l-o};o=y}t:{for(;d;){if(d.nextSibling){d=d.nextSibling;break t}d=d.parentNode}d=void 0}d=Qy(d)}}function Zy(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Zy(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Jy(){for(var o=window,l=se();l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=se(o.document)}return l}function If(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 SL(o){var l=Jy(),d=o.focusedElem,y=o.selectionRange;if(l!==d&&d&&d.ownerDocument&&Zy(d.ownerDocument.documentElement,d)){if(y!==null&&If(d)){if(l=y.start,o=y.end,o===void 0&&(o=l),"selectionStart"in d)d.selectionStart=l,d.selectionEnd=Math.min(o,d.value.length);else if(o=(l=d.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var b=d.textContent.length,w=Math.min(y.start,b);y=y.end===void 0?w:Math.min(y.end,b),!o.extend&&w>y&&(b=y,y=w,w=b),b=Ky(d,w);var L=Ky(d,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(),w>y?(o.addRange(l),o.extend(L.node,L.offset)):(l.setEnd(L.node,L.offset),o.addRange(l)))}}for(l=[],o=d;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<l.length;d++)o=l[d],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var TL=c&&"documentMode"in document&&11>=document.documentMode,ra=null,Pf=null,Ms=null,Of=!1;function t0(o,l,d){var y=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Of||ra==null||ra!==se(y)||(y=ra,"selectionStart"in y&&If(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}),Ms&&As(Ms,y)||(Ms=y,y=Ac(Pf,"onSelect"),0<y.length&&(l=new Tf("onSelect","select",null,l,d),o.push({event:l,listeners:y}),l.target=ra)))}function Lc(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var ia={animationend:Lc("Animation","AnimationEnd"),animationiteration:Lc("Animation","AnimationIteration"),animationstart:Lc("Animation","AnimationStart"),transitionend:Lc("Transition","TransitionEnd")},Df={},e0={};c&&(e0=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Ec(o){if(Df[o])return Df[o];if(!ia[o])return o;var l=ia[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in e0)return Df[o]=l[d];return o}var r0=Ec("animationend"),i0=Ec("animationiteration"),n0=Ec("animationstart"),o0=Ec("transitionend"),a0=new Map,s0="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 On(o,l){a0.set(o,l),a(l,[o])}for(var Rf=0;Rf<s0.length;Rf++){var $f=s0[Rf],_L=$f.toLowerCase(),BL=$f[0].toUpperCase()+$f.slice(1);On(_L,"on"+BL)}On(r0,"onAnimationEnd"),On(i0,"onAnimationIteration"),On(n0,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(o0,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Is="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(" "),LL=new Set("cancel close invalid load scroll toggle".split(" ").concat(Is));function l0(o,l,d){var y=o.type||"unknown-event";o.currentTarget=d,gi(y,l,void 0,o),o.currentTarget=null}function c0(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var y=o[d],b=y.event;y=y.listeners;t:{var w=void 0;if(l)for(var L=y.length-1;0<=L;L--){var $=y[L],H=$.instance,rt=$.currentTarget;if($=$.listener,H!==w&&b.isPropagationStopped())break t;l0(b,$,rt),w=H}else for(L=0;L<y.length;L++){if($=y[L],H=$.instance,rt=$.currentTarget,$=$.listener,H!==w&&b.isPropagationStopped())break t;l0(b,$,rt),w=H}}}if(co)throw o=Zo,co=!1,Zo=null,o}function xe(o,l){var d=l[Vf];d===void 0&&(d=l[Vf]=new Set);var y=o+"__bubble";d.has(y)||(h0(l,o,2,!1),d.add(y))}function zf(o,l,d){var y=0;l&&(y|=4),h0(d,o,y,l)}var Fc="_reactListening"+Math.random().toString(36).slice(2);function Ps(o){if(!o[Fc]){o[Fc]=!0,i.forEach(function(d){d!=="selectionchange"&&(LL.has(d)||zf(d,!1,o),zf(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Fc]||(l[Fc]=!0,zf("selectionchange",!1,l))}}function h0(o,l,d,y){switch(Iy(l)){case 1:var b=qB;break;case 4:b=WB;break;default:b=vf}d=b.bind(null,l,d,o),b=void 0,!Ko||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),y?b!==void 0?o.addEventListener(l,d,{capture:!0,passive:b}):o.addEventListener(l,d,!0):b!==void 0?o.addEventListener(l,d,{passive:b}):o.addEventListener(l,d,!1)}function Nf(o,l,d,y,b){var w=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=uo($),L===null)return;if(H=L.tag,H===5||H===6){y=w=L;continue t}$=$.parentNode}}y=y.return}ps(function(){var rt=w,ct=fs(d),ht=[];t:{var lt=a0.get(o);if(lt!==void 0){var Ct=Tf,vt=o;switch(o){case"keypress":if(Sc(d)===0)break t;case"keydown":case"keyup":Ct=nL;break;case"focusin":vt="focus",Ct=Lf;break;case"focusout":vt="blur",Ct=Lf;break;case"beforeblur":case"afterblur":Ct=Lf;break;case"click":if(d.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ct=Dy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ct=VB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ct=sL;break;case r0:case i0:case n0:Ct=XB;break;case o0:Ct=cL;break;case"scroll":Ct=HB;break;case"wheel":Ct=uL;break;case"copy":case"cut":case"paste":Ct=KB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ct=$y}var Tt=(l&4)!==0,Ie=!Tt&&o==="scroll",Q=Tt?lt!==null?lt+"Capture":null:lt;Tt=[];for(var Y=rt,Z;Y!==null;){Z=Y;var gt=Z.stateNode;if(Z.tag===5&&gt!==null&&(Z=gt,Q!==null&&(gt=en(Y,Q),gt!=null&&Tt.push(Os(Y,gt,Z)))),Ie)break;Y=Y.return}0<Tt.length&&(lt=new Ct(lt,vt,null,d,ct),ht.push({event:lt,listeners:Tt}))}}if((l&7)===0){t:{if(lt=o==="mouseover"||o==="pointerover",Ct=o==="mouseout"||o==="pointerout",lt&&d!==Ze&&(vt=d.relatedTarget||d.fromElement)&&(uo(vt)||vt[rn]))break t;if((Ct||lt)&&(lt=ct.window===ct?ct:(lt=ct.ownerDocument)?lt.defaultView||lt.parentWindow:window,Ct?(vt=d.relatedTarget||d.toElement,Ct=rt,vt=vt?uo(vt):null,vt!==null&&(Ie=Di(vt),vt!==Ie||vt.tag!==5&&vt.tag!==6)&&(vt=null)):(Ct=null,vt=rt),Ct!==vt)){if(Tt=Dy,gt="onMouseLeave",Q="onMouseEnter",Y="mouse",(o==="pointerout"||o==="pointerover")&&(Tt=$y,gt="onPointerLeave",Q="onPointerEnter",Y="pointer"),Ie=Ct==null?lt:aa(Ct),Z=vt==null?lt:aa(vt),lt=new Tt(gt,Y+"leave",Ct,d,ct),lt.target=Ie,lt.relatedTarget=Z,gt=null,uo(ct)===rt&&(Tt=new Tt(Q,Y+"enter",vt,d,ct),Tt.target=Z,Tt.relatedTarget=Ie,gt=Tt),Ie=gt,Ct&&vt)e:{for(Tt=Ct,Q=vt,Y=0,Z=Tt;Z;Z=na(Z))Y++;for(Z=0,gt=Q;gt;gt=na(gt))Z++;for(;0<Y-Z;)Tt=na(Tt),Y--;for(;0<Z-Y;)Q=na(Q),Z--;for(;Y--;){if(Tt===Q||Q!==null&&Tt===Q.alternate)break e;Tt=na(Tt),Q=na(Q)}Tt=null}else Tt=null;Ct!==null&&u0(ht,lt,Ct,Tt,!1),vt!==null&&Ie!==null&&u0(ht,Ie,vt,Tt,!0)}}t:{if(lt=rt?aa(rt):window,Ct=lt.nodeName&&lt.nodeName.toLowerCase(),Ct==="select"||Ct==="input"&&lt.type==="file")var Et=xL;else if(Hy(lt))if(Vy)Et=vL;else{Et=kL;var Dt=CL}else(Ct=lt.nodeName)&&Ct.toLowerCase()==="input"&&(lt.type==="checkbox"||lt.type==="radio")&&(Et=bL);if(Et&&(Et=Et(o,rt))){Uy(ht,Et,d,ct);break t}Dt&&Dt(o,lt,rt),o==="focusout"&&(Dt=lt._wrapperState)&&Dt.controlled&&lt.type==="number"&&fi(lt,"number",lt.value)}switch(Dt=rt?aa(rt):window,o){case"focusin":(Hy(Dt)||Dt.contentEditable==="true")&&(ra=Dt,Pf=rt,Ms=null);break;case"focusout":Ms=Pf=ra=null;break;case"mousedown":Of=!0;break;case"contextmenu":case"mouseup":case"dragend":Of=!1,t0(ht,d,ct);break;case"selectionchange":if(TL)break;case"keydown":case"keyup":t0(ht,d,ct)}var Rt;if(Ff)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 ea?qy(o,d)&&(Ut="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(Ut="onCompositionStart");Ut&&(zy&&d.locale!=="ko"&&(ea||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&ea&&(Rt=Py()):(Pn=ct,Sf="value"in Pn?Pn.value:Pn.textContent,ea=!0)),Dt=Ac(rt,Ut),0<Dt.length&&(Ut=new Ry(Ut,o,null,d,ct),ht.push({event:Ut,listeners:Dt}),Rt?Ut.data=Rt:(Rt=Wy(d),Rt!==null&&(Ut.data=Rt)))),(Rt=dL?pL(o,d):gL(o,d))&&(rt=Ac(rt,"onBeforeInput"),0<rt.length&&(ct=new Ry("onBeforeInput","beforeinput",null,d,ct),ht.push({event:ct,listeners:rt}),ct.data=Rt))}c0(ht,l)})}function Os(o,l,d){return{instance:o,listener:l,currentTarget:d}}function Ac(o,l){for(var d=l+"Capture",y=[];o!==null;){var b=o,w=b.stateNode;b.tag===5&&w!==null&&(b=w,w=en(o,d),w!=null&&y.unshift(Os(o,w,b)),w=en(o,l),w!=null&&y.push(Os(o,w,b))),o=o.return}return y}function na(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function u0(o,l,d,y,b){for(var w=l._reactName,L=[];d!==null&&d!==y;){var $=d,H=$.alternate,rt=$.stateNode;if(H!==null&&H===y)break;$.tag===5&&rt!==null&&($=rt,b?(H=en(d,w),H!=null&&L.unshift(Os(d,H,$))):b||(H=en(d,w),H!=null&&L.push(Os(d,H,$)))),d=d.return}L.length!==0&&o.push({event:l,listeners:L})}var EL=/\r\n?/g,FL=/\u0000|\uFFFD/g;function f0(o){return(typeof o=="string"?o:""+o).replace(EL,`
39
+ `).replace(FL,"")}function Mc(o,l,d){if(l=f0(l),f0(o)!==l&&d)throw Error(r(425))}function Ic(){}var jf=null,qf=null;function Wf(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 Hf=typeof setTimeout=="function"?setTimeout:void 0,AL=typeof clearTimeout=="function"?clearTimeout:void 0,d0=typeof Promise=="function"?Promise:void 0,ML=typeof queueMicrotask=="function"?queueMicrotask:typeof d0<"u"?function(o){return d0.resolve(null).then(o).catch(IL)}:Hf;function IL(o){setTimeout(function(){throw o})}function Uf(o,l){var d=l,y=0;do{var b=d.nextSibling;if(o.removeChild(d),b&&b.nodeType===8)if(d=b.data,d==="/$"){if(y===0){o.removeChild(b),Ts(l);return}y--}else d!=="$"&&d!=="$?"&&d!=="$!"||y++;d=b}while(d);Ts(l)}function Dn(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 p0(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"){if(l===0)return o;l--}else d==="/$"&&l++}o=o.previousSibling}return null}var oa=Math.random().toString(36).slice(2),Ri="__reactFiber$"+oa,Ds="__reactProps$"+oa,rn="__reactContainer$"+oa,Vf="__reactEvents$"+oa,PL="__reactListeners$"+oa,OL="__reactHandles$"+oa;function uo(o){var l=o[Ri];if(l)return l;for(var d=o.parentNode;d;){if(l=d[rn]||d[Ri]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=p0(o);o!==null;){if(d=o[Ri])return d;o=p0(o)}return l}o=d,d=o.parentNode}return null}function Rs(o){return o=o[Ri]||o[rn],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function aa(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(r(33))}function Pc(o){return o[Ds]||null}var Yf=[],sa=-1;function Rn(o){return{current:o}}function Ce(o){0>sa||(o.current=Yf[sa],Yf[sa]=null,sa--)}function me(o,l){sa++,Yf[sa]=o.current,o.current=l}var $n={},nr=Rn($n),Tr=Rn(!1),fo=$n;function la(o,l){var d=o.type.contextTypes;if(!d)return $n;var y=o.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===l)return y.__reactInternalMemoizedMaskedChildContext;var b={},w;for(w in d)b[w]=l[w];return y&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=b),b}function _r(o){return o=o.childContextTypes,o!=null}function Oc(){Ce(Tr),Ce(nr)}function g0(o,l,d){if(nr.current!==$n)throw Error(r(168));me(nr,l),me(Tr,d)}function m0(o,l,d){var y=o.stateNode;if(l=l.childContextTypes,typeof y.getChildContext!="function")return d;y=y.getChildContext();for(var b in y)if(!(b in l))throw Error(r(108,Pt(o)||"Unknown",b));return F({},d,y)}function Dc(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||$n,fo=nr.current,me(nr,o),me(Tr,Tr.current),!0}function y0(o,l,d){var y=o.stateNode;if(!y)throw Error(r(169));d?(o=m0(o,l,fo),y.__reactInternalMemoizedMergedChildContext=o,Ce(Tr),Ce(nr),me(nr,o)):Ce(Tr),me(Tr,d)}var nn=null,Rc=!1,Gf=!1;function x0(o){nn===null?nn=[o]:nn.push(o)}function DL(o){Rc=!0,x0(o)}function zn(){if(!Gf&&nn!==null){Gf=!0;var o=0,l=fe;try{var d=nn;for(fe=1;o<d.length;o++){var y=d[o];do y=y(!0);while(y!==null)}nn=null,Rc=!1}catch(b){throw nn!==null&&(nn=nn.slice(o+1)),U(Ue,zn),b}finally{fe=l,Gf=!1}}return null}var ca=[],ha=0,$c=null,zc=0,ei=[],ri=0,po=null,on=1,an="";function go(o,l){ca[ha++]=zc,ca[ha++]=$c,$c=o,zc=l}function C0(o,l,d){ei[ri++]=on,ei[ri++]=an,ei[ri++]=po,po=o;var y=on;o=an;var b=32-yi(y)-1;y&=~(1<<b),d+=1;var w=32-yi(l)+b;if(30<w){var L=b-b%5;w=(y&(1<<L)-1).toString(32),y>>=L,b-=L,on=1<<32-yi(l)+b|d<<b|y,an=w+o}else on=1<<w|d<<b|y,an=o}function Xf(o){o.return!==null&&(go(o,1),C0(o,1,0))}function Qf(o){for(;o===$c;)$c=ca[--ha],ca[ha]=null,zc=ca[--ha],ca[ha]=null;for(;o===po;)po=ei[--ri],ei[ri]=null,an=ei[--ri],ei[ri]=null,on=ei[--ri],ei[ri]=null}var jr=null,qr=null,ve=!1,Ci=null;function k0(o,l){var d=ai(5,null,null,0);d.elementType="DELETED",d.stateNode=l,d.return=o,l=o.deletions,l===null?(o.deletions=[d],o.flags|=16):l.push(d)}function b0(o,l){switch(o.tag){case 5:var d=o.type;return l=l.nodeType!==1||d.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(o.stateNode=l,jr=o,qr=Dn(l.firstChild),!0):!1;case 6:return l=o.pendingProps===""||l.nodeType!==3?null:l,l!==null?(o.stateNode=l,jr=o,qr=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(d=po!==null?{id:on,overflow:an}:null,o.memoizedState={dehydrated:l,treeContext:d,retryLane:1073741824},d=ai(18,null,null,0),d.stateNode=l,d.return=o,o.child=d,jr=o,qr=null,!0):!1;default:return!1}}function Kf(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Zf(o){if(ve){var l=qr;if(l){var d=l;if(!b0(o,l)){if(Kf(o))throw Error(r(418));l=Dn(d.nextSibling);var y=jr;l&&b0(o,l)?k0(y,d):(o.flags=o.flags&-4097|2,ve=!1,jr=o)}}else{if(Kf(o))throw Error(r(418));o.flags=o.flags&-4097|2,ve=!1,jr=o}}}function v0(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;jr=o}function Nc(o){if(o!==jr)return!1;if(!ve)return v0(o),ve=!0,!1;var l;if((l=o.tag!==3)&&!(l=o.tag!==5)&&(l=o.type,l=l!=="head"&&l!=="body"&&!Wf(o.type,o.memoizedProps)),l&&(l=qr)){if(Kf(o))throw w0(),Error(r(418));for(;l;)k0(o,l),l=Dn(l.nextSibling)}if(v0(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 d=o.data;if(d==="/$"){if(l===0){qr=Dn(o.nextSibling);break t}l--}else d!=="$"&&d!=="$!"&&d!=="$?"||l++}o=o.nextSibling}qr=null}}else qr=jr?Dn(o.stateNode.nextSibling):null;return!0}function w0(){for(var o=qr;o;)o=Dn(o.nextSibling)}function ua(){qr=jr=null,ve=!1}function Jf(o){Ci===null?Ci=[o]:Ci.push(o)}var RL=I.ReactCurrentBatchConfig;function $s(o,l,d){if(o=d.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(r(309));var y=d.stateNode}if(!y)throw Error(r(147,o));var b=y,w=""+o;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===w?l.ref:(l=function(L){var $=b.refs;L===null?delete $[w]:$[w]=L},l._stringRef=w,l)}if(typeof o!="string")throw Error(r(284));if(!d._owner)throw Error(r(290,o))}return o}function jc(o,l){throw o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o))}function S0(o){var l=o._init;return l(o._payload)}function T0(o){function l(Q,Y){if(o){var Z=Q.deletions;Z===null?(Q.deletions=[Y],Q.flags|=16):Z.push(Y)}}function d(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=Yn(Q,Y),Q.index=0,Q.sibling=null,Q}function w(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=Hd(Z,Q.mode,gt),Y.return=Q,Y):(Y=b(Y,Z),Y.return=Q,Y)}function H(Q,Y,Z,gt){var Et=Z.type;return Et===E?ct(Q,Y,Z.props.children,gt,Z.key):Y!==null&&(Y.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===q&&S0(Et)===Y.type)?(gt=b(Y,Z.props),gt.ref=$s(Q,Y,Z),gt.return=Q,gt):(gt=uh(Z.type,Z.key,Z.props,null,Q.mode,gt),gt.ref=$s(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=Ud(Z,Q.mode,gt),Y.return=Q,Y):(Y=b(Y,Z.children||[]),Y.return=Q,Y)}function ct(Q,Y,Z,gt,Et){return Y===null||Y.tag!==7?(Y=wo(Z,Q.mode,gt,Et),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=Hd(""+Y,Q.mode,Z),Y.return=Q,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case P:return Z=uh(Y.type,Y.key,Y.props,null,Q.mode,Z),Z.ref=$s(Q,null,Y),Z.return=Q,Z;case A:return Y=Ud(Y,Q.mode,Z),Y.return=Q,Y;case q:var gt=Y._init;return ht(Q,gt(Y._payload),Z)}if(Rr(Y)||K(Y))return Y=wo(Y,Q.mode,Z,null),Y.return=Q,Y;jc(Q,Y)}return null}function lt(Q,Y,Z,gt){var Et=Y!==null?Y.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number")return Et!==null?null:$(Q,Y,""+Z,gt);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case P:return Z.key===Et?H(Q,Y,Z,gt):null;case A:return Z.key===Et?rt(Q,Y,Z,gt):null;case q:return Et=Z._init,lt(Q,Y,Et(Z._payload),gt)}if(Rr(Z)||K(Z))return Et!==null?null:ct(Q,Y,Z,gt,null);jc(Q,Z)}return null}function Ct(Q,Y,Z,gt,Et){if(typeof gt=="string"&&gt!==""||typeof gt=="number")return Q=Q.get(Z)||null,$(Y,Q,""+gt,Et);if(typeof gt=="object"&&gt!==null){switch(gt.$$typeof){case P:return Q=Q.get(gt.key===null?Z:gt.key)||null,H(Y,Q,gt,Et);case A:return Q=Q.get(gt.key===null?Z:gt.key)||null,rt(Y,Q,gt,Et);case q:var Dt=gt._init;return Ct(Q,Y,Z,Dt(gt._payload),Et)}if(Rr(gt)||K(gt))return Q=Q.get(Z)||null,ct(Y,Q,gt,Et,null);jc(Y,gt)}return null}function vt(Q,Y,Z,gt){for(var Et=null,Dt=null,Rt=Y,Ut=Y=0,Ge=null;Rt!==null&&Ut<Z.length;Ut++){Rt.index>Ut?(Ge=Rt,Rt=null):Ge=Rt.sibling;var le=lt(Q,Rt,Z[Ut],gt);if(le===null){Rt===null&&(Rt=Ge);break}o&&Rt&&le.alternate===null&&l(Q,Rt),Y=w(le,Y,Ut),Dt===null?Et=le:Dt.sibling=le,Dt=le,Rt=Ge}if(Ut===Z.length)return d(Q,Rt),ve&&go(Q,Ut),Et;if(Rt===null){for(;Ut<Z.length;Ut++)Rt=ht(Q,Z[Ut],gt),Rt!==null&&(Y=w(Rt,Y,Ut),Dt===null?Et=Rt:Dt.sibling=Rt,Dt=Rt);return ve&&go(Q,Ut),Et}for(Rt=y(Q,Rt);Ut<Z.length;Ut++)Ge=Ct(Rt,Q,Ut,Z[Ut],gt),Ge!==null&&(o&&Ge.alternate!==null&&Rt.delete(Ge.key===null?Ut:Ge.key),Y=w(Ge,Y,Ut),Dt===null?Et=Ge:Dt.sibling=Ge,Dt=Ge);return o&&Rt.forEach(function(Gn){return l(Q,Gn)}),ve&&go(Q,Ut),Et}function Tt(Q,Y,Z,gt){var Et=K(Z);if(typeof Et!="function")throw Error(r(150));if(Z=Et.call(Z),Z==null)throw Error(r(151));for(var Dt=Et=null,Rt=Y,Ut=Y=0,Ge=null,le=Z.next();Rt!==null&&!le.done;Ut++,le=Z.next()){Rt.index>Ut?(Ge=Rt,Rt=null):Ge=Rt.sibling;var Gn=lt(Q,Rt,le.value,gt);if(Gn===null){Rt===null&&(Rt=Ge);break}o&&Rt&&Gn.alternate===null&&l(Q,Rt),Y=w(Gn,Y,Ut),Dt===null?Et=Gn:Dt.sibling=Gn,Dt=Gn,Rt=Ge}if(le.done)return d(Q,Rt),ve&&go(Q,Ut),Et;if(Rt===null){for(;!le.done;Ut++,le=Z.next())le=ht(Q,le.value,gt),le!==null&&(Y=w(le,Y,Ut),Dt===null?Et=le:Dt.sibling=le,Dt=le);return ve&&go(Q,Ut),Et}for(Rt=y(Q,Rt);!le.done;Ut++,le=Z.next())le=Ct(Rt,Q,Ut,le.value,gt),le!==null&&(o&&le.alternate!==null&&Rt.delete(le.key===null?Ut:le.key),Y=w(le,Y,Ut),Dt===null?Et=le:Dt.sibling=le,Dt=le);return o&&Rt.forEach(function(mE){return l(Q,mE)}),ve&&go(Q,Ut),Et}function Ie(Q,Y,Z,gt){if(typeof Z=="object"&&Z!==null&&Z.type===E&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case P:t:{for(var Et=Z.key,Dt=Y;Dt!==null;){if(Dt.key===Et){if(Et=Z.type,Et===E){if(Dt.tag===7){d(Q,Dt.sibling),Y=b(Dt,Z.props.children),Y.return=Q,Q=Y;break t}}else if(Dt.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===q&&S0(Et)===Dt.type){d(Q,Dt.sibling),Y=b(Dt,Z.props),Y.ref=$s(Q,Dt,Z),Y.return=Q,Q=Y;break t}d(Q,Dt);break}else l(Q,Dt);Dt=Dt.sibling}Z.type===E?(Y=wo(Z.props.children,Q.mode,gt,Z.key),Y.return=Q,Q=Y):(gt=uh(Z.type,Z.key,Z.props,null,Q.mode,gt),gt.ref=$s(Q,Y,Z),gt.return=Q,Q=gt)}return L(Q);case A:t:{for(Dt=Z.key;Y!==null;){if(Y.key===Dt)if(Y.tag===4&&Y.stateNode.containerInfo===Z.containerInfo&&Y.stateNode.implementation===Z.implementation){d(Q,Y.sibling),Y=b(Y,Z.children||[]),Y.return=Q,Q=Y;break t}else{d(Q,Y);break}else l(Q,Y);Y=Y.sibling}Y=Ud(Z,Q.mode,gt),Y.return=Q,Q=Y}return L(Q);case q:return Dt=Z._init,Ie(Q,Y,Dt(Z._payload),gt)}if(Rr(Z))return vt(Q,Y,Z,gt);if(K(Z))return Tt(Q,Y,Z,gt);jc(Q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,Y!==null&&Y.tag===6?(d(Q,Y.sibling),Y=b(Y,Z),Y.return=Q,Q=Y):(d(Q,Y),Y=Hd(Z,Q.mode,gt),Y.return=Q,Q=Y),L(Q)):d(Q,Y)}return Ie}var fa=T0(!0),_0=T0(!1),qc=Rn(null),Wc=null,da=null,td=null;function ed(){td=da=Wc=null}function rd(o){var l=qc.current;Ce(qc),o._currentValue=l}function id(o,l,d){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===d)break;o=o.return}}function pa(o,l){Wc=o,td=da=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(td!==o)if(o={context:o,memoizedValue:l,next:null},da===null){if(Wc===null)throw Error(r(308));da=o,Wc.dependencies={lanes:0,firstContext:o}}else da=da.next=o;return l}var mo=null;function nd(o){mo===null?mo=[o]:mo.push(o)}function B0(o,l,d,y){var b=l.interleaved;return b===null?(d.next=d,nd(l)):(d.next=b.next,b.next=d),l.interleaved=d,sn(o,y)}function sn(o,l){o.lanes|=l;var d=o.alternate;for(d!==null&&(d.lanes|=l),d=o,o=o.return;o!==null;)o.childLanes|=l,d=o.alternate,d!==null&&(d.childLanes|=l),d=o,o=o.return;return d.tag===3?d.stateNode:null}var Nn=!1;function od(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L0(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 jn(o,l,d){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,(ae&2)!==0){var b=y.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),y.pending=l,sn(o,d)}return b=y.interleaved,b===null?(l.next=l,nd(y)):(l.next=b.next,b.next=l),y.interleaved=l,sn(o,d)}function Hc(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194240)!==0)){var y=l.lanes;y&=o.pendingLanes,d|=y,l.lanes=d,Cf(o,d)}}function E0(o,l){var d=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,d===y)){var b=null,w=null;if(d=d.firstBaseUpdate,d!==null){do{var L={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};w===null?b=w=L:w=w.next=L,d=d.next}while(d!==null);w===null?b=w=l:w=w.next=l}else b=w=l;d={baseState:y.baseState,firstBaseUpdate:b,lastBaseUpdate:w,shared:y.shared,effects:y.effects},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}function Uc(o,l,d,y){var b=o.updateQueue;Nn=!1;var w=b.firstBaseUpdate,L=b.lastBaseUpdate,$=b.shared.pending;if($!==null){b.shared.pending=null;var H=$,rt=H.next;H.next=null,L===null?w=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(w!==null){var ht=b.baseState;L=0,ct=rt=H=null,$=w;do{var lt=$.lane,Ct=$.eventTime;if((y&lt)===lt){ct!==null&&(ct=ct.next={eventTime:Ct,lane:0,tag:$.tag,payload:$.payload,callback:$.callback,next:null});t:{var vt=o,Tt=$;switch(lt=l,Ct=d,Tt.tag){case 1:if(vt=Tt.payload,typeof vt=="function"){ht=vt.call(Ct,ht,lt);break t}ht=vt;break t;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=Tt.payload,lt=typeof vt=="function"?vt.call(Ct,ht,lt):vt,lt==null)break t;ht=F({},ht,lt);break t;case 2:Nn=!0}}$.callback!==null&&$.lane!==0&&(o.flags|=64,lt=b.effects,lt===null?b.effects=[$]:lt.push($))}else Ct={eventTime:Ct,lane:lt,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ct===null?(rt=ct=Ct,H=ht):ct=ct.next=Ct,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 w===null&&(b.shared.lanes=0);Co|=L,o.lanes=L,o.memoizedState=ht}}function F0(o,l,d){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=d,typeof b!="function")throw Error(r(191,b));b.call(y)}}}var zs={},$i=Rn(zs),Ns=Rn(zs),js=Rn(zs);function yo(o){if(o===zs)throw Error(r(174));return o}function ad(o,l){switch(me(js,l),me(Ns,o),me($i,zs),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 ga(){Ce($i),Ce(Ns),Ce(js)}function A0(o){yo(js.current);var l=yo($i.current),d=ut(l,o.type);l!==d&&(me(Ns,o),me($i,d))}function sd(o){Ns.current===o&&(Ce($i),Ce(Ns))}var Se=Rn(0);function Vc(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.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 ld=[];function cd(){for(var o=0;o<ld.length;o++)ld[o]._workInProgressVersionPrimary=null;ld.length=0}var Yc=I.ReactCurrentDispatcher,hd=I.ReactCurrentBatchConfig,xo=0,Te=null,ze=null,Ve=null,Gc=!1,qs=!1,Ws=0,$L=0;function or(){throw Error(r(321))}function ud(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!xi(o[d],l[d]))return!1;return!0}function fd(o,l,d,y,b,w){if(xo=w,Te=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Yc.current=o===null||o.memoizedState===null?qL:WL,o=d(y,b),qs){w=0;do{if(qs=!1,Ws=0,25<=w)throw Error(r(301));w+=1,Ve=ze=null,l.updateQueue=null,Yc.current=HL,o=d(y,b)}while(qs)}if(Yc.current=Kc,l=ze!==null&&ze.next!==null,xo=0,Ve=ze=Te=null,Gc=!1,l)throw Error(r(300));return o}function dd(){var o=Ws!==0;return Ws=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 Hs(o,l){return typeof l=="function"?l(o):l}function pd(o){var l=ni(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var y=ze,b=y.baseQueue,w=d.pending;if(w!==null){if(b!==null){var L=b.next;b.next=w.next,w.next=L}y.baseQueue=b=w,d.pending=null}if(b!==null){w=b.next,y=y.baseState;var $=L=null,H=null,rt=w;do{var ct=rt.lane;if((xo&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,Co|=ct}rt=rt.next}while(rt!==null&&rt!==w);H===null?L=y:H.next=$,xi(y,l.memoizedState)||(Br=!0),l.memoizedState=y,l.baseState=L,l.baseQueue=H,d.lastRenderedState=y}if(o=d.interleaved,o!==null){b=o;do w=b.lane,Te.lanes|=w,Co|=w,b=b.next;while(b!==o)}else b===null&&(d.lanes=0);return[l.memoizedState,d.dispatch]}function gd(o){var l=ni(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var y=d.dispatch,b=d.pending,w=l.memoizedState;if(b!==null){d.pending=null;var L=b=b.next;do w=o(w,L.action),L=L.next;while(L!==b);xi(w,l.memoizedState)||(Br=!0),l.memoizedState=w,l.baseQueue===null&&(l.baseState=w),d.lastRenderedState=w}return[w,y]}function M0(){}function I0(o,l){var d=Te,y=ni(),b=l(),w=!xi(y.memoizedState,b);if(w&&(y.memoizedState=b,Br=!0),y=y.queue,md(D0.bind(null,d,y,o),[o]),y.getSnapshot!==l||w||Ve!==null&&Ve.memoizedState.tag&1){if(d.flags|=2048,Us(9,O0.bind(null,d,y,b,l),void 0,null),Ye===null)throw Error(r(349));(xo&30)!==0||P0(d,l,b)}return b}function P0(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=Te.updateQueue,l===null?(l={lastEffect:null,stores:null},Te.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function O0(o,l,d,y){l.value=d,l.getSnapshot=y,R0(l)&&$0(o)}function D0(o,l,d){return d(function(){R0(l)&&$0(o)})}function R0(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!xi(o,d)}catch{return!0}}function $0(o){var l=sn(o,1);l!==null&&wi(l,o,1,-1)}function z0(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:Hs,lastRenderedState:o},l.queue=o,o=o.dispatch=jL.bind(null,Te,o),[l.memoizedState,o]}function Us(o,l,d,y){return o={tag:o,create:l,destroy:d,deps:y,next:null},l=Te.updateQueue,l===null?(l={lastEffect:null,stores:null},Te.updateQueue=l,l.lastEffect=o.next=o):(d=l.lastEffect,d===null?l.lastEffect=o.next=o:(y=d.next,d.next=o,o.next=y,l.lastEffect=o)),o}function N0(){return ni().memoizedState}function Xc(o,l,d,y){var b=zi();Te.flags|=o,b.memoizedState=Us(1|l,d,void 0,y===void 0?null:y)}function Qc(o,l,d,y){var b=ni();y=y===void 0?null:y;var w=void 0;if(ze!==null){var L=ze.memoizedState;if(w=L.destroy,y!==null&&ud(y,L.deps)){b.memoizedState=Us(l,d,w,y);return}}Te.flags|=o,b.memoizedState=Us(1|l,d,w,y)}function j0(o,l){return Xc(8390656,8,o,l)}function md(o,l){return Qc(2048,8,o,l)}function q0(o,l){return Qc(4,2,o,l)}function W0(o,l){return Qc(4,4,o,l)}function H0(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 U0(o,l,d){return d=d!=null?d.concat([o]):null,Qc(4,4,H0.bind(null,l,o),d)}function yd(){}function V0(o,l){var d=ni();l=l===void 0?null:l;var y=d.memoizedState;return y!==null&&l!==null&&ud(l,y[1])?y[0]:(d.memoizedState=[o,l],o)}function Y0(o,l){var d=ni();l=l===void 0?null:l;var y=d.memoizedState;return y!==null&&l!==null&&ud(l,y[1])?y[0]:(o=o(),d.memoizedState=[o,l],o)}function G0(o,l,d){return(xo&21)===0?(o.baseState&&(o.baseState=!1,Br=!0),o.memoizedState=d):(xi(d,l)||(d=Sy(),Te.lanes|=d,Co|=d,o.baseState=!0),l)}function zL(o,l){var d=fe;fe=d!==0&&4>d?d:4,o(!0);var y=hd.transition;hd.transition={};try{o(!1),l()}finally{fe=d,hd.transition=y}}function X0(){return ni().memoizedState}function NL(o,l,d){var y=Un(o);if(d={lane:y,action:d,hasEagerState:!1,eagerState:null,next:null},Q0(o))K0(l,d);else if(d=B0(o,l,d,y),d!==null){var b=mr();wi(d,o,y,b),Z0(d,l,y)}}function jL(o,l,d){var y=Un(o),b={lane:y,action:d,hasEagerState:!1,eagerState:null,next:null};if(Q0(o))K0(l,b);else{var w=o.alternate;if(o.lanes===0&&(w===null||w.lanes===0)&&(w=l.lastRenderedReducer,w!==null))try{var L=l.lastRenderedState,$=w(L,d);if(b.hasEagerState=!0,b.eagerState=$,xi($,L)){var H=l.interleaved;H===null?(b.next=b,nd(l)):(b.next=H.next,H.next=b),l.interleaved=b;return}}catch{}finally{}d=B0(o,l,b,y),d!==null&&(b=mr(),wi(d,o,y,b),Z0(d,l,y))}}function Q0(o){var l=o.alternate;return o===Te||l!==null&&l===Te}function K0(o,l){qs=Gc=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function Z0(o,l,d){if((d&4194240)!==0){var y=l.lanes;y&=o.pendingLanes,d|=y,l.lanes=d,Cf(o,d)}}var Kc={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},qL={readContext:ii,useCallback:function(o,l){return zi().memoizedState=[o,l===void 0?null:l],o},useContext:ii,useEffect:j0,useImperativeHandle:function(o,l,d){return d=d!=null?d.concat([o]):null,Xc(4194308,4,H0.bind(null,l,o),d)},useLayoutEffect:function(o,l){return Xc(4194308,4,o,l)},useInsertionEffect:function(o,l){return Xc(4,2,o,l)},useMemo:function(o,l){var d=zi();return l=l===void 0?null:l,o=o(),d.memoizedState=[o,l],o},useReducer:function(o,l,d){var y=zi();return l=d!==void 0?d(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=NL.bind(null,Te,o),[y.memoizedState,o]},useRef:function(o){var l=zi();return o={current:o},l.memoizedState=o},useState:z0,useDebugValue:yd,useDeferredValue:function(o){return zi().memoizedState=o},useTransition:function(){var o=z0(!1),l=o[0];return o=zL.bind(null,o[1]),zi().memoizedState=o,[l,o]},useMutableSource:function(){},useSyncExternalStore:function(o,l,d){var y=Te,b=zi();if(ve){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Ye===null)throw Error(r(349));(xo&30)!==0||P0(y,l,d)}b.memoizedState=d;var w={value:d,getSnapshot:l};return b.queue=w,j0(D0.bind(null,y,w,o),[o]),y.flags|=2048,Us(9,O0.bind(null,y,w,d,l),void 0,null),d},useId:function(){var o=zi(),l=Ye.identifierPrefix;if(ve){var d=an,y=on;d=(y&~(1<<32-yi(y)-1)).toString(32)+d,l=":"+l+"R"+d,d=Ws++,0<d&&(l+="H"+d.toString(32)),l+=":"}else d=$L++,l=":"+l+"r"+d.toString(32)+":";return o.memoizedState=l},unstable_isNewReconciler:!1},WL={readContext:ii,useCallback:V0,useContext:ii,useEffect:md,useImperativeHandle:U0,useInsertionEffect:q0,useLayoutEffect:W0,useMemo:Y0,useReducer:pd,useRef:N0,useState:function(){return pd(Hs)},useDebugValue:yd,useDeferredValue:function(o){var l=ni();return G0(l,ze.memoizedState,o)},useTransition:function(){var o=pd(Hs)[0],l=ni().memoizedState;return[o,l]},useMutableSource:M0,useSyncExternalStore:I0,useId:X0,unstable_isNewReconciler:!1},HL={readContext:ii,useCallback:V0,useContext:ii,useEffect:md,useImperativeHandle:U0,useInsertionEffect:q0,useLayoutEffect:W0,useMemo:Y0,useReducer:gd,useRef:N0,useState:function(){return gd(Hs)},useDebugValue:yd,useDeferredValue:function(o){var l=ni();return ze===null?l.memoizedState=o:G0(l,ze.memoizedState,o)},useTransition:function(){var o=gd(Hs)[0],l=ni().memoizedState;return[o,l]},useMutableSource:M0,useSyncExternalStore:I0,useId:X0,unstable_isNewReconciler:!1};function ki(o,l){if(o&&o.defaultProps){l=F({},l),o=o.defaultProps;for(var d in o)l[d]===void 0&&(l[d]=o[d]);return l}return l}function xd(o,l,d,y){l=o.memoizedState,d=d(y,l),d=d==null?l:F({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var Zc={isMounted:function(o){return(o=o._reactInternals)?Di(o)===o:!1},enqueueSetState:function(o,l,d){o=o._reactInternals;var y=mr(),b=Un(o),w=ln(y,b);w.payload=l,d!=null&&(w.callback=d),l=jn(o,w,b),l!==null&&(wi(l,o,b,y),Hc(l,o,b))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var y=mr(),b=Un(o),w=ln(y,b);w.tag=1,w.payload=l,d!=null&&(w.callback=d),l=jn(o,w,b),l!==null&&(wi(l,o,b,y),Hc(l,o,b))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=mr(),y=Un(o),b=ln(d,y);b.tag=2,l!=null&&(b.callback=l),l=jn(o,b,y),l!==null&&(wi(l,o,y,d),Hc(l,o,y))}};function J0(o,l,d,y,b,w,L){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,w,L):l.prototype&&l.prototype.isPureReactComponent?!As(d,y)||!As(b,w):!0}function tx(o,l,d){var y=!1,b=$n,w=l.contextType;return typeof w=="object"&&w!==null?w=ii(w):(b=_r(l)?fo:nr.current,y=l.contextTypes,w=(y=y!=null)?la(o,b):$n),l=new l(d,w),o.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Zc,o.stateNode=l,l._reactInternals=o,y&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=b,o.__reactInternalMemoizedMaskedChildContext=w),l}function ex(o,l,d,y){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,y),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,y),l.state!==o&&Zc.enqueueReplaceState(l,l.state,null)}function Cd(o,l,d,y){var b=o.stateNode;b.props=d,b.state=o.memoizedState,b.refs={},od(o);var w=l.contextType;typeof w=="object"&&w!==null?b.context=ii(w):(w=_r(l)?fo:nr.current,b.context=la(o,w)),b.state=o.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(xd(o,l,w,d),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&&Zc.enqueueReplaceState(b,b.state,null),Uc(o,d,b,y),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308)}function ma(o,l){try{var d="",y=l;do d+=dt(y),y=y.return;while(y);var b=d}catch(w){b=`
40
+ Error generating stack: `+w.message+`
41
+ `+w.stack}return{value:o,source:l,stack:b,digest:null}}function kd(o,l,d){return{value:o,source:null,stack:d??null,digest:l??null}}function bd(o,l){try{console.error(l.value)}catch(d){setTimeout(function(){throw d})}}var UL=typeof WeakMap=="function"?WeakMap:Map;function rx(o,l,d){d=ln(-1,d),d.tag=3,d.payload={element:null};var y=l.value;return d.callback=function(){oh||(oh=!0,Dd=y),bd(o,l)},d}function ix(o,l,d){d=ln(-1,d),d.tag=3;var y=o.type.getDerivedStateFromError;if(typeof y=="function"){var b=l.value;d.payload=function(){return y(b)},d.callback=function(){bd(o,l)}}var w=o.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(d.callback=function(){bd(o,l),typeof y!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var L=l.stack;this.componentDidCatch(l.value,{componentStack:L!==null?L:""})}),d}function nx(o,l,d){var y=o.pingCache;if(y===null){y=o.pingCache=new UL;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(d)||(b.add(d),o=oE.bind(null,o,l,d),l.then(o,o))}function ox(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 ax(o,l,d,y,b){return(o.mode&1)===0?(o===l?o.flags|=65536:(o.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(l=ln(-1,1),l.tag=2,jn(d,l,1))),d.lanes|=1),o):(o.flags|=65536,o.lanes=b,o)}var VL=I.ReactCurrentOwner,Br=!1;function gr(o,l,d,y){l.child=o===null?_0(l,null,d,y):fa(l,o.child,d,y)}function sx(o,l,d,y,b){d=d.render;var w=l.ref;return pa(l,b),y=fd(o,l,d,y,w,b),d=dd(),o!==null&&!Br?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~b,cn(o,l,b)):(ve&&d&&Xf(l),l.flags|=1,gr(o,l,y,b),l.child)}function lx(o,l,d,y,b){if(o===null){var w=d.type;return typeof w=="function"&&!Wd(w)&&w.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(l.tag=15,l.type=w,cx(o,l,w,y,b)):(o=uh(d.type,null,y,l,l.mode,b),o.ref=l.ref,o.return=l,l.child=o)}if(w=o.child,(o.lanes&b)===0){var L=w.memoizedProps;if(d=d.compare,d=d!==null?d:As,d(L,y)&&o.ref===l.ref)return cn(o,l,b)}return l.flags|=1,o=Yn(w,y),o.ref=l.ref,o.return=l,l.child=o}function cx(o,l,d,y,b){if(o!==null){var w=o.memoizedProps;if(As(w,y)&&o.ref===l.ref)if(Br=!1,l.pendingProps=y=w,(o.lanes&b)!==0)(o.flags&131072)!==0&&(Br=!0);else return l.lanes=o.lanes,cn(o,l,b)}return vd(o,l,d,y,b)}function hx(o,l,d){var y=l.pendingProps,b=y.children,w=o!==null?o.memoizedState:null;if(y.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(xa,Wr),Wr|=d;else{if((d&1073741824)===0)return o=w!==null?w.baseLanes|d:d,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:o,cachePool:null,transitions:null},l.updateQueue=null,me(xa,Wr),Wr|=o,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=w!==null?w.baseLanes:d,me(xa,Wr),Wr|=y}else w!==null?(y=w.baseLanes|d,l.memoizedState=null):y=d,me(xa,Wr),Wr|=y;return gr(o,l,b,d),l.child}function ux(o,l){var d=l.ref;(o===null&&d!==null||o!==null&&o.ref!==d)&&(l.flags|=512,l.flags|=2097152)}function vd(o,l,d,y,b){var w=_r(d)?fo:nr.current;return w=la(l,w),pa(l,b),d=fd(o,l,d,y,w,b),y=dd(),o!==null&&!Br?(l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~b,cn(o,l,b)):(ve&&y&&Xf(l),l.flags|=1,gr(o,l,d,b),l.child)}function fx(o,l,d,y,b){if(_r(d)){var w=!0;Dc(l)}else w=!1;if(pa(l,b),l.stateNode===null)th(o,l),tx(l,d,y),Cd(l,d,y,b),y=!0;else if(o===null){var L=l.stateNode,$=l.memoizedProps;L.props=$;var H=L.context,rt=d.contextType;typeof rt=="object"&&rt!==null?rt=ii(rt):(rt=_r(d)?fo:nr.current,rt=la(l,rt));var ct=d.getDerivedStateFromProps,ht=typeof ct=="function"||typeof L.getSnapshotBeforeUpdate=="function";ht||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||($!==y||H!==rt)&&ex(l,L,y,rt),Nn=!1;var lt=l.memoizedState;L.state=lt,Uc(l,y,L,b),H=l.memoizedState,$!==y||lt!==H||Tr.current||Nn?(typeof ct=="function"&&(xd(l,d,ct,y),H=l.memoizedState),($=Nn||J0(l,d,$,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,L0(o,l),$=l.memoizedProps,rt=l.type===l.elementType?$:ki(l.type,$),L.props=rt,ht=l.pendingProps,lt=L.context,H=d.contextType,typeof H=="object"&&H!==null?H=ii(H):(H=_r(d)?fo:nr.current,H=la(l,H));var Ct=d.getDerivedStateFromProps;(ct=typeof Ct=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||($!==ht||lt!==H)&&ex(l,L,y,H),Nn=!1,lt=l.memoizedState,L.state=lt,Uc(l,y,L,b);var vt=l.memoizedState;$!==ht||lt!==vt||Tr.current||Nn?(typeof Ct=="function"&&(xd(l,d,Ct,y),vt=l.memoizedState),(rt=Nn||J0(l,d,rt,y,lt,vt,H)||!1)?(ct||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(y,vt,H),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(y,vt,H)),typeof L.componentDidUpdate=="function"&&(l.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof L.componentDidUpdate!="function"||$===o.memoizedProps&&lt===o.memoizedState||(l.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||$===o.memoizedProps&&lt===o.memoizedState||(l.flags|=1024),l.memoizedProps=y,l.memoizedState=vt),L.props=y,L.state=vt,L.context=H,y=rt):(typeof L.componentDidUpdate!="function"||$===o.memoizedProps&&lt===o.memoizedState||(l.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||$===o.memoizedProps&&lt===o.memoizedState||(l.flags|=1024),y=!1)}return wd(o,l,d,y,w,b)}function wd(o,l,d,y,b,w){ux(o,l);var L=(l.flags&128)!==0;if(!y&&!L)return b&&y0(l,d,!1),cn(o,l,w);y=l.stateNode,VL.current=l;var $=L&&typeof d.getDerivedStateFromError!="function"?null:y.render();return l.flags|=1,o!==null&&L?(l.child=fa(l,o.child,null,w),l.child=fa(l,null,$,w)):gr(o,l,$,w),l.memoizedState=y.state,b&&y0(l,d,!0),l.child}function dx(o){var l=o.stateNode;l.pendingContext?g0(o,l.pendingContext,l.pendingContext!==l.context):l.context&&g0(o,l.context,!1),ad(o,l.containerInfo)}function px(o,l,d,y,b){return ua(),Jf(b),l.flags|=256,gr(o,l,d,y),l.child}var Sd={dehydrated:null,treeContext:null,retryLane:0};function Td(o){return{baseLanes:o,cachePool:null,transitions:null}}function gx(o,l,d){var y=l.pendingProps,b=Se.current,w=!1,L=(l.flags&128)!==0,$;if(($=L)||($=o!==null&&o.memoizedState===null?!1:(b&2)!==0),$?(w=!0,l.flags&=-129):(o===null||o.memoizedState!==null)&&(b|=1),me(Se,b&1),o===null)return Zf(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,w?(y=l.mode,w=l.child,L={mode:"hidden",children:L},(y&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=L):w=fh(L,y,0,null),o=wo(o,y,d,null),w.return=l,o.return=l,w.sibling=o,l.child=w,l.child.memoizedState=Td(d),l.memoizedState=Sd,o):_d(l,L));if(b=o.memoizedState,b!==null&&($=b.dehydrated,$!==null))return YL(o,l,L,y,$,b,d);if(w){w=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=Yn(b,H),y.subtreeFlags=b.subtreeFlags&14680064),$!==null?w=Yn($,w):(w=wo(w,L,d,null),w.flags|=2),w.return=l,y.return=l,y.sibling=w,l.child=y,y=w,w=l.child,L=o.child.memoizedState,L=L===null?Td(d):{baseLanes:L.baseLanes|d,cachePool:null,transitions:L.transitions},w.memoizedState=L,w.childLanes=o.childLanes&~d,l.memoizedState=Sd,y}return w=o.child,o=w.sibling,y=Yn(w,{mode:"visible",children:y.children}),(l.mode&1)===0&&(y.lanes=d),y.return=l,y.sibling=null,o!==null&&(d=l.deletions,d===null?(l.deletions=[o],l.flags|=16):d.push(o)),l.child=y,l.memoizedState=null,y}function _d(o,l){return l=fh({mode:"visible",children:l},o.mode,0,null),l.return=o,o.child=l}function Jc(o,l,d,y){return y!==null&&Jf(y),fa(l,o.child,null,d),o=_d(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function YL(o,l,d,y,b,w,L){if(d)return l.flags&256?(l.flags&=-257,y=kd(Error(r(422))),Jc(o,l,L,y)):l.memoizedState!==null?(l.child=o.child,l.flags|=128,null):(w=y.fallback,b=l.mode,y=fh({mode:"visible",children:y.children},b,0,null),w=wo(w,b,L,null),w.flags|=2,y.return=l,w.return=l,y.sibling=w,l.child=y,(l.mode&1)!==0&&fa(l,o.child,null,L),l.child.memoizedState=Td(L),l.memoizedState=Sd,w);if((l.mode&1)===0)return Jc(o,l,L,null);if(b.data==="$!"){if(y=b.nextSibling&&b.nextSibling.dataset,y)var $=y.dgst;return y=$,w=Error(r(419)),y=kd(w,y,void 0),Jc(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!==w.retryLane&&(w.retryLane=b,sn(o,b),wi(y,o,b,-1))}return qd(),y=kd(Error(r(421))),Jc(o,l,L,y)}return b.data==="$?"?(l.flags|=128,l.child=o.child,l=aE.bind(null,o),b._reactRetry=l,null):(o=w.treeContext,qr=Dn(b.nextSibling),jr=l,ve=!0,Ci=null,o!==null&&(ei[ri++]=on,ei[ri++]=an,ei[ri++]=po,on=o.id,an=o.overflow,po=l),l=_d(l,y.children),l.flags|=4096,l)}function mx(o,l,d){o.lanes|=l;var y=o.alternate;y!==null&&(y.lanes|=l),id(o.return,l,d)}function Bd(o,l,d,y,b){var w=o.memoizedState;w===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:y,tail:d,tailMode:b}:(w.isBackwards=l,w.rendering=null,w.renderingStartTime=0,w.last=y,w.tail=d,w.tailMode=b)}function yx(o,l,d){var y=l.pendingProps,b=y.revealOrder,w=y.tail;if(gr(o,l,y.children,d),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&&mx(o,d,l);else if(o.tag===19)mx(o,d,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(d=l.child,b=null;d!==null;)o=d.alternate,o!==null&&Vc(o)===null&&(b=d),d=d.sibling;d=b,d===null?(b=l.child,l.child=null):(b=d.sibling,d.sibling=null),Bd(l,!1,b,d,w);break;case"backwards":for(d=null,b=l.child,l.child=null;b!==null;){if(o=b.alternate,o!==null&&Vc(o)===null){l.child=b;break}o=b.sibling,b.sibling=d,d=b,b=o}Bd(l,!0,d,null,w);break;case"together":Bd(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function th(o,l){(l.mode&1)===0&&o!==null&&(o.alternate=null,l.alternate=null,l.flags|=2)}function cn(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),Co|=l.lanes,(d&l.childLanes)===0)return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=Yn(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=Yn(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function GL(o,l,d){switch(l.tag){case 3:dx(l),ua();break;case 5:A0(l);break;case 1:_r(l.type)&&Dc(l);break;case 4:ad(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):(d&l.child.childLanes)!==0?gx(o,l,d):(me(Se,Se.current&1),o=cn(o,l,d),o!==null?o.sibling:null);me(Se,Se.current&1);break;case 19:if(y=(d&l.childLanes)!==0,(o.flags&128)!==0){if(y)return yx(o,l,d);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,hx(o,l,d)}return cn(o,l,d)}var xx,Ld,Cx,kx;xx=function(o,l){for(var d=l.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},Ld=function(){},Cx=function(o,l,d,y){var b=o.memoizedProps;if(b!==y){o=l.stateNode,yo($i.current);var w=null;switch(d){case"input":b=He(o,b),y=He(o,y),w=[];break;case"select":b=F({},b,{value:void 0}),y=F({},y,{value:void 0}),w=[];break;case"textarea":b=Sn(o,b),y=Sn(o,y),w=[];break;default:typeof b.onClick!="function"&&typeof y.onClick=="function"&&(o.onclick=Ic)}be(d,y);var L;d=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)&&(d||(d={}),d[L]="")}else rt!=="dangerouslySetInnerHTML"&&rt!=="children"&&rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&rt!=="autoFocus"&&(n.hasOwnProperty(rt)?w||(w=[]):(w=w||[]).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)||(d||(d={}),d[L]="");for(L in H)H.hasOwnProperty(L)&&$[L]!==H[L]&&(d||(d={}),d[L]=H[L])}else d||(w||(w=[]),w.push(rt,d)),d=H;else rt==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,$=$?$.__html:void 0,H!=null&&$!==H&&(w=w||[]).push(rt,H)):rt==="children"?typeof H!="string"&&typeof H!="number"||(w=w||[]).push(rt,""+H):rt!=="suppressContentEditableWarning"&&rt!=="suppressHydrationWarning"&&(n.hasOwnProperty(rt)?(H!=null&&rt==="onScroll"&&xe("scroll",o),w||$===H||(w=[])):(w=w||[]).push(rt,H))}d&&(w=w||[]).push("style",d);var rt=w;(l.updateQueue=rt)&&(l.flags|=4)}},kx=function(o,l,d,y){d!==y&&(l.flags|=4)};function Vs(o,l){if(!ve)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var y=null;d!==null;)d.alternate!==null&&(y=d),d=d.sibling;y===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function ar(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,y=0;if(l)for(var b=o.child;b!==null;)d|=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;)d|=b.lanes|b.childLanes,y|=b.subtreeFlags,y|=b.flags,b.return=o,b=b.sibling;return o.subtreeFlags|=y,o.childLanes=d,l}function XL(o,l,d){var y=l.pendingProps;switch(Qf(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ar(l),null;case 1:return _r(l.type)&&Oc(),ar(l),null;case 3:return y=l.stateNode,ga(),Ce(Tr),Ce(nr),cd(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(o===null||o.child===null)&&(Nc(l)?l.flags|=4:o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ci!==null&&(zd(Ci),Ci=null))),Ld(o,l),ar(l),null;case 5:sd(l);var b=yo(js.current);if(d=l.type,o!==null&&l.stateNode!=null)Cx(o,l,d,y,b),o.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!y){if(l.stateNode===null)throw Error(r(166));return ar(l),null}if(o=yo($i.current),Nc(l)){y=l.stateNode,d=l.type;var w=l.memoizedProps;switch(y[Ri]=l,y[Ds]=w,o=(l.mode&1)!==0,d){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<Is.length;b++)xe(Is[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,w),xe("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!w.multiple},xe("invalid",y);break;case"textarea":Qo(y,w),xe("invalid",y)}be(d,w),b=null;for(var L in w)if(w.hasOwnProperty(L)){var $=w[L];L==="children"?typeof $=="string"?y.textContent!==$&&(w.suppressHydrationWarning!==!0&&Mc(y.textContent,$,o),b=["children",$]):typeof $=="number"&&y.textContent!==""+$&&(w.suppressHydrationWarning!==!0&&Mc(y.textContent,$,o),b=["children",""+$]):n.hasOwnProperty(L)&&$!=null&&L==="onScroll"&&xe("scroll",y)}switch(d){case"input":It(y),pr(y,w,!0);break;case"textarea":It(y),Oi(y);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(y.onclick=Ic)}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=at(d)),o==="http://www.w3.org/1999/xhtml"?d==="script"?(o=L.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof y.is=="string"?o=L.createElement(d,{is:y.is}):(o=L.createElement(d),d==="select"&&(L=o,y.multiple?L.multiple=!0:y.size&&(L.size=y.size))):o=L.createElementNS(o,d),o[Ri]=l,o[Ds]=y,xx(o,l,!1,!1),l.stateNode=o;t:{switch(L=Sr(d,y),d){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<Is.length;b++)xe(Is[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=F({},y,{value:void 0}),xe("invalid",o);break;case"textarea":Qo(o,y),b=Sn(o,y),xe("invalid",o);break;default:b=y}be(d,b),$=b;for(w in $)if($.hasOwnProperty(w)){var H=$[w];w==="style"?$r(o,H):w==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&Gt(o,H)):w==="children"?typeof H=="string"?(d!=="textarea"||H!=="")&&ee(o,H):typeof H=="number"&&ee(o,""+H):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(n.hasOwnProperty(w)?H!=null&&w==="onScroll"&&xe("scroll",o):H!=null&&_(o,w,H,L))}switch(d){case"input":It(o),pr(o,y,!1);break;case"textarea":It(o),Oi(o);break;case"option":y.value!=null&&o.setAttribute("value",""+Ft(y.value));break;case"select":o.multiple=!!y.multiple,w=y.value,w!=null?di(o,!!y.multiple,w,!1):y.defaultValue!=null&&di(o,!!y.multiple,y.defaultValue,!0);break;default:typeof b.onClick=="function"&&(o.onclick=Ic)}switch(d){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 ar(l),null;case 6:if(o&&l.stateNode!=null)kx(o,l,o.memoizedProps,y);else{if(typeof y!="string"&&l.stateNode===null)throw Error(r(166));if(d=yo(js.current),yo($i.current),Nc(l)){if(y=l.stateNode,d=l.memoizedProps,y[Ri]=l,(w=y.nodeValue!==d)&&(o=jr,o!==null))switch(o.tag){case 3:Mc(y.nodeValue,d,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Mc(y.nodeValue,d,(o.mode&1)!==0)}w&&(l.flags|=4)}else y=(d.nodeType===9?d:d.ownerDocument).createTextNode(y),y[Ri]=l,l.stateNode=y}return ar(l),null;case 13:if(Ce(Se),y=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(ve&&qr!==null&&(l.mode&1)!==0&&(l.flags&128)===0)w0(),ua(),l.flags|=98560,w=!1;else if(w=Nc(l),y!==null&&y.dehydrated!==null){if(o===null){if(!w)throw Error(r(318));if(w=l.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(r(317));w[Ri]=l}else ua(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ar(l),w=!1}else Ci!==null&&(zd(Ci),Ci=null),w=!0;if(!w)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=d,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):qd())),l.updateQueue!==null&&(l.flags|=4),ar(l),null);case 4:return ga(),Ld(o,l),o===null&&Ps(l.stateNode.containerInfo),ar(l),null;case 10:return rd(l.type._context),ar(l),null;case 17:return _r(l.type)&&Oc(),ar(l),null;case 19:if(Ce(Se),w=l.memoizedState,w===null)return ar(l),null;if(y=(l.flags&128)!==0,L=w.rendering,L===null)if(y)Vs(w,!1);else{if(Ne!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(L=Vc(o),L!==null){for(l.flags|=128,Vs(w,!1),y=L.updateQueue,y!==null&&(l.updateQueue=y,l.flags|=4),l.subtreeFlags=0,y=d,d=l.child;d!==null;)w=d,o=y,w.flags&=14680066,L=w.alternate,L===null?(w.childLanes=0,w.lanes=o,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=L.childLanes,w.lanes=L.lanes,w.child=L.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=L.memoizedProps,w.memoizedState=L.memoizedState,w.updateQueue=L.updateQueue,w.type=L.type,o=L.dependencies,w.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),d=d.sibling;return me(Se,Se.current&1|2),l.child}o=o.sibling}w.tail!==null&&Kt()>Ca&&(l.flags|=128,y=!0,Vs(w,!1),l.lanes=4194304)}else{if(!y)if(o=Vc(L),o!==null){if(l.flags|=128,y=!0,d=o.updateQueue,d!==null&&(l.updateQueue=d,l.flags|=4),Vs(w,!0),w.tail===null&&w.tailMode==="hidden"&&!L.alternate&&!ve)return ar(l),null}else 2*Kt()-w.renderingStartTime>Ca&&d!==1073741824&&(l.flags|=128,y=!0,Vs(w,!1),l.lanes=4194304);w.isBackwards?(L.sibling=l.child,l.child=L):(d=w.last,d!==null?d.sibling=L:l.child=L,w.last=L)}return w.tail!==null?(l=w.tail,w.rendering=l,w.tail=l.sibling,w.renderingStartTime=Kt(),l.sibling=null,d=Se.current,me(Se,y?d&1|2:d&1),l):(ar(l),null);case 22:case 23:return jd(),y=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==y&&(l.flags|=8192),y&&(l.mode&1)!==0?(Wr&1073741824)!==0&&(ar(l),l.subtreeFlags&6&&(l.flags|=8192)):ar(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function QL(o,l){switch(Qf(l),l.tag){case 1:return _r(l.type)&&Oc(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ga(),Ce(Tr),Ce(nr),cd(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 5:return sd(l),null;case 13:if(Ce(Se),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));ua()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return Ce(Se),null;case 4:return ga(),null;case 10:return rd(l.type._context),null;case 22:case 23:return jd(),null;case 24:return null;default:return null}}var eh=!1,sr=!1,KL=typeof WeakSet=="function"?WeakSet:Set,bt=null;function ya(o,l){var d=o.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(y){Fe(o,l,y)}else d.current=null}function Ed(o,l,d){try{d()}catch(y){Fe(o,l,y)}}var bx=!1;function ZL(o,l){if(jf=bc,o=Jy(),If(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else t:{d=(d=o.ownerDocument)&&d.defaultView||window;var y=d.getSelection&&d.getSelection();if(y&&y.rangeCount!==0){d=y.anchorNode;var b=y.anchorOffset,w=y.focusNode;y=y.focusOffset;try{d.nodeType,w.nodeType}catch{d=null;break t}var L=0,$=-1,H=-1,rt=0,ct=0,ht=o,lt=null;e:for(;;){for(var Ct;ht!==d||b!==0&&ht.nodeType!==3||($=L+b),ht!==w||y!==0&&ht.nodeType!==3||(H=L+y),ht.nodeType===3&&(L+=ht.nodeValue.length),(Ct=ht.firstChild)!==null;)lt=ht,ht=Ct;for(;;){if(ht===o)break e;if(lt===d&&++rt===b&&($=L),lt===w&&++ct===y&&(H=L),(Ct=ht.nextSibling)!==null)break;ht=lt,lt=ht.parentNode}ht=Ct}d=$===-1||H===-1?null:{start:$,end:H}}else d=null}d=d||{start:0,end:0}}else d=null;for(qf={focusedElem:o,selectionRange:d},bc=!1,bt=l;bt!==null;)if(l=bt,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,bt=o;else for(;bt!==null;){l=bt;try{var vt=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(vt!==null){var Tt=vt.memoizedProps,Ie=vt.memoizedState,Q=l.stateNode,Y=Q.getSnapshotBeforeUpdate(l.elementType===l.type?Tt:ki(l.type,Tt),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,bt=o;break}bt=l.return}return vt=bx,bx=!1,vt}function Ys(o,l,d){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 w=b.destroy;b.destroy=void 0,w!==void 0&&Ed(l,d,w)}b=b.next}while(b!==y)}}function rh(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var d=l=l.next;do{if((d.tag&o)===o){var y=d.create;d.destroy=y()}d=d.next}while(d!==l)}}function Fd(o){var l=o.ref;if(l!==null){var d=o.stateNode;switch(o.tag){case 5:o=d;break;default:o=d}typeof l=="function"?l(o):l.current=o}}function vx(o){var l=o.alternate;l!==null&&(o.alternate=null,vx(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Ri],delete l[Ds],delete l[Vf],delete l[PL],delete l[OL])),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 wx(o){return o.tag===5||o.tag===3||o.tag===4}function Sx(o){t:for(;;){for(;o.sibling===null;){if(o.return===null||wx(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 Ad(o,l,d){var y=o.tag;if(y===5||y===6)o=o.stateNode,l?d.nodeType===8?d.parentNode.insertBefore(o,l):d.insertBefore(o,l):(d.nodeType===8?(l=d.parentNode,l.insertBefore(o,d)):(l=d,l.appendChild(o)),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=Ic));else if(y!==4&&(o=o.child,o!==null))for(Ad(o,l,d),o=o.sibling;o!==null;)Ad(o,l,d),o=o.sibling}function Md(o,l,d){var y=o.tag;if(y===5||y===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(y!==4&&(o=o.child,o!==null))for(Md(o,l,d),o=o.sibling;o!==null;)Md(o,l,d),o=o.sibling}var Je=null,bi=!1;function qn(o,l,d){for(d=d.child;d!==null;)Tx(o,l,d),d=d.sibling}function Tx(o,l,d){if(zr&&typeof zr.onCommitFiberUnmount=="function")try{zr.onCommitFiberUnmount(ho,d)}catch{}switch(d.tag){case 5:sr||ya(d,l);case 6:var y=Je,b=bi;Je=null,qn(o,l,d),Je=y,bi=b,Je!==null&&(bi?(o=Je,d=d.stateNode,o.nodeType===8?o.parentNode.removeChild(d):o.removeChild(d)):Je.removeChild(d.stateNode));break;case 18:Je!==null&&(bi?(o=Je,d=d.stateNode,o.nodeType===8?Uf(o.parentNode,d):o.nodeType===1&&Uf(o,d),Ts(o)):Uf(Je,d.stateNode));break;case 4:y=Je,b=bi,Je=d.stateNode.containerInfo,bi=!0,qn(o,l,d),Je=y,bi=b;break;case 0:case 11:case 14:case 15:if(!sr&&(y=d.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){b=y=y.next;do{var w=b,L=w.destroy;w=w.tag,L!==void 0&&((w&2)!==0||(w&4)!==0)&&Ed(d,l,L),b=b.next}while(b!==y)}qn(o,l,d);break;case 1:if(!sr&&(ya(d,l),y=d.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=d.memoizedProps,y.state=d.memoizedState,y.componentWillUnmount()}catch($){Fe(d,l,$)}qn(o,l,d);break;case 21:qn(o,l,d);break;case 22:d.mode&1?(sr=(y=sr)||d.memoizedState!==null,qn(o,l,d),sr=y):qn(o,l,d);break;default:qn(o,l,d)}}function _x(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var d=o.stateNode;d===null&&(d=o.stateNode=new KL),l.forEach(function(y){var b=sE.bind(null,o,y);d.has(y)||(d.add(y),y.then(b,b))})}}function vi(o,l){var d=l.deletions;if(d!==null)for(var y=0;y<d.length;y++){var b=d[y];try{var w=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));Tx(w,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;)Bx(l,o),l=l.sibling}function Bx(o,l){var d=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{Ys(3,o,o.return),rh(3,o)}catch(Tt){Fe(o,o.return,Tt)}try{Ys(5,o,o.return)}catch(Tt){Fe(o,o.return,Tt)}}break;case 1:vi(l,o),Ni(o),y&512&&d!==null&&ya(d,d.return);break;case 5:if(vi(l,o),Ni(o),y&512&&d!==null&&ya(d,d.return),o.flags&32){var b=o.stateNode;try{ee(b,"")}catch(Tt){Fe(o,o.return,Tt)}}if(y&4&&(b=o.stateNode,b!=null)){var w=o.memoizedProps,L=d!==null?d.memoizedProps:w,$=o.type,H=o.updateQueue;if(o.updateQueue=null,H!==null)try{$==="input"&&w.type==="radio"&&w.name!=null&&Kr(b,w),Sr($,L);var rt=Sr($,w);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,w);break;case"textarea":Tn(b,w);break;case"select":var lt=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!w.multiple;var Ct=w.value;Ct!=null?di(b,!!w.multiple,Ct,!1):lt!==!!w.multiple&&(w.defaultValue!=null?di(b,!!w.multiple,w.defaultValue,!0):di(b,!!w.multiple,w.multiple?[]:"",!1))}b[Ds]=w}catch(Tt){Fe(o,o.return,Tt)}}break;case 6:if(vi(l,o),Ni(o),y&4){if(o.stateNode===null)throw Error(r(162));b=o.stateNode,w=o.memoizedProps;try{b.nodeValue=w}catch(Tt){Fe(o,o.return,Tt)}}break;case 3:if(vi(l,o),Ni(o),y&4&&d!==null&&d.memoizedState.isDehydrated)try{Ts(l.containerInfo)}catch(Tt){Fe(o,o.return,Tt)}break;case 4:vi(l,o),Ni(o);break;case 13:vi(l,o),Ni(o),b=o.child,b.flags&8192&&(w=b.memoizedState!==null,b.stateNode.isHidden=w,!w||b.alternate!==null&&b.alternate.memoizedState!==null||(Od=Kt())),y&4&&_x(o);break;case 22:if(ct=d!==null&&d.memoizedState!==null,o.mode&1?(sr=(rt=sr)||ct,vi(l,o),sr=rt):vi(l,o),Ni(o),y&8192){if(rt=o.memoizedState!==null,(o.stateNode.isHidden=rt)&&!ct&&(o.mode&1)!==0)for(bt=o,ct=o.child;ct!==null;){for(ht=bt=ct;bt!==null;){switch(lt=bt,Ct=lt.child,lt.tag){case 0:case 11:case 14:case 15:Ys(4,lt,lt.return);break;case 1:ya(lt,lt.return);var vt=lt.stateNode;if(typeof vt.componentWillUnmount=="function"){y=lt,d=lt.return;try{l=y,vt.props=l.memoizedProps,vt.state=l.memoizedState,vt.componentWillUnmount()}catch(Tt){Fe(y,d,Tt)}}break;case 5:ya(lt,lt.return);break;case 22:if(lt.memoizedState!==null){Fx(ht);continue}}Ct!==null?(Ct.return=lt,bt=Ct):Fx(ht)}ct=ct.sibling}t:for(ct=null,ht=o;;){if(ht.tag===5){if(ct===null){ct=ht;try{b=ht.stateNode,rt?(w=b.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):($=ht.stateNode,H=ht.memoizedProps.style,L=H!=null&&H.hasOwnProperty("display")?H.display:null,$.style.display=Qe("display",L))}catch(Tt){Fe(o,o.return,Tt)}}}else if(ht.tag===6){if(ct===null)try{ht.stateNode.nodeValue=rt?"":ht.memoizedProps}catch(Tt){Fe(o,o.return,Tt)}}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&&_x(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 d=o.return;d!==null;){if(wx(d)){var y=d;break t}d=d.return}throw Error(r(160))}switch(y.tag){case 5:var b=y.stateNode;y.flags&32&&(ee(b,""),y.flags&=-33);var w=Sx(o);Md(o,w,b);break;case 3:case 4:var L=y.stateNode.containerInfo,$=Sx(o);Ad(o,$,L);break;default:throw Error(r(161))}}catch(H){Fe(o,o.return,H)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function JL(o,l,d){bt=o,Lx(o)}function Lx(o,l,d){for(var y=(o.mode&1)!==0;bt!==null;){var b=bt,w=b.child;if(b.tag===22&&y){var L=b.memoizedState!==null||eh;if(!L){var $=b.alternate,H=$!==null&&$.memoizedState!==null||sr;$=eh;var rt=sr;if(eh=L,(sr=H)&&!rt)for(bt=b;bt!==null;)L=bt,H=L.child,L.tag===22&&L.memoizedState!==null?Ax(b):H!==null?(H.return=L,bt=H):Ax(b);for(;w!==null;)bt=w,Lx(w),w=w.sibling;bt=b,eh=$,sr=rt}Ex(o)}else(b.subtreeFlags&8772)!==0&&w!==null?(w.return=b,bt=w):Ex(o)}}function Ex(o){for(;bt!==null;){var l=bt;if((l.flags&8772)!==0){var d=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:sr||rh(5,l);break;case 1:var y=l.stateNode;if(l.flags&4&&!sr)if(d===null)y.componentDidMount();else{var b=l.elementType===l.type?d.memoizedProps:ki(l.type,d.memoizedProps);y.componentDidUpdate(b,d.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var w=l.updateQueue;w!==null&&F0(l,w,y);break;case 3:var L=l.updateQueue;if(L!==null){if(d=null,l.child!==null)switch(l.child.tag){case 5:d=l.child.stateNode;break;case 1:d=l.child.stateNode}F0(l,L,d)}break;case 5:var $=l.stateNode;if(d===null&&l.flags&4){d=$;var H=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&d.focus();break;case"img":H.src&&(d.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&&Ts(ht)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}sr||l.flags&512&&Fd(l)}catch(lt){Fe(l,l.return,lt)}}if(l===o){bt=null;break}if(d=l.sibling,d!==null){d.return=l.return,bt=d;break}bt=l.return}}function Fx(o){for(;bt!==null;){var l=bt;if(l===o){bt=null;break}var d=l.sibling;if(d!==null){d.return=l.return,bt=d;break}bt=l.return}}function Ax(o){for(;bt!==null;){var l=bt;try{switch(l.tag){case 0:case 11:case 15:var d=l.return;try{rh(4,l)}catch(H){Fe(l,d,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 w=l.return;try{Fd(l)}catch(H){Fe(l,w,H)}break;case 5:var L=l.return;try{Fd(l)}catch(H){Fe(l,L,H)}}}catch(H){Fe(l,l.return,H)}if(l===o){bt=null;break}var $=l.sibling;if($!==null){$.return=l.return,bt=$;break}bt=l.return}}var tE=Math.ceil,ih=I.ReactCurrentDispatcher,Id=I.ReactCurrentOwner,oi=I.ReactCurrentBatchConfig,ae=0,Ye=null,De=null,tr=0,Wr=0,xa=Rn(0),Ne=0,Gs=null,Co=0,nh=0,Pd=0,Xs=null,Lr=null,Od=0,Ca=1/0,hn=null,oh=!1,Dd=null,Wn=null,ah=!1,Hn=null,sh=0,Qs=0,Rd=null,lh=-1,ch=0;function mr(){return(ae&6)!==0?Kt():lh!==-1?lh:lh=Kt()}function Un(o){return(o.mode&1)===0?1:(ae&2)!==0&&tr!==0?tr&-tr:RL.transition!==null?(ch===0&&(ch=Sy()),ch):(o=fe,o!==0||(o=window.event,o=o===void 0?16:Iy(o.type)),o)}function wi(o,l,d,y){if(50<Qs)throw Qs=0,Rd=null,Error(r(185));ks(o,d,y),((ae&2)===0||o!==Ye)&&(o===Ye&&((ae&2)===0&&(nh|=d),Ne===4&&Vn(o,tr)),Er(o,y),d===1&&ae===0&&(l.mode&1)===0&&(Ca=Kt()+500,Rc&&zn()))}function Er(o,l){var d=o.callbackNode;RB(o,l);var y=xc(o,o===Ye?tr:0);if(y===0)d!==null&&ft(d),o.callbackNode=null,o.callbackPriority=0;else if(l=y&-y,o.callbackPriority!==l){if(d!=null&&ft(d),l===1)o.tag===0?DL(Ix.bind(null,o)):x0(Ix.bind(null,o)),ML(function(){(ae&6)===0&&zn()}),d=null;else{switch(Ty(y)){case 1:d=Ue;break;case 4:d=ti;break;case 16:d=mi;break;case 536870912:d=Oe;break;default:d=mi}d=jx(d,Mx.bind(null,o))}o.callbackPriority=l,o.callbackNode=d}}function Mx(o,l){if(lh=-1,ch=0,(ae&6)!==0)throw Error(r(327));var d=o.callbackNode;if(ka()&&o.callbackNode!==d)return null;var y=xc(o,o===Ye?tr:0);if(y===0)return null;if((y&30)!==0||(y&o.expiredLanes)!==0||l)l=hh(o,y);else{l=y;var b=ae;ae|=2;var w=Ox();(Ye!==o||tr!==l)&&(hn=null,Ca=Kt()+500,bo(o,l));do try{iE();break}catch($){Px(o,$)}while(!0);ed(),ih.current=w,ae=b,De!==null?l=0:(Ye=null,tr=0,l=Ne)}if(l!==0){if(l===2&&(b=yf(o),b!==0&&(y=b,l=$d(o,b))),l===1)throw d=Gs,bo(o,0),Vn(o,y),Er(o,Kt()),d;if(l===6)Vn(o,y);else{if(b=o.current.alternate,(y&30)===0&&!eE(b)&&(l=hh(o,y),l===2&&(w=yf(o),w!==0&&(y=w,l=$d(o,w))),l===1))throw d=Gs,bo(o,0),Vn(o,y),Er(o,Kt()),d;switch(o.finishedWork=b,o.finishedLanes=y,l){case 0:case 1:throw Error(r(345));case 2:vo(o,Lr,hn);break;case 3:if(Vn(o,y),(y&130023424)===y&&(l=Od+500-Kt(),10<l)){if(xc(o,0)!==0)break;if(b=o.suspendedLanes,(b&y)!==y){mr(),o.pingedLanes|=o.suspendedLanes&b;break}o.timeoutHandle=Hf(vo.bind(null,o,Lr,hn),l);break}vo(o,Lr,hn);break;case 4:if(Vn(o,y),(y&4194240)===y)break;for(l=o.eventTimes,b=-1;0<y;){var L=31-yi(y);w=1<<L,L=l[L],L>b&&(b=L),y&=~w}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*tE(y/1960))-y,10<y){o.timeoutHandle=Hf(vo.bind(null,o,Lr,hn),y);break}vo(o,Lr,hn);break;case 5:vo(o,Lr,hn);break;default:throw Error(r(329))}}}return Er(o,Kt()),o.callbackNode===d?Mx.bind(null,o):null}function $d(o,l){var d=Xs;return o.current.memoizedState.isDehydrated&&(bo(o,l).flags|=256),o=hh(o,l),o!==2&&(l=Lr,Lr=d,l!==null&&zd(l)),o}function zd(o){Lr===null?Lr=o:Lr.push.apply(Lr,o)}function eE(o){for(var l=o;;){if(l.flags&16384){var d=l.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var y=0;y<d.length;y++){var b=d[y],w=b.getSnapshot;b=b.value;try{if(!xi(w(),b))return!1}catch{return!1}}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;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 Vn(o,l){for(l&=~Pd,l&=~nh,o.suspendedLanes|=l,o.pingedLanes&=~l,o=o.expirationTimes;0<l;){var d=31-yi(l),y=1<<d;o[d]=-1,l&=~y}}function Ix(o){if((ae&6)!==0)throw Error(r(327));ka();var l=xc(o,0);if((l&1)===0)return Er(o,Kt()),null;var d=hh(o,l);if(o.tag!==0&&d===2){var y=yf(o);y!==0&&(l=y,d=$d(o,y))}if(d===1)throw d=Gs,bo(o,0),Vn(o,l),Er(o,Kt()),d;if(d===6)throw Error(r(345));return o.finishedWork=o.current.alternate,o.finishedLanes=l,vo(o,Lr,hn),Er(o,Kt()),null}function Nd(o,l){var d=ae;ae|=1;try{return o(l)}finally{ae=d,ae===0&&(Ca=Kt()+500,Rc&&zn())}}function ko(o){Hn!==null&&Hn.tag===0&&(ae&6)===0&&ka();var l=ae;ae|=1;var d=oi.transition,y=fe;try{if(oi.transition=null,fe=1,o)return o()}finally{fe=y,oi.transition=d,ae=l,(ae&6)===0&&zn()}}function jd(){Wr=xa.current,Ce(xa)}function bo(o,l){o.finishedWork=null,o.finishedLanes=0;var d=o.timeoutHandle;if(d!==-1&&(o.timeoutHandle=-1,AL(d)),De!==null)for(d=De.return;d!==null;){var y=d;switch(Qf(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&Oc();break;case 3:ga(),Ce(Tr),Ce(nr),cd();break;case 5:sd(y);break;case 4:ga();break;case 13:Ce(Se);break;case 19:Ce(Se);break;case 10:rd(y.type._context);break;case 22:case 23:jd()}d=d.return}if(Ye=o,De=o=Yn(o.current,null),tr=Wr=l,Ne=0,Gs=null,Pd=nh=Co=0,Lr=Xs=null,mo!==null){for(l=0;l<mo.length;l++)if(d=mo[l],y=d.interleaved,y!==null){d.interleaved=null;var b=y.next,w=d.pending;if(w!==null){var L=w.next;w.next=b,y.next=L}d.pending=y}mo=null}return o}function Px(o,l){do{var d=De;try{if(ed(),Yc.current=Kc,Gc){for(var y=Te.memoizedState;y!==null;){var b=y.queue;b!==null&&(b.pending=null),y=y.next}Gc=!1}if(xo=0,Ve=ze=Te=null,qs=!1,Ws=0,Id.current=null,d===null||d.return===null){Ne=1,Gs=l,De=null;break}t:{var w=o,L=d.return,$=d,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 Ct=ox(L);if(Ct!==null){Ct.flags&=-257,ax(Ct,L,$,w,l),Ct.mode&1&&nx(w,rt,l),l=Ct,H=rt;var vt=l.updateQueue;if(vt===null){var Tt=new Set;Tt.add(H),l.updateQueue=Tt}else vt.add(H);break t}else{if((l&1)===0){nx(w,rt,l),qd();break t}H=Error(r(426))}}else if(ve&&$.mode&1){var Ie=ox(L);if(Ie!==null){(Ie.flags&65536)===0&&(Ie.flags|=256),ax(Ie,L,$,w,l),Jf(ma(H,$));break t}}w=H=ma(H,$),Ne!==4&&(Ne=2),Xs===null?Xs=[w]:Xs.push(w),w=L;do{switch(w.tag){case 3:w.flags|=65536,l&=-l,w.lanes|=l;var Q=rx(w,H,l);E0(w,Q);break t;case 1:$=H;var Y=w.type,Z=w.stateNode;if((w.flags&128)===0&&(typeof Y.getDerivedStateFromError=="function"||Z!==null&&typeof Z.componentDidCatch=="function"&&(Wn===null||!Wn.has(Z)))){w.flags|=65536,l&=-l,w.lanes|=l;var gt=ix(w,$,l);E0(w,gt);break t}}w=w.return}while(w!==null)}Rx(d)}catch(Et){l=Et,De===d&&d!==null&&(De=d=d.return);continue}break}while(!0)}function Ox(){var o=ih.current;return ih.current=Kc,o===null?Kc:o}function qd(){(Ne===0||Ne===3||Ne===2)&&(Ne=4),Ye===null||(Co&268435455)===0&&(nh&268435455)===0||Vn(Ye,tr)}function hh(o,l){var d=ae;ae|=2;var y=Ox();(Ye!==o||tr!==l)&&(hn=null,bo(o,l));do try{rE();break}catch(b){Px(o,b)}while(!0);if(ed(),ae=d,ih.current=y,De!==null)throw Error(r(261));return Ye=null,tr=0,Ne}function rE(){for(;De!==null;)Dx(De)}function iE(){for(;De!==null&&!wt();)Dx(De)}function Dx(o){var l=Nx(o.alternate,o,Wr);o.memoizedProps=o.pendingProps,l===null?Rx(o):De=l,Id.current=null}function Rx(o){var l=o;do{var d=l.alternate;if(o=l.return,(l.flags&32768)===0){if(d=XL(d,l,Wr),d!==null){De=d;return}}else{if(d=QL(d,l),d!==null){d.flags&=32767,De=d;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 vo(o,l,d){var y=fe,b=oi.transition;try{oi.transition=null,fe=1,nE(o,l,d,y)}finally{oi.transition=b,fe=y}return null}function nE(o,l,d,y){do ka();while(Hn!==null);if((ae&6)!==0)throw Error(r(327));d=o.finishedWork;var b=o.finishedLanes;if(d===null)return null;if(o.finishedWork=null,o.finishedLanes=0,d===o.current)throw Error(r(177));o.callbackNode=null,o.callbackPriority=0;var w=d.lanes|d.childLanes;if($B(o,w),o===Ye&&(De=Ye=null,tr=0),(d.subtreeFlags&2064)===0&&(d.flags&2064)===0||ah||(ah=!0,jx(mi,function(){return ka(),null})),w=(d.flags&15990)!==0,(d.subtreeFlags&15990)!==0||w){w=oi.transition,oi.transition=null;var L=fe;fe=1;var $=ae;ae|=4,Id.current=null,ZL(o,d),Bx(d,o),SL(qf),bc=!!jf,qf=jf=null,o.current=d,JL(d),ge(),ae=$,fe=L,oi.transition=w}else o.current=d;if(ah&&(ah=!1,Hn=o,sh=b),w=o.pendingLanes,w===0&&(Wn=null),MB(d.stateNode),Er(o,Kt()),l!==null)for(y=o.onRecoverableError,d=0;d<l.length;d++)b=l[d],y(b.value,{componentStack:b.stack,digest:b.digest});if(oh)throw oh=!1,o=Dd,Dd=null,o;return(sh&1)!==0&&o.tag!==0&&ka(),w=o.pendingLanes,(w&1)!==0?o===Rd?Qs++:(Qs=0,Rd=o):Qs=0,zn(),null}function ka(){if(Hn!==null){var o=Ty(sh),l=oi.transition,d=fe;try{if(oi.transition=null,fe=16>o?16:o,Hn===null)var y=!1;else{if(o=Hn,Hn=null,sh=0,(ae&6)!==0)throw Error(r(331));var b=ae;for(ae|=4,bt=o.current;bt!==null;){var w=bt,L=w.child;if((bt.flags&16)!==0){var $=w.deletions;if($!==null){for(var H=0;H<$.length;H++){var rt=$[H];for(bt=rt;bt!==null;){var ct=bt;switch(ct.tag){case 0:case 11:case 15:Ys(8,ct,w)}var ht=ct.child;if(ht!==null)ht.return=ct,bt=ht;else for(;bt!==null;){ct=bt;var lt=ct.sibling,Ct=ct.return;if(vx(ct),ct===rt){bt=null;break}if(lt!==null){lt.return=Ct,bt=lt;break}bt=Ct}}}var vt=w.alternate;if(vt!==null){var Tt=vt.child;if(Tt!==null){vt.child=null;do{var Ie=Tt.sibling;Tt.sibling=null,Tt=Ie}while(Tt!==null)}}bt=w}}if((w.subtreeFlags&2064)!==0&&L!==null)L.return=w,bt=L;else t:for(;bt!==null;){if(w=bt,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:Ys(9,w,w.return)}var Q=w.sibling;if(Q!==null){Q.return=w.return,bt=Q;break t}bt=w.return}}var Y=o.current;for(bt=Y;bt!==null;){L=bt;var Z=L.child;if((L.subtreeFlags&2064)!==0&&Z!==null)Z.return=L,bt=Z;else t:for(L=Y;bt!==null;){if($=bt,($.flags&2048)!==0)try{switch($.tag){case 0:case 11:case 15:rh(9,$)}}catch(Et){Fe($,$.return,Et)}if($===L){bt=null;break t}var gt=$.sibling;if(gt!==null){gt.return=$.return,bt=gt;break t}bt=$.return}}if(ae=b,zn(),zr&&typeof zr.onPostCommitFiberRoot=="function")try{zr.onPostCommitFiberRoot(ho,o)}catch{}y=!0}return y}finally{fe=d,oi.transition=l}}return!1}function $x(o,l,d){l=ma(d,l),l=rx(o,l,1),o=jn(o,l,1),l=mr(),o!==null&&(ks(o,1,l),Er(o,l))}function Fe(o,l,d){if(o.tag===3)$x(o,o,d);else for(;l!==null;){if(l.tag===3){$x(l,o,d);break}else if(l.tag===1){var y=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Wn===null||!Wn.has(y))){o=ma(d,o),o=ix(l,o,1),l=jn(l,o,1),o=mr(),l!==null&&(ks(l,1,o),Er(l,o));break}}l=l.return}}function oE(o,l,d){var y=o.pingCache;y!==null&&y.delete(l),l=mr(),o.pingedLanes|=o.suspendedLanes&d,Ye===o&&(tr&d)===d&&(Ne===4||Ne===3&&(tr&130023424)===tr&&500>Kt()-Od?bo(o,0):Pd|=d),Er(o,l)}function zx(o,l){l===0&&((o.mode&1)===0?l=1:(l=yc,yc<<=1,(yc&130023424)===0&&(yc=4194304)));var d=mr();o=sn(o,l),o!==null&&(ks(o,l,d),Er(o,d))}function aE(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),zx(o,d)}function sE(o,l){var d=0;switch(o.tag){case 13:var y=o.stateNode,b=o.memoizedState;b!==null&&(d=b.retryLane);break;case 19:y=o.stateNode;break;default:throw Error(r(314))}y!==null&&y.delete(l),zx(o,d)}var Nx;Nx=function(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps||Tr.current)Br=!0;else{if((o.lanes&d)===0&&(l.flags&128)===0)return Br=!1,GL(o,l,d);Br=(o.flags&131072)!==0}else Br=!1,ve&&(l.flags&1048576)!==0&&C0(l,zc,l.index);switch(l.lanes=0,l.tag){case 2:var y=l.type;th(o,l),o=l.pendingProps;var b=la(l,nr.current);pa(l,d),b=fd(null,l,y,o,b,d);var w=dd();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)?(w=!0,Dc(l)):w=!1,l.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,od(l),b.updater=Zc,l.stateNode=b,b._reactInternals=l,Cd(l,y,o,d),l=wd(null,l,y,!0,w,d)):(l.tag=0,ve&&w&&Xf(l),gr(null,l,b,d),l=l.child),l;case 16:y=l.elementType;t:{switch(th(o,l),o=l.pendingProps,b=y._init,y=b(y._payload),l.type=y,b=l.tag=cE(y),o=ki(y,o),b){case 0:l=vd(null,l,y,o,d);break t;case 1:l=fx(null,l,y,o,d);break t;case 11:l=sx(null,l,y,o,d);break t;case 14:l=lx(null,l,y,ki(y.type,o),d);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),vd(o,l,y,b,d);case 1:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),fx(o,l,y,b,d);case 3:t:{if(dx(l),o===null)throw Error(r(387));y=l.pendingProps,w=l.memoizedState,b=w.element,L0(o,l),Uc(l,y,null,d);var L=l.memoizedState;if(y=L.element,w.isDehydrated)if(w={element:y,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},l.updateQueue.baseState=w,l.memoizedState=w,l.flags&256){b=ma(Error(r(423)),l),l=px(o,l,y,d,b);break t}else if(y!==b){b=ma(Error(r(424)),l),l=px(o,l,y,d,b);break t}else for(qr=Dn(l.stateNode.containerInfo.firstChild),jr=l,ve=!0,Ci=null,d=_0(l,null,y,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(ua(),y===b){l=cn(o,l,d);break t}gr(o,l,y,d)}l=l.child}return l;case 5:return A0(l),o===null&&Zf(l),y=l.type,b=l.pendingProps,w=o!==null?o.memoizedProps:null,L=b.children,Wf(y,b)?L=null:w!==null&&Wf(y,w)&&(l.flags|=32),ux(o,l),gr(o,l,L,d),l.child;case 6:return o===null&&Zf(l),null;case 13:return gx(o,l,d);case 4:return ad(l,l.stateNode.containerInfo),y=l.pendingProps,o===null?l.child=fa(l,null,y,d):gr(o,l,y,d),l.child;case 11:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),sx(o,l,y,b,d);case 7:return gr(o,l,l.pendingProps,d),l.child;case 8:return gr(o,l,l.pendingProps.children,d),l.child;case 12:return gr(o,l,l.pendingProps.children,d),l.child;case 10:t:{if(y=l.type._context,b=l.pendingProps,w=l.memoizedProps,L=b.value,me(qc,y._currentValue),y._currentValue=L,w!==null)if(xi(w.value,L)){if(w.children===b.children&&!Tr.current){l=cn(o,l,d);break t}}else for(w=l.child,w!==null&&(w.return=l);w!==null;){var $=w.dependencies;if($!==null){L=w.child;for(var H=$.firstContext;H!==null;){if(H.context===y){if(w.tag===1){H=ln(-1,d&-d),H.tag=2;var rt=w.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}}w.lanes|=d,H=w.alternate,H!==null&&(H.lanes|=d),id(w.return,d,l),$.lanes|=d;break}H=H.next}}else if(w.tag===10)L=w.type===l.type?null:w.child;else if(w.tag===18){if(L=w.return,L===null)throw Error(r(341));L.lanes|=d,$=L.alternate,$!==null&&($.lanes|=d),id(L,d,l),L=w.sibling}else L=w.child;if(L!==null)L.return=w;else for(L=w;L!==null;){if(L===l){L=null;break}if(w=L.sibling,w!==null){w.return=L.return,L=w;break}L=L.return}w=L}gr(o,l,b.children,d),l=l.child}return l;case 9:return b=l.type,y=l.pendingProps.children,pa(l,d),b=ii(b),y=y(b),l.flags|=1,gr(o,l,y,d),l.child;case 14:return y=l.type,b=ki(y,l.pendingProps),b=ki(y.type,b),lx(o,l,y,b,d);case 15:return cx(o,l,l.type,l.pendingProps,d);case 17:return y=l.type,b=l.pendingProps,b=l.elementType===y?b:ki(y,b),th(o,l),l.tag=1,_r(y)?(o=!0,Dc(l)):o=!1,pa(l,d),tx(l,y,b),Cd(l,y,b,d),wd(null,l,y,!0,o,d);case 19:return yx(o,l,d);case 22:return hx(o,l,d)}throw Error(r(156,l.tag))};function jx(o,l){return U(o,l)}function lE(o,l,d,y){this.tag=o,this.key=d,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 ai(o,l,d,y){return new lE(o,l,d,y)}function Wd(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cE(o){if(typeof o=="function")return Wd(o)?1:0;if(o!=null){if(o=o.$$typeof,o===J)return 11;if(o===j)return 14}return 2}function Yn(o,l){var d=o.alternate;return d===null?(d=ai(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&14680064,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d}function uh(o,l,d,y,b,w){var L=2;if(y=o,typeof o=="function")Wd(o)&&(L=1);else if(typeof o=="string")L=5;else t:switch(o){case E:return wo(d.children,b,w,l);case W:L=8,b|=8;break;case et:return o=ai(12,d,l,b|2),o.elementType=et,o.lanes=w,o;case nt:return o=ai(13,d,l,b),o.elementType=nt,o.lanes=w,o;case V:return o=ai(19,d,l,b),o.elementType=V,o.lanes=w,o;case G:return fh(d,b,w,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case M:L=10;break t;case N:L=9;break t;case J:L=11;break t;case j:L=14;break t;case q:L=16,y=null;break t}throw Error(r(130,o==null?o:typeof o,""))}return l=ai(L,d,l,b),l.elementType=o,l.type=y,l.lanes=w,l}function wo(o,l,d,y){return o=ai(7,o,y,l),o.lanes=d,o}function fh(o,l,d,y){return o=ai(22,o,y,l),o.elementType=G,o.lanes=d,o.stateNode={isHidden:!1},o}function Hd(o,l,d){return o=ai(6,o,null,l),o.lanes=d,o}function Ud(o,l,d){return l=ai(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function hE(o,l,d,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=xf(0),this.expirationTimes=xf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xf(0),this.identifierPrefix=y,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function Vd(o,l,d,y,b,w,L,$,H){return o=new hE(o,l,d,$,H),l===1?(l=1,w===!0&&(l|=8)):l=0,w=ai(3,null,null,l),o.current=w,w.stateNode=o,w.memoizedState={element:y,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},od(w),o}function uE(o,l,d){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:y==null?null:""+y,children:o,containerInfo:l,implementation:d}}function qx(o){if(!o)return $n;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 d=o.type;if(_r(d))return m0(o,d,l)}return l}function Wx(o,l,d,y,b,w,L,$,H){return o=Vd(d,y,!0,o,b,w,L,$,H),o.context=qx(null),d=o.current,y=mr(),b=Un(d),w=ln(y,b),w.callback=l??null,jn(d,w,b),o.current.lanes=b,ks(o,b,y),Er(o,y),o}function dh(o,l,d,y){var b=l.current,w=mr(),L=Un(b);return d=qx(d),l.context===null?l.context=d:l.pendingContext=d,l=ln(w,L),l.payload={element:o},y=y===void 0?null:y,y!==null&&(l.callback=y),o=jn(b,l,L),o!==null&&(wi(o,b,L,w),Hc(o,b,L)),L}function ph(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 Hx(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function Yd(o,l){Hx(o,l),(o=o.alternate)&&Hx(o,l)}function fE(){return null}var Ux=typeof reportError=="function"?reportError:function(o){console.error(o)};function Gd(o){this._internalRoot=o}gh.prototype.render=Gd.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));dh(o,l,null,null)},gh.prototype.unmount=Gd.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;ko(function(){dh(null,o,null,null)}),l[rn]=null}};function gh(o){this._internalRoot=o}gh.prototype.unstable_scheduleHydration=function(o){if(o){var l=Ly();o={blockedOn:null,target:o,priority:l};for(var d=0;d<In.length&&l!==0&&l<In[d].priority;d++);In.splice(d,0,o),d===0&&Ay(o)}};function Xd(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function mh(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function Vx(){}function dE(o,l,d,y,b){if(b){if(typeof y=="function"){var w=y;y=function(){var rt=ph(L);w.call(rt)}}var L=Wx(l,y,o,0,null,!1,!1,"",Vx);return o._reactRootContainer=L,o[rn]=L.current,Ps(o.nodeType===8?o.parentNode:o),ko(),L}for(;b=o.lastChild;)o.removeChild(b);if(typeof y=="function"){var $=y;y=function(){var rt=ph(H);$.call(rt)}}var H=Vd(o,0,!1,null,null,!1,!1,"",Vx);return o._reactRootContainer=H,o[rn]=H.current,Ps(o.nodeType===8?o.parentNode:o),ko(function(){dh(l,H,d,y)}),H}function yh(o,l,d,y,b){var w=d._reactRootContainer;if(w){var L=w;if(typeof b=="function"){var $=b;b=function(){var H=ph(L);$.call(H)}}dh(l,L,o,b)}else L=dE(d,l,o,b,y);return ph(L)}_y=function(o){switch(o.tag){case 3:var l=o.stateNode;if(l.current.memoizedState.isDehydrated){var d=Cs(l.pendingLanes);d!==0&&(Cf(l,d|1),Er(l,Kt()),(ae&6)===0&&(Ca=Kt()+500,zn()))}break;case 13:ko(function(){var y=sn(o,1);if(y!==null){var b=mr();wi(y,o,1,b)}}),Yd(o,1)}},kf=function(o){if(o.tag===13){var l=sn(o,134217728);if(l!==null){var d=mr();wi(l,o,134217728,d)}Yd(o,134217728)}},By=function(o){if(o.tag===13){var l=Un(o),d=sn(o,l);if(d!==null){var y=mr();wi(d,o,l,y)}Yd(o,l)}},Ly=function(){return fe},Ey=function(o,l){var d=fe;try{return fe=o,l()}finally{fe=d}},_n=function(o,l,d){switch(l){case"input":if(ui(o,d),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<d.length;l++){var y=d[l];if(y!==o&&y.form===o.form){var b=Pc(y);if(!b)throw Error(r(90));oe(y),ui(y,b)}}}break;case"textarea":Tn(o,d);break;case"select":l=d.value,l!=null&&di(o,!!d.multiple,l,!1)}},Le=Nd,tn=ko;var pE={usingClientEntryPoint:!1,Events:[Rs,aa,Pc,uc,fc,Nd]},Ks={findFiberByHostInstance:uo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gE={bundleType:Ks.bundleType,version:Ks.version,rendererPackageName:Ks.rendererPackageName,rendererConfig:Ks.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=gc(o),o===null?null:o.stateNode},findFiberByHostInstance:Ks.findFiberByHostInstance||fE,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 xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xh.isDisabled&&xh.supportsFiber)try{ho=xh.inject(gE),zr=xh}catch{}}return Fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pE,Fr.createPortal=function(o,l){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xd(l))throw Error(r(200));return uE(o,l,null,d)},Fr.createRoot=function(o,l){if(!Xd(o))throw Error(r(299));var d=!1,y="",b=Ux;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(b=l.onRecoverableError)),l=Vd(o,1,!1,null,null,d,!1,y,b),o[rn]=l.current,Ps(o.nodeType===8?o.parentNode:o),new Gd(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=gc(l),o=o===null?null:o.stateNode,o},Fr.flushSync=function(o){return ko(o)},Fr.hydrate=function(o,l,d){if(!mh(l))throw Error(r(200));return yh(null,o,l,!0,d)},Fr.hydrateRoot=function(o,l,d){if(!Xd(o))throw Error(r(405));var y=d!=null&&d.hydratedSources||null,b=!1,w="",L=Ux;if(d!=null&&(d.unstable_strictMode===!0&&(b=!0),d.identifierPrefix!==void 0&&(w=d.identifierPrefix),d.onRecoverableError!==void 0&&(L=d.onRecoverableError)),l=Wx(l,null,o,1,d??null,b,!1,w,L),o[rn]=l.current,Ps(o),y)for(o=0;o<y.length;o++)d=y[o],b=d._getVersion,b=b(d._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[d,b]:l.mutableSourceEagerHydrationData.push(d,b);return new gh(l)},Fr.render=function(o,l,d){if(!mh(l))throw Error(r(200));return yh(null,o,l,!1,d)},Fr.unmountComponentAtNode=function(o){if(!mh(o))throw Error(r(40));return o._reactRootContainer?(ko(function(){yh(null,null,o,!1,function(){o._reactRootContainer=null,o[rn]=null})}),!0):!1},Fr.unstable_batchedUpdates=Nd,Fr.unstable_renderSubtreeIntoContainer=function(o,l,d,y){if(!mh(d))throw Error(r(200));if(o==null||o._reactInternals===void 0)throw Error(r(38));return yh(o,l,d,!1,y)},Fr.version="18.3.1-next-f1338f8080-20240426",Fr}var t1;function TE(){if(t1)return Zd.exports;t1=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(),Zd.exports=SE(),Zd.exports}var e1;function _E(){if(e1)return Ch;e1=1;var e=TE();return Ch.createRoot=e.createRoot,Ch.hydrateRoot=e.hydrateRoot,Ch}var BE=_E();const LE=Ql(BE);class EE extends Fa.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?D.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",color:"var(--text-primary)"},children:[D.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:":("}),D.jsx("h2",{style:{fontSize:"18px",fontWeight:600,marginBottom:"8px"},children:"出现了一些问题"}),D.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)||"发生了未知错误"}),D.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}),D.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 FE="modulepreload",AE=function(e){return"/"+e},r1={},re=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){let s=function(u){return Promise.all(u.map(f=>Promise.resolve(f).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=s(r.map(u=>{if(u=AE(u),u in r1)return;r1[u]=!0;const f=u.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${p}`))return;const m=document.createElement("link");if(m.rel=f?"stylesheet":FE,f||(m.as="script"),m.crossOrigin="",m.href=u,h&&m.setAttribute("nonce",h),document.head.appendChild(m),f)return new Promise((g,x)=>{m.addEventListener("load",g),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function a(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return n.then(s=>{for(const c of s||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})},i1=e=>{let t;const r=new Set,i=(u,f)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const m=t;t=f??(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},ME=(e=>e?i1(e):i1),IE=e=>e;function PE(e,t=IE){const r=Fa.useSyncExternalStore(e.subscribe,Fa.useCallback(()=>t(e.getState()),[e,t]),Fa.useCallback(()=>t(e.getInitialState()),[e,t]));return Fa.useDebugValue(r),r}const n1=e=>{const t=ME(e),r=i=>PE(t,i);return Object.assign(r,t),r},OE=(e=>e?n1(e):n1),o1={projects:[],config:null,currentWiki:null,currentView:null,sidebarOpen:!0,settingsOpen:!1,searchOpen:!1,searchQuery:"",searchResults:[],expandedSections:[],expandedGroups:[],referenceOpen:!1,referenceData:null,loadingWiki:!1,loadingPage:!1,loadingProjects:!1},$t=OE(e=>({...o1,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}),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(o1)})),DE=({size:e=16})=>D.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:D.jsx("path",{d:"M6 9l6 6 6-6"})}),RE=({size:e=16})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("circle",{cx:"11",cy:"11",r:"8"}),D.jsx("path",{d:"M21 21l-4.35-4.35"})]}),$E=({size:e=18})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("circle",{cx:"12",cy:"12",r:"3"}),D.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"})]}),jp=({size:e=22})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),D.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"})]}),zE=()=>{const e=$t(u=>u.projects),t=$t(u=>u.config),r=$t(u=>u.setCurrentProject),[i,n]=jt.useState(!1),a=jt.useRef(null),s=t==null?void 0:t.lastOpenedProject,c=e.find(u=>u.id===s);jt.useEffect(()=>{function u(f){a.current&&!a.current.contains(f.target)&&n(!1)}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const h=async u=>{r(u.id),n(!1);try{const{updateConfig:f}=await re(async()=>{const{updateConfig:p}=await Promise.resolve().then(()=>Zk);return{updateConfig:p}},void 0);await f({lastOpenedProject:u.id})}catch(f){console.error("Failed to persist project selection:",f)}};return e.length===0?D.jsx("div",{style:{color:"var(--text-tertiary)",fontSize:"13px"},children:"暂无项目"}):D.jsxs("div",{ref:a,style:{position:"relative"},children:[D.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:[D.jsx(jp,{size:14}),D.jsx("span",{style:{flex:1,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(c==null?void 0:c.name)||"选择项目"}),D.jsx(DE,{size:14})]}),i&&D.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=>D.jsxs("button",{onClick:()=>h(u),style:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"8px 12px",border:"none",background:u.id===s?"var(--accent-light)":"transparent",color:u.id===s?"var(--accent-text)":"var(--text-primary)",cursor:"pointer",fontSize:"13px",textAlign:"left",transition:"background 0.1s ease"},onMouseEnter:f=>{u.id!==s&&(f.target.style.background="var(--bg-hover)")},onMouseLeave:f=>{u.id!==s&&(f.target.style.background="transparent")},children:[D.jsx(jp,{size:14}),D.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.name})]},u.id))})]})},NE=()=>{const e=$t(r=>r.toggleSearch),t=$t(r=>r.toggleSettings);return D.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:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",fontWeight:700,fontSize:"15px",color:"var(--accent)",userSelect:"none"},children:[D.jsx(jp,{size:22}),D.jsx("span",{children:"Zread Browser"})]}),D.jsx("div",{style:{width:"1px",height:"24px",background:"var(--border)"}}),D.jsx(zE,{})]}),D.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:[D.jsx(RE,{size:14}),D.jsx("span",{style:{flex:1,textAlign:"left"},children:"搜索..."}),D.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"})]}),D.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:D.jsx($E,{size:18})})]})},jE="/api";async function Mi(e,t){const i=await(await fetch(`${jE}${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 qE(){return Mi("/projects")}async function rm(e){return Mi(`/wiki/${encodeURIComponent(e)}`)}async function im(e,t,r){return Mi(`/wiki/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${encodeURIComponent(r)}`)}async function Yk(e,t){return Mi(`/search/${encodeURIComponent(e)}?q=${encodeURIComponent(t)}`)}async function Sl(){return Mi("/config")}async function $h(e){return Mi("/config",{method:"PUT",body:JSON.stringify(e)})}async function Gk(e){return Mi("/projects",{method:"POST",body:JSON.stringify({path:e})})}async function Xk(e){return Mi(`/projects/${encodeURIComponent(e)}`,{method:"DELETE"})}async function Qk(){return Mi("/scan",{method:"POST"})}async function qp(){return Mi("/scan/status")}async function Kk(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 Zk=Object.freeze(Object.defineProperty({__proto__:null,addProject:Gk,deleteProject:Xk,getConfig:Sl,getFileContent:Kk,getPage:im,getProjects:qE,getScanStatus:qp,getWiki:rm,searchProject:Yk,triggerScan:Qk,updateConfig:$h},Symbol.toStringTag,{value:"Module"})),Jk=({size:e=14,rotated:t})=>D.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:D.jsx("path",{d:"M9 18l6-6-6-6"})}),WE=({size:e=14})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),D.jsx("polyline",{points:"14 2 14 8 20 8"})]}),HE=({size:e=14,open:t})=>D.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t?D.jsxs(D.Fragment,{children:[D.jsx("path",{d:"M5 19a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h4l2 2h4a2 2 0 0 1 2 2v1"}),D.jsx("path",{d:"M20.27 9.69l-2.12 9.31H6.76L4.62 9.69H20.27z"})]}):D.jsx(D.Fragment,{children:D.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 UE(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 a=[];for(const[s,c]of n.grouped)a.push({name:s,pages:c});r.push({name:i,groups:a,ungroupedPages:n.ungrouped})}return{sections:r}}const tb=({page:e,isActive:t,onClick:r})=>{const i=e.level==="Beginner"?"badge-beginner":e.level==="Intermediate"?"badge-intermediate":"badge-advanced";return D.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:[D.jsx(WE,{size:13}),D.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title}),D.jsx("span",{className:`badge ${i}`,children:e.level})]})},VE=({name:e,pages:t,expanded:r,currentSlug:i,onToggle:n,onPageClick:a})=>D.jsxs("div",{children:[D.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:s=>{s.currentTarget.style.background="var(--bg-hover)"},onMouseLeave:s=>{s.currentTarget.style.background="transparent"},children:[D.jsx(Jk,{size:12,rotated:r}),D.jsx(HE,{size:13,open:r}),D.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),D.jsx("span",{style:{fontSize:"11px",color:"var(--text-tertiary)"},children:t.length})]}),r&&D.jsx("div",{children:t.map(s=>D.jsx(tb,{page:s,isActive:s.slug===i,onClick:()=>a(s)},s.slug))})]}),YE=({section:e,expanded:t,currentSlug:r,expandedGroups:i,onToggleSection:n,onToggleGroup:a,onPageClick:s})=>D.jsxs("div",{style:{marginBottom:"2px"},children:[D.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:[D.jsx(Jk,{size:12,rotated:t}),D.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name})]}),t&&D.jsxs("div",{children:[e.groups.map(c=>D.jsx(VE,{name:c.name,pages:c.pages,expanded:i.includes(`${e.name}::${c.name}`),currentSlug:r,onToggle:()=>a(`${e.name}::${c.name}`),onPageClick:s},c.name)),e.ungroupedPages.map(c=>D.jsx(tb,{page:c,isActive:c.slug===r,onClick:()=>s(c)},c.slug))]})]}),GE=()=>{const e=$t(x=>x.currentWiki),t=$t(x=>x.currentView),r=$t(x=>x.config),i=$t(x=>x.expandedSections),n=$t(x=>x.expandedGroups),a=$t(x=>x.toggleSection),s=$t(x=>x.toggleGroup),c=$t(x=>x.setCurrentView),h=$t(x=>x.setCurrentWiki),u=$t(x=>x.setLoadingWiki);$t(x=>x.setLoadingPage);const f=r==null?void 0:r.lastOpenedProject;jt.useEffect(()=>{if(!f){h(null),c(null);return}let x=!1;return u(!0),c(null),rm(f).then(C=>{x||h(C)}).catch(C=>{console.error("Failed to load wiki:",C),x||h(null)}).finally(()=>{x||u(!1)}),()=>{x=!0}},[f,h,c,u]);const p=jt.useMemo(()=>e?UE(e):null,[e]);jt.useEffect(()=>{var x;if(p&&p.sections.length>0){const C=p.sections.map(_=>_.name),k=p.sections.flatMap(_=>_.groups.map(I=>`${_.name}::${I.name}`));$t.getState().setExpandedSections(C),$t.getState().setExpandedGroups(k);const S=p.sections[0],T=((x=S.groups[0])==null?void 0:x.pages[0])||S.ungroupedPages[0];T&&!g&&m(T)}},[p]);const m=async x=>{if(!f)return;const C=$t.getState().projects.find(S=>S.id===f),k=(C==null?void 0:C.currentVersion)||"latest";c({projectId:f,version:k,slug:x.slug,content:"",loading:!0});try{const S=await im(f,k,x.slug);c({projectId:f,version:k,slug:x.slug,content:S.content,loading:!1})}catch(S){c({projectId:f,version:k,slug:x.slug,content:"",loading:!1,error:S instanceof Error?S.message:"Failed to load page"})}},g=t==null?void 0:t.slug;return D.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:[D.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:"导航"}),D.jsx("div",{style:{flex:1,overflowY:"auto",padding:"8px"},children:p?p.sections.length===0?D.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:"暂无内容"}):p.sections.map(x=>D.jsx(YE,{section:x,expanded:i.includes(x.name),currentSlug:g,expandedGroups:n,onToggleSection:()=>a(x.name),onToggleGroup:C=>s(C),onPageClick:m},x.name)):D.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:f?"加载中...":"请先选择一个项目"})})]})};function XE(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const QE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZE={};function a1(e,t){return(ZE.jsx?KE:QE).test(e)}const JE=/[ \t\n\f\r]/g;function tF(e){return typeof e=="object"?e.type==="text"?s1(e.value):!1:s1(e)}function s1(e){return e.replace(JE,"")===""}class Kl{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}Kl.prototype.normal={};Kl.prototype.property={};Kl.prototype.space=void 0;function eb(e,t){const r={},i={};for(const n of e)Object.assign(r,n.property),Object.assign(i,n.normal);return new Kl(r,i,t)}function Wp(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 eF=0;const Xt=Uo(),Re=Uo(),Hp=Uo(),pt=Uo(),ye=Uo(),Ma=Uo(),Vr=Uo();function Uo(){return 2**++eF}const Up=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xt,booleanish:Re,commaOrSpaceSeparated:Vr,commaSeparated:Ma,number:pt,overloadedBoolean:Hp,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ep=Object.keys(Up);class nm extends Dr{constructor(t,r,i,n){let a=-1;if(super(t,r),l1(this,"space",n),typeof i=="number")for(;++a<ep.length;){const s=ep[a];l1(this,ep[a],(i&Up[s])===Up[s])}}}nm.prototype.defined=!0;function l1(e,t,r){r&&(e[t]=r)}function os(e){const t={},r={};for(const[i,n]of Object.entries(e.properties)){const a=new nm(i,e.transform(e.attributes||{},i),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,r[Wp(i)]=i,r[Wp(a.attribute)]=i}return new Kl(t,r,e.space)}const rb=os({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 ib(e,t){return t in e?e[t]:t}function nb(e,t){return ib(e,t.toLowerCase())}const rF=os({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ma,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|Ma,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xt,defer:Xt,dir:null,dirName:null,disabled:Xt,download:Hp,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:Hp,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:nb}),iF=os({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:Ma,g2:Ma,glyphName:Ma,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:ib}),ob=os({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()}}),ab=os({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nb}),sb=os({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nF={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"},oF=/[A-Z]/g,c1=/-[a-z]/g,aF=/^data[-\w.:]+$/i;function sF(e,t){const r=Wp(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"&&aF.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(c1,cF);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!c1.test(a)){let s=a.replace(oF,lF);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}n=nm}return new n(i,t)}function lF(e){return"-"+e.toLowerCase()}function cF(e){return e.charAt(1).toUpperCase()}const hF=eb([rb,rF,ob,ab,sb],"html"),om=eb([rb,iF,ob,ab,sb],"svg");function uF(e){return e.join(" ").trim()}var ba={},rp,h1;function fF(){if(h1)return rp;h1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,h=`
42
+ `,u="/",f="*",p="",m="comment",g="declaration";function x(k,S){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];S=S||{};var T=1,_=1;function I(V){var j=V.match(t);j&&(T+=j.length);var q=V.lastIndexOf(h);_=~q?V.length-q:_+V.length}function P(){var V={line:T,column:_};return function(j){return j.position=new A(V),et(),j}}function A(V){this.start=V,this.end={line:T,column:_},this.source=S.source}A.prototype.content=k;function E(V){var j=new Error(S.source+":"+T+":"+_+": "+V);if(j.reason=V,j.filename=S.source,j.line=T,j.column=_,j.source=k,!S.silent)throw j}function W(V){var j=V.exec(k);if(j){var q=j[0];return I(q),k=k.slice(q.length),j}}function et(){W(r)}function M(V){var j;for(V=V||[];j=N();)j!==!1&&V.push(j);return V}function N(){var V=P();if(!(u!=k.charAt(0)||f!=k.charAt(1))){for(var j=2;p!=k.charAt(j)&&(f!=k.charAt(j)||u!=k.charAt(j+1));)++j;if(j+=2,p===k.charAt(j-1))return E("End of comment missing");var q=k.slice(2,j-2);return _+=2,I(q),k=k.slice(j),_+=2,V({type:m,comment:q})}}function J(){var V=P(),j=W(i);if(j){if(N(),!W(n))return E("property missing ':'");var q=W(a),G=V({type:g,property:C(j[0].replace(e,p)),value:q?C(q[0].replace(e,p)):p});return W(s),G}}function nt(){var V=[];M(V);for(var j;j=J();)j!==!1&&(V.push(j),M(V));return V}return et(),nt()}function C(k){return k?k.replace(c,p):p}return rp=x,rp}var u1;function dF(){if(u1)return ba;u1=1;var e=ba&&ba.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=r;const t=e(fF());function r(i,n){let a=null;if(!i||typeof i!="string")return a;const s=(0,t.default)(i),c=typeof n=="function";return s.forEach(h=>{if(h.type!=="declaration")return;const{property:u,value:f}=h;c?n(u,f,h):f&&(a=a||{},a[u]=f)}),a}return ba}var Js={},f1;function pF(){if(f1)return Js;f1=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,a=function(u){return!u||r.test(u)||e.test(u)},s=function(u,f){return f.toUpperCase()},c=function(u,f){return"".concat(f,"-")},h=function(u,f){return f===void 0&&(f={}),a(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(n,c):u=u.replace(i,c),u.replace(t,s))};return Js.camelCase=h,Js}var tl,d1;function gF(){if(d1)return tl;d1=1;var e=tl&&tl.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(dF()),r=pF();function i(n,a){var s={};return!n||typeof n!="string"||(0,t.default)(n,function(c,h){c&&h&&(s[(0,r.camelCase)(c,a)]=h)}),s}return i.default=i,tl=i,tl}var mF=gF();const yF=Ql(mF),lb=cb("end"),am=cb("start");function cb(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 xF(e){const t=am(e),r=lb(e);if(t&&r)return{start:t,end:r}}function Tl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?p1(e.position):"start"in e||"end"in e?p1(e):"line"in e||"column"in e?Vp(e):""}function Vp(e){return g1(e&&e.line)+":"+g1(e&&e.column)}function p1(e){return Vp(e&&e.start)+"-"+Vp(e&&e.end)}function g1(e){return e&&typeof e=="number"?e:1}class fr extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let n="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?n=t:!a.cause&&t&&(s=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?a.ruleId=i:(a.source=i.slice(0,h),a.ruleId=i.slice(h+1))}if(!a.place&&a.ancestors&&a.ancestors){const h=a.ancestors[a.ancestors.length-1];h&&(a.place=h.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.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=Tl(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}fr.prototype.file="";fr.prototype.name="";fr.prototype.reason="";fr.prototype.message="";fr.prototype.stack="";fr.prototype.column=void 0;fr.prototype.line=void 0;fr.prototype.ancestors=void 0;fr.prototype.cause=void 0;fr.prototype.fatal=void 0;fr.prototype.place=void 0;fr.prototype.ruleId=void 0;fr.prototype.source=void 0;const sm={}.hasOwnProperty,CF=new Map,kF=/[A-Z]/g,bF=new Set(["table","tbody","thead","tfoot","tr"]),vF=new Set(["td","th"]),hb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wF(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=AF(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=FF(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"?om:hF,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ub(n,e,void 0);return a&&typeof a!="string"?a:n.create(e,n.Fragment,{children:a||void 0},void 0)}function ub(e,t,r){if(t.type==="element")return SF(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return TF(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return BF(e,t,r);if(t.type==="mdxjsEsm")return _F(e,t);if(t.type==="root")return LF(e,t,r);if(t.type==="text")return EF(e,t)}function SF(e,t,r){const i=e.schema;let n=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(n=om,e.schema=n),e.ancestors.push(t);const a=db(e,t.tagName,!1),s=MF(e,t);let c=cm(e,t);return bF.has(t.tagName)&&(c=c.filter(function(h){return typeof h=="string"?!tF(h):!0})),fb(e,s,a,t),lm(s,c),e.ancestors.pop(),e.schema=i,e.create(t,a,s,r)}function TF(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)}Pl(e,t.position)}function _F(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Pl(e,t.position)}function BF(e,t,r){const i=e.schema;let n=i;t.name==="svg"&&i.space==="html"&&(n=om,e.schema=n),e.ancestors.push(t);const a=t.name===null?e.Fragment:db(e,t.name,!0),s=IF(e,t),c=cm(e,t);return fb(e,s,a,t),lm(s,c),e.ancestors.pop(),e.schema=i,e.create(t,a,s,r)}function LF(e,t,r){const i={};return lm(i,cm(e,t)),e.create(t,e.Fragment,i,r)}function EF(e,t){return t.value}function fb(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function lm(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function FF(e,t,r){return i;function i(n,a,s,c){const u=Array.isArray(s.children)?r:t;return c?u(a,s,c):u(a,s)}}function AF(e,t){return r;function r(i,n,a,s){const c=Array.isArray(a.children),h=am(i);return t(n,a,s,c,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function MF(e,t){const r={};let i,n;for(n in t.properties)if(n!=="children"&&sm.call(t.properties,n)){const a=PF(e,n,t.properties[n]);if(a){const[s,c]=a;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&vF.has(t.tagName)?i=c:r[s]=c}}if(i){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function IF(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const s=a.expression;s.type;const c=s.properties[0];c.type,Object.assign(r,e.evaluater.evaluateExpression(c.argument))}else Pl(e,t.position);else{const n=i.name;let a;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,a=e.evaluater.evaluateExpression(c.expression)}else Pl(e,t.position);else a=i.value===null?!0:i.value;r[n]=a}return r}function cm(e,t){const r=[];let i=-1;const n=e.passKeys?new Map:CF;for(;++i<t.children.length;){const a=t.children[i];let s;if(e.passKeys){const h=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(h){const u=n.get(h)||0;s=h+"-"+u,n.set(h,u+1)}}const c=ub(e,a,s);c!==void 0&&r.push(c)}return r}function PF(e,t,r){const i=sF(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?XE(r):uF(r)),i.property==="style"){let n=typeof r=="object"?r:OF(e,String(r));return e.stylePropertyNameCase==="css"&&(n=DF(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&i.space?nF[i.property]||i.property:i.attribute,r]}}function OF(e,t){try{return yF(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,n=new fr("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=hb+"#cannot-parse-style-attribute",n}}function db(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let a=-1,s;for(;++a<n.length;){const c=a1(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}i=s}else i=a1(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const n=i.value;return sm.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(i);Pl(e)}function Pl(e,t){const r=new fr("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=hb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function DF(e){const t={};let r;for(r in e)sm.call(e,r)&&(t[RF(r)]=e[r]);return t}function RF(e){let t=e.replace(kF,$F);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $F(e){return"-"+e.toLowerCase()}const ip={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"]},zF={};function hm(e,t){const r=zF,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return pb(e,i,n)}function pb(e,t,r){if(NF(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 m1(e.children,t,r)}return Array.isArray(e)?m1(e,t,r):""}function m1(e,t,r){const i=[];let n=-1;for(;++n<e.length;)i[n]=pb(e[n],t,r);return i.join("")}function NF(e){return!!(e&&typeof e=="object")}const y1=document.createElement("i");function um(e){const t="&"+e+";";y1.innerHTML=t;const r=y1.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 a=0,s;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,i.length<1e4)s=Array.from(i),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function li(e,t){return e.length>0?(Gr(e,e.length,0,t),e):t}const x1={}.hasOwnProperty;function gb(e){const t={};let r=-1;for(;++r<e.length;)jF(t,e[r]);return t}function jF(e,t){let r;for(r in t){const n=(x1.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){x1.call(n,s)||(n[s]=[]);const c=a[s];qF(n[s],Array.isArray(c)?c:c?[c]:[])}}}function qF(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 mb(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]/),WF=ao(/[#-'*+\--9=?A-Z^-~]/);function eu(e){return e!==null&&(e<32||e===127)}const Yp=ao(/\d/),HF=ao(/[\dA-Fa-f]/),UF=ao(/[!-/:-@[-`{-~]/);function zt(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 Nu=ao(new RegExp("\\p{P}|\\p{S}","u")),Do=ao(/\s/);function ao(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function as(e){const t=[];let r=-1,i=0,n=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&hr(e.charCodeAt(r+1))&&hr(e.charCodeAt(r+2)))n=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(r+1);a<56320&&c>56319&&c<57344?(s=String.fromCharCode(a,c),n=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+n+1,s=""),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 a=0;return s;function s(h){return te(h)?(e.enter(r),c(h)):t(h)}function c(h){return te(h)&&a++<n?(e.consume(h),c):(e.exit(r),t(h))}}const VF={tokenize:YF};function YF(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"),a(c)}function a(c){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,s(c)}function s(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return zt(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),s)}}const GF={tokenize:XF},C1={tokenize:QF};function XF(e){const t=this,r=[];let i=0,n,a,s;return c;function c(_){if(i<r.length){const I=r[i];return t.containerState=I[1],e.attempt(I[0].continuation,h,u)(_)}return u(_)}function h(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&T();const I=t.events.length;let P=I,A;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){A=t.events[P][1].end;break}S(i);let E=I;for(;E<t.events.length;)t.events[E][1].end={...A},E++;return Gr(t.events,P+1,0,t.events.slice(I)),t.events.length=E,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(C1,f,p)(_)}function f(_){return n&&T(),S(i),m(_)}function p(_){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,x(_)}function m(_){return t.containerState={},e.attempt(C1,g,x)(_)}function g(_){return i++,r.push([t.currentConstruct,t.containerState]),m(_)}function x(_){if(_===null){n&&T(),S(0),e.consume(_);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:a}),C(_)}function C(_){if(_===null){k(e.exit("chunkFlow"),!0),S(0),e.consume(_);return}return zt(_)?(e.consume(_),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(_),C)}function k(_,I){const P=t.sliceStream(_);if(I&&P.push(null),_.previous=a,a&&(a.next=_),a=_,n.defineSkip(_.start),n.write(P),t.parser.lazy[_.start.line]){let A=n.events.length;for(;A--;)if(n.events[A][1].start.offset<s&&(!n.events[A][1].end||n.events[A][1].end.offset>s))return;const E=t.events.length;let W=E,et,M;for(;W--;)if(t.events[W][0]==="exit"&&t.events[W][1].type==="chunkFlow"){if(et){M=t.events[W][1].end;break}et=!0}for(S(i),A=E;A<t.events.length;)t.events[A][1].end={...M},A++;Gr(t.events,W+1,0,t.events.slice(E)),t.events.length=A}}function S(_){let I=r.length;for(;I-- >_;){const P=r[I];t.containerState=P[1],P[0].exit.call(t,e)}r.length=_}function T(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function QF(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 Qa(e){if(e===null||pe(e)||Do(e))return 1;if(Nu(e))return 2}function ju(e,t,r){const i=[];let n=-1;for(;++n<e.length;){const a=e[n].resolveAll;a&&!i.includes(a)&&(t=a(t,r),i.push(a))}return t}const Gp={name:"attention",resolveAll:KF,tokenize:ZF};function KF(e,t){let r=-1,i,n,a,s,c,h,u,f;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};k1(p,-h),k1(m,h),s={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},a={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},n={type:h>1?"strong":"emphasis",start:{...s.start},end:{...c.end}},e[i][1].end={...s.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",s,t],["exit",s,t],["enter",a,t]]),u=li(u,ju(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=li(u,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,u=li(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,Gr(e,i-1,r-i+3,u),r=i+u.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function ZF(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,n=Qa(i);let a;return s;function s(h){return a=h,e.enter("attentionSequence"),c(h)}function c(h){if(h===a)return e.consume(h),c;const u=e.exit("attentionSequence"),f=Qa(h),p=!f||f===2&&n||r.includes(h),m=!n||n===2&&f||r.includes(i);return u._open=!!(a===42?p:p&&(n||!m)),u._close=!!(a===42?m:m&&(f||!p)),t(h)}}function k1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const JF={name:"autolink",tokenize:tA};function tA(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"),a}function a(g){return xr(g)?(e.consume(g),s):g===64?r(g):u(g)}function s(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||eu(g)?r(g):(e.consume(g),h)}function u(g){return g===64?(e.consume(g),f):WF(g)?(e.consume(g),u):r(g)}function f(g){return hr(g)?p(g):r(g)}function p(g){return g===46?(e.consume(g),i=0,f):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 Zl={partial:!0,tokenize:eA};function eA(e,t,r){return i;function i(a){return te(a)?ne(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||zt(a)?t(a):r(a)}}const yb={continuation:{tokenize:iA},exit:nA,name:"blockQuote",tokenize:rA};function rA(e,t,r){const i=this;return n;function n(s){if(s===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return te(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function iA(e,t,r){const i=this;return n;function n(s){return te(s)?ne(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(yb,t,r)(s)}}function nA(e){e.exit("blockQuote")}const xb={name:"characterEscape",tokenize:oA};function oA(e,t,r){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return UF(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Cb={name:"characterReference",tokenize:aA};function aA(e,t,r){const i=this;let n=0,a,s;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"),a=31,s=hr,f(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=HF,f):(e.enter("characterReferenceValue"),a=7,s=Yp,f(p))}function f(p){if(p===59&&n){const m=e.exit("characterReferenceValue");return s===hr&&!um(i.sliceSerialize(m))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(p)&&n++<a?(e.consume(p),f):r(p)}}const b1={partial:!0,tokenize:lA},v1={concrete:!0,name:"codeFenced",tokenize:sA};function sA(e,t,r){const i=this,n={partial:!0,tokenize:P};let a=0,s=0,c;return h;function h(A){return u(A)}function u(A){const E=i.events[i.events.length-1];return a=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,c=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(A)}function f(A){return A===c?(s++,e.consume(A),f):s<3?r(A):(e.exit("codeFencedFenceSequence"),te(A)?ne(e,p,"whitespace")(A):p(A))}function p(A){return A===null||zt(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(b1,C,I)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||zt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):te(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,g,"whitespace")(A)):A===96&&A===c?r(A):(e.consume(A),m)}function g(A){return A===null||zt(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||zt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(A)):A===96&&A===c?r(A):(e.consume(A),x)}function C(A){return e.attempt(n,I,k)(A)}function k(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),S}function S(A){return a>0&&te(A)?ne(e,T,"linePrefix",a+1)(A):T(A)}function T(A){return A===null||zt(A)?e.check(b1,C,I)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||zt(A)?(e.exit("codeFlowValue"),T(A)):(e.consume(A),_)}function I(A){return e.exit("codeFenced"),t(A)}function P(A,E,W){let et=0;return M;function M(j){return A.enter("lineEnding"),A.consume(j),A.exit("lineEnding"),N}function N(j){return A.enter("codeFencedFence"),te(j)?ne(A,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):J(j)}function J(j){return j===c?(A.enter("codeFencedFenceSequence"),nt(j)):W(j)}function nt(j){return j===c?(et++,A.consume(j),nt):et>=s?(A.exit("codeFencedFenceSequence"),te(j)?ne(A,V,"whitespace")(j):V(j)):W(j)}function V(j){return j===null||zt(j)?(A.exit("codeFencedFence"),E(j)):W(j)}}}function lA(e,t,r){const i=this;return n;function n(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}const np={name:"codeIndented",tokenize:hA},cA={partial:!0,tokenize:uA};function hA(e,t,r){const i=this;return n;function n(u){return e.enter("codeIndented"),ne(e,a,"linePrefix",5)(u)}function a(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?h(u):zt(u)?e.attempt(cA,s,h)(u):(e.enter("codeFlowValue"),c(u))}function c(u){return u===null||zt(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),c)}function h(u){return e.exit("codeIndented"),t(u)}}function uA(e,t,r){const i=this;return n;function n(s){return i.parser.lazy[i.now().line]?r(s):zt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):ne(e,a,"linePrefix",5)(s)}function a(s){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):zt(s)?n(s):r(s)}}const fA={name:"codeText",previous:pA,resolve:dA,tokenize:gA};function dA(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 pA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gA(e,t,r){let i=0,n,a;return s;function s(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?(a=e.enter("codeTextSequence"),n=0,f(p)):zt(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||zt(p)?(e.exit("codeTextData"),h(p)):(e.consume(p),u)}function f(p){return p===96?(e.consume(p),n++,f):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(a.type="codeTextData",u(p))}}class mA{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 a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return i&&el(this.left,i),a.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),el(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),el(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);el(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);el(this.left,r.reverse())}}}function el(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 kb(e){const t={};let r=-1,i,n,a,s,c,h,u;const f=new mA(e);for(;++r<f.length;){for(;r in t;)r=t[r];if(i=f.get(r),r&&i[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,a=0,a<h.length&&h[a][1].type==="lineEndingBlank"&&(a+=2),a<h.length&&h[a][1].type==="content"))for(;++a<h.length&&h[a][1].type!=="content";)h[a][1].type==="chunkText"&&(h[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,yA(f,r)),r=t[r],u=!0);else if(i[1]._container){for(a=r,n=void 0;a--;)if(s=f.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(n&&(f.get(n)[1].type="lineEndingBlank"),s[1].type="lineEnding",n=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;n&&(i[1].end={...f.get(n)[1].start},c=f.slice(n,r),c.unshift(i),f.splice(n,r-n+1,c))}}return Gr(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function yA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let n=t-1;const a=[];let s=r._tokenizer;s||(s=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const c=s.events,h=[],u={};let f,p,m=-1,g=r,x=0,C=0;const k=[C];for(;g;){for(;e.get(++n)[1]!==g;);a.push(n),g._tokenizer||(f=i.sliceStream(g),g.next||f.push(null),p&&s.defineSkip(g.start),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),g._isInFirstContentOfListItem&&(s._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(s.events=[],g?(g._tokenizer=void 0,g.previous=void 0):k.pop(),m=k.length;m--;){const S=c.slice(k[m],k[m+1]),T=a.pop();h.push([T,T+S.length-1]),e.splice(T,2,S)}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 xA={resolve:kA,tokenize:bA},CA={partial:!0,tokenize:vA};function kA(e){return kb(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?a(c):zt(c)?e.check(CA,s,a)(c):(e.consume(c),n)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function s(c){return e.consume(c),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function vA(e,t,r){const i=this;return n;function n(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ne(e,a,"linePrefix")}function a(s){if(s===null||zt(s))return r(s);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(s):e.interrupt(i.parser.constructs.flow,r,t)(s)}}function bb(e,t,r,i,n,a,s,c,h){const u=h||Number.POSITIVE_INFINITY;let f=0;return p;function p(S){return S===60?(e.enter(i),e.enter(n),e.enter(a),e.consume(S),e.exit(a),m):S===null||S===32||S===41||eu(S)?r(S):(e.enter(i),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),C(S))}function m(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(n),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===62?(e.exit("chunkString"),e.exit(c),m(S)):S===null||S===60||zt(S)?r(S):(e.consume(S),S===92?x:g)}function x(S){return S===60||S===62||S===92?(e.consume(S),g):g(S)}function C(S){return!f&&(S===null||S===41||pe(S))?(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(i),t(S)):f<u&&S===40?(e.consume(S),f++,C):S===41?(e.consume(S),f--,C):S===null||S===32||S===40||eu(S)?r(S):(e.consume(S),S===92?k:C)}function k(S){return S===40||S===41||S===92?(e.consume(S),C):C(S)}}function vb(e,t,r,i,n,a){const s=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(a),f}function f(g){return c>999||g===null||g===91||g===93&&!h||g===94&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?r(g):g===93?(e.exit(a),e.enter(n),e.consume(g),e.exit(n),e.exit(i),t):zt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||zt(g)||c++>999?(e.exit("chunkString"),f(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 wb(e,t,r,i,n,a){let s;return c;function c(m){return m===34||m===39||m===40?(e.enter(i),e.enter(n),e.consume(m),e.exit(n),s=m===40?41:m,h):r(m)}function h(m){return m===s?(e.enter(n),e.consume(m),e.exit(n),e.exit(i),t):(e.enter(a),u(m))}function u(m){return m===s?(e.exit(a),h(s)):m===null?r(m):zt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===s||m===null||zt(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?p:f)}function p(m){return m===s||m===92?(e.consume(m),f):f(m)}}function _l(e,t){let r;return i;function i(n){return zt(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 wA={name:"definition",tokenize:TA},SA={partial:!0,tokenize:_A};function TA(e,t,r){const i=this;let n;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return vb.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)?_l(e,u)(g):u(g)}function u(g){return bb(e,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return e.attempt(SA,p,p)(g)}function p(g){return te(g)?ne(e,m,"whitespace")(g):m(g)}function m(g){return g===null||zt(g)?(e.exit("definition"),i.parser.defined.push(n),t(g)):r(g)}}function _A(e,t,r){return i;function i(c){return pe(c)?_l(e,n)(c):r(c)}function n(c){return wb(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return te(c)?ne(e,s,"whitespace")(c):s(c)}function s(c){return c===null||zt(c)?t(c):r(c)}}const BA={name:"hardBreakEscape",tokenize:LA};function LA(e,t,r){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return zt(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const EA={name:"headingAtx",resolve:FA,tokenize:AA};function FA(e,t){let r=e.length-2,i=3,n,a;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},a={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Gr(e,i,r-i+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function AA(e,t,r){let i=0;return n;function n(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&i++<6?(e.consume(f),s):f===null||pe(f)?(e.exit("atxHeadingSequence"),c(f)):r(f)}function c(f){return f===35?(e.enter("atxHeadingSequence"),h(f)):f===null||zt(f)?(e.exit("atxHeading"),t(f)):te(f)?ne(e,c,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function h(f){return f===35?(e.consume(f),h):(e.exit("atxHeadingSequence"),c(f))}function u(f){return f===null||f===35||pe(f)?(e.exit("atxHeadingText"),c(f)):(e.consume(f),u)}}const MA=["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"],w1=["pre","script","style","textarea"],IA={concrete:!0,name:"htmlFlow",resolveTo:DA,tokenize:RA},PA={partial:!0,tokenize:zA},OA={partial:!0,tokenize:$A};function DA(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 RA(e,t,r){const i=this;let n,a,s,c,h;return u;function u(O){return f(O)}function f(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),p}function p(O){return O===33?(e.consume(O),m):O===47?(e.consume(O),a=!0,C):O===63?(e.consume(O),n=3,i.interrupt?t:F):xr(O)?(e.consume(O),s=String.fromCharCode(O),k):r(O)}function m(O){return O===45?(e.consume(O),n=2,g):O===91?(e.consume(O),n=5,c=0,x):xr(O)?(e.consume(O),n=4,i.interrupt?t:F):r(O)}function g(O){return O===45?(e.consume(O),i.interrupt?t:F):r(O)}function x(O){const mt="CDATA[";return O===mt.charCodeAt(c++)?(e.consume(O),c===mt.length?i.interrupt?t:J:x):r(O)}function C(O){return xr(O)?(e.consume(O),s=String.fromCharCode(O),k):r(O)}function k(O){if(O===null||O===47||O===62||pe(O)){const mt=O===47,dt=s.toLowerCase();return!mt&&!a&&w1.includes(dt)?(n=1,i.interrupt?t(O):J(O)):MA.includes(s.toLowerCase())?(n=6,mt?(e.consume(O),S):i.interrupt?t(O):J(O)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(O):a?T(O):_(O))}return O===45||hr(O)?(e.consume(O),s+=String.fromCharCode(O),k):r(O)}function S(O){return O===62?(e.consume(O),i.interrupt?t:J):r(O)}function T(O){return te(O)?(e.consume(O),T):M(O)}function _(O){return O===47?(e.consume(O),M):O===58||O===95||xr(O)?(e.consume(O),I):te(O)?(e.consume(O),_):M(O)}function I(O){return O===45||O===46||O===58||O===95||hr(O)?(e.consume(O),I):P(O)}function P(O){return O===61?(e.consume(O),A):te(O)?(e.consume(O),P):_(O)}function A(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),h=O,E):te(O)?(e.consume(O),A):W(O)}function E(O){return O===h?(e.consume(O),h=null,et):O===null||zt(O)?r(O):(e.consume(O),E)}function W(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||pe(O)?P(O):(e.consume(O),W)}function et(O){return O===47||O===62||te(O)?_(O):r(O)}function M(O){return O===62?(e.consume(O),N):r(O)}function N(O){return O===null||zt(O)?J(O):te(O)?(e.consume(O),N):r(O)}function J(O){return O===45&&n===2?(e.consume(O),q):O===60&&n===1?(e.consume(O),G):O===62&&n===4?(e.consume(O),z):O===63&&n===3?(e.consume(O),F):O===93&&n===5?(e.consume(O),K):zt(O)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(PA,tt,nt)(O)):O===null||zt(O)?(e.exit("htmlFlowData"),nt(O)):(e.consume(O),J)}function nt(O){return e.check(OA,V,tt)(O)}function V(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),j}function j(O){return O===null||zt(O)?nt(O):(e.enter("htmlFlowData"),J(O))}function q(O){return O===45?(e.consume(O),F):J(O)}function G(O){return O===47?(e.consume(O),s="",R):J(O)}function R(O){if(O===62){const mt=s.toLowerCase();return w1.includes(mt)?(e.consume(O),z):J(O)}return xr(O)&&s.length<8?(e.consume(O),s+=String.fromCharCode(O),R):J(O)}function K(O){return O===93?(e.consume(O),F):J(O)}function F(O){return O===62?(e.consume(O),z):O===45&&n===2?(e.consume(O),F):J(O)}function z(O){return O===null||zt(O)?(e.exit("htmlFlowData"),tt(O)):(e.consume(O),z)}function tt(O){return e.exit("htmlFlow"),t(O)}}function $A(e,t,r){const i=this;return n;function n(s){return zt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function zA(e,t,r){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Zl,t,r)}}const NA={name:"htmlText",tokenize:jA};function jA(e,t,r){const i=this;let n,a,s;return c;function c(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),h}function h(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),P):F===63?(e.consume(F),_):xr(F)?(e.consume(F),W):r(F)}function u(F){return F===45?(e.consume(F),f):F===91?(e.consume(F),a=0,x):xr(F)?(e.consume(F),T):r(F)}function f(F){return F===45?(e.consume(F),g):r(F)}function p(F){return F===null?r(F):F===45?(e.consume(F),m):zt(F)?(s=p,G(F)):(e.consume(F),p)}function m(F){return F===45?(e.consume(F),g):p(F)}function g(F){return F===62?q(F):F===45?m(F):p(F)}function x(F){const z="CDATA[";return F===z.charCodeAt(a++)?(e.consume(F),a===z.length?C:x):r(F)}function C(F){return F===null?r(F):F===93?(e.consume(F),k):zt(F)?(s=C,G(F)):(e.consume(F),C)}function k(F){return F===93?(e.consume(F),S):C(F)}function S(F){return F===62?q(F):F===93?(e.consume(F),S):C(F)}function T(F){return F===null||F===62?q(F):zt(F)?(s=T,G(F)):(e.consume(F),T)}function _(F){return F===null?r(F):F===63?(e.consume(F),I):zt(F)?(s=_,G(F)):(e.consume(F),_)}function I(F){return F===62?q(F):_(F)}function P(F){return xr(F)?(e.consume(F),A):r(F)}function A(F){return F===45||hr(F)?(e.consume(F),A):E(F)}function E(F){return zt(F)?(s=E,G(F)):te(F)?(e.consume(F),E):q(F)}function W(F){return F===45||hr(F)?(e.consume(F),W):F===47||F===62||pe(F)?et(F):r(F)}function et(F){return F===47?(e.consume(F),q):F===58||F===95||xr(F)?(e.consume(F),M):zt(F)?(s=et,G(F)):te(F)?(e.consume(F),et):q(F)}function M(F){return F===45||F===46||F===58||F===95||hr(F)?(e.consume(F),M):N(F)}function N(F){return F===61?(e.consume(F),J):zt(F)?(s=N,G(F)):te(F)?(e.consume(F),N):et(F)}function J(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),n=F,nt):zt(F)?(s=J,G(F)):te(F)?(e.consume(F),J):(e.consume(F),V)}function nt(F){return F===n?(e.consume(F),n=void 0,j):F===null?r(F):zt(F)?(s=nt,G(F)):(e.consume(F),nt)}function V(F){return F===null||F===34||F===39||F===60||F===61||F===96?r(F):F===47||F===62||pe(F)?et(F):(e.consume(F),V)}function j(F){return F===47||F===62||pe(F)?et(F):r(F)}function q(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):r(F)}function G(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),R}function R(F){return te(F)?ne(e,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):K(F)}function K(F){return e.enter("htmlTextData"),s(F)}}const fm={name:"labelEnd",resolveAll:UA,resolveTo:VA,tokenize:YA},qA={tokenize:GA},WA={tokenize:XA},HA={tokenize:QA};function UA(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 VA(e,t){let r=e.length,i=0,n,a,s,c;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){i=2;break}}else n.type==="labelEnd"&&(s=r);const h={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[s-2][1].start}};return c=[["enter",h,t],["enter",u,t]],c=li(c,e.slice(a+1,a+i+3)),c=li(c,[["enter",f,t]]),c=li(c,ju(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),c=li(c,[["exit",f,t],e[s-2],e[s-1],["exit",u,t]]),c=li(c,e.slice(s+1)),c=li(c,[["exit",h,t]]),Gr(e,a,e.length,c),e}function YA(e,t,r){const i=this;let n=i.events.length,a,s;for(;n--;)if((i.events[n][1].type==="labelImage"||i.events[n][1].type==="labelLink")&&!i.events[n][1]._balanced){a=i.events[n][1];break}return c;function c(m){return a?a._inactive?p(m):(s=i.parser.defined.includes(Li(i.sliceSerialize({start:a.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(qA,f,s?f:p)(m):m===91?e.attempt(WA,f,s?u:p)(m):s?f(m):p(m)}function u(m){return e.attempt(HA,f,p)(m)}function f(m){return t(m)}function p(m){return a._balanced=!0,r(m)}}function GA(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)?_l(e,a)(p):a(p)}function a(p){return p===41?f(p):bb(e,s,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function s(p){return pe(p)?_l(e,h)(p):f(p)}function c(p){return r(p)}function h(p){return p===34||p===39||p===40?wb(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function u(p){return pe(p)?_l(e,f)(p):f(p)}function f(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}function XA(e,t,r){const i=this;return n;function n(c){return vb.call(i,e,a,s,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(Li(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):r(c)}function s(c){return r(c)}}function QA(e,t,r){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const KA={name:"labelStartImage",resolveAll:fm.resolveAll,tokenize:ZA};function ZA(e,t,r){const i=this;return n;function n(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),s):r(c)}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const JA={name:"labelStartLink",resolveAll:fm.resolveAll,tokenize:t3};function t3(e,t,r){const i=this;return n;function n(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const op={name:"lineEnding",tokenize:e3};function e3(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ne(e,t,"linePrefix")}}const zh={name:"thematicBreak",tokenize:r3};function r3(e,t,r){let i=0,n;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return n=u,c(u)}function c(u){return u===n?(e.enter("thematicBreakSequence"),h(u)):i>=3&&(u===null||zt(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:a3},exit:l3,name:"list",tokenize:o3},i3={partial:!0,tokenize:c3},n3={partial:!0,tokenize:s3};function o3(e,t,r){const i=this,n=i.events[i.events.length-1];let a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,s=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:Yp(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(zh,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 Yp(g)&&++s<10?(e.consume(g),h):(!i.interrupt||s<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(Zl,i.interrupt?r:f,e.attempt(i3,m,p))}function f(g){return i.containerState.initialBlankLine=!0,a++,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=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function a3(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Zl,n,a);function n(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ne(e,t,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!te(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(n3,t,s)(c))}function s(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 s3(e,t,r){const i=this;return ne(e,n,"listItemIndent",i.containerState.size+1);function n(a){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(a):r(a)}}function l3(e){e.exit(this.containerState.type)}function c3(e,t,r){const i=this;return ne(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){const s=i.events[i.events.length-1];return!te(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const S1={name:"setextUnderline",resolveTo:h3,tokenize:u3};function h3(e,t){let r=e.length,i,n,a;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),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",s,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function u3(e,t,r){const i=this;let n;return a;function a(u){let f=i.events.length,p;for(;f--;)if(i.events[f][1].type!=="lineEnding"&&i.events[f][1].type!=="linePrefix"&&i.events[f][1].type!=="content"){p=i.events[f][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),n=u,s(u)):r(u)}function s(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||zt(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const f3={tokenize:d3};function d3(e){const t=this,r=e.attempt(Zl,i,e.attempt(this.parser.constructs.flowInitial,n,ne(e,e.attempt(this.parser.constructs.flow,n,e.attempt(xA,n)),"linePrefix")));return r;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const p3={resolveAll:Tb()},g3=Sb("string"),m3=Sb("text");function Sb(e){return{resolveAll:Tb(e==="text"?y3:void 0),tokenize:t};function t(r){const i=this,n=this.parser.constructs[e],a=r.attempt(n,s,c);return s;function s(f){return u(f)?a(f):c(f)}function c(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),h}function h(f){return u(f)?(r.exit("data"),a(f)):(r.consume(f),h)}function u(f){if(f===null)return!0;const p=n[f];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 Tb(e){return t;function t(r,i){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,i):r}}function y3(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 a=n.length,s=-1,c=0,h;for(;a--;){const u=n[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(u===-2)h=!0,c++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){const u={type:r===e.length||h||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,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 x3={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:yb},C3={91:wA},k3={[-2]:np,[-1]:np,32:np},b3={35:EA,42:zh,45:[S1,zh],60:IA,61:S1,95:zh,96:v1,126:v1},v3={38:Cb,92:xb},w3={[-5]:op,[-4]:op,[-3]:op,33:KA,38:Cb,42:Gp,60:[JF,NA],91:JA,92:[BA,xb],93:fm,95:Gp,96:fA},S3={null:[Gp,p3]},T3={null:[42,95]},_3={null:[]},B3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:T3,contentInitial:C3,disable:_3,document:x3,flow:b3,flowInitial:k3,insideSpan:S3,string:v3,text:w3},Symbol.toStringTag,{value:"Module"}));function L3(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={},a=[];let s=[],c=[];const h={attempt:E(P),check:E(A),consume:T,enter:_,exit:I,interrupt:E(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:p};let f=t.tokenize.call(u,h);return t.resolveAll&&a.push(t),u;function p(N){return s=li(s,N),k(),s[s.length-1]!==null?[]:(W(t,0),u.events=ju(a,u.events,u),u.events)}function m(N,J){return F3(g(N),J)}function g(N){return E3(s,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,M()}function k(){let N;for(;i._index<s.length;){const J=s[i._index];if(typeof J=="string")for(N=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===N&&i._bufferIndex<J.length;)S(J.charCodeAt(i._bufferIndex));else S(J)}}function S(N){f=f(N)}function T(N){zt(N)?(i.line++,i.column=1,i.offset+=N===-3?2:1,M()):N!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[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 I(N){const J=c.pop();return J.end=x(),u.events.push(["exit",J,u]),J}function P(N,J){W(N,J.from)}function A(N,J){J.restore()}function E(N,J){return nt;function nt(V,j,q){let G,R,K,F;return Array.isArray(V)?tt(V):"tokenize"in V?tt([V]):z(V);function z(xt){return Pt;function Pt(Ft){const Yt=Ft!==null&&xt[Ft],yt=Ft!==null&&xt.null,It=[...Array.isArray(Yt)?Yt:Yt?[Yt]:[],...Array.isArray(yt)?yt:yt?[yt]:[]];return tt(It)(Ft)}}function tt(xt){return G=xt,R=0,xt.length===0?q:O(xt[R])}function O(xt){return Pt;function Pt(Ft){return F=et(),K=xt,xt.partial||(u.currentConstruct=xt),xt.name&&u.parser.constructs.disable.null.includes(xt.name)?dt():xt.tokenize.call(J?Object.assign(Object.create(u),J):u,h,mt,dt)(Ft)}}function mt(xt){return N(K,F),j}function dt(xt){return F.restore(),++R<G.length?O(G[R]):q}}}function W(N,J){N.resolveAll&&!a.includes(N)&&a.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:q};function q(){i=N,u.previous=J,u.currentConstruct=nt,u.events.length=V,c=j,M()}}function M(){i.line in n&&i.column<2&&(i.column=n[i.line],i.offset+=n[i.line]-1)}}function E3(e,t){const r=t.start._index,i=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex;let s;if(r===n)s=[e[r].slice(i,a)];else{if(s=e.slice(r,n),i>-1){const c=s[0];typeof c=="string"?s[0]=c.slice(i):s.shift()}a>0&&s.push(e[n].slice(0,a))}return s}function F3(e,t){let r=-1;const i=[];let n;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
43
+ `;break}case-3:{s=`\r
44
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&n)continue;s=" ";break}default:s=String.fromCharCode(a)}n=a===-2,i.push(s)}return i.join("")}function A3(e){const i={constructs:gb([B3,...(e||{}).extensions||[]]),content:n(VF),defined:[],document:n(GF),flow:n(f3),lazy:{},string:n(g3),text:n(m3)};return i;function n(a){return s;function s(c){return L3(i,a,c)}}}function M3(e){for(;!kb(e););return e}const T1=/[\0\t\n\r]/g;function I3(){let e=1,t="",r=!0,i;return n;function n(a,s,c){const h=[];let u,f,p,m,g;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),p=0,t="",r&&(a.charCodeAt(0)===65279&&p++,r=void 0);p<a.length;){if(T1.lastIndex=p,u=T1.exec(a),m=u&&u.index!==void 0?u.index:a.length,g=a.charCodeAt(m),!u){t=a.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(a.slice(p,m)),e+=m-p),g){case 0:{h.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,h.push(-2);e++<f;)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 P3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function O3(e){return e.replace(P3,D3)}function D3(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const n=r.charCodeAt(1),a=n===120||n===88;return mb(r.slice(a?2:1),a?16:10)}return um(r)||e}const _b={}.hasOwnProperty;function R3(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),$3(r)(M3(A3(r).document().write(I3()(e,t,!0))))}function $3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(fi),autolinkProtocol:et,autolinkEmail:et,atxHeading:a(Be),blockQuote:a(yt),characterEscape:et,characterReference:et,codeFenced:a(It),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(It,s),codeText:a(oe,s),codeTextData:et,data:et,codeFlowValue:et,definition:a(se),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(He),hardBreakEscape:a(Kr),hardBreakTrailing:a(Kr),htmlFlow:a(ui,s),htmlFlowData:et,htmlText:a(ui,s),htmlTextData:et,image:a(pr),label:s,link:a(fi),listItem:a(di),listItemValue:m,listOrdered:a(Rr,p),listUnordered:a(Rr),paragraph:a(Sn),reference:O,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Be),strong:a(Qo),thematicBreak:a(Oi)},exit:{atxHeading:h(),atxHeadingSequence:P,autolink:h(),autolinkEmail:Yt,autolinkProtocol:Ft,blockQuote:h(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:dt,characterReferenceMarkerNumeric:dt,characterReferenceValue:xt,characterReference:Pt,codeFenced:h(k),codeFencedFence:C,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:M,codeIndented:h(S),codeText:h(j),codeTextData:M,data:M,definition:h(),definitionDestinationString:I,definitionLabelString:T,definitionTitleString:_,emphasis:h(),hardBreakEscape:h(J),hardBreakTrailing:h(J),htmlFlow:h(nt),htmlFlowData:M,htmlText:h(V),htmlTextData:M,image:h(G),label:K,labelText:R,lineEnding:N,link:h(q),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:mt,resourceDestinationString:F,resourceTitleString:z,resource:tt,setextHeading:h(W),setextHeadingLineSequence:E,setextHeadingText:A,strong:h(),thematicBreak:h()}};Bb(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(at){let ut={type:"root",children:[]};const Ot={stack:[ut],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:f,data:r},Gt=[];let ee=-1;for(;++ee<at.length;)if(at[ee][1].type==="listOrdered"||at[ee][1].type==="listUnordered")if(at[ee][0]==="enter")Gt.push(ee);else{const Me=Gt.pop();ee=n(at,Me,ee)}for(ee=-1;++ee<at.length;){const Me=t[at[ee][0]];_b.call(Me,at[ee][1].type)&&Me[at[ee][1].type].call(Object.assign({sliceSerialize:at[ee][2].sliceSerialize},Ot),at[ee][1])}if(Ot.tokenStack.length>0){const Me=Ot.tokenStack[Ot.tokenStack.length-1];(Me[1]||_1).call(Ot,void 0,Me[0])}for(ut.position={start:Xn(at.length>0?at[0][1].start:{line:1,column:1,offset:0}),end:Xn(at.length>0?at[at.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(at,ut,Ot){let Gt=ut-1,ee=-1,Me=!1,Zr,Qe,$r,Ke;for(;++Gt<=Ot;){const be=at[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=at[Sr];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;Qe&&(at[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?at[Qe][1].start:be[1].end),at.splice(Qe||Gt,0,["exit",Zr,be[2]]),Gt++,Ot++}if(be[1].type==="listItemPrefix"){const Sr={type:"listItem",_spread:!1,start:Object.assign({},be[1].start),end:void 0};Zr=Sr,at.splice(Gt,0,["enter",Sr,be[2]]),Gt++,Ot++,$r=void 0,Ke=!0}}}return at[ut][1]._spread=Me,Ot}function a(at,ut){return Ot;function Ot(Gt){c.call(this,at(Gt),Gt),ut&&ut.call(this,Gt)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(at,ut,Ot){this.stack[this.stack.length-1].children.push(at),this.stack.push(at),this.tokenStack.push([ut,Ot||void 0]),at.position={start:Xn(ut.start),end:void 0}}function h(at){return ut;function ut(Ot){at&&at.call(this,Ot),u.call(this,Ot)}}function u(at,ut){const Ot=this.stack.pop(),Gt=this.tokenStack.pop();if(Gt)Gt[0].type!==at.type&&(ut?ut.call(this,at,Gt[0]):(Gt[1]||_1).call(this,at,Gt[0]));else throw new Error("Cannot close `"+at.type+"` ("+Tl({start:at.start,end:at.end})+"): it’s not open");Ot.position.end=Xn(at.end)}function f(){return hm(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function m(at){if(this.data.expectingFirstListItemValue){const ut=this.stack[this.stack.length-2];ut.start=Number.parseInt(this.sliceSerialize(at),10),this.data.expectingFirstListItemValue=void 0}}function g(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.lang=at}function x(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.meta=at}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at.replace(/(\r?\n|\r)$/g,"")}function T(at){const ut=this.resume(),Ot=this.stack[this.stack.length-1];Ot.label=ut,Ot.identifier=Li(this.sliceSerialize(at)).toLowerCase()}function _(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.title=at}function I(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.url=at}function P(at){const ut=this.stack[this.stack.length-1];if(!ut.depth){const Ot=this.sliceSerialize(at).length;ut.depth=Ot}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function E(at){const ut=this.stack[this.stack.length-1];ut.depth=this.sliceSerialize(at).codePointAt(0)===61?1:2}function W(){this.data.setextHeadingSlurpLineEnding=void 0}function et(at){const Ot=this.stack[this.stack.length-1].children;let Gt=Ot[Ot.length-1];(!Gt||Gt.type!=="text")&&(Gt=Tn(),Gt.position={start:Xn(at.start),end:void 0},Ot.push(Gt)),this.stack.push(Gt)}function M(at){const ut=this.stack.pop();ut.value+=this.sliceSerialize(at),ut.position.end=Xn(at.end)}function N(at){const ut=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ot=ut.children[ut.children.length-1];Ot.position.end=Xn(at.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ut.type)&&(et.call(this,at),M.call(this,at))}function J(){this.data.atHardBreak=!0}function nt(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at}function V(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at}function j(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.value=at}function q(){const at=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";at.type+="Reference",at.referenceType=ut,delete at.url,delete at.title}else delete at.identifier,delete at.label;this.data.referenceType=void 0}function G(){const at=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";at.type+="Reference",at.referenceType=ut,delete at.url,delete at.title}else delete at.identifier,delete at.label;this.data.referenceType=void 0}function R(at){const ut=this.sliceSerialize(at),Ot=this.stack[this.stack.length-2];Ot.label=O3(ut),Ot.identifier=Li(ut).toLowerCase()}function K(){const at=this.stack[this.stack.length-1],ut=this.resume(),Ot=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ot.type==="link"){const Gt=at.children;Ot.children=Gt}else Ot.alt=ut}function F(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.url=at}function z(){const at=this.resume(),ut=this.stack[this.stack.length-1];ut.title=at}function tt(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function mt(at){const ut=this.resume(),Ot=this.stack[this.stack.length-1];Ot.label=ut,Ot.identifier=Li(this.sliceSerialize(at)).toLowerCase(),this.data.referenceType="full"}function dt(at){this.data.characterReferenceType=at.type}function xt(at){const ut=this.sliceSerialize(at),Ot=this.data.characterReferenceType;let Gt;Ot?(Gt=mb(ut,Ot==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Gt=um(ut);const ee=this.stack[this.stack.length-1];ee.value+=Gt}function Pt(at){const ut=this.stack.pop();ut.position.end=Xn(at.end)}function Ft(at){M.call(this,at);const ut=this.stack[this.stack.length-1];ut.url=this.sliceSerialize(at)}function Yt(at){M.call(this,at);const ut=this.stack[this.stack.length-1];ut.url="mailto:"+this.sliceSerialize(at)}function yt(){return{type:"blockquote",children:[]}}function It(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function se(){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 fi(){return{type:"link",title:null,url:"",children:[]}}function Rr(at){return{type:"list",ordered:at.type==="listOrdered",start:null,spread:at._spread,children:[]}}function di(at){return{type:"listItem",spread:at._spread,checked:null,children:[]}}function Sn(){return{type:"paragraph",children:[]}}function Qo(){return{type:"strong",children:[]}}function Tn(){return{type:"text",value:""}}function Oi(){return{type:"thematicBreak"}}}function Xn(e){return{line:e.line,column:e.column,offset:e.offset}}function Bb(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Bb(e,i):z3(e,i)}}function z3(e,t){let r;for(r in t)if(_b.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 _1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Tl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Tl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Tl({start:t.start,end:t.end})+") is still open")}function N3(e){const t=this;t.parser=r;function r(i){return R3(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function j3(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 q3(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
45
+ `}]}function W3(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 a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function H3(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function U3(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function V3(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),n=as(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let s,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=a+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(s)}]};e.patch(t,h);const u={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,u),e.applyData(t,u)}function Y3(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 G3(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Lb(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),a=n[0];a&&a.type==="text"?a.value="["+a.value:n.unshift({type:"text",value:"["});const s=n[n.length-1];return s&&s.type==="text"?s.value+=i:n.push({type:"text",value:i}),n}function X3(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Lb(e,t);const n={src:as(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(n.title=i.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function Q3(e,t){const r={src:as(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 K3(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 Z3(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Lb(e,t);const n={href:as(i.url||"")};i.title!==null&&i.title!==void 0&&(n.title=i.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function J3(e,t){const r={href:as(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 t5(e,t,r){const i=e.all(t),n=r?e5(r):Eb(t),a={},s=[];if(typeof t.checked=="boolean"){const f=i[0];let p;f&&f.type==="element"&&f.tagName==="p"?p=f:(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:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const f=i[c];(n||c!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
47
+ `}),f.type==="element"&&f.tagName==="p"&&!n?s.push(...f.children):s.push(f)}const h=i[i.length-1];h&&(n||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
48
+ `});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function e5(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=Eb(r[i])}return t}function Eb(e){const t=e.spread;return t??e.children.length>1}function r5(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 s=i[n];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function i5(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function n5(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function o5(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function a5(e,t){const r=e.all(t),i=r.shift(),n=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),n.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},c=am(t.children[1]),h=lb(t.children[t.children.length-1]);c&&h&&(s.position={start:c,end:h}),n.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function s5(e,t,r){const i=r?r.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,c=s?s.length:t.children.length;let h=-1;const u=[];for(;++h<c;){const p=t.children[h],m={},g=s?s[h]:void 0;g&&(m.align=g);let x={type:"element",tagName:a,properties:m,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),u.push(x)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function l5(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const B1=9,L1=32;function c5(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),n=0;const a=[];for(;i;)a.push(E1(t.slice(n,i.index),n>0,!0),i[0]),n=i.index+i[0].length,i=r.exec(t);return a.push(E1(t.slice(n),n>0,!1)),a.join("")}function E1(e,t,r){let i=0,n=e.length;if(t){let a=e.codePointAt(i);for(;a===B1||a===L1;)i++,a=e.codePointAt(i)}if(r){let a=e.codePointAt(n-1);for(;a===B1||a===L1;)n--,a=e.codePointAt(n-1)}return n>i?e.slice(i,n):""}function h5(e,t){const r={type:"text",value:c5(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function u5(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const f5={blockquote:j3,break:q3,code:W3,delete:H3,emphasis:U3,footnoteReference:V3,heading:Y3,html:G3,imageReference:X3,image:Q3,inlineCode:K3,linkReference:Z3,link:J3,listItem:t5,list:r5,paragraph:i5,root:n5,strong:o5,table:a5,tableCell:l5,tableRow:s5,text:h5,thematicBreak:u5,toml:kh,yaml:kh,definition:kh,footnoteDefinition:kh};function kh(){}const Fb=-1,qu=0,Bl=1,ru=2,dm=3,pm=4,gm=5,mm=6,Ab=7,Mb=8,F1=typeof self=="object"?self:globalThis,d5=(e,t)=>{const r=(n,a)=>(e.set(a,n),n),i=n=>{if(e.has(n))return e.get(n);const[a,s]=t[n];switch(a){case qu:case Fb:return r(s,n);case Bl:{const c=r([],n);for(const h of s)c.push(i(h));return c}case ru:{const c=r({},n);for(const[h,u]of s)c[i(h)]=i(u);return c}case dm:return r(new Date(s),n);case pm:{const{source:c,flags:h}=s;return r(new RegExp(c,h),n)}case gm:{const c=r(new Map,n);for(const[h,u]of s)c.set(i(h),i(u));return c}case mm:{const c=r(new Set,n);for(const h of s)c.add(i(h));return c}case Ab:{const{name:c,message:h}=s;return r(new F1[c](h),n)}case Mb:return r(BigInt(s),n);case"BigInt":return r(Object(BigInt(s)),n);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:c}=new Uint8Array(s);return r(new DataView(c),s)}}return r(new F1[a](s),n)};return i},A1=e=>d5(new Map,e)(0),va="",{toString:p5}={},{keys:g5}=Object,rl=e=>{const t=typeof e;if(t!=="object"||!e)return[qu,t];const r=p5.call(e).slice(8,-1);switch(r){case"Array":return[Bl,va];case"Object":return[ru,va];case"Date":return[dm,va];case"RegExp":return[pm,va];case"Map":return[gm,va];case"Set":return[mm,va];case"DataView":return[Bl,r]}return r.includes("Array")?[Bl,r]:r.includes("Error")?[Ab,r]:[ru,r]},bh=([e,t])=>e===qu&&(t==="function"||t==="symbol"),m5=(e,t,r,i)=>{const n=(s,c)=>{const h=i.push(s)-1;return r.set(c,h),h},a=s=>{if(r.has(s))return r.get(s);let[c,h]=rl(s);switch(c){case qu:{let f=s;switch(h){case"bigint":c=Mb,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);f=null;break;case"undefined":return n([Fb],s)}return n([c,f],s)}case Bl:{if(h){let m=s;return h==="DataView"?m=new Uint8Array(s.buffer):h==="ArrayBuffer"&&(m=new Uint8Array(s)),n([h,[...m]],s)}const f=[],p=n([c,f],s);for(const m of s)f.push(a(m));return p}case ru:{if(h)switch(h){case"BigInt":return n([h,s.toString()],s);case"Boolean":case"Number":case"String":return n([h,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const f=[],p=n([c,f],s);for(const m of g5(s))(e||!bh(rl(s[m])))&&f.push([a(m),a(s[m])]);return p}case dm:return n([c,s.toISOString()],s);case pm:{const{source:f,flags:p}=s;return n([c,{source:f,flags:p}],s)}case gm:{const f=[],p=n([c,f],s);for(const[m,g]of s)(e||!(bh(rl(m))||bh(rl(g))))&&f.push([a(m),a(g)]);return p}case mm:{const f=[],p=n([c,f],s);for(const m of s)(e||!bh(rl(m)))&&f.push(a(m));return p}}const{message:u}=s;return n([c,{name:h,message:u}],s)};return a},M1=(e,{json:t,lossy:r}={})=>{const i=[];return m5(!(t||r),!!t,new Map,i)(e),i},iu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?A1(M1(e,t)):structuredClone(e):(e,t)=>A1(M1(e,t));function y5(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 x5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function C5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||y5,i=e.options.footnoteBackLabel||x5,n=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=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 f=e.all(u),p=String(u.identifier).toUpperCase(),m=as(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=f[f.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 f.push(...x);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(f,!0)};e.patch(u,S),c.push(S)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...iu(s),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 Wu=(function(e){if(e==null)return w5;if(typeof e=="function")return Hu(e);if(typeof e=="object")return Array.isArray(e)?k5(e):b5(e);if(typeof e=="string")return v5(e);throw new Error("Expected function, string, or object as test")});function k5(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Wu(e[r]);return Hu(i);function i(...n){let a=-1;for(;++a<t.length;)if(t[a].apply(this,n))return!0;return!1}}function b5(e){const t=e;return Hu(r);function r(i){const n=i;let a;for(a in e)if(n[a]!==t[a])return!1;return!0}}function v5(e){return Hu(t);function t(r){return r&&r.type===e}}function Hu(e){return t;function t(r,i,n){return!!(S5(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function w5(){return!0}function S5(e){return e!==null&&typeof e=="object"&&"type"in e}const Ib=[],T5=!0,Xp=!1,_5="skip";function Pb(e,t,r,i){let n;typeof t=="function"&&typeof r!="function"?(i=r,r=t):n=t;const a=Wu(n),s=i?-1:1;c(e,void 0,[])();function c(h,u,f){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=Ib,x,C,k;if((!t||a(h,u,f[f.length-1]||void 0))&&(g=B5(r(h,f)),g[0]===Xp))return g;if("children"in h&&h.children){const S=h;if(S.children&&g[0]!==_5)for(C=(i?S.children.length:-1)+s,k=f.concat(S);C>-1&&C<S.children.length;){const T=S.children[C];if(x=c(T,C,k)(),x[0]===Xp)return x;C=typeof x[1]=="number"?x[1]:C+s}}return g}}}function B5(e){return Array.isArray(e)?e:typeof e=="number"?[T5,e]:e==null?Ib:[e]}function ym(e,t,r,i){let n,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,n=r):(a=t,s=r,n=i),Pb(e,a,c,n);function c(h,u){const f=u[u.length-1],p=f?f.children.indexOf(h):void 0;return s(h,p,f)}}const Qp={}.hasOwnProperty,L5={};function E5(e,t){const r=t||L5,i=new Map,n=new Map,a=new Map,s={...f5,...r.handlers},c={all:u,applyData:A5,definitionById:i,footnoteById:n,footnoteCounts:a,footnoteOrder:[],handlers:s,one:h,options:r,patch:F5,wrap:I5};return ym(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const p=f.type==="definition"?i:n,m=String(f.identifier).toUpperCase();p.has(m)||p.set(m,f)}}),c;function h(f,p){const m=f.type,g=c.handlers[m];if(Qp.call(c.handlers,m)&&g)return g(c,f,p);if(c.options.passThrough&&c.options.passThrough.includes(m)){if("children"in f){const{children:C,...k}=f,S=iu(k);return S.children=c.all(f),S}return iu(f)}return(c.options.unknownHandler||M5)(c,f,p)}function u(f){const p=[];if("children"in f){const m=f.children;let g=-1;for(;++g<m.length;){const x=c.one(m[g],f);if(x){if(g&&m[g-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=I1(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=I1(C.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function F5(e,t){e.position&&(t.position=xF(e))}function A5(e,t){let r=t;if(e&&e.data){const i=e.data.hName,n=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const s="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,iu(a)),"children"in r&&r.children&&n!==null&&n!==void 0&&(r.children=n)}return r}function M5(e,t){const r=t.data||{},i="value"in t&&!(Qp.call(r,"hProperties")||Qp.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 I5(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 I1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function P1(e,t){const r=E5(e,t),i=r.one(e,void 0),n=C5(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return n&&a.children.push({type:"text",value:`
54
+ `},n),a}function P5(e,t){return e&&"run"in e?async function(r,i){const n=P1(r,{file:i,...t});await e.run(n,i)}:function(r,i){return P1(r,{file:i,...e||t})}}function O1(e){if(e)throw e}var ap,D1;function O5(){if(D1)return ap;D1=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]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!p)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},s=function(u,f){r&&f.name==="__proto__"?r(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},c=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(i)return i(u,f).value}else return;return u[f]};return ap=function h(){var u,f,p,m,g,x,C=arguments[0],k=1,S=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<S;++k)if(u=arguments[k],u!=null)for(f in u)p=c(C,f),m=c(u,f),C!==m&&(T&&m&&(a(m)||(g=n(m)))?(g?(g=!1,x=p&&n(p)?p:[]):x=p&&a(p)?p:{},s(C,{name:f,newValue:h(T,x,m)})):typeof m<"u"&&s(C,{name:f,newValue:m}));return C},ap}var D5=O5();const sp=Ql(D5);function Kp(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 R5(){const e=[],t={run:r,use:i};return t;function r(...n){let a=-1;const s=n.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);c(null,...n);function c(h,...u){const f=e[++a];let p=-1;if(h){s(h);return}for(;++p<n.length;)(u[p]===null||u[p]===void 0)&&(u[p]=n[p]);n=u,f?$5(f,c)(...u):s(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 $5(e,t){let r;return i;function i(...s){const c=e.length>s.length;let h;c&&s.push(n);try{h=e.apply(this,s)}catch(u){const f=u;if(c&&r)throw f;return n(f)}c||(h&&h.then&&typeof h.then=="function"?h.then(a,n):h instanceof Error?n(h):a(h))}function n(s,...c){r||(r=!0,t(s,...c))}function a(s){n(null,s)}}const Hi={basename:z5,dirname:N5,extname:j5,join:q5,sep:"/"};function z5(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Jl(e);let r=0,i=-1,n=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(a){r=n+1;break}}else i<0&&(a=!0,i=n+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,c=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(a){r=n+1;break}}else s<0&&(a=!0,s=n+1),c>-1&&(e.codePointAt(n)===t.codePointAt(c--)?c<0&&(i=n):(c=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)}function N5(e){if(Jl(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 j5(e){Jl(e);let t=e.length,r=-1,i=0,n=-1,a=0,s;for(;t--;){const c=e.codePointAt(t);if(c===47){if(s){i=t+1;break}continue}r<0&&(s=!0,r=t+1),c===46?n<0?n=t:a!==1&&(a=1):n>-1&&(a=-1)}return n<0||r<0||a===0||a===1&&n===r-1&&n===i+1?"":e.slice(n,r)}function q5(...e){let t=-1,r;for(;++t<e.length;)Jl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":W5(r)}function W5(e){Jl(e);const t=e.codePointAt(0)===47;let r=H5(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function H5(e,t){let r="",i=0,n=-1,a=0,s=-1,c,h;for(;++s<=e.length;){if(s<e.length)c=e.codePointAt(s);else{if(c===47)break;c=47}if(c===47){if(!(n===s-1||a===1))if(n!==s-1&&a===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=s,a=0;continue}}else if(r.length>0){r="",i=0,n=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(n+1,s):r=e.slice(n+1,s),i=s-n-1;n=s,a=0}else c===46&&a>-1?a++:a=-1}return r}function Jl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const U5={cwd:V5};function V5(){return"/"}function Zp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Y5(e){if(typeof e=="string")e=new URL(e);else if(!Zp(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 G5(e)}function G5(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 lp=["history","path","basename","stem","extname","dirname"];class Ob{constructor(t){let r;t?Zp(t)?r={path:t}:typeof t=="string"||X5(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":U5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<lp.length;){const a=lp[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let n;for(n in r)lp.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?Hi.basename(this.path):void 0}set basename(t){hp(t,"basename"),cp(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){R1(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(cp(t,"extname"),R1(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){Zp(t)&&(t=Y5(t)),hp(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){hp(t,"stem"),cp(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 fr(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 cp(e,t){if(e&&e.includes(Hi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Hi.sep+"`")}function hp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function R1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function X5(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Q5=(function(e){const i=this.constructor.prototype,n=i[e],a=function(){return n.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),K5={}.hasOwnProperty;class xm extends Q5{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=R5()}copy(){const t=new xm;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(sp(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(dp("data",this.frozen),this.namespace[t]=r,this):K5.call(this.namespace,t)&&this.namespace[t]||void 0:t?(dp("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=vh(t),i=this.parser||this.Parser;return up("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),up("process",this.parser||this.Parser),fp("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(a,s){const c=vh(t),h=i.parse(c);i.run(h,c,function(f,p,m){if(f||!p||!m)return u(f);const g=p,x=i.stringify(g,m);tM(x)?m.value=x:m.result=x,u(f,m)});function u(f,p){f||!p?s(f):a?a(p):r(void 0,p)}}}processSync(t){let r=!1,i;return this.freeze(),up("processSync",this.parser||this.Parser),fp("processSync",this.compiler||this.Compiler),this.process(t,n),z1("processSync","process",r),i;function n(a,s){r=!0,O1(a),i=s}}run(t,r,i){$1(t),this.freeze();const n=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(s,c){const h=vh(r);n.run(t,h,u);function u(f,p,m){const g=p||t;f?c(f):s?s(g):i(void 0,g,m)}}}runSync(t,r){let i=!1,n;return this.run(t,r,a),z1("runSync","run",i),n;function a(s,c){O1(s),n=c,i=!0}}stringify(t,r){this.freeze();const i=vh(r),n=this.compiler||this.Compiler;return fp("stringify",n),$1(t),n(t,i)}use(t,...r){const i=this.attachers,n=this.namespace;if(dp("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?c(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")h(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...p]=u;h(f,p)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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=sp(!0,n.settings,u.settings))}function c(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const p=u[f];a(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function h(u,f){let p=-1,m=-1;for(;++p<i.length;)if(i[p][0]===u){m=p;break}if(m===-1)i.push([u,...f]);else if(f.length>0){let[g,...x]=f;const C=i[m][1];Kp(C)&&Kp(g)&&(g=sp(!0,C,g)),i[m]=[u,g,...x]}}}}const Z5=new xm().freeze();function up(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 dp(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 $1(e){if(!Kp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function z1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vh(e){return J5(e)?e:new Ob(e)}function J5(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tM(e){return typeof e=="string"||eM(e)}function eM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",N1=[],j1={allowDangerousHtml:!0},iM=/^(https?|ircs?|mailto|xmpp)$/i,nM=[{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 oM(e){const t=aM(e),r=sM(e);return lM(t.runSync(t.parse(r),r),e)}function aM(e){const t=e.rehypePlugins||N1,r=e.remarkPlugins||N1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...j1}:j1;return Z5().use(N3).use(r).use(P5,i).use(t)}function sM(e){const t=e.children||"",r=new Ob;return typeof t=="string"&&(r.value=t),r}function lM(e,t){const r=t.allowedElements,i=t.allowElement,n=t.components,a=t.disallowedElements,s=t.skipHtml,c=t.unwrapDisallowed,h=t.urlTransform||cM;for(const f of nM)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+rM+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),ym(e,u),wF(e,{Fragment:D.Fragment,components:n,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function u(f,p,m){if(f.type==="raw"&&m&&typeof p=="number")return s?m.children.splice(p,1):m.children[p]={type:"text",value:f.value},p;if(f.type==="element"){let g;for(g in ip)if(Object.hasOwn(ip,g)&&Object.hasOwn(f.properties,g)){const x=f.properties[g],C=ip[g];(C===null||C.includes(f.tagName))&&(f.properties[g]=h(String(x||""),g,f))}}if(f.type==="element"){let g=r?!r.includes(f.tagName):a?a.includes(f.tagName):!1;if(!g&&i&&typeof p=="number"&&(g=!i(f,p,m)),g&&m&&typeof p=="number")return c&&f.children?m.children.splice(p,1,...f.children):m.children.splice(p,1),p}}}function cM(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||iM.test(e.slice(0,t))?e:""}function q1(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 hM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function uM(e,t,r){const n=Wu((r||{}).ignore||[]),a=fM(t);let s=-1;for(;++s<a.length;)Pb(e,"text",c);function c(u,f){let p=-1,m;for(;++p<f.length;){const g=f[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,f)}function h(u,f){const p=f[f.length-1],m=a[s][0],g=a[s][1];let x=0;const k=p.children.indexOf(u);let S=!1,T=[];m.lastIndex=0;let _=m.exec(u.value);for(;_;){const I=_.index,P={index:_.index,input:_.input,stack:[...f,u]};let A=g(..._,P);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?m.lastIndex=I+1:(x!==I&&T.push({type:"text",value:u.value.slice(x,I)}),Array.isArray(A)?T.push(...A):A&&T.push(A),x=I+_[0].length,S=!0),!m.global)break;_=m.exec(u.value)}return S?(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 fM(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([dM(n[0]),pM(n[1])])}return t}function dM(e){return typeof e=="string"?new RegExp(hM(e),"g"):e}function pM(e){return typeof e=="function"?e:function(){return e}}const pp="phrasing",gp=["autolink","link","image","label"];function gM(){return{transforms:[vM],enter:{literalAutolink:yM,literalAutolinkEmail:mp,literalAutolinkHttp:mp,literalAutolinkWww:mp},exit:{literalAutolink:bM,literalAutolinkEmail:kM,literalAutolinkHttp:xM,literalAutolinkWww:CM}}}function mM(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pp,notInConstruct:gp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pp,notInConstruct:gp},{character:":",before:"[ps]",after:"\\/",inConstruct:pp,notInConstruct:gp}]}}function yM(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mp(e){this.config.enter.autolinkProtocol.call(this,e)}function xM(e){this.config.exit.autolinkProtocol.call(this,e)}function CM(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 kM(e){this.config.exit.autolinkEmail.call(this,e)}function bM(e){this.exit(e)}function vM(e){uM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wM],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),SM]],{ignore:["link","linkReference"]})}function wM(e,t,r,i,n){let a="";if(!Db(n)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!TM(r)))return!1;const s=_M(r+i);if(!s[0])return!1;const c={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[c,{type:"text",value:s[1]}]:c}function SM(e,t,r,i){return!Db(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function TM(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 _M(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=q1(e,"(");let a=q1(e,")");for(;i!==-1&&n>a;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),a++;return[e,r]}function Db(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Do(r)||Nu(r))&&(!t||r!==47)}Rb.peek=OM;function BM(){this.buffer()}function LM(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function EM(){this.buffer()}function FM(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function AM(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 MM(e){this.exit(e)}function IM(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 PM(e){this.exit(e)}function OM(){return"["}function Rb(e,t,r,i){const n=r.createTracker(i);let a=n.move("[^");const s=r.enter("footnoteReference"),c=r.enter("reference");return a+=n.move(r.safe(r.associationId(e),{after:"]",before:a})),c(),s(),a+=n.move("]"),a}function DM(){return{enter:{gfmFootnoteCallString:BM,gfmFootnoteCall:LM,gfmFootnoteDefinitionLabelString:EM,gfmFootnoteDefinition:FM},exit:{gfmFootnoteCallString:AM,gfmFootnoteCall:MM,gfmFootnoteDefinitionLabelString:IM,gfmFootnoteDefinition:PM}}}function RM(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Rb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,n,a,s){const c=a.createTracker(s);let h=c.move("[^");const u=a.enter("footnoteDefinition"),f=a.enter("label");return h+=c.move(a.safe(a.associationId(i),{before:h,after:"]"})),f(),h+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),h+=c.move((t?`
55
+ `:" ")+a.indentLines(a.containerFlow(i,c.current()),t?$b:$M))),u(),h}}function $M(e,t,r){return t===0?e:$b(e,t,r)}function $b(e,t,r){return(r?"":" ")+e}const zM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zb.peek=HM;function NM(){return{canContainEols:["delete"],enter:{strikethrough:qM},exit:{strikethrough:WM}}}function jM(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zM}],handlers:{delete:zb}}}function qM(e){this.enter({type:"delete",children:[]},e)}function WM(e){this.exit(e)}function zb(e,t,r,i){const n=r.createTracker(i),a=r.enter("strikethrough");let s=n.move("~~");return s+=r.containerPhrasing(e,{...n.current(),before:s,after:"~"}),s+=n.move("~~"),a(),s}function HM(){return"~"}function UM(e){return e.length}function VM(e,t){const r=t||{},i=(r.align||[]).concat(),n=r.stringLength||UM,a=[],s=[],c=[],h=[];let u=0,f=-1;for(;++f<e.length;){const C=[],k=[];let S=-1;for(e[f].length>u&&(u=e[f].length);++S<e[f].length;){const T=YM(e[f][S]);if(r.alignDelimiters!==!1){const _=n(T);k[S]=_,(h[S]===void 0||_>h[S])&&(h[S]=_)}C.push(T)}s[f]=C,c[f]=k}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<u;)a[p]=W1(i[p]);else{const C=W1(i);for(;++p<u;)a[p]=C}p=-1;const m=[],g=[];for(;++p<u;){const C=a[p];let k="",S="";C===99?(k=":",S=":"):C===108?k=":":C===114&&(S=":");let T=r.alignDelimiters===!1?1:Math.max(1,h[p]-k.length-S.length);const _=k+"-".repeat(T)+S;r.alignDelimiters!==!1&&(T=k.length+T+S.length,T>h[p]&&(h[p]=T),g[p]=T),m[p]=_}s.splice(1,0,m),c.splice(1,0,g),f=-1;const x=[];for(;++f<s.length;){const C=s[f],k=c[f];p=-1;const S=[];for(;++p<u;){const T=C[p]||"";let _="",I="";if(r.alignDelimiters!==!1){const P=h[p]-(k[p]||0),A=a[p];A===114?_=" ".repeat(P):A===99?P%2?(_=" ".repeat(P/2+.5),I=" ".repeat(P/2-.5)):(_=" ".repeat(P/2),I=_):I=" ".repeat(P)}r.delimiterStart!==!1&&!p&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||p)&&S.push(" "),r.alignDelimiters!==!1&&S.push(_),S.push(T),r.alignDelimiters!==!1&&S.push(I),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||p!==u-1)&&S.push("|")}x.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return x.join(`
56
+ `)}function YM(e){return e==null?"":String(e)}function W1(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 GM(e,t,r,i){const n=r.enter("blockquote"),a=r.createTracker(i);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),XM);return n(),s}function XM(e,t,r){return">"+(r?"":" ")+e}function QM(e,t){return H1(e,t.inConstruct,!0)&&!H1(e,t.notInConstruct,!1)}function H1(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 U1(e,t,r,i){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===`
57
+ `&&QM(r.stack,r.unsafe[n]))return/[ \t]/.test(i.before)?"":" ";return`\\
58
+ `}function KM(e,t){const r=String(e);let i=r.indexOf(t),n=i,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===n?++a>s&&(s=a):a=1,n=i+t.length,i=r.indexOf(t,n);return s}function ZM(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 JM(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 tI(e,t,r,i){const n=JM(r),a=e.value||"",s=n==="`"?"GraveAccent":"Tilde";if(ZM(e,r)){const p=r.enter("codeIndented"),m=r.indentLines(a,eI);return p(),m}const c=r.createTracker(i),h=n.repeat(Math.max(KM(a,n)+1,3)),u=r.enter("codeFenced");let f=c.move(h);if(e.lang){const p=r.enter(`codeFencedLang${s}`);f+=c.move(r.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=r.enter(`codeFencedMeta${s}`);f+=c.move(" "),f+=c.move(r.safe(e.meta,{before:f,after:`
59
+ `,encode:["`"],...c.current()})),p()}return f+=c.move(`
60
+ `),a&&(f+=c.move(a+`
61
+ `)),f+=c.move(h),u(),f}function eI(e,t,r){return(r?"":" ")+e}function Cm(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 rI(e,t,r,i){const n=Cm(r),a=n==='"'?"Quote":"Apostrophe",s=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${a}`),u+=h.move(" "+n),u+=h.move(r.safe(e.title,{before:u,after:n,...h.current()})),u+=h.move(n),c()),s(),u}function iI(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 Ol(e){return"&#x"+e.toString(16).toUpperCase()+";"}function nu(e,t,r){const i=Qa(e),n=Qa(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}}Nb.peek=nI;function Nb(e,t,r,i){const n=iI(r),a=r.enter("emphasis"),s=r.createTracker(i),c=s.move(n);let h=s.move(r.containerPhrasing(e,{after:n,before:c,...s.current()}));const u=h.charCodeAt(0),f=nu(i.before.charCodeAt(i.before.length-1),u,n);f.inside&&(h=Ol(u)+h.slice(1));const p=h.charCodeAt(h.length-1),m=nu(i.after.charCodeAt(0),p,n);m.inside&&(h=h.slice(0,-1)+Ol(p));const g=s.move(n);return a(),r.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},c+h+g}function nI(e,t,r){return r.options.emphasis||"*"}function oI(e,t){let r=!1;return ym(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Xp}),!!((!e.depth||e.depth<3)&&hm(e)&&(t.options.setext||r))}function aI(e,t,r,i){const n=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(i);if(oI(e,r)){const f=r.enter("headingSetext"),p=r.enter("phrasing"),m=r.containerPhrasing(e,{...a.current(),before:`
63
+ `,after:`
64
+ `});return p(),f(),m+`
65
+ `+(n===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
66
+ `))+1))}const s="#".repeat(n),c=r.enter("headingAtx"),h=r.enter("phrasing");a.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
67
+ `,...a.current()});return/^[\t ]/.test(u)&&(u=Ol(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),h(),c(),u}jb.peek=sI;function jb(e){return e.value||""}function sI(){return"<"}qb.peek=lI;function qb(e,t,r,i){const n=Cm(r),a=n==='"'?"Quote":"Apostrophe",s=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${a}`),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(")"),s(),u}function lI(){return"!"}Wb.peek=cI;function Wb(e,t,r,i){const n=e.referenceType,a=r.enter("imageReference");let s=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+"]["),s();const f=r.stack;r.stack=[],s=r.enter("reference");const p=r.safe(r.associationId(e),{before:h,after:"]",...c.current()});return s(),r.stack=f,a(),n==="full"||!u||u!==p?h+=c.move(p+"]"):n==="shortcut"?h=h.slice(0,-1):h+=c.move("]"),h}function cI(){return"!"}Hb.peek=hI;function Hb(e,t,r){let i=e.value||"",n="`",a=-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+" ");++a<r.unsafe.length;){const s=r.unsafe[a],c=r.compilePattern(s);let h;if(s.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 hI(){return"`"}function Ub(e,t){const r=hm(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))}Vb.peek=uI;function Vb(e,t,r,i){const n=Cm(r),a=n==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let c,h;if(Ub(e,r)){const f=r.stack;r.stack=[],c=r.enter("autolink");let p=s.move("<");return p+=s.move(r.containerPhrasing(e,{before:p,after:">",...s.current()})),p+=s.move(">"),c(),r.stack=f,p}c=r.enter("link"),h=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(h=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),h(),e.title&&(h=r.enter(`title${a}`),u+=s.move(" "+n),u+=s.move(r.safe(e.title,{before:u,after:n,...s.current()})),u+=s.move(n),h()),u+=s.move(")"),c(),u}function uI(e,t,r){return Ub(e,r)?"<":"["}Yb.peek=fI;function Yb(e,t,r,i){const n=e.referenceType,a=r.enter("linkReference");let s=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+"]["),s();const f=r.stack;r.stack=[],s=r.enter("reference");const p=r.safe(r.associationId(e),{before:h,after:"]",...c.current()});return s(),r.stack=f,a(),n==="full"||!u||u!==p?h+=c.move(p+"]"):n==="shortcut"?h=h.slice(0,-1):h+=c.move("]"),h}function fI(){return"["}function km(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 dI(e){const t=km(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 pI(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 Gb(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 gI(e,t,r,i){const n=r.enter("list"),a=r.bulletCurrent;let s=e.ordered?pI(r):km(r);const c=e.ordered?s==="."?")":".":dI(r);let h=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.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),Gb(r)===s&&f){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&&(s=c),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=a,n(),u}function mI(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 yI(e,t,r,i){const n=mI(r);let a=r.bulletCurrent||km(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const c=r.createTracker(i);c.move(a+" ".repeat(s-a.length)),c.shift(s);const h=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,c.current()),f);return h(),u;function f(p,m,g){return m?(g?"":" ".repeat(s))+p:(g?a:a+" ".repeat(s-a.length))+p}}function xI(e,t,r,i){const n=r.enter("paragraph"),a=r.enter("phrasing"),s=r.containerPhrasing(e,i);return a(),n(),s}const CI=Wu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kI(e,t,r,i){return(e.children.some(function(s){return CI(s)})?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}Xb.peek=vI;function Xb(e,t,r,i){const n=bI(r),a=r.enter("strong"),s=r.createTracker(i),c=s.move(n+n);let h=s.move(r.containerPhrasing(e,{after:n,before:c,...s.current()}));const u=h.charCodeAt(0),f=nu(i.before.charCodeAt(i.before.length-1),u,n);f.inside&&(h=Ol(u)+h.slice(1));const p=h.charCodeAt(h.length-1),m=nu(i.after.charCodeAt(0),p,n);m.inside&&(h=h.slice(0,-1)+Ol(p));const g=s.move(n+n);return a(),r.attentionEncodeSurroundingInfo={after:m.outside,before:f.outside},c+h+g}function vI(e,t,r){return r.options.strong||"*"}function wI(e,t,r,i){return r.safe(e.value,i)}function SI(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 TI(e,t,r){const i=(Gb(r)+(r.options.ruleSpaces?" ":"")).repeat(SI(r));return r.options.ruleSpaces?i.slice(0,-1):i}const Qb={blockquote:GM,break:U1,code:tI,definition:rI,emphasis:Nb,hardBreak:U1,heading:aI,html:jb,image:qb,imageReference:Wb,inlineCode:Hb,link:Vb,linkReference:Yb,list:gI,listItem:yI,paragraph:xI,root:kI,strong:Xb,text:wI,thematicBreak:TI};function _I(){return{enter:{table:BI,tableData:V1,tableHeader:V1,tableRow:EI},exit:{codeText:FI,table:LI,tableData:yp,tableHeader:yp,tableRow:yp}}}function BI(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 LI(e){this.exit(e),this.data.inTable=void 0}function EI(e){this.enter({type:"tableRow",children:[]},e)}function yp(e){this.exit(e)}function V1(e){this.enter({type:"tableCell",children:[]},e)}function FI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,AI));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function AI(e,t){return t==="|"?t:e}function MI(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,n=t.stringLength,a=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:s,tableCell:h,tableRow:c}};function s(g,x,C,k){return u(f(g,C,k),g.align)}function c(g,x,C,k){const S=p(g,C,k),T=u([S]);return T.slice(0,T.indexOf(`
69
+ `))}function h(g,x,C,k){const S=C.enter("tableCell"),T=C.enter("phrasing"),_=C.containerPhrasing(g,{...k,before:a,after:a});return T(),S(),_}function u(g,x){return VM(g,{align:x,alignDelimiters:i,padding:r,stringLength:n})}function f(g,x,C){const k=g.children;let S=-1;const T=[],_=x.enter("table");for(;++S<k.length;)T[S]=p(k[S],x,C);return _(),T}function p(g,x,C){const k=g.children;let S=-1;const T=[],_=x.enter("tableRow");for(;++S<k.length;)T[S]=h(k[S],g,x,C);return _(),T}function m(g,x,C){let k=Qb.inlineCode(g,x,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function II(){return{exit:{taskListCheckValueChecked:Y1,taskListCheckValueUnchecked:Y1,paragraph:OI}}}function PI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DI}}}function Y1(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function OI(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 a=-1,s;for(;++a<n.length;){const c=n[a];if(c.type==="paragraph"){s=c;break}}s===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 DI(e,t,r,i){const n=e.children[0],a=typeof e.checked=="boolean"&&n&&n.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",c=r.createTracker(i);a&&c.move(s);let h=Qb.listItem(e,t,r,{...i,...c.current()});return a&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),h;function u(f){return f+s}}function RI(){return[gM(),DM(),NM(),_I(),II()]}function $I(e){return{extensions:[mM(),RM(e),jM(),MI(e),PI()]}}const zI={tokenize:UI,partial:!0},Kb={tokenize:VI,partial:!0},Zb={tokenize:YI,partial:!0},Jb={tokenize:GI,partial:!0},NI={tokenize:XI,partial:!0},t2={name:"wwwAutolink",tokenize:WI,previous:r2},e2={name:"protocolAutolink",tokenize:HI,previous:i2},Cn={name:"emailAutolink",tokenize:qI,previous:n2},Xi={};function jI(){return{text:Xi}}let So=48;for(;So<123;)Xi[So]=Cn,So++,So===58?So=65:So===91&&(So=97);Xi[43]=Cn;Xi[45]=Cn;Xi[46]=Cn;Xi[95]=Cn;Xi[72]=[Cn,e2];Xi[104]=[Cn,e2];Xi[87]=[Cn,t2];Xi[119]=[Cn,t2];function qI(e,t,r){const i=this;let n,a;return s;function s(p){return!Jp(p)||!n2.call(i,i.previous)||bm(i.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return Jp(p)?(e.consume(p),c):p===64?(e.consume(p),h):r(p)}function h(p){return p===46?e.check(NI,f,u)(p):p===45||p===95||hr(p)?(a=!0,e.consume(p),h):f(p)}function u(p){return e.consume(p),n=!0,h}function f(p){return a&&n&&xr(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):r(p)}}function WI(e,t,r){const i=this;return n;function n(s){return s!==87&&s!==119||!r2.call(i,i.previous)||bm(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zI,e.attempt(Kb,e.attempt(Zb,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function HI(e,t,r){const i=this;let n="",a=!1;return s;function s(p){return(p===72||p===104)&&i2.call(i,i.previous)&&!bm(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),a?u:(a=!0,h)):r(p)}function u(p){return p===null||eu(p)||pe(p)||Do(p)||Nu(p)?r(p):e.attempt(Kb,e.attempt(Zb,f),r)(p)}function f(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function UI(e,t,r){let i=0;return n;function n(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),n):s===46&&i===3?(e.consume(s),a):r(s)}function a(s){return s===null?r(s):t(s)}}function VI(e,t,r){let i,n,a;return s;function s(u){return u===46||u===95?e.check(Jb,h,c)(u):u===null||pe(u)||Do(u)||u!==45&&Nu(u)?h(u):(a=!0,e.consume(u),s)}function c(u){return u===95?i=!0:(n=i,i=void 0),e.consume(u),s}function h(u){return n||i||!a?r(u):t(u)}}function YI(e,t){let r=0,i=0;return n;function n(s){return s===40?(r++,e.consume(s),n):s===41&&i<r?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Jb,t,a)(s):s===null||pe(s)||Do(s)?t(s):(e.consume(s),n)}function a(s){return s===41&&i++,e.consume(s),n}}function GI(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),a):c===93?(e.consume(c),n):c===60||c===null||pe(c)||Do(c)?t(c):r(c)}function n(c){return c===null||c===40||c===91||pe(c)||Do(c)?t(c):i(c)}function a(c){return xr(c)?s(c):r(c)}function s(c){return c===59?(e.consume(c),i):xr(c)?(e.consume(c),s):r(c)}}function XI(e,t,r){return i;function i(a){return e.consume(a),n}function n(a){return hr(a)?r(a):t(a)}}function r2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||pe(e)}function i2(e){return!xr(e)}function n2(e){return!(e===47||Jp(e))}function Jp(e){return e===43||e===45||e===46||e===95||hr(e)}function bm(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 QI={tokenize:n4,partial:!0};function KI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:e4,continuation:{tokenize:r4},exit:i4}},text:{91:{name:"gfmFootnoteCall",tokenize:t4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ZI,resolveTo:JI}}}}function ZI(e,t,r){const i=this;let n=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;n--;){const h=i.events[n][1];if(h.type==="labelImage"){s=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(!s||!s._balanced)return r(h);const u=Li(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function JI(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 a={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",n,t],["exit",n,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...c),e}function t4(e,t,r){const i=this,n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,s;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(a>999||p===93&&!s||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)||(s=!0),a++,e.consume(p),p===92?f:u}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,u):u(p)}}function e4(e,t,r){const i=this,n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,s=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",f):r(x)}function f(x){if(s>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 a=Li(i.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return pe(x)||(c=!0),s++,e.consume(x),x===92?p:f}function p(x){return x===91||x===92||x===93?(e.consume(x),s++,f):f(x)}function m(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),n.includes(a)||n.push(a),ne(e,g,"gfmFootnoteDefinitionWhitespace")):r(x)}function g(x){return t(x)}}function r4(e,t,r){return e.check(Zl,t,e.attempt(QI,t,r))}function i4(e){e.exit("gfmFootnoteDefinition")}function n4(e,t,r){const i=this;return ne(e,n,"gfmFootnoteDefinitionIndent",5);function n(a){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):r(a)}}function o4(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:n};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function n(s,c){let h=-1;for(;++h<s.length;)if(s[h][0]==="enter"&&s[h][1].type==="strikethroughSequenceTemporary"&&s[h][1]._close){let u=h;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[h][1].end.offset-s[h][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[h][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[h][1].end)},p={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[h][1].start)},m=[["enter",f,c],["enter",s[u][1],c],["exit",s[u][1],c],["enter",p,c]],g=c.parser.constructs.insideSpan.null;g&&Gr(m,m.length,0,ju(g,s.slice(u+1,h),c)),Gr(m,m.length,0,[["exit",p,c],["enter",s[h][1],c],["exit",s[h][1],c],["exit",f,c]]),Gr(s,u-1,h-u+3,m),h=u+m.length-2;break}}for(h=-1;++h<s.length;)s[h][1].type==="strikethroughSequenceTemporary"&&(s[h][1].type="data");return s}function a(s,c,h){const u=this.previous,f=this.events;let p=0;return m;function m(x){return u===126&&f[f.length-1][1].type!=="characterEscape"?h(x):(s.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const C=Qa(u);if(x===126)return p>1?h(x):(s.consume(x),p++,g);if(p<2&&!r)return h(x);const k=s.exit("strikethroughSequenceTemporary"),S=Qa(x);return k._open=!S||S===2&&!!C,k._close=!C||C===2&&!!S,c(x)}}}class a4{constructor(){this.map=[]}add(t,r,i){s4(this,t,r,i)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[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 a of n)t.push(a);n=i.pop()}this.map.length=0}}function s4(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 l4(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 a=i.length-1;i[a]=i[a]==="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 c4(){return{flow:{null:{name:"table",tokenize:h4,resolveAll:u4}}}}function h4(e,t,r){const i=this;let n=0,a=0,s;return c;function c(M){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"?A:h;return nt===A&&i.parser.lazy[i.now().line]?r(M):nt(M)}function h(M){return e.enter("tableHead"),e.enter("tableRow"),u(M)}function u(M){return M===124||(s=!0,a+=1),f(M)}function f(M){return M===null?r(M):zt(M)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),g):r(M):te(M)?ne(e,f,"whitespace")(M):(a+=1,s&&(s=!1,n+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),p(M)))}function p(M){return M===null||M===124||pe(M)?(e.exit("data"),f(M)):(e.consume(M),M===92?m:p)}function m(M){return M===92||M===124?(e.consume(M),p):p(M)}function g(M){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(M):(e.enter("tableDelimiterRow"),s=!1,te(M)?ne(e,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):x(M))}function x(M){return M===45||M===58?k(M):M===124?(s=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),C):P(M)}function C(M){return te(M)?ne(e,k,"whitespace")(M):k(M)}function k(M){return M===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),S):M===45?(a+=1,S(M)):M===null||zt(M)?I(M):P(M)}function S(M){return M===45?(e.enter("tableDelimiterFiller"),T(M)):P(M)}function T(M){return M===45?(e.consume(M),T):M===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(M))}function _(M){return te(M)?ne(e,I,"whitespace")(M):I(M)}function I(M){return M===124?x(M):M===null||zt(M)?!s||n!==a?P(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):P(M)}function P(M){return r(M)}function A(M){return e.enter("tableRow"),E(M)}function E(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),E):M===null||zt(M)?(e.exit("tableRow"),t(M)):te(M)?ne(e,E,"whitespace")(M):(e.enter("data"),W(M))}function W(M){return M===null||M===124||pe(M)?(e.exit("data"),E(M)):(e.consume(M),M===92?et:W)}function et(M){return M===92||M===124?(e.consume(M),W):W(M)}}function u4(e,t){let r=-1,i=!0,n=0,a=[0,0,0,0],s=[0,0,0,0],c=!1,h=0,u,f,p;const m=new a4;for(;++r<e.length;){const g=e[r],x=g[1];g[0]==="enter"?x.type==="tableHead"?(c=!1,h!==0&&(G1(m,t,h,u,f),f=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,a=[0,0,0,0],s=[0,r+1,0,0],c&&(c=!1,f={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",f,t]])),n=x.type==="tableDelimiterRow"?2:f?3:1):n&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],p=wh(m,t,a,n,void 0,p),a=[0,0,0,0]),s[2]=r)):x.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],p=wh(m,t,a,n,void 0,p)),a=s,s=[a[1],r,0,0])):x.type==="tableHead"?(c=!0,h=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(h=r,a[1]!==0?(s[0]=s[1],p=wh(m,t,a,n,r,p)):s[1]!==0&&(p=wh(m,t,s,n,r,p)),n=0):n&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=r)}for(h!==0&&G1(m,t,h,u,f),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=l4(t.events,r))}return e}function wh(e,t,r,i,n,a){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";r[0]!==0&&(a.end=Object.assign({},_a(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const h=_a(t.events,r[1]);if(a={type:s,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const u=_a(t.events,r[2]),f=_a(t.events,r[3]),p={type:c,start:Object.assign({},u),end:Object.assign({},f)};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&&(a.end=Object.assign({},_a(t.events,n)),e.add(n,0,[["exit",a,t]]),a=void 0),a}function G1(e,t,r,i,n){const a=[],s=_a(t.events,r);n&&(n.end=Object.assign({},s),a.push(["exit",n,t])),i.end=Object.assign({},s),a.push(["exit",i,t]),e.add(r+1,0,a)}function _a(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const f4={name:"tasklistCheck",tokenize:p4};function d4(){return{text:{91:f4}}}function p4(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"),a)}function a(h){return pe(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),s):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),s):r(h)}function s(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):r(h)}function c(h){return zt(h)?t(h):te(h)?e.check({tokenize:g4},t,r)(h):r(h)}}function g4(e,t,r){return ne(e,i,"whitespace");function i(n){return n===null?r(n):t(n)}}function m4(e){return gb([jI(),KI(),o4(e),c4(),d4()])}const y4={};function x4(e){const t=this,r=e||y4,i=t.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(m4(r)),a.push(RI()),s.push($I(r))}var Nh={exports:{}},C4=Nh.exports,X1;function k4(){return X1||(X1=1,(function(e,t){(function(r,i){e.exports=i()})(C4,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",c="minute",h="hour",u="day",f="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+)?$/,S=/\[([^\]]+)]|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"],q=V%100;return"["+V+(j[(q-20)%10]||j[q]||j[0])+"]"}},_=function(V,j,q){var G=String(V);return!G||G.length>=j?V:""+Array(j+1-G.length).join(q)+V},I={s:_,z:function(V){var j=-V.utcOffset(),q=Math.abs(j),G=Math.floor(q/60),R=q%60;return(j<=0?"+":"-")+_(G,2,"0")+":"+_(R,2,"0")},m:function V(j,q){if(j.date()<q.date())return-V(q,j);var G=12*(q.year()-j.year())+(q.month()-j.month()),R=j.clone().add(G,p),K=q-R<0,F=j.clone().add(G+(K?-1:1),p);return+(-(G+(q-R)/(K?R-F:F-R))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:p,y:g,w:f,d:u,D:x,h,m:c,s,ms:a,Q:m}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},P="en",A={};A[P]=T;var E="$isDayjsObject",W=function(V){return V instanceof J||!(!V||!V[E])},et=function V(j,q,G){var R;if(!j)return P;if(typeof j=="string"){var K=j.toLowerCase();A[K]&&(R=K),q&&(A[K]=q,R=K);var F=j.split("-");if(!R&&F.length>1)return V(F[0])}else{var z=j.name;A[z]=j,R=z}return!G&&R&&(P=R),R||!G&&P},M=function(V,j){if(W(V))return V.clone();var q=typeof j=="object"?j:{};return q.date=V,q.args=arguments,new J(q)},N=I;N.l=et,N.i=W,N.w=function(V,j){return M(V,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var J=(function(){function V(q){this.$L=et(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[E]=!0}var j=V.prototype;return j.parse=function(q){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 F=R.match(k);if(F){var z=F[2]-1||0,tt=(F[7]||"0").substring(0,3);return K?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,tt)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,tt)}}return new Date(R)})(q),this.init()},j.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},j.$utils=function(){return N},j.isValid=function(){return this.$d.toString()!==C},j.isSame=function(q,G){var R=M(q);return this.startOf(G)<=R&&R<=this.endOf(G)},j.isAfter=function(q,G){return M(q)<this.startOf(G)},j.isBefore=function(q,G){return this.endOf(G)<M(q)},j.$g=function(q,G,R){return N.u(q)?this[G]:this.set(R,q)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(q,G){var R=this,K=!!N.u(G)||G,F=N.p(q),z=function(Yt,yt){var It=N.w(R.$u?Date.UTC(R.$y,yt,Yt):new Date(R.$y,yt,Yt),R);return K?It:It.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)},O=this.$W,mt=this.$M,dt=this.$D,xt="set"+(this.$u?"UTC":"");switch(F){case g:return K?z(1,0):z(31,11);case p:return K?z(1,mt):z(0,mt+1);case f:var Pt=this.$locale().weekStart||0,Ft=(O<Pt?O+7:O)-Pt;return z(K?dt-Ft:dt+(6-Ft),mt);case u:case x:return tt(xt+"Hours",0);case h:return tt(xt+"Minutes",1);case c:return tt(xt+"Seconds",2);case s:return tt(xt+"Milliseconds",3);default:return this.clone()}},j.endOf=function(q){return this.startOf(q,!1)},j.$set=function(q,G){var R,K=N.p(q),F="set"+(this.$u?"UTC":""),z=(R={},R[u]=F+"Date",R[x]=F+"Date",R[p]=F+"Month",R[g]=F+"FullYear",R[h]=F+"Hours",R[c]=F+"Minutes",R[s]=F+"Seconds",R[a]=F+"Milliseconds",R)[K],tt=K===u?this.$D+(G-this.$W):G;if(K===p||K===g){var O=this.clone().set(x,1);O.$d[z](tt),O.init(),this.$d=O.set(x,Math.min(this.$D,O.daysInMonth())).$d}else z&&this.$d[z](tt);return this.init(),this},j.set=function(q,G){return this.clone().$set(q,G)},j.get=function(q){return this[N.p(q)]()},j.add=function(q,G){var R,K=this;q=Number(q);var F=N.p(G),z=function(mt){var dt=M(K);return N.w(dt.date(dt.date()+Math.round(mt*q)),K)};if(F===p)return this.set(p,this.$M+q);if(F===g)return this.set(g,this.$y+q);if(F===u)return z(1);if(F===f)return z(7);var tt=(R={},R[c]=i,R[h]=n,R[s]=r,R)[F]||1,O=this.$d.getTime()+q*tt;return N.w(O,this)},j.subtract=function(q,G){return this.add(-1*q,G)},j.format=function(q){var G=this,R=this.$locale();if(!this.isValid())return R.invalidDate||C;var K=q||"YYYY-MM-DDTHH:mm:ssZ",F=N.z(this),z=this.$H,tt=this.$m,O=this.$M,mt=R.weekdays,dt=R.months,xt=R.meridiem,Pt=function(yt,It,oe,se){return yt&&(yt[It]||yt(G,K))||oe[It].slice(0,se)},Ft=function(yt){return N.s(z%12||12,yt,"0")},Yt=xt||function(yt,It,oe){var se=yt<12?"AM":"PM";return oe?se.toLowerCase():se};return K.replace(S,(function(yt,It){return It||(function(oe){switch(oe){case"YY":return String(G.$y).slice(-2);case"YYYY":return N.s(G.$y,4,"0");case"M":return O+1;case"MM":return N.s(O+1,2,"0");case"MMM":return Pt(R.monthsShort,O,dt,3);case"MMMM":return Pt(dt,O);case"D":return G.$D;case"DD":return N.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Pt(R.weekdaysMin,G.$W,mt,2);case"ddd":return Pt(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 Ft(1);case"hh":return Ft(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 F}return null})(yt)||F.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(q,G,R){var K,F=this,z=N.p(G),tt=M(q),O=(tt.utcOffset()-this.utcOffset())*i,mt=this-tt,dt=function(){return N.m(F,tt)};switch(z){case g:K=dt()/12;break;case p:K=dt();break;case m:K=dt()/3;break;case f:K=(mt-O)/6048e5;break;case u:K=(mt-O)/864e5;break;case h:K=mt/n;break;case c:K=mt/i;break;case s: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 A[this.$L]},j.locale=function(q,G){if(!q)return this.$L;var R=this.clone(),K=et(q,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 M.prototype=nt,[["$ms",a],["$s",s],["$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])}})),M.extend=function(V,j){return V.$i||(V(j,J,M),V.$i=!0),M},M.locale=et,M.isDayjs=W,M.unix=function(V){return M(1e3*V)},M.en=A[P],M.Ls=A,M.p={},M}))})(Nh)),Nh.exports}var b4=k4();const v4=Ql(b4);var o2=Object.defineProperty,v=(e,t)=>o2(e,"name",{value:t,configurable:!0}),w4=(e,t)=>{for(var r in t)o2(e,r,{get:t[r],enumerable:!0})},un={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},st={trace:v((...e)=>{},"trace"),debug:v((...e)=>{},"debug"),info:v((...e)=>{},"info"),warn:v((...e)=>{},"warn"),error:v((...e)=>{},"error"),fatal:v((...e)=>{},"fatal")},vm=v(function(e="fatal"){let t=un.fatal;typeof e=="string"?e.toLowerCase()in un&&(t=un[e]):typeof e=="number"&&(t=e),st.trace=()=>{},st.debug=()=>{},st.info=()=>{},st.warn=()=>{},st.error=()=>{},st.fatal=()=>{},t<=un.fatal&&(st.fatal=console.error?console.error.bind(console,si("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",si("FATAL"))),t<=un.error&&(st.error=console.error?console.error.bind(console,si("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",si("ERROR"))),t<=un.warn&&(st.warn=console.warn?console.warn.bind(console,si("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",si("WARN"))),t<=un.info&&(st.info=console.info?console.info.bind(console,si("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",si("INFO"))),t<=un.debug&&(st.debug=console.debug?console.debug.bind(console,si("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",si("DEBUG"))),t<=un.trace&&(st.trace=console.debug?console.debug.bind(console,si("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",si("TRACE")))},"setLogLevel"),si=v(e=>`%c${v4().format("ss.SSS")} : ${e} : `,"format");const jh={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return jh.hue2rgb(a,n,e+1/3)*255;case"g":return jh.hue2rgb(a,n,e)*255;case"b":return jh.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const c=n-a,h=s>.5?c/(2-n-a):c/(n+a);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}}},S4={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},T4={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Vt={channel:jh,lang:S4,unit:T4},Qn={};for(let e=0;e<=255;e++)Qn[e]=Vt.unit.dec2hex(e);const lr={ALL:0,RGB:1,HSL:2};class _4{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 B4{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new _4}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 Uu=new B4({r:0,g:0,b:0,a:0},"transparent"),Ia={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Ia.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,c=s?1:17,h=s?8:4,u=a?0:-1,f=s?255:15;return Uu.set({r:(i>>h*(u+3)&f)*c,g:(i>>h*(u+2)&f)*c,b:(i>>h*(u+1)&f)*c,a:a?(i&f)*c/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Qn[Math.round(t)]}${Qn[Math.round(r)]}${Qn[Math.round(i)]}${Qn[Math.round(n*255)]}`:`#${Qn[Math.round(t)]}${Qn[Math.round(r)]}${Qn[Math.round(i)]}`}},Fo={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(Fo.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(Fo.re);if(!r)return;const[,i,n,a,s,c]=r;return Uu.set({h:Fo._hue2deg(i),s:Vt.channel.clamp.s(parseFloat(n)),l:Vt.channel.clamp.l(parseFloat(a)),a:s?Vt.channel.clamp.a(c?parseFloat(s)/100:parseFloat(s)):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)}%)`}},Ll={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=Ll.colors[e];if(t)return Ia.parse(t)},stringify:e=>{const t=Ia.stringify(e);for(const r in Ll.colors)if(Ll.colors[r]===t)return r}},ml={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(ml.re);if(!r)return;const[,i,n,a,s,c,h,u,f]=r;return Uu.set({r:Vt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Vt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Vt.channel.clamp.b(h?parseFloat(c)*2.55:parseFloat(c)),a:u?Vt.channel.clamp.a(f?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:Ll,hex:Ia,rgb:ml,rgba:ml,hsl:Fo,hsla:Fo},parse:e=>{if(typeof e!="string")return e;const t=Ia.parse(e)||ml.parse(e)||Fo.parse(e)||Ll.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?Fo.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?ml.stringify(e):Ia.stringify(e)},a2=(e,t)=>{const r=Yi.parse(e);for(const i in t)r[i]=Vt.channel.clamp[i](t[i]);return Yi.stringify(r)},to=(e,t,r=0,i=1)=>{if(typeof e!="number")return a2(e,{a:t});const n=Uu.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)},L4=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)},E4=e=>L4(e)>=.5,Ii=e=>!E4(e),s2=(e,t,r)=>{const i=Yi.parse(e),n=i[t],a=Vt.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Yi.stringify(i)},ot=(e,t)=>s2(e,"l",t),it=(e,t)=>s2(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 a2(e,i)},F4=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=Yi.parse(e),{r:c,g:h,b:u,a:f}=Yi.parse(t),p=r/100,m=p*2-1,g=s-f,C=((m*g===-1?m:(m+g)/(1+m*g))+1)/2,k=1-C,S=i*C+c*k,T=n*C+h*k,_=a*C+u*k,I=s*p+f*(1-p);return to(S,T,_,I)},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,F4(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:l2,setPrototypeOf:Q1,isFrozen:A4,getPrototypeOf:M4,getOwnPropertyDescriptor:I4}=Object;let{freeze:br,seal:ci,create:qh}=Object,{apply:tg,construct:eg}=typeof Reflect<"u"&&Reflect;br||(br=function(t){return t});ci||(ci=function(t){return t});tg||(tg=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});eg||(eg=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 Sh=vr(Array.prototype.forEach),P4=vr(Array.prototype.lastIndexOf),K1=vr(Array.prototype.pop),il=vr(Array.prototype.push),O4=vr(Array.prototype.splice),Wh=vr(String.prototype.toLowerCase),xp=vr(String.prototype.toString),Cp=vr(String.prototype.match),nl=vr(String.prototype.replace),D4=vr(String.prototype.indexOf),R4=vr(String.prototype.trim),Yr=vr(Object.prototype.hasOwnProperty),yr=vr(RegExp.prototype.test),ol=$4(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 tg(e,t,i)}}function $4(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return eg(e,r)}}function Jt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wh;Q1&&Q1(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(A4(t)||(t[i]=a),n=a)}e[n]=!0}return e}function z4(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 l2(e))Yr(e,r)&&(Array.isArray(i)?t[r]=z4(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=I4(e,t);if(i){if(i.get)return vr(i.get);if(typeof i.value=="function")return vr(i.value)}e=M4(e)}function r(){return null}return r}const Z1=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"]),kp=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"]),bp=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"]),N4=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"]),vp=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"]),j4=br(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J1=br(["#text"]),tC=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"]),wp=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"]),eC=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"]),Th=br(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q4=ci(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W4=ci(/<%[\w\W]*|[\w\W]*%>/gm),H4=ci(/\$\{[\w\W]*/gm),U4=ci(/^data-[\-\w.\u00B7-\uFFFF]+$/),V4=ci(/^aria-[\-\w]+$/),c2=ci(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y4=ci(/^(?:\w+script|data):/i),G4=ci(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),h2=ci(/^html$/i),X4=ci(/^[a-z][.\w]*(-[.\w]+)+$/i);var rC=Object.freeze({__proto__:null,ARIA_ATTR:V4,ATTR_WHITESPACE:G4,CUSTOM_ELEMENT:X4,DATA_ATTR:U4,DOCTYPE_NAME:h2,ERB_EXPR:W4,IS_ALLOWED_URI:c2,IS_SCRIPT_OR_DATA:Y4,MUSTACHE_EXPR:q4,TMPLIT_EXPR:H4});const sl={element:1,text:3,progressingInstruction:7,comment:8,document:9},Q4=function(){return typeof window>"u"?null:window},K4=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},iC=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function u2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q4();const t=At=>u2(At);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==sl.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:h,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:m,trustedTypes:g}=e,x=h.prototype,C=al(x,"cloneNode"),k=al(x,"remove"),S=al(x,"nextSibling"),T=al(x,"childNodes"),_=al(x,"parentNode");if(typeof s=="function"){const At=r.createElement("template");At.content&&At.content.ownerDocument&&(r=At.content.ownerDocument)}let I,P="";const{implementation:A,createNodeIterator:E,createDocumentFragment:W,getElementsByTagName:et}=r,{importNode:M}=i;let N=iC();t.isSupported=typeof l2=="function"&&typeof _=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:nt,TMPLIT_EXPR:V,DATA_ATTR:j,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:K}=rC;let{IS_ALLOWED_URI:F}=rC,z=null;const tt=Jt({},[...Z1,...kp,...bp,...vp,...J1]);let O=null;const mt=Jt({},[...tC,...wp,...eC,...Th]);let dt=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}})),xt=null,Pt=null;const Ft=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,It=!1,oe=!0,se=!1,He=!0,Be=!1,Kr=!1,ui=!1,pr=!1,fi=!1,Rr=!1,di=!0,Sn=!1;const Qo="user-content-";let Tn=!0,Oi=!1,at={},ut=null;const Ot=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 fs=Jt({},[Qe,$r,Ke],xp);let _n=Jt({},["mi","mo","mn","ms","mtext"]),pi=Jt({},["annotation-xml"]);const Bn=Jt({},["title","style","font","a","script"]);let Ln=null;const uc=["application/xhtml+xml","text/html"],fc="text/html";let Le=null,tn=null;const ds=r.createElement("form"),ps=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),Ln=uc.indexOf(U.PARSER_MEDIA_TYPE)===-1?fc:U.PARSER_MEDIA_TYPE,Le=Ln==="application/xhtml+xml"?xp:Wh,z=Yr(U,"ALLOWED_TAGS")?Jt({},U.ALLOWED_TAGS,Le):tt,O=Yr(U,"ALLOWED_ATTR")?Jt({},U.ALLOWED_ATTR,Le):mt,Ze=Yr(U,"ALLOWED_NAMESPACES")?Jt({},U.ALLOWED_NAMESPACES,xp):fs,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):Ot,xt=Yr(U,"FORBID_TAGS")?Jt({},U.FORBID_TAGS,Le):ji({}),Pt=Yr(U,"FORBID_ATTR")?Jt({},U.FORBID_ATTR,Le):ji({}),at=Yr(U,"USE_PROFILES")?U.USE_PROFILES:!1,Yt=U.ALLOW_ARIA_ATTR!==!1,yt=U.ALLOW_DATA_ATTR!==!1,It=U.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=U.SAFE_FOR_TEMPLATES||!1,He=U.SAFE_FOR_XML!==!1,Be=U.WHOLE_DOCUMENT||!1,pr=U.RETURN_DOM||!1,fi=U.RETURN_DOM_FRAGMENT||!1,Rr=U.RETURN_TRUSTED_TYPE||!1,ui=U.FORCE_BODY||!1,di=U.SANITIZE_DOM!==!1,Sn=U.SANITIZE_NAMED_PROPS||!1,Tn=U.KEEP_CONTENT!==!1,Oi=U.IN_PLACE||!1,F=U.ALLOWED_URI_REGEXP||c2,be=U.NAMESPACE||Ke,_n=U.MATHML_TEXT_INTEGRATION_POINTS||_n,pi=U.HTML_INTEGRATION_POINTS||pi,dt=U.CUSTOM_ELEMENT_HANDLING||{},U.CUSTOM_ELEMENT_HANDLING&&ps(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(dt.tagNameCheck=U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),U.CUSTOM_ELEMENT_HANDLING&&ps(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(dt.attributeNameCheck=U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(dt.allowCustomizedBuiltInElements=U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(yt=!1),fi&&(pr=!0),at&&(z=Jt({},J1),O=qh(null),at.html===!0&&(Jt(z,Z1),Jt(O,tC)),at.svg===!0&&(Jt(z,kp),Jt(O,wp),Jt(O,Th)),at.svgFilters===!0&&(Jt(z,bp),Jt(O,wp),Jt(O,Th)),at.mathMl===!0&&(Jt(z,vp),Jt(O,eC),Jt(O,Th))),Yr(U,"ADD_TAGS")||(Ft.tagCheck=null),Yr(U,"ADD_ATTR")||(Ft.attributeCheck=null),U.ADD_TAGS&&(typeof U.ADD_TAGS=="function"?Ft.tagCheck=U.ADD_TAGS:(z===tt&&(z=ji(z)),Jt(z,U.ADD_TAGS,Le))),U.ADD_ATTR&&(typeof U.ADD_ATTR=="function"?Ft.attributeCheck=U.ADD_ATTR:(O===mt&&(O=ji(O)),Jt(O,U.ADD_ATTR,Le))),U.ADD_URI_SAFE_ATTR&&Jt(Me,U.ADD_URI_SAFE_ATTR,Le),U.FORBID_CONTENTS&&(ut===Ot&&(ut=ji(ut)),Jt(ut,U.FORBID_CONTENTS,Le)),U.ADD_FORBID_CONTENTS&&(ut===Ot&&(ut=ji(ut)),Jt(ut,U.ADD_FORBID_CONTENTS,Le)),Tn&&(z["#text"]=!0),Be&&Jt(z,["html","head","body"]),z.table&&(Jt(z,["tbody"]),delete xt.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw ol('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ol('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=U.TRUSTED_TYPES_POLICY,P=I.createHTML("")}else I===void 0&&(I=K4(g,n)),I!==null&&typeof P=="string"&&(P=I.createHTML(""));br&&br(U),tn=U}},Ko=Jt({},[...kp,...bp,...N4]),En=Jt({},[...vp,...j4]),mf=function(U){let ft=_(U);(!ft||!ft.tagName)&&(ft={namespaceURI:be,tagName:"template"});const wt=Wh(U.tagName),ge=Wh(ft.tagName);return Ze[U.namespaceURI]?U.namespaceURI===$r?ft.namespaceURI===Ke?wt==="svg":ft.namespaceURI===Qe?wt==="svg"&&(ge==="annotation-xml"||_n[ge]):!!Ko[wt]:U.namespaceURI===Qe?ft.namespaceURI===Ke?wt==="math":ft.namespaceURI===$r?wt==="math"&&pi[ge]:!!En[wt]:U.namespaceURI===Ke?ft.namespaceURI===$r&&!pi[ge]||ft.namespaceURI===Qe&&!_n[ge]?!1:!En[wt]&&(Bn[wt]||!Ko[wt]):!!(Ln==="application/xhtml+xml"&&Ze[U.namespaceURI]):!1},ir=function(U){il(t.removed,{element:U});try{_(U).removeChild(U)}catch{k(U)}},Jr=function(U,ft){try{il(t.removed,{attribute:ft.getAttributeNode(U),from:ft})}catch{il(t.removed,{attribute:null,from:ft})}if(ft.removeAttribute(U),U==="is")if(pr||fi)try{ir(ft)}catch{}else try{ft.setAttribute(U,"")}catch{}},co=function(U){let ft=null,wt=null;if(ui)U="<remove></remove>"+U;else{const Ee=Cp(U,/^[\r\n\t ]+/);wt=Ee&&Ee[0]}Ln==="application/xhtml+xml"&&be===Ke&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const ge=I?I.createHTML(U):U;if(be===Ke)try{ft=new m().parseFromString(ge,Ln)}catch{}if(!ft||!ft.documentElement){ft=A.createDocument(be,"template",null);try{ft.documentElement.innerHTML=Sr?P:ge}catch{}}const Kt=ft.body||ft.documentElement;return U&&wt&&Kt.insertBefore(r.createTextNode(wt),Kt.childNodes[0]||null),be===Ke?et.call(ft,Be?"html":"body")[0]:Be?ft.documentElement:Kt},Zo=function(U){return E.call(U.ownerDocument||U,U,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},gs=function(U){return U instanceof p&&(typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||!(U.attributes instanceof f)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function")},dc=function(U){return typeof c=="function"&&U instanceof c};function gi(At,U,ft){Sh(At,wt=>{wt.call(t,U,ft,tn)})}const Di=function(U){let ft=null;if(gi(N.beforeSanitizeElements,U,null),gs(U))return ir(U),!0;const wt=Le(U.nodeName);if(gi(N.uponSanitizeElement,U,{tagName:wt,allowedTags:z}),He&&U.hasChildNodes()&&!dc(U.firstElementChild)&&yr(/<[/\w!]/g,U.innerHTML)&&yr(/<[/\w!]/g,U.textContent)||U.nodeType===sl.progressingInstruction||He&&U.nodeType===sl.comment&&yr(/<[/\w]/g,U.data))return ir(U),!0;if(!(Ft.tagCheck instanceof Function&&Ft.tagCheck(wt))&&(!z[wt]||xt[wt])){if(!xt[wt]&&ys(wt)&&(dt.tagNameCheck instanceof RegExp&&yr(dt.tagNameCheck,wt)||dt.tagNameCheck instanceof Function&&dt.tagNameCheck(wt)))return!1;if(Tn&&!ut[wt]){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,S(U))}}}return ir(U),!0}return U instanceof h&&!mf(U)||(wt==="noscript"||wt==="noembed"||wt==="noframes")&&yr(/<\/no(script|embed|frames)/i,U.innerHTML)?(ir(U),!0):(se&&U.nodeType===sl.text&&(ft=U.textContent,Sh([J,nt,V],ge=>{ft=nl(ft,ge," ")}),U.textContent!==ft&&(il(t.removed,{element:U.cloneNode()}),U.textContent=ft)),gi(N.afterSanitizeElements,U,null),!1)},ms=function(U,ft,wt){if(Pt[ft]||di&&(ft==="id"||ft==="name")&&(wt in r||wt in ds))return!1;if(!(yt&&!Pt[ft]&&yr(j,ft))){if(!(Yt&&yr(q,ft))){if(!(Ft.attributeCheck instanceof Function&&Ft.attributeCheck(ft,U))){if(!O[ft]||Pt[ft]){if(!(ys(U)&&(dt.tagNameCheck instanceof RegExp&&yr(dt.tagNameCheck,U)||dt.tagNameCheck instanceof Function&&dt.tagNameCheck(U))&&(dt.attributeNameCheck instanceof RegExp&&yr(dt.attributeNameCheck,ft)||dt.attributeNameCheck instanceof Function&&dt.attributeNameCheck(ft,U))||ft==="is"&&dt.allowCustomizedBuiltInElements&&(dt.tagNameCheck instanceof RegExp&&yr(dt.tagNameCheck,wt)||dt.tagNameCheck instanceof Function&&dt.tagNameCheck(wt))))return!1}else if(!Me[ft]){if(!yr(F,nl(wt,R,""))){if(!((ft==="src"||ft==="xlink:href"||ft==="href")&&U!=="script"&&D4(wt,"data:")===0&&Gt[U])){if(!(It&&!yr(G,nl(wt,R,"")))){if(wt)return!1}}}}}}}return!0},ys=function(U){return U!=="annotation-xml"&&Cp(U,K)},pc=function(U){gi(N.beforeSanitizeAttributes,U,null);const{attributes:ft}=U;if(!ft||gs(U))return;const wt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let ge=ft.length;for(;ge--;){const Kt=ft[ge],{name:Ee,namespaceURI:Ue,value:ti}=Kt,mi=Le(Ee),xs=ti;let Oe=Ee==="value"?xs:R4(xs);if(wt.attrName=mi,wt.attrValue=Oe,wt.keepAttr=!0,wt.forceKeepAttr=void 0,gi(N.uponSanitizeAttribute,U,wt),Oe=wt.attrValue,Sn&&(mi==="id"||mi==="name")&&(Jr(Ee,U),Oe=Qo+Oe),He&&yr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Oe)){Jr(Ee,U);continue}if(mi==="attributename"&&Cp(Oe,"href")){Jr(Ee,U);continue}if(wt.forceKeepAttr)continue;if(!wt.keepAttr){Jr(Ee,U);continue}if(!oe&&yr(/\/>/i,Oe)){Jr(Ee,U);continue}se&&Sh([J,nt,V],zr=>{Oe=nl(Oe,zr," ")});const ho=Le(U.nodeName);if(!ms(ho,mi,Oe)){Jr(Ee,U);continue}if(I&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Ue)switch(g.getAttributeType(ho,mi)){case"TrustedHTML":{Oe=I.createHTML(Oe);break}case"TrustedScriptURL":{Oe=I.createScriptURL(Oe);break}}if(Oe!==xs)try{Ue?U.setAttributeNS(Ue,Ee,Oe):U.setAttribute(Ee,Oe),gs(U)?ir(U):K1(t.removed)}catch{Jr(Ee,U)}}gi(N.afterSanitizeAttributes,U,null)},gc=function At(U){let ft=null;const wt=Zo(U);for(gi(N.beforeSanitizeShadowDOM,U,null);ft=wt.nextNode();)gi(N.uponSanitizeShadowNode,ft,null),Di(ft),pc(ft),ft.content instanceof a&&At(ft.content);gi(N.afterSanitizeShadowDOM,U,null)};return t.sanitize=function(At){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=null,wt=null,ge=null,Kt=null;if(Sr=!At,Sr&&(At="<!-->"),typeof At!="string"&&!dc(At))if(typeof At.toString=="function"){if(At=At.toString(),typeof At!="string")throw ol("dirty is not a string, aborting")}else throw ol("toString is not a function");if(!t.isSupported)return At;if(Kr||en(U),t.removed=[],typeof At=="string"&&(Oi=!1),Oi){if(At.nodeName){const ti=Le(At.nodeName);if(!z[ti]||xt[ti])throw ol("root node is forbidden and cannot be sanitized in-place")}}else if(At instanceof c)ft=co("<!---->"),wt=ft.ownerDocument.importNode(At,!0),wt.nodeType===sl.element&&wt.nodeName==="BODY"||wt.nodeName==="HTML"?ft=wt:ft.appendChild(wt);else{if(!pr&&!se&&!Be&&At.indexOf("<")===-1)return I&&Rr?I.createHTML(At):At;if(ft=co(At),!ft)return pr?null:Rr?P:""}ft&&ui&&ir(ft.firstChild);const Ee=Zo(Oi?At:ft);for(;ge=Ee.nextNode();)Di(ge),pc(ge),ge.content instanceof a&&gc(ge.content);if(Oi)return At;if(pr){if(fi)for(Kt=W.call(ft.ownerDocument);ft.firstChild;)Kt.appendChild(ft.firstChild);else Kt=ft;return(O.shadowroot||O.shadowrootmode)&&(Kt=M.call(i,Kt,!0)),Kt}let Ue=Be?ft.outerHTML:ft.innerHTML;return Be&&z["!doctype"]&&ft.ownerDocument&&ft.ownerDocument.doctype&&ft.ownerDocument.doctype.name&&yr(h2,ft.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+ft.ownerDocument.doctype.name+`>
70
+ `+Ue),se&&Sh([J,nt,V],ti=>{Ue=nl(Ue,ti," ")}),I&&Rr?I.createHTML(Ue):Ue},t.setConfig=function(){let At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(At),Kr=!0},t.clearConfig=function(){tn=null,Kr=!1},t.isValidAttribute=function(At,U,ft){tn||en({});const wt=Le(At),ge=Le(U);return ms(wt,ge,ft)},t.addHook=function(At,U){typeof U=="function"&&il(N[At],U)},t.removeHook=function(At,U){if(U!==void 0){const ft=P4(N[At],U);return ft===-1?void 0:O4(N[At],ft,1)[0]}return K1(N[At])},t.removeHooks=function(At){N[At]=[]},t.removeAllHooks=function(){N=iC()},t}var Ka=u2(),f2=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,El=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Z4=/\s*%%.*\n/gm,Da,d2=(Da=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},v(Da,"UnknownDiagramError"),Da),Ro={},wm=v(function(e,t){e=e.replace(f2,"").replace(El,"").replace(Z4,`
71
+ `);for(const[r,{detector:i}]of Object.entries(Ro))if(i(e,t))return r;throw new d2(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),rg=v((...e)=>{for(const{id:t,detector:r,loader:i}of e)p2(t,r,i)},"registerLazyLoadedDiagrams"),p2=v((e,t,r)=>{Ro[e]&&st.warn(`Detector with key ${e} already exists. Overwriting.`),Ro[e]={detector:t,loader:r},st.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),J4=v(e=>Ro[e].loader,"getDiagramLoader"),ig=v((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>ig(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=ig(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),qe=ig,Qi="#ffffff",Ki="#f2f2f2",Ht=v((e,t)=>t?B(e,{s:-40,l:10}):B(e,{s:-40,l:-10}),"mkBorder"),Ra,tP=(Ra=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,a,s,c,h,u,f,p,m,g,x,C,k,S,T,_,I,P,A,E;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 W=0;W<this.THEME_COLOR_LIMIT;W++)this["cScale"+W]=it(this["cScale"+W],75);else for(let W=0;W<this.THEME_COLOR_LIMIT;W++)this["cScale"+W]=it(this["cScale"+W],25);for(let W=0;W<this.THEME_COLOR_LIMIT;W++)this["cScaleInv"+W]=this["cScaleInv"+W]||X(this["cScale"+W]);for(let W=0;W<this.THEME_COLOR_LIMIT;W++)this.darkMode?this["cScalePeer"+W]=this["cScalePeer"+W]||ot(this["cScale"+W],10):this["cScalePeer"+W]=this["cScalePeer"+W]||it(this["cScale"+W],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let W=0;W<this.THEME_COLOR_LIMIT;W++)this["cScaleLabel"+W]=this["cScaleLabel"+W]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let W=0;W<5;W++)this["surface"+W]=this["surface"+W]||B(this.mainBkg,{h:180,s:-15,l:t*(5+W*3)}),this["surfacePeer"+W]=this["surfacePeer"+W]||B(this.mainBkg,{h:180,s:-15,l:t*(8+W*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||B(this.primaryColor,{h:64}),this.fillType3=this.fillType3||B(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||B(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||B(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||B(this.primaryColor,{h:128}),this.fillType7=this.fillType7||B(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||B(this.primaryColor,{l:-10}),this.pie5=this.pie5||B(this.secondaryColor,{l:-10}),this.pie6=this.pie6||B(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||B(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||B(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||B(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||B(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||B(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||B(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??B(this.primaryColor,{l:-30}),this.venn2=this.venn2??B(this.secondaryColor,{l:-30}),this.venn3=this.venn3??B(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??B(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??B(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??B(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??B(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??B(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((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:((f=this.radar)==null?void 0:f.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:((S=this.xyChart)==null?void 0:S.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((T=this.xyChart)==null?void 0:T.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((I=this.xyChart)==null?void 0:I.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((P=this.xyChart)==null?void 0:P.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((A=this.xyChart)==null?void 0:A.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.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(Ra,"Theme"),Ra),eP=v(e=>{const t=new tP;return t.calculate(e),t},"getThemeVariables"),$a,rP=($a=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=to(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=to(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=to(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,a,s,c,h,u,f,p,m,g,x,C,k,S,T,_,I,P,A;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 E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||X(this["cScale"+E]);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScalePeer"+E]=this["cScalePeer"+E]||ot(this["cScale"+E],10);for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||B(this.mainBkg,{h:30,s:-30,l:-(-10+E*4)}),this["surfacePeer"+E]=this["surfacePeer"+E]||B(this.mainBkg,{h:30,s:-30,l:-(-7+E*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["pie"+E]=this["cScale"+E];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 E=0;E<8;E++)this["venn"+(E+1)]=this["venn"+(E+1)]??ot(this["cScale"+E],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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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:((S=this.radar)==null?void 0:S.curveStrokeWidth)||2,graticuleColor:((T=this.radar)==null?void 0:T.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((I=this.radar)==null?void 0:I.graticuleOpacity)||.3,legendBoxSize:((P=this.radar)==null?void 0:P.legendBoxSize)||12,legendFontSize:((A=this.radar)==null?void 0:A.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($a,"Theme"),$a),iP=v(e=>{const t=new rP;return t.calculate(e),t},"getThemeVariables"),za,nP=(za=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=to(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,n,a,s,c,h,u,f,p,m,g,x,C,k,S,T,_,I,P,A;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 E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScale"+E]=it(this["cScale"+E],10),this["cScalePeer"+E]=this["cScalePeer"+E]||it(this["cScale"+E],25);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||B(this["cScale"+E],{h:180});for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||B(this.mainBkg,{h:30,l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||B(this.mainBkg,{h:30,l:-(7+E*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 E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||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:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.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:((f=this.radar)==null?void 0:f.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:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((T=this.xyChart)==null?void 0:T.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((I=this.xyChart)==null?void 0:I.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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(za,"Theme"),za),oP=v(e=>{const t=new nP;return t.calculate(e),t},"getThemeVariables"),Na,aP=(Na=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,a,s,c,h,u,f,p,m,g,x,C,k,S,T,_,I,P,A;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 E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScale"+E]=it(this["cScale"+E],10),this["cScalePeer"+E]=this["cScalePeer"+E]||it(this["cScale"+E],25);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||B(this["cScale"+E],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||B(this.mainBkg,{h:30,s:-30,l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||B(this.mainBkg,{h:30,s:-30,l:-(8+E*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:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.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:((f=this.radar)==null?void 0:f.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:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((T=this.xyChart)==null?void 0:T.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((I=this.xyChart)==null?void 0:I.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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(Na,"Theme"),Na),sP=v(e=>{const t=new aP;return t.calculate(e),t},"getThemeVariables"),ja,lP=(ja=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,a,s,c,h,u,f,p,m,g,x,C,k,S,T,_,I,P,A;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 E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||X(this["cScale"+E]);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this.darkMode?this["cScalePeer"+E]=this["cScalePeer"+E]||ot(this["cScale"+E],10):this["cScalePeer"+E]=this["cScalePeer"+E]||it(this["cScale"+E],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||B(this.mainBkg,{l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||B(this.mainBkg,{l:-(8+E*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 E=0;E<this.THEME_COLOR_LIMIT;E++)this["pie"+E]=this["cScale"+E];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 E=0;E<8;E++)this["venn"+(E+1)]=this["venn"+(E+1)]??this["cScale"+E];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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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:((S=this.radar)==null?void 0:S.curveStrokeWidth)||2,graticuleColor:((T=this.radar)==null?void 0:T.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((I=this.radar)==null?void 0:I.graticuleOpacity)||.3,legendBoxSize:((P=this.radar)==null?void 0:P.legendBoxSize)||12,legendFontSize:((A=this.radar)==null?void 0:A.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(ja,"Theme"),ja),cP=v(e=>{const t=new lP;return t.calculate(e),t},"getThemeVariables"),qa,hP=(qa=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 a,s,c,h,u,f,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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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(qa,"Theme"),qa),uP=v(e=>{const t=new hP;return t.calculate(e),t},"getThemeVariables"),Wa,fP=(Wa=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=to(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,a,s,c,h,u,f,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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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(Wa,"Theme"),Wa),dP=v(e=>{const t=new fP;return t.calculate(e),t},"getThemeVariables"),Ha,pP=(Ha=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 a,s,c,h,u,f,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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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(Ha,"Theme"),Ha),gP=v(e=>{const t=new pP;return t.calculate(e),t},"getThemeVariables"),Ua,mP=(Ua=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=to(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,a,s,c,h,u,f,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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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(Ua,"Theme"),Ua),yP=v(e=>{const t=new mP;return t.calculate(e),t},"getThemeVariables"),Va,xP=(Va=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 a,s,c,h,u,f,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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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(Va,"Theme"),Va),CP=v(e=>{const t=new xP;return t.calculate(e),t},"getThemeVariables"),Ya,kP=(Ya=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=to(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,a,s,c,h,u,f,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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.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:((f=this.xyChart)==null?void 0:f.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(Ya,"Theme"),Ya),bP=v(e=>{const t=new kP;return t.calculate(e),t},"getThemeVariables"),gn={base:{getThemeVariables:eP},dark:{getThemeVariables:iP},default:{getThemeVariables:oP},forest:{getThemeVariables:sP},neutral:{getThemeVariables:cP},neo:{getThemeVariables:uP},"neo-dark":{getThemeVariables:dP},redux:{getThemeVariables:gP},"redux-dark":{getThemeVariables:yP},"redux-color":{getThemeVariables:CP},"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},g2={...Hr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:gn.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}},m2=v((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...m2(e[i],"")]:[...r,t+i],[]),"keyify"),vP=new Set(m2(g2,"")),y2=g2,ou=v(e=>{if(st.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>ou(t));return}for(const t of Object.keys(e)){if(st.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!vP.has(t)||e[t]==null){st.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){st.debug("sanitizing object",t),ou(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(st.debug("sanitizing css option",t),e[t]=wP(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]="")}st.debug("After sanitization",e)}},"sanitizeDirective"),wP=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"),Za=Object.freeze(y2),kn=v(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ir=qe({},Za),au,$o=[],Fl=qe({},Za),Vu=v((e,t)=>{let r=qe({},e),i={};for(const n of t)k2(n),i=qe(i,n);if(r=qe(r,i),i.theme&&i.theme in gn){const n=qe({},au),a=qe(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in gn&&(r.themeVariables=gn[r.theme].getThemeVariables(a))}return Fl=r,v2(Fl),Fl},"updateCurrentConfig"),SP=v(e=>(Ir=qe({},Za),Ir=qe(Ir,e),e.theme&&gn[e.theme]&&(Ir.themeVariables=gn[e.theme].getThemeVariables(e.themeVariables)),Vu(Ir,$o),Ir),"setSiteConfig"),TP=v(e=>{au=qe({},e)},"saveConfigFromInitialize"),_P=v(e=>(Ir=qe(Ir,e),Vu(Ir,$o),Ir),"updateSiteConfig"),x2=v(()=>qe({},Ir),"getSiteConfig"),C2=v(e=>(v2(e),qe(Fl,e),_e()),"setConfig"),_e=v(()=>qe({},Fl),"getConfig"),k2=v(e=>{e&&(["secure",...Ir.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(st.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"&&k2(e[t])}))},"sanitize"),BP=v(e=>{var t;ou(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),$o.push(e),Vu(Ir,$o)},"addDirective"),su=v((e=Ir)=>{$o=[],Vu(e,$o)},"reset"),LP={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."},nC={},b2=v(e=>{nC[e]||(st.warn(LP[e]),nC[e]=!0)},"issueWarning"),v2=v(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&b2("LAZY_LOAD_DEPRECATED")},"checkConfig"),xU=v(()=>{let e={};au&&(e=qe(e,au));for(const t of $o)e=qe(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"),kn(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),tc=/<br\s*\/?>/gi,EP=v(e=>e?T2(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),FP=(()=>{let e=!1;return()=>{e||(w2(),e=!0)}})();function w2(){const e="data-temp-href-target";Ka.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Ka.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(w2,"setupDompurifyHooks");var S2=v(e=>(FP(),Ka.sanitize(e)),"removeScript"),oC=v((e,t)=>{if(wr(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=S2(e):r!=="loose"&&(e=T2(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=PP(e))}return e},"sanitizeMore"),Ai=v((e,t)=>e&&(t.dompurifyConfig?e=Ka.sanitize(oC(e,t),t.dompurifyConfig).toString():e=Ka.sanitize(oC(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),AP=v((e,t)=>typeof e=="string"?Ai(e,t):e.flat().map(r=>Ai(r,t)),"sanitizeTextOrArray"),MP=v(e=>tc.test(e),"hasBreaks"),IP=v(e=>e.split(tc),"splitBreaks"),PP=v(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),T2=v(e=>e.replace(tc,"#br#"),"breakToPlaceholder"),OP=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"),DP=v(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),RP=v(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),aC=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 a=t[i-1],s=t[i+1];$P(a,s)&&(n=a+","+s,i++,r.pop())}r.push(zP(n))}return r.join("")},"parseGenericTypes"),ng=v((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),$P=v((e,t)=>{const r=ng(e,"~"),i=ng(t,"~");return r===1&&i===1},"shouldCombineSets"),zP=v(e=>{const t=ng(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),sC=v(()=>window.MathMLElement!==void 0,"isMathMLSupported"),og=/\$\$(.*)\$\$/g,Dl=v(e=>{var t;return(((t=e.match(og))==null?void 0:t.length)??0)>0},"hasKatex"),CU=v(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await _2(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"),NP=v(async(e,t)=>{if(!Dl(e))return e;if(!(sC()||t.legacyMathML||t.forceLegacyMathML))return e.replace(og,"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||!sC()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(tc).map(n=>Dl(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(og,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),_2=v(async(e,t)=>Ai(await NP(e,t),t),"renderKatexSanitized"),ec={getRows:EP,sanitizeText:Ai,sanitizeTextOrArray:AP,hasBreaks:MP,splitBreaks:IP,lineBreakRegex:tc,removeScript:S2,getUrl:OP,evaluate:kn,getMax:DP,getMin:RP},jP=v(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),qP=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"),B2=v(function(e,t,r,i){const n=qP(t,r,i);jP(e,n)},"configureSvgSize"),WP=v(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,s=n.height;st.info(`SVG bounds: ${a}x${s}`,n);let c=0,h=0;st.info(`Graph bounds: ${c}x${h}`,e),c=a+r*2,h=s+r*2,st.info(`Calculated bounds: ${c}x${h}`),B2(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"),Hh={},HP=v((e,t,r,i)=>{let n="";return e in Hh&&Hh[e]?n=Hh[e]({...r,svgId:i}):st.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"),UP=v((e,t)=>{t!==void 0&&(Hh[e]=t)},"addStylesForDiagram"),VP=HP,L2={};w4(L2,{clear:()=>YP,getAccDescription:()=>KP,getAccTitle:()=>XP,getDiagramTitle:()=>JP,setAccDescription:()=>QP,setAccTitle:()=>GP,setDiagramTitle:()=>ZP});var Sm="",Tm="",_m="",Bm=v(e=>Ai(e,_e()),"sanitizeText"),YP=v(()=>{Sm="",_m="",Tm=""},"clear"),GP=v(e=>{Sm=Bm(e).replace(/^\s+/g,"")},"setAccTitle"),XP=v(()=>Sm,"getAccTitle"),QP=v(e=>{_m=Bm(e).replace(/\n\s+/g,`
190
+ `)},"setAccDescription"),KP=v(()=>_m,"getAccDescription"),ZP=v(e=>{Tm=Bm(e)},"setDiagramTitle"),JP=v(()=>Tm,"getDiagramTitle"),lC=st,tO=vm,ce=_e,kU=C2,bU=Za,Lm=v(e=>Ai(e,ce()),"sanitizeText"),eO=WP,rO=v(()=>L2,"getCommonDb"),lu={},cu=v((e,t,r)=>{var i;lu[e]&&lC.warn(`Diagram with id ${e} already registered. Overwriting.`),lu[e]=t,r&&p2(e,r),UP(e,t.styles),(i=t.injectUtils)==null||i.call(t,lC,tO,ce,Lm,eO,rO(),()=>{})},"registerDiagram"),ag=v(e=>{if(e in lu)return lu[e];throw new iO(e)},"getDiagram"),Ga,iO=(Ga=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},v(Ga,"DiagramNotFoundError"),Ga),nO={value:()=>{}};function E2(){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 Uh(r)}function Uh(e){this._=e}function oO(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}})}Uh.prototype=E2.prototype={constructor:Uh,on:function(e,t){var r=this._,i=oO(e+"",r),n,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=aO(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=cC(r[n],e.name,t);else if(t==null)for(n in r)r[n]=cC(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 Uh(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function aO(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function cC(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=nO,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var sg="http://www.w3.org/1999/xhtml";const hC={svg:"http://www.w3.org/2000/svg",xhtml:sg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Yu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),hC.hasOwnProperty(t)?{space:hC[t],local:e}:e}function sO(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===sg&&t.documentElement.namespaceURI===sg?t.createElement(e):t.createElementNS(r,e)}}function lO(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function F2(e){var t=Yu(e);return(t.local?lO:sO)(t)}function cO(){}function Em(e){return e==null?cO:function(){return this.querySelector(e)}}function hO(e){typeof e!="function"&&(e=Em(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,c=i[n]=new Array(s),h,u,f=0;f<s;++f)(h=a[f])&&(u=e.call(h,h.__data__,f,a))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u);return new Qr(i,this._parents)}function uO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function fO(){return[]}function A2(e){return e==null?fO:function(){return this.querySelectorAll(e)}}function dO(e){return function(){return uO(e.apply(this,arguments))}}function pO(e){typeof e=="function"?e=dO(e):e=A2(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var s=t[a],c=s.length,h,u=0;u<c;++u)(h=s[u])&&(i.push(e.call(h,h.__data__,u,s)),n.push(h));return new Qr(i,n)}function M2(e){return function(){return this.matches(e)}}function I2(e){return function(t){return t.matches(e)}}var gO=Array.prototype.find;function mO(e){return function(){return gO.call(this.children,e)}}function yO(){return this.firstElementChild}function xO(e){return this.select(e==null?yO:mO(typeof e=="function"?e:I2(e)))}var CO=Array.prototype.filter;function kO(){return Array.from(this.children)}function bO(e){return function(){return CO.call(this.children,e)}}function vO(e){return this.selectAll(e==null?kO:bO(typeof e=="function"?e:I2(e)))}function wO(e){typeof e!="function"&&(e=M2(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,c=i[n]=[],h,u=0;u<s;++u)(h=a[u])&&e.call(h,h.__data__,u,a)&&c.push(h);return new Qr(i,this._parents)}function P2(e){return new Array(e.length)}function SO(){return new Qr(this._enter||this._groups.map(P2),this._parents)}function hu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}hu.prototype={constructor:hu,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 TO(e){return function(){return e}}function _O(e,t,r,i,n,a){for(var s=0,c,h=t.length,u=a.length;s<u;++s)(c=t[s])?(c.__data__=a[s],i[s]=c):r[s]=new hu(e,a[s]);for(;s<h;++s)(c=t[s])&&(n[s]=c)}function BO(e,t,r,i,n,a,s){var c,h,u=new Map,f=t.length,p=a.length,m=new Array(f),g;for(c=0;c<f;++c)(h=t[c])&&(m[c]=g=s.call(h,h.__data__,c,t)+"",u.has(g)?n[c]=h:u.set(g,h));for(c=0;c<p;++c)g=s.call(e,a[c],c,a)+"",(h=u.get(g))?(i[c]=h,h.__data__=a[c],u.delete(g)):r[c]=new hu(e,a[c]);for(c=0;c<f;++c)(h=t[c])&&u.get(m[c])===h&&(n[c]=h)}function LO(e){return e.__data__}function EO(e,t){if(!arguments.length)return Array.from(this,LO);var r=t?BO:_O,i=this._parents,n=this._groups;typeof e!="function"&&(e=TO(e));for(var a=n.length,s=new Array(a),c=new Array(a),h=new Array(a),u=0;u<a;++u){var f=i[u],p=n[u],m=p.length,g=FO(e.call(f,f&&f.__data__,u,i)),x=g.length,C=c[u]=new Array(x),k=s[u]=new Array(x),S=h[u]=new Array(m);r(f,p,C,k,S,g,t);for(var T=0,_=0,I,P;T<x;++T)if(I=C[T]){for(T>=_&&(_=T+1);!(P=k[_])&&++_<x;);I._next=P||null}}return s=new Qr(s,i),s._enter=c,s._exit=h,s}function FO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function AO(){return new Qr(this._exit||this._groups.map(P2),this._parents)}function MO(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function IO(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,s=Math.min(n,a),c=new Array(n),h=0;h<s;++h)for(var u=r[h],f=i[h],p=u.length,m=c[h]=new Array(p),g,x=0;x<p;++x)(g=u[x]||f[x])&&(m[x]=g);for(;h<n;++h)c[h]=r[h];return new Qr(c,this._parents)}function PO(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],s;--n>=0;)(s=i[n])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function OO(e){e||(e=DO);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),a=0;a<i;++a){for(var s=r[a],c=s.length,h=n[a]=new Array(c),u,f=0;f<c;++f)(u=s[f])&&(h[f]=u);h.sort(t)}return new Qr(n,this._parents).order()}function DO(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function RO(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $O(){return Array.from(this)}function zO(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var s=i[n];if(s)return s}return null}function NO(){let e=0;for(const t of this)++e;return e}function jO(){return!this.node()}function qO(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,s=n.length,c;a<s;++a)(c=n[a])&&e.call(c,c.__data__,a,n);return this}function WO(e){return function(){this.removeAttribute(e)}}function HO(e){return function(){this.removeAttributeNS(e.space,e.local)}}function UO(e,t){return function(){this.setAttribute(e,t)}}function VO(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function YO(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function GO(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 XO(e,t){var r=Yu(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?HO:WO:typeof t=="function"?r.local?GO:YO:r.local?VO:UO)(r,t))}function O2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function QO(e){return function(){this.style.removeProperty(e)}}function KO(e,t,r){return function(){this.style.setProperty(e,t,r)}}function ZO(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function JO(e,t,r){return arguments.length>1?this.each((t==null?QO:typeof t=="function"?ZO:KO)(e,t,r??"")):Ja(this.node(),e)}function Ja(e,t){return e.style.getPropertyValue(t)||O2(e).getComputedStyle(e,null).getPropertyValue(t)}function tD(e){return function(){delete this[e]}}function eD(e,t){return function(){this[e]=t}}function rD(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function iD(e,t){return arguments.length>1?this.each((t==null?tD:typeof t=="function"?rD:eD)(e,t)):this.node()[e]}function D2(e){return e.trim().split(/^|\s+/)}function Fm(e){return e.classList||new R2(e)}function R2(e){this._node=e,this._names=D2(e.getAttribute("class")||"")}R2.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 $2(e,t){for(var r=Fm(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function z2(e,t){for(var r=Fm(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function nD(e){return function(){$2(this,e)}}function oD(e){return function(){z2(this,e)}}function aD(e,t){return function(){(t.apply(this,arguments)?$2:z2)(this,e)}}function sD(e,t){var r=D2(e+"");if(arguments.length<2){for(var i=Fm(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?aD:t?nD:oD)(r,t))}function lD(){this.textContent=""}function cD(e){return function(){this.textContent=e}}function hD(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function uD(e){return arguments.length?this.each(e==null?lD:(typeof e=="function"?hD:cD)(e)):this.node().textContent}function fD(){this.innerHTML=""}function dD(e){return function(){this.innerHTML=e}}function pD(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function gD(e){return arguments.length?this.each(e==null?fD:(typeof e=="function"?pD:dD)(e)):this.node().innerHTML}function mD(){this.nextSibling&&this.parentNode.appendChild(this)}function yD(){return this.each(mD)}function xD(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function CD(){return this.each(xD)}function kD(e){var t=typeof e=="function"?e:F2(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function bD(){return null}function vD(e,t){var r=typeof e=="function"?e:F2(e),i=t==null?bD:typeof t=="function"?t:Em(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function wD(){var e=this.parentNode;e&&e.removeChild(this)}function SD(){return this.each(wD)}function TD(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _D(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function BD(e){return this.select(e?_D:TD)}function LD(e){return arguments.length?this.property("__data__",e):this.node().__data__}function ED(e){return function(t){e.call(this,t,this.__data__)}}function FD(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 AD(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function MD(e,t,r){return function(){var i=this.__on,n,a=ED(t);if(i){for(var s=0,c=i.length;s<c;++s)if((n=i[s]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function ID(e,t,r){var i=FD(e+""),n,a=i.length,s;if(arguments.length<2){var c=this.node().__on;if(c){for(var h=0,u=c.length,f;h<u;++h)for(n=0,f=c[h];n<a;++n)if((s=i[n]).type===f.type&&s.name===f.name)return f.value}return}for(c=t?MD:AD,n=0;n<a;++n)this.each(c(i[n],t,r));return this}function N2(e,t,r){var i=O2(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 PD(e,t){return function(){return N2(this,e,t)}}function OD(e,t){return function(){return N2(this,e,t.apply(this,arguments))}}function DD(e,t){return this.each((typeof t=="function"?OD:PD)(e,t))}function*RD(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,s;n<a;++n)(s=i[n])&&(yield s)}var j2=[null];function Qr(e,t){this._groups=e,this._parents=t}function rc(){return new Qr([[document.documentElement]],j2)}function $D(){return this}Qr.prototype=rc.prototype={constructor:Qr,select:hO,selectAll:pO,selectChild:xO,selectChildren:vO,filter:wO,data:EO,enter:SO,exit:AO,join:MO,merge:IO,selection:$D,order:PO,sort:OO,call:RO,nodes:$O,node:zO,size:NO,empty:jO,each:qO,attr:XO,style:JO,property:iD,classed:sD,text:uD,html:gD,raise:yD,lower:CD,append:kD,insert:vD,remove:SD,clone:BD,datum:LD,on:ID,dispatch:DD,[Symbol.iterator]:RD};function Qt(e){return typeof e=="string"?new Qr([[document.querySelector(e)]],[document.documentElement]):new Qr([[e]],j2)}function Am(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function q2(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function ic(){}var Rl=.7,uu=1/Rl,Pa="\\s*([+-]?\\d+)\\s*",$l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zD=/^#([0-9a-f]{3,8})$/,ND=new RegExp(`^rgb\\(${Pa},${Pa},${Pa}\\)$`),jD=new RegExp(`^rgb\\(${Vi},${Vi},${Vi}\\)$`),qD=new RegExp(`^rgba\\(${Pa},${Pa},${Pa},${$l}\\)$`),WD=new RegExp(`^rgba\\(${Vi},${Vi},${Vi},${$l}\\)$`),HD=new RegExp(`^hsl\\(${$l},${Vi},${Vi}\\)$`),UD=new RegExp(`^hsla\\(${$l},${Vi},${Vi},${$l}\\)$`),uC={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};Am(ic,zl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fC,formatHex:fC,formatHex8:VD,formatHsl:YD,formatRgb:dC,toString:dC});function fC(){return this.rgb().formatHex()}function VD(){return this.rgb().formatHex8()}function YD(){return W2(this).formatHsl()}function dC(){return this.rgb().formatRgb()}function zl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=zD.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?pC(t):r===3?new Or(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_h(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_h(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=ND.exec(e))?new Or(t[1],t[2],t[3],1):(t=jD.exec(e))?new Or(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qD.exec(e))?_h(t[1],t[2],t[3],t[4]):(t=WD.exec(e))?_h(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=HD.exec(e))?yC(t[1],t[2]/100,t[3]/100,1):(t=UD.exec(e))?yC(t[1],t[2]/100,t[3]/100,t[4]):uC.hasOwnProperty(e)?pC(uC[e]):e==="transparent"?new Or(NaN,NaN,NaN,0):null}function pC(e){return new Or(e>>16&255,e>>8&255,e&255,1)}function _h(e,t,r,i){return i<=0&&(e=t=r=NaN),new Or(e,t,r,i)}function GD(e){return e instanceof ic||(e=zl(e)),e?(e=e.rgb(),new Or(e.r,e.g,e.b,e.opacity)):new Or}function lg(e,t,r,i){return arguments.length===1?GD(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}Am(Or,lg,q2(ic,{brighter(e){return e=e==null?uu:Math.pow(uu,e),new Or(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rl:Math.pow(Rl,e),new Or(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Or(Po(this.r),Po(this.g),Po(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:gC,formatHex:gC,formatHex8:XD,formatRgb:mC,toString:mC}));function gC(){return`#${Ao(this.r)}${Ao(this.g)}${Ao(this.b)}`}function XD(){return`#${Ao(this.r)}${Ao(this.g)}${Ao(this.b)}${Ao((isNaN(this.opacity)?1:this.opacity)*255)}`}function mC(){const e=fu(this.opacity);return`${e===1?"rgb(":"rgba("}${Po(this.r)}, ${Po(this.g)}, ${Po(this.b)}${e===1?")":`, ${e})`}`}function fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Po(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ao(e){return e=Po(e),(e<16?"0":"")+e.toString(16)}function yC(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 W2(e){if(e instanceof _i)return new _i(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=zl(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),a=Math.max(t,r,i),s=NaN,c=a-n,h=(a+n)/2;return c?(t===a?s=(r-i)/c+(r<i)*6:r===a?s=(i-t)/c+2:s=(t-r)/c+4,c/=h<.5?a+n:2-a-n,s*=60):c=h>0&&h<1?0:s,new _i(s,c,h,e.opacity)}function QD(e,t,r,i){return arguments.length===1?W2(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}Am(_i,QD,q2(ic,{brighter(e){return e=e==null?uu:Math.pow(uu,e),new _i(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rl:Math.pow(Rl,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(Sp(e>=240?e-240:e+120,n,i),Sp(e,n,i),Sp(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new _i(xC(this.h),Bh(this.s),Bh(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("}${xC(this.h)}, ${Bh(this.s)*100}%, ${Bh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function xC(e){return e=(e||0)%360,e<0?e+360:e}function Bh(e){return Math.max(0,Math.min(1,e||0))}function Sp(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 Mm=e=>()=>e;function H2(e,t){return function(r){return e+r*t}}function KD(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 vU(e,t){var r=t-e;return r?H2(e,r>180||r<-180?r-360*Math.round(r/360):r):Mm(isNaN(e)?t:e)}function ZD(e){return(e=+e)==1?U2:function(t,r){return r-t?KD(t,r,e):Mm(isNaN(t)?r:t)}}function U2(e,t){var r=t-e;return r?H2(e,r):Mm(isNaN(e)?t:e)}const CC=(function e(t){var r=ZD(t);function i(n,a){var s=r((n=lg(n)).r,(a=lg(a)).r),c=r(n.g,a.g),h=r(n.b,a.b),u=U2(n.opacity,a.opacity);return function(f){return n.r=s(f),n.g=c(f),n.b=h(f),n.opacity=u(f),n+""}}return i.gamma=e,i})(1);function Kn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var cg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tp=new RegExp(cg.source,"g");function JD(e){return function(){return e}}function tR(e){return function(t){return e(t)+""}}function eR(e,t){var r=cg.lastIndex=Tp.lastIndex=0,i,n,a,s=-1,c=[],h=[];for(e=e+"",t=t+"";(i=cg.exec(e))&&(n=Tp.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),c[s]?c[s]+=a:c[++s]=a),(i=i[0])===(n=n[0])?c[s]?c[s]+=n:c[++s]=n:(c[++s]=null,h.push({i:s,x:Kn(i,n)})),r=Tp.lastIndex;return r<t.length&&(a=t.slice(r),c[s]?c[s]+=a:c[++s]=a),c.length<2?h[0]?tR(h[0].x):JD(t):(t=h.length,function(u){for(var f=0,p;f<t;++f)c[(p=h[f]).i]=p.x(u);return c.join("")})}var kC=180/Math.PI,hg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function V2(e,t,r,i,n,a){var s,c,h;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(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,s=-s),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*kC,skewX:Math.atan(h)*kC,scaleX:s,scaleY:c}}var Lh;function rR(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?hg:V2(t.a,t.b,t.c,t.d,t.e,t.f)}function iR(e){return e==null||(Lh||(Lh=document.createElementNS("http://www.w3.org/2000/svg","g")),Lh.setAttribute("transform",e),!(e=Lh.transform.baseVal.consolidate()))?hg:(e=e.matrix,V2(e.a,e.b,e.c,e.d,e.e,e.f))}function Y2(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,f,p,m,g,x){if(u!==p||f!==m){var C=g.push("translate(",null,t,null,r);x.push({i:C-4,x:Kn(u,p)},{i:C-2,x:Kn(f,m)})}else(p||m)&&g.push("translate("+p+t+m+r)}function s(u,f,p,m){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),m.push({i:p.push(n(p)+"rotate(",null,i)-2,x:Kn(u,f)})):f&&p.push(n(p)+"rotate("+f+i)}function c(u,f,p,m){u!==f?m.push({i:p.push(n(p)+"skewX(",null,i)-2,x:Kn(u,f)}):f&&p.push(n(p)+"skewX("+f+i)}function h(u,f,p,m,g,x){if(u!==p||f!==m){var C=g.push(n(g)+"scale(",null,",",null,")");x.push({i:C-4,x:Kn(u,p)},{i:C-2,x:Kn(f,m)})}else(p!==1||m!==1)&&g.push(n(g)+"scale("+p+","+m+")")}return function(u,f){var p=[],m=[];return u=e(u),f=e(f),a(u.translateX,u.translateY,f.translateX,f.translateY,p,m),s(u.rotate,f.rotate,p,m),c(u.skewX,f.skewX,p,m),h(u.scaleX,u.scaleY,f.scaleX,f.scaleY,p,m),u=f=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 nR=Y2(rR,"px, ","px)","deg)"),oR=Y2(iR,", ",")",")"),ts=0,yl=0,ll=0,G2=1e3,du,xl,pu=0,zo=0,Gu=0,Nl=typeof performance=="object"&&performance.now?performance:Date,X2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Im(){return zo||(X2(aR),zo=Nl.now()+Gu)}function aR(){zo=0}function gu(){this._call=this._time=this._next=null}gu.prototype=Q2.prototype={constructor:gu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Im():+r)+(t==null?0:+t),!this._next&&xl!==this&&(xl?xl._next=this:du=this,xl=this),this._call=e,this._time=r,ug()},stop:function(){this._call&&(this._call=null,this._time=1/0,ug())}};function Q2(e,t,r){var i=new gu;return i.restart(e,t,r),i}function sR(){Im(),++ts;for(var e=du,t;e;)(t=zo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ts}function bC(){zo=(pu=Nl.now())+Gu,ts=yl=0;try{sR()}finally{ts=0,cR(),zo=0}}function lR(){var e=Nl.now(),t=e-pu;t>G2&&(Gu-=t,pu=e)}function cR(){for(var e,t=du,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:du=r);xl=e,ug(i)}function ug(e){if(!ts){yl&&(yl=clearTimeout(yl));var t=e-zo;t>24?(e<1/0&&(yl=setTimeout(bC,e-Nl.now()-Gu)),ll&&(ll=clearInterval(ll))):(ll||(pu=Nl.now(),ll=setInterval(lR,G2)),ts=1,X2(bC))}}function vC(e,t,r){var i=new gu;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var hR=E2("start","end","cancel","interrupt"),uR=[],K2=0,wC=1,fg=2,Vh=3,SC=4,dg=5,Yh=6;function Xu(e,t,r,i,n,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;fR(e,r,{name:t,index:i,group:n,on:hR,tween:uR,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:K2})}function Pm(e,t){var r=Pi(e,t);if(r.state>K2)throw new Error("too late; already scheduled");return r}function Zi(e,t){var r=Pi(e,t);if(r.state>Vh)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 fR(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Q2(a,0,r.time);function a(u){r.state=wC,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var f,p,m,g;if(r.state!==wC)return h();for(f in i)if(g=i[f],g.name===r.name){if(g.state===Vh)return vC(s);g.state===SC?(g.state=Yh,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete i[f]):+f<t&&(g.state=Yh,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete i[f])}if(vC(function(){r.state===Vh&&(r.state=SC,r.timer.restart(c,r.delay,r.time),c(u))}),r.state=fg,r.on.call("start",e,e.__data__,r.index,r.group),r.state===fg){for(r.state=Vh,n=new Array(m=r.tween.length),f=0,p=-1;f<m;++f)(g=r.tween[f].value.call(e,e.__data__,r.index,r.group))&&(n[++p]=g);n.length=p+1}}function c(u){for(var f=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(h),r.state=dg,1),p=-1,m=n.length;++p<m;)n[p].call(e,f);r.state===dg&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Yh,r.timer.stop(),delete i[t];for(var u in i)return;delete e.__transition}}function dR(e,t){var r=e.__transition,i,n,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){a=!1;continue}n=i.state>fg&&i.state<dg,i.state=Yh,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function pR(e){return this.each(function(){dR(this,e)})}function gR(e,t){var r,i;return function(){var n=Zi(this,e),a=n.tween;if(a!==r){i=r=a;for(var s=0,c=i.length;s<c;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}n.tween=i}}function mR(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=Zi(this,e),s=a.tween;if(s!==i){n=(i=s).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)}a.tween=n}}function yR(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Pi(this.node(),r).tween,n=0,a=i.length,s;n<a;++n)if((s=i[n]).name===e)return s.value;return null}return this.each((t==null?gR:mR)(r,e,t))}function Om(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 Z2(e,t){var r;return(typeof t=="number"?Kn:t instanceof zl?CC:(r=zl(t))?(t=r,CC):eR)(e,t)}function xR(e){return function(){this.removeAttribute(e)}}function CR(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kR(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttribute(e);return s===n?null:s===i?a:a=t(i=s,r)}}function bR(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===n?null:s===i?a:a=t(i=s,r)}}function vR(e,t,r){var i,n,a;return function(){var s,c=r(this),h;return c==null?void this.removeAttribute(e):(s=this.getAttribute(e),h=c+"",s===h?null:s===i&&h===n?a:(n=h,a=t(i=s,c)))}}function wR(e,t,r){var i,n,a;return function(){var s,c=r(this),h;return c==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),h=c+"",s===h?null:s===i&&h===n?a:(n=h,a=t(i=s,c)))}}function SR(e,t){var r=Yu(e),i=r==="transform"?oR:Z2;return this.attrTween(e,typeof t=="function"?(r.local?wR:vR)(r,i,Om(this,"attr."+e,t)):t==null?(r.local?CR:xR)(r):(r.local?bR:kR)(r,i,t))}function TR(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function _R(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function BR(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&_R(e,a)),r}return n._value=t,n}function LR(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&TR(e,a)),r}return n._value=t,n}function ER(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=Yu(e);return this.tween(r,(i.local?BR:LR)(i,t))}function FR(e,t){return function(){Pm(this,e).delay=+t.apply(this,arguments)}}function AR(e,t){return t=+t,function(){Pm(this,e).delay=t}}function MR(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?FR:AR)(t,e)):Pi(this.node(),t).delay}function IR(e,t){return function(){Zi(this,e).duration=+t.apply(this,arguments)}}function PR(e,t){return t=+t,function(){Zi(this,e).duration=t}}function OR(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?IR:PR)(t,e)):Pi(this.node(),t).duration}function DR(e,t){if(typeof t!="function")throw new Error;return function(){Zi(this,e).ease=t}}function RR(e){var t=this._id;return arguments.length?this.each(DR(t,e)):Pi(this.node(),t).ease}function $R(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Zi(this,e).ease=r}}function zR(e){if(typeof e!="function")throw new Error;return this.each($R(this._id,e))}function NR(e){typeof e!="function"&&(e=M2(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,c=i[n]=[],h,u=0;u<s;++u)(h=a[u])&&e.call(h,h.__data__,u,a)&&c.push(h);return new yn(i,this._parents,this._name,this._id)}function jR(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),s=new Array(i),c=0;c<a;++c)for(var h=t[c],u=r[c],f=h.length,p=s[c]=new Array(f),m,g=0;g<f;++g)(m=h[g]||u[g])&&(p[g]=m);for(;c<i;++c)s[c]=t[c];return new yn(s,this._parents,this._name,this._id)}function qR(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 WR(e,t,r){var i,n,a=qR(t)?Pm:Zi;return function(){var s=a(this,e),c=s.on;c!==i&&(n=(i=c).copy()).on(t,r),s.on=n}}function HR(e,t){var r=this._id;return arguments.length<2?Pi(this.node(),r).on.on(e):this.each(WR(r,e,t))}function UR(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function VR(){return this.on("end.remove",UR(this._id))}function YR(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Em(e));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var c=i[s],h=c.length,u=a[s]=new Array(h),f,p,m=0;m<h;++m)(f=c[m])&&(p=e.call(f,f.__data__,m,c))&&("__data__"in f&&(p.__data__=f.__data__),u[m]=p,Xu(u[m],t,r,m,u,Pi(f,r)));return new yn(a,this._parents,t,r)}function GR(e){var t=this._name,r=this._id;typeof e!="function"&&(e=A2(e));for(var i=this._groups,n=i.length,a=[],s=[],c=0;c<n;++c)for(var h=i[c],u=h.length,f,p=0;p<u;++p)if(f=h[p]){for(var m=e.call(f,f.__data__,p,h),g,x=Pi(f,r),C=0,k=m.length;C<k;++C)(g=m[C])&&Xu(g,t,r,C,m,x);a.push(m),s.push(f)}return new yn(a,s,t,r)}var XR=rc.prototype.constructor;function QR(){return new XR(this._groups,this._parents)}function KR(e,t){var r,i,n;return function(){var a=Ja(this,e),s=(this.style.removeProperty(e),Ja(this,e));return a===s?null:a===r&&s===i?n:n=t(r=a,i=s)}}function J2(e){return function(){this.style.removeProperty(e)}}function ZR(e,t,r){var i,n=r+"",a;return function(){var s=Ja(this,e);return s===n?null:s===i?a:a=t(i=s,r)}}function JR(e,t,r){var i,n,a;return function(){var s=Ja(this,e),c=r(this),h=c+"";return c==null&&(h=c=(this.style.removeProperty(e),Ja(this,e))),s===h?null:s===i&&h===n?a:(n=h,a=t(i=s,c))}}function t$(e,t){var r,i,n,a="style."+t,s="end."+a,c;return function(){var h=Zi(this,e),u=h.on,f=h.value[a]==null?c||(c=J2(t)):void 0;(u!==r||n!==f)&&(i=(r=u).copy()).on(s,n=f),h.on=i}}function e$(e,t,r){var i=(e+="")=="transform"?nR:Z2;return t==null?this.styleTween(e,KR(e,i)).on("end.style."+e,J2(e)):typeof t=="function"?this.styleTween(e,JR(e,i,Om(this,"style."+e,t))).each(t$(this._id,e)):this.styleTween(e,ZR(e,i,t),r).on("end.style."+e,null)}function r$(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function i$(e,t,r){var i,n;function a(){var s=t.apply(this,arguments);return s!==n&&(i=(n=s)&&r$(e,s,r)),i}return a._value=t,a}function n$(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,i$(e,t,r??""))}function o$(e){return function(){this.textContent=e}}function a$(e){return function(){var t=e(this);this.textContent=t??""}}function s$(e){return this.tween("text",typeof e=="function"?a$(Om(this,"text",e)):o$(e==null?"":e+""))}function l$(e){return function(t){this.textContent=e.call(this,t)}}function c$(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&l$(n)),t}return i._value=e,i}function h$(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,c$(e))}function u$(){for(var e=this._name,t=this._id,r=tv(),i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],c=s.length,h,u=0;u<c;++u)if(h=s[u]){var f=Pi(h,t);Xu(h,e,r,u,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new yn(i,this._parents,e,r)}function f$(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,s){var c={value:s},h={value:function(){--n===0&&a()}};r.each(function(){var u=Zi(this,i),f=u.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(c),t._.interrupt.push(c),t._.end.push(h)),u.on=t}),n===0&&a()})}var d$=0;function yn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function tv(){return++d$}var fn=rc.prototype;yn.prototype={constructor:yn,select:YR,selectAll:GR,selectChild:fn.selectChild,selectChildren:fn.selectChildren,filter:NR,merge:jR,selection:QR,transition:u$,call:fn.call,nodes:fn.nodes,node:fn.node,size:fn.size,empty:fn.empty,each:fn.each,on:HR,attr:SR,attrTween:ER,style:e$,styleTween:n$,text:s$,textTween:h$,remove:VR,tween:yR,delay:MR,duration:OR,ease:RR,easeVarying:zR,end:f$,[Symbol.iterator]:fn[Symbol.iterator]};function p$(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var g$={time:null,delay:0,duration:250,ease:p$};function m$(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 y$(e){var t,r;e instanceof yn?(t=e._id,e=e._name):(t=tv(),(r=g$).time=Im(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],c=s.length,h,u=0;u<c;++u)(h=s[u])&&Xu(h,e,t,u,s,r||m$(h,t));return new yn(i,this._parents,e,t)}rc.prototype.interrupt=pR;rc.prototype.transition=y$;const pg=Math.PI,gg=2*pg,Bo=1e-6,x$=gg-Bo;function ev(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function C$(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ev;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class k${constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ev:C$(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,s){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,c=this._y1,h=i-t,u=n-r,f=s-t,p=c-r,m=f*f+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Bo)if(!(Math.abs(p*h-u*f)>Bo)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let g=i-s,x=n-c,C=h*h+u*u,k=g*g+x*x,S=Math.sqrt(C),T=Math.sqrt(m),_=a*Math.tan((pg-Math.acos((C+m-k)/(2*S*T)))/2),I=_/T,P=_/S;Math.abs(I-1)>Bo&&this._append`L${t+I*f},${r+I*p}`,this._append`A${a},${a},0,0,${+(p*g>f*x)},${this._x1=t+P*h},${this._y1=r+P*u}`}}arc(t,r,i,n,a,s){if(t=+t,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(n),h=i*Math.sin(n),u=t+c,f=r+h,p=1^s,m=s?n-a:a-n;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Bo||Math.abs(this._y1-f)>Bo)&&this._append`L${u},${f}`,i&&(m<0&&(m=m%gg+gg),m>x$?this._append`A${i},${i},0,1,${p},${t-c},${r-h}A${i},${i},0,1,${p},${this._x1=u},${this._y1=f}`:m>Bo&&this._append`A${i},${i},0,${+(m>=pg)},${p},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function wa(e){return function(){return e}}const wU=Math.abs,SU=Math.atan2,TU=Math.cos,_U=Math.max,BU=Math.min,LU=Math.sin,EU=Math.sqrt,TC=1e-12,Dm=Math.PI,_C=Dm/2,FU=2*Dm;function AU(e){return e>1?0:e<-1?Dm:Math.acos(e)}function MU(e){return e>=1?_C:e<=-1?-_C:Math.asin(e)}function b$(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 k$(t)}function v$(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rv(e){this._context=e}rv.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 Al(e){return new rv(e)}function w$(e){return e[0]}function S$(e){return e[1]}function T$(e,t){var r=wa(!0),i=null,n=Al,a=null,s=b$(c);e=typeof e=="function"?e:e===void 0?w$:wa(e),t=typeof t=="function"?t:t===void 0?S$:wa(t);function c(h){var u,f=(h=v$(h)).length,p,m=!1,g;for(i==null&&(a=n(g=s())),u=0;u<=f;++u)!(u<f&&r(p=h[u],u,h))===m&&((m=!m)?a.lineStart():a.lineEnd()),m&&a.point(+e(p,u,h),+t(p,u,h));if(g)return a=null,g+""||null}return c.x=function(h){return arguments.length?(e=typeof h=="function"?h:wa(+h),c):e},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:wa(+h),c):t},c.defined=function(h){return arguments.length?(r=typeof h=="function"?h:wa(!!h),c):r},c.curve=function(h){return arguments.length?(n=h,i!=null&&(a=n(i)),c):n},c.context=function(h){return arguments.length?(h==null?i=a=null:a=n(i=h),c):i},c}class iv{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 nv(e){return new iv(e,!0)}function ov(e){return new iv(e,!1)}function ro(){}function mu(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 Qu(e){this._context=e}Qu.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:mu(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:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mg(e){return new Qu(e)}function av(e){this._context=e}av.prototype={areaStart:ro,areaEnd:ro,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:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _$(e){return new av(e)}function sv(e){this._context=e}sv.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:mu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function B$(e){return new sv(e)}function lv(e,t){this._basis=new Qu(e),this._beta=t}lv.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,s=t[r]-n,c=-1,h;++c<=r;)h=c/r,this._basis.point(this._beta*e[c]+(1-this._beta)*(i+h*a),this._beta*t[c]+(1-this._beta)*(n+h*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const L$=(function e(t){function r(i){return t===1?new Qu(i):new lv(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function yu(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 Rm(e,t){this._context=e,this._k=(1-t)/6}Rm.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:yu(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:yu(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 cv=(function e(t){function r(i){return new Rm(i,t)}return r.tension=function(i){return e(+i)},r})(0);function $m(e,t){this._context=e,this._k=(1-t)/6}$m.prototype={areaStart:ro,areaEnd:ro,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:yu(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 E$=(function e(t){function r(i){return new $m(i,t)}return r.tension=function(i){return e(+i)},r})(0);function zm(e,t){this._context=e,this._k=(1-t)/6}zm.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:yu(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 F$=(function e(t){function r(i){return new zm(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Nm(e,t,r){var i=e._x1,n=e._y1,a=e._x2,s=e._y2;if(e._l01_a>TC){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>TC){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/f,s=(s*u+e._y1*e._l23_2a-r*e._l12_2a)/f}e._context.bezierCurveTo(i,n,a,s,e._x2,e._y2)}function hv(e,t){this._context=e,this._alpha=t}hv.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:Nm(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 uv=(function e(t){function r(i){return t?new hv(i,t):new Rm(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function fv(e,t){this._context=e,this._alpha=t}fv.prototype={areaStart:ro,areaEnd:ro,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:Nm(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 A$=(function e(t){function r(i){return t?new fv(i,t):new $m(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function dv(e,t){this._context=e,this._alpha=t}dv.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:Nm(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 M$=(function e(t){function r(i){return t?new dv(i,t):new zm(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function pv(e){this._context=e}pv.prototype={areaStart:ro,areaEnd:ro,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 I$(e){return new pv(e)}function BC(e){return e<0?-1:1}function LC(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),s=(r-e._y1)/(n||i<0&&-0),c=(a*n+s*i)/(i+n);return(BC(a)+BC(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(c))||0}function EC(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function _p(e,t,r){var i=e._x0,n=e._y0,a=e._x1,s=e._y1,c=(a-i)/3;e._context.bezierCurveTo(i+c,n+c*t,a-c,s-c*r,a,s)}function xu(e){this._context=e}xu.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:_p(this,this._t0,EC(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,_p(this,EC(this,r=LC(this,e,t)),r);break;default:_p(this,this._t0,r=LC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function gv(e){this._context=new mv(e)}(gv.prototype=Object.create(xu.prototype)).point=function(e,t){xu.prototype.point.call(this,t,e)};function mv(e){this._context=e}mv.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function yv(e){return new xu(e)}function xv(e){return new gv(e)}function Cv(e){this._context=e}Cv.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=FC(e),n=FC(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function FC(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),s=new Array(r);for(n[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,s[t]-=i*s[t-1];for(n[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(s[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function kv(e){return new Cv(e)}function Ku(e,t){this._context=e,this._t=t}Ku.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 Ku(e,.5)}function vv(e){return new Ku(e,0)}function wv(e){return new Ku(e,1)}function Cl(e,t,r){this.k=e,this.x=t,this.y=r}Cl.prototype={constructor:Cl,scale:function(e){return e===1?this:new Cl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Cl(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+")"}};Cl.prototype;var P$=v(e=>{var n;const{securityLevel:t}=ce();let r=Qt("body");if(t==="sandbox"){const s=((n=Qt(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=Qt(s.body)}return r.select(`#${e}`)},"selectSvgElement");function jm(e){return typeof e>"u"||e===null}v(jm,"isNothing");function Sv(e){return typeof e=="object"&&e!==null}v(Sv,"isObject");function Tv(e){return Array.isArray(e)?e:jm(e)?[]:[e]}v(Tv,"toArray");function _v(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}v(_v,"extend");function Bv(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}v(Bv,"repeat");function Lv(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}v(Lv,"isNegativeZero");var O$=jm,D$=Sv,R$=Tv,$$=Bv,z$=Lv,N$=_v,We={isNothing:O$,isObject:D$,toArray:R$,repeat:$$,isNegativeZero:z$,extend:N$};function qm(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(qm,"formatError");function es(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=qm(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}v(es,"YAMLException$1");es.prototype=Object.create(Error.prototype);es.prototype.constructor=es;es.prototype.toString=v(function(t){return this.name+": "+qm(this,t)},"toString");var Pr=es;function Gh(e,t,r,i,n){var a="",s="",c=Math.floor(n/2)-1;return i-t>c&&(a=" ... ",t=i-c+a.length),r-i>c&&(s=" ...",r=i+c-s.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+s,pos:i-t+a.length}}v(Gh,"getLine");function Xh(e,t){return We.repeat(" ",t-e.length)+e}v(Xh,"padStart");function Ev(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,s=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var c="",h,u,f=Math.min(e.line+t.linesAfter,n.length).toString().length,p=t.maxLength-(t.indent+f+3);for(h=1;h<=t.linesBefore&&!(s-h<0);h++)u=Gh(e.buffer,i[s-h],n[s-h],e.position-(i[s]-i[s-h]),p),c=We.repeat(" ",t.indent)+Xh((e.line-h+1).toString(),f)+" | "+u.str+`
193
+ `+c;for(u=Gh(e.buffer,i[s],n[s],e.position,p),c+=We.repeat(" ",t.indent)+Xh((e.line+1).toString(),f)+" | "+u.str+`
194
+ `,c+=We.repeat("-",t.indent+f+3+u.pos)+`^
195
+ `,h=1;h<=t.linesAfter&&!(s+h>=n.length);h++)u=Gh(e.buffer,i[s+h],n[s+h],e.position-(i[s]-i[s+h]),p),c+=We.repeat(" ",t.indent)+Xh((e.line+h+1).toString(),f)+" | "+u.str+`
196
+ `;return c.replace(/\n$/,"")}v(Ev,"makeSnippet");var j$=Ev,q$=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],W$=["scalar","sequence","mapping"];function Fv(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}v(Fv,"compileStyleAliases");function Av(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(q$.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=Fv(t.styleAliases||null),W$.indexOf(this.kind)===-1)throw new Pr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}v(Av,"Type$1");var ur=Av;function yg(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}v(yg,"compileList");function Mv(){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(Mv,"compileMap");function Cu(e){return this.extend(e)}v(Cu,"Schema$1");Cu.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(a){if(!(a instanceof ur))throw new Pr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.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(a.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(a){if(!(a instanceof ur))throw new Pr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Cu.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=yg(n,"implicit"),n.compiledExplicit=yg(n,"explicit"),n.compiledTypeMap=Mv(n.compiledImplicit,n.compiledExplicit),n},"extend");var H$=Cu,U$=new ur("tag:yaml.org,2002:str",{kind:"scalar",construct:v(function(e){return e!==null?e:""},"construct")}),V$=new ur("tag:yaml.org,2002:seq",{kind:"sequence",construct:v(function(e){return e!==null?e:[]},"construct")}),Y$=new ur("tag:yaml.org,2002:map",{kind:"mapping",construct:v(function(e){return e!==null?e:{}},"construct")}),G$=new H$({explicit:[U$,V$,Y$]});function Iv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}v(Iv,"resolveYamlNull");function Pv(){return null}v(Pv,"constructYamlNull");function Ov(e){return e===null}v(Ov,"isNull");var X$=new ur("tag:yaml.org,2002:null",{kind:"scalar",resolve:Iv,construct:Pv,predicate:Ov,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 Dv(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(Dv,"resolveYamlBoolean");function Rv(e){return e==="true"||e==="True"||e==="TRUE"}v(Rv,"constructYamlBoolean");function $v(e){return Object.prototype.toString.call(e)==="[object Boolean]"}v($v,"isBoolean");var Q$=new ur("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Dv,construct:Rv,predicate:$v,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 zv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}v(zv,"isHexCode");function Nv(e){return 48<=e&&e<=55}v(Nv,"isOctCode");function jv(e){return 48<=e&&e<=57}v(jv,"isDecCode");function qv(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(!zv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Nv(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!jv(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}v(qv,"resolveYamlInteger");function Wv(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(Wv,"constructYamlInteger");function Hv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!We.isNegativeZero(e)}v(Hv,"isInteger");var K$=new ur("tag:yaml.org,2002:int",{kind:"scalar",resolve:qv,construct:Wv,predicate:Hv,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"]}}),Z$=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Uv(e){return!(e===null||!Z$.test(e)||e[e.length-1]==="_")}v(Uv,"resolveYamlFloat");function Vv(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(Vv,"constructYamlFloat");var J$=/^[-+]?[0-9]+e/;function Yv(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(We.isNegativeZero(e))return"-0.0";return r=e.toString(10),J$.test(r)?r.replace("e",".e"):r}v(Yv,"representYamlFloat");function Gv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||We.isNegativeZero(e))}v(Gv,"isFloat");var t6=new ur("tag:yaml.org,2002:float",{kind:"scalar",resolve:Uv,construct:Vv,predicate:Gv,represent:Yv,defaultStyle:"lowercase"}),Xv=G$.extend({implicit:[X$,Q$,K$,t6]}),e6=Xv,Qv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Kv=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 Zv(e){return e===null?!1:Qv.exec(e)!==null||Kv.exec(e)!==null}v(Zv,"resolveYamlTimestamp");function Jv(e){var t,r,i,n,a,s,c,h=0,u=null,f,p,m;if(t=Qv.exec(e),t===null&&(t=Kv.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],s=+t[5],c=+t[6],t[7]){for(h=t[7].slice(0,3);h.length<3;)h+="0";h=+h}return t[9]&&(f=+t[10],p=+(t[11]||0),u=(f*60+p)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,i,n,a,s,c,h)),u&&m.setTime(m.getTime()-u),m}v(Jv,"constructYamlTimestamp");function tw(e){return e.toISOString()}v(tw,"representYamlTimestamp");var r6=new ur("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zv,construct:Jv,instanceOf:Date,represent:tw});function ew(e){return e==="<<"||e===null}v(ew,"resolveYamlMerge");var i6=new ur("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ew}),Wm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
197
+ \r`;function rw(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=Wm;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}v(rw,"resolveYamlBinary");function iw(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=Wm,s=0,c=[];for(t=0;t<n;t++)t%4===0&&t&&(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)),s=s<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)):r===18?(c.push(s>>10&255),c.push(s>>2&255)):r===12&&c.push(s>>4&255),new Uint8Array(c)}v(iw,"constructYamlBinary");function nw(e){var t="",r=0,i,n,a=e.length,s=Wm;for(i=0;i<a;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}v(nw,"representYamlBinary");function ow(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}v(ow,"isBinary");var n6=new ur("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rw,construct:iw,predicate:ow,represent:nw}),o6=Object.prototype.hasOwnProperty,a6=Object.prototype.toString;function aw(e){if(e===null)return!0;var t=[],r,i,n,a,s,c=e;for(r=0,i=c.length;r<i;r+=1){if(n=c[r],s=!1,a6.call(n)!=="[object Object]")return!1;for(a in n)if(o6.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}v(aw,"resolveYamlOmap");function sw(e){return e!==null?e:[]}v(sw,"constructYamlOmap");var s6=new ur("tag:yaml.org,2002:omap",{kind:"sequence",resolve:aw,construct:sw}),l6=Object.prototype.toString;function lw(e){if(e===null)return!0;var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],l6.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}v(lw,"resolveYamlPairs");function cw(e){if(e===null)return[];var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}v(cw,"constructYamlPairs");var c6=new ur("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lw,construct:cw}),h6=Object.prototype.hasOwnProperty;function hw(e){if(e===null)return!0;var t,r=e;for(t in r)if(h6.call(r,t)&&r[t]!==null)return!1;return!0}v(hw,"resolveYamlSet");function uw(e){return e!==null?e:{}}v(uw,"constructYamlSet");var u6=new ur("tag:yaml.org,2002:set",{kind:"mapping",resolve:hw,construct:uw}),fw=e6.extend({implicit:[r6,i6],explicit:[n6,s6,c6,u6]}),io=Object.prototype.hasOwnProperty,ku=1,dw=2,pw=3,bu=4,Bp=1,f6=2,AC=3,d6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p6=/[\x85\u2028\u2029]/,g6=/[,\[\]\{\}]/,gw=/^(?:!|!!|![a-z\-]+!)$/i,mw=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xg(e){return Object.prototype.toString.call(e)}v(xg,"_class");function Ei(e){return e===10||e===13}v(Ei,"is_EOL");function eo(e){return e===9||e===32}v(eo,"is_WHITE_SPACE");function Cr(e){return e===9||e===32||e===10||e===13}v(Cr,"is_WS_OR_EOL");function Mo(e){return e===44||e===91||e===93||e===123||e===125}v(Mo,"is_FLOW_INDICATOR");function yw(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}v(yw,"fromHexCode");function xw(e){return e===120?2:e===117?4:e===85?8:0}v(xw,"escapedHexLen");function Cw(e){return 48<=e&&e<=57?e-48:-1}v(Cw,"fromDecimalCode");function Cg(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(Cg,"simpleEscapeSequence");function kw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}v(kw,"charFromCodepoint");function Hm(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}v(Hm,"setProperty");var bw=new Array(256),vw=new Array(256);for(To=0;To<256;To++)bw[To]=Cg(To)?1:0,vw[To]=Cg(To);var To;function ww(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fw,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(ww,"State$1");function Um(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=j$(r),new Pr(t,r)}v(Um,"generateError");function Mt(e,t){throw Um(e,t)}v(Mt,"throwError");function jl(e,t){e.onWarning&&e.onWarning.call(null,Um(e,t))}v(jl,"throwWarning");var MC={YAML:v(function(t,r,i){var n,a,s;t.version!==null&&Mt(t,"duplication of %YAML directive"),i.length!==1&&Mt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Mt(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&Mt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&jl(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:v(function(t,r,i){var n,a;i.length!==2&&Mt(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],gw.test(n)||Mt(t,"ill-formed tag handle (first argument) of the TAG directive"),io.call(t.tagMap,n)&&Mt(t,'there is a previously declared suffix for "'+n+'" tag handle'),mw.test(a)||Mt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Mt(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function mn(e,t,r,i){var n,a,s,c;if(t<r){if(c=e.input.slice(t,r),i)for(n=0,a=c.length;n<a;n+=1)s=c.charCodeAt(n),s===9||32<=s&&s<=1114111||Mt(e,"expected valid JSON character");else d6.test(c)&&Mt(e,"the stream contains non-printable characters");e.result+=c}}v(mn,"captureSegment");function kg(e,t,r,i){var n,a,s,c;for(We.isObject(r)||Mt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,c=n.length;s<c;s+=1)a=n[s],io.call(t,a)||(Hm(t,a,r[a]),i[a]=!0)}v(kg,"mergeMappings");function Io(e,t,r,i,n,a,s,c,h){var u,f;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,f=n.length;u<f;u+=1)Array.isArray(n[u])&&Mt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&xg(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&xg(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,f=a.length;u<f;u+=1)kg(e,t,a[u],r);else kg(e,t,a,r);else!e.json&&!io.call(r,n)&&io.call(t,n)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=h||e.position,Mt(e,"duplicated mapping key")),Hm(t,n,a),delete r[n];return t}v(Io,"storeMappingPair");function Zu(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++):Mt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}v(Zu,"readLineBreak");function Pe(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;eo(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(Zu(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&&jl(e,"deficient indentation"),i}v(Pe,"skipSeparationSpace");function nc(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(nc,"testDocumentSeparator");function Ju(e,t){t===1?e.result+=" ":t>1&&(e.result+=We.repeat(`
199
+ `,t-1))}v(Ju,"writeFoldedLines");function Sw(e,t,r){var i,n,a,s,c,h,u,f,p=e.kind,m=e.result,g;if(g=e.input.charCodeAt(e.position),Cr(g)||Mo(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&&Mo(n)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,c=!1;g!==0;){if(g===58){if(n=e.input.charCodeAt(e.position+1),Cr(n)||r&&Mo(n))break}else if(g===35){if(i=e.input.charCodeAt(e.position-1),Cr(i))break}else{if(e.position===e.lineStart&&nc(e)||r&&Mo(g))break;if(Ei(g))if(h=e.line,u=e.lineStart,f=e.lineIndent,Pe(e,!1,-1),e.lineIndent>=t){c=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=h,e.lineStart=u,e.lineIndent=f;break}}c&&(mn(e,a,s,!1),Ju(e,e.line-h),a=s=e.position,c=!1),eo(g)||(s=e.position+1),g=e.input.charCodeAt(++e.position)}return mn(e,a,s,!1),e.result?!0:(e.kind=p,e.result=m,!1)}v(Sw,"readPlainScalar");function Tw(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(mn(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)?(mn(e,i,n,!0),Ju(e,Pe(e,!1,t)),i=n=e.position):e.position===e.lineStart&&nc(e)?Mt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Mt(e,"unexpected end of the stream within a single quoted scalar")}v(Tw,"readSingleQuotedScalar");function _w(e,t){var r,i,n,a,s,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 mn(e,r,e.position,!0),e.position++,!0;if(c===92){if(mn(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+=vw[c],e.position++;else if((s=xw(c))>0){for(n=s,a=0;n>0;n--)c=e.input.charCodeAt(++e.position),(s=yw(c))>=0?a=(a<<4)+s:Mt(e,"expected hexadecimal character");e.result+=kw(a),e.position++}else Mt(e,"unknown escape sequence");r=i=e.position}else Ei(c)?(mn(e,r,i,!0),Ju(e,Pe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&nc(e)?Mt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Mt(e,"unexpected end of the stream within a double quoted scalar")}v(_w,"readDoubleQuotedScalar");function Bw(e,t){var r=!0,i,n,a,s=e.tag,c,h=e.anchor,u,f,p,m,g,x=Object.create(null),C,k,S,T;if(T=e.input.charCodeAt(e.position),T===91)f=93,g=!1,c=[];else if(T===123)f=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===f)return e.position++,e.tag=s,e.anchor=h,e.kind=g?"mapping":"sequence",e.result=c,!0;r?T===44&&Mt(e,"expected the node content, but found ','"):Mt(e,"missed comma between flow collection entries"),k=C=S=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,a=e.position,No(e,t,ku,!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),No(e,t,ku,!1,!0),S=e.result),g?Io(e,c,x,k,C,S,i,n,a):p?c.push(Io(e,null,x,k,C,S,i,n,a)):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}Mt(e,"unexpected end of the stream within a flow collection")}v(Bw,"readFlowCollection");function Lw(e,t){var r,i,n=Bp,a=!1,s=!1,c=t,h=0,u=!1,f,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)Bp===n?n=p===43?AC:f6:Mt(e,"repeat of a chomping mode identifier");else if((f=Cw(p))>=0)f===0?Mt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Mt(e,"repeat of an indentation width identifier"):(c=t+f-1,s=!0);else break;if(eo(p)){do p=e.input.charCodeAt(++e.position);while(eo(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Ei(p)&&p!==0)}for(;p!==0;){for(Zu(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),Ei(p)){h++;continue}if(e.lineIndent<c){n===AC?e.result+=We.repeat(`
200
+ `,a?1+h:h):n===Bp&&a&&(e.result+=`
201
+ `);break}for(i?eo(p)?(u=!0,e.result+=We.repeat(`
202
+ `,a?1+h:h)):u?(u=!1,e.result+=We.repeat(`
203
+ `,h+1)):h===0?a&&(e.result+=" "):e.result+=We.repeat(`
204
+ `,h):e.result+=We.repeat(`
205
+ `,a?1+h:h),a=!0,s=!0,h=0,r=e.position;!Ei(p)&&p!==0;)p=e.input.charCodeAt(++e.position);mn(e,r,e.position,!1)}return!0}v(Lw,"readBlockScalar");function bg(e,t){var r,i=e.tag,n=e.anchor,a=[],s,c=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),h=e.input.charCodeAt(e.position);h!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Mt(e,"tab characters must not be used in indentation")),!(h!==45||(s=e.input.charCodeAt(e.position+1),!Cr(s))));){if(c=!0,e.position++,Pe(e,!0,-1)&&e.lineIndent<=t){a.push(null),h=e.input.charCodeAt(e.position);continue}if(r=e.line,No(e,t,pw,!1,!0),a.push(e.result),Pe(e,!0,-1),h=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&h!==0)Mt(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=a,!0):!1}v(bg,"readBlockSequence");function Ew(e,t,r){var i,n,a,s,c,h,u=e.tag,f=e.anchor,p={},m=Object.create(null),g=null,x=null,C=null,k=!1,S=!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,Mt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(T===63||T===58)&&Cr(i))T===63?(k&&(Io(e,p,m,g,x,null,s,c,h),g=x=C=null),S=!0,k=!0,n=!0):k?(k=!1,n=!0):Mt(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(s=e.line,c=e.lineStart,h=e.position,!No(e,r,dw,!1,!0))break;if(e.line===a){for(T=e.input.charCodeAt(e.position);eo(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Cr(T)||Mt(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Io(e,p,m,g,x,null,s,c,h),g=x=C=null),S=!0,k=!1,n=!1,g=e.tag,x=e.result;else if(S)Mt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(S)Mt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===a||e.lineIndent>t)&&(k&&(s=e.line,c=e.lineStart,h=e.position),No(e,t,bu,!0,n)&&(k?x=e.result:C=e.result),k||(Io(e,p,m,g,x,C,s,c,h),g=x=C=null),Pe(e,!0,-1),T=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&T!==0)Mt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&Io(e,p,m,g,x,null,s,c,h),S&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=p),S}v(Ew,"readBlockMapping");function Fw(e){var t,r=!1,i=!1,n,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Mt(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Mt(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Cr(s);)s===33&&(i?Mt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),gw.test(n)||Mt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),g6.test(a)&&Mt(e,"tag suffix cannot contain flow indicator characters")}a&&!mw.test(a)&&Mt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Mt(e,"tag name is malformed: "+a)}return r?e.tag=a:io.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:Mt(e,'undeclared tag handle "'+n+'"'),!0}v(Fw,"readTagProperty");function Aw(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Mt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Cr(r)&&!Mo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Mt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}v(Aw,"readAnchorProperty");function Mw(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)&&!Mo(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Mt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),io.call(e.anchorMap,r)||Mt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Pe(e,!0,-1),!0}v(Mw,"readAlias");function No(e,t,r,i,n){var a,s,c,h=1,u=!1,f=!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,a=s=c=bu===r||pw===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(;Fw(e)||Aw(e);)Pe(e,!0,-1)?(u=!0,c=a,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):c=!1;if(c&&(c=u||n),(h===1||bu===r)&&(ku===r||dw===r?C=t:C=t+1,k=e.position-e.lineStart,h===1?c&&(bg(e,k)||Ew(e,k,C))||Bw(e,C)?f=!0:(s&&Lw(e,C)||Tw(e,C)||_w(e,C)?f=!0:Mw(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&Mt(e,"alias node should not have any properties")):Sw(e,C,ku===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):h===0&&(f=c&&bg(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"&&Mt(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(io.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||Mt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&Mt(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)):Mt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}v(No,"composeNode");function Iw(e){var t=e.position,r,i,n,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Pe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Cr(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&Mt(e,"directive name must not be less than one character in length");s!==0;){for(;eo(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Ei(s));break}if(Ei(s))break;for(r=e.position;s!==0&&!Cr(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&Zu(e),io.call(MC,i)?MC[i](e,i,n):jl(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)):a&&Mt(e,"directives end mark is expected"),No(e,e.lineIndent-1,bu,!1,!0),Pe(e,!0,-1),e.checkLineBreaks&&p6.test(e.input.slice(t,e.position))&&jl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&nc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Pe(e,!0,-1));return}if(e.position<e.length-1)Mt(e,"end of the stream or a document separator is expected");else return}v(Iw,"readDocument");function Vm(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 ww(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Mt(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;)Iw(r);return r.documents}v(Vm,"loadDocuments");function m6(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Vm(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}v(m6,"loadAll$1");function Pw(e,t){var r=Vm(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(Pw,"load$1");var y6=Pw,x6={load:y6},Ow=Object.prototype.toString,Dw=Object.prototype.hasOwnProperty,Ym=65279,C6=9,ql=10,k6=13,b6=32,v6=33,w6=34,vg=35,S6=37,T6=38,_6=39,B6=42,Rw=44,L6=45,vu=58,E6=61,F6=62,A6=63,M6=64,$w=91,zw=93,I6=96,Nw=123,P6=124,jw=125,dr={};dr[0]="\\0";dr[7]="\\a";dr[8]="\\b";dr[9]="\\t";dr[10]="\\n";dr[11]="\\v";dr[12]="\\f";dr[13]="\\r";dr[27]="\\e";dr[34]='\\"';dr[92]="\\\\";dr[133]="\\N";dr[160]="\\_";dr[8232]="\\L";dr[8233]="\\P";var O6=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],D6=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qw(e,t){var r,i,n,a,s,c,h;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)s=i[n],c=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),h=e.compiledTypeMap.fallback[s],h&&Dw.call(h.styleAliases,c)&&(c=h.styleAliases[c]),r[s]=c;return r}v(qw,"compileStyleMap");function Ww(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+We.repeat("0",i-t.length)+t}v(Ww,"encodeHex");var R6=1,Wl=2;function Hw(e){this.schema=e.schema||fw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=We.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=qw(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==='"'?Wl:R6,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(Hw,"State");function wg(e,t){for(var r=We.repeat(" ",t),i=0,n=-1,a="",s,c=e.length;i<c;)n=e.indexOf(`
207
+ `,i),n===-1?(s=e.slice(i),i=c):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
208
+ `&&(a+=r),a+=s;return a}v(wg,"indentString");function wu(e,t){return`
209
+ `+We.repeat(" ",e.indent*t)}v(wu,"generateNextLine");function Uw(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(Uw,"testImplicitResolving");function Hl(e){return e===b6||e===C6}v(Hl,"isWhitespace");function rs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ym||65536<=e&&e<=1114111}v(rs,"isPrintable");function Sg(e){return rs(e)&&e!==Ym&&e!==k6&&e!==ql}v(Sg,"isNsCharOrWhitespace");function Tg(e,t,r){var i=Sg(e),n=i&&!Hl(e);return(r?i:i&&e!==Rw&&e!==$w&&e!==zw&&e!==Nw&&e!==jw)&&e!==vg&&!(t===vu&&!n)||Sg(t)&&!Hl(t)&&e===vg||t===vu&&n}v(Tg,"isPlainSafe");function Vw(e){return rs(e)&&e!==Ym&&!Hl(e)&&e!==L6&&e!==A6&&e!==vu&&e!==Rw&&e!==$w&&e!==zw&&e!==Nw&&e!==jw&&e!==vg&&e!==T6&&e!==B6&&e!==v6&&e!==P6&&e!==E6&&e!==F6&&e!==_6&&e!==w6&&e!==S6&&e!==M6&&e!==I6}v(Vw,"isPlainSafeFirst");function Yw(e){return!Hl(e)&&e!==vu}v(Yw,"isPlainSafeLast");function Aa(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(Aa,"codePointAt");function Gm(e){var t=/^\n* /;return t.test(e)}v(Gm,"needIndentIndicator");var Gw=1,_g=2,Xw=3,Qw=4,Ba=5;function Kw(e,t,r,i,n,a,s,c){var h,u=0,f=null,p=!1,m=!1,g=i!==-1,x=-1,C=Vw(Aa(e,0))&&Yw(Aa(e,e.length-1));if(t||s)for(h=0;h<e.length;u>=65536?h+=2:h++){if(u=Aa(e,h),!rs(u))return Ba;C=C&&Tg(u,f,c),f=u}else{for(h=0;h<e.length;u>=65536?h+=2:h++){if(u=Aa(e,h),u===ql)p=!0,g&&(m=m||h-x-1>i&&e[x+1]!==" ",x=h);else if(!rs(u))return Ba;C=C&&Tg(u,f,c),f=u}m=m||g&&h-x-1>i&&e[x+1]!==" "}return!p&&!m?C&&!s&&!n(e)?Gw:a===Wl?Ba:_g:r>9&&Gm(e)?Ba:s?a===Wl?Ba:_g:m?Qw:Xw}v(Kw,"chooseScalarStyle");function Zw(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===Wl?'""':"''";if(!e.noCompatMode&&(O6.indexOf(t)!==-1||D6.test(t)))return e.quotingType===Wl?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&r>=e.flowLevel;function h(u){return Uw(e,u)}switch(v(h,"testAmbiguity"),Kw(t,c,e.indent,s,h,e.quotingType,e.forceQuotes&&!i,n)){case Gw:return t;case _g:return"'"+t.replace(/'/g,"''")+"'";case Xw:return"|"+Bg(t,e.indent)+Lg(wg(t,a));case Qw:return">"+Bg(t,e.indent)+Lg(wg(Jw(t,s),a));case Ba:return'"'+tS(t)+'"';default:throw new Pr("impossible error: invalid scalar style")}})()}v(Zw,"writeScalar");function Bg(e,t){var r=Gm(e)?String(t):"",i=e[e.length-1]===`
210
+ `,n=i&&(e[e.length-2]===`
211
+ `||e===`
212
+ `),a=n?"+":i?"":"-";return r+a+`
213
+ `}v(Bg,"blockHeader");function Lg(e){return e[e.length-1]===`
214
+ `?e.slice(0,-1):e}v(Lg,"dropEndingNewline");function Jw(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,Eg(e.slice(0,u),t)})(),n=e[0]===`
216
+ `||e[0]===" ",a,s;s=r.exec(e);){var c=s[1],h=s[2];a=h[0]===" ",i+=c+(!n&&!a&&h!==""?`
217
+ `:"")+Eg(h,t),n=a}return i}v(Jw,"foldString");function Eg(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,s=0,c=0,h="";i=r.exec(e);)c=i.index,c-n>t&&(a=s>n?s:c,h+=`
218
+ `+e.slice(n,a),n=a+1),s=c;return h+=`
219
+ `,e.length-n>t&&s>n?h+=e.slice(n,s)+`
220
+ `+e.slice(s+1):h+=e.slice(n),h.slice(1)}v(Eg,"foldLine");function tS(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=Aa(e,n),i=dr[r],!i&&rs(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Ww(r);return t}v(tS,"escapeString");function eS(e,t,r){var i="",n=e.tag,a,s,c;for(a=0,s=r.length;a<s;a+=1)c=r[a],e.replacer&&(c=e.replacer.call(r,String(a),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(eS,"writeFlowSequence");function Fg(e,t,r,i){var n="",a=e.tag,s,c,h;for(s=0,c=r.length;s<c;s+=1)h=r[s],e.replacer&&(h=e.replacer.call(r,String(s),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+=wu(e,t)),e.dump&&ql===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}v(Fg,"writeBlockSequence");function rS(e,t,r){var i="",n=e.tag,a=Object.keys(r),s,c,h,u,f;for(s=0,c=a.length;s<c;s+=1)f="",i!==""&&(f+=", "),e.condenseFlow&&(f+='"'),h=a[s],u=r[h],e.replacer&&(u=e.replacer.call(r,h,u)),Gi(e,t,h,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Gi(e,t,u,!1,!1)&&(f+=e.dump,i+=f));e.tag=n,e.dump="{"+i+"}"}v(rS,"writeFlowMapping");function iS(e,t,r,i){var n="",a=e.tag,s=Object.keys(r),c,h,u,f,p,m;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Pr("sortKeys must be a boolean or a function");for(c=0,h=s.length;c<h;c+=1)m="",(!i||n!=="")&&(m+=wu(e,t)),u=s[c],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),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+=wu(e,t)),Gi(e,t+1,f,!0,p)&&(e.dump&&ql===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,n+=m));e.tag=a,e.dump=n||"{}"}v(iS,"writeBlockMapping");function Ag(e,t,r){var i,n,a,s,c,h;for(n=r?e.explicitTypes:e.implicitTypes,a=0,s=n.length;a<s;a+=1)if(c=n[a],(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,Ow.call(c.represent)==="[object Function]")i=c.represent(t,h);else if(Dw.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(Ag,"detectType");function Gi(e,t,r,i,n,a,s){e.tag=null,e.dump=r,Ag(e,r,!1)||Ag(e,r,!0);var c=Ow.call(e.dump),h=i,u;i&&(i=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",p,m;if(f&&(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(f&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),c==="[object Object]")i&&Object.keys(e.dump).length!==0?(iS(e,t,e.dump,n),m&&(e.dump="&ref_"+p+e.dump)):(rS(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Fg(e,t-1,e.dump,n):Fg(e,t,e.dump,n),m&&(e.dump="&ref_"+p+e.dump)):(eS(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&Zw(e,e.dump,t,a,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 nS(e,t){var r=[],i=[],n,a;for(Su(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}v(nS,"getDuplicateReferences");function Su(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)Su(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)Su(e[i[n]],t,r)}v(Su,"inspectNode");function $6(e,t){t=t||{};var r=new Hw(t);r.noRefs||nS(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Gi(r,0,i,!0,!0)?r.dump+`
221
+ `:""}v($6,"dump$1");function z6(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(z6,"renamed");var N6=Xv,j6=x6.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 cl=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},IC={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function kl(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,a]=[t.x,t.y],s=n-r,c=a-i;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}v(kl,"calculateDeltaAndAngle");var we=v(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),q6=v(e=>({x:v(function(t,r,i){let n=0;const a=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}=kl(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}=kl(i[i.length-1],i[i.length-2]);n=cr[e.arrowTypeEnd]*Math.cos(g)*(x>=0?1:-1)}const s=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),f=cr[e.arrowTypeStart],p=cr[e.arrowTypeEnd],m=1;if(s<p&&s>0&&c<p){let g=p+m-s;g*=a==="right"?-1:1,n-=g}if(h<f&&h>0&&u<f){let g=f+m-h;g*=a==="right"?-1:1,n+=g}return we(t).x+n},"x"),y:v(function(t,r,i){let n=0;const a=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}=kl(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}=kl(i[i.length-1],i[i.length-2]);n=cr[e.arrowTypeEnd]*Math.abs(Math.sin(g))*(x>=0?1:-1)}const s=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),f=cr[e.arrowTypeStart],p=cr[e.arrowTypeEnd],m=1;if(s<p&&s>0&&c<p){let g=p+m-s;g*=a==="up"?-1:1,n-=g}if(h<f&&h>0&&u<f){let g=f+m-h;g*=a==="up"?-1:1,n+=g}return we(t).y+n},"y")}),"getLineFunctionsWithOffset"),Eh={},je={},PC;function W6(){return PC||(PC=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=/^.+(:|&colon;)/gim,je.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,je.relativeFirstCharacters=[".","/"],je.BLANK_URL="about:blank"),je}var OC;function H6(){if(OC)return Eh;OC=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.sanitizeUrl=a;var e=W6();function t(s){return e.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var c=s.replace(e.ctrlCharactersRegex,"");return c.replace(e.htmlEntitiesRegex,function(h,u){return String.fromCharCode(u)})}function i(s){return URL.canParse(s)}function n(s){try{return decodeURIComponent(s)}catch{return s}}function a(s){if(!s)return e.BLANK_URL;var c,h=n(s.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 f=u.trimStart(),p=f.match(e.urlSchemeRegex);if(!p)return u;var m=p[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(m))return e.BLANK_URL;var g=f.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 Eh}var U6=H6(),oS=typeof global=="object"&&global&&global.Object===Object&&global,V6=typeof self=="object"&&self&&self.Object===Object&&self,Ji=oS||V6||Function("return this")(),Tu=Ji.Symbol,aS=Object.prototype,Y6=aS.hasOwnProperty,G6=aS.toString,hl=Tu?Tu.toStringTag:void 0;function X6(e){var t=Y6.call(e,hl),r=e[hl];try{e[hl]=void 0;var i=!0}catch{}var n=G6.call(e);return i&&(t?e[hl]=r:delete e[hl]),n}var Q6=Object.prototype,K6=Q6.toString;function Z6(e){return K6.call(e)}var J6="[object Null]",tz="[object Undefined]",DC=Tu?Tu.toStringTag:void 0;function ss(e){return e==null?e===void 0?tz:J6:DC&&DC in Object(e)?X6(e):Z6(e)}function Vo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ez="[object AsyncFunction]",rz="[object Function]",iz="[object GeneratorFunction]",nz="[object Proxy]";function Xm(e){if(!Vo(e))return!1;var t=ss(e);return t==rz||t==iz||t==ez||t==nz}var Lp=Ji["__core-js_shared__"],RC=(function(){var e=/[^.]+$/.exec(Lp&&Lp.keys&&Lp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function oz(e){return!!RC&&RC in e}var az=Function.prototype,sz=az.toString;function Yo(e){if(e!=null){try{return sz.call(e)}catch{}try{return e+""}catch{}}return""}var lz=/[\\^$.*+?()[\]{}|]/g,cz=/^\[object .+?Constructor\]$/,hz=Function.prototype,uz=Object.prototype,fz=hz.toString,dz=uz.hasOwnProperty,pz=RegExp("^"+fz.call(dz).replace(lz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gz(e){if(!Vo(e)||oz(e))return!1;var t=Xm(e)?pz:cz;return t.test(Yo(e))}function mz(e,t){return e==null?void 0:e[t]}function Go(e,t){var r=mz(e,t);return gz(r)?r:void 0}var Ul=Go(Object,"create");function yz(){this.__data__=Ul?Ul(null):{},this.size=0}function xz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Cz="__lodash_hash_undefined__",kz=Object.prototype,bz=kz.hasOwnProperty;function vz(e){var t=this.__data__;if(Ul){var r=t[e];return r===Cz?void 0:r}return bz.call(t,e)?t[e]:void 0}var wz=Object.prototype,Sz=wz.hasOwnProperty;function Tz(e){var t=this.__data__;return Ul?t[e]!==void 0:Sz.call(t,e)}var _z="__lodash_hash_undefined__";function Bz(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ul&&t===void 0?_z:t,this}function jo(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])}}jo.prototype.clear=yz;jo.prototype.delete=xz;jo.prototype.get=vz;jo.prototype.has=Tz;jo.prototype.set=Bz;function Lz(){this.__data__=[],this.size=0}function tf(e,t){return e===t||e!==e&&t!==t}function ef(e,t){for(var r=e.length;r--;)if(tf(e[r][0],t))return r;return-1}var Ez=Array.prototype,Fz=Ez.splice;function Az(e){var t=this.__data__,r=ef(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Fz.call(t,r,1),--this.size,!0}function Mz(e){var t=this.__data__,r=ef(t,e);return r<0?void 0:t[r][1]}function Iz(e){return ef(this.__data__,e)>-1}function Pz(e,t){var r=this.__data__,i=ef(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function bn(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])}}bn.prototype.clear=Lz;bn.prototype.delete=Az;bn.prototype.get=Mz;bn.prototype.has=Iz;bn.prototype.set=Pz;var Vl=Go(Ji,"Map");function Oz(){this.size=0,this.__data__={hash:new jo,map:new(Vl||bn),string:new jo}}function Dz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function rf(e,t){var r=e.__data__;return Dz(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Rz(e){var t=rf(this,e).delete(e);return this.size-=t?1:0,t}function $z(e){return rf(this,e).get(e)}function zz(e){return rf(this,e).has(e)}function Nz(e,t){var r=rf(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function so(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])}}so.prototype.clear=Oz;so.prototype.delete=Rz;so.prototype.get=$z;so.prototype.has=zz;so.prototype.set=Nz;var jz="Expected a function";function oc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jz);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var s=e.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(oc.Cache||so),r}oc.Cache=so;function qz(){this.__data__=new bn,this.size=0}function Wz(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Hz(e){return this.__data__.get(e)}function Uz(e){return this.__data__.has(e)}var Vz=200;function Yz(e,t){var r=this.__data__;if(r instanceof bn){var i=r.__data__;if(!Vl||i.length<Vz-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new so(i)}return r.set(e,t),this.size=r.size,this}function ls(e){var t=this.__data__=new bn(e);this.size=t.size}ls.prototype.clear=qz;ls.prototype.delete=Wz;ls.prototype.get=Hz;ls.prototype.has=Uz;ls.prototype.set=Yz;var _u=(function(){try{var e=Go(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Qm(e,t,r){t=="__proto__"&&_u?_u(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Mg(e,t,r){(r!==void 0&&!tf(e[t],r)||r===void 0&&!(t in e))&&Qm(e,t,r)}function Gz(e){return function(t,r,i){for(var n=-1,a=Object(t),s=i(t),c=s.length;c--;){var h=s[++n];if(r(a[h],h,a)===!1)break}return t}}var Xz=Gz(),sS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$C=sS&&typeof module=="object"&&module&&!module.nodeType&&module,Qz=$C&&$C.exports===sS,zC=Qz?Ji.Buffer:void 0,NC=zC?zC.allocUnsafe:void 0;function Kz(e,t){if(t)return e.slice();var r=e.length,i=NC?NC(r):new e.constructor(r);return e.copy(i),i}var jC=Ji.Uint8Array;function Zz(e){var t=new e.constructor(e.byteLength);return new jC(t).set(new jC(e)),t}function Jz(e,t){var r=t?Zz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function t8(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var qC=Object.create,e8=(function(){function e(){}return function(t){if(!Vo(t))return{};if(qC)return qC(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function lS(e,t){return function(r){return e(t(r))}}var cS=lS(Object.getPrototypeOf,Object),r8=Object.prototype;function nf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||r8;return e===r}function i8(e){return typeof e.constructor=="function"&&!nf(e)?e8(cS(e)):{}}function ac(e){return e!=null&&typeof e=="object"}var n8="[object Arguments]";function WC(e){return ac(e)&&ss(e)==n8}var hS=Object.prototype,o8=hS.hasOwnProperty,a8=hS.propertyIsEnumerable,Bu=WC((function(){return arguments})())?WC:function(e){return ac(e)&&o8.call(e,"callee")&&!a8.call(e,"callee")},Lu=Array.isArray,s8=9007199254740991;function uS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=s8}function of(e){return e!=null&&uS(e.length)&&!Xm(e)}function l8(e){return ac(e)&&of(e)}function c8(){return!1}var fS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,HC=fS&&typeof module=="object"&&module&&!module.nodeType&&module,h8=HC&&HC.exports===fS,UC=h8?Ji.Buffer:void 0,u8=UC?UC.isBuffer:void 0,Km=u8||c8,f8="[object Object]",d8=Function.prototype,p8=Object.prototype,dS=d8.toString,g8=p8.hasOwnProperty,m8=dS.call(Object);function y8(e){if(!ac(e)||ss(e)!=f8)return!1;var t=cS(e);if(t===null)return!0;var r=g8.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dS.call(r)==m8}var x8="[object Arguments]",C8="[object Array]",k8="[object Boolean]",b8="[object Date]",v8="[object Error]",w8="[object Function]",S8="[object Map]",T8="[object Number]",_8="[object Object]",B8="[object RegExp]",L8="[object Set]",E8="[object String]",F8="[object WeakMap]",A8="[object ArrayBuffer]",M8="[object DataView]",I8="[object Float32Array]",P8="[object Float64Array]",O8="[object Int8Array]",D8="[object Int16Array]",R8="[object Int32Array]",$8="[object Uint8Array]",z8="[object Uint8ClampedArray]",N8="[object Uint16Array]",j8="[object Uint32Array]",ke={};ke[I8]=ke[P8]=ke[O8]=ke[D8]=ke[R8]=ke[$8]=ke[z8]=ke[N8]=ke[j8]=!0;ke[x8]=ke[C8]=ke[A8]=ke[k8]=ke[M8]=ke[b8]=ke[v8]=ke[w8]=ke[S8]=ke[T8]=ke[_8]=ke[B8]=ke[L8]=ke[E8]=ke[F8]=!1;function q8(e){return ac(e)&&uS(e.length)&&!!ke[ss(e)]}function W8(e){return function(t){return e(t)}}var pS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ml=pS&&typeof module=="object"&&module&&!module.nodeType&&module,H8=Ml&&Ml.exports===pS,Ep=H8&&oS.process,VC=(function(){try{var e=Ml&&Ml.require&&Ml.require("util").types;return e||Ep&&Ep.binding&&Ep.binding("util")}catch{}})(),YC=VC&&VC.isTypedArray,Zm=YC?W8(YC):q8;function Ig(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var U8=Object.prototype,V8=U8.hasOwnProperty;function Y8(e,t,r){var i=e[t];(!(V8.call(e,t)&&tf(i,r))||r===void 0&&!(t in e))&&Qm(e,t,r)}function G8(e,t,r,i){var n=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var c=t[a],h=void 0;h===void 0&&(h=e[c]),n?Qm(r,c,h):Y8(r,c,h)}return r}function X8(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var Q8=9007199254740991,K8=/^(?:0|[1-9]\d*)$/;function gS(e,t){var r=typeof e;return t=t??Q8,!!t&&(r=="number"||r!="symbol"&&K8.test(e))&&e>-1&&e%1==0&&e<t}var Z8=Object.prototype,J8=Z8.hasOwnProperty;function tN(e,t){var r=Lu(e),i=!r&&Bu(e),n=!r&&!i&&Km(e),a=!r&&!i&&!n&&Zm(e),s=r||i||n||a,c=s?X8(e.length,String):[],h=c.length;for(var u in e)(t||J8.call(e,u))&&!(s&&(u=="length"||n&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||gS(u,h)))&&c.push(u);return c}function eN(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var rN=Object.prototype,iN=rN.hasOwnProperty;function nN(e){if(!Vo(e))return eN(e);var t=nf(e),r=[];for(var i in e)i=="constructor"&&(t||!iN.call(e,i))||r.push(i);return r}function mS(e){return of(e)?tN(e,!0):nN(e)}function oN(e){return G8(e,mS(e))}function aN(e,t,r,i,n,a,s){var c=Ig(e,r),h=Ig(t,r),u=s.get(h);if(u){Mg(e,r,u);return}var f=a?a(c,h,r+"",e,t,s):void 0,p=f===void 0;if(p){var m=Lu(h),g=!m&&Km(h),x=!m&&!g&&Zm(h);f=h,m||g||x?Lu(c)?f=c:l8(c)?f=t8(c):g?(p=!1,f=Kz(h,!0)):x?(p=!1,f=Jz(h,!0)):f=[]:y8(h)||Bu(h)?(f=c,Bu(c)?f=oN(c):(!Vo(c)||Xm(c))&&(f=i8(h))):p=!1}p&&(s.set(h,f),n(f,h,i,a,s),s.delete(h)),Mg(e,r,f)}function yS(e,t,r,i,n){e!==t&&Xz(t,function(a,s){if(n||(n=new ls),Vo(a))aN(e,t,s,r,yS,i,n);else{var c=i?i(Ig(e,s),a,s+"",e,t,n):void 0;c===void 0&&(c=a),Mg(e,s,c)}},mS)}function xS(e){return e}function sN(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 GC=Math.max;function lN(e,t,r){return t=GC(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=GC(i.length-t,0),s=Array(a);++n<a;)s[n]=i[t+n];n=-1;for(var c=Array(t+1);++n<t;)c[n]=i[n];return c[t]=r(s),sN(e,this,c)}}function cN(e){return function(){return e}}var hN=_u?function(e,t){return _u(e,"toString",{configurable:!0,enumerable:!1,value:cN(t),writable:!0})}:xS,uN=800,fN=16,dN=Date.now;function pN(e){var t=0,r=0;return function(){var i=dN(),n=fN-(i-r);if(r=i,n>0){if(++t>=uN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var gN=pN(hN);function mN(e,t){return gN(lN(e,t,xS),e+"")}function yN(e,t,r){if(!Vo(r))return!1;var i=typeof t;return(i=="number"?of(r)&&gS(t,r.length):i=="string"&&t in r)?tf(r[t],e):!1}function xN(e){return mN(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,s&&yN(r[0],r[1],s)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var c=r[i];c&&e(t,c,i,a)}return t})}var CN=xN(function(e,t,r){yS(e,t,r)}),kN="​",bN={curveBasis:mg,curveBasisClosed:_$,curveBasisOpen:B$,curveBumpX:nv,curveBumpY:ov,curveBundle:L$,curveCardinalClosed:E$,curveCardinalOpen:F$,curveCardinal:cv,curveCatmullRomClosed:A$,curveCatmullRomOpen:M$,curveCatmullRom:uv,curveLinear:Al,curveLinearClosed:I$,curveMonotoneX:yv,curveMonotoneY:xv,curveNatural:kv,curveStep:bv,curveStepAfter:wv,curveStepBefore:vv},vN=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wN=v(function(e,t){const r=CS(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(c=>c.args);ou(s),i=qe(i,[...s])}else i=r.args;if(!i)return;let n=wm(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),CS=v(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${vN.source})(?=[}][%]{2}).*
226
+ `,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),st.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const s=[];for(;(a=El.exec(e))!==null;)if(a.index===El.lastIndex&&El.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const c=a[1]?a[1]:a[2],h=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:c,args:h})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(n){return st.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),SN=v(function(e){return e.replace(El,"")},"removeDirectives"),TN=v(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Jm(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return bN[r]??t}v(Jm,"interpolateToCurve");function kS(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?U6.sanitizeUrl(r):r}v(kS,"formatUrl");var _N=v((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){st.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function ty(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}v(ty,"distance");function bS(e){let t,r=0;e.forEach(n=>{r+=ty(n,t),t=n});const i=r/2;return ey(e,i)}v(bS,"traverseEdge");function vS(e){return e.length===1?e[0]:bS(e)}v(vS,"calcLabelPosition");var XC=v((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),ey=v((e,t)=>{let r,i=t;for(const n of e){if(r){const a=ty(n,r);if(a===0)return r;if(a<i)i-=a;else{const s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:XC((1-s)*r.x+s*n.x,5),y:XC((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),BN=v((e,t,r)=>{st.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=ey(t,25),a=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),c={x:0,y:0};return c.x=Math.sin(s)*a+(t[0].x+n.x)/2,c.y=-Math.cos(s)*a+(t[0].y+n.y)/2,c},"calcCardinalityPosition");function wS(e,t,r){const i=structuredClone(r);st.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=ey(i,n),s=10+e*.5,c=Math.atan2(i[0].y-a.y,i[0].x-a.x),h={x:0,y:0};return t==="start_left"?(h.x=Math.sin(c+Math.PI)*s+(i[0].x+a.x)/2,h.y=-Math.cos(c+Math.PI)*s+(i[0].y+a.y)/2):t==="end_right"?(h.x=Math.sin(c-Math.PI)*s+(i[0].x+a.x)/2-5,h.y=-Math.cos(c-Math.PI)*s+(i[0].y+a.y)/2-5):t==="end_left"?(h.x=Math.sin(c)*s+(i[0].x+a.x)/2-5,h.y=-Math.cos(c)*s+(i[0].y+a.y)/2-5):(h.x=Math.sin(c)*s+(i[0].x+a.x)/2,h.y=-Math.cos(c)*s+(i[0].y+a.y)/2),h}v(wS,"calcTerminalLabelPosition");function SS(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(SS,"getStylesFromArray");var QC=0,LN=v(()=>(QC++,"id-"+Math.random().toString(36).substr(2,12)+"-"+QC),"generateId");function TS(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(TS,"makeRandomHex");var EN=v(e=>TS(e.length),"random"),FN=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"),AN=v(function(e,t){const r=t.text.replace(ec.lineBreakRegex," "),[,i]=af(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),MN=oc((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),ec.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((s,c)=>{const h=xn(`${s} `,r),u=xn(a,r);if(h>t){const{hyphenatedStrings:m,remainingWord:g}=IN(s,t,"-",r);n.push(a,...m),a=g}else u+h>=t?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");c+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),IN=oc((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let s="";return n.forEach((c,h)=>{const u=`${s}${c}`;if(xn(u,i)>=t){const p=h+1,m=n.length===p,g=`${u}${r}`;a.push(m?u:g),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function _S(e,t){return ry(e,t).height}v(_S,"calculateTextHeight");function xn(e,t){return ry(e,t).width}v(xn,"calculateTextWidth");var ry=oc((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=af(r),s=["sans-serif",i],c=e.split(ec.lineBreakRegex),h=[],u=Qt("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const f=u.append("svg");for(const m of s){let g=0;const x={width:0,height:0,lineHeight:0};for(const C of c){const k=FN();k.text=C||kN;const S=AN(f,k).style("font-size",a).style("font-weight",n).style("font-family",m),T=(S._groups||S)[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)}f.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}`),Xa,PN=(Xa=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},v(Xa,"InitIDGenerator"),Xa),Fh,ON=v(function(e){return Fh=Fh||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Fh.innerHTML=e,unescape(Fh.textContent)},"entityDecode");function iy(e){return"str"in e}v(iy,"isDetailedError");var DN=v((e,t,r,i)=>{var a;if(!i)return;const n=(a=e.node())==null?void 0:a.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),af=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 ny(e,t){return CN({},e,t)}v(ny,"cleanAndMerge");var Bi={assignWithDepth:qe,wrapLabel:MN,calculateTextHeight:_S,calculateTextWidth:xn,calculateTextDimensions:ry,cleanAndMerge:ny,detectInit:wN,detectDirective:CS,isSubstringInArray:TN,interpolateToCurve:Jm,calcLabelPosition:vS,calcCardinalityPosition:BN,calcTerminalLabelPosition:wS,formatUrl:kS,getStylesFromArray:SS,generateId:LN,random:EN,runFunc:_N,entityDecode:ON,insertTitle:DN,isLabelCoordinateInPath:BS,parseFontSize:af,InitIDGenerator:PN},RN=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"),IU=v((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Xe(e){return e??null}v(Xe,"handleUndefinedAttr");function BS(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}v(BS,"isLabelCoordinateInPath");var oy=v(({flowchart:e})=>{var n,a;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function LS(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(a=>{function s(){if(n.style.display="flex",n.style.flexDirection="column",i){const c=ce().fontSize?ce().fontSize:window.getComputedStyle(document.body).fontSize,h=5,[u=y2.fontSize]=af(c),f=u*h+"px";n.style.minWidth=f,n.style.maxWidth=f}else n.style.width="100%";a(n)}v(s,"setupImage"),setTimeout(()=>{n.complete&&s()}),n.addEventListener("error",s),n.addEventListener("load",s)})))}v(LS,"configureLabelImages");var $N=v(e=>{const{handDrawnSeed:t}=ce();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),cs=v(e=>{const t=zN([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),zN=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"),ES=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"),Bt=v(e=>{const{stylesArray:t}=cs(e),r=[],i=[],n=[],a=[];return t.forEach(s=>{const c=s[0];ES(c)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),c.includes("stroke")&&n.push(s.join(":")+" !important"),c==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),_t=v((e,t)=>{var h;const{themeVariables:r,handDrawnSeed:i}=ce(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=cs(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:((h=s.get("stroke-width"))==null?void 0:h.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:NN(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),NN=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 jN=Object.freeze({left:0,top:0,width:16,height:16}),Eu=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),FS=Object.freeze({...jN,...Eu}),qN=Object.freeze({...FS,body:"",hidden:!1}),WN=Object.freeze({width:null,height:null}),HN=Object.freeze({...WN,...Eu}),UN=(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 Fp(u)?u:null}const a=n[0],s=a.split("-");if(s.length>1){const c={provider:i,prefix:s.shift(),name:s.join("-")};return Fp(c)?c:null}if(r&&i===""){const c={provider:i,prefix:"",name:a};return Fp(c,r)?c:null}return null},Fp=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function VN(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 KC(e,t){const r=VN(e,t);for(const i in qN)i in Eu?i in e&&!(i in r)&&(r[i]=Eu[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function YN(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=i[s]&&i[s].parent,h=c&&a(c);h&&(n[s]=[c].concat(h))}return n[s]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function ZC(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function s(c){a=KC(i[c]||n[c],a)}return s(t),r.forEach(s),KC(e,a)}function GN(e,t){if(e.icons[t])return ZC(e,t,[]);const r=YN(e,[t])[t];return r?ZC(e,t,r):null}const XN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,QN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function JC(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(XN);if(i===null||!i.length)return e;const n=[];let a=i.shift(),s=QN.test(a);for(;;){if(s){const c=parseFloat(a);isNaN(c)?n.push(a):n.push(Math.ceil(c*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");s=!s}}function KN(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const s=e.indexOf(">",a);if(s===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}function ZN(e,t){return e?"<defs>"+e+"</defs>"+t:t}function JN(e,t,r){const i=KN(e);return ZN(i.defs,t+i.content+r)}const t9=e=>e==="unset"||e==="undefined"||e==="none";function e9(e,t){const r={...FS,...e},i={...HN,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(C=>{const k=[],S=C.hFlip,T=C.vFlip;let _=C.rotate;S?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 I;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:I=n.height/2+n.top,k.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:k.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:I=n.width/2+n.left,k.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}_%2===1&&(n.left!==n.top&&(I=n.left,n.left=n.top,n.top=I),n.width!==n.height&&(I=n.width,n.width=n.height,n.height=I)),k.length&&(a=JN(a,'<g transform="'+k.join(" ")+'">',"</g>"))});const s=i.width,c=i.height,h=n.width,u=n.height;let f,p;s===null?(p=c===null?"1em":c==="auto"?u:c,f=JC(p,h/u)):(f=s==="auto"?h:s,p=c===null?JC(f,u/h):c==="auto"?u:c);const m={},g=(C,k)=>{t9(k)||(m[C]=k.toString())};g("width",f),g("height",p);const x=[n.left,n.top,h,u];return m.viewBox=x.join(" "),{attributes:m,viewBox:x,body:a}}const r9=/\sid="(\S+)"/g,tk=new Map;function i9(e){e=e.replace(/[0-9]+$/,"")||"a";const t=tk.get(e)||0;return tk.set(e,t+1),t?`${e}${t}`:e}function n9(e){const t=[];let r;for(;r=r9.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const a=i9(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function o9(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 ay(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Xo=ay();function AS(e){Xo=e}var Il={exec:()=>null};function he(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(kr.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}var a9=(()=>{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")},s9=/^(?:[ \t]*(?:\n|$))+/,l9=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,c9=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,sc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h9=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sy=/(?:[*+-]|\d{1,9}[.)])/,MS=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,IS=he(MS).replace(/bull/g,sy).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(),u9=he(MS).replace(/bull/g,sy).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(),ly=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f9=/^[^\n]+/,cy=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,d9=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",cy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),p9=he(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sy).getRegex(),sf="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",hy=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,g9=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",hy).replace("tag",sf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),PS=he(ly).replace("hr",sc).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",sf).getRegex(),m9=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",PS).getRegex(),uy={blockquote:m9,code:l9,def:d9,fences:c9,heading:h9,hr:sc,html:g9,lheading:IS,list:p9,newline:s9,paragraph:PS,table:Il,text:f9},ek=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",sc).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",sf).getRegex(),y9={...uy,lheading:u9,table:ek,paragraph:he(ly).replace("hr",sc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ek).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",sf).getRegex()},x9={...uy,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",hy).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:Il,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(ly).replace("hr",sc).replace("heading",` *#{1,6} *[^
227
+ ]`).replace("lheading",IS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},C9=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,k9=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,OS=/^( {2,}|\\)\n(?!\s*$)/,b9=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,lf=/[\p{P}\p{S}]/u,fy=/[\s\p{P}\p{S}]/u,DS=/[^\s\p{P}\p{S}]/u,v9=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,fy).getRegex(),RS=/(?!~)[\p{P}\p{S}]/u,w9=/(?!~)[\s\p{P}\p{S}]/u,S9=/(?:[^\s\p{P}\p{S}]|~)/u,T9=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",a9?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),$S=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_9=he($S,"u").replace(/punct/g,lf).getRegex(),B9=he($S,"u").replace(/punct/g,RS).getRegex(),zS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",L9=he(zS,"gu").replace(/notPunctSpace/g,DS).replace(/punctSpace/g,fy).replace(/punct/g,lf).getRegex(),E9=he(zS,"gu").replace(/notPunctSpace/g,S9).replace(/punctSpace/g,w9).replace(/punct/g,RS).getRegex(),F9=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,DS).replace(/punctSpace/g,fy).replace(/punct/g,lf).getRegex(),A9=he(/\\(punct)/,"gu").replace(/punct/g,lf).getRegex(),M9=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(),I9=he(hy).replace("(?:-->|$)","-->").getRegex(),P9=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",I9).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Fu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,O9=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Fu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),NS=he(/^!?\[(label)\]\[(ref)\]/).replace("label",Fu).replace("ref",cy).getRegex(),jS=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",cy).getRegex(),D9=he("reflink|nolink(?!\\()","g").replace("reflink",NS).replace("nolink",jS).getRegex(),rk=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,dy={_backpedal:Il,anyPunctuation:A9,autolink:M9,blockSkip:T9,br:OS,code:k9,del:Il,emStrongLDelim:_9,emStrongRDelimAst:L9,emStrongRDelimUnd:F9,escape:C9,link:O9,nolink:jS,punctuation:v9,reflink:NS,reflinkSearch:D9,tag:P9,text:b9,url:Il},R9={...dy,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",Fu).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fu).getRegex()},Pg={...dy,emStrongRDelimAst:E9,emStrongLDelim:B9,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",rk).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",rk).getRegex()},$9={...Pg,br:he(OS).replace("{2,}","*").getRegex(),text:he(Pg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ah={normal:uy,gfm:y9,pedantic:x9},ul={normal:dy,gfm:Pg,breaks:$9,pedantic:R9},z9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ik=e=>z9[e];function qi(e,t){if(t){if(kr.escapeTest.test(e))return e.replace(kr.escapeReplace,ik)}else if(kr.escapeTestNoEncode.test(e))return e.replace(kr.escapeReplaceNoEncode,ik);return e}function nk(e){try{e=encodeURI(e).replace(kr.percentDecode,"%")}catch{return null}return e}function ok(e,t){var a;let r=e.replace(kr.findPipe,(s,c,h)=>{let u=!1,f=c;for(;--f>=0&&h[f]==="\\";)u=!u;return u?"|":" |"}),i=r.split(kr.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(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 N9(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 ak(e,t,r,i,n){let a=t.href,s=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:a,title:s,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,h}function j9(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
228
+ `).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[c]=s;return c.length>=n.length?a.slice(n.length):a}).join(`
229
+ `)}var Au=class{constructor(t){de(this,"options");de(this,"rules");de(this,"lexer");this.options=t||Xo}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=j9(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="",a="",s=[];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 f=h.join(`
234
+ `),p=f.replace(this.rules.other.blockquoteSetextReplace,`
235
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
236
+ ${f}`:f,a=a?`${a}
237
+ ${p}`:p;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,s,!0),this.lexer.state.top=m,i.length===0)break;let g=s.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);s[s.length-1]=k,n=n.substring(0,n.length-x.raw.length)+k.raw,a=a.substring(0,a.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);s[s.length-1]=k,n=n.substring(0,n.length-g.raw.length)+k.raw,a=a.substring(0,a.length-x.raw.length)+k.raw,i=C.substring(s.at(-1).raw.length).split(`
242
+ `);continue}}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let s=this.rules.other.listItemRegex(i),c=!1;for(;t;){let u=!1,f="",p="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;f=r[0],t=t.substring(f.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)&&(f+=g+`
245
+ `,t=t.substring(g.length+1),u=!0),!u){let T=this.rules.other.nextBulletRegex(C),_=this.rules.other.hrRegex(C),I=this.rules.other.fencesBeginRegex(C),P=this.rules.other.headingBeginRegex(C),A=this.rules.other.htmlBeginRegex(C);for(;t;){let E=t.split(`
246
+ `,1)[0],W;if(g=E,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),W=g):W=g.replace(this.rules.other.tabCharGlobal," "),I.test(g)||P.test(g)||A.test(g)||T.test(g)||_.test(g))break;if(W.search(this.rules.other.nonSpaceChar)>=C||!g.trim())p+=`
247
+ `+W.slice(C);else{if(x||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(m)||P.test(m)||_.test(m))break;p+=`
248
+ `+g}!x&&!g.trim()&&(x=!0),f+=E+`
249
+ `,t=t.substring(E.length+1),m=W.slice(C)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(c=!0));let k=null,S;this.options.gfm&&(k=this.rules.other.listIsTask.exec(p),k&&(S=k[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:f,task:!!k,checked:S,loose:!1,text:p,tokens:[]}),a.raw+=f}let h=a.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let u=0;u<a.items.length;u++)if(this.lexer.state.top=!1,a.items[u].tokens=this.lexer.blockTokens(a.items[u].text,[]),!a.loose){let f=a.items[u].tokens.filter(m=>m.type==="space"),p=f.length>0&&f.some(m=>this.rules.other.anyLine.test(m.raw));a.loose=p}if(a.loose)for(let u=0;u<a.items.length;u++)a.items[u].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=ok(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
250
+ `):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let h of n)this.rules.other.tableAlignRight.test(h)?s.align.push("right"):this.rules.other.tableAlignCenter.test(h)?s.align.push("center"):this.rules.other.tableAlignLeft.test(h)?s.align.push("left"):s.align.push(null);for(let h=0;h<i.length;h++)s.header.push({text:i[h],tokens:this.lexer.inline(i[h]),header:!0,align:s.align[h]});for(let h of a)s.rows.push(ok(h,s.header.length).map((u,f)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:s.align[f]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
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 s=fl(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=N9(r[2],"()");if(s===-2)return;if(s>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),ak(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return ak(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,s,c,h=a,u=0,f=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,r=r.slice(-1*t.length+a);(n=f.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(c=[...s].length,n[3]||n[4]){h+=c;continue}else if((n[5]||n[6])&&a%3&&!((a+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,a+n.index+p+c);if(Math.min(a,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),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,a;if(r[2]==="@")n=r[0],a="mailto:"+n;else{let s;do s=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(s!==r[0]);n=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Si=class Og{constructor(t){de(this,"tokens");de(this,"options");de(this,"state");de(this,"tokenizer");de(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xo,this.options.tokenizer=this.options.tokenizer||new Au,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:Ah.normal,inline:ul.normal};this.options.pedantic?(r.block=Ah.pedantic,r.inline=ul.pedantic):this.options.gfm&&(r.block=Ah.gfm,this.options.breaks?r.inline=ul.breaks:r.inline=ul.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ah,inline:ul}}static lex(t,r){return new Og(r).lex(t)}static lexInline(t,r){return new Og(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,a,s;for(this.options.pedantic&&(t=t.replace(kr.tabCharGlobal," ").replace(kr.spaceLine,""));t;){let c;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.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((s=this.options.extensions)!=null&&s.startBlock){let u=1/0,f=t.slice(1),p;this.options.extensions.startBlock.forEach(m=>{p=m.call({lexer:this},f),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,f,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 a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((u=(h=this.options.hooks)==null?void 0:h.emStrongMask)==null?void 0:u.call({lexer:this},i))??i;let s=!1,c="";for(;t;){s||(c=""),s=!1;let g;if((p=(f=this.options.extensions)==null?void 0:f.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),S;this.options.extensions.startInline.forEach(T=>{S=T.call({lexer:this},k),typeof S=="number"&&S>=0&&(C=Math.min(C,S))}),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)),s=!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}},Mu=class{constructor(t){de(this,"options");de(this,"parser");this.options=t||Xo}space(t){return""}code({text:t,lang:r,escaped:i}){var s;let n=(s=(r||"").match(kr.notSpaceStart))==null?void 0:s[0],a=t.replace(kr.endingNewline,"")+`
266
+ `;return n?'<pre><code class="language-'+qi(n)+'">'+(i?a:qi(a,!0))+`</code></pre>
267
+ `:"<pre><code>"+(i?a:qi(a,!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 a=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+a+s+`>
273
+ `+n+"</"+a+`>
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+" "+qi(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 a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let s=t.rows[a];i="";for(let c=0;c<s.length;c++)i+=this.tablecell(s[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>${qi(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),a=nk(t);if(a===null)return n;t=a;let s='<a href="'+t+'"';return r&&(s+=' title="'+qi(r)+'"'),s+=">"+n+"</a>",s}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=nk(t);if(a===null)return qi(i);t=a;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${qi(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:qi(t.text)}},py=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 Dg{constructor(t){de(this,"options");de(this,"renderer");de(this,"textRenderer");this.options=t||Xo,this.options.renderer=this.options.renderer||new Mu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new py}static parse(t,r){return new Dg(r).parse(t)}static parseInline(t,r){return new Dg(r).parseInline(t)}parse(t,r=!0){var n,a;let i="";for(let s=0;s<t.length;s++){let c=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[c.type]){let u=c,f=this.options.extensions.renderers[u.type].call({parser:this},u);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){i+=f||"";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,f=this.renderer.text(u);for(;s+1<t.length&&t[s+1].type==="text";)u=t[++s],f+=`
284
+ `+this.renderer.text(u);r?i+=this.renderer.paragraph({type:"paragraph",raw:f,text:f,tokens:[{type:"text",raw:f,text:f,escaped:!0}]}):i+=f;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,a;let i="";for(let s=0;s<t.length;s++){let c=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[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}},Rh,bl=(Rh=class{constructor(t){de(this,"options");de(this,"block");this.options=t||Xo}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}},de(Rh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),de(Rh,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Rh),q9=class{constructor(...t){de(this,"defaults",ay());de(this,"options",this.setOptions);de(this,"parse",this.parseMarkdown(!0));de(this,"parseInline",this.parseMarkdown(!1));de(this,"Parser",Ti);de(this,"Renderer",Mu);de(this,"TextRenderer",py);de(this,"Lexer",Si);de(this,"Tokenizer",Au);de(this,"Hooks",bl);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let c=s;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=s;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=s;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[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(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...c){let h=a.renderer.apply(this,c);return h===!1&&(h=s.apply(this,c)),h}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new Mu(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let c=s,h=i.renderer[c],u=a[c];a[c]=(...f)=>{let p=h.apply(a,f);return p===!1&&(p=u.apply(a,f)),p||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Au(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let c=s,h=i.tokenizer[c],u=a[c];a[c]=(...f)=>{let p=h.apply(a,f);return p===!1&&(p=u.apply(a,f)),p}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new bl;for(let s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let c=s,h=i.hooks[c],u=a[c];bl.passThroughHooks.has(s)?a[c]=f=>{if(this.defaults.async&&bl.passThroughHooksRespectAsync.has(s))return(async()=>{let m=await h.call(a,f);return u.call(a,m)})();let p=h.call(a,f);return u.call(a,p)}:a[c]=(...f)=>{if(this.defaults.async)return(async()=>{let m=await h.apply(a,f);return m===!1&&(m=await u.apply(a,f)),m})();let p=h.apply(a,f);return p===!1&&(p=u.apply(a,f)),p}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(c){let h=[];return h.push(s.call(this,c)),a&&(h=h.concat(a.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},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,h=await(a.hooks?await a.hooks.provideLexer():t?Si.lex:Si.lexInline)(c,a),u=a.hooks?await a.hooks.processAllTokens(h):h;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let f=await(a.hooks?await a.hooks.provideParser():t?Ti.parse:Ti.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(f):f})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?Si.lex:Si.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let h=(a.hooks?a.hooks.provideParser():t?Ti.parse:Ti.parseInline)(c,a);return a.hooks&&(h=a.hooks.postprocess(h)),h}catch(c){return s(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>"+qi(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},Wo=new q9;function ue(e,t){return Wo.parse(e,t)}ue.options=ue.setOptions=function(e){return Wo.setOptions(e),ue.defaults=Wo.defaults,AS(ue.defaults),ue};ue.getDefaults=ay;ue.defaults=Xo;ue.use=function(...e){return Wo.use(...e),ue.defaults=Wo.defaults,AS(ue.defaults),ue};ue.walkTokens=function(e,t){return Wo.walkTokens(e,t)};ue.parseInline=Wo.parseInline;ue.Parser=Ti;ue.parser=Ti.parse;ue.Renderer=Mu;ue.TextRenderer=py;ue.Lexer=Si;ue.lexer=Si.lex;ue.Tokenizer=Au;ue.Hooks=bl;ue.parse=ue;ue.options;ue.setOptions;ue.use;ue.walkTokens;ue.parseInline;Ti.parse;Si.lex;function qS(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(f){var p,m;return(m=(p=f.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&m!==void 0?m:0})):c},[]);if(n.length){var a=new RegExp(`
286
+ [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(c){return c.replace(a,`
287
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(c,h){var u=s.match(/(?:^|\n)( *)$/),f=u?u[1]:"",p=c;typeof c=="string"&&c.includes(`
288
+ `)&&(p=String(c).split(`
289
+ `).map(function(m,g){return g===0?m:""+f+m}).join(`
290
+ `)),s+=p+i[h+1]}),s}var W9={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},Rg=new Map,WS=new Map,H9=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(st.debug("Registering icon pack:",t.name),"loader"in t)WS.set(t.name,t.loader);else if("icons"in t)Rg.set(t.name,t.icons);else throw st.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),HS=v(async(e,t)=>{const r=UN(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=Rg.get(i);if(!n){const s=WS.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},Rg.set(i,n)}catch(c){throw st.error(c),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=GN(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),U9=v(async e=>{try{return await HS(e),!0}catch{return!1}},"isIconAvailable"),lc=v(async(e,t,r)=>{let i;try{i=await HS(e,t==null?void 0:t.fallbackPrefix)}catch(s){st.error(s),i=W9}const n=e9(i,t),a=o9(n9(n.body),{...n.attributes,...r});return Ai(a,_e())},"getIconSVG");function US(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
291
+ `).replace(/\n{2,}/g,`
292
+ `);return qS(i)}v(US,"preprocessMarkdown");function VS(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(VS,"nonMarkdownToLines");function YS(e,t={}){const r=US(e,t),i=ue.lexer(r),n=[[]];let a=0;function s(c,h="normal"){c.type==="text"?c.text.split(`
293
+ `).forEach((f,p)=>{p!==0&&(a++,n.push([])),f.split(" ").forEach(m=>{m=m.replace(/&#39;/g,"'"),m&&n[a].push({content:m,type:h})})}):c.type==="strong"||c.type==="em"?c.tokens.forEach(u=>{s(u,c.type)}):c.type==="html"&&n[a].push({content:c.text,type:"normal"})}return v(s,"processNode"),i.forEach(c=>{var h;c.type==="paragraph"?(h=c.tokens)==null||h.forEach(u=>{s(u)}):c.type==="html"?n[a].push({content:c.text,type:"normal"}):n[a].push({content:c.raw,type:"normal"})}),n}v(YS,"markdownToLines");function GS(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}v(GS,"nonMarkdownToHTML");function XS(e,{markdownAutoWrap:t}={}){const r=ue.lexer(e);function i(n){var a,s,c;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(s=n.tokens)==null?void 0:s.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(c=n.tokens)==null?void 0:c.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(st.warn(`Unsupported markdown: ${n.type}`),n.raw)}return v(i,"output"),r.map(i).join("")}v(XS,"markdownToHTML");function QS(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}v(QS,"splitTextToChars");function KS(e,t){const r=QS(t.content);return gy(e,[],r,t.type)}v(KS,"splitWordToFitWidth");function gy(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,s=[...t,n];return e([{content:s.join(""),type:i}])?gy(e,s,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}v(gy,"splitWordToFitWidthRecursion");function ZS(e,t){if(e.some(({content:r})=>r.includes(`
294
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Iu(e,t)}v(ZS,"splitLineToFitWidth");function Iu(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),t(s))return Iu(e,t,r,s);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[c,h]=KS(t,a);r.push([c]),h.content&&e.unshift(h)}return Iu(e,t,r)}v(Iu,"splitLineToFitWidthRecursion");function $g(e,t){t&&e.attr("style",t)}v($g,"applyStyle");var sk=16384;async function JS(e,t,r,i,n=!1,a=_e()){const s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,sk)}px`),s.attr("height",`${Math.min(10*r,sk)}px`);const c=s.append("xhtml:div"),h=Dl(t.label)?await _2(t.label.replace(ec.lineBreakRegex,`
295
+ `),a):Ai(t.label,a),u=t.isNode?"nodeLabel":"edgeLabel",f=c.append("span");f.html(h),$g(f,t.labelStyle),f.attr("class",`${u} ${i}`),$g(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()),s.node()}v(JS,"addHtmlSpan");function cf(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(cf,"createTspan");function tT(e,t,r){const i=e.append("text"),n=cf(i,1,t);hf(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}v(tT,"computeWidthOfText");function V9(e,t,r){var s;const i=e.append("text"),n=cf(i,1,t);hf(n,[{content:r,type:"normal"}]);const a=(s=n.node())==null?void 0:s.getBoundingClientRect();return a&&i.remove(),a}v(V9,"computeDimensionOfText");function eT(e,t,r,i=!1,n=!1){const s=t.append("g"),c=s.insert("rect").attr("class","background").attr("style","stroke: none"),h=s.append("text").attr("y","-10.1");n&&h.attr("text-anchor","middle");let u=0;for(const f of r){const p=v(g=>tT(s,1.1,g)<=e,"checkWidth"),m=p(f)?[f]:ZS(f,p);for(const g of m){const x=cf(h,u,1.1,n);hf(x,g),u++}}if(i){const f=h.node().getBBox(),p=2;return c.attr("x",f.x-p).attr("y",f.y-p).attr("width",f.width+2*p).attr("height",f.height+2*p),s.node()}else return h.node()}v(eT,"createFormattedText");function zg(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(zg,"decodeHTMLEntities");function hf(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(zg(r.content)):n.text(" "+zg(r.content))})}v(hf,"updateTextContentAndStyles");async function rT(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{const c=`${a}:${s}`;return await U9(c)?await lc(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(rT,"replaceIconSubstring");var vn=v(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,markdown:s=!0,isNode:c=!0,width:h=200,addSvgBackground:u=!1}={},f)=>{if(st.debug("XYZ createText",t,r,i,n,a,c,"addSvgBackground: ",u),a){const p=s?XS(t,f):GS(t),m=await rT(qo(p),f),g=t.replace(/\\\\/g,"\\"),x={isNode:c,label:Dl(t)?g:m,labelStyle:r.replace("fill:","color:")};return await JS(e,x,h,n,u,f)}else{const p=qo(t.replace(/<br\s*\/?>/g,"<br/>")),m=s?YS(p.replace("<br>","<br/>"),f):VS(p),g=eT(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 Ap(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,s=Math.cos(a),c=Math.sin(a);for(const h of e){const[u,f]=h;h[0]=(u-i)*s-(f-n)*c+i,h[1]=(u-i)*c+(f-n)*s+n}}}function Y9(e,t){return e[0]===t[0]&&e[1]===t[1]}function G9(e,t,r,i=1){const n=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,c=[0,0];if(n)for(const u of s)Ap(u,c,n);const h=(function(u,f,p){const m=[];for(const T of u){const _=[...T];Y9(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&m.push(_)}const g=[];f=Math.max(f,.1);const x=[];for(const T of m)for(let _=0;_<T.length-1;_++){const I=T[_],P=T[_+1];if(I[1]!==P[1]){const A=Math.min(I[1],P[1]);x.push({ymin:A,ymax:Math.max(I[1],P[1]),x:A===I[1]?I[0]:P[0],islope:(P[0]-I[0])/(P[1]-I[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,S=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||S%f==0)&&C.length>1)for(let T=0;T<C.length;T+=2){const _=T+1;if(_>=C.length)break;const I=C[T].edge,P=C[_].edge;g.push([[Math.round(I.x),k],[Math.round(P.x),k]])}k+=p,C.forEach((T=>{T.edge.x=T.edge.x+p*T.edge.islope})),S++}return g})(s,a,i);if(n){for(const u of s)Ap(u,c,-n);(function(u,f,p){const m=[];u.forEach((g=>m.push(...g))),Ap(m,f,p)})(h,c,-n)}return h}function cc(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),G9(e,n,i,a||1)}class my{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=cc(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 uf(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 X9 extends my{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=cc(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,s=[],c=.5*i*Math.cos(a),h=.5*i*Math.sin(a);for(const[u,f]of n)uf([u,f])&&s.push([[u[0]-c,u[1]+h],[...f]],[[u[0]+c,u[1]-h],[...f]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class Q9 extends my{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class K9{constructor(t){this.helper=t}fillPolygons(t,r){const i=cc(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=n/4;for(const c of t){const h=uf(c),u=h/n,f=Math.ceil(u)-1,p=h-f*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<f;x++){const C=g+p+x*n,k=m-s+2*Math.random()*s,S=C-s+2*Math.random()*s,T=this.helper.ellipse(k,S,a,a,r);i.push(...T.ops)}}return{type:"fillSketch",ops:i}}}let Z9=class{constructor(t){this.helper=t}fillPolygons(t,r){const i=cc(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach((s=>{const c=uf(s),h=Math.floor(c/(i+n)),u=(c+n-h*(i+n))/2;let f=s[0],p=s[1];f[0]>p[0]&&(f=s[1],p=s[0]);const m=Math.atan((p[1]-f[1])/(p[0]-f[0]));for(let g=0;g<h;g++){const x=g*(i+n),C=x+i,k=[f[0]+x*Math.cos(m)+u*Math.cos(m),f[1]+x*Math.sin(m)+u*Math.sin(m)],S=[f[0]+C*Math.cos(m)+u*Math.cos(m),f[1]+C*Math.sin(m)+u*Math.sin(m)];a.push(...this.helper.doubleLineOps(k[0],k[1],S[0],S[1],r))}})),a}};class J9{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=cc(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach((a=>{const s=uf(a),c=Math.round(s/(2*r));let h=a[0],u=a[1];h[0]>u[0]&&(h=a[1],u=a[0]);const f=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(f),h[1]+m*Math.sin(f)],k=[h[0]+g*Math.cos(f),h[1]+g*Math.sin(f)],S=[C[0]+x*Math.cos(f+Math.PI/4),C[1]+x*Math.sin(f+Math.PI/4)];n.push(...this.helper.doubleLineOps(C[0],C[1],S[0],S[1],i),...this.helper.doubleLineOps(S[0],S[1],k[0],k[1],i))}})),n}}const Ar={};class tj{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const ej=0,Mp=1,lk=2,Mh={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 Ip(e,t){return e.type===t}function yy(e){const t=[],r=(function(s){const c=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))c[c.length]={type:ej,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];c[c.length]={type:Mp,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return c[c.length]={type:lk,text:""},c})(e);let i="BOD",n=0,a=r[n];for(;!Ip(a,lk);){let s=0;const c=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return yy("M0,0"+e);n++,s=Mh[a.text],i=a.text}else Ip(a,Mp)?s=Mh[i]:(n++,s=Mh[a.text],i=a.text);if(!(n+s<r.length))throw new Error("Path data ended short");for(let h=n;h<n+s;h++){const u=r[h];if(!Ip(u,Mp))throw new Error("Param not a number: "+i+","+u.text);c[c.length]=+u.text}if(typeof Mh[i]!="number")throw new Error("Bad segment: "+i);{const h={key:i,data:c};t.push(h),n+=s,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function iT(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:s,data:c}of e)switch(s){case"M":a.push({key:"M",data:[...c]}),[t,r]=c,[i,n]=c;break;case"m":t+=c[0],r+=c[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...c]}),[t,r]=c;break;case"l":t+=c[0],r+=c[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...c]}),t=c[4],r=c[5];break;case"c":{const h=c.map(((u,f)=>f%2?u+r:u+t));a.push({key:"C",data:h}),t=h[4],r=h[5];break}case"Q":a.push({key:"Q",data:[...c]}),t=c[2],r=c[3];break;case"q":{const h=c.map(((u,f)=>f%2?u+r:u+t));a.push({key:"Q",data:h}),t=h[2],r=h[3];break}case"A":a.push({key:"A",data:[...c]}),t=c[5],r=c[6];break;case"a":t+=c[5],r+=c[6],a.push({key:"A",data:[c[0],c[1],c[2],c[3],c[4],t,r]});break;case"H":a.push({key:"H",data:[...c]}),t=c[0];break;case"h":t+=c[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...c]}),r=c[0];break;case"v":r+=c[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...c]}),t=c[2],r=c[3];break;case"s":{const h=c.map(((u,f)=>f%2?u+r:u+t));a.push({key:"S",data:h}),t=h[2],r=h[3];break}case"T":a.push({key:"T",data:[...c]}),t=c[0],r=c[1];break;case"t":t+=c[0],r+=c[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function nT(e){const t=[];let r="",i=0,n=0,a=0,s=0,c=0,h=0;for(const{key:u,data:f}of e){switch(u){case"M":t.push({key:"M",data:[...f]}),[i,n]=f,[a,s]=f;break;case"C":t.push({key:"C",data:[...f]}),i=f[4],n=f[5],c=f[2],h=f[3];break;case"L":t.push({key:"L",data:[...f]}),[i,n]=f;break;case"H":i=f[0],t.push({key:"L",data:[i,n]});break;case"V":n=f[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,...f]}),c=f[0],h=f[1],i=f[2],n=f[3];break}case"T":{const[p,m]=f;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,S=p+2*(g-p)/3,T=m+2*(x-m)/3;t.push({key:"C",data:[C,k,S,T,p,m]}),c=g,h=x,i=p,n=m;break}case"Q":{const[p,m,g,x]=f,C=i+2*(p-i)/3,k=n+2*(m-n)/3,S=g+2*(p-g)/3,T=x+2*(m-x)/3;t.push({key:"C",data:[C,k,S,T,g,x]}),c=p,h=m,i=g,n=x;break}case"A":{const p=Math.abs(f[0]),m=Math.abs(f[1]),g=f[2],x=f[3],C=f[4],k=f[5],S=f[6];p===0||m===0?(t.push({key:"C",data:[i,n,k,S,k,S]}),i=k,n=S):(i!==k||n!==S)&&(oT(i,n,k,S,p,m,g,x,C).forEach((function(T){t.push({key:"C",data:T})})),i=k,n=S);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=s}r=u}return t}function dl(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function oT(e,t,r,i,n,a,s,c,h,u){const f=(p=s,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]=dl(e,t,-f),[r,i]=dl(r,i,-f);const nt=(e-r)/2,V=(t-i)/2;let j=nt*nt/(n*n)+V*V/(a*a);j>1&&(j=Math.sqrt(j),n*=j,a*=j);const q=n*n,G=a*a,R=q*G-q*V*V-G*nt*nt,K=q*V*V+G*nt*nt,F=(c===h?-1:1)*Math.sqrt(Math.abs(R/K));C=F*n*V/a+(e+r)/2,k=F*-a*nt/n+(t+i)/2,g=Math.asin(parseFloat(((t-k)/a).toFixed(9))),x=Math.asin(parseFloat(((i-k)/a).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 S=x-g;if(Math.abs(S)>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=oT(r=C+n*Math.cos(x),i=k+a*Math.sin(x),V,j,n,a,s,0,h,[x,nt,C,k])}S=x-g;const T=Math.cos(g),_=Math.sin(g),I=Math.cos(x),P=Math.sin(x),A=Math.tan(S/4),E=4/3*n*A,W=4/3*a*A,et=[e,t],M=[e+E*_,t-W*T],N=[r+E*P,i-W*I],J=[r,i];if(M[0]=2*et[0]-M[0],M[1]=2*et[1]-M[1],u)return[M,N,J].concat(m);{m=[M,N,J].concat(m);const nt=[];for(let V=0;V<m.length;V+=3){const j=dl(m[V][0],m[V][1],f),q=dl(m[V+1][0],m[V+1][1],f),G=dl(m[V+2][0],m[V+2][1],f);nt.push([j[0],j[1],q[0],q[1],G[0],G[1]])}return nt}}const rj={randOffset:function(e,t){return Wt(e,t)},randOffsetWithRange:function(e,t,r){return Pu(e,t,r)},ellipse:function(e,t,r,i,n){const a=sT(r,i,n);return Ng(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return no(e,t,r,i,n,!0)}};function aT(e,t,r,i,n){return{type:"path",ops:no(e,t,r,i,n)}}function Qh(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...no(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...no(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?aT(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function ij(e,t,r,i,n){return(function(a,s){return Qh(a,!0,s)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function ck(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Ih(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:Ih(r[0],1.5*(1+.22*t.roughness),fk(t));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const c=Ih(s,1*(1+.2*t.roughness),t),h=t.disableMultiStroke?[]:Ih(s,1.5*(1+.22*t.roughness),fk(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 sT(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let s=Math.abs(e/2),c=Math.abs(t/2);const h=1-r.curveFitting;return s+=Wt(s*h,r),c+=Wt(c*h,r),{increment:a,rx:s,ry:c}}function Ng(e,t,r,i){const[n,a]=dk(i.increment,e,t,i.rx,i.ry,1,i.increment*Pu(.1,Pu(.4,1,r),r),r);let s=Ou(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[c]=dk(i.increment,e,t,i.rx,i.ry,1.5,0,r),h=Ou(c,null,r);s=s.concat(h)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function hk(e,t,r,i,n,a,s,c,h){const u=e,f=t;let p=Math.abs(r/2),m=Math.abs(i/2);p+=Wt(.01*p,h),m+=Wt(.01*m,h);let g=n,x=a;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),S=pk(k,u,f,p,m,g,x,1,h);if(!h.disableMultiStroke){const T=pk(k,u,f,p,m,g,x,1.5,h);S.push(...T)}return s&&(c?S.push(...no(u,f,u+p*Math.cos(g),f+m*Math.sin(g),h),...no(u,f,u+p*Math.cos(x),f+m*Math.sin(x),h)):S.push({op:"lineTo",data:[u,f]},{op:"lineTo",data:[u+p*Math.cos(g),f+m*Math.sin(g)]})),{type:"path",ops:S}}function uk(e,t){const r=nT(iT(yy(e))),i=[];let n=[0,0],a=[0,0];for(const{key:s,data:c}of r)switch(s){case"M":a=[c[0],c[1]],n=[c[0],c[1]];break;case"L":i.push(...no(a[0],a[1],c[0],c[1],t)),a=[c[0],c[1]];break;case"C":{const[h,u,f,p,m,g]=c;i.push(...nj(h,u,f,p,m,g,a,t)),a=[m,g];break}case"Z":i.push(...no(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function Pp(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+Wt(n,t),i[0][1]+Wt(n,t)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[i[s][0]+Wt(n,t),i[s][1]+Wt(n,t)]})}}return{type:"fillPath",ops:r}}function Sa(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!Ar[n])switch(n){case"zigzag":Ar[n]||(Ar[n]=new X9(i));break;case"cross-hatch":Ar[n]||(Ar[n]=new Q9(i));break;case"dots":Ar[n]||(Ar[n]=new K9(i));break;case"dashed":Ar[n]||(Ar[n]=new Z9(i));break;case"zigzag-line":Ar[n]||(Ar[n]=new J9(i));break;default:n="hachure",Ar[n]||(Ar[n]=new my(i))}return Ar[n]})(t,rj).fillPolygons(e,t)}function fk(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function lT(e){return e.randomizer||(e.randomizer=new tj(e.seed||0)),e.randomizer.next()}function Pu(e,t,r,i=1){return r.roughness*i*(lT(r)*(t-e)+e)}function Wt(e,t,r=1){return Pu(-e,e,t,r)}function no(e,t,r,i,n,a=!1){const s=a?n.disableMultiStrokeFill:n.disableMultiStroke,c=jg(e,t,r,i,n,!0,!1);if(s)return c;const h=jg(e,t,r,i,n,!0,!0);return c.concat(h)}function jg(e,t,r,i,n,a,s){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 f=n.maxRandomnessOffset||0;f*f*100>c&&(f=h/10);const p=f/2,m=.2+.2*lT(n);let g=n.bowing*n.maxRandomnessOffset*(i-t)/200,x=n.bowing*n.maxRandomnessOffset*(e-r)/200;g=Wt(g,n,u),x=Wt(x,n,u);const C=[],k=()=>Wt(p,n,u),S=()=>Wt(f,n,u),T=n.preserveVertices;return s?C.push({op:"move",data:[e+(T?0:k()),t+(T?0:k())]}):C.push({op:"move",data:[e+(T?0:Wt(f,n,u)),t+(T?0:Wt(f,n,u))]}),s?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+S(),x+t+(i-t)*m+S(),g+e+2*(r-e)*m+S(),x+t+2*(i-t)*m+S(),r+(T?0:S()),i+(T?0:S())]}),C}function Ih(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+Wt(t,r),e[0][1]+Wt(t,r)]),i.push([e[0][0]+Wt(t,r),e[0][1]+Wt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+Wt(t,r),e[n][1]+Wt(t,r)]),n===e.length-1&&i.push([e[n][0]+Wt(t,r),e[n][1]+Wt(t,r)]);return Ou(i,null,r)}function Ou(e,t,r){const i=e.length,n=[];if(i>3){const a=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let c=1;c+2<i;c++){const h=e[c];a[0]=[h[0],h[1]],a[1]=[h[0]+(s*e[c+1][0]-s*e[c-1][0])/6,h[1]+(s*e[c+1][1]-s*e[c-1][1])/6],a[2]=[e[c+1][0]+(s*e[c][0]-s*e[c+2][0])/6,e[c+1][1]+(s*e[c][1]-s*e[c+2][1])/6],a[3]=[e[c+1][0],e[c+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...jg(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function dk(e,t,r,i,n,a,s,c){const h=[],u=[];if(c.roughness===0){e/=4,u.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let f=0;f<=2*Math.PI;f+=e){const p=[t+i*Math.cos(f),r+n*Math.sin(f)];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 f=Wt(.5,c)-Math.PI/2;u.push([Wt(a,c)+t+.9*i*Math.cos(f-e),Wt(a,c)+r+.9*n*Math.sin(f-e)]);const p=2*Math.PI+f-.01;for(let m=f;m<p;m+=e){const g=[Wt(a,c)+t+i*Math.cos(m),Wt(a,c)+r+n*Math.sin(m)];h.push(g),u.push(g)}u.push([Wt(a,c)+t+i*Math.cos(f+2*Math.PI+.5*s),Wt(a,c)+r+n*Math.sin(f+2*Math.PI+.5*s)]),u.push([Wt(a,c)+t+.98*i*Math.cos(f+s),Wt(a,c)+r+.98*n*Math.sin(f+s)]),u.push([Wt(a,c)+t+.9*i*Math.cos(f+.5*s),Wt(a,c)+r+.9*n*Math.sin(f+.5*s)])}return[u,h]}function pk(e,t,r,i,n,a,s,c,h){const u=a+Wt(.1,h),f=[];f.push([Wt(c,h)+t+.9*i*Math.cos(u-e),Wt(c,h)+r+.9*n*Math.sin(u-e)]);for(let p=u;p<=s;p+=e)f.push([Wt(c,h)+t+i*Math.cos(p),Wt(c,h)+r+n*Math.sin(p)]);return f.push([t+i*Math.cos(s),r+n*Math.sin(s)]),f.push([t+i*Math.cos(s),r+n*Math.sin(s)]),Ou(f,null,h)}function nj(e,t,r,i,n,a,s,c){const h=[],u=[c.maxRandomnessOffset||1,(c.maxRandomnessOffset||1)+.3];let f=[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:[s[0],s[1]]}):h.push({op:"move",data:[s[0]+(m?0:Wt(u[0],c)),s[1]+(m?0:Wt(u[0],c))]}),f=m?[n,a]:[n+Wt(u[g],c),a+Wt(u[g],c)],h.push({op:"bcurveTo",data:[e+Wt(u[g],c),t+Wt(u[g],c),r+Wt(u[g],c),i+Wt(u[g],c),f[0],f[1]]});return h}function pl(e){return[...e]}function gk(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(pl(e[0]),pl(e[1]),pl(e[2]),pl(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 a=[],s=1-t;i.push(pl(n[0]));for(let c=1;c+2<n.length;c++){const h=n[c];a[0]=[h[0],h[1]],a[1]=[h[0]+(s*n[c+1][0]-s*n[c-1][0])/6,h[1]+(s*n[c+1][1]-s*n[c-1][1])/6],a[2]=[n[c+1][0]+(s*n[c][0]-s*n[c+2][0])/6,n[c+1][1]+(s*n[c][1]-s*n[c+2][1])/6],a[3]=[n[c+1][0],n[c+1][1]],i.push(a[1],a[2],a[3])}}return i}function Kh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function oj(e,t,r){const i=Kh(t,r);if(i===0)return Kh(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)),Kh(e,Lo(t,r,n))}function Lo(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function qg(e,t,r,i){const n=i||[];if((function(c,h){const u=c[h+0],f=c[h+1],p=c[h+2],m=c[h+3];let g=3*f[0]-2*u[0]-m[0];g*=g;let x=3*f[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?(a=n[n.length-1],s=c,Math.sqrt(Kh(a,s))>1&&n.push(c)):n.push(c),n.push(e[t+3])}else{const h=e[t+0],u=e[t+1],f=e[t+2],p=e[t+3],m=Lo(h,u,.5),g=Lo(u,f,.5),x=Lo(f,p,.5),C=Lo(m,g,.5),k=Lo(g,x,.5),S=Lo(C,k,.5);qg([h,m,C,S],0,r,n),qg([S,k,x,p],0,r,n)}var a,s;return n}function aj(e,t){return Du(e,0,e.length,t)}function Du(e,t,r,i,n){const a=n||[],s=e[t],c=e[r-1];let h=0,u=1;for(let f=t+1;f<r-1;++f){const p=oj(e[f],s,c);p>h&&(h=p,u=f)}return Math.sqrt(h)>i?(Du(e,t,u+1,i,a),Du(e,u,r,i,a)):(a.length||a.push(s),a.push(c)),a}function Op(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)qg(e,3*a,t,i);return r&&r>0?Du(i,0,i.length,r):i}const Ur="none";class Ru{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,a){const s=this._o(a);return this._d("line",[aT(t,r,i,n,s)],s)}rectangle(t,r,i,n,a){const s=this._o(a),c=[],h=ij(t,r,i,n,s);if(s.fill){const u=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];s.fillStyle==="solid"?c.push(Pp([u],s)):c.push(Sa([u],s))}return s.stroke!==Ur&&c.push(h),this._d("rectangle",c,s)}ellipse(t,r,i,n,a){const s=this._o(a),c=[],h=sT(i,n,s),u=Ng(t,r,s,h);if(s.fill)if(s.fillStyle==="solid"){const f=Ng(t,r,s,h).opset;f.type="fillPath",c.push(f)}else c.push(Sa([u.estimatedPoints],s));return s.stroke!==Ur&&c.push(u.opset),this._d("ellipse",c,s)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[Qh(t,!1,i)],i)}arc(t,r,i,n,a,s,c=!1,h){const u=this._o(h),f=[],p=hk(t,r,i,n,a,s,c,!0,u);if(c&&u.fill)if(u.fillStyle==="solid"){const m=Object.assign({},u);m.disableMultiStroke=!0;const g=hk(t,r,i,n,a,s,!0,!1,m);g.type="fillPath",f.push(g)}else f.push((function(m,g,x,C,k,S,T){const _=m,I=g;let P=Math.abs(x/2),A=Math.abs(C/2);P+=Wt(.01*P,T),A+=Wt(.01*A,T);let E=k,W=S;for(;E<0;)E+=2*Math.PI,W+=2*Math.PI;W-E>2*Math.PI&&(E=0,W=2*Math.PI);const et=(W-E)/T.curveStepCount,M=[];for(let N=E;N<=W;N+=et)M.push([_+P*Math.cos(N),I+A*Math.sin(N)]);return M.push([_+P*Math.cos(W),I+A*Math.sin(W)]),M.push([_,I]),Sa([M],T)})(t,r,i,n,a,s,u));return u.stroke!==Ur&&f.push(p),this._d("arc",f,u)}curve(t,r){const i=this._o(r),n=[],a=ck(t,i);if(i.fill&&i.fill!==Ur)if(i.fillStyle==="solid"){const s=ck(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],c=t;if(c.length){const h=typeof c[0][0]=="number"?[c]:c;for(const u of h)u.length<3?s.push(...u):u.length===3?s.push(...Op(gk([u[0],u[0],u[1],u[2]]),10,(1+i.roughness)/2)):s.push(...Op(gk(u),10,(1+i.roughness)/2))}s.length&&n.push(Sa([s],i))}return i.stroke!==Ur&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=Qh(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(Pp([t],i)):n.push(Sa([t],i))),i.stroke!==Ur&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==Ur,s=i.stroke!==Ur,c=!!(i.simplification&&i.simplification<1),h=(function(f,p,m){const g=nT(iT(yy(f))),x=[];let C=[],k=[0,0],S=[];const T=()=>{S.length>=4&&C.push(...Op(S,p)),S=[]},_=()=>{T(),C.length&&(x.push(C),C=[])};for(const{key:P,data:A}of g)switch(P){case"M":_(),k=[A[0],A[1]],C.push(k);break;case"L":T(),C.push([A[0],A[1]]);break;case"C":if(!S.length){const E=C.length?C[C.length-1]:k;S.push([E[0],E[1]])}S.push([A[0],A[1]]),S.push([A[2],A[3]]),S.push([A[4],A[5]]);break;case"Z":T(),C.push([k[0],k[1]])}if(_(),!m)return x;const I=[];for(const P of x){const A=aj(P,m);A.length&&I.push(A)}return I})(t,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),u=uk(t,i);if(a)if(i.fillStyle==="solid")if(h.length===1){const f=uk(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else n.push(Pp(h,i));else n.push(Sa(h,i));return s&&(c?h.forEach((f=>{n.push(Qh(f,!1,i))})):n.push(u)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map((s=>+s.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ur};break;case"fillPath":s={d:this.opsToPath(a),stroke:Ur,strokeWidth:0,fill:i.fill||Ur};break;case"fillSketch":s=this.fillSketch(a,i)}s&&n.push(s)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Ur,strokeWidth:i,fill:Ur}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class sj{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Ru(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const c=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,c),n.restore();break}case"fillSketch":this.fillSketch(n,s,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const s=typeof i=="number"&&i>=0?a.data.map((c=>+c.toFixed(i))):a.data;switch(a.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s),s}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s),s}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s),s}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,a,s,c=!1,h){const u=this.gen.arc(t,r,i,n,a,s,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 Ph="http://www.w3.org/2000/svg";class lj{constructor(t,r){this.svg=t,this.gen=new Ru(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(Ph,"g"),s=t.options.fixedDecimalPlaceDigits;for(const c of r){let h=null;switch(c.type){case"path":h=n.createElementNS(Ph,"path"),h.setAttribute("d",this.opsToPath(c,s)),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(Ph,"path"),h.setAttribute("d",this.opsToPath(c,s)),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&&a.appendChild(h)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(Ph,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s)}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s)}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,a,s,c=!1,h){const u=this.gen.arc(t,r,i,n,a,s,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 St={canvas:(e,t)=>new sj(e,t),svg:(e,t)=>new lj(e,t),generator:e=>new Ru(e),newSeed:()=>Ru.newSeed()},qt=v(async(e,t,r)=>{var g,x;let i;const n=t.useHtmlLabels||kn((g=ce())==null?void 0:g.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=a.insert("g").attr("class","label").attr("style",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",f=await vn(s,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=f.getBBox();const m=((t==null?void 0:t.padding)??0)/2;if(n){const C=f.children[0],k=Qt(f);await LS(C,c),p=C.getBoundingClientRect(),k.attr("width",p.width),k.attr("height",p.height)}return n?s.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):s.attr("transform","translate(0, "+-p.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:p,halfPadding:m,label:s}},"labelHelper"),Dp=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||""),a=await vn(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 s=a.getBBox();const c=r.padding/2;if(wr(ce())){const f=a.children[0],p=Qt(a);s=f.getBoundingClientRect(),p.attr("width",s.width),p.attr("height",s.height)}return i?n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):n.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:c,label:n}},"insertLabel"),Lt=v((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Nt=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 oo(e,t,r,i,n,a){const s=[],h=r-e,u=i-t,f=h/a,p=2*Math.PI/f,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));s.push({x:C,y:k})}return s}v(oo,"generateFullSineWavePoints");function Yl(e,t,r,i,n,a){const s=[],c=n*Math.PI/180,f=(a*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:-g,y:-x})}return s}v(Yl,"generateCirclePoints");function Wg(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"),a=t.find(h=>h.getAttribute("stroke")!=="none"),s=v((h,u)=>(h==null?void 0:h.getAttribute(u))??void 0,"getAttr");if(n){const h={fill:s(n,"fill"),"fill-opacity":s(n,"fill-opacity")??"1"};Object.entries(h).forEach(([u,f])=>{f&&r.setAttribute(u,f)})}if(a){const h={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(h).forEach(([u,f])=>{f&&r.setAttribute(u,f)})}const c=document.createElementNS("http://www.w3.org/2000/svg","g");return c.appendChild(r),c}v(Wg,"mergePaths");var cj=v((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,s=e.width/2,c=e.height/2,h,u;return Math.abs(a)*s>Math.abs(n)*c?(a<0&&(c=-c),h=a===0?0:c*n/a,u=c):(n<0&&(s=-s),h=s,u=n===0?0:s*a/n),{x:r+h,y:i+u}},"intersectRect"),hs=cj,hj=v(async(e,t,r,i=!1,n=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);const s=ce(),c=wr(s);return await vn(e,a,{style:r,isTitle:i,useHtmlLabels:c,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Zn=hj,lo=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"),cT=v(async(e,t)=>{st.info("Creating subgraph rect for ",t.id,t);const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:c,nodeStyles:h,borderStyles:u,backgroundStyles:f}=Bt(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 vn(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}):x=await Zn(g,t.label,t.labelStyle||"",!1,!0);let C=x.getBBox();if(wr(r)){const E=x.children[0],W=Qt(x);C=E.getBoundingClientRect(),W.attr("width",C.width),W.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 S=t.height,T=t.x-k/2,_=t.y-S/2;st.trace("Data ",t,JSON.stringify(t));let I;if(t.look==="handDrawn"){const E=St.svg(p),W=_t(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:n}),et=E.path(lo(T,_,k,S,0),W);I=p.insert(()=>(st.debug("Rough node insert CXC",et),et),":first-child"),I.select("path:nth-child(2)").attr("style",u.join(";")),I.select("path").attr("style",f.join(";").replace("fill","stroke"))}else I=p.insert("rect",":first-child"),I.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",k).attr("height",S);const{subGraphTitleTopMargin:P}=oy(r);if(g.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+P})`),c){const E=g.select("span");E&&E.attr("style",c)}const A=I.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=C.height-t.padding/2,t.intersect=function(E){return hs(t,E)},{cluster:p,labelBBox:C}},"rect"),uj=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,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(c){return hs(t,c)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),fj=v(async(e,t)=>{const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:s,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),f=u.insert("g",":first-child"),p=u.insert("g").attr("class","cluster-label");let m=u.append("rect");const g=await Zn(p,t.label,t.labelStyle,void 0,!0);let x=g.getBBox();if(wr(r)){const et=g.children[0],M=Qt(g);x=et.getBoundingClientRect(),M.attr("width",x.width),M.attr("height",x.height)}const C=0*t.padding,k=C/2,S=(t.width<=x.width+t.padding?x.width+t.padding:t.width)+C;t.width<=x.width+t.padding?t.diff=(S-t.width)/2-t.padding:t.diff=-t.padding;const T=t.height+C,_=t.height+C-x.height-6,I=t.x-S/2,P=t.y-T/2;t.width=S;const A=t.y-t.height/2-k+x.height+2;let E;if(t.look==="handDrawn"){const et=t.cssClasses.includes("statediagram-cluster-alt"),M=St.svg(u),N=t.rx||t.ry?M.path(lo(I,P,S,T,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:h,seed:n}):M.rectangle(I,P,S,T,{seed:n});E=u.insert(()=>N,":first-child");const J=M.rectangle(I,A,S,_,{fill:et?a:s,fillStyle:et?"hachure":"solid",stroke:h,seed:n});E=u.insert(()=>N,":first-child"),m=u.insert(()=>J)}else E=f.insert("rect",":first-child"),E.attr("class","outer").attr("x",I).attr("y",P).attr("width",S).attr("height",T).attr("data-look",t.look),m.attr("class","inner").attr("x",I).attr("y",A).attr("width",S).attr("height",_);p.attr("transform",`translate(${t.x-x.width/2}, ${P+1-(wr(r)?0:3)})`);const W=E.node().getBBox();return t.height=W.height,t.offsetX=0,t.offsetY=x.height-t.padding/2,t.labelBBox=x,t.intersect=function(et){return hs(t,et)},{cluster:u,labelBBox:x}},"roundedWithTitle"),dj=v(async(e,t)=>{st.info("Creating subgraph rect for ",t.id,t);const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:c,nodeStyles:h,borderStyles:u,backgroundStyles:f}=Bt(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 vn(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width});let C=x.getBBox();if(wr(r)){const E=x.children[0],W=Qt(x);C=E.getBoundingClientRect(),W.attr("width",C.width),W.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 S=t.height,T=t.x-k/2,_=t.y-S/2;st.trace("Data ",t,JSON.stringify(t));let I;if(t.look==="handDrawn"){const E=St.svg(p),W=_t(t,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:n}),et=E.path(lo(T,_,k,S,t.rx),W);I=p.insert(()=>(st.debug("Rough node insert CXC",et),et),":first-child"),I.select("path:nth-child(2)").attr("style",u.join(";")),I.select("path").attr("style",f.join(";").replace("fill","stroke"))}else I=p.insert("rect",":first-child"),I.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",k).attr("height",S);const{subGraphTitleTopMargin:P}=oy(r);if(g.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+P})`),c){const E=g.select("span");E&&E.attr("style",c)}const A=I.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=C.height-t.padding/2,t.intersect=function(E){return hs(t,E)},{cluster:p,labelBBox:C}},"kanbanSection"),pj=v((e,t)=>{const r=ce(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),c=s.insert("g",":first-child"),h=0*t.padding,u=t.width+h;t.diff=-t.padding;const f=t.height+h,p=t.x-u/2,m=t.y-f/2;t.width=u;let g;if(t.look==="handDrawn"){const k=St.svg(s).rectangle(p,m,u,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});g=s.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",f).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 hs(t,C)},{cluster:s,labelBBox:{}}},"divider"),gj=cT,mj={rect:cT,squareRect:gj,roundedWithTitle:fj,noteGroup:uj,divider:pj,kanbanSection:dj},hT=new Map,yj=v(async(e,t)=>{const r=t.shape||"rect",i=await mj[r](e,t);return hT.set(t.id,i),i},"insertCluster"),NU=v(()=>{hT=new Map},"clear");function uT(e,t){return e.intersect(t)}v(uT,"intersectNode");var xj=uT;function fT(e,t,r,i){var n=e.x,a=e.y,s=n-i.x,c=a-i.y,h=Math.sqrt(t*t*c*c+r*r*s*s),u=Math.abs(t*r*s/h);i.x<n&&(u=-u);var f=Math.abs(t*r*c/h);return i.y<a&&(f=-f),{x:n+u,y:a+f}}v(fT,"intersectEllipse");var dT=fT;function pT(e,t,r){return dT(e,t,t,r)}v(pT,"intersectCircle");var Cj=pT;function gT(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,s=t.x*e.y-e.x*t.y,c=n*r.x+a*r.y+s,h=n*i.x+a*i.y+s,u=1e-6;if(c!==0&&h!==0&&Hg(c,h))return;const f=i.y-r.y,p=r.x-i.x,m=i.x*r.y-r.x*i.y,g=f*e.x+p*e.y+m,x=f*t.x+p*t.y+m;if(Math.abs(g)<u&&Math.abs(x)<u&&Hg(g,x))return;const C=n*p-f*a;if(C===0)return;const k=Math.abs(C/2);let S=a*m-p*s;const T=S<0?(S-k)/C:(S+k)/C;S=f*s-n*m;const _=S<0?(S-k)/C:(S+k)/C;return{x:T,y:_}}}v(gT,"intersectLine");function Hg(e,t){return e*t>0}v(Hg,"sameSign");var kj=gT;function mT(e,t,r){let i=e.x,n=e.y,a=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(f){s=Math.min(s,f.x),c=Math.min(c,f.y)}):(s=Math.min(s,t.x),c=Math.min(c,t.y));let h=i-e.width/2-s,u=n-e.height/2-c;for(let f=0;f<t.length;f++){let p=t[f],m=t[f<t.length-1?f+1:0],g=kj(e,r,{x:h+p.x,y:u+p.y},{x:h+m.x,y:u+m.y});g&&a.push(g)}return a.length?(a.length>1&&a.sort(function(f,p){let m=f.x-r.x,g=f.y-r.y,x=Math.sqrt(m*m+g*g),C=p.x-r.x,k=p.y-r.y,S=Math.sqrt(C*C+k*k);return x<S?-1:x===S?0:1}),a[0]):e}v(mT,"intersectPolygon");var bj=mT,kt={node:xj,circle:Cj,ellipse:dT,polygon:bj,rect:hs};function yT(e,t){const{labelStyles:r}=Bt(t);t.labelStyle=r;const i=Nt(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=1,{cssStyles:c}=t,h=St.svg(a),u=_t(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);const f=h.circle(0,0,s*2,u),p=a.insert(()=>f,":first-child");return p.attr("class","anchor").attr("style",Xe(c)),Lt(t,p),t.intersect=function(m){return st.info("Circle intersect",t,s,m),kt.circle(t,s,m)},a}v(yT,"anchor");function Ug(e,t,r,i,n,a,s){const h=(e+r)/2,u=(t+i)/2,f=Math.atan2(i-t,r-e),p=(r-e)/2,m=(i-t)/2,g=p/n,x=m/a,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),S=h+k*a*Math.sin(f)*(s?-1:1),T=u-k*n*Math.cos(f)*(s?-1:1),_=Math.atan2((t-T)/a,(e-S)/n);let P=Math.atan2((i-T)/a,(r-S)/n)-_;s&&P<0&&(P+=2*Math.PI),!s&&P>0&&(P-=2*Math.PI);const A=[];for(let E=0;E<20;E++){const W=E/19,et=_+W*P,M=S+n*Math.cos(et),N=T+a*Math.sin(et);A.push({x:M,y:N})}return A}v(Ug,"generateArcPoints");function xT(e,t,r){const[i,n]=[t,r].sort((a,s)=>s-a);return n*(1-Math.sqrt(1-(e/i/2)**2))}v(xT,"calculateArcSagitta");async function CT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,c=v(et=>et+s,"calcTotalHeight"),h=v(et=>{const M=et/2;return[M/(2.5+et/50),M]},"calcEllipseRadius"),{shapeSvg:u,bbox:f}=await qt(e,t,Nt(t)),p=c(t!=null&&t.height?t==null?void 0:t.height:f.height),[m,g]=h(p),x=xT(p,m,g),k=(t!=null&&t.width?t==null?void 0:t.width:f.width)+a*2+x-x,S=p,{cssStyles:T}=t,_=[{x:k/2,y:-S/2},{x:-k/2,y:-S/2},...Ug(-k/2,-S/2,-k/2,S/2,m,g,!1),{x:k/2,y:S/2},...Ug(k/2,S/2,k/2,-S/2,m,g,!0)],I=St.svg(u),P=_t(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const A=ie(_),E=I.path(A,P),W=u.insert(()=>E,":first-child");return W.attr("class","basic label-container outer-path"),T&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",T),i&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",i),W.attr("transform",`translate(${m/2}, 0)`),Lt(t,W),t.intersect=function(et){return kt.polygon(t,_,et)},u}v(CT,"bowTieRect");function wn(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(wn,"insertPolygonShape");var Oh=12;async function kT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?28:n,s=t.look==="neo"?24:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=((t==null?void 0:t.width)??h.width)+(t.look==="neo"?a*2:a+Oh),f=((t==null?void 0:t.height)??h.height)+(t.look==="neo"?s*2:s),p=0,m=u,g=-f,x=0,C=[{x:p+Oh,y:g},{x:m,y:g},{x:m,y:x},{x:p,y:x},{x:p,y:g+Oh},{x:p+Oh,y:g}];let k;const{cssStyles:S}=t;if(t.look==="handDrawn"){const T=St.svg(c),_=_t(t,{}),I=ie(C),P=T.path(I,_);k=c.insert(()=>P,":first-child").attr("transform",`translate(${-u/2}, ${f/2})`),S&&k.attr("style",S)}else k=wn(c,u,f,C);return i&&k.attr("style",i),Lt(t,k),t.intersect=function(T){return kt.polygon(t,C,T)},c}v(kT,"card");function bT(e,t){const{nodeStyles:r}=Bt(t);t.label="";const i=e.insert("g").attr("class",Nt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],c=St.svg(i),h=_t(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const u=ie(s),f=c.path(u,h),p=i.insert(()=>f,":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 kt.polygon(t,s,m)},i}v(bT,"choice");async function xy(e,t,r){const{labelStyles:i,nodeStyles:n}=Bt(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:c}=await qt(e,t,Nt(t)),h=16,u=(r==null?void 0:r.padding)??c,f=t.look==="neo"?s.width/2+h*2:s.width/2+u;let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const g=St.svg(a),x=_t(t,{}),C=g.circle(0,0,f*2,x);p=a.insert(()=>C,":first-child"),p.attr("class","basic label-container").attr("style",Xe(m))}else p=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",f).attr("cx",0).attr("cy",0);return Lt(t,p),t.calcIntersect=function(g,x){const C=g.width/2;return kt.circle(g,C,x)},t.intersect=function(g){return st.info("Circle intersect",t,f,g),kt.circle(t,f,g)},a}v(xy,"circle");function vT(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},c={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${c.x},${c.y}
296
+ M ${n.x},${n.y} L ${s.x},${s.y}`}v(vT,"createLine");function wT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",Nt(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,c=St.svg(n),h=_t(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const u=c.circle(0,0,a*2,h),f=vT(a),p=c.path(f,h),m=n.insert(()=>u,":first-child");return m.insert(()=>p),m.attr("class","outer-path"),s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),Lt(t,m),t.intersect=function(g){return st.info("crossedCircle intersect",t,{radius:a,point:g}),kt.circle(t,a,g)},n}v(wT,"crossedCircle");function dn(e,t,r,i=100,n=0,a=180){const s=[],c=n*Math.PI/180,f=(a*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:-g,y:-x})}return s}v(dn,"generateCirclePoints");async function ST(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await qt(e,t,Nt(t)),c=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,u=a.width+c,f=a.height+h,p=Math.max(5,f*.1),{cssStyles:m}=t,g=[...dn(u/2,-f/2,p,30,-90,0),{x:-u/2-p,y:p},...dn(u/2+p*2,-p,p,20,-180,-270),...dn(u/2+p*2,p,p,20,-90,-180),{x:-u/2-p,y:-f/2},...dn(u/2,f/2,p,20,0,90)],x=[{x:u/2,y:-f/2-p},{x:-u/2,y:-f/2-p},...dn(u/2,-f/2,p,20,-90,0),{x:-u/2-p,y:-p},...dn(u/2+u*.1,-p,p,20,-180,-270),...dn(u/2+u*.1,p,p,20,-90,-180),{x:-u/2-p,y:f/2},...dn(u/2,f/2,p,20,0,90),{x:-u/2,y:f/2+p},{x:u/2,y:f/2+p}],C=St.svg(n),k=_t(t,{fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=ie(g).replace("Z",""),_=C.path(T,k),I=ie(x),P=C.path(I,{...k}),A=n.insert("g",":first-child");return A.insert(()=>P,":first-child").attr("stroke-opacity",0),A.insert(()=>_,":first-child"),A.attr("class","text"),m&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${p}, 0)`),s.attr("transform",`translate(${-u/2+p-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Lt(t,A),t.intersect=function(E){return kt.polygon(t,x,E)},n}v(ST,"curlyBraceLeft");function pn(e,t,r,i=100,n=0,a=180){const s=[],c=n*Math.PI/180,f=(a*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:g,y:x})}return s}v(pn,"generateCirclePoints");async function TT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await qt(e,t,Nt(t)),c=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,u=a.width+(t.look==="neo"?c*2:c),f=a.height+(t.look==="neo"?h*2:h),p=Math.max(5,f*.1),{cssStyles:m}=t,g=[...pn(u/2,-f/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:f/2},...pn(u/2,f/2,p,20,0,90)],x=[{x:-u/2,y:-f/2-p},{x:u/2,y:-f/2-p},...pn(u/2,-f/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:f/2},...pn(u/2,f/2,p,20,0,90),{x:u/2,y:f/2+p},{x:-u/2,y:f/2+p}],C=St.svg(n),k=_t(t,{fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=ie(g).replace("Z",""),_=C.path(T,k),I=ie(x),P=C.path(I,{...k}),A=n.insert("g",":first-child");return A.insert(()=>P,":first-child").attr("stroke-opacity",0),A.insert(()=>_,":first-child"),A.attr("class","text"),m&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${-p}, 0)`),s.attr("transform",`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Lt(t,A),t.intersect=function(E){return kt.polygon(t,x,E)},n}v(TT,"curlyBraceRight");function er(e,t,r,i=100,n=0,a=180){const s=[],c=n*Math.PI/180,f=(a*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:-g,y:-x})}return s}v(er,"generateCirclePoints");async function _T(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await qt(e,t,Nt(t)),c=t.look==="neo"?18:t.padding??0,h=t.look==="neo"?12:t.padding??0,u=a.width+(t.look==="neo"?c*2:c),f=a.height+(t.look==="neo"?h*2:h),p=Math.max(5,f*.1),{cssStyles:m}=t,g=[...er(u/2,-f/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:-f/2},...er(u/2,f/2,p,20,0,90)],x=[...er(-u/2+p+p/2,-f/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,f/2,p,30,-180,-270)],C=[{x:u/2,y:-f/2-p},{x:-u/2,y:-f/2-p},...er(u/2,-f/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:f/2},...er(u/2,f/2,p,20,0,90),{x:-u/2,y:f/2+p},{x:u/2-p-p/2,y:f/2+p},...er(-u/2+p+p/2,-f/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,f/2,p,30,-180,-270)],k=St.svg(n),S=_t(t,{fill:"none"});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const _=ie(g).replace("Z",""),I=k.path(_,S),A=ie(x).replace("Z",""),E=k.path(A,S),W=ie(C),et=k.path(W,{...S}),M=n.insert("g",":first-child");return M.insert(()=>et,":first-child").attr("stroke-opacity",0),M.insert(()=>I,":first-child"),M.insert(()=>E,":first-child"),M.attr("class","text"),m&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${p-p/4}, 0)`),s.attr("transform",`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-f/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Lt(t,M),t.intersect=function(N){return kt.polygon(t,C,N)},n}v(_T,"curlyBraces");async function BT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,c=20,h=5,{shapeSvg:u,bbox:f}=await qt(e,t,Nt(t)),p=Math.max(c,(f.width+a*2)*1.25,(t==null?void 0:t.width)??0),m=Math.max(h,f.height+s*2,(t==null?void 0:t.height)??0),g=m/2,{cssStyles:x}=t,C=St.svg(u),k=_t(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=p,T=m,_=S-g,I=T/4,P=[{x:_,y:0},{x:I,y:0},{x:0,y:T/2},{x:I,y:T},{x:_,y:T},...Yl(-_,-T/2,g,50,270,90)],A=ie(P),E=C.path(A,k),W=u.insert(()=>E,":first-child");return W.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&W.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&W.selectChildren("path").attr("style",i),W.attr("transform",`translate(${-p/2}, ${-m/2})`),Lt(t,W),t.intersect=function(et){return kt.polygon(t,P,et)},u}v(BT,"curvedTrapezoid");var vj=v((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),wj=v((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Sj=v((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),mk=8,yk=8;async function LT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?24:n,s=t.look==="neo"?24:n;if(t.width||t.height){const k=t.width??0;t.width=(t.width??0)-s,t.width<yk&&(t.width=yk);const T=k/2/(2.5+k/50);t.height=(t.height??0)-a-T*3,t.height<mk&&(t.height=mk)}const{shapeSvg:c,bbox:h,label:u}=await qt(e,t,Nt(t)),f=(t.width?t.width:h.width)+s,p=f/2,m=p/(2.5+f/50),g=(t.height?t.height:h.height)+a+m;let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=St.svg(c),S=wj(0,0,f,g,p,m),T=Sj(0,m,f,g,p,m),_=_t(t,{}),I=k.path(S,_),P=k.path(T,_t(t,{fill:"none"}));x=c.insert(()=>P,":first-child"),x=c.insert(()=>I,":first-child"),x.attr("class","basic label-container"),C&&x.attr("style",C)}else{const k=vj(0,0,f,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(${-f/2}, ${-(g/2+m)})`),Lt(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 S=kt.rect(t,k),T=S.x-(t.x??0);if(p!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(S.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&&(_=-_),S.y+=_}return S},c}v(LT,"cylinder");async function ET(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=c.width+n,f=c.height+a,p=f*.2,m=-u/2,g=-f/2-p/2,{cssStyles:x}=t,C=St.svg(s),k=_t(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=[{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(S.map(I=>[I.x,I.y]),k),_=s.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))})`),Lt(t,_),t.intersect=function(I){return kt.rect(t,I)},s}v(ET,"dividedRectangle");async function FT(e,t){var g,x;const{labelStyles:r,nodeStyles:i}=Bt(t),n=t.look==="neo"?12:5;t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=(t!=null&&t.width?(t==null?void 0:t.width)/2:h.width/2)+(s??0),f=u-n;let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const C=St.svg(c),k=_t(t,{roughness:.2,strokeWidth:2.5}),S=_t(t,{roughness:.2,strokeWidth:1.5}),T=C.circle(0,0,u*2,k),_=C.circle(0,0,f*2,S);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",f).attr("cx",0).attr("cy",0)}return Lt(t,p),t.intersect=function(C){return st.info("DoubleCircle intersect",t,u,C),kt.circle(t,u,C)},c}v(FT,"doublecircle");function AT(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Bt(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",Nt(t)).attr("id",t.domId??t.id),s=7,{cssStyles:c}=t,h=St.svg(a),{nodeBorder:u}=r,f=_t(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(f.roughness=0);const p=h.circle(0,0,s*2,f),m=a.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),Lt(t,m),t.intersect=function(g){return st.info("filledCircle intersect",t,{radius:s,point:g}),kt.circle(t,s,g)},a}v(AT,"filledCircle");var xk=10,Ck=10;async function MT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<xk&&(t.height=xk),t.width=((t==null?void 0:t.width)??0)-a-a/2,t.width<Ck&&(t.width=Ck));const{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(a??0),f=t!=null&&t.height?t==null?void 0:t.height:u+c.height,p=f,m=[{x:0,y:-f},{x:p,y:-f},{x:p/2,y:0}],{cssStyles:g}=t,x=St.svg(s),C=_t(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=ie(m),S=x.path(k,C),T=s.insert(()=>S,":first-child").attr("transform",`translate(${-f/2}, ${f/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=f,Lt(t,T),h.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-f/2+(t.padding??0)/2+(c.y-(c.top??0))})`),t.intersect=function(_){return st.info("Triangle intersect",t,m,_),kt.polygon(t,m,_)},s}v(MT,"flippedTriangle");function IT(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=Bt(t);t.label="";const s=e.insert("g").attr("class",Nt(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 f=-1*h/2,p=-1*u/2,m=St.svg(s),g=_t(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=m.rectangle(f,p,h,u,g),C=s.insert(()=>x,":first-child");c&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",c),a&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",a),Lt(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(S){return kt.rect(t,S)},s}v(IT,"forkJoin");async function PT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=15,a=10,s=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<a&&(t.height=a),t.width=((t==null?void 0:t.width)??0)-s*2,t.width<n&&(t.width=n));const{shapeSvg:h,bbox:u}=await qt(e,t,Nt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,u.width))+s*2,p=(t!=null&&t.height?t==null?void 0:t.height:Math.max(a,u.height))+c*2,m=p/2,{cssStyles:g}=t,x=St.svg(h),C=_t(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-f/2,y:-p/2},{x:f/2-m,y:-p/2},...Yl(-f/2+m,0,m,50,90,270),{x:f/2-m,y:p/2},{x:-f/2,y:p/2}],S=ie(k),T=x.path(S,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),Lt(t,_),t.intersect=function(I){return st.info("Pill intersect",t,{radius:m,point:I}),kt.polygon(t,k,I)},h}v(PT,"halfRoundedRectangle");var Tj=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 OT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const a=t.padding??0,s=70,c=32,h=t.look==="neo"?s:a,u=t.look==="neo"?c:a;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:f,bbox:p}=await qt(e,t,Nt(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:S}=t;if(t.look==="handDrawn"){const T=St.svg(f),_=_t(t,{}),I=Tj(0,0,x,m,g),P=T.path(I,_);k=f.insert(()=>P,":first-child").attr("transform",`translate(${-x/2}, ${m/2})`),S&&k.attr("style",S)}else k=wn(f,x,m,C);return i&&k.attr("style",i),t.width=x,t.height=m,Lt(t,k),t.intersect=function(T){return kt.polygon(t,C,T)},f}v(OT,"hexagon");async function DT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await qt(e,t,Nt(t)),a=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:c}=t,h=St.svg(n),u=_t(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],p=ie(f),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(${-a/2}, ${-s/2})`),Lt(t,g),t.intersect=function(x){return st.info("Pill intersect",t,{points:f}),kt.polygon(t,f,x)},n}v(DT,"hourglass");async function RT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Bt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(a,s),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:f,label:p}=await qt(e,t,"icon-shape default"),m=t.pos==="t",g=c,x=c,{nodeBorder:C}=r,{stylesMap:k}=cs(t),S=-x/2,T=-g/2,_=t.label?8:0,I=St.svg(u),P=_t(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");const A=I.rectangle(S,T,x,g,P),E=Math.max(x,f.width),W=g+f.height+_,et=I.rectangle(-E/2,-W/2,E,W,{...P,fill:"transparent",stroke:"none"}),M=u.insert(()=>A,":first-child"),N=u.insert(()=>et);if(t.icon){const J=u.append("g");J.html(`<g>${await lc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const nt=J.node().getBBox(),V=nt.width,j=nt.height,q=nt.x,G=nt.y;J.attr("transform",`translate(${-V/2-q},${m?f.height/2+_/2-j/2-G:-f.height/2-_/2-j/2-G})`),J.attr("style",`color: ${k.get("stroke")??C};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-W/2:W/2-f.height})`),M.attr("transform",`translate(0,${m?f.height/2+_/2:-f.height/2-_/2})`),Lt(t,N),t.intersect=function(J){if(st.info("iconSquare intersect",t,J),!t.label)return kt.rect(t,J);const nt=t.x??0,V=t.y??0,j=t.height??0;let q=[];return m?q=[{x:nt-f.width/2,y:V-j/2},{x:nt+f.width/2,y:V-j/2},{x:nt+f.width/2,y:V-j/2+f.height+_},{x:nt+x/2,y:V-j/2+f.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+f.height+_},{x:nt-f.width/2,y:V-j/2+f.height+_}]:q=[{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+f.width/2,y:V-j/2+g},{x:nt+f.width/2/2,y:V+j/2},{x:nt-f.width/2,y:V+j/2},{x:nt-f.width/2,y:V-j/2+g},{x:nt-x/2,y:V-j/2+g}],kt.polygon(t,q,J)},u}v(RT,"icon");async function $T(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Bt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(a,s),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:f,label:p}=await qt(e,t,"icon-shape default"),m=20,g=t.label?8:0,x=t.pos==="t",{nodeBorder:C,mainBkg:k}=r,{stylesMap:S}=cs(t),T=St.svg(u),_=_t(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const I=S.get("fill");_.stroke=I??k;const P=u.append("g");t.icon&&P.html(`<g>${await lc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const A=P.node().getBBox(),E=A.width,W=A.height,et=A.x,M=A.y,N=Math.max(E,W)*Math.SQRT2+m*2,J=T.circle(0,0,N,_),nt=Math.max(N,f.width),V=N+f.height+g,j=T.rectangle(-nt/2,-V/2,nt,V,{..._,fill:"transparent",stroke:"none"}),q=u.insert(()=>J,":first-child"),G=u.insert(()=>j);return P.attr("transform",`translate(${-E/2-et},${x?f.height/2+g/2-W/2-M:-f.height/2-g/2-W/2-M})`),P.attr("style",`color: ${S.get("stroke")??C};`),p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${x?-V/2:V/2-f.height})`),q.attr("transform",`translate(0,${x?f.height/2+g/2:-f.height/2-g/2})`),Lt(t,G),t.intersect=function(R){return st.info("iconSquare intersect",t,R),kt.rect(t,R)},u}v($T,"iconCircle");async function zT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Bt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(a,s),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:f,halfPadding:p,label:m}=await qt(e,t,"icon-shape default"),g=t.pos==="t",x=c+p*2,C=c+p*2,{nodeBorder:k,mainBkg:S}=r,{stylesMap:T}=cs(t),_=-C/2,I=-x/2,P=t.label?8:0,A=St.svg(u),E=_t(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const W=T.get("fill");E.stroke=W??S;const et=A.path(lo(_,I,C,x,5),E),M=Math.max(C,f.width),N=x+f.height+P,J=A.rectangle(-M/2,-N/2,M,N,{...E,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 lc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const q=j.node().getBBox(),G=q.width,R=q.height,K=q.x,F=q.y;j.attr("transform",`translate(${-G/2-K},${g?f.height/2+P/2-R/2-F:-f.height/2-P/2-R/2-F})`),j.attr("style",`color: ${T.get("stroke")??k};`)}return m.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-N/2:N/2-f.height})`),nt.attr("transform",`translate(0,${g?f.height/2+P/2:-f.height/2-P/2})`),Lt(t,V),t.intersect=function(j){if(st.info("iconSquare intersect",t,j),!t.label)return kt.rect(t,j);const q=t.x??0,G=t.y??0,R=t.height??0;let K=[];return g?K=[{x:q-f.width/2,y:G-R/2},{x:q+f.width/2,y:G-R/2},{x:q+f.width/2,y:G-R/2+f.height+P},{x:q+C/2,y:G-R/2+f.height+P},{x:q+C/2,y:G+R/2},{x:q-C/2,y:G+R/2},{x:q-C/2,y:G-R/2+f.height+P},{x:q-f.width/2,y:G-R/2+f.height+P}]:K=[{x:q-C/2,y:G-R/2},{x:q+C/2,y:G-R/2},{x:q+C/2,y:G-R/2+x},{x:q+f.width/2,y:G-R/2+x},{x:q+f.width/2/2,y:G+R/2},{x:q-f.width/2,y:G+R/2},{x:q-f.width/2,y:G-R/2+x},{x:q-C/2,y:G-R/2+x}],kt.polygon(t,K,j)},u}v(zT,"iconRounded");async function NT(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Bt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(a,s),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,h??0);const{shapeSvg:u,bbox:f,halfPadding:p,label:m}=await qt(e,t,"icon-shape default"),g=t.pos==="t",x=c+p*2,C=c+p*2,{nodeBorder:k,mainBkg:S}=r,{stylesMap:T}=cs(t),_=-C/2,I=-x/2,P=t.label?8:0,A=St.svg(u),E=_t(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const W=T.get("fill");E.stroke=W??S;const et=A.path(lo(_,I,C,x,.1),E),M=Math.max(C,f.width),N=x+f.height+P,J=A.rectangle(-M/2,-N/2,M,N,{...E,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 lc(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const q=j.node().getBBox(),G=q.width,R=q.height,K=q.x,F=q.y;j.attr("transform",`translate(${-G/2-K},${g?f.height/2+P/2-R/2-F:-f.height/2-P/2-R/2-F})`),j.attr("style",`color: ${T.get("stroke")??k};`)}return m.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-N/2:N/2-f.height})`),nt.attr("transform",`translate(0,${g?f.height/2+P/2:-f.height/2-P/2})`),Lt(t,V),t.intersect=function(j){if(st.info("iconSquare intersect",t,j),!t.label)return kt.rect(t,j);const q=t.x??0,G=t.y??0,R=t.height??0;let K=[];return g?K=[{x:q-f.width/2,y:G-R/2},{x:q+f.width/2,y:G-R/2},{x:q+f.width/2,y:G-R/2+f.height+P},{x:q+C/2,y:G-R/2+f.height+P},{x:q+C/2,y:G+R/2},{x:q-C/2,y:G+R/2},{x:q-C/2,y:G-R/2+f.height+P},{x:q-f.width/2,y:G-R/2+f.height+P}]:K=[{x:q-C/2,y:G-R/2},{x:q+C/2,y:G-R/2},{x:q+C/2,y:G-R/2+x},{x:q+f.width/2,y:G-R/2+x},{x:q+f.width/2/2,y:G+R/2},{x:q-f.width/2,y:G+R/2},{x:q-f.width/2,y:G-R/2+x},{x:q-C/2,y:G-R/2+x}],kt.polygon(t,K,j)},u}v(NT,"iconSquare");async function jT(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:s}=Bt(t);t.labelStyle=s;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,f=t.constraint==="on"?u/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(u,c??0);const{shapeSvg:p,bbox:m,label:g}=await qt(e,t,"image-shape default"),x=t.pos==="t",C=-u/2,k=-f/2,S=t.label?8:0,T=St.svg(p),_=_t(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const I=T.rectangle(C,k,u,f,_),P=Math.max(u,m.width),A=f+m.height+S,E=T.rectangle(-P/2,-A/2,P,A,{..._,fill:"none",stroke:"none"}),W=p.insert(()=>I,":first-child"),et=p.insert(()=>E);if(t.img){const M=p.append("image");M.attr("href",t.img),M.attr("width",u),M.attr("height",f),M.attr("preserveAspectRatio","none"),M.attr("transform",`translate(${-u/2},${x?A/2-f:-A/2})`)}return g.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-f/2-m.height/2-S/2:f/2-m.height/2+S/2})`),W.attr("transform",`translate(0,${x?m.height/2+S/2:-m.height/2-S/2})`),Lt(t,et),t.intersect=function(M){if(st.info("iconSquare intersect",t,M),!t.label)return kt.rect(t,M);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+S},{x:N+u/2,y:J-nt/2+m.height+S},{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+S},{x:N-m.width/2,y:J-nt/2+m.height+S}]: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+f},{x:N+m.width/2,y:J-nt/2+f},{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+f},{x:N-u/2,y:J-nt/2+f}],kt.polygon(t,V,M)},p}v(jT,"imageSquare");async function qT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=Math.max(h.width+(s??0)*2,(t==null?void 0:t.width)??0),f=Math.max(h.height+(a??0)*2,(t==null?void 0:t.height)??0),p=[{x:0,y:0},{x:u,y:0},{x:u+3*f/6,y:-f},{x:-3*f/6,y:-f}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=St.svg(c),C=_t(t,{}),k=ie(p),S=x.path(k,C);m=c.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${f/2})`),g&&m.attr("style",g)}else m=wn(c,u,f,p);return i&&m.attr("style",i),t.width=u,t.height=f,Lt(t,m),t.intersect=function(x){return kt.polygon(t,p,x)},c}v(qT,"inv_trapezoid");async function hc(e,t,r){const{labelStyles:i,nodeStyles:n}=Bt(t);t.labelStyle=i;const{shapeSvg:a,bbox:s}=await qt(e,t,Nt(t)),c=Math.max(s.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),h=Math.max(s.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),u=-c/2,f=-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=St.svg(a),k=_t(t,{}),S=m||g?C.path(lo(u,f,c,h,m||0),k):C.rectangle(u,f,c,h,k);p=a.insert(()=>S,":first-child"),p.attr("class","basic label-container").attr("style",Xe(x))}else p=a.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",f).attr("width",c).attr("height",h);return Lt(t,p),t.calcIntersect=function(C,k){return kt.rect(C,k)},t.intersect=function(C){return kt.rect(t,C)},a}v(hc,"drawRect");async function WT(e,t){const{shapeSvg:r,bbox:i,label:n}=await qt(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Lt(t,a),t.intersect=function(h){return kt.rect(t,h)},r}v(WT,"labelRect");async function HT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=((t==null?void 0:t.height)??h.height)+a,f=((t==null?void 0:t.width)??h.width)+s,p=[{x:0,y:0},{x:f+3*u/6,y:0},{x:f,y:-u},{x:-(3*u)/6,y:-u}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=St.svg(c),C=_t(t,{}),k=ie(p),S=x.path(k,C);m=c.insert(()=>S,":first-child").attr("transform",`translate(${-f/2}, ${u/2})`),g&&m.attr("style",g)}else m=wn(c,f,u,p);return i&&m.attr("style",i),t.width=f,t.height=u,Lt(t,m),t.intersect=function(x){return kt.polygon(t,p,x)},c}v(HT,"lean_left");async function UT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=((t==null?void 0:t.height)??h.height)+a,f=((t==null?void 0:t.width)??h.width)+s,p=[{x:-3*u/6,y:0},{x:f,y:0},{x:f+3*u/6,y:-u},{x:0,y:-u}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=St.svg(c),C=_t(t,{}),k=ie(p),S=x.path(k,C);m=c.insert(()=>S,":first-child").attr("transform",`translate(${-f/2}, ${u/2})`),g&&m.attr("style",g)}else m=wn(c,f,u,p);return i&&m.attr("style",i),t.width=f,t.height=u,Lt(t,m),t.intersect=function(x){return kt.polygon(t,p,x)},c}v(UT,"lean_right");function VT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",Nt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=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:s,y:0},{x:0,y:c+h/2},{x:s-2*h,y:c+h/2},{x:0,y:2*c},{x:s,y:c-h/2},{x:2*h,y:c-h/2}],f=St.svg(n),p=_t(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=ie(u),g=f.path(m,p),x=n.insert(()=>g,":first-child");return x.attr("class","outer-path"),a&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${s/2},${-c})`),Lt(t,x),t.intersect=function(C){return st.info("lightningBolt intersect",t,C),kt.polygon(t,u,C)},n}v(VT,"lightningBolt");var _j=v((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Bj=v((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Lj=v((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),kk=10,bk=10;async function YT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?24:n;if(t.width||t.height){const S=t.width??0;t.width=(t.width??0)-a,t.width<bk&&(t.width=bk);const _=S/2/(2.5+S/50);t.height=(t.height??0)-s-_*3,t.height<kk&&(t.height=kk)}const{shapeSvg:c,bbox:h,label:u}=await qt(e,t,Nt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,p=f/2,m=p/(2.5+f/50),g=(t!=null&&t.height?t==null?void 0:t.height:h.height)+m+s*2,x=g*.1;let C;const{cssStyles:k}=t;if(t.look==="handDrawn"){const S=St.svg(c),T=Bj(0,0,f,g,p,m,x),_=Lj(0,m,f,g,p,m),I=_t(t,{}),P=S.path(T,I),A=S.path(_,I);c.insert(()=>A,":first-child").attr("class","line"),C=c.insert(()=>P,":first-child"),C.attr("class","basic label-container"),k&&C.attr("style",k)}else{const S=_j(0,0,f,g,p,m,x);C=c.insert("path",":first-child").attr("d",S).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(${-f/2}, ${-(g/2+m)})`),Lt(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(S){const T=kt.rect(t,S),_=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 I=m*m*(1-_*_/(p*p));I>0&&(I=Math.sqrt(I)),I=m-I,S.y-(t.y??0)>0&&(I=-I),T.y+=I}return T},c}v(YT,"linedCylinder");async function GT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;if(t.width||t.height){const I=t.width;t.width=(I??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10)}const{shapeSvg:c,bbox:h,label:u}=await qt(e,t,Nt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(a??0)*2,p=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(s??0)*2,m=t.look==="neo"?p/4:p/8,g=p+m,{cssStyles:x}=t,C=St.svg(c),k=_t(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=[{x:-f/2-f/2*.1,y:-g/2},{x:-f/2-f/2*.1,y:g/2},...oo(-f/2-f/2*.1,g/2,f/2+f/2*.1,g/2,m,.8),{x:f/2+f/2*.1,y:-g/2},{x:-f/2-f/2*.1,y:-g/2},{x:-f/2,y:-g/2},{x:-f/2,y:g/2*1.1},{x:-f/2,y:-g/2}],T=C.polygon(S.map(I=>[I.x,I.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(${-f/2+(t.padding??0)+f/2*.1/2-(h.x-(h.left??0))},${-p/2+(t.padding??0)-m/2-(h.y-(h.top??0))})`),Lt(t,_),t.intersect=function(I){return kt.polygon(t,S,I)},c}v(GT,"linedWaveEdgedRect");async function XT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=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)-a*2-2*c,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-2*c,10));const{shapeSvg:h,bbox:u,label:f}=await qt(e,t,Nt(t)),p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+a*2+2*c,m=(t!=null&&t.height?t==null?void 0:t.height:u.height)+s*2+2*c,g=p-2*c,x=m-2*c,C=-g/2,k=-x/2,{cssStyles:S}=t,T=St.svg(h),_=_t(t,{}),I=[{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}],P=[{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 A=ie(I);let E=T.path(A,_);const W=ie(P);let et=T.path(W,_);t.look!=="handDrawn"&&(E=Wg(E),et=Wg(et));const M=h.insert("g",":first-child");return M.insert(()=>E),M.insert(()=>et),M.attr("class","basic label-container outer-path"),S&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",S),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),f.attr("transform",`translate(${-(u.width/2)-c-(u.x-(u.left??0))}, ${-(u.height/2)+c-(u.y-(u.top??0))})`),Lt(t,M),t.intersect=function(N){return kt.polygon(t,I,N)},h}v(XT,"multiRect");async function QT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await qt(e,t,Nt(t)),c=t.padding??0,h=t.look==="neo"?16:c,u=t.look==="neo"?12:c;let f=!0;(t.width||t.height)&&(f=!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(a.width,(t==null?void 0:t.width)??0)+h*2,m=Math.max(a.height,(t==null?void 0:t.height)??0)+u*3,g=t.look==="neo"?m/4:m/8,x=m+(f?g/2:-g/2),C=-p/2,k=-x/2,S=10,{cssStyles:T}=t,_=oo(C-S,k+x+S,C+p-S,k+x+S,g,.8),I=_==null?void 0:_[_.length-1],P=[{x:C-S,y:k+S},{x:C-S,y:k+x+S},..._,{x:C+p-S,y:I.y-S},{x:C+p,y:I.y-S},{x:C+p,y:I.y-2*S},{x:C+p+S,y:I.y-2*S},{x:C+p+S,y:k-S},{x:C+S,y:k-S},{x:C+S,y:k},{x:C,y:k},{x:C,y:k+S}],A=[{x:C,y:k+S},{x:C+p-S,y:k+S},{x:C+p-S,y:I.y-S},{x:C+p,y:I.y-S},{x:C+p,y:k},{x:C,y:k}],E=St.svg(n),W=_t(t,{});t.look!=="handDrawn"&&(W.roughness=0,W.fillStyle="solid");const et=ie(P),M=E.path(et,W),N=ie(A),J=E.path(N,W),nt=n.insert(()=>M,":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})`),s.attr("transform",`translate(${-(a.width/2)-S-(a.x-(a.left??0))}, ${-(a.height/2)+S-g/2-(a.y-(a.top??0))})`),Lt(t,nt),t.intersect=function(V){return kt.polygon(t,P,V)},n}v(QT,"multiWaveEdgedRectangle");async function KT(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Bt(t);t.labelStyle=i,t.useHtmlLabels||wr(_e())||(t.centerLabel=!0);const{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=Math.max(c.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(c.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=-u/2,m=-f/2,{cssStyles:g}=t,x=St.svg(s),C=_t(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=x.rectangle(p,m,u,f,C),S=s.insert(()=>k,":first-child");return S.attr("class","basic label-container outer-path"),h.attr("class","label noteLabel"),g&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&S.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))})`),Lt(t,S),t.intersect=function(T){return kt.rect(t,T)},s}v(KT,"note");var Ej=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 ZT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await qt(e,t,Nt(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),h=s+c,u=.5,f=[{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=St.svg(n),x=_t(t,{}),C=Ej(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=wn(n,h,h,f),p.attr("transform",`translate(${-h/2+u}, ${h/2})`);return i&&p.attr("style",i),Lt(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}],S=kt.polygon(g,k,x);return{x:S.x-.5,y:S.y-.5}},t.intersect=function(g){return this.calcIntersect(t,g)},n}v(ZT,"question");async function JT(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?21:n??0,s=t.look==="neo"?12:n??0,{shapeSvg:c,bbox:h,label:u}=await qt(e,t,Nt(t)),f=((t==null?void 0:t.width)??h.width)+(t.look==="neo"?a*2:a),p=((t==null?void 0:t.height)??h.height)+(t.look==="neo"?s*2:s),m=-f/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,S=St.svg(c),T=_t(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const _=ie(C),I=S.path(_,T),P=c.insert(()=>I,":first-child");return P.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),P.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))})`),Lt(t,P),t.intersect=function(A){return kt.polygon(t,C,A)},c}v(JT,"rect_left_inv_arrow");async function t_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("g"),c=a.insert("g").attr("class","label").attr("style",i),h=t.description,u=t.label,f=await Zn(c,u,t.labelStyle,!0,!0);let p={width:0,height:0};if(wr(ce())){const W=f.children[0],et=Qt(f);p=W.getBoundingClientRect(),et.attr("width",p.width),et.attr("height",p.height)}st.info("Text 2",h);const m=h||[],g=f.getBBox(),x=await Zn(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 S=(t.padding||0)/2;Qt(x).attr("transform","translate( "+(p.width>g.width?0:(g.width-p.width)/2)+", "+(g.height+S+5)+")"),Qt(f).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-S+3)+")");const T=p.width+(t.padding||0),_=p.height+(t.padding||0),I=-p.width/2-S,P=-p.height/2-S;let A,E;if(t.look==="handDrawn"){const W=St.svg(a),et=_t(t,{}),M=W.path(lo(I,P,T,_,t.rx||0),et),N=W.line(-p.width/2-S,-p.height/2-S+g.height+S,p.width/2+S,-p.height/2-S+g.height+S,et);E=a.insert(()=>(st.debug("Rough node insert CXC",M),N),":first-child"),A=a.insert(()=>(st.debug("Rough node insert CXC",M),M),":first-child")}else A=s.insert("rect",":first-child"),E=s.insert("line"),A.attr("class","outer title-state").attr("style",i).attr("x",-p.width/2-S).attr("y",-p.height/2-S).attr("width",p.width+(t.padding||0)).attr("height",p.height+(t.padding||0)),E.attr("class","divider").attr("x1",-p.width/2-S).attr("x2",p.width/2+S).attr("y1",-p.height/2-S+g.height+S).attr("y2",-p.height/2-S+g.height+S);return Lt(t,A),t.intersect=function(W){return kt.rect(t,W)},a}v(t_,"rectWithTitle");async function e_(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 hc(e,t,n)}v(e_,"roundedRect");var _o=8;async function r_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=((t==null?void 0:t.width)??c.width)+n*2+(t.look==="neo"?_o:_o*2),f=((t==null?void 0:t.height)??c.height)+a*2,p=u-_o,m=f,g=_o-u/2,x=-f/2,{cssStyles:C}=t,k=St.svg(s),S=_t(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const T=[{x:g,y:x},{x:g+p,y:x},{x:g+p,y:x+m},{x:g-_o,y:x+m},{x:g-_o,y:x},{x:g,y:x},{x:g,y:x+m}],_=k.polygon(T.map(P=>[P.x,P.y]),S),I=s.insert(()=>_,":first-child");return I.attr("class","basic label-container outer-path").attr("style",Xe(C)),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),C&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),h.attr("transform",`translate(${_o/2-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),Lt(t,I),t.intersect=function(P){return kt.rect(t,P)},s}v(r_,"shadedProcess");async function i_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-s*2,10));const{shapeSvg:c,bbox:h,label:u}=await qt(e,t,Nt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,p=((t!=null&&t.height?t==null?void 0:t.height:h.height)+s*2)*1.5,m=f,g=p/1.5,x=-m/2,C=-g/2,{cssStyles:k}=t,S=St.svg(c),T=_t(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}],I=ie(_),P=S.path(I,T),A=c.insert(()=>P,":first-child");return A.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",k),i&&t.look!=="handDrawn"&&A.selectChildren("path").attr("style",i),A.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))})`),Lt(t,A),t.intersect=function(E){return kt.polygon(t,_,E)},c}v(i_,"slopedRect");async function n_(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return hc(e,t,a)}v(n_,"squareRect");async function o_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?20:n,s=t.look==="neo"?12:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=h.height+(t.look==="neo"?s*2:s),f=h.width+u/4+(t.look==="neo"?a*2:a),p=u/2,{cssStyles:m}=t,g=St.svg(c),x=_t(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-f/2+p,y:-u/2},{x:f/2-p,y:-u/2},...Yl(-f/2+p,0,p,50,90,270),{x:f/2-p,y:u/2},...Yl(f/2-p,0,p,50,270,450)],k=ie(C),S=g.path(k,x),T=c.insert(()=>S,":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),Lt(t,T),t.intersect=function(_){return kt.polygon(t,C,_)},c}v(o_,"stadium");async function a_(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return hc(e,t,r)}v(a_,"state");function s_(e,t,{config:{themeVariables:r}}){var T,_;const{labelStyles:i,nodeStyles:n}=Bt(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:s,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 f=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),p=St.svg(f),m=_t(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=p.circle(0,0,t.width,{...m,stroke:s,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"}),S=f.insert(()=>g,":first-child");if(S.insert(()=>k),t.look!=="handDrawn"&&S.attr("class","outer-path"),a&&S.selectAll("path").attr("style",a),n&&S.selectAll("path").attr("style",n),t.width<25&&u&&t.look!=="handDrawn"){const I=((_=(T=e.node())==null?void 0:T.ownerSVGElement)==null?void 0:_.id)??"",P=I?`${I}-drop-shadow-small`:"drop-shadow-small";S.attr("style",`filter:url(#${P})`)}return Lt(t,S),t.intersect=function(I){return kt.circle(t,(t.width??0)/2,I)},f}v(s_,"stateEnd");function l_(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 a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s;if(t.look==="handDrawn"){const f=St.svg(a).circle(0,0,t.width,$N(i));s=a.insert(()=>f),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&n&&t.look!=="handDrawn"){const u=((h=(c=e.node())==null?void 0:c.ownerSVGElement)==null?void 0:h.id)??"",f=u?`${u}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${f})`)}return Lt(t,s),t.intersect=function(u){return kt.circle(t,(t.width??7)/2,u)},a}v(l_,"stateStart");var Ta=8;async function c_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,a=t.look==="neo"?28:n,s=t.look==="neo"?12:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=((t==null?void 0:t.width)??h.width)+2*Ta+a,f=((t==null?void 0:t.height)??h.height)+s,p=u-2*Ta,m=f,g=-u/2,x=-f/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=St.svg(c),S=_t(t,{}),T=k.rectangle(g,x,p+16,m,S),_=k.line(g+Ta,x,g+Ta,x+m,S),I=k.line(g+Ta+p,x,g+Ta+p,x+m,S);c.insert(()=>_,":first-child"),c.insert(()=>I,":first-child");const P=c.insert(()=>T,":first-child"),{cssStyles:A}=t;P.attr("class","basic label-container").attr("style",Xe(A)),Lt(t,P)}else{const k=wn(c,p,m,C);i&&k.attr("style",i),Lt(t,k)}return t.intersect=function(k){return kt.polygon(t,C,k)},c}v(c_,"subroutine");var Rp=.2;async function h_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-s*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-Rp*(t.height+s*2),10));const{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=(t!=null&&t.height?t==null?void 0:t.height:h.height)+s*2,f=Rp*u,p=Rp*u,g=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2+f-f,x=u,C=-g/2,k=-x/2,{cssStyles:S}=t,T=St.svg(c),_=_t(t,{}),I=[{x:C-f/2,y:k},{x:C+g+f/2,y:k},{x:C+g+f/2,y:k+x},{x:C-f/2,y:k+x}],P=[{x:C+g-f/2,y:k+x},{x:C+g+f/2,y:k+x},{x:C+g+f/2,y:k+x-p}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const A=ie(I),E=T.path(A,_),W=ie(P),et=T.path(W,{..._,fillStyle:"solid"}),M=c.insert(()=>et,":first-child");return M.insert(()=>E,":first-child"),M.attr("class","basic label-container outer-path"),S&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",S),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),Lt(t,M),t.intersect=function(N){return kt.polygon(t,I,N)},c}v(h_,"taggedRect");async function u_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await qt(e,t,Nt(t)),c=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=h/8,f=.2*c,p=.2*h,m=h+u,{cssStyles:g}=t,x=St.svg(n),C=_t(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-c/2-c/2*.1,y:m/2},...oo(-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}],S=-c/2+c/2*.1,T=-m/2-p*.4,_=[{x:S+c-f,y:(T+h)*1.3},{x:S+c,y:T+h-p},{x:S+c,y:(T+h)*.9},...oo(S+c,(T+h)*1.25,S+c-f,(T+h)*1.3,-h*.02,.5)],I=ie(k),P=x.path(I,C),A=ie(_),E=x.path(A,{...C,fillStyle:"solid"}),W=n.insert(()=>E,":first-child");return W.insert(()=>P,":first-child"),W.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",i),W.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-c/2+(t.padding??0)-(a.x-(a.left??0))},${-h/2+(t.padding??0)-u/2-(a.y-(a.top??0))})`),Lt(t,W),t.intersect=function(et){return kt.polygon(t,k,et)},n}v(u_,"taggedWaveEdgedRectangle");async function f_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await qt(e,t,Nt(t)),s=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)||0),c=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)||0),h=-s/2,u=-c/2,f=n.insert("rect",":first-child");return f.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",h).attr("y",u).attr("width",s).attr("height",c),Lt(t,f),t.intersect=function(p){return kt.rect(t,p)},n}v(f_,"text");var Fj=v((e,t,r,i,n,a)=>`M${e},${t}
297
+ a${n},${a} 0,0,1 0,${-i}
298
+ l${r},0
299
+ a${n},${a} 0,0,1 0,${i}
300
+ M${r},${-i}
301
+ a${n},${a} 0,0,0 0,${i}
302
+ l${-r},0`,"createCylinderPathD"),Aj=v((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),Mj=v((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),vk=5,wk=10;async function d_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?12:n/2;if(t.width||t.height){const C=t.height??0;t.height=(t.height??0)-a,t.height<vk&&(t.height=vk);const S=C/2/(2.5+C/50);t.width=(t.width??0)-a-S*3,t.width<wk&&(t.width=wk)}const{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=(t.height?t.height:c.height)+a,f=u/2,p=f/(2.5+u/50),m=(t.width?t.width:c.width)+p+a,{cssStyles:g}=t;let x;if(t.look==="handDrawn"){const C=St.svg(s),k=Aj(0,0,m,u,p,f),S=Mj(0,0,m,u,p,f),T=C.path(k,_t(t,{})),_=C.path(S,_t(t,{fill:"none"}));x=s.insert(()=>_,":first-child"),x=s.insert(()=>T,":first-child"),x.attr("class","basic label-container"),g&&x.attr("style",g)}else{const C=Fj(0,0,m,u,p,f);x=s.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))})`),Lt(t,x),t.intersect=function(C){const k=kt.rect(t,C),S=k.y-(t.y??0);if(f!=0&&(Math.abs(S)<(t.height??0)/2||Math.abs(S)==(t.height??0)/2&&Math.abs(k.x-(t.x??0))>(t.width??0)/2-p)){let T=p*p*(1-S*S/(f*f));T!=0&&(T=Math.sqrt(Math.abs(T))),T=p-T,C.x-(t.x??0)>0&&(T=-T),k.x+=T}return k},s}v(d_,"tiltedCylinder");async function p_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=(t.look==="neo",n),s=t.look==="neo"?n*2:n,{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=((t==null?void 0:t.height)??h.height)+a,f=((t==null?void 0:t.width)??h.width)+s,p=[{x:-3*u/6,y:0},{x:f+3*u/6,y:0},{x:f,y:-u},{x:0,y:-u}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=St.svg(c),C=_t(t,{}),k=ie(p),S=x.path(k,C);m=c.insert(()=>S,":first-child").attr("transform",`translate(${-f/2}, ${u/2})`),g&&m.attr("style",g)}else m=wn(c,f,u,p);return i&&m.attr("style",i),t.width=f,t.height=u,Lt(t,m),t.intersect=function(x){return kt.polygon(t,p,x)},c}v(p_,"trapezoid");async function g_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,c=15,h=5;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.height<h&&(t.height=h),t.width=(t.width??0)-a*2,t.width<c&&(t.width=c));const{shapeSvg:u,bbox:f}=await qt(e,t,Nt(t)),p=(t!=null&&t.width?t==null?void 0:t.width:f.width)+a*2,m=(t!=null&&t.height?t==null?void 0:t.height:f.height)+s*2,{cssStyles:g}=t,x=St.svg(u),C=_t(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}],S=ie(k),T=x.path(S,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),Lt(t,_),t.intersect=function(I){return kt.polygon(t,k,I)},u}v(g_,"trapezoidalPentagon");var Sk=10,Tk=10;async function m_(e,t){var I;const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-a)/2,t.width<Tk&&(t.width=Tk),t.height=(t==null?void 0:t.height)??0,t.height<Sk&&(t.height=Sk));const{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=kn((I=ce().flowchart)==null?void 0:I.htmlLabels),f=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a,p=t!=null&&t.height?t==null?void 0:t.height:f+c.height,m=p,g=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-p}],{cssStyles:x}=t,C=St.svg(s),k=_t(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=ie(g),T=C.path(S,k),_=s.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=f,t.height=p,Lt(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(P){return st.info("Triangle intersect",t,g,P),kt.polygon(t,g,P)},s}v(m_,"triangle");async function y_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;let c=!0;(t.width||t.height)&&(c=!1,t.width=((t==null?void 0:t.width)??0)-a*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10));const{shapeSvg:h,bbox:u,label:f}=await qt(e,t,Nt(t)),p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+(a??0)*2,m=(t!=null&&t.height?t==null?void 0:t.height:u.height)+(s??0)*2,g=t.look==="neo"?m/4:m/8,x=m+(c?g:-g),{cssStyles:C}=t,S=14-p,T=S>0?S/2:0,_=St.svg(h),I=_t(t,{});t.look!=="handDrawn"&&(I.roughness=0,I.fillStyle="solid");const P=[{x:-p/2-T,y:x/2},...oo(-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}],A=ie(P),E=_.path(A,I),W=h.insert(()=>E,":first-child");return W.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",i),W.attr("transform",`translate(0,${-g/2})`),f.attr("transform",`translate(${-p/2+(t.padding??0)-(u.x-(u.left??0))},${-m/2+(t.padding??0)-g-(u.y-(u.top??0))})`),Lt(t,W),t.intersect=function(et){return kt.polygon(t,P,et)},h}v(y_,"waveEdgedRectangle");async function x_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?20:n;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const I=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-I*(20/9)),t.width=t.width-a*2}const{shapeSvg:c,bbox:h}=await qt(e,t,Nt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+a*2,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+s,p=f/8,m=f+p*2,{cssStyles:g}=t,x=St.svg(c),C=_t(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-u/2,y:m/2},...oo(-u/2,m/2,u/2,m/2,p,1),{x:u/2,y:-m/2},...oo(u/2,-m/2,-u/2,-m/2,p,-1)],S=ie(k),T=x.path(S,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),Lt(t,_),t.intersect=function(I){return kt.polygon(t,k,I)},c}v(x_,"waveRectangle");var Ae=10;async function C_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-Ae,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-Ae,10));const{shapeSvg:s,bbox:c,label:h}=await qt(e,t,Nt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+n*2+Ae,f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+a*2+Ae,p=u-Ae,m=f-Ae,g=-p/2,x=-m/2,{cssStyles:C}=t,k=St.svg(s),S=_t(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"&&(S.roughness=0,S.fillStyle="solid");const I=k.path(_,S),P=s.insert(()=>I,":first-child");return P.attr("transform",`translate(${Ae/2}, ${Ae/2})`),P.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&P.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))})`),Lt(t,P),t.intersect=function(A){return kt.polygon(t,T,A)},s}v(C_,"windowPane");var _k=new Set(["redux-color","redux-dark-color"]),Ij=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Cy(e,t){var xt,Pt,Ft,Yt;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=_e(),{rowEven:a,rowOdd:s,nodeBorder:c,borderColorArray:h}=n;if(t.look==="handDrawn"){const{themeVariables:yt}=_e(),{background:It}=yt,oe={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${It}`]};await Cy(e,oe)}const u=_e();t.useHtmlLabels=u.htmlLabels;let f=((xt=u.er)==null?void 0:xt.diagramPadding)??10,p=((Pt=u.er)==null?void 0:Pt.entityPadding)??6;const{cssStyles:m}=t,{labelStyles:g,nodeStyles:x}=Bt(t);if(r.attributes.length===0&&t.label){const yt={rx:0,ry:0,labelPaddingX:f,labelPaddingY:f*1.5};xn(t.label,u)+yt.labelPaddingX*2<u.er.minEntityWidth&&(t.width=u.er.minEntityWidth);const It=await hc(e,t,yt);if(i!=null&&_k.has(i)){const oe=r.colorIndex??0;It.attr("data-color-id",`color-${oe%h.length}`)}if(!kn(u.htmlLabels)){const oe=It.select("text"),se=(Ft=oe.node())==null?void 0:Ft.getBBox();oe.attr("transform",`translate(${-se.width/2}, 0)`)}return It}u.htmlLabels||(f*=1.25,p*=1.25);let C=Nt(t);C||(C="node default");const k=e.insert("g").attr("class",C).attr("id",t.domId||t.id),S=await La(k,t.label??"",u,0,0,["name"],g);S.height+=p;let T=0;const _=[],I=[];let P=0,A=0,E=0,W=0,et=!0,M=!0;for(const yt of r.attributes){const It=await La(k,yt.type,u,0,T,["attribute-type"],g);P=Math.max(P,It.width+f);const oe=await La(k,yt.name,u,0,T,["attribute-name"],g);A=Math.max(A,oe.width+f);const se=await La(k,yt.keys.join(),u,0,T,["attribute-keys"],g);E=Math.max(E,se.width+f);const He=await La(k,yt.comment,u,0,T,["attribute-comment"],g);W=Math.max(W,He.width+f);const Be=Math.max(It.height,oe.height,se.height,He.height)+p;I.push({yOffset:T,rowHeight:Be}),T+=Be}let N=4;E<=f&&(et=!1,E=0,N--),W<=f&&(M=!1,W=0,N--);const J=k.node().getBBox();if(S.width+f*2-(P+A+E+W)>0){const yt=S.width+f*2-(P+A+E+W);P+=yt/N,A+=yt/N,E>0&&(E+=yt/N),W>0&&(W+=yt/N)}const nt=P+A+E+W,V=St.svg(k),j=_t(t,{});t.look!=="handDrawn"&&(j.roughness=0,j.fillStyle="solid");let q=0;I.length>0&&(q=I.reduce((yt,It)=>yt+((It==null?void 0:It.rowHeight)??0),0));const G=Math.max(J.width+f*2,(t==null?void 0:t.width)||0,nt),R=Math.max((q??0)+S.height,(t==null?void 0:t.height)||0),K=-G/2,F=-R/2;if(k.selectAll("g:not(:first-child)").each((yt,It,oe)=>{const se=Qt(oe[It]),He=se.attr("transform");let Be=0,Kr=0;if(He){const pr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(He);pr&&(Be=parseFloat(pr[1]),Kr=parseFloat(pr[2]),se.attr("class").includes("attribute-name")?Be+=P:se.attr("class").includes("attribute-keys")?Be+=P+A:se.attr("class").includes("attribute-comment")&&(Be+=P+A+E))}se.attr("transform",`translate(${K+f/2+Be}, ${Kr+F+S.height+p/2})`)}),k.select(".name").attr("transform","translate("+-S.width/2+", "+(F+p/2)+")"),i!=null&&_k.has(i)){const yt=r.colorIndex??0;k.attr("data-color-id",`color-${yt%h.length}`)}const z=V.rectangle(K,F,G,R,j),tt=k.insert(()=>z,":first-child").attr("class","outer-path").attr("style",m.join(""));_.push(0);for(const[yt,It]of I.entries()){const se=(yt+1)%2===0&&It.yOffset!==0,He=V.rectangle(K,S.height+F+(It==null?void 0:It.yOffset),G,It==null?void 0:It.rowHeight,{...j,fill:se?a:s,stroke:c});k.insert(()=>He,"g.label").attr("style",m.join("")).attr("class",`row-rect-${se?"even":"odd"}`)}const O=1e-4;let mt=Ea(K,S.height+F,G+K,S.height+F,O),dt=V.polygon(mt.map(yt=>[yt.x,yt.y]),j);if(k.insert(()=>dt).attr("class","divider"),mt=Ea(P+K,S.height+F,P+K,R+F,O),dt=V.polygon(mt.map(yt=>[yt.x,yt.y]),j),k.insert(()=>dt).attr("class","divider"),et){const yt=P+A+K;mt=Ea(yt,S.height+F,yt,R+F,O),dt=V.polygon(mt.map(It=>[It.x,It.y]),j),k.insert(()=>dt).attr("class","divider")}if(M){const yt=P+A+E+K;mt=Ea(yt,S.height+F,yt,R+F,O),dt=V.polygon(mt.map(It=>[It.x,It.y]),j),k.insert(()=>dt).attr("class","divider")}for(const yt of _){const It=S.height+F+yt;mt=Ea(K,It,G+K,It,O),dt=V.polygon(mt.map(oe=>[oe.x,oe.y]),j),k.insert(()=>dt).attr("class","divider")}if(Lt(t,tt),x&&t.look!=="handDrawn")if(i!=null&&Ij.has(i))k.selectAll("path").attr("style",x);else{const yt=x.split(";"),It=(Yt=yt==null?void 0:yt.filter(oe=>oe.includes("stroke")))==null?void 0:Yt.map(oe=>`${oe}`).join("; ");k.selectAll("path").attr("style",It??""),k.selectAll(".row-rect-even path").attr("style",x)}return t.intersect=function(yt){return kt.rect(t,yt)},k}v(Cy,"erBox");async function La(e,t,r,i=0,n=0,a=[],s=""){const c=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);t!==aC(t)&&(t=aC(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const h=c.node().appendChild(await vn(c,t,{width:xn(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let f=h.children[0];for(f.textContent=f.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");f.childNodes[0];)f=f.childNodes[0],f.textContent=f.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let u=h.getBBox();if(kn(r.htmlLabels)){const f=h.children[0];f.style.textAlign="start";const p=Qt(h);u=f.getBoundingClientRect(),p.attr("width",u.width),p.attr("height",u.height)}return u}v(La,"addText");function Ea(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(Ea,"lineToPolygon");async function k_(e,t,r,i,n=r.class.padding??12){const a=i?0:3,s=e.insert("g").attr("class",Nt(t)).attr("id",t.domId||t.id);let c=null,h=null,u=null,f=null,p=0,m=0,g=0;if(c=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const T=t.annotations[0];await vl(c,{text:`«${T}»`},0),p=c.node().getBBox().height}h=s.insert("g").attr("class","label-group text"),await vl(h,t,0,["font-weight: bolder"]);const x=h.node().getBBox();m=x.height,u=s.insert("g").attr("class","members-group text");let C=0;for(const T of t.members){const _=await vl(u,T,C,[T.parseClassifier()]);C+=_+a}g=u.node().getBBox().height,g<=0&&(g=n/2),f=s.insert("g").attr("class","methods-group text");let k=0;for(const T of t.methods){const _=await vl(f,T,k,[T.parseClassifier()]);k+=_+a}let S=s.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})`),S=s.node().getBBox(),u.attr("transform",`translate(0, ${p+m+n*2})`),S=s.node().getBBox(),f.attr("transform",`translate(0, ${p+m+(g?g+n*4:n*2)})`),S=s.node().getBBox(),{shapeSvg:s,bbox:S}}v(k_,"textHelper");async function vl(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=_e();let s="useHtmlLabels"in t?t.useHtmlLabels:kn(a.htmlLabels)??!0,c="";"text"in t?c=t.text:c=t.label,!s&&c.startsWith("\\")&&(c=c.substring(1)),Dl(c)&&(s=!0);const h=await vn(n,Lm(qo(c)),{width:xn(c,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let u,f=1;if(s){const p=h.children[0],m=Qt(h);f=p.innerHTML.split("<br>").length,p.innerHTML.includes("</math>")&&(f+=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 S(){var T;if(C.style.display="flex",C.style.flexDirection="column",x){const _=((T=a.fontSize)==null?void 0:T.toString())??window.getComputedStyle(document.body).fontSize,P=parseInt(_,10)*5+"px";C.style.minWidth=P,C.style.maxWidth=P}else C.style.width="100%";k(C)}v(S,"setupImage"),setTimeout(()=>{C.complete&&S()}),C.addEventListener("error",S),C.addEventListener("load",S)})))}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",""),f=h.children.length;const p=h.children[0];(h.textContent===""||h.textContent.includes("&gt"))&&(p.textContent=c[0]+c.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").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*f)+r)+")"),u.height}v(vl,"addText");async function b_(e,t){var V,j;const r=ce(),{themeVariables:i}=r,{useGradient:n}=i,a=r.class.padding??12,s=a,c=t.useHtmlLabels??kn(r.htmlLabels)??!0,h=t;h.annotations=h.annotations??[],h.members=h.members??[],h.methods=h.methods??[];const{shapeSvg:u,bbox:f}=await k_(e,t,r,c,s),{labelStyles:p,nodeStyles:m}=Bt(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=St.svg(u),k=_t(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=Math.max(t.width??0,f.width);let T=Math.max(t.height??0,f.height);const _=(t.height??0)>f.height;h.members.length===0&&h.methods.length===0?T+=s:h.members.length>0&&h.methods.length===0&&(T+=s*2);const I=-S/2,P=-T/2;let A=x?a*2:h.members.length===0&&h.methods.length===0?-a:0;_&&(A=a*2);const E=C.rectangle(I-a,P-a-(x?a:h.members.length===0&&h.methods.length===0?-a/2:0),S+2*a,T+2*a+A,k),W=u.insert(()=>E,":first-child");W.attr("class","basic label-container outer-path");const et=W.node().getBBox(),M=u.select(".annotation-group").node().getBBox().height-(x?a/2:0)||0,N=u.select(".label-group").node().getBBox().height-(x?a/2:0)||0,J=u.select(".members-group").node().getBBox().height-(x?a/2:0)||0,nt=(M+N+P+a-(P-a-(x?a:h.members.length===0&&h.methods.length===0?-a/2:0)))/2;if(u.selectAll(".text").each((q,G,R)=>{var mt,dt;const K=Qt(R[G]),F=K.attr("transform");let z=0;if(F){const Pt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);Pt&&(z=parseFloat(Pt[2]))}let tt=z+P+a-(x?a:h.members.length===0&&h.methods.length===0?-a/2:0);if(K.attr("class").includes("methods-group")){const xt=Math.max(J,s/2);_?tt=Math.max(nt,M+N+xt+P+s*2+a)+s*2:tt=M+N+xt+P+s*4+a}h.members.length===0&&h.methods.length===0&&((mt=r.class)!=null&&mt.hideEmptyMembersBox)&&(h.annotations.length>0?tt=z-s:tt=z),c||(tt-=4);let O=I;(K.attr("class").includes("label-group")||K.attr("class").includes("annotation-group"))&&(O=-((dt=K.node())==null?void 0:dt.getBBox().width)/2||0,u.selectAll("text").each(function(xt,Pt,Ft){window.getComputedStyle(Ft[Pt]).textAnchor==="middle"&&(O=0)})),K.attr("transform",`translate(${O}, ${tt})`)}),h.members.length>0||h.methods.length>0||x){const q=M+N+P+a,G=C.line(et.x,q,et.x+et.width,q+.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 q=M+N+J+P+s*2+a,G=C.line(et.x,_?Math.max(nt,q):q,et.x+et.width,(_?Math.max(nt,q):q)+.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),W.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 q=RegExp(/color\s*:\s*([^;]*)/),G=q.exec(g);if(G){const R=G[0].replace("color","fill");u.selectAll("tspan").attr("style",R)}else if(p){const R=q.exec(p);if(R){const K=R[0].replace("color","fill");u.selectAll("tspan").attr("style",K)}}}return Lt(t,W),t.intersect=function(q){return kt.rect(t,q)},u}v(b_,"classBox");async function v_(e,t){var et,M;const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const n=t,a=t,s=20,c=20,h="verifyMethod"in t,u=Nt(t),{themeVariables:f}=ce(),{borderColorArray:p,requirementEdgeLabelBackground:m}=f,g=e.insert("g").attr("class",u).attr("id",t.domId??t.id);let x;h?x=await Wi(g,`&lt;&lt;${n.type}&gt;&gt;`,0,t.labelStyle):x=await Wi(g,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let C=x;const k=await Wi(g,n.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+c,h){const N=await Wi(g,`${n.requirementId?`ID: ${n.requirementId}`:""}`,C,t.labelStyle);C+=N;const J=await Wi(g,`${n.text?`Text: ${n.text}`:""}`,C,t.labelStyle);C+=J;const nt=await Wi(g,`${n.risk?`Risk: ${n.risk}`:""}`,C,t.labelStyle);C+=nt,await Wi(g,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,C,t.labelStyle)}else{const N=await Wi(g,`${a.type?`Type: ${a.type}`:""}`,C,t.labelStyle);C+=N,await Wi(g,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,C,t.labelStyle)}const S=(((et=g.node())==null?void 0:et.getBBox().width)??200)+s,T=(((M=g.node())==null?void 0:M.getBBox().height)??200)+s,_=-S/2,I=-T/2,P=St.svg(g),A=_t(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const E=P.rectangle(_,I,S,T,A),W=g.insert(()=>E,":first-child");if(W.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 q=0,G=0;if(j){const z=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(j);z&&(q=parseFloat(z[1]),G=parseFloat(z[2]))}const R=G-T/2;let K=_+s/2;(J===0||J===1)&&(K=q),V.attr("transform",`translate(${K}, ${R+s})`)}),C>x+k+c){const N=I+x+k+c;let J;if(t.look==="neo"){const j=[[_,N],[_+S,N],[_+S,N+.001],[_,N+.001]];J=P.polygon(j,A)}else J=P.line(_,N,_+S,N,A);g.insert(()=>J).attr("class","divider")}return Lt(t,W),t.intersect=function(N){return kt.rect(t,N)},i&&t.look!=="handDrawn"&&(m||p!=null&&p.length)&&g.selectAll("path").attr("style",i),g}v(v_,"requirementBox");async function Wi(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=ce(),s=a.htmlLabels??!0,c=await vn(n,Lm(qo(t)),{width:xn(t,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},a);let h;if(s){const u=c.children[0],f=Qt(c);h=u.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}else{const u=c.children[0];for(const f of u.children)i&&f.setAttribute("style",i);h=c.getBBox(),h.height+=6}return n.attr("transform",`translate(${-h.width/2},${-h.height/2+r})`),h.height}v(Wi,"addText");var Pj=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 w_(e,t,{config:r}){var J,nt;const{labelStyles:i,nodeStyles:n}=Bt(t);t.labelStyle=i||"";const a=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:c,bbox:h,label:u}=await qt(e,t,Nt(t)),f=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 Dp(m,"ticket"in t&&t.ticket||"",g):{label:x,bbox:C}=await Dp(c,"ticket"in t&&t.ticket||"",g);const{label:k,bbox:S}=await Dp(c,"assigned"in t&&t.assigned||"",g);t.width=s;const T=10,_=(t==null?void 0:t.width)||0,I=Math.max(C.height,S.height)/2,P=Math.max(h.height+T*2,(t==null?void 0:t.height)||0)+I,A=-_/2,E=-P/2;u.attr("transform","translate("+(f-_/2)+", "+(-I-h.height/2)+")"),x.attr("transform","translate("+(f-_/2)+", "+(-I+h.height/2)+")"),k.attr("transform","translate("+(f+_/2-S.width-2*a)+", "+(-I+h.height/2)+")");let W;const{rx:et,ry:M}=t,{cssStyles:N}=t;if(t.look==="handDrawn"){const V=St.svg(c),j=_t(t,{}),q=et||M?V.path(lo(A,E,_,P,et||0),j):V.rectangle(A,E,_,P,j);W=c.insert(()=>q,":first-child"),W.attr("class","basic label-container").attr("style",N||null)}else{W=c.insert("rect",":first-child"),W.attr("class","basic label-container __APA__").attr("style",n).attr("rx",et??5).attr("ry",M??5).attr("x",A).attr("y",E).attr("width",_).attr("height",P);const V="priority"in t&&t.priority;if(V){const j=c.append("line"),q=A+2,G=E+Math.floor((et??0)/2),R=E+P-Math.floor((et??0)/2);j.attr("x1",q).attr("y1",G).attr("x2",q).attr("y2",R).attr("stroke-width","4").attr("stroke",Pj(V))}}return Lt(t,W),t.height=P,t.intersect=function(V){return kt.rect(t,V)},c}v(w_,"kanbanItem");async function S_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:c}=await qt(e,t,Nt(t)),h=a.width+10*s,u=a.height+8*s,f=.15*h,{cssStyles:p}=t,m=a.width+20,g=a.height+20,x=Math.max(h,m),C=Math.max(u,g);c.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let k;const S=`M0 0
305
+ a${f},${f} 1 0,0 ${x*.25},${-1*C*.1}
306
+ a${f},${f} 1 0,0 ${x*.25},0
307
+ a${f},${f} 1 0,0 ${x*.25},0
308
+ a${f},${f} 1 0,0 ${x*.25},${C*.1}
309
+
310
+ a${f},${f} 1 0,0 ${x*.15},${C*.33}
311
+ a${f*.8},${f*.8} 1 0,0 0,${C*.34}
312
+ a${f},${f} 1 0,0 ${-1*x*.15},${C*.33}
313
+
314
+ a${f},${f} 1 0,0 ${-1*x*.25},${C*.15}
315
+ a${f},${f} 1 0,0 ${-1*x*.25},0
316
+ a${f},${f} 1 0,0 ${-1*x*.25},0
317
+ a${f},${f} 1 0,0 ${-1*x*.25},${-1*C*.15}
318
+
319
+ a${f},${f} 1 0,0 ${-1*x*.1},${-1*C*.33}
320
+ a${f*.8},${f*.8} 1 0,0 0,${-1*C*.34}
321
+ a${f},${f} 1 0,0 ${x*.1},${-1*C*.33}
322
+ H0 V0 Z`;if(t.look==="handDrawn"){const T=St.svg(n),_=_t(t,{}),I=T.path(S,_);k=n.insert(()=>I,":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",S);return k.attr("transform",`translate(${-x/2}, ${-C/2})`),Lt(t,k),t.calcIntersect=function(T,_){return kt.rect(T,_)},t.intersect=function(T){return st.info("Bang intersect",t,T),kt.rect(t,T)},n}v(S_,"bang");async function T_(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:c}=await qt(e,t,Nt(t)),h=a.width+2*s,u=a.height+2*s,f=.15*h,p=.25*h,m=.35*h,g=.2*h,{cssStyles:x}=t;let C;const k=`M0 0
323
+ a${f},${f} 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${f},${f} 1 0,1 ${h*.15},${u*.35}
328
+ a${g},${g} 1 0,1 ${-1*h*.15},${u*.65}
329
+
330
+ a${p},${f} 1 0,1 ${-1*h*.25},${h*.15}
331
+ a${m},${m} 1 0,1 ${-1*h*.5},0
332
+ a${f},${f} 1 0,1 ${-1*h*.25},${-1*h*.15}
333
+
334
+ a${f},${f} 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 S=St.svg(n),T=_t(t,{}),_=S.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(${-a.width/2}, ${-a.height/2})`),C.attr("transform",`translate(${-h/2}, ${-u/2})`),Lt(t,C),t.calcIntersect=function(S,T){return kt.rect(S,T)},t.intersect=function(S){return st.info("Cloud intersect",t,S),kt.rect(t,S)},n}v(T_,"cloud");async function __(e,t){const{labelStyles:r,nodeStyles:i}=Bt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:c}=await qt(e,t,Nt(t)),h=a.width+8*s,u=a.height+2*s,f=5,p=t.look==="neo"?`
337
+ M${-h/2} ${u/2-f}
338
+ v${-u+2*f}
339
+ q0,-${f} ${f},-${f}
340
+ h${h-2*f}
341
+ q${f},0 ${f},${f}
342
+ v${u-f}
343
+ H${-h/2}
344
+ Z
345
+ `:`
346
+ M${-h/2} ${u/2-f}
347
+ v${-u+2*f}
348
+ q0,-${f} ${f},-${f}
349
+ h${h-2*f}
350
+ q${f},0 ${f},${f}
351
+ v${u-2*f}
352
+ q0,${f} ${-f},${f}
353
+ h${-(h-2*f)}
354
+ q${-f},0 ${-f},${-f}
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(${-a.width/2}, ${-a.height/2})`),n.append(()=>c.node()),Lt(t,m),t.calcIntersect=function(g,x){return kt.rect(g,x)},t.intersect=function(g){return kt.rect(t,g)},n}v(__,"defaultMindmapNode");async function B_(e,t){const r={padding:t.padding??0};return xy(e,t,r)}v(B_,"mindmapCircle");var Oj=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:n_},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:e_},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:o_},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:c_},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:LT},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:xy},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:S_},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:T_},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:ZT},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:OT},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:UT},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:HT},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:p_},{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:qT},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:FT},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:f_},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:kT},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:r_},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:l_},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:s_},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:IT},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:DT},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ST},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:TT},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:_T},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:VT},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:y_},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:PT},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:d_},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:YT},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:BT},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ET},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:m_},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:C_},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:AT},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:g_},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:MT},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:i_},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:QT},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:XT},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:CT},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:wT},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:u_},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:h_},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:x_},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:JT},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:GT}],Dj=v(()=>{const t=[...Object.entries({state:a_,choice:bT,note:KT,rectWithTitle:t_,labelRect:WT,iconSquare:NT,iconCircle:$T,icon:RT,iconRounded:zT,imageSquare:jT,anchor:yT,kanbanItem:w_,mindmapCircle:B_,defaultMindmapNode:__,classBox:b_,erBox:Cy,requirementBox:v_}),...Oj.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),L_=Dj();function Rj(e){return e in L_}v(Rj,"isValidShape");var ff=new Map;async function E_(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?L_[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return i.attr("data-look",Xe(t.look)),t.tooltip&&n.attr("title",t.tooltip),ff.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}v(E_,"insertNode");var jU=v((e,t)=>{ff.set(t.id,e)},"setNodeElem"),qU=v(()=>{ff.clear()},"clear"),WU=v(e=>{const t=ff.get(e.id);st.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"),$j=v((e,t,r,i,n,a=!1,s)=>{t.arrowTypeStart&&Bk(e,"start",t.arrowTypeStart,r,i,n,a,s),t.arrowTypeEnd&&Bk(e,"end",t.arrowTypeEnd,r,i,n,a,s)},"addEdgeMarkers"),zj={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}},Nj=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Bk=v((e,t,r,i,n,a,s=!1,c)=>{var x;const h=zj[r],u=h&&Nj.includes(h.type);if(!h){st.warn(`Unknown arrow type: ${r}`);return}const f=h.type,g=`${n}_${a}-${f}${t==="start"?"Start":"End"}${s&&u?"-margin":""}`;if(c&&c.trim()!==""){const C=c.replace(/[^\dA-Za-z]/g,"_"),k=`${g}_${C}`;if(!document.getElementById(k)){const S=document.getElementById(g);if(S){const T=S.cloneNode(!0);T.id=k,T.querySelectorAll("path, circle, line").forEach(I=>{I.setAttribute("stroke",c),h.fill&&I.setAttribute("fill",c)}),(x=S.parentNode)==null||x.appendChild(T)}}e.attr(`marker-${t}`,`url(${i}#${k})`)}else e.attr(`marker-${t}`,`url(${i}#${g})`)},"addEdgeMarker"),jj=v(e=>{var t,r;return typeof e=="string"?e:(r=(t=ce())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),$u=new Map,rr=new Map,HU=v(()=>{$u.clear(),rr.clear()},"clear"),gl=v(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),qj=v(async(e,t)=>{const r=ce();let i=wr(r);const{labelStyles:n}=Bt(t);t.labelStyle=n;const a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",t.id),c=t.labelType==="markdown",u=await vn(e,t.label,{style:gl(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:c,width:c?void 0:void 0},r);s.node().appendChild(u),st.info("abc82",t,t.labelType);let f=u.getBBox(),p=f;if(i){const g=u.children[0],x=Qt(u);f=g.getBoundingClientRect(),p=f,x.attr("width",f.width),x.attr("height",f.height)}else{const g=Qt(u).select("text").node();g&&typeof g.getBBox=="function"&&(p=g.getBBox())}s.attr("transform",cl(p,i)),$u.set(t.id,a),t.width=f.width,t.height=f.height;let m;if(t.startLabelLeft){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Zn(x,t.startLabelLeft,gl(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(i){const S=C.children[0],T=Qt(C);k=S.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",cl(k,i)),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).startLeft=g,wl(m,t.startLabelLeft)}if(t.startLabelRight){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Zn(x,t.startLabelRight,gl(t.labelStyle)||"",!1,!1);m=C,x.node().appendChild(C);let k=C.getBBox();if(i){const S=C.children[0],T=Qt(C);k=S.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",cl(k,i)),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).startRight=g,wl(m,t.startLabelRight)}if(t.endLabelLeft){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Zn(x,t.endLabelLeft,gl(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(i){const S=C.children[0],T=Qt(C);k=S.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",cl(k,i)),g.node().appendChild(C),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).endLeft=g,wl(m,t.endLabelLeft)}if(t.endLabelRight){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await Zn(x,t.endLabelRight,gl(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(i){const S=C.children[0],T=Qt(C);k=S.getBoundingClientRect(),T.attr("width",k.width),T.attr("height",k.height)}x.attr("transform",cl(k,i)),g.node().appendChild(C),rr.get(t.id)||rr.set(t.id,{}),rr.get(t.id).endRight=g,wl(m,t.endLabelRight)}return u},"insertEdgeLabel");function wl(e,t){wr(ce())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}v(wl,"setTerminalWidth");var Wj=v((e,t)=>{st.debug("Moving label abc88 ",e.id,e.label,$u.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=ce(),{subGraphTitleTotalMargin:n}=oy(i);if(e.label){const a=$u.get(e.id);let s=e.x,c=e.y;if(r){const h=Bi.calcLabelPosition(r);st.debug("Moving label "+e.label+" from (",s,",",c,") to (",h.x,",",h.y,") abc88"),t.updatedPath&&(s=h.x,c=h.y)}a.attr("transform",`translate(${s}, ${c+n/2})`)}if(e.startLabelLeft){const a=rr.get(e.id).startLeft;let s=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=h.x,c=h.y}a.attr("transform",`translate(${s}, ${c})`)}if(e.startLabelRight){const a=rr.get(e.id).startRight;let s=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=h.x,c=h.y}a.attr("transform",`translate(${s}, ${c})`)}if(e.endLabelLeft){const a=rr.get(e.id).endLeft;let s=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=h.x,c=h.y}a.attr("transform",`translate(${s}, ${c})`)}if(e.endLabelRight){const a=rr.get(e.id).endRight;let s=e.x,c=e.y;if(r){const h=Bi.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=h.x,c=h.y}a.attr("transform",`translate(${s}, ${c})`)}},"positionEdgeLabel"),Hj=v((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),s=e.width/2,c=e.height/2;return n>=s||a>=c},"outsideNode"),Uj=v((e,t,r)=>{st.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,a=Math.abs(i-r.x),s=e.width/2;let c=r.x<t.x?s-a:s+a;const h=e.height/2,u=Math.abs(t.y-r.y),f=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*s>Math.abs(i-t.x)*h){let p=r.y<t.y?t.y-h-n:n-h-t.y;c=f*p/u;const m={x:r.x<t.x?r.x+c:r.x-f+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),f===0&&(m.x=t.x),u===0&&(m.y=t.y),st.debug(`abc89 top/bottom calc, Q ${u}, q ${p}, R ${f}, r ${c}`,m),m}else{r.x<t.x?c=t.x-s-i:c=i-s-t.x;let p=u*c/f,m=r.x<t.x?r.x+f-c:r.x-f+c,g=r.y<t.y?r.y+p:r.y-p;return st.debug(`sides calc abc89, Q ${u}, q ${p}, R ${f}, r ${c}`,{_x:m,_y:g}),c===0&&(m=t.x,g=t.y),f===0&&(m=t.x),u===0&&(g=t.y),{x:m,y:g}}},"intersection"),Lk=v((e,t)=>{st.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(st.info("abc88 checking point",a,t),!Hj(t,a)&&!n){const s=Uj(t,i,a);st.debug("abc88 inside",a,i,s),st.debug("abc88 intersection",s,t);let c=!1;r.forEach(h=>{c=c||h.x===s.x&&h.y===s.y}),r.some(h=>h.x===s.x&&h.y===s.y)?st.warn("abc88 no intersect",s,r):r.push(s),n=!0}else st.warn("abc88 outside",a,i),i=a,n||r.push(a)}),st.debug("returning points",r),r},"cutPathAtIntersect");function F_(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],s=e[i+1];(n.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===s.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-s.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}v(F_,"extractCornerPoints");var Ek=v(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:t.x-s*i,y:t.y-s*n}},"findAdjacentPoint"),Vj=v(function(e){const{cornerPointPositions:t}=F_(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],s=e[i],c=Ek(n,s,5),h=Ek(a,s,5),u=h.x-c.x,f=h.y-c.y;r.push(c);const p=Math.sqrt(2)*2;let m={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){st.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const g=5;s.x===c.x?m={x:u<0?c.x-g+p:c.x+g-p,y:f<0?c.y-p:c.y+p}:m={x:u<0?c.x-p:c.x+p,y:f<0?c.y-g+p:c.y+g-p}}else st.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(m,h)}else r.push(e[i]);return r},"fixCorners"),Yj=v((e,t,r)=>{const i=e-t-r,n=2,a=2,s=n+a,c=Math.floor(i/s),h=Array(c).fill(`${n} ${a}`).join(" ");return`0 ${t} ${h} ${r}`},"generateDashArray"),Gj=v(function(e,t,r,i,n,a,s,c=!1){var G;if(!s)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,f=!1;const p=n;var m=a;const g=[];for(const R in t.cssCompiledStyles)ES(R)||g.push(t.cssCompiledStyles[R]);st.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])),st.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&&(st.info("to cluster abc88",r.get(t.toCluster)),u=Lk(t.points,r.get(t.toCluster).node),f=!0),t.fromCluster&&(st.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=Lk(u.reverse(),r.get(t.fromCluster).node).reverse(),f=!0);let C=u.filter(R=>!Number.isNaN(R.y));const k=jj(t.curve);k!=="rounded"&&(C=Vj(C));let S=Al;switch(k){case"linear":S=Al;break;case"basis":S=mg;break;case"cardinal":S=cv;break;case"bumpX":S=nv;break;case"bumpY":S=ov;break;case"catmullRom":S=uv;break;case"monotoneX":S=yv;break;case"monotoneY":S=xv;break;case"natural":S=kv;break;case"step":S=bv;break;case"stepAfter":S=wv;break;case"stepBefore":S=vv;break;case"rounded":S=Al;break;default:S=mg}const{x:T,y:_}=q6(t),I=T$().x(T).y(_).curve(S);let P;switch(t.thickness){case"normal":P="edge-thickness-normal";break;case"thick":P="edge-thickness-thick";break;case"invisible":P="edge-thickness-invisible";break;default:P="edge-thickness-normal"}switch(t.pattern){case"solid":P+=" edge-pattern-solid";break;case"dotted":P+=" edge-pattern-dotted";break;case"dashed":P+=" edge-pattern-dashed";break;default:P+=" edge-pattern-solid"}let A,E=k==="rounded"?A_(M_(C,t),5):I(C);const W=Array.isArray(t.style)?t.style:[t.style];let et=W.find(R=>R==null?void 0:R.startsWith("stroke:")),M="";t.animate&&(M="edge-animation-fast"),t.animation&&(M="edge-animation-"+t.animation);let N=!1;if(t.look==="handDrawn"){const R=St.svg(e);Object.assign([],C);const K=R.path(E,{roughness:.3,seed:h});P+=" transition",A=Qt(K).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+P+(t.classes?" "+t.classes:"")+(M?" "+M:"")).attr("style",W?W.reduce((z,tt)=>z+";"+tt,""):"");let F=A.attr("d");A.attr("d",F),e.node().appendChild(A.node())}else{const R=g.join(";"),K=W?W.reduce((dt,xt)=>dt+xt+";",""):"",F=(R?R+";"+K+";":K)+";"+(W?W.reduce((dt,xt)=>dt+";"+xt,""):"");A=e.append("path").attr("d",E).attr("id",`${s}-${t.id}`).attr("class"," "+P+(t.classes?" "+t.classes:"")+(M?" "+M:"")).attr("style",F),et=(G=F.match(/stroke:([^;]+)/))==null?void 0:G[1],N=t.animate===!0||!!t.animation||R.includes("animation");const z=A.node(),tt=typeof z.getTotalLength=="function"?z.getTotalLength():0,O=IC[t.arrowTypeStart]||0,mt=IC[t.arrowTypeEnd]||0;if(t.look==="neo"&&!N){const xt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Yj(tt,O,mt):`0 ${O} ${tt-O-mt} ${mt}`}; stroke-dashoffset: 0;`;A.attr("style",xt+A.attr("style"))}}A.attr("data-edge",!0),A.attr("data-et","edge"),A.attr("data-id",t.id),A.attr("data-points",x),A.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,"\\)")),st.info("arrowTypeStart",t.arrowTypeStart),st.info("arrowTypeEnd",t.arrowTypeEnd);const nt=!N&&(t==null?void 0:t.look)==="neo";$j(A,t,J,s,i,nt,et);const V=Math.floor(u.length/2),j=u[V];Bi.isLabelCoordinateInPath(j,A.attr("d"))||(f=!0);let q={};return f&&(q.updatedPath=u),q.originalPath=t.points,q},"insertEdge");function A_(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const s=e[a],c=e[a-1],h=e[a+1];if(a===0)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const u=s.x-c.x,f=s.y-c.y,p=h.x-s.x,m=h.y-s.y,g=Math.hypot(u,f),x=Math.hypot(p,m);if(g<n||x<n){r+=`L${s.x},${s.y}`;continue}const C=u/g,k=f/g,S=p/x,T=m/x,_=C*S+k*T,I=Math.max(-1,Math.min(1,_)),P=Math.acos(I);if(P<n||Math.abs(Math.PI-P)<n){r+=`L${s.x},${s.y}`;continue}const A=Math.min(t/Math.sin(P/2),g/2,x/2),E=s.x-C*A,W=s.y-k*A,et=s.x+S*A,M=s.y+T*A;r+=`L${E},${W}`,r+=`Q${s.x},${s.y} ${et},${M}`}}return r}v(A_,"generateRoundedPath");function Vg(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(Vg,"calculateDeltaAndAngle");function M_(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&cr[t.arrowTypeStart]){const n=cr[t.arrowTypeStart],a=e[0],s=e[1],{angle:c}=Vg(a,s),h=n*Math.cos(c),u=n*Math.sin(c);r[0].x=a.x+h,r[0].y=a.y+u}const i=e.length;if(i>=2&&cr[t.arrowTypeEnd]){const n=cr[t.arrowTypeEnd],a=e[i-1],s=e[i-2],{angle:c}=Vg(s,a),h=n*Math.cos(c),u=n*Math.sin(c);r[i-1].x=a.x-h,r[i-1].y=a.y-u}return r}v(M_,"applyMarkerOffsetsToPoints");var Xj=v((e,t,r,i)=>{t.forEach(n=>{x7[n](e,r,i)})},"insertMarkers"),Qj=v((e,t,r)=>{st.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"),Kj=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"),Zj=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"),Jj=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"),t7=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"),e7=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"),r7=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"),i7=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"),n7=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"),o7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{transitionColor:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${a}`)},"barbNeo"),a7=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"),s7=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"),l7=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"),c7=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"),h7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${a}`)},"only_one_neo"),u7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=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",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),c.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);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",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),h.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),f7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${a}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${a}`)},"one_or_more_neo"),d7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=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",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),c.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);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",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),h.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),p7=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"),g7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:a}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
363
+ L20,10
364
+ M20,10
365
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),m7=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"),y7=v((e,t,r)=>{const i=_e(),{themeVariables:n}=i,{strokeWidth:a}=n,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),x7={extension:Qj,composition:Kj,aggregation:Zj,dependency:Jj,lollipop:t7,point:e7,circle:r7,cross:i7,barb:n7,barbNeo:o7,only_one:a7,zero_or_one:s7,one_or_more:l7,zero_or_more:c7,only_one_neo:h7,zero_or_one_neo:u7,one_or_more_neo:f7,zero_or_more_neo:d7,requirement_arrow:p7,requirement_contains:m7,requirement_arrow_neo:g7,requirement_contains_neo:y7},C7=Xj,k7={common:ec,getConfig:_e,insertCluster:yj,insertEdge:Gj,insertEdgeLabel:qj,insertMarkers:C7,insertNode:E_,interpolateToCurve:Jm,labelHelper:qt,log:st,positionEdgeLabel:Wj},Gl={},I_=v(e=>{for(const t of e)Gl[t.name]=t},"registerLayoutLoaders"),b7=v(()=>{I_([{name:"dagre",loader:v(async()=>await re(()=>import("./dagre-KV5264BT-CqqZAnfi.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:v(async()=>await re(()=>import("./cose-bilkent-S5V4N54A-DyKcM_Ft.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");b7();var UU=v(async(e,t)=>{if(!(e.layoutAlgorithm in Gl))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const f of e.nodes){const p=f.domId||f.id;f.domId=`${e.diagramId}-${p}`}const r=Gl[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:a}=e.config,{useGradient:s,gradientStart:c,gradientStop:h}=a,u=t.attr("id");if(t.append("defs").append("filter").attr("id",`${u}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${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"}`),s){const f=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");f.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),f.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return i.render(e,t,k7,{algorithm:r.algorithm})},"render"),VU=v((e="",{fallback:t="dagre"}={})=>{if(e in Gl)return e;if(t in Gl)return st.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"),P_="comm",O_="rule",D_="decl",v7="@import",w7="@namespace",S7="@keyframes",T7="@layer",R_=Math.abs,ky=String.fromCharCode;function $_(e){return e.trim()}function Zh(e,t,r){return e.replace(t,r)}function _7(e,t,r){return e.indexOf(t,r)}function Oa(e,t){return e.charCodeAt(t)|0}function is(e,t,r){return e.slice(t,r)}function Ui(e){return e.length}function B7(e){return e.length}function Dh(e,t){return t.push(e),e}var df=1,ns=1,z_=0,hi=0,$e=0,us="";function by(e,t,r,i,n,a,s,c){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:df,column:ns,length:s,return:"",siblings:c}}function L7(){return $e}function E7(){return $e=hi>0?Oa(us,--hi):0,ns--,$e===10&&(ns=1,df--),$e}function Fi(){return $e=hi<z_?Oa(us,hi++):0,ns++,$e===10&&(ns=1,df++),$e}function Jn(){return Oa(us,hi)}function Jh(){return hi}function pf(e,t){return is(us,e,t)}function Xl(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 F7(e){return df=ns=1,z_=Ui(us=e),hi=0,[]}function A7(e){return us="",e}function $p(e){return $_(pf(hi-1,Yg(e===91?e+2:e===40?e+1:e)))}function M7(e){for(;($e=Jn())&&$e<33;)Fi();return Xl(e)>2||Xl($e)>3?"":" "}function I7(e,t){for(;--t&&Fi()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return pf(e,Jh()+(t<6&&Jn()==32&&Fi()==32))}function Yg(e){for(;Fi();)switch($e){case e:return hi;case 34:case 39:e!==34&&e!==39&&Yg($e);break;case 40:e===41&&Yg(e);break;case 92:Fi();break}return hi}function P7(e,t){for(;Fi()&&e+$e!==57;)if(e+$e===84&&Jn()===47)break;return"/*"+pf(t,hi-1)+"*"+ky(e===47?e:Fi())}function O7(e){for(;!Xl(Jn());)Fi();return pf(e,hi)}function D7(e){return A7(tu("",null,null,null,[""],e=F7(e),0,[0],e))}function tu(e,t,r,i,n,a,s,c,h){for(var u=0,f=0,p=s,m=0,g=0,x=0,C=1,k=1,S=1,T=0,_="",I=n,P=a,A=i,E=_;k;)switch(x=T,T=Fi()){case 40:if(x!=108&&Oa(E,p-1)==58){_7(E+=Zh($p(T),"&","&\f"),"&\f",R_(u?c[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=$p(T);break;case 9:case 10:case 13:case 32:E+=M7(x);break;case 92:E+=I7(Jh()-1,7);continue;case 47:switch(Jn()){case 42:case 47:Dh(R7(P7(Fi(),Jh()),t,r,h),h),(Xl(x||1)==5||Xl(Jn()||1)==5)&&Ui(E)&&is(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*C:c[u++]=Ui(E)*S;case 125*C:case 59:case 0:switch(T){case 0:case 125:k=0;case 59+f:S==-1&&(E=Zh(E,/\f/g,"")),g>0&&(Ui(E)-p||C===0&&x===47)&&Dh(g>32?Ak(E+";",i,r,p-1,h):Ak(Zh(E," ","")+";",i,r,p-2,h),h);break;case 59:E+=";";default:if(Dh(A=Fk(E,t,r,u,f,n,c,_,I=[],P=[],p,a),a),T===123)if(f===0)tu(E,t,A,A,I,a,p,c,P);else{switch(m){case 99:if(Oa(E,3)===110)break;case 108:if(Oa(E,2)===97)break;default:f=0;case 100:case 109:case 115:}f?tu(e,A,A,i&&Dh(Fk(e,A,A,0,0,n,c,_,n,I=[],p,P),P),n,P,p,c,i?I:P):tu(E,A,A,A,[""],P,0,c,P)}}u=f=g=0,C=S=1,_=E="",p=s;break;case 58:p=1+Ui(E),g=x;default:if(C<1){if(T==123)--C;else if(T==125&&C++==0&&E7()==125)continue}switch(E+=ky(T),T*C){case 38:S=f>0?1:(E+="\f",-1);break;case 44:c[u++]=(Ui(E)-1)*S,S=1;break;case 64:Jn()===45&&(E+=$p(Fi())),m=Jn(),f=p=Ui(_=E+=O7(Jh())),T++;break;case 45:x===45&&Ui(E)==2&&(C=0)}}return a}function Fk(e,t,r,i,n,a,s,c,h,u,f,p){for(var m=n-1,g=n===0?a:[""],x=B7(g),C=0,k=0,S=0;C<i;++C)for(var T=0,_=is(e,m+1,m=R_(k=s[C])),I=e;T<x;++T)(I=$_(k>0?g[T]+" "+_:Zh(_,/&\f/g,g[T])))&&(h[S++]=I);return by(e,t,r,n===0?O_:c,h,u,f,p)}function R7(e,t,r,i){return by(e,t,r,P_,ky(L7()),is(e,2,-2),0,i)}function Ak(e,t,r,i,n){return by(e,t,r,D_,is(e,0,i),is(e,i+1,-1),i,n)}function Gg(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function $7(e,t,r,i){switch(e.type){case T7:if(e.children.length)break;case v7:case w7:case D_:return e.return=e.return||e.value;case P_:return"";case S7:return e.return=e.value+"{"+Gg(e.children,i)+"}";case O_:if(!Ui(e.value=e.props.join(",")))return""}return Ui(r=Gg(e.children,i))?e.return=e.value+"{"+r+"}":""}var z7=lS(Object.keys,Object),N7=Object.prototype,j7=N7.hasOwnProperty;function q7(e){if(!nf(e))return z7(e);var t=[];for(var r in Object(e))j7.call(e,r)&&r!="constructor"&&t.push(r);return t}var Xg=Go(Ji,"DataView"),Qg=Go(Ji,"Promise"),Kg=Go(Ji,"Set"),Zg=Go(Ji,"WeakMap"),Mk="[object Map]",W7="[object Object]",Ik="[object Promise]",Pk="[object Set]",Ok="[object WeakMap]",Dk="[object DataView]",H7=Yo(Xg),U7=Yo(Vl),V7=Yo(Qg),Y7=Yo(Kg),G7=Yo(Zg),Eo=ss;(Xg&&Eo(new Xg(new ArrayBuffer(1)))!=Dk||Vl&&Eo(new Vl)!=Mk||Qg&&Eo(Qg.resolve())!=Ik||Kg&&Eo(new Kg)!=Pk||Zg&&Eo(new Zg)!=Ok)&&(Eo=function(e){var t=ss(e),r=t==W7?e.constructor:void 0,i=r?Yo(r):"";if(i)switch(i){case H7:return Dk;case U7:return Mk;case V7:return Ik;case Y7:return Pk;case G7:return Ok}return t});var X7="[object Map]",Q7="[object Set]",K7=Object.prototype,Z7=K7.hasOwnProperty;function Rk(e){if(e==null)return!0;if(of(e)&&(Lu(e)||typeof e=="string"||typeof e.splice=="function"||Km(e)||Zm(e)||Bu(e)))return!e.length;var t=Eo(e);if(t==X7||t==Q7)return!e.size;if(nf(e))return!q7(e).length;for(var r in e)if(Z7.call(e,r))return!1;return!0}var N_="c4",J7=v(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),tq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-C2svHtHd.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:N_,diagram:e}},"loader"),eq={id:N_,detector:J7,loader:tq},rq=eq,j_="flowchart",iq=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"),nq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-BAxygbW_.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:j_,diagram:e}},"loader"),oq={id:j_,detector:iq,loader:nq},aq=oq,q_="flowchart-v2",sq=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"),lq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-BAxygbW_.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:q_,diagram:e}},"loader"),cq={id:q_,detector:sq,loader:lq},hq=cq,W_="er",uq=v(e=>/^\s*erDiagram/.test(e),"detector"),fq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-BOu00pgZ.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:W_,diagram:e}},"loader"),dq={id:W_,detector:uq,loader:fq},pq=dq,H_="gitGraph",gq=v(e=>/^\s*gitGraph/.test(e),"detector"),mq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-DpCrvb-c.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:H_,diagram:e}},"loader"),yq={id:H_,detector:gq,loader:mq},xq=yq,U_="gantt",Cq=v(e=>/^\s*gantt/.test(e),"detector"),kq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-BDIRknaP.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:U_,diagram:e}},"loader"),bq={id:U_,detector:Cq,loader:kq},vq=bq,V_="info",wq=v(e=>/^\s*info/.test(e),"detector"),Sq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-DSZsO32C.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:V_,diagram:e}},"loader"),Tq={id:V_,detector:wq,loader:Sq},Y_="pie",_q=v(e=>/^\s*pie/.test(e),"detector"),Bq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-BaO4djdd.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:Y_,diagram:e}},"loader"),Lq={id:Y_,detector:_q,loader:Bq},G_="quadrantChart",Eq=v(e=>/^\s*quadrantChart/.test(e),"detector"),Fq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-DjOVuL9Z.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:G_,diagram:e}},"loader"),Aq={id:G_,detector:Eq,loader:Fq},Mq=Aq,X_="xychart",Iq=v(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Pq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-ZplCit9D.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:X_,diagram:e}},"loader"),Oq={id:X_,detector:Iq,loader:Pq},Dq=Oq,Q_="requirement",Rq=v(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),$q=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-qy4lP90H.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:Q_,diagram:e}},"loader"),zq={id:Q_,detector:Rq,loader:$q},Nq=zq,K_="sequence",jq=v(e=>/^\s*sequenceDiagram/.test(e),"detector"),qq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-BfLktgJr.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:K_,diagram:e}},"loader"),Wq={id:K_,detector:jq,loader:qq},Hq=Wq,Z_="class",Uq=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"),Vq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-3O1DCKVl.js");return{diagram:t}},__vite__mapDeps([32,33,11,9,12,13]));return{id:Z_,diagram:e}},"loader"),Yq={id:Z_,detector:Uq,loader:Vq},Gq=Yq,J_="classDiagram",Xq=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"),Qq=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-3O1DCKVl.js");return{diagram:t}},__vite__mapDeps([34,33,11,9,12,13]));return{id:J_,diagram:e}},"loader"),Kq={id:J_,detector:Xq,loader:Qq},Zq=Kq,tB="state",Jq=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"),tW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-CEA-RrVC.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:tB,diagram:e}},"loader"),eW={id:tB,detector:Jq,loader:tW},rW=eW,eB="stateDiagram",iW=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"),nW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-QjCaGLFg.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:eB,diagram:e}},"loader"),oW={id:eB,detector:iW,loader:nW},aW=oW,rB="journey",sW=v(e=>/^\s*journey/.test(e),"detector"),lW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-D6ybPNfZ.js");return{diagram:t}},__vite__mapDeps([38,11,9,26]));return{id:rB,diagram:e}},"loader"),cW={id:rB,detector:sW,loader:lW},hW=cW,uW=v((e,t,r)=>{st.debug(`rendering svg for syntax error
366
+ `);const i=P$(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),B2(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"),iB={draw:uW},fW=iB,dW={db:{},renderer:iB,parser:{parse:v(()=>{},"parse")}},pW=dW,nB="flowchart-elk",gW=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"),mW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-BAxygbW_.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:nB,diagram:e}},"loader"),yW={id:nB,detector:gW,loader:mW},xW=yW,oB="timeline",CW=v(e=>/^\s*timeline/.test(e),"detector"),kW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ-DiPD59I4.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:oB,diagram:e}},"loader"),bW={id:oB,detector:CW,loader:kW},vW=bW,aB="mindmap",wW=v(e=>/^\s*mindmap/.test(e),"detector"),SW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH-Byg9EDEf.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:aB,diagram:e}},"loader"),TW={id:aB,detector:wW,loader:SW},_W=TW,sB="kanban",BW=v(e=>/^\s*kanban/.test(e),"detector"),LW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY-B47ibwqw.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:sB,diagram:e}},"loader"),EW={id:sB,detector:BW,loader:LW},FW=EW,lB="sankey",AW=v(e=>/^\s*sankey(-beta)?/.test(e),"detector"),MW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6-OpfFStE8.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:lB,diagram:e}},"loader"),IW={id:lB,detector:AW,loader:MW},PW=IW,cB="packet",OW=v(e=>/^\s*packet(-beta)?/.test(e),"detector"),DW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-TYMM5635-BEQMXYiS.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:cB,diagram:e}},"loader"),RW={id:cB,detector:OW,loader:DW},hB="radar",$W=v(e=>/^\s*radar-beta/.test(e),"detector"),zW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5-jNH5iO6v.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:hB,diagram:e}},"loader"),NW={id:hB,detector:$W,loader:zW},uB="block",jW=v(e=>/^\s*block(-beta)?/.test(e),"detector"),qW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D-D-J4AWOc.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:uB,diagram:e}},"loader"),WW={id:uB,detector:jW,loader:qW},HW=WW,fB="treeView",UW=v(e=>/^\s*treeView-beta/.test(e),"detector"),VW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD-Cy3V7bcG.js");return{diagram:t}},__vite__mapDeps([46,17,18,19,4,2]));return{id:fB,diagram:e}},"loader"),YW={id:fB,detector:UW,loader:VW},GW=YW,dB="architecture",XW=v(e=>/^\s*architecture/.test(e),"detector"),QW=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46-DtjK6LfO.js");return{diagram:t}},__vite__mapDeps([47,17,19,4,2,7]));return{id:dB,diagram:e}},"loader"),KW={id:dB,detector:XW,loader:QW},ZW=KW,pB="ishikawa",JW=v(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),tH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A-wLXQ-0kc.js");return{diagram:t}},[]);return{id:pB,diagram:e}},"loader"),eH={id:pB,detector:JW,loader:tH},gB="venn",rH=v(e=>/^\s*venn-beta/.test(e),"detector"),iH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP-DSCxAvb_.js");return{diagram:t}},[]);return{id:gB,diagram:e}},"loader"),nH={id:gB,detector:rH,loader:iH},oH=nH,mB="treemap",aH=v(e=>/^\s*treemap/.test(e),"detector"),sH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6-DUtdWbLg.js");return{diagram:t}},__vite__mapDeps([48,13,17,19,4,2,23,27,22]));return{id:mB,diagram:e}},"loader"),lH={id:mB,detector:aH,loader:sH},yB="wardley-beta",cH=v(e=>/^\s*wardley-beta/i.test(e),"detector"),hH=v(async()=>{const{diagram:e}=await re(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D-BWa8t8o-.js");return{diagram:t}},__vite__mapDeps([49,17,19,4,2]));return{id:yB,diagram:e}},"loader"),uH={id:yB,detector:cH,loader:hH},fH=uH,$k=!1,gf=v(()=>{$k||($k=!0,cu("error",pW,e=>e.toLowerCase().trim()==="error"),cu("---",{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("---")),rg(xW,_W,ZW),rg(rq,FW,Zq,Gq,pq,vq,Tq,Lq,Nq,Hq,hq,aq,vW,xq,aW,rW,hW,Mq,PW,RW,Dq,HW,GW,NW,eH,lH,oH,fH))},"addDiagrams"),dH=v(async()=>{st.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ro).map(async([r,{detector:i,loader:n}])=>{if(n)try{ag(r)}catch{try{const{diagram:a,id:s}=await n();cu(s,a,i)}catch(a){throw st.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ro[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){st.error(`Failed to load ${t.length} external diagrams`);for(const r of t)st.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),pH="graphics-document document";function xB(e,t){e.attr("role",pH),t!==""&&e.attr("aria-roledescription",t)}v(xB,"setA11yDiagramInfo");function CB(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(CB,"addSVGa11yTitleDescription");var Oo,Jg=(Oo=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var u,f;const i=_e(),n=wm(t,i);t=RN(t)+`
367
+ `;try{ag(n)}catch{const p=J4(n);if(!p)throw new d2(`Diagram ${n} not found.`);const{id:m,diagram:g}=await p();cu(m,g)}const{db:a,parser:s,renderer:c,init:h}=ag(n);return s.parser&&(s.parser.yy=a),(u=a.clear)==null||u.call(a),h==null||h(i),r.title&&((f=a.setDiagramTitle)==null||f.call(a,r.title)),await s.parse(t),new Oo(n,t,a,s,c)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},v(Oo,"Diagram"),Oo),zk=[],gH=v(()=>{zk.forEach(e=>{e()}),zk=[]},"attachFunctions"),mH=v(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function kB(e){const t=e.match(f2);if(!t)return{text:e,metadata:{}};let r=j6(t[1],{schema:N6})??{};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(kB,"extractFrontMatter");var yH=v(e=>e.replace(/\r\n?/g,`
368
+ `).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),xH=v(e=>{const{text:t,metadata:r}=kB(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),CH=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:SN(e),directive:t}},"processDirectives");function vy(e){const t=yH(e),r=xH(t),i=CH(r.text),n=ny(r.config,i.directive);return e=mH(i.text),{code:e,title:r.title,config:n}}v(vy,"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 kH=5e4,bH="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vH="sandbox",wH="loose",SH="http://www.w3.org/2000/svg",TH="http://www.w3.org/1999/xlink",_H="http://www.w3.org/1999/xhtml",BH="100%",LH="100%",EH="border:0;margin:0;",FH="margin:0",AH="allow-top-navigation-by-user-activation allow-popups",MH='The "iframe" tag is not supported by your browser.',IH=["foreignobject"],PH=["dominant-baseline"];function wy(e){const t=vy(e);return su(),BP(t.config??{}),t}v(wy,"processAndSetConfigs");async function vB(e,t){gf();try{const{code:r,config:i}=wy(e);return{diagramType:(await SB(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}v(vB,"parse");var Nk=v((e,t,r=[])=>`
369
+ .${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),OH=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 s=wr(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(c=>{Rk(c.styles)||s.forEach(h=>{r+=Nk(c.id,h,c.styles)}),Rk(c.textStyles)||(r+=Nk(c.id,"tspan",((c==null?void 0:c.textStyles)||[]).map(h=>h.replace("color","fill"))))})}return r},"createCssStyles"),DH=v((e,t,r,i)=>{const n=OH(e,r),a=VP(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return Gg(D7(`${i}{${a}}`),$7)},"createUserStyles"),RH=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"),$H=v((e="",t)=>{var n,a;const r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":LH,i=bB(`<body style="${FH}">${e}</body>`);return`<iframe style="width:${BH};height:${r};${EH}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${AH}">
373
+ ${MH}
374
+ </iframe>`},"putIntoIFrame"),jk=v((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",SH);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function tm(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}v(tm,"sandboxedIframe");var zH=v((e,t,r,i)=>{var n,a,s;(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(s=e.getElementById(i))==null||s.remove()},"removeExistingElements"),NH=v(async function(e,t,r){var J,nt,V,j,q,G;gf();const i=wy(t);t=i.code;const n=_e();st.debug(n),t.length>((n==null?void 0:n.maxTextSize)??kH)&&(t=bH);const a="#"+e,s="i"+e,c="#"+s,h="d"+e,u="#"+h,f=v(()=>{const K=Qt(m?c:u).node();K&&"remove"in K&&K.remove()},"removeTempElements");let p=Qt("body");const m=n.securityLevel===vH,g=n.securityLevel===wH,x=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const R=tm(Qt(r),s);p=Qt(R.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Qt(r);jk(p,e,h,`font-family: ${x}`,TH)}else{if(zH(document,e,h,s),m){const R=tm(Qt("body"),s);p=Qt(R.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Qt("body");jk(p,e,h)}let C,k;try{C=await Jg.fromText(t,{title:i.title})}catch(R){if(n.suppressErrorRendering)throw f(),R;C=await Jg.fromText("error"),k=R}const S=p.select(u).node(),T=C.type,_=S.firstChild,I=_.firstChild,P=(nt=(J=C.renderer).getClasses)==null?void 0:nt.call(J,t,C),A=DH(n,T,P,a),E=document.createElement("style");E.innerHTML=A,_.insertBefore(E,I);try{await C.renderer.draw(t,e,"11.14.0",C)}catch(R){throw n.suppressErrorRendering?f():fW.draw(t,e,"11.14.0"),R}const W=p.select(`${u} svg`),et=(j=(V=C.db).getAccTitle)==null?void 0:j.call(V),M=(G=(q=C.db).getAccDescription)==null?void 0:G.call(q);TB(T,W,et,M),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",_H);let N=p.select(u).node().innerHTML;if(st.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),N=RH(N,m,kn(n.arrowMarkerAbsolute)),m){const R=p.select(u+" svg").node();N=$H(N,R)}else g||(N=Ka.sanitize(N,{ADD_TAGS:IH,ADD_ATTR:PH,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(gH(),k)throw k;return f(),{diagramType:T,svg:N,bindFunctions:C.db.bindFunctions}},"render");function wB(e={}){var i;const t=qe({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),TP(t),t!=null&&t.theme&&t.theme in gn?t.themeVariables=gn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=gn.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?SP(t):x2();vm(r.logLevel),gf()}v(wB,"initialize");var SB=v((e,t={})=>{const{code:r}=vy(e);return Jg.fromText(r,t)},"getDiagramFromText");function TB(e,t,r,i){xB(t,e),CB(t,r,i,t.attr("id"))}v(TB,"addA11yInfo");var Ho=Object.freeze({render:NH,parse:vB,getDiagramFromText:SB,initialize:wB,getConfig:_e,setConfig:C2,getSiteConfig:x2,updateSiteConfig:_P,reset:v(()=>{su()},"reset"),globalReset:v(()=>{su(Za)},"globalReset"),defaultConfig:Za});vm(_e().logLevel);su(_e());var jH=v((e,t,r)=>{st.warn(e),iy(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"),_B=v(async function(e={querySelector:".mermaid"}){try{await qH(e)}catch(t){if(iy(t)&&st.error(t.str),Xr.parseError&&Xr.parseError(t),!e.suppressErrors)throw st.error("Use the suppressErrors option to suppress these errors"),t}},"run"),qH=v(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Ho.getConfig();st.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");st.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(st.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Ho.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new Bi.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const c=[];for(const h of Array.from(n)){if(st.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=h.innerHTML,s=qS(Bi.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const f=Bi.detectInit(s);f&&st.debug("Detected early reinit: ",f);try{const{svg:p,bindFunctions:m}=await FB(u,s,h);h.innerHTML=p,e&&await e(u),m&&m(h)}catch(p){jH(p,c,Xr.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),BB=v(function(e){Ho.initialize(e)},"initialize"),WH=v(async function(e,t,r){st.warn("mermaid.init is deprecated. Please use run instead."),e&&BB(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await _B(i)},"init"),HH=v(async(e,{lazyLoad:t=!0}={})=>{gf(),rg(...e),t===!1&&await dH()},"registerExternalDiagrams"),LB=v(function(){if(Xr.startOnLoad){const{startOnLoad:e}=Ho.getConfig();e&&Xr.run().catch(t=>st.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",LB,!1);var UH=v(function(e){Xr.parseError=e},"setParseErrorHandler"),zu=[],zp=!1,EB=v(async()=>{if(!zp){for(zp=!0;zu.length>0;){const e=zu.shift();if(e)try{await e()}catch(t){st.error("Error executing queue",t)}}zp=!1}},"executeQueue"),VH=v(async(e,t)=>new Promise((r,i)=>{const n=v(()=>new Promise((a,s)=>{Ho.parse(e,t).then(c=>{a(c),r(c)},c=>{var h;st.error("Error parsing",c),(h=Xr.parseError)==null||h.call(Xr,c),s(c),i(c)})}),"performCall");zu.push(n),EB().catch(i)}),"parse"),FB=v((e,t,r)=>new Promise((i,n)=>{const a=v(()=>new Promise((s,c)=>{Ho.render(e,t,r).then(h=>{s(h),i(h)},h=>{var u;st.error("Error parsing",h),(u=Xr.parseError)==null||u.call(Xr,h),c(h),n(h)})}),"performCall");zu.push(a),EB().catch(n)}),"render"),YH=v(()=>Object.keys(Ro).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Xr={startOnLoad:!0,mermaidAPI:Ho,parse:VH,render:FB,init:WH,run:_B,registerExternalDiagrams:HH,registerLayoutLoaders:I_,initialize:BB,parseError:void 0,contentLoaded:LB,setParseErrorHandler:UH,detectType:wm,registerIconPacks:H9,getRegisteredDiagramsMetadata:YH},Np=Xr;/*! Check if previously processed *//*!
375
+ * Wait for document loaded before starting the execution
376
+ */let qk=!1,GH=0;function Wk(){return document.documentElement.getAttribute("data-theme")==="dark"?"dark":"default"}const XH=({chart:e})=>{const t=jt.useRef(null),[r,i]=jt.useState(null),[n,a]=jt.useState("");return jt.useEffect(()=>{qk||(Np.initialize({startOnLoad:!1,theme:Wk(),securityLevel:"loose",fontFamily:"inherit"}),qk=!0);let s=!1;async function c(){try{const h=`mermaid-${++GH}`,u=Wk();Np.initialize({startOnLoad:!1,theme:u,securityLevel:"loose",fontFamily:"inherit"});const{svg:f}=await Np.render(h,e.trim());s||(a(f),i(null))}catch(h){s||(i(h instanceof Error?h.message:"Mermaid rendering failed"),a(""))}}return c(),()=>{s=!0}},[e]),r?D.jsx("div",{className:"mermaid-error",children:r}):D.jsx("div",{className:"mermaid-container",ref:t,children:n&&D.jsx("div",{dangerouslySetInnerHTML:{__html:n}})})};async function QH(e,t){t.preventDefault();const{currentView:r,projects:i,setCurrentView:n,setLoadingPage:a,openReference:s}=$t.getState(),c=e.match(/^(.+?)(?:#L(\d+)(?:-L(\d+))?)?$/);if(!c){window.open(e,"_blank");return}const[,h,u,f]=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)){s(p,u?parseInt(u,10):void 0,f?parseInt(f,10):void 0);return}const m=/\.[^/.\\]+$/.test(p),g=p.endsWith(".md");if(m&&!g){if(!r)return;const C=i.find(S=>S.id===r.projectId);if(!C)return;const k=p.startsWith("/")?p:`${C.path}/${h}`;s(k,u?parseInt(u,10):void 0,f?parseInt(f,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)),a(!0);try{const C=await im(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}`;s(k,u?parseInt(u,10):void 0,f?parseInt(f,10):void 0)}}}finally{a(!1)}}const KH=({content:e})=>{const t=jt.useMemo(()=>({code({className:r,children:i,...n}){const a=/language-(\w+)/.exec(r||""),s=a?a[1]:"",c=String(i).replace(/\n$/,""),h=s||c.includes(`
377
+ `);return s==="mermaid"?D.jsx(XH,{chart:c}):h?D.jsx("code",{className:r,...n,children:i}):D.jsx("code",{className:r,...n,children:i})},pre({children:r}){return D.jsx("pre",{children:r})},a({href:r,children:i}){return D.jsx("a",{href:r,onClick:n=>{r&&QH(r,n)},style:{color:"var(--accent)",cursor:"pointer",textDecoration:"none"},children:i})}}),[]);return e?D.jsx("div",{className:"markdown-body",children:D.jsx(oM,{remarkPlugins:[x4],components:t,children:e})}):null},ZH=({size:e=48})=>D.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:[D.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),D.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"})]}),JH=({size:e=24})=>D.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:D.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),tU=()=>{const e=$t(i=>i.currentView),t=$t(i=>i.currentWiki),r=t==null?void 0:t.pages.find(i=>i.slug===(e==null?void 0:e.slug));return e?e.loading?D.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"var(--text-tertiary)",gap:"12px"},children:[D.jsx(JH,{size:28}),D.jsx("div",{style:{fontSize:"13px"},children:"加载中..."})]}):e.error?D.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",gap:"12px"},children:[D.jsx("div",{style:{fontSize:"36px",color:"var(--danger)"},children:"!"}),D.jsx("div",{style:{fontSize:"16px",fontWeight:500,color:"var(--text-primary)"},children:"加载失败"}),D.jsx("div",{style:{fontSize:"13px",color:"var(--text-secondary)",maxWidth:"400px",textAlign:"center"},children:e.error})]}):D.jsxs("div",{style:{flex:1,height:"100%",overflowY:"auto",display:"flex",flexDirection:"column"},children:[r&&D.jsxs("div",{style:{padding:"24px 40px 0",borderBottom:"1px solid var(--border-light)"},children:[D.jsx("h1",{style:{fontSize:"24px",fontWeight:700,color:"var(--text-primary)",marginBottom:"4px",lineHeight:1.3},children:r.title}),D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",paddingBottom:"16px",fontSize:"12px",color:"var(--text-tertiary)"},children:[D.jsx("span",{children:r.section}),r.group&&D.jsxs(D.Fragment,{children:[D.jsx("span",{children:"/"}),D.jsx("span",{children:r.group})]}),D.jsx("span",{className:`badge ${r.level==="Beginner"?"badge-beginner":r.level==="Intermediate"?"badge-intermediate":"badge-advanced"}`,children:r.level})]})]}),D.jsx("div",{style:{flex:1,padding:"24px 40px 60px",maxWidth:"100%",overflowX:"hidden"},children:D.jsx(KH,{content:e.content})})]}):D.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"var(--text-tertiary)",gap:"16px"},children:[D.jsx(ZH,{size:56}),D.jsx("div",{style:{fontSize:"16px",fontWeight:500},children:"Zread Browser"}),D.jsx("div",{style:{fontSize:"13px",maxWidth:"360px",textAlign:"center"},children:"从左侧导航选择一个页面开始阅读,或使用 Ctrl+K 搜索内容"})]})};function eU(e,t,r,i){var n=this,a=jt.useRef(null),s=jt.useRef(0),c=jt.useRef(0),h=jt.useRef(null),u=jt.useRef([]),f=jt.useRef(),p=jt.useRef(),m=jt.useRef(e),g=jt.useRef(!0),x=jt.useRef(),C=jt.useRef();m.current=e;var k=typeof window<"u",S=!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,I=!!r.flushOnExit&&_,P="maxWait"in r,A="debounceOnServer"in r&&!!r.debounceOnServer,E=P?Math.max(+r.maxWait||0,t):null,W=jt.useMemo(function(){var et=function(q){var G=u.current,R=f.current;return u.current=f.current=null,s.current=q,c.current=c.current||q,p.current=m.current.apply(R,G)},M=function(q,G){S&&cancelAnimationFrame(h.current),h.current=S?requestAnimationFrame(q):setTimeout(q,G)},N=function(q){if(!g.current)return!1;var G=q-a.current;return!a.current||G>=t||G<0||P&&q-s.current>=E},J=function(q){return h.current=null,_&&u.current?et(q):(u.current=f.current=null,p.current)},nt=function q(){var G=Date.now();if(T&&c.current===s.current&&V(),N(G))return J(G);if(g.current){var R=t-(G-a.current),K=P?Math.min(R,E-(G-s.current)):R;M(q,K)}},V=function(){},j=function(){if(k||A){var q,G=Date.now(),R=N(G);if(u.current=[].slice.call(arguments),f.current=n,a.current=G,I&&!x.current&&(x.current=function(){var K;((K=globalThis.document)==null?void 0:K.visibilityState)==="hidden"&&C.current.flush()},(q=globalThis.document)==null||q.addEventListener==null||q.addEventListener("visibilitychange",x.current)),R){if(!h.current&&g.current)return s.current=a.current,M(nt,t),T?et(a.current):p.current;if(P)return M(nt,t),et(a.current)}return h.current||M(nt,t),p.current}};return j.cancel=function(){var q=h.current;q&&(S?cancelAnimationFrame(h.current):clearTimeout(h.current)),s.current=0,u.current=a.current=f.current=h.current=null},j.isPending=function(){return!!h.current},j.flush=function(){return h.current?J(Date.now()):p.current},j},[T,P,t,E,_,I,S,k,A,i]);return C.current=W,jt.useEffect(function(){return g.current=!0,function(){var et;I&&C.current.flush(),x.current&&((et=globalThis.document)==null||et.removeEventListener==null||et.removeEventListener("visibilitychange",x.current),x.current=null),g.current=!1}},[I]),W}const rU=({size:e=16})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("circle",{cx:"11",cy:"11",r:"8"}),D.jsx("path",{d:"M21 21l-4.35-4.35"})]}),iU=({size:e=18})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M18 6L6 18"}),D.jsx("path",{d:"M6 6l12 12"})]}),nU=({size:e=14})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),D.jsx("polyline",{points:"14 2 14 8 20 8"})]}),oU=({result:e,onClick:t})=>{const r=e.page.level==="Beginner"?"badge-beginner":e.page.level==="Intermediate"?"badge-intermediate":"badge-advanced";return D.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:[D.jsx(nU,{size:16}),D.jsxs("div",{style:{flex:1,minWidth:0},children:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"2px"},children:[D.jsx("span",{style:{fontWeight:500,fontSize:"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.page.title}),D.jsx("span",{className:`badge ${r}`,children:e.page.level})]}),D.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&&D.jsx("div",{style:{fontSize:"12px",color:"var(--text-secondary)",marginTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:e.content})]})]})},aU=()=>{const e=$t(x=>x.searchOpen),t=$t(x=>x.searchQuery),r=$t(x=>x.searchResults),i=$t(x=>x.config),n=$t(x=>x.setSearchOpen),a=$t(x=>x.setSearchQuery),s=$t(x=>x.setSearchResults),c=$t(x=>x.setCurrentProject),h=$t(x=>x.setCurrentView),u=jt.useRef(null);jt.useEffect(()=>{e&&setTimeout(()=>{var x;(x=u.current)==null||x.focus()},50)},[e]);const f=eU(async x=>{if(!x.trim()){s([]);return}const C=i==null?void 0:i.lastOpenedProject;if(!C){s([]);return}try{const k=await Yk(C,x);s(k)}catch(k){console.error("Search failed:",k),s([])}},200),p=jt.useCallback(x=>{const C=x.target.value;a(C),f(C)},[a,f]),m=jt.useCallback(x=>{x.projectId!==(i==null?void 0:i.lastOpenedProject)&&c(x.projectId);const C=$t.getState().projects.find(S=>S.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:S}=await Promise.resolve().then(()=>Zk);return{getPage:S}},void 0).then(({getPage:S})=>{S(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=jt.useCallback(x=>{x.target===x.currentTarget&&n(!1)},[n]);return e?D.jsx("div",{className:"overlay overlay-centered",onClick:g,children:D.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:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",borderBottom:"1px solid var(--border)"},children:[D.jsx(rU,{size:18}),D.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"}}),D.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:D.jsx(iU,{size:14})})]}),D.jsx("div",{style:{flex:1,overflowY:"auto",padding:"8px"},children:t&&r.length===0?D.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:"没有找到相关结果"}):t?r.map((x,C)=>D.jsx(oU,{result:x,onClick:()=>m(x)},`${x.projectId}-${x.page.slug}-${C}`)):D.jsx("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px"},children:"输入关键词开始搜索"})}),r.length>0&&D.jsxs("div",{style:{padding:"8px 16px",borderTop:"1px solid var(--border)",fontSize:"11px",color:"var(--text-tertiary)",textAlign:"center"},children:["找到 ",r.length," 个结果"]})]})}):null},sU=({size:e=18})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M18 6L6 18"}),D.jsx("path",{d:"M6 6l12 12"})]}),Hk=({size:e=16})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{d:"M12 5v14"}),D.jsx("path",{d:"M5 12h14"})]}),Uk=({size:e=14})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("polyline",{points:"3 6 5 6 21 6"}),D.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"})]}),lU=({size:e=16})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("polyline",{points:"23 4 23 10 17 10"}),D.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),cU=({size:e=18})=>D.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("circle",{cx:"12",cy:"12",r:"5"}),D.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),D.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),D.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),D.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),D.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),D.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),D.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),D.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}),hU=({size:e=18})=>D.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:D.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),Vk=({size:e=14})=>D.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:D.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"})}),uU=()=>{const e=$t(M=>M.settingsOpen),t=$t(M=>M.config),r=$t(M=>M.projects),i=$t(M=>M.setSettingsOpen),n=$t(M=>M.setConfig),a=$t(M=>M.setProjects),[s,c]=jt.useState(""),[h,u]=jt.useState(""),[f,p]=jt.useState(null),[m,g]=jt.useState(!1),[x,C]=jt.useState(null),[k,S]=jt.useState("general");jt.useEffect(()=>{e&&qp().then(p).catch(()=>{})},[e]);const T=jt.useCallback(M=>{M.target===M.currentTarget&&i(!1)},[i]),_=jt.useCallback(async()=>{if(!t)return;const M=t.theme==="dark"?"light":"dark";try{const N=await $h({theme:M});n(N)}catch(N){console.error("Failed to update theme:",N)}},[t,n]),I=jt.useCallback(async()=>{if(s.trim()){C(null);try{const M=await $h({scanPaths:[...(t==null?void 0:t.scanPaths)||[],s.trim()]});n(M),c("")}catch(M){C(M instanceof Error?M.message:"Failed to add scan path")}}},[s,t,n]),P=jt.useCallback(async M=>{if(t){C(null);try{const N=await $h({scanPaths:t.scanPaths.filter(J=>J!==M)});n(N)}catch(N){C(N instanceof Error?N.message:"Failed to remove scan path")}}},[t,n]),A=jt.useCallback(async()=>{if(h.trim()){C(null);try{const M=await Gk(h.trim());a([...r,M]),u("");const N=await Sl();n(N)}catch(M){C(M instanceof Error?M.message:"Failed to add project")}}},[h,r,a,n]),E=jt.useCallback(async M=>{C(null);try{await Xk(M),a(r.filter(J=>J.id!==M));const N=await Sl();n(N)}catch(N){C(N instanceof Error?N.message:"Failed to delete project")}},[r,a,n]),W=jt.useCallback(async()=>{g(!0),C(null),Qk().catch(N=>{C(N instanceof Error?N.message:"Scan failed")});const M=setInterval(async()=>{try{const N=await qp();if(p(N),!N.scanning&&N.lastScanAt){clearInterval(M),g(!1);const J=await Sl();n(J),a(J.projects)}}catch(N){console.error("Failed to get scan status:",N)}},500);return()=>clearInterval(M)},[n,a]);if(!e)return null;const et=(t==null?void 0:t.theme)==="dark";return D.jsx("div",{className:"overlay overlay-centered",onClick:T,children:D.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:[D.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid var(--border)"},children:[D.jsx("h2",{style:{fontSize:"16px",fontWeight:600,color:"var(--text-primary)",margin:0},children:"设置"}),D.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:D.jsx(sU,{size:18})})]}),D.jsx("div",{style:{display:"flex",borderBottom:"1px solid var(--border)",padding:"0 20px"},children:[{key:"general",label:"通用"},{key:"projects",label:"项目管理"},{key:"scan",label:"扫描"}].map(M=>D.jsx("button",{onClick:()=>S(M.key),style:{padding:"10px 16px",border:"none",borderBottom:k===M.key?"2px solid var(--accent)":"2px solid transparent",background:"transparent",color:k===M.key?"var(--accent)":"var(--text-secondary)",cursor:"pointer",fontSize:"13px",fontWeight:k===M.key?500:400,transition:"all 0.15s ease"},children:M.label},M.key))}),x&&D.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}),D.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"20px"},children:[k==="general"&&D.jsx("div",{children:D.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderRadius:"8px",background:"var(--bg-secondary)",marginBottom:"16px"},children:[D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[et?D.jsx(hU,{size:18}):D.jsx(cU,{size:18}),D.jsxs("div",{children:[D.jsx("div",{style:{fontSize:"14px",fontWeight:500,color:"var(--text-primary)"},children:"主题"}),D.jsx("div",{style:{fontSize:"12px",color:"var(--text-tertiary)"},children:et?"暗色模式":"浅色模式"})]})]}),D.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:D.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"&&D.jsxs("div",{children:[D.jsxs("div",{style:{marginBottom:"20px"},children:[D.jsx("label",{style:{display:"block",fontSize:"13px",fontWeight:500,color:"var(--text-primary)",marginBottom:"6px"},children:"手动添加项目"}),D.jsxs("div",{style:{display:"flex",gap:"8px"},children:[D.jsx("input",{type:"text",className:"input",value:h,onChange:M=>u(M.target.value),placeholder:"输入项目路径...",onKeyDown:M=>{M.key==="Enter"&&A()}}),D.jsxs("button",{className:"btn btn-primary",onClick:A,children:[D.jsx(Hk,{size:14}),"添加"]})]})]}),D.jsxs("div",{children:[D.jsxs("label",{style:{display:"block",fontSize:"13px",fontWeight:500,color:"var(--text-primary)",marginBottom:"8px"},children:["已发现的项目 (",r.length,")"]}),r.length===0?D.jsx("div",{style:{padding:"20px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px",background:"var(--bg-secondary)",borderRadius:"8px"},children:"暂无项目,请手动添加或扫描发现"}):D.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:r.map(M=>D.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:[D.jsx(Vk,{size:16}),D.jsxs("div",{style:{flex:1,minWidth:0},children:[D.jsx("div",{style:{fontSize:"13px",fontWeight:500,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:M.name}),D.jsx("div",{style:{fontSize:"11px",color:"var(--text-tertiary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:M.path})]}),D.jsx("button",{className:"btn btn-icon",onClick:()=>E(M.id),title:"删除项目",style:{color:"var(--danger)",flexShrink:0},children:D.jsx(Uk,{size:14})})]},M.id))})]})]}),k==="scan"&&D.jsxs("div",{children:[D.jsxs("div",{style:{marginBottom:"20px"},children:[D.jsx("label",{style:{display:"block",fontSize:"13px",fontWeight:500,color:"var(--text-primary)",marginBottom:"6px"},children:"扫描路径"}),D.jsxs("div",{style:{display:"flex",gap:"8px",marginBottom:"8px"},children:[D.jsx("input",{type:"text",className:"input",value:s,onChange:M=>c(M.target.value),placeholder:"输入要扫描的目录路径...",onKeyDown:M=>{M.key==="Enter"&&I()}}),D.jsxs("button",{className:"btn btn-primary",onClick:I,children:[D.jsx(Hk,{size:14}),"添加"]})]}),((t==null?void 0:t.scanPaths)||[]).length===0?D.jsx("div",{style:{padding:"12px",textAlign:"center",color:"var(--text-tertiary)",fontSize:"13px",background:"var(--bg-secondary)",borderRadius:"6px"},children:"暂无扫描路径"}):D.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:((t==null?void 0:t.scanPaths)||[]).map(M=>D.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:[D.jsx(Vk,{size:13}),D.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:M}),D.jsx("button",{className:"btn btn-icon",onClick:()=>P(M),style:{color:"var(--danger)"},children:D.jsx(Uk,{size:12})})]},M))})]}),D.jsxs("div",{children:[D.jsxs("button",{className:"btn btn-primary",onClick:W,disabled:m,style:{marginBottom:"12px",opacity:m?.7:1,cursor:m?"not-allowed":"pointer"},children:[D.jsx(lU,{size:14}),m?"扫描中...":"开始扫描"]}),f&&D.jsxs("div",{style:{padding:"12px 16px",borderRadius:"8px",background:"var(--bg-secondary)",border:"1px solid var(--border-light)",fontSize:"13px"},children:[D.jsxs("div",{style:{color:"var(--text-primary)",marginBottom:"4px"},children:["状态:",f.scanning?"扫描中":"空闲"]}),f.progress&&D.jsxs("div",{style:{color:"var(--text-secondary)",fontSize:"12px"},children:["已扫描 ",f.progress.scanned,"/",f.progress.total,", 发现 ",f.progress.found," 个项目"]}),f.lastScanAt&&D.jsxs("div",{style:{color:"var(--text-tertiary)",fontSize:"11px",marginTop:"4px"},children:["上次扫描:",new Date(f.lastScanAt).toLocaleString("zh-CN")]})]})]})]})]})]})})},fU=()=>{const e=$t(f=>f.referenceOpen),t=$t(f=>f.referenceData),r=$t(f=>f.closeReference),[i,n]=jt.useState([]),[a,s]=jt.useState(!1),[c,h]=jt.useState(null);jt.useEffect(()=>{e&&t&&u()},[e,t]);const u=async()=>{if(t){s(!0),h(null);try{const f=await Kk(t.filePath,t.startLine,t.endLine);n(f.lines)}catch(f){h(f instanceof Error?f.message:"Failed to load file")}finally{s(!1)}}};return e?D.jsx("div",{className:"overlay overlay-centered",onClick:r,children:D.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:f=>f.stopPropagation(),children:[D.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid #333",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsxs("div",{children:[D.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)&&D.jsxs("div",{style:{color:"#888",fontSize:"12px",marginTop:"4px"},children:["L",t.startLine,"-L",t.endLine]})]}),D.jsx("button",{onClick:r,style:{background:"transparent",border:"none",color:"#888",cursor:"pointer",fontSize:"20px",lineHeight:1,padding:"4px 8px"},children:"×"})]}),D.jsx("div",{style:{flex:1,overflow:"auto",padding:"16px 0",fontFamily:"'SF Mono', Monaco, 'Cascadia Code', monospace",fontSize:"13px",lineHeight:"1.6"},children:a?D.jsx("div",{style:{color:"#888",textAlign:"center",padding:"40px"},children:"加载中..."}):c?D.jsx("div",{style:{color:"#ff6b6b",textAlign:"center",padding:"40px"},children:c}):D.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:D.jsx("tbody",{children:i.map(f=>D.jsxs("tr",{style:{background:f.highlighted?"#0d3d3d":"transparent"},children:[D.jsx("td",{style:{padding:"2px 12px 2px 20px",color:"#666",textAlign:"right",userSelect:"none",width:"50px"},children:f.lineNumber}),D.jsx("td",{style:{padding:"2px 20px 2px 12px",color:f.highlighted?"#e4e4e4":"#a0a0a0",whiteSpace:"pre"},children:f.content||" "})]},f.lineNumber))})})})]})}):null};function dU(){const e=$t(t=>t.config);jt.useEffect(()=>{const t=(e==null?void 0:e.theme)||"light";document.documentElement.setAttribute("data-theme",t)},[e==null?void 0:e.theme])}function pU(){const e=$t(a=>a.toggleSearch),t=$t(a=>a.setSearchOpen),r=$t(a=>a.setSettingsOpen),i=$t(a=>a.searchOpen),n=$t(a=>a.settingsOpen);jt.useEffect(()=>{function a(s){if((s.ctrlKey||s.metaKey)&&s.key==="k"){s.preventDefault(),e();return}s.key==="Escape"&&(i?t(!1):n&&r(!1))}return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t,r,i,n])}const gU=()=>{const e=$t(i=>i.setConfig),t=$t(i=>i.setProjects),r=$t(i=>i.setCurrentWiki);return $t(i=>i.setCurrentView),$t(i=>i.setCurrentProject),dU(),pU(),jt.useEffect(()=>{let i=!1;async function n(){try{const a=await Sl();if(i)return;if(e(a),t(a.projects),a.lastOpenedProject)try{const s=await rm(a.lastOpenedProject);if(i)return;r(s)}catch(s){console.error("Failed to load last opened project wiki:",s)}}catch(a){console.error("Failed to initialize app:",a)}}return n(),()=>{i=!0}},[e,t,r]),D.jsxs(EE,{children:[D.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[D.jsx(NE,{}),D.jsxs("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[D.jsx(GE,{}),D.jsx(tU,{})]})]}),D.jsx(aU,{}),D.jsx(uU,{}),D.jsx(fU,{})]})},AB=document.getElementById("root");if(!AB)throw new Error("Root element not found");LE.createRoot(AB).render(D.jsx(Fa.StrictMode,{children:D.jsx(gU,{})}));export{L2 as $,bU as A,to as B,w4 as C,_e as D,eO as E,ny as F,y2 as G,EN as H,P$ as I,N6 as J,oP as K,Dl as L,CU as M,af as N,OP as O,_2 as P,aC as Q,T$ as R,mg as S,LN as T,tc as U,Ii as V,ot as W,it as X,WP as Y,kN as Z,v as _,XP as a,VC as a$,b$ as a0,_C as a1,TC as a2,FU as a3,TU as a4,LU as a5,BU as a6,wU as a7,Dm as a8,EU as a9,Wj as aA,qj as aB,V9 as aC,s2 as aD,v$ as aE,xU as aF,of as aG,Lu as aH,xS as aI,Ql as aJ,lc as aK,H9 as aL,W9 as aM,Mm as aN,Kn as aO,zl as aP,CC as aQ,eR as aR,G8 as aS,mS as aT,cS as aU,Zz as aV,Tu as aW,Jz as aX,ac as aY,Eo as aZ,W8 as a_,SU as aa,wa as ab,MU as ac,AU as ad,_U as ae,yj as af,E_ as ag,WU as ah,q6 as ai,wr as aj,vn as ak,cl as al,oy as am,SS as an,qo as ao,LS as ap,Vt as aq,Yi as ar,St as as,C7 as at,qU as au,HU as av,NU as aw,Lt as ax,jU as ay,Gj as az,GP as b,Vo as b0,t8 as b1,Km as b2,Kz as b3,i8 as b4,ls as b5,Y8 as b6,mN as b7,l8 as b8,cN as b9,jC as bA,Zm as bB,uS as bC,Kg as bD,yU as bE,re as bF,Xm as ba,Rk as bb,Bt as bc,ES as bd,Or as be,GD as bf,Am as bg,q2 as bh,ic as bi,U2 as bj,vU as bk,v4 as bl,gN as bm,lN as bn,yN as bo,tf as bp,Xz as bq,Qm as br,gS as bs,CN as bt,ss as bu,tN as bv,q7 as bw,oc as bx,Bu as by,so as bz,ce as c,Qt as d,B2 as e,qe as f,KP as g,xn as h,Ai as i,U6 as j,ec as k,st as l,_S as m,kU as n,VU as o,ZP as p,JP as q,UU as r,QP as s,j6 as t,Bi as u,Rj as v,MN as w,IU as x,Ka as y,YP as z};