@donartcha/openlag 0.1.2 → 0.1.3

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 (62) hide show
  1. package/dist/assets/{arc-BJpiUvSh.js → arc-CQVyn5E3.js} +1 -1
  2. package/dist/assets/{architectureDiagram-3BPJPVTR-Dc7Q7uiQ.js → architectureDiagram-3BPJPVTR-BK7dvXUP.js} +1 -1
  3. package/dist/assets/{blockDiagram-GPEHLZMM-dYx8zJHa.js → blockDiagram-GPEHLZMM-CZACUlID.js} +1 -1
  4. package/dist/assets/{c4Diagram-AAUBKEIU-DEW1mepT.js → c4Diagram-AAUBKEIU-BaIdnoVu.js} +1 -1
  5. package/dist/assets/channel-cdJUve2-.js +1 -0
  6. package/dist/assets/{chunk-2J33WTMH-DI5V_htM.js → chunk-2J33WTMH-I6mjZe22.js} +1 -1
  7. package/dist/assets/{chunk-4BX2VUAB-Dpc1Oo7a.js → chunk-4BX2VUAB-Bni2aQg6.js} +1 -1
  8. package/dist/assets/{chunk-55IACEB6-BVCvy2y7.js → chunk-55IACEB6-BVvD3auX.js} +1 -1
  9. package/dist/assets/{chunk-727SXJPM-CiQJMcWK.js → chunk-727SXJPM-BvRYlYfC.js} +1 -1
  10. package/dist/assets/{chunk-AQP2D5EJ-CfIJf1-T.js → chunk-AQP2D5EJ-DODUUYy0.js} +1 -1
  11. package/dist/assets/{chunk-FMBD7UC4-CSSwZdAo.js → chunk-FMBD7UC4-CSnOrzk-.js} +1 -1
  12. package/dist/assets/{chunk-ND2GUHAM-CpsO12XK.js → chunk-ND2GUHAM-Cwj-8YlS.js} +1 -1
  13. package/dist/assets/{chunk-QZHKN3VN-CWuoRpFf.js → chunk-QZHKN3VN-DvvnV7FS.js} +1 -1
  14. package/dist/assets/classDiagram-4FO5ZUOK-cojzztnL.js +1 -0
  15. package/dist/assets/classDiagram-v2-Q7XG4LA2-cojzztnL.js +1 -0
  16. package/dist/assets/{cose-bilkent-S5V4N54A-COfB4T0K.js → cose-bilkent-S5V4N54A-CpzWWErA.js} +1 -1
  17. package/dist/assets/{dagre-BM42HDAG-C1H0EKAG.js → dagre-BM42HDAG-BoDP4qSL.js} +1 -1
  18. package/dist/assets/{diagram-2AECGRRQ-D6sEKSEZ.js → diagram-2AECGRRQ-DHIQUqF0.js} +1 -1
  19. package/dist/assets/{diagram-5GNKFQAL-Brd_bOCT.js → diagram-5GNKFQAL-xlx_pjV_.js} +1 -1
  20. package/dist/assets/{diagram-KO2AKTUF-Dt0MCanV.js → diagram-KO2AKTUF-B8MO1HgW.js} +1 -1
  21. package/dist/assets/{diagram-LMA3HP47-DQrGF35P.js → diagram-LMA3HP47-CRSJknuZ.js} +1 -1
  22. package/dist/assets/{diagram-OG6HWLK6-Dm7seF-q.js → diagram-OG6HWLK6-CeTvy4fY.js} +1 -1
  23. package/dist/assets/{erDiagram-TEJ5UH35-U6Gl6mUU.js → erDiagram-TEJ5UH35-DFtC0ScP.js} +1 -1
  24. package/dist/assets/{flowDiagram-I6XJVG4X-C7K7oK1X.js → flowDiagram-I6XJVG4X-DMRa3J_m.js} +1 -1
  25. package/dist/assets/{ganttDiagram-6RSMTGT7-CNvz6W3E.js → ganttDiagram-6RSMTGT7-Bxuykf6p.js} +1 -1
  26. package/dist/assets/{gitGraphDiagram-PVQCEYII-CyhbUvLq.js → gitGraphDiagram-PVQCEYII-CXTm84QI.js} +1 -1
  27. package/dist/assets/index-D02phRy3.css +1 -0
  28. package/dist/assets/index-Dvw-BZIp.js +734 -0
  29. package/dist/assets/{infoDiagram-5YYISTIA-DyHSE0hy.js → infoDiagram-5YYISTIA-D2tvLdtC.js} +1 -1
  30. package/dist/assets/{ishikawaDiagram-YF4QCWOH-fjlmrHx3.js → ishikawaDiagram-YF4QCWOH-D0jVP7EP.js} +1 -1
  31. package/dist/assets/{journeyDiagram-JHISSGLW-DOoASPaf.js → journeyDiagram-JHISSGLW-Ca5D6tBE.js} +1 -1
  32. package/dist/assets/{kanban-definition-UN3LZRKU-BEiKB1N_.js → kanban-definition-UN3LZRKU-BQ6UUXz2.js} +1 -1
  33. package/dist/assets/{linear-CPWtktbJ.js → linear-ARjH3_jK.js} +1 -1
  34. package/dist/assets/{mindmap-definition-RKZ34NQL-DliBjc9v.js → mindmap-definition-RKZ34NQL-CRRCJeZm.js} +1 -1
  35. package/dist/assets/{pieDiagram-4H26LBE5-CDu9kWU3.js → pieDiagram-4H26LBE5-BwtLTkTI.js} +1 -1
  36. package/dist/assets/{quadrantDiagram-W4KKPZXB-CEp1tT5r.js → quadrantDiagram-W4KKPZXB-BZ6VcAAZ.js} +1 -1
  37. package/dist/assets/{requirementDiagram-4Y6WPE33-BD2uboSV.js → requirementDiagram-4Y6WPE33-CmuAE86r.js} +1 -1
  38. package/dist/assets/{sankeyDiagram-5OEKKPKP-ZNgAHRIH.js → sankeyDiagram-5OEKKPKP-DRMutNq4.js} +1 -1
  39. package/dist/assets/{sequenceDiagram-3UESZ5HK-BrBpCFjG.js → sequenceDiagram-3UESZ5HK-DXssdhHI.js} +1 -1
  40. package/dist/assets/{stateDiagram-AJRCARHV-CDZcNxGe.js → stateDiagram-AJRCARHV-jyjJA7Vx.js} +1 -1
  41. package/dist/assets/stateDiagram-v2-BHNVJYJU-CmxCW1S9.js +1 -0
  42. package/dist/assets/{timeline-definition-PNZ67QCA-BszoRXfI.js → timeline-definition-PNZ67QCA-CMZ7Ow2L.js} +1 -1
  43. package/dist/assets/{vennDiagram-CIIHVFJN-CqnUhalx.js → vennDiagram-CIIHVFJN-GcmWlOLV.js} +1 -1
  44. package/dist/assets/{wardley-L42UT6IY-Cw8Z6Ke3.js → wardley-L42UT6IY-DbIT5rBc.js} +1 -1
  45. package/dist/assets/{wardleyDiagram-YWT4CUSO-TUrrIhGl.js → wardleyDiagram-YWT4CUSO-gYWXw-3o.js} +1 -1
  46. package/dist/assets/{xychartDiagram-2RQKCTM6-DWvpHqB8.js → xychartDiagram-2RQKCTM6-BVhFPdW8.js} +1 -1
  47. package/dist/cli/openlag.js +34 -3
  48. package/dist/index.html +3 -3
  49. package/index.html +1 -1
  50. package/package.json +2 -2
  51. package/scripts/cli/generate.ts +14 -2
  52. package/scripts/cli/init.ts +27 -4
  53. package/src/App.tsx +3 -2
  54. package/src/components/DocumentationView.tsx +92 -440
  55. package/src/components/GraphView.tsx +26 -3
  56. package/src/store.ts +6 -2
  57. package/dist/assets/channel-CfEECmqT.js +0 -1
  58. package/dist/assets/classDiagram-4FO5ZUOK-CqWhRzlO.js +0 -1
  59. package/dist/assets/classDiagram-v2-Q7XG4LA2-CqWhRzlO.js +0 -1
  60. package/dist/assets/index-By2WPc1i.js +0 -729
  61. package/dist/assets/index-CBSt31g-.css +0 -1
  62. package/dist/assets/stateDiagram-v2-BHNVJYJU-MAgBD3Ln.js +0 -1
@@ -0,0 +1,734 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-BM42HDAG-BoDP4qSL.js","assets/graph-CAnANduQ.js","assets/layout-DGIYPm2g.js","assets/cose-bilkent-S5V4N54A-CpzWWErA.js","assets/cytoscape.esm-D_LviqZs.js","assets/c4Diagram-AAUBKEIU-BaIdnoVu.js","assets/chunk-ND2GUHAM-Cwj-8YlS.js","assets/flowDiagram-I6XJVG4X-DMRa3J_m.js","assets/chunk-FMBD7UC4-CSnOrzk-.js","assets/chunk-55IACEB6-BVvD3auX.js","assets/chunk-2J33WTMH-I6mjZe22.js","assets/channel-cdJUve2-.js","assets/erDiagram-TEJ5UH35-DFtC0ScP.js","assets/gitGraphDiagram-PVQCEYII-CXTm84QI.js","assets/chunk-4BX2VUAB-Bni2aQg6.js","assets/chunk-QZHKN3VN-DvvnV7FS.js","assets/wardley-L42UT6IY-DbIT5rBc.js","assets/ganttDiagram-6RSMTGT7-Bxuykf6p.js","assets/linear-ARjH3_jK.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-5YYISTIA-D2tvLdtC.js","assets/pieDiagram-4H26LBE5-BwtLTkTI.js","assets/arc-CQVyn5E3.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-W4KKPZXB-BZ6VcAAZ.js","assets/xychartDiagram-2RQKCTM6-BVhFPdW8.js","assets/requirementDiagram-4Y6WPE33-CmuAE86r.js","assets/sequenceDiagram-3UESZ5HK-DXssdhHI.js","assets/classDiagram-4FO5ZUOK-cojzztnL.js","assets/chunk-727SXJPM-BvRYlYfC.js","assets/classDiagram-v2-Q7XG4LA2-cojzztnL.js","assets/stateDiagram-AJRCARHV-jyjJA7Vx.js","assets/chunk-AQP2D5EJ-DODUUYy0.js","assets/stateDiagram-v2-BHNVJYJU-CmxCW1S9.js","assets/journeyDiagram-JHISSGLW-Ca5D6tBE.js","assets/timeline-definition-PNZ67QCA-CMZ7Ow2L.js","assets/mindmap-definition-RKZ34NQL-CRRCJeZm.js","assets/kanban-definition-UN3LZRKU-BQ6UUXz2.js","assets/sankeyDiagram-5OEKKPKP-DRMutNq4.js","assets/diagram-LMA3HP47-CRSJknuZ.js","assets/diagram-2AECGRRQ-DHIQUqF0.js","assets/blockDiagram-GPEHLZMM-CZACUlID.js","assets/diagram-5GNKFQAL-xlx_pjV_.js","assets/architectureDiagram-3BPJPVTR-BK7dvXUP.js","assets/diagram-KO2AKTUF-B8MO1HgW.js","assets/diagram-OG6HWLK6-CeTvy4fY.js","assets/wardleyDiagram-YWT4CUSO-gYWXw-3o.js"])))=>i.map(i=>d[i]);
2
+ var PP=Object.defineProperty;var HP=(t,e,r)=>e in t?PP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Re=(t,e,r)=>HP(t,typeof e!="symbol"?e+"":e,r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=r(n);fetch(n.href,s)}})();var Rf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c0={exports:{}},Wc={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and 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 gE;function UP(){if(gE)return Wc;gE=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(i,n,s){var o=null;if(s!==void 0&&(o=""+s),n.key!==void 0&&(o=""+n.key),"key"in n){s={};for(var c in n)c!=="key"&&(s[c]=n[c])}else s=n;return n=s.ref,{$$typeof:t,type:i,key:o,ref:n!==void 0?n:null,props:s}}return Wc.Fragment=e,Wc.jsx=r,Wc.jsxs=r,Wc}var mE;function GP(){return mE||(mE=1,c0.exports=UP()),c0.exports}var T=GP(),u0={exports:{}},Jt={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and 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 yE;function YP(){if(yE)return Jt;yE=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator;function g(G){return G===null||typeof G!="object"?null:(G=m&&G[m]||G["@@iterator"],typeof G=="function"?G:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function w(G,Z,H){this.props=G,this.context=Z,this.refs=b,this.updater=H||x}w.prototype.isReactComponent={},w.prototype.setState=function(G,Z){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,Z,"setState")},w.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function _(){}_.prototype=w.prototype;function S(G,Z,H){this.props=G,this.context=Z,this.refs=b,this.updater=H||x}var E=S.prototype=new _;E.constructor=S,v(E,w.prototype),E.isPureReactComponent=!0;var L=Array.isArray;function A(){}var R={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function Y(G,Z,H){var Q=H.ref;return{$$typeof:t,type:G,key:Z,ref:Q!==void 0?Q:null,props:H}}function W(G,Z){return Y(G.type,Z,G.props)}function O(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function z(G){var Z={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(H){return Z[H]})}var X=/\/+/g;function M(G,Z){return typeof G=="object"&&G!==null&&G.key!=null?z(""+G.key):Z.toString(36)}function F(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(A,A):(G.status="pending",G.then(function(Z){G.status==="pending"&&(G.status="fulfilled",G.value=Z)},function(Z){G.status==="pending"&&(G.status="rejected",G.reason=Z)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function N(G,Z,H,Q,J){var tt=typeof G;(tt==="undefined"||tt==="boolean")&&(G=null);var K=!1;if(G===null)K=!0;else switch(tt){case"bigint":case"string":case"number":K=!0;break;case"object":switch(G.$$typeof){case t:case e:K=!0;break;case f:return K=G._init,N(K(G._payload),Z,H,Q,J)}}if(K)return J=J(G),K=Q===""?"."+M(G,0):Q,L(J)?(H="",K!=null&&(H=K.replace(X,"$&/")+"/"),N(J,Z,H,"",function(it){return it})):J!=null&&(O(J)&&(J=W(J,H+(J.key==null||G&&G.key===J.key?"":(""+J.key).replace(X,"$&/")+"/")+K)),Z.push(J)),1;K=0;var nt=Q===""?".":Q+":";if(L(G))for(var ct=0;ct<G.length;ct++)Q=G[ct],tt=nt+M(Q,ct),K+=N(Q,Z,H,tt,J);else if(ct=g(G),typeof ct=="function")for(G=ct.call(G),ct=0;!(Q=G.next()).done;)Q=Q.value,tt=nt+M(Q,ct++),K+=N(Q,Z,H,tt,J);else if(tt==="object"){if(typeof G.then=="function")return N(F(G),Z,H,Q,J);throw Z=String(G),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return K}function P(G,Z,H){if(G==null)return G;var Q=[],J=0;return N(G,Q,"","",function(tt){return Z.call(H,tt,J++)}),Q}function $(G){if(G._status===-1){var Z=G._result;Z=Z(),Z.then(function(H){(G._status===0||G._status===-1)&&(G._status=1,G._result=H)},function(H){(G._status===0||G._status===-1)&&(G._status=2,G._result=H)}),G._status===-1&&(G._status=0,G._result=Z)}if(G._status===1)return G._result.default;throw G._result}var q=typeof reportError=="function"?reportError:function(G){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof G=="object"&&G!==null&&typeof G.message=="string"?String(G.message):String(G),error:G});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",G);return}console.error(G)},I={map:P,forEach:function(G,Z,H){P(G,function(){Z.apply(this,arguments)},H)},count:function(G){var Z=0;return P(G,function(){Z++}),Z},toArray:function(G){return P(G,function(Z){return Z})||[]},only:function(G){if(!O(G))throw Error("React.Children.only expected to receive a single React element child.");return G}};return Jt.Activity=p,Jt.Children=I,Jt.Component=w,Jt.Fragment=r,Jt.Profiler=n,Jt.PureComponent=S,Jt.StrictMode=i,Jt.Suspense=u,Jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Jt.__COMPILER_RUNTIME={__proto__:null,c:function(G){return R.H.useMemoCache(G)}},Jt.cache=function(G){return function(){return G.apply(null,arguments)}},Jt.cacheSignal=function(){return null},Jt.cloneElement=function(G,Z,H){if(G==null)throw Error("The argument must be a React element, but you passed "+G+".");var Q=v({},G.props),J=G.key;if(Z!=null)for(tt in Z.key!==void 0&&(J=""+Z.key),Z)!j.call(Z,tt)||tt==="key"||tt==="__self"||tt==="__source"||tt==="ref"&&Z.ref===void 0||(Q[tt]=Z[tt]);var tt=arguments.length-2;if(tt===1)Q.children=H;else if(1<tt){for(var K=Array(tt),nt=0;nt<tt;nt++)K[nt]=arguments[nt+2];Q.children=K}return Y(G.type,J,Q)},Jt.createContext=function(G){return G={$$typeof:o,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null},G.Provider=G,G.Consumer={$$typeof:s,_context:G},G},Jt.createElement=function(G,Z,H){var Q,J={},tt=null;if(Z!=null)for(Q in Z.key!==void 0&&(tt=""+Z.key),Z)j.call(Z,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(J[Q]=Z[Q]);var K=arguments.length-2;if(K===1)J.children=H;else if(1<K){for(var nt=Array(K),ct=0;ct<K;ct++)nt[ct]=arguments[ct+2];J.children=nt}if(G&&G.defaultProps)for(Q in K=G.defaultProps,K)J[Q]===void 0&&(J[Q]=K[Q]);return Y(G,tt,J)},Jt.createRef=function(){return{current:null}},Jt.forwardRef=function(G){return{$$typeof:c,render:G}},Jt.isValidElement=O,Jt.lazy=function(G){return{$$typeof:f,_payload:{_status:-1,_result:G},_init:$}},Jt.memo=function(G,Z){return{$$typeof:h,type:G,compare:Z===void 0?null:Z}},Jt.startTransition=function(G){var Z=R.T,H={};R.T=H;try{var Q=G(),J=R.S;J!==null&&J(H,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(A,q)}catch(tt){q(tt)}finally{Z!==null&&H.types!==null&&(Z.types=H.types),R.T=Z}},Jt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Jt.use=function(G){return R.H.use(G)},Jt.useActionState=function(G,Z,H){return R.H.useActionState(G,Z,H)},Jt.useCallback=function(G,Z){return R.H.useCallback(G,Z)},Jt.useContext=function(G){return R.H.useContext(G)},Jt.useDebugValue=function(){},Jt.useDeferredValue=function(G,Z){return R.H.useDeferredValue(G,Z)},Jt.useEffect=function(G,Z){return R.H.useEffect(G,Z)},Jt.useEffectEvent=function(G){return R.H.useEffectEvent(G)},Jt.useId=function(){return R.H.useId()},Jt.useImperativeHandle=function(G,Z,H){return R.H.useImperativeHandle(G,Z,H)},Jt.useInsertionEffect=function(G,Z){return R.H.useInsertionEffect(G,Z)},Jt.useLayoutEffect=function(G,Z){return R.H.useLayoutEffect(G,Z)},Jt.useMemo=function(G,Z){return R.H.useMemo(G,Z)},Jt.useOptimistic=function(G,Z){return R.H.useOptimistic(G,Z)},Jt.useReducer=function(G,Z,H){return R.H.useReducer(G,Z,H)},Jt.useRef=function(G){return R.H.useRef(G)},Jt.useState=function(G){return R.H.useState(G)},Jt.useSyncExternalStore=function(G,Z,H){return R.H.useSyncExternalStore(G,Z,H)},Jt.useTransition=function(){return R.H.useTransition()},Jt.version="19.2.6",Jt}var xE;function th(){return xE||(xE=1,u0.exports=YP()),u0.exports}var lt=th();const sl=Gl(lt);var h0={exports:{}},Vc={},f0={exports:{}},d0={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and 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 bE;function WP(){return bE||(bE=1,(function(t){function e(N,P){var $=N.length;N.push(P);t:for(;0<$;){var q=$-1>>>1,I=N[q];if(0<n(I,P))N[q]=P,N[$]=I,$=q;else break t}}function r(N){return N.length===0?null:N[0]}function i(N){if(N.length===0)return null;var P=N[0],$=N.pop();if($!==P){N[0]=$;t:for(var q=0,I=N.length,G=I>>>1;q<G;){var Z=2*(q+1)-1,H=N[Z],Q=Z+1,J=N[Q];if(0>n(H,$))Q<I&&0>n(J,H)?(N[q]=J,N[Q]=$,q=Q):(N[q]=H,N[Z]=$,q=Z);else if(Q<I&&0>n(J,$))N[q]=J,N[Q]=$,q=Q;else break t}}return P}function n(N,P){var $=N.sortIndex-P.sortIndex;return $!==0?$:N.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,c=o.now();t.unstable_now=function(){return o.now()-c}}var u=[],h=[],f=1,p=null,m=3,g=!1,x=!1,v=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function E(N){for(var P=r(h);P!==null;){if(P.callback===null)i(h);else if(P.startTime<=N)i(h),P.sortIndex=P.expirationTime,e(u,P);else break;P=r(h)}}function L(N){if(v=!1,E(N),!x)if(r(u)!==null)x=!0,A||(A=!0,z());else{var P=r(h);P!==null&&F(L,P.startTime-N)}}var A=!1,R=-1,j=5,Y=-1;function W(){return b?!0:!(t.unstable_now()-Y<j)}function O(){if(b=!1,A){var N=t.unstable_now();Y=N;var P=!0;try{t:{x=!1,v&&(v=!1,_(R),R=-1),g=!0;var $=m;try{e:{for(E(N),p=r(u);p!==null&&!(p.expirationTime>N&&W());){var q=p.callback;if(typeof q=="function"){p.callback=null,m=p.priorityLevel;var I=q(p.expirationTime<=N);if(N=t.unstable_now(),typeof I=="function"){p.callback=I,E(N),P=!0;break e}p===r(u)&&i(u),E(N)}else i(u);p=r(u)}if(p!==null)P=!0;else{var G=r(h);G!==null&&F(L,G.startTime-N),P=!1}}break t}finally{p=null,m=$,g=!1}P=void 0}}finally{P?z():A=!1}}}var z;if(typeof S=="function")z=function(){S(O)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,M=X.port2;X.port1.onmessage=O,z=function(){M.postMessage(null)}}else z=function(){w(O,0)};function F(N,P){R=w(function(){N(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_next=function(N){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var $=m;m=P;try{return N()}finally{m=$}},t.unstable_requestPaint=function(){b=!0},t.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var $=m;m=N;try{return P()}finally{m=$}},t.unstable_scheduleCallback=function(N,P,$){var q=t.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?q+$:q):$=q,N){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=$+I,N={id:f++,callback:P,priorityLevel:N,startTime:$,expirationTime:I,sortIndex:-1},$>q?(N.sortIndex=$,e(h,N),r(u)===null&&N===r(h)&&(v?(_(R),R=-1):v=!0,F(L,$-q))):(N.sortIndex=I,e(u,N),x||g||(x=!0,A||(A=!0,z()))),N},t.unstable_shouldYield=W,t.unstable_wrapCallback=function(N){var P=m;return function(){var $=m;m=P;try{return N.apply(this,arguments)}finally{m=$}}}})(d0)),d0}var vE;function VP(){return vE||(vE=1,f0.exports=WP()),f0.exports}var p0={exports:{}},zr={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and 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 CE;function XP(){if(CE)return zr;CE=1;var t=th();function e(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)h+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},n=Symbol.for("react.portal");function s(u,h,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:p==null?null:""+p,children:u,containerInfo:h,implementation:f}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,h){if(u==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return zr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zr.createPortal=function(u,h){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(u,h,null,f)},zr.flushSync=function(u){var h=o.T,f=i.p;try{if(o.T=null,i.p=2,u)return u()}finally{o.T=h,i.p=f,i.d.f()}},zr.preconnect=function(u,h){typeof u=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(u,h))},zr.prefetchDNS=function(u){typeof u=="string"&&i.d.D(u)},zr.preinit=function(u,h){if(typeof u=="string"&&h&&typeof h.as=="string"){var f=h.as,p=c(f,h.crossOrigin),m=typeof h.integrity=="string"?h.integrity:void 0,g=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;f==="style"?i.d.S(u,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:g}):f==="script"&&i.d.X(u,{crossOrigin:p,integrity:m,fetchPriority:g,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},zr.preinitModule=function(u,h){if(typeof u=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var f=c(h.as,h.crossOrigin);i.d.M(u,{crossOrigin:f,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(u)},zr.preload=function(u,h){if(typeof u=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var f=h.as,p=c(f,h.crossOrigin);i.d.L(u,f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},zr.preloadModule=function(u,h){if(typeof u=="string")if(h){var f=c(h.as,h.crossOrigin);i.d.m(u,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:f,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(u)},zr.requestFormReset=function(u){i.d.r(u)},zr.unstable_batchedUpdates=function(u,h){return u(h)},zr.useFormState=function(u,h,f){return o.H.useFormState(u,h,f)},zr.useFormStatus=function(){return o.H.useHostTransitionStatus()},zr.version="19.2.6",zr}var wE;function oO(){if(wE)return p0.exports;wE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),p0.exports=XP(),p0.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var SE;function QP(){if(SE)return Vc;SE=1;var t=VP(),e=th(),r=oO();function i(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var l=a,d=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(d=l.return),a=l.return;while(a)}return l.tag===3?d:null}function o(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function c(a){if(a.tag===31){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function u(a){if(s(a)!==a)throw Error(i(188))}function h(a){var l=a.alternate;if(!l){if(l=s(a),l===null)throw Error(i(188));return l!==a?null:a}for(var d=a,y=l;;){var C=d.return;if(C===null)break;var k=C.alternate;if(k===null){if(y=C.return,y!==null){d=y;continue}break}if(C.child===k.child){for(k=C.child;k;){if(k===d)return u(C),a;if(k===y)return u(C),l;k=k.sibling}throw Error(i(188))}if(d.return!==y.return)d=C,y=k;else{for(var D=!1,V=C.child;V;){if(V===d){D=!0,d=C,y=k;break}if(V===y){D=!0,y=C,d=k;break}V=V.sibling}if(!D){for(V=k.child;V;){if(V===d){D=!0,d=k,y=C;break}if(V===y){D=!0,y=k,d=C;break}V=V.sibling}if(!D)throw Error(i(189))}}if(d.alternate!==y)throw Error(i(190))}if(d.tag!==3)throw Error(i(188));return d.stateNode.current===d?a:l}function f(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=f(a),l!==null)return l;a=a.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function z(a){return a===null||typeof a!="object"?null:(a=O&&a[O]||a["@@iterator"],typeof a=="function"?a:null)}var X=Symbol.for("react.client.reference");function M(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===X?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case v:return"Fragment";case w:return"Profiler";case b:return"StrictMode";case L:return"Suspense";case A:return"SuspenseList";case Y:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case x:return"Portal";case S:return a.displayName||"Context";case _:return(a._context.displayName||"Context")+".Consumer";case E:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return l=a.displayName||null,l!==null?l:M(a.type)||"Memo";case j:l=a._payload,a=a._init;try{return M(a(l))}catch{}}return null}var F=Array.isArray,N=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},q=[],I=-1;function G(a){return{current:a}}function Z(a){0>I||(a.current=q[I],q[I]=null,I--)}function H(a,l){I++,q[I]=a.current,a.current=l}var Q=G(null),J=G(null),tt=G(null),K=G(null);function nt(a,l){switch(H(tt,l),H(J,a),H(Q,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?qT(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=qT(l),a=zT(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Z(Q),H(Q,a)}function ct(){Z(Q),Z(J),Z(tt)}function it(a){a.memoizedState!==null&&H(K,a);var l=Q.current,d=zT(l,a.type);l!==d&&(H(J,a),H(Q,d))}function dt(a){J.current===a&&(Z(Q),Z(J)),K.current===a&&(Z(K),Hc._currentValue=$)}var Ct,kt;function At(a){if(Ct===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);Ct=l&&l[1]||"",kt=-1<d.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Ct+a+kt}var Et=!1;function Ht(a,l){if(!a||Et)return"";Et=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(l){var vt=function(){throw Error()};if(Object.defineProperty(vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(vt,[])}catch(mt){var ft=mt}Reflect.construct(a,[],vt)}else{try{vt.call()}catch(mt){ft=mt}a.call(vt.prototype)}}else{try{throw Error()}catch(mt){ft=mt}(vt=a())&&typeof vt.catch=="function"&&vt.catch(function(){})}}catch(mt){if(mt&&ft&&typeof mt.stack=="string")return[mt.stack,ft.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var k=y.DetermineComponentFrameRoot(),D=k[0],V=k[1];if(D&&V){var rt=D.split(`
45
+ `),ht=V.split(`
46
+ `);for(C=y=0;y<rt.length&&!rt[y].includes("DetermineComponentFrameRoot");)y++;for(;C<ht.length&&!ht[C].includes("DetermineComponentFrameRoot");)C++;if(y===rt.length||C===ht.length)for(y=rt.length-1,C=ht.length-1;1<=y&&0<=C&&rt[y]!==ht[C];)C--;for(;1<=y&&0<=C;y--,C--)if(rt[y]!==ht[C]){if(y!==1||C!==1)do if(y--,C--,0>C||rt[y]!==ht[C]){var xt=`
47
+ `+rt[y].replace(" at new "," at ");return a.displayName&&xt.includes("<anonymous>")&&(xt=xt.replace("<anonymous>",a.displayName)),xt}while(1<=y&&0<=C);break}}}finally{Et=!1,Error.prepareStackTrace=d}return(d=a?a.displayName||a.name:"")?At(d):""}function qt(a,l){switch(a.tag){case 26:case 27:case 5:return At(a.type);case 16:return At("Lazy");case 13:return a.child!==l&&l!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return Ht(a.type,!1);case 11:return Ht(a.type.render,!1);case 1:return Ht(a.type,!0);case 31:return At("Activity");default:return""}}function we(a){try{var l="",d=null;do l+=qt(a,d),d=a,a=a.return;while(a);return l}catch(y){return`
48
+ Error generating stack: `+y.message+`
49
+ `+y.stack}}var Be=Object.prototype.hasOwnProperty,nr=t.unstable_scheduleCallback,vr=t.unstable_cancelCallback,ar=t.unstable_shouldYield,De=t.unstable_requestPaint,Le=t.unstable_now,Cr=t.unstable_getCurrentPriorityLevel,yt=t.unstable_ImmediatePriority,_t=t.unstable_UserBlockingPriority,Rt=t.unstable_NormalPriority,Kt=t.unstable_LowPriority,ne=t.unstable_IdlePriority,sr=t.log,Br=t.unstable_setDisableYieldValue,Se=null,me=null;function Fe(a){if(typeof sr=="function"&&Br(a),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(Se,a)}catch{}}var ce=Math.clz32?Math.clz32:nc,Jr=Math.log,Lr=Math.LN2;function nc(a){return a>>>=0,a===0?32:31-(Jr(a)/Lr|0)|0}var dn=256,pn=262144,ya=4194304;function Gr(a){var l=a&42;if(l!==0)return l;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function xa(a,l,d){var y=a.pendingLanes;if(y===0)return 0;var C=0,k=a.suspendedLanes,D=a.pingedLanes;a=a.warmLanes;var V=y&134217727;return V!==0?(y=V&~k,y!==0?C=Gr(y):(D&=V,D!==0?C=Gr(D):d||(d=V&~a,d!==0&&(C=Gr(d))))):(V=y&~k,V!==0?C=Gr(V):D!==0?C=Gr(D):d||(d=y&~a,d!==0&&(C=Gr(d)))),C===0?0:l!==0&&l!==C&&(l&k)===0&&(k=C&-C,d=l&-l,k>=d||k===32&&(d&4194048)!==0)?l:C}function Fn(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function Qe(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yi(){var a=ya;return ya<<=1,(ya&62914560)===0&&(ya=4194304),a}function ls(a){for(var l=[],d=0;31>d;d++)l.push(a);return l}function gn(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function cs(a,l,d,y,C,k){var D=a.pendingLanes;a.pendingLanes=d,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=d,a.entangledLanes&=d,a.errorRecoveryDisabledLanes&=d,a.shellSuspendCounter=0;var V=a.entanglements,rt=a.expirationTimes,ht=a.hiddenUpdates;for(d=D&~d;0<d;){var xt=31-ce(d),vt=1<<xt;V[xt]=0,rt[xt]=-1;var ft=ht[xt];if(ft!==null)for(ht[xt]=null,xt=0;xt<ft.length;xt++){var mt=ft[xt];mt!==null&&(mt.lane&=-536870913)}d&=~vt}y!==0&&us(a,y,0),k!==0&&C===0&&a.tag!==0&&(a.suspendedLanes|=k&~(D&~l))}function us(a,l,d){a.pendingLanes|=l,a.suspendedLanes&=~l;var y=31-ce(l);a.entangledLanes|=l,a.entanglements[y]=a.entanglements[y]|1073741824|d&261930}function hs(a,l){var d=a.entangledLanes|=l;for(a=a.entanglements;d;){var y=31-ce(d),C=1<<y;C&l|a[y]&l&&(a[y]|=l),d&=~C}}function co(a,l){var d=l&-l;return d=(d&42)!==0?1:Mr(d),(d&(a.suspendedLanes|l))!==0?0:d}function Mr(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function xi(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function fs(){var a=P.p;return a!==0?a:(a=window.event,a===void 0?32:lE(a.type))}function ds(a,l){var d=P.p;try{return P.p=a,l()}finally{P.p=d}}var ti=Math.random().toString(36).slice(2),Ze="__reactFiber$"+ti,qe="__reactProps$"+ti,Mi="__reactContainer$"+ti,In="__reactEvents$"+ti,uo="__reactListeners$"+ti,ho="__reactHandles$"+ti,ps="__reactResources$"+ti,mn="__reactMarker$"+ti;function zt(a){delete a[Ze],delete a[qe],delete a[In],delete a[uo],delete a[ho]}function et(a){var l=a[Ze];if(l)return l;for(var d=a.parentNode;d;){if(l=d[Mi]||d[Ze]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(a=YT(a);a!==null;){if(d=a[Ze])return d;a=YT(a)}return l}a=d,d=a.parentNode}return null}function wt(a){if(a=a[Ze]||a[Mi]){var l=a.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return a}return null}function Bt(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(i(33))}function fe(a){var l=a[ps];return l||(l=a[ps]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ae(a){a[mn]=!0}var $e=new Set,wr={};function Je(a,l){ur(a,l),ur(a+"Capture",l)}function ur(a,l){for(wr[a]=l,a=0;a<l.length;a++)$e.add(l[a])}var gs=RegExp("^[: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]*$"),Ue={},ms={};function fo(a){return Be.call(ms,a)?!0:Be.call(Ue,a)?!1:gs.test(a)?ms[a]=!0:(Ue[a]=!0,!1)}function po(a,l,d){if(fo(l))if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var y=l.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+d)}}function go(a,l,d){if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+d)}}function Wi(a,l,d,y){if(y===null)a.removeAttribute(d);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(d);return}a.setAttributeNS(l,d,""+y)}}function ei(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ch(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ig(a,l,d){var y=Object.getOwnPropertyDescriptor(a.constructor.prototype,l);if(!a.hasOwnProperty(l)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var C=y.get,k=y.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return C.call(this)},set:function(D){d=""+D,k.call(this,D)}}),Object.defineProperty(a,l,{enumerable:y.enumerable}),{getValue:function(){return d},setValue:function(D){d=""+D},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function ba(a){if(!a._valueTracker){var l=Ch(a)?"checked":"value";a._valueTracker=ig(a,l,""+a[l])}}function wh(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var d=l.getValue(),y="";return a&&(y=Ch(a)?a.checked?"true":"false":a.value),a=y,a!==d?(l.setValue(a),!0):!1}function ys(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var ng=/[\n"\\]/g;function ri(a){return a.replace(ng,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function xs(a,l,d,y,C,k,D,V){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),l!=null?D==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+ei(l)):a.value!==""+ei(l)&&(a.value=""+ei(l)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),l!=null?ac(a,D,ei(l)):d!=null?ac(a,D,ei(d)):y!=null&&a.removeAttribute("value"),C==null&&k!=null&&(a.defaultChecked=!!k),C!=null&&(a.checked=C&&typeof C!="function"&&typeof C!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?a.name=""+ei(V):a.removeAttribute("name")}function Sh(a,l,d,y,C,k,D,V){if(k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(a.type=k),l!=null||d!=null){if(!(k!=="submit"&&k!=="reset"||l!=null)){ba(a);return}d=d!=null?""+ei(d):"",l=l!=null?""+ei(l):d,V||l===a.value||(a.value=l),a.defaultValue=l}y=y??C,y=typeof y!="function"&&typeof y!="symbol"&&!!y,a.checked=V?a.checked:!!y,a.defaultChecked=!!y,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D),ba(a)}function ac(a,l,d){l==="number"&&ys(a.ownerDocument)===a||a.defaultValue===""+d||(a.defaultValue=""+d)}function qn(a,l,d,y){if(a=a.options,l){l={};for(var C=0;C<d.length;C++)l["$"+d[C]]=!0;for(d=0;d<a.length;d++)C=l.hasOwnProperty("$"+a[d].value),a[d].selected!==C&&(a[d].selected=C),C&&y&&(a[d].defaultSelected=!0)}else{for(d=""+ei(d),l=null,C=0;C<a.length;C++){if(a[C].value===d){a[C].selected=!0,y&&(a[C].defaultSelected=!0);return}l!==null||a[C].disabled||(l=a[C])}l!==null&&(l.selected=!0)}}function OS(a,l,d){if(l!=null&&(l=""+ei(l),l!==a.value&&(a.value=l),d==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=d!=null?""+ei(d):""}function RS(a,l,d,y){if(l==null){if(y!=null){if(d!=null)throw Error(i(92));if(F(y)){if(1<y.length)throw Error(i(93));y=y[0]}d=y}d==null&&(d=""),l=d}d=ei(l),a.defaultValue=d,y=a.textContent,y===d&&y!==""&&y!==null&&(a.value=y),ba(a)}function mo(a,l){if(l){var d=a.firstChild;if(d&&d===a.lastChild&&d.nodeType===3){d.nodeValue=l;return}}a.textContent=l}var Ij=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function DS(a,l,d){var y=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?y?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":y?a.setProperty(l,d):typeof d!="number"||d===0||Ij.has(l)?l==="float"?a.cssFloat=d:a[l]=(""+d).trim():a[l]=d+"px"}function FS(a,l,d){if(l!=null&&typeof l!="object")throw Error(i(62));if(a=a.style,d!=null){for(var y in d)!d.hasOwnProperty(y)||l!=null&&l.hasOwnProperty(y)||(y.indexOf("--")===0?a.setProperty(y,""):y==="float"?a.cssFloat="":a[y]="");for(var C in l)y=l[C],l.hasOwnProperty(C)&&d[C]!==y&&DS(a,C,y)}else for(var k in l)l.hasOwnProperty(k)&&DS(a,k,l[k])}function ag(a){if(a.indexOf("-")===-1)return!1;switch(a){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 qj=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zj=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function kh(a){return zj.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function zn(){}var sg=null;function og(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yo=null,xo=null;function IS(a){var l=wt(a);if(l&&(a=l.stateNode)){var d=a[qe]||null;t:switch(a=l.stateNode,l.type){case"input":if(xs(a,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=a;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+ri(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var y=d[l];if(y!==a&&y.form===a.form){var C=y[qe]||null;if(!C)throw Error(i(90));xs(y,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(l=0;l<d.length;l++)y=d[l],y.form===a.form&&wh(y)}break t;case"textarea":OS(a,d.value,d.defaultValue);break t;case"select":l=d.value,l!=null&&qn(a,!!d.multiple,l,!1)}}}var lg=!1;function qS(a,l,d){if(lg)return a(l,d);lg=!0;try{var y=a(l);return y}finally{if(lg=!1,(yo!==null||xo!==null)&&(ff(),yo&&(l=yo,a=xo,xo=yo=null,IS(l),a)))for(l=0;l<a.length;l++)IS(a[l])}}function sc(a,l){var d=a.stateNode;if(d===null)return null;var y=d[qe]||null;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)||(a=a.type,y=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!y;break t;default:a=!1}if(a)return null;if(d&&typeof d!="function")throw Error(i(231,l,typeof d));return d}var jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cg=!1;if(jn)try{var oc={};Object.defineProperty(oc,"passive",{get:function(){cg=!0}}),window.addEventListener("test",oc,oc),window.removeEventListener("test",oc,oc)}catch{cg=!1}var va=null,ug=null,_h=null;function zS(){if(_h)return _h;var a,l=ug,d=l.length,y,C="value"in va?va.value:va.textContent,k=C.length;for(a=0;a<d&&l[a]===C[a];a++);var D=d-a;for(y=1;y<=D&&l[d-y]===C[k-y];y++);return _h=C.slice(a,1<y?1-y:void 0)}function Th(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Eh(){return!0}function jS(){return!1}function ii(a){function l(d,y,C,k,D){this._reactName=d,this._targetInst=C,this.type=y,this.nativeEvent=k,this.target=D,this.currentTarget=null;for(var V in a)a.hasOwnProperty(V)&&(d=a[V],this[V]=d?d(k):k[V]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?Eh:jS,this.isPropagationStopped=jS,this}return p(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=Eh)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Eh)},persist:function(){},isPersistent:Eh}),l}var bs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ah=ii(bs),lc=p({},bs,{view:0,detail:0}),jj=ii(lc),hg,fg,cc,Bh=p({},lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pg,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==cc&&(cc&&a.type==="mousemove"?(hg=a.screenX-cc.screenX,fg=a.screenY-cc.screenY):fg=hg=0,cc=a),hg)},movementY:function(a){return"movementY"in a?a.movementY:fg}}),$S=ii(Bh),$j=p({},Bh,{dataTransfer:0}),Pj=ii($j),Hj=p({},lc,{relatedTarget:0}),dg=ii(Hj),Uj=p({},bs,{animationName:0,elapsedTime:0,pseudoElement:0}),Gj=ii(Uj),Yj=p({},bs,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Wj=ii(Yj),Vj=p({},bs,{data:0}),PS=ii(Vj),Xj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qj={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"},Zj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kj(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=Zj[a])?!!l[a]:!1}function pg(){return Kj}var Jj=p({},lc,{key:function(a){if(a.key){var l=Xj[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=Th(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Qj[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pg,charCode:function(a){return a.type==="keypress"?Th(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Th(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),t$=ii(Jj),e$=p({},Bh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HS=ii(e$),r$=p({},lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pg}),i$=ii(r$),n$=p({},bs,{propertyName:0,elapsedTime:0,pseudoElement:0}),a$=ii(n$),s$=p({},Bh,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),o$=ii(s$),l$=p({},bs,{newState:0,oldState:0}),c$=ii(l$),u$=[9,13,27,32],gg=jn&&"CompositionEvent"in window,uc=null;jn&&"documentMode"in document&&(uc=document.documentMode);var h$=jn&&"TextEvent"in window&&!uc,US=jn&&(!gg||uc&&8<uc&&11>=uc),GS=" ",YS=!1;function WS(a,l){switch(a){case"keyup":return u$.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function VS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var bo=!1;function f$(a,l){switch(a){case"compositionend":return VS(l);case"keypress":return l.which!==32?null:(YS=!0,GS);case"textInput":return a=l.data,a===GS&&YS?null:a;default:return null}}function d$(a,l){if(bo)return a==="compositionend"||!gg&&WS(a,l)?(a=zS(),_h=ug=va=null,bo=!1,a):null;switch(a){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 US&&l.locale!=="ko"?null:l.data;default:return null}}var p$={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 XS(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!p$[a.type]:l==="textarea"}function QS(a,l,d,y){yo?xo?xo.push(y):xo=[y]:yo=y,l=bf(l,"onChange"),0<l.length&&(d=new Ah("onChange","change",null,d,y),a.push({event:d,listeners:l}))}var hc=null,fc=null;function g$(a){NT(a,0)}function Lh(a){var l=Bt(a);if(wh(l))return a}function ZS(a,l){if(a==="change")return l}var KS=!1;if(jn){var mg;if(jn){var yg="oninput"in document;if(!yg){var JS=document.createElement("div");JS.setAttribute("oninput","return;"),yg=typeof JS.oninput=="function"}mg=yg}else mg=!1;KS=mg&&(!document.documentMode||9<document.documentMode)}function tk(){hc&&(hc.detachEvent("onpropertychange",ek),fc=hc=null)}function ek(a){if(a.propertyName==="value"&&Lh(fc)){var l=[];QS(l,fc,a,og(a)),qS(g$,l)}}function m$(a,l,d){a==="focusin"?(tk(),hc=l,fc=d,hc.attachEvent("onpropertychange",ek)):a==="focusout"&&tk()}function y$(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Lh(fc)}function x$(a,l){if(a==="click")return Lh(l)}function b$(a,l){if(a==="input"||a==="change")return Lh(l)}function v$(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var bi=typeof Object.is=="function"?Object.is:v$;function dc(a,l){if(bi(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var d=Object.keys(a),y=Object.keys(l);if(d.length!==y.length)return!1;for(y=0;y<d.length;y++){var C=d[y];if(!Be.call(l,C)||!bi(a[C],l[C]))return!1}return!0}function rk(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function ik(a,l){var d=rk(a);a=0;for(var y;d;){if(d.nodeType===3){if(y=a+d.textContent.length,a<=l&&y>=l)return{node:d,offset:l-a};a=y}t:{for(;d;){if(d.nextSibling){d=d.nextSibling;break t}d=d.parentNode}d=void 0}d=rk(d)}}function nk(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?nk(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function ak(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=ys(a.document);l instanceof a.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)a=l.contentWindow;else break;l=ys(a.document)}return l}function xg(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var C$=jn&&"documentMode"in document&&11>=document.documentMode,vo=null,bg=null,pc=null,vg=!1;function sk(a,l,d){var y=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;vg||vo==null||vo!==ys(y)||(y=vo,"selectionStart"in y&&xg(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}),pc&&dc(pc,y)||(pc=y,y=bf(bg,"onSelect"),0<y.length&&(l=new Ah("onSelect","select",null,l,d),a.push({event:l,listeners:y}),l.target=vo)))}function vs(a,l){var d={};return d[a.toLowerCase()]=l.toLowerCase(),d["Webkit"+a]="webkit"+l,d["Moz"+a]="moz"+l,d}var Co={animationend:vs("Animation","AnimationEnd"),animationiteration:vs("Animation","AnimationIteration"),animationstart:vs("Animation","AnimationStart"),transitionrun:vs("Transition","TransitionRun"),transitionstart:vs("Transition","TransitionStart"),transitioncancel:vs("Transition","TransitionCancel"),transitionend:vs("Transition","TransitionEnd")},Cg={},ok={};jn&&(ok=document.createElement("div").style,"AnimationEvent"in window||(delete Co.animationend.animation,delete Co.animationiteration.animation,delete Co.animationstart.animation),"TransitionEvent"in window||delete Co.transitionend.transition);function Cs(a){if(Cg[a])return Cg[a];if(!Co[a])return a;var l=Co[a],d;for(d in l)if(l.hasOwnProperty(d)&&d in ok)return Cg[a]=l[d];return a}var lk=Cs("animationend"),ck=Cs("animationiteration"),uk=Cs("animationstart"),w$=Cs("transitionrun"),S$=Cs("transitionstart"),k$=Cs("transitioncancel"),hk=Cs("transitionend"),fk=new Map,wg="abort auxClick beforeToggle 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(" ");wg.push("scrollEnd");function Vi(a,l){fk.set(a,l),Je(l,[a])}var Mh=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Ni=[],wo=0,Sg=0;function Nh(){for(var a=wo,l=Sg=wo=0;l<a;){var d=Ni[l];Ni[l++]=null;var y=Ni[l];Ni[l++]=null;var C=Ni[l];Ni[l++]=null;var k=Ni[l];if(Ni[l++]=null,y!==null&&C!==null){var D=y.pending;D===null?C.next=C:(C.next=D.next,D.next=C),y.pending=C}k!==0&&dk(d,C,k)}}function Oh(a,l,d,y){Ni[wo++]=a,Ni[wo++]=l,Ni[wo++]=d,Ni[wo++]=y,Sg|=y,a.lanes|=y,a=a.alternate,a!==null&&(a.lanes|=y)}function kg(a,l,d,y){return Oh(a,l,d,y),Rh(a)}function ws(a,l){return Oh(a,null,null,l),Rh(a)}function dk(a,l,d){a.lanes|=d;var y=a.alternate;y!==null&&(y.lanes|=d);for(var C=!1,k=a.return;k!==null;)k.childLanes|=d,y=k.alternate,y!==null&&(y.childLanes|=d),k.tag===22&&(a=k.stateNode,a===null||a._visibility&1||(C=!0)),a=k,k=k.return;return a.tag===3?(k=a.stateNode,C&&l!==null&&(C=31-ce(d),a=k.hiddenUpdates,y=a[C],y===null?a[C]=[l]:y.push(l),l.lane=d|536870912),k):null}function Rh(a){if(50<Fc)throw Fc=0,Om=null,Error(i(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var So={};function _$(a,l,d,y){this.tag=a,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=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 vi(a,l,d,y){return new _$(a,l,d,y)}function _g(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $n(a,l){var d=a.alternate;return d===null?(d=vi(a.tag,l,a.key,a.mode),d.elementType=a.elementType,d.type=a.type,d.stateNode=a.stateNode,d.alternate=a,a.alternate=d):(d.pendingProps=l,d.type=a.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=a.flags&65011712,d.childLanes=a.childLanes,d.lanes=a.lanes,d.child=a.child,d.memoizedProps=a.memoizedProps,d.memoizedState=a.memoizedState,d.updateQueue=a.updateQueue,l=a.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=a.sibling,d.index=a.index,d.ref=a.ref,d.refCleanup=a.refCleanup,d}function pk(a,l){a.flags&=65011714;var d=a.alternate;return d===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=d.childLanes,a.lanes=d.lanes,a.child=d.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=d.memoizedProps,a.memoizedState=d.memoizedState,a.updateQueue=d.updateQueue,a.type=d.type,l=d.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function Dh(a,l,d,y,C,k){var D=0;if(y=a,typeof a=="function")_g(a)&&(D=1);else if(typeof a=="string")D=LP(a,d,Q.current)?26:a==="html"||a==="head"||a==="body"?27:5;else t:switch(a){case Y:return a=vi(31,d,l,C),a.elementType=Y,a.lanes=k,a;case v:return Ss(d.children,C,k,l);case b:D=8,C|=24;break;case w:return a=vi(12,d,l,C|2),a.elementType=w,a.lanes=k,a;case L:return a=vi(13,d,l,C),a.elementType=L,a.lanes=k,a;case A:return a=vi(19,d,l,C),a.elementType=A,a.lanes=k,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case S:D=10;break t;case _:D=9;break t;case E:D=11;break t;case R:D=14;break t;case j:D=16,y=null;break t}D=29,d=Error(i(130,a===null?"null":typeof a,"")),y=null}return l=vi(D,d,l,C),l.elementType=a,l.type=y,l.lanes=k,l}function Ss(a,l,d,y){return a=vi(7,a,y,l),a.lanes=d,a}function Tg(a,l,d){return a=vi(6,a,null,l),a.lanes=d,a}function gk(a){var l=vi(18,null,null,0);return l.stateNode=a,l}function Eg(a,l,d){return l=vi(4,a.children!==null?a.children:[],a.key,l),l.lanes=d,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}var mk=new WeakMap;function Oi(a,l){if(typeof a=="object"&&a!==null){var d=mk.get(a);return d!==void 0?d:(l={value:a,source:l,stack:we(l)},mk.set(a,l),l)}return{value:a,source:l,stack:we(l)}}var ko=[],_o=0,Fh=null,gc=0,Ri=[],Di=0,Ca=null,yn=1,xn="";function Pn(a,l){ko[_o++]=gc,ko[_o++]=Fh,Fh=a,gc=l}function yk(a,l,d){Ri[Di++]=yn,Ri[Di++]=xn,Ri[Di++]=Ca,Ca=a;var y=yn;a=xn;var C=32-ce(y)-1;y&=~(1<<C),d+=1;var k=32-ce(l)+C;if(30<k){var D=C-C%5;k=(y&(1<<D)-1).toString(32),y>>=D,C-=D,yn=1<<32-ce(l)+C|d<<C|y,xn=k+a}else yn=1<<k|d<<C|y,xn=a}function Ag(a){a.return!==null&&(Pn(a,1),yk(a,1,0))}function Bg(a){for(;a===Fh;)Fh=ko[--_o],ko[_o]=null,gc=ko[--_o],ko[_o]=null;for(;a===Ca;)Ca=Ri[--Di],Ri[Di]=null,xn=Ri[--Di],Ri[Di]=null,yn=Ri[--Di],Ri[Di]=null}function xk(a,l){Ri[Di++]=yn,Ri[Di++]=xn,Ri[Di++]=Ca,yn=l.id,xn=l.overflow,Ca=a}var Nr=null,Pe=null,de=!1,wa=null,Fi=!1,Lg=Error(i(519));function Sa(a){var l=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mc(Oi(l,a)),Lg}function bk(a){var l=a.stateNode,d=a.type,y=a.memoizedProps;switch(l[Ze]=a,l[qe]=y,d){case"dialog":oe("cancel",l),oe("close",l);break;case"iframe":case"object":case"embed":oe("load",l);break;case"video":case"audio":for(d=0;d<qc.length;d++)oe(qc[d],l);break;case"source":oe("error",l);break;case"img":case"image":case"link":oe("error",l),oe("load",l);break;case"details":oe("toggle",l);break;case"input":oe("invalid",l),Sh(l,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0);break;case"select":oe("invalid",l);break;case"textarea":oe("invalid",l),RS(l,y.value,y.defaultValue,y.children)}d=y.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||y.suppressHydrationWarning===!0||FT(l.textContent,d)?(y.popover!=null&&(oe("beforetoggle",l),oe("toggle",l)),y.onScroll!=null&&oe("scroll",l),y.onScrollEnd!=null&&oe("scrollend",l),y.onClick!=null&&(l.onclick=zn),l=!0):l=!1,l||Sa(a,!0)}function vk(a){for(Nr=a.return;Nr;)switch(Nr.tag){case 5:case 31:case 13:Fi=!1;return;case 27:case 3:Fi=!0;return;default:Nr=Nr.return}}function To(a){if(a!==Nr)return!1;if(!de)return vk(a),de=!0,!1;var l=a.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=a.type,d=!(d!=="form"&&d!=="button")||Vm(a.type,a.memoizedProps)),d=!d),d&&Pe&&Sa(a),vk(a),l===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));Pe=GT(a)}else if(l===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));Pe=GT(a)}else l===27?(l=Pe,Ia(a.type)?(a=Jm,Jm=null,Pe=a):Pe=l):Pe=Nr?qi(a.stateNode.nextSibling):null;return!0}function ks(){Pe=Nr=null,de=!1}function Mg(){var a=wa;return a!==null&&(oi===null?oi=a:oi.push.apply(oi,a),wa=null),a}function mc(a){wa===null?wa=[a]:wa.push(a)}var Ng=G(null),_s=null,Hn=null;function ka(a,l,d){H(Ng,l._currentValue),l._currentValue=d}function Un(a){a._currentValue=Ng.current,Z(Ng)}function Og(a,l,d){for(;a!==null;){var y=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,y!==null&&(y.childLanes|=l)):y!==null&&(y.childLanes&l)!==l&&(y.childLanes|=l),a===d)break;a=a.return}}function Rg(a,l,d,y){var C=a.child;for(C!==null&&(C.return=a);C!==null;){var k=C.dependencies;if(k!==null){var D=C.child;k=k.firstContext;t:for(;k!==null;){var V=k;k=C;for(var rt=0;rt<l.length;rt++)if(V.context===l[rt]){k.lanes|=d,V=k.alternate,V!==null&&(V.lanes|=d),Og(k.return,d,a),y||(D=null);break t}k=V.next}}else if(C.tag===18){if(D=C.return,D===null)throw Error(i(341));D.lanes|=d,k=D.alternate,k!==null&&(k.lanes|=d),Og(D,d,a),D=null}else D=C.child;if(D!==null)D.return=C;else for(D=C;D!==null;){if(D===a){D=null;break}if(C=D.sibling,C!==null){C.return=D.return,D=C;break}D=D.return}C=D}}function Eo(a,l,d,y){a=null;for(var C=l,k=!1;C!==null;){if(!k){if((C.flags&524288)!==0)k=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var D=C.alternate;if(D===null)throw Error(i(387));if(D=D.memoizedProps,D!==null){var V=C.type;bi(C.pendingProps.value,D.value)||(a!==null?a.push(V):a=[V])}}else if(C===K.current){if(D=C.alternate,D===null)throw Error(i(387));D.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(a!==null?a.push(Hc):a=[Hc])}C=C.return}a!==null&&Rg(l,a,d,y),l.flags|=262144}function Ih(a){for(a=a.firstContext;a!==null;){if(!bi(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ts(a){_s=a,Hn=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Or(a){return Ck(_s,a)}function qh(a,l){return _s===null&&Ts(a),Ck(a,l)}function Ck(a,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},Hn===null){if(a===null)throw Error(i(308));Hn=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else Hn=Hn.next=l;return d}var T$=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(d,y){a.push(y)}};this.abort=function(){l.aborted=!0,a.forEach(function(d){return d()})}},E$=t.unstable_scheduleCallback,A$=t.unstable_NormalPriority,hr={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dg(){return{controller:new T$,data:new Map,refCount:0}}function yc(a){a.refCount--,a.refCount===0&&E$(A$,function(){a.controller.abort()})}var xc=null,Fg=0,Ao=0,Bo=null;function B$(a,l){if(xc===null){var d=xc=[];Fg=0,Ao=zm(),Bo={status:"pending",value:void 0,then:function(y){d.push(y)}}}return Fg++,l.then(wk,wk),l}function wk(){if(--Fg===0&&xc!==null){Bo!==null&&(Bo.status="fulfilled");var a=xc;xc=null,Ao=0,Bo=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function L$(a,l){var d=[],y={status:"pending",value:null,reason:null,then:function(C){d.push(C)}};return a.then(function(){y.status="fulfilled",y.value=l;for(var C=0;C<d.length;C++)(0,d[C])(l)},function(C){for(y.status="rejected",y.reason=C,C=0;C<d.length;C++)(0,d[C])(void 0)}),y}var Sk=N.S;N.S=function(a,l){sT=Le(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&B$(a,l),Sk!==null&&Sk(a,l)};var Es=G(null);function Ig(){var a=Es.current;return a!==null?a:Ie.pooledCache}function zh(a,l){l===null?H(Es,Es.current):H(Es,l.pool)}function kk(){var a=Ig();return a===null?null:{parent:hr._currentValue,pool:a}}var Lo=Error(i(460)),qg=Error(i(474)),jh=Error(i(542)),$h={then:function(){}};function _k(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Tk(a,l,d){switch(d=a[d],d===void 0?a.push(l):d!==l&&(l.then(zn,zn),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,Ak(a),a;default:if(typeof l.status=="string")l.then(zn,zn);else{if(a=Ie,a!==null&&100<a.shellSuspendCounter)throw Error(i(482));a=l,a.status="pending",a.then(function(y){if(l.status==="pending"){var C=l;C.status="fulfilled",C.value=y}},function(y){if(l.status==="pending"){var C=l;C.status="rejected",C.reason=y}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,Ak(a),a}throw Bs=l,Lo}}function As(a){try{var l=a._init;return l(a._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Bs=d,Lo):d}}var Bs=null;function Ek(){if(Bs===null)throw Error(i(459));var a=Bs;return Bs=null,a}function Ak(a){if(a===Lo||a===jh)throw Error(i(483))}var Mo=null,bc=0;function Ph(a){var l=bc;return bc+=1,Mo===null&&(Mo=[]),Tk(Mo,a,l)}function vc(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function Hh(a,l){throw l.$$typeof===m?Error(i(525)):(a=Object.prototype.toString.call(l),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function Bk(a){function l(ot,at){if(a){var ut=ot.deletions;ut===null?(ot.deletions=[at],ot.flags|=16):ut.push(at)}}function d(ot,at){if(!a)return null;for(;at!==null;)l(ot,at),at=at.sibling;return null}function y(ot){for(var at=new Map;ot!==null;)ot.key!==null?at.set(ot.key,ot):at.set(ot.index,ot),ot=ot.sibling;return at}function C(ot,at){return ot=$n(ot,at),ot.index=0,ot.sibling=null,ot}function k(ot,at,ut){return ot.index=ut,a?(ut=ot.alternate,ut!==null?(ut=ut.index,ut<at?(ot.flags|=67108866,at):ut):(ot.flags|=67108866,at)):(ot.flags|=1048576,at)}function D(ot){return a&&ot.alternate===null&&(ot.flags|=67108866),ot}function V(ot,at,ut,bt){return at===null||at.tag!==6?(at=Tg(ut,ot.mode,bt),at.return=ot,at):(at=C(at,ut),at.return=ot,at)}function rt(ot,at,ut,bt){var Pt=ut.type;return Pt===v?xt(ot,at,ut.props.children,bt,ut.key):at!==null&&(at.elementType===Pt||typeof Pt=="object"&&Pt!==null&&Pt.$$typeof===j&&As(Pt)===at.type)?(at=C(at,ut.props),vc(at,ut),at.return=ot,at):(at=Dh(ut.type,ut.key,ut.props,null,ot.mode,bt),vc(at,ut),at.return=ot,at)}function ht(ot,at,ut,bt){return at===null||at.tag!==4||at.stateNode.containerInfo!==ut.containerInfo||at.stateNode.implementation!==ut.implementation?(at=Eg(ut,ot.mode,bt),at.return=ot,at):(at=C(at,ut.children||[]),at.return=ot,at)}function xt(ot,at,ut,bt,Pt){return at===null||at.tag!==7?(at=Ss(ut,ot.mode,bt,Pt),at.return=ot,at):(at=C(at,ut),at.return=ot,at)}function vt(ot,at,ut){if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return at=Tg(""+at,ot.mode,ut),at.return=ot,at;if(typeof at=="object"&&at!==null){switch(at.$$typeof){case g:return ut=Dh(at.type,at.key,at.props,null,ot.mode,ut),vc(ut,at),ut.return=ot,ut;case x:return at=Eg(at,ot.mode,ut),at.return=ot,at;case j:return at=As(at),vt(ot,at,ut)}if(F(at)||z(at))return at=Ss(at,ot.mode,ut,null),at.return=ot,at;if(typeof at.then=="function")return vt(ot,Ph(at),ut);if(at.$$typeof===S)return vt(ot,qh(ot,at),ut);Hh(ot,at)}return null}function ft(ot,at,ut,bt){var Pt=at!==null?at.key:null;if(typeof ut=="string"&&ut!==""||typeof ut=="number"||typeof ut=="bigint")return Pt!==null?null:V(ot,at,""+ut,bt);if(typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case g:return ut.key===Pt?rt(ot,at,ut,bt):null;case x:return ut.key===Pt?ht(ot,at,ut,bt):null;case j:return ut=As(ut),ft(ot,at,ut,bt)}if(F(ut)||z(ut))return Pt!==null?null:xt(ot,at,ut,bt,null);if(typeof ut.then=="function")return ft(ot,at,Ph(ut),bt);if(ut.$$typeof===S)return ft(ot,at,qh(ot,ut),bt);Hh(ot,ut)}return null}function mt(ot,at,ut,bt,Pt){if(typeof bt=="string"&&bt!==""||typeof bt=="number"||typeof bt=="bigint")return ot=ot.get(ut)||null,V(at,ot,""+bt,Pt);if(typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case g:return ot=ot.get(bt.key===null?ut:bt.key)||null,rt(at,ot,bt,Pt);case x:return ot=ot.get(bt.key===null?ut:bt.key)||null,ht(at,ot,bt,Pt);case j:return bt=As(bt),mt(ot,at,ut,bt,Pt)}if(F(bt)||z(bt))return ot=ot.get(ut)||null,xt(at,ot,bt,Pt,null);if(typeof bt.then=="function")return mt(ot,at,ut,Ph(bt),Pt);if(bt.$$typeof===S)return mt(ot,at,ut,qh(at,bt),Pt);Hh(at,bt)}return null}function Mt(ot,at,ut,bt){for(var Pt=null,xe=null,Ft=at,ee=at=0,he=null;Ft!==null&&ee<ut.length;ee++){Ft.index>ee?(he=Ft,Ft=null):he=Ft.sibling;var be=ft(ot,Ft,ut[ee],bt);if(be===null){Ft===null&&(Ft=he);break}a&&Ft&&be.alternate===null&&l(ot,Ft),at=k(be,at,ee),xe===null?Pt=be:xe.sibling=be,xe=be,Ft=he}if(ee===ut.length)return d(ot,Ft),de&&Pn(ot,ee),Pt;if(Ft===null){for(;ee<ut.length;ee++)Ft=vt(ot,ut[ee],bt),Ft!==null&&(at=k(Ft,at,ee),xe===null?Pt=Ft:xe.sibling=Ft,xe=Ft);return de&&Pn(ot,ee),Pt}for(Ft=y(Ft);ee<ut.length;ee++)he=mt(Ft,ot,ee,ut[ee],bt),he!==null&&(a&&he.alternate!==null&&Ft.delete(he.key===null?ee:he.key),at=k(he,at,ee),xe===null?Pt=he:xe.sibling=he,xe=he);return a&&Ft.forEach(function(Pa){return l(ot,Pa)}),de&&Pn(ot,ee),Pt}function Yt(ot,at,ut,bt){if(ut==null)throw Error(i(151));for(var Pt=null,xe=null,Ft=at,ee=at=0,he=null,be=ut.next();Ft!==null&&!be.done;ee++,be=ut.next()){Ft.index>ee?(he=Ft,Ft=null):he=Ft.sibling;var Pa=ft(ot,Ft,be.value,bt);if(Pa===null){Ft===null&&(Ft=he);break}a&&Ft&&Pa.alternate===null&&l(ot,Ft),at=k(Pa,at,ee),xe===null?Pt=Pa:xe.sibling=Pa,xe=Pa,Ft=he}if(be.done)return d(ot,Ft),de&&Pn(ot,ee),Pt;if(Ft===null){for(;!be.done;ee++,be=ut.next())be=vt(ot,be.value,bt),be!==null&&(at=k(be,at,ee),xe===null?Pt=be:xe.sibling=be,xe=be);return de&&Pn(ot,ee),Pt}for(Ft=y(Ft);!be.done;ee++,be=ut.next())be=mt(Ft,ot,ee,be.value,bt),be!==null&&(a&&be.alternate!==null&&Ft.delete(be.key===null?ee:be.key),at=k(be,at,ee),xe===null?Pt=be:xe.sibling=be,xe=be);return a&&Ft.forEach(function($P){return l(ot,$P)}),de&&Pn(ot,ee),Pt}function Oe(ot,at,ut,bt){if(typeof ut=="object"&&ut!==null&&ut.type===v&&ut.key===null&&(ut=ut.props.children),typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case g:t:{for(var Pt=ut.key;at!==null;){if(at.key===Pt){if(Pt=ut.type,Pt===v){if(at.tag===7){d(ot,at.sibling),bt=C(at,ut.props.children),bt.return=ot,ot=bt;break t}}else if(at.elementType===Pt||typeof Pt=="object"&&Pt!==null&&Pt.$$typeof===j&&As(Pt)===at.type){d(ot,at.sibling),bt=C(at,ut.props),vc(bt,ut),bt.return=ot,ot=bt;break t}d(ot,at);break}else l(ot,at);at=at.sibling}ut.type===v?(bt=Ss(ut.props.children,ot.mode,bt,ut.key),bt.return=ot,ot=bt):(bt=Dh(ut.type,ut.key,ut.props,null,ot.mode,bt),vc(bt,ut),bt.return=ot,ot=bt)}return D(ot);case x:t:{for(Pt=ut.key;at!==null;){if(at.key===Pt)if(at.tag===4&&at.stateNode.containerInfo===ut.containerInfo&&at.stateNode.implementation===ut.implementation){d(ot,at.sibling),bt=C(at,ut.children||[]),bt.return=ot,ot=bt;break t}else{d(ot,at);break}else l(ot,at);at=at.sibling}bt=Eg(ut,ot.mode,bt),bt.return=ot,ot=bt}return D(ot);case j:return ut=As(ut),Oe(ot,at,ut,bt)}if(F(ut))return Mt(ot,at,ut,bt);if(z(ut)){if(Pt=z(ut),typeof Pt!="function")throw Error(i(150));return ut=Pt.call(ut),Yt(ot,at,ut,bt)}if(typeof ut.then=="function")return Oe(ot,at,Ph(ut),bt);if(ut.$$typeof===S)return Oe(ot,at,qh(ot,ut),bt);Hh(ot,ut)}return typeof ut=="string"&&ut!==""||typeof ut=="number"||typeof ut=="bigint"?(ut=""+ut,at!==null&&at.tag===6?(d(ot,at.sibling),bt=C(at,ut),bt.return=ot,ot=bt):(d(ot,at),bt=Tg(ut,ot.mode,bt),bt.return=ot,ot=bt),D(ot)):d(ot,at)}return function(ot,at,ut,bt){try{bc=0;var Pt=Oe(ot,at,ut,bt);return Mo=null,Pt}catch(Ft){if(Ft===Lo||Ft===jh)throw Ft;var xe=vi(29,Ft,null,ot.mode);return xe.lanes=bt,xe.return=ot,xe}finally{}}}var Ls=Bk(!0),Lk=Bk(!1),_a=!1;function zg(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jg(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Ta(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ea(a,l,d){var y=a.updateQueue;if(y===null)return null;if(y=y.shared,(ke&2)!==0){var C=y.pending;return C===null?l.next=l:(l.next=C.next,C.next=l),y.pending=l,l=Rh(a),dk(a,null,d),l}return Oh(a,y,l,d),Rh(a)}function Cc(a,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var y=l.lanes;y&=a.pendingLanes,d|=y,l.lanes=d,hs(a,d)}}function $g(a,l){var d=a.updateQueue,y=a.alternate;if(y!==null&&(y=y.updateQueue,d===y)){var C=null,k=null;if(d=d.firstBaseUpdate,d!==null){do{var D={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};k===null?C=k=D:k=k.next=D,d=d.next}while(d!==null);k===null?C=k=l:k=k.next=l}else C=k=l;d={baseState:y.baseState,firstBaseUpdate:C,lastBaseUpdate:k,shared:y.shared,callbacks:y.callbacks},a.updateQueue=d;return}a=d.lastBaseUpdate,a===null?d.firstBaseUpdate=l:a.next=l,d.lastBaseUpdate=l}var Pg=!1;function wc(){if(Pg){var a=Bo;if(a!==null)throw a}}function Sc(a,l,d,y){Pg=!1;var C=a.updateQueue;_a=!1;var k=C.firstBaseUpdate,D=C.lastBaseUpdate,V=C.shared.pending;if(V!==null){C.shared.pending=null;var rt=V,ht=rt.next;rt.next=null,D===null?k=ht:D.next=ht,D=rt;var xt=a.alternate;xt!==null&&(xt=xt.updateQueue,V=xt.lastBaseUpdate,V!==D&&(V===null?xt.firstBaseUpdate=ht:V.next=ht,xt.lastBaseUpdate=rt))}if(k!==null){var vt=C.baseState;D=0,xt=ht=rt=null,V=k;do{var ft=V.lane&-536870913,mt=ft!==V.lane;if(mt?(ue&ft)===ft:(y&ft)===ft){ft!==0&&ft===Ao&&(Pg=!0),xt!==null&&(xt=xt.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});t:{var Mt=a,Yt=V;ft=l;var Oe=d;switch(Yt.tag){case 1:if(Mt=Yt.payload,typeof Mt=="function"){vt=Mt.call(Oe,vt,ft);break t}vt=Mt;break t;case 3:Mt.flags=Mt.flags&-65537|128;case 0:if(Mt=Yt.payload,ft=typeof Mt=="function"?Mt.call(Oe,vt,ft):Mt,ft==null)break t;vt=p({},vt,ft);break t;case 2:_a=!0}}ft=V.callback,ft!==null&&(a.flags|=64,mt&&(a.flags|=8192),mt=C.callbacks,mt===null?C.callbacks=[ft]:mt.push(ft))}else mt={lane:ft,tag:V.tag,payload:V.payload,callback:V.callback,next:null},xt===null?(ht=xt=mt,rt=vt):xt=xt.next=mt,D|=ft;if(V=V.next,V===null){if(V=C.shared.pending,V===null)break;mt=V,V=mt.next,mt.next=null,C.lastBaseUpdate=mt,C.shared.pending=null}}while(!0);xt===null&&(rt=vt),C.baseState=rt,C.firstBaseUpdate=ht,C.lastBaseUpdate=xt,k===null&&(C.shared.lanes=0),Na|=D,a.lanes=D,a.memoizedState=vt}}function Mk(a,l){if(typeof a!="function")throw Error(i(191,a));a.call(l)}function Nk(a,l){var d=a.callbacks;if(d!==null)for(a.callbacks=null,a=0;a<d.length;a++)Mk(d[a],l)}var No=G(null),Uh=G(0);function Ok(a,l){a=Jn,H(Uh,a),H(No,l),Jn=a|l.baseLanes}function Hg(){H(Uh,Jn),H(No,No.current)}function Ug(){Jn=Uh.current,Z(No),Z(Uh)}var Ci=G(null),Ii=null;function Aa(a){var l=a.alternate;H(or,or.current&1),H(Ci,a),Ii===null&&(l===null||No.current!==null||l.memoizedState!==null)&&(Ii=a)}function Gg(a){H(or,or.current),H(Ci,a),Ii===null&&(Ii=a)}function Rk(a){a.tag===22?(H(or,or.current),H(Ci,a),Ii===null&&(Ii=a)):Ba()}function Ba(){H(or,or.current),H(Ci,Ci.current)}function wi(a){Z(Ci),Ii===a&&(Ii=null),Z(or)}var or=G(0);function Gh(a){for(var l=a;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||Zm(d)||Km(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Gn=0,te=null,Me=null,fr=null,Yh=!1,Oo=!1,Ms=!1,Wh=0,kc=0,Ro=null,M$=0;function tr(){throw Error(i(321))}function Yg(a,l){if(l===null)return!1;for(var d=0;d<l.length&&d<a.length;d++)if(!bi(a[d],l[d]))return!1;return!0}function Wg(a,l,d,y,C,k){return Gn=k,te=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,N.H=a===null||a.memoizedState===null?y_:lm,Ms=!1,k=d(y,C),Ms=!1,Oo&&(k=Fk(l,d,y,C)),Dk(a),k}function Dk(a){N.H=Ec;var l=Me!==null&&Me.next!==null;if(Gn=0,fr=Me=te=null,Yh=!1,kc=0,Ro=null,l)throw Error(i(300));a===null||dr||(a=a.dependencies,a!==null&&Ih(a)&&(dr=!0))}function Fk(a,l,d,y){te=a;var C=0;do{if(Oo&&(Ro=null),kc=0,Oo=!1,25<=C)throw Error(i(301));if(C+=1,fr=Me=null,a.updateQueue!=null){var k=a.updateQueue;k.lastEffect=null,k.events=null,k.stores=null,k.memoCache!=null&&(k.memoCache.index=0)}N.H=x_,k=l(d,y)}while(Oo);return k}function N$(){var a=N.H,l=a.useState()[0];return l=typeof l.then=="function"?_c(l):l,a=a.useState()[0],(Me!==null?Me.memoizedState:null)!==a&&(te.flags|=1024),l}function Vg(){var a=Wh!==0;return Wh=0,a}function Xg(a,l,d){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~d}function Qg(a){if(Yh){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}Yh=!1}Gn=0,fr=Me=te=null,Oo=!1,kc=Wh=0,Ro=null}function Yr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fr===null?te.memoizedState=fr=a:fr=fr.next=a,fr}function lr(){if(Me===null){var a=te.alternate;a=a!==null?a.memoizedState:null}else a=Me.next;var l=fr===null?te.memoizedState:fr.next;if(l!==null)fr=l,Me=a;else{if(a===null)throw te.alternate===null?Error(i(467)):Error(i(310));Me=a,a={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},fr===null?te.memoizedState=fr=a:fr=fr.next=a}return fr}function Vh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _c(a){var l=kc;return kc+=1,Ro===null&&(Ro=[]),a=Tk(Ro,a,l),l=te,(fr===null?l.memoizedState:fr.next)===null&&(l=l.alternate,N.H=l===null||l.memoizedState===null?y_:lm),a}function Xh(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return _c(a);if(a.$$typeof===S)return Or(a)}throw Error(i(438,String(a)))}function Zg(a){var l=null,d=te.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var y=te.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(l={data:y.data.map(function(C){return C.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Vh(),te.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(a),y=0;y<a;y++)d[y]=W;return l.index++,d}function Yn(a,l){return typeof l=="function"?l(a):l}function Qh(a){var l=lr();return Kg(l,Me,a)}function Kg(a,l,d){var y=a.queue;if(y===null)throw Error(i(311));y.lastRenderedReducer=d;var C=a.baseQueue,k=y.pending;if(k!==null){if(C!==null){var D=C.next;C.next=k.next,k.next=D}l.baseQueue=C=k,y.pending=null}if(k=a.baseState,C===null)a.memoizedState=k;else{l=C.next;var V=D=null,rt=null,ht=l,xt=!1;do{var vt=ht.lane&-536870913;if(vt!==ht.lane?(ue&vt)===vt:(Gn&vt)===vt){var ft=ht.revertLane;if(ft===0)rt!==null&&(rt=rt.next={lane:0,revertLane:0,gesture:null,action:ht.action,hasEagerState:ht.hasEagerState,eagerState:ht.eagerState,next:null}),vt===Ao&&(xt=!0);else if((Gn&ft)===ft){ht=ht.next,ft===Ao&&(xt=!0);continue}else vt={lane:0,revertLane:ht.revertLane,gesture:null,action:ht.action,hasEagerState:ht.hasEagerState,eagerState:ht.eagerState,next:null},rt===null?(V=rt=vt,D=k):rt=rt.next=vt,te.lanes|=ft,Na|=ft;vt=ht.action,Ms&&d(k,vt),k=ht.hasEagerState?ht.eagerState:d(k,vt)}else ft={lane:vt,revertLane:ht.revertLane,gesture:ht.gesture,action:ht.action,hasEagerState:ht.hasEagerState,eagerState:ht.eagerState,next:null},rt===null?(V=rt=ft,D=k):rt=rt.next=ft,te.lanes|=vt,Na|=vt;ht=ht.next}while(ht!==null&&ht!==l);if(rt===null?D=k:rt.next=V,!bi(k,a.memoizedState)&&(dr=!0,xt&&(d=Bo,d!==null)))throw d;a.memoizedState=k,a.baseState=D,a.baseQueue=rt,y.lastRenderedState=k}return C===null&&(y.lanes=0),[a.memoizedState,y.dispatch]}function Jg(a){var l=lr(),d=l.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=a;var y=d.dispatch,C=d.pending,k=l.memoizedState;if(C!==null){d.pending=null;var D=C=C.next;do k=a(k,D.action),D=D.next;while(D!==C);bi(k,l.memoizedState)||(dr=!0),l.memoizedState=k,l.baseQueue===null&&(l.baseState=k),d.lastRenderedState=k}return[k,y]}function Ik(a,l,d){var y=te,C=lr(),k=de;if(k){if(d===void 0)throw Error(i(407));d=d()}else d=l();var D=!bi((Me||C).memoizedState,d);if(D&&(C.memoizedState=d,dr=!0),C=C.queue,rm(jk.bind(null,y,C,a),[a]),C.getSnapshot!==l||D||fr!==null&&fr.memoizedState.tag&1){if(y.flags|=2048,Do(9,{destroy:void 0},zk.bind(null,y,C,d,l),null),Ie===null)throw Error(i(349));k||(Gn&127)!==0||qk(y,l,d)}return d}function qk(a,l,d){a.flags|=16384,a={getSnapshot:l,value:d},l=te.updateQueue,l===null?(l=Vh(),te.updateQueue=l,l.stores=[a]):(d=l.stores,d===null?l.stores=[a]:d.push(a))}function zk(a,l,d,y){l.value=d,l.getSnapshot=y,$k(l)&&Pk(a)}function jk(a,l,d){return d(function(){$k(l)&&Pk(a)})}function $k(a){var l=a.getSnapshot;a=a.value;try{var d=l();return!bi(a,d)}catch{return!0}}function Pk(a){var l=ws(a,2);l!==null&&li(l,a,2)}function tm(a){var l=Yr();if(typeof a=="function"){var d=a;if(a=d(),Ms){Fe(!0);try{d()}finally{Fe(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:a},l}function Hk(a,l,d,y){return a.baseState=d,Kg(a,Me,typeof y=="function"?y:Yn)}function O$(a,l,d,y,C){if(Jh(a))throw Error(i(485));if(a=l.action,a!==null){var k={payload:C,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){k.listeners.push(D)}};N.T!==null?d(!0):k.isTransition=!1,y(k),d=l.pending,d===null?(k.next=l.pending=k,Uk(l,k)):(k.next=d.next,l.pending=d.next=k)}}function Uk(a,l){var d=l.action,y=l.payload,C=a.state;if(l.isTransition){var k=N.T,D={};N.T=D;try{var V=d(C,y),rt=N.S;rt!==null&&rt(D,V),Gk(a,l,V)}catch(ht){em(a,l,ht)}finally{k!==null&&D.types!==null&&(k.types=D.types),N.T=k}}else try{k=d(C,y),Gk(a,l,k)}catch(ht){em(a,l,ht)}}function Gk(a,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(y){Yk(a,l,y)},function(y){return em(a,l,y)}):Yk(a,l,d)}function Yk(a,l,d){l.status="fulfilled",l.value=d,Wk(l),a.state=d,l=a.pending,l!==null&&(d=l.next,d===l?a.pending=null:(d=d.next,l.next=d,Uk(a,d)))}function em(a,l,d){var y=a.pending;if(a.pending=null,y!==null){y=y.next;do l.status="rejected",l.reason=d,Wk(l),l=l.next;while(l!==y)}a.action=null}function Wk(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function Vk(a,l){return l}function Xk(a,l){if(de){var d=Ie.formState;if(d!==null){t:{var y=te;if(de){if(Pe){e:{for(var C=Pe,k=Fi;C.nodeType!==8;){if(!k){C=null;break e}if(C=qi(C.nextSibling),C===null){C=null;break e}}k=C.data,C=k==="F!"||k==="F"?C:null}if(C){Pe=qi(C.nextSibling),y=C.data==="F!";break t}}Sa(y)}y=!1}y&&(l=d[0])}}return d=Yr(),d.memoizedState=d.baseState=l,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vk,lastRenderedState:l},d.queue=y,d=p_.bind(null,te,y),y.dispatch=d,y=tm(!1),k=om.bind(null,te,!1,y.queue),y=Yr(),C={state:l,dispatch:null,action:a,pending:null},y.queue=C,d=O$.bind(null,te,C,k,d),C.dispatch=d,y.memoizedState=a,[l,d,!1]}function Qk(a){var l=lr();return Zk(l,Me,a)}function Zk(a,l,d){if(l=Kg(a,l,Vk)[0],a=Qh(Yn)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var y=_c(l)}catch(D){throw D===Lo?jh:D}else y=l;l=lr();var C=l.queue,k=C.dispatch;return d!==l.memoizedState&&(te.flags|=2048,Do(9,{destroy:void 0},R$.bind(null,C,d),null)),[y,k,a]}function R$(a,l){a.action=l}function Kk(a){var l=lr(),d=Me;if(d!==null)return Zk(l,d,a);lr(),l=l.memoizedState,d=lr();var y=d.queue.dispatch;return d.memoizedState=a,[l,y,!1]}function Do(a,l,d,y){return a={tag:a,create:d,deps:y,inst:l,next:null},l=te.updateQueue,l===null&&(l=Vh(),te.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=a.next=a:(y=d.next,d.next=a,a.next=y,l.lastEffect=a),a}function Jk(){return lr().memoizedState}function Zh(a,l,d,y){var C=Yr();te.flags|=a,C.memoizedState=Do(1|l,{destroy:void 0},d,y===void 0?null:y)}function Kh(a,l,d,y){var C=lr();y=y===void 0?null:y;var k=C.memoizedState.inst;Me!==null&&y!==null&&Yg(y,Me.memoizedState.deps)?C.memoizedState=Do(l,k,d,y):(te.flags|=a,C.memoizedState=Do(1|l,k,d,y))}function t_(a,l){Zh(8390656,8,a,l)}function rm(a,l){Kh(2048,8,a,l)}function D$(a){te.flags|=4;var l=te.updateQueue;if(l===null)l=Vh(),te.updateQueue=l,l.events=[a];else{var d=l.events;d===null?l.events=[a]:d.push(a)}}function e_(a){var l=lr().memoizedState;return D$({ref:l,nextImpl:a}),function(){if((ke&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}function r_(a,l){return Kh(4,2,a,l)}function i_(a,l){return Kh(4,4,a,l)}function n_(a,l){if(typeof l=="function"){a=a();var d=l(a);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function a_(a,l,d){d=d!=null?d.concat([a]):null,Kh(4,4,n_.bind(null,l,a),d)}function im(){}function s_(a,l){var d=lr();l=l===void 0?null:l;var y=d.memoizedState;return l!==null&&Yg(l,y[1])?y[0]:(d.memoizedState=[a,l],a)}function o_(a,l){var d=lr();l=l===void 0?null:l;var y=d.memoizedState;if(l!==null&&Yg(l,y[1]))return y[0];if(y=a(),Ms){Fe(!0);try{a()}finally{Fe(!1)}}return d.memoizedState=[y,l],y}function nm(a,l,d){return d===void 0||(Gn&1073741824)!==0&&(ue&261930)===0?a.memoizedState=l:(a.memoizedState=d,a=lT(),te.lanes|=a,Na|=a,d)}function l_(a,l,d,y){return bi(d,l)?d:No.current!==null?(a=nm(a,d,y),bi(a,l)||(dr=!0),a):(Gn&42)===0||(Gn&1073741824)!==0&&(ue&261930)===0?(dr=!0,a.memoizedState=d):(a=lT(),te.lanes|=a,Na|=a,l)}function c_(a,l,d,y,C){var k=P.p;P.p=k!==0&&8>k?k:8;var D=N.T,V={};N.T=V,om(a,!1,l,d);try{var rt=C(),ht=N.S;if(ht!==null&&ht(V,rt),rt!==null&&typeof rt=="object"&&typeof rt.then=="function"){var xt=L$(rt,y);Tc(a,l,xt,_i(a))}else Tc(a,l,y,_i(a))}catch(vt){Tc(a,l,{then:function(){},status:"rejected",reason:vt},_i())}finally{P.p=k,D!==null&&V.types!==null&&(D.types=V.types),N.T=D}}function F$(){}function am(a,l,d,y){if(a.tag!==5)throw Error(i(476));var C=u_(a).queue;c_(a,C,l,$,d===null?F$:function(){return h_(a),d(y)})}function u_(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:$},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:d},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function h_(a){var l=u_(a);l.next===null&&(l=a.alternate.memoizedState),Tc(a,l.next.queue,{},_i())}function sm(){return Or(Hc)}function f_(){return lr().memoizedState}function d_(){return lr().memoizedState}function I$(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var d=_i();a=Ta(d);var y=Ea(l,a,d);y!==null&&(li(y,l,d),Cc(y,l,d)),l={cache:Dg()},a.payload=l;return}l=l.return}}function q$(a,l,d){var y=_i();d={lane:y,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Jh(a)?g_(l,d):(d=kg(a,l,d,y),d!==null&&(li(d,a,y),m_(d,l,y)))}function p_(a,l,d){var y=_i();Tc(a,l,d,y)}function Tc(a,l,d,y){var C={lane:y,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Jh(a))g_(l,C);else{var k=a.alternate;if(a.lanes===0&&(k===null||k.lanes===0)&&(k=l.lastRenderedReducer,k!==null))try{var D=l.lastRenderedState,V=k(D,d);if(C.hasEagerState=!0,C.eagerState=V,bi(V,D))return Oh(a,l,C,0),Ie===null&&Nh(),!1}catch{}finally{}if(d=kg(a,l,C,y),d!==null)return li(d,a,y),m_(d,l,y),!0}return!1}function om(a,l,d,y){if(y={lane:2,revertLane:zm(),gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},Jh(a)){if(l)throw Error(i(479))}else l=kg(a,d,y,2),l!==null&&li(l,a,2)}function Jh(a){var l=a.alternate;return a===te||l!==null&&l===te}function g_(a,l){Oo=Yh=!0;var d=a.pending;d===null?l.next=l:(l.next=d.next,d.next=l),a.pending=l}function m_(a,l,d){if((d&4194048)!==0){var y=l.lanes;y&=a.pendingLanes,d|=y,l.lanes=d,hs(a,d)}}var Ec={readContext:Or,use:Xh,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useLayoutEffect:tr,useInsertionEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useSyncExternalStore:tr,useId:tr,useHostTransitionStatus:tr,useFormState:tr,useActionState:tr,useOptimistic:tr,useMemoCache:tr,useCacheRefresh:tr};Ec.useEffectEvent=tr;var y_={readContext:Or,use:Xh,useCallback:function(a,l){return Yr().memoizedState=[a,l===void 0?null:l],a},useContext:Or,useEffect:t_,useImperativeHandle:function(a,l,d){d=d!=null?d.concat([a]):null,Zh(4194308,4,n_.bind(null,l,a),d)},useLayoutEffect:function(a,l){return Zh(4194308,4,a,l)},useInsertionEffect:function(a,l){Zh(4,2,a,l)},useMemo:function(a,l){var d=Yr();l=l===void 0?null:l;var y=a();if(Ms){Fe(!0);try{a()}finally{Fe(!1)}}return d.memoizedState=[y,l],y},useReducer:function(a,l,d){var y=Yr();if(d!==void 0){var C=d(l);if(Ms){Fe(!0);try{d(l)}finally{Fe(!1)}}}else C=l;return y.memoizedState=y.baseState=C,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:C},y.queue=a,a=a.dispatch=q$.bind(null,te,a),[y.memoizedState,a]},useRef:function(a){var l=Yr();return a={current:a},l.memoizedState=a},useState:function(a){a=tm(a);var l=a.queue,d=p_.bind(null,te,l);return l.dispatch=d,[a.memoizedState,d]},useDebugValue:im,useDeferredValue:function(a,l){var d=Yr();return nm(d,a,l)},useTransition:function(){var a=tm(!1);return a=c_.bind(null,te,a.queue,!0,!1),Yr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,d){var y=te,C=Yr();if(de){if(d===void 0)throw Error(i(407));d=d()}else{if(d=l(),Ie===null)throw Error(i(349));(ue&127)!==0||qk(y,l,d)}C.memoizedState=d;var k={value:d,getSnapshot:l};return C.queue=k,t_(jk.bind(null,y,k,a),[a]),y.flags|=2048,Do(9,{destroy:void 0},zk.bind(null,y,k,d,l),null),d},useId:function(){var a=Yr(),l=Ie.identifierPrefix;if(de){var d=xn,y=yn;d=(y&~(1<<32-ce(y)-1)).toString(32)+d,l="_"+l+"R_"+d,d=Wh++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=M$++,l="_"+l+"r_"+d.toString(32)+"_";return a.memoizedState=l},useHostTransitionStatus:sm,useFormState:Xk,useActionState:Xk,useOptimistic:function(a){var l=Yr();l.memoizedState=l.baseState=a;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=om.bind(null,te,!0,d),d.dispatch=l,[a,l]},useMemoCache:Zg,useCacheRefresh:function(){return Yr().memoizedState=I$.bind(null,te)},useEffectEvent:function(a){var l=Yr(),d={impl:a};return l.memoizedState=d,function(){if((ke&2)!==0)throw Error(i(440));return d.impl.apply(void 0,arguments)}}},lm={readContext:Or,use:Xh,useCallback:s_,useContext:Or,useEffect:rm,useImperativeHandle:a_,useInsertionEffect:r_,useLayoutEffect:i_,useMemo:o_,useReducer:Qh,useRef:Jk,useState:function(){return Qh(Yn)},useDebugValue:im,useDeferredValue:function(a,l){var d=lr();return l_(d,Me.memoizedState,a,l)},useTransition:function(){var a=Qh(Yn)[0],l=lr().memoizedState;return[typeof a=="boolean"?a:_c(a),l]},useSyncExternalStore:Ik,useId:f_,useHostTransitionStatus:sm,useFormState:Qk,useActionState:Qk,useOptimistic:function(a,l){var d=lr();return Hk(d,Me,a,l)},useMemoCache:Zg,useCacheRefresh:d_};lm.useEffectEvent=e_;var x_={readContext:Or,use:Xh,useCallback:s_,useContext:Or,useEffect:rm,useImperativeHandle:a_,useInsertionEffect:r_,useLayoutEffect:i_,useMemo:o_,useReducer:Jg,useRef:Jk,useState:function(){return Jg(Yn)},useDebugValue:im,useDeferredValue:function(a,l){var d=lr();return Me===null?nm(d,a,l):l_(d,Me.memoizedState,a,l)},useTransition:function(){var a=Jg(Yn)[0],l=lr().memoizedState;return[typeof a=="boolean"?a:_c(a),l]},useSyncExternalStore:Ik,useId:f_,useHostTransitionStatus:sm,useFormState:Kk,useActionState:Kk,useOptimistic:function(a,l){var d=lr();return Me!==null?Hk(d,Me,a,l):(d.baseState=a,[a,d.queue.dispatch])},useMemoCache:Zg,useCacheRefresh:d_};x_.useEffectEvent=e_;function cm(a,l,d,y){l=a.memoizedState,d=d(y,l),d=d==null?l:p({},l,d),a.memoizedState=d,a.lanes===0&&(a.updateQueue.baseState=d)}var um={enqueueSetState:function(a,l,d){a=a._reactInternals;var y=_i(),C=Ta(y);C.payload=l,d!=null&&(C.callback=d),l=Ea(a,C,y),l!==null&&(li(l,a,y),Cc(l,a,y))},enqueueReplaceState:function(a,l,d){a=a._reactInternals;var y=_i(),C=Ta(y);C.tag=1,C.payload=l,d!=null&&(C.callback=d),l=Ea(a,C,y),l!==null&&(li(l,a,y),Cc(l,a,y))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var d=_i(),y=Ta(d);y.tag=2,l!=null&&(y.callback=l),l=Ea(a,y,d),l!==null&&(li(l,a,d),Cc(l,a,d))}};function b_(a,l,d,y,C,k,D){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(y,k,D):l.prototype&&l.prototype.isPureReactComponent?!dc(d,y)||!dc(C,k):!0}function v_(a,l,d,y){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,y),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,y),l.state!==a&&um.enqueueReplaceState(l,l.state,null)}function Ns(a,l){var d=l;if("ref"in l){d={};for(var y in l)y!=="ref"&&(d[y]=l[y])}if(a=a.defaultProps){d===l&&(d=p({},d));for(var C in a)d[C]===void 0&&(d[C]=a[C])}return d}function C_(a){Mh(a)}function w_(a){console.error(a)}function S_(a){Mh(a)}function tf(a,l){try{var d=a.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(y){setTimeout(function(){throw y})}}function k_(a,l,d){try{var y=a.onCaughtError;y(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function hm(a,l,d){return d=Ta(d),d.tag=3,d.payload={element:null},d.callback=function(){tf(a,l)},d}function __(a){return a=Ta(a),a.tag=3,a}function T_(a,l,d,y){var C=d.type.getDerivedStateFromError;if(typeof C=="function"){var k=y.value;a.payload=function(){return C(k)},a.callback=function(){k_(l,d,y)}}var D=d.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(a.callback=function(){k_(l,d,y),typeof C!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var V=y.stack;this.componentDidCatch(y.value,{componentStack:V!==null?V:""})})}function z$(a,l,d,y,C){if(d.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(l=d.alternate,l!==null&&Eo(l,d,C,!0),d=Ci.current,d!==null){switch(d.tag){case 31:case 13:return Ii===null?df():d.alternate===null&&er===0&&(er=3),d.flags&=-257,d.flags|=65536,d.lanes=C,y===$h?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([y]):l.add(y),Fm(a,y,C)),!1;case 22:return d.flags|=65536,y===$h?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([y])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([y]):d.add(y)),Fm(a,y,C)),!1}throw Error(i(435,d.tag))}return Fm(a,y,C),df(),!1}if(de)return l=Ci.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=C,y!==Lg&&(a=Error(i(422),{cause:y}),mc(Oi(a,d)))):(y!==Lg&&(l=Error(i(423),{cause:y}),mc(Oi(l,d))),a=a.current.alternate,a.flags|=65536,C&=-C,a.lanes|=C,y=Oi(y,d),C=hm(a.stateNode,y,C),$g(a,C),er!==4&&(er=2)),!1;var k=Error(i(520),{cause:y});if(k=Oi(k,d),Dc===null?Dc=[k]:Dc.push(k),er!==4&&(er=2),l===null)return!0;y=Oi(y,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,a=C&-C,d.lanes|=a,a=hm(d.stateNode,y,a),$g(d,a),!1;case 1:if(l=d.type,k=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(Oa===null||!Oa.has(k))))return d.flags|=65536,C&=-C,d.lanes|=C,C=__(C),T_(C,a,d,y),$g(d,C),!1}d=d.return}while(d!==null);return!1}var fm=Error(i(461)),dr=!1;function Rr(a,l,d,y){l.child=a===null?Lk(l,null,d,y):Ls(l,a.child,d,y)}function E_(a,l,d,y,C){d=d.render;var k=l.ref;if("ref"in y){var D={};for(var V in y)V!=="ref"&&(D[V]=y[V])}else D=y;return Ts(l),y=Wg(a,l,d,D,k,C),V=Vg(),a!==null&&!dr?(Xg(a,l,C),Wn(a,l,C)):(de&&V&&Ag(l),l.flags|=1,Rr(a,l,y,C),l.child)}function A_(a,l,d,y,C){if(a===null){var k=d.type;return typeof k=="function"&&!_g(k)&&k.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=k,B_(a,l,k,y,C)):(a=Dh(d.type,null,y,l,l.mode,C),a.ref=l.ref,a.return=l,l.child=a)}if(k=a.child,!vm(a,C)){var D=k.memoizedProps;if(d=d.compare,d=d!==null?d:dc,d(D,y)&&a.ref===l.ref)return Wn(a,l,C)}return l.flags|=1,a=$n(k,y),a.ref=l.ref,a.return=l,l.child=a}function B_(a,l,d,y,C){if(a!==null){var k=a.memoizedProps;if(dc(k,y)&&a.ref===l.ref)if(dr=!1,l.pendingProps=y=k,vm(a,C))(a.flags&131072)!==0&&(dr=!0);else return l.lanes=a.lanes,Wn(a,l,C)}return dm(a,l,d,y,C)}function L_(a,l,d,y){var C=y.children,k=a!==null?a.memoizedState:null;if(a===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),y.mode==="hidden"){if((l.flags&128)!==0){if(k=k!==null?k.baseLanes|d:d,a!==null){for(y=l.child=a.child,C=0;y!==null;)C=C|y.lanes|y.childLanes,y=y.sibling;y=C&~k}else y=0,l.child=null;return M_(a,l,k,d,y)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&zh(l,k!==null?k.cachePool:null),k!==null?Ok(l,k):Hg(),Rk(l);else return y=l.lanes=536870912,M_(a,l,k!==null?k.baseLanes|d:d,d,y)}else k!==null?(zh(l,k.cachePool),Ok(l,k),Ba(),l.memoizedState=null):(a!==null&&zh(l,null),Hg(),Ba());return Rr(a,l,C,d),l.child}function Ac(a,l){return a!==null&&a.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function M_(a,l,d,y,C){var k=Ig();return k=k===null?null:{parent:hr._currentValue,pool:k},l.memoizedState={baseLanes:d,cachePool:k},a!==null&&zh(l,null),Hg(),Rk(l),a!==null&&Eo(a,l,y,!0),l.childLanes=C,null}function ef(a,l){return l=nf({mode:l.mode,children:l.children},a.mode),l.ref=a.ref,a.child=l,l.return=a,l}function N_(a,l,d){return Ls(l,a.child,null,d),a=ef(l,l.pendingProps),a.flags|=2,wi(l),l.memoizedState=null,a}function j$(a,l,d){var y=l.pendingProps,C=(l.flags&128)!==0;if(l.flags&=-129,a===null){if(de){if(y.mode==="hidden")return a=ef(l,y),l.lanes=536870912,Ac(null,a);if(Gg(l),(a=Pe)?(a=UT(a,Fi),a=a!==null&&a.data==="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Ca!==null?{id:yn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},d=gk(a),d.return=l,l.child=d,Nr=l,Pe=null)):a=null,a===null)throw Sa(l);return l.lanes=536870912,null}return ef(l,y)}var k=a.memoizedState;if(k!==null){var D=k.dehydrated;if(Gg(l),C)if(l.flags&256)l.flags&=-257,l=N_(a,l,d);else if(l.memoizedState!==null)l.child=a.child,l.flags|=128,l=null;else throw Error(i(558));else if(dr||Eo(a,l,d,!1),C=(d&a.childLanes)!==0,dr||C){if(y=Ie,y!==null&&(D=co(y,d),D!==0&&D!==k.retryLane))throw k.retryLane=D,ws(a,D),li(y,a,D),fm;df(),l=N_(a,l,d)}else a=k.treeContext,Pe=qi(D.nextSibling),Nr=l,de=!0,wa=null,Fi=!1,a!==null&&xk(l,a),l=ef(l,y),l.flags|=4096;return l}return a=$n(a.child,{mode:y.mode,children:y.children}),a.ref=l.ref,l.child=a,a.return=l,a}function rf(a,l){var d=l.ref;if(d===null)a!==null&&a.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(i(284));(a===null||a.ref!==d)&&(l.flags|=4194816)}}function dm(a,l,d,y,C){return Ts(l),d=Wg(a,l,d,y,void 0,C),y=Vg(),a!==null&&!dr?(Xg(a,l,C),Wn(a,l,C)):(de&&y&&Ag(l),l.flags|=1,Rr(a,l,d,C),l.child)}function O_(a,l,d,y,C,k){return Ts(l),l.updateQueue=null,d=Fk(l,y,d,C),Dk(a),y=Vg(),a!==null&&!dr?(Xg(a,l,k),Wn(a,l,k)):(de&&y&&Ag(l),l.flags|=1,Rr(a,l,d,k),l.child)}function R_(a,l,d,y,C){if(Ts(l),l.stateNode===null){var k=So,D=d.contextType;typeof D=="object"&&D!==null&&(k=Or(D)),k=new d(y,k),l.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=um,l.stateNode=k,k._reactInternals=l,k=l.stateNode,k.props=y,k.state=l.memoizedState,k.refs={},zg(l),D=d.contextType,k.context=typeof D=="object"&&D!==null?Or(D):So,k.state=l.memoizedState,D=d.getDerivedStateFromProps,typeof D=="function"&&(cm(l,d,D,y),k.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(D=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),D!==k.state&&um.enqueueReplaceState(k,k.state,null),Sc(l,y,k,C),wc(),k.state=l.memoizedState),typeof k.componentDidMount=="function"&&(l.flags|=4194308),y=!0}else if(a===null){k=l.stateNode;var V=l.memoizedProps,rt=Ns(d,V);k.props=rt;var ht=k.context,xt=d.contextType;D=So,typeof xt=="object"&&xt!==null&&(D=Or(xt));var vt=d.getDerivedStateFromProps;xt=typeof vt=="function"||typeof k.getSnapshotBeforeUpdate=="function",V=l.pendingProps!==V,xt||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(V||ht!==D)&&v_(l,k,y,D),_a=!1;var ft=l.memoizedState;k.state=ft,Sc(l,y,k,C),wc(),ht=l.memoizedState,V||ft!==ht||_a?(typeof vt=="function"&&(cm(l,d,vt,y),ht=l.memoizedState),(rt=_a||b_(l,d,rt,y,ft,ht,D))?(xt||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(l.flags|=4194308)):(typeof k.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=y,l.memoizedState=ht),k.props=y,k.state=ht,k.context=D,y=rt):(typeof k.componentDidMount=="function"&&(l.flags|=4194308),y=!1)}else{k=l.stateNode,jg(a,l),D=l.memoizedProps,xt=Ns(d,D),k.props=xt,vt=l.pendingProps,ft=k.context,ht=d.contextType,rt=So,typeof ht=="object"&&ht!==null&&(rt=Or(ht)),V=d.getDerivedStateFromProps,(ht=typeof V=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(D!==vt||ft!==rt)&&v_(l,k,y,rt),_a=!1,ft=l.memoizedState,k.state=ft,Sc(l,y,k,C),wc();var mt=l.memoizedState;D!==vt||ft!==mt||_a||a!==null&&a.dependencies!==null&&Ih(a.dependencies)?(typeof V=="function"&&(cm(l,d,V,y),mt=l.memoizedState),(xt=_a||b_(l,d,xt,y,ft,mt,rt)||a!==null&&a.dependencies!==null&&Ih(a.dependencies))?(ht||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(y,mt,rt),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(y,mt,rt)),typeof k.componentDidUpdate=="function"&&(l.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof k.componentDidUpdate!="function"||D===a.memoizedProps&&ft===a.memoizedState||(l.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||D===a.memoizedProps&&ft===a.memoizedState||(l.flags|=1024),l.memoizedProps=y,l.memoizedState=mt),k.props=y,k.state=mt,k.context=rt,y=xt):(typeof k.componentDidUpdate!="function"||D===a.memoizedProps&&ft===a.memoizedState||(l.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||D===a.memoizedProps&&ft===a.memoizedState||(l.flags|=1024),y=!1)}return k=y,rf(a,l),y=(l.flags&128)!==0,k||y?(k=l.stateNode,d=y&&typeof d.getDerivedStateFromError!="function"?null:k.render(),l.flags|=1,a!==null&&y?(l.child=Ls(l,a.child,null,C),l.child=Ls(l,null,d,C)):Rr(a,l,d,C),l.memoizedState=k.state,a=l.child):a=Wn(a,l,C),a}function D_(a,l,d,y){return ks(),l.flags|=256,Rr(a,l,d,y),l.child}var pm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gm(a){return{baseLanes:a,cachePool:kk()}}function mm(a,l,d){return a=a!==null?a.childLanes&~d:0,l&&(a|=ki),a}function F_(a,l,d){var y=l.pendingProps,C=!1,k=(l.flags&128)!==0,D;if((D=k)||(D=a!==null&&a.memoizedState===null?!1:(or.current&2)!==0),D&&(C=!0,l.flags&=-129),D=(l.flags&32)!==0,l.flags&=-33,a===null){if(de){if(C?Aa(l):Ba(),(a=Pe)?(a=UT(a,Fi),a=a!==null&&a.data!=="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Ca!==null?{id:yn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},d=gk(a),d.return=l,l.child=d,Nr=l,Pe=null)):a=null,a===null)throw Sa(l);return Km(a)?l.lanes=32:l.lanes=536870912,null}var V=y.children;return y=y.fallback,C?(Ba(),C=l.mode,V=nf({mode:"hidden",children:V},C),y=Ss(y,C,d,null),V.return=l,y.return=l,V.sibling=y,l.child=V,y=l.child,y.memoizedState=gm(d),y.childLanes=mm(a,D,d),l.memoizedState=pm,Ac(null,y)):(Aa(l),ym(l,V))}var rt=a.memoizedState;if(rt!==null&&(V=rt.dehydrated,V!==null)){if(k)l.flags&256?(Aa(l),l.flags&=-257,l=xm(a,l,d)):l.memoizedState!==null?(Ba(),l.child=a.child,l.flags|=128,l=null):(Ba(),V=y.fallback,C=l.mode,y=nf({mode:"visible",children:y.children},C),V=Ss(V,C,d,null),V.flags|=2,y.return=l,V.return=l,y.sibling=V,l.child=y,Ls(l,a.child,null,d),y=l.child,y.memoizedState=gm(d),y.childLanes=mm(a,D,d),l.memoizedState=pm,l=Ac(null,y));else if(Aa(l),Km(V)){if(D=V.nextSibling&&V.nextSibling.dataset,D)var ht=D.dgst;D=ht,y=Error(i(419)),y.stack="",y.digest=D,mc({value:y,source:null,stack:null}),l=xm(a,l,d)}else if(dr||Eo(a,l,d,!1),D=(d&a.childLanes)!==0,dr||D){if(D=Ie,D!==null&&(y=co(D,d),y!==0&&y!==rt.retryLane))throw rt.retryLane=y,ws(a,y),li(D,a,y),fm;Zm(V)||df(),l=xm(a,l,d)}else Zm(V)?(l.flags|=192,l.child=a.child,l=null):(a=rt.treeContext,Pe=qi(V.nextSibling),Nr=l,de=!0,wa=null,Fi=!1,a!==null&&xk(l,a),l=ym(l,y.children),l.flags|=4096);return l}return C?(Ba(),V=y.fallback,C=l.mode,rt=a.child,ht=rt.sibling,y=$n(rt,{mode:"hidden",children:y.children}),y.subtreeFlags=rt.subtreeFlags&65011712,ht!==null?V=$n(ht,V):(V=Ss(V,C,d,null),V.flags|=2),V.return=l,y.return=l,y.sibling=V,l.child=y,Ac(null,y),y=l.child,V=a.child.memoizedState,V===null?V=gm(d):(C=V.cachePool,C!==null?(rt=hr._currentValue,C=C.parent!==rt?{parent:rt,pool:rt}:C):C=kk(),V={baseLanes:V.baseLanes|d,cachePool:C}),y.memoizedState=V,y.childLanes=mm(a,D,d),l.memoizedState=pm,Ac(a.child,y)):(Aa(l),d=a.child,a=d.sibling,d=$n(d,{mode:"visible",children:y.children}),d.return=l,d.sibling=null,a!==null&&(D=l.deletions,D===null?(l.deletions=[a],l.flags|=16):D.push(a)),l.child=d,l.memoizedState=null,d)}function ym(a,l){return l=nf({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function nf(a,l){return a=vi(22,a,null,l),a.lanes=0,a}function xm(a,l,d){return Ls(l,a.child,null,d),a=ym(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function I_(a,l,d){a.lanes|=l;var y=a.alternate;y!==null&&(y.lanes|=l),Og(a.return,l,d)}function bm(a,l,d,y,C,k){var D=a.memoizedState;D===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:y,tail:d,tailMode:C,treeForkCount:k}:(D.isBackwards=l,D.rendering=null,D.renderingStartTime=0,D.last=y,D.tail=d,D.tailMode=C,D.treeForkCount=k)}function q_(a,l,d){var y=l.pendingProps,C=y.revealOrder,k=y.tail;y=y.children;var D=or.current,V=(D&2)!==0;if(V?(D=D&1|2,l.flags|=128):D&=1,H(or,D),Rr(a,l,y,d),y=de?gc:0,!V&&a!==null&&(a.flags&128)!==0)t:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&I_(a,d,l);else if(a.tag===19)I_(a,d,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break t;for(;a.sibling===null;){if(a.return===null||a.return===l)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(C){case"forwards":for(d=l.child,C=null;d!==null;)a=d.alternate,a!==null&&Gh(a)===null&&(C=d),d=d.sibling;d=C,d===null?(C=l.child,l.child=null):(C=d.sibling,d.sibling=null),bm(l,!1,C,d,k,y);break;case"backwards":case"unstable_legacy-backwards":for(d=null,C=l.child,l.child=null;C!==null;){if(a=C.alternate,a!==null&&Gh(a)===null){l.child=C;break}a=C.sibling,C.sibling=d,d=C,C=a}bm(l,!0,d,null,k,y);break;case"together":bm(l,!1,null,null,void 0,y);break;default:l.memoizedState=null}return l.child}function Wn(a,l,d){if(a!==null&&(l.dependencies=a.dependencies),Na|=l.lanes,(d&l.childLanes)===0)if(a!==null){if(Eo(a,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(i(153));if(l.child!==null){for(a=l.child,d=$n(a,a.pendingProps),l.child=d,d.return=l;a.sibling!==null;)a=a.sibling,d=d.sibling=$n(a,a.pendingProps),d.return=l;d.sibling=null}return l.child}function vm(a,l){return(a.lanes&l)!==0?!0:(a=a.dependencies,!!(a!==null&&Ih(a)))}function $$(a,l,d){switch(l.tag){case 3:nt(l,l.stateNode.containerInfo),ka(l,hr,a.memoizedState.cache),ks();break;case 27:case 5:it(l);break;case 4:nt(l,l.stateNode.containerInfo);break;case 10:ka(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Gg(l),null;break;case 13:var y=l.memoizedState;if(y!==null)return y.dehydrated!==null?(Aa(l),l.flags|=128,null):(d&l.child.childLanes)!==0?F_(a,l,d):(Aa(l),a=Wn(a,l,d),a!==null?a.sibling:null);Aa(l);break;case 19:var C=(a.flags&128)!==0;if(y=(d&l.childLanes)!==0,y||(Eo(a,l,d,!1),y=(d&l.childLanes)!==0),C){if(y)return q_(a,l,d);l.flags|=128}if(C=l.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),H(or,or.current),y)break;return null;case 22:return l.lanes=0,L_(a,l,d,l.pendingProps);case 24:ka(l,hr,a.memoizedState.cache)}return Wn(a,l,d)}function z_(a,l,d){if(a!==null)if(a.memoizedProps!==l.pendingProps)dr=!0;else{if(!vm(a,d)&&(l.flags&128)===0)return dr=!1,$$(a,l,d);dr=(a.flags&131072)!==0}else dr=!1,de&&(l.flags&1048576)!==0&&yk(l,gc,l.index);switch(l.lanes=0,l.tag){case 16:t:{var y=l.pendingProps;if(a=As(l.elementType),l.type=a,typeof a=="function")_g(a)?(y=Ns(a,y),l.tag=1,l=R_(null,l,a,y,d)):(l.tag=0,l=dm(null,l,a,y,d));else{if(a!=null){var C=a.$$typeof;if(C===E){l.tag=11,l=E_(null,l,a,y,d);break t}else if(C===R){l.tag=14,l=A_(null,l,a,y,d);break t}}throw l=M(a)||a,Error(i(306,l,""))}}return l;case 0:return dm(a,l,l.type,l.pendingProps,d);case 1:return y=l.type,C=Ns(y,l.pendingProps),R_(a,l,y,C,d);case 3:t:{if(nt(l,l.stateNode.containerInfo),a===null)throw Error(i(387));y=l.pendingProps;var k=l.memoizedState;C=k.element,jg(a,l),Sc(l,y,null,d);var D=l.memoizedState;if(y=D.cache,ka(l,hr,y),y!==k.cache&&Rg(l,[hr],d,!0),wc(),y=D.element,k.isDehydrated)if(k={element:y,isDehydrated:!1,cache:D.cache},l.updateQueue.baseState=k,l.memoizedState=k,l.flags&256){l=D_(a,l,y,d);break t}else if(y!==C){C=Oi(Error(i(424)),l),mc(C),l=D_(a,l,y,d);break t}else{switch(a=l.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Pe=qi(a.firstChild),Nr=l,de=!0,wa=null,Fi=!0,d=Lk(l,null,y,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(ks(),y===C){l=Wn(a,l,d);break t}Rr(a,l,y,d)}l=l.child}return l;case 26:return rf(a,l),a===null?(d=QT(l.type,null,l.pendingProps,null))?l.memoizedState=d:de||(d=l.type,a=l.pendingProps,y=vf(tt.current).createElement(d),y[Ze]=l,y[qe]=a,Dr(y,d,a),ae(y),l.stateNode=y):l.memoizedState=QT(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return it(l),a===null&&de&&(y=l.stateNode=WT(l.type,l.pendingProps,tt.current),Nr=l,Fi=!0,C=Pe,Ia(l.type)?(Jm=C,Pe=qi(y.firstChild)):Pe=C),Rr(a,l,l.pendingProps.children,d),rf(a,l),a===null&&(l.flags|=4194304),l.child;case 5:return a===null&&de&&((C=y=Pe)&&(y=yP(y,l.type,l.pendingProps,Fi),y!==null?(l.stateNode=y,Nr=l,Pe=qi(y.firstChild),Fi=!1,C=!0):C=!1),C||Sa(l)),it(l),C=l.type,k=l.pendingProps,D=a!==null?a.memoizedProps:null,y=k.children,Vm(C,k)?y=null:D!==null&&Vm(C,D)&&(l.flags|=32),l.memoizedState!==null&&(C=Wg(a,l,N$,null,null,d),Hc._currentValue=C),rf(a,l),Rr(a,l,y,d),l.child;case 6:return a===null&&de&&((a=d=Pe)&&(d=xP(d,l.pendingProps,Fi),d!==null?(l.stateNode=d,Nr=l,Pe=null,a=!0):a=!1),a||Sa(l)),null;case 13:return F_(a,l,d);case 4:return nt(l,l.stateNode.containerInfo),y=l.pendingProps,a===null?l.child=Ls(l,null,y,d):Rr(a,l,y,d),l.child;case 11:return E_(a,l,l.type,l.pendingProps,d);case 7:return Rr(a,l,l.pendingProps,d),l.child;case 8:return Rr(a,l,l.pendingProps.children,d),l.child;case 12:return Rr(a,l,l.pendingProps.children,d),l.child;case 10:return y=l.pendingProps,ka(l,l.type,y.value),Rr(a,l,y.children,d),l.child;case 9:return C=l.type._context,y=l.pendingProps.children,Ts(l),C=Or(C),y=y(C),l.flags|=1,Rr(a,l,y,d),l.child;case 14:return A_(a,l,l.type,l.pendingProps,d);case 15:return B_(a,l,l.type,l.pendingProps,d);case 19:return q_(a,l,d);case 31:return j$(a,l,d);case 22:return L_(a,l,d,l.pendingProps);case 24:return Ts(l),y=Or(hr),a===null?(C=Ig(),C===null&&(C=Ie,k=Dg(),C.pooledCache=k,k.refCount++,k!==null&&(C.pooledCacheLanes|=d),C=k),l.memoizedState={parent:y,cache:C},zg(l),ka(l,hr,C)):((a.lanes&d)!==0&&(jg(a,l),Sc(l,null,null,d),wc()),C=a.memoizedState,k=l.memoizedState,C.parent!==y?(C={parent:y,cache:y},l.memoizedState=C,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=C),ka(l,hr,y)):(y=k.cache,ka(l,hr,y),y!==C.cache&&Rg(l,[hr],d,!0))),Rr(a,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(i(156,l.tag))}function Vn(a){a.flags|=4}function Cm(a,l,d,y,C){if((l=(a.mode&32)!==0)&&(l=!1),l){if(a.flags|=16777216,(C&335544128)===C)if(a.stateNode.complete)a.flags|=8192;else if(fT())a.flags|=8192;else throw Bs=$h,qg}else a.flags&=-16777217}function j_(a,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!eE(l))if(fT())a.flags|=8192;else throw Bs=$h,qg}function af(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?Yi():536870912,a.lanes|=l,zo|=l)}function Bc(a,l){if(!de)switch(a.tailMode){case"hidden":l=a.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?a.tail=null:d.sibling=null;break;case"collapsed":d=a.tail;for(var y=null;d!==null;)d.alternate!==null&&(y=d),d=d.sibling;y===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:y.sibling=null}}function He(a){var l=a.alternate!==null&&a.alternate.child===a.child,d=0,y=0;if(l)for(var C=a.child;C!==null;)d|=C.lanes|C.childLanes,y|=C.subtreeFlags&65011712,y|=C.flags&65011712,C.return=a,C=C.sibling;else for(C=a.child;C!==null;)d|=C.lanes|C.childLanes,y|=C.subtreeFlags,y|=C.flags,C.return=a,C=C.sibling;return a.subtreeFlags|=y,a.childLanes=d,l}function P$(a,l,d){var y=l.pendingProps;switch(Bg(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(l),null;case 1:return He(l),null;case 3:return d=l.stateNode,y=null,a!==null&&(y=a.memoizedState.cache),l.memoizedState.cache!==y&&(l.flags|=2048),Un(hr),ct(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(a===null||a.child===null)&&(To(l)?Vn(l):a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Mg())),He(l),null;case 26:var C=l.type,k=l.memoizedState;return a===null?(Vn(l),k!==null?(He(l),j_(l,k)):(He(l),Cm(l,C,null,y,d))):k?k!==a.memoizedState?(Vn(l),He(l),j_(l,k)):(He(l),l.flags&=-16777217):(a=a.memoizedProps,a!==y&&Vn(l),He(l),Cm(l,C,a,y,d)),null;case 27:if(dt(l),d=tt.current,C=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==y&&Vn(l);else{if(!y){if(l.stateNode===null)throw Error(i(166));return He(l),null}a=Q.current,To(l)?bk(l):(a=WT(C,y,d),l.stateNode=a,Vn(l))}return He(l),null;case 5:if(dt(l),C=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==y&&Vn(l);else{if(!y){if(l.stateNode===null)throw Error(i(166));return He(l),null}if(k=Q.current,To(l))bk(l);else{var D=vf(tt.current);switch(k){case 1:k=D.createElementNS("http://www.w3.org/2000/svg",C);break;case 2:k=D.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;default:switch(C){case"svg":k=D.createElementNS("http://www.w3.org/2000/svg",C);break;case"math":k=D.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;case"script":k=D.createElement("div"),k.innerHTML="<script><\/script>",k=k.removeChild(k.firstChild);break;case"select":k=typeof y.is=="string"?D.createElement("select",{is:y.is}):D.createElement("select"),y.multiple?k.multiple=!0:y.size&&(k.size=y.size);break;default:k=typeof y.is=="string"?D.createElement(C,{is:y.is}):D.createElement(C)}}k[Ze]=l,k[qe]=y;t:for(D=l.child;D!==null;){if(D.tag===5||D.tag===6)k.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===l)break t;for(;D.sibling===null;){if(D.return===null||D.return===l)break t;D=D.return}D.sibling.return=D.return,D=D.sibling}l.stateNode=k;t:switch(Dr(k,C,y),C){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break t;case"img":y=!0;break t;default:y=!1}y&&Vn(l)}}return He(l),Cm(l,l.type,a===null?null:a.memoizedProps,l.pendingProps,d),null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==y&&Vn(l);else{if(typeof y!="string"&&l.stateNode===null)throw Error(i(166));if(a=tt.current,To(l)){if(a=l.stateNode,d=l.memoizedProps,y=null,C=Nr,C!==null)switch(C.tag){case 27:case 5:y=C.memoizedProps}a[Ze]=l,a=!!(a.nodeValue===d||y!==null&&y.suppressHydrationWarning===!0||FT(a.nodeValue,d)),a||Sa(l,!0)}else a=vf(a).createTextNode(y),a[Ze]=l,l.stateNode=a}return He(l),null;case 31:if(d=l.memoizedState,a===null||a.memoizedState!==null){if(y=To(l),d!==null){if(a===null){if(!y)throw Error(i(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(557));a[Ze]=l}else ks(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;He(l),a=!1}else d=Mg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=d),a=!0;if(!a)return l.flags&256?(wi(l),l):(wi(l),null);if((l.flags&128)!==0)throw Error(i(558))}return He(l),null;case 13:if(y=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(C=To(l),y!==null&&y.dehydrated!==null){if(a===null){if(!C)throw Error(i(318));if(C=l.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(i(317));C[Ze]=l}else ks(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;He(l),C=!1}else C=Mg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=C),C=!0;if(!C)return l.flags&256?(wi(l),l):(wi(l),null)}return wi(l),(l.flags&128)!==0?(l.lanes=d,l):(d=y!==null,a=a!==null&&a.memoizedState!==null,d&&(y=l.child,C=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(C=y.alternate.memoizedState.cachePool.pool),k=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(k=y.memoizedState.cachePool.pool),k!==C&&(y.flags|=2048)),d!==a&&d&&(l.child.flags|=8192),af(l,l.updateQueue),He(l),null);case 4:return ct(),a===null&&Hm(l.stateNode.containerInfo),He(l),null;case 10:return Un(l.type),He(l),null;case 19:if(Z(or),y=l.memoizedState,y===null)return He(l),null;if(C=(l.flags&128)!==0,k=y.rendering,k===null)if(C)Bc(y,!1);else{if(er!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(k=Gh(a),k!==null){for(l.flags|=128,Bc(y,!1),a=k.updateQueue,l.updateQueue=a,af(l,a),l.subtreeFlags=0,a=d,d=l.child;d!==null;)pk(d,a),d=d.sibling;return H(or,or.current&1|2),de&&Pn(l,y.treeForkCount),l.child}a=a.sibling}y.tail!==null&&Le()>uf&&(l.flags|=128,C=!0,Bc(y,!1),l.lanes=4194304)}else{if(!C)if(a=Gh(k),a!==null){if(l.flags|=128,C=!0,a=a.updateQueue,l.updateQueue=a,af(l,a),Bc(y,!0),y.tail===null&&y.tailMode==="hidden"&&!k.alternate&&!de)return He(l),null}else 2*Le()-y.renderingStartTime>uf&&d!==536870912&&(l.flags|=128,C=!0,Bc(y,!1),l.lanes=4194304);y.isBackwards?(k.sibling=l.child,l.child=k):(a=y.last,a!==null?a.sibling=k:l.child=k,y.last=k)}return y.tail!==null?(a=y.tail,y.rendering=a,y.tail=a.sibling,y.renderingStartTime=Le(),a.sibling=null,d=or.current,H(or,C?d&1|2:d&1),de&&Pn(l,y.treeForkCount),a):(He(l),null);case 22:case 23:return wi(l),Ug(),y=l.memoizedState!==null,a!==null?a.memoizedState!==null!==y&&(l.flags|=8192):y&&(l.flags|=8192),y?(d&536870912)!==0&&(l.flags&128)===0&&(He(l),l.subtreeFlags&6&&(l.flags|=8192)):He(l),d=l.updateQueue,d!==null&&af(l,d.retryQueue),d=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),y=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(y=l.memoizedState.cachePool.pool),y!==d&&(l.flags|=2048),a!==null&&Z(Es),null;case 24:return d=null,a!==null&&(d=a.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),Un(hr),He(l),null;case 25:return null;case 30:return null}throw Error(i(156,l.tag))}function H$(a,l){switch(Bg(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Un(hr),ct(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return dt(l),null;case 31:if(l.memoizedState!==null){if(wi(l),l.alternate===null)throw Error(i(340));ks()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 13:if(wi(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(i(340));ks()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return Z(or),null;case 4:return ct(),null;case 10:return Un(l.type),null;case 22:case 23:return wi(l),Ug(),a!==null&&Z(Es),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return Un(hr),null;case 25:return null;default:return null}}function $_(a,l){switch(Bg(l),l.tag){case 3:Un(hr),ct();break;case 26:case 27:case 5:dt(l);break;case 4:ct();break;case 31:l.memoizedState!==null&&wi(l);break;case 13:wi(l);break;case 19:Z(or);break;case 10:Un(l.type);break;case 22:case 23:wi(l),Ug(),a!==null&&Z(Es);break;case 24:Un(hr)}}function Lc(a,l){try{var d=l.updateQueue,y=d!==null?d.lastEffect:null;if(y!==null){var C=y.next;d=C;do{if((d.tag&a)===a){y=void 0;var k=d.create,D=d.inst;y=k(),D.destroy=y}d=d.next}while(d!==C)}}catch(V){Ae(l,l.return,V)}}function La(a,l,d){try{var y=l.updateQueue,C=y!==null?y.lastEffect:null;if(C!==null){var k=C.next;y=k;do{if((y.tag&a)===a){var D=y.inst,V=D.destroy;if(V!==void 0){D.destroy=void 0,C=l;var rt=d,ht=V;try{ht()}catch(xt){Ae(C,rt,xt)}}}y=y.next}while(y!==k)}}catch(xt){Ae(l,l.return,xt)}}function P_(a){var l=a.updateQueue;if(l!==null){var d=a.stateNode;try{Nk(l,d)}catch(y){Ae(a,a.return,y)}}}function H_(a,l,d){d.props=Ns(a.type,a.memoizedProps),d.state=a.memoizedState;try{d.componentWillUnmount()}catch(y){Ae(a,l,y)}}function Mc(a,l){try{var d=a.ref;if(d!==null){switch(a.tag){case 26:case 27:case 5:var y=a.stateNode;break;case 30:y=a.stateNode;break;default:y=a.stateNode}typeof d=="function"?a.refCleanup=d(y):d.current=y}}catch(C){Ae(a,l,C)}}function bn(a,l){var d=a.ref,y=a.refCleanup;if(d!==null)if(typeof y=="function")try{y()}catch(C){Ae(a,l,C)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(C){Ae(a,l,C)}else d.current=null}function U_(a){var l=a.type,d=a.memoizedProps,y=a.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&y.focus();break t;case"img":d.src?y.src=d.src:d.srcSet&&(y.srcset=d.srcSet)}}catch(C){Ae(a,a.return,C)}}function wm(a,l,d){try{var y=a.stateNode;hP(y,a.type,d,l),y[qe]=l}catch(C){Ae(a,a.return,C)}}function G_(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ia(a.type)||a.tag===4}function Sm(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||G_(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ia(a.type)||a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function km(a,l,d){var y=a.tag;if(y===5||y===6)a=a.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(a,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(a),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=zn));else if(y!==4&&(y===27&&Ia(a.type)&&(d=a.stateNode,l=null),a=a.child,a!==null))for(km(a,l,d),a=a.sibling;a!==null;)km(a,l,d),a=a.sibling}function sf(a,l,d){var y=a.tag;if(y===5||y===6)a=a.stateNode,l?d.insertBefore(a,l):d.appendChild(a);else if(y!==4&&(y===27&&Ia(a.type)&&(d=a.stateNode),a=a.child,a!==null))for(sf(a,l,d),a=a.sibling;a!==null;)sf(a,l,d),a=a.sibling}function Y_(a){var l=a.stateNode,d=a.memoizedProps;try{for(var y=a.type,C=l.attributes;C.length;)l.removeAttributeNode(C[0]);Dr(l,y,d),l[Ze]=a,l[qe]=d}catch(k){Ae(a,a.return,k)}}var Xn=!1,pr=!1,_m=!1,W_=typeof WeakSet=="function"?WeakSet:Set,Er=null;function U$(a,l){if(a=a.containerInfo,Ym=Ef,a=ak(a),xg(a)){if("selectionStart"in a)var d={start:a.selectionStart,end:a.selectionEnd};else t:{d=(d=a.ownerDocument)&&d.defaultView||window;var y=d.getSelection&&d.getSelection();if(y&&y.rangeCount!==0){d=y.anchorNode;var C=y.anchorOffset,k=y.focusNode;y=y.focusOffset;try{d.nodeType,k.nodeType}catch{d=null;break t}var D=0,V=-1,rt=-1,ht=0,xt=0,vt=a,ft=null;e:for(;;){for(var mt;vt!==d||C!==0&&vt.nodeType!==3||(V=D+C),vt!==k||y!==0&&vt.nodeType!==3||(rt=D+y),vt.nodeType===3&&(D+=vt.nodeValue.length),(mt=vt.firstChild)!==null;)ft=vt,vt=mt;for(;;){if(vt===a)break e;if(ft===d&&++ht===C&&(V=D),ft===k&&++xt===y&&(rt=D),(mt=vt.nextSibling)!==null)break;vt=ft,ft=vt.parentNode}vt=mt}d=V===-1||rt===-1?null:{start:V,end:rt}}else d=null}d=d||{start:0,end:0}}else d=null;for(Wm={focusedElem:a,selectionRange:d},Ef=!1,Er=l;Er!==null;)if(l=Er,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,Er=a;else for(;Er!==null;){switch(l=Er,k=l.alternate,a=l.flags,l.tag){case 0:if((a&4)!==0&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(d=0;d<a.length;d++)C=a[d],C.ref.impl=C.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&k!==null){a=void 0,d=l,C=k.memoizedProps,k=k.memoizedState,y=d.stateNode;try{var Mt=Ns(d.type,C);a=y.getSnapshotBeforeUpdate(Mt,k),y.__reactInternalSnapshotBeforeUpdate=a}catch(Yt){Ae(d,d.return,Yt)}}break;case 3:if((a&1024)!==0){if(a=l.stateNode.containerInfo,d=a.nodeType,d===9)Qm(a);else if(d===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Qm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(i(163))}if(a=l.sibling,a!==null){a.return=l.return,Er=a;break}Er=l.return}}function V_(a,l,d){var y=d.flags;switch(d.tag){case 0:case 11:case 15:Zn(a,d),y&4&&Lc(5,d);break;case 1:if(Zn(a,d),y&4)if(a=d.stateNode,l===null)try{a.componentDidMount()}catch(D){Ae(d,d.return,D)}else{var C=Ns(d.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(C,l,a.__reactInternalSnapshotBeforeUpdate)}catch(D){Ae(d,d.return,D)}}y&64&&P_(d),y&512&&Mc(d,d.return);break;case 3:if(Zn(a,d),y&64&&(a=d.updateQueue,a!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{Nk(a,l)}catch(D){Ae(d,d.return,D)}}break;case 27:l===null&&y&4&&Y_(d);case 26:case 5:Zn(a,d),l===null&&y&4&&U_(d),y&512&&Mc(d,d.return);break;case 12:Zn(a,d);break;case 31:Zn(a,d),y&4&&Z_(a,d);break;case 13:Zn(a,d),y&4&&K_(a,d),y&64&&(a=d.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(d=J$.bind(null,d),bP(a,d))));break;case 22:if(y=d.memoizedState!==null||Xn,!y){l=l!==null&&l.memoizedState!==null||pr,C=Xn;var k=pr;Xn=y,(pr=l)&&!k?Kn(a,d,(d.subtreeFlags&8772)!==0):Zn(a,d),Xn=C,pr=k}break;case 30:break;default:Zn(a,d)}}function X_(a){var l=a.alternate;l!==null&&(a.alternate=null,X_(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&zt(l)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Ge=null,ni=!1;function Qn(a,l,d){for(d=d.child;d!==null;)Q_(a,l,d),d=d.sibling}function Q_(a,l,d){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(Se,d)}catch{}switch(d.tag){case 26:pr||bn(d,l),Qn(a,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:pr||bn(d,l);var y=Ge,C=ni;Ia(d.type)&&(Ge=d.stateNode,ni=!1),Qn(a,l,d),jc(d.stateNode),Ge=y,ni=C;break;case 5:pr||bn(d,l);case 6:if(y=Ge,C=ni,Ge=null,Qn(a,l,d),Ge=y,ni=C,Ge!==null)if(ni)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(d.stateNode)}catch(k){Ae(d,l,k)}else try{Ge.removeChild(d.stateNode)}catch(k){Ae(d,l,k)}break;case 18:Ge!==null&&(ni?(a=Ge,PT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,d.stateNode),Wo(a)):PT(Ge,d.stateNode));break;case 4:y=Ge,C=ni,Ge=d.stateNode.containerInfo,ni=!0,Qn(a,l,d),Ge=y,ni=C;break;case 0:case 11:case 14:case 15:La(2,d,l),pr||La(4,d,l),Qn(a,l,d);break;case 1:pr||(bn(d,l),y=d.stateNode,typeof y.componentWillUnmount=="function"&&H_(d,l,y)),Qn(a,l,d);break;case 21:Qn(a,l,d);break;case 22:pr=(y=pr)||d.memoizedState!==null,Qn(a,l,d),pr=y;break;default:Qn(a,l,d)}}function Z_(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Wo(a)}catch(d){Ae(l,l.return,d)}}}function K_(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Wo(a)}catch(d){Ae(l,l.return,d)}}function G$(a){switch(a.tag){case 31:case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new W_),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new W_),l;default:throw Error(i(435,a.tag))}}function of(a,l){var d=G$(a);l.forEach(function(y){if(!d.has(y)){d.add(y);var C=tP.bind(null,a,y);y.then(C,C)}})}function ai(a,l){var d=l.deletions;if(d!==null)for(var y=0;y<d.length;y++){var C=d[y],k=a,D=l,V=D;t:for(;V!==null;){switch(V.tag){case 27:if(Ia(V.type)){Ge=V.stateNode,ni=!1;break t}break;case 5:Ge=V.stateNode,ni=!1;break t;case 3:case 4:Ge=V.stateNode.containerInfo,ni=!0;break t}V=V.return}if(Ge===null)throw Error(i(160));Q_(k,D,C),Ge=null,ni=!1,k=C.alternate,k!==null&&(k.return=null),C.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)J_(l,a),l=l.sibling}var Xi=null;function J_(a,l){var d=a.alternate,y=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ai(l,a),si(a),y&4&&(La(3,a,a.return),Lc(3,a),La(5,a,a.return));break;case 1:ai(l,a),si(a),y&512&&(pr||d===null||bn(d,d.return)),y&64&&Xn&&(a=a.updateQueue,a!==null&&(y=a.callbacks,y!==null&&(d=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=d===null?y:d.concat(y))));break;case 26:var C=Xi;if(ai(l,a),si(a),y&512&&(pr||d===null||bn(d,d.return)),y&4){var k=d!==null?d.memoizedState:null;if(y=a.memoizedState,d===null)if(y===null)if(a.stateNode===null){t:{y=a.type,d=a.memoizedProps,C=C.ownerDocument||C;e:switch(y){case"title":k=C.getElementsByTagName("title")[0],(!k||k[mn]||k[Ze]||k.namespaceURI==="http://www.w3.org/2000/svg"||k.hasAttribute("itemprop"))&&(k=C.createElement(y),C.head.insertBefore(k,C.querySelector("head > title"))),Dr(k,y,d),k[Ze]=a,ae(k),y=k;break t;case"link":var D=JT("link","href",C).get(y+(d.href||""));if(D){for(var V=0;V<D.length;V++)if(k=D[V],k.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&k.getAttribute("rel")===(d.rel==null?null:d.rel)&&k.getAttribute("title")===(d.title==null?null:d.title)&&k.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){D.splice(V,1);break e}}k=C.createElement(y),Dr(k,y,d),C.head.appendChild(k);break;case"meta":if(D=JT("meta","content",C).get(y+(d.content||""))){for(V=0;V<D.length;V++)if(k=D[V],k.getAttribute("content")===(d.content==null?null:""+d.content)&&k.getAttribute("name")===(d.name==null?null:d.name)&&k.getAttribute("property")===(d.property==null?null:d.property)&&k.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&k.getAttribute("charset")===(d.charSet==null?null:d.charSet)){D.splice(V,1);break e}}k=C.createElement(y),Dr(k,y,d),C.head.appendChild(k);break;default:throw Error(i(468,y))}k[Ze]=a,ae(k),y=k}a.stateNode=y}else tE(C,a.type,a.stateNode);else a.stateNode=KT(C,y,a.memoizedProps);else k!==y?(k===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):k.count--,y===null?tE(C,a.type,a.stateNode):KT(C,y,a.memoizedProps)):y===null&&a.stateNode!==null&&wm(a,a.memoizedProps,d.memoizedProps)}break;case 27:ai(l,a),si(a),y&512&&(pr||d===null||bn(d,d.return)),d!==null&&y&4&&wm(a,a.memoizedProps,d.memoizedProps);break;case 5:if(ai(l,a),si(a),y&512&&(pr||d===null||bn(d,d.return)),a.flags&32){C=a.stateNode;try{mo(C,"")}catch(Mt){Ae(a,a.return,Mt)}}y&4&&a.stateNode!=null&&(C=a.memoizedProps,wm(a,C,d!==null?d.memoizedProps:C)),y&1024&&(_m=!0);break;case 6:if(ai(l,a),si(a),y&4){if(a.stateNode===null)throw Error(i(162));y=a.memoizedProps,d=a.stateNode;try{d.nodeValue=y}catch(Mt){Ae(a,a.return,Mt)}}break;case 3:if(Sf=null,C=Xi,Xi=Cf(l.containerInfo),ai(l,a),Xi=C,si(a),y&4&&d!==null&&d.memoizedState.isDehydrated)try{Wo(l.containerInfo)}catch(Mt){Ae(a,a.return,Mt)}_m&&(_m=!1,tT(a));break;case 4:y=Xi,Xi=Cf(a.stateNode.containerInfo),ai(l,a),si(a),Xi=y;break;case 12:ai(l,a),si(a);break;case 31:ai(l,a),si(a),y&4&&(y=a.updateQueue,y!==null&&(a.updateQueue=null,of(a,y)));break;case 13:ai(l,a),si(a),a.child.flags&8192&&a.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(cf=Le()),y&4&&(y=a.updateQueue,y!==null&&(a.updateQueue=null,of(a,y)));break;case 22:C=a.memoizedState!==null;var rt=d!==null&&d.memoizedState!==null,ht=Xn,xt=pr;if(Xn=ht||C,pr=xt||rt,ai(l,a),pr=xt,Xn=ht,si(a),y&8192)t:for(l=a.stateNode,l._visibility=C?l._visibility&-2:l._visibility|1,C&&(d===null||rt||Xn||pr||Os(a)),d=null,l=a;;){if(l.tag===5||l.tag===26){if(d===null){rt=d=l;try{if(k=rt.stateNode,C)D=k.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{V=rt.stateNode;var vt=rt.memoizedProps.style,ft=vt!=null&&vt.hasOwnProperty("display")?vt.display:null;V.style.display=ft==null||typeof ft=="boolean"?"":(""+ft).trim()}}catch(Mt){Ae(rt,rt.return,Mt)}}}else if(l.tag===6){if(d===null){rt=l;try{rt.stateNode.nodeValue=C?"":rt.memoizedProps}catch(Mt){Ae(rt,rt.return,Mt)}}}else if(l.tag===18){if(d===null){rt=l;try{var mt=rt.stateNode;C?HT(mt,!0):HT(rt.stateNode,!1)}catch(Mt){Ae(rt,rt.return,Mt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break t;for(;l.sibling===null;){if(l.return===null||l.return===a)break t;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}y&4&&(y=a.updateQueue,y!==null&&(d=y.retryQueue,d!==null&&(y.retryQueue=null,of(a,d))));break;case 19:ai(l,a),si(a),y&4&&(y=a.updateQueue,y!==null&&(a.updateQueue=null,of(a,y)));break;case 30:break;case 21:break;default:ai(l,a),si(a)}}function si(a){var l=a.flags;if(l&2){try{for(var d,y=a.return;y!==null;){if(G_(y)){d=y;break}y=y.return}if(d==null)throw Error(i(160));switch(d.tag){case 27:var C=d.stateNode,k=Sm(a);sf(a,k,C);break;case 5:var D=d.stateNode;d.flags&32&&(mo(D,""),d.flags&=-33);var V=Sm(a);sf(a,V,D);break;case 3:case 4:var rt=d.stateNode.containerInfo,ht=Sm(a);km(a,ht,rt);break;default:throw Error(i(161))}}catch(xt){Ae(a,a.return,xt)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function tT(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;tT(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function Zn(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)V_(a,l.alternate,l),l=l.sibling}function Os(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:La(4,l,l.return),Os(l);break;case 1:bn(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&H_(l,l.return,d),Os(l);break;case 27:jc(l.stateNode);case 26:case 5:bn(l,l.return),Os(l);break;case 22:l.memoizedState===null&&Os(l);break;case 30:Os(l);break;default:Os(l)}a=a.sibling}}function Kn(a,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var y=l.alternate,C=a,k=l,D=k.flags;switch(k.tag){case 0:case 11:case 15:Kn(C,k,d),Lc(4,k);break;case 1:if(Kn(C,k,d),y=k,C=y.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(ht){Ae(y,y.return,ht)}if(y=k,C=y.updateQueue,C!==null){var V=y.stateNode;try{var rt=C.shared.hiddenCallbacks;if(rt!==null)for(C.shared.hiddenCallbacks=null,C=0;C<rt.length;C++)Mk(rt[C],V)}catch(ht){Ae(y,y.return,ht)}}d&&D&64&&P_(k),Mc(k,k.return);break;case 27:Y_(k);case 26:case 5:Kn(C,k,d),d&&y===null&&D&4&&U_(k),Mc(k,k.return);break;case 12:Kn(C,k,d);break;case 31:Kn(C,k,d),d&&D&4&&Z_(C,k);break;case 13:Kn(C,k,d),d&&D&4&&K_(C,k);break;case 22:k.memoizedState===null&&Kn(C,k,d),Mc(k,k.return);break;case 30:break;default:Kn(C,k,d)}l=l.sibling}}function Tm(a,l){var d=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==d&&(a!=null&&a.refCount++,d!=null&&yc(d))}function Em(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&yc(a))}function Qi(a,l,d,y){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)eT(a,l,d,y),l=l.sibling}function eT(a,l,d,y){var C=l.flags;switch(l.tag){case 0:case 11:case 15:Qi(a,l,d,y),C&2048&&Lc(9,l);break;case 1:Qi(a,l,d,y);break;case 3:Qi(a,l,d,y),C&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&yc(a)));break;case 12:if(C&2048){Qi(a,l,d,y),a=l.stateNode;try{var k=l.memoizedProps,D=k.id,V=k.onPostCommit;typeof V=="function"&&V(D,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(rt){Ae(l,l.return,rt)}}else Qi(a,l,d,y);break;case 31:Qi(a,l,d,y);break;case 13:Qi(a,l,d,y);break;case 23:break;case 22:k=l.stateNode,D=l.alternate,l.memoizedState!==null?k._visibility&2?Qi(a,l,d,y):Nc(a,l):k._visibility&2?Qi(a,l,d,y):(k._visibility|=2,Fo(a,l,d,y,(l.subtreeFlags&10256)!==0||!1)),C&2048&&Tm(D,l);break;case 24:Qi(a,l,d,y),C&2048&&Em(l.alternate,l);break;default:Qi(a,l,d,y)}}function Fo(a,l,d,y,C){for(C=C&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var k=a,D=l,V=d,rt=y,ht=D.flags;switch(D.tag){case 0:case 11:case 15:Fo(k,D,V,rt,C),Lc(8,D);break;case 23:break;case 22:var xt=D.stateNode;D.memoizedState!==null?xt._visibility&2?Fo(k,D,V,rt,C):Nc(k,D):(xt._visibility|=2,Fo(k,D,V,rt,C)),C&&ht&2048&&Tm(D.alternate,D);break;case 24:Fo(k,D,V,rt,C),C&&ht&2048&&Em(D.alternate,D);break;default:Fo(k,D,V,rt,C)}l=l.sibling}}function Nc(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=a,y=l,C=y.flags;switch(y.tag){case 22:Nc(d,y),C&2048&&Tm(y.alternate,y);break;case 24:Nc(d,y),C&2048&&Em(y.alternate,y);break;default:Nc(d,y)}l=l.sibling}}var Oc=8192;function Io(a,l,d){if(a.subtreeFlags&Oc)for(a=a.child;a!==null;)rT(a,l,d),a=a.sibling}function rT(a,l,d){switch(a.tag){case 26:Io(a,l,d),a.flags&Oc&&a.memoizedState!==null&&MP(d,Xi,a.memoizedState,a.memoizedProps);break;case 5:Io(a,l,d);break;case 3:case 4:var y=Xi;Xi=Cf(a.stateNode.containerInfo),Io(a,l,d),Xi=y;break;case 22:a.memoizedState===null&&(y=a.alternate,y!==null&&y.memoizedState!==null?(y=Oc,Oc=16777216,Io(a,l,d),Oc=y):Io(a,l,d));break;default:Io(a,l,d)}}function iT(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}function Rc(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var y=l[d];Er=y,aT(y,a)}iT(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)nT(a),a=a.sibling}function nT(a){switch(a.tag){case 0:case 11:case 15:Rc(a),a.flags&2048&&La(9,a,a.return);break;case 3:Rc(a);break;case 12:Rc(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&2&&(a.return===null||a.return.tag!==13)?(l._visibility&=-3,lf(a)):Rc(a);break;default:Rc(a)}}function lf(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var y=l[d];Er=y,aT(y,a)}iT(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:La(8,l,l.return),lf(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,lf(l));break;default:lf(l)}a=a.sibling}}function aT(a,l){for(;Er!==null;){var d=Er;switch(d.tag){case 0:case 11:case 15:La(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var y=d.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:yc(d.memoizedState.cache)}if(y=d.child,y!==null)y.return=d,Er=y;else t:for(d=a;Er!==null;){y=Er;var C=y.sibling,k=y.return;if(X_(y),y===d){Er=null;break t}if(C!==null){C.return=k,Er=C;break t}Er=k}}}var Y$={getCacheForType:function(a){var l=Or(hr),d=l.data.get(a);return d===void 0&&(d=a(),l.data.set(a,d)),d},cacheSignal:function(){return Or(hr).controller.signal}},W$=typeof WeakMap=="function"?WeakMap:Map,ke=0,Ie=null,se=null,ue=0,Ee=0,Si=null,Ma=!1,qo=!1,Am=!1,Jn=0,er=0,Na=0,Rs=0,Bm=0,ki=0,zo=0,Dc=null,oi=null,Lm=!1,cf=0,sT=0,uf=1/0,hf=null,Oa=null,Sr=0,Ra=null,jo=null,ta=0,Mm=0,Nm=null,oT=null,Fc=0,Om=null;function _i(){return(ke&2)!==0&&ue!==0?ue&-ue:N.T!==null?zm():fs()}function lT(){if(ki===0)if((ue&536870912)===0||de){var a=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),ki=a}else ki=536870912;return a=Ci.current,a!==null&&(a.flags|=32),ki}function li(a,l,d){(a===Ie&&(Ee===2||Ee===9)||a.cancelPendingCommit!==null)&&($o(a,0),Da(a,ue,ki,!1)),gn(a,d),((ke&2)===0||a!==Ie)&&(a===Ie&&((ke&2)===0&&(Rs|=d),er===4&&Da(a,ue,ki,!1)),vn(a))}function cT(a,l,d){if((ke&6)!==0)throw Error(i(327));var y=!d&&(l&127)===0&&(l&a.expiredLanes)===0||Fn(a,l),C=y?Q$(a,l):Dm(a,l,!0),k=y;do{if(C===0){qo&&!y&&Da(a,l,0,!1);break}else{if(d=a.current.alternate,k&&!V$(d)){C=Dm(a,l,!1),k=!1;continue}if(C===2){if(k=l,a.errorRecoveryDisabledLanes&k)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){l=D;t:{var V=a;C=Dc;var rt=V.current.memoizedState.isDehydrated;if(rt&&($o(V,D).flags|=256),D=Dm(V,D,!1),D!==2){if(Am&&!rt){V.errorRecoveryDisabledLanes|=k,Rs|=k,C=4;break t}k=oi,oi=C,k!==null&&(oi===null?oi=k:oi.push.apply(oi,k))}C=D}if(k=!1,C!==2)continue}}if(C===1){$o(a,0),Da(a,l,0,!0);break}t:{switch(y=a,k=C,k){case 0:case 1:throw Error(i(345));case 4:if((l&4194048)!==l)break;case 6:Da(y,l,ki,!Ma);break t;case 2:oi=null;break;case 3:case 5:break;default:throw Error(i(329))}if((l&62914560)===l&&(C=cf+300-Le(),10<C)){if(Da(y,l,ki,!Ma),xa(y,0,!0)!==0)break t;ta=l,y.timeoutHandle=jT(uT.bind(null,y,d,oi,hf,Lm,l,ki,Rs,zo,Ma,k,"Throttled",-0,0),C);break t}uT(y,d,oi,hf,Lm,l,ki,Rs,zo,Ma,k,null,-0,0)}}break}while(!0);vn(a)}function uT(a,l,d,y,C,k,D,V,rt,ht,xt,vt,ft,mt){if(a.timeoutHandle=-1,vt=l.subtreeFlags,vt&8192||(vt&16785408)===16785408){vt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},rT(l,k,vt);var Mt=(k&62914560)===k?cf-Le():(k&4194048)===k?sT-Le():0;if(Mt=NP(vt,Mt),Mt!==null){ta=k,a.cancelPendingCommit=Mt(xT.bind(null,a,l,k,d,y,C,D,V,rt,xt,vt,null,ft,mt)),Da(a,k,D,!ht);return}}xT(a,l,k,d,y,C,D,V,rt)}function V$(a){for(var l=a;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var y=0;y<d.length;y++){var C=d[y],k=C.getSnapshot;C=C.value;try{if(!bi(k(),C))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Da(a,l,d,y){l&=~Bm,l&=~Rs,a.suspendedLanes|=l,a.pingedLanes&=~l,y&&(a.warmLanes|=l),y=a.expirationTimes;for(var C=l;0<C;){var k=31-ce(C),D=1<<k;y[k]=-1,C&=~D}d!==0&&us(a,d,l)}function ff(){return(ke&6)===0?(Ic(0),!1):!0}function Rm(){if(se!==null){if(Ee===0)var a=se.return;else a=se,Hn=_s=null,Qg(a),Mo=null,bc=0,a=se;for(;a!==null;)$_(a.alternate,a),a=a.return;se=null}}function $o(a,l){var d=a.timeoutHandle;d!==-1&&(a.timeoutHandle=-1,pP(d)),d=a.cancelPendingCommit,d!==null&&(a.cancelPendingCommit=null,d()),ta=0,Rm(),Ie=a,se=d=$n(a.current,null),ue=l,Ee=0,Si=null,Ma=!1,qo=Fn(a,l),Am=!1,zo=ki=Bm=Rs=Na=er=0,oi=Dc=null,Lm=!1,(l&8)!==0&&(l|=l&32);var y=a.entangledLanes;if(y!==0)for(a=a.entanglements,y&=l;0<y;){var C=31-ce(y),k=1<<C;l|=a[C],y&=~k}return Jn=l,Nh(),d}function hT(a,l){te=null,N.H=Ec,l===Lo||l===jh?(l=Ek(),Ee=3):l===qg?(l=Ek(),Ee=4):Ee=l===fm?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Si=l,se===null&&(er=1,tf(a,Oi(l,a.current)))}function fT(){var a=Ci.current;return a===null?!0:(ue&4194048)===ue?Ii===null:(ue&62914560)===ue||(ue&536870912)!==0?a===Ii:!1}function dT(){var a=N.H;return N.H=Ec,a===null?Ec:a}function pT(){var a=N.A;return N.A=Y$,a}function df(){er=4,Ma||(ue&4194048)!==ue&&Ci.current!==null||(qo=!0),(Na&134217727)===0&&(Rs&134217727)===0||Ie===null||Da(Ie,ue,ki,!1)}function Dm(a,l,d){var y=ke;ke|=2;var C=dT(),k=pT();(Ie!==a||ue!==l)&&(hf=null,$o(a,l)),l=!1;var D=er;t:do try{if(Ee!==0&&se!==null){var V=se,rt=Si;switch(Ee){case 8:Rm(),D=6;break t;case 3:case 2:case 9:case 6:Ci.current===null&&(l=!0);var ht=Ee;if(Ee=0,Si=null,Po(a,V,rt,ht),d&&qo){D=0;break t}break;default:ht=Ee,Ee=0,Si=null,Po(a,V,rt,ht)}}X$(),D=er;break}catch(xt){hT(a,xt)}while(!0);return l&&a.shellSuspendCounter++,Hn=_s=null,ke=y,N.H=C,N.A=k,se===null&&(Ie=null,ue=0,Nh()),D}function X$(){for(;se!==null;)gT(se)}function Q$(a,l){var d=ke;ke|=2;var y=dT(),C=pT();Ie!==a||ue!==l?(hf=null,uf=Le()+500,$o(a,l)):qo=Fn(a,l);t:do try{if(Ee!==0&&se!==null){l=se;var k=Si;e:switch(Ee){case 1:Ee=0,Si=null,Po(a,l,k,1);break;case 2:case 9:if(_k(k)){Ee=0,Si=null,mT(l);break}l=function(){Ee!==2&&Ee!==9||Ie!==a||(Ee=7),vn(a)},k.then(l,l);break t;case 3:Ee=7;break t;case 4:Ee=5;break t;case 7:_k(k)?(Ee=0,Si=null,mT(l)):(Ee=0,Si=null,Po(a,l,k,7));break;case 5:var D=null;switch(se.tag){case 26:D=se.memoizedState;case 5:case 27:var V=se;if(D?eE(D):V.stateNode.complete){Ee=0,Si=null;var rt=V.sibling;if(rt!==null)se=rt;else{var ht=V.return;ht!==null?(se=ht,pf(ht)):se=null}break e}}Ee=0,Si=null,Po(a,l,k,5);break;case 6:Ee=0,Si=null,Po(a,l,k,6);break;case 8:Rm(),er=6;break t;default:throw Error(i(462))}}Z$();break}catch(xt){hT(a,xt)}while(!0);return Hn=_s=null,N.H=y,N.A=C,ke=d,se!==null?0:(Ie=null,ue=0,Nh(),er)}function Z$(){for(;se!==null&&!ar();)gT(se)}function gT(a){var l=z_(a.alternate,a,Jn);a.memoizedProps=a.pendingProps,l===null?pf(a):se=l}function mT(a){var l=a,d=l.alternate;switch(l.tag){case 15:case 0:l=O_(d,l,l.pendingProps,l.type,void 0,ue);break;case 11:l=O_(d,l,l.pendingProps,l.type.render,l.ref,ue);break;case 5:Qg(l);default:$_(d,l),l=se=pk(l,Jn),l=z_(d,l,Jn)}a.memoizedProps=a.pendingProps,l===null?pf(a):se=l}function Po(a,l,d,y){Hn=_s=null,Qg(l),Mo=null,bc=0;var C=l.return;try{if(z$(a,C,l,d,ue)){er=1,tf(a,Oi(d,a.current)),se=null;return}}catch(k){if(C!==null)throw se=C,k;er=1,tf(a,Oi(d,a.current)),se=null;return}l.flags&32768?(de||y===1?a=!0:qo||(ue&536870912)!==0?a=!1:(Ma=a=!0,(y===2||y===9||y===3||y===6)&&(y=Ci.current,y!==null&&y.tag===13&&(y.flags|=16384))),yT(l,a)):pf(l)}function pf(a){var l=a;do{if((l.flags&32768)!==0){yT(l,Ma);return}a=l.return;var d=P$(l.alternate,l,Jn);if(d!==null){se=d;return}if(l=l.sibling,l!==null){se=l;return}se=l=a}while(l!==null);er===0&&(er=5)}function yT(a,l){do{var d=H$(a.alternate,a);if(d!==null){d.flags&=32767,se=d;return}if(d=a.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(a=a.sibling,a!==null)){se=a;return}se=a=d}while(a!==null);er=6,se=null}function xT(a,l,d,y,C,k,D,V,rt){a.cancelPendingCommit=null;do gf();while(Sr!==0);if((ke&6)!==0)throw Error(i(327));if(l!==null){if(l===a.current)throw Error(i(177));if(k=l.lanes|l.childLanes,k|=Sg,cs(a,d,k,D,V,rt),a===Ie&&(se=Ie=null,ue=0),jo=l,Ra=a,ta=d,Mm=k,Nm=C,oT=y,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,eP(Rt,function(){return ST(),null})):(a.callbackNode=null,a.callbackPriority=0),y=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||y){y=N.T,N.T=null,C=P.p,P.p=2,D=ke,ke|=4;try{U$(a,l,d)}finally{ke=D,P.p=C,N.T=y}}Sr=1,bT(),vT(),CT()}}function bT(){if(Sr===1){Sr=0;var a=Ra,l=jo,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=N.T,N.T=null;var y=P.p;P.p=2;var C=ke;ke|=4;try{J_(l,a);var k=Wm,D=ak(a.containerInfo),V=k.focusedElem,rt=k.selectionRange;if(D!==V&&V&&V.ownerDocument&&nk(V.ownerDocument.documentElement,V)){if(rt!==null&&xg(V)){var ht=rt.start,xt=rt.end;if(xt===void 0&&(xt=ht),"selectionStart"in V)V.selectionStart=ht,V.selectionEnd=Math.min(xt,V.value.length);else{var vt=V.ownerDocument||document,ft=vt&&vt.defaultView||window;if(ft.getSelection){var mt=ft.getSelection(),Mt=V.textContent.length,Yt=Math.min(rt.start,Mt),Oe=rt.end===void 0?Yt:Math.min(rt.end,Mt);!mt.extend&&Yt>Oe&&(D=Oe,Oe=Yt,Yt=D);var ot=ik(V,Yt),at=ik(V,Oe);if(ot&&at&&(mt.rangeCount!==1||mt.anchorNode!==ot.node||mt.anchorOffset!==ot.offset||mt.focusNode!==at.node||mt.focusOffset!==at.offset)){var ut=vt.createRange();ut.setStart(ot.node,ot.offset),mt.removeAllRanges(),Yt>Oe?(mt.addRange(ut),mt.extend(at.node,at.offset)):(ut.setEnd(at.node,at.offset),mt.addRange(ut))}}}}for(vt=[],mt=V;mt=mt.parentNode;)mt.nodeType===1&&vt.push({element:mt,left:mt.scrollLeft,top:mt.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<vt.length;V++){var bt=vt[V];bt.element.scrollLeft=bt.left,bt.element.scrollTop=bt.top}}Ef=!!Ym,Wm=Ym=null}finally{ke=C,P.p=y,N.T=d}}a.current=l,Sr=2}}function vT(){if(Sr===2){Sr=0;var a=Ra,l=jo,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=N.T,N.T=null;var y=P.p;P.p=2;var C=ke;ke|=4;try{V_(a,l.alternate,l)}finally{ke=C,P.p=y,N.T=d}}Sr=3}}function CT(){if(Sr===4||Sr===3){Sr=0,De();var a=Ra,l=jo,d=ta,y=oT;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Sr=5:(Sr=0,jo=Ra=null,wT(a,a.pendingLanes));var C=a.pendingLanes;if(C===0&&(Oa=null),xi(d),l=l.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(Se,l,void 0,(l.current.flags&128)===128)}catch{}if(y!==null){l=N.T,C=P.p,P.p=2,N.T=null;try{for(var k=a.onRecoverableError,D=0;D<y.length;D++){var V=y[D];k(V.value,{componentStack:V.stack})}}finally{N.T=l,P.p=C}}(ta&3)!==0&&gf(),vn(a),C=a.pendingLanes,(d&261930)!==0&&(C&42)!==0?a===Om?Fc++:(Fc=0,Om=a):Fc=0,Ic(0)}}function wT(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,yc(l)))}function gf(){return bT(),vT(),CT(),ST()}function ST(){if(Sr!==5)return!1;var a=Ra,l=Mm;Mm=0;var d=xi(ta),y=N.T,C=P.p;try{P.p=32>d?32:d,N.T=null,d=Nm,Nm=null;var k=Ra,D=ta;if(Sr=0,jo=Ra=null,ta=0,(ke&6)!==0)throw Error(i(331));var V=ke;if(ke|=4,nT(k.current),eT(k,k.current,D,d),ke=V,Ic(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(Se,k)}catch{}return!0}finally{P.p=C,N.T=y,wT(a,l)}}function kT(a,l,d){l=Oi(d,l),l=hm(a.stateNode,l,2),a=Ea(a,l,2),a!==null&&(gn(a,2),vn(a))}function Ae(a,l,d){if(a.tag===3)kT(a,a,d);else for(;l!==null;){if(l.tag===3){kT(l,a,d);break}else if(l.tag===1){var y=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Oa===null||!Oa.has(y))){a=Oi(d,a),d=__(2),y=Ea(l,d,2),y!==null&&(T_(d,y,l,a),gn(y,2),vn(y));break}}l=l.return}}function Fm(a,l,d){var y=a.pingCache;if(y===null){y=a.pingCache=new W$;var C=new Set;y.set(l,C)}else C=y.get(l),C===void 0&&(C=new Set,y.set(l,C));C.has(d)||(Am=!0,C.add(d),a=K$.bind(null,a,l,d),l.then(a,a))}function K$(a,l,d){var y=a.pingCache;y!==null&&y.delete(l),a.pingedLanes|=a.suspendedLanes&d,a.warmLanes&=~d,Ie===a&&(ue&d)===d&&(er===4||er===3&&(ue&62914560)===ue&&300>Le()-cf?(ke&2)===0&&$o(a,0):Bm|=d,zo===ue&&(zo=0)),vn(a)}function _T(a,l){l===0&&(l=Yi()),a=ws(a,l),a!==null&&(gn(a,l),vn(a))}function J$(a){var l=a.memoizedState,d=0;l!==null&&(d=l.retryLane),_T(a,d)}function tP(a,l){var d=0;switch(a.tag){case 31:case 13:var y=a.stateNode,C=a.memoizedState;C!==null&&(d=C.retryLane);break;case 19:y=a.stateNode;break;case 22:y=a.stateNode._retryCache;break;default:throw Error(i(314))}y!==null&&y.delete(l),_T(a,d)}function eP(a,l){return nr(a,l)}var mf=null,Ho=null,Im=!1,yf=!1,qm=!1,Fa=0;function vn(a){a!==Ho&&a.next===null&&(Ho===null?mf=Ho=a:Ho=Ho.next=a),yf=!0,Im||(Im=!0,iP())}function Ic(a,l){if(!qm&&yf){qm=!0;do for(var d=!1,y=mf;y!==null;){if(a!==0){var C=y.pendingLanes;if(C===0)var k=0;else{var D=y.suspendedLanes,V=y.pingedLanes;k=(1<<31-ce(42|a)+1)-1,k&=C&~(D&~V),k=k&201326741?k&201326741|1:k?k|2:0}k!==0&&(d=!0,BT(y,k))}else k=ue,k=xa(y,y===Ie?k:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(k&3)===0||Fn(y,k)||(d=!0,BT(y,k));y=y.next}while(d);qm=!1}}function rP(){TT()}function TT(){yf=Im=!1;var a=0;Fa!==0&&dP()&&(a=Fa);for(var l=Le(),d=null,y=mf;y!==null;){var C=y.next,k=ET(y,l);k===0?(y.next=null,d===null?mf=C:d.next=C,C===null&&(Ho=d)):(d=y,(a!==0||(k&3)!==0)&&(yf=!0)),y=C}Sr!==0&&Sr!==5||Ic(a),Fa!==0&&(Fa=0)}function ET(a,l){for(var d=a.suspendedLanes,y=a.pingedLanes,C=a.expirationTimes,k=a.pendingLanes&-62914561;0<k;){var D=31-ce(k),V=1<<D,rt=C[D];rt===-1?((V&d)===0||(V&y)!==0)&&(C[D]=Qe(V,l)):rt<=l&&(a.expiredLanes|=V),k&=~V}if(l=Ie,d=ue,d=xa(a,a===l?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),y=a.callbackNode,d===0||a===l&&(Ee===2||Ee===9)||a.cancelPendingCommit!==null)return y!==null&&y!==null&&vr(y),a.callbackNode=null,a.callbackPriority=0;if((d&3)===0||Fn(a,d)){if(l=d&-d,l===a.callbackPriority)return l;switch(y!==null&&vr(y),xi(d)){case 2:case 8:d=_t;break;case 32:d=Rt;break;case 268435456:d=ne;break;default:d=Rt}return y=AT.bind(null,a),d=nr(d,y),a.callbackPriority=l,a.callbackNode=d,l}return y!==null&&y!==null&&vr(y),a.callbackPriority=2,a.callbackNode=null,2}function AT(a,l){if(Sr!==0&&Sr!==5)return a.callbackNode=null,a.callbackPriority=0,null;var d=a.callbackNode;if(gf()&&a.callbackNode!==d)return null;var y=ue;return y=xa(a,a===Ie?y:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),y===0?null:(cT(a,y,l),ET(a,Le()),a.callbackNode!=null&&a.callbackNode===d?AT.bind(null,a):null)}function BT(a,l){if(gf())return null;cT(a,l,!0)}function iP(){gP(function(){(ke&6)!==0?nr(yt,rP):TT()})}function zm(){if(Fa===0){var a=Ao;a===0&&(a=dn,dn<<=1,(dn&261888)===0&&(dn=256)),Fa=a}return Fa}function LT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:kh(""+a)}function MT(a,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,a.id&&d.setAttribute("form",a.id),l.parentNode.insertBefore(d,l),a=new FormData(a),d.parentNode.removeChild(d),a}function nP(a,l,d,y,C){if(l==="submit"&&d&&d.stateNode===C){var k=LT((C[qe]||null).action),D=y.submitter;D&&(l=(l=D[qe]||null)?LT(l.formAction):D.getAttribute("formAction"),l!==null&&(k=l,D=null));var V=new Ah("action","action",null,y,C);a.push({event:V,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(Fa!==0){var rt=D?MT(C,D):new FormData(C);am(d,{pending:!0,data:rt,method:C.method,action:k},null,rt)}}else typeof k=="function"&&(V.preventDefault(),rt=D?MT(C,D):new FormData(C),am(d,{pending:!0,data:rt,method:C.method,action:k},k,rt))},currentTarget:C}]})}}for(var jm=0;jm<wg.length;jm++){var $m=wg[jm],aP=$m.toLowerCase(),sP=$m[0].toUpperCase()+$m.slice(1);Vi(aP,"on"+sP)}Vi(lk,"onAnimationEnd"),Vi(ck,"onAnimationIteration"),Vi(uk,"onAnimationStart"),Vi("dblclick","onDoubleClick"),Vi("focusin","onFocus"),Vi("focusout","onBlur"),Vi(w$,"onTransitionRun"),Vi(S$,"onTransitionStart"),Vi(k$,"onTransitionCancel"),Vi(hk,"onTransitionEnd"),ur("onMouseEnter",["mouseout","mouseover"]),ur("onMouseLeave",["mouseout","mouseover"]),ur("onPointerEnter",["pointerout","pointerover"]),ur("onPointerLeave",["pointerout","pointerover"]),Je("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Je("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Je("onBeforeInput",["compositionend","keypress","textInput","paste"]),Je("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Je("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Je("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qc="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(" "),oP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qc));function NT(a,l){l=(l&4)!==0;for(var d=0;d<a.length;d++){var y=a[d],C=y.event;y=y.listeners;t:{var k=void 0;if(l)for(var D=y.length-1;0<=D;D--){var V=y[D],rt=V.instance,ht=V.currentTarget;if(V=V.listener,rt!==k&&C.isPropagationStopped())break t;k=V,C.currentTarget=ht;try{k(C)}catch(xt){Mh(xt)}C.currentTarget=null,k=rt}else for(D=0;D<y.length;D++){if(V=y[D],rt=V.instance,ht=V.currentTarget,V=V.listener,rt!==k&&C.isPropagationStopped())break t;k=V,C.currentTarget=ht;try{k(C)}catch(xt){Mh(xt)}C.currentTarget=null,k=rt}}}}function oe(a,l){var d=l[In];d===void 0&&(d=l[In]=new Set);var y=a+"__bubble";d.has(y)||(OT(l,a,2,!1),d.add(y))}function Pm(a,l,d){var y=0;l&&(y|=4),OT(d,a,y,l)}var xf="_reactListening"+Math.random().toString(36).slice(2);function Hm(a){if(!a[xf]){a[xf]=!0,$e.forEach(function(d){d!=="selectionchange"&&(oP.has(d)||Pm(d,!1,a),Pm(d,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[xf]||(l[xf]=!0,Pm("selectionchange",!1,l))}}function OT(a,l,d,y){switch(lE(l)){case 2:var C=DP;break;case 8:C=FP;break;default:C=n0}d=C.bind(null,l,d,a),C=void 0,!cg||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(C=!0),y?C!==void 0?a.addEventListener(l,d,{capture:!0,passive:C}):a.addEventListener(l,d,!0):C!==void 0?a.addEventListener(l,d,{passive:C}):a.addEventListener(l,d,!1)}function Um(a,l,d,y,C){var k=y;if((l&1)===0&&(l&2)===0&&y!==null)t:for(;;){if(y===null)return;var D=y.tag;if(D===3||D===4){var V=y.stateNode.containerInfo;if(V===C)break;if(D===4)for(D=y.return;D!==null;){var rt=D.tag;if((rt===3||rt===4)&&D.stateNode.containerInfo===C)return;D=D.return}for(;V!==null;){if(D=et(V),D===null)return;if(rt=D.tag,rt===5||rt===6||rt===26||rt===27){y=k=D;continue t}V=V.parentNode}}y=y.return}qS(function(){var ht=k,xt=og(d),vt=[];t:{var ft=fk.get(a);if(ft!==void 0){var mt=Ah,Mt=a;switch(a){case"keypress":if(Th(d)===0)break t;case"keydown":case"keyup":mt=t$;break;case"focusin":Mt="focus",mt=dg;break;case"focusout":Mt="blur",mt=dg;break;case"beforeblur":case"afterblur":mt=dg;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":mt=$S;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":mt=Pj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":mt=i$;break;case lk:case ck:case uk:mt=Gj;break;case hk:mt=a$;break;case"scroll":case"scrollend":mt=jj;break;case"wheel":mt=o$;break;case"copy":case"cut":case"paste":mt=Wj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":mt=HS;break;case"toggle":case"beforetoggle":mt=c$}var Yt=(l&4)!==0,Oe=!Yt&&(a==="scroll"||a==="scrollend"),ot=Yt?ft!==null?ft+"Capture":null:ft;Yt=[];for(var at=ht,ut;at!==null;){var bt=at;if(ut=bt.stateNode,bt=bt.tag,bt!==5&&bt!==26&&bt!==27||ut===null||ot===null||(bt=sc(at,ot),bt!=null&&Yt.push(zc(at,bt,ut))),Oe)break;at=at.return}0<Yt.length&&(ft=new mt(ft,Mt,null,d,xt),vt.push({event:ft,listeners:Yt}))}}if((l&7)===0){t:{if(ft=a==="mouseover"||a==="pointerover",mt=a==="mouseout"||a==="pointerout",ft&&d!==sg&&(Mt=d.relatedTarget||d.fromElement)&&(et(Mt)||Mt[Mi]))break t;if((mt||ft)&&(ft=xt.window===xt?xt:(ft=xt.ownerDocument)?ft.defaultView||ft.parentWindow:window,mt?(Mt=d.relatedTarget||d.toElement,mt=ht,Mt=Mt?et(Mt):null,Mt!==null&&(Oe=s(Mt),Yt=Mt.tag,Mt!==Oe||Yt!==5&&Yt!==27&&Yt!==6)&&(Mt=null)):(mt=null,Mt=ht),mt!==Mt)){if(Yt=$S,bt="onMouseLeave",ot="onMouseEnter",at="mouse",(a==="pointerout"||a==="pointerover")&&(Yt=HS,bt="onPointerLeave",ot="onPointerEnter",at="pointer"),Oe=mt==null?ft:Bt(mt),ut=Mt==null?ft:Bt(Mt),ft=new Yt(bt,at+"leave",mt,d,xt),ft.target=Oe,ft.relatedTarget=ut,bt=null,et(xt)===ht&&(Yt=new Yt(ot,at+"enter",Mt,d,xt),Yt.target=ut,Yt.relatedTarget=Oe,bt=Yt),Oe=bt,mt&&Mt)e:{for(Yt=lP,ot=mt,at=Mt,ut=0,bt=ot;bt;bt=Yt(bt))ut++;bt=0;for(var Pt=at;Pt;Pt=Yt(Pt))bt++;for(;0<ut-bt;)ot=Yt(ot),ut--;for(;0<bt-ut;)at=Yt(at),bt--;for(;ut--;){if(ot===at||at!==null&&ot===at.alternate){Yt=ot;break e}ot=Yt(ot),at=Yt(at)}Yt=null}else Yt=null;mt!==null&&RT(vt,ft,mt,Yt,!1),Mt!==null&&Oe!==null&&RT(vt,Oe,Mt,Yt,!0)}}t:{if(ft=ht?Bt(ht):window,mt=ft.nodeName&&ft.nodeName.toLowerCase(),mt==="select"||mt==="input"&&ft.type==="file")var xe=ZS;else if(XS(ft))if(KS)xe=b$;else{xe=y$;var Ft=m$}else mt=ft.nodeName,!mt||mt.toLowerCase()!=="input"||ft.type!=="checkbox"&&ft.type!=="radio"?ht&&ag(ht.elementType)&&(xe=ZS):xe=x$;if(xe&&(xe=xe(a,ht))){QS(vt,xe,d,xt);break t}Ft&&Ft(a,ft,ht),a==="focusout"&&ht&&ft.type==="number"&&ht.memoizedProps.value!=null&&ac(ft,"number",ft.value)}switch(Ft=ht?Bt(ht):window,a){case"focusin":(XS(Ft)||Ft.contentEditable==="true")&&(vo=Ft,bg=ht,pc=null);break;case"focusout":pc=bg=vo=null;break;case"mousedown":vg=!0;break;case"contextmenu":case"mouseup":case"dragend":vg=!1,sk(vt,d,xt);break;case"selectionchange":if(C$)break;case"keydown":case"keyup":sk(vt,d,xt)}var ee;if(gg)t:{switch(a){case"compositionstart":var he="onCompositionStart";break t;case"compositionend":he="onCompositionEnd";break t;case"compositionupdate":he="onCompositionUpdate";break t}he=void 0}else bo?WS(a,d)&&(he="onCompositionEnd"):a==="keydown"&&d.keyCode===229&&(he="onCompositionStart");he&&(US&&d.locale!=="ko"&&(bo||he!=="onCompositionStart"?he==="onCompositionEnd"&&bo&&(ee=zS()):(va=xt,ug="value"in va?va.value:va.textContent,bo=!0)),Ft=bf(ht,he),0<Ft.length&&(he=new PS(he,a,null,d,xt),vt.push({event:he,listeners:Ft}),ee?he.data=ee:(ee=VS(d),ee!==null&&(he.data=ee)))),(ee=h$?f$(a,d):d$(a,d))&&(he=bf(ht,"onBeforeInput"),0<he.length&&(Ft=new PS("onBeforeInput","beforeinput",null,d,xt),vt.push({event:Ft,listeners:he}),Ft.data=ee)),nP(vt,a,ht,d,xt)}NT(vt,l)})}function zc(a,l,d){return{instance:a,listener:l,currentTarget:d}}function bf(a,l){for(var d=l+"Capture",y=[];a!==null;){var C=a,k=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||k===null||(C=sc(a,d),C!=null&&y.unshift(zc(a,C,k)),C=sc(a,l),C!=null&&y.push(zc(a,C,k))),a.tag===3)return y;a=a.return}return[]}function lP(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function RT(a,l,d,y,C){for(var k=l._reactName,D=[];d!==null&&d!==y;){var V=d,rt=V.alternate,ht=V.stateNode;if(V=V.tag,rt!==null&&rt===y)break;V!==5&&V!==26&&V!==27||ht===null||(rt=ht,C?(ht=sc(d,k),ht!=null&&D.unshift(zc(d,ht,rt))):C||(ht=sc(d,k),ht!=null&&D.push(zc(d,ht,rt)))),d=d.return}D.length!==0&&a.push({event:l,listeners:D})}var cP=/\r\n?/g,uP=/\u0000|\uFFFD/g;function DT(a){return(typeof a=="string"?a:""+a).replace(cP,`
50
+ `).replace(uP,"")}function FT(a,l){return l=DT(l),DT(a)===l}function Ne(a,l,d,y,C,k){switch(d){case"children":typeof y=="string"?l==="body"||l==="textarea"&&y===""||mo(a,y):(typeof y=="number"||typeof y=="bigint")&&l!=="body"&&mo(a,""+y);break;case"className":go(a,"class",y);break;case"tabIndex":go(a,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":go(a,d,y);break;case"style":FS(a,y,k);break;case"data":if(l!=="object"){go(a,"data",y);break}case"src":case"href":if(y===""&&(l!=="a"||d!=="href")){a.removeAttribute(d);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){a.removeAttribute(d);break}y=kh(""+y),a.setAttribute(d,y);break;case"action":case"formAction":if(typeof y=="function"){a.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof k=="function"&&(d==="formAction"?(l!=="input"&&Ne(a,l,"name",C.name,C,null),Ne(a,l,"formEncType",C.formEncType,C,null),Ne(a,l,"formMethod",C.formMethod,C,null),Ne(a,l,"formTarget",C.formTarget,C,null)):(Ne(a,l,"encType",C.encType,C,null),Ne(a,l,"method",C.method,C,null),Ne(a,l,"target",C.target,C,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){a.removeAttribute(d);break}y=kh(""+y),a.setAttribute(d,y);break;case"onClick":y!=null&&(a.onclick=zn);break;case"onScroll":y!=null&&oe("scroll",a);break;case"onScrollEnd":y!=null&&oe("scrollend",a);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(i(61));if(d=y.__html,d!=null){if(C.children!=null)throw Error(i(60));a.innerHTML=d}}break;case"multiple":a.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":a.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){a.removeAttribute("xlink:href");break}d=kh(""+y),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?a.setAttribute(d,""+y):a.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":y&&typeof y!="function"&&typeof y!="symbol"?a.setAttribute(d,""):a.removeAttribute(d);break;case"capture":case"download":y===!0?a.setAttribute(d,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?a.setAttribute(d,y):a.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?a.setAttribute(d,y):a.removeAttribute(d);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?a.removeAttribute(d):a.setAttribute(d,y);break;case"popover":oe("beforetoggle",a),oe("toggle",a),po(a,"popover",y);break;case"xlinkActuate":Wi(a,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":Wi(a,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":Wi(a,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":Wi(a,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":Wi(a,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":Wi(a,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":Wi(a,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":Wi(a,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":Wi(a,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":po(a,"is",y);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=qj.get(d)||d,po(a,d,y))}}function Gm(a,l,d,y,C,k){switch(d){case"style":FS(a,y,k);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(i(61));if(d=y.__html,d!=null){if(C.children!=null)throw Error(i(60));a.innerHTML=d}}break;case"children":typeof y=="string"?mo(a,y):(typeof y=="number"||typeof y=="bigint")&&mo(a,""+y);break;case"onScroll":y!=null&&oe("scroll",a);break;case"onScrollEnd":y!=null&&oe("scrollend",a);break;case"onClick":y!=null&&(a.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wr.hasOwnProperty(d))t:{if(d[0]==="o"&&d[1]==="n"&&(C=d.endsWith("Capture"),l=d.slice(2,C?d.length-7:void 0),k=a[qe]||null,k=k!=null?k[d]:null,typeof k=="function"&&a.removeEventListener(l,k,C),typeof y=="function")){typeof k!="function"&&k!==null&&(d in a?a[d]=null:a.hasAttribute(d)&&a.removeAttribute(d)),a.addEventListener(l,y,C);break t}d in a?a[d]=y:y===!0?a.setAttribute(d,""):po(a,d,y)}}}function Dr(a,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",a),oe("load",a);var y=!1,C=!1,k;for(k in d)if(d.hasOwnProperty(k)){var D=d[k];if(D!=null)switch(k){case"src":y=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,l));default:Ne(a,l,k,D,d,null)}}C&&Ne(a,l,"srcSet",d.srcSet,d,null),y&&Ne(a,l,"src",d.src,d,null);return;case"input":oe("invalid",a);var V=k=D=C=null,rt=null,ht=null;for(y in d)if(d.hasOwnProperty(y)){var xt=d[y];if(xt!=null)switch(y){case"name":C=xt;break;case"type":D=xt;break;case"checked":rt=xt;break;case"defaultChecked":ht=xt;break;case"value":k=xt;break;case"defaultValue":V=xt;break;case"children":case"dangerouslySetInnerHTML":if(xt!=null)throw Error(i(137,l));break;default:Ne(a,l,y,xt,d,null)}}Sh(a,k,V,rt,ht,D,C,!1);return;case"select":oe("invalid",a),y=D=k=null;for(C in d)if(d.hasOwnProperty(C)&&(V=d[C],V!=null))switch(C){case"value":k=V;break;case"defaultValue":D=V;break;case"multiple":y=V;default:Ne(a,l,C,V,d,null)}l=k,d=D,a.multiple=!!y,l!=null?qn(a,!!y,l,!1):d!=null&&qn(a,!!y,d,!0);return;case"textarea":oe("invalid",a),k=C=y=null;for(D in d)if(d.hasOwnProperty(D)&&(V=d[D],V!=null))switch(D){case"value":y=V;break;case"defaultValue":C=V;break;case"children":k=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(91));break;default:Ne(a,l,D,V,d,null)}RS(a,y,C,k);return;case"option":for(rt in d)if(d.hasOwnProperty(rt)&&(y=d[rt],y!=null))switch(rt){case"selected":a.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:Ne(a,l,rt,y,d,null)}return;case"dialog":oe("beforetoggle",a),oe("toggle",a),oe("cancel",a),oe("close",a);break;case"iframe":case"object":oe("load",a);break;case"video":case"audio":for(y=0;y<qc.length;y++)oe(qc[y],a);break;case"image":oe("error",a),oe("load",a);break;case"details":oe("toggle",a);break;case"embed":case"source":case"link":oe("error",a),oe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ht in d)if(d.hasOwnProperty(ht)&&(y=d[ht],y!=null))switch(ht){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,l));default:Ne(a,l,ht,y,d,null)}return;default:if(ag(l)){for(xt in d)d.hasOwnProperty(xt)&&(y=d[xt],y!==void 0&&Gm(a,l,xt,y,d,void 0));return}}for(V in d)d.hasOwnProperty(V)&&(y=d[V],y!=null&&Ne(a,l,V,y,d,null))}function hP(a,l,d,y){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,k=null,D=null,V=null,rt=null,ht=null,xt=null;for(mt in d){var vt=d[mt];if(d.hasOwnProperty(mt)&&vt!=null)switch(mt){case"checked":break;case"value":break;case"defaultValue":rt=vt;default:y.hasOwnProperty(mt)||Ne(a,l,mt,null,y,vt)}}for(var ft in y){var mt=y[ft];if(vt=d[ft],y.hasOwnProperty(ft)&&(mt!=null||vt!=null))switch(ft){case"type":k=mt;break;case"name":C=mt;break;case"checked":ht=mt;break;case"defaultChecked":xt=mt;break;case"value":D=mt;break;case"defaultValue":V=mt;break;case"children":case"dangerouslySetInnerHTML":if(mt!=null)throw Error(i(137,l));break;default:mt!==vt&&Ne(a,l,ft,mt,y,vt)}}xs(a,D,V,rt,ht,xt,k,C);return;case"select":mt=D=V=ft=null;for(k in d)if(rt=d[k],d.hasOwnProperty(k)&&rt!=null)switch(k){case"value":break;case"multiple":mt=rt;default:y.hasOwnProperty(k)||Ne(a,l,k,null,y,rt)}for(C in y)if(k=y[C],rt=d[C],y.hasOwnProperty(C)&&(k!=null||rt!=null))switch(C){case"value":ft=k;break;case"defaultValue":V=k;break;case"multiple":D=k;default:k!==rt&&Ne(a,l,C,k,y,rt)}l=V,d=D,y=mt,ft!=null?qn(a,!!d,ft,!1):!!y!=!!d&&(l!=null?qn(a,!!d,l,!0):qn(a,!!d,d?[]:"",!1));return;case"textarea":mt=ft=null;for(V in d)if(C=d[V],d.hasOwnProperty(V)&&C!=null&&!y.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:Ne(a,l,V,null,y,C)}for(D in y)if(C=y[D],k=d[D],y.hasOwnProperty(D)&&(C!=null||k!=null))switch(D){case"value":ft=C;break;case"defaultValue":mt=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:C!==k&&Ne(a,l,D,C,y,k)}OS(a,ft,mt);return;case"option":for(var Mt in d)if(ft=d[Mt],d.hasOwnProperty(Mt)&&ft!=null&&!y.hasOwnProperty(Mt))switch(Mt){case"selected":a.selected=!1;break;default:Ne(a,l,Mt,null,y,ft)}for(rt in y)if(ft=y[rt],mt=d[rt],y.hasOwnProperty(rt)&&ft!==mt&&(ft!=null||mt!=null))switch(rt){case"selected":a.selected=ft&&typeof ft!="function"&&typeof ft!="symbol";break;default:Ne(a,l,rt,ft,y,mt)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Yt in d)ft=d[Yt],d.hasOwnProperty(Yt)&&ft!=null&&!y.hasOwnProperty(Yt)&&Ne(a,l,Yt,null,y,ft);for(ht in y)if(ft=y[ht],mt=d[ht],y.hasOwnProperty(ht)&&ft!==mt&&(ft!=null||mt!=null))switch(ht){case"children":case"dangerouslySetInnerHTML":if(ft!=null)throw Error(i(137,l));break;default:Ne(a,l,ht,ft,y,mt)}return;default:if(ag(l)){for(var Oe in d)ft=d[Oe],d.hasOwnProperty(Oe)&&ft!==void 0&&!y.hasOwnProperty(Oe)&&Gm(a,l,Oe,void 0,y,ft);for(xt in y)ft=y[xt],mt=d[xt],!y.hasOwnProperty(xt)||ft===mt||ft===void 0&&mt===void 0||Gm(a,l,xt,ft,y,mt);return}}for(var ot in d)ft=d[ot],d.hasOwnProperty(ot)&&ft!=null&&!y.hasOwnProperty(ot)&&Ne(a,l,ot,null,y,ft);for(vt in y)ft=y[vt],mt=d[vt],!y.hasOwnProperty(vt)||ft===mt||ft==null&&mt==null||Ne(a,l,vt,ft,y,mt)}function IT(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fP(){if(typeof performance.getEntriesByType=="function"){for(var a=0,l=0,d=performance.getEntriesByType("resource"),y=0;y<d.length;y++){var C=d[y],k=C.transferSize,D=C.initiatorType,V=C.duration;if(k&&V&&IT(D)){for(D=0,V=C.responseEnd,y+=1;y<d.length;y++){var rt=d[y],ht=rt.startTime;if(ht>V)break;var xt=rt.transferSize,vt=rt.initiatorType;xt&&IT(vt)&&(rt=rt.responseEnd,D+=xt*(rt<V?1:(V-ht)/(rt-ht)))}if(--y,l+=8*(k+D)/(C.duration/1e3),a++,10<a)break}}if(0<a)return l/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Ym=null,Wm=null;function vf(a){return a.nodeType===9?a:a.ownerDocument}function qT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zT(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function Vm(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Xm=null;function dP(){var a=window.event;return a&&a.type==="popstate"?a===Xm?!1:(Xm=a,!0):(Xm=null,!1)}var jT=typeof setTimeout=="function"?setTimeout:void 0,pP=typeof clearTimeout=="function"?clearTimeout:void 0,$T=typeof Promise=="function"?Promise:void 0,gP=typeof queueMicrotask=="function"?queueMicrotask:typeof $T<"u"?function(a){return $T.resolve(null).then(a).catch(mP)}:jT;function mP(a){setTimeout(function(){throw a})}function Ia(a){return a==="head"}function PT(a,l){var d=l,y=0;do{var C=d.nextSibling;if(a.removeChild(d),C&&C.nodeType===8)if(d=C.data,d==="/$"||d==="/&"){if(y===0){a.removeChild(C),Wo(l);return}y--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")y++;else if(d==="html")jc(a.ownerDocument.documentElement);else if(d==="head"){d=a.ownerDocument.head,jc(d);for(var k=d.firstChild;k;){var D=k.nextSibling,V=k.nodeName;k[mn]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&k.rel.toLowerCase()==="stylesheet"||d.removeChild(k),k=D}}else d==="body"&&jc(a.ownerDocument.body);d=C}while(d);Wo(l)}function HT(a,l){var d=a;a=0;do{var y=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),y&&y.nodeType===8)if(d=y.data,d==="/$"){if(a===0)break;a--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||a++;d=y}while(d)}function Qm(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":Qm(d),zt(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}a.removeChild(d)}}function yP(a,l,d,y){for(;a.nodeType===1;){var C=d;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!y&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(y){if(!a[mn])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(k=a.getAttribute("rel"),k==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(k!==C.rel||a.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||a.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||a.getAttribute("title")!==(C.title==null?null:C.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(k=a.getAttribute("src"),(k!==(C.src==null?null:C.src)||a.getAttribute("type")!==(C.type==null?null:C.type)||a.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&k&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var k=C.name==null?null:""+C.name;if(C.type==="hidden"&&a.getAttribute("name")===k)return a}else return a;if(a=qi(a.nextSibling),a===null)break}return null}function xP(a,l,d){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!d||(a=qi(a.nextSibling),a===null))return null;return a}function UT(a,l){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=qi(a.nextSibling),a===null))return null;return a}function Zm(a){return a.data==="$?"||a.data==="$~"}function Km(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function bP(a,l){var d=a.ownerDocument;if(a.data==="$~")a._reactRetry=l;else if(a.data!=="$?"||d.readyState!=="loading")l();else{var y=function(){l(),d.removeEventListener("DOMContentLoaded",y)};d.addEventListener("DOMContentLoaded",y),a._reactRetry=y}}function qi(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return a}var Jm=null;function GT(a){a=a.nextSibling;for(var l=0;a;){if(a.nodeType===8){var d=a.data;if(d==="/$"||d==="/&"){if(l===0)return qi(a.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}a=a.nextSibling}return null}function YT(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var d=a.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return a;l--}else d!=="/$"&&d!=="/&"||l++}a=a.previousSibling}return null}function WT(a,l,d){switch(l=vf(d),a){case"html":if(a=l.documentElement,!a)throw Error(i(452));return a;case"head":if(a=l.head,!a)throw Error(i(453));return a;case"body":if(a=l.body,!a)throw Error(i(454));return a;default:throw Error(i(451))}}function jc(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);zt(a)}var zi=new Map,VT=new Set;function Cf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ea=P.d;P.d={f:vP,r:CP,D:wP,C:SP,L:kP,m:_P,X:EP,S:TP,M:AP};function vP(){var a=ea.f(),l=ff();return a||l}function CP(a){var l=wt(a);l!==null&&l.tag===5&&l.type==="form"?h_(l):ea.r(a)}var Uo=typeof document>"u"?null:document;function XT(a,l,d){var y=Uo;if(y&&typeof l=="string"&&l){var C=ri(l);C='link[rel="'+a+'"][href="'+C+'"]',typeof d=="string"&&(C+='[crossorigin="'+d+'"]'),VT.has(C)||(VT.add(C),a={rel:a,crossOrigin:d,href:l},y.querySelector(C)===null&&(l=y.createElement("link"),Dr(l,"link",a),ae(l),y.head.appendChild(l)))}}function wP(a){ea.D(a),XT("dns-prefetch",a,null)}function SP(a,l){ea.C(a,l),XT("preconnect",a,l)}function kP(a,l,d){ea.L(a,l,d);var y=Uo;if(y&&a&&l){var C='link[rel="preload"][as="'+ri(l)+'"]';l==="image"&&d&&d.imageSrcSet?(C+='[imagesrcset="'+ri(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(C+='[imagesizes="'+ri(d.imageSizes)+'"]')):C+='[href="'+ri(a)+'"]';var k=C;switch(l){case"style":k=Go(a);break;case"script":k=Yo(a)}zi.has(k)||(a=p({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:a,as:l},d),zi.set(k,a),y.querySelector(C)!==null||l==="style"&&y.querySelector($c(k))||l==="script"&&y.querySelector(Pc(k))||(l=y.createElement("link"),Dr(l,"link",a),ae(l),y.head.appendChild(l)))}}function _P(a,l){ea.m(a,l);var d=Uo;if(d&&a){var y=l&&typeof l.as=="string"?l.as:"script",C='link[rel="modulepreload"][as="'+ri(y)+'"][href="'+ri(a)+'"]',k=C;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":k=Yo(a)}if(!zi.has(k)&&(a=p({rel:"modulepreload",href:a},l),zi.set(k,a),d.querySelector(C)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Pc(k)))return}y=d.createElement("link"),Dr(y,"link",a),ae(y),d.head.appendChild(y)}}}function TP(a,l,d){ea.S(a,l,d);var y=Uo;if(y&&a){var C=fe(y).hoistableStyles,k=Go(a);l=l||"default";var D=C.get(k);if(!D){var V={loading:0,preload:null};if(D=y.querySelector($c(k)))V.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":l},d),(d=zi.get(k))&&t0(a,d);var rt=D=y.createElement("link");ae(rt),Dr(rt,"link",a),rt._p=new Promise(function(ht,xt){rt.onload=ht,rt.onerror=xt}),rt.addEventListener("load",function(){V.loading|=1}),rt.addEventListener("error",function(){V.loading|=2}),V.loading|=4,wf(D,l,y)}D={type:"stylesheet",instance:D,count:1,state:V},C.set(k,D)}}}function EP(a,l){ea.X(a,l);var d=Uo;if(d&&a){var y=fe(d).hoistableScripts,C=Yo(a),k=y.get(C);k||(k=d.querySelector(Pc(C)),k||(a=p({src:a,async:!0},l),(l=zi.get(C))&&e0(a,l),k=d.createElement("script"),ae(k),Dr(k,"link",a),d.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},y.set(C,k))}}function AP(a,l){ea.M(a,l);var d=Uo;if(d&&a){var y=fe(d).hoistableScripts,C=Yo(a),k=y.get(C);k||(k=d.querySelector(Pc(C)),k||(a=p({src:a,async:!0,type:"module"},l),(l=zi.get(C))&&e0(a,l),k=d.createElement("script"),ae(k),Dr(k,"link",a),d.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},y.set(C,k))}}function QT(a,l,d,y){var C=(C=tt.current)?Cf(C):null;if(!C)throw Error(i(446));switch(a){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=Go(d.href),d=fe(C).hoistableStyles,y=d.get(l),y||(y={type:"style",instance:null,count:0,state:null},d.set(l,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){a=Go(d.href);var k=fe(C).hoistableStyles,D=k.get(a);if(D||(C=C.ownerDocument||C,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},k.set(a,D),(k=C.querySelector($c(a)))&&!k._p&&(D.instance=k,D.state.loading=5),zi.has(a)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},zi.set(a,d),k||BP(C,a,d,D.state))),l&&y===null)throw Error(i(528,""));return D}if(l&&y!==null)throw Error(i(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Yo(d),d=fe(C).hoistableScripts,y=d.get(l),y||(y={type:"script",instance:null,count:0,state:null},d.set(l,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,a))}}function Go(a){return'href="'+ri(a)+'"'}function $c(a){return'link[rel="stylesheet"]['+a+"]"}function ZT(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function BP(a,l,d,y){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?y.loading=1:(l=a.createElement("link"),y.preload=l,l.addEventListener("load",function(){return y.loading|=1}),l.addEventListener("error",function(){return y.loading|=2}),Dr(l,"link",d),ae(l),a.head.appendChild(l))}function Yo(a){return'[src="'+ri(a)+'"]'}function Pc(a){return"script[async]"+a}function KT(a,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var y=a.querySelector('style[data-href~="'+ri(d.href)+'"]');if(y)return l.instance=y,ae(y),y;var C=p({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return y=(a.ownerDocument||a).createElement("style"),ae(y),Dr(y,"style",C),wf(y,d.precedence,a),l.instance=y;case"stylesheet":C=Go(d.href);var k=a.querySelector($c(C));if(k)return l.state.loading|=4,l.instance=k,ae(k),k;y=ZT(d),(C=zi.get(C))&&t0(y,C),k=(a.ownerDocument||a).createElement("link"),ae(k);var D=k;return D._p=new Promise(function(V,rt){D.onload=V,D.onerror=rt}),Dr(k,"link",y),l.state.loading|=4,wf(k,d.precedence,a),l.instance=k;case"script":return k=Yo(d.src),(C=a.querySelector(Pc(k)))?(l.instance=C,ae(C),C):(y=d,(C=zi.get(k))&&(y=p({},d),e0(y,C)),a=a.ownerDocument||a,C=a.createElement("script"),ae(C),Dr(C,"link",y),a.head.appendChild(C),l.instance=C);case"void":return null;default:throw Error(i(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(y=l.instance,l.state.loading|=4,wf(y,d.precedence,a));return l.instance}function wf(a,l,d){for(var y=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=y.length?y[y.length-1]:null,k=C,D=0;D<y.length;D++){var V=y[D];if(V.dataset.precedence===l)k=V;else if(k!==C)break}k?k.parentNode.insertBefore(a,k.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(a,l.firstChild))}function t0(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function e0(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var Sf=null;function JT(a,l,d){if(Sf===null){var y=new Map,C=Sf=new Map;C.set(d,y)}else C=Sf,y=C.get(d),y||(y=new Map,C.set(d,y));if(y.has(a))return y;for(y.set(a,null),d=d.getElementsByTagName(a),C=0;C<d.length;C++){var k=d[C];if(!(k[mn]||k[Ze]||a==="link"&&k.getAttribute("rel")==="stylesheet")&&k.namespaceURI!=="http://www.w3.org/2000/svg"){var D=k.getAttribute(l)||"";D=a+D;var V=y.get(D);V?V.push(k):y.set(D,[k])}}return y}function tE(a,l,d){a=a.ownerDocument||a,a.head.insertBefore(d,l==="title"?a.querySelector("head > title"):null)}function LP(a,l,d){if(d===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return a=l.disabled,typeof l.precedence=="string"&&a==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function eE(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function MP(a,l,d,y){if(d.type==="stylesheet"&&(typeof y.media!="string"||matchMedia(y.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var C=Go(y.href),k=l.querySelector($c(C));if(k){l=k._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=kf.bind(a),l.then(a,a)),d.state.loading|=4,d.instance=k,ae(k);return}k=l.ownerDocument||l,y=ZT(y),(C=zi.get(C))&&t0(y,C),k=k.createElement("link"),ae(k);var D=k;D._p=new Promise(function(V,rt){D.onload=V,D.onerror=rt}),Dr(k,"link",y),d.instance=k}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(a.count++,d=kf.bind(a),l.addEventListener("load",d),l.addEventListener("error",d))}}var r0=0;function NP(a,l){return a.stylesheets&&a.count===0&&Tf(a,a.stylesheets),0<a.count||0<a.imgCount?function(d){var y=setTimeout(function(){if(a.stylesheets&&Tf(a,a.stylesheets),a.unsuspend){var k=a.unsuspend;a.unsuspend=null,k()}},6e4+l);0<a.imgBytes&&r0===0&&(r0=62500*fP());var C=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Tf(a,a.stylesheets),a.unsuspend)){var k=a.unsuspend;a.unsuspend=null,k()}},(a.imgBytes>r0?50:800)+l);return a.unsuspend=d,function(){a.unsuspend=null,clearTimeout(y),clearTimeout(C)}}:null}function kf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tf(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var _f=null;function Tf(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,_f=new Map,l.forEach(OP,a),_f=null,kf.call(a))}function OP(a,l){if(!(l.state.loading&4)){var d=_f.get(a);if(d)var y=d.get(null);else{d=new Map,_f.set(a,d);for(var C=a.querySelectorAll("link[data-precedence],style[data-precedence]"),k=0;k<C.length;k++){var D=C[k];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(d.set(D.dataset.precedence,D),y=D)}y&&d.set(null,y)}C=l.instance,D=C.getAttribute("data-precedence"),k=d.get(D)||y,k===y&&d.set(null,C),d.set(D,C),this.count++,y=kf.bind(this),C.addEventListener("load",y),C.addEventListener("error",y),k?k.parentNode.insertBefore(C,k.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(C,a.firstChild)),l.state.loading|=4}}var Hc={$$typeof:S,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function RP(a,l,d,y,C,k,D,V,rt){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ls(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.hiddenUpdates=ls(null),this.identifierPrefix=y,this.onUncaughtError=C,this.onCaughtError=k,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=rt,this.incompleteTransitions=new Map}function rE(a,l,d,y,C,k,D,V,rt,ht,xt,vt){return a=new RP(a,l,d,D,rt,ht,xt,vt,V),l=1,k===!0&&(l|=24),k=vi(3,null,null,l),a.current=k,k.stateNode=a,l=Dg(),l.refCount++,a.pooledCache=l,l.refCount++,k.memoizedState={element:y,isDehydrated:d,cache:l},zg(k),a}function iE(a){return a?(a=So,a):So}function nE(a,l,d,y,C,k){C=iE(C),y.context===null?y.context=C:y.pendingContext=C,y=Ta(l),y.payload={element:d},k=k===void 0?null:k,k!==null&&(y.callback=k),d=Ea(a,y,l),d!==null&&(li(d,a,l),Cc(d,a,l))}function aE(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var d=a.retryLane;a.retryLane=d!==0&&d<l?d:l}}function i0(a,l){aE(a,l),(a=a.alternate)&&aE(a,l)}function sE(a){if(a.tag===13||a.tag===31){var l=ws(a,67108864);l!==null&&li(l,a,67108864),i0(a,67108864)}}function oE(a){if(a.tag===13||a.tag===31){var l=_i();l=Mr(l);var d=ws(a,l);d!==null&&li(d,a,l),i0(a,l)}}var Ef=!0;function DP(a,l,d,y){var C=N.T;N.T=null;var k=P.p;try{P.p=2,n0(a,l,d,y)}finally{P.p=k,N.T=C}}function FP(a,l,d,y){var C=N.T;N.T=null;var k=P.p;try{P.p=8,n0(a,l,d,y)}finally{P.p=k,N.T=C}}function n0(a,l,d,y){if(Ef){var C=a0(y);if(C===null)Um(a,l,y,Af,d),cE(a,y);else if(qP(C,a,l,d,y))y.stopPropagation();else if(cE(a,y),l&4&&-1<IP.indexOf(a)){for(;C!==null;){var k=wt(C);if(k!==null)switch(k.tag){case 3:if(k=k.stateNode,k.current.memoizedState.isDehydrated){var D=Gr(k.pendingLanes);if(D!==0){var V=k;for(V.pendingLanes|=2,V.entangledLanes|=2;D;){var rt=1<<31-ce(D);V.entanglements[1]|=rt,D&=~rt}vn(k),(ke&6)===0&&(uf=Le()+500,Ic(0))}}break;case 31:case 13:V=ws(k,2),V!==null&&li(V,k,2),ff(),i0(k,2)}if(k=a0(y),k===null&&Um(a,l,y,Af,d),k===C)break;C=k}C!==null&&y.stopPropagation()}else Um(a,l,y,null,d)}}function a0(a){return a=og(a),s0(a)}var Af=null;function s0(a){if(Af=null,a=et(a),a!==null){var l=s(a);if(l===null)a=null;else{var d=l.tag;if(d===13){if(a=o(l),a!==null)return a;a=null}else if(d===31){if(a=c(l),a!==null)return a;a=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Af=a,null}function lE(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Cr()){case yt:return 2;case _t:return 8;case Rt:case Kt:return 32;case ne:return 268435456;default:return 32}default:return 32}}var o0=!1,qa=null,za=null,ja=null,Uc=new Map,Gc=new Map,$a=[],IP="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".split(" ");function cE(a,l){switch(a){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":za=null;break;case"mouseover":case"mouseout":ja=null;break;case"pointerover":case"pointerout":Uc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gc.delete(l.pointerId)}}function Yc(a,l,d,y,C,k){return a===null||a.nativeEvent!==k?(a={blockedOn:l,domEventName:d,eventSystemFlags:y,nativeEvent:k,targetContainers:[C]},l!==null&&(l=wt(l),l!==null&&sE(l)),a):(a.eventSystemFlags|=y,l=a.targetContainers,C!==null&&l.indexOf(C)===-1&&l.push(C),a)}function qP(a,l,d,y,C){switch(l){case"focusin":return qa=Yc(qa,a,l,d,y,C),!0;case"dragenter":return za=Yc(za,a,l,d,y,C),!0;case"mouseover":return ja=Yc(ja,a,l,d,y,C),!0;case"pointerover":var k=C.pointerId;return Uc.set(k,Yc(Uc.get(k)||null,a,l,d,y,C)),!0;case"gotpointercapture":return k=C.pointerId,Gc.set(k,Yc(Gc.get(k)||null,a,l,d,y,C)),!0}return!1}function uE(a){var l=et(a.target);if(l!==null){var d=s(l);if(d!==null){if(l=d.tag,l===13){if(l=o(d),l!==null){a.blockedOn=l,ds(a.priority,function(){oE(d)});return}}else if(l===31){if(l=c(d),l!==null){a.blockedOn=l,ds(a.priority,function(){oE(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){a.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Bf(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var d=a0(a.nativeEvent);if(d===null){d=a.nativeEvent;var y=new d.constructor(d.type,d);sg=y,d.target.dispatchEvent(y),sg=null}else return l=wt(d),l!==null&&sE(l),a.blockedOn=d,!1;l.shift()}return!0}function hE(a,l,d){Bf(a)&&d.delete(l)}function zP(){o0=!1,qa!==null&&Bf(qa)&&(qa=null),za!==null&&Bf(za)&&(za=null),ja!==null&&Bf(ja)&&(ja=null),Uc.forEach(hE),Gc.forEach(hE)}function Lf(a,l){a.blockedOn===l&&(a.blockedOn=null,o0||(o0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zP)))}var Mf=null;function fE(a){Mf!==a&&(Mf=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mf===a&&(Mf=null);for(var l=0;l<a.length;l+=3){var d=a[l],y=a[l+1],C=a[l+2];if(typeof y!="function"){if(s0(y||d)===null)continue;break}var k=wt(d);k!==null&&(a.splice(l,3),l-=3,am(k,{pending:!0,data:C,method:d.method,action:y},y,C))}}))}function Wo(a){function l(rt){return Lf(rt,a)}qa!==null&&Lf(qa,a),za!==null&&Lf(za,a),ja!==null&&Lf(ja,a),Uc.forEach(l),Gc.forEach(l);for(var d=0;d<$a.length;d++){var y=$a[d];y.blockedOn===a&&(y.blockedOn=null)}for(;0<$a.length&&(d=$a[0],d.blockedOn===null);)uE(d),d.blockedOn===null&&$a.shift();if(d=(a.ownerDocument||a).$$reactFormReplay,d!=null)for(y=0;y<d.length;y+=3){var C=d[y],k=d[y+1],D=C[qe]||null;if(typeof k=="function")D||fE(d);else if(D){var V=null;if(k&&k.hasAttribute("formAction")){if(C=k,D=k[qe]||null)V=D.formAction;else if(s0(C)!==null)continue}else V=D.action;typeof V=="function"?d[y+1]=V:(d.splice(y,3),y-=3),fE(d)}}}function dE(){function a(k){k.canIntercept&&k.info==="react-transition"&&k.intercept({handler:function(){return new Promise(function(D){return C=D})},focusReset:"manual",scroll:"manual"})}function l(){C!==null&&(C(),C=null),y||setTimeout(d,20)}function d(){if(!y&&!navigation.transition){var k=navigation.currentEntry;k&&k.url!=null&&navigation.navigate(k.url,{state:k.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var y=!1,C=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){y=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),C!==null&&(C(),C=null)}}}function l0(a){this._internalRoot=a}Nf.prototype.render=l0.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(i(409));var d=l.current,y=_i();nE(d,y,a,l,null,null)},Nf.prototype.unmount=l0.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;nE(a.current,2,null,a,null,null),ff(),l[Mi]=null}};function Nf(a){this._internalRoot=a}Nf.prototype.unstable_scheduleHydration=function(a){if(a){var l=fs();a={blockedOn:null,target:a,priority:l};for(var d=0;d<$a.length&&l!==0&&l<$a[d].priority;d++);$a.splice(d,0,a),d===0&&uE(a)}};var pE=e.version;if(pE!=="19.2.6")throw Error(i(527,pE,"19.2.6"));P.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=h(l),a=a!==null?f(a):null,a=a===null?null:a.stateNode,a};var jP={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Of=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Of.isDisabled&&Of.supportsFiber)try{Se=Of.inject(jP),me=Of}catch{}}return Vc.createRoot=function(a,l){if(!n(a))throw Error(i(299));var d=!1,y="",C=C_,k=w_,D=S_;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onUncaughtError!==void 0&&(C=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(D=l.onRecoverableError)),l=rE(a,1,!1,null,null,d,y,null,C,k,D,dE),a[Mi]=l.current,Hm(a),new l0(l)},Vc.hydrateRoot=function(a,l,d){if(!n(a))throw Error(i(299));var y=!1,C="",k=C_,D=w_,V=S_,rt=null;return d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(C=d.identifierPrefix),d.onUncaughtError!==void 0&&(k=d.onUncaughtError),d.onCaughtError!==void 0&&(D=d.onCaughtError),d.onRecoverableError!==void 0&&(V=d.onRecoverableError),d.formState!==void 0&&(rt=d.formState)),l=rE(a,1,!0,l,d??null,y,C,rt,k,D,V,dE),l.context=iE(null),d=l.current,y=_i(),y=Mr(y),C=Ta(y),C.callback=null,Ea(d,C,y),d=y,l.current.lanes=d,gn(l,d),vn(l),a[Mi]=l.current,Hm(a),new Nf(l)},Vc.version="19.2.6",Vc}var kE;function ZP(){if(kE)return h0.exports;kE=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),h0.exports=QP(),h0.exports}var KP=ZP();const _E=t=>{let e;const r=new Set,i=(h,f)=>{const p=typeof h=="function"?h(e):h;if(!Object.is(p,e)){const m=e;e=f??(typeof p!="object"||p===null)?p:Object.assign({},e,p),r.forEach(g=>g(e,m))}},n=()=>e,c={setState:i,getState:n,getInitialState:()=>u,subscribe:h=>(r.add(h),()=>r.delete(h))},u=e=t(i,n,c);return c},JP=(t=>t?_E(t):_E),t9=t=>t;function e9(t,e=t9){const r=sl.useSyncExternalStore(t.subscribe,sl.useCallback(()=>e(t.getState()),[t,e]),sl.useCallback(()=>e(t.getInitialState()),[t,e]));return sl.useDebugValue(r),r}const TE=t=>{const e=JP(t),r=i=>e9(e,i);return Object.assign(r,e),r},r9=(t=>t?TE(t):TE),Df=150,lO=1,i9=["SEMANTIC","TRACEABILITY","DEPENDENCY"];function n9(t){const e={artifactsById:new Map,relationsBySource:new Map,relationsByTarget:new Map,artifactsByType:new Map,artifactsByLayer:new Map,artifactsByStatus:new Map,artifactsByOwner:new Map,artifactsByTeam:new Map};return t.artifacts.forEach(r=>{var i,n;e.artifactsById.set(r.id,r),r.type&&(e.artifactsByType.has(r.type)||e.artifactsByType.set(r.type,[]),e.artifactsByType.get(r.type).push(r)),r.layer&&(e.artifactsByLayer.has(r.layer)||e.artifactsByLayer.set(r.layer,[]),e.artifactsByLayer.get(r.layer).push(r)),r.status&&(e.artifactsByStatus.has(r.status)||e.artifactsByStatus.set(r.status,[]),e.artifactsByStatus.get(r.status).push(r)),(i=r.ownership)!=null&&i.owner&&(e.artifactsByOwner.has(r.ownership.owner)||e.artifactsByOwner.set(r.ownership.owner,[]),e.artifactsByOwner.get(r.ownership.owner).push(r)),(n=r.ownership)!=null&&n.team&&(e.artifactsByTeam.has(r.ownership.team)||e.artifactsByTeam.set(r.ownership.team,[]),e.artifactsByTeam.get(r.ownership.team).push(r))}),t.relations.forEach(r=>{e.relationsBySource.has(r.from)||e.relationsBySource.set(r.from,[]),e.relationsBySource.get(r.from).push(r),e.relationsByTarget.has(r.to)||e.relationsByTarget.set(r.to,[]),e.relationsByTarget.get(r.to).push(r)}),e}function EE(t,e){return!(!e.showWeakRelations&&i9.includes(t.strength||(t.category==="SEMANTIC"?"WEAK":"STRONG"))&&["RELATES_TO","DOCUMENTS"].includes(t.type))}function a9(t,e,r){const{focusId:i,depth:n=lO,filterLayer:s="ALL",filterOwner:o="ALL",filterTeam:c="ALL"}=r;let u=new Set,h=new Set;const f=p=>{var m,g;return!(s!=="ALL"&&p.layer!==s||o!=="ALL"&&((m=p.ownership)==null?void 0:m.owner)!==o||c!=="ALL"&&((g=p.ownership)==null?void 0:g.team)!==c)};if(i){const p=e.artifactsById.get(i);if(!p||!f(p))return{artifacts:[],relations:[]};u.add(p);let m=[{id:i,currentDepth:0}];const g=new Set;for(;m.length>0;){const{id:x,currentDepth:v}=m.shift();if(g.has(x)||(g.add(x),v>=n))continue;const b=e.relationsBySource.get(x)||[],w=e.relationsByTarget.get(x)||[];[...b,...w].forEach(_=>{if(!EE(_,r))return;const S=_.from===x?_.to:_.from,E=e.artifactsById.get(S);E&&f(E)&&(h.add(_),u.add(E),g.has(S)||m.push({id:S,currentDepth:v+1}))})}}else if(t.artifacts.forEach(p=>{f(p)&&u.add(p)}),t.relations.forEach(p=>{const m=e.artifactsById.get(p.from),g=e.artifactsById.get(p.to);m&&g&&f(m)&&f(g)&&EE(p,r)&&h.add(p)}),u.size>Df&&!i){const p=Array.from(u).slice(0,Df),m=new Set(p.map(x=>x.id)),g=Array.from(h).filter(x=>m.has(x.from)&&m.has(x.to));return{artifacts:p,relations:g}}if(u.size>Df){const p=Array.from(u).slice(0,Df),m=new Set(p.map(x=>x.id)),g=Array.from(h).filter(x=>m.has(x.from)&&m.has(x.to));return{artifacts:p,relations:g}}return{artifacts:Array.from(u),relations:Array.from(h)}}let Xc=null;const ns=r9((t,e)=>({versions:[],systemVersions:[],changes:[],currentVersionId:null,fullGraph:null,graphIndex:null,currentSubgraph:null,activeView:"graph",selectedArtifactId:null,isLoading:!1,metadata:void 0,settings:{graphFocusDepth:lO,docsFocusDepth:1,defaultDocsFocusMode:!0,showWeakRelations:!1,language:"EN"},globalFilters:{layer:"ALL",owner:"ALL",team:"ALL"},updateSettings:r=>{t(i=>({settings:{...i.settings,...r}})),e().refreshSubgraph()},setGlobalFilter:(r,i)=>{t(n=>({globalFilters:{...n.globalFilters,[r]:i}})),e().refreshSubgraph()},refreshSubgraph:()=>{const{fullGraph:r,graphIndex:i,selectedArtifactId:n,settings:s,globalFilters:o}=e();if(!r||!i)return;const c={focusId:n||void 0,depth:s.graphFocusDepth,showWeakRelations:s.showWeakRelations,filterLayer:o.layer,filterOwner:o.owner,filterTeam:o.team},u=a9(r,i,c);t({currentSubgraph:u})},initializeStore:async()=>{t({isLoading:!0});try{const r=await fetch("/graph-data.json");if(!r.ok)throw new Error("Failed to load graph data");if(Xc=await r.json(),Xc){const{versions:i,systemVersions:n,changes:s,metadata:o}=Xc;t({versions:i,systemVersions:n||[],changes:s,metadata:o,isLoading:!1}),i.length>0&&!e().currentVersionId&&e().setVersion(i[i.length-1].id)}}catch(r){console.error("OpenLAG Error: Could not fetch static data.",r),t({isLoading:!1})}},setVersion:r=>{if(!Xc)return;const i=Xc.graphs[r]||null;let n=null;i&&(n=n9(i)),t({currentVersionId:r,selectedArtifactId:null,fullGraph:i,graphIndex:n}),e().refreshSubgraph()},setView:r=>t({activeView:r}),setSelectedArtifact:r=>{t({selectedArtifactId:r}),e().refreshSubgraph()}}));function xr(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)(i=xr(t[r]))!==""&&(e+=(e&&" ")+i);else for(let r in t)t[r]&&(e+=(e&&" ")+r);return e}var s9={value:()=>{}};function lp(){for(var t=0,e=arguments.length,r={},i;t<e;++t){if(!(i=arguments[t]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new ad(r)}function ad(t){this._=t}function o9(t,e){return t.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&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}ad.prototype=lp.prototype={constructor:ad,on:function(t,e){var r=this._,i=o9(t+"",r),n,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((n=(t=i[s]).type)&&(n=l9(r[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=i[s]).type)r[n]=AE(r[n],t.name,e);else if(e==null)for(n in r)r[n]=AE(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new ad(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,n=s.length;i<n;++i)s[i].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],n=0,s=i.length;n<s;++n)i[n].value.apply(e,r)}};function l9(t,e){for(var r=0,i=t.length,n;r<i;++r)if((n=t[r]).name===e)return n.value}function AE(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=s9,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:e,value:r}),t}var wC="http://www.w3.org/1999/xhtml";const BE={svg:"http://www.w3.org/2000/svg",xhtml:wC,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function cp(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),BE.hasOwnProperty(e)?{space:BE[e],local:t}:t}function c9(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===wC&&e.documentElement.namespaceURI===wC?e.createElement(t):e.createElementNS(r,t)}}function u9(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function cO(t){var e=cp(t);return(e.local?u9:c9)(e)}function h9(){}function P2(t){return t==null?h9:function(){return this.querySelector(t)}}function f9(t){typeof t!="function"&&(t=P2(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],o=s.length,c=i[n]=new Array(o),u,h,f=0;f<o;++f)(u=s[f])&&(h=t.call(u,u.__data__,f,s))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h);return new Li(i,this._parents)}function d9(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function p9(){return[]}function uO(t){return t==null?p9:function(){return this.querySelectorAll(t)}}function g9(t){return function(){return d9(t.apply(this,arguments))}}function m9(t){typeof t=="function"?t=g9(t):t=uO(t);for(var e=this._groups,r=e.length,i=[],n=[],s=0;s<r;++s)for(var o=e[s],c=o.length,u,h=0;h<c;++h)(u=o[h])&&(i.push(t.call(u,u.__data__,h,o)),n.push(u));return new Li(i,n)}function hO(t){return function(){return this.matches(t)}}function fO(t){return function(e){return e.matches(t)}}var y9=Array.prototype.find;function x9(t){return function(){return y9.call(this.children,t)}}function b9(){return this.firstElementChild}function v9(t){return this.select(t==null?b9:x9(typeof t=="function"?t:fO(t)))}var C9=Array.prototype.filter;function w9(){return Array.from(this.children)}function S9(t){return function(){return C9.call(this.children,t)}}function k9(t){return this.selectAll(t==null?w9:S9(typeof t=="function"?t:fO(t)))}function _9(t){typeof t!="function"&&(t=hO(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],o=s.length,c=i[n]=[],u,h=0;h<o;++h)(u=s[h])&&t.call(u,u.__data__,h,s)&&c.push(u);return new Li(i,this._parents)}function dO(t){return new Array(t.length)}function T9(){return new Li(this._enter||this._groups.map(dO),this._parents)}function Sd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Sd.prototype={constructor:Sd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function E9(t){return function(){return t}}function A9(t,e,r,i,n,s){for(var o=0,c,u=e.length,h=s.length;o<h;++o)(c=e[o])?(c.__data__=s[o],i[o]=c):r[o]=new Sd(t,s[o]);for(;o<u;++o)(c=e[o])&&(n[o]=c)}function B9(t,e,r,i,n,s,o){var c,u,h=new Map,f=e.length,p=s.length,m=new Array(f),g;for(c=0;c<f;++c)(u=e[c])&&(m[c]=g=o.call(u,u.__data__,c,e)+"",h.has(g)?n[c]=u:h.set(g,u));for(c=0;c<p;++c)g=o.call(t,s[c],c,s)+"",(u=h.get(g))?(i[c]=u,u.__data__=s[c],h.delete(g)):r[c]=new Sd(t,s[c]);for(c=0;c<f;++c)(u=e[c])&&h.get(m[c])===u&&(n[c]=u)}function L9(t){return t.__data__}function M9(t,e){if(!arguments.length)return Array.from(this,L9);var r=e?B9:A9,i=this._parents,n=this._groups;typeof t!="function"&&(t=E9(t));for(var s=n.length,o=new Array(s),c=new Array(s),u=new Array(s),h=0;h<s;++h){var f=i[h],p=n[h],m=p.length,g=N9(t.call(f,f&&f.__data__,h,i)),x=g.length,v=c[h]=new Array(x),b=o[h]=new Array(x),w=u[h]=new Array(m);r(f,p,v,b,w,g,e);for(var _=0,S=0,E,L;_<x;++_)if(E=v[_]){for(_>=S&&(S=_+1);!(L=b[S])&&++S<x;);E._next=L||null}}return o=new Li(o,i),o._enter=c,o._exit=u,o}function N9(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function O9(){return new Li(this._exit||this._groups.map(dO),this._parents)}function R9(t,e,r){var i=this.enter(),n=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),r==null?s.remove():r(s),i&&n?i.merge(n).order():n}function D9(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,s=i.length,o=Math.min(n,s),c=new Array(n),u=0;u<o;++u)for(var h=r[u],f=i[u],p=h.length,m=c[u]=new Array(p),g,x=0;x<p;++x)(g=h[x]||f[x])&&(m[x]=g);for(;u<n;++u)c[u]=r[u];return new Li(c,this._parents)}function F9(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i=t[e],n=i.length-1,s=i[n],o;--n>=0;)(o=i[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function I9(t){t||(t=q9);function e(p,m){return p&&m?t(p.__data__,m.__data__):!p-!m}for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var o=r[s],c=o.length,u=n[s]=new Array(c),h,f=0;f<c;++f)(h=o[f])&&(u[f]=h);u.sort(e)}return new Li(n,this._parents).order()}function q9(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function z9(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function j9(){return Array.from(this)}function $9(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length;n<s;++n){var o=i[n];if(o)return o}return null}function P9(){let t=0;for(const e of this)++t;return t}function H9(){return!this.node()}function U9(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n=e[r],s=0,o=n.length,c;s<o;++s)(c=n[s])&&t.call(c,c.__data__,s,n);return this}function G9(t){return function(){this.removeAttribute(t)}}function Y9(t){return function(){this.removeAttributeNS(t.space,t.local)}}function W9(t,e){return function(){this.setAttribute(t,e)}}function V9(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function X9(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Q9(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Z9(t,e){var r=cp(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?Y9:G9:typeof e=="function"?r.local?Q9:X9:r.local?V9:W9)(r,e))}function pO(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function K9(t){return function(){this.style.removeProperty(t)}}function J9(t,e,r){return function(){this.style.setProperty(t,e,r)}}function t7(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function e7(t,e,r){return arguments.length>1?this.each((e==null?K9:typeof e=="function"?t7:J9)(t,e,r??"")):Ml(this.node(),t)}function Ml(t,e){return t.style.getPropertyValue(e)||pO(t).getComputedStyle(t,null).getPropertyValue(e)}function r7(t){return function(){delete this[t]}}function i7(t,e){return function(){this[t]=e}}function n7(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function a7(t,e){return arguments.length>1?this.each((e==null?r7:typeof e=="function"?n7:i7)(t,e)):this.node()[t]}function gO(t){return t.trim().split(/^|\s+/)}function H2(t){return t.classList||new mO(t)}function mO(t){this._node=t,this._names=gO(t.getAttribute("class")||"")}mO.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function yO(t,e){for(var r=H2(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function xO(t,e){for(var r=H2(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function s7(t){return function(){yO(this,t)}}function o7(t){return function(){xO(this,t)}}function l7(t,e){return function(){(e.apply(this,arguments)?yO:xO)(this,t)}}function c7(t,e){var r=gO(t+"");if(arguments.length<2){for(var i=H2(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof e=="function"?l7:e?s7:o7)(r,e))}function u7(){this.textContent=""}function h7(t){return function(){this.textContent=t}}function f7(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function d7(t){return arguments.length?this.each(t==null?u7:(typeof t=="function"?f7:h7)(t)):this.node().textContent}function p7(){this.innerHTML=""}function g7(t){return function(){this.innerHTML=t}}function m7(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function y7(t){return arguments.length?this.each(t==null?p7:(typeof t=="function"?m7:g7)(t)):this.node().innerHTML}function x7(){this.nextSibling&&this.parentNode.appendChild(this)}function b7(){return this.each(x7)}function v7(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function C7(){return this.each(v7)}function w7(t){var e=typeof t=="function"?t:cO(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function S7(){return null}function k7(t,e){var r=typeof t=="function"?t:cO(t),i=e==null?S7:typeof e=="function"?e:P2(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function _7(){var t=this.parentNode;t&&t.removeChild(this)}function T7(){return this.each(_7)}function E7(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function A7(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function B7(t){return this.select(t?A7:E7)}function L7(t){return arguments.length?this.property("__data__",t):this.node().__data__}function M7(t){return function(e){t.call(this,e,this.__data__)}}function N7(t){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function O7(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,n=e.length,s;r<n;++r)s=e[r],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function R7(t,e,r){return function(){var i=this.__on,n,s=M7(e);if(i){for(var o=0,c=i.length;o<c;++o)if((n=i[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=e;return}}this.addEventListener(t.type,s,r),n={type:t.type,name:t.name,value:e,listener:s,options:r},i?i.push(n):this.__on=[n]}}function D7(t,e,r){var i=N7(t+""),n,s=i.length,o;if(arguments.length<2){var c=this.node().__on;if(c){for(var u=0,h=c.length,f;u<h;++u)for(n=0,f=c[u];n<s;++n)if((o=i[n]).type===f.type&&o.name===f.name)return f.value}return}for(c=e?R7:O7,n=0;n<s;++n)this.each(c(i[n],e,r));return this}function bO(t,e,r){var i=pO(t),n=i.CustomEvent;typeof n=="function"?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function F7(t,e){return function(){return bO(this,t,e)}}function I7(t,e){return function(){return bO(this,t,e.apply(this,arguments))}}function q7(t,e){return this.each((typeof e=="function"?I7:F7)(t,e))}function*z7(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,s=i.length,o;n<s;++n)(o=i[n])&&(yield o)}var vO=[null];function Li(t,e){this._groups=t,this._parents=e}function eh(){return new Li([[document.documentElement]],vO)}function j7(){return this}Li.prototype=eh.prototype={constructor:Li,select:f9,selectAll:m9,selectChild:v9,selectChildren:k9,filter:_9,data:M9,enter:T9,exit:O9,join:R9,merge:D9,selection:j7,order:F9,sort:I9,call:z9,nodes:j9,node:$9,size:P9,empty:H9,each:U9,attr:Z9,style:e7,property:a7,classed:c7,text:d7,html:y7,raise:b7,lower:C7,append:w7,insert:k7,remove:T7,clone:B7,datum:L7,on:D7,dispatch:q7,[Symbol.iterator]:z7};function Ut(t){return typeof t=="string"?new Li([[document.querySelector(t)]],[document.documentElement]):new Li([[t]],vO)}function $7(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ki(t,e){if(t=$7(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();return[t.clientX-n.left-e.clientLeft,t.clientY-n.top-e.clientTop]}}return[t.pageX,t.pageY]}const P7={passive:!1},Ru={capture:!0,passive:!1};function g0(t){t.stopImmediatePropagation()}function hl(t){t.preventDefault(),t.stopImmediatePropagation()}function CO(t){var e=t.document.documentElement,r=Ut(t).on("dragstart.drag",hl,Ru);"onselectstart"in e?r.on("selectstart.drag",hl,Ru):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function wO(t,e){var r=t.document.documentElement,i=Ut(t).on("dragstart.drag",null);e&&(i.on("click.drag",hl,Ru),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Ff=t=>()=>t;function SC(t,{sourceEvent:e,subject:r,target:i,identifier:n,active:s,x:o,y:c,dx:u,dy:h,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:n,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:f}})}SC.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function H7(t){return!t.ctrlKey&&!t.button}function U7(){return this.parentNode}function G7(t,e){return e??{x:t.x,y:t.y}}function Y7(){return navigator.maxTouchPoints||"ontouchstart"in this}function SO(){var t=H7,e=U7,r=G7,i=Y7,n={},s=lp("start","drag","end"),o=0,c,u,h,f,p=0;function m(E){E.on("mousedown.drag",g).filter(i).on("touchstart.drag",b).on("touchmove.drag",w,P7).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(E,L){if(!(f||!t.call(this,E,L))){var A=S(this,e.call(this,E,L),E,L,"mouse");A&&(Ut(E.view).on("mousemove.drag",x,Ru).on("mouseup.drag",v,Ru),CO(E.view),g0(E),h=!1,c=E.clientX,u=E.clientY,A("start",E))}}function x(E){if(hl(E),!h){var L=E.clientX-c,A=E.clientY-u;h=L*L+A*A>p}n.mouse("drag",E)}function v(E){Ut(E.view).on("mousemove.drag mouseup.drag",null),wO(E.view,h),hl(E),n.mouse("end",E)}function b(E,L){if(t.call(this,E,L)){var A=E.changedTouches,R=e.call(this,E,L),j=A.length,Y,W;for(Y=0;Y<j;++Y)(W=S(this,R,E,L,A[Y].identifier,A[Y]))&&(g0(E),W("start",E,A[Y]))}}function w(E){var L=E.changedTouches,A=L.length,R,j;for(R=0;R<A;++R)(j=n[L[R].identifier])&&(hl(E),j("drag",E,L[R]))}function _(E){var L=E.changedTouches,A=L.length,R,j;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),R=0;R<A;++R)(j=n[L[R].identifier])&&(g0(E),j("end",E,L[R]))}function S(E,L,A,R,j,Y){var W=s.copy(),O=Ki(Y||A,L),z,X,M;if((M=r.call(E,new SC("beforestart",{sourceEvent:A,target:m,identifier:j,active:o,x:O[0],y:O[1],dx:0,dy:0,dispatch:W}),R))!=null)return z=M.x-O[0]||0,X=M.y-O[1]||0,function F(N,P,$){var q=O,I;switch(N){case"start":n[j]=F,I=o++;break;case"end":delete n[j],--o;case"drag":O=Ki($||P,L),I=o;break}W.call(N,E,new SC(N,{sourceEvent:P,subject:M,target:m,identifier:j,active:I,x:O[0]+z,y:O[1]+X,dx:O[0]-q[0],dy:O[1]-q[1],dispatch:W}),R)}}return m.filter=function(E){return arguments.length?(t=typeof E=="function"?E:Ff(!!E),m):t},m.container=function(E){return arguments.length?(e=typeof E=="function"?E:Ff(E),m):e},m.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Ff(E),m):r},m.touchable=function(E){return arguments.length?(i=typeof E=="function"?E:Ff(!!E),m):i},m.on=function(){var E=s.on.apply(s,arguments);return E===s?m:E},m.clickDistance=function(E){return arguments.length?(p=(E=+E)*E,m):Math.sqrt(p)},m}function U2(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function kO(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function rh(){}var Du=.7,kd=1/Du,fl="\\s*([+-]?\\d+)\\s*",Fu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",W7=/^#([0-9a-f]{3,8})$/,V7=new RegExp(`^rgb\\(${fl},${fl},${fl}\\)$`),X7=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),Q7=new RegExp(`^rgba\\(${fl},${fl},${fl},${Fu}\\)$`),Z7=new RegExp(`^rgba\\(${En},${En},${En},${Fu}\\)$`),K7=new RegExp(`^hsl\\(${Fu},${En},${En}\\)$`),J7=new RegExp(`^hsla\\(${Fu},${En},${En},${Fu}\\)$`),LE={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};U2(rh,Ws,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ME,formatHex:ME,formatHex8:tH,formatHsl:eH,formatRgb:NE,toString:NE});function ME(){return this.rgb().formatHex()}function tH(){return this.rgb().formatHex8()}function eH(){return _O(this).formatHsl()}function NE(){return this.rgb().formatRgb()}function Ws(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=W7.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?OE(e):r===3?new pi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?If(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?If(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=V7.exec(t))?new pi(e[1],e[2],e[3],1):(e=X7.exec(t))?new pi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Q7.exec(t))?If(e[1],e[2],e[3],e[4]):(e=Z7.exec(t))?If(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=K7.exec(t))?FE(e[1],e[2]/100,e[3]/100,1):(e=J7.exec(t))?FE(e[1],e[2]/100,e[3]/100,e[4]):LE.hasOwnProperty(t)?OE(LE[t]):t==="transparent"?new pi(NaN,NaN,NaN,0):null}function OE(t){return new pi(t>>16&255,t>>8&255,t&255,1)}function If(t,e,r,i){return i<=0&&(t=e=r=NaN),new pi(t,e,r,i)}function rH(t){return t instanceof rh||(t=Ws(t)),t?(t=t.rgb(),new pi(t.r,t.g,t.b,t.opacity)):new pi}function kC(t,e,r,i){return arguments.length===1?rH(t):new pi(t,e,r,i??1)}function pi(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}U2(pi,kC,kO(rh,{brighter(t){return t=t==null?kd:Math.pow(kd,t),new pi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Du:Math.pow(Du,t),new pi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pi(Us(this.r),Us(this.g),Us(this.b),_d(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:RE,formatHex:RE,formatHex8:iH,formatRgb:DE,toString:DE}));function RE(){return`#${js(this.r)}${js(this.g)}${js(this.b)}`}function iH(){return`#${js(this.r)}${js(this.g)}${js(this.b)}${js((isNaN(this.opacity)?1:this.opacity)*255)}`}function DE(){const t=_d(this.opacity);return`${t===1?"rgb(":"rgba("}${Us(this.r)}, ${Us(this.g)}, ${Us(this.b)}${t===1?")":`, ${t})`}`}function _d(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Us(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function js(t){return t=Us(t),(t<16?"0":"")+t.toString(16)}function FE(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new en(t,e,r,i)}function _O(t){if(t instanceof en)return new en(t.h,t.s,t.l,t.opacity);if(t instanceof rh||(t=Ws(t)),!t)return new en;if(t instanceof en)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),s=Math.max(e,r,i),o=NaN,c=s-n,u=(s+n)/2;return c?(e===s?o=(r-i)/c+(r<i)*6:r===s?o=(i-e)/c+2:o=(e-r)/c+4,c/=u<.5?s+n:2-s-n,o*=60):c=u>0&&u<1?0:o,new en(o,c,u,t.opacity)}function nH(t,e,r,i){return arguments.length===1?_O(t):new en(t,e,r,i??1)}function en(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}U2(en,nH,kO(rh,{brighter(t){return t=t==null?kd:Math.pow(kd,t),new en(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Du:Math.pow(Du,t),new en(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new pi(m0(t>=240?t-240:t+120,n,i),m0(t,n,i),m0(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new en(IE(this.h),qf(this.s),qf(this.l),_d(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=_d(this.opacity);return`${t===1?"hsl(":"hsla("}${IE(this.h)}, ${qf(this.s)*100}%, ${qf(this.l)*100}%${t===1?")":`, ${t})`}`}}));function IE(t){return t=(t||0)%360,t<0?t+360:t}function qf(t){return Math.max(0,Math.min(1,t||0))}function m0(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const up=t=>()=>t;function TO(t,e){return function(r){return t+r*e}}function aH(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function Idt(t,e){var r=e-t;return r?TO(t,r>180||r<-180?r-360*Math.round(r/360):r):up(isNaN(t)?e:t)}function sH(t){return(t=+t)==1?EO:function(e,r){return r-e?aH(e,r,t):up(isNaN(e)?r:e)}}function EO(t,e){var r=e-t;return r?TO(t,r):up(isNaN(t)?e:t)}const Td=(function t(e){var r=sH(e);function i(n,s){var o=r((n=kC(n)).r,(s=kC(s)).r),c=r(n.g,s.g),u=r(n.b,s.b),h=EO(n.opacity,s.opacity);return function(f){return n.r=o(f),n.g=c(f),n.b=u(f),n.opacity=h(f),n+""}}return i.gamma=t,i})(1);function oH(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,i=e.slice(),n;return function(s){for(n=0;n<r;++n)i[n]=t[n]*(1-s)+e[n]*s;return i}}function lH(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function cH(t,e){var r=e?e.length:0,i=t?Math.min(r,t.length):0,n=new Array(i),s=new Array(r),o;for(o=0;o<i;++o)n[o]=Su(t[o],e[o]);for(;o<r;++o)s[o]=e[o];return function(c){for(o=0;o<i;++o)s[o]=n[o](c);return s}}function uH(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}function _n(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function hH(t,e){var r={},i={},n;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(n in e)n in t?r[n]=Su(t[n],e[n]):i[n]=e[n];return function(s){for(n in r)i[n]=r[n](s);return i}}var _C=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y0=new RegExp(_C.source,"g");function fH(t){return function(){return t}}function dH(t){return function(e){return t(e)+""}}function AO(t,e){var r=_C.lastIndex=y0.lastIndex=0,i,n,s,o=-1,c=[],u=[];for(t=t+"",e=e+"";(i=_C.exec(t))&&(n=y0.exec(e));)(s=n.index)>r&&(s=e.slice(r,s),c[o]?c[o]+=s:c[++o]=s),(i=i[0])===(n=n[0])?c[o]?c[o]+=n:c[++o]=n:(c[++o]=null,u.push({i:o,x:_n(i,n)})),r=y0.lastIndex;return r<e.length&&(s=e.slice(r),c[o]?c[o]+=s:c[++o]=s),c.length<2?u[0]?dH(u[0].x):fH(e):(e=u.length,function(h){for(var f=0,p;f<e;++f)c[(p=u[f]).i]=p.x(h);return c.join("")})}function Su(t,e){var r=typeof e,i;return e==null||r==="boolean"?up(e):(r==="number"?_n:r==="string"?(i=Ws(e))?(e=i,Td):AO:e instanceof Ws?Td:e instanceof Date?uH:lH(e)?oH:Array.isArray(e)?cH:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?hH:_n)(t,e)}var qE=180/Math.PI,TC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function BO(t,e,r,i,n,s){var o,c,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*r+e*i)&&(r-=t*u,i-=e*u),(c=Math.sqrt(r*r+i*i))&&(r/=c,i/=c,u/=c),t*i<e*r&&(t=-t,e=-e,u=-u,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*qE,skewX:Math.atan(u)*qE,scaleX:o,scaleY:c}}var zf;function pH(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?TC:BO(e.a,e.b,e.c,e.d,e.e,e.f)}function gH(t){return t==null||(zf||(zf=document.createElementNS("http://www.w3.org/2000/svg","g")),zf.setAttribute("transform",t),!(t=zf.transform.baseVal.consolidate()))?TC:(t=t.matrix,BO(t.a,t.b,t.c,t.d,t.e,t.f))}function LO(t,e,r,i){function n(h){return h.length?h.pop()+" ":""}function s(h,f,p,m,g,x){if(h!==p||f!==m){var v=g.push("translate(",null,e,null,r);x.push({i:v-4,x:_n(h,p)},{i:v-2,x:_n(f,m)})}else(p||m)&&g.push("translate("+p+e+m+r)}function o(h,f,p,m){h!==f?(h-f>180?f+=360:f-h>180&&(h+=360),m.push({i:p.push(n(p)+"rotate(",null,i)-2,x:_n(h,f)})):f&&p.push(n(p)+"rotate("+f+i)}function c(h,f,p,m){h!==f?m.push({i:p.push(n(p)+"skewX(",null,i)-2,x:_n(h,f)}):f&&p.push(n(p)+"skewX("+f+i)}function u(h,f,p,m,g,x){if(h!==p||f!==m){var v=g.push(n(g)+"scale(",null,",",null,")");x.push({i:v-4,x:_n(h,p)},{i:v-2,x:_n(f,m)})}else(p!==1||m!==1)&&g.push(n(g)+"scale("+p+","+m+")")}return function(h,f){var p=[],m=[];return h=t(h),f=t(f),s(h.translateX,h.translateY,f.translateX,f.translateY,p,m),o(h.rotate,f.rotate,p,m),c(h.skewX,f.skewX,p,m),u(h.scaleX,h.scaleY,f.scaleX,f.scaleY,p,m),h=f=null,function(g){for(var x=-1,v=m.length,b;++x<v;)p[(b=m[x]).i]=b.x(g);return p.join("")}}}var mH=LO(pH,"px, ","px)","deg)"),yH=LO(gH,", ",")",")"),xH=1e-12;function zE(t){return((t=Math.exp(t))+1/t)/2}function bH(t){return((t=Math.exp(t))-1/t)/2}function vH(t){return((t=Math.exp(2*t))-1)/(t+1)}const sd=(function t(e,r,i){function n(s,o){var c=s[0],u=s[1],h=s[2],f=o[0],p=o[1],m=o[2],g=f-c,x=p-u,v=g*g+x*x,b,w;if(v<xH)w=Math.log(m/h)/e,b=function(R){return[c+R*g,u+R*x,h*Math.exp(e*R*w)]};else{var _=Math.sqrt(v),S=(m*m-h*h+i*v)/(2*h*r*_),E=(m*m-h*h-i*v)/(2*m*r*_),L=Math.log(Math.sqrt(S*S+1)-S),A=Math.log(Math.sqrt(E*E+1)-E);w=(A-L)/e,b=function(R){var j=R*w,Y=zE(L),W=h/(r*_)*(Y*vH(e*j+L)-bH(L));return[c+W*g,u+W*x,h*Y/zE(e*j+L)]}}return b.duration=w*1e3*e/Math.SQRT2,b}return n.rho=function(s){var o=Math.max(.001,+s),c=o*o,u=c*c;return t(o,c,u)},n})(Math.SQRT2,2,4);var Nl=0,fu=0,Qc=0,MO=1e3,Ed,du,Ad=0,Vs=0,hp=0,Iu=typeof performance=="object"&&performance.now?performance:Date,NO=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function G2(){return Vs||(NO(CH),Vs=Iu.now()+hp)}function CH(){Vs=0}function Bd(){this._call=this._time=this._next=null}Bd.prototype=OO.prototype={constructor:Bd,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?G2():+r)+(e==null?0:+e),!this._next&&du!==this&&(du?du._next=this:Ed=this,du=this),this._call=t,this._time=r,EC()},stop:function(){this._call&&(this._call=null,this._time=1/0,EC())}};function OO(t,e,r){var i=new Bd;return i.restart(t,e,r),i}function wH(){G2(),++Nl;for(var t=Ed,e;t;)(e=Vs-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Nl}function jE(){Vs=(Ad=Iu.now())+hp,Nl=fu=0;try{wH()}finally{Nl=0,kH(),Vs=0}}function SH(){var t=Iu.now(),e=t-Ad;e>MO&&(hp-=e,Ad=t)}function kH(){for(var t,e=Ed,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ed=r);du=t,EC(i)}function EC(t){if(!Nl){fu&&(fu=clearTimeout(fu));var e=t-Vs;e>24?(t<1/0&&(fu=setTimeout(jE,t-Iu.now()-hp)),Qc&&(Qc=clearInterval(Qc))):(Qc||(Ad=Iu.now(),Qc=setInterval(SH,MO)),Nl=1,NO(jE))}}function $E(t,e,r){var i=new Bd;return e=e==null?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,r),i}var _H=lp("start","end","cancel","interrupt"),TH=[],RO=0,PE=1,AC=2,od=3,HE=4,BC=5,ld=6;function fp(t,e,r,i,n,s){var o=t.__transition;if(!o)t.__transition={};else if(r in o)return;EH(t,r,{name:e,index:i,group:n,on:_H,tween:TH,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:RO})}function Y2(t,e){var r=un(t,e);if(r.state>RO)throw new Error("too late; already scheduled");return r}function Nn(t,e){var r=un(t,e);if(r.state>od)throw new Error("too late; already running");return r}function un(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function EH(t,e,r){var i=t.__transition,n;i[e]=r,r.timer=OO(s,0,r.time);function s(h){r.state=PE,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}function o(h){var f,p,m,g;if(r.state!==PE)return u();for(f in i)if(g=i[f],g.name===r.name){if(g.state===od)return $E(o);g.state===HE?(g.state=ld,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete i[f]):+f<e&&(g.state=ld,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete i[f])}if($E(function(){r.state===od&&(r.state=HE,r.timer.restart(c,r.delay,r.time),c(h))}),r.state=AC,r.on.call("start",t,t.__data__,r.index,r.group),r.state===AC){for(r.state=od,n=new Array(m=r.tween.length),f=0,p=-1;f<m;++f)(g=r.tween[f].value.call(t,t.__data__,r.index,r.group))&&(n[++p]=g);n.length=p+1}}function c(h){for(var f=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(u),r.state=BC,1),p=-1,m=n.length;++p<m;)n[p].call(t,f);r.state===BC&&(r.on.call("end",t,t.__data__,r.index,r.group),u())}function u(){r.state=ld,r.timer.stop(),delete i[e];for(var h in i)return;delete t.__transition}}function cd(t,e){var r=t.__transition,i,n,s=!0,o;if(r){e=e==null?null:e+"";for(o in r){if((i=r[o]).name!==e){s=!1;continue}n=i.state>AC&&i.state<BC,i.state=ld,i.timer.stop(),i.on.call(n?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[o]}s&&delete t.__transition}}function AH(t){return this.each(function(){cd(this,t)})}function BH(t,e){var r,i;return function(){var n=Nn(this,t),s=n.tween;if(s!==r){i=r=s;for(var o=0,c=i.length;o<c;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function LH(t,e,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=Nn(this,t),o=s.tween;if(o!==i){n=(i=o).slice();for(var c={name:e,value:r},u=0,h=n.length;u<h;++u)if(n[u].name===e){n[u]=c;break}u===h&&n.push(c)}s.tween=n}}function MH(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i=un(this.node(),r).tween,n=0,s=i.length,o;n<s;++n)if((o=i[n]).name===t)return o.value;return null}return this.each((e==null?BH:LH)(r,t,e))}function W2(t,e,r){var i=t._id;return t.each(function(){var n=Nn(this,i);(n.value||(n.value={}))[e]=r.apply(this,arguments)}),function(n){return un(n,i).value[e]}}function DO(t,e){var r;return(typeof e=="number"?_n:e instanceof Ws?Td:(r=Ws(e))?(e=r,Td):AO)(t,e)}function NH(t){return function(){this.removeAttribute(t)}}function OH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function RH(t,e,r){var i,n=r+"",s;return function(){var o=this.getAttribute(t);return o===n?null:o===i?s:s=e(i=o,r)}}function DH(t,e,r){var i,n=r+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===i?s:s=e(i=o,r)}}function FH(t,e,r){var i,n,s;return function(){var o,c=r(this),u;return c==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=c+"",o===u?null:o===i&&u===n?s:(n=u,s=e(i=o,c)))}}function IH(t,e,r){var i,n,s;return function(){var o,c=r(this),u;return c==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=c+"",o===u?null:o===i&&u===n?s:(n=u,s=e(i=o,c)))}}function qH(t,e){var r=cp(t),i=r==="transform"?yH:DO;return this.attrTween(t,typeof e=="function"?(r.local?IH:FH)(r,i,W2(this,"attr."+t,e)):e==null?(r.local?OH:NH)(r):(r.local?DH:RH)(r,i,e))}function zH(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function jH(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function $H(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&jH(t,s)),r}return n._value=e,n}function PH(t,e){var r,i;function n(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&zH(t,s)),r}return n._value=e,n}function HH(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var i=cp(t);return this.tween(r,(i.local?$H:PH)(i,e))}function UH(t,e){return function(){Y2(this,t).delay=+e.apply(this,arguments)}}function GH(t,e){return e=+e,function(){Y2(this,t).delay=e}}function YH(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?UH:GH)(e,t)):un(this.node(),e).delay}function WH(t,e){return function(){Nn(this,t).duration=+e.apply(this,arguments)}}function VH(t,e){return e=+e,function(){Nn(this,t).duration=e}}function XH(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?WH:VH)(e,t)):un(this.node(),e).duration}function QH(t,e){if(typeof e!="function")throw new Error;return function(){Nn(this,t).ease=e}}function ZH(t){var e=this._id;return arguments.length?this.each(QH(e,t)):un(this.node(),e).ease}function KH(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Nn(this,t).ease=r}}function JH(t){if(typeof t!="function")throw new Error;return this.each(KH(this._id,t))}function tU(t){typeof t!="function"&&(t=hO(t));for(var e=this._groups,r=e.length,i=new Array(r),n=0;n<r;++n)for(var s=e[n],o=s.length,c=i[n]=[],u,h=0;h<o;++h)(u=s[h])&&t.call(u,u.__data__,h,s)&&c.push(u);return new ca(i,this._parents,this._name,this._id)}function eU(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,i=e.length,n=r.length,s=Math.min(i,n),o=new Array(i),c=0;c<s;++c)for(var u=e[c],h=r[c],f=u.length,p=o[c]=new Array(f),m,g=0;g<f;++g)(m=u[g]||h[g])&&(p[g]=m);for(;c<i;++c)o[c]=e[c];return new ca(o,this._parents,this._name,this._id)}function rU(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function iU(t,e,r){var i,n,s=rU(e)?Y2:Nn;return function(){var o=s(this,t),c=o.on;c!==i&&(n=(i=c).copy()).on(e,r),o.on=n}}function nU(t,e){var r=this._id;return arguments.length<2?un(this.node(),r).on.on(t):this.each(iU(r,t,e))}function aU(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function sU(){return this.on("end.remove",aU(this._id))}function oU(t){var e=this._name,r=this._id;typeof t!="function"&&(t=P2(t));for(var i=this._groups,n=i.length,s=new Array(n),o=0;o<n;++o)for(var c=i[o],u=c.length,h=s[o]=new Array(u),f,p,m=0;m<u;++m)(f=c[m])&&(p=t.call(f,f.__data__,m,c))&&("__data__"in f&&(p.__data__=f.__data__),h[m]=p,fp(h[m],e,r,m,h,un(f,r)));return new ca(s,this._parents,e,r)}function lU(t){var e=this._name,r=this._id;typeof t!="function"&&(t=uO(t));for(var i=this._groups,n=i.length,s=[],o=[],c=0;c<n;++c)for(var u=i[c],h=u.length,f,p=0;p<h;++p)if(f=u[p]){for(var m=t.call(f,f.__data__,p,u),g,x=un(f,r),v=0,b=m.length;v<b;++v)(g=m[v])&&fp(g,e,r,v,m,x);s.push(m),o.push(f)}return new ca(s,o,e,r)}var cU=eh.prototype.constructor;function uU(){return new cU(this._groups,this._parents)}function hU(t,e){var r,i,n;return function(){var s=Ml(this,t),o=(this.style.removeProperty(t),Ml(this,t));return s===o?null:s===r&&o===i?n:n=e(r=s,i=o)}}function FO(t){return function(){this.style.removeProperty(t)}}function fU(t,e,r){var i,n=r+"",s;return function(){var o=Ml(this,t);return o===n?null:o===i?s:s=e(i=o,r)}}function dU(t,e,r){var i,n,s;return function(){var o=Ml(this,t),c=r(this),u=c+"";return c==null&&(u=c=(this.style.removeProperty(t),Ml(this,t))),o===u?null:o===i&&u===n?s:(n=u,s=e(i=o,c))}}function pU(t,e){var r,i,n,s="style."+e,o="end."+s,c;return function(){var u=Nn(this,t),h=u.on,f=u.value[s]==null?c||(c=FO(e)):void 0;(h!==r||n!==f)&&(i=(r=h).copy()).on(o,n=f),u.on=i}}function gU(t,e,r){var i=(t+="")=="transform"?mH:DO;return e==null?this.styleTween(t,hU(t,i)).on("end.style."+t,FO(t)):typeof e=="function"?this.styleTween(t,dU(t,i,W2(this,"style."+t,e))).each(pU(this._id,t)):this.styleTween(t,fU(t,i,e),r).on("end.style."+t,null)}function mU(t,e,r){return function(i){this.style.setProperty(t,e.call(this,i),r)}}function yU(t,e,r){var i,n;function s(){var o=e.apply(this,arguments);return o!==n&&(i=(n=o)&&mU(t,o,r)),i}return s._value=e,s}function xU(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,yU(t,e,r??""))}function bU(t){return function(){this.textContent=t}}function vU(t){return function(){var e=t(this);this.textContent=e??""}}function CU(t){return this.tween("text",typeof t=="function"?vU(W2(this,"text",t)):bU(t==null?"":t+""))}function wU(t){return function(e){this.textContent=t.call(this,e)}}function SU(t){var e,r;function i(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&wU(n)),e}return i._value=t,i}function kU(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,SU(t))}function _U(){for(var t=this._name,e=this._id,r=IO(),i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],c=o.length,u,h=0;h<c;++h)if(u=o[h]){var f=un(u,e);fp(u,t,r,h,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new ca(i,this._parents,t,r)}function TU(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(s,o){var c={value:o},u={value:function(){--n===0&&s()}};r.each(function(){var h=Nn(this,i),f=h.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(c),e._.interrupt.push(c),e._.end.push(u)),h.on=e}),n===0&&s()})}var EU=0;function ca(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}function IO(){return++EU}var ra=eh.prototype;ca.prototype={constructor:ca,select:oU,selectAll:lU,selectChild:ra.selectChild,selectChildren:ra.selectChildren,filter:tU,merge:eU,selection:uU,transition:_U,call:ra.call,nodes:ra.nodes,node:ra.node,size:ra.size,empty:ra.empty,each:ra.each,on:nU,attr:qH,attrTween:HH,style:gU,styleTween:xU,text:CU,textTween:kU,remove:sU,tween:MH,delay:YH,duration:XH,ease:ZH,easeVarying:JH,end:TU,[Symbol.iterator]:ra[Symbol.iterator]};function AU(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var BU={time:null,delay:0,duration:250,ease:AU};function LU(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function MU(t){var e,r;t instanceof ca?(e=t._id,t=t._name):(e=IO(),(r=BU).time=G2(),t=t==null?null:t+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],c=o.length,u,h=0;h<c;++h)(u=o[h])&&fp(u,t,e,h,o,r||LU(u,e));return new ca(i,this._parents,t,e)}eh.prototype.interrupt=AH;eh.prototype.transition=MU;const jf=t=>()=>t;function NU(t,{sourceEvent:e,target:r,transform:i,dispatch:n}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:n}})}function sa(t,e,r){this.k=t,this.x=e,this.y=r}sa.prototype={constructor:sa,scale:function(t){return t===1?this:new sa(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new sa(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dp=new sa(1,0,0);qO.prototype=sa.prototype;function qO(t){for(;!t.__zoom;)if(!(t=t.parentNode))return dp;return t.__zoom}function x0(t){t.stopImmediatePropagation()}function Zc(t){t.preventDefault(),t.stopImmediatePropagation()}function OU(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function RU(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function UE(){return this.__zoom||dp}function DU(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function FU(){return navigator.maxTouchPoints||"ontouchstart"in this}function IU(t,e,r){var i=t.invertX(e[0][0])-r[0][0],n=t.invertX(e[1][0])-r[1][0],s=t.invertY(e[0][1])-r[0][1],o=t.invertY(e[1][1])-r[1][1];return t.translate(n>i?(i+n)/2:Math.min(0,i)||Math.max(0,n),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function zO(){var t=OU,e=RU,r=IU,i=DU,n=FU,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],c=250,u=sd,h=lp("start","zoom","end"),f,p,m,g=500,x=150,v=0,b=10;function w(M){M.property("__zoom",UE).on("wheel.zoom",j,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",W).filter(n).on("touchstart.zoom",O).on("touchmove.zoom",z).on("touchend.zoom touchcancel.zoom",X).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(M,F,N,P){var $=M.selection?M.selection():M;$.property("__zoom",UE),M!==$?L(M,F,N,P):$.interrupt().each(function(){A(this,arguments).event(P).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},w.scaleBy=function(M,F,N,P){w.scaleTo(M,function(){var $=this.__zoom.k,q=typeof F=="function"?F.apply(this,arguments):F;return $*q},N,P)},w.scaleTo=function(M,F,N,P){w.transform(M,function(){var $=e.apply(this,arguments),q=this.__zoom,I=N==null?E($):typeof N=="function"?N.apply(this,arguments):N,G=q.invert(I),Z=typeof F=="function"?F.apply(this,arguments):F;return r(S(_(q,Z),I,G),$,o)},N,P)},w.translateBy=function(M,F,N,P){w.transform(M,function(){return r(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof N=="function"?N.apply(this,arguments):N),e.apply(this,arguments),o)},null,P)},w.translateTo=function(M,F,N,P,$){w.transform(M,function(){var q=e.apply(this,arguments),I=this.__zoom,G=P==null?E(q):typeof P=="function"?P.apply(this,arguments):P;return r(dp.translate(G[0],G[1]).scale(I.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof N=="function"?-N.apply(this,arguments):-N),q,o)},P,$)};function _(M,F){return F=Math.max(s[0],Math.min(s[1],F)),F===M.k?M:new sa(F,M.x,M.y)}function S(M,F,N){var P=F[0]-N[0]*M.k,$=F[1]-N[1]*M.k;return P===M.x&&$===M.y?M:new sa(M.k,P,$)}function E(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function L(M,F,N,P){M.on("start.zoom",function(){A(this,arguments).event(P).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(P).end()}).tween("zoom",function(){var $=this,q=arguments,I=A($,q).event(P),G=e.apply($,q),Z=N==null?E(G):typeof N=="function"?N.apply($,q):N,H=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),Q=$.__zoom,J=typeof F=="function"?F.apply($,q):F,tt=u(Q.invert(Z).concat(H/Q.k),J.invert(Z).concat(H/J.k));return function(K){if(K===1)K=J;else{var nt=tt(K),ct=H/nt[2];K=new sa(ct,Z[0]-nt[0]*ct,Z[1]-nt[1]*ct)}I.zoom(null,K)}})}function A(M,F,N){return!N&&M.__zooming||new R(M,F)}function R(M,F){this.that=M,this.args=F,this.active=0,this.sourceEvent=null,this.extent=e.apply(M,F),this.taps=0}R.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,F){return this.mouse&&M!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var F=Ut(this.that).datum();h.call(M,this.that,new NU(M,{sourceEvent:this.sourceEvent,target:w,transform:this.that.__zoom,dispatch:h}),F)}};function j(M,...F){if(!t.apply(this,arguments))return;var N=A(this,F).event(M),P=this.__zoom,$=Math.max(s[0],Math.min(s[1],P.k*Math.pow(2,i.apply(this,arguments)))),q=Ki(M);if(N.wheel)(N.mouse[0][0]!==q[0]||N.mouse[0][1]!==q[1])&&(N.mouse[1]=P.invert(N.mouse[0]=q)),clearTimeout(N.wheel);else{if(P.k===$)return;N.mouse=[q,P.invert(q)],cd(this),N.start()}Zc(M),N.wheel=setTimeout(I,x),N.zoom("mouse",r(S(_(P,$),N.mouse[0],N.mouse[1]),N.extent,o));function I(){N.wheel=null,N.end()}}function Y(M,...F){if(m||!t.apply(this,arguments))return;var N=M.currentTarget,P=A(this,F,!0).event(M),$=Ut(M.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",H,!0),q=Ki(M,N),I=M.clientX,G=M.clientY;CO(M.view),x0(M),P.mouse=[q,this.__zoom.invert(q)],cd(this),P.start();function Z(Q){if(Zc(Q),!P.moved){var J=Q.clientX-I,tt=Q.clientY-G;P.moved=J*J+tt*tt>v}P.event(Q).zoom("mouse",r(S(P.that.__zoom,P.mouse[0]=Ki(Q,N),P.mouse[1]),P.extent,o))}function H(Q){$.on("mousemove.zoom mouseup.zoom",null),wO(Q.view,P.moved),Zc(Q),P.event(Q).end()}}function W(M,...F){if(t.apply(this,arguments)){var N=this.__zoom,P=Ki(M.changedTouches?M.changedTouches[0]:M,this),$=N.invert(P),q=N.k*(M.shiftKey?.5:2),I=r(S(_(N,q),P,$),e.apply(this,F),o);Zc(M),c>0?Ut(this).transition().duration(c).call(L,I,P,M):Ut(this).call(w.transform,I,P,M)}}function O(M,...F){if(t.apply(this,arguments)){var N=M.touches,P=N.length,$=A(this,F,M.changedTouches.length===P).event(M),q,I,G,Z;for(x0(M),I=0;I<P;++I)G=N[I],Z=Ki(G,this),Z=[Z,this.__zoom.invert(Z),G.identifier],$.touch0?!$.touch1&&$.touch0[2]!==Z[2]&&($.touch1=Z,$.taps=0):($.touch0=Z,q=!0,$.taps=1+!!f);f&&(f=clearTimeout(f)),q&&($.taps<2&&(p=Z[0],f=setTimeout(function(){f=null},g)),cd(this),$.start())}}function z(M,...F){if(this.__zooming){var N=A(this,F).event(M),P=M.changedTouches,$=P.length,q,I,G,Z;for(Zc(M),q=0;q<$;++q)I=P[q],G=Ki(I,this),N.touch0&&N.touch0[2]===I.identifier?N.touch0[0]=G:N.touch1&&N.touch1[2]===I.identifier&&(N.touch1[0]=G);if(I=N.that.__zoom,N.touch1){var H=N.touch0[0],Q=N.touch0[1],J=N.touch1[0],tt=N.touch1[1],K=(K=J[0]-H[0])*K+(K=J[1]-H[1])*K,nt=(nt=tt[0]-Q[0])*nt+(nt=tt[1]-Q[1])*nt;I=_(I,Math.sqrt(K/nt)),G=[(H[0]+J[0])/2,(H[1]+J[1])/2],Z=[(Q[0]+tt[0])/2,(Q[1]+tt[1])/2]}else if(N.touch0)G=N.touch0[0],Z=N.touch0[1];else return;N.zoom("touch",r(S(I,G,Z),N.extent,o))}}function X(M,...F){if(this.__zooming){var N=A(this,F).event(M),P=M.changedTouches,$=P.length,q,I;for(x0(M),m&&clearTimeout(m),m=setTimeout(function(){m=null},g),q=0;q<$;++q)I=P[q],N.touch0&&N.touch0[2]===I.identifier?delete N.touch0:N.touch1&&N.touch1[2]===I.identifier&&delete N.touch1;if(N.touch1&&!N.touch0&&(N.touch0=N.touch1,delete N.touch1),N.touch0)N.touch0[1]=this.__zoom.invert(N.touch0[0]);else if(N.end(),N.taps===2&&(I=Ki(I,this),Math.hypot(p[0]-I[0],p[1]-I[1])<b)){var G=Ut(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return w.wheelDelta=function(M){return arguments.length?(i=typeof M=="function"?M:jf(+M),w):i},w.filter=function(M){return arguments.length?(t=typeof M=="function"?M:jf(!!M),w):t},w.touchable=function(M){return arguments.length?(n=typeof M=="function"?M:jf(!!M),w):n},w.extent=function(M){return arguments.length?(e=typeof M=="function"?M:jf([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),w):e},w.scaleExtent=function(M){return arguments.length?(s[0]=+M[0],s[1]=+M[1],w):[s[0],s[1]]},w.translateExtent=function(M){return arguments.length?(o[0][0]=+M[0][0],o[1][0]=+M[1][0],o[0][1]=+M[0][1],o[1][1]=+M[1][1],w):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},w.constrain=function(M){return arguments.length?(r=M,w):r},w.duration=function(M){return arguments.length?(c=+M,w):c},w.interpolate=function(M){return arguments.length?(u=M,w):u},w.on=function(){var M=h.on.apply(h,arguments);return M===h?w:M},w.clickDistance=function(M){return arguments.length?(v=(M=+M)*M,w):Math.sqrt(v)},w.tapDistance=function(M){return arguments.length?(b=+M,w):b},w}const An={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:r,targetHandle:i})=>`Couldn't create edge for ${t} handle id: "${t==="source"?r:i}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},qu=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],jO=["Enter"," ","Escape"],$O={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:r})=>`Moved selected node ${t}. New position, x: ${e}, y: ${r}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Ol;(function(t){t.Strict="strict",t.Loose="loose"})(Ol||(Ol={}));var Gs;(function(t){t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal"})(Gs||(Gs={}));var zu;(function(t){t.Partial="partial",t.Full="full"})(zu||(zu={}));const PO={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Wa;(function(t){t.Bezier="default",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t.SimpleBezier="simplebezier"})(Wa||(Wa={}));var ju;(function(t){t.Arrow="arrow",t.ArrowClosed="arrowclosed"})(ju||(ju={}));var jt;(function(t){t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom"})(jt||(jt={}));const GE={[jt.Left]:jt.Right,[jt.Right]:jt.Left,[jt.Top]:jt.Bottom,[jt.Bottom]:jt.Top};function HO(t){return t===null?null:t?"valid":"invalid"}const UO=t=>"id"in t&&"source"in t&&"target"in t,qU=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),V2=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),ih=(t,e=[0,0])=>{const{width:r,height:i}=ha(t),n=t.origin??e,s=r*n[0],o=i*n[1];return{x:t.position.x-s,y:t.position.y-o}},zU=(t,e={nodeOrigin:[0,0]})=>{if(t.length===0)return{x:0,y:0,width:0,height:0};const r=t.reduce((i,n)=>{const s=typeof n=="string";let o=!e.nodeLookup&&!s?n:void 0;e.nodeLookup&&(o=s?e.nodeLookup.get(n):V2(n)?n:e.nodeLookup.get(n.id));const c=o?Ld(o,e.nodeOrigin):{x:0,y:0,x2:0,y2:0};return pp(i,c)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return gp(r)},nh=(t,e={})=>{let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0},i=!1;return t.forEach(n=>{(e.filter===void 0||e.filter(n))&&(r=pp(r,Ld(n)),i=!0)}),i?gp(r):{x:0,y:0,width:0,height:0}},X2=(t,e,[r,i,n]=[0,0,1],s=!1,o=!1)=>{const c={...sh(e,[r,i,n]),width:e.width/n,height:e.height/n},u=[];for(const h of t.values()){const{measured:f,selectable:p=!0,hidden:m=!1}=h;if(o&&!p||m)continue;const g=f.width??h.width??h.initialWidth??null,x=f.height??h.height??h.initialHeight??null,v=$u(c,Dl(h)),b=(g??0)*(x??0),w=s&&v>0;(!h.internals.handleBounds||w||v>=b||h.dragging)&&u.push(h)}return u},jU=(t,e)=>{const r=new Set;return t.forEach(i=>{r.add(i.id)}),e.filter(i=>r.has(i.source)||r.has(i.target))};function $U(t,e){const r=new Map,i=e!=null&&e.nodes?new Set(e.nodes.map(n=>n.id)):null;return t.forEach(n=>{n.measured.width&&n.measured.height&&((e==null?void 0:e.includeHiddenNodes)||!n.hidden)&&(!i||i.has(n.id))&&r.set(n.id,n)}),r}async function PU({nodes:t,width:e,height:r,panZoom:i,minZoom:n,maxZoom:s},o){if(t.size===0)return Promise.resolve(!0);const c=$U(t,o),u=nh(c),h=Q2(u,e,r,(o==null?void 0:o.minZoom)??n,(o==null?void 0:o.maxZoom)??s,(o==null?void 0:o.padding)??.1);return await i.setViewport(h,{duration:o==null?void 0:o.duration,ease:o==null?void 0:o.ease,interpolate:o==null?void 0:o.interpolate}),Promise.resolve(!0)}function GO({nodeId:t,nextPosition:e,nodeLookup:r,nodeOrigin:i=[0,0],nodeExtent:n,onError:s}){const o=r.get(t),c=o.parentId?r.get(o.parentId):void 0,{x:u,y:h}=c?c.internals.positionAbsolute:{x:0,y:0},f=o.origin??i;let p=o.extent||n;if(o.extent==="parent"&&!o.expandParent)if(!c)s==null||s("005",An.error005());else{const g=c.measured.width,x=c.measured.height;g&&x&&(p=[[u,h],[u+g,h+x]])}else c&&Fl(o.extent)&&(p=[[o.extent[0][0]+u,o.extent[0][1]+h],[o.extent[1][0]+u,o.extent[1][1]+h]]);const m=Fl(p)?Xs(e,p,o.measured):e;return(o.measured.width===void 0||o.measured.height===void 0)&&(s==null||s("015",An.error015())),{position:{x:m.x-u+(o.measured.width??0)*f[0],y:m.y-h+(o.measured.height??0)*f[1]},positionAbsolute:m}}async function HU({nodesToRemove:t=[],edgesToRemove:e=[],nodes:r,edges:i,onBeforeDelete:n}){const s=new Set(t.map(m=>m.id)),o=[];for(const m of r){if(m.deletable===!1)continue;const g=s.has(m.id),x=!g&&m.parentId&&o.find(v=>v.id===m.parentId);(g||x)&&o.push(m)}const c=new Set(e.map(m=>m.id)),u=i.filter(m=>m.deletable!==!1),f=jU(o,u);for(const m of u)c.has(m.id)&&!f.find(x=>x.id===m.id)&&f.push(m);if(!n)return{edges:f,nodes:o};const p=await n({nodes:o,edges:f});return typeof p=="boolean"?p?{edges:f,nodes:o}:{edges:[],nodes:[]}:p}const Rl=(t,e=0,r=1)=>Math.min(Math.max(t,e),r),Xs=(t={x:0,y:0},e,r)=>({x:Rl(t.x,e[0][0],e[1][0]-((r==null?void 0:r.width)??0)),y:Rl(t.y,e[0][1],e[1][1]-((r==null?void 0:r.height)??0))});function YO(t,e,r){const{width:i,height:n}=ha(r),{x:s,y:o}=r.internals.positionAbsolute;return Xs(t,[[s,o],[s+i,o+n]],e)}const YE=(t,e,r)=>t<e?Rl(Math.abs(t-e),1,e)/e:t>r?-Rl(Math.abs(t-r),1,e)/e:0,WO=(t,e,r=15,i=40)=>{const n=YE(t.x,i,e.width-i)*r,s=YE(t.y,i,e.height-i)*r;return[n,s]},pp=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),LC=({x:t,y:e,width:r,height:i})=>({x:t,y:e,x2:t+r,y2:e+i}),gp=({x:t,y:e,x2:r,y2:i})=>({x:t,y:e,width:r-t,height:i-e}),Dl=(t,e=[0,0])=>{var n,s;const{x:r,y:i}=V2(t)?t.internals.positionAbsolute:ih(t,e);return{x:r,y:i,width:((n=t.measured)==null?void 0:n.width)??t.width??t.initialWidth??0,height:((s=t.measured)==null?void 0:s.height)??t.height??t.initialHeight??0}},Ld=(t,e=[0,0])=>{var n,s;const{x:r,y:i}=V2(t)?t.internals.positionAbsolute:ih(t,e);return{x:r,y:i,x2:r+(((n=t.measured)==null?void 0:n.width)??t.width??t.initialWidth??0),y2:i+(((s=t.measured)==null?void 0:s.height)??t.height??t.initialHeight??0)}},VO=(t,e)=>gp(pp(LC(t),LC(e))),$u=(t,e)=>{const r=Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x)),i=Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y));return Math.ceil(r*i)},WE=t=>nn(t.width)&&nn(t.height)&&nn(t.x)&&nn(t.y),nn=t=>!isNaN(t)&&isFinite(t),UU=(t,e)=>{},ah=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),sh=({x:t,y:e},[r,i,n],s=!1,o=[1,1])=>{const c={x:(t-r)/n,y:(e-i)/n};return s?ah(c,o):c},Md=({x:t,y:e},[r,i,n])=>({x:t*n+r,y:e*n+i});function Vo(t,e){if(typeof t=="number")return Math.floor((e-e/(1+t))*.5);if(typeof t=="string"&&t.endsWith("px")){const r=parseFloat(t);if(!Number.isNaN(r))return Math.floor(r)}if(typeof t=="string"&&t.endsWith("%")){const r=parseFloat(t);if(!Number.isNaN(r))return Math.floor(e*r*.01)}return console.error(`[React Flow] The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function GU(t,e,r){if(typeof t=="string"||typeof t=="number"){const i=Vo(t,r),n=Vo(t,e);return{top:i,right:n,bottom:i,left:n,x:n*2,y:i*2}}if(typeof t=="object"){const i=Vo(t.top??t.y??0,r),n=Vo(t.bottom??t.y??0,r),s=Vo(t.left??t.x??0,e),o=Vo(t.right??t.x??0,e);return{top:i,right:o,bottom:n,left:s,x:s+o,y:i+n}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function YU(t,e,r,i,n,s){const{x:o,y:c}=Md(t,[e,r,i]),{x:u,y:h}=Md({x:t.x+t.width,y:t.y+t.height},[e,r,i]),f=n-u,p=s-h;return{left:Math.floor(o),top:Math.floor(c),right:Math.floor(f),bottom:Math.floor(p)}}const Q2=(t,e,r,i,n,s)=>{const o=GU(s,e,r),c=(e-o.x)/t.width,u=(r-o.y)/t.height,h=Math.min(c,u),f=Rl(h,i,n),p=t.x+t.width/2,m=t.y+t.height/2,g=e/2-p*f,x=r/2-m*f,v=YU(t,g,x,f,e,r),b={left:Math.min(v.left-o.left,0),top:Math.min(v.top-o.top,0),right:Math.min(v.right-o.right,0),bottom:Math.min(v.bottom-o.bottom,0)};return{x:g-b.left+b.right,y:x-b.top+b.bottom,zoom:f}},Pu=()=>{var t;return typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)==null?void 0:t.indexOf("Mac"))>=0};function Fl(t){return t!=null&&t!=="parent"}function ha(t){var e,r;return{width:((e=t.measured)==null?void 0:e.width)??t.width??t.initialWidth??0,height:((r=t.measured)==null?void 0:r.height)??t.height??t.initialHeight??0}}function XO(t){var e,r;return(((e=t.measured)==null?void 0:e.width)??t.width??t.initialWidth)!==void 0&&(((r=t.measured)==null?void 0:r.height)??t.height??t.initialHeight)!==void 0}function QO(t,e={width:0,height:0},r,i,n){const s={...t},o=i.get(r);if(o){const c=o.origin||n;s.x+=o.internals.positionAbsolute.x-(e.width??0)*c[0],s.y+=o.internals.positionAbsolute.y-(e.height??0)*c[1]}return s}function VE(t,e){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}function WU(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function VU(t){return{...$O,...t||{}}}function ku(t,{snapGrid:e=[0,0],snapToGrid:r=!1,transform:i,containerBounds:n}){const{x:s,y:o}=an(t),c=sh({x:s-((n==null?void 0:n.left)??0),y:o-((n==null?void 0:n.top)??0)},i),{x:u,y:h}=r?ah(c,e):c;return{xSnapped:u,ySnapped:h,...c}}const Z2=t=>({width:t.offsetWidth,height:t.offsetHeight}),ZO=t=>{var e;return((e=t==null?void 0:t.getRootNode)==null?void 0:e.call(t))||(window==null?void 0:window.document)},XU=["INPUT","SELECT","TEXTAREA"];function KO(t){var i,n;const e=((n=(i=t.composedPath)==null?void 0:i.call(t))==null?void 0:n[0])||t.target;return(e==null?void 0:e.nodeType)!==1?!1:XU.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey")}const JO=t=>"clientX"in t,an=(t,e)=>{var s,o;const r=JO(t),i=r?t.clientX:(s=t.touches)==null?void 0:s[0].clientX,n=r?t.clientY:(o=t.touches)==null?void 0:o[0].clientY;return{x:i-((e==null?void 0:e.left)??0),y:n-((e==null?void 0:e.top)??0)}},XE=(t,e,r,i,n)=>{const s=e.querySelectorAll(`.${t}`);return!s||!s.length?null:Array.from(s).map(o=>{const c=o.getBoundingClientRect();return{id:o.getAttribute("data-handleid"),type:t,nodeId:n,position:o.getAttribute("data-handlepos"),x:(c.left-r.left)/i,y:(c.top-r.top)/i,...Z2(o)}})};function tR({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:n,sourceControlY:s,targetControlX:o,targetControlY:c}){const u=t*.125+n*.375+o*.375+r*.125,h=e*.125+s*.375+c*.375+i*.125,f=Math.abs(u-t),p=Math.abs(h-e);return[u,h,f,p]}function $f(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function QE({pos:t,x1:e,y1:r,x2:i,y2:n,c:s}){switch(t){case jt.Left:return[e-$f(e-i,s),r];case jt.Right:return[e+$f(i-e,s),r];case jt.Top:return[e,r-$f(r-n,s)];case jt.Bottom:return[e,r+$f(n-r,s)]}}function eR({sourceX:t,sourceY:e,sourcePosition:r=jt.Bottom,targetX:i,targetY:n,targetPosition:s=jt.Top,curvature:o=.25}){const[c,u]=QE({pos:r,x1:t,y1:e,x2:i,y2:n,c:o}),[h,f]=QE({pos:s,x1:i,y1:n,x2:t,y2:e,c:o}),[p,m,g,x]=tR({sourceX:t,sourceY:e,targetX:i,targetY:n,sourceControlX:c,sourceControlY:u,targetControlX:h,targetControlY:f});return[`M${t},${e} C${c},${u} ${h},${f} ${i},${n}`,p,m,g,x]}function rR({sourceX:t,sourceY:e,targetX:r,targetY:i}){const n=Math.abs(r-t)/2,s=r<t?r+n:r-n,o=Math.abs(i-e)/2,c=i<e?i+o:i-o;return[s,c,n,o]}function QU({sourceNode:t,targetNode:e,selected:r=!1,zIndex:i=0,elevateOnSelect:n=!1,zIndexMode:s="basic"}){if(s==="manual")return i;const o=n&&r?i+1e3:i,c=Math.max(t.parentId||n&&t.selected?t.internals.z:0,e.parentId||n&&e.selected?e.internals.z:0);return o+c}function ZU({sourceNode:t,targetNode:e,width:r,height:i,transform:n}){const s=pp(Ld(t),Ld(e));s.x===s.x2&&(s.x2+=1),s.y===s.y2&&(s.y2+=1);const o={x:-n[0]/n[2],y:-n[1]/n[2],width:r/n[2],height:i/n[2]};return $u(o,gp(s))>0}const KU=({source:t,sourceHandle:e,target:r,targetHandle:i})=>`xy-edge__${t}${e||""}-${r}${i||""}`,JU=(t,e)=>e.some(r=>r.source===t.source&&r.target===t.target&&(r.sourceHandle===t.sourceHandle||!r.sourceHandle&&!t.sourceHandle)&&(r.targetHandle===t.targetHandle||!r.targetHandle&&!t.targetHandle)),tG=(t,e,r={})=>{if(!t.source||!t.target)return e;const i=r.getEdgeId||KU;let n;return UO(t)?n={...t}:n={...t,id:i(t)},JU(n,e)?e:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,e.concat(n))};function iR({sourceX:t,sourceY:e,targetX:r,targetY:i}){const[n,s,o,c]=rR({sourceX:t,sourceY:e,targetX:r,targetY:i});return[`M ${t},${e}L ${r},${i}`,n,s,o,c]}const ZE={[jt.Left]:{x:-1,y:0},[jt.Right]:{x:1,y:0},[jt.Top]:{x:0,y:-1},[jt.Bottom]:{x:0,y:1}},eG=({source:t,sourcePosition:e=jt.Bottom,target:r})=>e===jt.Left||e===jt.Right?t.x<r.x?{x:1,y:0}:{x:-1,y:0}:t.y<r.y?{x:0,y:1}:{x:0,y:-1},KE=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function rG({source:t,sourcePosition:e=jt.Bottom,target:r,targetPosition:i=jt.Top,center:n,offset:s,stepPosition:o}){const c=ZE[e],u=ZE[i],h={x:t.x+c.x*s,y:t.y+c.y*s},f={x:r.x+u.x*s,y:r.y+u.y*s},p=eG({source:h,sourcePosition:e,target:f}),m=p.x!==0?"x":"y",g=p[m];let x=[],v,b;const w={x:0,y:0},_={x:0,y:0},[,,S,E]=rR({sourceX:t.x,sourceY:t.y,targetX:r.x,targetY:r.y});if(c[m]*u[m]===-1){m==="x"?(v=n.x??h.x+(f.x-h.x)*o,b=n.y??(h.y+f.y)/2):(v=n.x??(h.x+f.x)/2,b=n.y??h.y+(f.y-h.y)*o);const j=[{x:v,y:h.y},{x:v,y:f.y}],Y=[{x:h.x,y:b},{x:f.x,y:b}];c[m]===g?x=m==="x"?j:Y:x=m==="x"?Y:j}else{const j=[{x:h.x,y:f.y}],Y=[{x:f.x,y:h.y}];if(m==="x"?x=c.x===g?Y:j:x=c.y===g?j:Y,e===i){const M=Math.abs(t[m]-r[m]);if(M<=s){const F=Math.min(s-1,s-M);c[m]===g?w[m]=(h[m]>t[m]?-1:1)*F:_[m]=(f[m]>r[m]?-1:1)*F}}if(e!==i){const M=m==="x"?"y":"x",F=c[m]===u[M],N=h[M]>f[M],P=h[M]<f[M];(c[m]===1&&(!F&&N||F&&P)||c[m]!==1&&(!F&&P||F&&N))&&(x=m==="x"?j:Y)}const W={x:h.x+w.x,y:h.y+w.y},O={x:f.x+_.x,y:f.y+_.y},z=Math.max(Math.abs(W.x-x[0].x),Math.abs(O.x-x[0].x)),X=Math.max(Math.abs(W.y-x[0].y),Math.abs(O.y-x[0].y));z>=X?(v=(W.x+O.x)/2,b=x[0].y):(v=x[0].x,b=(W.y+O.y)/2)}const L={x:h.x+w.x,y:h.y+w.y},A={x:f.x+_.x,y:f.y+_.y};return[[t,...L.x!==x[0].x||L.y!==x[0].y?[L]:[],...x,...A.x!==x[x.length-1].x||A.y!==x[x.length-1].y?[A]:[],r],v,b,S,E]}function iG(t,e,r,i){const n=Math.min(KE(t,e)/2,KE(e,r)/2,i),{x:s,y:o}=e;if(t.x===s&&s===r.x||t.y===o&&o===r.y)return`L${s} ${o}`;if(t.y===o){const h=t.x<r.x?-1:1,f=t.y<r.y?1:-1;return`L ${s+n*h},${o}Q ${s},${o} ${s},${o+n*f}`}const c=t.x<r.x?1:-1,u=t.y<r.y?-1:1;return`L ${s},${o+n*u}Q ${s},${o} ${s+n*c},${o}`}function MC({sourceX:t,sourceY:e,sourcePosition:r=jt.Bottom,targetX:i,targetY:n,targetPosition:s=jt.Top,borderRadius:o=5,centerX:c,centerY:u,offset:h=20,stepPosition:f=.5}){const[p,m,g,x,v]=rG({source:{x:t,y:e},sourcePosition:r,target:{x:i,y:n},targetPosition:s,center:{x:c,y:u},offset:h,stepPosition:f});let b=`M${p[0].x} ${p[0].y}`;for(let w=1;w<p.length-1;w++)b+=iG(p[w-1],p[w],p[w+1],o);return b+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[b,m,g,x,v]}function JE(t){var e;return t&&!!(t.internals.handleBounds||(e=t.handles)!=null&&e.length)&&!!(t.measured.width||t.width||t.initialWidth)}function nG(t){var p;const{sourceNode:e,targetNode:r}=t;if(!JE(e)||!JE(r))return null;const i=e.internals.handleBounds||tA(e.handles),n=r.internals.handleBounds||tA(r.handles),s=eA((i==null?void 0:i.source)??[],t.sourceHandle),o=eA(t.connectionMode===Ol.Strict?(n==null?void 0:n.target)??[]:((n==null?void 0:n.target)??[]).concat((n==null?void 0:n.source)??[]),t.targetHandle);if(!s||!o)return(p=t.onError)==null||p.call(t,"008",An.error008(s?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;const c=(s==null?void 0:s.position)||jt.Bottom,u=(o==null?void 0:o.position)||jt.Top,h=Qs(e,s,c),f=Qs(r,o,u);return{sourceX:h.x,sourceY:h.y,targetX:f.x,targetY:f.y,sourcePosition:c,targetPosition:u}}function tA(t){if(!t)return null;const e=[],r=[];for(const i of t)i.width=i.width??1,i.height=i.height??1,i.type==="source"?e.push(i):i.type==="target"&&r.push(i);return{source:e,target:r}}function Qs(t,e,r=jt.Left,i=!1){const n=((e==null?void 0:e.x)??0)+t.internals.positionAbsolute.x,s=((e==null?void 0:e.y)??0)+t.internals.positionAbsolute.y,{width:o,height:c}=e??ha(t);if(i)return{x:n+o/2,y:s+c/2};switch((e==null?void 0:e.position)??r){case jt.Top:return{x:n+o/2,y:s};case jt.Right:return{x:n+o,y:s+c/2};case jt.Bottom:return{x:n+o/2,y:s+c};case jt.Left:return{x:n,y:s+c/2}}}function eA(t,e){return t&&(e?t.find(r=>r.id===e):t[0])||null}function NC(t,e){return t?typeof t=="string"?t:`${e?`${e}__`:""}${Object.keys(t).sort().map(i=>`${i}=${t[i]}`).join("&")}`:""}function aG(t,{id:e,defaultColor:r,defaultMarkerStart:i,defaultMarkerEnd:n}){const s=new Set;return t.reduce((o,c)=>([c.markerStart||i,c.markerEnd||n].forEach(u=>{if(u&&typeof u=="object"){const h=NC(u,e);s.has(h)||(o.push({id:h,color:u.color||r,...u}),s.add(h))}}),o),[]).sort((o,c)=>o.id.localeCompare(c.id))}const nR=1e3,sG=10,K2={nodeOrigin:[0,0],nodeExtent:qu,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},oG={...K2,checkEquality:!0};function J2(t,e){const r={...t};for(const i in e)e[i]!==void 0&&(r[i]=e[i]);return r}function lG(t,e,r){const i=J2(K2,r);for(const n of t.values())if(n.parentId)ew(n,t,e,i);else{const s=ih(n,i.nodeOrigin),o=Fl(n.extent)?n.extent:i.nodeExtent,c=Xs(s,o,ha(n));n.internals.positionAbsolute=c}}function cG(t,e){if(!t.handles)return t.measured?e==null?void 0:e.internals.handleBounds:void 0;const r=[],i=[];for(const n of t.handles){const s={id:n.id,width:n.width??1,height:n.height??1,nodeId:t.id,x:n.x,y:n.y,position:n.position,type:n.type};n.type==="source"?r.push(s):n.type==="target"&&i.push(s)}return{source:r,target:i}}function tw(t){return t==="manual"}function OC(t,e,r,i={}){var f,p;const n=J2(oG,i),s={i:0},o=new Map(e),c=n!=null&&n.elevateNodesOnSelect&&!tw(n.zIndexMode)?nR:0;let u=t.length>0,h=!1;e.clear(),r.clear();for(const m of t){let g=o.get(m.id);if(n.checkEquality&&m===(g==null?void 0:g.internals.userNode))e.set(m.id,g);else{const x=ih(m,n.nodeOrigin),v=Fl(m.extent)?m.extent:n.nodeExtent,b=Xs(x,v,ha(m));g={...n.defaults,...m,measured:{width:(f=m.measured)==null?void 0:f.width,height:(p=m.measured)==null?void 0:p.height},internals:{positionAbsolute:b,handleBounds:cG(m,g),z:aR(m,c,n.zIndexMode),userNode:m}},e.set(m.id,g)}(g.measured===void 0||g.measured.width===void 0||g.measured.height===void 0)&&!g.hidden&&(u=!1),m.parentId&&ew(g,e,r,i,s),h||(h=m.selected??!1)}return{nodesInitialized:u,hasSelectedNodes:h}}function uG(t,e){if(!t.parentId)return;const r=e.get(t.parentId);r?r.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}function ew(t,e,r,i,n){const{elevateNodesOnSelect:s,nodeOrigin:o,nodeExtent:c,zIndexMode:u}=J2(K2,i),h=t.parentId,f=e.get(h);if(!f){console.warn(`Parent node ${h} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}uG(t,r),n&&!f.parentId&&f.internals.rootParentIndex===void 0&&u==="auto"&&(f.internals.rootParentIndex=++n.i,f.internals.z=f.internals.z+n.i*sG),n&&f.internals.rootParentIndex!==void 0&&(n.i=f.internals.rootParentIndex);const p=s&&!tw(u)?nR:0,{x:m,y:g,z:x}=hG(t,f,o,c,p,u),{positionAbsolute:v}=t.internals,b=m!==v.x||g!==v.y;(b||x!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:b?{x:m,y:g}:v,z:x}})}function aR(t,e,r){const i=nn(t.zIndex)?t.zIndex:0;return tw(r)?i:i+(t.selected?e:0)}function hG(t,e,r,i,n,s){const{x:o,y:c}=e.internals.positionAbsolute,u=ha(t),h=ih(t,r),f=Fl(t.extent)?Xs(h,t.extent,u):h;let p=Xs({x:o+f.x,y:c+f.y},i,u);t.extent==="parent"&&(p=YO(p,u,e));const m=aR(t,n,s),g=e.internals.z??0;return{x:p.x,y:p.y,z:g>=m?g+1:m}}function rw(t,e,r,i=[0,0]){var o;const n=[],s=new Map;for(const c of t){const u=e.get(c.parentId);if(!u)continue;const h=((o=s.get(c.parentId))==null?void 0:o.expandedRect)??Dl(u),f=VO(h,c.rect);s.set(c.parentId,{expandedRect:f,parent:u})}return s.size>0&&s.forEach(({expandedRect:c,parent:u},h)=>{var S;const f=u.internals.positionAbsolute,p=ha(u),m=u.origin??i,g=c.x<f.x?Math.round(Math.abs(f.x-c.x)):0,x=c.y<f.y?Math.round(Math.abs(f.y-c.y)):0,v=Math.max(p.width,Math.round(c.width)),b=Math.max(p.height,Math.round(c.height)),w=(v-p.width)*m[0],_=(b-p.height)*m[1];(g>0||x>0||w||_)&&(n.push({id:h,type:"position",position:{x:u.position.x-g+w,y:u.position.y-x+_}}),(S=r.get(h))==null||S.forEach(E=>{t.some(L=>L.id===E.id)||n.push({id:E.id,type:"position",position:{x:E.position.x+g,y:E.position.y+x}})})),(p.width<c.width||p.height<c.height||g||x)&&n.push({id:h,type:"dimensions",setAttributes:!0,dimensions:{width:v+(g?m[0]*g-w:0),height:b+(x?m[1]*x-_:0)}})}),n}function fG(t,e,r,i,n,s,o){const c=i==null?void 0:i.querySelector(".xyflow__viewport");let u=!1;if(!c)return{changes:[],updatedInternals:u};const h=[],f=window.getComputedStyle(c),{m22:p}=new window.DOMMatrixReadOnly(f.transform),m=[];for(const g of t.values()){const x=e.get(g.id);if(!x)continue;if(x.hidden){e.set(x.id,{...x,internals:{...x.internals,handleBounds:void 0}}),u=!0;continue}const v=Z2(g.nodeElement),b=x.measured.width!==v.width||x.measured.height!==v.height;if(!!(v.width&&v.height&&(b||!x.internals.handleBounds||g.force))){const _=g.nodeElement.getBoundingClientRect(),S=Fl(x.extent)?x.extent:s;let{positionAbsolute:E}=x.internals;x.parentId&&x.extent==="parent"?E=YO(E,v,e.get(x.parentId)):S&&(E=Xs(E,S,v));const L={...x,measured:v,internals:{...x.internals,positionAbsolute:E,handleBounds:{source:XE("source",g.nodeElement,_,p,x.id),target:XE("target",g.nodeElement,_,p,x.id)}}};e.set(x.id,L),x.parentId&&ew(L,e,r,{nodeOrigin:n,zIndexMode:o}),u=!0,b&&(h.push({id:x.id,type:"dimensions",dimensions:v}),x.expandParent&&x.parentId&&m.push({id:x.id,parentId:x.parentId,rect:Dl(L,n)}))}}if(m.length>0){const g=rw(m,e,r,n);h.push(...g)}return{changes:h,updatedInternals:u}}async function dG({delta:t,panZoom:e,transform:r,translateExtent:i,width:n,height:s}){if(!e||!t.x&&!t.y)return Promise.resolve(!1);const o=await e.setViewportConstrained({x:r[0]+t.x,y:r[1]+t.y,zoom:r[2]},[[0,0],[n,s]],i),c=!!o&&(o.x!==r[0]||o.y!==r[1]||o.k!==r[2]);return Promise.resolve(c)}function rA(t,e,r,i,n,s){let o=n;const c=i.get(o)||new Map;i.set(o,c.set(r,e)),o=`${n}-${t}`;const u=i.get(o)||new Map;if(i.set(o,u.set(r,e)),s){o=`${n}-${t}-${s}`;const h=i.get(o)||new Map;i.set(o,h.set(r,e))}}function sR(t,e,r){t.clear(),e.clear();for(const i of r){const{source:n,target:s,sourceHandle:o=null,targetHandle:c=null}=i,u={edgeId:i.id,source:n,target:s,sourceHandle:o,targetHandle:c},h=`${n}-${o}--${s}-${c}`,f=`${s}-${c}--${n}-${o}`;rA("source",u,f,t,n,o),rA("target",u,h,t,s,c),e.set(i.id,i)}}function oR(t,e){if(!t.parentId)return!1;const r=e.get(t.parentId);return r?r.selected?!0:oR(r,e):!1}function iA(t,e,r){var n;let i=t;do{if((n=i==null?void 0:i.matches)!=null&&n.call(i,e))return!0;if(i===r)return!1;i=i==null?void 0:i.parentElement}while(i);return!1}function pG(t,e,r,i){const n=new Map;for(const[s,o]of t)if((o.selected||o.id===i)&&(!o.parentId||!oR(o,t))&&(o.draggable||e&&typeof o.draggable>"u")){const c=t.get(s);c&&n.set(s,{id:s,position:c.position||{x:0,y:0},distance:{x:r.x-c.internals.positionAbsolute.x,y:r.y-c.internals.positionAbsolute.y},extent:c.extent,parentId:c.parentId,origin:c.origin,expandParent:c.expandParent,internals:{positionAbsolute:c.internals.positionAbsolute||{x:0,y:0}},measured:{width:c.measured.width??0,height:c.measured.height??0}})}return n}function b0({nodeId:t,dragItems:e,nodeLookup:r,dragging:i=!0}){var o,c,u;const n=[];for(const[h,f]of e){const p=(o=r.get(h))==null?void 0:o.internals.userNode;p&&n.push({...p,position:f.position,dragging:i})}if(!t)return[n[0],n];const s=(c=r.get(t))==null?void 0:c.internals.userNode;return[s?{...s,position:((u=e.get(t))==null?void 0:u.position)||s.position,dragging:i}:n[0],n]}function gG({dragItems:t,snapGrid:e,x:r,y:i}){const n=t.values().next().value;if(!n)return null;const s={x:r-n.distance.x,y:i-n.distance.y},o=ah(s,e);return{x:o.x-s.x,y:o.y-s.y}}function mG({onNodeMouseDown:t,getStoreItems:e,onDragStart:r,onDrag:i,onDragStop:n}){let s={x:null,y:null},o=0,c=new Map,u=!1,h={x:0,y:0},f=null,p=!1,m=null,g=!1,x=!1,v=null;function b({noDragClassName:_,handleSelector:S,domNode:E,isSelectable:L,nodeId:A,nodeClickDistance:R=0}){m=Ut(E);function j({x:z,y:X}){const{nodeLookup:M,nodeExtent:F,snapGrid:N,snapToGrid:P,nodeOrigin:$,onNodeDrag:q,onSelectionDrag:I,onError:G,updateNodePositions:Z}=e();s={x:z,y:X};let H=!1;const Q=c.size>1,J=Q&&F?LC(nh(c)):null,tt=Q&&P?gG({dragItems:c,snapGrid:N,x:z,y:X}):null;for(const[K,nt]of c){if(!M.has(K))continue;let ct={x:z-nt.distance.x,y:X-nt.distance.y};P&&(ct=tt?{x:Math.round(ct.x+tt.x),y:Math.round(ct.y+tt.y)}:ah(ct,N));let it=null;if(Q&&F&&!nt.extent&&J){const{positionAbsolute:kt}=nt.internals,At=kt.x-J.x+F[0][0],Et=kt.x+nt.measured.width-J.x2+F[1][0],Ht=kt.y-J.y+F[0][1],qt=kt.y+nt.measured.height-J.y2+F[1][1];it=[[At,Ht],[Et,qt]]}const{position:dt,positionAbsolute:Ct}=GO({nodeId:K,nextPosition:ct,nodeLookup:M,nodeExtent:it||F,nodeOrigin:$,onError:G});H=H||nt.position.x!==dt.x||nt.position.y!==dt.y,nt.position=dt,nt.internals.positionAbsolute=Ct}if(x=x||H,!!H&&(Z(c,!0),v&&(i||q||!A&&I))){const[K,nt]=b0({nodeId:A,dragItems:c,nodeLookup:M});i==null||i(v,c,K,nt),q==null||q(v,K,nt),A||I==null||I(v,nt)}}async function Y(){if(!f)return;const{transform:z,panBy:X,autoPanSpeed:M,autoPanOnNodeDrag:F}=e();if(!F){u=!1,cancelAnimationFrame(o);return}const[N,P]=WO(h,f,M);(N!==0||P!==0)&&(s.x=(s.x??0)-N/z[2],s.y=(s.y??0)-P/z[2],await X({x:N,y:P})&&j(s)),o=requestAnimationFrame(Y)}function W(z){var Q;const{nodeLookup:X,multiSelectionActive:M,nodesDraggable:F,transform:N,snapGrid:P,snapToGrid:$,selectNodesOnDrag:q,onNodeDragStart:I,onSelectionDragStart:G,unselectNodesAndEdges:Z}=e();p=!0,(!q||!L)&&!M&&A&&((Q=X.get(A))!=null&&Q.selected||Z()),L&&q&&A&&(t==null||t(A));const H=ku(z.sourceEvent,{transform:N,snapGrid:P,snapToGrid:$,containerBounds:f});if(s=H,c=pG(X,F,H,A),c.size>0&&(r||I||!A&&G)){const[J,tt]=b0({nodeId:A,dragItems:c,nodeLookup:X});r==null||r(z.sourceEvent,c,J,tt),I==null||I(z.sourceEvent,J,tt),A||G==null||G(z.sourceEvent,tt)}}const O=SO().clickDistance(R).on("start",z=>{const{domNode:X,nodeDragThreshold:M,transform:F,snapGrid:N,snapToGrid:P}=e();f=(X==null?void 0:X.getBoundingClientRect())||null,g=!1,x=!1,v=z.sourceEvent,M===0&&W(z),s=ku(z.sourceEvent,{transform:F,snapGrid:N,snapToGrid:P,containerBounds:f}),h=an(z.sourceEvent,f)}).on("drag",z=>{const{autoPanOnNodeDrag:X,transform:M,snapGrid:F,snapToGrid:N,nodeDragThreshold:P,nodeLookup:$}=e(),q=ku(z.sourceEvent,{transform:M,snapGrid:F,snapToGrid:N,containerBounds:f});if(v=z.sourceEvent,(z.sourceEvent.type==="touchmove"&&z.sourceEvent.touches.length>1||A&&!$.has(A))&&(g=!0),!g){if(!u&&X&&p&&(u=!0,Y()),!p){const I=an(z.sourceEvent,f),G=I.x-h.x,Z=I.y-h.y;Math.sqrt(G*G+Z*Z)>P&&W(z)}(s.x!==q.xSnapped||s.y!==q.ySnapped)&&c&&p&&(h=an(z.sourceEvent,f),j(q))}}).on("end",z=>{if(!(!p||g)&&(u=!1,p=!1,cancelAnimationFrame(o),c.size>0)){const{nodeLookup:X,updateNodePositions:M,onNodeDragStop:F,onSelectionDragStop:N}=e();if(x&&(M(c,!1),x=!1),n||F||!A&&N){const[P,$]=b0({nodeId:A,dragItems:c,nodeLookup:X,dragging:!1});n==null||n(z.sourceEvent,c,P,$),F==null||F(z.sourceEvent,P,$),A||N==null||N(z.sourceEvent,$)}}}).filter(z=>{const X=z.target;return!z.button&&(!_||!iA(X,`.${_}`,E))&&(!S||iA(X,S,E))});m.call(O)}function w(){m==null||m.on(".drag",null)}return{update:b,destroy:w}}function yG(t,e,r){const i=[],n={x:t.x-r,y:t.y-r,width:r*2,height:r*2};for(const s of e.values())$u(n,Dl(s))>0&&i.push(s);return i}const xG=250;function bG(t,e,r,i){var c,u;let n=[],s=1/0;const o=yG(t,r,e+xG);for(const h of o){const f=[...((c=h.internals.handleBounds)==null?void 0:c.source)??[],...((u=h.internals.handleBounds)==null?void 0:u.target)??[]];for(const p of f){if(i.nodeId===p.nodeId&&i.type===p.type&&i.id===p.id)continue;const{x:m,y:g}=Qs(h,p,p.position,!0),x=Math.sqrt(Math.pow(m-t.x,2)+Math.pow(g-t.y,2));x>e||(x<s?(n=[{...p,x:m,y:g}],s=x):x===s&&n.push({...p,x:m,y:g}))}}if(!n.length)return null;if(n.length>1){const h=i.type==="source"?"target":"source";return n.find(f=>f.type===h)??n[0]}return n[0]}function lR(t,e,r,i,n,s=!1){var h,f,p;const o=i.get(t);if(!o)return null;const c=n==="strict"?(h=o.internals.handleBounds)==null?void 0:h[e]:[...((f=o.internals.handleBounds)==null?void 0:f.source)??[],...((p=o.internals.handleBounds)==null?void 0:p.target)??[]],u=(r?c==null?void 0:c.find(m=>m.id===r):c==null?void 0:c[0])??null;return u&&s?{...u,...Qs(o,u,u.position,!0)}:u}function cR(t,e){return t||(e!=null&&e.classList.contains("target")?"target":e!=null&&e.classList.contains("source")?"source":null)}function vG(t,e){let r=null;return e?r=!0:t&&!e&&(r=!1),r}const uR=()=>!0;function CG(t,{connectionMode:e,connectionRadius:r,handleId:i,nodeId:n,edgeUpdaterType:s,isTarget:o,domNode:c,nodeLookup:u,lib:h,autoPanOnConnect:f,flowId:p,panBy:m,cancelConnection:g,onConnectStart:x,onConnect:v,onConnectEnd:b,isValidConnection:w=uR,onReconnectEnd:_,updateConnection:S,getTransform:E,getFromHandle:L,autoPanSpeed:A,dragThreshold:R=1,handleDomNode:j}){const Y=ZO(t.target);let W=0,O;const{x:z,y:X}=an(t),M=cR(s,j),F=c==null?void 0:c.getBoundingClientRect();let N=!1;if(!F||!M)return;const P=lR(n,M,i,u,e);if(!P)return;let $=an(t,F),q=!1,I=null,G=!1,Z=null;function H(){if(!f||!F)return;const[dt,Ct]=WO($,F,A);m({x:dt,y:Ct}),W=requestAnimationFrame(H)}const Q={...P,nodeId:n,type:M,position:P.position},J=u.get(n);let K={inProgress:!0,isValid:null,from:Qs(J,Q,jt.Left,!0),fromHandle:Q,fromPosition:Q.position,fromNode:J,to:$,toHandle:null,toPosition:GE[Q.position],toNode:null,pointer:$};function nt(){N=!0,S(K),x==null||x(t,{nodeId:n,handleId:i,handleType:M})}R===0&&nt();function ct(dt){if(!N){const{x:qt,y:we}=an(dt),Be=qt-z,nr=we-X;if(!(Be*Be+nr*nr>R*R))return;nt()}if(!L()||!Q){it(dt);return}const Ct=E();$=an(dt,F),O=bG(sh($,Ct,!1,[1,1]),r,u,Q),q||(H(),q=!0);const kt=hR(dt,{handle:O,connectionMode:e,fromNodeId:n,fromHandleId:i,fromType:o?"target":"source",isValidConnection:w,doc:Y,lib:h,flowId:p,nodeLookup:u});Z=kt.handleDomNode,I=kt.connection,G=vG(!!O,kt.isValid);const At=u.get(n),Et=At?Qs(At,Q,jt.Left,!0):K.from,Ht={...K,from:Et,isValid:G,to:kt.toHandle&&G?Md({x:kt.toHandle.x,y:kt.toHandle.y},Ct):$,toHandle:kt.toHandle,toPosition:G&&kt.toHandle?kt.toHandle.position:GE[Q.position],toNode:kt.toHandle?u.get(kt.toHandle.nodeId):null,pointer:$};S(Ht),K=Ht}function it(dt){if(!("touches"in dt&&dt.touches.length>0)){if(N){(O||Z)&&I&&G&&(v==null||v(I));const{inProgress:Ct,...kt}=K,At={...kt,toPosition:K.toHandle?K.toPosition:null};b==null||b(dt,At),s&&(_==null||_(dt,At))}g(),cancelAnimationFrame(W),q=!1,G=!1,I=null,Z=null,Y.removeEventListener("mousemove",ct),Y.removeEventListener("mouseup",it),Y.removeEventListener("touchmove",ct),Y.removeEventListener("touchend",it)}}Y.addEventListener("mousemove",ct),Y.addEventListener("mouseup",it),Y.addEventListener("touchmove",ct),Y.addEventListener("touchend",it)}function hR(t,{handle:e,connectionMode:r,fromNodeId:i,fromHandleId:n,fromType:s,doc:o,lib:c,flowId:u,isValidConnection:h=uR,nodeLookup:f}){const p=s==="target",m=e?o.querySelector(`.${c}-flow__handle[data-id="${u}-${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`):null,{x:g,y:x}=an(t),v=o.elementFromPoint(g,x),b=v!=null&&v.classList.contains(`${c}-flow__handle`)?v:m,w={handleDomNode:b,isValid:!1,connection:null,toHandle:null};if(b){const _=cR(void 0,b),S=b.getAttribute("data-nodeid"),E=b.getAttribute("data-handleid"),L=b.classList.contains("connectable"),A=b.classList.contains("connectableend");if(!S||!_)return w;const R={source:p?S:i,sourceHandle:p?E:n,target:p?i:S,targetHandle:p?n:E};w.connection=R;const Y=L&&A&&(r===Ol.Strict?p&&_==="source"||!p&&_==="target":S!==i||E!==n);w.isValid=Y&&h(R),w.toHandle=lR(S,_,E,f,r,!0)}return w}const RC={onPointerDown:CG,isValid:hR};function wG({domNode:t,panZoom:e,getTransform:r,getViewScale:i}){const n=Ut(t);function s({translateExtent:c,width:u,height:h,zoomStep:f=1,pannable:p=!0,zoomable:m=!0,inversePan:g=!1}){const x=S=>{if(S.sourceEvent.type!=="wheel"||!e)return;const E=r(),L=S.sourceEvent.ctrlKey&&Pu()?10:1,A=-S.sourceEvent.deltaY*(S.sourceEvent.deltaMode===1?.05:S.sourceEvent.deltaMode?1:.002)*f,R=E[2]*Math.pow(2,A*L);e.scaleTo(R)};let v=[0,0];const b=S=>{(S.sourceEvent.type==="mousedown"||S.sourceEvent.type==="touchstart")&&(v=[S.sourceEvent.clientX??S.sourceEvent.touches[0].clientX,S.sourceEvent.clientY??S.sourceEvent.touches[0].clientY])},w=S=>{const E=r();if(S.sourceEvent.type!=="mousemove"&&S.sourceEvent.type!=="touchmove"||!e)return;const L=[S.sourceEvent.clientX??S.sourceEvent.touches[0].clientX,S.sourceEvent.clientY??S.sourceEvent.touches[0].clientY],A=[L[0]-v[0],L[1]-v[1]];v=L;const R=i()*Math.max(E[2],Math.log(E[2]))*(g?-1:1),j={x:E[0]-A[0]*R,y:E[1]-A[1]*R},Y=[[0,0],[u,h]];e.setViewportConstrained({x:j.x,y:j.y,zoom:E[2]},Y,c)},_=zO().on("start",b).on("zoom",p?w:null).on("zoom.wheel",m?x:null);n.call(_,{})}function o(){n.on("zoom",null)}return{update:s,destroy:o,pointer:Ki}}const mp=t=>({x:t.x,y:t.y,zoom:t.k}),v0=({x:t,y:e,zoom:r})=>dp.translate(t,e).scale(r),ol=(t,e)=>t.target.closest(`.${e}`),fR=(t,e)=>e===2&&Array.isArray(t)&&t.includes(2),SG=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,C0=(t,e=0,r=SG,i=()=>{})=>{const n=typeof e=="number"&&e>0;return n||i(),n?t.transition().duration(e).ease(r).on("end",i):t},dR=t=>{const e=t.ctrlKey&&Pu()?10:1;return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*e};function kG({zoomPanValues:t,noWheelClassName:e,d3Selection:r,d3Zoom:i,panOnScrollMode:n,panOnScrollSpeed:s,zoomOnPinch:o,onPanZoomStart:c,onPanZoom:u,onPanZoomEnd:h}){return f=>{if(ol(f,e))return f.ctrlKey&&f.preventDefault(),!1;f.preventDefault(),f.stopImmediatePropagation();const p=r.property("__zoom").k||1;if(f.ctrlKey&&o){const b=Ki(f),w=dR(f),_=p*Math.pow(2,w);i.scaleTo(r,_,b,f);return}const m=f.deltaMode===1?20:1;let g=n===Gs.Vertical?0:f.deltaX*m,x=n===Gs.Horizontal?0:f.deltaY*m;!Pu()&&f.shiftKey&&n!==Gs.Vertical&&(g=f.deltaY*m,x=0),i.translateBy(r,-(g/p)*s,-(x/p)*s,{internal:!0});const v=mp(r.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?(u==null||u(f,v),t.panScrollTimeout=setTimeout(()=>{h==null||h(f,v),t.isPanScrolling=!1},150)):(t.isPanScrolling=!0,c==null||c(f,v))}}function _G({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:r}){return function(i,n){const s=i.type==="wheel",o=!e&&s&&!i.ctrlKey,c=ol(i,t);if(i.ctrlKey&&s&&c&&i.preventDefault(),o||c)return null;i.preventDefault(),r.call(this,i,n)}}function TG({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:r}){return i=>{var s,o,c;if((s=i.sourceEvent)!=null&&s.internal)return;const n=mp(i.transform);t.mouseButton=((o=i.sourceEvent)==null?void 0:o.button)||0,t.isZoomingOrPanning=!0,t.prevViewport=n,((c=i.sourceEvent)==null?void 0:c.type)==="mousedown"&&e(!0),r&&(r==null||r(i.sourceEvent,n))}}function EG({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:r,onTransformChange:i,onPanZoom:n}){return s=>{var o,c;t.usedRightMouseButton=!!(r&&fR(e,t.mouseButton??0)),(o=s.sourceEvent)!=null&&o.sync||i([s.transform.x,s.transform.y,s.transform.k]),n&&!((c=s.sourceEvent)!=null&&c.internal)&&(n==null||n(s.sourceEvent,mp(s.transform)))}}function AG({zoomPanValues:t,panOnDrag:e,panOnScroll:r,onDraggingChange:i,onPanZoomEnd:n,onPaneContextMenu:s}){return o=>{var c;if(!((c=o.sourceEvent)!=null&&c.internal)&&(t.isZoomingOrPanning=!1,s&&fR(e,t.mouseButton??0)&&!t.usedRightMouseButton&&o.sourceEvent&&s(o.sourceEvent),t.usedRightMouseButton=!1,i(!1),n)){const u=mp(o.transform);t.prevViewport=u,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{n==null||n(o.sourceEvent,u)},r?150:0)}}}function BG({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:r,panOnDrag:i,panOnScroll:n,zoomOnDoubleClick:s,userSelectionActive:o,noWheelClassName:c,noPanClassName:u,lib:h,connectionInProgress:f}){return p=>{var b;const m=t||e,g=r&&p.ctrlKey,x=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(ol(p,`${h}-flow__node`)||ol(p,`${h}-flow__edge`)))return!0;if(!i&&!m&&!n&&!s&&!r||o||f&&!x||ol(p,c)&&x||ol(p,u)&&(!x||n&&x&&!t)||!r&&p.ctrlKey&&x)return!1;if(!r&&p.type==="touchstart"&&((b=p.touches)==null?void 0:b.length)>1)return p.preventDefault(),!1;if(!m&&!n&&!g&&x||!i&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(i)&&!i.includes(p.button)&&p.type==="mousedown")return!1;const v=Array.isArray(i)&&i.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||x)&&v}}function LG({domNode:t,minZoom:e,maxZoom:r,translateExtent:i,viewport:n,onPanZoom:s,onPanZoomStart:o,onPanZoomEnd:c,onDraggingChange:u}){const h={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=t.getBoundingClientRect(),p=zO().scaleExtent([e,r]).translateExtent(i),m=Ut(t).call(p);_({x:n.x,y:n.y,zoom:Rl(n.zoom,e,r)},[[0,0],[f.width,f.height]],i);const g=m.on("wheel.zoom"),x=m.on("dblclick.zoom");p.wheelDelta(dR);function v(O,z){return m?new Promise(X=>{p==null||p.interpolate((z==null?void 0:z.interpolate)==="linear"?Su:sd).transform(C0(m,z==null?void 0:z.duration,z==null?void 0:z.ease,()=>X(!0)),O)}):Promise.resolve(!1)}function b({noWheelClassName:O,noPanClassName:z,onPaneContextMenu:X,userSelectionActive:M,panOnScroll:F,panOnDrag:N,panOnScrollMode:P,panOnScrollSpeed:$,preventScrolling:q,zoomOnPinch:I,zoomOnScroll:G,zoomOnDoubleClick:Z,zoomActivationKeyPressed:H,lib:Q,onTransformChange:J,connectionInProgress:tt,paneClickDistance:K,selectionOnDrag:nt}){M&&!h.isZoomingOrPanning&&w();const ct=F&&!H&&!M;p.clickDistance(nt?1/0:!nn(K)||K<0?0:K);const it=ct?kG({zoomPanValues:h,noWheelClassName:O,d3Selection:m,d3Zoom:p,panOnScrollMode:P,panOnScrollSpeed:$,zoomOnPinch:I,onPanZoomStart:o,onPanZoom:s,onPanZoomEnd:c}):_G({noWheelClassName:O,preventScrolling:q,d3ZoomHandler:g});if(m.on("wheel.zoom",it,{passive:!1}),!M){const Ct=TG({zoomPanValues:h,onDraggingChange:u,onPanZoomStart:o});p.on("start",Ct);const kt=EG({zoomPanValues:h,panOnDrag:N,onPaneContextMenu:!!X,onPanZoom:s,onTransformChange:J});p.on("zoom",kt);const At=AG({zoomPanValues:h,panOnDrag:N,panOnScroll:F,onPaneContextMenu:X,onPanZoomEnd:c,onDraggingChange:u});p.on("end",At)}const dt=BG({zoomActivationKeyPressed:H,panOnDrag:N,zoomOnScroll:G,panOnScroll:F,zoomOnDoubleClick:Z,zoomOnPinch:I,userSelectionActive:M,noPanClassName:z,noWheelClassName:O,lib:Q,connectionInProgress:tt});p.filter(dt),Z?m.on("dblclick.zoom",x):m.on("dblclick.zoom",null)}function w(){p.on("zoom",null)}async function _(O,z,X){const M=v0(O),F=p==null?void 0:p.constrain()(M,z,X);return F&&await v(F),new Promise(N=>N(F))}async function S(O,z){const X=v0(O);return await v(X,z),new Promise(M=>M(X))}function E(O){if(m){const z=v0(O),X=m.property("__zoom");(X.k!==O.zoom||X.x!==O.x||X.y!==O.y)&&(p==null||p.transform(m,z,null,{sync:!0}))}}function L(){const O=m?qO(m.node()):{x:0,y:0,k:1};return{x:O.x,y:O.y,zoom:O.k}}function A(O,z){return m?new Promise(X=>{p==null||p.interpolate((z==null?void 0:z.interpolate)==="linear"?Su:sd).scaleTo(C0(m,z==null?void 0:z.duration,z==null?void 0:z.ease,()=>X(!0)),O)}):Promise.resolve(!1)}function R(O,z){return m?new Promise(X=>{p==null||p.interpolate((z==null?void 0:z.interpolate)==="linear"?Su:sd).scaleBy(C0(m,z==null?void 0:z.duration,z==null?void 0:z.ease,()=>X(!0)),O)}):Promise.resolve(!1)}function j(O){p==null||p.scaleExtent(O)}function Y(O){p==null||p.translateExtent(O)}function W(O){const z=!nn(O)||O<0?0:O;p==null||p.clickDistance(z)}return{update:b,destroy:w,setViewport:S,setViewportConstrained:_,getViewport:L,scaleTo:A,scaleBy:R,setScaleExtent:j,setTranslateExtent:Y,syncViewport:E,setClickDistance:W}}var Il;(function(t){t.Line="line",t.Handle="handle"})(Il||(Il={}));function MG({width:t,prevWidth:e,height:r,prevHeight:i,affectsX:n,affectsY:s}){const o=t-e,c=r-i,u=[o>0?1:o<0?-1:0,c>0?1:c<0?-1:0];return o&&n&&(u[0]=u[0]*-1),c&&s&&(u[1]=u[1]*-1),u}function nA(t){const e=t.includes("right")||t.includes("left"),r=t.includes("bottom")||t.includes("top"),i=t.includes("left"),n=t.includes("top");return{isHorizontal:e,isVertical:r,affectsX:i,affectsY:n}}function Ha(t,e){return Math.max(0,e-t)}function Ua(t,e){return Math.max(0,t-e)}function Pf(t,e,r){return Math.max(0,e-t,t-r)}function aA(t,e){return t?!e:e}function NG(t,e,r,i,n,s,o,c){let{affectsX:u,affectsY:h}=e;const{isHorizontal:f,isVertical:p}=e,m=f&&p,{xSnapped:g,ySnapped:x}=r,{minWidth:v,maxWidth:b,minHeight:w,maxHeight:_}=i,{x:S,y:E,width:L,height:A,aspectRatio:R}=t;let j=Math.floor(f?g-t.pointerX:0),Y=Math.floor(p?x-t.pointerY:0);const W=L+(u?-j:j),O=A+(h?-Y:Y),z=-s[0]*L,X=-s[1]*A;let M=Pf(W,v,b),F=Pf(O,w,_);if(o){let $=0,q=0;u&&j<0?$=Ha(S+j+z,o[0][0]):!u&&j>0&&($=Ua(S+W+z,o[1][0])),h&&Y<0?q=Ha(E+Y+X,o[0][1]):!h&&Y>0&&(q=Ua(E+O+X,o[1][1])),M=Math.max(M,$),F=Math.max(F,q)}if(c){let $=0,q=0;u&&j>0?$=Ua(S+j,c[0][0]):!u&&j<0&&($=Ha(S+W,c[1][0])),h&&Y>0?q=Ua(E+Y,c[0][1]):!h&&Y<0&&(q=Ha(E+O,c[1][1])),M=Math.max(M,$),F=Math.max(F,q)}if(n){if(f){const $=Pf(W/R,w,_)*R;if(M=Math.max(M,$),o){let q=0;!u&&!h||u&&!h&&m?q=Ua(E+X+W/R,o[1][1])*R:q=Ha(E+X+(u?j:-j)/R,o[0][1])*R,M=Math.max(M,q)}if(c){let q=0;!u&&!h||u&&!h&&m?q=Ha(E+W/R,c[1][1])*R:q=Ua(E+(u?j:-j)/R,c[0][1])*R,M=Math.max(M,q)}}if(p){const $=Pf(O*R,v,b)/R;if(F=Math.max(F,$),o){let q=0;!u&&!h||h&&!u&&m?q=Ua(S+O*R+z,o[1][0])/R:q=Ha(S+(h?Y:-Y)*R+z,o[0][0])/R,F=Math.max(F,q)}if(c){let q=0;!u&&!h||h&&!u&&m?q=Ha(S+O*R,c[1][0])/R:q=Ua(S+(h?Y:-Y)*R,c[0][0])/R,F=Math.max(F,q)}}}Y=Y+(Y<0?F:-F),j=j+(j<0?M:-M),n&&(m?W>O*R?Y=(aA(u,h)?-j:j)/R:j=(aA(u,h)?-Y:Y)*R:f?(Y=j/R,h=u):(j=Y*R,u=h));const N=u?S+j:S,P=h?E+Y:E;return{width:L+(u?-j:j),height:A+(h?-Y:Y),x:s[0]*j*(u?-1:1)+N,y:s[1]*Y*(h?-1:1)+P}}const pR={width:0,height:0,x:0,y:0},OG={...pR,pointerX:0,pointerY:0,aspectRatio:1};function RG(t){return[[0,0],[t.measured.width,t.measured.height]]}function DG(t,e,r){const i=e.position.x+t.position.x,n=e.position.y+t.position.y,s=t.measured.width??0,o=t.measured.height??0,c=r[0]*s,u=r[1]*o;return[[i-c,n-u],[i+s-c,n+o-u]]}function FG({domNode:t,nodeId:e,getStoreItems:r,onChange:i,onEnd:n}){const s=Ut(t);let o={controlDirection:nA("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function c({controlPosition:h,boundaries:f,keepAspectRatio:p,resizeDirection:m,onResizeStart:g,onResize:x,onResizeEnd:v,shouldResize:b}){let w={...pR},_={...OG};o={boundaries:f,resizeDirection:m,keepAspectRatio:p,controlDirection:nA(h)};let S,E=null,L=[],A,R,j,Y=!1;const W=SO().on("start",O=>{const{nodeLookup:z,transform:X,snapGrid:M,snapToGrid:F,nodeOrigin:N,paneDomNode:P}=r();if(S=z.get(e),!S)return;E=(P==null?void 0:P.getBoundingClientRect())??null;const{xSnapped:$,ySnapped:q}=ku(O.sourceEvent,{transform:X,snapGrid:M,snapToGrid:F,containerBounds:E});w={width:S.measured.width??0,height:S.measured.height??0,x:S.position.x??0,y:S.position.y??0},_={...w,pointerX:$,pointerY:q,aspectRatio:w.width/w.height},A=void 0,S.parentId&&(S.extent==="parent"||S.expandParent)&&(A=z.get(S.parentId),R=A&&S.extent==="parent"?RG(A):void 0),L=[],j=void 0;for(const[I,G]of z)if(G.parentId===e&&(L.push({id:I,position:{...G.position},extent:G.extent}),G.extent==="parent"||G.expandParent)){const Z=DG(G,S,G.origin??N);j?j=[[Math.min(Z[0][0],j[0][0]),Math.min(Z[0][1],j[0][1])],[Math.max(Z[1][0],j[1][0]),Math.max(Z[1][1],j[1][1])]]:j=Z}g==null||g(O,{...w})}).on("drag",O=>{const{transform:z,snapGrid:X,snapToGrid:M,nodeOrigin:F}=r(),N=ku(O.sourceEvent,{transform:z,snapGrid:X,snapToGrid:M,containerBounds:E}),P=[];if(!S)return;const{x:$,y:q,width:I,height:G}=w,Z={},H=S.origin??F,{width:Q,height:J,x:tt,y:K}=NG(_,o.controlDirection,N,o.boundaries,o.keepAspectRatio,H,R,j),nt=Q!==I,ct=J!==G,it=tt!==$&&nt,dt=K!==q&&ct;if(!it&&!dt&&!nt&&!ct)return;if((it||dt||H[0]===1||H[1]===1)&&(Z.x=it?tt:w.x,Z.y=dt?K:w.y,w.x=Z.x,w.y=Z.y,L.length>0)){const Et=tt-$,Ht=K-q;for(const qt of L)qt.position={x:qt.position.x-Et+H[0]*(Q-I),y:qt.position.y-Ht+H[1]*(J-G)},P.push(qt)}if((nt||ct)&&(Z.width=nt&&(!o.resizeDirection||o.resizeDirection==="horizontal")?Q:w.width,Z.height=ct&&(!o.resizeDirection||o.resizeDirection==="vertical")?J:w.height,w.width=Z.width,w.height=Z.height),A&&S.expandParent){const Et=H[0]*(Z.width??0);Z.x&&Z.x<Et&&(w.x=Et,_.x=_.x-(Z.x-Et));const Ht=H[1]*(Z.height??0);Z.y&&Z.y<Ht&&(w.y=Ht,_.y=_.y-(Z.y-Ht))}const Ct=MG({width:w.width,prevWidth:I,height:w.height,prevHeight:G,affectsX:o.controlDirection.affectsX,affectsY:o.controlDirection.affectsY}),kt={...w,direction:Ct};(b==null?void 0:b(O,kt))!==!1&&(Y=!0,x==null||x(O,kt),i(Z,P))}).on("end",O=>{Y&&(v==null||v(O,{...w}),n==null||n({...w}),Y=!1)});s.call(W)}function u(){s.on(".drag",null)}return{update:c,destroy:u}}var w0={exports:{}},S0={},k0={exports:{}},_0={};/**
51
+ * @license React
52
+ * use-sync-external-store-shim.production.js
53
+ *
54
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE file in the root directory of this source tree.
58
+ */var sA;function IG(){if(sA)return _0;sA=1;var t=th();function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var r=typeof Object.is=="function"?Object.is:e,i=t.useState,n=t.useEffect,s=t.useLayoutEffect,o=t.useDebugValue;function c(p,m){var g=m(),x=i({inst:{value:g,getSnapshot:m}}),v=x[0].inst,b=x[1];return s(function(){v.value=g,v.getSnapshot=m,u(v)&&b({inst:v})},[p,g,m]),n(function(){return u(v)&&b({inst:v}),p(function(){u(v)&&b({inst:v})})},[p]),o(g),g}function u(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!r(p,g)}catch{return!0}}function h(p,m){return m()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return _0.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:f,_0}var oA;function qG(){return oA||(oA=1,k0.exports=IG()),k0.exports}/**
59
+ * @license React
60
+ * use-sync-external-store-shim/with-selector.production.js
61
+ *
62
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE file in the root directory of this source tree.
66
+ */var lA;function zG(){if(lA)return S0;lA=1;var t=th(),e=qG();function r(h,f){return h===f&&(h!==0||1/h===1/f)||h!==h&&f!==f}var i=typeof Object.is=="function"?Object.is:r,n=e.useSyncExternalStore,s=t.useRef,o=t.useEffect,c=t.useMemo,u=t.useDebugValue;return S0.useSyncExternalStoreWithSelector=function(h,f,p,m,g){var x=s(null);if(x.current===null){var v={hasValue:!1,value:null};x.current=v}else v=x.current;x=c(function(){function w(A){if(!_){if(_=!0,S=A,A=m(A),g!==void 0&&v.hasValue){var R=v.value;if(g(R,A))return E=R}return E=A}if(R=E,i(S,A))return R;var j=m(A);return g!==void 0&&g(R,j)?(S=A,R):(S=A,E=j)}var _=!1,S,E,L=p===void 0?null:p;return[function(){return w(f())},L===null?void 0:function(){return w(L())}]},[f,p,m,g]);var b=n(h,x[0],x[1]);return o(function(){v.hasValue=!0,v.value=b},[b]),u(b),b},S0}var cA;function jG(){return cA||(cA=1,w0.exports=zG()),w0.exports}var $G=jG();const PG=Gl($G),HG={},uA=t=>{let e;const r=new Set,i=(f,p)=>{const m=typeof f=="function"?f(e):f;if(!Object.is(m,e)){const g=e;e=p??(typeof m!="object"||m===null)?m:Object.assign({},e,m),r.forEach(x=>x(e,g))}},n=()=>e,u={setState:i,getState:n,getInitialState:()=>h,subscribe:f=>(r.add(f),()=>r.delete(f)),destroy:()=>{(HG?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},h=e=t(i,n,u);return u},UG=t=>t?uA(t):uA,{useDebugValue:GG}=sl,{useSyncExternalStoreWithSelector:YG}=PG,WG=t=>t;function gR(t,e=WG,r){const i=YG(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,r);return GG(i),i}const hA=(t,e)=>{const r=UG(t),i=(n,s=e)=>gR(r,n,s);return Object.assign(i,r),i},VG=(t,e)=>t?hA(t,e):hA;function We(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[i,n]of t)if(!Object.is(n,e.get(i)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0}const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(const i of r)if(!Object.prototype.hasOwnProperty.call(e,i)||!Object.is(t[i],e[i]))return!1;return!0}oO();const yp=lt.createContext(null),XG=yp.Provider,mR=An.error001();function ye(t,e){const r=lt.useContext(yp);if(r===null)throw new Error(mR);return gR(r,t,e)}function Ve(){const t=lt.useContext(yp);if(t===null)throw new Error(mR);return lt.useMemo(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe}),[t])}const fA={display:"none"},QG={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},yR="react-flow__node-desc",xR="react-flow__edge-desc",ZG="react-flow__aria-live",KG=t=>t.ariaLiveMessage,JG=t=>t.ariaLabelConfig;function tY({rfId:t}){const e=ye(KG);return T.jsx("div",{id:`${ZG}-${t}`,"aria-live":"assertive","aria-atomic":"true",style:QG,children:e})}function eY({rfId:t,disableKeyboardA11y:e}){const r=ye(JG);return T.jsxs(T.Fragment,{children:[T.jsx("div",{id:`${yR}-${t}`,style:fA,children:e?r["node.a11yDescription.default"]:r["node.a11yDescription.keyboardDisabled"]}),T.jsx("div",{id:`${xR}-${t}`,style:fA,children:r["edge.a11yDescription.default"]}),!e&&T.jsx(tY,{rfId:t})]})}const Yl=lt.forwardRef(({position:t="top-left",children:e,className:r,style:i,...n},s)=>{const o=`${t}`.split("-");return T.jsx("div",{className:xr(["react-flow__panel",r,...o]),style:i,ref:s,...n,children:e})});Yl.displayName="Panel";function rY({proOptions:t,position:e="bottom-right"}){return t!=null&&t.hideAttribution?null:T.jsx(Yl,{position:e,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:T.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const iY=t=>{const e=[],r=[];for(const[,i]of t.nodeLookup)i.selected&&e.push(i.internals.userNode);for(const[,i]of t.edgeLookup)i.selected&&r.push(i);return{selectedNodes:e,selectedEdges:r}},Hf=t=>t.id;function nY(t,e){return We(t.selectedNodes.map(Hf),e.selectedNodes.map(Hf))&&We(t.selectedEdges.map(Hf),e.selectedEdges.map(Hf))}function aY({onSelectionChange:t}){const e=Ve(),{selectedNodes:r,selectedEdges:i}=ye(iY,nY);return lt.useEffect(()=>{const n={nodes:r,edges:i};t==null||t(n),e.getState().onSelectionChangeHandlers.forEach(s=>s(n))},[r,i,t]),null}const sY=t=>!!t.onSelectionChangeHandlers;function oY({onSelectionChange:t}){const e=ye(sY);return t||e?T.jsx(aY,{onSelectionChange:t}):null}const DC=typeof window<"u"?lt.useLayoutEffect:lt.useEffect,bR=[0,0],lY={x:0,y:0,zoom:1},cY=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],dA=[...cY,"rfId"],uY=t=>({setNodes:t.setNodes,setEdges:t.setEdges,setMinZoom:t.setMinZoom,setMaxZoom:t.setMaxZoom,setTranslateExtent:t.setTranslateExtent,setNodeExtent:t.setNodeExtent,reset:t.reset,setDefaultNodesAndEdges:t.setDefaultNodesAndEdges}),pA={translateExtent:qu,nodeOrigin:bR,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function hY(t){const{setNodes:e,setEdges:r,setMinZoom:i,setMaxZoom:n,setTranslateExtent:s,setNodeExtent:o,reset:c,setDefaultNodesAndEdges:u}=ye(uY,We),h=Ve();DC(()=>(u(t.defaultNodes,t.defaultEdges),()=>{f.current=pA,c()}),[]);const f=lt.useRef(pA);return DC(()=>{for(const p of dA){const m=t[p],g=f.current[p];m!==g&&(typeof t[p]>"u"||(p==="nodes"?e(m):p==="edges"?r(m):p==="minZoom"?i(m):p==="maxZoom"?n(m):p==="translateExtent"?s(m):p==="nodeExtent"?o(m):p==="ariaLabelConfig"?h.setState({ariaLabelConfig:VU(m)}):p==="fitView"?h.setState({fitViewQueued:m}):p==="fitViewOptions"?h.setState({fitViewOptions:m}):h.setState({[p]:m})))}f.current=t},dA.map(p=>t[p])),null}function gA(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function fY(t){var i;const[e,r]=lt.useState(t==="system"?null:t);return lt.useEffect(()=>{if(t!=="system"){r(t);return}const n=gA(),s=()=>r(n!=null&&n.matches?"dark":"light");return s(),n==null||n.addEventListener("change",s),()=>{n==null||n.removeEventListener("change",s)}},[t]),e!==null?e:(i=gA())!=null&&i.matches?"dark":"light"}const mA=typeof document<"u"?document:null;function Hu(t=null,e={target:mA,actInsideInputWithModifier:!0}){const[r,i]=lt.useState(!1),n=lt.useRef(!1),s=lt.useRef(new Set([])),[o,c]=lt.useMemo(()=>{if(t!==null){const h=(Array.isArray(t)?t:[t]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
67
+ `).replace(`
68
+
69
+ `,`
70
+ +`).split(`
71
+ `)),f=h.reduce((p,m)=>p.concat(...m),[]);return[h,f]}return[[],[]]},[t]);return lt.useEffect(()=>{const u=(e==null?void 0:e.target)??mA,h=(e==null?void 0:e.actInsideInputWithModifier)??!0;if(t!==null){const f=g=>{var b,w;if(n.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!n.current||n.current&&!h)&&KO(g))return!1;const v=xA(g.code,c);if(s.current.add(g[v]),yA(o,s.current,!1)){const _=((w=(b=g.composedPath)==null?void 0:b.call(g))==null?void 0:w[0])||g.target,S=(_==null?void 0:_.nodeName)==="BUTTON"||(_==null?void 0:_.nodeName)==="A";e.preventDefault!==!1&&(n.current||!S)&&g.preventDefault(),i(!0)}},p=g=>{const x=xA(g.code,c);yA(o,s.current,!0)?(i(!1),s.current.clear()):s.current.delete(g[x]),g.key==="Meta"&&s.current.clear(),n.current=!1},m=()=>{s.current.clear(),i(!1)};return u==null||u.addEventListener("keydown",f),u==null||u.addEventListener("keyup",p),window.addEventListener("blur",m),window.addEventListener("contextmenu",m),()=>{u==null||u.removeEventListener("keydown",f),u==null||u.removeEventListener("keyup",p),window.removeEventListener("blur",m),window.removeEventListener("contextmenu",m)}}},[t,i]),r}function yA(t,e,r){return t.filter(i=>r||i.length===e.size).some(i=>i.every(n=>e.has(n)))}function xA(t,e){return e.includes(t)?"code":"key"}const dY=()=>{const t=Ve();return lt.useMemo(()=>({zoomIn:e=>{const{panZoom:r}=t.getState();return r?r.scaleBy(1.2,e):Promise.resolve(!1)},zoomOut:e=>{const{panZoom:r}=t.getState();return r?r.scaleBy(1/1.2,e):Promise.resolve(!1)},zoomTo:(e,r)=>{const{panZoom:i}=t.getState();return i?i.scaleTo(e,r):Promise.resolve(!1)},getZoom:()=>t.getState().transform[2],setViewport:async(e,r)=>{const{transform:[i,n,s],panZoom:o}=t.getState();return o?(await o.setViewport({x:e.x??i,y:e.y??n,zoom:e.zoom??s},r),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[e,r,i]=t.getState().transform;return{x:e,y:r,zoom:i}},setCenter:async(e,r,i)=>t.getState().setCenter(e,r,i),fitBounds:async(e,r)=>{const{width:i,height:n,minZoom:s,maxZoom:o,panZoom:c}=t.getState(),u=Q2(e,i,n,s,o,(r==null?void 0:r.padding)??.1);return c?(await c.setViewport(u,{duration:r==null?void 0:r.duration,ease:r==null?void 0:r.ease,interpolate:r==null?void 0:r.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(e,r={})=>{const{transform:i,snapGrid:n,snapToGrid:s,domNode:o}=t.getState();if(!o)return e;const{x:c,y:u}=o.getBoundingClientRect(),h={x:e.x-c,y:e.y-u},f=r.snapGrid??n,p=r.snapToGrid??s;return sh(h,i,p,f)},flowToScreenPosition:e=>{const{transform:r,domNode:i}=t.getState();if(!i)return e;const{x:n,y:s}=i.getBoundingClientRect(),o=Md(e,r);return{x:o.x+n,y:o.y+s}}}),[])};function vR(t,e){const r=[],i=new Map,n=[];for(const s of t)if(s.type==="add"){n.push(s);continue}else if(s.type==="remove"||s.type==="replace")i.set(s.id,[s]);else{const o=i.get(s.id);o?o.push(s):i.set(s.id,[s])}for(const s of e){const o=i.get(s.id);if(!o){r.push(s);continue}if(o[0].type==="remove")continue;if(o[0].type==="replace"){r.push({...o[0].item});continue}const c={...s};for(const u of o)pY(u,c);r.push(c)}return n.length&&n.forEach(s=>{s.index!==void 0?r.splice(s.index,0,{...s.item}):r.push({...s.item})}),r}function pY(t,e){switch(t.type){case"select":{e.selected=t.selected;break}case"position":{typeof t.position<"u"&&(e.position=t.position),typeof t.dragging<"u"&&(e.dragging=t.dragging);break}case"dimensions":{typeof t.dimensions<"u"&&(e.measured={...t.dimensions},t.setAttributes&&((t.setAttributes===!0||t.setAttributes==="width")&&(e.width=t.dimensions.width),(t.setAttributes===!0||t.setAttributes==="height")&&(e.height=t.dimensions.height))),typeof t.resizing=="boolean"&&(e.resizing=t.resizing);break}}}function CR(t,e){return vR(t,e)}function wR(t,e){return vR(t,e)}function Is(t,e){return{id:t,type:"select",selected:e}}function ll(t,e=new Set,r=!1){const i=[];for(const[n,s]of t){const o=e.has(n);!(s.selected===void 0&&!o)&&s.selected!==o&&(r&&(s.selected=o),i.push(Is(s.id,o)))}return i}function bA({items:t=[],lookup:e}){var n;const r=[],i=new Map(t.map(s=>[s.id,s]));for(const[s,o]of t.entries()){const c=e.get(o.id),u=((n=c==null?void 0:c.internals)==null?void 0:n.userNode)??c;u!==void 0&&u!==o&&r.push({id:o.id,item:o,type:"replace"}),u===void 0&&r.push({item:o,type:"add",index:s})}for(const[s]of e)i.get(s)===void 0&&r.push({id:s,type:"remove"});return r}function vA(t){return{id:t.id,type:"remove"}}const CA=t=>qU(t),gY=t=>UO(t);function SR(t){return lt.forwardRef(t)}function wA(t){const[e,r]=lt.useState(BigInt(0)),[i]=lt.useState(()=>mY(()=>r(n=>n+BigInt(1))));return DC(()=>{const n=i.get();n.length&&(t(n),i.reset())},[e]),i}function mY(t){let e=[];return{get:()=>e,reset:()=>{e=[]},push:r=>{e.push(r),t()}}}const kR=lt.createContext(null);function yY({children:t}){const e=Ve(),r=lt.useCallback(c=>{const{nodes:u=[],setNodes:h,hasDefaultNodes:f,onNodesChange:p,nodeLookup:m,fitViewQueued:g,onNodesChangeMiddlewareMap:x}=e.getState();let v=u;for(const w of c)v=typeof w=="function"?w(v):w;let b=bA({items:v,lookup:m});for(const w of x.values())b=w(b);f&&h(v),b.length>0?p==null||p(b):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:_,setNodes:S}=e.getState();w&&S(_)})},[]),i=wA(r),n=lt.useCallback(c=>{const{edges:u=[],setEdges:h,hasDefaultEdges:f,onEdgesChange:p,edgeLookup:m}=e.getState();let g=u;for(const x of c)g=typeof x=="function"?x(g):x;f?h(g):p&&p(bA({items:g,lookup:m}))},[]),s=wA(n),o=lt.useMemo(()=>({nodeQueue:i,edgeQueue:s}),[]);return T.jsx(kR.Provider,{value:o,children:t})}function xY(){const t=lt.useContext(kR);if(!t)throw new Error("useBatchContext must be used within a BatchProvider");return t}const bY=t=>!!t.panZoom;function xp(){const t=dY(),e=Ve(),r=xY(),i=ye(bY),n=lt.useMemo(()=>{const s=p=>e.getState().nodeLookup.get(p),o=p=>{r.nodeQueue.push(p)},c=p=>{r.edgeQueue.push(p)},u=p=>{var w,_;const{nodeLookup:m,nodeOrigin:g}=e.getState(),x=CA(p)?p:m.get(p.id),v=x.parentId?QO(x.position,x.measured,x.parentId,m,g):x.position,b={...x,position:v,width:((w=x.measured)==null?void 0:w.width)??x.width,height:((_=x.measured)==null?void 0:_.height)??x.height};return Dl(b)},h=(p,m,g={replace:!1})=>{o(x=>x.map(v=>{if(v.id===p){const b=typeof m=="function"?m(v):m;return g.replace&&CA(b)?b:{...v,...b}}return v}))},f=(p,m,g={replace:!1})=>{c(x=>x.map(v=>{if(v.id===p){const b=typeof m=="function"?m(v):m;return g.replace&&gY(b)?b:{...v,...b}}return v}))};return{getNodes:()=>e.getState().nodes.map(p=>({...p})),getNode:p=>{var m;return(m=s(p))==null?void 0:m.internals.userNode},getInternalNode:s,getEdges:()=>{const{edges:p=[]}=e.getState();return p.map(m=>({...m}))},getEdge:p=>e.getState().edgeLookup.get(p),setNodes:o,setEdges:c,addNodes:p=>{const m=Array.isArray(p)?p:[p];r.nodeQueue.push(g=>[...g,...m])},addEdges:p=>{const m=Array.isArray(p)?p:[p];r.edgeQueue.push(g=>[...g,...m])},toObject:()=>{const{nodes:p=[],edges:m=[],transform:g}=e.getState(),[x,v,b]=g;return{nodes:p.map(w=>({...w})),edges:m.map(w=>({...w})),viewport:{x,y:v,zoom:b}}},deleteElements:async({nodes:p=[],edges:m=[]})=>{const{nodes:g,edges:x,onNodesDelete:v,onEdgesDelete:b,triggerNodeChanges:w,triggerEdgeChanges:_,onDelete:S,onBeforeDelete:E}=e.getState(),{nodes:L,edges:A}=await HU({nodesToRemove:p,edgesToRemove:m,nodes:g,edges:x,onBeforeDelete:E}),R=A.length>0,j=L.length>0;if(R){const Y=A.map(vA);b==null||b(A),_(Y)}if(j){const Y=L.map(vA);v==null||v(L),w(Y)}return(j||R)&&(S==null||S({nodes:L,edges:A})),{deletedNodes:L,deletedEdges:A}},getIntersectingNodes:(p,m=!0,g)=>{const x=WE(p),v=x?p:u(p),b=g!==void 0;return v?(g||e.getState().nodes).filter(w=>{const _=e.getState().nodeLookup.get(w.id);if(_&&!x&&(w.id===p.id||!_.internals.positionAbsolute))return!1;const S=Dl(b?w:_),E=$u(S,v);return m&&E>0||E>=S.width*S.height||E>=v.width*v.height}):[]},isNodeIntersecting:(p,m,g=!0)=>{const v=WE(p)?p:u(p);if(!v)return!1;const b=$u(v,m);return g&&b>0||b>=m.width*m.height||b>=v.width*v.height},updateNode:h,updateNodeData:(p,m,g={replace:!1})=>{h(p,x=>{const v=typeof m=="function"?m(x):m;return g.replace?{...x,data:v}:{...x,data:{...x.data,...v}}},g)},updateEdge:f,updateEdgeData:(p,m,g={replace:!1})=>{f(p,x=>{const v=typeof m=="function"?m(x):m;return g.replace?{...x,data:v}:{...x,data:{...x.data,...v}}},g)},getNodesBounds:p=>{const{nodeLookup:m,nodeOrigin:g}=e.getState();return zU(p,{nodeLookup:m,nodeOrigin:g})},getHandleConnections:({type:p,id:m,nodeId:g})=>{var x;return Array.from(((x=e.getState().connectionLookup.get(`${g}-${p}${m?`-${m}`:""}`))==null?void 0:x.values())??[])},getNodeConnections:({type:p,handleId:m,nodeId:g})=>{var x;return Array.from(((x=e.getState().connectionLookup.get(`${g}${p?m?`-${p}-${m}`:`-${p}`:""}`))==null?void 0:x.values())??[])},fitView:async p=>{const m=e.getState().fitViewResolver??WU();return e.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:m}),r.nodeQueue.push(g=>[...g]),m.promise}}},[]);return lt.useMemo(()=>({...n,...t,viewportInitialized:i}),[i])}const SA=t=>t.selected,vY=typeof window<"u"?window:void 0;function CY({deleteKeyCode:t,multiSelectionKeyCode:e}){const r=Ve(),{deleteElements:i}=xp(),n=Hu(t,{actInsideInputWithModifier:!1}),s=Hu(e,{target:vY});lt.useEffect(()=>{if(n){const{edges:o,nodes:c}=r.getState();i({nodes:c.filter(SA),edges:o.filter(SA)}),r.setState({nodesSelectionActive:!1})}},[n]),lt.useEffect(()=>{r.setState({multiSelectionActive:s})},[s])}function wY(t){const e=Ve();lt.useEffect(()=>{const r=()=>{var n,s,o,c;if(!t.current||!(((s=(n=t.current).checkVisibility)==null?void 0:s.call(n))??!0))return!1;const i=Z2(t.current);(i.height===0||i.width===0)&&((c=(o=e.getState()).onError)==null||c.call(o,"004",An.error004())),e.setState({width:i.width||500,height:i.height||500})};if(t.current){r(),window.addEventListener("resize",r);const i=new ResizeObserver(()=>r());return i.observe(t.current),()=>{window.removeEventListener("resize",r),i&&t.current&&i.unobserve(t.current)}}},[])}const bp={position:"absolute",width:"100%",height:"100%",top:0,left:0},SY=t=>({userSelectionActive:t.userSelectionActive,lib:t.lib,connectionInProgress:t.connection.inProgress});function kY({onPaneContextMenu:t,zoomOnScroll:e=!0,zoomOnPinch:r=!0,panOnScroll:i=!1,panOnScrollSpeed:n=.5,panOnScrollMode:s=Gs.Free,zoomOnDoubleClick:o=!0,panOnDrag:c=!0,defaultViewport:u,translateExtent:h,minZoom:f,maxZoom:p,zoomActivationKeyCode:m,preventScrolling:g=!0,children:x,noWheelClassName:v,noPanClassName:b,onViewportChange:w,isControlledViewport:_,paneClickDistance:S,selectionOnDrag:E}){const L=Ve(),A=lt.useRef(null),{userSelectionActive:R,lib:j,connectionInProgress:Y}=ye(SY,We),W=Hu(m),O=lt.useRef();wY(A);const z=lt.useCallback(X=>{w==null||w({x:X[0],y:X[1],zoom:X[2]}),_||L.setState({transform:X})},[w,_]);return lt.useEffect(()=>{if(A.current){O.current=LG({domNode:A.current,minZoom:f,maxZoom:p,translateExtent:h,viewport:u,onDraggingChange:N=>L.setState(P=>P.paneDragging===N?P:{paneDragging:N}),onPanZoomStart:(N,P)=>{const{onViewportChangeStart:$,onMoveStart:q}=L.getState();q==null||q(N,P),$==null||$(P)},onPanZoom:(N,P)=>{const{onViewportChange:$,onMove:q}=L.getState();q==null||q(N,P),$==null||$(P)},onPanZoomEnd:(N,P)=>{const{onViewportChangeEnd:$,onMoveEnd:q}=L.getState();q==null||q(N,P),$==null||$(P)}});const{x:X,y:M,zoom:F}=O.current.getViewport();return L.setState({panZoom:O.current,transform:[X,M,F],domNode:A.current.closest(".react-flow")}),()=>{var N;(N=O.current)==null||N.destroy()}}},[]),lt.useEffect(()=>{var X;(X=O.current)==null||X.update({onPaneContextMenu:t,zoomOnScroll:e,zoomOnPinch:r,panOnScroll:i,panOnScrollSpeed:n,panOnScrollMode:s,zoomOnDoubleClick:o,panOnDrag:c,zoomActivationKeyPressed:W,preventScrolling:g,noPanClassName:b,userSelectionActive:R,noWheelClassName:v,lib:j,onTransformChange:z,connectionInProgress:Y,selectionOnDrag:E,paneClickDistance:S})},[t,e,r,i,n,s,o,c,W,g,b,R,v,j,z,Y,E,S]),T.jsx("div",{className:"react-flow__renderer",ref:A,style:bp,children:x})}const _Y=t=>({userSelectionActive:t.userSelectionActive,userSelectionRect:t.userSelectionRect});function TY(){const{userSelectionActive:t,userSelectionRect:e}=ye(_Y,We);return t&&e?T.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:e.width,height:e.height,transform:`translate(${e.x}px, ${e.y}px)`}}):null}const T0=(t,e)=>r=>{r.target===e.current&&(t==null||t(r))},EY=t=>({userSelectionActive:t.userSelectionActive,elementsSelectable:t.elementsSelectable,connectionInProgress:t.connection.inProgress,dragging:t.paneDragging});function AY({isSelecting:t,selectionKeyPressed:e,selectionMode:r=zu.Full,panOnDrag:i,paneClickDistance:n,selectionOnDrag:s,onSelectionStart:o,onSelectionEnd:c,onPaneClick:u,onPaneContextMenu:h,onPaneScroll:f,onPaneMouseEnter:p,onPaneMouseMove:m,onPaneMouseLeave:g,children:x}){const v=Ve(),{userSelectionActive:b,elementsSelectable:w,dragging:_,connectionInProgress:S}=ye(EY,We),E=w&&(t||b),L=lt.useRef(null),A=lt.useRef(),R=lt.useRef(new Set),j=lt.useRef(new Set),Y=lt.useRef(!1),W=$=>{if(Y.current||S){Y.current=!1;return}u==null||u($),v.getState().resetSelectedElements(),v.setState({nodesSelectionActive:!1})},O=$=>{if(Array.isArray(i)&&(i!=null&&i.includes(2))){$.preventDefault();return}h==null||h($)},z=f?$=>f($):void 0,X=$=>{Y.current&&($.stopPropagation(),Y.current=!1)},M=$=>{var J,tt;const{domNode:q}=v.getState();if(A.current=q==null?void 0:q.getBoundingClientRect(),!A.current)return;const I=$.target===L.current;if(!I&&!!$.target.closest(".nokey")||!t||!(s&&I||e)||$.button!==0||!$.isPrimary)return;(tt=(J=$.target)==null?void 0:J.setPointerCapture)==null||tt.call(J,$.pointerId),Y.current=!1;const{x:H,y:Q}=an($.nativeEvent,A.current);v.setState({userSelectionRect:{width:0,height:0,startX:H,startY:Q,x:H,y:Q}}),I||($.stopPropagation(),$.preventDefault())},F=$=>{const{userSelectionRect:q,transform:I,nodeLookup:G,edgeLookup:Z,connectionLookup:H,triggerNodeChanges:Q,triggerEdgeChanges:J,defaultEdgeOptions:tt,resetSelectedElements:K}=v.getState();if(!A.current||!q)return;const{x:nt,y:ct}=an($.nativeEvent,A.current),{startX:it,startY:dt}=q;if(!Y.current){const Ht=e?0:n;if(Math.hypot(nt-it,ct-dt)<=Ht)return;K(),o==null||o($)}Y.current=!0;const Ct={startX:it,startY:dt,x:nt<it?nt:it,y:ct<dt?ct:dt,width:Math.abs(nt-it),height:Math.abs(ct-dt)},kt=R.current,At=j.current;R.current=new Set(X2(G,Ct,I,r===zu.Partial,!0).map(Ht=>Ht.id)),j.current=new Set;const Et=(tt==null?void 0:tt.selectable)??!0;for(const Ht of R.current){const qt=H.get(Ht);if(qt)for(const{edgeId:we}of qt.values()){const Be=Z.get(we);Be&&(Be.selectable??Et)&&j.current.add(we)}}if(!VE(kt,R.current)){const Ht=ll(G,R.current,!0);Q(Ht)}if(!VE(At,j.current)){const Ht=ll(Z,j.current);J(Ht)}v.setState({userSelectionRect:Ct,userSelectionActive:!0,nodesSelectionActive:!1})},N=$=>{var q,I;$.button===0&&((I=(q=$.target)==null?void 0:q.releasePointerCapture)==null||I.call(q,$.pointerId),!b&&$.target===L.current&&v.getState().userSelectionRect&&(W==null||W($)),v.setState({userSelectionActive:!1,userSelectionRect:null}),Y.current&&(c==null||c($),v.setState({nodesSelectionActive:R.current.size>0})))},P=i===!0||Array.isArray(i)&&i.includes(0);return T.jsxs("div",{className:xr(["react-flow__pane",{draggable:P,dragging:_,selection:t}]),onClick:E?void 0:T0(W,L),onContextMenu:T0(O,L),onWheel:T0(z,L),onPointerEnter:E?void 0:p,onPointerMove:E?F:m,onPointerUp:E?N:void 0,onPointerDownCapture:E?M:void 0,onClickCapture:E?X:void 0,onPointerLeave:g,ref:L,style:bp,children:[x,T.jsx(TY,{})]})}function FC({id:t,store:e,unselect:r=!1,nodeRef:i}){const{addSelectedNodes:n,unselectNodesAndEdges:s,multiSelectionActive:o,nodeLookup:c,onError:u}=e.getState(),h=c.get(t);if(!h){u==null||u("012",An.error012(t));return}e.setState({nodesSelectionActive:!1}),h.selected?(r||h.selected&&o)&&(s({nodes:[h],edges:[]}),requestAnimationFrame(()=>{var f;return(f=i==null?void 0:i.current)==null?void 0:f.blur()})):n([t])}function _R({nodeRef:t,disabled:e=!1,noDragClassName:r,handleSelector:i,nodeId:n,isSelectable:s,nodeClickDistance:o}){const c=Ve(),[u,h]=lt.useState(!1),f=lt.useRef();return lt.useEffect(()=>{f.current=mG({getStoreItems:()=>c.getState(),onNodeMouseDown:p=>{FC({id:p,store:c,nodeRef:t})},onDragStart:()=>{h(!0)},onDragStop:()=>{h(!1)}})},[]),lt.useEffect(()=>{if(!(e||!t.current||!f.current))return f.current.update({noDragClassName:r,handleSelector:i,domNode:t.current,isSelectable:s,nodeId:n,nodeClickDistance:o}),()=>{var p;(p=f.current)==null||p.destroy()}},[r,i,e,s,t,n,o]),u}const BY=t=>e=>e.selected&&(e.draggable||t&&typeof e.draggable>"u");function TR(){const t=Ve();return lt.useCallback(r=>{const{nodeExtent:i,snapToGrid:n,snapGrid:s,nodesDraggable:o,onError:c,updateNodePositions:u,nodeLookup:h,nodeOrigin:f}=t.getState(),p=new Map,m=BY(o),g=n?s[0]:5,x=n?s[1]:5,v=r.direction.x*g*r.factor,b=r.direction.y*x*r.factor;for(const[,w]of h){if(!m(w))continue;let _={x:w.internals.positionAbsolute.x+v,y:w.internals.positionAbsolute.y+b};n&&(_=ah(_,s));const{position:S,positionAbsolute:E}=GO({nodeId:w.id,nextPosition:_,nodeLookup:h,nodeExtent:i,nodeOrigin:f,onError:c});w.position=S,w.internals.positionAbsolute=E,p.set(w.id,w)}u(p)},[])}const iw=lt.createContext(null),LY=iw.Provider;iw.Consumer;const ER=()=>lt.useContext(iw),MY=t=>({connectOnClick:t.connectOnClick,noPanClassName:t.noPanClassName,rfId:t.rfId}),NY=(t,e,r)=>i=>{const{connectionClickStartHandle:n,connectionMode:s,connection:o}=i,{fromHandle:c,toHandle:u,isValid:h}=o,f=(u==null?void 0:u.nodeId)===t&&(u==null?void 0:u.id)===e&&(u==null?void 0:u.type)===r;return{connectingFrom:(c==null?void 0:c.nodeId)===t&&(c==null?void 0:c.id)===e&&(c==null?void 0:c.type)===r,connectingTo:f,clickConnecting:(n==null?void 0:n.nodeId)===t&&(n==null?void 0:n.id)===e&&(n==null?void 0:n.type)===r,isPossibleEndHandle:s===Ol.Strict?(c==null?void 0:c.type)!==r:t!==(c==null?void 0:c.nodeId)||e!==(c==null?void 0:c.id),connectionInProcess:!!c,clickConnectionInProcess:!!n,valid:f&&h}};function OY({type:t="source",position:e=jt.Top,isValidConnection:r,isConnectable:i=!0,isConnectableStart:n=!0,isConnectableEnd:s=!0,id:o,onConnect:c,children:u,className:h,onMouseDown:f,onTouchStart:p,...m},g){var F,N;const x=o||null,v=t==="target",b=Ve(),w=ER(),{connectOnClick:_,noPanClassName:S,rfId:E}=ye(MY,We),{connectingFrom:L,connectingTo:A,clickConnecting:R,isPossibleEndHandle:j,connectionInProcess:Y,clickConnectionInProcess:W,valid:O}=ye(NY(w,x,t),We);w||(N=(F=b.getState()).onError)==null||N.call(F,"010",An.error010());const z=P=>{const{defaultEdgeOptions:$,onConnect:q,hasDefaultEdges:I}=b.getState(),G={...$,...P};if(I){const{edges:Z,setEdges:H}=b.getState();H(tG(G,Z))}q==null||q(G),c==null||c(G)},X=P=>{if(!w)return;const $=JO(P.nativeEvent);if(n&&($&&P.button===0||!$)){const q=b.getState();RC.onPointerDown(P.nativeEvent,{handleDomNode:P.currentTarget,autoPanOnConnect:q.autoPanOnConnect,connectionMode:q.connectionMode,connectionRadius:q.connectionRadius,domNode:q.domNode,nodeLookup:q.nodeLookup,lib:q.lib,isTarget:v,handleId:x,nodeId:w,flowId:q.rfId,panBy:q.panBy,cancelConnection:q.cancelConnection,onConnectStart:q.onConnectStart,onConnectEnd:(...I)=>{var G,Z;return(Z=(G=b.getState()).onConnectEnd)==null?void 0:Z.call(G,...I)},updateConnection:q.updateConnection,onConnect:z,isValidConnection:r||((...I)=>{var G,Z;return((Z=(G=b.getState()).isValidConnection)==null?void 0:Z.call(G,...I))??!0}),getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,autoPanSpeed:q.autoPanSpeed,dragThreshold:q.connectionDragThreshold})}$?f==null||f(P):p==null||p(P)},M=P=>{const{onClickConnectStart:$,onClickConnectEnd:q,connectionClickStartHandle:I,connectionMode:G,isValidConnection:Z,lib:H,rfId:Q,nodeLookup:J,connection:tt}=b.getState();if(!w||!I&&!n)return;if(!I){$==null||$(P.nativeEvent,{nodeId:w,handleId:x,handleType:t}),b.setState({connectionClickStartHandle:{nodeId:w,type:t,id:x}});return}const K=ZO(P.target),nt=r||Z,{connection:ct,isValid:it}=RC.isValid(P.nativeEvent,{handle:{nodeId:w,id:x,type:t},connectionMode:G,fromNodeId:I.nodeId,fromHandleId:I.id||null,fromType:I.type,isValidConnection:nt,flowId:Q,doc:K,lib:H,nodeLookup:J});it&&ct&&z(ct);const dt=structuredClone(tt);delete dt.inProgress,dt.toPosition=dt.toHandle?dt.toHandle.position:null,q==null||q(P,dt),b.setState({connectionClickStartHandle:null})};return T.jsx("div",{"data-handleid":x,"data-nodeid":w,"data-handlepos":e,"data-id":`${E}-${w}-${x}-${t}`,className:xr(["react-flow__handle",`react-flow__handle-${e}`,"nodrag",S,h,{source:!v,target:v,connectable:i,connectablestart:n,connectableend:s,clickconnecting:R,connectingfrom:L,connectingto:A,valid:O,connectionindicator:i&&(!Y||j)&&(Y||W?s:n)}]),onMouseDown:X,onTouchStart:X,onClick:_?M:void 0,ref:g,...m,children:u})}const Va=lt.memo(SR(OY));function RY({data:t,isConnectable:e,sourcePosition:r=jt.Bottom}){return T.jsxs(T.Fragment,{children:[t==null?void 0:t.label,T.jsx(Va,{type:"source",position:r,isConnectable:e})]})}function DY({data:t,isConnectable:e,targetPosition:r=jt.Top,sourcePosition:i=jt.Bottom}){return T.jsxs(T.Fragment,{children:[T.jsx(Va,{type:"target",position:r,isConnectable:e}),t==null?void 0:t.label,T.jsx(Va,{type:"source",position:i,isConnectable:e})]})}function FY(){return null}function IY({data:t,isConnectable:e,targetPosition:r=jt.Top}){return T.jsxs(T.Fragment,{children:[T.jsx(Va,{type:"target",position:r,isConnectable:e}),t==null?void 0:t.label]})}const Nd={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},kA={input:RY,default:DY,output:IY,group:FY};function qY(t){var e,r,i,n;return t.internals.handleBounds===void 0?{width:t.width??t.initialWidth??((e=t.style)==null?void 0:e.width),height:t.height??t.initialHeight??((r=t.style)==null?void 0:r.height)}:{width:t.width??((i=t.style)==null?void 0:i.width),height:t.height??((n=t.style)==null?void 0:n.height)}}const zY=t=>{const{width:e,height:r,x:i,y:n}=nh(t.nodeLookup,{filter:s=>!!s.selected});return{width:nn(e)?e:null,height:nn(r)?r:null,userSelectionActive:t.userSelectionActive,transformString:`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]}) translate(${i}px,${n}px)`}};function jY({onSelectionContextMenu:t,noPanClassName:e,disableKeyboardA11y:r}){const i=Ve(),{width:n,height:s,transformString:o,userSelectionActive:c}=ye(zY,We),u=TR(),h=lt.useRef(null);lt.useEffect(()=>{var g;r||(g=h.current)==null||g.focus({preventScroll:!0})},[r]);const f=!c&&n!==null&&s!==null;if(_R({nodeRef:h,disabled:!f}),!f)return null;const p=t?g=>{const x=i.getState().nodes.filter(v=>v.selected);t(g,x)}:void 0,m=g=>{Object.prototype.hasOwnProperty.call(Nd,g.key)&&(g.preventDefault(),u({direction:Nd[g.key],factor:g.shiftKey?4:1}))};return T.jsx("div",{className:xr(["react-flow__nodesselection","react-flow__container",e]),style:{transform:o},children:T.jsx("div",{ref:h,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:r?void 0:-1,onKeyDown:r?void 0:m,style:{width:n,height:s}})})}const _A=typeof window<"u"?window:void 0,$Y=t=>({nodesSelectionActive:t.nodesSelectionActive,userSelectionActive:t.userSelectionActive});function AR({children:t,onPaneClick:e,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:n,onPaneContextMenu:s,onPaneScroll:o,paneClickDistance:c,deleteKeyCode:u,selectionKeyCode:h,selectionOnDrag:f,selectionMode:p,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:x,panActivationKeyCode:v,zoomActivationKeyCode:b,elementsSelectable:w,zoomOnScroll:_,zoomOnPinch:S,panOnScroll:E,panOnScrollSpeed:L,panOnScrollMode:A,zoomOnDoubleClick:R,panOnDrag:j,defaultViewport:Y,translateExtent:W,minZoom:O,maxZoom:z,preventScrolling:X,onSelectionContextMenu:M,noWheelClassName:F,noPanClassName:N,disableKeyboardA11y:P,onViewportChange:$,isControlledViewport:q}){const{nodesSelectionActive:I,userSelectionActive:G}=ye($Y,We),Z=Hu(h,{target:_A}),H=Hu(v,{target:_A}),Q=H||j,J=H||E,tt=f&&Q!==!0,K=Z||G||tt;return CY({deleteKeyCode:u,multiSelectionKeyCode:x}),T.jsx(kY,{onPaneContextMenu:s,elementsSelectable:w,zoomOnScroll:_,zoomOnPinch:S,panOnScroll:J,panOnScrollSpeed:L,panOnScrollMode:A,zoomOnDoubleClick:R,panOnDrag:!Z&&Q,defaultViewport:Y,translateExtent:W,minZoom:O,maxZoom:z,zoomActivationKeyCode:b,preventScrolling:X,noWheelClassName:F,noPanClassName:N,onViewportChange:$,isControlledViewport:q,paneClickDistance:c,selectionOnDrag:tt,children:T.jsxs(AY,{onSelectionStart:m,onSelectionEnd:g,onPaneClick:e,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:n,onPaneContextMenu:s,onPaneScroll:o,panOnDrag:Q,isSelecting:!!K,selectionMode:p,selectionKeyPressed:Z,paneClickDistance:c,selectionOnDrag:tt,children:[t,I&&T.jsx(jY,{onSelectionContextMenu:M,noPanClassName:N,disableKeyboardA11y:P})]})})}AR.displayName="FlowRenderer";const PY=lt.memo(AR),HY=t=>e=>t?X2(e.nodeLookup,{x:0,y:0,width:e.width,height:e.height},e.transform,!0).map(r=>r.id):Array.from(e.nodeLookup.keys());function UY(t){return ye(lt.useCallback(HY(t),[t]),We)}const GY=t=>t.updateNodeInternals;function YY(){const t=ye(GY),[e]=lt.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const i=new Map;r.forEach(n=>{const s=n.target.getAttribute("data-id");i.set(s,{id:s,nodeElement:n.target,force:!0})}),t(i)}));return lt.useEffect(()=>()=>{e==null||e.disconnect()},[e]),e}function WY({node:t,nodeType:e,hasDimensions:r,resizeObserver:i}){const n=Ve(),s=lt.useRef(null),o=lt.useRef(null),c=lt.useRef(t.sourcePosition),u=lt.useRef(t.targetPosition),h=lt.useRef(e),f=r&&!!t.internals.handleBounds;return lt.useEffect(()=>{s.current&&!t.hidden&&(!f||o.current!==s.current)&&(o.current&&(i==null||i.unobserve(o.current)),i==null||i.observe(s.current),o.current=s.current)},[f,t.hidden]),lt.useEffect(()=>()=>{o.current&&(i==null||i.unobserve(o.current),o.current=null)},[]),lt.useEffect(()=>{if(s.current){const p=h.current!==e,m=c.current!==t.sourcePosition,g=u.current!==t.targetPosition;(p||m||g)&&(h.current=e,c.current=t.sourcePosition,u.current=t.targetPosition,n.getState().updateNodeInternals(new Map([[t.id,{id:t.id,nodeElement:s.current,force:!0}]])))}},[t.id,e,t.sourcePosition,t.targetPosition]),s}function VY({id:t,onClick:e,onMouseEnter:r,onMouseMove:i,onMouseLeave:n,onContextMenu:s,onDoubleClick:o,nodesDraggable:c,elementsSelectable:u,nodesConnectable:h,nodesFocusable:f,resizeObserver:p,noDragClassName:m,noPanClassName:g,disableKeyboardA11y:x,rfId:v,nodeTypes:b,nodeClickDistance:w,onError:_}){const{node:S,internals:E,isParent:L}=ye(nt=>{const ct=nt.nodeLookup.get(t),it=nt.parentLookup.has(t);return{node:ct,internals:ct.internals,isParent:it}},We);let A=S.type||"default",R=(b==null?void 0:b[A])||kA[A];R===void 0&&(_==null||_("003",An.error003(A)),A="default",R=(b==null?void 0:b.default)||kA.default);const j=!!(S.draggable||c&&typeof S.draggable>"u"),Y=!!(S.selectable||u&&typeof S.selectable>"u"),W=!!(S.connectable||h&&typeof S.connectable>"u"),O=!!(S.focusable||f&&typeof S.focusable>"u"),z=Ve(),X=XO(S),M=WY({node:S,nodeType:A,hasDimensions:X,resizeObserver:p}),F=_R({nodeRef:M,disabled:S.hidden||!j,noDragClassName:m,handleSelector:S.dragHandle,nodeId:t,isSelectable:Y,nodeClickDistance:w}),N=TR();if(S.hidden)return null;const P=ha(S),$=qY(S),q=Y||j||e||r||i||n,I=r?nt=>r(nt,{...E.userNode}):void 0,G=i?nt=>i(nt,{...E.userNode}):void 0,Z=n?nt=>n(nt,{...E.userNode}):void 0,H=s?nt=>s(nt,{...E.userNode}):void 0,Q=o?nt=>o(nt,{...E.userNode}):void 0,J=nt=>{const{selectNodesOnDrag:ct,nodeDragThreshold:it}=z.getState();Y&&(!ct||!j||it>0)&&FC({id:t,store:z,nodeRef:M}),e&&e(nt,{...E.userNode})},tt=nt=>{if(!(KO(nt.nativeEvent)||x)){if(jO.includes(nt.key)&&Y){const ct=nt.key==="Escape";FC({id:t,store:z,unselect:ct,nodeRef:M})}else if(j&&S.selected&&Object.prototype.hasOwnProperty.call(Nd,nt.key)){nt.preventDefault();const{ariaLabelConfig:ct}=z.getState();z.setState({ariaLiveMessage:ct["node.a11yDescription.ariaLiveMessage"]({direction:nt.key.replace("Arrow","").toLowerCase(),x:~~E.positionAbsolute.x,y:~~E.positionAbsolute.y})}),N({direction:Nd[nt.key],factor:nt.shiftKey?4:1})}}},K=()=>{var At;if(x||!((At=M.current)!=null&&At.matches(":focus-visible")))return;const{transform:nt,width:ct,height:it,autoPanOnNodeFocus:dt,setCenter:Ct}=z.getState();if(!dt)return;X2(new Map([[t,S]]),{x:0,y:0,width:ct,height:it},nt,!0).length>0||Ct(S.position.x+P.width/2,S.position.y+P.height/2,{zoom:nt[2]})};return T.jsx("div",{className:xr(["react-flow__node",`react-flow__node-${A}`,{[g]:j},S.className,{selected:S.selected,selectable:Y,parent:L,draggable:j,dragging:F}]),ref:M,style:{zIndex:E.z,transform:`translate(${E.positionAbsolute.x}px,${E.positionAbsolute.y}px)`,pointerEvents:q?"all":"none",visibility:X?"visible":"hidden",...S.style,...$},"data-id":t,"data-testid":`rf__node-${t}`,onMouseEnter:I,onMouseMove:G,onMouseLeave:Z,onContextMenu:H,onClick:J,onDoubleClick:Q,onKeyDown:O?tt:void 0,tabIndex:O?0:void 0,onFocus:O?K:void 0,role:S.ariaRole??(O?"group":void 0),"aria-roledescription":"node","aria-describedby":x?void 0:`${yR}-${v}`,"aria-label":S.ariaLabel,...S.domAttributes,children:T.jsx(LY,{value:t,children:T.jsx(R,{id:t,data:S.data,type:A,positionAbsoluteX:E.positionAbsolute.x,positionAbsoluteY:E.positionAbsolute.y,selected:S.selected??!1,selectable:Y,draggable:j,deletable:S.deletable??!0,isConnectable:W,sourcePosition:S.sourcePosition,targetPosition:S.targetPosition,dragging:F,dragHandle:S.dragHandle,zIndex:E.z,parentId:S.parentId,...P})})})}var XY=lt.memo(VY);const QY=t=>({nodesDraggable:t.nodesDraggable,nodesConnectable:t.nodesConnectable,nodesFocusable:t.nodesFocusable,elementsSelectable:t.elementsSelectable,onError:t.onError});function BR(t){const{nodesDraggable:e,nodesConnectable:r,nodesFocusable:i,elementsSelectable:n,onError:s}=ye(QY,We),o=UY(t.onlyRenderVisibleElements),c=YY();return T.jsx("div",{className:"react-flow__nodes",style:bp,children:o.map(u=>T.jsx(XY,{id:u,nodeTypes:t.nodeTypes,nodeExtent:t.nodeExtent,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,resizeObserver:c,nodesDraggable:e,nodesConnectable:r,nodesFocusable:i,elementsSelectable:n,nodeClickDistance:t.nodeClickDistance,onError:s},u))})}BR.displayName="NodeRenderer";const ZY=lt.memo(BR);function KY(t){return ye(lt.useCallback(r=>{if(!t)return r.edges.map(n=>n.id);const i=[];if(r.width&&r.height)for(const n of r.edges){const s=r.nodeLookup.get(n.source),o=r.nodeLookup.get(n.target);s&&o&&ZU({sourceNode:s,targetNode:o,width:r.width,height:r.height,transform:r.transform})&&i.push(n.id)}return i},[t]),We)}const JY=({color:t="none",strokeWidth:e=1})=>{const r={strokeWidth:e,...t&&{stroke:t}};return T.jsx("polyline",{className:"arrow",style:r,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},tW=({color:t="none",strokeWidth:e=1})=>{const r={strokeWidth:e,...t&&{stroke:t,fill:t}};return T.jsx("polyline",{className:"arrowclosed",style:r,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},TA={[ju.Arrow]:JY,[ju.ArrowClosed]:tW};function eW(t){const e=Ve();return lt.useMemo(()=>{var n,s;return Object.prototype.hasOwnProperty.call(TA,t)?TA[t]:((s=(n=e.getState()).onError)==null||s.call(n,"009",An.error009(t)),null)},[t])}const rW=({id:t,type:e,color:r,width:i=12.5,height:n=12.5,markerUnits:s="strokeWidth",strokeWidth:o,orient:c="auto-start-reverse"})=>{const u=eW(e);return u?T.jsx("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${i}`,markerHeight:`${n}`,viewBox:"-10 -10 20 20",markerUnits:s,orient:c,refX:"0",refY:"0",children:T.jsx(u,{color:r,strokeWidth:o})}):null},LR=({defaultColor:t,rfId:e})=>{const r=ye(s=>s.edges),i=ye(s=>s.defaultEdgeOptions),n=lt.useMemo(()=>aG(r,{id:e,defaultColor:t,defaultMarkerStart:i==null?void 0:i.markerStart,defaultMarkerEnd:i==null?void 0:i.markerEnd}),[r,i,e,t]);return n.length?T.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:T.jsx("defs",{children:n.map(s=>T.jsx(rW,{id:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,strokeWidth:s.strokeWidth,orient:s.orient},s.id))})}):null};LR.displayName="MarkerDefinitions";var iW=lt.memo(LR);function MR({x:t,y:e,label:r,labelStyle:i,labelShowBg:n=!0,labelBgStyle:s,labelBgPadding:o=[2,4],labelBgBorderRadius:c=2,children:u,className:h,...f}){const[p,m]=lt.useState({x:1,y:0,width:0,height:0}),g=xr(["react-flow__edge-textwrapper",h]),x=lt.useRef(null);return lt.useEffect(()=>{if(x.current){const v=x.current.getBBox();m({x:v.x,y:v.y,width:v.width,height:v.height})}},[r]),r?T.jsxs("g",{transform:`translate(${t-p.width/2} ${e-p.height/2})`,className:g,visibility:p.width?"visible":"hidden",...f,children:[n&&T.jsx("rect",{width:p.width+2*o[0],x:-o[0],y:-o[1],height:p.height+2*o[1],className:"react-flow__edge-textbg",style:s,rx:c,ry:c}),T.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:x,style:i,children:r}),u]}):null}MR.displayName="EdgeText";const nW=lt.memo(MR);function vp({path:t,labelX:e,labelY:r,label:i,labelStyle:n,labelShowBg:s,labelBgStyle:o,labelBgPadding:c,labelBgBorderRadius:u,interactionWidth:h=20,...f}){return T.jsxs(T.Fragment,{children:[T.jsx("path",{...f,d:t,fill:"none",className:xr(["react-flow__edge-path",f.className])}),h?T.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}):null,i&&nn(e)&&nn(r)?T.jsx(nW,{x:e,y:r,label:i,labelStyle:n,labelShowBg:s,labelBgStyle:o,labelBgPadding:c,labelBgBorderRadius:u}):null]})}function EA({pos:t,x1:e,y1:r,x2:i,y2:n}){return t===jt.Left||t===jt.Right?[.5*(e+i),r]:[e,.5*(r+n)]}function NR({sourceX:t,sourceY:e,sourcePosition:r=jt.Bottom,targetX:i,targetY:n,targetPosition:s=jt.Top}){const[o,c]=EA({pos:r,x1:t,y1:e,x2:i,y2:n}),[u,h]=EA({pos:s,x1:i,y1:n,x2:t,y2:e}),[f,p,m,g]=tR({sourceX:t,sourceY:e,targetX:i,targetY:n,sourceControlX:o,sourceControlY:c,targetControlX:u,targetControlY:h});return[`M${t},${e} C${o},${c} ${u},${h} ${i},${n}`,f,p,m,g]}function OR(t){return lt.memo(({id:e,sourceX:r,sourceY:i,targetX:n,targetY:s,sourcePosition:o,targetPosition:c,label:u,labelStyle:h,labelShowBg:f,labelBgStyle:p,labelBgPadding:m,labelBgBorderRadius:g,style:x,markerEnd:v,markerStart:b,interactionWidth:w})=>{const[_,S,E]=NR({sourceX:r,sourceY:i,sourcePosition:o,targetX:n,targetY:s,targetPosition:c}),L=t.isInternal?void 0:e;return T.jsx(vp,{id:L,path:_,labelX:S,labelY:E,label:u,labelStyle:h,labelShowBg:f,labelBgStyle:p,labelBgPadding:m,labelBgBorderRadius:g,style:x,markerEnd:v,markerStart:b,interactionWidth:w})})}const aW=OR({isInternal:!1}),RR=OR({isInternal:!0});aW.displayName="SimpleBezierEdge";RR.displayName="SimpleBezierEdgeInternal";function DR(t){return lt.memo(({id:e,sourceX:r,sourceY:i,targetX:n,targetY:s,label:o,labelStyle:c,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:p,style:m,sourcePosition:g=jt.Bottom,targetPosition:x=jt.Top,markerEnd:v,markerStart:b,pathOptions:w,interactionWidth:_})=>{const[S,E,L]=MC({sourceX:r,sourceY:i,sourcePosition:g,targetX:n,targetY:s,targetPosition:x,borderRadius:w==null?void 0:w.borderRadius,offset:w==null?void 0:w.offset,stepPosition:w==null?void 0:w.stepPosition}),A=t.isInternal?void 0:e;return T.jsx(vp,{id:A,path:S,labelX:E,labelY:L,label:o,labelStyle:c,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:v,markerStart:b,interactionWidth:_})})}const FR=DR({isInternal:!1}),IR=DR({isInternal:!0});FR.displayName="SmoothStepEdge";IR.displayName="SmoothStepEdgeInternal";function qR(t){return lt.memo(({id:e,...r})=>{var n;const i=t.isInternal?void 0:e;return T.jsx(FR,{...r,id:i,pathOptions:lt.useMemo(()=>{var s;return{borderRadius:0,offset:(s=r.pathOptions)==null?void 0:s.offset}},[(n=r.pathOptions)==null?void 0:n.offset])})})}const sW=qR({isInternal:!1}),zR=qR({isInternal:!0});sW.displayName="StepEdge";zR.displayName="StepEdgeInternal";function jR(t){return lt.memo(({id:e,sourceX:r,sourceY:i,targetX:n,targetY:s,label:o,labelStyle:c,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:g,markerStart:x,interactionWidth:v})=>{const[b,w,_]=iR({sourceX:r,sourceY:i,targetX:n,targetY:s}),S=t.isInternal?void 0:e;return T.jsx(vp,{id:S,path:b,labelX:w,labelY:_,label:o,labelStyle:c,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:g,markerStart:x,interactionWidth:v})})}const oW=jR({isInternal:!1}),$R=jR({isInternal:!0});oW.displayName="StraightEdge";$R.displayName="StraightEdgeInternal";function PR(t){return lt.memo(({id:e,sourceX:r,sourceY:i,targetX:n,targetY:s,sourcePosition:o=jt.Bottom,targetPosition:c=jt.Top,label:u,labelStyle:h,labelShowBg:f,labelBgStyle:p,labelBgPadding:m,labelBgBorderRadius:g,style:x,markerEnd:v,markerStart:b,pathOptions:w,interactionWidth:_})=>{const[S,E,L]=eR({sourceX:r,sourceY:i,sourcePosition:o,targetX:n,targetY:s,targetPosition:c,curvature:w==null?void 0:w.curvature}),A=t.isInternal?void 0:e;return T.jsx(vp,{id:A,path:S,labelX:E,labelY:L,label:u,labelStyle:h,labelShowBg:f,labelBgStyle:p,labelBgPadding:m,labelBgBorderRadius:g,style:x,markerEnd:v,markerStart:b,interactionWidth:_})})}const lW=PR({isInternal:!1}),HR=PR({isInternal:!0});lW.displayName="BezierEdge";HR.displayName="BezierEdgeInternal";const AA={default:HR,straight:$R,step:zR,smoothstep:IR,simplebezier:RR},BA={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},cW=(t,e,r)=>r===jt.Left?t-e:r===jt.Right?t+e:t,uW=(t,e,r)=>r===jt.Top?t-e:r===jt.Bottom?t+e:t,LA="react-flow__edgeupdater";function MA({position:t,centerX:e,centerY:r,radius:i=10,onMouseDown:n,onMouseEnter:s,onMouseOut:o,type:c}){return T.jsx("circle",{onMouseDown:n,onMouseEnter:s,onMouseOut:o,className:xr([LA,`${LA}-${c}`]),cx:cW(e,i,t),cy:uW(r,i,t),r:i,stroke:"transparent",fill:"transparent"})}function hW({isReconnectable:t,reconnectRadius:e,edge:r,sourceX:i,sourceY:n,targetX:s,targetY:o,sourcePosition:c,targetPosition:u,onReconnect:h,onReconnectStart:f,onReconnectEnd:p,setReconnecting:m,setUpdateHover:g}){const x=Ve(),v=(E,L)=>{if(E.button!==0)return;const{autoPanOnConnect:A,domNode:R,connectionMode:j,connectionRadius:Y,lib:W,onConnectStart:O,cancelConnection:z,nodeLookup:X,rfId:M,panBy:F,updateConnection:N}=x.getState(),P=L.type==="target",$=(G,Z)=>{m(!1),p==null||p(G,r,L.type,Z)},q=G=>h==null?void 0:h(r,G),I=(G,Z)=>{m(!0),f==null||f(E,r,L.type),O==null||O(G,Z)};RC.onPointerDown(E.nativeEvent,{autoPanOnConnect:A,connectionMode:j,connectionRadius:Y,domNode:R,handleId:L.id,nodeId:L.nodeId,nodeLookup:X,isTarget:P,edgeUpdaterType:L.type,lib:W,flowId:M,cancelConnection:z,panBy:F,isValidConnection:(...G)=>{var Z,H;return((H=(Z=x.getState()).isValidConnection)==null?void 0:H.call(Z,...G))??!0},onConnect:q,onConnectStart:I,onConnectEnd:(...G)=>{var Z,H;return(H=(Z=x.getState()).onConnectEnd)==null?void 0:H.call(Z,...G)},onReconnectEnd:$,updateConnection:N,getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,dragThreshold:x.getState().connectionDragThreshold,handleDomNode:E.currentTarget})},b=E=>v(E,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),w=E=>v(E,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),_=()=>g(!0),S=()=>g(!1);return T.jsxs(T.Fragment,{children:[(t===!0||t==="source")&&T.jsx(MA,{position:c,centerX:i,centerY:n,radius:e,onMouseDown:b,onMouseEnter:_,onMouseOut:S,type:"source"}),(t===!0||t==="target")&&T.jsx(MA,{position:u,centerX:s,centerY:o,radius:e,onMouseDown:w,onMouseEnter:_,onMouseOut:S,type:"target"})]})}function fW({id:t,edgesFocusable:e,edgesReconnectable:r,elementsSelectable:i,onClick:n,onDoubleClick:s,onContextMenu:o,onMouseEnter:c,onMouseMove:u,onMouseLeave:h,reconnectRadius:f,onReconnect:p,onReconnectStart:m,onReconnectEnd:g,rfId:x,edgeTypes:v,noPanClassName:b,onError:w,disableKeyboardA11y:_}){let S=ye(Ct=>Ct.edgeLookup.get(t));const E=ye(Ct=>Ct.defaultEdgeOptions);S=E?{...E,...S}:S;let L=S.type||"default",A=(v==null?void 0:v[L])||AA[L];A===void 0&&(w==null||w("011",An.error011(L)),L="default",A=(v==null?void 0:v.default)||AA.default);const R=!!(S.focusable||e&&typeof S.focusable>"u"),j=typeof p<"u"&&(S.reconnectable||r&&typeof S.reconnectable>"u"),Y=!!(S.selectable||i&&typeof S.selectable>"u"),W=lt.useRef(null),[O,z]=lt.useState(!1),[X,M]=lt.useState(!1),F=Ve(),{zIndex:N,sourceX:P,sourceY:$,targetX:q,targetY:I,sourcePosition:G,targetPosition:Z}=ye(lt.useCallback(Ct=>{const kt=Ct.nodeLookup.get(S.source),At=Ct.nodeLookup.get(S.target);if(!kt||!At)return{zIndex:S.zIndex,...BA};const Et=nG({id:t,sourceNode:kt,targetNode:At,sourceHandle:S.sourceHandle||null,targetHandle:S.targetHandle||null,connectionMode:Ct.connectionMode,onError:w});return{zIndex:QU({selected:S.selected,zIndex:S.zIndex,sourceNode:kt,targetNode:At,elevateOnSelect:Ct.elevateEdgesOnSelect,zIndexMode:Ct.zIndexMode}),...Et||BA}},[S.source,S.target,S.sourceHandle,S.targetHandle,S.selected,S.zIndex]),We),H=lt.useMemo(()=>S.markerStart?`url('#${NC(S.markerStart,x)}')`:void 0,[S.markerStart,x]),Q=lt.useMemo(()=>S.markerEnd?`url('#${NC(S.markerEnd,x)}')`:void 0,[S.markerEnd,x]);if(S.hidden||P===null||$===null||q===null||I===null)return null;const J=Ct=>{var Ht;const{addSelectedEdges:kt,unselectNodesAndEdges:At,multiSelectionActive:Et}=F.getState();Y&&(F.setState({nodesSelectionActive:!1}),S.selected&&Et?(At({nodes:[],edges:[S]}),(Ht=W.current)==null||Ht.blur()):kt([t])),n&&n(Ct,S)},tt=s?Ct=>{s(Ct,{...S})}:void 0,K=o?Ct=>{o(Ct,{...S})}:void 0,nt=c?Ct=>{c(Ct,{...S})}:void 0,ct=u?Ct=>{u(Ct,{...S})}:void 0,it=h?Ct=>{h(Ct,{...S})}:void 0,dt=Ct=>{var kt;if(!_&&jO.includes(Ct.key)&&Y){const{unselectNodesAndEdges:At,addSelectedEdges:Et}=F.getState();Ct.key==="Escape"?((kt=W.current)==null||kt.blur(),At({edges:[S]})):Et([t])}};return T.jsx("svg",{style:{zIndex:N},children:T.jsxs("g",{className:xr(["react-flow__edge",`react-flow__edge-${L}`,S.className,b,{selected:S.selected,animated:S.animated,inactive:!Y&&!n,updating:O,selectable:Y}]),onClick:J,onDoubleClick:tt,onContextMenu:K,onMouseEnter:nt,onMouseMove:ct,onMouseLeave:it,onKeyDown:R?dt:void 0,tabIndex:R?0:void 0,role:S.ariaRole??(R?"group":"img"),"aria-roledescription":"edge","data-id":t,"data-testid":`rf__edge-${t}`,"aria-label":S.ariaLabel===null?void 0:S.ariaLabel||`Edge from ${S.source} to ${S.target}`,"aria-describedby":R?`${xR}-${x}`:void 0,ref:W,...S.domAttributes,children:[!X&&T.jsx(A,{id:t,source:S.source,target:S.target,type:S.type,selected:S.selected,animated:S.animated,selectable:Y,deletable:S.deletable??!0,label:S.label,labelStyle:S.labelStyle,labelShowBg:S.labelShowBg,labelBgStyle:S.labelBgStyle,labelBgPadding:S.labelBgPadding,labelBgBorderRadius:S.labelBgBorderRadius,sourceX:P,sourceY:$,targetX:q,targetY:I,sourcePosition:G,targetPosition:Z,data:S.data,style:S.style,sourceHandleId:S.sourceHandle,targetHandleId:S.targetHandle,markerStart:H,markerEnd:Q,pathOptions:"pathOptions"in S?S.pathOptions:void 0,interactionWidth:S.interactionWidth}),j&&T.jsx(hW,{edge:S,isReconnectable:j,reconnectRadius:f,onReconnect:p,onReconnectStart:m,onReconnectEnd:g,sourceX:P,sourceY:$,targetX:q,targetY:I,sourcePosition:G,targetPosition:Z,setUpdateHover:z,setReconnecting:M})]})})}var dW=lt.memo(fW);const pW=t=>({edgesFocusable:t.edgesFocusable,edgesReconnectable:t.edgesReconnectable,elementsSelectable:t.elementsSelectable,connectionMode:t.connectionMode,onError:t.onError});function UR({defaultMarkerColor:t,onlyRenderVisibleElements:e,rfId:r,edgeTypes:i,noPanClassName:n,onReconnect:s,onEdgeContextMenu:o,onEdgeMouseEnter:c,onEdgeMouseMove:u,onEdgeMouseLeave:h,onEdgeClick:f,reconnectRadius:p,onEdgeDoubleClick:m,onReconnectStart:g,onReconnectEnd:x,disableKeyboardA11y:v}){const{edgesFocusable:b,edgesReconnectable:w,elementsSelectable:_,onError:S}=ye(pW,We),E=KY(e);return T.jsxs("div",{className:"react-flow__edges",children:[T.jsx(iW,{defaultColor:t,rfId:r}),E.map(L=>T.jsx(dW,{id:L,edgesFocusable:b,edgesReconnectable:w,elementsSelectable:_,noPanClassName:n,onReconnect:s,onContextMenu:o,onMouseEnter:c,onMouseMove:u,onMouseLeave:h,onClick:f,reconnectRadius:p,onDoubleClick:m,onReconnectStart:g,onReconnectEnd:x,rfId:r,onError:S,edgeTypes:i,disableKeyboardA11y:v},L))]})}UR.displayName="EdgeRenderer";const gW=lt.memo(UR),mW=t=>`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`;function yW({children:t}){const e=ye(mW);return T.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:e},children:t})}function xW(t){const e=xp(),r=lt.useRef(!1);lt.useEffect(()=>{!r.current&&e.viewportInitialized&&t&&(setTimeout(()=>t(e),1),r.current=!0)},[t,e.viewportInitialized])}const bW=t=>{var e;return(e=t.panZoom)==null?void 0:e.syncViewport};function vW(t){const e=ye(bW),r=Ve();return lt.useEffect(()=>{t&&(e==null||e(t),r.setState({transform:[t.x,t.y,t.zoom]}))},[t,e]),null}function CW(t){return t.connection.inProgress?{...t.connection,to:sh(t.connection.to,t.transform)}:{...t.connection}}function wW(t){return CW}function SW(t){const e=wW();return ye(e,We)}const kW=t=>({nodesConnectable:t.nodesConnectable,isValid:t.connection.isValid,inProgress:t.connection.inProgress,width:t.width,height:t.height});function _W({containerStyle:t,style:e,type:r,component:i}){const{nodesConnectable:n,width:s,height:o,isValid:c,inProgress:u}=ye(kW,We);return!(s&&n&&u)?null:T.jsx("svg",{style:t,width:s,height:o,className:"react-flow__connectionline react-flow__container",children:T.jsx("g",{className:xr(["react-flow__connection",HO(c)]),children:T.jsx(GR,{style:e,type:r,CustomComponent:i,isValid:c})})})}const GR=({style:t,type:e=Wa.Bezier,CustomComponent:r,isValid:i})=>{const{inProgress:n,from:s,fromNode:o,fromHandle:c,fromPosition:u,to:h,toNode:f,toHandle:p,toPosition:m,pointer:g}=SW();if(!n)return;if(r)return T.jsx(r,{connectionLineType:e,connectionLineStyle:t,fromNode:o,fromHandle:c,fromX:s.x,fromY:s.y,toX:h.x,toY:h.y,fromPosition:u,toPosition:m,connectionStatus:HO(i),toNode:f,toHandle:p,pointer:g});let x="";const v={sourceX:s.x,sourceY:s.y,sourcePosition:u,targetX:h.x,targetY:h.y,targetPosition:m};switch(e){case Wa.Bezier:[x]=eR(v);break;case Wa.SimpleBezier:[x]=NR(v);break;case Wa.Step:[x]=MC({...v,borderRadius:0});break;case Wa.SmoothStep:[x]=MC(v);break;default:[x]=iR(v)}return T.jsx("path",{d:x,fill:"none",className:"react-flow__connection-path",style:t})};GR.displayName="ConnectionLine";const TW={};function NA(t=TW){lt.useRef(t),Ve(),lt.useEffect(()=>{},[t])}function EW(){Ve(),lt.useRef(!1),lt.useEffect(()=>{},[])}function YR({nodeTypes:t,edgeTypes:e,onInit:r,onNodeClick:i,onEdgeClick:n,onNodeDoubleClick:s,onEdgeDoubleClick:o,onNodeMouseEnter:c,onNodeMouseMove:u,onNodeMouseLeave:h,onNodeContextMenu:f,onSelectionContextMenu:p,onSelectionStart:m,onSelectionEnd:g,connectionLineType:x,connectionLineStyle:v,connectionLineComponent:b,connectionLineContainerStyle:w,selectionKeyCode:_,selectionOnDrag:S,selectionMode:E,multiSelectionKeyCode:L,panActivationKeyCode:A,zoomActivationKeyCode:R,deleteKeyCode:j,onlyRenderVisibleElements:Y,elementsSelectable:W,defaultViewport:O,translateExtent:z,minZoom:X,maxZoom:M,preventScrolling:F,defaultMarkerColor:N,zoomOnScroll:P,zoomOnPinch:$,panOnScroll:q,panOnScrollSpeed:I,panOnScrollMode:G,zoomOnDoubleClick:Z,panOnDrag:H,onPaneClick:Q,onPaneMouseEnter:J,onPaneMouseMove:tt,onPaneMouseLeave:K,onPaneScroll:nt,onPaneContextMenu:ct,paneClickDistance:it,nodeClickDistance:dt,onEdgeContextMenu:Ct,onEdgeMouseEnter:kt,onEdgeMouseMove:At,onEdgeMouseLeave:Et,reconnectRadius:Ht,onReconnect:qt,onReconnectStart:we,onReconnectEnd:Be,noDragClassName:nr,noWheelClassName:vr,noPanClassName:ar,disableKeyboardA11y:De,nodeExtent:Le,rfId:Cr,viewport:yt,onViewportChange:_t}){return NA(t),NA(e),EW(),xW(r),vW(yt),T.jsx(PY,{onPaneClick:Q,onPaneMouseEnter:J,onPaneMouseMove:tt,onPaneMouseLeave:K,onPaneContextMenu:ct,onPaneScroll:nt,paneClickDistance:it,deleteKeyCode:j,selectionKeyCode:_,selectionOnDrag:S,selectionMode:E,onSelectionStart:m,onSelectionEnd:g,multiSelectionKeyCode:L,panActivationKeyCode:A,zoomActivationKeyCode:R,elementsSelectable:W,zoomOnScroll:P,zoomOnPinch:$,zoomOnDoubleClick:Z,panOnScroll:q,panOnScrollSpeed:I,panOnScrollMode:G,panOnDrag:H,defaultViewport:O,translateExtent:z,minZoom:X,maxZoom:M,onSelectionContextMenu:p,preventScrolling:F,noDragClassName:nr,noWheelClassName:vr,noPanClassName:ar,disableKeyboardA11y:De,onViewportChange:_t,isControlledViewport:!!yt,children:T.jsxs(yW,{children:[T.jsx(gW,{edgeTypes:e,onEdgeClick:n,onEdgeDoubleClick:o,onReconnect:qt,onReconnectStart:we,onReconnectEnd:Be,onlyRenderVisibleElements:Y,onEdgeContextMenu:Ct,onEdgeMouseEnter:kt,onEdgeMouseMove:At,onEdgeMouseLeave:Et,reconnectRadius:Ht,defaultMarkerColor:N,noPanClassName:ar,disableKeyboardA11y:De,rfId:Cr}),T.jsx(_W,{style:v,type:x,component:b,containerStyle:w}),T.jsx("div",{className:"react-flow__edgelabel-renderer"}),T.jsx(ZY,{nodeTypes:t,onNodeClick:i,onNodeDoubleClick:s,onNodeMouseEnter:c,onNodeMouseMove:u,onNodeMouseLeave:h,onNodeContextMenu:f,nodeClickDistance:dt,onlyRenderVisibleElements:Y,noPanClassName:ar,noDragClassName:nr,disableKeyboardA11y:De,nodeExtent:Le,rfId:Cr}),T.jsx("div",{className:"react-flow__viewport-portal"})]})})}YR.displayName="GraphView";const AW=lt.memo(YR),OA=({nodes:t,edges:e,defaultNodes:r,defaultEdges:i,width:n,height:s,fitView:o,fitViewOptions:c,minZoom:u=.5,maxZoom:h=2,nodeOrigin:f,nodeExtent:p,zIndexMode:m="basic"}={})=>{const g=new Map,x=new Map,v=new Map,b=new Map,w=i??e??[],_=r??t??[],S=f??[0,0],E=p??qu;sR(v,b,w);const{nodesInitialized:L}=OC(_,g,x,{nodeOrigin:S,nodeExtent:E,zIndexMode:m});let A=[0,0,1];if(o&&n&&s){const R=nh(g,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:j,y:Y,zoom:W}=Q2(R,n,s,u,h,(c==null?void 0:c.padding)??.1);A=[j,Y,W]}return{rfId:"1",width:n??0,height:s??0,transform:A,nodes:_,nodesInitialized:L,nodeLookup:g,parentLookup:x,edges:w,edgeLookup:b,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:u,maxZoom:h,translateExtent:qu,nodeExtent:E,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Ol.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:S,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:c,fitViewResolver:null,connection:{...PO},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:UU,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:$O,zIndexMode:m,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},BW=({nodes:t,edges:e,defaultNodes:r,defaultEdges:i,width:n,height:s,fitView:o,fitViewOptions:c,minZoom:u,maxZoom:h,nodeOrigin:f,nodeExtent:p,zIndexMode:m})=>VG((g,x)=>{async function v(){const{nodeLookup:b,panZoom:w,fitViewOptions:_,fitViewResolver:S,width:E,height:L,minZoom:A,maxZoom:R}=x();w&&(await PU({nodes:b,width:E,height:L,panZoom:w,minZoom:A,maxZoom:R},_),S==null||S.resolve(!0),g({fitViewResolver:null}))}return{...OA({nodes:t,edges:e,width:n,height:s,fitView:o,fitViewOptions:c,minZoom:u,maxZoom:h,nodeOrigin:f,nodeExtent:p,defaultNodes:r,defaultEdges:i,zIndexMode:m}),setNodes:b=>{const{nodeLookup:w,parentLookup:_,nodeOrigin:S,elevateNodesOnSelect:E,fitViewQueued:L,zIndexMode:A,nodesSelectionActive:R}=x(),{nodesInitialized:j,hasSelectedNodes:Y}=OC(b,w,_,{nodeOrigin:S,nodeExtent:p,elevateNodesOnSelect:E,checkEquality:!0,zIndexMode:A}),W=R&&Y;L&&j?(v(),g({nodes:b,nodesInitialized:j,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:W})):g({nodes:b,nodesInitialized:j,nodesSelectionActive:W})},setEdges:b=>{const{connectionLookup:w,edgeLookup:_}=x();sR(w,_,b),g({edges:b})},setDefaultNodesAndEdges:(b,w)=>{if(b){const{setNodes:_}=x();_(b),g({hasDefaultNodes:!0})}if(w){const{setEdges:_}=x();_(w),g({hasDefaultEdges:!0})}},updateNodeInternals:b=>{const{triggerNodeChanges:w,nodeLookup:_,parentLookup:S,domNode:E,nodeOrigin:L,nodeExtent:A,debug:R,fitViewQueued:j,zIndexMode:Y}=x(),{changes:W,updatedInternals:O}=fG(b,_,S,E,L,A,Y);O&&(lG(_,S,{nodeOrigin:L,nodeExtent:A,zIndexMode:Y}),j?(v(),g({fitViewQueued:!1,fitViewOptions:void 0})):g({}),(W==null?void 0:W.length)>0&&(R&&console.log("React Flow: trigger node changes",W),w==null||w(W)))},updateNodePositions:(b,w=!1)=>{const _=[];let S=[];const{nodeLookup:E,triggerNodeChanges:L,connection:A,updateConnection:R,onNodesChangeMiddlewareMap:j}=x();for(const[Y,W]of b){const O=E.get(Y),z=!!(O!=null&&O.expandParent&&(O!=null&&O.parentId)&&(W!=null&&W.position)),X={id:Y,type:"position",position:z?{x:Math.max(0,W.position.x),y:Math.max(0,W.position.y)}:W.position,dragging:w};if(O&&A.inProgress&&A.fromNode.id===O.id){const M=Qs(O,A.fromHandle,jt.Left,!0);R({...A,from:M})}z&&O.parentId&&_.push({id:Y,parentId:O.parentId,rect:{...W.internals.positionAbsolute,width:W.measured.width??0,height:W.measured.height??0}}),S.push(X)}if(_.length>0){const{parentLookup:Y,nodeOrigin:W}=x(),O=rw(_,E,Y,W);S.push(...O)}for(const Y of j.values())S=Y(S);L(S)},triggerNodeChanges:b=>{const{onNodesChange:w,setNodes:_,nodes:S,hasDefaultNodes:E,debug:L}=x();if(b!=null&&b.length){if(E){const A=CR(b,S);_(A)}L&&console.log("React Flow: trigger node changes",b),w==null||w(b)}},triggerEdgeChanges:b=>{const{onEdgesChange:w,setEdges:_,edges:S,hasDefaultEdges:E,debug:L}=x();if(b!=null&&b.length){if(E){const A=wR(b,S);_(A)}L&&console.log("React Flow: trigger edge changes",b),w==null||w(b)}},addSelectedNodes:b=>{const{multiSelectionActive:w,edgeLookup:_,nodeLookup:S,triggerNodeChanges:E,triggerEdgeChanges:L}=x();if(w){const A=b.map(R=>Is(R,!0));E(A);return}E(ll(S,new Set([...b]),!0)),L(ll(_))},addSelectedEdges:b=>{const{multiSelectionActive:w,edgeLookup:_,nodeLookup:S,triggerNodeChanges:E,triggerEdgeChanges:L}=x();if(w){const A=b.map(R=>Is(R,!0));L(A);return}L(ll(_,new Set([...b]))),E(ll(S,new Set,!0))},unselectNodesAndEdges:({nodes:b,edges:w}={})=>{const{edges:_,nodes:S,nodeLookup:E,triggerNodeChanges:L,triggerEdgeChanges:A}=x(),R=b||S,j=w||_,Y=[];for(const O of R){if(!O.selected)continue;const z=E.get(O.id);z&&(z.selected=!1),Y.push(Is(O.id,!1))}const W=[];for(const O of j)O.selected&&W.push(Is(O.id,!1));L(Y),A(W)},setMinZoom:b=>{const{panZoom:w,maxZoom:_}=x();w==null||w.setScaleExtent([b,_]),g({minZoom:b})},setMaxZoom:b=>{const{panZoom:w,minZoom:_}=x();w==null||w.setScaleExtent([_,b]),g({maxZoom:b})},setTranslateExtent:b=>{var w;(w=x().panZoom)==null||w.setTranslateExtent(b),g({translateExtent:b})},resetSelectedElements:()=>{const{edges:b,nodes:w,triggerNodeChanges:_,triggerEdgeChanges:S,elementsSelectable:E}=x();if(!E)return;const L=w.reduce((R,j)=>j.selected?[...R,Is(j.id,!1)]:R,[]),A=b.reduce((R,j)=>j.selected?[...R,Is(j.id,!1)]:R,[]);_(L),S(A)},setNodeExtent:b=>{const{nodes:w,nodeLookup:_,parentLookup:S,nodeOrigin:E,elevateNodesOnSelect:L,nodeExtent:A,zIndexMode:R}=x();b[0][0]===A[0][0]&&b[0][1]===A[0][1]&&b[1][0]===A[1][0]&&b[1][1]===A[1][1]||(OC(w,_,S,{nodeOrigin:E,nodeExtent:b,elevateNodesOnSelect:L,checkEquality:!1,zIndexMode:R}),g({nodeExtent:b}))},panBy:b=>{const{transform:w,width:_,height:S,panZoom:E,translateExtent:L}=x();return dG({delta:b,panZoom:E,transform:w,translateExtent:L,width:_,height:S})},setCenter:async(b,w,_)=>{const{width:S,height:E,maxZoom:L,panZoom:A}=x();if(!A)return Promise.resolve(!1);const R=typeof(_==null?void 0:_.zoom)<"u"?_.zoom:L;return await A.setViewport({x:S/2-b*R,y:E/2-w*R,zoom:R},{duration:_==null?void 0:_.duration,ease:_==null?void 0:_.ease,interpolate:_==null?void 0:_.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{g({connection:{...PO}})},updateConnection:b=>{g({connection:b})},reset:()=>g({...OA()})}},Object.is);function WR({initialNodes:t,initialEdges:e,defaultNodes:r,defaultEdges:i,initialWidth:n,initialHeight:s,initialMinZoom:o,initialMaxZoom:c,initialFitViewOptions:u,fitView:h,nodeOrigin:f,nodeExtent:p,zIndexMode:m,children:g}){const[x]=lt.useState(()=>BW({nodes:t,edges:e,defaultNodes:r,defaultEdges:i,width:n,height:s,fitView:h,minZoom:o,maxZoom:c,fitViewOptions:u,nodeOrigin:f,nodeExtent:p,zIndexMode:m}));return T.jsx(XG,{value:x,children:T.jsx(yY,{children:g})})}function LW({children:t,nodes:e,edges:r,defaultNodes:i,defaultEdges:n,width:s,height:o,fitView:c,fitViewOptions:u,minZoom:h,maxZoom:f,nodeOrigin:p,nodeExtent:m,zIndexMode:g}){return lt.useContext(yp)?T.jsx(T.Fragment,{children:t}):T.jsx(WR,{initialNodes:e,initialEdges:r,defaultNodes:i,defaultEdges:n,initialWidth:s,initialHeight:o,fitView:c,initialFitViewOptions:u,initialMinZoom:h,initialMaxZoom:f,nodeOrigin:p,nodeExtent:m,zIndexMode:g,children:t})}const MW={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function NW({nodes:t,edges:e,defaultNodes:r,defaultEdges:i,className:n,nodeTypes:s,edgeTypes:o,onNodeClick:c,onEdgeClick:u,onInit:h,onMove:f,onMoveStart:p,onMoveEnd:m,onConnect:g,onConnectStart:x,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:w,onNodeMouseEnter:_,onNodeMouseMove:S,onNodeMouseLeave:E,onNodeContextMenu:L,onNodeDoubleClick:A,onNodeDragStart:R,onNodeDrag:j,onNodeDragStop:Y,onNodesDelete:W,onEdgesDelete:O,onDelete:z,onSelectionChange:X,onSelectionDragStart:M,onSelectionDrag:F,onSelectionDragStop:N,onSelectionContextMenu:P,onSelectionStart:$,onSelectionEnd:q,onBeforeDelete:I,connectionMode:G,connectionLineType:Z=Wa.Bezier,connectionLineStyle:H,connectionLineComponent:Q,connectionLineContainerStyle:J,deleteKeyCode:tt="Backspace",selectionKeyCode:K="Shift",selectionOnDrag:nt=!1,selectionMode:ct=zu.Full,panActivationKeyCode:it="Space",multiSelectionKeyCode:dt=Pu()?"Meta":"Control",zoomActivationKeyCode:Ct=Pu()?"Meta":"Control",snapToGrid:kt,snapGrid:At,onlyRenderVisibleElements:Et=!1,selectNodesOnDrag:Ht,nodesDraggable:qt,autoPanOnNodeFocus:we,nodesConnectable:Be,nodesFocusable:nr,nodeOrigin:vr=bR,edgesFocusable:ar,edgesReconnectable:De,elementsSelectable:Le=!0,defaultViewport:Cr=lY,minZoom:yt=.5,maxZoom:_t=2,translateExtent:Rt=qu,preventScrolling:Kt=!0,nodeExtent:ne,defaultMarkerColor:sr="#b1b1b7",zoomOnScroll:Br=!0,zoomOnPinch:Se=!0,panOnScroll:me=!1,panOnScrollSpeed:Fe=.5,panOnScrollMode:ce=Gs.Free,zoomOnDoubleClick:Jr=!0,panOnDrag:Lr=!0,onPaneClick:nc,onPaneMouseEnter:dn,onPaneMouseMove:pn,onPaneMouseLeave:ya,onPaneScroll:Gr,onPaneContextMenu:xa,paneClickDistance:Fn=1,nodeClickDistance:Qe=0,children:Yi,onReconnect:ls,onReconnectStart:gn,onReconnectEnd:cs,onEdgeContextMenu:us,onEdgeDoubleClick:hs,onEdgeMouseEnter:co,onEdgeMouseMove:Mr,onEdgeMouseLeave:xi,reconnectRadius:fs=10,onNodesChange:ds,onEdgesChange:ti,noDragClassName:Ze="nodrag",noWheelClassName:qe="nowheel",noPanClassName:Mi="nopan",fitView:In,fitViewOptions:uo,connectOnClick:ho,attributionPosition:ps,proOptions:mn,defaultEdgeOptions:zt,elevateNodesOnSelect:et=!0,elevateEdgesOnSelect:wt=!1,disableKeyboardA11y:Bt=!1,autoPanOnConnect:fe,autoPanOnNodeDrag:ae,autoPanSpeed:$e,connectionRadius:wr,isValidConnection:Je,onError:ur,style:gs,id:Ue,nodeDragThreshold:ms,connectionDragThreshold:fo,viewport:po,onViewportChange:go,width:Wi,height:ei,colorMode:Ch="light",debug:ig,onScroll:ba,ariaLabelConfig:wh,zIndexMode:ys="basic",...ng},ri){const xs=Ue||"1",Sh=fY(Ch),ac=lt.useCallback(qn=>{qn.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),ba==null||ba(qn)},[ba]);return T.jsx("div",{"data-testid":"rf__wrapper",...ng,onScroll:ac,style:{...gs,...MW},ref:ri,className:xr(["react-flow",n,Sh]),id:Ue,role:"application",children:T.jsxs(LW,{nodes:t,edges:e,width:Wi,height:ei,fitView:In,fitViewOptions:uo,minZoom:yt,maxZoom:_t,nodeOrigin:vr,nodeExtent:ne,zIndexMode:ys,children:[T.jsx(hY,{nodes:t,edges:e,defaultNodes:r,defaultEdges:i,onConnect:g,onConnectStart:x,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:w,nodesDraggable:qt,autoPanOnNodeFocus:we,nodesConnectable:Be,nodesFocusable:nr,edgesFocusable:ar,edgesReconnectable:De,elementsSelectable:Le,elevateNodesOnSelect:et,elevateEdgesOnSelect:wt,minZoom:yt,maxZoom:_t,nodeExtent:ne,onNodesChange:ds,onEdgesChange:ti,snapToGrid:kt,snapGrid:At,connectionMode:G,translateExtent:Rt,connectOnClick:ho,defaultEdgeOptions:zt,fitView:In,fitViewOptions:uo,onNodesDelete:W,onEdgesDelete:O,onDelete:z,onNodeDragStart:R,onNodeDrag:j,onNodeDragStop:Y,onSelectionDrag:F,onSelectionDragStart:M,onSelectionDragStop:N,onMove:f,onMoveStart:p,onMoveEnd:m,noPanClassName:Mi,nodeOrigin:vr,rfId:xs,autoPanOnConnect:fe,autoPanOnNodeDrag:ae,autoPanSpeed:$e,onError:ur,connectionRadius:wr,isValidConnection:Je,selectNodesOnDrag:Ht,nodeDragThreshold:ms,connectionDragThreshold:fo,onBeforeDelete:I,debug:ig,ariaLabelConfig:wh,zIndexMode:ys}),T.jsx(AW,{onInit:h,onNodeClick:c,onEdgeClick:u,onNodeMouseEnter:_,onNodeMouseMove:S,onNodeMouseLeave:E,onNodeContextMenu:L,onNodeDoubleClick:A,nodeTypes:s,edgeTypes:o,connectionLineType:Z,connectionLineStyle:H,connectionLineComponent:Q,connectionLineContainerStyle:J,selectionKeyCode:K,selectionOnDrag:nt,selectionMode:ct,deleteKeyCode:tt,multiSelectionKeyCode:dt,panActivationKeyCode:it,zoomActivationKeyCode:Ct,onlyRenderVisibleElements:Et,defaultViewport:Cr,translateExtent:Rt,minZoom:yt,maxZoom:_t,preventScrolling:Kt,zoomOnScroll:Br,zoomOnPinch:Se,zoomOnDoubleClick:Jr,panOnScroll:me,panOnScrollSpeed:Fe,panOnScrollMode:ce,panOnDrag:Lr,onPaneClick:nc,onPaneMouseEnter:dn,onPaneMouseMove:pn,onPaneMouseLeave:ya,onPaneScroll:Gr,onPaneContextMenu:xa,paneClickDistance:Fn,nodeClickDistance:Qe,onSelectionContextMenu:P,onSelectionStart:$,onSelectionEnd:q,onReconnect:ls,onReconnectStart:gn,onReconnectEnd:cs,onEdgeContextMenu:us,onEdgeDoubleClick:hs,onEdgeMouseEnter:co,onEdgeMouseMove:Mr,onEdgeMouseLeave:xi,reconnectRadius:fs,defaultMarkerColor:sr,noDragClassName:Ze,noWheelClassName:qe,noPanClassName:Mi,rfId:xs,disableKeyboardA11y:Bt,nodeExtent:ne,viewport:po,onViewportChange:go}),T.jsx(oY,{onSelectionChange:X}),Yi,T.jsx(rY,{proOptions:mn,position:ps}),T.jsx(eY,{rfId:xs,disableKeyboardA11y:Bt})]})})}var OW=SR(NW);function RW(t){const[e,r]=lt.useState(t),i=lt.useCallback(n=>r(s=>CR(n,s)),[]);return[e,r,i]}function DW(t){const[e,r]=lt.useState(t),i=lt.useCallback(n=>r(s=>wR(n,s)),[]);return[e,r,i]}function FW({dimensions:t,lineWidth:e,variant:r,className:i}){return T.jsx("path",{strokeWidth:e,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`,className:xr(["react-flow__background-pattern",r,i])})}function IW({radius:t,className:e}){return T.jsx("circle",{cx:t,cy:t,r:t,className:xr(["react-flow__background-pattern","dots",e])})}var Za;(function(t){t.Lines="lines",t.Dots="dots",t.Cross="cross"})(Za||(Za={}));const qW={[Za.Dots]:1,[Za.Lines]:1,[Za.Cross]:6},zW=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function VR({id:t,variant:e=Za.Dots,gap:r=20,size:i,lineWidth:n=1,offset:s=0,color:o,bgColor:c,style:u,className:h,patternClassName:f}){const p=lt.useRef(null),{transform:m,patternId:g}=ye(zW,We),x=i||qW[e],v=e===Za.Dots,b=e===Za.Cross,w=Array.isArray(r)?r:[r,r],_=[w[0]*m[2]||1,w[1]*m[2]||1],S=x*m[2],E=Array.isArray(s)?s:[s,s],L=b?[S,S]:_,A=[E[0]*m[2]||1+L[0]/2,E[1]*m[2]||1+L[1]/2],R=`${g}${t||""}`;return T.jsxs("svg",{className:xr(["react-flow__background",h]),style:{...u,...bp,"--xy-background-color-props":c,"--xy-background-pattern-color-props":o},ref:p,"data-testid":"rf__background",children:[T.jsx("pattern",{id:R,x:m[0]%_[0],y:m[1]%_[1],width:_[0],height:_[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${A[0]},-${A[1]})`,children:v?T.jsx(IW,{radius:S/2,className:f}):T.jsx(FW,{dimensions:L,lineWidth:n,variant:e,className:f})}),T.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${R})`})]})}VR.displayName="Background";const jW=lt.memo(VR);function $W(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:T.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function PW(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:T.jsx("path",{d:"M0 0h32v4.2H0z"})})}function HW(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:T.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function UW(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:T.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function GW(){return T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:T.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Uf({children:t,className:e,...r}){return T.jsx("button",{type:"button",className:xr(["react-flow__controls-button",e]),...r,children:t})}const YW=t=>({isInteractive:t.nodesDraggable||t.nodesConnectable||t.elementsSelectable,minZoomReached:t.transform[2]<=t.minZoom,maxZoomReached:t.transform[2]>=t.maxZoom,ariaLabelConfig:t.ariaLabelConfig});function XR({style:t,showZoom:e=!0,showFitView:r=!0,showInteractive:i=!0,fitViewOptions:n,onZoomIn:s,onZoomOut:o,onFitView:c,onInteractiveChange:u,className:h,children:f,position:p="bottom-left",orientation:m="vertical","aria-label":g}){const x=Ve(),{isInteractive:v,minZoomReached:b,maxZoomReached:w,ariaLabelConfig:_}=ye(YW,We),{zoomIn:S,zoomOut:E,fitView:L}=xp(),A=()=>{S(),s==null||s()},R=()=>{E(),o==null||o()},j=()=>{L(n),c==null||c()},Y=()=>{x.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),u==null||u(!v)},W=m==="horizontal"?"horizontal":"vertical";return T.jsxs(Yl,{className:xr(["react-flow__controls",W,h]),position:p,style:t,"data-testid":"rf__controls","aria-label":g??_["controls.ariaLabel"],children:[e&&T.jsxs(T.Fragment,{children:[T.jsx(Uf,{onClick:A,className:"react-flow__controls-zoomin",title:_["controls.zoomIn.ariaLabel"],"aria-label":_["controls.zoomIn.ariaLabel"],disabled:w,children:T.jsx($W,{})}),T.jsx(Uf,{onClick:R,className:"react-flow__controls-zoomout",title:_["controls.zoomOut.ariaLabel"],"aria-label":_["controls.zoomOut.ariaLabel"],disabled:b,children:T.jsx(PW,{})})]}),r&&T.jsx(Uf,{className:"react-flow__controls-fitview",onClick:j,title:_["controls.fitView.ariaLabel"],"aria-label":_["controls.fitView.ariaLabel"],children:T.jsx(HW,{})}),i&&T.jsx(Uf,{className:"react-flow__controls-interactive",onClick:Y,title:_["controls.interactive.ariaLabel"],"aria-label":_["controls.interactive.ariaLabel"],children:v?T.jsx(GW,{}):T.jsx(UW,{})}),f]})}XR.displayName="Controls";const WW=lt.memo(XR);function VW({id:t,x:e,y:r,width:i,height:n,style:s,color:o,strokeColor:c,strokeWidth:u,className:h,borderRadius:f,shapeRendering:p,selected:m,onClick:g}){const{background:x,backgroundColor:v}=s||{},b=o||x||v;return T.jsx("rect",{className:xr(["react-flow__minimap-node",{selected:m},h]),x:e,y:r,rx:f,ry:f,width:i,height:n,style:{fill:b,stroke:c,strokeWidth:u},shapeRendering:p,onClick:g?w=>g(w,t):void 0})}const XW=lt.memo(VW),QW=t=>t.nodes.map(e=>e.id),E0=t=>t instanceof Function?t:()=>t;function ZW({nodeStrokeColor:t,nodeColor:e,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:n,nodeComponent:s=XW,onClick:o}){const c=ye(QW,We),u=E0(e),h=E0(t),f=E0(r),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return T.jsx(T.Fragment,{children:c.map(m=>T.jsx(JW,{id:m,nodeColorFunc:u,nodeStrokeColorFunc:h,nodeClassNameFunc:f,nodeBorderRadius:i,nodeStrokeWidth:n,NodeComponent:s,onClick:o,shapeRendering:p},m))})}function KW({id:t,nodeColorFunc:e,nodeStrokeColorFunc:r,nodeClassNameFunc:i,nodeBorderRadius:n,nodeStrokeWidth:s,shapeRendering:o,NodeComponent:c,onClick:u}){const{node:h,x:f,y:p,width:m,height:g}=ye(x=>{const v=x.nodeLookup.get(t);if(!v)return{node:void 0,x:0,y:0,width:0,height:0};const b=v.internals.userNode,{x:w,y:_}=v.internals.positionAbsolute,{width:S,height:E}=ha(b);return{node:b,x:w,y:_,width:S,height:E}},We);return!h||h.hidden||!XO(h)?null:T.jsx(c,{x:f,y:p,width:m,height:g,style:h.style,selected:!!h.selected,className:i(h),color:e(h),borderRadius:n,strokeColor:r(h),strokeWidth:s,shapeRendering:o,onClick:u,id:h.id})}const JW=lt.memo(KW);var tV=lt.memo(ZW);const eV=200,rV=150,iV=t=>!t.hidden,nV=t=>{const e={x:-t.transform[0]/t.transform[2],y:-t.transform[1]/t.transform[2],width:t.width/t.transform[2],height:t.height/t.transform[2]};return{viewBB:e,boundingRect:t.nodeLookup.size>0?VO(nh(t.nodeLookup,{filter:iV}),e):e,rfId:t.rfId,panZoom:t.panZoom,translateExtent:t.translateExtent,flowWidth:t.width,flowHeight:t.height,ariaLabelConfig:t.ariaLabelConfig}},aV="react-flow__minimap-desc";function QR({style:t,className:e,nodeStrokeColor:r,nodeColor:i,nodeClassName:n="",nodeBorderRadius:s=5,nodeStrokeWidth:o,nodeComponent:c,bgColor:u,maskColor:h,maskStrokeColor:f,maskStrokeWidth:p,position:m="bottom-right",onClick:g,onNodeClick:x,pannable:v=!1,zoomable:b=!1,ariaLabel:w,inversePan:_,zoomStep:S=1,offsetScale:E=5}){const L=Ve(),A=lt.useRef(null),{boundingRect:R,viewBB:j,rfId:Y,panZoom:W,translateExtent:O,flowWidth:z,flowHeight:X,ariaLabelConfig:M}=ye(nV,We),F=(t==null?void 0:t.width)??eV,N=(t==null?void 0:t.height)??rV,P=R.width/F,$=R.height/N,q=Math.max(P,$),I=q*F,G=q*N,Z=E*q,H=R.x-(I-R.width)/2-Z,Q=R.y-(G-R.height)/2-Z,J=I+Z*2,tt=G+Z*2,K=`${aV}-${Y}`,nt=lt.useRef(0),ct=lt.useRef();nt.current=q,lt.useEffect(()=>{if(A.current&&W)return ct.current=wG({domNode:A.current,panZoom:W,getTransform:()=>L.getState().transform,getViewScale:()=>nt.current}),()=>{var kt;(kt=ct.current)==null||kt.destroy()}},[W]),lt.useEffect(()=>{var kt;(kt=ct.current)==null||kt.update({translateExtent:O,width:z,height:X,inversePan:_,pannable:v,zoomStep:S,zoomable:b})},[v,b,_,S,O,z,X]);const it=g?kt=>{var Ht;const[At,Et]=((Ht=ct.current)==null?void 0:Ht.pointer(kt))||[0,0];g(kt,{x:At,y:Et})}:void 0,dt=x?lt.useCallback((kt,At)=>{const Et=L.getState().nodeLookup.get(At).internals.userNode;x(kt,Et)},[]):void 0,Ct=w??M["minimap.ariaLabel"];return T.jsx(Yl,{position:m,style:{...t,"--xy-minimap-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*q:void 0,"--xy-minimap-node-background-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof o=="number"?o:void 0},className:xr(["react-flow__minimap",e]),"data-testid":"rf__minimap",children:T.jsxs("svg",{width:F,height:N,viewBox:`${H} ${Q} ${J} ${tt}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":K,ref:A,onClick:it,children:[Ct&&T.jsx("title",{id:K,children:Ct}),T.jsx(tV,{onClick:dt,nodeColor:i,nodeStrokeColor:r,nodeBorderRadius:s,nodeClassName:n,nodeStrokeWidth:o,nodeComponent:c}),T.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-Z},${Q-Z}h${J+Z*2}v${tt+Z*2}h${-J-Z*2}z
72
+ M${j.x},${j.y}h${j.width}v${j.height}h${-j.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}QR.displayName="MiniMap";const sV=lt.memo(QR),oV=t=>e=>t?`${Math.max(1/e.transform[2],1)}`:void 0,lV={[Il.Line]:"right",[Il.Handle]:"bottom-right"};function cV({nodeId:t,position:e,variant:r=Il.Handle,className:i,style:n=void 0,children:s,color:o,minWidth:c=10,minHeight:u=10,maxWidth:h=Number.MAX_VALUE,maxHeight:f=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:m,autoScale:g=!0,shouldResize:x,onResizeStart:v,onResize:b,onResizeEnd:w}){const _=ER(),S=typeof t=="string"?t:_,E=Ve(),L=lt.useRef(null),A=r===Il.Handle,R=ye(lt.useCallback(oV(A&&g),[A,g]),We),j=lt.useRef(null),Y=e??lV[r];lt.useEffect(()=>{if(!(!L.current||!S))return j.current||(j.current=FG({domNode:L.current,nodeId:S,getStoreItems:()=>{const{nodeLookup:O,transform:z,snapGrid:X,snapToGrid:M,nodeOrigin:F,domNode:N}=E.getState();return{nodeLookup:O,transform:z,snapGrid:X,snapToGrid:M,nodeOrigin:F,paneDomNode:N}},onChange:(O,z)=>{const{triggerNodeChanges:X,nodeLookup:M,parentLookup:F,nodeOrigin:N}=E.getState(),P=[],$={x:O.x,y:O.y},q=M.get(S);if(q&&q.expandParent&&q.parentId){const I=q.origin??N,G=O.width??q.measured.width??0,Z=O.height??q.measured.height??0,H={id:q.id,parentId:q.parentId,rect:{width:G,height:Z,...QO({x:O.x??q.position.x,y:O.y??q.position.y},{width:G,height:Z},q.parentId,M,I)}},Q=rw([H],M,F,N);P.push(...Q),$.x=O.x?Math.max(I[0]*G,O.x):void 0,$.y=O.y?Math.max(I[1]*Z,O.y):void 0}if($.x!==void 0&&$.y!==void 0){const I={id:S,type:"position",position:{...$}};P.push(I)}if(O.width!==void 0&&O.height!==void 0){const G={id:S,type:"dimensions",resizing:!0,setAttributes:m?m==="horizontal"?"width":"height":!0,dimensions:{width:O.width,height:O.height}};P.push(G)}for(const I of z){const G={...I,type:"position"};P.push(G)}X(P)},onEnd:({width:O,height:z})=>{const X={id:S,type:"dimensions",resizing:!1,dimensions:{width:O,height:z}};E.getState().triggerNodeChanges([X])}})),j.current.update({controlPosition:Y,boundaries:{minWidth:c,minHeight:u,maxWidth:h,maxHeight:f},keepAspectRatio:p,resizeDirection:m,onResizeStart:v,onResize:b,onResizeEnd:w,shouldResize:x}),()=>{var O;(O=j.current)==null||O.destroy()}},[Y,c,u,h,f,p,v,b,w,x]);const W=Y.split("-");return T.jsx("div",{className:xr(["react-flow__resize-control","nodrag",...W,r,i]),ref:L,style:{...n,scale:R,...o&&{[A?"backgroundColor":"borderColor"]:o}},children:s})}lt.memo(cV);function nw(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var A0,RA;function uV(){if(RA)return A0;RA=1;function t(){this.__data__=[],this.size=0}return A0=t,A0}var B0,DA;function Wl(){if(DA)return B0;DA=1;function t(e,r){return e===r||e!==e&&r!==r}return B0=t,B0}var L0,FA;function Cp(){if(FA)return L0;FA=1;var t=Wl();function e(r,i){for(var n=r.length;n--;)if(t(r[n][0],i))return n;return-1}return L0=e,L0}var M0,IA;function hV(){if(IA)return M0;IA=1;var t=Cp(),e=Array.prototype,r=e.splice;function i(n){var s=this.__data__,o=t(s,n);if(o<0)return!1;var c=s.length-1;return o==c?s.pop():r.call(s,o,1),--this.size,!0}return M0=i,M0}var N0,qA;function fV(){if(qA)return N0;qA=1;var t=Cp();function e(r){var i=this.__data__,n=t(i,r);return n<0?void 0:i[n][1]}return N0=e,N0}var O0,zA;function dV(){if(zA)return O0;zA=1;var t=Cp();function e(r){return t(this.__data__,r)>-1}return O0=e,O0}var R0,jA;function pV(){if(jA)return R0;jA=1;var t=Cp();function e(r,i){var n=this.__data__,s=t(n,r);return s<0?(++this.size,n.push([r,i])):n[s][1]=i,this}return R0=e,R0}var D0,$A;function wp(){if($A)return D0;$A=1;var t=uV(),e=hV(),r=fV(),i=dV(),n=pV();function s(o){var c=-1,u=o==null?0:o.length;for(this.clear();++c<u;){var h=o[c];this.set(h[0],h[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=r,s.prototype.has=i,s.prototype.set=n,D0=s,D0}var F0,PA;function gV(){if(PA)return F0;PA=1;var t=wp();function e(){this.__data__=new t,this.size=0}return F0=e,F0}var I0,HA;function mV(){if(HA)return I0;HA=1;function t(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}return I0=t,I0}var q0,UA;function yV(){if(UA)return q0;UA=1;function t(e){return this.__data__.get(e)}return q0=t,q0}var z0,GA;function xV(){if(GA)return z0;GA=1;function t(e){return this.__data__.has(e)}return z0=t,z0}var j0,YA;function ZR(){if(YA)return j0;YA=1;var t=typeof Rf=="object"&&Rf&&Rf.Object===Object&&Rf;return j0=t,j0}var $0,WA;function hn(){if(WA)return $0;WA=1;var t=ZR(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return $0=r,$0}var P0,VA;function Vl(){if(VA)return P0;VA=1;var t=hn(),e=t.Symbol;return P0=e,P0}var H0,XA;function bV(){if(XA)return H0;XA=1;var t=Vl(),e=Object.prototype,r=e.hasOwnProperty,i=e.toString,n=t?t.toStringTag:void 0;function s(o){var c=r.call(o,n),u=o[n];try{o[n]=void 0;var h=!0}catch{}var f=i.call(o);return h&&(c?o[n]=u:delete o[n]),f}return H0=s,H0}var U0,QA;function vV(){if(QA)return U0;QA=1;var t=Object.prototype,e=t.toString;function r(i){return e.call(i)}return U0=r,U0}var G0,ZA;function io(){if(ZA)return G0;ZA=1;var t=Vl(),e=bV(),r=vV(),i="[object Null]",n="[object Undefined]",s=t?t.toStringTag:void 0;function o(c){return c==null?c===void 0?n:i:s&&s in Object(c)?e(c):r(c)}return G0=o,G0}var Y0,KA;function Ui(){if(KA)return Y0;KA=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Y0=t,Y0}var W0,JA;function oh(){if(JA)return W0;JA=1;var t=io(),e=Ui(),r="[object AsyncFunction]",i="[object Function]",n="[object GeneratorFunction]",s="[object Proxy]";function o(c){if(!e(c))return!1;var u=t(c);return u==i||u==n||u==r||u==s}return W0=o,W0}var V0,tB;function CV(){if(tB)return V0;tB=1;var t=hn(),e=t["__core-js_shared__"];return V0=e,V0}var X0,eB;function wV(){if(eB)return X0;eB=1;var t=CV(),e=(function(){var i=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!e&&e in i}return X0=r,X0}var Q0,rB;function KR(){if(rB)return Q0;rB=1;var t=Function.prototype,e=t.toString;function r(i){if(i!=null){try{return e.call(i)}catch{}try{return i+""}catch{}}return""}return Q0=r,Q0}var Z0,iB;function SV(){if(iB)return Z0;iB=1;var t=oh(),e=wV(),r=Ui(),i=KR(),n=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,o=Function.prototype,c=Object.prototype,u=o.toString,h=c.hasOwnProperty,f=RegExp("^"+u.call(h).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(m){if(!r(m)||e(m))return!1;var g=t(m)?f:s;return g.test(i(m))}return Z0=p,Z0}var K0,nB;function kV(){if(nB)return K0;nB=1;function t(e,r){return e==null?void 0:e[r]}return K0=t,K0}var J0,aB;function no(){if(aB)return J0;aB=1;var t=SV(),e=kV();function r(i,n){var s=e(i,n);return t(s)?s:void 0}return J0=r,J0}var ty,sB;function aw(){if(sB)return ty;sB=1;var t=no(),e=hn(),r=t(e,"Map");return ty=r,ty}var ey,oB;function Sp(){if(oB)return ey;oB=1;var t=no(),e=t(Object,"create");return ey=e,ey}var ry,lB;function _V(){if(lB)return ry;lB=1;var t=Sp();function e(){this.__data__=t?t(null):{},this.size=0}return ry=e,ry}var iy,cB;function TV(){if(cB)return iy;cB=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return iy=t,iy}var ny,uB;function EV(){if(uB)return ny;uB=1;var t=Sp(),e="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function n(s){var o=this.__data__;if(t){var c=o[s];return c===e?void 0:c}return i.call(o,s)?o[s]:void 0}return ny=n,ny}var ay,hB;function AV(){if(hB)return ay;hB=1;var t=Sp(),e=Object.prototype,r=e.hasOwnProperty;function i(n){var s=this.__data__;return t?s[n]!==void 0:r.call(s,n)}return ay=i,ay}var sy,fB;function BV(){if(fB)return sy;fB=1;var t=Sp(),e="__lodash_hash_undefined__";function r(i,n){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=t&&n===void 0?e:n,this}return sy=r,sy}var oy,dB;function LV(){if(dB)return oy;dB=1;var t=_V(),e=TV(),r=EV(),i=AV(),n=BV();function s(o){var c=-1,u=o==null?0:o.length;for(this.clear();++c<u;){var h=o[c];this.set(h[0],h[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=r,s.prototype.has=i,s.prototype.set=n,oy=s,oy}var ly,pB;function MV(){if(pB)return ly;pB=1;var t=LV(),e=wp(),r=aw();function i(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return ly=i,ly}var cy,gB;function NV(){if(gB)return cy;gB=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return cy=t,cy}var uy,mB;function kp(){if(mB)return uy;mB=1;var t=NV();function e(r,i){var n=r.__data__;return t(i)?n[typeof i=="string"?"string":"hash"]:n.map}return uy=e,uy}var hy,yB;function OV(){if(yB)return hy;yB=1;var t=kp();function e(r){var i=t(this,r).delete(r);return this.size-=i?1:0,i}return hy=e,hy}var fy,xB;function RV(){if(xB)return fy;xB=1;var t=kp();function e(r){return t(this,r).get(r)}return fy=e,fy}var dy,bB;function DV(){if(bB)return dy;bB=1;var t=kp();function e(r){return t(this,r).has(r)}return dy=e,dy}var py,vB;function FV(){if(vB)return py;vB=1;var t=kp();function e(r,i){var n=t(this,r),s=n.size;return n.set(r,i),this.size+=n.size==s?0:1,this}return py=e,py}var gy,CB;function sw(){if(CB)return gy;CB=1;var t=MV(),e=OV(),r=RV(),i=DV(),n=FV();function s(o){var c=-1,u=o==null?0:o.length;for(this.clear();++c<u;){var h=o[c];this.set(h[0],h[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=r,s.prototype.has=i,s.prototype.set=n,gy=s,gy}var my,wB;function IV(){if(wB)return my;wB=1;var t=wp(),e=aw(),r=sw(),i=200;function n(s,o){var c=this.__data__;if(c instanceof t){var u=c.__data__;if(!e||u.length<i-1)return u.push([s,o]),this.size=++c.size,this;c=this.__data__=new r(u)}return c.set(s,o),this.size=c.size,this}return my=n,my}var yy,SB;function _p(){if(SB)return yy;SB=1;var t=wp(),e=gV(),r=mV(),i=yV(),n=xV(),s=IV();function o(c){var u=this.__data__=new t(c);this.size=u.size}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=i,o.prototype.has=n,o.prototype.set=s,yy=o,yy}var xy,kB;function ow(){if(kB)return xy;kB=1;function t(e,r){for(var i=-1,n=e==null?0:e.length;++i<n&&r(e[i],i,e)!==!1;);return e}return xy=t,xy}var by,_B;function JR(){if(_B)return by;_B=1;var t=no(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return by=e,by}var vy,TB;function Tp(){if(TB)return vy;TB=1;var t=JR();function e(r,i,n){i=="__proto__"&&t?t(r,i,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[i]=n}return vy=e,vy}var Cy,EB;function Ep(){if(EB)return Cy;EB=1;var t=Tp(),e=Wl(),r=Object.prototype,i=r.hasOwnProperty;function n(s,o,c){var u=s[o];(!(i.call(s,o)&&e(u,c))||c===void 0&&!(o in s))&&t(s,o,c)}return Cy=n,Cy}var wy,AB;function lh(){if(AB)return wy;AB=1;var t=Ep(),e=Tp();function r(i,n,s,o){var c=!s;s||(s={});for(var u=-1,h=n.length;++u<h;){var f=n[u],p=o?o(s[f],i[f],f,s,i):void 0;p===void 0&&(p=i[f]),c?e(s,f,p):t(s,f,p)}return s}return wy=r,wy}var Sy,BB;function qV(){if(BB)return Sy;BB=1;function t(e,r){for(var i=-1,n=Array(e);++i<e;)n[i]=r(i);return n}return Sy=t,Sy}var ky,LB;function On(){if(LB)return ky;LB=1;function t(e){return e!=null&&typeof e=="object"}return ky=t,ky}var _y,MB;function zV(){if(MB)return _y;MB=1;var t=io(),e=On(),r="[object Arguments]";function i(n){return e(n)&&t(n)==r}return _y=i,_y}var Ty,NB;function ch(){if(NB)return Ty;NB=1;var t=zV(),e=On(),r=Object.prototype,i=r.hasOwnProperty,n=r.propertyIsEnumerable,s=t((function(){return arguments})())?t:function(o){return e(o)&&i.call(o,"callee")&&!n.call(o,"callee")};return Ty=s,Ty}var Ey,OB;function br(){if(OB)return Ey;OB=1;var t=Array.isArray;return Ey=t,Ey}var pu={exports:{}},Ay,RB;function jV(){if(RB)return Ay;RB=1;function t(){return!1}return Ay=t,Ay}pu.exports;var DB;function Xl(){return DB||(DB=1,(function(t,e){var r=hn(),i=jV(),n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,o=s&&s.exports===n,c=o?r.Buffer:void 0,u=c?c.isBuffer:void 0,h=u||i;t.exports=h})(pu,pu.exports)),pu.exports}var By,FB;function Ap(){if(FB)return By;FB=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(i,n){var s=typeof i;return n=n??t,!!n&&(s=="number"||s!="symbol"&&e.test(i))&&i>-1&&i%1==0&&i<n}return By=r,By}var Ly,IB;function lw(){if(IB)return Ly;IB=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Ly=e,Ly}var My,qB;function $V(){if(qB)return My;qB=1;var t=io(),e=lw(),r=On(),i="[object Arguments]",n="[object Array]",s="[object Boolean]",o="[object Date]",c="[object Error]",u="[object Function]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",x="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",_="[object Float32Array]",S="[object Float64Array]",E="[object Int8Array]",L="[object Int16Array]",A="[object Int32Array]",R="[object Uint8Array]",j="[object Uint8ClampedArray]",Y="[object Uint16Array]",W="[object Uint32Array]",O={};O[_]=O[S]=O[E]=O[L]=O[A]=O[R]=O[j]=O[Y]=O[W]=!0,O[i]=O[n]=O[b]=O[s]=O[w]=O[o]=O[c]=O[u]=O[h]=O[f]=O[p]=O[m]=O[g]=O[x]=O[v]=!1;function z(X){return r(X)&&e(X.length)&&!!O[t(X)]}return My=z,My}var Ny,zB;function Bp(){if(zB)return Ny;zB=1;function t(e){return function(r){return e(r)}}return Ny=t,Ny}var gu={exports:{}};gu.exports;var jB;function cw(){return jB||(jB=1,(function(t,e){var r=ZR(),i=e&&!e.nodeType&&e,n=i&&!0&&t&&!t.nodeType&&t,s=n&&n.exports===i,o=s&&r.process,c=(function(){try{var u=n&&n.require&&n.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();t.exports=c})(gu,gu.exports)),gu.exports}var Oy,$B;function uh(){if($B)return Oy;$B=1;var t=$V(),e=Bp(),r=cw(),i=r&&r.isTypedArray,n=i?e(i):t;return Oy=n,Oy}var Ry,PB;function tD(){if(PB)return Ry;PB=1;var t=qV(),e=ch(),r=br(),i=Xl(),n=Ap(),s=uh(),o=Object.prototype,c=o.hasOwnProperty;function u(h,f){var p=r(h),m=!p&&e(h),g=!p&&!m&&i(h),x=!p&&!m&&!g&&s(h),v=p||m||g||x,b=v?t(h.length,String):[],w=b.length;for(var _ in h)(f||c.call(h,_))&&!(v&&(_=="length"||g&&(_=="offset"||_=="parent")||x&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||n(_,w)))&&b.push(_);return b}return Ry=u,Ry}var Dy,HB;function Lp(){if(HB)return Dy;HB=1;var t=Object.prototype;function e(r){var i=r&&r.constructor,n=typeof i=="function"&&i.prototype||t;return r===n}return Dy=e,Dy}var Fy,UB;function eD(){if(UB)return Fy;UB=1;function t(e,r){return function(i){return e(r(i))}}return Fy=t,Fy}var Iy,GB;function PV(){if(GB)return Iy;GB=1;var t=eD(),e=t(Object.keys,Object);return Iy=e,Iy}var qy,YB;function uw(){if(YB)return qy;YB=1;var t=Lp(),e=PV(),r=Object.prototype,i=r.hasOwnProperty;function n(s){if(!t(s))return e(s);var o=[];for(var c in Object(s))i.call(s,c)&&c!="constructor"&&o.push(c);return o}return qy=n,qy}var zy,WB;function fa(){if(WB)return zy;WB=1;var t=oh(),e=lw();function r(i){return i!=null&&e(i.length)&&!t(i)}return zy=r,zy}var jy,VB;function as(){if(VB)return jy;VB=1;var t=tD(),e=uw(),r=fa();function i(n){return r(n)?t(n):e(n)}return jy=i,jy}var $y,XB;function HV(){if(XB)return $y;XB=1;var t=lh(),e=as();function r(i,n){return i&&t(n,e(n),i)}return $y=r,$y}var Py,QB;function UV(){if(QB)return Py;QB=1;function t(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}return Py=t,Py}var Hy,ZB;function GV(){if(ZB)return Hy;ZB=1;var t=Ui(),e=Lp(),r=UV(),i=Object.prototype,n=i.hasOwnProperty;function s(o){if(!t(o))return r(o);var c=e(o),u=[];for(var h in o)h=="constructor"&&(c||!n.call(o,h))||u.push(h);return u}return Hy=s,Hy}var Uy,KB;function ao(){if(KB)return Uy;KB=1;var t=tD(),e=GV(),r=fa();function i(n){return r(n)?t(n,!0):e(n)}return Uy=i,Uy}var Gy,JB;function YV(){if(JB)return Gy;JB=1;var t=lh(),e=ao();function r(i,n){return i&&t(n,e(n),i)}return Gy=r,Gy}var mu={exports:{}};mu.exports;var tL;function rD(){return tL||(tL=1,(function(t,e){var r=hn(),i=e&&!e.nodeType&&e,n=i&&!0&&t&&!t.nodeType&&t,s=n&&n.exports===i,o=s?r.Buffer:void 0,c=o?o.allocUnsafe:void 0;function u(h,f){if(f)return h.slice();var p=h.length,m=c?c(p):new h.constructor(p);return h.copy(m),m}t.exports=u})(mu,mu.exports)),mu.exports}var Yy,eL;function iD(){if(eL)return Yy;eL=1;function t(e,r){var i=-1,n=e.length;for(r||(r=Array(n));++i<n;)r[i]=e[i];return r}return Yy=t,Yy}var Wy,rL;function nD(){if(rL)return Wy;rL=1;function t(e,r){for(var i=-1,n=e==null?0:e.length,s=0,o=[];++i<n;){var c=e[i];r(c,i,e)&&(o[s++]=c)}return o}return Wy=t,Wy}var Vy,iL;function aD(){if(iL)return Vy;iL=1;function t(){return[]}return Vy=t,Vy}var Xy,nL;function hw(){if(nL)return Xy;nL=1;var t=nD(),e=aD(),r=Object.prototype,i=r.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(o){return o==null?[]:(o=Object(o),t(n(o),function(c){return i.call(o,c)}))}:e;return Xy=s,Xy}var Qy,aL;function WV(){if(aL)return Qy;aL=1;var t=lh(),e=hw();function r(i,n){return t(i,e(i),n)}return Qy=r,Qy}var Zy,sL;function fw(){if(sL)return Zy;sL=1;function t(e,r){for(var i=-1,n=r.length,s=e.length;++i<n;)e[s+i]=r[i];return e}return Zy=t,Zy}var Ky,oL;function Mp(){if(oL)return Ky;oL=1;var t=eD(),e=t(Object.getPrototypeOf,Object);return Ky=e,Ky}var Jy,lL;function sD(){if(lL)return Jy;lL=1;var t=fw(),e=Mp(),r=hw(),i=aD(),n=Object.getOwnPropertySymbols,s=n?function(o){for(var c=[];o;)t(c,r(o)),o=e(o);return c}:i;return Jy=s,Jy}var tx,cL;function VV(){if(cL)return tx;cL=1;var t=lh(),e=sD();function r(i,n){return t(i,e(i),n)}return tx=r,tx}var ex,uL;function oD(){if(uL)return ex;uL=1;var t=fw(),e=br();function r(i,n,s){var o=n(i);return e(i)?o:t(o,s(i))}return ex=r,ex}var rx,hL;function lD(){if(hL)return rx;hL=1;var t=oD(),e=hw(),r=as();function i(n){return t(n,r,e)}return rx=i,rx}var ix,fL;function XV(){if(fL)return ix;fL=1;var t=oD(),e=sD(),r=ao();function i(n){return t(n,r,e)}return ix=i,ix}var nx,dL;function QV(){if(dL)return nx;dL=1;var t=no(),e=hn(),r=t(e,"DataView");return nx=r,nx}var ax,pL;function ZV(){if(pL)return ax;pL=1;var t=no(),e=hn(),r=t(e,"Promise");return ax=r,ax}var sx,gL;function cD(){if(gL)return sx;gL=1;var t=no(),e=hn(),r=t(e,"Set");return sx=r,sx}var ox,mL;function KV(){if(mL)return ox;mL=1;var t=no(),e=hn(),r=t(e,"WeakMap");return ox=r,ox}var lx,yL;function Ql(){if(yL)return lx;yL=1;var t=QV(),e=aw(),r=ZV(),i=cD(),n=KV(),s=io(),o=KR(),c="[object Map]",u="[object Object]",h="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",g=o(t),x=o(e),v=o(r),b=o(i),w=o(n),_=s;return(t&&_(new t(new ArrayBuffer(1)))!=m||e&&_(new e)!=c||r&&_(r.resolve())!=h||i&&_(new i)!=f||n&&_(new n)!=p)&&(_=function(S){var E=s(S),L=E==u?S.constructor:void 0,A=L?o(L):"";if(A)switch(A){case g:return m;case x:return c;case v:return h;case b:return f;case w:return p}return E}),lx=_,lx}var cx,xL;function JV(){if(xL)return cx;xL=1;var t=Object.prototype,e=t.hasOwnProperty;function r(i){var n=i.length,s=new i.constructor(n);return n&&typeof i[0]=="string"&&e.call(i,"index")&&(s.index=i.index,s.input=i.input),s}return cx=r,cx}var ux,bL;function uD(){if(bL)return ux;bL=1;var t=hn(),e=t.Uint8Array;return ux=e,ux}var hx,vL;function dw(){if(vL)return hx;vL=1;var t=uD();function e(r){var i=new r.constructor(r.byteLength);return new t(i).set(new t(r)),i}return hx=e,hx}var fx,CL;function tX(){if(CL)return fx;CL=1;var t=dw();function e(r,i){var n=i?t(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}return fx=e,fx}var dx,wL;function eX(){if(wL)return dx;wL=1;var t=/\w*$/;function e(r){var i=new r.constructor(r.source,t.exec(r));return i.lastIndex=r.lastIndex,i}return dx=e,dx}var px,SL;function rX(){if(SL)return px;SL=1;var t=Vl(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function i(n){return r?Object(r.call(n)):{}}return px=i,px}var gx,kL;function hD(){if(kL)return gx;kL=1;var t=dw();function e(r,i){var n=i?t(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}return gx=e,gx}var mx,_L;function iX(){if(_L)return mx;_L=1;var t=dw(),e=tX(),r=eX(),i=rX(),n=hD(),s="[object Boolean]",o="[object Date]",c="[object Map]",u="[object Number]",h="[object RegExp]",f="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",v="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",L="[object Uint8ClampedArray]",A="[object Uint16Array]",R="[object Uint32Array]";function j(Y,W,O){var z=Y.constructor;switch(W){case g:return t(Y);case s:case o:return new z(+Y);case x:return e(Y,O);case v:case b:case w:case _:case S:case E:case L:case A:case R:return n(Y,O);case c:return new z;case u:case p:return new z(Y);case h:return r(Y);case f:return new z;case m:return i(Y)}}return mx=j,mx}var yx,TL;function fD(){if(TL)return yx;TL=1;var t=Ui(),e=Object.create,r=(function(){function i(){}return function(n){if(!t(n))return{};if(e)return e(n);i.prototype=n;var s=new i;return i.prototype=void 0,s}})();return yx=r,yx}var xx,EL;function dD(){if(EL)return xx;EL=1;var t=fD(),e=Mp(),r=Lp();function i(n){return typeof n.constructor=="function"&&!r(n)?t(e(n)):{}}return xx=i,xx}var bx,AL;function nX(){if(AL)return bx;AL=1;var t=Ql(),e=On(),r="[object Map]";function i(n){return e(n)&&t(n)==r}return bx=i,bx}var vx,BL;function aX(){if(BL)return vx;BL=1;var t=nX(),e=Bp(),r=cw(),i=r&&r.isMap,n=i?e(i):t;return vx=n,vx}var Cx,LL;function sX(){if(LL)return Cx;LL=1;var t=Ql(),e=On(),r="[object Set]";function i(n){return e(n)&&t(n)==r}return Cx=i,Cx}var wx,ML;function oX(){if(ML)return wx;ML=1;var t=sX(),e=Bp(),r=cw(),i=r&&r.isSet,n=i?e(i):t;return wx=n,wx}var Sx,NL;function pD(){if(NL)return Sx;NL=1;var t=_p(),e=ow(),r=Ep(),i=HV(),n=YV(),s=rD(),o=iD(),c=WV(),u=VV(),h=lD(),f=XV(),p=Ql(),m=JV(),g=iX(),x=dD(),v=br(),b=Xl(),w=aX(),_=Ui(),S=oX(),E=as(),L=ao(),A=1,R=2,j=4,Y="[object Arguments]",W="[object Array]",O="[object Boolean]",z="[object Date]",X="[object Error]",M="[object Function]",F="[object GeneratorFunction]",N="[object Map]",P="[object Number]",$="[object Object]",q="[object RegExp]",I="[object Set]",G="[object String]",Z="[object Symbol]",H="[object WeakMap]",Q="[object ArrayBuffer]",J="[object DataView]",tt="[object Float32Array]",K="[object Float64Array]",nt="[object Int8Array]",ct="[object Int16Array]",it="[object Int32Array]",dt="[object Uint8Array]",Ct="[object Uint8ClampedArray]",kt="[object Uint16Array]",At="[object Uint32Array]",Et={};Et[Y]=Et[W]=Et[Q]=Et[J]=Et[O]=Et[z]=Et[tt]=Et[K]=Et[nt]=Et[ct]=Et[it]=Et[N]=Et[P]=Et[$]=Et[q]=Et[I]=Et[G]=Et[Z]=Et[dt]=Et[Ct]=Et[kt]=Et[At]=!0,Et[X]=Et[M]=Et[H]=!1;function Ht(qt,we,Be,nr,vr,ar){var De,Le=we&A,Cr=we&R,yt=we&j;if(Be&&(De=vr?Be(qt,nr,vr,ar):Be(qt)),De!==void 0)return De;if(!_(qt))return qt;var _t=v(qt);if(_t){if(De=m(qt),!Le)return o(qt,De)}else{var Rt=p(qt),Kt=Rt==M||Rt==F;if(b(qt))return s(qt,Le);if(Rt==$||Rt==Y||Kt&&!vr){if(De=Cr||Kt?{}:x(qt),!Le)return Cr?u(qt,n(De,qt)):c(qt,i(De,qt))}else{if(!Et[Rt])return vr?qt:{};De=g(qt,Rt,Le)}}ar||(ar=new t);var ne=ar.get(qt);if(ne)return ne;ar.set(qt,De),S(qt)?qt.forEach(function(Se){De.add(Ht(Se,we,Be,Se,qt,ar))}):w(qt)&&qt.forEach(function(Se,me){De.set(me,Ht(Se,we,Be,me,qt,ar))});var sr=yt?Cr?f:h:Cr?L:E,Br=_t?void 0:sr(qt);return e(Br||qt,function(Se,me){Br&&(me=Se,Se=qt[me]),r(De,me,Ht(Se,we,Be,me,qt,ar))}),De}return Sx=Ht,Sx}var kx,OL;function lX(){if(OL)return kx;OL=1;var t=pD(),e=4;function r(i){return t(i,e)}return kx=r,kx}var _x,RL;function pw(){if(RL)return _x;RL=1;function t(e){return function(){return e}}return _x=t,_x}var Tx,DL;function cX(){if(DL)return Tx;DL=1;function t(e){return function(r,i,n){for(var s=-1,o=Object(r),c=n(r),u=c.length;u--;){var h=c[e?u:++s];if(i(o[h],h,o)===!1)break}return r}}return Tx=t,Tx}var Ex,FL;function gw(){if(FL)return Ex;FL=1;var t=cX(),e=t();return Ex=e,Ex}var Ax,IL;function mw(){if(IL)return Ax;IL=1;var t=gw(),e=as();function r(i,n){return i&&t(i,n,e)}return Ax=r,Ax}var Bx,qL;function uX(){if(qL)return Bx;qL=1;var t=fa();function e(r,i){return function(n,s){if(n==null)return n;if(!t(n))return r(n,s);for(var o=n.length,c=i?o:-1,u=Object(n);(i?c--:++c<o)&&s(u[c],c,u)!==!1;);return n}}return Bx=e,Bx}var Lx,zL;function Np(){if(zL)return Lx;zL=1;var t=mw(),e=uX(),r=e(t);return Lx=r,Lx}var Mx,jL;function so(){if(jL)return Mx;jL=1;function t(e){return e}return Mx=t,Mx}var Nx,$L;function gD(){if($L)return Nx;$L=1;var t=so();function e(r){return typeof r=="function"?r:t}return Nx=e,Nx}var Ox,PL;function mD(){if(PL)return Ox;PL=1;var t=ow(),e=Np(),r=gD(),i=br();function n(s,o){var c=i(s)?t:e;return c(s,r(o))}return Ox=n,Ox}var Rx,HL;function yD(){return HL||(HL=1,Rx=mD()),Rx}var Dx,UL;function hX(){if(UL)return Dx;UL=1;var t=Np();function e(r,i){var n=[];return t(r,function(s,o,c){i(s,o,c)&&n.push(s)}),n}return Dx=e,Dx}var Fx,GL;function fX(){if(GL)return Fx;GL=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return Fx=e,Fx}var Ix,YL;function dX(){if(YL)return Ix;YL=1;function t(e){return this.__data__.has(e)}return Ix=t,Ix}var qx,WL;function xD(){if(WL)return qx;WL=1;var t=sw(),e=fX(),r=dX();function i(n){var s=-1,o=n==null?0:n.length;for(this.__data__=new t;++s<o;)this.add(n[s])}return i.prototype.add=i.prototype.push=e,i.prototype.has=r,qx=i,qx}var zx,VL;function pX(){if(VL)return zx;VL=1;function t(e,r){for(var i=-1,n=e==null?0:e.length;++i<n;)if(r(e[i],i,e))return!0;return!1}return zx=t,zx}var jx,XL;function bD(){if(XL)return jx;XL=1;function t(e,r){return e.has(r)}return jx=t,jx}var $x,QL;function vD(){if(QL)return $x;QL=1;var t=xD(),e=pX(),r=bD(),i=1,n=2;function s(o,c,u,h,f,p){var m=u&i,g=o.length,x=c.length;if(g!=x&&!(m&&x>g))return!1;var v=p.get(o),b=p.get(c);if(v&&b)return v==c&&b==o;var w=-1,_=!0,S=u&n?new t:void 0;for(p.set(o,c),p.set(c,o);++w<g;){var E=o[w],L=c[w];if(h)var A=m?h(L,E,w,c,o,p):h(E,L,w,o,c,p);if(A!==void 0){if(A)continue;_=!1;break}if(S){if(!e(c,function(R,j){if(!r(S,j)&&(E===R||f(E,R,u,h,p)))return S.push(j)})){_=!1;break}}else if(!(E===L||f(E,L,u,h,p))){_=!1;break}}return p.delete(o),p.delete(c),_}return $x=s,$x}var Px,ZL;function gX(){if(ZL)return Px;ZL=1;function t(e){var r=-1,i=Array(e.size);return e.forEach(function(n,s){i[++r]=[s,n]}),i}return Px=t,Px}var Hx,KL;function yw(){if(KL)return Hx;KL=1;function t(e){var r=-1,i=Array(e.size);return e.forEach(function(n){i[++r]=n}),i}return Hx=t,Hx}var Ux,JL;function mX(){if(JL)return Ux;JL=1;var t=Vl(),e=uD(),r=Wl(),i=vD(),n=gX(),s=yw(),o=1,c=2,u="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",x="[object Set]",v="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",S=t?t.prototype:void 0,E=S?S.valueOf:void 0;function L(A,R,j,Y,W,O,z){switch(j){case _:if(A.byteLength!=R.byteLength||A.byteOffset!=R.byteOffset)return!1;A=A.buffer,R=R.buffer;case w:return!(A.byteLength!=R.byteLength||!O(new e(A),new e(R)));case u:case h:case m:return r(+A,+R);case f:return A.name==R.name&&A.message==R.message;case g:case v:return A==R+"";case p:var X=n;case x:var M=Y&o;if(X||(X=s),A.size!=R.size&&!M)return!1;var F=z.get(A);if(F)return F==R;Y|=c,z.set(A,R);var N=i(X(A),X(R),Y,W,O,z);return z.delete(A),N;case b:if(E)return E.call(A)==E.call(R)}return!1}return Ux=L,Ux}var Gx,tM;function yX(){if(tM)return Gx;tM=1;var t=lD(),e=1,r=Object.prototype,i=r.hasOwnProperty;function n(s,o,c,u,h,f){var p=c&e,m=t(s),g=m.length,x=t(o),v=x.length;if(g!=v&&!p)return!1;for(var b=g;b--;){var w=m[b];if(!(p?w in o:i.call(o,w)))return!1}var _=f.get(s),S=f.get(o);if(_&&S)return _==o&&S==s;var E=!0;f.set(s,o),f.set(o,s);for(var L=p;++b<g;){w=m[b];var A=s[w],R=o[w];if(u)var j=p?u(R,A,w,o,s,f):u(A,R,w,s,o,f);if(!(j===void 0?A===R||h(A,R,c,u,f):j)){E=!1;break}L||(L=w=="constructor")}if(E&&!L){var Y=s.constructor,W=o.constructor;Y!=W&&"constructor"in s&&"constructor"in o&&!(typeof Y=="function"&&Y instanceof Y&&typeof W=="function"&&W instanceof W)&&(E=!1)}return f.delete(s),f.delete(o),E}return Gx=n,Gx}var Yx,eM;function xX(){if(eM)return Yx;eM=1;var t=_p(),e=vD(),r=mX(),i=yX(),n=Ql(),s=br(),o=Xl(),c=uh(),u=1,h="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function x(v,b,w,_,S,E){var L=s(v),A=s(b),R=L?f:n(v),j=A?f:n(b);R=R==h?p:R,j=j==h?p:j;var Y=R==p,W=j==p,O=R==j;if(O&&o(v)){if(!o(b))return!1;L=!0,Y=!1}if(O&&!Y)return E||(E=new t),L||c(v)?e(v,b,w,_,S,E):r(v,b,R,w,_,S,E);if(!(w&u)){var z=Y&&g.call(v,"__wrapped__"),X=W&&g.call(b,"__wrapped__");if(z||X){var M=z?v.value():v,F=X?b.value():b;return E||(E=new t),S(M,F,w,_,E)}}return O?(E||(E=new t),i(v,b,w,_,S,E)):!1}return Yx=x,Yx}var Wx,rM;function CD(){if(rM)return Wx;rM=1;var t=xX(),e=On();function r(i,n,s,o,c){return i===n?!0:i==null||n==null||!e(i)&&!e(n)?i!==i&&n!==n:t(i,n,s,o,r,c)}return Wx=r,Wx}var Vx,iM;function bX(){if(iM)return Vx;iM=1;var t=_p(),e=CD(),r=1,i=2;function n(s,o,c,u){var h=c.length,f=h,p=!u;if(s==null)return!f;for(s=Object(s);h--;){var m=c[h];if(p&&m[2]?m[1]!==s[m[0]]:!(m[0]in s))return!1}for(;++h<f;){m=c[h];var g=m[0],x=s[g],v=m[1];if(p&&m[2]){if(x===void 0&&!(g in s))return!1}else{var b=new t;if(u)var w=u(x,v,g,s,o,b);if(!(w===void 0?e(v,x,r|i,u,b):w))return!1}}return!0}return Vx=n,Vx}var Xx,nM;function wD(){if(nM)return Xx;nM=1;var t=Ui();function e(r){return r===r&&!t(r)}return Xx=e,Xx}var Qx,aM;function vX(){if(aM)return Qx;aM=1;var t=wD(),e=as();function r(i){for(var n=e(i),s=n.length;s--;){var o=n[s],c=i[o];n[s]=[o,c,t(c)]}return n}return Qx=r,Qx}var Zx,sM;function SD(){if(sM)return Zx;sM=1;function t(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}return Zx=t,Zx}var Kx,oM;function CX(){if(oM)return Kx;oM=1;var t=bX(),e=vX(),r=SD();function i(n){var s=e(n);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(o){return o===n||t(o,n,s)}}return Kx=i,Kx}var Jx,lM;function Zl(){if(lM)return Jx;lM=1;var t=io(),e=On(),r="[object Symbol]";function i(n){return typeof n=="symbol"||e(n)&&t(n)==r}return Jx=i,Jx}var tb,cM;function xw(){if(cM)return tb;cM=1;var t=br(),e=Zl(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function n(s,o){if(t(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||e(s)?!0:i.test(s)||!r.test(s)||o!=null&&s in Object(o)}return tb=n,tb}var eb,uM;function wX(){if(uM)return eb;uM=1;var t=sw(),e="Expected a function";function r(i,n){if(typeof i!="function"||n!=null&&typeof n!="function")throw new TypeError(e);var s=function(){var o=arguments,c=n?n.apply(this,o):o[0],u=s.cache;if(u.has(c))return u.get(c);var h=i.apply(this,o);return s.cache=u.set(c,h)||u,h};return s.cache=new(r.Cache||t),s}return r.Cache=t,eb=r,eb}var rb,hM;function SX(){if(hM)return rb;hM=1;var t=wX(),e=500;function r(i){var n=t(i,function(o){return s.size===e&&s.clear(),o}),s=n.cache;return n}return rb=r,rb}var ib,fM;function kX(){if(fM)return ib;fM=1;var t=SX(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,i=t(function(n){var s=[];return n.charCodeAt(0)===46&&s.push(""),n.replace(e,function(o,c,u,h){s.push(u?h.replace(r,"$1"):c||o)}),s});return ib=i,ib}var nb,dM;function Op(){if(dM)return nb;dM=1;function t(e,r){for(var i=-1,n=e==null?0:e.length,s=Array(n);++i<n;)s[i]=r(e[i],i,e);return s}return nb=t,nb}var ab,pM;function _X(){if(pM)return ab;pM=1;var t=Vl(),e=Op(),r=br(),i=Zl(),n=t?t.prototype:void 0,s=n?n.toString:void 0;function o(c){if(typeof c=="string")return c;if(r(c))return e(c,o)+"";if(i(c))return s?s.call(c):"";var u=c+"";return u=="0"&&1/c==-1/0?"-0":u}return ab=o,ab}var sb,gM;function kD(){if(gM)return sb;gM=1;var t=_X();function e(r){return r==null?"":t(r)}return sb=e,sb}var ob,mM;function Rp(){if(mM)return ob;mM=1;var t=br(),e=xw(),r=kX(),i=kD();function n(s,o){return t(s)?s:e(s,o)?[s]:r(i(s))}return ob=n,ob}var lb,yM;function hh(){if(yM)return lb;yM=1;var t=Zl();function e(r){if(typeof r=="string"||t(r))return r;var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}return lb=e,lb}var cb,xM;function Dp(){if(xM)return cb;xM=1;var t=Rp(),e=hh();function r(i,n){n=t(n,i);for(var s=0,o=n.length;i!=null&&s<o;)i=i[e(n[s++])];return s&&s==o?i:void 0}return cb=r,cb}var ub,bM;function TX(){if(bM)return ub;bM=1;var t=Dp();function e(r,i,n){var s=r==null?void 0:t(r,i);return s===void 0?n:s}return ub=e,ub}var hb,vM;function EX(){if(vM)return hb;vM=1;function t(e,r){return e!=null&&r in Object(e)}return hb=t,hb}var fb,CM;function _D(){if(CM)return fb;CM=1;var t=Rp(),e=ch(),r=br(),i=Ap(),n=lw(),s=hh();function o(c,u,h){u=t(u,c);for(var f=-1,p=u.length,m=!1;++f<p;){var g=s(u[f]);if(!(m=c!=null&&h(c,g)))break;c=c[g]}return m||++f!=p?m:(p=c==null?0:c.length,!!p&&n(p)&&i(g,p)&&(r(c)||e(c)))}return fb=o,fb}var db,wM;function TD(){if(wM)return db;wM=1;var t=EX(),e=_D();function r(i,n){return i!=null&&e(i,n,t)}return db=r,db}var pb,SM;function AX(){if(SM)return pb;SM=1;var t=CD(),e=TX(),r=TD(),i=xw(),n=wD(),s=SD(),o=hh(),c=1,u=2;function h(f,p){return i(f)&&n(p)?s(o(f),p):function(m){var g=e(m,f);return g===void 0&&g===p?r(m,f):t(p,g,c|u)}}return pb=h,pb}var gb,kM;function ED(){if(kM)return gb;kM=1;function t(e){return function(r){return r==null?void 0:r[e]}}return gb=t,gb}var mb,_M;function BX(){if(_M)return mb;_M=1;var t=Dp();function e(r){return function(i){return t(i,r)}}return mb=e,mb}var yb,TM;function LX(){if(TM)return yb;TM=1;var t=ED(),e=BX(),r=xw(),i=hh();function n(s){return r(s)?t(i(s)):e(s)}return yb=n,yb}var xb,EM;function da(){if(EM)return xb;EM=1;var t=CX(),e=AX(),r=so(),i=br(),n=LX();function s(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?i(o)?e(o[0],o[1]):t(o):n(o)}return xb=s,xb}var bb,AM;function AD(){if(AM)return bb;AM=1;var t=nD(),e=hX(),r=da(),i=br();function n(s,o){var c=i(s)?t:e;return c(s,r(o,3))}return bb=n,bb}var vb,BM;function MX(){if(BM)return vb;BM=1;var t=Object.prototype,e=t.hasOwnProperty;function r(i,n){return i!=null&&e.call(i,n)}return vb=r,vb}var Cb,LM;function BD(){if(LM)return Cb;LM=1;var t=MX(),e=_D();function r(i,n){return i!=null&&e(i,n,t)}return Cb=r,Cb}var wb,MM;function NX(){if(MM)return wb;MM=1;var t=uw(),e=Ql(),r=ch(),i=br(),n=fa(),s=Xl(),o=Lp(),c=uh(),u="[object Map]",h="[object Set]",f=Object.prototype,p=f.hasOwnProperty;function m(g){if(g==null)return!0;if(n(g)&&(i(g)||typeof g=="string"||typeof g.splice=="function"||s(g)||c(g)||r(g)))return!g.length;var x=e(g);if(x==u||x==h)return!g.size;if(o(g))return!t(g).length;for(var v in g)if(p.call(g,v))return!1;return!0}return wb=m,wb}var Sb,NM;function LD(){if(NM)return Sb;NM=1;function t(e){return e===void 0}return Sb=t,Sb}var kb,OM;function MD(){if(OM)return kb;OM=1;var t=Np(),e=fa();function r(i,n){var s=-1,o=e(i)?Array(i.length):[];return t(i,function(c,u,h){o[++s]=n(c,u,h)}),o}return kb=r,kb}var _b,RM;function ND(){if(RM)return _b;RM=1;var t=Op(),e=da(),r=MD(),i=br();function n(s,o){var c=i(s)?t:r;return c(s,e(o,3))}return _b=n,_b}var Tb,DM;function OX(){if(DM)return Tb;DM=1;function t(e,r,i,n){var s=-1,o=e==null?0:e.length;for(n&&o&&(i=e[++s]);++s<o;)i=r(i,e[s],s,e);return i}return Tb=t,Tb}var Eb,FM;function RX(){if(FM)return Eb;FM=1;function t(e,r,i,n,s){return s(e,function(o,c,u){i=n?(n=!1,o):r(i,o,c,u)}),i}return Eb=t,Eb}var Ab,IM;function OD(){if(IM)return Ab;IM=1;var t=OX(),e=Np(),r=da(),i=RX(),n=br();function s(o,c,u){var h=n(o)?t:i,f=arguments.length<3;return h(o,r(c,4),u,f,e)}return Ab=s,Ab}var Bb,qM;function DX(){if(qM)return Bb;qM=1;var t=io(),e=br(),r=On(),i="[object String]";function n(s){return typeof s=="string"||!e(s)&&r(s)&&t(s)==i}return Bb=n,Bb}var Lb,zM;function FX(){if(zM)return Lb;zM=1;var t=ED(),e=t("length");return Lb=e,Lb}var Mb,jM;function IX(){if(jM)return Mb;jM=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",n=e+r+i,s="\\ufe0e\\ufe0f",o="\\u200d",c=RegExp("["+o+t+n+s+"]");function u(h){return c.test(h)}return Mb=u,Mb}var Nb,$M;function qX(){if($M)return Nb;$M=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",n=e+r+i,s="\\ufe0e\\ufe0f",o="["+t+"]",c="["+n+"]",u="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+u+")",f="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",x=h+"?",v="["+s+"]?",b="(?:"+g+"(?:"+[f,p,m].join("|")+")"+v+x+")*",w=v+x+b,_="(?:"+[f+c+"?",c,p,m,o].join("|")+")",S=RegExp(u+"(?="+u+")|"+_+w,"g");function E(L){for(var A=S.lastIndex=0;S.test(L);)++A;return A}return Nb=E,Nb}var Ob,PM;function zX(){if(PM)return Ob;PM=1;var t=FX(),e=IX(),r=qX();function i(n){return e(n)?r(n):t(n)}return Ob=i,Ob}var Rb,HM;function jX(){if(HM)return Rb;HM=1;var t=uw(),e=Ql(),r=fa(),i=DX(),n=zX(),s="[object Map]",o="[object Set]";function c(u){if(u==null)return 0;if(r(u))return i(u)?n(u):u.length;var h=e(u);return h==s||h==o?u.size:t(u).length}return Rb=c,Rb}var Db,UM;function $X(){if(UM)return Db;UM=1;var t=ow(),e=fD(),r=mw(),i=da(),n=Mp(),s=br(),o=Xl(),c=oh(),u=Ui(),h=uh();function f(p,m,g){var x=s(p),v=x||o(p)||h(p);if(m=i(m,4),g==null){var b=p&&p.constructor;v?g=x?new b:[]:u(p)?g=c(b)?e(n(p)):{}:g={}}return(v?t:r)(p,function(w,_,S){return m(g,w,_,S)}),g}return Db=f,Db}var Fb,GM;function PX(){if(GM)return Fb;GM=1;var t=Vl(),e=ch(),r=br(),i=t?t.isConcatSpreadable:void 0;function n(s){return r(s)||e(s)||!!(i&&s&&s[i])}return Fb=n,Fb}var Ib,YM;function bw(){if(YM)return Ib;YM=1;var t=fw(),e=PX();function r(i,n,s,o,c){var u=-1,h=i.length;for(s||(s=e),c||(c=[]);++u<h;){var f=i[u];n>0&&s(f)?n>1?r(f,n-1,s,o,c):t(c,f):o||(c[c.length]=f)}return c}return Ib=r,Ib}var qb,WM;function HX(){if(WM)return qb;WM=1;function t(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}return qb=t,qb}var zb,VM;function RD(){if(VM)return zb;VM=1;var t=HX(),e=Math.max;function r(i,n,s){return n=e(n===void 0?i.length-1:n,0),function(){for(var o=arguments,c=-1,u=e(o.length-n,0),h=Array(u);++c<u;)h[c]=o[n+c];c=-1;for(var f=Array(n+1);++c<n;)f[c]=o[c];return f[n]=s(h),t(i,this,f)}}return zb=r,zb}var jb,XM;function UX(){if(XM)return jb;XM=1;var t=pw(),e=JR(),r=so(),i=e?function(n,s){return e(n,"toString",{configurable:!0,enumerable:!1,value:t(s),writable:!0})}:r;return jb=i,jb}var $b,QM;function GX(){if(QM)return $b;QM=1;var t=800,e=16,r=Date.now;function i(n){var s=0,o=0;return function(){var c=r(),u=e-(c-o);if(o=c,u>0){if(++s>=t)return arguments[0]}else s=0;return n.apply(void 0,arguments)}}return $b=i,$b}var Pb,ZM;function DD(){if(ZM)return Pb;ZM=1;var t=UX(),e=GX(),r=e(t);return Pb=r,Pb}var Hb,KM;function Fp(){if(KM)return Hb;KM=1;var t=so(),e=RD(),r=DD();function i(n,s){return r(e(n,s,t),n+"")}return Hb=i,Hb}var Ub,JM;function FD(){if(JM)return Ub;JM=1;function t(e,r,i,n){for(var s=e.length,o=i+(n?1:-1);n?o--:++o<s;)if(r(e[o],o,e))return o;return-1}return Ub=t,Ub}var Gb,t5;function YX(){if(t5)return Gb;t5=1;function t(e){return e!==e}return Gb=t,Gb}var Yb,e5;function WX(){if(e5)return Yb;e5=1;function t(e,r,i){for(var n=i-1,s=e.length;++n<s;)if(e[n]===r)return n;return-1}return Yb=t,Yb}var Wb,r5;function VX(){if(r5)return Wb;r5=1;var t=FD(),e=YX(),r=WX();function i(n,s,o){return s===s?r(n,s,o):t(n,e,o)}return Wb=i,Wb}var Vb,i5;function XX(){if(i5)return Vb;i5=1;var t=VX();function e(r,i){var n=r==null?0:r.length;return!!n&&t(r,i,0)>-1}return Vb=e,Vb}var Xb,n5;function QX(){if(n5)return Xb;n5=1;function t(e,r,i){for(var n=-1,s=e==null?0:e.length;++n<s;)if(i(r,e[n]))return!0;return!1}return Xb=t,Xb}var Qb,a5;function ZX(){if(a5)return Qb;a5=1;function t(){}return Qb=t,Qb}var Zb,s5;function KX(){if(s5)return Zb;s5=1;var t=cD(),e=ZX(),r=yw(),i=1/0,n=t&&1/r(new t([,-0]))[1]==i?function(s){return new t(s)}:e;return Zb=n,Zb}var Kb,o5;function JX(){if(o5)return Kb;o5=1;var t=xD(),e=XX(),r=QX(),i=bD(),n=KX(),s=yw(),o=200;function c(u,h,f){var p=-1,m=e,g=u.length,x=!0,v=[],b=v;if(f)x=!1,m=r;else if(g>=o){var w=h?null:n(u);if(w)return s(w);x=!1,m=i,b=new t}else b=h?[]:v;t:for(;++p<g;){var _=u[p],S=h?h(_):_;if(_=f||_!==0?_:0,x&&S===S){for(var E=b.length;E--;)if(b[E]===S)continue t;h&&b.push(S),v.push(_)}else m(b,S,f)||(b!==v&&b.push(S),v.push(_))}return v}return Kb=c,Kb}var Jb,l5;function ID(){if(l5)return Jb;l5=1;var t=fa(),e=On();function r(i){return e(i)&&t(i)}return Jb=r,Jb}var t1,c5;function tQ(){if(c5)return t1;c5=1;var t=bw(),e=Fp(),r=JX(),i=ID(),n=e(function(s){return r(t(s,1,i,!0))});return t1=n,t1}var e1,u5;function eQ(){if(u5)return e1;u5=1;var t=Op();function e(r,i){return t(i,function(n){return r[n]})}return e1=e,e1}var r1,h5;function qD(){if(h5)return r1;h5=1;var t=eQ(),e=as();function r(i){return i==null?[]:t(i,e(i))}return r1=r,r1}var i1,f5;function Gi(){if(f5)return i1;f5=1;var t;if(typeof nw=="function")try{t={clone:lX(),constant:pw(),each:yD(),filter:AD(),has:BD(),isArray:br(),isEmpty:NX(),isFunction:oh(),isUndefined:LD(),keys:as(),map:ND(),reduce:OD(),size:jX(),transform:$X(),union:tQ(),values:qD()}}catch{}return t||(t=window._),i1=t,i1}var n1,d5;function vw(){if(d5)return n1;d5=1;var t=Gi();n1=n;var e="\0",r="\0",i="";function n(f){this._isDirected=t.has(f,"directed")?f.directed:!0,this._isMultigraph=t.has(f,"multigraph")?f.multigraph:!1,this._isCompound=t.has(f,"compound")?f.compound:!1,this._label=void 0,this._defaultNodeLabelFn=t.constant(void 0),this._defaultEdgeLabelFn=t.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[r]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(f){return this._label=f,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(f){return t.isFunction(f)||(f=t.constant(f)),this._defaultNodeLabelFn=f,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return t.keys(this._nodes)},n.prototype.sources=function(){var f=this;return t.filter(this.nodes(),function(p){return t.isEmpty(f._in[p])})},n.prototype.sinks=function(){var f=this;return t.filter(this.nodes(),function(p){return t.isEmpty(f._out[p])})},n.prototype.setNodes=function(f,p){var m=arguments,g=this;return t.each(f,function(x){m.length>1?g.setNode(x,p):g.setNode(x)}),this},n.prototype.setNode=function(f,p){return t.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=p),this):(this._nodes[f]=arguments.length>1?p:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]=r,this._children[f]={},this._children[r][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},n.prototype.node=function(f){return this._nodes[f]},n.prototype.hasNode=function(f){return t.has(this._nodes,f)},n.prototype.removeNode=function(f){var p=this;if(t.has(this._nodes,f)){var m=function(g){p.removeEdge(p._edgeObjs[g])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],t.each(this.children(f),function(g){p.setParent(g)}),delete this._children[f]),t.each(t.keys(this._in[f]),m),delete this._in[f],delete this._preds[f],t.each(t.keys(this._out[f]),m),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},n.prototype.setParent=function(f,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t.isUndefined(p))p=r;else{p+="";for(var m=p;!t.isUndefined(m);m=this.parent(m))if(m===f)throw new Error("Setting "+p+" as parent of "+f+" would create a cycle");this.setNode(p)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=p,this._children[p][f]=!0,this},n.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},n.prototype.parent=function(f){if(this._isCompound){var p=this._parent[f];if(p!==r)return p}},n.prototype.children=function(f){if(t.isUndefined(f)&&(f=r),this._isCompound){var p=this._children[f];if(p)return t.keys(p)}else{if(f===r)return this.nodes();if(this.hasNode(f))return[]}},n.prototype.predecessors=function(f){var p=this._preds[f];if(p)return t.keys(p)},n.prototype.successors=function(f){var p=this._sucs[f];if(p)return t.keys(p)},n.prototype.neighbors=function(f){var p=this.predecessors(f);if(p)return t.union(p,this.successors(f))},n.prototype.isLeaf=function(f){var p;return this.isDirected()?p=this.successors(f):p=this.neighbors(f),p.length===0},n.prototype.filterNodes=function(f){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var m=this;t.each(this._nodes,function(v,b){f(b)&&p.setNode(b,v)}),t.each(this._edgeObjs,function(v){p.hasNode(v.v)&&p.hasNode(v.w)&&p.setEdge(v,m.edge(v))});var g={};function x(v){var b=m.parent(v);return b===void 0||p.hasNode(b)?(g[v]=b,b):b in g?g[b]:x(b)}return this._isCompound&&t.each(p.nodes(),function(v){p.setParent(v,x(v))}),p},n.prototype.setDefaultEdgeLabel=function(f){return t.isFunction(f)||(f=t.constant(f)),this._defaultEdgeLabelFn=f,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return t.values(this._edgeObjs)},n.prototype.setPath=function(f,p){var m=this,g=arguments;return t.reduce(f,function(x,v){return g.length>1?m.setEdge(x,v,p):m.setEdge(x,v),v}),this},n.prototype.setEdge=function(){var f,p,m,g,x=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(f=v.v,p=v.w,m=v.name,arguments.length===2&&(g=arguments[1],x=!0)):(f=v,p=arguments[1],m=arguments[3],arguments.length>2&&(g=arguments[2],x=!0)),f=""+f,p=""+p,t.isUndefined(m)||(m=""+m);var b=c(this._isDirected,f,p,m);if(t.has(this._edgeLabels,b))return x&&(this._edgeLabels[b]=g),this;if(!t.isUndefined(m)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(p),this._edgeLabels[b]=x?g:this._defaultEdgeLabelFn(f,p,m);var w=u(this._isDirected,f,p,m);return f=w.v,p=w.w,Object.freeze(w),this._edgeObjs[b]=w,s(this._preds[p],f),s(this._sucs[f],p),this._in[p][b]=w,this._out[f][b]=w,this._edgeCount++,this},n.prototype.edge=function(f,p,m){var g=arguments.length===1?h(this._isDirected,arguments[0]):c(this._isDirected,f,p,m);return this._edgeLabels[g]},n.prototype.hasEdge=function(f,p,m){var g=arguments.length===1?h(this._isDirected,arguments[0]):c(this._isDirected,f,p,m);return t.has(this._edgeLabels,g)},n.prototype.removeEdge=function(f,p,m){var g=arguments.length===1?h(this._isDirected,arguments[0]):c(this._isDirected,f,p,m),x=this._edgeObjs[g];return x&&(f=x.v,p=x.w,delete this._edgeLabels[g],delete this._edgeObjs[g],o(this._preds[p],f),o(this._sucs[f],p),delete this._in[p][g],delete this._out[f][g],this._edgeCount--),this},n.prototype.inEdges=function(f,p){var m=this._in[f];if(m){var g=t.values(m);return p?t.filter(g,function(x){return x.v===p}):g}},n.prototype.outEdges=function(f,p){var m=this._out[f];if(m){var g=t.values(m);return p?t.filter(g,function(x){return x.w===p}):g}},n.prototype.nodeEdges=function(f,p){var m=this.inEdges(f,p);if(m)return m.concat(this.outEdges(f,p))};function s(f,p){f[p]?f[p]++:f[p]=1}function o(f,p){--f[p]||delete f[p]}function c(f,p,m,g){var x=""+p,v=""+m;if(!f&&x>v){var b=x;x=v,v=b}return x+i+v+i+(t.isUndefined(g)?e:g)}function u(f,p,m,g){var x=""+p,v=""+m;if(!f&&x>v){var b=x;x=v,v=b}var w={v:x,w:v};return g&&(w.name=g),w}function h(f,p){return c(f,p.v,p.w,p.name)}return n1}var a1,p5;function rQ(){return p5||(p5=1,a1="2.1.8"),a1}var s1,g5;function iQ(){return g5||(g5=1,s1={Graph:vw(),version:rQ()}),s1}var o1,m5;function nQ(){if(m5)return o1;m5=1;var t=Gi(),e=vw();o1={write:r,read:s};function r(o){var c={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:i(o),edges:n(o)};return t.isUndefined(o.graph())||(c.value=t.clone(o.graph())),c}function i(o){return t.map(o.nodes(),function(c){var u=o.node(c),h=o.parent(c),f={v:c};return t.isUndefined(u)||(f.value=u),t.isUndefined(h)||(f.parent=h),f})}function n(o){return t.map(o.edges(),function(c){var u=o.edge(c),h={v:c.v,w:c.w};return t.isUndefined(c.name)||(h.name=c.name),t.isUndefined(u)||(h.value=u),h})}function s(o){var c=new e(o.options).setGraph(o.value);return t.each(o.nodes,function(u){c.setNode(u.v,u.value),u.parent&&c.setParent(u.v,u.parent)}),t.each(o.edges,function(u){c.setEdge({v:u.v,w:u.w,name:u.name},u.value)}),c}return o1}var l1,y5;function aQ(){if(y5)return l1;y5=1;var t=Gi();l1=e;function e(r){var i={},n=[],s;function o(c){t.has(i,c)||(i[c]=!0,s.push(c),t.each(r.successors(c),o),t.each(r.predecessors(c),o))}return t.each(r.nodes(),function(c){s=[],o(c),s.length&&n.push(s)}),n}return l1}var c1,x5;function zD(){if(x5)return c1;x5=1;var t=Gi();c1=e;function e(){this._arr=[],this._keyIndices={}}return e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(r){return r.key})},e.prototype.has=function(r){return t.has(this._keyIndices,r)},e.prototype.priority=function(r){var i=this._keyIndices[r];if(i!==void 0)return this._arr[i].priority},e.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(r,i){var n=this._keyIndices;if(r=String(r),!t.has(n,r)){var s=this._arr,o=s.length;return n[r]=o,s.push({key:r,priority:i}),this._decrease(o),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},e.prototype.decrease=function(r,i){var n=this._keyIndices[r];if(i>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[n].priority+" New: "+i);this._arr[n].priority=i,this._decrease(n)},e.prototype._heapify=function(r){var i=this._arr,n=2*r,s=n+1,o=r;n<i.length&&(o=i[n].priority<i[o].priority?n:o,s<i.length&&(o=i[s].priority<i[o].priority?s:o),o!==r&&(this._swap(r,o),this._heapify(o)))},e.prototype._decrease=function(r){for(var i=this._arr,n=i[r].priority,s;r!==0&&(s=r>>1,!(i[s].priority<n));)this._swap(r,s),r=s},e.prototype._swap=function(r,i){var n=this._arr,s=this._keyIndices,o=n[r],c=n[i];n[r]=c,n[i]=o,s[c.key]=r,s[o.key]=i},c1}var u1,b5;function jD(){if(b5)return u1;b5=1;var t=Gi(),e=zD();u1=i;var r=t.constant(1);function i(s,o,c,u){return n(s,String(o),c||r,u||function(h){return s.outEdges(h)})}function n(s,o,c,u){var h={},f=new e,p,m,g=function(x){var v=x.v!==p?x.v:x.w,b=h[v],w=c(x),_=m.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+x+" Weight: "+w);_<b.distance&&(b.distance=_,b.predecessor=p,f.decrease(v,_))};for(s.nodes().forEach(function(x){var v=x===o?0:Number.POSITIVE_INFINITY;h[x]={distance:v},f.add(x,v)});f.size()>0&&(p=f.removeMin(),m=h[p],m.distance!==Number.POSITIVE_INFINITY);)u(p).forEach(g);return h}return u1}var h1,v5;function sQ(){if(v5)return h1;v5=1;var t=jD(),e=Gi();h1=r;function r(i,n,s){return e.transform(i.nodes(),function(o,c){o[c]=t(i,c,n,s)},{})}return h1}var f1,C5;function $D(){if(C5)return f1;C5=1;var t=Gi();f1=e;function e(r){var i=0,n=[],s={},o=[];function c(u){var h=s[u]={onStack:!0,lowlink:i,index:i++};if(n.push(u),r.successors(u).forEach(function(m){t.has(s,m)?s[m].onStack&&(h.lowlink=Math.min(h.lowlink,s[m].index)):(c(m),h.lowlink=Math.min(h.lowlink,s[m].lowlink))}),h.lowlink===h.index){var f=[],p;do p=n.pop(),s[p].onStack=!1,f.push(p);while(u!==p);o.push(f)}}return r.nodes().forEach(function(u){t.has(s,u)||c(u)}),o}return f1}var d1,w5;function oQ(){if(w5)return d1;w5=1;var t=Gi(),e=$D();d1=r;function r(i){return t.filter(e(i),function(n){return n.length>1||n.length===1&&i.hasEdge(n[0],n[0])})}return d1}var p1,S5;function lQ(){if(S5)return p1;S5=1;var t=Gi();p1=r;var e=t.constant(1);function r(n,s,o){return i(n,s||e,o||function(c){return n.outEdges(c)})}function i(n,s,o){var c={},u=n.nodes();return u.forEach(function(h){c[h]={},c[h][h]={distance:0},u.forEach(function(f){h!==f&&(c[h][f]={distance:Number.POSITIVE_INFINITY})}),o(h).forEach(function(f){var p=f.v===h?f.w:f.v,m=s(f);c[h][p]={distance:m,predecessor:h}})}),u.forEach(function(h){var f=c[h];u.forEach(function(p){var m=c[p];u.forEach(function(g){var x=m[h],v=f[g],b=m[g],w=x.distance+v.distance;w<b.distance&&(b.distance=w,b.predecessor=v.predecessor)})})}),c}return p1}var g1,k5;function PD(){if(k5)return g1;k5=1;var t=Gi();g1=e,e.CycleException=r;function e(i){var n={},s={},o=[];function c(u){if(t.has(s,u))throw new r;t.has(n,u)||(s[u]=!0,n[u]=!0,t.each(i.predecessors(u),c),delete s[u],o.push(u))}if(t.each(i.sinks(),c),t.size(n)!==i.nodeCount())throw new r;return o}function r(){}return r.prototype=new Error,g1}var m1,_5;function cQ(){if(_5)return m1;_5=1;var t=PD();m1=e;function e(r){try{t(r)}catch(i){if(i instanceof t.CycleException)return!1;throw i}return!0}return m1}var y1,T5;function HD(){if(T5)return y1;T5=1;var t=Gi();y1=e;function e(i,n,s){t.isArray(n)||(n=[n]);var o=(i.isDirected()?i.successors:i.neighbors).bind(i),c=[],u={};return t.each(n,function(h){if(!i.hasNode(h))throw new Error("Graph does not have node: "+h);r(i,h,s==="post",u,o,c)}),c}function r(i,n,s,o,c,u){t.has(o,n)||(o[n]=!0,s||u.push(n),t.each(c(n),function(h){r(i,h,s,o,c,u)}),s&&u.push(n))}return y1}var x1,E5;function uQ(){if(E5)return x1;E5=1;var t=HD();x1=e;function e(r,i){return t(r,i,"post")}return x1}var b1,A5;function hQ(){if(A5)return b1;A5=1;var t=HD();b1=e;function e(r,i){return t(r,i,"pre")}return b1}var v1,B5;function fQ(){if(B5)return v1;B5=1;var t=Gi(),e=vw(),r=zD();v1=i;function i(n,s){var o=new e,c={},u=new r,h;function f(m){var g=m.v===h?m.w:m.v,x=u.priority(g);if(x!==void 0){var v=s(m);v<x&&(c[g]=h,u.decrease(g,v))}}if(n.nodeCount()===0)return o;t.each(n.nodes(),function(m){u.add(m,Number.POSITIVE_INFINITY),o.setNode(m)}),u.decrease(n.nodes()[0],0);for(var p=!1;u.size()>0;){if(h=u.removeMin(),t.has(c,h))o.setEdge(h,c[h]);else{if(p)throw new Error("Input graph is not connected: "+n);p=!0}n.nodeEdges(h).forEach(f)}return o}return v1}var C1,L5;function dQ(){return L5||(L5=1,C1={components:aQ(),dijkstra:jD(),dijkstraAll:sQ(),findCycles:oQ(),floydWarshall:lQ(),isAcyclic:cQ(),postorder:uQ(),preorder:hQ(),prim:fQ(),tarjan:$D(),topsort:PD()}),C1}var w1,M5;function pQ(){if(M5)return w1;M5=1;var t=iQ();return w1={Graph:t.Graph,json:nQ(),alg:dQ(),version:t.version},w1}var S1,N5;function ln(){if(N5)return S1;N5=1;var t;if(typeof nw=="function")try{t=pQ()}catch{}return t||(t=window.graphlib),S1=t,S1}var k1,O5;function gQ(){if(O5)return k1;O5=1;var t=pD(),e=1,r=4;function i(n){return t(n,e|r)}return k1=i,k1}var _1,R5;function Ip(){if(R5)return _1;R5=1;var t=Wl(),e=fa(),r=Ap(),i=Ui();function n(s,o,c){if(!i(c))return!1;var u=typeof o;return(u=="number"?e(c)&&r(o,c.length):u=="string"&&o in c)?t(c[o],s):!1}return _1=n,_1}var T1,D5;function mQ(){if(D5)return T1;D5=1;var t=Fp(),e=Wl(),r=Ip(),i=ao(),n=Object.prototype,s=n.hasOwnProperty,o=t(function(c,u){c=Object(c);var h=-1,f=u.length,p=f>2?u[2]:void 0;for(p&&r(u[0],u[1],p)&&(f=1);++h<f;)for(var m=u[h],g=i(m),x=-1,v=g.length;++x<v;){var b=g[x],w=c[b];(w===void 0||e(w,n[b])&&!s.call(c,b))&&(c[b]=m[b])}return c});return T1=o,T1}var E1,F5;function yQ(){if(F5)return E1;F5=1;var t=da(),e=fa(),r=as();function i(n){return function(s,o,c){var u=Object(s);if(!e(s)){var h=t(o,3);s=r(s),o=function(p){return h(u[p],p,u)}}var f=n(s,o,c);return f>-1?u[h?s[f]:f]:void 0}}return E1=i,E1}var A1,I5;function xQ(){if(I5)return A1;I5=1;var t=/\s/;function e(r){for(var i=r.length;i--&&t.test(r.charAt(i)););return i}return A1=e,A1}var B1,q5;function bQ(){if(q5)return B1;q5=1;var t=xQ(),e=/^\s+/;function r(i){return i&&i.slice(0,t(i)+1).replace(e,"")}return B1=r,B1}var L1,z5;function vQ(){if(z5)return L1;z5=1;var t=bQ(),e=Ui(),r=Zl(),i=NaN,n=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,c=parseInt;function u(h){if(typeof h=="number")return h;if(r(h))return i;if(e(h)){var f=typeof h.valueOf=="function"?h.valueOf():h;h=e(f)?f+"":f}if(typeof h!="string")return h===0?h:+h;h=t(h);var p=s.test(h);return p||o.test(h)?c(h.slice(2),p?2:8):n.test(h)?i:+h}return L1=u,L1}var M1,j5;function UD(){if(j5)return M1;j5=1;var t=vQ(),e=1/0,r=17976931348623157e292;function i(n){if(!n)return n===0?n:0;if(n=t(n),n===e||n===-e){var s=n<0?-1:1;return s*r}return n===n?n:0}return M1=i,M1}var N1,$5;function CQ(){if($5)return N1;$5=1;var t=UD();function e(r){var i=t(r),n=i%1;return i===i?n?i-n:i:0}return N1=e,N1}var O1,P5;function wQ(){if(P5)return O1;P5=1;var t=FD(),e=da(),r=CQ(),i=Math.max;function n(s,o,c){var u=s==null?0:s.length;if(!u)return-1;var h=c==null?0:r(c);return h<0&&(h=i(u+h,0)),t(s,e(o,3),h)}return O1=n,O1}var R1,H5;function SQ(){if(H5)return R1;H5=1;var t=yQ(),e=wQ(),r=t(e);return R1=r,R1}var D1,U5;function GD(){if(U5)return D1;U5=1;var t=bw();function e(r){var i=r==null?0:r.length;return i?t(r,1):[]}return D1=e,D1}var F1,G5;function kQ(){if(G5)return F1;G5=1;var t=gw(),e=gD(),r=ao();function i(n,s){return n==null?n:t(n,e(s),r)}return F1=i,F1}var I1,Y5;function _Q(){if(Y5)return I1;Y5=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return I1=t,I1}var q1,W5;function TQ(){if(W5)return q1;W5=1;var t=Tp(),e=mw(),r=da();function i(n,s){var o={};return s=r(s,3),e(n,function(c,u,h){t(o,u,s(c,u,h))}),o}return q1=i,q1}var z1,V5;function Cw(){if(V5)return z1;V5=1;var t=Zl();function e(r,i,n){for(var s=-1,o=r.length;++s<o;){var c=r[s],u=i(c);if(u!=null&&(h===void 0?u===u&&!t(u):n(u,h)))var h=u,f=c}return f}return z1=e,z1}var j1,X5;function EQ(){if(X5)return j1;X5=1;function t(e,r){return e>r}return j1=t,j1}var $1,Q5;function AQ(){if(Q5)return $1;Q5=1;var t=Cw(),e=EQ(),r=so();function i(n){return n&&n.length?t(n,r,e):void 0}return $1=i,$1}var P1,Z5;function YD(){if(Z5)return P1;Z5=1;var t=Tp(),e=Wl();function r(i,n,s){(s!==void 0&&!e(i[n],s)||s===void 0&&!(n in i))&&t(i,n,s)}return P1=r,P1}var H1,K5;function BQ(){if(K5)return H1;K5=1;var t=io(),e=Mp(),r=On(),i="[object Object]",n=Function.prototype,s=Object.prototype,o=n.toString,c=s.hasOwnProperty,u=o.call(Object);function h(f){if(!r(f)||t(f)!=i)return!1;var p=e(f);if(p===null)return!0;var m=c.call(p,"constructor")&&p.constructor;return typeof m=="function"&&m instanceof m&&o.call(m)==u}return H1=h,H1}var U1,J5;function WD(){if(J5)return U1;J5=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return U1=t,U1}var G1,t3;function LQ(){if(t3)return G1;t3=1;var t=lh(),e=ao();function r(i){return t(i,e(i))}return G1=r,G1}var Y1,e3;function MQ(){if(e3)return Y1;e3=1;var t=YD(),e=rD(),r=hD(),i=iD(),n=dD(),s=ch(),o=br(),c=ID(),u=Xl(),h=oh(),f=Ui(),p=BQ(),m=uh(),g=WD(),x=LQ();function v(b,w,_,S,E,L,A){var R=g(b,_),j=g(w,_),Y=A.get(j);if(Y){t(b,_,Y);return}var W=L?L(R,j,_+"",b,w,A):void 0,O=W===void 0;if(O){var z=o(j),X=!z&&u(j),M=!z&&!X&&m(j);W=j,z||X||M?o(R)?W=R:c(R)?W=i(R):X?(O=!1,W=e(j,!0)):M?(O=!1,W=r(j,!0)):W=[]:p(j)||s(j)?(W=R,s(R)?W=x(R):(!f(R)||h(R))&&(W=n(j))):O=!1}O&&(A.set(j,W),E(W,j,S,L,A),A.delete(j)),t(b,_,W)}return Y1=v,Y1}var W1,r3;function NQ(){if(r3)return W1;r3=1;var t=_p(),e=YD(),r=gw(),i=MQ(),n=Ui(),s=ao(),o=WD();function c(u,h,f,p,m){u!==h&&r(h,function(g,x){if(m||(m=new t),n(g))i(u,h,x,f,c,p,m);else{var v=p?p(o(u,x),g,x+"",u,h,m):void 0;v===void 0&&(v=g),e(u,x,v)}},s)}return W1=c,W1}var V1,i3;function OQ(){if(i3)return V1;i3=1;var t=Fp(),e=Ip();function r(i){return t(function(n,s){var o=-1,c=s.length,u=c>1?s[c-1]:void 0,h=c>2?s[2]:void 0;for(u=i.length>3&&typeof u=="function"?(c--,u):void 0,h&&e(s[0],s[1],h)&&(u=c<3?void 0:u,c=1),n=Object(n);++o<c;){var f=s[o];f&&i(n,f,o,u)}return n})}return V1=r,V1}var X1,n3;function RQ(){if(n3)return X1;n3=1;var t=NQ(),e=OQ(),r=e(function(i,n,s){t(i,n,s)});return X1=r,X1}var Q1,a3;function VD(){if(a3)return Q1;a3=1;function t(e,r){return e<r}return Q1=t,Q1}var Z1,s3;function DQ(){if(s3)return Z1;s3=1;var t=Cw(),e=VD(),r=so();function i(n){return n&&n.length?t(n,r,e):void 0}return Z1=i,Z1}var K1,o3;function FQ(){if(o3)return K1;o3=1;var t=Cw(),e=da(),r=VD();function i(n,s){return n&&n.length?t(n,e(s,2),r):void 0}return K1=i,K1}var J1,l3;function IQ(){if(l3)return J1;l3=1;var t=hn(),e=function(){return t.Date.now()};return J1=e,J1}var tv,c3;function qQ(){if(c3)return tv;c3=1;var t=Ep(),e=Rp(),r=Ap(),i=Ui(),n=hh();function s(o,c,u,h){if(!i(o))return o;c=e(c,o);for(var f=-1,p=c.length,m=p-1,g=o;g!=null&&++f<p;){var x=n(c[f]),v=u;if(x==="__proto__"||x==="constructor"||x==="prototype")return o;if(f!=m){var b=g[x];v=h?h(b,x,g):void 0,v===void 0&&(v=i(b)?b:r(c[f+1])?[]:{})}t(g,x,v),g=g[x]}return o}return tv=s,tv}var ev,u3;function zQ(){if(u3)return ev;u3=1;var t=Dp(),e=qQ(),r=Rp();function i(n,s,o){for(var c=-1,u=s.length,h={};++c<u;){var f=s[c],p=t(n,f);o(p,f)&&e(h,r(f,n),p)}return h}return ev=i,ev}var rv,h3;function jQ(){if(h3)return rv;h3=1;var t=zQ(),e=TD();function r(i,n){return t(i,n,function(s,o){return e(i,o)})}return rv=r,rv}var iv,f3;function $Q(){if(f3)return iv;f3=1;var t=GD(),e=RD(),r=DD();function i(n){return r(e(n,void 0,t),n+"")}return iv=i,iv}var nv,d3;function PQ(){if(d3)return nv;d3=1;var t=jQ(),e=$Q(),r=e(function(i,n){return i==null?{}:t(i,n)});return nv=r,nv}var av,p3;function HQ(){if(p3)return av;p3=1;var t=Math.ceil,e=Math.max;function r(i,n,s,o){for(var c=-1,u=e(t((n-i)/(s||1)),0),h=Array(u);u--;)h[o?u:++c]=i,i+=s;return h}return av=r,av}var sv,g3;function UQ(){if(g3)return sv;g3=1;var t=HQ(),e=Ip(),r=UD();function i(n){return function(s,o,c){return c&&typeof c!="number"&&e(s,o,c)&&(o=c=void 0),s=r(s),o===void 0?(o=s,s=0):o=r(o),c=c===void 0?s<o?1:-1:r(c),t(s,o,c,n)}}return sv=i,sv}var ov,m3;function GQ(){if(m3)return ov;m3=1;var t=UQ(),e=t();return ov=e,ov}var lv,y3;function YQ(){if(y3)return lv;y3=1;function t(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}return lv=t,lv}var cv,x3;function WQ(){if(x3)return cv;x3=1;var t=Zl();function e(r,i){if(r!==i){var n=r!==void 0,s=r===null,o=r===r,c=t(r),u=i!==void 0,h=i===null,f=i===i,p=t(i);if(!h&&!p&&!c&&r>i||c&&u&&f&&!h&&!p||s&&u&&f||!n&&f||!o)return 1;if(!s&&!c&&!p&&r<i||p&&n&&o&&!s&&!c||h&&n&&o||!u&&o||!f)return-1}return 0}return cv=e,cv}var uv,b3;function VQ(){if(b3)return uv;b3=1;var t=WQ();function e(r,i,n){for(var s=-1,o=r.criteria,c=i.criteria,u=o.length,h=n.length;++s<u;){var f=t(o[s],c[s]);if(f){if(s>=h)return f;var p=n[s];return f*(p=="desc"?-1:1)}}return r.index-i.index}return uv=e,uv}var hv,v3;function XQ(){if(v3)return hv;v3=1;var t=Op(),e=Dp(),r=da(),i=MD(),n=YQ(),s=Bp(),o=VQ(),c=so(),u=br();function h(f,p,m){p.length?p=t(p,function(v){return u(v)?function(b){return e(b,v.length===1?v[0]:v)}:v}):p=[c];var g=-1;p=t(p,s(r));var x=i(f,function(v,b,w){var _=t(p,function(S){return S(v)});return{criteria:_,index:++g,value:v}});return n(x,function(v,b){return o(v,b,m)})}return hv=h,hv}var fv,C3;function QQ(){if(C3)return fv;C3=1;var t=bw(),e=XQ(),r=Fp(),i=Ip(),n=r(function(s,o){if(s==null)return[];var c=o.length;return c>1&&i(s,o[0],o[1])?o=[]:c>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),e(s,t(o,1),[])});return fv=n,fv}var dv,w3;function ZQ(){if(w3)return dv;w3=1;var t=kD(),e=0;function r(i){var n=++e;return t(i)+n}return dv=r,dv}var pv,S3;function KQ(){if(S3)return pv;S3=1;function t(e,r,i){for(var n=-1,s=e.length,o=r.length,c={};++n<s;){var u=n<o?r[n]:void 0;i(c,e[n],u)}return c}return pv=t,pv}var gv,k3;function JQ(){if(k3)return gv;k3=1;var t=Ep(),e=KQ();function r(i,n){return e(i||[],n||[],t)}return gv=r,gv}var mv,_3;function Xe(){if(_3)return mv;_3=1;var t;if(typeof nw=="function")try{t={cloneDeep:gQ(),constant:pw(),defaults:mQ(),each:yD(),filter:AD(),find:SQ(),flatten:GD(),forEach:mD(),forIn:kQ(),has:BD(),isUndefined:LD(),last:_Q(),map:ND(),mapValues:TQ(),max:AQ(),merge:RQ(),min:DQ(),minBy:FQ(),now:IQ(),pick:PQ(),range:GQ(),reduce:OD(),sortBy:QQ(),uniqueId:ZQ(),values:qD(),zipObject:JQ()}}catch{}return t||(t=window._),mv=t,mv}var yv,T3;function tZ(){if(T3)return yv;T3=1,yv=t;function t(){var i={};i._next=i._prev=i,this._sentinel=i}t.prototype.dequeue=function(){var i=this._sentinel,n=i._prev;if(n!==i)return e(n),n},t.prototype.enqueue=function(i){var n=this._sentinel;i._prev&&i._next&&e(i),i._next=n._next,n._next._prev=i,n._next=i,i._prev=n},t.prototype.toString=function(){for(var i=[],n=this._sentinel,s=n._prev;s!==n;)i.push(JSON.stringify(s,r)),s=s._prev;return"["+i.join(", ")+"]"};function e(i){i._prev._next=i._next,i._next._prev=i._prev,delete i._next,delete i._prev}function r(i,n){if(i!=="_next"&&i!=="_prev")return n}return yv}var xv,E3;function eZ(){if(E3)return xv;E3=1;var t=Xe(),e=ln().Graph,r=tZ();xv=n;var i=t.constant(1);function n(h,f){if(h.nodeCount()<=1)return[];var p=c(h,f||i),m=s(p.graph,p.buckets,p.zeroIdx);return t.flatten(t.map(m,function(g){return h.outEdges(g.v,g.w)}),!0)}function s(h,f,p){for(var m=[],g=f[f.length-1],x=f[0],v;h.nodeCount();){for(;v=x.dequeue();)o(h,f,p,v);for(;v=g.dequeue();)o(h,f,p,v);if(h.nodeCount()){for(var b=f.length-2;b>0;--b)if(v=f[b].dequeue(),v){m=m.concat(o(h,f,p,v,!0));break}}}return m}function o(h,f,p,m,g){var x=g?[]:void 0;return t.forEach(h.inEdges(m.v),function(v){var b=h.edge(v),w=h.node(v.v);g&&x.push({v:v.v,w:v.w}),w.out-=b,u(f,p,w)}),t.forEach(h.outEdges(m.v),function(v){var b=h.edge(v),w=v.w,_=h.node(w);_.in-=b,u(f,p,_)}),h.removeNode(m.v),x}function c(h,f){var p=new e,m=0,g=0;t.forEach(h.nodes(),function(b){p.setNode(b,{v:b,in:0,out:0})}),t.forEach(h.edges(),function(b){var w=p.edge(b.v,b.w)||0,_=f(b),S=w+_;p.setEdge(b.v,b.w,S),g=Math.max(g,p.node(b.v).out+=_),m=Math.max(m,p.node(b.w).in+=_)});var x=t.range(g+m+3).map(function(){return new r}),v=m+1;return t.forEach(p.nodes(),function(b){u(x,v,p.node(b))}),{graph:p,buckets:x,zeroIdx:v}}function u(h,f,p){p.out?p.in?h[p.out-p.in+f].enqueue(p):h[h.length-1].enqueue(p):h[0].enqueue(p)}return xv}var bv,A3;function rZ(){if(A3)return bv;A3=1;var t=Xe(),e=eZ();bv={run:r,undo:n};function r(s){var o=s.graph().acyclicer==="greedy"?e(s,c(s)):i(s);t.forEach(o,function(u){var h=s.edge(u);s.removeEdge(u),h.forwardName=u.name,h.reversed=!0,s.setEdge(u.w,u.v,h,t.uniqueId("rev"))});function c(u){return function(h){return u.edge(h).weight}}}function i(s){var o=[],c={},u={};function h(f){t.has(u,f)||(u[f]=!0,c[f]=!0,t.forEach(s.outEdges(f),function(p){t.has(c,p.w)?o.push(p):h(p.w)}),delete c[f])}return t.forEach(s.nodes(),h),o}function n(s){t.forEach(s.edges(),function(o){var c=s.edge(o);if(c.reversed){s.removeEdge(o);var u=c.forwardName;delete c.reversed,delete c.forwardName,s.setEdge(o.w,o.v,c,u)}})}return bv}var vv,B3;function gi(){if(B3)return vv;B3=1;var t=Xe(),e=ln().Graph;vv={addDummyNode:r,simplify:i,asNonCompoundGraph:n,successorWeights:s,predecessorWeights:o,intersectRect:c,buildLayerMatrix:u,normalizeRanks:h,removeEmptyRanks:f,addBorderNode:p,maxRank:m,partition:g,time:x,notime:v};function r(b,w,_,S){var E;do E=t.uniqueId(S);while(b.hasNode(E));return _.dummy=w,b.setNode(E,_),E}function i(b){var w=new e().setGraph(b.graph());return t.forEach(b.nodes(),function(_){w.setNode(_,b.node(_))}),t.forEach(b.edges(),function(_){var S=w.edge(_.v,_.w)||{weight:0,minlen:1},E=b.edge(_);w.setEdge(_.v,_.w,{weight:S.weight+E.weight,minlen:Math.max(S.minlen,E.minlen)})}),w}function n(b){var w=new e({multigraph:b.isMultigraph()}).setGraph(b.graph());return t.forEach(b.nodes(),function(_){b.children(_).length||w.setNode(_,b.node(_))}),t.forEach(b.edges(),function(_){w.setEdge(_,b.edge(_))}),w}function s(b){var w=t.map(b.nodes(),function(_){var S={};return t.forEach(b.outEdges(_),function(E){S[E.w]=(S[E.w]||0)+b.edge(E).weight}),S});return t.zipObject(b.nodes(),w)}function o(b){var w=t.map(b.nodes(),function(_){var S={};return t.forEach(b.inEdges(_),function(E){S[E.v]=(S[E.v]||0)+b.edge(E).weight}),S});return t.zipObject(b.nodes(),w)}function c(b,w){var _=b.x,S=b.y,E=w.x-_,L=w.y-S,A=b.width/2,R=b.height/2;if(!E&&!L)throw new Error("Not possible to find intersection inside of the rectangle");var j,Y;return Math.abs(L)*A>Math.abs(E)*R?(L<0&&(R=-R),j=R*E/L,Y=R):(E<0&&(A=-A),j=A,Y=A*L/E),{x:_+j,y:S+Y}}function u(b){var w=t.map(t.range(m(b)+1),function(){return[]});return t.forEach(b.nodes(),function(_){var S=b.node(_),E=S.rank;t.isUndefined(E)||(w[E][S.order]=_)}),w}function h(b){var w=t.min(t.map(b.nodes(),function(_){return b.node(_).rank}));t.forEach(b.nodes(),function(_){var S=b.node(_);t.has(S,"rank")&&(S.rank-=w)})}function f(b){var w=t.min(t.map(b.nodes(),function(L){return b.node(L).rank})),_=[];t.forEach(b.nodes(),function(L){var A=b.node(L).rank-w;_[A]||(_[A]=[]),_[A].push(L)});var S=0,E=b.graph().nodeRankFactor;t.forEach(_,function(L,A){t.isUndefined(L)&&A%E!==0?--S:S&&t.forEach(L,function(R){b.node(R).rank+=S})})}function p(b,w,_,S){var E={width:0,height:0};return arguments.length>=4&&(E.rank=_,E.order=S),r(b,"border",E,w)}function m(b){return t.max(t.map(b.nodes(),function(w){var _=b.node(w).rank;if(!t.isUndefined(_))return _}))}function g(b,w){var _={lhs:[],rhs:[]};return t.forEach(b,function(S){w(S)?_.lhs.push(S):_.rhs.push(S)}),_}function x(b,w){var _=t.now();try{return w()}finally{console.log(b+" time: "+(t.now()-_)+"ms")}}function v(b,w){return w()}return vv}var Cv,L3;function iZ(){if(L3)return Cv;L3=1;var t=Xe(),e=gi();Cv={run:r,undo:n};function r(s){s.graph().dummyChains=[],t.forEach(s.edges(),function(o){i(s,o)})}function i(s,o){var c=o.v,u=s.node(c).rank,h=o.w,f=s.node(h).rank,p=o.name,m=s.edge(o),g=m.labelRank;if(f!==u+1){s.removeEdge(o);var x,v,b;for(b=0,++u;u<f;++b,++u)m.points=[],v={width:0,height:0,edgeLabel:m,edgeObj:o,rank:u},x=e.addDummyNode(s,"edge",v,"_d"),u===g&&(v.width=m.width,v.height=m.height,v.dummy="edge-label",v.labelpos=m.labelpos),s.setEdge(c,x,{weight:m.weight},p),b===0&&s.graph().dummyChains.push(x),c=x;s.setEdge(c,h,{weight:m.weight},p)}}function n(s){t.forEach(s.graph().dummyChains,function(o){var c=s.node(o),u=c.edgeLabel,h;for(s.setEdge(c.edgeObj,u);c.dummy;)h=s.successors(o)[0],s.removeNode(o),u.points.push({x:c.x,y:c.y}),c.dummy==="edge-label"&&(u.x=c.x,u.y=c.y,u.width=c.width,u.height=c.height),o=h,c=s.node(o)})}return Cv}var wv,M3;function Od(){if(M3)return wv;M3=1;var t=Xe();wv={longestPath:e,slack:r};function e(i){var n={};function s(o){var c=i.node(o);if(t.has(n,o))return c.rank;n[o]=!0;var u=t.min(t.map(i.outEdges(o),function(h){return s(h.w)-i.edge(h).minlen}));return(u===Number.POSITIVE_INFINITY||u===void 0||u===null)&&(u=0),c.rank=u}t.forEach(i.sources(),s)}function r(i,n){return i.node(n.w).rank-i.node(n.v).rank-i.edge(n).minlen}return wv}var Sv,N3;function XD(){if(N3)return Sv;N3=1;var t=Xe(),e=ln().Graph,r=Od().slack;Sv=i;function i(c){var u=new e({directed:!1}),h=c.nodes()[0],f=c.nodeCount();u.setNode(h,{});for(var p,m;n(u,c)<f;)p=s(u,c),m=u.hasNode(p.v)?r(c,p):-r(c,p),o(u,c,m);return u}function n(c,u){function h(f){t.forEach(u.nodeEdges(f),function(p){var m=p.v,g=f===m?p.w:m;!c.hasNode(g)&&!r(u,p)&&(c.setNode(g,{}),c.setEdge(f,g,{}),h(g))})}return t.forEach(c.nodes(),h),c.nodeCount()}function s(c,u){return t.minBy(u.edges(),function(h){if(c.hasNode(h.v)!==c.hasNode(h.w))return r(u,h)})}function o(c,u,h){t.forEach(c.nodes(),function(f){u.node(f).rank+=h})}return Sv}var kv,O3;function nZ(){if(O3)return kv;O3=1;var t=Xe(),e=XD(),r=Od().slack,i=Od().longestPath,n=ln().alg.preorder,s=ln().alg.postorder,o=gi().simplify;kv=c,c.initLowLimValues=p,c.initCutValues=u,c.calcCutValue=f,c.leaveEdge=g,c.enterEdge=x,c.exchangeEdges=v;function c(S){S=o(S),i(S);var E=e(S);p(E),u(E,S);for(var L,A;L=g(E);)A=x(E,S,L),v(E,S,L,A)}function u(S,E){var L=s(S,S.nodes());L=L.slice(0,L.length-1),t.forEach(L,function(A){h(S,E,A)})}function h(S,E,L){var A=S.node(L),R=A.parent;S.edge(L,R).cutvalue=f(S,E,L)}function f(S,E,L){var A=S.node(L),R=A.parent,j=!0,Y=E.edge(L,R),W=0;return Y||(j=!1,Y=E.edge(R,L)),W=Y.weight,t.forEach(E.nodeEdges(L),function(O){var z=O.v===L,X=z?O.w:O.v;if(X!==R){var M=z===j,F=E.edge(O).weight;if(W+=M?F:-F,w(S,L,X)){var N=S.edge(L,X).cutvalue;W+=M?-N:N}}}),W}function p(S,E){arguments.length<2&&(E=S.nodes()[0]),m(S,{},1,E)}function m(S,E,L,A,R){var j=L,Y=S.node(A);return E[A]=!0,t.forEach(S.neighbors(A),function(W){t.has(E,W)||(L=m(S,E,L,W,A))}),Y.low=j,Y.lim=L++,R?Y.parent=R:delete Y.parent,L}function g(S){return t.find(S.edges(),function(E){return S.edge(E).cutvalue<0})}function x(S,E,L){var A=L.v,R=L.w;E.hasEdge(A,R)||(A=L.w,R=L.v);var j=S.node(A),Y=S.node(R),W=j,O=!1;j.lim>Y.lim&&(W=Y,O=!0);var z=t.filter(E.edges(),function(X){return O===_(S,S.node(X.v),W)&&O!==_(S,S.node(X.w),W)});return t.minBy(z,function(X){return r(E,X)})}function v(S,E,L,A){var R=L.v,j=L.w;S.removeEdge(R,j),S.setEdge(A.v,A.w,{}),p(S),u(S,E),b(S,E)}function b(S,E){var L=t.find(S.nodes(),function(R){return!E.node(R).parent}),A=n(S,L);A=A.slice(1),t.forEach(A,function(R){var j=S.node(R).parent,Y=E.edge(R,j),W=!1;Y||(Y=E.edge(j,R),W=!0),E.node(R).rank=E.node(j).rank+(W?Y.minlen:-Y.minlen)})}function w(S,E,L){return S.hasEdge(E,L)}function _(S,E,L){return L.low<=E.lim&&E.lim<=L.lim}return kv}var _v,R3;function aZ(){if(R3)return _v;R3=1;var t=Od(),e=t.longestPath,r=XD(),i=nZ();_v=n;function n(u){switch(u.graph().ranker){case"network-simplex":c(u);break;case"tight-tree":o(u);break;case"longest-path":s(u);break;default:c(u)}}var s=e;function o(u){e(u),r(u)}function c(u){i(u)}return _v}var Tv,D3;function sZ(){if(D3)return Tv;D3=1;var t=Xe();Tv=e;function e(n){var s=i(n);t.forEach(n.graph().dummyChains,function(o){for(var c=n.node(o),u=c.edgeObj,h=r(n,s,u.v,u.w),f=h.path,p=h.lca,m=0,g=f[m],x=!0;o!==u.w;){if(c=n.node(o),x){for(;(g=f[m])!==p&&n.node(g).maxRank<c.rank;)m++;g===p&&(x=!1)}if(!x){for(;m<f.length-1&&n.node(g=f[m+1]).minRank<=c.rank;)m++;g=f[m]}n.setParent(o,g),o=n.successors(o)[0]}})}function r(n,s,o,c){var u=[],h=[],f=Math.min(s[o].low,s[c].low),p=Math.max(s[o].lim,s[c].lim),m,g;m=o;do m=n.parent(m),u.push(m);while(m&&(s[m].low>f||p>s[m].lim));for(g=m,m=c;(m=n.parent(m))!==g;)h.push(m);return{path:u.concat(h.reverse()),lca:g}}function i(n){var s={},o=0;function c(u){var h=o;t.forEach(n.children(u),c),s[u]={low:h,lim:o++}}return t.forEach(n.children(),c),s}return Tv}var Ev,F3;function oZ(){if(F3)return Ev;F3=1;var t=Xe(),e=gi();Ev={run:r,cleanup:o};function r(c){var u=e.addDummyNode(c,"root",{},"_root"),h=n(c),f=t.max(t.values(h))-1,p=2*f+1;c.graph().nestingRoot=u,t.forEach(c.edges(),function(g){c.edge(g).minlen*=p});var m=s(c)+1;t.forEach(c.children(),function(g){i(c,u,p,m,f,h,g)}),c.graph().nodeRankFactor=p}function i(c,u,h,f,p,m,g){var x=c.children(g);if(!x.length){g!==u&&c.setEdge(u,g,{weight:0,minlen:h});return}var v=e.addBorderNode(c,"_bt"),b=e.addBorderNode(c,"_bb"),w=c.node(g);c.setParent(v,g),w.borderTop=v,c.setParent(b,g),w.borderBottom=b,t.forEach(x,function(_){i(c,u,h,f,p,m,_);var S=c.node(_),E=S.borderTop?S.borderTop:_,L=S.borderBottom?S.borderBottom:_,A=S.borderTop?f:2*f,R=E!==L?1:p-m[g]+1;c.setEdge(v,E,{weight:A,minlen:R,nestingEdge:!0}),c.setEdge(L,b,{weight:A,minlen:R,nestingEdge:!0})}),c.parent(g)||c.setEdge(u,v,{weight:0,minlen:p+m[g]})}function n(c){var u={};function h(f,p){var m=c.children(f);m&&m.length&&t.forEach(m,function(g){h(g,p+1)}),u[f]=p}return t.forEach(c.children(),function(f){h(f,1)}),u}function s(c){return t.reduce(c.edges(),function(u,h){return u+c.edge(h).weight},0)}function o(c){var u=c.graph();c.removeNode(u.nestingRoot),delete u.nestingRoot,t.forEach(c.edges(),function(h){var f=c.edge(h);f.nestingEdge&&c.removeEdge(h)})}return Ev}var Av,I3;function lZ(){if(I3)return Av;I3=1;var t=Xe(),e=gi();Av=r;function r(n){function s(o){var c=n.children(o),u=n.node(o);if(c.length&&t.forEach(c,s),t.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var h=u.minRank,f=u.maxRank+1;h<f;++h)i(n,"borderLeft","_bl",o,u,h),i(n,"borderRight","_br",o,u,h)}}t.forEach(n.children(),s)}function i(n,s,o,c,u,h){var f={width:0,height:0,rank:h,borderType:s},p=u[s][h-1],m=e.addDummyNode(n,"border",f,o);u[s][h]=m,n.setParent(m,c),p&&n.setEdge(p,m,{weight:1})}return Av}var Bv,q3;function cZ(){if(q3)return Bv;q3=1;var t=Xe();Bv={adjust:e,undo:r};function e(h){var f=h.graph().rankdir.toLowerCase();(f==="lr"||f==="rl")&&i(h)}function r(h){var f=h.graph().rankdir.toLowerCase();(f==="bt"||f==="rl")&&s(h),(f==="lr"||f==="rl")&&(c(h),i(h))}function i(h){t.forEach(h.nodes(),function(f){n(h.node(f))}),t.forEach(h.edges(),function(f){n(h.edge(f))})}function n(h){var f=h.width;h.width=h.height,h.height=f}function s(h){t.forEach(h.nodes(),function(f){o(h.node(f))}),t.forEach(h.edges(),function(f){var p=h.edge(f);t.forEach(p.points,o),t.has(p,"y")&&o(p)})}function o(h){h.y=-h.y}function c(h){t.forEach(h.nodes(),function(f){u(h.node(f))}),t.forEach(h.edges(),function(f){var p=h.edge(f);t.forEach(p.points,u),t.has(p,"x")&&u(p)})}function u(h){var f=h.x;h.x=h.y,h.y=f}return Bv}var Lv,z3;function uZ(){if(z3)return Lv;z3=1;var t=Xe();Lv=e;function e(r){var i={},n=t.filter(r.nodes(),function(h){return!r.children(h).length}),s=t.max(t.map(n,function(h){return r.node(h).rank})),o=t.map(t.range(s+1),function(){return[]});function c(h){if(!t.has(i,h)){i[h]=!0;var f=r.node(h);o[f.rank].push(h),t.forEach(r.successors(h),c)}}var u=t.sortBy(n,function(h){return r.node(h).rank});return t.forEach(u,c),o}return Lv}var Mv,j3;function hZ(){if(j3)return Mv;j3=1;var t=Xe();Mv=e;function e(i,n){for(var s=0,o=1;o<n.length;++o)s+=r(i,n[o-1],n[o]);return s}function r(i,n,s){for(var o=t.zipObject(s,t.map(s,function(m,g){return g})),c=t.flatten(t.map(n,function(m){return t.sortBy(t.map(i.outEdges(m),function(g){return{pos:o[g.w],weight:i.edge(g).weight}}),"pos")}),!0),u=1;u<s.length;)u<<=1;var h=2*u-1;u-=1;var f=t.map(new Array(h),function(){return 0}),p=0;return t.forEach(c.forEach(function(m){var g=m.pos+u;f[g]+=m.weight;for(var x=0;g>0;)g%2&&(x+=f[g+1]),g=g-1>>1,f[g]+=m.weight;p+=m.weight*x})),p}return Mv}var Nv,$3;function fZ(){if($3)return Nv;$3=1;var t=Xe();Nv=e;function e(r,i){return t.map(i,function(n){var s=r.inEdges(n);if(s.length){var o=t.reduce(s,function(c,u){var h=r.edge(u),f=r.node(u.v);return{sum:c.sum+h.weight*f.order,weight:c.weight+h.weight}},{sum:0,weight:0});return{v:n,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:n}})}return Nv}var Ov,P3;function dZ(){if(P3)return Ov;P3=1;var t=Xe();Ov=e;function e(n,s){var o={};t.forEach(n,function(u,h){var f=o[u.v]={indegree:0,in:[],out:[],vs:[u.v],i:h};t.isUndefined(u.barycenter)||(f.barycenter=u.barycenter,f.weight=u.weight)}),t.forEach(s.edges(),function(u){var h=o[u.v],f=o[u.w];!t.isUndefined(h)&&!t.isUndefined(f)&&(f.indegree++,h.out.push(o[u.w]))});var c=t.filter(o,function(u){return!u.indegree});return r(c)}function r(n){var s=[];function o(h){return function(f){f.merged||(t.isUndefined(f.barycenter)||t.isUndefined(h.barycenter)||f.barycenter>=h.barycenter)&&i(h,f)}}function c(h){return function(f){f.in.push(h),--f.indegree===0&&n.push(f)}}for(;n.length;){var u=n.pop();s.push(u),t.forEach(u.in.reverse(),o(u)),t.forEach(u.out,c(u))}return t.map(t.filter(s,function(h){return!h.merged}),function(h){return t.pick(h,["vs","i","barycenter","weight"])})}function i(n,s){var o=0,c=0;n.weight&&(o+=n.barycenter*n.weight,c+=n.weight),s.weight&&(o+=s.barycenter*s.weight,c+=s.weight),n.vs=s.vs.concat(n.vs),n.barycenter=o/c,n.weight=c,n.i=Math.min(s.i,n.i),s.merged=!0}return Ov}var Rv,H3;function pZ(){if(H3)return Rv;H3=1;var t=Xe(),e=gi();Rv=r;function r(s,o){var c=e.partition(s,function(v){return t.has(v,"barycenter")}),u=c.lhs,h=t.sortBy(c.rhs,function(v){return-v.i}),f=[],p=0,m=0,g=0;u.sort(n(!!o)),g=i(f,h,g),t.forEach(u,function(v){g+=v.vs.length,f.push(v.vs),p+=v.barycenter*v.weight,m+=v.weight,g=i(f,h,g)});var x={vs:t.flatten(f,!0)};return m&&(x.barycenter=p/m,x.weight=m),x}function i(s,o,c){for(var u;o.length&&(u=t.last(o)).i<=c;)o.pop(),s.push(u.vs),c++;return c}function n(s){return function(o,c){return o.barycenter<c.barycenter?-1:o.barycenter>c.barycenter?1:s?c.i-o.i:o.i-c.i}}return Rv}var Dv,U3;function gZ(){if(U3)return Dv;U3=1;var t=Xe(),e=fZ(),r=dZ(),i=pZ();Dv=n;function n(c,u,h,f){var p=c.children(u),m=c.node(u),g=m?m.borderLeft:void 0,x=m?m.borderRight:void 0,v={};g&&(p=t.filter(p,function(L){return L!==g&&L!==x}));var b=e(c,p);t.forEach(b,function(L){if(c.children(L.v).length){var A=n(c,L.v,h,f);v[L.v]=A,t.has(A,"barycenter")&&o(L,A)}});var w=r(b,h);s(w,v);var _=i(w,f);if(g&&(_.vs=t.flatten([g,_.vs,x],!0),c.predecessors(g).length)){var S=c.node(c.predecessors(g)[0]),E=c.node(c.predecessors(x)[0]);t.has(_,"barycenter")||(_.barycenter=0,_.weight=0),_.barycenter=(_.barycenter*_.weight+S.order+E.order)/(_.weight+2),_.weight+=2}return _}function s(c,u){t.forEach(c,function(h){h.vs=t.flatten(h.vs.map(function(f){return u[f]?u[f].vs:f}),!0)})}function o(c,u){t.isUndefined(c.barycenter)?(c.barycenter=u.barycenter,c.weight=u.weight):(c.barycenter=(c.barycenter*c.weight+u.barycenter*u.weight)/(c.weight+u.weight),c.weight+=u.weight)}return Dv}var Fv,G3;function mZ(){if(G3)return Fv;G3=1;var t=Xe(),e=ln().Graph;Fv=r;function r(n,s,o){var c=i(n),u=new e({compound:!0}).setGraph({root:c}).setDefaultNodeLabel(function(h){return n.node(h)});return t.forEach(n.nodes(),function(h){var f=n.node(h),p=n.parent(h);(f.rank===s||f.minRank<=s&&s<=f.maxRank)&&(u.setNode(h),u.setParent(h,p||c),t.forEach(n[o](h),function(m){var g=m.v===h?m.w:m.v,x=u.edge(g,h),v=t.isUndefined(x)?0:x.weight;u.setEdge(g,h,{weight:n.edge(m).weight+v})}),t.has(f,"minRank")&&u.setNode(h,{borderLeft:f.borderLeft[s],borderRight:f.borderRight[s]}))}),u}function i(n){for(var s;n.hasNode(s=t.uniqueId("_root")););return s}return Fv}var Iv,Y3;function yZ(){if(Y3)return Iv;Y3=1;var t=Xe();Iv=e;function e(r,i,n){var s={},o;t.forEach(n,function(c){for(var u=r.parent(c),h,f;u;){if(h=r.parent(u),h?(f=s[h],s[h]=u):(f=o,o=u),f&&f!==u){i.setEdge(f,u);return}u=h}})}return Iv}var qv,W3;function xZ(){if(W3)return qv;W3=1;var t=Xe(),e=uZ(),r=hZ(),i=gZ(),n=mZ(),s=yZ(),o=ln().Graph,c=gi();qv=u;function u(m){var g=c.maxRank(m),x=h(m,t.range(1,g+1),"inEdges"),v=h(m,t.range(g-1,-1,-1),"outEdges"),b=e(m);p(m,b);for(var w=Number.POSITIVE_INFINITY,_,S=0,E=0;E<4;++S,++E){f(S%2?x:v,S%4>=2),b=c.buildLayerMatrix(m);var L=r(m,b);L<w&&(E=0,_=t.cloneDeep(b),w=L)}p(m,_)}function h(m,g,x){return t.map(g,function(v){return n(m,v,x)})}function f(m,g){var x=new o;t.forEach(m,function(v){var b=v.graph().root,w=i(v,b,x,g);t.forEach(w.vs,function(_,S){v.node(_).order=S}),s(v,x,w.vs)})}function p(m,g){t.forEach(g,function(x){t.forEach(x,function(v,b){m.node(v).order=b})})}return qv}var zv,V3;function bZ(){if(V3)return zv;V3=1;var t=Xe(),e=ln().Graph,r=gi();zv={positionX:x,findType1Conflicts:i,findType2Conflicts:n,addConflict:o,hasConflict:c,verticalAlignment:u,horizontalCompaction:h,alignCoordinates:m,findSmallestWidthAlignment:p,balance:g};function i(w,_){var S={};function E(L,A){var R=0,j=0,Y=L.length,W=t.last(A);return t.forEach(A,function(O,z){var X=s(w,O),M=X?w.node(X).order:Y;(X||O===W)&&(t.forEach(A.slice(j,z+1),function(F){t.forEach(w.predecessors(F),function(N){var P=w.node(N),$=P.order;($<R||M<$)&&!(P.dummy&&w.node(F).dummy)&&o(S,N,F)})}),j=z+1,R=M)}),A}return t.reduce(_,E),S}function n(w,_){var S={};function E(A,R,j,Y,W){var O;t.forEach(t.range(R,j),function(z){O=A[z],w.node(O).dummy&&t.forEach(w.predecessors(O),function(X){var M=w.node(X);M.dummy&&(M.order<Y||M.order>W)&&o(S,X,O)})})}function L(A,R){var j=-1,Y,W=0;return t.forEach(R,function(O,z){if(w.node(O).dummy==="border"){var X=w.predecessors(O);X.length&&(Y=w.node(X[0]).order,E(R,W,z,j,Y),W=z,j=Y)}E(R,W,R.length,Y,A.length)}),R}return t.reduce(_,L),S}function s(w,_){if(w.node(_).dummy)return t.find(w.predecessors(_),function(S){return w.node(S).dummy})}function o(w,_,S){if(_>S){var E=_;_=S,S=E}var L=w[_];L||(w[_]=L={}),L[S]=!0}function c(w,_,S){if(_>S){var E=_;_=S,S=E}return t.has(w[_],S)}function u(w,_,S,E){var L={},A={},R={};return t.forEach(_,function(j){t.forEach(j,function(Y,W){L[Y]=Y,A[Y]=Y,R[Y]=W})}),t.forEach(_,function(j){var Y=-1;t.forEach(j,function(W){var O=E(W);if(O.length){O=t.sortBy(O,function(N){return R[N]});for(var z=(O.length-1)/2,X=Math.floor(z),M=Math.ceil(z);X<=M;++X){var F=O[X];A[W]===W&&Y<R[F]&&!c(S,W,F)&&(A[F]=W,A[W]=L[W]=L[F],Y=R[F])}}})}),{root:L,align:A}}function h(w,_,S,E,L){var A={},R=f(w,_,S,L),j=L?"borderLeft":"borderRight";function Y(z,X){for(var M=R.nodes(),F=M.pop(),N={};F;)N[F]?z(F):(N[F]=!0,M.push(F),M=M.concat(X(F))),F=M.pop()}function W(z){A[z]=R.inEdges(z).reduce(function(X,M){return Math.max(X,A[M.v]+R.edge(M))},0)}function O(z){var X=R.outEdges(z).reduce(function(F,N){return Math.min(F,A[N.w]-R.edge(N))},Number.POSITIVE_INFINITY),M=w.node(z);X!==Number.POSITIVE_INFINITY&&M.borderType!==j&&(A[z]=Math.max(A[z],X))}return Y(W,R.predecessors.bind(R)),Y(O,R.successors.bind(R)),t.forEach(E,function(z){A[z]=A[S[z]]}),A}function f(w,_,S,E){var L=new e,A=w.graph(),R=v(A.nodesep,A.edgesep,E);return t.forEach(_,function(j){var Y;t.forEach(j,function(W){var O=S[W];if(L.setNode(O),Y){var z=S[Y],X=L.edge(z,O);L.setEdge(z,O,Math.max(R(w,W,Y),X||0))}Y=W})}),L}function p(w,_){return t.minBy(t.values(_),function(S){var E=Number.NEGATIVE_INFINITY,L=Number.POSITIVE_INFINITY;return t.forIn(S,function(A,R){var j=b(w,R)/2;E=Math.max(A+j,E),L=Math.min(A-j,L)}),E-L})}function m(w,_){var S=t.values(_),E=t.min(S),L=t.max(S);t.forEach(["u","d"],function(A){t.forEach(["l","r"],function(R){var j=A+R,Y=w[j],W;if(Y!==_){var O=t.values(Y);W=R==="l"?E-t.min(O):L-t.max(O),W&&(w[j]=t.mapValues(Y,function(z){return z+W}))}})})}function g(w,_){return t.mapValues(w.ul,function(S,E){if(_)return w[_.toLowerCase()][E];var L=t.sortBy(t.map(w,E));return(L[1]+L[2])/2})}function x(w){var _=r.buildLayerMatrix(w),S=t.merge(i(w,_),n(w,_)),E={},L;t.forEach(["u","d"],function(R){L=R==="u"?_:t.values(_).reverse(),t.forEach(["l","r"],function(j){j==="r"&&(L=t.map(L,function(z){return t.values(z).reverse()}));var Y=(R==="u"?w.predecessors:w.successors).bind(w),W=u(w,L,S,Y),O=h(w,L,W.root,W.align,j==="r");j==="r"&&(O=t.mapValues(O,function(z){return-z})),E[R+j]=O})});var A=p(w,E);return m(E,A),g(E,w.graph().align)}function v(w,_,S){return function(E,L,A){var R=E.node(L),j=E.node(A),Y=0,W;if(Y+=R.width/2,t.has(R,"labelpos"))switch(R.labelpos.toLowerCase()){case"l":W=-R.width/2;break;case"r":W=R.width/2;break}if(W&&(Y+=S?W:-W),W=0,Y+=(R.dummy?_:w)/2,Y+=(j.dummy?_:w)/2,Y+=j.width/2,t.has(j,"labelpos"))switch(j.labelpos.toLowerCase()){case"l":W=j.width/2;break;case"r":W=-j.width/2;break}return W&&(Y+=S?W:-W),W=0,Y}}function b(w,_){return w.node(_).width}return zv}var jv,X3;function vZ(){if(X3)return jv;X3=1;var t=Xe(),e=gi(),r=bZ().positionX;jv=i;function i(s){s=e.asNonCompoundGraph(s),n(s),t.forEach(r(s),function(o,c){s.node(c).x=o})}function n(s){var o=e.buildLayerMatrix(s),c=s.graph().ranksep,u=0;t.forEach(o,function(h){var f=t.max(t.map(h,function(p){return s.node(p).height}));t.forEach(h,function(p){s.node(p).y=u+f/2}),u+=f+c})}return jv}var $v,Q3;function CZ(){if(Q3)return $v;Q3=1;var t=Xe(),e=rZ(),r=iZ(),i=aZ(),n=gi().normalizeRanks,s=sZ(),o=gi().removeEmptyRanks,c=oZ(),u=lZ(),h=cZ(),f=xZ(),p=vZ(),m=gi(),g=ln().Graph;$v=x;function x(Q,J){var tt=J&&J.debugTiming?m.time:m.notime;tt("layout",function(){var K=tt(" buildLayoutGraph",function(){return Y(Q)});tt(" runLayout",function(){v(K,tt)}),tt(" updateInputGraph",function(){b(Q,K)})})}function v(Q,J){J(" makeSpaceForEdgeLabels",function(){W(Q)}),J(" removeSelfEdges",function(){q(Q)}),J(" acyclic",function(){e.run(Q)}),J(" nestingGraph.run",function(){c.run(Q)}),J(" rank",function(){i(m.asNonCompoundGraph(Q))}),J(" injectEdgeLabelProxies",function(){O(Q)}),J(" removeEmptyRanks",function(){o(Q)}),J(" nestingGraph.cleanup",function(){c.cleanup(Q)}),J(" normalizeRanks",function(){n(Q)}),J(" assignRankMinMax",function(){z(Q)}),J(" removeEdgeLabelProxies",function(){X(Q)}),J(" normalize.run",function(){r.run(Q)}),J(" parentDummyChains",function(){s(Q)}),J(" addBorderSegments",function(){u(Q)}),J(" order",function(){f(Q)}),J(" insertSelfEdges",function(){I(Q)}),J(" adjustCoordinateSystem",function(){h.adjust(Q)}),J(" position",function(){p(Q)}),J(" positionSelfEdges",function(){G(Q)}),J(" removeBorderNodes",function(){$(Q)}),J(" normalize.undo",function(){r.undo(Q)}),J(" fixupEdgeLabelCoords",function(){N(Q)}),J(" undoCoordinateSystem",function(){h.undo(Q)}),J(" translateGraph",function(){M(Q)}),J(" assignNodeIntersects",function(){F(Q)}),J(" reversePoints",function(){P(Q)}),J(" acyclic.undo",function(){e.undo(Q)})}function b(Q,J){t.forEach(Q.nodes(),function(tt){var K=Q.node(tt),nt=J.node(tt);K&&(K.x=nt.x,K.y=nt.y,J.children(tt).length&&(K.width=nt.width,K.height=nt.height))}),t.forEach(Q.edges(),function(tt){var K=Q.edge(tt),nt=J.edge(tt);K.points=nt.points,t.has(nt,"x")&&(K.x=nt.x,K.y=nt.y)}),Q.graph().width=J.graph().width,Q.graph().height=J.graph().height}var w=["nodesep","edgesep","ranksep","marginx","marginy"],_={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},S=["acyclicer","ranker","rankdir","align"],E=["width","height"],L={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],R={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},j=["labelpos"];function Y(Q){var J=new g({multigraph:!0,compound:!0}),tt=H(Q.graph());return J.setGraph(t.merge({},_,Z(tt,w),t.pick(tt,S))),t.forEach(Q.nodes(),function(K){var nt=H(Q.node(K));J.setNode(K,t.defaults(Z(nt,E),L)),J.setParent(K,Q.parent(K))}),t.forEach(Q.edges(),function(K){var nt=H(Q.edge(K));J.setEdge(K,t.merge({},R,Z(nt,A),t.pick(nt,j)))}),J}function W(Q){var J=Q.graph();J.ranksep/=2,t.forEach(Q.edges(),function(tt){var K=Q.edge(tt);K.minlen*=2,K.labelpos.toLowerCase()!=="c"&&(J.rankdir==="TB"||J.rankdir==="BT"?K.width+=K.labeloffset:K.height+=K.labeloffset)})}function O(Q){t.forEach(Q.edges(),function(J){var tt=Q.edge(J);if(tt.width&&tt.height){var K=Q.node(J.v),nt=Q.node(J.w),ct={rank:(nt.rank-K.rank)/2+K.rank,e:J};m.addDummyNode(Q,"edge-proxy",ct,"_ep")}})}function z(Q){var J=0;t.forEach(Q.nodes(),function(tt){var K=Q.node(tt);K.borderTop&&(K.minRank=Q.node(K.borderTop).rank,K.maxRank=Q.node(K.borderBottom).rank,J=t.max(J,K.maxRank))}),Q.graph().maxRank=J}function X(Q){t.forEach(Q.nodes(),function(J){var tt=Q.node(J);tt.dummy==="edge-proxy"&&(Q.edge(tt.e).labelRank=tt.rank,Q.removeNode(J))})}function M(Q){var J=Number.POSITIVE_INFINITY,tt=0,K=Number.POSITIVE_INFINITY,nt=0,ct=Q.graph(),it=ct.marginx||0,dt=ct.marginy||0;function Ct(kt){var At=kt.x,Et=kt.y,Ht=kt.width,qt=kt.height;J=Math.min(J,At-Ht/2),tt=Math.max(tt,At+Ht/2),K=Math.min(K,Et-qt/2),nt=Math.max(nt,Et+qt/2)}t.forEach(Q.nodes(),function(kt){Ct(Q.node(kt))}),t.forEach(Q.edges(),function(kt){var At=Q.edge(kt);t.has(At,"x")&&Ct(At)}),J-=it,K-=dt,t.forEach(Q.nodes(),function(kt){var At=Q.node(kt);At.x-=J,At.y-=K}),t.forEach(Q.edges(),function(kt){var At=Q.edge(kt);t.forEach(At.points,function(Et){Et.x-=J,Et.y-=K}),t.has(At,"x")&&(At.x-=J),t.has(At,"y")&&(At.y-=K)}),ct.width=tt-J+it,ct.height=nt-K+dt}function F(Q){t.forEach(Q.edges(),function(J){var tt=Q.edge(J),K=Q.node(J.v),nt=Q.node(J.w),ct,it;tt.points?(ct=tt.points[0],it=tt.points[tt.points.length-1]):(tt.points=[],ct=nt,it=K),tt.points.unshift(m.intersectRect(K,ct)),tt.points.push(m.intersectRect(nt,it))})}function N(Q){t.forEach(Q.edges(),function(J){var tt=Q.edge(J);if(t.has(tt,"x"))switch((tt.labelpos==="l"||tt.labelpos==="r")&&(tt.width-=tt.labeloffset),tt.labelpos){case"l":tt.x-=tt.width/2+tt.labeloffset;break;case"r":tt.x+=tt.width/2+tt.labeloffset;break}})}function P(Q){t.forEach(Q.edges(),function(J){var tt=Q.edge(J);tt.reversed&&tt.points.reverse()})}function $(Q){t.forEach(Q.nodes(),function(J){if(Q.children(J).length){var tt=Q.node(J),K=Q.node(tt.borderTop),nt=Q.node(tt.borderBottom),ct=Q.node(t.last(tt.borderLeft)),it=Q.node(t.last(tt.borderRight));tt.width=Math.abs(it.x-ct.x),tt.height=Math.abs(nt.y-K.y),tt.x=ct.x+tt.width/2,tt.y=K.y+tt.height/2}}),t.forEach(Q.nodes(),function(J){Q.node(J).dummy==="border"&&Q.removeNode(J)})}function q(Q){t.forEach(Q.edges(),function(J){if(J.v===J.w){var tt=Q.node(J.v);tt.selfEdges||(tt.selfEdges=[]),tt.selfEdges.push({e:J,label:Q.edge(J)}),Q.removeEdge(J)}})}function I(Q){var J=m.buildLayerMatrix(Q);t.forEach(J,function(tt){var K=0;t.forEach(tt,function(nt,ct){var it=Q.node(nt);it.order=ct+K,t.forEach(it.selfEdges,function(dt){m.addDummyNode(Q,"selfedge",{width:dt.label.width,height:dt.label.height,rank:it.rank,order:ct+ ++K,e:dt.e,label:dt.label},"_se")}),delete it.selfEdges})})}function G(Q){t.forEach(Q.nodes(),function(J){var tt=Q.node(J);if(tt.dummy==="selfedge"){var K=Q.node(tt.e.v),nt=K.x+K.width/2,ct=K.y,it=tt.x-nt,dt=K.height/2;Q.setEdge(tt.e,tt.label),Q.removeNode(J),tt.label.points=[{x:nt+2*it/3,y:ct-dt},{x:nt+5*it/6,y:ct-dt},{x:nt+it,y:ct},{x:nt+5*it/6,y:ct+dt},{x:nt+2*it/3,y:ct+dt}],tt.label.x=tt.x,tt.label.y=tt.y}})}function Z(Q,J){return t.mapValues(t.pick(Q,J),Number)}function H(Q){var J={};return t.forEach(Q,function(tt,K){J[K.toLowerCase()]=tt}),J}return $v}var Pv,Z3;function wZ(){if(Z3)return Pv;Z3=1;var t=Xe(),e=gi(),r=ln().Graph;Pv={debugOrdering:i};function i(n){var s=e.buildLayerMatrix(n),o=new r({compound:!0,multigraph:!0}).setGraph({});return t.forEach(n.nodes(),function(c){o.setNode(c,{label:c}),o.setParent(c,"layer"+n.node(c).rank)}),t.forEach(n.edges(),function(c){o.setEdge(c.v,c.w,{},c.name)}),t.forEach(s,function(c,u){var h="layer"+u;o.setNode(h,{rank:"same"}),t.reduce(c,function(f,p){return o.setEdge(f,p,{style:"invis"}),p})}),o}return Pv}var Hv,K3;function SZ(){return K3||(K3=1,Hv="0.8.5"),Hv}var Uv,J3;function kZ(){return J3||(J3=1,Uv={graphlib:ln(),layout:CZ(),debug:wZ(),util:{time:gi().time,notime:gi().notime},version:SZ()}),Uv}var _Z=kZ();const tN=Gl(_Z);/**
73
+ * @license lucide-react v0.546.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const TZ=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EZ=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,i)=>i?i.toUpperCase():r.toLowerCase()),eN=t=>{const e=EZ(t);return e.charAt(0).toUpperCase()+e.slice(1)},QD=(...t)=>t.filter((e,r,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===r).join(" ").trim(),AZ=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
78
+ * @license lucide-react v0.546.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */var BZ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
83
+ * @license lucide-react v0.546.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const LZ=lt.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:n="",children:s,iconNode:o,...c},u)=>lt.createElement("svg",{ref:u,...BZ,width:e,height:e,stroke:t,strokeWidth:i?Number(r)*24/Number(e):r,className:QD("lucide",n),...!s&&!AZ(c)&&{"aria-hidden":"true"},...c},[...o.map(([h,f])=>lt.createElement(h,f)),...Array.isArray(s)?s:[s]]));/**
88
+ * @license lucide-react v0.546.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const le=(t,e)=>{const r=lt.forwardRef(({className:i,...n},s)=>lt.createElement(LZ,{ref:s,iconNode:e,className:QD(`lucide-${TZ(eN(t))}`,`lucide-${t}`,i),...n}));return r.displayName=eN(t),r};/**
93
+ * @license lucide-react v0.546.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const MZ=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ww=le("activity",MZ);/**
98
+ * @license lucide-react v0.546.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const NZ=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],OZ=le("arrow-right",NZ);/**
103
+ * @license lucide-react v0.546.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const RZ=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ZD=le("book-open",RZ);/**
108
+ * @license lucide-react v0.546.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const DZ=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],FZ=le("bookmark",DZ);/**
113
+ * @license lucide-react v0.546.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const IZ=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],qZ=le("box",IZ);/**
118
+ * @license lucide-react v0.546.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const zZ=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],jZ=le("chevron-down",zZ);/**
123
+ * @license lucide-react v0.546.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const $Z=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ud=le("chevron-right",$Z);/**
128
+ * @license lucide-react v0.546.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const PZ=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],HZ=le("chevron-up",PZ);/**
133
+ * @license lucide-react v0.546.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const UZ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ql=le("circle-alert",UZ);/**
138
+ * @license lucide-react v0.546.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const GZ=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],YZ=le("circle-check",GZ);/**
143
+ * @license lucide-react v0.546.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const WZ=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],VZ=le("database",WZ);/**
148
+ * @license lucide-react v0.546.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const XZ=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],QZ=le("download",XZ);/**
153
+ * @license lucide-react v0.546.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const ZZ=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],KZ=le("external-link",ZZ);/**
158
+ * @license lucide-react v0.546.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const JZ=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],tK=le("file-code-2",JZ);/**
163
+ * @license lucide-react v0.546.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const eK=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],KD=le("file-text",eK);/**
168
+ * @license lucide-react v0.546.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const rK=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],iK=le("git-commit-horizontal",rK);/**
173
+ * @license lucide-react v0.546.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const nK=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],aK=le("git-branch",nK);/**
178
+ * @license lucide-react v0.546.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const sK=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],JD=le("git-pull-request",sK);/**
183
+ * @license lucide-react v0.546.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const oK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],lK=le("globe",oK);/**
188
+ * @license lucide-react v0.546.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const cK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],uK=le("info",cK);/**
193
+ * @license lucide-react v0.546.0 - ISC
194
+ *
195
+ * This source code is licensed under the ISC license.
196
+ * See the LICENSE file in the root directory of this source tree.
197
+ */const hK=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],tF=le("layers",hK);/**
198
+ * @license lucide-react v0.546.0 - ISC
199
+ *
200
+ * This source code is licensed under the ISC license.
201
+ * See the LICENSE file in the root directory of this source tree.
202
+ */const fK=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],dK=le("link-2",fK);/**
203
+ * @license lucide-react v0.546.0 - ISC
204
+ *
205
+ * This source code is licensed under the ISC license.
206
+ * See the LICENSE file in the root directory of this source tree.
207
+ */const pK=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}],["path",{d:"M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z",key:"1btarq"}]],gK=le("milestone",pK);/**
208
+ * @license lucide-react v0.546.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const mK=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],yK=le("network",mK);/**
213
+ * @license lucide-react v0.546.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const xK=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],bK=le("printer",xK);/**
218
+ * @license lucide-react v0.546.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const vK=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],CK=le("repeat",vK);/**
223
+ * @license lucide-react v0.546.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const wK=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],SK=le("rocket",wK);/**
228
+ * @license lucide-react v0.546.0 - ISC
229
+ *
230
+ * This source code is licensed under the ISC license.
231
+ * See the LICENSE file in the root directory of this source tree.
232
+ */const kK=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Uu=le("search",kK);/**
233
+ * @license lucide-react v0.546.0 - ISC
234
+ *
235
+ * This source code is licensed under the ISC license.
236
+ * See the LICENSE file in the root directory of this source tree.
237
+ */const _K=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],eF=le("settings",_K);/**
238
+ * @license lucide-react v0.546.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const TK=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],rF=le("shield-alert",TK);/**
243
+ * @license lucide-react v0.546.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const EK=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],AK=le("shield-check",EK);/**
248
+ * @license lucide-react v0.546.0 - ISC
249
+ *
250
+ * This source code is licensed under the ISC license.
251
+ * See the LICENSE file in the root directory of this source tree.
252
+ */const BK=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],rN=le("terminal",BK);/**
253
+ * @license lucide-react v0.546.0 - ISC
254
+ *
255
+ * This source code is licensed under the ISC license.
256
+ * See the LICENSE file in the root directory of this source tree.
257
+ */const LK=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Sw=le("trash-2",LK);/**
258
+ * @license lucide-react v0.546.0 - ISC
259
+ *
260
+ * This source code is licensed under the ISC license.
261
+ * See the LICENSE file in the root directory of this source tree.
262
+ */const MK=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],iF=le("triangle-alert",MK);/**
263
+ * @license lucide-react v0.546.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ */const NK=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],OK=le("wrench",NK);/**
268
+ * @license lucide-react v0.546.0 - ISC
269
+ *
270
+ * This source code is licensed under the ISC license.
271
+ * See the LICENSE file in the root directory of this source tree.
272
+ */const RK=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],DK=le("x",RK);/**
273
+ * @license lucide-react v0.546.0 - ISC
274
+ *
275
+ * This source code is licensed under the ISC license.
276
+ * See the LICENSE file in the root directory of this source tree.
277
+ */const FK=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],IK=le("zap",FK);function qK(t,e){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const zK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jK=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$K={};function iN(t,e){return($K.jsx?jK:zK).test(t)}const PK=/[ \t\n\f\r]/g;function HK(t){return typeof t=="object"?t.type==="text"?nN(t.value):!1:nN(t)}function nN(t){return t.replace(PK,"")===""}class fh{constructor(e,r,i){this.normal=r,this.property=e,i&&(this.space=i)}}fh.prototype.normal={};fh.prototype.property={};fh.prototype.space=void 0;function nF(t,e){const r={},i={};for(const n of t)Object.assign(r,n.property),Object.assign(i,n.normal);return new fh(r,i,e)}function IC(t){return t.toLowerCase()}class yi{constructor(e,r){this.attribute=r,this.property=e}}yi.prototype.attribute="";yi.prototype.booleanish=!1;yi.prototype.boolean=!1;yi.prototype.commaOrSpaceSeparated=!1;yi.prototype.commaSeparated=!1;yi.prototype.defined=!1;yi.prototype.mustUseProperty=!1;yi.prototype.number=!1;yi.prototype.overloadedBoolean=!1;yi.prototype.property="";yi.prototype.spaceSeparated=!1;yi.prototype.space=void 0;let UK=0;const ie=oo(),gr=oo(),qC=oo(),Tt=oo(),ze=oo(),dl=oo(),Ei=oo();function oo(){return 2**++UK}const zC=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:gr,commaOrSpaceSeparated:Ei,commaSeparated:dl,number:Tt,overloadedBoolean:qC,spaceSeparated:ze},Symbol.toStringTag,{value:"Module"})),Gv=Object.keys(zC);class kw extends yi{constructor(e,r,i,n){let s=-1;if(super(e,r),aN(this,"space",n),typeof i=="number")for(;++s<Gv.length;){const o=Gv[s];aN(this,Gv[s],(i&zC[o])===zC[o])}}}kw.prototype.defined=!0;function aN(t,e,r){r&&(t[e]=r)}function Kl(t){const e={},r={};for(const[i,n]of Object.entries(t.properties)){const s=new kw(i,t.transform(t.attributes||{},i),n,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,r[IC(i)]=i,r[IC(s.attribute)]=i}return new fh(e,r,t.space)}const aF=Kl({properties:{ariaActiveDescendant:null,ariaAtomic:gr,ariaAutoComplete:null,ariaBusy:gr,ariaChecked:gr,ariaColCount:Tt,ariaColIndex:Tt,ariaColSpan:Tt,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:gr,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:gr,ariaFlowTo:ze,ariaGrabbed:gr,ariaHasPopup:null,ariaHidden:gr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:Tt,ariaLive:null,ariaModal:gr,ariaMultiLine:gr,ariaMultiSelectable:gr,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:Tt,ariaPressed:gr,ariaReadOnly:gr,ariaRelevant:null,ariaRequired:gr,ariaRoleDescription:ze,ariaRowCount:Tt,ariaRowIndex:Tt,ariaRowSpan:Tt,ariaSelected:gr,ariaSetSize:Tt,ariaSort:null,ariaValueMax:Tt,ariaValueMin:Tt,ariaValueNow:Tt,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function sF(t,e){return e in t?t[e]:e}function oF(t,e){return sF(t,e.toLowerCase())}const GK=Kl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:dl,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:ze,autoFocus:ie,autoPlay:ie,blocking:ze,capture:null,charSet:null,checked:ie,cite:null,className:ze,cols:Tt,colSpan:null,content:null,contentEditable:gr,controls:ie,controlsList:ze,coords:Tt|dl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:qC,draggable:gr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:ze,height:Tt,hidden:qC,high:Tt,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:ze,itemRef:ze,itemScope:ie,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:Tt,manifest:null,max:null,maxLength:Tt,media:null,method:null,min:null,minLength:Tt,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:Tt,pattern:null,ping:ze,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:ze,required:ie,reversed:ie,rows:Tt,rowSpan:Tt,sandbox:ze,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:Tt,sizes:null,slot:null,span:Tt,spellCheck:gr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Tt,step:null,style:null,tabIndex:Tt,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:gr,width:Tt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:Tt,borderColor:null,bottomMargin:Tt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:Tt,leftMargin:Tt,link:null,longDesc:null,lowSrc:null,marginHeight:Tt,marginWidth:Tt,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:Tt,rules:null,scheme:null,scrolling:gr,standby:null,summary:null,text:null,topMargin:Tt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Tt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:Tt,security:null,unselectable:null},space:"html",transform:oF}),YK=Kl({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:Ei,accentHeight:Tt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Tt,amplitude:Tt,arabicForm:null,ascent:Tt,attributeName:null,attributeType:null,azimuth:Tt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Tt,by:null,calcMode:null,capHeight:Tt,className:ze,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:Tt,diffuseConstant:Tt,direction:null,display:null,dur:null,divisor:Tt,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:Tt,enableBackground:null,end:null,event:null,exponent:Tt,externalResourcesRequired:null,fill:null,fillOpacity:Tt,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:dl,g2:dl,glyphName:dl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Tt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Tt,horizOriginX:Tt,horizOriginY:Tt,id:null,ideographic:Tt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Tt,k:Tt,k1:Tt,k2:Tt,k3:Tt,k4:Tt,kernelMatrix:Ei,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Tt,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:Tt,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:Tt,overlineThickness:Tt,paintOrder:null,panose1:null,path:null,pathLength:Tt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Tt,pointsAtY:Tt,pointsAtZ:Tt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ei,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ei,rev:Ei,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ei,requiredFeatures:Ei,requiredFonts:Ei,requiredFormats:Ei,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:Tt,specularExponent:Tt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Tt,strikethroughThickness:Tt,string:null,stroke:null,strokeDashArray:Ei,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Tt,strokeOpacity:Tt,strokeWidth:null,style:null,surfaceScale:Tt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ei,tabIndex:Tt,tableValues:null,target:null,targetX:Tt,targetY:Tt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ei,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Tt,underlineThickness:Tt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Tt,values:null,vAlphabetic:Tt,vMathematical:Tt,vectorEffect:null,vHanging:Tt,vIdeographic:Tt,version:null,vertAdvY:Tt,vertOriginX:Tt,vertOriginY:Tt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Tt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:sF}),lF=Kl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),cF=Kl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oF}),uF=Kl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),WK={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"},VK=/[A-Z]/g,sN=/-[a-z]/g,XK=/^data[-\w.:]+$/i;function QK(t,e){const r=IC(e);let i=e,n=yi;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&XK.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(sN,KK);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!sN.test(s)){let o=s.replace(VK,ZK);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}n=kw}return new n(i,e)}function ZK(t){return"-"+t.toLowerCase()}function KK(t){return t.charAt(1).toUpperCase()}const JK=nF([aF,GK,lF,cF,uF],"html"),_w=nF([aF,YK,lF,cF,uF],"svg");function tJ(t){return t.join(" ").trim()}var Xo={},Yv,oN;function eJ(){if(oN)return Yv;oN=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
278
+ `,h="/",f="*",p="",m="comment",g="declaration";function x(b,w){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];w=w||{};var _=1,S=1;function E(M){var F=M.match(e);F&&(_+=F.length);var N=M.lastIndexOf(u);S=~N?M.length-N:S+M.length}function L(){var M={line:_,column:S};return function(F){return F.position=new A(M),Y(),F}}function A(M){this.start=M,this.end={line:_,column:S},this.source=w.source}A.prototype.content=b;function R(M){var F=new Error(w.source+":"+_+":"+S+": "+M);if(F.reason=M,F.filename=w.source,F.line=_,F.column=S,F.source=b,!w.silent)throw F}function j(M){var F=M.exec(b);if(F){var N=F[0];return E(N),b=b.slice(N.length),F}}function Y(){j(r)}function W(M){var F;for(M=M||[];F=O();)F!==!1&&M.push(F);return M}function O(){var M=L();if(!(h!=b.charAt(0)||f!=b.charAt(1))){for(var F=2;p!=b.charAt(F)&&(f!=b.charAt(F)||h!=b.charAt(F+1));)++F;if(F+=2,p===b.charAt(F-1))return R("End of comment missing");var N=b.slice(2,F-2);return S+=2,E(N),b=b.slice(F),S+=2,M({type:m,comment:N})}}function z(){var M=L(),F=j(i);if(F){if(O(),!j(n))return R("property missing ':'");var N=j(s),P=M({type:g,property:v(F[0].replace(t,p)),value:N?v(N[0].replace(t,p)):p});return j(o),P}}function X(){var M=[];W(M);for(var F;F=z();)F!==!1&&(M.push(F),W(M));return M}return Y(),X()}function v(b){return b?b.replace(c,p):p}return Yv=x,Yv}var lN;function rJ(){if(lN)return Xo;lN=1;var t=Xo&&Xo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=r;const e=t(eJ());function r(i,n){let s=null;if(!i||typeof i!="string")return s;const o=(0,e.default)(i),c=typeof n=="function";return o.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:f}=u;c?n(h,f,u):f&&(s=s||{},s[h]=f)}),s}return Xo}var Kc={},cN;function iJ(){if(cN)return Kc;cN=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,s=function(h){return!h||r.test(h)||t.test(h)},o=function(h,f){return f.toUpperCase()},c=function(h,f){return"".concat(f,"-")},u=function(h,f){return f===void 0&&(f={}),s(h)?h:(h=h.toLowerCase(),f.reactCompat?h=h.replace(n,c):h=h.replace(i,c),h.replace(e,o))};return Kc.camelCase=u,Kc}var Jc,uN;function nJ(){if(uN)return Jc;uN=1;var t=Jc&&Jc.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},e=t(rJ()),r=iJ();function i(n,s){var o={};return!n||typeof n!="string"||(0,e.default)(n,function(c,u){c&&u&&(o[(0,r.camelCase)(c,s)]=u)}),o}return i.default=i,Jc=i,Jc}var aJ=nJ();const sJ=Gl(aJ),hF=fF("end"),Tw=fF("start");function fF(t){return e;function e(r){const i=r&&r.position&&r.position[t]||{};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 oJ(t){const e=Tw(t),r=hF(t);if(e&&r)return{start:e,end:r}}function _u(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?hN(t.position):"start"in t||"end"in t?hN(t):"line"in t||"column"in t?jC(t):""}function jC(t){return fN(t&&t.line)+":"+fN(t&&t.column)}function hN(t){return jC(t&&t.start)+"-"+jC(t&&t.end)}function fN(t){return t&&typeof t=="number"?t:1}class Hr extends Error{constructor(e,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let n="",s={},o=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof e=="string"?n=e:!s.cause&&e&&(o=!0,n=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?s.ruleId=i:(s.source=i.slice(0,u),s.ruleId=i.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=c?c.line:void 0,this.name=_u(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Hr.prototype.file="";Hr.prototype.name="";Hr.prototype.reason="";Hr.prototype.message="";Hr.prototype.stack="";Hr.prototype.column=void 0;Hr.prototype.line=void 0;Hr.prototype.ancestors=void 0;Hr.prototype.cause=void 0;Hr.prototype.fatal=void 0;Hr.prototype.place=void 0;Hr.prototype.ruleId=void 0;Hr.prototype.source=void 0;const Ew={}.hasOwnProperty,lJ=new Map,cJ=/[A-Z]/g,uJ=new Set(["table","tbody","thead","tfoot","tr"]),hJ=new Set(["td","th"]),dF="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fJ(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=e.filePath||void 0;let i;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=vJ(r,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=bJ(r,e.jsx,e.jsxs)}const n={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?_w:JK,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=pF(n,t,void 0);return s&&typeof s!="string"?s:n.create(t,n.Fragment,{children:s||void 0},void 0)}function pF(t,e,r){if(e.type==="element")return dJ(t,e,r);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return pJ(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return mJ(t,e,r);if(e.type==="mdxjsEsm")return gJ(t,e);if(e.type==="root")return yJ(t,e,r);if(e.type==="text")return xJ(t,e)}function dJ(t,e,r){const i=t.schema;let n=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(n=_w,t.schema=n),t.ancestors.push(e);const s=mF(t,e.tagName,!1),o=CJ(t,e);let c=Bw(t,e);return uJ.has(e.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!HK(u):!0})),gF(t,o,s,e),Aw(o,c),t.ancestors.pop(),t.schema=i,t.create(e,s,o,r)}function pJ(t,e){if(e.data&&e.data.estree&&t.evaluater){const i=e.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}Gu(t,e.position)}function gJ(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Gu(t,e.position)}function mJ(t,e,r){const i=t.schema;let n=i;e.name==="svg"&&i.space==="html"&&(n=_w,t.schema=n),t.ancestors.push(e);const s=e.name===null?t.Fragment:mF(t,e.name,!0),o=wJ(t,e),c=Bw(t,e);return gF(t,o,s,e),Aw(o,c),t.ancestors.pop(),t.schema=i,t.create(e,s,o,r)}function yJ(t,e,r){const i={};return Aw(i,Bw(t,e)),t.create(e,t.Fragment,i,r)}function xJ(t,e){return e.value}function gF(t,e,r,i){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(e.node=i)}function Aw(t,e){if(e.length>0){const r=e.length>1?e:e[0];r&&(t.children=r)}}function bJ(t,e,r){return i;function i(n,s,o,c){const h=Array.isArray(o.children)?r:e;return c?h(s,o,c):h(s,o)}}function vJ(t,e){return r;function r(i,n,s,o){const c=Array.isArray(s.children),u=Tw(i);return e(n,s,o,c,{columnNumber:u?u.column-1:void 0,fileName:t,lineNumber:u?u.line:void 0},void 0)}}function CJ(t,e){const r={};let i,n;for(n in e.properties)if(n!=="children"&&Ew.call(e.properties,n)){const s=SJ(t,n,e.properties[n]);if(s){const[o,c]=s;t.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&hJ.has(e.tagName)?i=c:r[o]=c}}if(i){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function wJ(t,e){const r={};for(const i of e.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const s=i.data.estree.body[0];s.type;const o=s.expression;o.type;const c=o.properties[0];c.type,Object.assign(r,t.evaluater.evaluateExpression(c.argument))}else Gu(t,e.position);else{const n=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const c=i.value.data.estree.body[0];c.type,s=t.evaluater.evaluateExpression(c.expression)}else Gu(t,e.position);else s=i.value===null?!0:i.value;r[n]=s}return r}function Bw(t,e){const r=[];let i=-1;const n=t.passKeys?new Map:lJ;for(;++i<e.children.length;){const s=e.children[i];let o;if(t.passKeys){const u=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(u){const h=n.get(u)||0;o=u+"-"+h,n.set(u,h+1)}}const c=pF(t,s,o);c!==void 0&&r.push(c)}return r}function SJ(t,e,r){const i=QK(t.schema,e);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?qK(r):tJ(r)),i.property==="style"){let n=typeof r=="object"?r:kJ(t,String(r));return t.stylePropertyNameCase==="css"&&(n=_J(n)),["style",n]}return[t.elementAttributeNameCase==="react"&&i.space?WK[i.property]||i.property:i.attribute,r]}}function kJ(t,e){try{return sJ(e,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const i=r,n=new Hr("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=dF+"#cannot-parse-style-attribute",n}}function mF(t,e,r){let i;if(!r)i={type:"Literal",value:e};else if(e.includes(".")){const n=e.split(".");let s=-1,o;for(;++s<n.length;){const c=iN(n[s])?{type:"Identifier",name:n[s]}:{type:"Literal",value:n[s]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}i=o}else i=iN(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const n=i.value;return Ew.call(t.components,n)?t.components[n]:n}if(t.evaluater)return t.evaluater.evaluateExpression(i);Gu(t)}function Gu(t,e){const r=new Hr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=dF+"#cannot-handle-mdx-estrees-without-createevaluater",r}function _J(t){const e={};let r;for(r in t)Ew.call(t,r)&&(e[TJ(r)]=t[r]);return e}function TJ(t){let e=t.replace(cJ,EJ);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function EJ(t){return"-"+t.toLowerCase()}const Wv={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"]},AJ={};function BJ(t,e){const r=AJ,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return yF(t,i,n)}function yF(t,e,r){if(LJ(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return dN(t.children,e,r)}return Array.isArray(t)?dN(t,e,r):""}function dN(t,e,r){const i=[];let n=-1;for(;++n<t.length;)i[n]=yF(t[n],e,r);return i.join("")}function LJ(t){return!!(t&&typeof t=="object")}const pN=document.createElement("i");function Lw(t){const e="&"+t+";";pN.innerHTML=e;const r=pN.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function Bn(t,e,r,i){const n=t.length;let s=0,o;if(e<0?e=-e>n?0:n+e:e=e>n?n:e,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(e,r),t.splice(...o);else for(r&&t.splice(e,r);s<i.length;)o=i.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function $i(t,e){return t.length>0?(Bn(t,t.length,0,e),t):e}const gN={}.hasOwnProperty;function MJ(t){const e={};let r=-1;for(;++r<t.length;)NJ(e,t[r]);return e}function NJ(t,e){let r;for(r in e){const n=(gN.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r];let o;if(s)for(o in s){gN.call(n,o)||(n[o]=[]);const c=s[o];OJ(n[o],Array.isArray(c)?c:c?[c]:[])}}}function OJ(t,e){let r=-1;const i=[];for(;++r<e.length;)(e[r].add==="after"?t:i).push(e[r]);Bn(t,0,0,i)}function xF(t,e){const r=Number.parseInt(t,e);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 pl(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tn=ss(/[A-Za-z]/),Ai=ss(/[\dA-Za-z]/),RJ=ss(/[#-'*+\--9=?A-Z^-~]/);function $C(t){return t!==null&&(t<32||t===127)}const PC=ss(/\d/),DJ=ss(/[\dA-Fa-f]/),FJ=ss(/[!-/:-@[-`{-~]/);function Zt(t){return t!==null&&t<-2}function mi(t){return t!==null&&(t<0||t===32)}function _e(t){return t===-2||t===-1||t===32}const IJ=ss(new RegExp("\\p{P}|\\p{S}","u")),qJ=ss(/\s/);function ss(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Jl(t){const e=[];let r=-1,i=0,n=0;for(;++r<t.length;){const s=t.charCodeAt(r);let o="";if(s===37&&Ai(t.charCodeAt(r+1))&&Ai(t.charCodeAt(r+2)))n=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const c=t.charCodeAt(r+1);s<56320&&c>56319&&c<57344?(o=String.fromCharCode(s,c),n=1):o="�"}else o=String.fromCharCode(s);o&&(e.push(t.slice(i,r),encodeURIComponent(o)),i=r+n+1,o=""),n&&(r+=n,n=0)}return e.join("")+t.slice(i)}function je(t,e,r,i){const n=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return _e(u)?(t.enter(r),c(u)):e(u)}function c(u){return _e(u)&&s++<n?(t.consume(u),c):(t.exit(r),e(u))}}const zJ={tokenize:jJ};function jJ(t){const e=t.attempt(this.parser.constructs.contentInitial,i,n);let r;return e;function i(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),je(t,e,"linePrefix")}function n(c){return t.enter("paragraph"),s(c)}function s(c){const u=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,o(c)}function o(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return Zt(c)?(t.consume(c),t.exit("chunkText"),s):(t.consume(c),o)}}const $J={tokenize:PJ},mN={tokenize:HJ};function PJ(t){const e=this,r=[];let i=0,n,s,o;return c;function c(S){if(i<r.length){const E=r[i];return e.containerState=E[1],t.attempt(E[0].continuation,u,h)(S)}return h(S)}function u(S){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,n&&_();const E=e.events.length;let L=E,A;for(;L--;)if(e.events[L][0]==="exit"&&e.events[L][1].type==="chunkFlow"){A=e.events[L][1].end;break}w(i);let R=E;for(;R<e.events.length;)e.events[R][1].end={...A},R++;return Bn(e.events,L+1,0,e.events.slice(E)),e.events.length=R,h(S)}return c(S)}function h(S){if(i===r.length){if(!n)return m(S);if(n.currentConstruct&&n.currentConstruct.concrete)return x(S);e.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(mN,f,p)(S)}function f(S){return n&&_(),w(i),m(S)}function p(S){return e.parser.lazy[e.now().line]=i!==r.length,o=e.now().offset,x(S)}function m(S){return e.containerState={},t.attempt(mN,g,x)(S)}function g(S){return i++,r.push([e.currentConstruct,e.containerState]),m(S)}function x(S){if(S===null){n&&_(),w(0),t.consume(S);return}return n=n||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:s}),v(S)}function v(S){if(S===null){b(t.exit("chunkFlow"),!0),w(0),t.consume(S);return}return Zt(S)?(t.consume(S),b(t.exit("chunkFlow")),i=0,e.interrupt=void 0,c):(t.consume(S),v)}function b(S,E){const L=e.sliceStream(S);if(E&&L.push(null),S.previous=s,s&&(s.next=S),s=S,n.defineSkip(S.start),n.write(L),e.parser.lazy[S.start.line]){let A=n.events.length;for(;A--;)if(n.events[A][1].start.offset<o&&(!n.events[A][1].end||n.events[A][1].end.offset>o))return;const R=e.events.length;let j=R,Y,W;for(;j--;)if(e.events[j][0]==="exit"&&e.events[j][1].type==="chunkFlow"){if(Y){W=e.events[j][1].end;break}Y=!0}for(w(i),A=R;A<e.events.length;)e.events[A][1].end={...W},A++;Bn(e.events,j+1,0,e.events.slice(R)),e.events.length=A}}function w(S){let E=r.length;for(;E-- >S;){const L=r[E];e.containerState=L[1],L[0].exit.call(e,t)}r.length=S}function _(){n.write([null]),s=void 0,n=void 0,e.containerState._closeFlow=void 0}}function HJ(t,e,r){return je(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function yN(t){if(t===null||mi(t)||qJ(t))return 1;if(IJ(t))return 2}function Mw(t,e,r){const i=[];let n=-1;for(;++n<t.length;){const s=t[n].resolveAll;s&&!i.includes(s)&&(e=s(e,r),i.push(s))}return e}const HC={name:"attention",resolveAll:UJ,tokenize:GJ};function UJ(t,e){let r=-1,i,n,s,o,c,u,h,f;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(i=r;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[i][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;u=t[i][1].end.offset-t[i][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const p={...t[i][1].end},m={...t[r][1].start};xN(p,-u),xN(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...t[i][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:m},s={type:u>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[r][1].start}},n={type:u>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},t[i][1].end={...o.start},t[r][1].start={...c.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=$i(h,[["enter",t[i][1],e],["exit",t[i][1],e]])),h=$i(h,[["enter",n,e],["enter",o,e],["exit",o,e],["enter",s,e]]),h=$i(h,Mw(e.parser.constructs.insideSpan.null,t.slice(i+1,r),e)),h=$i(h,[["exit",s,e],["enter",c,e],["exit",c,e],["exit",n,e]]),t[r][1].end.offset-t[r][1].start.offset?(f=2,h=$i(h,[["enter",t[r][1],e],["exit",t[r][1],e]])):f=0,Bn(t,i-1,r-i+3,h),r=i+h.length-f-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function GJ(t,e){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,n=yN(i);let s;return o;function o(u){return s=u,t.enter("attentionSequence"),c(u)}function c(u){if(u===s)return t.consume(u),c;const h=t.exit("attentionSequence"),f=yN(u),p=!f||f===2&&n||r.includes(u),m=!n||n===2&&f||r.includes(i);return h._open=!!(s===42?p:p&&(n||!m)),h._close=!!(s===42?m:m&&(f||!p)),e(u)}}function xN(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const YJ={name:"autolink",tokenize:WJ};function WJ(t,e,r){let i=0;return n;function n(g){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(g){return Tn(g)?(t.consume(g),o):g===64?r(g):h(g)}function o(g){return g===43||g===45||g===46||Ai(g)?(i=1,c(g)):h(g)}function c(g){return g===58?(t.consume(g),i=0,u):(g===43||g===45||g===46||Ai(g))&&i++<32?(t.consume(g),c):(i=0,h(g))}function u(g){return g===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),e):g===null||g===32||g===60||$C(g)?r(g):(t.consume(g),u)}function h(g){return g===64?(t.consume(g),f):RJ(g)?(t.consume(g),h):r(g)}function f(g){return Ai(g)?p(g):r(g)}function p(g){return g===46?(t.consume(g),i=0,f):g===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),e):m(g)}function m(g){if((g===45||Ai(g))&&i++<63){const x=g===45?m:p;return t.consume(g),x}return r(g)}}const qp={partial:!0,tokenize:VJ};function VJ(t,e,r){return i;function i(s){return _e(s)?je(t,n,"linePrefix")(s):n(s)}function n(s){return s===null||Zt(s)?e(s):r(s)}}const bF={continuation:{tokenize:QJ},exit:ZJ,name:"blockQuote",tokenize:XJ};function XJ(t,e,r){const i=this;return n;function n(o){if(o===62){const c=i.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return r(o)}function s(o){return _e(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function QJ(t,e,r){const i=this;return n;function n(o){return _e(o)?je(t,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(bF,e,r)(o)}}function ZJ(t){t.exit("blockQuote")}const vF={name:"characterEscape",tokenize:KJ};function KJ(t,e,r){return i;function i(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),n}function n(s){return FJ(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(s)}}const CF={name:"characterReference",tokenize:JJ};function JJ(t,e,r){const i=this;let n=0,s,o;return c;function c(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),u}function u(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),s=31,o=Ai,f(p))}function h(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=DJ,f):(t.enter("characterReferenceValue"),s=7,o=PC,f(p))}function f(p){if(p===59&&n){const m=t.exit("characterReferenceValue");return o===Ai&&!Lw(i.sliceSerialize(m))?r(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(p)&&n++<s?(t.consume(p),f):r(p)}}const bN={partial:!0,tokenize:ett},vN={concrete:!0,name:"codeFenced",tokenize:ttt};function ttt(t,e,r){const i=this,n={partial:!0,tokenize:L};let s=0,o=0,c;return u;function u(A){return h(A)}function h(A){const R=i.events[i.events.length-1];return s=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,c=A,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(A)}function f(A){return A===c?(o++,t.consume(A),f):o<3?r(A):(t.exit("codeFencedFenceSequence"),_e(A)?je(t,p,"whitespace")(A):p(A))}function p(A){return A===null||Zt(A)?(t.exit("codeFencedFence"),i.interrupt?e(A):t.check(bN,v,E)(A)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||Zt(A)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(A)):_e(A)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),je(t,g,"whitespace")(A)):A===96&&A===c?r(A):(t.consume(A),m)}function g(A){return A===null||Zt(A)?p(A):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||Zt(A)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(A)):A===96&&A===c?r(A):(t.consume(A),x)}function v(A){return t.attempt(n,E,b)(A)}function b(A){return t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),w}function w(A){return s>0&&_e(A)?je(t,_,"linePrefix",s+1)(A):_(A)}function _(A){return A===null||Zt(A)?t.check(bN,v,E)(A):(t.enter("codeFlowValue"),S(A))}function S(A){return A===null||Zt(A)?(t.exit("codeFlowValue"),_(A)):(t.consume(A),S)}function E(A){return t.exit("codeFenced"),e(A)}function L(A,R,j){let Y=0;return W;function W(F){return A.enter("lineEnding"),A.consume(F),A.exit("lineEnding"),O}function O(F){return A.enter("codeFencedFence"),_e(F)?je(A,z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):z(F)}function z(F){return F===c?(A.enter("codeFencedFenceSequence"),X(F)):j(F)}function X(F){return F===c?(Y++,A.consume(F),X):Y>=o?(A.exit("codeFencedFenceSequence"),_e(F)?je(A,M,"whitespace")(F):M(F)):j(F)}function M(F){return F===null||Zt(F)?(A.exit("codeFencedFence"),R(F)):j(F)}}}function ett(t,e,r){const i=this;return n;function n(o){return o===null?r(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?r(o):e(o)}}const Vv={name:"codeIndented",tokenize:itt},rtt={partial:!0,tokenize:ntt};function itt(t,e,r){const i=this;return n;function n(h){return t.enter("codeIndented"),je(t,s,"linePrefix",5)(h)}function s(h){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(h):r(h)}function o(h){return h===null?u(h):Zt(h)?t.attempt(rtt,o,u)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||Zt(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),c)}function u(h){return t.exit("codeIndented"),e(h)}}function ntt(t,e,r){const i=this;return n;function n(o){return i.parser.lazy[i.now().line]?r(o):Zt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),n):je(t,s,"linePrefix",5)(o)}function s(o){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?e(o):Zt(o)?n(o):r(o)}}const att={name:"codeText",previous:ott,resolve:stt,tokenize:ltt};function stt(t){let e=t.length-4,r=3,i,n;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=r;++i<e;)if(t[i][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(i=r-1,e++;++i<=e;)n===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(n=i):(i===e||t[i][1].type==="lineEnding")&&(t[n][1].type="codeTextData",i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),e-=i-n-2,i=n+2),n=void 0);return t}function ott(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ltt(t,e,r){let i=0,n,s;return o;function o(p){return t.enter("codeText"),t.enter("codeTextSequence"),c(p)}function c(p){return p===96?(t.consume(p),i++,c):(t.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),u):p===96?(s=t.enter("codeTextSequence"),n=0,f(p)):Zt(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),u):(t.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Zt(p)?(t.exit("codeTextData"),u(p)):(t.consume(p),h)}function f(p){return p===96?(t.consume(p),n++,f):n===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(p)):(s.type="codeTextData",h(p))}}class ctt{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,r,i){const n=r||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return i&&tu(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),tu(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),tu(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const r=this.left.splice(e,Number.POSITIVE_INFINITY);tu(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);tu(this.left,r.reverse())}}}function tu(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}function wF(t){const e={};let r=-1,i,n,s,o,c,u,h;const f=new ctt(t);for(;++r<f.length;){for(;r in e;)r=e[r];if(i=f.get(r),r&&i[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(e,utt(f,r)),r=e[r],h=!0);else if(i[1]._container){for(s=r,n=void 0;s--;)if(o=f.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(n&&(f.get(n)[1].type="lineEndingBlank"),o[1].type="lineEnding",n=s);else if(!(o[1].type==="linePrefix"||o[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 Bn(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!h}function utt(t,e){const r=t.get(e)[1],i=t.get(e)[2];let n=e-1;const s=[];let o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,u=[],h={};let f,p,m=-1,g=r,x=0,v=0;const b=[v];for(;g;){for(;t.get(++n)[1]!==g;);s.push(n),g._tokenizer||(f=i.sliceStream(g),g.next||f.push(null),p&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),g._isInFirstContentOfListItem&&(o._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&&(v=m+1,b.push(v),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):b.pop(),m=b.length;m--;){const w=c.slice(b[m],b[m+1]),_=s.pop();u.push([_,_+w.length-1]),t.splice(_,2,w)}for(u.reverse(),m=-1;++m<u.length;)h[x+u[m][0]]=x+u[m][1],x+=u[m][1]-u[m][0]-1;return h}const htt={resolve:dtt,tokenize:ptt},ftt={partial:!0,tokenize:gtt};function dtt(t){return wF(t),t}function ptt(t,e){let r;return i;function i(c){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),n(c)}function n(c){return c===null?s(c):Zt(c)?t.check(ftt,o,s)(c):(t.consume(c),n)}function s(c){return t.exit("chunkContent"),t.exit("content"),e(c)}function o(c){return t.consume(c),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function gtt(t,e,r){const i=this;return n;function n(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),je(t,s,"linePrefix")}function s(o){if(o===null||Zt(o))return r(o);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?e(o):t.interrupt(i.parser.constructs.flow,r,e)(o)}}function SF(t,e,r,i,n,s,o,c,u){const h=u||Number.POSITIVE_INFINITY;let f=0;return p;function p(w){return w===60?(t.enter(i),t.enter(n),t.enter(s),t.consume(w),t.exit(s),m):w===null||w===32||w===41||$C(w)?r(w):(t.enter(i),t.enter(o),t.enter(c),t.enter("chunkString",{contentType:"string"}),v(w))}function m(w){return w===62?(t.enter(s),t.consume(w),t.exit(s),t.exit(n),t.exit(i),e):(t.enter(c),t.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(t.exit("chunkString"),t.exit(c),m(w)):w===null||w===60||Zt(w)?r(w):(t.consume(w),w===92?x:g)}function x(w){return w===60||w===62||w===92?(t.consume(w),g):g(w)}function v(w){return!f&&(w===null||w===41||mi(w))?(t.exit("chunkString"),t.exit(c),t.exit(o),t.exit(i),e(w)):f<h&&w===40?(t.consume(w),f++,v):w===41?(t.consume(w),f--,v):w===null||w===32||w===40||$C(w)?r(w):(t.consume(w),w===92?b:v)}function b(w){return w===40||w===41||w===92?(t.consume(w),v):v(w)}}function kF(t,e,r,i,n,s){const o=this;let c=0,u;return h;function h(g){return t.enter(i),t.enter(n),t.consume(g),t.exit(n),t.enter(s),f}function f(g){return c>999||g===null||g===91||g===93&&!u||g===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):g===93?(t.exit(s),t.enter(n),t.consume(g),t.exit(n),t.exit(i),e):Zt(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||Zt(g)||c++>999?(t.exit("chunkString"),f(g)):(t.consume(g),u||(u=!_e(g)),g===92?m:p)}function m(g){return g===91||g===92||g===93?(t.consume(g),c++,p):p(g)}}function _F(t,e,r,i,n,s){let o;return c;function c(m){return m===34||m===39||m===40?(t.enter(i),t.enter(n),t.consume(m),t.exit(n),o=m===40?41:m,u):r(m)}function u(m){return m===o?(t.enter(n),t.consume(m),t.exit(n),t.exit(i),e):(t.enter(s),h(m))}function h(m){return m===o?(t.exit(s),u(o)):m===null?r(m):Zt(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),je(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===o||m===null||Zt(m)?(t.exit("chunkString"),h(m)):(t.consume(m),m===92?p:f)}function p(m){return m===o||m===92?(t.consume(m),f):f(m)}}function Tu(t,e){let r;return i;function i(n){return Zt(n)?(t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),r=!0,i):_e(n)?je(t,i,r?"linePrefix":"lineSuffix")(n):e(n)}}const mtt={name:"definition",tokenize:xtt},ytt={partial:!0,tokenize:btt};function xtt(t,e,r){const i=this;let n;return s;function s(g){return t.enter("definition"),o(g)}function o(g){return kF.call(i,t,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return n=pl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),u):r(g)}function u(g){return mi(g)?Tu(t,h)(g):h(g)}function h(g){return SF(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return t.attempt(ytt,p,p)(g)}function p(g){return _e(g)?je(t,m,"whitespace")(g):m(g)}function m(g){return g===null||Zt(g)?(t.exit("definition"),i.parser.defined.push(n),e(g)):r(g)}}function btt(t,e,r){return i;function i(c){return mi(c)?Tu(t,n)(c):r(c)}function n(c){return _F(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return _e(c)?je(t,o,"whitespace")(c):o(c)}function o(c){return c===null||Zt(c)?e(c):r(c)}}const vtt={name:"hardBreakEscape",tokenize:Ctt};function Ctt(t,e,r){return i;function i(s){return t.enter("hardBreakEscape"),t.consume(s),n}function n(s){return Zt(s)?(t.exit("hardBreakEscape"),e(s)):r(s)}}const wtt={name:"headingAtx",resolve:Stt,tokenize:ktt};function Stt(t,e){let r=t.length-2,i=3,n,s;return t[i][1].type==="whitespace"&&(i+=2),r-2>i&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&t[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(n={type:"atxHeadingText",start:t[i][1].start,end:t[r][1].end},s={type:"chunkText",start:t[i][1].start,end:t[r][1].end,contentType:"text"},Bn(t,i,r-i+1,[["enter",n,e],["enter",s,e],["exit",s,e],["exit",n,e]])),t}function ktt(t,e,r){let i=0;return n;function n(f){return t.enter("atxHeading"),s(f)}function s(f){return t.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&i++<6?(t.consume(f),o):f===null||mi(f)?(t.exit("atxHeadingSequence"),c(f)):r(f)}function c(f){return f===35?(t.enter("atxHeadingSequence"),u(f)):f===null||Zt(f)?(t.exit("atxHeading"),e(f)):_e(f)?je(t,c,"whitespace")(f):(t.enter("atxHeadingText"),h(f))}function u(f){return f===35?(t.consume(f),u):(t.exit("atxHeadingSequence"),c(f))}function h(f){return f===null||f===35||mi(f)?(t.exit("atxHeadingText"),c(f)):(t.consume(f),h)}}const _tt=["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"],CN=["pre","script","style","textarea"],Ttt={concrete:!0,name:"htmlFlow",resolveTo:Btt,tokenize:Ltt},Ett={partial:!0,tokenize:Ntt},Att={partial:!0,tokenize:Mtt};function Btt(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function Ltt(t,e,r){const i=this;let n,s,o,c,u;return h;function h(H){return f(H)}function f(H){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(H),p}function p(H){return H===33?(t.consume(H),m):H===47?(t.consume(H),s=!0,v):H===63?(t.consume(H),n=3,i.interrupt?e:I):Tn(H)?(t.consume(H),o=String.fromCharCode(H),b):r(H)}function m(H){return H===45?(t.consume(H),n=2,g):H===91?(t.consume(H),n=5,c=0,x):Tn(H)?(t.consume(H),n=4,i.interrupt?e:I):r(H)}function g(H){return H===45?(t.consume(H),i.interrupt?e:I):r(H)}function x(H){const Q="CDATA[";return H===Q.charCodeAt(c++)?(t.consume(H),c===Q.length?i.interrupt?e:z:x):r(H)}function v(H){return Tn(H)?(t.consume(H),o=String.fromCharCode(H),b):r(H)}function b(H){if(H===null||H===47||H===62||mi(H)){const Q=H===47,J=o.toLowerCase();return!Q&&!s&&CN.includes(J)?(n=1,i.interrupt?e(H):z(H)):_tt.includes(o.toLowerCase())?(n=6,Q?(t.consume(H),w):i.interrupt?e(H):z(H)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(H):s?_(H):S(H))}return H===45||Ai(H)?(t.consume(H),o+=String.fromCharCode(H),b):r(H)}function w(H){return H===62?(t.consume(H),i.interrupt?e:z):r(H)}function _(H){return _e(H)?(t.consume(H),_):W(H)}function S(H){return H===47?(t.consume(H),W):H===58||H===95||Tn(H)?(t.consume(H),E):_e(H)?(t.consume(H),S):W(H)}function E(H){return H===45||H===46||H===58||H===95||Ai(H)?(t.consume(H),E):L(H)}function L(H){return H===61?(t.consume(H),A):_e(H)?(t.consume(H),L):S(H)}function A(H){return H===null||H===60||H===61||H===62||H===96?r(H):H===34||H===39?(t.consume(H),u=H,R):_e(H)?(t.consume(H),A):j(H)}function R(H){return H===u?(t.consume(H),u=null,Y):H===null||Zt(H)?r(H):(t.consume(H),R)}function j(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||mi(H)?L(H):(t.consume(H),j)}function Y(H){return H===47||H===62||_e(H)?S(H):r(H)}function W(H){return H===62?(t.consume(H),O):r(H)}function O(H){return H===null||Zt(H)?z(H):_e(H)?(t.consume(H),O):r(H)}function z(H){return H===45&&n===2?(t.consume(H),N):H===60&&n===1?(t.consume(H),P):H===62&&n===4?(t.consume(H),G):H===63&&n===3?(t.consume(H),I):H===93&&n===5?(t.consume(H),q):Zt(H)&&(n===6||n===7)?(t.exit("htmlFlowData"),t.check(Ett,Z,X)(H)):H===null||Zt(H)?(t.exit("htmlFlowData"),X(H)):(t.consume(H),z)}function X(H){return t.check(Att,M,Z)(H)}function M(H){return t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),F}function F(H){return H===null||Zt(H)?X(H):(t.enter("htmlFlowData"),z(H))}function N(H){return H===45?(t.consume(H),I):z(H)}function P(H){return H===47?(t.consume(H),o="",$):z(H)}function $(H){if(H===62){const Q=o.toLowerCase();return CN.includes(Q)?(t.consume(H),G):z(H)}return Tn(H)&&o.length<8?(t.consume(H),o+=String.fromCharCode(H),$):z(H)}function q(H){return H===93?(t.consume(H),I):z(H)}function I(H){return H===62?(t.consume(H),G):H===45&&n===2?(t.consume(H),I):z(H)}function G(H){return H===null||Zt(H)?(t.exit("htmlFlowData"),Z(H)):(t.consume(H),G)}function Z(H){return t.exit("htmlFlow"),e(H)}}function Mtt(t,e,r){const i=this;return n;function n(o){return Zt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):r(o)}function s(o){return i.parser.lazy[i.now().line]?r(o):e(o)}}function Ntt(t,e,r){return i;function i(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),t.attempt(qp,e,r)}}const Ott={name:"htmlText",tokenize:Rtt};function Rtt(t,e,r){const i=this;let n,s,o;return c;function c(I){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(I),u}function u(I){return I===33?(t.consume(I),h):I===47?(t.consume(I),L):I===63?(t.consume(I),S):Tn(I)?(t.consume(I),j):r(I)}function h(I){return I===45?(t.consume(I),f):I===91?(t.consume(I),s=0,x):Tn(I)?(t.consume(I),_):r(I)}function f(I){return I===45?(t.consume(I),g):r(I)}function p(I){return I===null?r(I):I===45?(t.consume(I),m):Zt(I)?(o=p,P(I)):(t.consume(I),p)}function m(I){return I===45?(t.consume(I),g):p(I)}function g(I){return I===62?N(I):I===45?m(I):p(I)}function x(I){const G="CDATA[";return I===G.charCodeAt(s++)?(t.consume(I),s===G.length?v:x):r(I)}function v(I){return I===null?r(I):I===93?(t.consume(I),b):Zt(I)?(o=v,P(I)):(t.consume(I),v)}function b(I){return I===93?(t.consume(I),w):v(I)}function w(I){return I===62?N(I):I===93?(t.consume(I),w):v(I)}function _(I){return I===null||I===62?N(I):Zt(I)?(o=_,P(I)):(t.consume(I),_)}function S(I){return I===null?r(I):I===63?(t.consume(I),E):Zt(I)?(o=S,P(I)):(t.consume(I),S)}function E(I){return I===62?N(I):S(I)}function L(I){return Tn(I)?(t.consume(I),A):r(I)}function A(I){return I===45||Ai(I)?(t.consume(I),A):R(I)}function R(I){return Zt(I)?(o=R,P(I)):_e(I)?(t.consume(I),R):N(I)}function j(I){return I===45||Ai(I)?(t.consume(I),j):I===47||I===62||mi(I)?Y(I):r(I)}function Y(I){return I===47?(t.consume(I),N):I===58||I===95||Tn(I)?(t.consume(I),W):Zt(I)?(o=Y,P(I)):_e(I)?(t.consume(I),Y):N(I)}function W(I){return I===45||I===46||I===58||I===95||Ai(I)?(t.consume(I),W):O(I)}function O(I){return I===61?(t.consume(I),z):Zt(I)?(o=O,P(I)):_e(I)?(t.consume(I),O):Y(I)}function z(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(t.consume(I),n=I,X):Zt(I)?(o=z,P(I)):_e(I)?(t.consume(I),z):(t.consume(I),M)}function X(I){return I===n?(t.consume(I),n=void 0,F):I===null?r(I):Zt(I)?(o=X,P(I)):(t.consume(I),X)}function M(I){return I===null||I===34||I===39||I===60||I===61||I===96?r(I):I===47||I===62||mi(I)?Y(I):(t.consume(I),M)}function F(I){return I===47||I===62||mi(I)?Y(I):r(I)}function N(I){return I===62?(t.consume(I),t.exit("htmlTextData"),t.exit("htmlText"),e):r(I)}function P(I){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),$}function $(I){return _e(I)?je(t,q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):q(I)}function q(I){return t.enter("htmlTextData"),o(I)}}const Nw={name:"labelEnd",resolveAll:qtt,resolveTo:ztt,tokenize:jtt},Dtt={tokenize:$tt},Ftt={tokenize:Ptt},Itt={tokenize:Htt};function qtt(t){let e=-1;const r=[];for(;++e<t.length;){const i=t[e][1];if(r.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const n=i.type==="labelImage"?4:2;i.type="data",e+=n}}return t.length!==r.length&&Bn(t,0,t.length,r),t}function ztt(t,e){let r=t.length,i=0,n,s,o,c;for(;r--;)if(n=t[r][1],s){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;t[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(t[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(s=r,n.type!=="labelLink")){i=2;break}}else n.type==="labelEnd"&&(o=r);const u={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[s][1].start},end:{...t[o][1].end}},f={type:"labelText",start:{...t[s+i+2][1].end},end:{...t[o-2][1].start}};return c=[["enter",u,e],["enter",h,e]],c=$i(c,t.slice(s+1,s+i+3)),c=$i(c,[["enter",f,e]]),c=$i(c,Mw(e.parser.constructs.insideSpan.null,t.slice(s+i+4,o-3),e)),c=$i(c,[["exit",f,e],t[o-2],t[o-1],["exit",h,e]]),c=$i(c,t.slice(o+1)),c=$i(c,[["exit",u,e]]),Bn(t,s,t.length,c),t}function jtt(t,e,r){const i=this;let n=i.events.length,s,o;for(;n--;)if((i.events[n][1].type==="labelImage"||i.events[n][1].type==="labelLink")&&!i.events[n][1]._balanced){s=i.events[n][1];break}return c;function c(m){return s?s._inactive?p(m):(o=i.parser.defined.includes(pl(i.sliceSerialize({start:s.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelEnd"),u):r(m)}function u(m){return m===40?t.attempt(Dtt,f,o?f:p)(m):m===91?t.attempt(Ftt,f,o?h:p)(m):o?f(m):p(m)}function h(m){return t.attempt(Itt,f,p)(m)}function f(m){return e(m)}function p(m){return s._balanced=!0,r(m)}}function $tt(t,e,r){return i;function i(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),n}function n(p){return mi(p)?Tu(t,s)(p):s(p)}function s(p){return p===41?f(p):SF(t,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return mi(p)?Tu(t,u)(p):f(p)}function c(p){return r(p)}function u(p){return p===34||p===39||p===40?_F(t,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function h(p){return mi(p)?Tu(t,f)(p):f(p)}function f(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),e):r(p)}}function Ptt(t,e,r){const i=this;return n;function n(c){return kF.call(i,t,s,o,"reference","referenceMarker","referenceString")(c)}function s(c){return i.parser.defined.includes(pl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(c):r(c)}function o(c){return r(c)}}function Htt(t,e,r){return i;function i(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),n}function n(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):r(s)}}const Utt={name:"labelStartImage",resolveAll:Nw.resolveAll,tokenize:Gtt};function Gtt(t,e,r){const i=this;return n;function n(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),s}function s(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),o):r(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):e(c)}}const Ytt={name:"labelStartLink",resolveAll:Nw.resolveAll,tokenize:Wtt};function Wtt(t,e,r){const i=this;return n;function n(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):e(o)}}const Xv={name:"lineEnding",tokenize:Vtt};function Vtt(t,e){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),je(t,e,"linePrefix")}}const hd={name:"thematicBreak",tokenize:Xtt};function Xtt(t,e,r){let i=0,n;return s;function s(h){return t.enter("thematicBreak"),o(h)}function o(h){return n=h,c(h)}function c(h){return h===n?(t.enter("thematicBreakSequence"),u(h)):i>=3&&(h===null||Zt(h))?(t.exit("thematicBreak"),e(h)):r(h)}function u(h){return h===n?(t.consume(h),i++,u):(t.exit("thematicBreakSequence"),_e(h)?je(t,c,"whitespace")(h):c(h))}}const ui={continuation:{tokenize:Jtt},exit:eet,name:"list",tokenize:Ktt},Qtt={partial:!0,tokenize:ret},Ztt={partial:!0,tokenize:tet};function Ktt(t,e,r){const i=this,n=i.events[i.events.length-1];let s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=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:PC(g)){if(i.containerState.type||(i.containerState.type=x,t.enter(x,{_container:!0})),x==="listUnordered")return t.enter("listItemPrefix"),g===42||g===45?t.check(hd,r,h)(g):h(g);if(!i.interrupt||g===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(g)}return r(g)}function u(g){return PC(g)&&++o<10?(t.consume(g),u):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(t.exit("listItemValue"),h(g)):r(g)}function h(g){return t.enter("listItemMarker"),t.consume(g),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,t.check(qp,i.interrupt?r:f,t.attempt(Qtt,m,p))}function f(g){return i.containerState.initialBlankLine=!0,s++,m(g)}function p(g){return _e(g)?(t.enter("listItemPrefixWhitespace"),t.consume(g),t.exit("listItemPrefixWhitespace"),m):r(g)}function m(g){return i.containerState.size=s+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(g)}}function Jtt(t,e,r){const i=this;return i.containerState._closeFlow=void 0,t.check(qp,n,s);function n(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,je(t,e,"listItemIndent",i.containerState.size+1)(c)}function s(c){return i.containerState.furtherBlankLines||!_e(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(Ztt,e,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,je(t,t.attempt(ui,e,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function tet(t,e,r){const i=this;return je(t,n,"listItemIndent",i.containerState.size+1);function n(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?e(s):r(s)}}function eet(t){t.exit(this.containerState.type)}function ret(t,e,r){const i=this;return je(t,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){const o=i.events[i.events.length-1];return!_e(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):r(s)}}const wN={name:"setextUnderline",resolveTo:iet,tokenize:net};function iet(t,e){let r=t.length,i,n,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){i=r;break}t[r][1].type==="paragraph"&&(n=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const o={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[n][1].type="setextHeadingText",s?(t.splice(n,0,["enter",o,e]),t.splice(s+1,0,["exit",t[i][1],e]),t[i][1].end={...t[s][1].end}):t[i][1]=o,t.push(["exit",o,e]),t}function net(t,e,r){const i=this;let n;return s;function s(h){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)?(t.enter("setextHeadingLine"),n=h,o(h)):r(h)}function o(h){return t.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===n?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),_e(h)?je(t,u,"lineSuffix")(h):u(h))}function u(h){return h===null||Zt(h)?(t.exit("setextHeadingLine"),e(h)):r(h)}}const aet={tokenize:set};function set(t){const e=this,r=t.attempt(qp,i,t.attempt(this.parser.constructs.flowInitial,n,je(t,t.attempt(this.parser.constructs.flow,n,t.attempt(htt,n)),"linePrefix")));return r;function i(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function n(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,r}}const oet={resolveAll:EF()},cet=TF("string"),uet=TF("text");function TF(t){return{resolveAll:EF(t==="text"?het:void 0),tokenize:e};function e(r){const i=this,n=this.parser.constructs[t],s=r.attempt(n,o,c);return o;function o(f){return h(f)?s(f):c(f)}function c(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),u}function u(f){return h(f)?(r.exit("data"),s(f)):(r.consume(f),u)}function h(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 EF(t){return e;function e(r,i){let n=-1,s;for(;++n<=r.length;)s===void 0?r[n]&&r[n][1].type==="data"&&(s=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==s+2&&(r[s][1].end=r[n-1][1].end,r.splice(s+2,n-s-2),n=s+2),s=void 0);return t?t(r,i):r}}function het(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const i=t[r-1][1],n=e.sliceStream(i);let s=n.length,o=-1,c=0,u;for(;s--;){const h=n[s];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(h===-2)u=!0,c++;else if(h!==-1){s++;break}}if(e._contentTypeTextTrailing&&r===t.length&&(c=0),c){const h={type:r===t.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(r,0,["enter",h,e],["exit",h,e]),r+=2)}r++}return t}const fet={42:ui,43:ui,45:ui,48:ui,49:ui,50:ui,51:ui,52:ui,53:ui,54:ui,55:ui,56:ui,57:ui,62:bF},det={91:mtt},pet={[-2]:Vv,[-1]:Vv,32:Vv},get={35:wtt,42:hd,45:[wN,hd],60:Ttt,61:wN,95:hd,96:vN,126:vN},met={38:CF,92:vF},yet={[-5]:Xv,[-4]:Xv,[-3]:Xv,33:Utt,38:CF,42:HC,60:[YJ,Ott],91:Ytt,92:[vtt,vF],93:Nw,95:HC,96:att},xet={null:[HC,oet]},bet={null:[42,95]},vet={null:[]},Cet=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:bet,contentInitial:det,disable:vet,document:fet,flow:get,flowInitial:pet,insideSpan:xet,string:met,text:yet},Symbol.toStringTag,{value:"Module"}));function wet(t,e,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const n={},s=[];let o=[],c=[];const u={attempt:R(L),check:R(A),consume:_,enter:S,exit:E,interrupt:R(A,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:x,parser:t,previous:null,sliceSerialize:m,sliceStream:g,write:p};let f=e.tokenize.call(h,u);return e.resolveAll&&s.push(e),h;function p(O){return o=$i(o,O),b(),o[o.length-1]!==null?[]:(j(e,0),h.events=Mw(s,h.events,h),h.events)}function m(O,z){return _et(g(O),z)}function g(O){return ket(o,O)}function x(){const{_bufferIndex:O,_index:z,line:X,column:M,offset:F}=i;return{_bufferIndex:O,_index:z,line:X,column:M,offset:F}}function v(O){n[O.line]=O.column,W()}function b(){let O;for(;i._index<o.length;){const z=o[i._index];if(typeof z=="string")for(O=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===O&&i._bufferIndex<z.length;)w(z.charCodeAt(i._bufferIndex));else w(z)}}function w(O){f=f(O)}function _(O){Zt(O)?(i.line++,i.column=1,i.offset+=O===-3?2:1,W()):O!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=O}function S(O,z){const X=z||{};return X.type=O,X.start=x(),h.events.push(["enter",X,h]),c.push(X),X}function E(O){const z=c.pop();return z.end=x(),h.events.push(["exit",z,h]),z}function L(O,z){j(O,z.from)}function A(O,z){z.restore()}function R(O,z){return X;function X(M,F,N){let P,$,q,I;return Array.isArray(M)?Z(M):"tokenize"in M?Z([M]):G(M);function G(tt){return K;function K(nt){const ct=nt!==null&&tt[nt],it=nt!==null&&tt.null,dt=[...Array.isArray(ct)?ct:ct?[ct]:[],...Array.isArray(it)?it:it?[it]:[]];return Z(dt)(nt)}}function Z(tt){return P=tt,$=0,tt.length===0?N:H(tt[$])}function H(tt){return K;function K(nt){return I=Y(),q=tt,tt.partial||(h.currentConstruct=tt),tt.name&&h.parser.constructs.disable.null.includes(tt.name)?J():tt.tokenize.call(z?Object.assign(Object.create(h),z):h,u,Q,J)(nt)}}function Q(tt){return O(q,I),F}function J(tt){return I.restore(),++$<P.length?H(P[$]):N}}}function j(O,z){O.resolveAll&&!s.includes(O)&&s.push(O),O.resolve&&Bn(h.events,z,h.events.length-z,O.resolve(h.events.slice(z),h)),O.resolveTo&&(h.events=O.resolveTo(h.events,h))}function Y(){const O=x(),z=h.previous,X=h.currentConstruct,M=h.events.length,F=Array.from(c);return{from:M,restore:N};function N(){i=O,h.previous=z,h.currentConstruct=X,h.events.length=M,c=F,W()}}function W(){i.line in n&&i.column<2&&(i.column=n[i.line],i.offset+=n[i.line]-1)}}function ket(t,e){const r=e.start._index,i=e.start._bufferIndex,n=e.end._index,s=e.end._bufferIndex;let o;if(r===n)o=[t[r].slice(i,s)];else{if(o=t.slice(r,n),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}s>0&&o.push(t[n].slice(0,s))}return o}function _et(t,e){let r=-1;const i=[];let n;for(;++r<t.length;){const s=t[r];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
279
+ `;break}case-3:{o=`\r
280
+ `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&n)continue;o=" ";break}default:o=String.fromCharCode(s)}n=s===-2,i.push(o)}return i.join("")}function Tet(t){const i={constructs:MJ([Cet,...(t||{}).extensions||[]]),content:n(zJ),defined:[],document:n($J),flow:n(aet),lazy:{},string:n(cet),text:n(uet)};return i;function n(s){return o;function o(c){return wet(i,s,c)}}}function Eet(t){for(;!wF(t););return t}const SN=/[\0\t\n\r]/g;function Aet(){let t=1,e="",r=!0,i;return n;function n(s,o,c){const u=[];let h,f,p,m,g;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),p=0,e="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(SN.lastIndex=p,h=SN.exec(s),m=h&&h.index!==void 0?h.index:s.length,g=s.charCodeAt(m),!h){e=s.slice(p);break}if(g===10&&p===m&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),p<m&&(u.push(s.slice(p,m)),t+=m-p),g){case 0:{u.push(65533),t++;break}case 9:{for(f=Math.ceil(t/4)*4,u.push(-2);t++<f;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:i=!0,t=1}p=m+1}return c&&(i&&u.push(-5),e&&u.push(e),u.push(null)),u}}const Bet=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Let(t){return t.replace(Bet,Met)}function Met(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const n=r.charCodeAt(1),s=n===120||n===88;return xF(r.slice(s?2:1),s?16:10)}return Lw(r)||t}const AF={}.hasOwnProperty;function Net(t,e,r){return e&&typeof e=="object"&&(r=e,e=void 0),Oet(r)(Eet(Tet(r).document().write(Aet()(t,e,!0))))}function Oet(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Be),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(Et),blockQuote:s(it),characterEscape:Y,characterReference:Y,codeFenced:s(dt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(dt,o),codeText:s(Ct,o),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(kt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(At),hardBreakEscape:s(Ht),hardBreakTrailing:s(Ht),htmlFlow:s(qt,o),htmlFlowData:Y,htmlText:s(qt,o),htmlTextData:Y,image:s(we),label:o,link:s(Be),listItem:s(vr),listItemValue:m,listOrdered:s(nr,p),listUnordered:s(nr),paragraph:s(ar),reference:H,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Et),strong:s(De),thematicBreak:s(Cr)},exit:{atxHeading:u(),atxHeadingSequence:L,autolink:u(),autolinkEmail:ct,autolinkProtocol:nt,blockQuote:u(),characterEscapeValue:W,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:tt,characterReference:K,codeFenced:u(b),codeFencedFence:v,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:W,codeIndented:u(w),codeText:u(F),codeTextData:W,data:W,definition:u(),definitionDestinationString:E,definitionLabelString:_,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(z),hardBreakTrailing:u(z),htmlFlow:u(X),htmlFlowData:W,htmlText:u(M),htmlTextData:W,image:u(P),label:q,labelText:$,lineEnding:O,link:u(N),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Q,resourceDestinationString:I,resourceTitleString:G,resource:Z,setextHeading:u(j),setextHeadingLineSequence:R,setextHeadingText:A,strong:u(),thematicBreak:u()}};BF(e,(t||{}).mdastExtensions||[]);const r={};return i;function i(yt){let _t={type:"root",children:[]};const Rt={stack:[_t],tokenStack:[],config:e,enter:c,exit:h,buffer:o,resume:f,data:r},Kt=[];let ne=-1;for(;++ne<yt.length;)if(yt[ne][1].type==="listOrdered"||yt[ne][1].type==="listUnordered")if(yt[ne][0]==="enter")Kt.push(ne);else{const sr=Kt.pop();ne=n(yt,sr,ne)}for(ne=-1;++ne<yt.length;){const sr=e[yt[ne][0]];AF.call(sr,yt[ne][1].type)&&sr[yt[ne][1].type].call(Object.assign({sliceSerialize:yt[ne][2].sliceSerialize},Rt),yt[ne][1])}if(Rt.tokenStack.length>0){const sr=Rt.tokenStack[Rt.tokenStack.length-1];(sr[1]||kN).call(Rt,void 0,sr[0])}for(_t.position={start:Ga(yt.length>0?yt[0][1].start:{line:1,column:1,offset:0}),end:Ga(yt.length>0?yt[yt.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne<e.transforms.length;)_t=e.transforms[ne](_t)||_t;return _t}function n(yt,_t,Rt){let Kt=_t-1,ne=-1,sr=!1,Br,Se,me,Fe;for(;++Kt<=Rt;){const ce=yt[Kt];switch(ce[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ce[0]==="enter"?ne++:ne--,Fe=void 0;break}case"lineEndingBlank":{ce[0]==="enter"&&(Br&&!Fe&&!ne&&!me&&(me=Kt),Fe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fe=void 0}if(!ne&&ce[0]==="enter"&&ce[1].type==="listItemPrefix"||ne===-1&&ce[0]==="exit"&&(ce[1].type==="listUnordered"||ce[1].type==="listOrdered")){if(Br){let Jr=Kt;for(Se=void 0;Jr--;){const Lr=yt[Jr];if(Lr[1].type==="lineEnding"||Lr[1].type==="lineEndingBlank"){if(Lr[0]==="exit")continue;Se&&(yt[Se][1].type="lineEndingBlank",sr=!0),Lr[1].type="lineEnding",Se=Jr}else if(!(Lr[1].type==="linePrefix"||Lr[1].type==="blockQuotePrefix"||Lr[1].type==="blockQuotePrefixWhitespace"||Lr[1].type==="blockQuoteMarker"||Lr[1].type==="listItemIndent"))break}me&&(!Se||me<Se)&&(Br._spread=!0),Br.end=Object.assign({},Se?yt[Se][1].start:ce[1].end),yt.splice(Se||Kt,0,["exit",Br,ce[2]]),Kt++,Rt++}if(ce[1].type==="listItemPrefix"){const Jr={type:"listItem",_spread:!1,start:Object.assign({},ce[1].start),end:void 0};Br=Jr,yt.splice(Kt,0,["enter",Jr,ce[2]]),Kt++,Rt++,me=void 0,Fe=!0}}}return yt[_t][1]._spread=sr,Rt}function s(yt,_t){return Rt;function Rt(Kt){c.call(this,yt(Kt),Kt),_t&&_t.call(this,Kt)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(yt,_t,Rt){this.stack[this.stack.length-1].children.push(yt),this.stack.push(yt),this.tokenStack.push([_t,Rt||void 0]),yt.position={start:Ga(_t.start),end:void 0}}function u(yt){return _t;function _t(Rt){yt&&yt.call(this,Rt),h.call(this,Rt)}}function h(yt,_t){const Rt=this.stack.pop(),Kt=this.tokenStack.pop();if(Kt)Kt[0].type!==yt.type&&(_t?_t.call(this,yt,Kt[0]):(Kt[1]||kN).call(this,yt,Kt[0]));else throw new Error("Cannot close `"+yt.type+"` ("+_u({start:yt.start,end:yt.end})+"): it’s not open");Rt.position.end=Ga(yt.end)}function f(){return BJ(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function m(yt){if(this.data.expectingFirstListItemValue){const _t=this.stack[this.stack.length-2];_t.start=Number.parseInt(this.sliceSerialize(yt),10),this.data.expectingFirstListItemValue=void 0}}function g(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.lang=yt}function x(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.meta=yt}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.value=yt.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.value=yt.replace(/(\r?\n|\r)$/g,"")}function _(yt){const _t=this.resume(),Rt=this.stack[this.stack.length-1];Rt.label=_t,Rt.identifier=pl(this.sliceSerialize(yt)).toLowerCase()}function S(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.title=yt}function E(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.url=yt}function L(yt){const _t=this.stack[this.stack.length-1];if(!_t.depth){const Rt=this.sliceSerialize(yt).length;_t.depth=Rt}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function R(yt){const _t=this.stack[this.stack.length-1];_t.depth=this.sliceSerialize(yt).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(yt){const Rt=this.stack[this.stack.length-1].children;let Kt=Rt[Rt.length-1];(!Kt||Kt.type!=="text")&&(Kt=Le(),Kt.position={start:Ga(yt.start),end:void 0},Rt.push(Kt)),this.stack.push(Kt)}function W(yt){const _t=this.stack.pop();_t.value+=this.sliceSerialize(yt),_t.position.end=Ga(yt.end)}function O(yt){const _t=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Rt=_t.children[_t.children.length-1];Rt.position.end=Ga(yt.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(_t.type)&&(Y.call(this,yt),W.call(this,yt))}function z(){this.data.atHardBreak=!0}function X(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.value=yt}function M(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.value=yt}function F(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.value=yt}function N(){const yt=this.stack[this.stack.length-1];if(this.data.inReference){const _t=this.data.referenceType||"shortcut";yt.type+="Reference",yt.referenceType=_t,delete yt.url,delete yt.title}else delete yt.identifier,delete yt.label;this.data.referenceType=void 0}function P(){const yt=this.stack[this.stack.length-1];if(this.data.inReference){const _t=this.data.referenceType||"shortcut";yt.type+="Reference",yt.referenceType=_t,delete yt.url,delete yt.title}else delete yt.identifier,delete yt.label;this.data.referenceType=void 0}function $(yt){const _t=this.sliceSerialize(yt),Rt=this.stack[this.stack.length-2];Rt.label=Let(_t),Rt.identifier=pl(_t).toLowerCase()}function q(){const yt=this.stack[this.stack.length-1],_t=this.resume(),Rt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Rt.type==="link"){const Kt=yt.children;Rt.children=Kt}else Rt.alt=_t}function I(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.url=yt}function G(){const yt=this.resume(),_t=this.stack[this.stack.length-1];_t.title=yt}function Z(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function Q(yt){const _t=this.resume(),Rt=this.stack[this.stack.length-1];Rt.label=_t,Rt.identifier=pl(this.sliceSerialize(yt)).toLowerCase(),this.data.referenceType="full"}function J(yt){this.data.characterReferenceType=yt.type}function tt(yt){const _t=this.sliceSerialize(yt),Rt=this.data.characterReferenceType;let Kt;Rt?(Kt=xF(_t,Rt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Kt=Lw(_t);const ne=this.stack[this.stack.length-1];ne.value+=Kt}function K(yt){const _t=this.stack.pop();_t.position.end=Ga(yt.end)}function nt(yt){W.call(this,yt);const _t=this.stack[this.stack.length-1];_t.url=this.sliceSerialize(yt)}function ct(yt){W.call(this,yt);const _t=this.stack[this.stack.length-1];_t.url="mailto:"+this.sliceSerialize(yt)}function it(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function Ct(){return{type:"inlineCode",value:""}}function kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function At(){return{type:"emphasis",children:[]}}function Et(){return{type:"heading",depth:0,children:[]}}function Ht(){return{type:"break"}}function qt(){return{type:"html",value:""}}function we(){return{type:"image",title:null,url:"",alt:null}}function Be(){return{type:"link",title:null,url:"",children:[]}}function nr(yt){return{type:"list",ordered:yt.type==="listOrdered",start:null,spread:yt._spread,children:[]}}function vr(yt){return{type:"listItem",spread:yt._spread,checked:null,children:[]}}function ar(){return{type:"paragraph",children:[]}}function De(){return{type:"strong",children:[]}}function Le(){return{type:"text",value:""}}function Cr(){return{type:"thematicBreak"}}}function Ga(t){return{line:t.line,column:t.column,offset:t.offset}}function BF(t,e){let r=-1;for(;++r<e.length;){const i=e[r];Array.isArray(i)?BF(t,i):Ret(t,i)}}function Ret(t,e){let r;for(r in e)if(AF.call(e,r))switch(r){case"canContainEols":{const i=e[r];i&&t[r].push(...i);break}case"transforms":{const i=e[r];i&&t[r].push(...i);break}case"enter":case"exit":{const i=e[r];i&&Object.assign(t[r],i);break}}}function kN(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+_u({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+_u({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+_u({start:e.start,end:e.end})+") is still open")}function Det(t){const e=this;e.parser=r;function r(i){return Net(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function Fet(t,e){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}function Iet(t,e){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
281
+ `}]}function qet(t,e){const r=e.value?e.value+`
282
+ `:"",i={},n=e.lang?e.lang.split(/\s+/):[];n.length>0&&(i.className=["language-"+n[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}function zet(t,e){const r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function jet(t,e){const r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function $et(t,e){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),n=Jl(i.toLowerCase()),s=t.footnoteOrder.indexOf(i);let o,c=t.footnoteCounts.get(i);c===void 0?(c=0,t.footnoteOrder.push(i),o=t.footnoteOrder.length):o=s+1,c+=1,t.footnoteCounts.set(i,c);const u={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(o)}]};t.patch(e,u);const h={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,h),t.applyData(e,h)}function Pet(t,e){const r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function Het(t,e){if(t.options.allowDangerousHtml){const r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}function LF(t,e){const r=e.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const n=t.all(e),s=n[0];s&&s.type==="text"?s.value="["+s.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&o.type==="text"?o.value+=i:n.push({type:"text",value:i}),n}function Uet(t,e){const r=String(e.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return LF(t,e);const n={src:Jl(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(n.title=i.title);const s={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,s),t.applyData(e,s)}function Get(t,e){const r={src:Jl(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);const i={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,i),t.applyData(e,i)}function Yet(t,e){const r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,i),t.applyData(e,i)}function Wet(t,e){const r=String(e.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return LF(t,e);const n={href:Jl(i.url||"")};i.title!==null&&i.title!==void 0&&(n.title=i.title);const s={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function Vet(t,e){const r={href:Jl(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);const i={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function Xet(t,e,r){const i=t.all(e),n=r?Qet(r):MF(e),s={},o=[];if(typeof e.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:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const f=i[c];(n||c!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
283
+ `}),f.type==="element"&&f.tagName==="p"&&!n?o.push(...f.children):o.push(f)}const u=i[i.length-1];u&&(n||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
284
+ `});const h={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,h),t.applyData(e,h)}function Qet(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const r=t.children;let i=-1;for(;!e&&++i<r.length;)e=MF(r[i])}return e}function MF(t){const e=t.spread;return e??t.children.length>1}function Zet(t,e){const r={},i=t.all(e);let n=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.start);++n<i.length;){const o=i[n];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:r,children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function Ket(t,e){const r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function Jet(t,e){const r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}function trt(t,e){const r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function ert(t,e){const r=t.all(e),i=r.shift(),n=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],o),n.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},c=Tw(e.children[1]),u=hF(e.children[e.children.length-1]);c&&u&&(o.position={start:c,end:u}),n.push(o)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(n,!0)};return t.patch(e,s),t.applyData(e,s)}function rrt(t,e,r){const i=r?r.children:void 0,s=(i?i.indexOf(e):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,c=o?o.length:e.children.length;let u=-1;const h=[];for(;++u<c;){const p=e.children[u],m={},g=o?o[u]:void 0;g&&(m.align=g);let x={type:"element",tagName:s,properties:m,children:[]};p&&(x.children=t.all(p),t.patch(p,x),x=t.applyData(p,x)),h.push(x)}const f={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,f),t.applyData(e,f)}function irt(t,e){const r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const _N=9,TN=32;function nrt(t){const e=String(t),r=/\r?\n|\r/g;let i=r.exec(e),n=0;const s=[];for(;i;)s.push(EN(e.slice(n,i.index),n>0,!0),i[0]),n=i.index+i[0].length,i=r.exec(e);return s.push(EN(e.slice(n),n>0,!1)),s.join("")}function EN(t,e,r){let i=0,n=t.length;if(e){let s=t.codePointAt(i);for(;s===_N||s===TN;)i++,s=t.codePointAt(i)}if(r){let s=t.codePointAt(n-1);for(;s===_N||s===TN;)n--,s=t.codePointAt(n-1)}return n>i?t.slice(i,n):""}function art(t,e){const r={type:"text",value:nrt(String(e.value))};return t.patch(e,r),t.applyData(e,r)}function srt(t,e){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}const ort={blockquote:Fet,break:Iet,code:qet,delete:zet,emphasis:jet,footnoteReference:$et,heading:Pet,html:Het,imageReference:Uet,image:Get,inlineCode:Yet,linkReference:Wet,link:Vet,listItem:Xet,list:Zet,paragraph:Ket,root:Jet,strong:trt,table:ert,tableCell:irt,tableRow:rrt,text:art,thematicBreak:srt,toml:Gf,yaml:Gf,definition:Gf,footnoteDefinition:Gf};function Gf(){}const NF=-1,zp=0,Eu=1,Rd=2,Ow=3,Rw=4,Dw=5,Fw=6,OF=7,RF=8,lrt=typeof self=="object"?self:globalThis,AN=(t,e)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new lrt[t](e)},crt=(t,e)=>{const r=(n,s)=>(t.set(s,n),n),i=n=>{if(t.has(n))return t.get(n);const[s,o]=e[n];switch(s){case zp:case NF:return r(o,n);case Eu:{const c=r([],n);for(const u of o)c.push(i(u));return c}case Rd:{const c=r({},n);for(const[u,h]of o)c[i(u)]=i(h);return c}case Ow:return r(new Date(o),n);case Rw:{const{source:c,flags:u}=o;return r(new RegExp(c,u),n)}case Dw:{const c=r(new Map,n);for(const[u,h]of o)c.set(i(u),i(h));return c}case Fw:{const c=r(new Set,n);for(const u of o)c.add(i(u));return c}case OF:{const{name:c,message:u}=o;return r(AN(c,u),n)}case RF:return r(BigInt(o),n);case"BigInt":return r(Object(BigInt(o)),n);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return r(new DataView(c),o)}}return r(AN(s,o),n)};return i},BN=t=>crt(new Map,t)(0),Qo="",{toString:urt}={},{keys:hrt}=Object,eu=t=>{const e=typeof t;if(e!=="object"||!t)return[zp,e];const r=urt.call(t).slice(8,-1);switch(r){case"Array":return[Eu,Qo];case"Object":return[Rd,Qo];case"Date":return[Ow,Qo];case"RegExp":return[Rw,Qo];case"Map":return[Dw,Qo];case"Set":return[Fw,Qo];case"DataView":return[Eu,r]}return r.includes("Array")?[Eu,r]:r.includes("Error")?[OF,r]:[Rd,r]},Yf=([t,e])=>t===zp&&(e==="function"||e==="symbol"),frt=(t,e,r,i)=>{const n=(o,c)=>{const u=i.push(o)-1;return r.set(c,u),u},s=o=>{if(r.has(o))return r.get(o);let[c,u]=eu(o);switch(c){case zp:{let f=o;switch(u){case"bigint":c=RF,f=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return n([NF],o)}return n([c,f],o)}case Eu:{if(u){let m=o;return u==="DataView"?m=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(o)),n([u,[...m]],o)}const f=[],p=n([c,f],o);for(const m of o)f.push(s(m));return p}case Rd:{if(u)switch(u){case"BigInt":return n([u,o.toString()],o);case"Boolean":case"Number":case"String":return n([u,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const f=[],p=n([c,f],o);for(const m of hrt(o))(t||!Yf(eu(o[m])))&&f.push([s(m),s(o[m])]);return p}case Ow:return n([c,o.toISOString()],o);case Rw:{const{source:f,flags:p}=o;return n([c,{source:f,flags:p}],o)}case Dw:{const f=[],p=n([c,f],o);for(const[m,g]of o)(t||!(Yf(eu(m))||Yf(eu(g))))&&f.push([s(m),s(g)]);return p}case Fw:{const f=[],p=n([c,f],o);for(const m of o)(t||!Yf(eu(m)))&&f.push(s(m));return p}}const{message:h}=o;return n([c,{name:u,message:h}],o)};return s},LN=(t,{json:e,lossy:r}={})=>{const i=[];return frt(!(e||r),!!e,new Map,i)(t),i},Dd=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?BN(LN(t,e)):structuredClone(t):(t,e)=>BN(LN(t,e));function drt(t,e){const r=[{type:"text",value:"↩"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}function prt(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function grt(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||drt,i=t.options.footnoteBackLabel||prt,n=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let u=-1;for(;++u<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[u]);if(!h)continue;const f=t.all(h),p=String(h.identifier).toUpperCase(),m=Jl(p.toLowerCase());let g=0;const x=[],v=t.footnoteCounts.get(p);for(;v!==void 0&&++g<=v;){x.length>0&&x.push({type:"text",value:" "});let _=typeof r=="string"?r:r(u,g);typeof _=="string"&&(_={type:"text",value:_}),x.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+m+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(u,g),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const b=f[f.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const _=b.children[b.children.length-1];_&&_.type==="text"?_.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...x)}else f.push(...x);const w={type:"element",tagName:"li",properties:{id:e+"fn-"+m},children:t.wrap(f,!0)};t.patch(h,w),c.push(w)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Dd(o),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
285
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(c,!0)},{type:"text",value:`
286
+ `}]}}const DF=(function(t){if(t==null)return brt;if(typeof t=="function")return jp(t);if(typeof t=="object")return Array.isArray(t)?mrt(t):yrt(t);if(typeof t=="string")return xrt(t);throw new Error("Expected function, string, or object as test")});function mrt(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=DF(t[r]);return jp(i);function i(...n){let s=-1;for(;++s<e.length;)if(e[s].apply(this,n))return!0;return!1}}function yrt(t){const e=t;return jp(r);function r(i){const n=i;let s;for(s in t)if(n[s]!==e[s])return!1;return!0}}function xrt(t){return jp(e);function e(r){return r&&r.type===t}}function jp(t){return e;function e(r,i,n){return!!(vrt(r)&&t.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function brt(){return!0}function vrt(t){return t!==null&&typeof t=="object"&&"type"in t}const FF=[],Crt=!0,MN=!1,wrt="skip";function Srt(t,e,r,i){let n;typeof e=="function"&&typeof r!="function"?(i=r,r=e):n=e;const s=DF(n),o=i?-1:1;c(t,void 0,[])();function c(u,h,f){const p=u&&typeof u=="object"?u:{};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 ("+(u.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=FF,x,v,b;if((!e||s(u,h,f[f.length-1]||void 0))&&(g=krt(r(u,f)),g[0]===MN))return g;if("children"in u&&u.children){const w=u;if(w.children&&g[0]!==wrt)for(v=(i?w.children.length:-1)+o,b=f.concat(w);v>-1&&v<w.children.length;){const _=w.children[v];if(x=c(_,v,b)(),x[0]===MN)return x;v=typeof x[1]=="number"?x[1]:v+o}}return g}}}function krt(t){return Array.isArray(t)?t:typeof t=="number"?[Crt,t]:t==null?FF:[t]}function IF(t,e,r,i){let n,s,o;typeof e=="function"&&typeof r!="function"?(s=void 0,o=e,n=r):(s=e,o=r,n=i),Srt(t,s,c,n);function c(u,h){const f=h[h.length-1],p=f?f.children.indexOf(u):void 0;return o(u,p,f)}}const UC={}.hasOwnProperty,_rt={};function Trt(t,e){const r=e||_rt,i=new Map,n=new Map,s=new Map,o={...ort,...r.handlers},c={all:h,applyData:Art,definitionById:i,footnoteById:n,footnoteCounts:s,footnoteOrder:[],handlers:o,one:u,options:r,patch:Ert,wrap:Lrt};return IF(t,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 u(f,p){const m=f.type,g=c.handlers[m];if(UC.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:v,...b}=f,w=Dd(b);return w.children=c.all(f),w}return Dd(f)}return(c.options.unknownHandler||Brt)(c,f,p)}function h(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=NN(x.value)),!Array.isArray(x)&&x.type==="element")){const v=x.children[0];v&&v.type==="text"&&(v.value=NN(v.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function Ert(t,e){t.position&&(e.position=oJ(t))}function Art(t,e){let r=e;if(t&&t.data){const i=t.data.hName,n=t.data.hChildren,s=t.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const o="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:o}}r.type==="element"&&s&&Object.assign(r.properties,Dd(s)),"children"in r&&r.children&&n!==null&&n!==void 0&&(r.children=n)}return r}function Brt(t,e){const r=e.data||{},i="value"in e&&!(UC.call(r,"hProperties")||UC.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function Lrt(t,e){const r=[];let i=-1;for(e&&r.push({type:"text",value:`
287
+ `});++i<t.length;)i&&r.push({type:"text",value:`
288
+ `}),r.push(t[i]);return e&&t.length>0&&r.push({type:"text",value:`
289
+ `}),r}function NN(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}function ON(t,e){const r=Trt(t,e),i=r.one(t,void 0),n=grt(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return n&&s.children.push({type:"text",value:`
290
+ `},n),s}function Mrt(t,e){return t&&"run"in t?async function(r,i){const n=ON(r,{file:i,...e});await t.run(n,i)}:function(r,i){return ON(r,{file:i,...t||e})}}function RN(t){if(t)throw t}var Qv,DN;function Nrt(){if(DN)return Qv;DN=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},s=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var f=t.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!f&&!p)return!1;var m;for(m in h);return typeof m>"u"||t.call(h,m)},o=function(h,f){r&&f.name==="__proto__"?r(h,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):h[f.name]=f.newValue},c=function(h,f){if(f==="__proto__")if(t.call(h,f)){if(i)return i(h,f).value}else return;return h[f]};return Qv=function u(){var h,f,p,m,g,x,v=arguments[0],b=1,w=arguments.length,_=!1;for(typeof v=="boolean"&&(_=v,v=arguments[1]||{},b=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});b<w;++b)if(h=arguments[b],h!=null)for(f in h)p=c(v,f),m=c(h,f),v!==m&&(_&&m&&(s(m)||(g=n(m)))?(g?(g=!1,x=p&&n(p)?p:[]):x=p&&s(p)?p:{},o(v,{name:f,newValue:u(_,x,m)})):typeof m<"u"&&o(v,{name:f,newValue:m}));return v},Qv}var Ort=Nrt();const Zv=Gl(Ort);function GC(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Rrt(){const t=[],e={run:r,use:i};return e;function r(...n){let s=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...n);function c(u,...h){const f=t[++s];let p=-1;if(u){o(u);return}for(;++p<n.length;)(h[p]===null||h[p]===void 0)&&(h[p]=n[p]);n=h,f?Drt(f,c)(...h):o(null,...h)}}function i(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}}function Drt(t,e){let r;return i;function i(...o){const c=t.length>o.length;let u;c&&o.push(n);try{u=t.apply(this,o)}catch(h){const f=h;if(c&&r)throw f;return n(f)}c||(u&&u.then&&typeof u.then=="function"?u.then(s,n):u instanceof Error?n(u):s(u))}function n(o,...c){r||(r=!0,e(o,...c))}function s(o){n(null,o)}}const Sn={basename:Frt,dirname:Irt,extname:qrt,join:zrt,sep:"/"};function Frt(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');dh(t);let r=0,i=-1,n=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;n--;)if(t.codePointAt(n)===47){if(s){r=n+1;break}}else i<0&&(s=!0,i=n+1);return i<0?"":t.slice(r,i)}if(e===t)return"";let o=-1,c=e.length-1;for(;n--;)if(t.codePointAt(n)===47){if(s){r=n+1;break}}else o<0&&(s=!0,o=n+1),c>-1&&(t.codePointAt(n)===e.codePointAt(c--)?c<0&&(i=n):(c=-1,i=o));return r===i?i=o:i<0&&(i=t.length),t.slice(r,i)}function Irt(t){if(dh(t),t.length===0)return".";let e=-1,r=t.length,i;for(;--r;)if(t.codePointAt(r)===47){if(i){e=r;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function qrt(t){dh(t);let e=t.length,r=-1,i=0,n=-1,s=0,o;for(;e--;){const c=t.codePointAt(e);if(c===47){if(o){i=e+1;break}continue}r<0&&(o=!0,r=e+1),c===46?n<0?n=e:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||r<0||s===0||s===1&&n===r-1&&n===i+1?"":t.slice(n,r)}function zrt(...t){let e=-1,r;for(;++e<t.length;)dh(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":jrt(r)}function jrt(t){dh(t);const e=t.codePointAt(0)===47;let r=$rt(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function $rt(t,e){let r="",i=0,n=-1,s=0,o=-1,c,u;for(;++o<=t.length;){if(o<t.length)c=t.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(n===o-1||s===1))if(n!==o-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",i=0):(r=r.slice(0,u),i=r.length-1-r.lastIndexOf("/")),n=o,s=0;continue}}else if(r.length>0){r="",i=0,n=o,s=0;continue}}e&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+t.slice(n+1,o):r=t.slice(n+1,o),i=o-n-1;n=o,s=0}else c===46&&s>-1?s++:s=-1}return r}function dh(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Prt={cwd:Hrt};function Hrt(){return"/"}function YC(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Urt(t){if(typeof t=="string")t=new URL(t);else if(!YC(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Grt(t)}function Grt(t){if(t.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 e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const i=e.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(e)}const Kv=["history","path","basename","stem","extname","dirname"];class qF{constructor(e){let r;e?YC(e)?r={path:e}:typeof e=="string"||Yrt(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":Prt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Kv.length;){const s=Kv[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let n;for(n in r)Kv.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?Sn.basename(this.path):void 0}set basename(e){tC(e,"basename"),Jv(e,"basename"),this.path=Sn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Sn.dirname(this.path):void 0}set dirname(e){FN(this.basename,"dirname"),this.path=Sn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Sn.extname(this.path):void 0}set extname(e){if(Jv(e,"extname"),FN(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Sn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){YC(e)&&(e=Urt(e)),tC(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Sn.basename(this.path,this.extname):void 0}set stem(e){tC(e,"stem"),Jv(e,"stem"),this.path=Sn.join(this.dirname||"",e+(this.extname||""))}fail(e,r,i){const n=this.message(e,r,i);throw n.fatal=!0,n}info(e,r,i){const n=this.message(e,r,i);return n.fatal=void 0,n}message(e,r,i){const n=new Hr(e,r,i);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Jv(t,e){if(t&&t.includes(Sn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Sn.sep+"`")}function tC(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function FN(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function Yrt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Wrt=(function(t){const i=this.constructor.prototype,n=i[t],s=function(){return n.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),Vrt={}.hasOwnProperty;class Iw extends Wrt{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=Rrt()}copy(){const e=new Iw;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];e.use(...i)}return e.data(Zv(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(iC("data",this.frozen),this.namespace[e]=r,this):Vrt.call(this.namespace,e)&&this.namespace[e]||void 0:e?(iC("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=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(e,...i);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=Wf(e),i=this.parser||this.Parser;return eC("parse",i),i(String(r),r)}process(e,r){const i=this;return this.freeze(),eC("process",this.parser||this.Parser),rC("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(s,o){const c=Wf(e),u=i.parse(c);i.run(u,c,function(f,p,m){if(f||!p||!m)return h(f);const g=p,x=i.stringify(g,m);Zrt(x)?m.value=x:m.result=x,h(f,m)});function h(f,p){f||!p?o(f):s?s(p):r(void 0,p)}}}processSync(e){let r=!1,i;return this.freeze(),eC("processSync",this.parser||this.Parser),rC("processSync",this.compiler||this.Compiler),this.process(e,n),qN("processSync","process",r),i;function n(s,o){r=!0,RN(s),i=o}}run(e,r,i){IN(e),this.freeze();const n=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(o,c){const u=Wf(r);n.run(e,u,h);function h(f,p,m){const g=p||e;f?c(f):o?o(g):i(void 0,g,m)}}}runSync(e,r){let i=!1,n;return this.run(e,r,s),qN("runSync","run",i),n;function s(o,c){RN(o),n=c,i=!0}}stringify(e,r){this.freeze();const i=Wf(r),n=this.compiler||this.Compiler;return rC("stringify",n),IN(e),n(e,i)}use(e,...r){const i=this.attachers,n=this.namespace;if(iC("use",this.frozen),e!=null)if(typeof e=="function")u(e,r);else if(typeof e=="object")Array.isArray(e)?c(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[f,...p]=h;u(f,p)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))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(h.plugins),h.settings&&(n.settings=Zv(!0,n.settings,h.settings))}function c(h){let f=-1;if(h!=null)if(Array.isArray(h))for(;++f<h.length;){const p=h[f];s(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,f){let p=-1,m=-1;for(;++p<i.length;)if(i[p][0]===h){m=p;break}if(m===-1)i.push([h,...f]);else if(f.length>0){let[g,...x]=f;const v=i[m][1];GC(v)&&GC(g)&&(g=Zv(!0,v,g)),i[m]=[h,g,...x]}}}}const Xrt=new Iw().freeze();function eC(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function rC(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function iC(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function IN(t){if(!GC(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function qN(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Wf(t){return Qrt(t)?t:new qF(t)}function Qrt(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Zrt(t){return typeof t=="string"||Krt(t)}function Krt(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Jrt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zN=[],jN={allowDangerousHtml:!0},tit=/^(https?|ircs?|mailto|xmpp)$/i,eit=[{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:"className",id:"remove-classname"},{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 zF(t){const e=rit(t),r=iit(t);return nit(e.runSync(e.parse(r),r),t)}function rit(t){const e=t.rehypePlugins||zN,r=t.remarkPlugins||zN,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...jN}:jN;return Xrt().use(Det).use(r).use(Mrt,i).use(e)}function iit(t){const e=t.children||"",r=new qF;return typeof e=="string"&&(r.value=e),r}function nit(t,e){const r=e.allowedElements,i=e.allowElement,n=e.components,s=e.disallowedElements,o=e.skipHtml,c=e.unwrapDisallowed,u=e.urlTransform||ait;for(const f of eit)Object.hasOwn(e,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Jrt+f.id,void 0);return IF(t,h),fJ(t,{Fragment:T.Fragment,components:n,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function h(f,p,m){if(f.type==="raw"&&m&&typeof p=="number")return o?m.children.splice(p,1):m.children[p]={type:"text",value:f.value},p;if(f.type==="element"){let g;for(g in Wv)if(Object.hasOwn(Wv,g)&&Object.hasOwn(f.properties,g)){const x=f.properties[g],v=Wv[g];(v===null||v.includes(f.tagName))&&(f.properties[g]=u(String(x||""),g,f))}}if(f.type==="element"){let g=r?!r.includes(f.tagName):s?s.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 ait(t){const e=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("#"),n=t.indexOf("/");return e===-1||n!==-1&&e>n||r!==-1&&e>r||i!==-1&&e>i||tit.test(t.slice(0,e))?t:""}const Fd={REQUIREMENT:"text-blue-400 border-blue-400",USE_CASE:"text-indigo-400 border-indigo-400",DESIGN:"text-purple-400 border-purple-400",COMPONENT:"text-amber-400 border-amber-400",CODE_ENTITY:"text-emerald-400 border-emerald-400",TEST:"text-rose-400 border-rose-400",DOCUMENTATION:"text-slate-400 border-slate-400",INCIDENT:"text-red-400 border-red-400",INFRASTRUCTURE:"text-cyan-400 border-cyan-400",DEPLOYMENT:"text-sky-400 border-sky-400",MONITORING:"text-orange-400 border-orange-400",MAINTENANCE:"text-violet-400 border-violet-400",PROJECT:"text-stone-400 border-stone-400",EPIC:"text-indigo-500 border-indigo-500",FEATURE:"text-blue-500 border-blue-500",BUSINESS_RULE:"text-teal-400 border-teal-400",DECISION:"text-pink-400 border-pink-400",TEST_CASE:"text-rose-500 border-rose-500",CHANGE:"text-lime-400 border-lime-400",BUG:"text-red-500 border-red-500",RISK:"text-fuchsia-400 border-fuchsia-400",GLOSSARY_TERM:"text-gray-400 border-gray-400",API:"text-emerald-500 border-emerald-500",DATABASE_ENTITY:"text-orange-500 border-orange-500",SYSTEM_VERSION:"text-yellow-500 border-yellow-500",VERSION:"text-teal-500 border-teal-500",LIBRARY:"text-blue-400 border-blue-400",ENVIRONMENT:"text-indigo-400 border-indigo-400",CHECK:"text-red-400 border-red-400",PROCESS:"text-fuchsia-400 border-fuchsia-400",PIPELINE:"text-sky-400 border-sky-400"},sit=({content:t})=>T.jsx("div",{className:"text-[11px] leading-relaxed opacity-60 h-8 overflow-hidden text-ellipsis line-clamp-2 [&_*]:m-0 [&_*]:p-0",children:T.jsx(zF,{components:{h1:({children:e})=>T.jsx("span",{className:"font-semibold",children:e}),h2:({children:e})=>T.jsx("span",{className:"font-semibold",children:e}),h3:({children:e})=>T.jsx("span",{className:"font-semibold",children:e}),h4:({children:e})=>T.jsx("span",{className:"font-semibold",children:e}),p:({children:e})=>T.jsx("span",{children:e}),ul:({children:e})=>T.jsx("span",{children:e}),ol:({children:e})=>T.jsx("span",{children:e}),li:({children:e})=>T.jsxs("span",{children:[e," "]}),strong:({children:e})=>T.jsx("strong",{className:"font-semibold text-white/80",children:e}),em:({children:e})=>T.jsx("em",{className:"italic",children:e}),code:({children:e})=>T.jsx("code",{className:"font-mono text-emerald-400/80",children:e}),a:({children:e})=>T.jsx("span",{className:"text-blue-300/80 underline",children:e})},children:t})}),oit=({data:t,selected:e})=>{var s,o;const r=Fd[t.type]||"text-white/40 border-white/40",i=t.dimmed,n=t.isOrphan;return T.jsxs("div",{className:`p-4 shadow-xl border bg-[#151515] w-[260px] cursor-pointer transition-all duration-300
291
+ ${e?"ring-1 ring-white/50 border-white/50 z-10":"border-white/10 hover:border-white/30"}
292
+ ${i?"opacity-30 grayscale saturate-0":"opacity-100"}
293
+ ${n?"border-red-500/50":"border-white/10"}
294
+ border-l-[3px]`,style:{borderLeftColor:n?"#ef4444":"currentColor"},children:[T.jsx(Va,{type:"target",position:jt.Top,id:"t-top",className:`w-2 h-2 rounded-none ${i?"opacity-0":"bg-emerald-500/50 border-0"}`,style:{left:"30%"}}),T.jsx(Va,{type:"source",position:jt.Top,id:"s-top",className:`w-2 h-2 rounded-none ${i?"opacity-0":"bg-blue-500/50 border-0"}`,style:{left:"70%"}}),T.jsxs("div",{className:`flex justify-between items-start mb-3 ${r}`,children:[T.jsxs("div",{className:"flex flex-col gap-0.5",children:[T.jsxs("div",{className:"flex items-center gap-1.5",children:[T.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest",children:t.type}),n&&T.jsx("div",{className:"text-red-500",title:"Orphan Artifact (No relationships)",children:T.jsx(ql,{size:10})})]}),t.subType&&T.jsx("span",{className:"text-[8px] font-sans uppercase tracking-wider opacity-60",children:t.subType}),t.layer&&T.jsx("span",{className:"text-[7px] font-mono tracking-wider opacity-40",children:t.layer})]}),T.jsx("span",{className:"text-[10px] font-mono opacity-60 shrink-0 ml-2 border border-white/10 px-1",children:t.id})]}),T.jsx("div",{className:"font-serif text-[#e0e0e0] text-sm mb-2 leading-tight",children:t.title}),T.jsxs("div",{className:"flex flex-col gap-1",children:[T.jsx(sit,{content:t.description||""}),((s=t.ownership)==null?void 0:s.owner)&&T.jsxs("div",{className:"text-[8px] text-emerald-500 font-mono",children:["OWNER: ",t.ownership.owner]}),((o=t.ownership)==null?void 0:o.team)&&T.jsxs("div",{className:"text-[8px] text-blue-400 font-mono",children:["TEAM: ",t.ownership.team]})]}),T.jsx(Va,{type:"target",position:jt.Bottom,id:"t-bot",className:`w-2 h-2 rounded-none ${i?"opacity-0":"bg-emerald-500/50 border-0"}`,style:{left:"70%"}}),T.jsx(Va,{type:"source",position:jt.Bottom,id:"s-bot",className:`w-2 h-2 rounded-none ${i?"opacity-0":"bg-blue-500/50 border-0"}`,style:{left:"30%"}})]})},lit={artifact:oit},WC=260,VC=140,cit=(t,e,r="TB")=>{const i=new tN.graphlib.Graph;return i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:r,align:"UL",edgesep:120,ranksep:160,nodesep:100}),t.forEach(s=>{s.hidden||i.setNode(s.id,{width:WC,height:VC})}),e.forEach(s=>{s.hidden||i.setEdge(s.source,s.target)}),tN.layout(i),{nodes:t.map(s=>{if(s.hidden)return{...s,position:{x:0,y:0}};const o=i.node(s.id);return{...s,position:{x:o.x-WC/2,y:o.y-VC/2}}}),edges:e}},uit=()=>{const[t,e]=lt.useState(!1);return T.jsx(Yl,{position:"bottom-center",className:"m-4 z-50",children:T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/10 p-3 shadow-2xl rounded-md flex flex-col gap-2 w-48",children:[T.jsxs("div",{className:"flex items-center justify-between cursor-pointer",onClick:()=>e(!t),children:[T.jsx("span",{className:"text-[10px] uppercase font-bold tracking-widest text-white/50 hover:text-white transition-colors",children:"Legend"}),t?T.jsx(jZ,{size:12,className:"text-white/50"}):T.jsx(HZ,{size:12,className:"text-white/50"})]}),t&&T.jsxs("div",{className:"flex flex-col gap-3 pt-2 border-t border-white/10 max-h-[60vh] overflow-y-auto",style:{scrollbarWidth:"thin"},children:[T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsx("div",{className:"text-[9px] uppercase font-bold text-white/30",children:"Relation Strength"}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-4 h-[2px] bg-[#f87171]"}),T.jsx("span",{className:"text-[9px] text-white/70 font-mono",children:"STRONG (Solid)"})]}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-4 h-[2px]",style:{borderTop:"2px dashed #38bdf8"}}),T.jsx("span",{className:"text-[9px] text-white/70 font-mono",children:"MEDIUM (Dashed)"})]}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-4 h-[1px]",style:{borderTop:"2px dotted #94a3b8"}}),T.jsx("span",{className:"text-[9px] text-white/70 font-mono",children:"WEAK (Dotted)"})]})]}),T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsx("div",{className:"text-[9px] uppercase font-bold text-white/30",children:"Node Connectors"}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-2 h-2 rounded bg-blue-500/50"}),T.jsx("span",{className:"text-[9px] text-white/70 font-mono",children:"Outputs (Source)"})]}),T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:"w-2 h-2 rounded bg-emerald-500/50"}),T.jsx("span",{className:"text-[9px] text-white/70 font-mono",children:"Inputs (Target)"})]})]}),T.jsxs("div",{className:"flex flex-col gap-1.5",children:[T.jsx("div",{className:"text-[9px] uppercase font-bold text-white/30",children:"Artifact Types"}),Object.entries(Fd).map(([r,i])=>T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("div",{className:`w-2 h-2 rounded-full border border-current bg-current ${i.split(" ")[0]}`}),T.jsx("span",{className:`text-[9px] font-mono ${i.split(" ")[0]}`,children:r})]},r))]})]})]})})},hit=()=>{const{fullGraph:t,currentSubgraph:e,selectedArtifactId:r,setSelectedArtifact:i,setView:n,settings:s,globalFilters:o,setGlobalFilter:c}=ns(),{setCenter:u}=xp(),[h,f,p]=RW([]),m=lt.useMemo(()=>{if(!t)return new Set;const M=new Set;t.relations.forEach(N=>{M.add(N.from),M.add(N.to)});const F=new Set;return t.artifacts.forEach(N=>{M.has(N.id)||F.add(N.id)}),F},[t]),[g,x]=lt.useState(""),[v,b]=lt.useState(!1),w=o.layer,_=o.owner,S=o.team,E=M=>c("layer",M),L=M=>c("owner",M),A=M=>c("team",M),R=lt.useMemo(()=>{if(!t||!t.artifacts)return{layers:[],owners:[],teams:[]};const M=Array.from(new Set(t.artifacts.map(P=>P.layer).filter(Boolean))),F=Array.from(new Set(t.artifacts.map(P=>{var $;return($=P.ownership)==null?void 0:$.owner}).filter(Boolean))),N=Array.from(new Set(t.artifacts.map(P=>{var $;return($=P.ownership)==null?void 0:$.team}).filter(Boolean)));return{layers:M,owners:F,teams:N}},[t]),j=lt.useMemo(()=>e?e.artifacts.filter(M=>{if(!g)return!0;const F=g.toLowerCase();return M.title.toLowerCase().includes(F)||M.type.toLowerCase().includes(F)||M.subType&&M.subType.toLowerCase().includes(F)||M.id.toLowerCase().includes(F)}):[],[e,g]);lt.useEffect(()=>{if(r&&h.length>0){const M=h.find(F=>F.id===r);M&&u(M.position.x+WC/2,M.position.y+VC/2,{zoom:1,duration:800})}},[r,h,u]);const[Y,W,O]=DW([]);lt.useEffect(()=>{if(!e)return;let M=new Set,F=new Set;if(r){M.add(r);let q=new Set([r]);const I=s.graphFocusDepth===0?1/0:s.graphFocusDepth;for(let G=0;G<I;G++){let Z=new Set,H=new Set;if(e.relations.forEach(Q=>{(q.has(Q.from)||q.has(Q.to))&&(H.add(Q.id),M.has(Q.from)||Z.add(Q.from),M.has(Q.to)||Z.add(Q.to))}),Z.size===0)break;Z.forEach(Q=>M.add(Q)),H.forEach(Q=>F.add(Q)),q=Z}}let N=e.artifacts.map(q=>{var J,tt;const I=r===q.id;let G=!1;r&&(G=M.has(q.id));const H=w!=="ALL"&&q.layer!==w||_!=="ALL"&&((J=q.ownership)==null?void 0:J.owner)!==_||S!=="ALL"&&((tt=q.ownership)==null?void 0:tt.team)!==S||r!==null&&!I&&!G,Q=m.has(q.id);return{id:q.id,type:"artifact",position:{x:0,y:0},data:{...q,dimmed:H,isOrphan:Q}}}),P=e.relations.map(q=>{var nt,ct,it,dt;let I=!0;r&&(I=F.has(q.id));const G=e.artifacts.find(Ct=>Ct.id===q.from),Z=e.artifacts.find(Ct=>Ct.id===q.to),Q=w!=="ALL"&&((G==null?void 0:G.layer)!==w||(Z==null?void 0:Z.layer)!==w)||_!=="ALL"&&(((nt=G==null?void 0:G.ownership)==null?void 0:nt.owner)!==_||((ct=Z==null?void 0:Z.ownership)==null?void 0:ct.owner)!==_)||S!=="ALL"&&(((it=G==null?void 0:G.ownership)==null?void 0:it.team)!==S||((dt=Z==null?void 0:Z.ownership)==null?void 0:dt.team)!==S)||r!==null&&!I,J=q.strength==="WEAK",tt=q.strength==="STRONG";let K="#38bdf8";return tt&&(K="#f87171"),J&&(K="#94a3b8"),Q&&(K="rgba(255,255,255,0.05)"),{id:q.id,source:q.from,target:q.to,sourceHandle:"s-bot",targetHandle:"t-top",label:q.category?`${q.type} (${q.category})`:q.type,type:"default",animated:r!==null&&I,markerEnd:{type:ju.ArrowClosed,color:K},style:{stroke:K,strokeWidth:Q?1:r&&I?tt?3:J?1.5:2.5:tt?2:J?1:1.5,strokeDasharray:J?"2 4":tt?"0":"5",transition:"all 0.3s ease"},labelStyle:{fill:Q?"transparent":"rgba(255,255,255,0.8)",fontSize:8,fontWeight:tt?700:400,letterSpacing:"1px"},labelBgStyle:{fill:Q?"transparent":"#111111",opacity:Q?0:1,stroke:Q?"transparent":"rgba(255,255,255,0.1)",strokeWidth:1},labelBgBorderRadius:4,labelBgPadding:[8,4]}});const $=cit(N,P,"TB");f($.nodes),W($.edges)},[e,r,s.graphFocusDepth,f,W,m,w,_,S]);const z=lt.useCallback((M,F)=>{i(F.id),b(!1)},[i]),X=lt.useCallback(()=>{i(null),b(!1)},[i]);return e?T.jsx("div",{className:"h-full w-full bg-[#0a0a0a] relative",children:T.jsxs(OW,{nodes:h,edges:Y,onNodesChange:p,onEdgesChange:O,onNodeClick:z,onPaneClick:X,nodeTypes:lit,fitView:!0,colorMode:"dark",minZoom:.2,elevateNodesOnSelect:!0,children:[T.jsx(uit,{}),T.jsx(Yl,{position:"top-left",className:"m-4 z-50",children:T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/10 p-3 shadow-2xl w-80 flex flex-col gap-2 rounded-md transition-all",children:[T.jsxs("div",{className:"flex items-center gap-3 border-b border-white/5 pb-2",children:[T.jsx(Uu,{size:16,className:"text-white/40 shrink-0"}),T.jsx("input",{type:"text",placeholder:"Search by Type, Title or ID...",className:"bg-transparent border-none text-xs text-white outline-none w-full placeholder:text-white/20 font-sans",value:g,onChange:M=>{x(M.target.value),b(!0)},onFocus:()=>b(!0)}),r&&T.jsx("button",{onClick:()=>{i(null),x(""),b(!1)},className:"text-white/40 hover:text-emerald-400 transition-colors shrink-0 p-1",title:"Clear Selection",children:T.jsx(DK,{size:14})})]}),v&&T.jsxs("div",{className:"max-h-[50vh] overflow-y-auto flex flex-col mt-1 space-y-1 pr-1",style:{scrollbarWidth:"thin"},children:[m.size>0&&!g&&T.jsxs("button",{onClick:()=>n("orphans"),className:"flex items-center gap-2 p-2 bg-red-500/10 border border-red-500/20 text-red-400 text-[10px] rounded mb-2 hover:bg-red-500/20 transition-all uppercase tracking-widest font-bold",children:[T.jsx(ql,{size:14}),m.size," Orphan Artifacts Found"]}),j.length===0?T.jsx("div",{className:"text-xs text-white/40 p-2 italic",children:"No artifacts found."}):j.map(M=>{var F,N;return T.jsxs("button",{className:`text-left text-xs p-2 hover:bg-white/10 border-l-[3px] transition-colors flex flex-col gap-1 rounded-r-md
295
+ ${r===M.id?`${((F=Fd[M.type])==null?void 0:F.split(" ")[1])||"border-emerald-500"} bg-white/5`:"border-transparent hover:border-white/30"}`,onClick:()=>{i(M.id),b(!1)},children:[T.jsxs("div",{className:"text-[9px] uppercase tracking-widest text-[#e0e0e0] opacity-50 font-bold flex justify-between",children:[T.jsxs("div",{className:"flex flex-col gap-0.5",children:[T.jsx("span",{children:M.type}),M.subType&&T.jsx("span",{className:"text-[8px] opacity-70",children:M.subType})]}),T.jsx("span",{className:"font-mono",children:M.id})]}),T.jsx("div",{className:`truncate font-serif text-sm ${((N=Fd[M.type])==null?void 0:N.split(" ")[0])||"text-emerald-400"}`,children:M.title})]},M.id)})]}),T.jsxs("div",{className:"flex gap-1 pt-2",children:[T.jsxs("select",{value:w,onChange:M=>E(M.target.value),className:`bg-transparent py-1 px-1 text-[8px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${w!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"LAYER"}),R.layers.map(M=>T.jsx("option",{value:M,className:"bg-[#0c0c0c] text-white font-normal",children:M},M))]}),T.jsxs("select",{value:_,onChange:M=>L(M.target.value),className:`bg-transparent py-1 px-1 text-[8px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${_!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"OWNER"}),R.owners.map(M=>T.jsx("option",{value:M,className:"bg-[#0c0c0c] text-white font-normal",children:M},M))]}),T.jsxs("select",{value:S,onChange:M=>A(M.target.value),className:`bg-transparent py-1 px-1 text-[8px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${S!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"TEAM"}),R.teams.map(M=>T.jsx("option",{value:M,className:"bg-[#0c0c0c] text-white font-normal",children:M},M))]})]})]})}),T.jsx(sV,{style:{backgroundColor:"#0c0c0c",border:"1px solid rgba(255,255,255,0.1)"},maskColor:"rgba(0,0,0,0.5)",nodeColor:"#333"}),T.jsx(WW,{style:{backgroundColor:"#151515",border:"1px solid rgba(255,255,255,0.1)",fill:"#fff"}}),T.jsx(jW,{color:"#ffffff",gap:20,size:1,style:{opacity:.03}})]})}):T.jsx("div",{className:"p-8 text-white/50",children:"Loading graph..."})},fit=()=>T.jsx(WR,{children:T.jsx(hit,{})}),dit="modulepreload",pit=function(t){return"/"+t},$N={},ge=function(e,r,i){let n=Promise.resolve();if(r&&r.length>0){let o=function(h){return Promise.all(h.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]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));n=o(r.map(h=>{if(h=pit(h),h in $N)return;$N[h]=!0;const f=h.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const m=document.createElement("link");if(m.rel=f?"stylesheet":dit,f||(m.as="script"),m.crossOrigin="",m.href=h,u&&m.setAttribute("nonce",u),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 ${h}`)))})}))}function s(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return n.then(o=>{for(const c of o||[])c.status==="rejected"&&s(c.reason);return e().catch(s)})};var fd={exports:{}},git=fd.exports,PN;function mit(){return PN||(PN=1,(function(t,e){(function(r,i){t.exports=i()})(git,(function(){var r=1e3,i=6e4,n=36e5,s="millisecond",o="second",c="minute",u="hour",h="day",f="week",p="month",m="quarter",g="year",x="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={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(M){var F=["th","st","nd","rd"],N=M%100;return"["+M+(F[(N-20)%10]||F[N]||F[0])+"]"}},S=function(M,F,N){var P=String(M);return!P||P.length>=F?M:""+Array(F+1-P.length).join(N)+M},E={s:S,z:function(M){var F=-M.utcOffset(),N=Math.abs(F),P=Math.floor(N/60),$=N%60;return(F<=0?"+":"-")+S(P,2,"0")+":"+S($,2,"0")},m:function M(F,N){if(F.date()<N.date())return-M(N,F);var P=12*(N.year()-F.year())+(N.month()-F.month()),$=F.clone().add(P,p),q=N-$<0,I=F.clone().add(P+(q?-1:1),p);return+(-(P+(N-$)/(q?$-I:I-$))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:p,y:g,w:f,d:h,D:x,h:u,m:c,s:o,ms:s,Q:m}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},L="en",A={};A[L]=_;var R="$isDayjsObject",j=function(M){return M instanceof z||!(!M||!M[R])},Y=function M(F,N,P){var $;if(!F)return L;if(typeof F=="string"){var q=F.toLowerCase();A[q]&&($=q),N&&(A[q]=N,$=q);var I=F.split("-");if(!$&&I.length>1)return M(I[0])}else{var G=F.name;A[G]=F,$=G}return!P&&$&&(L=$),$||!P&&L},W=function(M,F){if(j(M))return M.clone();var N=typeof F=="object"?F:{};return N.date=M,N.args=arguments,new z(N)},O=E;O.l=Y,O.i=j,O.w=function(M,F){return W(M,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=(function(){function M(N){this.$L=Y(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[R]=!0}var F=M.prototype;return F.parse=function(N){this.$d=(function(P){var $=P.date,q=P.utc;if($===null)return new Date(NaN);if(O.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var I=$.match(b);if(I){var G=I[2]-1||0,Z=(I[7]||"0").substring(0,3);return q?new Date(Date.UTC(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,Z)):new Date(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,Z)}}return new Date($)})(N),this.init()},F.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},F.$utils=function(){return O},F.isValid=function(){return this.$d.toString()!==v},F.isSame=function(N,P){var $=W(N);return this.startOf(P)<=$&&$<=this.endOf(P)},F.isAfter=function(N,P){return W(N)<this.startOf(P)},F.isBefore=function(N,P){return this.endOf(P)<W(N)},F.$g=function(N,P,$){return O.u(N)?this[P]:this.set($,N)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(N,P){var $=this,q=!!O.u(P)||P,I=O.p(N),G=function(ct,it){var dt=O.w($.$u?Date.UTC($.$y,it,ct):new Date($.$y,it,ct),$);return q?dt:dt.endOf(h)},Z=function(ct,it){return O.w($.toDate()[ct].apply($.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(it)),$)},H=this.$W,Q=this.$M,J=this.$D,tt="set"+(this.$u?"UTC":"");switch(I){case g:return q?G(1,0):G(31,11);case p:return q?G(1,Q):G(0,Q+1);case f:var K=this.$locale().weekStart||0,nt=(H<K?H+7:H)-K;return G(q?J-nt:J+(6-nt),Q);case h:case x:return Z(tt+"Hours",0);case u:return Z(tt+"Minutes",1);case c:return Z(tt+"Seconds",2);case o:return Z(tt+"Milliseconds",3);default:return this.clone()}},F.endOf=function(N){return this.startOf(N,!1)},F.$set=function(N,P){var $,q=O.p(N),I="set"+(this.$u?"UTC":""),G=($={},$[h]=I+"Date",$[x]=I+"Date",$[p]=I+"Month",$[g]=I+"FullYear",$[u]=I+"Hours",$[c]=I+"Minutes",$[o]=I+"Seconds",$[s]=I+"Milliseconds",$)[q],Z=q===h?this.$D+(P-this.$W):P;if(q===p||q===g){var H=this.clone().set(x,1);H.$d[G](Z),H.init(),this.$d=H.set(x,Math.min(this.$D,H.daysInMonth())).$d}else G&&this.$d[G](Z);return this.init(),this},F.set=function(N,P){return this.clone().$set(N,P)},F.get=function(N){return this[O.p(N)]()},F.add=function(N,P){var $,q=this;N=Number(N);var I=O.p(P),G=function(Q){var J=W(q);return O.w(J.date(J.date()+Math.round(Q*N)),q)};if(I===p)return this.set(p,this.$M+N);if(I===g)return this.set(g,this.$y+N);if(I===h)return G(1);if(I===f)return G(7);var Z=($={},$[c]=i,$[u]=n,$[o]=r,$)[I]||1,H=this.$d.getTime()+N*Z;return O.w(H,this)},F.subtract=function(N,P){return this.add(-1*N,P)},F.format=function(N){var P=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var q=N||"YYYY-MM-DDTHH:mm:ssZ",I=O.z(this),G=this.$H,Z=this.$m,H=this.$M,Q=$.weekdays,J=$.months,tt=$.meridiem,K=function(it,dt,Ct,kt){return it&&(it[dt]||it(P,q))||Ct[dt].slice(0,kt)},nt=function(it){return O.s(G%12||12,it,"0")},ct=tt||function(it,dt,Ct){var kt=it<12?"AM":"PM";return Ct?kt.toLowerCase():kt};return q.replace(w,(function(it,dt){return dt||(function(Ct){switch(Ct){case"YY":return String(P.$y).slice(-2);case"YYYY":return O.s(P.$y,4,"0");case"M":return H+1;case"MM":return O.s(H+1,2,"0");case"MMM":return K($.monthsShort,H,J,3);case"MMMM":return K(J,H);case"D":return P.$D;case"DD":return O.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return K($.weekdaysMin,P.$W,Q,2);case"ddd":return K($.weekdaysShort,P.$W,Q,3);case"dddd":return Q[P.$W];case"H":return String(G);case"HH":return O.s(G,2,"0");case"h":return nt(1);case"hh":return nt(2);case"a":return ct(G,Z,!0);case"A":return ct(G,Z,!1);case"m":return String(Z);case"mm":return O.s(Z,2,"0");case"s":return String(P.$s);case"ss":return O.s(P.$s,2,"0");case"SSS":return O.s(P.$ms,3,"0");case"Z":return I}return null})(it)||I.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(N,P,$){var q,I=this,G=O.p(P),Z=W(N),H=(Z.utcOffset()-this.utcOffset())*i,Q=this-Z,J=function(){return O.m(I,Z)};switch(G){case g:q=J()/12;break;case p:q=J();break;case m:q=J()/3;break;case f:q=(Q-H)/6048e5;break;case h:q=(Q-H)/864e5;break;case u:q=Q/n;break;case c:q=Q/i;break;case o:q=Q/r;break;default:q=Q}return $?q:O.a(q)},F.daysInMonth=function(){return this.endOf(p).$D},F.$locale=function(){return A[this.$L]},F.locale=function(N,P){if(!N)return this.$L;var $=this.clone(),q=Y(N,P,!0);return q&&($.$L=q),$},F.clone=function(){return O.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},M})(),X=z.prototype;return W.prototype=X,[["$ms",s],["$s",o],["$m",c],["$H",u],["$W",h],["$M",p],["$y",g],["$D",x]].forEach((function(M){X[M[1]]=function(F){return this.$g(F,M[0],M[1])}})),W.extend=function(M,F){return M.$i||(M(F,z,W),M.$i=!0),W},W.locale=Y,W.isDayjs=j,W.unix=function(M){return W(1e3*M)},W.en=A[L],W.Ls=A,W.p={},W}))})(fd)),fd.exports}var yit=mit();const xit=Gl(yit);var jF=Object.defineProperty,B=(t,e)=>jF(t,"name",{value:e,configurable:!0}),bit=(t,e)=>{for(var r in e)jF(t,r,{get:e[r],enumerable:!0})},ia={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},St={trace:B((...t)=>{},"trace"),debug:B((...t)=>{},"debug"),info:B((...t)=>{},"info"),warn:B((...t)=>{},"warn"),error:B((...t)=>{},"error"),fatal:B((...t)=>{},"fatal")},qw=B(function(t="fatal"){let e=ia.fatal;typeof t=="string"?t.toLowerCase()in ia&&(e=ia[t]):typeof t=="number"&&(e=t),St.trace=()=>{},St.debug=()=>{},St.info=()=>{},St.warn=()=>{},St.error=()=>{},St.fatal=()=>{},e<=ia.fatal&&(St.fatal=console.error?console.error.bind(console,ji("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ji("FATAL"))),e<=ia.error&&(St.error=console.error?console.error.bind(console,ji("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ji("ERROR"))),e<=ia.warn&&(St.warn=console.warn?console.warn.bind(console,ji("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ji("WARN"))),e<=ia.info&&(St.info=console.info?console.info.bind(console,ji("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ji("INFO"))),e<=ia.debug&&(St.debug=console.debug?console.debug.bind(console,ji("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ji("DEBUG"))),e<=ia.trace&&(St.trace=console.debug?console.debug.bind(console,ji("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ji("TRACE")))},"setLogLevel"),ji=B(t=>`%c${xit().format("ss.SSS")} : ${t} : `,"format");const dd={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;switch(i){case"r":return dd.hue2rgb(s,n,t+1/3)*255;case"g":return dd.hue2rgb(s,n,t)*255;case"b":return dd.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const n=Math.max(t,e,r),s=Math.min(t,e,r),o=(n+s)/2;if(i==="l")return o*100;if(n===s)return 0;const c=n-s,u=o>.5?c/(2-n-s):c/(n+s);if(i==="s")return u*100;switch(n){case t:return((e-r)/c+(e<r?6:0))*60;case e:return((r-t)/c+2)*60;case r:return((t-e)/c+4)*60;default:return-1}}},vit={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Cit={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Qt={channel:dd,lang:vit,unit:Cit},Ya={};for(let t=0;t<=255;t++)Ya[t]=Qt.unit.dec2hex(t);const jr={ALL:0,RGB:1,HSL:2};class wit{constructor(){this.type=jr.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=jr.ALL}is(e){return this.type===e}}class Sit{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new wit}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=jr.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:i,l:n}=e;r===void 0&&(e.h=Qt.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=Qt.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=Qt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:i,b:n}=e;r===void 0&&(e.r=Qt.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=Qt.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=Qt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is(jr.HSL)&&r!==void 0?r:(this._ensureHSL(),Qt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is(jr.HSL)&&r!==void 0?r:(this._ensureHSL(),Qt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is(jr.HSL)&&r!==void 0?r:(this._ensureHSL(),Qt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is(jr.RGB)&&r!==void 0?r:(this._ensureRGB(),Qt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is(jr.RGB)&&r!==void 0?r:(this._ensureRGB(),Qt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is(jr.RGB)&&r!==void 0?r:(this._ensureRGB(),Qt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(jr.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(jr.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(jr.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(jr.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(jr.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(jr.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const $p=new Sit({r:0,g:0,b:0,a:0},"transparent"),gl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(gl.re);if(!e)return;const r=e[1],i=parseInt(r,16),n=r.length,s=n%4===0,o=n>4,c=o?1:17,u=o?8:4,h=s?0:-1,f=o?255:15;return $p.set({r:(i>>u*(h+3)&f)*c,g:(i>>u*(h+2)&f)*c,b:(i>>u*(h+1)&f)*c,a:s?(i&f)*c/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`#${Ya[Math.round(e)]}${Ya[Math.round(r)]}${Ya[Math.round(i)]}${Ya[Math.round(n*255)]}`:`#${Ya[Math.round(e)]}${Ya[Math.round(r)]}${Ya[Math.round(i)]}`}},$s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match($s.hueRe);if(e){const[,r,i]=e;switch(i){case"grad":return Qt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Qt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Qt.channel.clamp.h(parseFloat(r)*360)}}return Qt.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match($s.re);if(!r)return;const[,i,n,s,o,c]=r;return $p.set({h:$s._hue2deg(i),s:Qt.channel.clamp.s(parseFloat(n)),l:Qt.channel.clamp.l(parseFloat(s)),a:o?Qt.channel.clamp.a(c?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${Qt.lang.round(e)}, ${Qt.lang.round(r)}%, ${Qt.lang.round(i)}%, ${n})`:`hsl(${Qt.lang.round(e)}, ${Qt.lang.round(r)}%, ${Qt.lang.round(i)}%)`}},Au={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Au.colors[t];if(e)return gl.parse(e)},stringify:t=>{const e=gl.stringify(t);for(const r in Au.colors)if(Au.colors[r]===e)return r}},yu={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(yu.re);if(!r)return;const[,i,n,s,o,c,u,h,f]=r;return $p.set({r:Qt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Qt.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:Qt.channel.clamp.b(u?parseFloat(c)*2.55:parseFloat(c)),a:h?Qt.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${Qt.lang.round(e)}, ${Qt.lang.round(r)}, ${Qt.lang.round(i)}, ${Qt.lang.round(n)})`:`rgb(${Qt.lang.round(e)}, ${Qt.lang.round(r)}, ${Qt.lang.round(i)})`}},Ln={format:{keyword:Au,hex:gl,rgb:yu,rgba:yu,hsl:$s,hsla:$s},parse:t=>{if(typeof t!="string")return t;const e=gl.parse(t)||yu.parse(t)||$s.parse(t)||Au.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(jr.HSL)||t.data.r===void 0?$s.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?yu.stringify(t):gl.stringify(t)},$F=(t,e)=>{const r=Ln.parse(t);for(const i in e)r[i]=Qt.channel.clamp[i](e[i]);return Ln.stringify(r)},Ka=(t,e,r=0,i=1)=>{if(typeof t!="number")return $F(t,{a:e});const n=$p.set({r:Qt.channel.clamp.r(t),g:Qt.channel.clamp.g(e),b:Qt.channel.clamp.b(r),a:Qt.channel.clamp.a(i)});return Ln.stringify(n)},kit=t=>{const{r:e,g:r,b:i}=Ln.parse(t),n=.2126*Qt.channel.toLinear(e)+.7152*Qt.channel.toLinear(r)+.0722*Qt.channel.toLinear(i);return Qt.lang.round(n)},_it=t=>kit(t)>=.5,fn=t=>!_it(t),PF=(t,e,r)=>{const i=Ln.parse(t),n=i[e],s=Qt.channel.clamp[e](n+r);return n!==s&&(i[e]=s),Ln.stringify(i)},pt=(t,e)=>PF(t,"l",e),gt=(t,e)=>PF(t,"l",-e),U=(t,e)=>{const r=Ln.parse(t),i={};for(const n in e)e[n]&&(i[n]=r[n]+e[n]);return $F(t,i)},Tit=(t,e,r=50)=>{const{r:i,g:n,b:s,a:o}=Ln.parse(t),{r:c,g:u,b:h,a:f}=Ln.parse(e),p=r/100,m=p*2-1,g=o-f,v=((m*g===-1?m:(m+g)/(1+m*g))+1)/2,b=1-v,w=i*v+c*b,_=n*v+u*b,S=s*v+h*b,E=o*p+f*(1-p);return Ka(w,_,S,E)},st=(t,e=100)=>{const r=Ln.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Tit(r,t,e)};/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */const{entries:HF,setPrototypeOf:HN,isFrozen:Eit,getPrototypeOf:Ait,getOwnPropertyDescriptor:Bit}=Object;let{freeze:Zr,seal:Pi,create:el}=Object,{apply:XC,construct:QC}=typeof Reflect<"u"&&Reflect;Zr||(Zr=function(e){return e});Pi||(Pi=function(e){return e});XC||(XC=function(e,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.apply(r,n)});QC||(QC=function(e){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 e(...i)});const ru=yr(Array.prototype.forEach),Lit=yr(Array.prototype.lastIndexOf),UN=yr(Array.prototype.pop),iu=yr(Array.prototype.push),Mit=yr(Array.prototype.splice),Vr=Array.isArray,xu=yr(String.prototype.toLowerCase),nC=yr(String.prototype.toString),GN=yr(String.prototype.match),Zo=yr(String.prototype.replace),YN=yr(String.prototype.indexOf),Nit=yr(String.prototype.trim),Oit=yr(Number.prototype.toString),Rit=yr(Boolean.prototype.toString),WN=typeof BigInt>"u"?null:yr(BigInt.prototype.toString),VN=typeof Symbol>"u"?null:yr(Symbol.prototype.toString),ir=yr(Object.prototype.hasOwnProperty),nu=yr(Object.prototype.toString),Fr=yr(RegExp.prototype.test),Vf=Dit(TypeError);function yr(t){return function(e){e instanceof RegExp&&(e.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 XC(t,e,i)}}function Dit(t){return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return QC(t,r)}}function re(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xu;if(HN&&HN(t,null),!Vr(e))return t;let i=e.length;for(;i--;){let n=e[i];if(typeof n=="string"){const s=r(n);s!==n&&(Eit(e)||(e[i]=s),n=s)}t[n]=!0}return t}function Fit(t){for(let e=0;e<t.length;e++)ir(t,e)||(t[e]=null);return t}function hi(t){const e=el(null);for(const[r,i]of HF(t))ir(t,r)&&(Vr(i)?e[r]=Fit(i):i&&typeof i=="object"&&i.constructor===Object?e[r]=hi(i):e[r]=i);return e}function Iit(t){switch(typeof t){case"string":return t;case"number":return Oit(t);case"boolean":return Rit(t);case"bigint":return WN?WN(t):"0";case"symbol":return VN?VN(t):"Symbol()";case"undefined":return nu(t);case"function":case"object":{if(t===null)return nu(t);const e=t,r=rl(e,"toString");if(typeof r=="function"){const i=r(e);return typeof i=="string"?i:nu(i)}return nu(t)}default:return nu(t)}}function rl(t,e){for(;t!==null;){const i=Bit(t,e);if(i){if(i.get)return yr(i.get);if(typeof i.value=="function")return yr(i.value)}t=Ait(t)}function r(){return null}return r}function qit(t){try{return Fr(t,""),!0}catch{return!1}}const XN=Zr(["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"]),aC=Zr(["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"]),sC=Zr(["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"]),zit=Zr(["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"]),oC=Zr(["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"]),jit=Zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),QN=Zr(["#text"]),ZN=Zr(["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"]),lC=Zr(["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"]),KN=Zr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xf=Zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$it=Pi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pit=Pi(/<%[\w\W]*|[\w\W]*%>/gm),Hit=Pi(/\$\{[\w\W]*/gm),Uit=Pi(/^data-[\-\w.\u00B7-\uFFFF]+$/),Git=Pi(/^aria-[\-\w]+$/),UF=Pi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yit=Pi(/^(?:\w+script|data):/i),Wit=Pi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),GF=Pi(/^html$/i),Vit=Pi(/^[a-z][.\w]*(-[.\w]+)+$/i);var JN=Object.freeze({__proto__:null,ARIA_ATTR:Git,ATTR_WHITESPACE:Wit,CUSTOM_ELEMENT:Vit,DATA_ATTR:Uit,DOCTYPE_NAME:GF,ERB_EXPR:Pit,IS_ALLOWED_URI:UF,IS_SCRIPT_OR_DATA:Yit,MUSTACHE_EXPR:$it,TMPLIT_EXPR:Hit});const au={element:1,text:3,progressingInstruction:7,comment:8,document:9},Xit=function(){return typeof window>"u"?null:window},Qit=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},t4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function YF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xit();const e=zt=>YF(zt);if(e.version="3.4.2",e.removed=[],!t||!t.document||t.document.nodeType!==au.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const i=r,n=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:c,Element:u,NodeFilter:h,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:m,trustedTypes:g}=t,x=u.prototype,v=rl(x,"cloneNode"),b=rl(x,"remove"),w=rl(x,"nextSibling"),_=rl(x,"childNodes"),S=rl(x,"parentNode");if(typeof o=="function"){const zt=r.createElement("template");zt.content&&zt.content.ownerDocument&&(r=zt.content.ownerDocument)}let E,L="";const{implementation:A,createNodeIterator:R,createDocumentFragment:j,getElementsByTagName:Y}=r,{importNode:W}=i;let O=t4();e.isSupported=typeof HF=="function"&&typeof S=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:X,TMPLIT_EXPR:M,DATA_ATTR:F,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:q}=JN;let{IS_ALLOWED_URI:I}=JN,G=null;const Z=re({},[...XN,...aC,...sC,...oC,...QN]);let H=null;const Q=re({},[...ZN,...lC,...KN,...Xf]);let J=Object.seal(el(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}})),tt=null,K=null;const nt=Object.seal(el(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ct=!0,it=!0,dt=!1,Ct=!0,kt=!1,At=!0,Et=!1,Ht=!1,qt=!1,we=!1,Be=!1,nr=!1,vr=!0,ar=!1;const De="user-content-";let Le=!0,Cr=!1,yt={},_t=null;const Rt=re({},["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 Kt=null;const ne=re({},["audio","video","img","source","image","track"]);let sr=null;const Br=re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Se="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let ce=Fe,Jr=!1,Lr=null;const nc=re({},[Se,me,Fe],nC);let dn=re({},["mi","mo","mn","ms","mtext"]),pn=re({},["annotation-xml"]);const ya=re({},["title","style","font","a","script"]);let Gr=null;const xa=["application/xhtml+xml","text/html"],Fn="text/html";let Qe=null,Yi=null;const ls=r.createElement("form"),gn=function(et){return et instanceof RegExp||et instanceof Function},cs=function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yi&&Yi===et)return;(!et||typeof et!="object")&&(et={}),et=hi(et),Gr=xa.indexOf(et.PARSER_MEDIA_TYPE)===-1?Fn:et.PARSER_MEDIA_TYPE,Qe=Gr==="application/xhtml+xml"?nC:xu,G=ir(et,"ALLOWED_TAGS")&&Vr(et.ALLOWED_TAGS)?re({},et.ALLOWED_TAGS,Qe):Z,H=ir(et,"ALLOWED_ATTR")&&Vr(et.ALLOWED_ATTR)?re({},et.ALLOWED_ATTR,Qe):Q,Lr=ir(et,"ALLOWED_NAMESPACES")&&Vr(et.ALLOWED_NAMESPACES)?re({},et.ALLOWED_NAMESPACES,nC):nc,sr=ir(et,"ADD_URI_SAFE_ATTR")&&Vr(et.ADD_URI_SAFE_ATTR)?re(hi(Br),et.ADD_URI_SAFE_ATTR,Qe):Br,Kt=ir(et,"ADD_DATA_URI_TAGS")&&Vr(et.ADD_DATA_URI_TAGS)?re(hi(ne),et.ADD_DATA_URI_TAGS,Qe):ne,_t=ir(et,"FORBID_CONTENTS")&&Vr(et.FORBID_CONTENTS)?re({},et.FORBID_CONTENTS,Qe):Rt,tt=ir(et,"FORBID_TAGS")&&Vr(et.FORBID_TAGS)?re({},et.FORBID_TAGS,Qe):hi({}),K=ir(et,"FORBID_ATTR")&&Vr(et.FORBID_ATTR)?re({},et.FORBID_ATTR,Qe):hi({}),yt=ir(et,"USE_PROFILES")?et.USE_PROFILES&&typeof et.USE_PROFILES=="object"?hi(et.USE_PROFILES):et.USE_PROFILES:!1,ct=et.ALLOW_ARIA_ATTR!==!1,it=et.ALLOW_DATA_ATTR!==!1,dt=et.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=et.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kt=et.SAFE_FOR_TEMPLATES||!1,At=et.SAFE_FOR_XML!==!1,Et=et.WHOLE_DOCUMENT||!1,we=et.RETURN_DOM||!1,Be=et.RETURN_DOM_FRAGMENT||!1,nr=et.RETURN_TRUSTED_TYPE||!1,qt=et.FORCE_BODY||!1,vr=et.SANITIZE_DOM!==!1,ar=et.SANITIZE_NAMED_PROPS||!1,Le=et.KEEP_CONTENT!==!1,Cr=et.IN_PLACE||!1,I=qit(et.ALLOWED_URI_REGEXP)?et.ALLOWED_URI_REGEXP:UF,ce=typeof et.NAMESPACE=="string"?et.NAMESPACE:Fe,dn=ir(et,"MATHML_TEXT_INTEGRATION_POINTS")&&et.MATHML_TEXT_INTEGRATION_POINTS&&typeof et.MATHML_TEXT_INTEGRATION_POINTS=="object"?hi(et.MATHML_TEXT_INTEGRATION_POINTS):re({},["mi","mo","mn","ms","mtext"]),pn=ir(et,"HTML_INTEGRATION_POINTS")&&et.HTML_INTEGRATION_POINTS&&typeof et.HTML_INTEGRATION_POINTS=="object"?hi(et.HTML_INTEGRATION_POINTS):re({},["annotation-xml"]);const wt=ir(et,"CUSTOM_ELEMENT_HANDLING")&&et.CUSTOM_ELEMENT_HANDLING&&typeof et.CUSTOM_ELEMENT_HANDLING=="object"?hi(et.CUSTOM_ELEMENT_HANDLING):el(null);if(J=el(null),ir(wt,"tagNameCheck")&&gn(wt.tagNameCheck)&&(J.tagNameCheck=wt.tagNameCheck),ir(wt,"attributeNameCheck")&&gn(wt.attributeNameCheck)&&(J.attributeNameCheck=wt.attributeNameCheck),ir(wt,"allowCustomizedBuiltInElements")&&typeof wt.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=wt.allowCustomizedBuiltInElements),kt&&(it=!1),Be&&(we=!0),yt&&(G=re({},QN),H=el(null),yt.html===!0&&(re(G,XN),re(H,ZN)),yt.svg===!0&&(re(G,aC),re(H,lC),re(H,Xf)),yt.svgFilters===!0&&(re(G,sC),re(H,lC),re(H,Xf)),yt.mathMl===!0&&(re(G,oC),re(H,KN),re(H,Xf))),nt.tagCheck=null,nt.attributeCheck=null,ir(et,"ADD_TAGS")&&(typeof et.ADD_TAGS=="function"?nt.tagCheck=et.ADD_TAGS:Vr(et.ADD_TAGS)&&(G===Z&&(G=hi(G)),re(G,et.ADD_TAGS,Qe))),ir(et,"ADD_ATTR")&&(typeof et.ADD_ATTR=="function"?nt.attributeCheck=et.ADD_ATTR:Vr(et.ADD_ATTR)&&(H===Q&&(H=hi(H)),re(H,et.ADD_ATTR,Qe))),ir(et,"ADD_URI_SAFE_ATTR")&&Vr(et.ADD_URI_SAFE_ATTR)&&re(sr,et.ADD_URI_SAFE_ATTR,Qe),ir(et,"FORBID_CONTENTS")&&Vr(et.FORBID_CONTENTS)&&(_t===Rt&&(_t=hi(_t)),re(_t,et.FORBID_CONTENTS,Qe)),ir(et,"ADD_FORBID_CONTENTS")&&Vr(et.ADD_FORBID_CONTENTS)&&(_t===Rt&&(_t=hi(_t)),re(_t,et.ADD_FORBID_CONTENTS,Qe)),Le&&(G["#text"]=!0),Et&&re(G,["html","head","body"]),G.table&&(re(G,["tbody"]),delete tt.tbody),et.TRUSTED_TYPES_POLICY){if(typeof et.TRUSTED_TYPES_POLICY.createHTML!="function")throw Vf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof et.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=et.TRUSTED_TYPES_POLICY,L=E.createHTML("")}else E===void 0&&(E=Qit(g,n)),E!==null&&typeof L=="string"&&(L=E.createHTML(""));Zr&&Zr(et),Yi=et},us=re({},[...aC,...sC,...zit]),hs=re({},[...oC,...jit]),co=function(et){let wt=S(et);(!wt||!wt.tagName)&&(wt={namespaceURI:ce,tagName:"template"});const Bt=xu(et.tagName),fe=xu(wt.tagName);return Lr[et.namespaceURI]?et.namespaceURI===me?wt.namespaceURI===Fe?Bt==="svg":wt.namespaceURI===Se?Bt==="svg"&&(fe==="annotation-xml"||dn[fe]):!!us[Bt]:et.namespaceURI===Se?wt.namespaceURI===Fe?Bt==="math":wt.namespaceURI===me?Bt==="math"&&pn[fe]:!!hs[Bt]:et.namespaceURI===Fe?wt.namespaceURI===me&&!pn[fe]||wt.namespaceURI===Se&&!dn[fe]?!1:!hs[Bt]&&(ya[Bt]||!us[Bt]):!!(Gr==="application/xhtml+xml"&&Lr[et.namespaceURI]):!1},Mr=function(et){iu(e.removed,{element:et});try{S(et).removeChild(et)}catch{b(et)}},xi=function(et,wt){try{iu(e.removed,{attribute:wt.getAttributeNode(et),from:wt})}catch{iu(e.removed,{attribute:null,from:wt})}if(wt.removeAttribute(et),et==="is")if(we||Be)try{Mr(wt)}catch{}else try{wt.setAttribute(et,"")}catch{}},fs=function(et){let wt=null,Bt=null;if(qt)et="<remove></remove>"+et;else{const $e=GN(et,/^[\r\n\t ]+/);Bt=$e&&$e[0]}Gr==="application/xhtml+xml"&&ce===Fe&&(et='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+et+"</body></html>");const fe=E?E.createHTML(et):et;if(ce===Fe)try{wt=new m().parseFromString(fe,Gr)}catch{}if(!wt||!wt.documentElement){wt=A.createDocument(ce,"template",null);try{wt.documentElement.innerHTML=Jr?L:fe}catch{}}const ae=wt.body||wt.documentElement;return et&&Bt&&ae.insertBefore(r.createTextNode(Bt),ae.childNodes[0]||null),ce===Fe?Y.call(wt,Et?"html":"body")[0]:Et?wt.documentElement:ae},ds=function(et){return R.call(et.ownerDocument||et,et,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ti=function(et){return et instanceof p&&(typeof et.nodeName!="string"||typeof et.textContent!="string"||typeof et.removeChild!="function"||!(et.attributes instanceof f)||typeof et.removeAttribute!="function"||typeof et.setAttribute!="function"||typeof et.namespaceURI!="string"||typeof et.insertBefore!="function"||typeof et.hasChildNodes!="function")},Ze=function(et){return typeof c=="function"&&et instanceof c};function qe(zt,et,wt){ru(zt,Bt=>{Bt.call(e,et,wt,Yi)})}const Mi=function(et){let wt=null;if(qe(O.beforeSanitizeElements,et,null),ti(et))return Mr(et),!0;const Bt=Qe(et.nodeName);if(qe(O.uponSanitizeElement,et,{tagName:Bt,allowedTags:G}),At&&et.hasChildNodes()&&!Ze(et.firstElementChild)&&Fr(/<[/\w!]/g,et.innerHTML)&&Fr(/<[/\w!]/g,et.textContent)||At&&et.namespaceURI===Fe&&Bt==="style"&&Ze(et.firstElementChild)||et.nodeType===au.progressingInstruction||At&&et.nodeType===au.comment&&Fr(/<[/\w]/g,et.data))return Mr(et),!0;if(tt[Bt]||!(nt.tagCheck instanceof Function&&nt.tagCheck(Bt))&&!G[Bt]){if(!tt[Bt]&&ho(Bt)&&(J.tagNameCheck instanceof RegExp&&Fr(J.tagNameCheck,Bt)||J.tagNameCheck instanceof Function&&J.tagNameCheck(Bt)))return!1;if(Le&&!_t[Bt]){const fe=S(et)||et.parentNode,ae=_(et)||et.childNodes;if(ae&&fe){const $e=ae.length;for(let wr=$e-1;wr>=0;--wr){const Je=v(ae[wr],!0);fe.insertBefore(Je,w(et))}}}return Mr(et),!0}return et instanceof u&&!co(et)||(Bt==="noscript"||Bt==="noembed"||Bt==="noframes")&&Fr(/<\/no(script|embed|frames)/i,et.innerHTML)?(Mr(et),!0):(kt&&et.nodeType===au.text&&(wt=et.textContent,ru([z,X,M],fe=>{wt=Zo(wt,fe," ")}),et.textContent!==wt&&(iu(e.removed,{element:et.cloneNode()}),et.textContent=wt)),qe(O.afterSanitizeElements,et,null),!1)},In=function(et,wt,Bt){if(K[wt]||vr&&(wt==="id"||wt==="name")&&(Bt in r||Bt in ls))return!1;const fe=H[wt]||nt.attributeCheck instanceof Function&&nt.attributeCheck(wt,et);if(!(it&&!K[wt]&&Fr(F,wt))){if(!(ct&&Fr(N,wt))){if(!fe||K[wt]){if(!(ho(et)&&(J.tagNameCheck instanceof RegExp&&Fr(J.tagNameCheck,et)||J.tagNameCheck instanceof Function&&J.tagNameCheck(et))&&(J.attributeNameCheck instanceof RegExp&&Fr(J.attributeNameCheck,wt)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(wt,et))||wt==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&Fr(J.tagNameCheck,Bt)||J.tagNameCheck instanceof Function&&J.tagNameCheck(Bt))))return!1}else if(!sr[wt]){if(!Fr(I,Zo(Bt,$,""))){if(!((wt==="src"||wt==="xlink:href"||wt==="href")&&et!=="script"&&YN(Bt,"data:")===0&&Kt[et])){if(!(dt&&!Fr(P,Zo(Bt,$,"")))){if(Bt)return!1}}}}}}return!0},uo=re({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ho=function(et){return!uo[xu(et)]&&Fr(q,et)},ps=function(et){qe(O.beforeSanitizeAttributes,et,null);const{attributes:wt}=et;if(!wt||ti(et))return;const Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let fe=wt.length;for(;fe--;){const ae=wt[fe],{name:$e,namespaceURI:wr,value:Je}=ae,ur=Qe($e),gs=Je;let Ue=$e==="value"?gs:Nit(gs);if(Bt.attrName=ur,Bt.attrValue=Ue,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,qe(O.uponSanitizeAttribute,et,Bt),Ue=Bt.attrValue,ar&&(ur==="id"||ur==="name")&&YN(Ue,De)!==0&&(xi($e,et),Ue=De+Ue),At&&Fr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ue)){xi($e,et);continue}if(ur==="attributename"&&GN(Ue,"href")){xi($e,et);continue}if(Bt.forceKeepAttr)continue;if(!Bt.keepAttr){xi($e,et);continue}if(!Ct&&Fr(/\/>/i,Ue)){xi($e,et);continue}kt&&ru([z,X,M],fo=>{Ue=Zo(Ue,fo," ")});const ms=Qe(et.nodeName);if(!In(ms,ur,Ue)){xi($e,et);continue}if(E&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!wr)switch(g.getAttributeType(ms,ur)){case"TrustedHTML":{Ue=E.createHTML(Ue);break}case"TrustedScriptURL":{Ue=E.createScriptURL(Ue);break}}if(Ue!==gs)try{wr?et.setAttributeNS(wr,$e,Ue):et.setAttribute($e,Ue),ti(et)?Mr(et):UN(e.removed)}catch{xi($e,et)}}qe(O.afterSanitizeAttributes,et,null)},mn=function(et){let wt=null;const Bt=ds(et);for(qe(O.beforeSanitizeShadowDOM,et,null);wt=Bt.nextNode();)qe(O.uponSanitizeShadowNode,wt,null),Mi(wt),ps(wt),wt.content instanceof s&&mn(wt.content);qe(O.afterSanitizeShadowDOM,et,null)};return e.sanitize=function(zt){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wt=null,Bt=null,fe=null,ae=null;if(Jr=!zt,Jr&&(zt="<!-->"),typeof zt!="string"&&!Ze(zt)&&(zt=Iit(zt),typeof zt!="string"))throw Vf("dirty is not a string, aborting");if(!e.isSupported)return zt;if(Ht||cs(et),e.removed=[],typeof zt=="string"&&(Cr=!1),Cr){const Je=zt.nodeName;if(typeof Je=="string"){const ur=Qe(Je);if(!G[ur]||tt[ur])throw Vf("root node is forbidden and cannot be sanitized in-place")}}else if(zt instanceof c)wt=fs("<!---->"),Bt=wt.ownerDocument.importNode(zt,!0),Bt.nodeType===au.element&&Bt.nodeName==="BODY"||Bt.nodeName==="HTML"?wt=Bt:wt.appendChild(Bt);else{if(!we&&!kt&&!Et&&zt.indexOf("<")===-1)return E&&nr?E.createHTML(zt):zt;if(wt=fs(zt),!wt)return we?null:nr?L:""}wt&&qt&&Mr(wt.firstChild);const $e=ds(Cr?zt:wt);for(;fe=$e.nextNode();)Mi(fe),ps(fe),fe.content instanceof s&&mn(fe.content);if(Cr)return zt;if(we){if(kt){wt.normalize();let Je=wt.innerHTML;ru([z,X,M],ur=>{Je=Zo(Je,ur," ")}),wt.innerHTML=Je}if(Be)for(ae=j.call(wt.ownerDocument);wt.firstChild;)ae.appendChild(wt.firstChild);else ae=wt;return(H.shadowroot||H.shadowrootmode)&&(ae=W.call(i,ae,!0)),ae}let wr=Et?wt.outerHTML:wt.innerHTML;return Et&&G["!doctype"]&&wt.ownerDocument&&wt.ownerDocument.doctype&&wt.ownerDocument.doctype.name&&Fr(GF,wt.ownerDocument.doctype.name)&&(wr="<!DOCTYPE "+wt.ownerDocument.doctype.name+`>
296
+ `+wr),kt&&ru([z,X,M],Je=>{wr=Zo(wr,Je," ")}),E&&nr?E.createHTML(wr):wr},e.setConfig=function(){let zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cs(zt),Ht=!0},e.clearConfig=function(){Yi=null,Ht=!1},e.isValidAttribute=function(zt,et,wt){Yi||cs({});const Bt=Qe(zt),fe=Qe(et);return In(Bt,fe,wt)},e.addHook=function(zt,et){typeof et=="function"&&iu(O[zt],et)},e.removeHook=function(zt,et){if(et!==void 0){const wt=Lit(O[zt],et);return wt===-1?void 0:Mit(O[zt],wt,1)[0]}return UN(O[zt])},e.removeHooks=function(zt){O[zt]=[]},e.removeAllHooks=function(){O=t4()},e}var zl=YF(),WF=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Bu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Zit=/\s*%%.*\n/gm,yl,VF=(yl=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},B(yl,"UnknownDiagramError"),yl),Zs={},zw=B(function(t,e){t=t.replace(WF,"").replace(Bu,"").replace(Zit,`
297
+ `);for(const[r,{detector:i}]of Object.entries(Zs))if(i(t,e))return r;throw new VF(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),ZC=B((...t)=>{for(const{id:e,detector:r,loader:i}of t)XF(e,r,i)},"registerLazyLoadedDiagrams"),XF=B((t,e,r)=>{Zs[t]&&St.warn(`Detector with key ${t} already exists. Overwriting.`),Zs[t]={detector:e,loader:r},St.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),Kit=B(t=>Zs[t].loader,"getDiagramLoader"),KC=B((t,e,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>KC(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&e[s]!==null&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=KC(t[s],e[s],{depth:r-1,clobber:i})):(i||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),_r=KC,Rn="#ffffff",Dn="#f2f2f2",Xt=B((t,e)=>e?U(t,{s:-40,l:10}):U(t,{s:-40,l:-10}),"mkBorder"),xl,Jit=(xl=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,s,o,c,u,h,f,p,m,g,x,v,b,w,_,S,E,L,A,R,j,Y,W,O,z,X,M,F,N,P,$,q;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||pt(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||gt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||gt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||pt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||pt(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||U(this.primaryColor,{h:30}),this.cScale4=this.cScale4||U(this.primaryColor,{h:60}),this.cScale5=this.cScale5||U(this.primaryColor,{h:90}),this.cScale6=this.cScale6||U(this.primaryColor,{h:120}),this.cScale7=this.cScale7||U(this.primaryColor,{h:150}),this.cScale8=this.cScale8||U(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||U(this.primaryColor,{h:270}),this.cScale10=this.cScale10||U(this.primaryColor,{h:300}),this.cScale11=this.cScale11||U(this.primaryColor,{h:330}),this.darkMode)for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScale"+I]=gt(this["cScale"+I],75);else for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScale"+I]=gt(this["cScale"+I],25);for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScaleInv"+I]=this["cScaleInv"+I]||st(this["cScale"+I]);for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this.darkMode?this["cScalePeer"+I]=this["cScalePeer"+I]||pt(this["cScale"+I],10):this["cScalePeer"+I]=this["cScalePeer"+I]||gt(this["cScale"+I],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScaleLabel"+I]=this["cScaleLabel"+I]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let I=0;I<5;I++)this["surface"+I]=this["surface"+I]||U(this.mainBkg,{h:180,s:-15,l:e*(5+I*3)}),this["surfacePeer"+I]=this["surfacePeer"+I]||U(this.mainBkg,{h:180,s:-15,l:e*(8+I*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||U(this.primaryColor,{h:64}),this.fillType3=this.fillType3||U(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||U(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||U(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||U(this.primaryColor,{h:128}),this.fillType7=this.fillType7||U(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||U(this.primaryColor,{l:-10}),this.pie5=this.pie5||U(this.secondaryColor,{l:-10}),this.pie6=this.pie6||U(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||U(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||U(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||U(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||U(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||U(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||U(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??U(this.primaryColor,{l:-30}),this.venn2=this.venn2??U(this.secondaryColor,{l:-30}),this.venn3=this.venn3??U(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??U(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??U(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??U(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??U(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??U(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((c=this.radar)==null?void 0:c.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((u=this.radar)==null?void 0:u.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((f=this.radar)==null?void 0:f.legendBoxSize)||12,legendFontSize:((p=this.radar)==null?void 0:p.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((m=this.wardley)==null?void 0:m.backgroundColor)||this.background,axisColor:((g=this.wardley)==null?void 0:g.axisColor)||this.lineColor,axisTextColor:((x=this.wardley)==null?void 0:x.axisTextColor)||this.primaryTextColor,gridColor:((v=this.wardley)==null?void 0:v.gridColor)||this.gridColor,componentFill:((b=this.wardley)==null?void 0:b.componentFill)||this.background,componentStroke:((w=this.wardley)==null?void 0:w.componentStroke)||this.lineColor,componentLabelColor:((_=this.wardley)==null?void 0:_.componentLabelColor)||this.primaryTextColor,linkStroke:((S=this.wardley)==null?void 0:S.linkStroke)||this.lineColor,evolutionStroke:((E=this.wardley)==null?void 0:E.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((L=this.wardley)==null?void 0:L.annotationStroke)||this.lineColor,annotationTextColor:((A=this.wardley)==null?void 0:A.annotationTextColor)||this.primaryTextColor,annotationFill:((R=this.wardley)==null?void 0:R.annotationFill)||this.background},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||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(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:((j=this.xyChart)==null?void 0:j.backgroundColor)||this.background,titleColor:((Y=this.xyChart)==null?void 0:Y.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((O=this.xyChart)==null?void 0:O.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((z=this.xyChart)==null?void 0:z.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((X=this.xyChart)==null?void 0:X.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((M=this.xyChart)==null?void 0:M.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((F=this.xyChart)==null?void 0:F.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((N=this.xyChart)==null?void 0:N.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((P=this.xyChart)==null?void 0:P.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(($=this.xyChart)==null?void 0:$.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((q=this.xyChart)==null?void 0:q.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?gt(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||U(this.primaryColor,{h:-30}),this.git4=this.git4||U(this.primaryColor,{h:-60}),this.git5=this.git5||U(this.primaryColor,{h:-90}),this.git6=this.git6||U(this.primaryColor,{h:60}),this.git7=this.git7||U(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(xl,"Theme"),xl),tnt=B(t=>{const e=new Jit;return e.calculate(t),e},"getThemeVariables"),bl,ent=(bl=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=pt(this.primaryColor,16),this.tertiaryColor=U(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=pt(st("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ka(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=gt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=gt(this.sectionBkgColor,10),this.taskBorderColor=Ka(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ka(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||pt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||gt(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 e,r,i,n,s,o,c,u,h,f,p,m,g,x,v,b,w,_,S,E,L,A,R,j,Y,W,O,z,X,M,F,N,P,$;this.secondBkg=pt(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=pt(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=pt(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=st(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=U(this.primaryColor,{h:64}),this.fillType3=U(this.secondaryColor,{h:64}),this.fillType4=U(this.primaryColor,{h:-64}),this.fillType5=U(this.secondaryColor,{h:-64}),this.fillType6=U(this.primaryColor,{h:128}),this.fillType7=U(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||U(this.primaryColor,{h:30}),this.cScale4=this.cScale4||U(this.primaryColor,{h:60}),this.cScale5=this.cScale5||U(this.primaryColor,{h:90}),this.cScale6=this.cScale6||U(this.primaryColor,{h:120}),this.cScale7=this.cScale7||U(this.primaryColor,{h:150}),this.cScale8=this.cScale8||U(this.primaryColor,{h:210}),this.cScale9=this.cScale9||U(this.primaryColor,{h:270}),this.cScale10=this.cScale10||U(this.primaryColor,{h:300}),this.cScale11=this.cScale11||U(this.primaryColor,{h:330});for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||st(this["cScale"+q]);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScalePeer"+q]=this["cScalePeer"+q]||pt(this["cScale"+q],10);for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||U(this.mainBkg,{h:30,s:-30,l:-(-10+q*4)}),this["surfacePeer"+q]=this["surfacePeer"+q]||U(this.mainBkg,{h:30,s:-30,l:-(-7+q*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["pie"+q]=this["cScale"+q];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 q=0;q<8;q++)this["venn"+(q+1)]=this["venn"+(q+1)]??pt(this["cScale"+q],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.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:((v=this.radar)==null?void 0:v.axisLabelFontSize)||12,curveOpacity:((b=this.radar)==null?void 0:b.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((L=this.radar)==null?void 0:L.legendBoxSize)||12,legendFontSize:((A=this.radar)==null?void 0:A.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((R=this.wardley)==null?void 0:R.backgroundColor)||this.background,axisColor:((j=this.wardley)==null?void 0:j.axisColor)||this.lineColor,axisTextColor:((Y=this.wardley)==null?void 0:Y.axisTextColor)||this.primaryTextColor,gridColor:((W=this.wardley)==null?void 0:W.gridColor)||this.gridColor,componentFill:((O=this.wardley)==null?void 0:O.componentFill)||this.mainBkg,componentStroke:((z=this.wardley)==null?void 0:z.componentStroke)||this.lineColor,componentLabelColor:((X=this.wardley)==null?void 0:X.componentLabelColor)||this.primaryTextColor,linkStroke:((M=this.wardley)==null?void 0:M.linkStroke)||this.lineColor,evolutionStroke:((F=this.wardley)==null?void 0:F.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((N=this.wardley)==null?void 0:N.annotationStroke)||this.lineColor,annotationTextColor:((P=this.wardley)==null?void 0:P.annotationTextColor)||this.primaryTextColor,annotationFill:(($=this.wardley)==null?void 0:$.annotationFill)||this.mainBkg},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?gt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=pt(this.secondaryColor,20),this.git1=pt(this.pie2||this.secondaryColor,20),this.git2=pt(this.pie3||this.tertiaryColor,20),this.git3=pt(this.pie4||U(this.primaryColor,{h:-30}),20),this.git4=pt(this.pie5||U(this.primaryColor,{h:-60}),20),this.git5=pt(this.pie6||U(this.primaryColor,{h:-90}),10),this.git6=pt(this.pie7||U(this.primaryColor,{h:60}),10),this.git7=pt(this.pie8||U(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||st(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||st(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.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||pt("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||pt("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||pt("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||pt("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||pt(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||pt(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||pt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pt(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(bl,"Theme"),bl),rnt=B(t=>{const e=new ent;return e.calculate(t),e},"getThemeVariables"),vl,int=(vl=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=U(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=U(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Xt(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=Ka(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 e,r,i,n,s,o,c,u,h,f,p,m,g,x,v,b,w,_,S,E,L,A,R,j,Y,W,O,z,X,M,F,N,P,$;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||U(this.primaryColor,{h:30}),this.cScale4=this.cScale4||U(this.primaryColor,{h:60}),this.cScale5=this.cScale5||U(this.primaryColor,{h:90}),this.cScale6=this.cScale6||U(this.primaryColor,{h:120}),this.cScale7=this.cScale7||U(this.primaryColor,{h:150}),this.cScale8=this.cScale8||U(this.primaryColor,{h:210}),this.cScale9=this.cScale9||U(this.primaryColor,{h:270}),this.cScale10=this.cScale10||U(this.primaryColor,{h:300}),this.cScale11=this.cScale11||U(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||gt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||gt(this.tertiaryColor,40);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScale"+q]=gt(this["cScale"+q],10),this["cScalePeer"+q]=this["cScalePeer"+q]||gt(this["cScale"+q],25);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||U(this["cScale"+q],{h:180});for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||U(this.mainBkg,{h:30,l:-(5+q*5)}),this["surfacePeer"+q]=this["surfacePeer"+q]||U(this.mainBkg,{h:30,l:-(7+q*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||st(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||st(this.labelTextColor);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||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||pt(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||pt(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=U(this.primaryColor,{h:64}),this.fillType3=U(this.secondaryColor,{h:64}),this.fillType4=U(this.primaryColor,{h:-64}),this.fillType5=U(this.secondaryColor,{h:-64}),this.fillType6=U(this.primaryColor,{h:128}),this.fillType7=U(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||U(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||U(this.primaryColor,{l:-10}),this.pie5=this.pie5||U(this.secondaryColor,{l:-30}),this.pie6=this.pie6||U(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||U(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||U(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||U(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||U(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||U(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||U(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??U(this.primaryColor,{l:-30}),this.venn2=this.venn2??U(this.secondaryColor,{l:-30}),this.venn3=this.venn3??U(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??U(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??U(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??U(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??U(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??U(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||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(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:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((f=this.radar)==null?void 0:f.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((p=this.wardley)==null?void 0:p.backgroundColor)||this.background,axisColor:((m=this.wardley)==null?void 0:m.axisColor)||this.lineColor,axisTextColor:((g=this.wardley)==null?void 0:g.axisTextColor)||this.primaryTextColor,gridColor:((x=this.wardley)==null?void 0:x.gridColor)||this.gridColor,componentFill:((v=this.wardley)==null?void 0:v.componentFill)||this.background,componentStroke:((b=this.wardley)==null?void 0:b.componentStroke)||this.lineColor,componentLabelColor:((w=this.wardley)==null?void 0:w.componentLabelColor)||this.primaryTextColor,linkStroke:((_=this.wardley)==null?void 0:_.linkStroke)||this.lineColor,evolutionStroke:((S=this.wardley)==null?void 0:S.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((E=this.wardley)==null?void 0:E.annotationStroke)||this.lineColor,annotationTextColor:((L=this.wardley)==null?void 0:L.annotationTextColor)||this.primaryTextColor,annotationFill:((A=this.wardley)==null?void 0:A.annotationFill)||this.background},this.xyChart={backgroundColor:((R=this.xyChart)==null?void 0:R.backgroundColor)||this.background,titleColor:((j=this.xyChart)==null?void 0:j.titleColor)||this.primaryTextColor,dataLabelColor:((Y=this.xyChart)==null?void 0:Y.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((W=this.xyChart)==null?void 0:W.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((O=this.xyChart)==null?void 0:O.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((z=this.xyChart)==null?void 0:z.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((X=this.xyChart)==null?void 0:X.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((M=this.xyChart)==null?void 0:M.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(($=this.xyChart)==null?void 0:$.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||U(this.primaryColor,{h:-30}),this.git4=this.git4||U(this.primaryColor,{h:-60}),this.git5=this.git5||U(this.primaryColor,{h:-90}),this.git6=this.git6||U(this.primaryColor,{h:60}),this.git7=this.git7||U(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||gt(st(this.git0),25),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||st(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||st(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(vl,"Theme"),vl),nnt=B(t=>{const e=new int;return e.calculate(t),e},"getThemeVariables"),Cl,ant=(Cl=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=pt("#cde498",10),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.primaryColor),this.lineColor=st(this.background),this.textColor=st(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 e,r,i,n,s,o,c,u,h,f,p,m,g,x,v,b,w,_,S,E,L,A,R,j,Y,W,O,z,X,M,F,N,P,$;this.actorBorder=gt(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||U(this.primaryColor,{h:30}),this.cScale4=this.cScale4||U(this.primaryColor,{h:60}),this.cScale5=this.cScale5||U(this.primaryColor,{h:90}),this.cScale6=this.cScale6||U(this.primaryColor,{h:120}),this.cScale7=this.cScale7||U(this.primaryColor,{h:150}),this.cScale8=this.cScale8||U(this.primaryColor,{h:210}),this.cScale9=this.cScale9||U(this.primaryColor,{h:270}),this.cScale10=this.cScale10||U(this.primaryColor,{h:300}),this.cScale11=this.cScale11||U(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||gt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||gt(this.tertiaryColor,40);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScale"+q]=gt(this["cScale"+q],10),this["cScalePeer"+q]=this["cScalePeer"+q]||gt(this["cScale"+q],25);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||U(this["cScale"+q],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||U(this.mainBkg,{h:30,s:-30,l:-(5+q*5)}),this["surfacePeer"+q]=this["surfacePeer"+q]||U(this.mainBkg,{h:30,s:-30,l:-(8+q*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||pt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||pt(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=U(this.primaryColor,{h:64}),this.fillType3=U(this.secondaryColor,{h:64}),this.fillType4=U(this.primaryColor,{h:-64}),this.fillType5=U(this.secondaryColor,{h:-64}),this.fillType6=U(this.primaryColor,{h:128}),this.fillType7=U(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||U(this.primaryColor,{l:-30}),this.pie5=this.pie5||U(this.secondaryColor,{l:-30}),this.pie6=this.pie6||U(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||U(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||U(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||U(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||U(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||U(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||U(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??U(this.primaryColor,{l:-30}),this.venn2=this.venn2??U(this.secondaryColor,{l:-30}),this.venn3=this.venn3??U(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??U(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??U(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??U(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??U(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??U(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||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(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:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((f=this.radar)==null?void 0:f.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((p=this.wardley)==null?void 0:p.backgroundColor)||this.background,axisColor:((m=this.wardley)==null?void 0:m.axisColor)||this.lineColor,axisTextColor:((g=this.wardley)==null?void 0:g.axisTextColor)||this.primaryTextColor,gridColor:((x=this.wardley)==null?void 0:x.gridColor)||this.gridColor,componentFill:((v=this.wardley)==null?void 0:v.componentFill)||this.background,componentStroke:((b=this.wardley)==null?void 0:b.componentStroke)||this.lineColor,componentLabelColor:((w=this.wardley)==null?void 0:w.componentLabelColor)||this.primaryTextColor,linkStroke:((_=this.wardley)==null?void 0:_.linkStroke)||this.lineColor,evolutionStroke:((S=this.wardley)==null?void 0:S.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((E=this.wardley)==null?void 0:E.annotationStroke)||this.lineColor,annotationTextColor:((L=this.wardley)==null?void 0:L.annotationTextColor)||this.primaryTextColor,annotationFill:((A=this.wardley)==null?void 0:A.annotationFill)||this.background},this.xyChart={backgroundColor:((R=this.xyChart)==null?void 0:R.backgroundColor)||this.background,titleColor:((j=this.xyChart)==null?void 0:j.titleColor)||this.primaryTextColor,dataLabelColor:((Y=this.xyChart)==null?void 0:Y.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((W=this.xyChart)==null?void 0:W.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((O=this.xyChart)==null?void 0:O.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((z=this.xyChart)==null?void 0:z.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((X=this.xyChart)==null?void 0:X.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((M=this.xyChart)==null?void 0:M.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(($=this.xyChart)==null?void 0:$.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||U(this.primaryColor,{h:-30}),this.git4=this.git4||U(this.primaryColor,{h:-60}),this.git5=this.git5||U(this.primaryColor,{h:-90}),this.git6=this.git6||U(this.primaryColor,{h:60}),this.git7=this.git7||U(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||st(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||st(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(Cl,"Theme"),Cl),snt=B(t=>{const e=new ant;return e.calculate(t),e},"getThemeVariables"),wl,ont=(wl=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=pt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=U(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(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||pt(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 e,r,i,n,s,o,c,u,h,f,p,m,g,x,v,b,w,_,S,E,L,A,R,j,Y,W,O,z,X,M,F,N,P,$;this.secondBkg=pt(this.contrast,55),this.border2=this.contrast,this.actorBorder=pt(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 q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleInv"+q]=this["cScaleInv"+q]||st(this["cScale"+q]);for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this.darkMode?this["cScalePeer"+q]=this["cScalePeer"+q]||pt(this["cScale"+q],10):this["cScalePeer"+q]=this["cScalePeer"+q]||gt(this["cScale"+q],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["cScaleLabel"+q]=this["cScaleLabel"+q]||this.scaleLabelColor;for(let q=0;q<5;q++)this["surface"+q]=this["surface"+q]||U(this.mainBkg,{l:-(5+q*5)}),this["surfacePeer"+q]=this["surfacePeer"+q]||U(this.mainBkg,{l:-(8+q*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=pt(this.contrast,30),this.sectionBkgColor2=pt(this.contrast,30),this.taskBorderColor=gt(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=pt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=gt(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=U(this.primaryColor,{h:64}),this.fillType3=U(this.secondaryColor,{h:64}),this.fillType4=U(this.primaryColor,{h:-64}),this.fillType5=U(this.secondaryColor,{h:-64}),this.fillType6=U(this.primaryColor,{h:128}),this.fillType7=U(this.secondaryColor,{h:128});for(let q=0;q<this.THEME_COLOR_LIMIT;q++)this["pie"+q]=this["cScale"+q];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 q=0;q<8;q++)this["venn"+(q+1)]=this["venn"+(q+1)]??this["cScale"+q];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.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:((v=this.radar)==null?void 0:v.axisLabelFontSize)||12,curveOpacity:((b=this.radar)==null?void 0:b.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((_=this.radar)==null?void 0:_.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((S=this.radar)==null?void 0:S.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((L=this.radar)==null?void 0:L.legendBoxSize)||12,legendFontSize:((A=this.radar)==null?void 0:A.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((R=this.wardley)==null?void 0:R.backgroundColor)||this.background,axisColor:((j=this.wardley)==null?void 0:j.axisColor)||this.lineColor,axisTextColor:((Y=this.wardley)==null?void 0:Y.axisTextColor)||this.primaryTextColor,gridColor:((W=this.wardley)==null?void 0:W.gridColor)||this.gridColor,componentFill:((O=this.wardley)==null?void 0:O.componentFill)||this.background,componentStroke:((z=this.wardley)==null?void 0:z.componentStroke)||this.lineColor,componentLabelColor:((X=this.wardley)==null?void 0:X.componentLabelColor)||this.primaryTextColor,linkStroke:((M=this.wardley)==null?void 0:M.linkStroke)||this.lineColor,evolutionStroke:((F=this.wardley)==null?void 0:F.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((N=this.wardley)==null?void 0:N.annotationStroke)||this.lineColor,annotationTextColor:((P=this.wardley)==null?void 0:P.annotationTextColor)||this.primaryTextColor,annotationFill:(($=this.wardley)==null?void 0:$.annotationFill)||this.background},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=gt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||U(this.primaryColor,{h:-30}),this.git4=this.pie5||U(this.primaryColor,{h:-60}),this.git5=this.pie6||U(this.primaryColor,{h:-90}),this.git6=this.pie7||U(this.primaryColor,{h:60}),this.git7=this.pie8||U(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(wl,"Theme"),wl),lnt=B(t=>{const e=new ont;return e.calculate(t),e},"getThemeVariables"),Sl,cnt=(Sl=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=Xt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var s,o,c,u,h,f,p,m,g,x,v;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",i=U(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||pt(e,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||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||U(e,{h:30}),this.cScale4=this.cScale4||U(e,{h:60}),this.cScale5=this.cScale5||U(e,{h:90}),this.cScale6=this.cScale6||U(e,{h:120}),this.cScale7=this.cScale7||U(e,{h:150}),this.cScale8=this.cScale8||U(e,{h:210,l:150}),this.cScale9=this.cScale9||U(e,{h:270}),this.cScale10=this.cScale10||U(e,{h:300}),this.cScale11=this.cScale11||U(e,{h:330}),this.darkMode)for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScale"+b]=gt(this["cScale"+b],75);else for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScale"+b]=gt(this["cScale"+b],25);for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleInv"+b]=this["cScaleInv"+b]||st(this["cScale"+b]);for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this.darkMode?this["cScalePeer"+b]=this["cScalePeer"+b]||pt(this["cScale"+b],10):this["cScalePeer"+b]=this["cScalePeer"+b]||gt(this["cScale"+b],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleLabel"+b]=this["cScaleLabel"+b]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let b=0;b<5;b++)this["surface"+b]=this["surface"+b]||U(this.mainBkg,{h:180,s:-15,l:n*(5+b*3)}),this["surfacePeer"+b]=this["surfacePeer"+b]||U(this.mainBkg,{h:180,s:-15,l:n*(8+b*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||U(e,{h:64}),this.fillType3=this.fillType3||U(r,{h:64}),this.fillType4=this.fillType4||U(e,{h:-64}),this.fillType5=this.fillType5||U(r,{h:-64}),this.fillType6=this.fillType6||U(e,{h:128}),this.fillType7=this.fillType7||U(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||U(e,{l:-10}),this.pie5=this.pie5||U(r,{l:-10}),this.pie6=this.pie6||U(i,{l:-10}),this.pie7=this.pie7||U(e,{h:60,l:-10}),this.pie8=this.pie8||U(e,{h:-60,l:-10}),this.pie9=this.pie9||U(e,{h:120,l:0}),this.pie10=this.pie10||U(e,{h:60,l:-20}),this.pie11=this.pie11||U(e,{h:-60,l:-20}),this.pie12=this.pie12||U(e,{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||e,this.quadrant2Fill=this.quadrant2Fill||U(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.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:((v=this.xyChart)==null?void 0:v.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,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?gt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||U(e,{h:-30}),this.git4=this.git4||U(e,{h:-60}),this.git5=this.git5||U(e,{h:-90}),this.git6=this.git6||U(e,{h:60}),this.git7=this.git7||U(e,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(Sl,"Theme"),Sl),unt=B(t=>{const e=new cnt;return e.calculate(t),e},"getThemeVariables"),kl,hnt=(kl=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=pt(this.primaryColor,16),this.tertiaryColor=U(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=pt(st("#323D47"),10),this.border1="#ccc",this.border2=Ka(255,255,255,.25),this.arrowheadColor=st(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,n,s,o,c,u,h,f,p,m;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||pt(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||U(this.primaryColor,{h:30}),this.cScale4=this.cScale4||U(this.primaryColor,{h:60}),this.cScale5=this.cScale5||U(this.primaryColor,{h:90}),this.cScale6=this.cScale6||U(this.primaryColor,{h:120}),this.cScale7=this.cScale7||U(this.primaryColor,{h:150}),this.cScale8=this.cScale8||U(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||U(this.primaryColor,{h:270}),this.cScale10=this.cScale10||U(this.primaryColor,{h:300}),this.cScale11=this.cScale11||U(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=gt(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=gt(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||st(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||pt(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||gt(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 e=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||U(this.mainBkg,{h:180,s:-15,l:e*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||U(this.mainBkg,{h:180,s:-15,l:e*(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||U(this.primaryColor,{h:64}),this.fillType3=this.fillType3||U(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||U(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||U(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||U(this.primaryColor,{h:128}),this.fillType7=this.fillType7||U(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||U(this.primaryColor,{l:-10}),this.pie5=this.pie5||U(this.secondaryColor,{l:-10}),this.pie6=this.pie6||U(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||U(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||U(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||U(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||U(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||U(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||U(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||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.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?gt(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=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(kl,"Theme"),kl),fnt=B(t=>{const e=new hnt;return e.calculate(t),e},"getThemeVariables"),_l,dnt=(_l=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=Xt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var s,o,c,u,h,f,p,m,g,x,v;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",i=U(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||pt(e,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 b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScale"+b]=this.mainBkg;if(this.darkMode)for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScale"+b]=gt(this["cScale"+b],75);else for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScale"+b]=gt(this["cScale"+b],25);for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleInv"+b]=this["cScaleInv"+b]||st(this["cScale"+b]);for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this.darkMode?this["cScalePeer"+b]=this["cScalePeer"+b]||pt(this["cScale"+b],10):this["cScalePeer"+b]=this["cScalePeer"+b]||gt(this["cScale"+b],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleLabel"+b]=this["cScaleLabel"+b]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let b=0;b<5;b++)this["surface"+b]=this["surface"+b]||U(this.mainBkg,{h:180,s:-15,l:n*(5+b*3)}),this["surfacePeer"+b]=this["surfacePeer"+b]||U(this.mainBkg,{h:180,s:-15,l:n*(8+b*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||U(e,{h:64}),this.fillType3=this.fillType3||U(r,{h:64}),this.fillType4=this.fillType4||U(e,{h:-64}),this.fillType5=this.fillType5||U(r,{h:-64}),this.fillType6=this.fillType6||U(e,{h:128}),this.fillType7=this.fillType7||U(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||U(e,{l:-10}),this.pie5=this.pie5||U(r,{l:-10}),this.pie6=this.pie6||U(i,{l:-10}),this.pie7=this.pie7||U(e,{h:60,l:-10}),this.pie8=this.pie8||U(e,{h:-60,l:-10}),this.pie9=this.pie9||U(e,{h:120,l:0}),this.pie10=this.pie10||U(e,{h:60,l:-20}),this.pie11=this.pie11||U(e,{h:-60,l:-20}),this.pie12=this.pie12||U(e,{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||e,this.quadrant2Fill=this.quadrant2Fill||U(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.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:((v=this.xyChart)==null?void 0:v.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,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?gt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||U(e,{h:-30}),this.git4=this.git4||U(e,{h:-60}),this.git5=this.git5||U(e,{h:-90}),this.git6=this.git6||U(e,{h:60}),this.git7=this.git7||U(e,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(_l,"Theme"),_l),pnt=B(t=>{const e=new dnt;return e.calculate(t),e},"getThemeVariables"),Tl,gnt=(Tl=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=pt(this.primaryColor,16),this.tertiaryColor=U(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=pt(st("#323D47"),10),this.border1="#ccc",this.border2=Ka(255,255,255,.25),this.arrowheadColor=st(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,n,s,o,c,u,h,f,p,m;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||pt(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||U(this.primaryColor,{h:30}),this.cScale4=this.cScale4||U(this.primaryColor,{h:60}),this.cScale5=this.cScale5||U(this.primaryColor,{h:90}),this.cScale6=this.cScale6||U(this.primaryColor,{h:120}),this.cScale7=this.cScale7||U(this.primaryColor,{h:150}),this.cScale8=this.cScale8||U(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||U(this.primaryColor,{h:270}),this.cScale10=this.cScale10||U(this.primaryColor,{h:300}),this.cScale11=this.cScale11||U(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=gt(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=gt(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||st(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||pt(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||gt(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 e=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||U(this.mainBkg,{h:180,s:-15,l:e*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||U(this.mainBkg,{h:180,s:-15,l:e*(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||U(this.primaryColor,{h:64}),this.fillType3=this.fillType3||U(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||U(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||U(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||U(this.primaryColor,{h:128}),this.fillType7=this.fillType7||U(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||U(this.primaryColor,{l:-10}),this.pie5=this.pie5||U(this.secondaryColor,{l:-10}),this.pie6=this.pie6||U(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||U(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||U(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||U(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||U(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||U(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||U(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||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.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?gt(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||U(this.primaryColor,{h:-30}),this.git4=this.git4||U(this.primaryColor,{h:-60}),this.git5=this.git5||U(this.primaryColor,{h:-90}),this.git6=this.git6||U(this.primaryColor,{h:60}),this.git7=this.git7||U(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(Tl,"Theme"),Tl),mnt=B(t=>{const e=new gnt;return e.calculate(t),e},"getThemeVariables"),El,ynt=(El=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=Xt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var s,o,c,u,h,f,p,m,g,x,v;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor);const e="#ECECFE",r="#E9E9F1",i=U(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||pt(e,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 b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleInv"+b]=this["cScaleInv"+b]||st(this["cScale"+b]);for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this.darkMode?this["cScalePeer"+b]=this["cScalePeer"+b]||pt(this["cScale"+b],10):this["cScalePeer"+b]=this["cScalePeer"+b]||gt(this["cScale"+b],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let b=0;b<this.THEME_COLOR_LIMIT;b++)this["cScaleLabel"+b]=this["cScaleLabel"+b]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let b=0;b<5;b++)this["surface"+b]=this["surface"+b]||U(this.mainBkg,{h:180,s:-15,l:n*(5+b*3)}),this["surfacePeer"+b]=this["surfacePeer"+b]||U(this.mainBkg,{h:180,s:-15,l:n*(8+b*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||e,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||U(e,{h:64}),this.fillType3=this.fillType3||U(r,{h:64}),this.fillType4=this.fillType4||U(e,{h:-64}),this.fillType5=this.fillType5||U(r,{h:-64}),this.fillType6=this.fillType6||U(e,{h:128}),this.fillType7=this.fillType7||U(r,{h:128}),this.pie1=this.pie1||e,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||U(e,{l:-10}),this.pie5=this.pie5||U(r,{l:-10}),this.pie6=this.pie6||U(i,{l:-10}),this.pie7=this.pie7||U(e,{h:60,l:-10}),this.pie8=this.pie8||U(e,{h:-60,l:-10}),this.pie9=this.pie9||U(e,{h:120,l:0}),this.pie10=this.pie10||U(e,{h:60,l:-20}),this.pie11=this.pie11||U(e,{h:-60,l:-20}),this.pie12=this.pie12||U(e,{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||e,this.quadrant2Fill=this.quadrant2Fill||U(e,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(e,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(e,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((c=this.xyChart)==null?void 0:c.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.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:((v=this.xyChart)==null?void 0:v.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||e,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?gt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||e,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||U(e,{h:-30}),this.git4=this.git4||U(e,{h:-60}),this.git5=this.git5||U(e,{h:-90}),this.git6=this.git6||U(e,{h:60}),this.git7=this.git7||U(e,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(El,"Theme"),El),xnt=B(t=>{const e=new ynt;return e.calculate(t),e},"getThemeVariables"),Al,bnt=(Al=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=pt(this.primaryColor,16),this.tertiaryColor=U(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=pt(st("#323D47"),10),this.border1="#ccc",this.border2=Ka(255,255,255,.25),this.arrowheadColor=st(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,n,s,o,c,u,h,f,p,m;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||U(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||U(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(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?gt(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||gt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(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||pt(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]||st(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||pt(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||gt(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=gt(this["cScale"+g],75);const e=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||U(this.mainBkg,{h:180,s:-15,l:e*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||U(this.mainBkg,{h:180,s:-15,l:e*(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||U(this.primaryColor,{h:64}),this.fillType3=this.fillType3||U(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||U(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||U(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||U(this.primaryColor,{h:128}),this.fillType7=this.fillType7||U(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||U(this.primaryColor,{l:-10}),this.pie5=this.pie5||U(this.secondaryColor,{l:-10}),this.pie6=this.pie6||U(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||U(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||U(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||U(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||U(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||U(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||U(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||U(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||U(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||U(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||U(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||U(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||U(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fn(this.quadrant1Fill)?pt(this.quadrant1Fill):gt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.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?gt(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||U(this.primaryColor,{h:-30}),this.git4=this.git4||U(this.primaryColor,{h:-60}),this.git5=this.git5||U(this.primaryColor,{h:-90}),this.git6=this.git6||U(this.primaryColor,{h:60}),this.git7=this.git7||U(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(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||Rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dn}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(i=>{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},B(Al,"Theme"),Al),vnt=B(t=>{const e=new bnt;return e.calculate(t),e},"getThemeVariables"),oa={base:{getThemeVariables:tnt},dark:{getThemeVariables:rnt},default:{getThemeVariables:nnt},forest:{getThemeVariables:snt},neutral:{getThemeVariables:lnt},neo:{getThemeVariables:unt},"neo-dark":{getThemeVariables:fnt},redux:{getThemeVariables:pnt},"redux-dark":{getThemeVariables:mnt},"redux-color":{getThemeVariables:xnt},"redux-dark-color":{getThemeVariables:vnt}},Wr={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,hierarchicalNamespaces:!0},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:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},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,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},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},QF={...Wr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:oa.default.getThemeVariables(),sequence:{...Wr.sequence,messageFont:B(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:B(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:B(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Wr.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Wr.c4,useWidth:void 0,personFont:B(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Wr.flowchart,inheritDir:!1},external_personFont:B(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:B(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:B(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:B(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:B(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:B(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:B(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:B(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:B(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:B(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:B(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:B(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:B(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:B(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:B(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:B(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:B(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:B(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:B(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:B(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:B(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Wr.pie,useWidth:984},xyChart:{...Wr.xyChart,useWidth:void 0},requirement:{...Wr.requirement,useWidth:void 0},packet:{...Wr.packet},eventmodeling:{...Wr.eventmodeling},treeView:{...Wr.treeView,useWidth:void 0},radar:{...Wr.radar},ishikawa:{...Wr.ishikawa},sankey:{...Wr.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Wr.venn}},ZF=B((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...ZF(t[i],"")]:[...r,e+i],[]),"keyify"),Cnt=new Set(ZF(QF,"")),KF=QF,Id=B(t=>{if(St.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Id(e));return}for(const e of Object.keys(t)){if(St.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Cnt.has(e)||t[e]==null){St.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){if(e==="nodeColors"){const i=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const n of Object.keys(t[e]))(typeof t[e][n]!="string"||!i.test(t[e][n]))&&(St.debug("sanitize deleting invalid color:",n,t[e][n]),delete t[e][n])}else St.debug("sanitizing object",e),Id(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)e.includes(i)&&(St.debug("sanitizing css option",e),t[e]=JF(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}St.debug("After sanitization",t)}},"sanitizeDirective"),JF=B(t=>{let e=0,r=0;for(const i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),jl=Object.freeze(KF),pa=B(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),fi=_r({},jl),qd,Ks=[],Lu=_r({},jl),Pp=B((t,e)=>{let r=_r({},t),i={};for(const n of e)r6(n),i=_r(i,n);if(r=_r(r,i),i.theme&&i.theme in oa){const n=_r({},qd),s=_r(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in oa&&(r.themeVariables=oa[r.theme].getThemeVariables(s))}return Lu=r,n6(Lu),Lu},"updateCurrentConfig"),wnt=B(t=>(fi=_r({},jl),fi=_r(fi,t),t.theme&&oa[t.theme]&&(fi.themeVariables=oa[t.theme].getThemeVariables(t.themeVariables)),Pp(fi,Ks),fi),"setSiteConfig"),Snt=B(t=>{qd=_r({},t)},"saveConfigFromInitialize"),knt=B(t=>(fi=_r(fi,t),Pp(fi,Ks),fi),"updateSiteConfig"),t6=B(()=>_r({},fi),"getSiteConfig"),e6=B(t=>(n6(t),_r(Lu,t),Ke()),"setConfig"),Ke=B(()=>_r({},Lu),"getConfig"),r6=B(t=>{t&&(["secure",...fi.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(St.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&r6(t[e])}))},"sanitize"),_nt=B(t=>{var e;Id(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Ks.push(t),Pp(fi,Ks)},"addDirective"),zd=B((t=fi)=>{Ks=[],Pp(t,Ks)},"reset"),Tnt={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."},e4={},i6=B(t=>{e4[t]||(St.warn(Tnt[t]),e4[t]=!0)},"issueWarning"),n6=B(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&i6("LAZY_LOAD_DEPRECATED")},"checkConfig"),qdt=B(()=>{let t={};qd&&(t=_r(t,qd));for(const e of Ks)t=_r(t,e);return t},"getUserDefinedConfig"),Kr=B(t=>{var e,r;return((e=t.flowchart)==null?void 0:e.htmlLabels)!=null&&i6("FLOWCHART_HTML_LABELS_DEPRECATED"),pa(t.htmlLabels??((r=t.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),ph=/<br\s*\/?>/gi,Ent=B(t=>t?o6(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Ant=(()=>{let t=!1;return()=>{t||(a6(),t=!0)}})();function a6(){const t="data-temp-href-target";zl.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),zl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}B(a6,"setupDompurifyHooks");var s6=B(t=>(Ant(),zl.sanitize(t)),"removeScript"),r4=B((t,e)=>{if(Kr(e)){const r=e.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?t=s6(t):r!=="loose"&&(t=o6(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=Nnt(t))}return t},"sanitizeMore"),cn=B((t,e)=>t&&(e.dompurifyConfig?t=zl.sanitize(r4(t,e),e.dompurifyConfig).toString():t=zl.sanitize(r4(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),Bnt=B((t,e)=>typeof t=="string"?cn(t,e):t.flat().map(r=>cn(r,e)),"sanitizeTextOrArray"),Lnt=B(t=>ph.test(t),"hasBreaks"),Mnt=B(t=>t.split(ph),"splitBreaks"),Nnt=B(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),o6=B(t=>t.replace(ph,"#br#"),"breakToPlaceholder"),Ont=B(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Rnt=B(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),Dnt=B(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),i4=B(function(t){const e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let n=e[i];if(n===","&&i>0&&i+1<e.length){const s=e[i-1],o=e[i+1];Fnt(s,o)&&(n=s+","+o,i++,r.pop())}r.push(Int(n))}return r.join("")},"parseGenericTypes"),JC=B((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),Fnt=B((t,e)=>{const r=JC(t,"~"),i=JC(e,"~");return r===1&&i===1},"shouldCombineSets"),Int=B(t=>{const e=JC(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let n=i.indexOf("~"),s=i.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)i[n]="<",i[s]=">",n=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),n4=B(()=>window.MathMLElement!==void 0,"isMathMLSupported"),t2=/\$\$(.*)\$\$/g,Yu=B(t=>{var e;return(((e=t.match(t2))==null?void 0:e.length)??0)>0},"hasKatex"),zdt=B(async(t,e)=>{const r=document.createElement("div");r.innerHTML=await l6(t,e),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"),qnt=B(async(t,e)=>{if(!Yu(t))return t;if(!(n4()||e.legacyMathML||e.forceLegacyMathML))return t.replace(t2,"MathML is unsupported in this environment.");{const{default:r}=await ge(async()=>{const{default:n}=await import("./katex-DkKDou_j.js");return{default:n}},[]),i=e.forceLegacyMathML||!n4()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(ph).map(n=>Yu(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(t2,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),l6=B(async(t,e)=>cn(await qnt(t,e),e),"renderKatexSanitized"),gh={getRows:Ent,sanitizeText:cn,sanitizeTextOrArray:Bnt,hasBreaks:Lnt,splitBreaks:Mnt,lineBreakRegex:ph,removeScript:s6,getUrl:Ont,evaluate:pa,getMax:Rnt,getMin:Dnt},znt=B(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),jnt=B(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),c6=B(function(t,e,r,i){const n=jnt(e,r,i);znt(t,n)},"configureSvgSize"),$nt=B(function(t,e,r,i){const n=e.node().getBBox(),s=n.width,o=n.height;St.info(`SVG bounds: ${s}x${o}`,n);let c=0,u=0;St.info(`Graph bounds: ${c}x${u}`,t),c=s+r*2,u=o+r*2,St.info(`Calculated bounds: ${c}x${u}`),c6(e,u,c,i);const h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox"),pd={};function e2(t){return[...t.cssRules].map(e=>e.cssText).join(`
298
+ `)}B(e2,"cssStyleSheetToString");var Pnt=B((t,e,r,i)=>{let n="";return t in pd&&pd[t]?n=pd[t]({...r,svgId:i}):St.warn(`No theme found for ${t}`),` & {
299
+ font-family: ${r.fontFamily};
300
+ font-size: ${r.fontSize};
301
+ fill: ${r.textColor}
302
+ }
303
+ @keyframes edge-animation-frame {
304
+ from {
305
+ stroke-dashoffset: 0;
306
+ }
307
+ }
308
+ @keyframes dash {
309
+ to {
310
+ stroke-dashoffset: 0;
311
+ }
312
+ }
313
+ & .edge-animation-slow {
314
+ stroke-dasharray: 9,5 !important;
315
+ stroke-dashoffset: 900;
316
+ animation: dash 50s linear infinite;
317
+ stroke-linecap: round;
318
+ }
319
+ & .edge-animation-fast {
320
+ stroke-dasharray: 9,5 !important;
321
+ stroke-dashoffset: 900;
322
+ animation: dash 20s linear infinite;
323
+ stroke-linecap: round;
324
+ }
325
+ /* Classes common for multiple diagrams */
326
+
327
+ & .error-icon {
328
+ fill: ${r.errorBkgColor};
329
+ }
330
+ & .error-text {
331
+ fill: ${r.errorTextColor};
332
+ stroke: ${r.errorTextColor};
333
+ }
334
+
335
+ & .edge-thickness-normal {
336
+ stroke-width: ${r.strokeWidth??1}px;
337
+ }
338
+ & .edge-thickness-thick {
339
+ stroke-width: 3.5px
340
+ }
341
+ & .edge-pattern-solid {
342
+ stroke-dasharray: 0;
343
+ }
344
+ & .edge-thickness-invisible {
345
+ stroke-width: 0;
346
+ fill: none;
347
+ }
348
+ & .edge-pattern-dashed{
349
+ stroke-dasharray: 3;
350
+ }
351
+ .edge-pattern-dotted {
352
+ stroke-dasharray: 2;
353
+ }
354
+
355
+ & .marker {
356
+ fill: ${r.lineColor};
357
+ stroke: ${r.lineColor};
358
+ }
359
+ & .marker.cross {
360
+ stroke: ${r.lineColor};
361
+ }
362
+
363
+ & svg {
364
+ font-family: ${r.fontFamily};
365
+ font-size: ${r.fontSize};
366
+ }
367
+ & p {
368
+ margin: 0
369
+ }
370
+
371
+ ${n}
372
+ .node .neo-node {
373
+ stroke: ${r.nodeBorder};
374
+ }
375
+
376
+ [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
377
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
378
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
379
+ }
380
+
381
+
382
+ [data-look="neo"].node path {
383
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
384
+ stroke-width: ${r.strokeWidth??1}px;
385
+ }
386
+
387
+ [data-look="neo"].node .outer-path {
388
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
389
+ }
390
+
391
+ [data-look="neo"].node .neo-line path {
392
+ stroke: ${r.nodeBorder};
393
+ filter: none;
394
+ }
395
+
396
+ [data-look="neo"].node circle{
397
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
398
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
399
+ }
400
+
401
+ [data-look="neo"].node circle .state-start{
402
+ fill: #000000;
403
+ }
404
+
405
+ [data-look="neo"].icon-shape .icon {
406
+ fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
407
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
408
+ }
409
+
410
+ [data-look="neo"].icon-shape .icon-neo path {
411
+ stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
412
+ filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
413
+ }
414
+
415
+ ${e}
416
+ `},"getStyles"),Hnt=B((t,e)=>{e!==void 0&&(pd[t]=e)},"addStylesForDiagram"),Unt=Pnt,u6={};bit(u6,{clear:()=>Gnt,getAccDescription:()=>Xnt,getAccTitle:()=>Wnt,getDiagramTitle:()=>Znt,setAccDescription:()=>Vnt,setAccTitle:()=>Ynt,setDiagramTitle:()=>Qnt});var jw="",$w="",Pw="",Hw=B(t=>cn(t,Ke()),"sanitizeText"),Gnt=B(()=>{jw="",Pw="",$w=""},"clear"),Ynt=B(t=>{jw=Hw(t).replace(/^\s+/g,"")},"setAccTitle"),Wnt=B(()=>jw,"getAccTitle"),Vnt=B(t=>{Pw=Hw(t).replace(/\n\s+/g,`
417
+ `)},"setAccDescription"),Xnt=B(()=>Pw,"getAccDescription"),Qnt=B(t=>{$w=Hw(t)},"setDiagramTitle"),Znt=B(()=>$w,"getDiagramTitle"),a4=St,Knt=qw,ve=Ke,jdt=e6,$dt=jl,Uw=B(t=>cn(t,ve()),"sanitizeText"),Jnt=$nt,tat=B(()=>u6,"getCommonDb"),jd={},$d=B((t,e,r)=>{var i;jd[t]&&a4.warn(`Diagram with id ${t} already registered. Overwriting.`),jd[t]=e,r&&XF(t,r),Hnt(t,e.styles),(i=e.injectUtils)==null||i.call(e,a4,Knt,ve,Uw,Jnt,tat(),()=>{})},"registerDiagram"),r2=B(t=>{if(t in jd)return jd[t];throw new eat(t)},"getDiagram"),Bl,eat=(Bl=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},B(Bl,"DiagramNotFoundError"),Bl);const i2=Math.PI,n2=2*i2,qs=1e-6,rat=n2-qs;function h6(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function iat(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return h6;const r=10**e;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class nat{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?h6:iat(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,i,n){this._append`Q${+e},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(e,r,i,n,s,o){this._append`C${+e},${+r},${+i},${+n},${this._x1=+s},${this._y1=+o}`}arcTo(e,r,i,n,s){if(e=+e,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,c=this._y1,u=i-e,h=n-r,f=o-e,p=c-r,m=f*f+p*p;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(m>qs)if(!(Math.abs(p*u-h*f)>qs)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let g=i-o,x=n-c,v=u*u+h*h,b=g*g+x*x,w=Math.sqrt(v),_=Math.sqrt(m),S=s*Math.tan((i2-Math.acos((v+m-b)/(2*w*_)))/2),E=S/_,L=S/w;Math.abs(E-1)>qs&&this._append`L${e+E*f},${r+E*p}`,this._append`A${s},${s},0,0,${+(p*g>f*x)},${this._x1=e+L*u},${this._y1=r+L*h}`}}arc(e,r,i,n,s,o){if(e=+e,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(n),u=i*Math.sin(n),h=e+c,f=r+u,p=1^o,m=o?n-s:s-n;this._x1===null?this._append`M${h},${f}`:(Math.abs(this._x1-h)>qs||Math.abs(this._y1-f)>qs)&&this._append`L${h},${f}`,i&&(m<0&&(m=m%n2+n2),m>rat?this._append`A${i},${i},0,1,${p},${e-c},${r-u}A${i},${i},0,1,${p},${this._x1=h},${this._y1=f}`:m>qs&&this._append`A${i},${i},0,${+(m>=i2)},${p},${this._x1=e+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(e,r,i,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function Ko(t){return function(){return t}}const Pdt=Math.abs,Hdt=Math.atan2,Udt=Math.cos,Gdt=Math.max,Ydt=Math.min,Wdt=Math.sin,Vdt=Math.sqrt,s4=1e-12,Gw=Math.PI,o4=Gw/2,Xdt=2*Gw;function Qdt(t){return t>1?0:t<-1?Gw:Math.acos(t)}function Zdt(t){return t>=1?o4:t<=-1?-o4:Math.asin(t)}function aat(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new nat(e)}function sat(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function f6(t){this._context=t}f6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Mu(t){return new f6(t)}function oat(t){return t[0]}function lat(t){return t[1]}function cat(t,e){var r=Ko(!0),i=null,n=Mu,s=null,o=aat(c);t=typeof t=="function"?t:t===void 0?oat:Ko(t),e=typeof e=="function"?e:e===void 0?lat:Ko(e);function c(u){var h,f=(u=sat(u)).length,p,m=!1,g;for(i==null&&(s=n(g=o())),h=0;h<=f;++h)!(h<f&&r(p=u[h],h,u))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+t(p,h,u),+e(p,h,u));if(g)return s=null,g+""||null}return c.x=function(u){return arguments.length?(t=typeof u=="function"?u:Ko(+u),c):t},c.y=function(u){return arguments.length?(e=typeof u=="function"?u:Ko(+u),c):e},c.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Ko(!!u),c):r},c.curve=function(u){return arguments.length?(n=u,i!=null&&(s=n(i)),c):n},c.context=function(u){return arguments.length?(u==null?i=s=null:s=n(i=u),c):i},c}class d6{constructor(e,r){this._context=e,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(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function p6(t){return new d6(t,!0)}function g6(t){return new d6(t,!1)}function ts(){}function Pd(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Hp(t){this._context=t}Hp.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:Pd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pd(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function a2(t){return new Hp(t)}function m6(t){this._context=t}m6.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Pd(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function uat(t){return new m6(t)}function y6(t){this._context=t}y6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Pd(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function hat(t){return new y6(t)}function x6(t,e){this._basis=new Hp(t),this._beta=e}x6.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],n=e[0],s=t[r]-i,o=e[r]-n,c=-1,u;++c<=r;)u=c/r,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+u*s),this._beta*e[c]+(1-this._beta)*(n+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const fat=(function t(e){function r(i){return e===1?new Hp(i):new x6(i,e)}return r.beta=function(i){return t(+i)},r})(.85);function Hd(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Yw(t,e){this._context=t,this._k=(1-e)/6}Yw.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:Hd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Hd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const b6=(function t(e){function r(i){return new Yw(i,e)}return r.tension=function(i){return t(+i)},r})(0);function Ww(t,e){this._context=t,this._k=(1-e)/6}Ww.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Hd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dat=(function t(e){function r(i){return new Ww(i,e)}return r.tension=function(i){return t(+i)},r})(0);function Vw(t,e){this._context=t,this._k=(1-e)/6}Vw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pat=(function t(e){function r(i){return new Vw(i,e)}return r.tension=function(i){return t(+i)},r})(0);function Xw(t,e,r){var i=t._x1,n=t._y1,s=t._x2,o=t._y2;if(t._l01_a>s4){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,n=(n*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>s4){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/f,o=(o*h+t._y1*t._l23_2a-r*t._l12_2a)/f}t._context.bezierCurveTo(i,n,s,o,t._x2,t._y2)}function v6(t,e){this._context=t,this._alpha=e}v6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;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(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Xw(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const C6=(function t(e){function r(i){return e?new v6(i,e):new Yw(i,0)}return r.alpha=function(i){return t(+i)},r})(.5);function w6(t,e){this._context=t,this._alpha=e}w6.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;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=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xw(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gat=(function t(e){function r(i){return e?new w6(i,e):new Ww(i,0)}return r.alpha=function(i){return t(+i)},r})(.5);function S6(t,e){this._context=t,this._alpha=e}S6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;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:Xw(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const mat=(function t(e){function r(i){return e?new S6(i,e):new Vw(i,0)}return r.alpha=function(i){return t(+i)},r})(.5);function k6(t){this._context=t}k6.prototype={areaStart:ts,areaEnd:ts,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function yat(t){return new k6(t)}function l4(t){return t<0?-1:1}function c4(t,e,r){var i=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(i||n<0&&-0),o=(r-t._y1)/(n||i<0&&-0),c=(s*n+o*i)/(i+n);return(l4(s)+l4(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(c))||0}function u4(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function cC(t,e,r){var i=t._x0,n=t._y0,s=t._x1,o=t._y1,c=(s-i)/3;t._context.bezierCurveTo(i+c,n+c*e,s-c,o-c*r,s,o)}function Ud(t){this._context=t}Ud.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:cC(this,this._t0,u4(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,cC(this,u4(this,r=c4(this,t,e)),r);break;default:cC(this,this._t0,r=c4(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function _6(t){this._context=new T6(t)}(_6.prototype=Object.create(Ud.prototype)).point=function(t,e){Ud.prototype.point.call(this,e,t)};function T6(t){this._context=t}T6.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,s){this._context.bezierCurveTo(e,t,i,r,s,n)}};function E6(t){return new Ud(t)}function A6(t){return new _6(t)}function B6(t){this._context=t}B6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=h4(t),n=h4(e),s=0,o=1;o<r;++s,++o)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],t[o],e[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function h4(t){var e,r=t.length-1,i,n=new Array(r),s=new Array(r),o=new Array(r);for(n[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)n[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(n[r-1]=2,s[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)i=n[e]/s[e-1],s[e]-=i,o[e]-=i*o[e-1];for(n[r-1]=o[r-1]/s[r-1],e=r-2;e>=0;--e)n[e]=(o[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e<r-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function L6(t){return new B6(t)}function Up(t,e){this._context=t,this._t=e}Up.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function M6(t){return new Up(t,.5)}function N6(t){return new Up(t,0)}function O6(t){return new Up(t,1)}var xat=B(t=>{var n;const{securityLevel:e}=ve();let r=Ut("body");if(e==="sandbox"){const o=((n=Ut(`#i${t}`).node())==null?void 0:n.contentDocument)??document;r=Ut(o.body)}return r.select(`#${t}`)},"selectSvgElement");function Qw(t){return typeof t>"u"||t===null}B(Qw,"isNothing");function R6(t){return typeof t=="object"&&t!==null}B(R6,"isObject");function D6(t){return Array.isArray(t)?t:Qw(t)?[]:[t]}B(D6,"toArray");function F6(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}B(F6,"extend");function I6(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}B(I6,"repeat");function q6(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}B(q6,"isNegativeZero");var bat=Qw,vat=R6,Cat=D6,wat=I6,Sat=q6,kat=F6,Tr={isNothing:bat,isObject:vat,toArray:Cat,repeat:wat,isNegativeZero:Sat,extend:kat};function Zw(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
418
+
419
+ `+t.mark.snippet),i+" "+r):i}B(Zw,"formatError");function $l(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Zw(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}B($l,"YAMLException$1");$l.prototype=Object.create(Error.prototype);$l.prototype.constructor=$l;$l.prototype.toString=B(function(e){return this.name+": "+Zw(this,e)},"toString");var di=$l;function gd(t,e,r,i,n){var s="",o="",c=Math.floor(n/2)-1;return i-e>c&&(s=" ... ",e=i-c+s.length),r-i>c&&(o=" ...",r=i+c-o.length),{str:s+t.slice(e,r).replace(/\t/g,"→")+o,pos:i-e+s.length}}B(gd,"getLine");function md(t,e){return Tr.repeat(" ",e-t.length)+t}B(md,"padStart");function z6(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var c="",u,h,f=Math.min(t.line+e.linesAfter,n.length).toString().length,p=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)h=gd(t.buffer,i[o-u],n[o-u],t.position-(i[o]-i[o-u]),p),c=Tr.repeat(" ",e.indent)+md((t.line-u+1).toString(),f)+" | "+h.str+`
420
+ `+c;for(h=gd(t.buffer,i[o],n[o],t.position,p),c+=Tr.repeat(" ",e.indent)+md((t.line+1).toString(),f)+" | "+h.str+`
421
+ `,c+=Tr.repeat("-",e.indent+f+3+h.pos)+`^
422
+ `,u=1;u<=e.linesAfter&&!(o+u>=n.length);u++)h=gd(t.buffer,i[o+u],n[o+u],t.position-(i[o]-i[o+u]),p),c+=Tr.repeat(" ",e.indent)+md((t.line+u+1).toString(),f)+" | "+h.str+`
423
+ `;return c.replace(/\n$/,"")}B(z6,"makeSnippet");var _at=z6,Tat=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Eat=["scalar","sequence","mapping"];function j6(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}B(j6,"compileStyleAliases");function $6(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Tat.indexOf(r)===-1)throw new di('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=j6(e.styleAliases||null),Eat.indexOf(this.kind)===-1)throw new di('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}B($6,"Type$1");var Pr=$6;function s2(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}B(s2,"compileList");function P6(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(B(i,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}B(P6,"compileMap");function Gd(t){return this.extend(t)}B(Gd,"Schema$1");Gd.prototype.extend=B(function(e){var r=[],i=[];if(e instanceof Pr)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new di("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Pr))throw new di("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new di("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new di("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Pr))throw new di("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Gd.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=s2(n,"implicit"),n.compiledExplicit=s2(n,"explicit"),n.compiledTypeMap=P6(n.compiledImplicit,n.compiledExplicit),n},"extend");var Aat=Gd,Bat=new Pr("tag:yaml.org,2002:str",{kind:"scalar",construct:B(function(t){return t!==null?t:""},"construct")}),Lat=new Pr("tag:yaml.org,2002:seq",{kind:"sequence",construct:B(function(t){return t!==null?t:[]},"construct")}),Mat=new Pr("tag:yaml.org,2002:map",{kind:"mapping",construct:B(function(t){return t!==null?t:{}},"construct")}),Nat=new Aat({explicit:[Bat,Lat,Mat]});function H6(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}B(H6,"resolveYamlNull");function U6(){return null}B(U6,"constructYamlNull");function G6(t){return t===null}B(G6,"isNull");var Oat=new Pr("tag:yaml.org,2002:null",{kind:"scalar",resolve:H6,construct:U6,predicate:G6,represent:{canonical:B(function(){return"~"},"canonical"),lowercase:B(function(){return"null"},"lowercase"),uppercase:B(function(){return"NULL"},"uppercase"),camelcase:B(function(){return"Null"},"camelcase"),empty:B(function(){return""},"empty")},defaultStyle:"lowercase"});function Y6(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}B(Y6,"resolveYamlBoolean");function W6(t){return t==="true"||t==="True"||t==="TRUE"}B(W6,"constructYamlBoolean");function V6(t){return Object.prototype.toString.call(t)==="[object Boolean]"}B(V6,"isBoolean");var Rat=new Pr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Y6,construct:W6,predicate:V6,represent:{lowercase:B(function(t){return t?"true":"false"},"lowercase"),uppercase:B(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:B(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function X6(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}B(X6,"isHexCode");function Q6(t){return 48<=t&&t<=55}B(Q6,"isOctCode");function Z6(t){return 48<=t&&t<=57}B(Z6,"isDecCode");function K6(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!X6(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Q6(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Z6(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}B(K6,"resolveYamlInteger");function J6(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}B(J6,"constructYamlInteger");function tI(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Tr.isNegativeZero(t)}B(tI,"isInteger");var Dat=new Pr("tag:yaml.org,2002:int",{kind:"scalar",resolve:K6,construct:J6,predicate:tI,represent:{binary:B(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:B(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:B(function(t){return t.toString(10)},"decimal"),hexadecimal:B(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Fat=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function eI(t){return!(t===null||!Fat.test(t)||t[t.length-1]==="_")}B(eI,"resolveYamlFloat");function rI(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}B(rI,"constructYamlFloat");var Iat=/^[-+]?[0-9]+e/;function iI(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Tr.isNegativeZero(t))return"-0.0";return r=t.toString(10),Iat.test(r)?r.replace("e",".e"):r}B(iI,"representYamlFloat");function nI(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Tr.isNegativeZero(t))}B(nI,"isFloat");var qat=new Pr("tag:yaml.org,2002:float",{kind:"scalar",resolve:eI,construct:rI,predicate:nI,represent:iI,defaultStyle:"lowercase"}),aI=Nat.extend({implicit:[Oat,Rat,Dat,qat]}),zat=aI,sI=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),oI=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 lI(t){return t===null?!1:sI.exec(t)!==null||oI.exec(t)!==null}B(lI,"resolveYamlTimestamp");function cI(t){var e,r,i,n,s,o,c,u=0,h=null,f,p,m;if(e=sI.exec(t),e===null&&(e=oI.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],c=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(f=+e[10],p=+(e[11]||0),h=(f*60+p)*6e4,e[9]==="-"&&(h=-h)),m=new Date(Date.UTC(r,i,n,s,o,c,u)),h&&m.setTime(m.getTime()-h),m}B(cI,"constructYamlTimestamp");function uI(t){return t.toISOString()}B(uI,"representYamlTimestamp");var jat=new Pr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lI,construct:cI,instanceOf:Date,represent:uI});function hI(t){return t==="<<"||t===null}B(hI,"resolveYamlMerge");var $at=new Pr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:hI}),Kw=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
424
+ \r`;function fI(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Kw;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}B(fI,"resolveYamlBinary");function dI(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Kw,o=0,c=[];for(e=0;e<n;e++)e%4===0&&e&&(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):r===18?(c.push(o>>10&255),c.push(o>>2&255)):r===12&&c.push(o>>4&255),new Uint8Array(c)}B(dI,"constructYamlBinary");function pI(t){var e="",r=0,i,n,s=t.length,o=Kw;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}B(pI,"representYamlBinary");function gI(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}B(gI,"isBinary");var Pat=new Pr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fI,construct:dI,predicate:gI,represent:pI}),Hat=Object.prototype.hasOwnProperty,Uat=Object.prototype.toString;function mI(t){if(t===null)return!0;var e=[],r,i,n,s,o,c=t;for(r=0,i=c.length;r<i;r+=1){if(n=c[r],o=!1,Uat.call(n)!=="[object Object]")return!1;for(s in n)if(Hat.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}B(mI,"resolveYamlOmap");function yI(t){return t!==null?t:[]}B(yI,"constructYamlOmap");var Gat=new Pr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:mI,construct:yI}),Yat=Object.prototype.toString;function xI(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],Yat.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}B(xI,"resolveYamlPairs");function bI(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}B(bI,"constructYamlPairs");var Wat=new Pr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:xI,construct:bI}),Vat=Object.prototype.hasOwnProperty;function vI(t){if(t===null)return!0;var e,r=t;for(e in r)if(Vat.call(r,e)&&r[e]!==null)return!1;return!0}B(vI,"resolveYamlSet");function CI(t){return t!==null?t:{}}B(CI,"constructYamlSet");var Xat=new Pr("tag:yaml.org,2002:set",{kind:"mapping",resolve:vI,construct:CI}),wI=zat.extend({implicit:[jat,$at],explicit:[Pat,Gat,Wat,Xat]}),es=Object.prototype.hasOwnProperty,Yd=1,SI=2,kI=3,Wd=4,uC=1,Qat=2,f4=3,Zat=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Kat=/[\x85\u2028\u2029]/,Jat=/[,\[\]\{\}]/,_I=/^(?:!|!!|![a-z\-]+!)$/i,TI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function o2(t){return Object.prototype.toString.call(t)}B(o2,"_class");function sn(t){return t===10||t===13}B(sn,"is_EOL");function Ja(t){return t===9||t===32}B(Ja,"is_WHITE_SPACE");function Xr(t){return t===9||t===32||t===10||t===13}B(Xr,"is_WS_OR_EOL");function Ps(t){return t===44||t===91||t===93||t===123||t===125}B(Ps,"is_FLOW_INDICATOR");function EI(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}B(EI,"fromHexCode");function AI(t){return t===120?2:t===117?4:t===85?8:0}B(AI,"escapedHexLen");function BI(t){return 48<=t&&t<=57?t-48:-1}B(BI,"fromDecimalCode");function l2(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
425
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}B(l2,"simpleEscapeSequence");function LI(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}B(LI,"charFromCodepoint");function Jw(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}B(Jw,"setProperty");var MI=new Array(256),NI=new Array(256);for(Ds=0;Ds<256;Ds++)MI[Ds]=l2(Ds)?1:0,NI[Ds]=l2(Ds);var Ds;function OI(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||wI,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}B(OI,"State$1");function tS(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=_at(r),new di(e,r)}B(tS,"generateError");function $t(t,e){throw tS(t,e)}B($t,"throwError");function Wu(t,e){t.onWarning&&t.onWarning.call(null,tS(t,e))}B(Wu,"throwWarning");var d4={YAML:B(function(e,r,i){var n,s,o;e.version!==null&&$t(e,"duplication of %YAML directive"),i.length!==1&&$t(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&$t(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&$t(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Wu(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:B(function(e,r,i){var n,s;i.length!==2&&$t(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],_I.test(n)||$t(e,"ill-formed tag handle (first argument) of the TAG directive"),es.call(e.tagMap,n)&&$t(e,'there is a previously declared suffix for "'+n+'" tag handle'),TI.test(s)||$t(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{$t(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s},"handleTagDirective")};function la(t,e,r,i){var n,s,o,c;if(e<r){if(c=t.input.slice(e,r),i)for(n=0,s=c.length;n<s;n+=1)o=c.charCodeAt(n),o===9||32<=o&&o<=1114111||$t(t,"expected valid JSON character");else Zat.test(c)&&$t(t,"the stream contains non-printable characters");t.result+=c}}B(la,"captureSegment");function c2(t,e,r,i){var n,s,o,c;for(Tr.isObject(r)||$t(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,c=n.length;o<c;o+=1)s=n[o],es.call(e,s)||(Jw(e,s,r[s]),i[s]=!0)}B(c2,"mergeMappings");function Hs(t,e,r,i,n,s,o,c,u){var h,f;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),h=0,f=n.length;h<f;h+=1)Array.isArray(n[h])&&$t(t,"nested arrays are not supported inside keys"),typeof n=="object"&&o2(n[h])==="[object Object]"&&(n[h]="[object Object]");if(typeof n=="object"&&o2(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,f=s.length;h<f;h+=1)c2(t,e,s[h],r);else c2(t,e,s,r);else!t.json&&!es.call(r,n)&&es.call(e,n)&&(t.line=o||t.line,t.lineStart=c||t.lineStart,t.position=u||t.position,$t(t,"duplicated mapping key")),Jw(e,n,s),delete r[n];return e}B(Hs,"storeMappingPair");function Gp(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):$t(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}B(Gp,"readLineBreak");function cr(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Ja(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(sn(n))for(Gp(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Wu(t,"deficient indentation"),i}B(cr,"skipSeparationSpace");function mh(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Xr(r)))}B(mh,"testDocumentSeparator");function Yp(t,e){e===1?t.result+=" ":e>1&&(t.result+=Tr.repeat(`
426
+ `,e-1))}B(Yp,"writeFoldedLines");function RI(t,e,r){var i,n,s,o,c,u,h,f,p=t.kind,m=t.result,g;if(g=t.input.charCodeAt(t.position),Xr(g)||Ps(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=t.input.charCodeAt(t.position+1),Xr(n)||r&&Ps(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,c=!1;g!==0;){if(g===58){if(n=t.input.charCodeAt(t.position+1),Xr(n)||r&&Ps(n))break}else if(g===35){if(i=t.input.charCodeAt(t.position-1),Xr(i))break}else{if(t.position===t.lineStart&&mh(t)||r&&Ps(g))break;if(sn(g))if(u=t.line,h=t.lineStart,f=t.lineIndent,cr(t,!1,-1),t.lineIndent>=e){c=!0,g=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=h,t.lineIndent=f;break}}c&&(la(t,s,o,!1),Yp(t,t.line-u),s=o=t.position,c=!1),Ja(g)||(o=t.position+1),g=t.input.charCodeAt(++t.position)}return la(t,s,o,!1),t.result?!0:(t.kind=p,t.result=m,!1)}B(RI,"readPlainScalar");function DI(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(la(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else sn(r)?(la(t,i,n,!0),Yp(t,cr(t,!1,e)),i=n=t.position):t.position===t.lineStart&&mh(t)?$t(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);$t(t,"unexpected end of the stream within a single quoted scalar")}B(DI,"readSingleQuotedScalar");function FI(t,e){var r,i,n,s,o,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return la(t,r,t.position,!0),t.position++,!0;if(c===92){if(la(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),sn(c))cr(t,!1,e);else if(c<256&&MI[c])t.result+=NI[c],t.position++;else if((o=AI(c))>0){for(n=o,s=0;n>0;n--)c=t.input.charCodeAt(++t.position),(o=EI(c))>=0?s=(s<<4)+o:$t(t,"expected hexadecimal character");t.result+=LI(s),t.position++}else $t(t,"unknown escape sequence");r=i=t.position}else sn(c)?(la(t,r,i,!0),Yp(t,cr(t,!1,e)),r=i=t.position):t.position===t.lineStart&&mh(t)?$t(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}$t(t,"unexpected end of the stream within a double quoted scalar")}B(FI,"readDoubleQuotedScalar");function II(t,e){var r=!0,i,n,s,o=t.tag,c,u=t.anchor,h,f,p,m,g,x=Object.create(null),v,b,w,_;if(_=t.input.charCodeAt(t.position),_===91)f=93,g=!1,c=[];else if(_===123)f=125,g=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),_=t.input.charCodeAt(++t.position);_!==0;){if(cr(t,!0,e),_=t.input.charCodeAt(t.position),_===f)return t.position++,t.tag=o,t.anchor=u,t.kind=g?"mapping":"sequence",t.result=c,!0;r?_===44&&$t(t,"expected the node content, but found ','"):$t(t,"missed comma between flow collection entries"),b=v=w=null,p=m=!1,_===63&&(h=t.input.charCodeAt(t.position+1),Xr(h)&&(p=m=!0,t.position++,cr(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,Js(t,e,Yd,!1,!0),b=t.tag,v=t.result,cr(t,!0,e),_=t.input.charCodeAt(t.position),(m||t.line===i)&&_===58&&(p=!0,_=t.input.charCodeAt(++t.position),cr(t,!0,e),Js(t,e,Yd,!1,!0),w=t.result),g?Hs(t,c,x,b,v,w,i,n,s):p?c.push(Hs(t,null,x,b,v,w,i,n,s)):c.push(v),cr(t,!0,e),_=t.input.charCodeAt(t.position),_===44?(r=!0,_=t.input.charCodeAt(++t.position)):r=!1}$t(t,"unexpected end of the stream within a flow collection")}B(II,"readFlowCollection");function qI(t,e){var r,i,n=uC,s=!1,o=!1,c=e,u=0,h=!1,f,p;if(p=t.input.charCodeAt(t.position),p===124)i=!1;else if(p===62)i=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)uC===n?n=p===43?f4:Qat:$t(t,"repeat of a chomping mode identifier");else if((f=BI(p))>=0)f===0?$t(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?$t(t,"repeat of an indentation width identifier"):(c=e+f-1,o=!0);else break;if(Ja(p)){do p=t.input.charCodeAt(++t.position);while(Ja(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!sn(p)&&p!==0)}for(;p!==0;){for(Gp(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!o||t.lineIndent<c)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>c&&(c=t.lineIndent),sn(p)){u++;continue}if(t.lineIndent<c){n===f4?t.result+=Tr.repeat(`
427
+ `,s?1+u:u):n===uC&&s&&(t.result+=`
428
+ `);break}for(i?Ja(p)?(h=!0,t.result+=Tr.repeat(`
429
+ `,s?1+u:u)):h?(h=!1,t.result+=Tr.repeat(`
430
+ `,u+1)):u===0?s&&(t.result+=" "):t.result+=Tr.repeat(`
431
+ `,u):t.result+=Tr.repeat(`
432
+ `,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!sn(p)&&p!==0;)p=t.input.charCodeAt(++t.position);la(t,r,t.position,!1)}return!0}B(qI,"readBlockScalar");function u2(t,e){var r,i=t.tag,n=t.anchor,s=[],o,c=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,$t(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!Xr(o))));){if(c=!0,t.position++,cr(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Js(t,e,kI,!1,!0),s.push(t.result),cr(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)$t(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return c?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}B(u2,"readBlockSequence");function zI(t,e,r){var i,n,s,o,c,u,h=t.tag,f=t.anchor,p={},m=Object.create(null),g=null,x=null,v=null,b=!1,w=!1,_;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=p),_=t.input.charCodeAt(t.position);_!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,$t(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(_===63||_===58)&&Xr(i))_===63?(b&&(Hs(t,p,m,g,x,null,o,c,u),g=x=v=null),w=!0,b=!0,n=!0):b?(b=!1,n=!0):$t(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,_=i;else{if(o=t.line,c=t.lineStart,u=t.position,!Js(t,r,SI,!1,!0))break;if(t.line===s){for(_=t.input.charCodeAt(t.position);Ja(_);)_=t.input.charCodeAt(++t.position);if(_===58)_=t.input.charCodeAt(++t.position),Xr(_)||$t(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Hs(t,p,m,g,x,null,o,c,u),g=x=v=null),w=!0,b=!1,n=!1,g=t.tag,x=t.result;else if(w)$t(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=f,!0}else if(w)$t(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=h,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(b&&(o=t.line,c=t.lineStart,u=t.position),Js(t,e,Wd,!0,n)&&(b?x=t.result:v=t.result),b||(Hs(t,p,m,g,x,v,o,c,u),g=x=v=null),cr(t,!0,-1),_=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&_!==0)$t(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&Hs(t,p,m,g,x,null,o,c,u),w&&(t.tag=h,t.anchor=f,t.kind="mapping",t.result=p),w}B(zI,"readBlockMapping");function jI(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&$t(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):$t(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Xr(o);)o===33&&(i?$t(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),_I.test(n)||$t(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Jat.test(s)&&$t(t,"tag suffix cannot contain flow indicator characters")}s&&!TI.test(s)&&$t(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{$t(t,"tag name is malformed: "+s)}return r?t.tag=s:es.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:$t(t,'undeclared tag handle "'+n+'"'),!0}B(jI,"readTagProperty");function $I(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&$t(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Xr(r)&&!Ps(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&$t(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}B($I,"readAnchorProperty");function PI(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Xr(i)&&!Ps(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&$t(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),es.call(t.anchorMap,r)||$t(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],cr(t,!0,-1),!0}B(PI,"readAlias");function Js(t,e,r,i,n){var s,o,c,u=1,h=!1,f=!1,p,m,g,x,v,b;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=c=Wd===r||kI===r,i&&cr(t,!0,-1)&&(h=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;jI(t)||$I(t);)cr(t,!0,-1)?(h=!0,c=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):c=!1;if(c&&(c=h||n),(u===1||Wd===r)&&(Yd===r||SI===r?v=e:v=e+1,b=t.position-t.lineStart,u===1?c&&(u2(t,b)||zI(t,b,v))||II(t,v)?f=!0:(o&&qI(t,v)||DI(t,v)||FI(t,v)?f=!0:PI(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&$t(t,"alias node should not have any properties")):RI(t,v,Yd===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(f=c&&u2(t,b))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&$t(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,m=t.implicitTypes.length;p<m;p+=1)if(x=t.implicitTypes[p],x.resolve(t.result)){t.result=x.construct(t.result),t.tag=x.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(es.call(t.typeMap[t.kind||"fallback"],t.tag))x=t.typeMap[t.kind||"fallback"][t.tag];else for(x=null,g=t.typeMap.multi[t.kind||"fallback"],p=0,m=g.length;p<m;p+=1)if(t.tag.slice(0,g[p].tag.length)===g[p].tag){x=g[p];break}x||$t(t,"unknown tag !<"+t.tag+">"),t.result!==null&&x.kind!==t.kind&&$t(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+x.kind+'", not "'+t.kind+'"'),x.resolve(t.result,t.tag)?(t.result=x.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):$t(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}B(Js,"composeNode");function HI(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(cr(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!Xr(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&$t(t,"directive name must not be less than one character in length");o!==0;){for(;Ja(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!sn(o));break}if(sn(o))break;for(r=t.position;o!==0&&!Xr(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Gp(t),es.call(d4,i)?d4[i](t,i,n):Wu(t,'unknown document directive "'+i+'"')}if(cr(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,cr(t,!0,-1)):s&&$t(t,"directives end mark is expected"),Js(t,t.lineIndent-1,Wd,!1,!0),cr(t,!0,-1),t.checkLineBreaks&&Kat.test(t.input.slice(e,t.position))&&Wu(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&mh(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,cr(t,!0,-1));return}if(t.position<t.length-1)$t(t,"end of the stream or a document separator is expected");else return}B(HI,"readDocument");function eS(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
433
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new OI(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,$t(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;)HI(r);return r.documents}B(eS,"loadDocuments");function tst(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=eS(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}B(tst,"loadAll$1");function UI(t,e){var r=eS(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new di("expected a single document in the stream, but found more")}}B(UI,"load$1");var est=UI,rst={load:est},GI=Object.prototype.toString,YI=Object.prototype.hasOwnProperty,rS=65279,ist=9,Vu=10,nst=13,ast=32,sst=33,ost=34,h2=35,lst=37,cst=38,ust=39,hst=42,WI=44,fst=45,Vd=58,dst=61,pst=62,gst=63,mst=64,VI=91,XI=93,yst=96,QI=123,xst=124,ZI=125,Ur={};Ur[0]="\\0";Ur[7]="\\a";Ur[8]="\\b";Ur[9]="\\t";Ur[10]="\\n";Ur[11]="\\v";Ur[12]="\\f";Ur[13]="\\r";Ur[27]="\\e";Ur[34]='\\"';Ur[92]="\\\\";Ur[133]="\\N";Ur[160]="\\_";Ur[8232]="\\L";Ur[8233]="\\P";var bst=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],vst=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function KI(t,e){var r,i,n,s,o,c,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],c=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&YI.call(u.styleAliases,c)&&(c=u.styleAliases[c]),r[o]=c;return r}B(KI,"compileStyleMap");function JI(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new di("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Tr.repeat("0",i-e.length)+e}B(JI,"encodeHex");var Cst=1,Xu=2;function tq(t){this.schema=t.schema||wI,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Tr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=KI(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?Xu:Cst,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}B(tq,"State");function f2(t,e){for(var r=Tr.repeat(" ",e),i=0,n=-1,s="",o,c=t.length;i<c;)n=t.indexOf(`
434
+ `,i),n===-1?(o=t.slice(i),i=c):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
435
+ `&&(s+=r),s+=o;return s}B(f2,"indentString");function Xd(t,e){return`
436
+ `+Tr.repeat(" ",t.indent*e)}B(Xd,"generateNextLine");function eq(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}B(eq,"testImplicitResolving");function Qu(t){return t===ast||t===ist}B(Qu,"isWhitespace");function Pl(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==rS||65536<=t&&t<=1114111}B(Pl,"isPrintable");function d2(t){return Pl(t)&&t!==rS&&t!==nst&&t!==Vu}B(d2,"isNsCharOrWhitespace");function p2(t,e,r){var i=d2(t),n=i&&!Qu(t);return(r?i:i&&t!==WI&&t!==VI&&t!==XI&&t!==QI&&t!==ZI)&&t!==h2&&!(e===Vd&&!n)||d2(e)&&!Qu(e)&&t===h2||e===Vd&&n}B(p2,"isPlainSafe");function rq(t){return Pl(t)&&t!==rS&&!Qu(t)&&t!==fst&&t!==gst&&t!==Vd&&t!==WI&&t!==VI&&t!==XI&&t!==QI&&t!==ZI&&t!==h2&&t!==cst&&t!==hst&&t!==sst&&t!==xst&&t!==dst&&t!==pst&&t!==ust&&t!==ost&&t!==lst&&t!==mst&&t!==yst}B(rq,"isPlainSafeFirst");function iq(t){return!Qu(t)&&t!==Vd}B(iq,"isPlainSafeLast");function cl(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}B(cl,"codePointAt");function iS(t){var e=/^\n* /;return e.test(t)}B(iS,"needIndentIndicator");var nq=1,g2=2,aq=3,sq=4,il=5;function oq(t,e,r,i,n,s,o,c){var u,h=0,f=null,p=!1,m=!1,g=i!==-1,x=-1,v=rq(cl(t,0))&&iq(cl(t,t.length-1));if(e||o)for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=cl(t,u),!Pl(h))return il;v=v&&p2(h,f,c),f=h}else{for(u=0;u<t.length;h>=65536?u+=2:u++){if(h=cl(t,u),h===Vu)p=!0,g&&(m=m||u-x-1>i&&t[x+1]!==" ",x=u);else if(!Pl(h))return il;v=v&&p2(h,f,c),f=h}m=m||g&&u-x-1>i&&t[x+1]!==" "}return!p&&!m?v&&!o&&!n(t)?nq:s===Xu?il:g2:r>9&&iS(t)?il:o?s===Xu?il:g2:m?sq:aq}B(oq,"chooseScalarStyle");function lq(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===Xu?'""':"''";if(!t.noCompatMode&&(bst.indexOf(e)!==-1||vst.test(e)))return t.quotingType===Xu?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),c=i||t.flowLevel>-1&&r>=t.flowLevel;function u(h){return eq(t,h)}switch(B(u,"testAmbiguity"),oq(e,c,t.indent,o,u,t.quotingType,t.forceQuotes&&!i,n)){case nq:return e;case g2:return"'"+e.replace(/'/g,"''")+"'";case aq:return"|"+m2(e,t.indent)+y2(f2(e,s));case sq:return">"+m2(e,t.indent)+y2(f2(cq(e,o),s));case il:return'"'+uq(e)+'"';default:throw new di("impossible error: invalid scalar style")}})()}B(lq,"writeScalar");function m2(t,e){var r=iS(t)?String(e):"",i=t[t.length-1]===`
437
+ `,n=i&&(t[t.length-2]===`
438
+ `||t===`
439
+ `),s=n?"+":i?"":"-";return r+s+`
440
+ `}B(m2,"blockHeader");function y2(t){return t[t.length-1]===`
441
+ `?t.slice(0,-1):t}B(y2,"dropEndingNewline");function cq(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var h=t.indexOf(`
442
+ `);return h=h!==-1?h:t.length,r.lastIndex=h,x2(t.slice(0,h),e)})(),n=t[0]===`
443
+ `||t[0]===" ",s,o;o=r.exec(t);){var c=o[1],u=o[2];s=u[0]===" ",i+=c+(!n&&!s&&u!==""?`
444
+ `:"")+x2(u,e),n=s}return i}B(cq,"foldString");function x2(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,c=0,u="";i=r.exec(t);)c=i.index,c-n>e&&(s=o>n?o:c,u+=`
445
+ `+t.slice(n,s),n=s+1),o=c;return u+=`
446
+ `,t.length-n>e&&o>n?u+=t.slice(n,o)+`
447
+ `+t.slice(o+1):u+=t.slice(n),u.slice(1)}B(x2,"foldLine");function uq(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=cl(t,n),i=Ur[r],!i&&Pl(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||JI(r);return e}B(uq,"escapeString");function hq(t,e,r){var i="",n=t.tag,s,o,c;for(s=0,o=r.length;s<o;s+=1)c=r[s],t.replacer&&(c=t.replacer.call(r,String(s),c)),(Mn(t,e,c,!1,!1)||typeof c>"u"&&Mn(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}B(hq,"writeFlowSequence");function b2(t,e,r,i){var n="",s=t.tag,o,c,u;for(o=0,c=r.length;o<c;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(Mn(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&Mn(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Xd(t,e)),t.dump&&Vu===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}B(b2,"writeBlockSequence");function fq(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,c,u,h,f;for(o=0,c=s.length;o<c;o+=1)f="",i!==""&&(f+=", "),t.condenseFlow&&(f+='"'),u=s[o],h=r[u],t.replacer&&(h=t.replacer.call(r,u,h)),Mn(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Mn(t,e,h,!1,!1)&&(f+=t.dump,i+=f));t.tag=n,t.dump="{"+i+"}"}B(fq,"writeFlowMapping");function dq(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),c,u,h,f,p,m;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new di("sortKeys must be a boolean or a function");for(c=0,u=o.length;c<u;c+=1)m="",(!i||n!=="")&&(m+=Xd(t,e)),h=o[c],f=r[h],t.replacer&&(f=t.replacer.call(r,h,f)),Mn(t,e+1,h,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&Vu===t.dump.charCodeAt(0)?m+="?":m+="? "),m+=t.dump,p&&(m+=Xd(t,e)),Mn(t,e+1,f,!0,p)&&(t.dump&&Vu===t.dump.charCodeAt(0)?m+=":":m+=": ",m+=t.dump,n+=m));t.tag=s,t.dump=n||"{}"}B(dq,"writeBlockMapping");function v2(t,e,r){var i,n,s,o,c,u;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(c=n[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof e=="object"&&e instanceof c.instanceOf)&&(!c.predicate||c.predicate(e))){if(r?c.multi&&c.representName?t.tag=c.representName(e):t.tag=c.tag:t.tag="?",c.represent){if(u=t.styleMap[c.tag]||c.defaultStyle,GI.call(c.represent)==="[object Function]")i=c.represent(e,u);else if(YI.call(c.represent,u))i=c.represent[u](e,u);else throw new di("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}B(v2,"detectType");function Mn(t,e,r,i,n,s,o){t.tag=null,t.dump=r,v2(t,r,!1)||v2(t,r,!0);var c=GI.call(t.dump),u=i,h;i&&(i=t.flowLevel<0||t.flowLevel>e);var f=c==="[object Object]"||c==="[object Array]",p,m;if(f&&(p=t.duplicates.indexOf(r),m=p!==-1),(t.tag!==null&&t.tag!=="?"||m||t.indent!==2&&e>0)&&(n=!1),m&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(f&&m&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),c==="[object Object]")i&&Object.keys(t.dump).length!==0?(dq(t,e,t.dump,n),m&&(t.dump="&ref_"+p+t.dump)):(fq(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?b2(t,e-1,t.dump,n):b2(t,e,t.dump,n),m&&(t.dump="&ref_"+p+t.dump)):(hq(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&lq(t,t.dump,e,s,u);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new di("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(h=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",t.dump=h+" "+t.dump)}return!0}B(Mn,"writeNode");function pq(t,e){var r=[],i=[],n,s;for(Qd(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}B(pq,"getDuplicateReferences");function Qd(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)Qd(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Qd(t[i[n]],e,r)}B(Qd,"inspectNode");function wst(t,e){e=e||{};var r=new tq(e);r.noRefs||pq(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Mn(r,0,i,!0,!0)?r.dump+`
448
+ `:""}B(wst,"dump$1");function Sst(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}B(Sst,"renamed");var kst=aI,_st=rst.load;/*! Bundled license information:
449
+
450
+ js-yaml/dist/js-yaml.mjs:
451
+ (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
452
+ */var su=B((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";const r=t.x??0,i=t.y??0;return"translate("+-(r+t.width/2)+", "+-(i+t.height/2)+")"},"computeLabelTransform"),$r={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},p4={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function bu(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Ye(t),e=Ye(e);const[r,i]=[t.x,t.y],[n,s]=[e.x,e.y],o=n-r,c=s-i;return{angle:Math.atan(c/o),deltaX:o,deltaY:c}}B(bu,"calculateDeltaAndAngle");var Ye=B(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),Tst=B(t=>({x:B(function(e,r,i){let n=0;const s=Ye(i[0]).x<Ye(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn($r,t.arrowTypeStart)){const{angle:g,deltaX:x}=bu(i[0],i[1]);n=$r[t.arrowTypeStart]*Math.cos(g)*(x>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn($r,t.arrowTypeEnd)){const{angle:g,deltaX:x}=bu(i[i.length-1],i[i.length-2]);n=$r[t.arrowTypeEnd]*Math.cos(g)*(x>=0?1:-1)}const o=Math.abs(Ye(e).x-Ye(i[i.length-1]).x),c=Math.abs(Ye(e).y-Ye(i[i.length-1]).y),u=Math.abs(Ye(e).x-Ye(i[0]).x),h=Math.abs(Ye(e).y-Ye(i[0]).y),f=$r[t.arrowTypeStart],p=$r[t.arrowTypeEnd],m=1;if(o<p&&o>0&&c<p){let g=p+m-o;g*=s==="right"?-1:1,n-=g}if(u<f&&u>0&&h<f){let g=f+m-u;g*=s==="right"?-1:1,n+=g}return Ye(e).x+n},"x"),y:B(function(e,r,i){let n=0;const s=Ye(i[0]).y<Ye(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn($r,t.arrowTypeStart)){const{angle:g,deltaY:x}=bu(i[0],i[1]);n=$r[t.arrowTypeStart]*Math.abs(Math.sin(g))*(x>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn($r,t.arrowTypeEnd)){const{angle:g,deltaY:x}=bu(i[i.length-1],i[i.length-2]);n=$r[t.arrowTypeEnd]*Math.abs(Math.sin(g))*(x>=0?1:-1)}const o=Math.abs(Ye(e).y-Ye(i[i.length-1]).y),c=Math.abs(Ye(e).x-Ye(i[i.length-1]).x),u=Math.abs(Ye(e).y-Ye(i[0]).y),h=Math.abs(Ye(e).x-Ye(i[0]).x),f=$r[t.arrowTypeStart],p=$r[t.arrowTypeEnd],m=1;if(o<p&&o>0&&c<p){let g=p+m-o;g*=s==="up"?-1:1,n-=g}if(u<f&&u>0&&h<f){let g=f+m-u;g*=s==="up"?-1:1,n+=g}return Ye(e).y+n},"y")}),"getLineFunctionsWithOffset"),Qf={},kr={},g4;function Est(){return g4||(g4=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.BLANK_URL=kr.relativeFirstCharacters=kr.whitespaceEscapeCharsRegex=kr.urlSchemeRegex=kr.ctrlCharactersRegex=kr.htmlCtrlEntityRegex=kr.htmlEntitiesRegex=kr.invalidProtocolRegex=void 0,kr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,kr.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,kr.htmlCtrlEntityRegex=/&(newline|tab);/gi,kr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,kr.urlSchemeRegex=/^.+(:|&colon;)/gim,kr.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,kr.relativeFirstCharacters=[".","/"],kr.BLANK_URL="about:blank"),kr}var m4;function Ast(){if(m4)return Qf;m4=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.sanitizeUrl=s;var t=Est();function e(o){return t.relativeFirstCharacters.indexOf(o[0])>-1}function r(o){var c=o.replace(t.ctrlCharactersRegex,"");return c.replace(t.htmlEntitiesRegex,function(u,h){return String.fromCharCode(h)})}function i(o){return URL.canParse(o)}function n(o){try{return decodeURIComponent(o)}catch{return o}}function s(o){if(!o)return t.BLANK_URL;var c,u=n(o.trim());do u=r(u).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),u=n(u),c=u.match(t.ctrlCharactersRegex)||u.match(t.htmlEntitiesRegex)||u.match(t.htmlCtrlEntityRegex)||u.match(t.whitespaceEscapeCharsRegex);while(c&&c.length>0);var h=u;if(!h)return t.BLANK_URL;if(e(h))return h;var f=h.trimStart(),p=f.match(t.urlSchemeRegex);if(!p)return h;var m=p[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(m))return t.BLANK_URL;var g=f.replace(/\\/g,"/");if(m==="mailto:"||m.includes("://"))return g;if(m==="http:"||m==="https:"){if(!i(g))return t.BLANK_URL;var x=new URL(g);return x.protocol=x.protocol.toLowerCase(),x.hostname=x.hostname.toLowerCase(),x.toString()}return g}return Qf}var Bst=Ast();function Lst(t){return Number.isSafeInteger(t)&&t>=0}function gq(t){return t!=null&&typeof t!="function"&&Lst(t.length)}function Mst(t){return t==="__proto__"}function nS(t){return t==null||typeof t!="object"&&typeof t!="function"}function mq(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function aS(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Nst="[object RegExp]",yq="[object String]",xq="[object Number]",bq="[object Boolean]",vq="[object Arguments]",Ost="[object Symbol]",Rst="[object Date]",Dst="[object Map]",Fst="[object Set]",Ist="[object Array]",qst="[object ArrayBuffer]",Cq="[object Object]",zst="[object DataView]",jst="[object Uint8Array]",$st="[object Uint8ClampedArray]",Pst="[object Uint16Array]",Hst="[object Uint32Array]",Ust="[object Int8Array]",Gst="[object Int16Array]",Yst="[object Int32Array]",Wst="[object Float32Array]",Vst="[object Float64Array]",y4=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})()||Function("return this")();function sS(t){return typeof y4.Buffer<"u"&&y4.Buffer.isBuffer(t)}function oS(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Xst(t,e){return ul(t,void 0,t,new Map,e)}function ul(t,e,r,i=new Map,n=void 0){const s=n==null?void 0:n(t,e,r,i);if(s!==void 0)return s;if(nS(t))return t;if(i.has(t))return i.get(t);if(Array.isArray(t)){const o=new Array(t.length);i.set(t,o);for(let c=0;c<t.length;c++)o[c]=ul(t[c],c,r,i,n);return Object.hasOwn(t,"index")&&(o.index=t.index),Object.hasOwn(t,"input")&&(o.input=t.input),o}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=new RegExp(t.source,t.flags);return o.lastIndex=t.lastIndex,o}if(t instanceof Map){const o=new Map;i.set(t,o);for(const[c,u]of t)o.set(c,ul(u,c,r,i,n));return o}if(t instanceof Set){const o=new Set;i.set(t,o);for(const c of t)o.add(ul(c,void 0,r,i,n));return o}if(sS(t))return t.subarray();if(oS(t)){const o=new(Object.getPrototypeOf(t)).constructor(t.length);i.set(t,o);for(let c=0;c<t.length;c++)o[c]=ul(t[c],c,r,i,n);return o}if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const o=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return i.set(t,o),Zi(o,t,r,i,n),o}if(typeof File<"u"&&t instanceof File){const o=new File([t],t.name,{type:t.type});return i.set(t,o),Zi(o,t,r,i,n),o}if(typeof Blob<"u"&&t instanceof Blob){const o=new Blob([t],{type:t.type});return i.set(t,o),Zi(o,t,r,i,n),o}if(t instanceof Error){const o=structuredClone(t);return i.set(t,o),o.message=t.message,o.name=t.name,o.stack=t.stack,o.cause=t.cause,o.constructor=t.constructor,Zi(o,t,r,i,n),o}if(t instanceof Boolean){const o=new Boolean(t.valueOf());return i.set(t,o),Zi(o,t,r,i,n),o}if(t instanceof Number){const o=new Number(t.valueOf());return i.set(t,o),Zi(o,t,r,i,n),o}if(t instanceof String){const o=new String(t.valueOf());return i.set(t,o),Zi(o,t,r,i,n),o}if(typeof t=="object"&&Qst(t)){const o=Object.create(Object.getPrototypeOf(t));return i.set(t,o),Zi(o,t,r,i,n),o}return t}function Zi(t,e,r=t,i,n){const s=[...Object.keys(e),...mq(e)];for(let o=0;o<s.length;o++){const c=s[o],u=Object.getOwnPropertyDescriptor(t,c);(u==null||u.writable)&&(t[c]=ul(e[c],c,r,i,n))}}function Qst(t){switch(aS(t)){case vq:case Ist:case qst:case zst:case bq:case Rst:case Wst:case Vst:case Ust:case Gst:case Yst:case Dst:case xq:case Cq:case Nst:case Fst:case yq:case Ost:case jst:case $st:case Pst:case Hst:return!0;default:return!1}}function Zst(t,e){return Xst(t,(r,i,n,s)=>{if(typeof t=="object"){if(aS(t)===Cq&&typeof t.constructor!="function"){const o={};return s.set(t,o),Zi(o,t,n,s),o}switch(Object.prototype.toString.call(t)){case xq:case yq:case bq:{const o=new t.constructor(t==null?void 0:t.valueOf());return Zi(o,t),o}case vq:{const o={};return Zi(o,t),o.length=t.length,o[Symbol.iterator]=t[Symbol.iterator],o}default:return}}})}function x4(t){return Zst(t)}function C2(t){return t!==null&&typeof t=="object"&&aS(t)==="[object Arguments]"}function w2(t){return typeof t=="object"&&t!==null}function Kst(t){return w2(t)&&gq(t)}function yh(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");const r=function(...n){const s=e?e.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);const c=t.apply(this,n);return r.cache=o.set(s,c)||o,c},i=yh.Cache||Map;return r.cache=new i,r}yh.Cache=Map;function Jst(){}function tot(t){const e=t==null?void 0:t.constructor,r=typeof e=="function"?e.prototype:Object.prototype;return t===r}function yd(t){return oS(t)}function hC(t){var r;if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const i=t[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(t,Symbol.toStringTag))!=null&&r.writable)?!1:t.toString()===`[object ${i}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function eot(t){if(nS(t))return t;if(Array.isArray(t)||oS(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t);if(e==null)return Object.assign(Object.create(e),t);const r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){const i=new r(t);return i.lastIndex=t.lastIndex,i}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let i;return t instanceof AggregateError?i=new r(t.errors,t.message,{cause:t.cause}):i=new r(t.message,{cause:t.cause}),i.stack=t.stack,Object.assign(i,t),i}if(typeof File<"u"&&t instanceof File)return new r([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){const i=Object.create(e);return Object.assign(i,t)}return t}function rot(t,...e){const r=e.slice(0,-1),i=e[e.length-1];let n=t;for(let s=0;s<r.length;s++){const o=r[s];n=xd(n,o,i,new Map)}return n}function xd(t,e,r,i){if(nS(t)&&(t=Object(t)),e==null||typeof e!="object")return t;if(i.has(e))return eot(i.get(e));if(i.set(e,t),Array.isArray(e)){e=e.slice();for(let s=0;s<e.length;s++)e[s]=e[s]??void 0}const n=[...Object.keys(e),...mq(e)];for(let s=0;s<n.length;s++){const o=n[s];if(Mst(o))continue;let c=e[o],u=t[o];if(C2(c)&&(c={...c}),C2(u)&&(u={...u}),sS(c)&&(c=x4(c)),Array.isArray(c))if(Array.isArray(u)){const f=[],p=Reflect.ownKeys(u);for(let m=0;m<p.length;m++){const g=p[m];f[g]=u[g]}u=f}else if(Kst(u)){const f=[];for(let p=0;p<u.length;p++)f[p]=u[p];u=f}else u=[];const h=r(u,c,o,t,e,i);h!==void 0?t[o]=h:Array.isArray(c)||w2(u)&&w2(c)&&(hC(u)||hC(c)||yd(u)||yd(c))?t[o]=xd(u,c,r,i):u==null&&hC(c)?t[o]=xd({},c,r,i):u==null&&yd(c)?t[o]=x4(c):(u===void 0||c!==void 0)&&(t[o]=c)}return t}function iot(t,...e){return rot(t,...e,Jst)}function b4(t){if(t==null)return!0;if(gq(t))return typeof t.splice!="function"&&typeof t!="string"&&!sS(t)&&!yd(t)&&!C2(t)?!1:t.length===0;if(typeof t=="object"){if(t instanceof Map||t instanceof Set)return t.size===0;const e=Object.keys(t);return tot(t)?e.filter(r=>r!=="constructor").length===0:e.length===0}return!0}var not="​",aot={curveBasis:a2,curveBasisClosed:uat,curveBasisOpen:hat,curveBumpX:p6,curveBumpY:g6,curveBundle:fat,curveCardinalClosed:dat,curveCardinalOpen:pat,curveCardinal:b6,curveCatmullRomClosed:gat,curveCatmullRomOpen:mat,curveCatmullRom:C6,curveLinear:Mu,curveLinearClosed:yat,curveMonotoneX:E6,curveMonotoneY:A6,curveNatural:L6,curveStep:M6,curveStepAfter:O6,curveStepBefore:N6},sot=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,oot=B(function(t,e){const r=wq(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(c=>c.args);Id(o),i=_r(i,[...o])}else i=r.args;if(!i)return;let n=zw(t,e);const s="config";return i[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[s],delete i[s]),i},"detectInit"),wq=B(function(t,e=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${sot.source})(?=[}][%]{2}).*
453
+ `,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),St.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let s;const o=[];for(;(s=Bu.exec(t))!==null;)if(s.index===Bu.lastIndex&&Bu.lastIndex++,s&&!e||e&&((r=s[1])!=null&&r.match(e))||e&&((i=s[2])!=null&&i.match(e))){const c=s[1]?s[1]:s[2],u=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:c,args:u})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(n){return St.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),lot=B(function(t){return t.replace(Bu,"")},"removeDirectives"),cot=B(function(t,e){for(const[r,i]of e.entries())if(i.match(t))return r;return-1},"isSubstringInArray");function lS(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return aot[r]??e}B(lS,"interpolateToCurve");function Sq(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?Bst.sanitizeUrl(r):r}B(Sq,"formatUrl");var uot=B((t,...e)=>{const r=t.split("."),i=r.length-1,n=r[i];let s=window;for(let o=0;o<i;o++)if(s=s[r[o]],!s){St.error(`Function name: ${t} not found in window`);return}s[n](...e)},"runFunc");function cS(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}B(cS,"distance");function kq(t){let e,r=0;t.forEach(n=>{r+=cS(n,e),e=n});const i=r/2;return uS(t,i)}B(kq,"traverseEdge");function _q(t){return t.length===1?t[0]:kq(t)}B(_q,"calcLabelPosition");var v4=B((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),uS=B((t,e)=>{let r,i=e;for(const n of t){if(r){const s=cS(n,r);if(s===0)return r;if(s<i)i-=s;else{const o=i/s;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:v4((1-o)*r.x+o*n.x,5),y:v4((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),hot=B((t,e,r)=>{St.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const n=uS(e,25),s=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),c={x:0,y:0};return c.x=Math.sin(o)*s+(e[0].x+n.x)/2,c.y=-Math.cos(o)*s+(e[0].y+n.y)/2,c},"calcCardinalityPosition");function Tq(t,e,r){const i=structuredClone(r);St.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();const n=25+t,s=uS(i,n),o=10+t*.5,c=Math.atan2(i[0].y-s.y,i[0].x-s.x),u={x:0,y:0};return e==="start_left"?(u.x=Math.sin(c+Math.PI)*o+(i[0].x+s.x)/2,u.y=-Math.cos(c+Math.PI)*o+(i[0].y+s.y)/2):e==="end_right"?(u.x=Math.sin(c-Math.PI)*o+(i[0].x+s.x)/2-5,u.y=-Math.cos(c-Math.PI)*o+(i[0].y+s.y)/2-5):e==="end_left"?(u.x=Math.sin(c)*o+(i[0].x+s.x)/2-5,u.y=-Math.cos(c)*o+(i[0].y+s.y)/2-5):(u.x=Math.sin(c)*o+(i[0].x+s.x)/2,u.y=-Math.cos(c)*o+(i[0].y+s.y)/2),u}B(Tq,"calcTerminalLabelPosition");function Eq(t){let e="",r="";for(const i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}B(Eq,"getStylesFromArray");var C4=0,fot=B(()=>(C4++,"id-"+Math.random().toString(36).substr(2,12)+"-"+C4),"generateId");function Aq(t){let e="";const r="0123456789abcdef",i=r.length;for(let n=0;n<t;n++)e+=r.charAt(Math.floor(Math.random()*i));return e}B(Aq,"makeRandomHex");var dot=B(t=>Aq(t.length),"random"),pot=B(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"),got=B(function(t,e){const r=e.text.replace(gh.lineBreakRegex," "),[,i]=Wp(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",i),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const s=n.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(r),n},"drawSimpleText"),mot=yh((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),gh.lineBreakRegex.test(t)))return t;const i=t.split(" ").filter(Boolean),n=[];let s="";return i.forEach((o,c)=>{const u=ua(`${o} `,r),h=ua(s,r);if(u>e){const{hyphenatedStrings:m,remainingWord:g}=yot(o,e,"-",r);n.push(s,...m),s=g}else h+u>=e?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");c+1===i.length&&n.push(s)}),n.filter(o=>o!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),yot=yh((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...t],s=[];let o="";return n.forEach((c,u)=>{const h=`${o}${c}`;if(ua(h,i)>=e){const p=u+1,m=n.length===p,g=`${h}${r}`;s.push(m?h:g),o=""}else o=h}),{hyphenatedStrings:s,remainingWord:o}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Bq(t,e){return hS(t,e).height}B(Bq,"calculateTextHeight");function ua(t,e){return hS(t,e).width}B(ua,"calculateTextWidth");var hS=yh((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,s]=Wp(r),o=["sans-serif",i],c=t.split(gh.lineBreakRegex),u=[],h=Ut("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const f=h.append("svg");for(const m of o){let g=0;const x={width:0,height:0,lineHeight:0};for(const v of c){const b=pot();b.text=v||not;const w=got(f,b).style("font-size",s).style("font-weight",n).style("font-family",m),_=(w._groups||w)[0][0].getBBox();if(_.width===0&&_.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,_.width)),g=Math.round(_.height),x.height+=g,x.lineHeight=Math.round(Math.max(x.lineHeight,g))}u.push(x)}f.remove();const p=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Ll,xot=(Ll=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},B(Ll,"InitIDGenerator"),Ll),Zf,bot=B(function(t){return Zf=Zf||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Zf.innerHTML=t,unescape(Zf.textContent)},"entityDecode");function fS(t){return"str"in t}B(fS,"isDetailedError");var vot=B((t,e,r,i)=>{var s;if(!i)return;const n=(s=t.node())==null?void 0:s.getBBox();n&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Wp=B(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function dS(t,e){return iot({},t,e)}B(dS,"cleanAndMerge");var rn={assignWithDepth:_r,wrapLabel:mot,calculateTextHeight:Bq,calculateTextWidth:ua,calculateTextDimensions:hS,cleanAndMerge:dS,detectInit:oot,detectDirective:wq,isSubstringInArray:cot,interpolateToCurve:lS,calcLabelPosition:_q,calcCardinalityPosition:hot,calcTerminalLabelPosition:Tq,formatUrl:Sq,getStylesFromArray:Eq,generateId:fot,random:dot,runFunc:uot,entityDecode:bot,insertTitle:vot,isLabelCoordinateInPath:Lq,parseFontSize:Wp,InitIDGenerator:xot},Cot=B(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),e},"encodeEntities"),to=B(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Kdt=B((t,e,{counter:r=0,prefix:i,suffix:n},s)=>s||`${i?`${i}_`:""}${t}_${e}_${r}${n?`_${n}`:""}`,"getEdgeId");function Ar(t){return t??null}B(Ar,"handleUndefinedAttr");function Lq(t,e){const r=Math.round(t.x),i=Math.round(t.y),n=e.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return n.includes(r.toString())||n.includes(i.toString())}B(Lq,"isLabelCoordinateInPath");var pS=B(({flowchart:t})=>{var n,s;const e=((n=t==null?void 0:t.subGraphTitleMargin)==null?void 0:n.top)??0,r=((s=t==null?void 0:t.subGraphTitleMargin)==null?void 0:s.bottom)??0,i=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function Mq(t,e){const r=t.getElementsByTagName("img");if(!r||r.length===0)return;const i=e.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(s=>{function o(){if(n.style.display="flex",n.style.flexDirection="column",i){const c=ve().fontSize?ve().fontSize:window.getComputedStyle(document.body).fontSize,u=5,[h=KF.fontSize]=Wp(c),f=h*u+"px";n.style.minWidth=f,n.style.maxWidth=f}else n.style.width="100%";s(n)}B(o,"setupImage"),setTimeout(()=>{n.complete&&o()}),n.addEventListener("error",o),n.addEventListener("load",o)})))}B(Mq,"configureLabelImages");var wot=B(t=>{const{handDrawnSeed:e}=ve();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),tc=B(t=>{const e=Sot([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),Sot=B(t=>{const e=new Map;return t.forEach(r=>{const[i,n]=r.split(":");e.set(i.trim(),n==null?void 0:n.trim())}),e},"styles2Map"),Nq=B(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),Dt=B(t=>{const{stylesArray:e}=tc(t),r=[],i=[],n=[],s=[];return e.forEach(o=>{const c=o[0];Nq(c)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),c.includes("stroke")&&n.push(o.join(":")+" !important"),c==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:s}},"styles2String"),Ot=B((t,e)=>{var u;const{themeVariables:r,handDrawnSeed:i}=ve(),{nodeBorder:n,mainBkg:s}=r,{stylesMap:o}=tc(t);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:((u=o.get("stroke-width"))==null?void 0:u.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:kot(o.get("stroke-dasharray"))},e)},"userNodeOverrides"),kot=B(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const n=isNaN(e[0])?0:e[0];return[n,n]}const r=isNaN(e[0])?0:e[0],i=isNaN(e[1])?0:e[1];return[r,i]},"getStrokeDashArray");const _ot=Object.freeze({left:0,top:0,width:16,height:16}),Zd=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Oq=Object.freeze({..._ot,...Zd}),Tot=Object.freeze({...Oq,body:"",hidden:!1}),Eot=Object.freeze({width:null,height:null}),Aot=Object.freeze({...Eot,...Zd}),Bot=(t,e,r,i="")=>{const n=t.split(":");if(t.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(),u=n.pop(),h={provider:n.length>0?n[0]:i,prefix:u,name:c};return fC(h)?h:null}const s=n[0],o=s.split("-");if(o.length>1){const c={provider:i,prefix:o.shift(),name:o.join("-")};return fC(c)?c:null}if(r&&i===""){const c={provider:i,prefix:"",name:s};return fC(c,r)?c:null}return null},fC=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Lot(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}function w4(t,e){const r=Lot(t,e);for(const i in Tot)i in Zd?i in t&&!(i in r)&&(r[i]=Zd[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function Mot(t,e){const r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);function s(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const c=i[o]&&i[o].parent,u=c&&s(c);u&&(n[o]=[c].concat(u))}return n[o]}return(e||Object.keys(r).concat(Object.keys(i))).forEach(s),n}function S4(t,e,r){const i=t.icons,n=t.aliases||Object.create(null);let s={};function o(c){s=w4(i[c]||n[c],s)}return o(e),r.forEach(o),w4(t,s)}function Not(t,e){if(t.icons[e])return S4(t,e,[]);const r=Mot(t,[e])[e];return r?S4(t,e,r):null}const Oot=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Rot=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function k4(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const i=t.split(Oot);if(i===null||!i.length)return t;const n=[];let s=i.shift(),o=Rot.test(s);for(;;){if(o){const c=parseFloat(s);isNaN(c)?n.push(s):n.push(Math.ceil(c*e*r)/r)}else n.push(s);if(s=i.shift(),s===void 0)return n.join("");o=!o}}function Dot(t,e="defs"){let r="";const i=t.indexOf("<"+e);for(;i>=0;){const n=t.indexOf(">",i),s=t.indexOf("</"+e);if(n===-1||s===-1)break;const o=t.indexOf(">",s);if(o===-1)break;r+=t.slice(n+1,s).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:r,content:t}}function Fot(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Iot(t,e,r){const i=Dot(t);return Fot(i.defs,e+i.content+r)}const qot=t=>t==="unset"||t==="undefined"||t==="none";function zot(t,e){const r={...Oq,...t},i={...Aot,...e},n={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,i].forEach(v=>{const b=[],w=v.hFlip,_=v.vFlip;let S=v.rotate;w?_?S+=2:(b.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),b.push("scale(-1 1)"),n.top=n.left=0):_&&(b.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),b.push("scale(1 -1)"),n.top=n.left=0);let E;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:E=n.height/2+n.top,b.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:b.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:E=n.width/2+n.left,b.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}S%2===1&&(n.left!==n.top&&(E=n.left,n.left=n.top,n.top=E),n.width!==n.height&&(E=n.width,n.width=n.height,n.height=E)),b.length&&(s=Iot(s,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=i.width,c=i.height,u=n.width,h=n.height;let f,p;o===null?(p=c===null?"1em":c==="auto"?h:c,f=k4(p,u/h)):(f=o==="auto"?u:o,p=c===null?k4(f,h/u):c==="auto"?h:c);const m={},g=(v,b)=>{qot(b)||(m[v]=b.toString())};g("width",f),g("height",p);const x=[n.left,n.top,u,h];return m.viewBox=x.join(" "),{attributes:m,viewBox:x,body:s}}const jot=/\sid="(\S+)"/g,_4=new Map;function $ot(t){t=t.replace(/[0-9]+$/,"")||"a";const e=_4.get(t)||0;return _4.set(t,e+1),e?`${t}${e}`:t}function Pot(t){const e=[];let r;for(;r=jot.exec(t);)e.push(r[1]);if(!e.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const s=$ot(n),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function Hot(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)r+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function gS(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var lo=gS();function Rq(t){lo=t}var Nu={exec:()=>null};function Ce(t,e=""){let r=typeof t=="string"?t:t.source,i={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Qr.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,e)};return i}var Uot=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Qr={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:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Got=/^(?:[ \t]*(?:\n|$))+/,Yot=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Wot=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Vot=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mS=/(?:[*+-]|\d{1,9}[.)])/,Dq=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Fq=Ce(Dq).replace(/bull/g,mS).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(),Xot=Ce(Dq).replace(/bull/g,mS).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(),yS=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Qot=/^[^\n]+/,xS=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Zot=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xS).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kot=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,mS).getRegex(),Vp="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",bS=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Jot=Ce("^ {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",bS).replace("tag",Vp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Iq=Ce(yS).replace("hr",xh).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",Vp).getRegex(),tlt=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Iq).getRegex(),vS={blockquote:tlt,code:Yot,def:Zot,fences:Wot,heading:Vot,hr:xh,html:Jot,lheading:Fq,list:Kot,newline:Got,paragraph:Iq,table:Nu,text:Qot},T4=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xh).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",Vp).getRegex(),elt={...vS,lheading:Xot,table:T4,paragraph:Ce(yS).replace("hr",xh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",T4).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",Vp).getRegex()},rlt={...vS,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bS).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:Nu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(yS).replace("hr",xh).replace("heading",` *#{1,6} *[^
454
+ ]`).replace("lheading",Fq).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ilt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nlt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qq=/^( {2,}|\\)\n(?!\s*$)/,alt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Xp=/[\p{P}\p{S}]/u,CS=/[\s\p{P}\p{S}]/u,zq=/[^\s\p{P}\p{S}]/u,slt=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,CS).getRegex(),jq=/(?!~)[\p{P}\p{S}]/u,olt=/(?!~)[\s\p{P}\p{S}]/u,llt=/(?:[^\s\p{P}\p{S}]|~)/u,clt=Ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Uot?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),$q=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ult=Ce($q,"u").replace(/punct/g,Xp).getRegex(),hlt=Ce($q,"u").replace(/punct/g,jq).getRegex(),Pq="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",flt=Ce(Pq,"gu").replace(/notPunctSpace/g,zq).replace(/punctSpace/g,CS).replace(/punct/g,Xp).getRegex(),dlt=Ce(Pq,"gu").replace(/notPunctSpace/g,llt).replace(/punctSpace/g,olt).replace(/punct/g,jq).getRegex(),plt=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zq).replace(/punctSpace/g,CS).replace(/punct/g,Xp).getRegex(),glt=Ce(/\\(punct)/,"gu").replace(/punct/g,Xp).getRegex(),mlt=Ce(/^<(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(),ylt=Ce(bS).replace("(?:-->|$)","-->").getRegex(),xlt=Ce("^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",ylt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Kd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,blt=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Kd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Hq=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Kd).replace("ref",xS).getRegex(),Uq=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",xS).getRegex(),vlt=Ce("reflink|nolink(?!\\()","g").replace("reflink",Hq).replace("nolink",Uq).getRegex(),E4=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wS={_backpedal:Nu,anyPunctuation:glt,autolink:mlt,blockSkip:clt,br:qq,code:nlt,del:Nu,emStrongLDelim:ult,emStrongRDelimAst:flt,emStrongRDelimUnd:plt,escape:ilt,link:blt,nolink:Uq,punctuation:slt,reflink:Hq,reflinkSearch:vlt,tag:xlt,text:alt,url:Nu},Clt={...wS,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Kd).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Kd).getRegex()},S2={...wS,emStrongRDelimAst:dlt,emStrongLDelim:hlt,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",E4).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:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",E4).getRegex()},wlt={...S2,br:Ce(qq).replace("{2,}","*").getRegex(),text:Ce(S2.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Kf={normal:vS,gfm:elt,pedantic:rlt},ou={normal:wS,gfm:S2,breaks:wlt,pedantic:Clt},Slt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},A4=t=>Slt[t];function Cn(t,e){if(e){if(Qr.escapeTest.test(t))return t.replace(Qr.escapeReplace,A4)}else if(Qr.escapeTestNoEncode.test(t))return t.replace(Qr.escapeReplaceNoEncode,A4);return t}function B4(t){try{t=encodeURI(t).replace(Qr.percentDecode,"%")}catch{return null}return t}function L4(t,e){var s;let r=t.replace(Qr.findPipe,(o,c,u)=>{let h=!1,f=c;for(;--f>=0&&u[f]==="\\";)h=!h;return h?"|":" |"}),i=r.split(Qr.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(Qr.slashPipe,"|");return i}function lu(t,e,r){let i=t.length;if(i===0)return"";let n=0;for(;n<i&&t.charAt(i-n-1)===e;)n++;return t.slice(0,i-n)}function klt(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&(r--,r<0))return i;return r>0?-2:-1}function M4(t,e,r,i,n){let s=e.href,o=e.title||null,c=t[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let u={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,u}function _lt(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(i===null)return e;let n=i[1];return e.split(`
455
+ `).map(s=>{let o=s.match(r.other.beginningSpace);if(o===null)return s;let[c]=o;return c.length>=n.length?s.slice(n.length):s}).join(`
456
+ `)}var Jd=class{constructor(e){Re(this,"options");Re(this,"rules");Re(this,"lexer");this.options=e||lo}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:lu(i,`
457
+ `)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let i=r[0],n=_lt(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(e){let r=this.rules.block.heading.exec(e);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=lu(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(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:lu(r[0],`
458
+ `)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let i=lu(r[0],`
459
+ `).split(`
460
+ `),n="",s="",o=[];for(;i.length>0;){let c=!1,u=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))u.push(i[h]),c=!0;else if(!c)u.push(i[h]);else break;i=i.slice(h);let f=u.join(`
461
+ `),p=f.replace(this.rules.other.blockquoteSetextReplace,`
462
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
463
+ ${f}`:f,s=s?`${s}
464
+ ${p}`:p;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,o,!0),this.lexer.state.top=m,i.length===0)break;let g=o.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let x=g,v=x.raw+`
465
+ `+i.join(`
466
+ `),b=this.blockquote(v);o[o.length-1]=b,n=n.substring(0,n.length-x.raw.length)+b.raw,s=s.substring(0,s.length-x.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let x=g,v=x.raw+`
467
+ `+i.join(`
468
+ `),b=this.list(v);o[o.length-1]=b,n=n.substring(0,n.length-g.raw.length)+b.raw,s=s.substring(0,s.length-x.raw.length)+b.raw,i=v.substring(o.at(-1).raw.length).split(`
469
+ `);continue}}return{type:"blockquote",raw:n,tokens:o,text:s}}}list(e){let r=this.rules.block.list.exec(e);if(r){let i=r[1].trim(),n=i.length>1,s={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let o=this.rules.other.listItemRegex(i),c=!1;for(;e;){let h=!1,f="",p="";if(!(r=o.exec(e))||this.rules.block.hr.test(e))break;f=r[0],e=e.substring(f.length);let m=r[2].split(`
470
+ `,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),g=e.split(`
471
+ `,1)[0],x=!m.trim(),v=0;if(this.options.pedantic?(v=2,p=m.trimStart()):x?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,p=m.slice(v),v+=r[1].length),x&&this.rules.other.blankLine.test(g)&&(f+=g+`
472
+ `,e=e.substring(g.length+1),h=!0),!h){let _=this.rules.other.nextBulletRegex(v),S=this.rules.other.hrRegex(v),E=this.rules.other.fencesBeginRegex(v),L=this.rules.other.headingBeginRegex(v),A=this.rules.other.htmlBeginRegex(v);for(;e;){let R=e.split(`
473
+ `,1)[0],j;if(g=R,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),j=g):j=g.replace(this.rules.other.tabCharGlobal," "),E.test(g)||L.test(g)||A.test(g)||_.test(g)||S.test(g))break;if(j.search(this.rules.other.nonSpaceChar)>=v||!g.trim())p+=`
474
+ `+j.slice(v);else{if(x||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(m)||L.test(m)||S.test(m))break;p+=`
475
+ `+g}!x&&!g.trim()&&(x=!0),f+=R+`
476
+ `,e=e.substring(R.length+1),m=j.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(c=!0));let b=null,w;this.options.gfm&&(b=this.rules.other.listIsTask.exec(p),b&&(w=b[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:f,task:!!b,checked:w,loose:!1,text:p,tokens:[]}),s.raw+=f}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let f=s.items[h].tokens.filter(m=>m.type==="space"),p=f.length>0&&f.some(m=>this.rules.other.anyLine.test(m.raw));s.loose=p}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:s}}}table(e){var c;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=L4(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
477
+ `):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let u of n)this.rules.other.tableAlignRight.test(u)?o.align.push("right"):this.rules.other.tableAlignCenter.test(u)?o.align.push("center"):this.rules.other.tableAlignLeft.test(u)?o.align.push("left"):o.align.push(null);for(let u=0;u<i.length;u++)o.header.push({text:i[u],tokens:this.lexer.inline(i[u]),header:!0,align:o.align[u]});for(let u of s)o.rows.push(L4(u,o.header.length).map((h,f)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:o.align[f]})));return o}}lheading(e){let r=this.rules.block.lheading.exec(e);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(e){let r=this.rules.block.paragraph.exec(e);if(r){let i=r[1].charAt(r[1].length-1)===`
478
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);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(e){let r=this.rules.inline.link.exec(e);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 o=lu(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=klt(r[2],"()");if(o===-2)return;if(o>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let n=r[2],s="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],s=o[3])}else s=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),M4(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[n.toLowerCase()];if(!s){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return M4(i,s,i[0],this.lexer,this.rules)}}emStrong(e,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...n[0]].length-1,o,c,u=s,h=0,f=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,r=r.slice(-1*e.length+s);(n=f.exec(r))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(c=[...o].length,n[3]||n[4]){u+=c;continue}else if((n[5]||n[6])&&s%3&&!((s+c)%3)){h+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+h);let p=[...n[0]][0].length,m=e.slice(0,s+n.index+p+c);if(Math.min(s,c)%2){let x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);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(e){var i;let r;if(r=this.rules.inline.url.exec(e)){let n,s;if(r[2]==="@")n=r[0],s="mailto:"+n;else{let o;do o=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(o!==r[0]);n=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Ji=class k2{constructor(e){Re(this,"tokens");Re(this,"options");Re(this,"state");Re(this,"tokenizer");Re(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||lo,this.options.tokenizer=this.options.tokenizer||new Jd,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:Qr,block:Kf.normal,inline:ou.normal};this.options.pedantic?(r.block=Kf.pedantic,r.inline=ou.pedantic):this.options.gfm&&(r.block=Kf.gfm,this.options.breaks?r.inline=ou.breaks:r.inline=ou.gfm),this.tokenizer.rules=r}static get rules(){return{block:Kf,inline:ou}}static lex(e,r){return new k2(r).lex(e)}static lexInline(e,r){return new k2(r).inlineTokens(e)}lex(e){e=e.replace(Qr.carriageReturn,`
479
+ `),this.blockTokens(e,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(e,r=[],i=!1){var n,s,o;for(this.options.pedantic&&(e=e.replace(Qr.tabCharGlobal," ").replace(Qr.spaceLine,""));e;){let c;if((s=(n=this.options.extensions)==null?void 0:n.block)!=null&&s.some(h=>(c=h.call({lexer:this},e,r))?(e=e.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(e)){e=e.substring(c.raw.length);let h=r.at(-1);c.raw.length===1&&h!==void 0?h.raw+=`
480
+ `:r.push(c);continue}if(c=this.tokenizer.code(e)){e=e.substring(c.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
481
+ `)?"":`
482
+ `)+c.raw,h.text+=`
483
+ `+c.text,this.inlineQueue.at(-1).src=h.text):r.push(c);continue}if(c=this.tokenizer.fences(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(e)){e=e.substring(c.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
484
+ `)?"":`
485
+ `)+c.raw,h.text+=`
486
+ `+c.raw,this.inlineQueue.at(-1).src=h.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(e)){e=e.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(e)){e=e.substring(c.raw.length),r.push(c);continue}let u=e;if((o=this.options.extensions)!=null&&o.startBlock){let h=1/0,f=e.slice(1),p;this.options.extensions.startBlock.forEach(m=>{p=m.call({lexer:this},f),typeof p=="number"&&p>=0&&(h=Math.min(h,p))}),h<1/0&&h>=0&&(u=e.substring(0,h+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let h=r.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
487
+ `)?"":`
488
+ `)+c.raw,h.text+=`
489
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(c),i=u.length!==e.length,e=e.substring(c.raw.length);continue}if(c=this.tokenizer.text(e)){e=e.substring(c.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
490
+ `)?"":`
491
+ `)+c.raw,h.text+=`
492
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(c);continue}if(e){let h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var u,h,f,p,m;let i=e,n=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)g.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=n[2]?n[2].length:0,i=i.slice(0,n.index+s)+"["+"a".repeat(n[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((h=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:h.call({lexer:this},i))??i;let o=!1,c="";for(;e;){o||(c=""),o=!1;let g;if((p=(f=this.options.extensions)==null?void 0:f.inline)!=null&&p.some(v=>(g=v.call({lexer:this},e,r))?(e=e.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(e)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(e)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(e)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(g.raw.length);let v=r.at(-1);g.type==="text"&&(v==null?void 0:v.type)==="text"?(v.raw+=g.raw,v.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(e,i,c)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(e)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(e)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(e)){e=e.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(e)){e=e.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(e))){e=e.substring(g.raw.length),r.push(g);continue}let x=e;if((m=this.options.extensions)!=null&&m.startInline){let v=1/0,b=e.slice(1),w;this.options.extensions.startInline.forEach(_=>{w=_.call({lexer:this},b),typeof w=="number"&&w>=0&&(v=Math.min(v,w))}),v<1/0&&v>=0&&(x=e.substring(0,v+1))}if(g=this.tokenizer.inlineText(x)){e=e.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(c=g.raw.slice(-1)),o=!0;let v=r.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=g.raw,v.text+=g.text):r.push(g);continue}if(e){let v="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return r}},tp=class{constructor(e){Re(this,"options");Re(this,"parser");this.options=e||lo}space(e){return""}code({text:e,lang:r,escaped:i}){var o;let n=(o=(r||"").match(Qr.notSpaceStart))==null?void 0:o[0],s=e.replace(Qr.endingNewline,"")+`
493
+ `;return n?'<pre><code class="language-'+Cn(n)+'">'+(i?s:Cn(s,!0))+`</code></pre>
494
+ `:"<pre><code>"+(i?s:Cn(s,!0))+`</code></pre>
495
+ `}blockquote({tokens:e}){return`<blockquote>
496
+ ${this.parser.parse(e)}</blockquote>
497
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
498
+ `}hr(e){return`<hr>
499
+ `}list(e){let r=e.ordered,i=e.start,n="";for(let c=0;c<e.items.length;c++){let u=e.items[c];n+=this.listitem(u)}let s=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+s+o+`>
500
+ `+n+"</"+s+`>
501
+ `}listitem(e){var i;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?((i=e.tokens[0])==null?void 0:i.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+Cn(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
502
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
503
+ `}table(e){let r="",i="";for(let s=0;s<e.header.length;s++)i+=this.tablecell(e.header[s]);r+=this.tablerow({text:i});let n="";for(let s=0;s<e.rows.length;s++){let o=e.rows[s];i="";for(let c=0;c<o.length;c++)i+=this.tablecell(o[c]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
504
+ <thead>
505
+ `+r+`</thead>
506
+ `+n+`</table>
507
+ `}tablerow({text:e}){return`<tr>
508
+ ${e}</tr>
509
+ `}tablecell(e){let r=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+r+`</${i}>
510
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Cn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:i}){let n=this.parser.parseInline(i),s=B4(e);if(s===null)return n;e=s;let o='<a href="'+e+'"';return r&&(o+=' title="'+Cn(r)+'"'),o+=">"+n+"</a>",o}image({href:e,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let s=B4(e);if(s===null)return Cn(i);e=s;let o=`<img src="${e}" alt="${i}"`;return r&&(o+=` title="${Cn(r)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Cn(e.text)}},SS=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},tn=class _2{constructor(e){Re(this,"options");Re(this,"renderer");Re(this,"textRenderer");this.options=e||lo,this.options.renderer=this.options.renderer||new tp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new SS}static parse(e,r){return new _2(r).parse(e)}static parseInline(e,r){return new _2(r).parseInline(e)}parse(e,r=!0){var n,s;let i="";for(let o=0;o<e.length;o++){let c=e[o];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[c.type]){let h=c,f=this.options.extensions.renderers[h.type].call({parser:this},h);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){i+=f||"";continue}}let u=c;switch(u.type){case"space":{i+=this.renderer.space(u);continue}case"hr":{i+=this.renderer.hr(u);continue}case"heading":{i+=this.renderer.heading(u);continue}case"code":{i+=this.renderer.code(u);continue}case"table":{i+=this.renderer.table(u);continue}case"blockquote":{i+=this.renderer.blockquote(u);continue}case"list":{i+=this.renderer.list(u);continue}case"html":{i+=this.renderer.html(u);continue}case"def":{i+=this.renderer.def(u);continue}case"paragraph":{i+=this.renderer.paragraph(u);continue}case"text":{let h=u,f=this.renderer.text(h);for(;o+1<e.length&&e[o+1].type==="text";)h=e[++o],f+=`
511
+ `+this.renderer.text(h);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 h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(e,r=this.renderer){var n,s;let i="";for(let o=0;o<e.length;o++){let c=e[o];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[c.type]){let h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=h||"";continue}}let u=c;switch(u.type){case"escape":{i+=r.text(u);break}case"html":{i+=r.html(u);break}case"link":{i+=r.link(u);break}case"image":{i+=r.image(u);break}case"strong":{i+=r.strong(u);break}case"em":{i+=r.em(u);break}case"codespan":{i+=r.codespan(u);break}case"br":{i+=r.br(u);break}case"del":{i+=r.del(u);break}case"text":{i+=r.text(u);break}default:{let h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},nd,vu=(nd=class{constructor(e){Re(this,"options");Re(this,"block");this.options=e||lo}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Ji.lex:Ji.lexInline}provideParser(){return this.block?tn.parse:tn.parseInline}},Re(nd,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Re(nd,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),nd),Tlt=class{constructor(...e){Re(this,"defaults",gS());Re(this,"options",this.setOptions);Re(this,"parse",this.parseMarkdown(!0));Re(this,"parseInline",this.parseMarkdown(!1));Re(this,"Parser",tn);Re(this,"Renderer",tp);Re(this,"TextRenderer",SS);Re(this,"Lexer",Ji);Re(this,"Tokenizer",Jd);Re(this,"Hooks",vu);this.use(...e)}walkTokens(e,r){var n,s;let i=[];for(let o of e)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let c=o;for(let u of c.header)i=i.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let h of u)i=i.concat(this.walkTokens(h.tokens,r));break}case"list":{let c=o;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=o;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let h=c[u].flat(1/0);i=i.concat(this.walkTokens(h,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=r.renderers[s.name];o?r.renderers[s.name]=function(...c){let u=s.renderer.apply(this,c);return u===!1&&(u=o.apply(this,c)),u}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[s.level];o?o.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),n.extensions=r),i.renderer){let s=this.defaults.renderer||new tp(this.defaults);for(let o in i.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let c=o,u=i.renderer[c],h=s[c];s[c]=(...f)=>{let p=u.apply(s,f);return p===!1&&(p=h.apply(s,f)),p||""}}n.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Jd(this.defaults);for(let o in i.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let c=o,u=i.tokenizer[c],h=s[c];s[c]=(...f)=>{let p=u.apply(s,f);return p===!1&&(p=h.apply(s,f)),p}}n.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new vu;for(let o in i.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let c=o,u=i.hooks[c],h=s[c];vu.passThroughHooks.has(o)?s[c]=f=>{if(this.defaults.async&&vu.passThroughHooksRespectAsync.has(o))return(async()=>{let m=await u.call(s,f);return h.call(s,m)})();let p=u.call(s,f);return h.call(s,p)}:s[c]=(...f)=>{if(this.defaults.async)return(async()=>{let m=await u.apply(s,f);return m===!1&&(m=await h.apply(s,f)),m})();let p=u.apply(s,f);return p===!1&&(p=h.apply(s,f)),p}}n.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,o=i.walkTokens;n.walkTokens=function(c){let u=[];return u.push(o.call(this,c)),s&&(u=u.concat(s.call(this,c))),u}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Ji.lex(e,r??this.defaults)}parser(e,r){return tn.parse(e,r??this.defaults)}parseMarkdown(e){return(r,i)=>{let n={...i},s={...this.defaults,...n},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&n.async===!1)return o(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 o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,u=await(s.hooks?await s.hooks.provideLexer():e?Ji.lex:Ji.lexInline)(c,s),h=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(h,s.walkTokens));let f=await(s.hooks?await s.hooks.provideParser():e?tn.parse:tn.parseInline)(h,s);return s.hooks?await s.hooks.postprocess(f):f})().catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():e?Ji.lex:Ji.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let u=(s.hooks?s.hooks.provideParser():e?tn.parse:tn.parseInline)(c,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(c){return o(c)}}}onError(e,r){return i=>{if(i.message+=`
512
+ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+Cn(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},eo=new Tlt;function Te(t,e){return eo.parse(t,e)}Te.options=Te.setOptions=function(t){return eo.setOptions(t),Te.defaults=eo.defaults,Rq(Te.defaults),Te};Te.getDefaults=gS;Te.defaults=lo;Te.use=function(...t){return eo.use(...t),Te.defaults=eo.defaults,Rq(Te.defaults),Te};Te.walkTokens=function(t,e){return eo.walkTokens(t,e)};Te.parseInline=eo.parseInline;Te.Parser=tn;Te.parser=tn.parse;Te.Renderer=tp;Te.TextRenderer=SS;Te.Lexer=Ji;Te.lexer=Ji.lex;Te.Tokenizer=Jd;Te.Hooks=vu;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;tn.parse;Ji.lex;function Gq(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(c,u){var h=u.match(/\n([\t ]+|(?!\s).)/g);return h?c.concat(h.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 s=new RegExp(`
513
+ [ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(c){return c.replace(s,`
514
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return e.forEach(function(c,u){var h=o.match(/(?:^|\n)( *)$/),f=h?h[1]:"",p=c;typeof c=="string"&&c.includes(`
515
+ `)&&(p=String(c).split(`
516
+ `).map(function(m,g){return g===0?m:""+f+m}).join(`
517
+ `)),o+=p+i[u+1]}),o}var Elt={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},T2=new Map,Yq=new Map,Alt=B(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(St.debug("Registering icon pack:",e.name),"loader"in e)Yq.set(e.name,e.loader);else if("icons"in e)T2.set(e.name,e.icons);else throw St.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Wq=B(async(t,e)=>{const r=Bot(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let n=T2.get(i);if(!n){const o=Yq.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},T2.set(i,n)}catch(c){throw St.error(c),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=Not(n,r.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),Blt=B(async t=>{try{return await Wq(t),!0}catch{return!1}},"isIconAvailable"),bh=B(async(t,e,r)=>{let i;try{i=await Wq(t,e==null?void 0:e.fallbackPrefix)}catch(o){St.error(o),i=Elt}const n=zot(i,e),s=Hot(Pot(n.body),{...n.attributes,...r});return cn(s,Ke())},"getIconSVG");function Vq(t,{markdownAutoWrap:e}){const i=t.replace(/<br\/>/g,`
518
+ `).replace(/\n{2,}/g,`
519
+ `);return Gq(i)}B(Vq,"preprocessMarkdown");function Xq(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(e=>{var r;return((r=e.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}B(Xq,"nonMarkdownToLines");function Qq(t,e={}){const r=Vq(t,e),i=Te.lexer(r),n=[[]];let s=0;function o(c,u="normal"){c.type==="text"?c.text.split(`
520
+ `).forEach((f,p)=>{p!==0&&(s++,n.push([])),f.split(" ").forEach(m=>{m=m.replace(/&#39;/g,"'"),m&&n[s].push({content:m,type:u})})}):c.type==="strong"||c.type==="em"?c.tokens.forEach(h=>{o(h,c.type)}):c.type==="html"&&n[s].push({content:c.text,type:"normal"})}return B(o,"processNode"),i.forEach(c=>{var u;c.type==="paragraph"?(u=c.tokens)==null||u.forEach(h=>{o(h)}):c.type==="html"?n[s].push({content:c.text,type:"normal"}):n[s].push({content:c.raw,type:"normal"})}),n}B(Qq,"markdownToLines");function Zq(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}B(Zq,"nonMarkdownToHTML");function Kq(t,{markdownAutoWrap:e}={}){const r=Te.lexer(t);function i(n){var s,o,c;return n.type==="text"?e===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(s=n.tokens)==null?void 0:s.map(i).join("")}</strong>`:n.type==="em"?`<em>${(o=n.tokens)==null?void 0:o.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 B(i,"output"),r.map(i).join("")}B(Kq,"markdownToHTML");function Jq(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}B(Jq,"splitTextToChars");function tz(t,e){const r=Jq(e.content);return kS(t,[],r,e.type)}B(tz,"splitWordToFitWidth");function kS(t,e,r,i){if(r.length===0)return[{content:e.join(""),type:i},{content:"",type:i}];const[n,...s]=r,o=[...e,n];return t([{content:o.join(""),type:i}])?kS(t,o,s,i):(e.length===0&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}B(kS,"splitWordToFitWidthRecursion");function ez(t,e){if(t.some(({content:r})=>r.includes(`
521
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ep(t,e)}B(ez,"splitLineToFitWidth");function ep(t,e,r=[],i=[]){if(t.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";t[0].content===" "&&(n=" ",t.shift());const s=t.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(s),e(o))return ep(t,e,r,o);if(i.length>0)r.push(i),t.unshift(s);else if(s.content){const[c,u]=tz(e,s);r.push([c]),u.content&&t.unshift(u)}return ep(t,e,r)}B(ep,"splitLineToFitWidthRecursion");function E2(t,e){e&&t.attr("style",e)}B(E2,"applyStyle");var N4=16384;async function rz(t,e,r,i,n=!1,s=Ke()){const o=t.append("foreignObject");o.attr("width",`${Math.min(10*r,N4)}px`),o.attr("height",`${Math.min(10*r,N4)}px`);const c=o.append("xhtml:div"),u=Yu(e.label)?await l6(e.label.replace(gh.lineBreakRegex,`
522
+ `),s):cn(e.label,s),h=e.isNode?"nodeLabel":"edgeLabel",f=c.append("span");f.html(u),E2(f,e.labelStyle),f.attr("class",`${h} ${i}`),E2(c,e.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()),o.node()}B(rz,"addHtmlSpan");function Qp(t,e,r,i=!1){const n=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}B(Qp,"createTspan");function iz(t,e,r){const i=t.append("text"),n=Qp(i,1,e);Zp(n,r);const s=n.node().getComputedTextLength();return i.remove(),s}B(iz,"computeWidthOfText");function Llt(t,e,r){var o;const i=t.append("text"),n=Qp(i,1,e);Zp(n,[{content:r,type:"normal"}]);const s=(o=n.node())==null?void 0:o.getBoundingClientRect();return s&&i.remove(),s}B(Llt,"computeDimensionOfText");function nz(t,e,r,i=!1,n=!1){const o=e.append("g"),c=o.insert("rect").attr("class","background").attr("style","stroke: none"),u=o.append("text").attr("y","-10.1");n&&u.attr("text-anchor","middle");let h=0;for(const f of r){const p=B(g=>iz(o,1.1,g)<=t,"checkWidth"),m=p(f)?[f]:ez(f,p);for(const g of m){const x=Qp(u,h,1.1,n);Zp(x,g),h++}}if(i){const f=u.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),o.node()}else return u.node()}B(nz,"createFormattedText");function A2(t){const e=/&(amp|lt|gt);/g;return t.replace(e,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}B(A2,"decodeHTMLEntities");function Zp(t,e){t.text(""),e.forEach((r,i)=>{const n=t.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(A2(r.content)):n.text(" "+A2(r.content))})}B(Zp,"updateTextContentAndStyles");async function az(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,s,o)=>(r.push((async()=>{const c=`${s}:${o}`;return await Blt(c)?await bh(c,void 0,{class:"label-icon"}):`<i class='${cn(n,e).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}B(az,"replaceIconSubstring");var ga=B(async(t,e="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:s=!0,markdown:o=!0,isNode:c=!0,width:u=200,addSvgBackground:h=!1}={},f)=>{if(St.debug("XYZ createText",e,r,i,n,s,c,"addSvgBackground: ",h),s){const p=o?Kq(e,f):Zq(e),m=await az(to(p),f),g=e.replace(/\\\\/g,"\\"),x={isNode:c,label:Yu(e)?g:m,labelStyle:r.replace("fill:","color:")};return await rz(t,x,u,n,h,f)}else{const p=to(e.replace(/<br\s*\/?>/g,"<br/>")),m=o?Qq(p.replace("<br>","<br/>"),f):Xq(p),g=nz(u,t,m,e?h:!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:");Ut(g).attr("style",x)}else{const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Ut(g).select("rect").attr("style",x.replace(/background:/g,"fill:"));const v=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ut(g).select("text").attr("style",v)}return i?Ut(g).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Ut(g).selectAll("tspan.text-outer-tspan").classed("row",!0),g}},"createText");function dC(t,e,r){if(t&&t.length){const[i,n]=e,s=Math.PI/180*r,o=Math.cos(s),c=Math.sin(s);for(const u of t){const[h,f]=u;u[0]=(h-i)*o-(f-n)*c+i,u[1]=(h-i)*c+(f-n)*o+n}}}function Mlt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Nlt(t,e,r,i=1){const n=r,s=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,c=[0,0];if(n)for(const h of o)dC(h,c,n);const u=(function(h,f,p){const m=[];for(const _ of h){const S=[..._];Mlt(S[0],S[S.length-1])||S.push([S[0][0],S[0][1]]),S.length>2&&m.push(S)}const g=[];f=Math.max(f,.1);const x=[];for(const _ of m)for(let S=0;S<_.length-1;S++){const E=_[S],L=_[S+1];if(E[1]!==L[1]){const A=Math.min(E[1],L[1]);x.push({ymin:A,ymax:Math.max(E[1],L[1]),x:A===E[1]?E[0]:L[0],islope:(L[0]-E[0])/(L[1]-E[1])})}}if(x.sort(((_,S)=>_.ymin<S.ymin?-1:_.ymin>S.ymin?1:_.x<S.x?-1:_.x>S.x?1:_.ymax===S.ymax?0:(_.ymax-S.ymax)/Math.abs(_.ymax-S.ymax))),!x.length)return g;let v=[],b=x[0].ymin,w=0;for(;v.length||x.length;){if(x.length){let _=-1;for(let S=0;S<x.length&&!(x[S].ymin>b);S++)_=S;x.splice(0,_+1).forEach((S=>{v.push({s:b,edge:S})}))}if(v=v.filter((_=>!(_.edge.ymax<=b))),v.sort(((_,S)=>_.edge.x===S.edge.x?0:(_.edge.x-S.edge.x)/Math.abs(_.edge.x-S.edge.x))),(p!==1||w%f==0)&&v.length>1)for(let _=0;_<v.length;_+=2){const S=_+1;if(S>=v.length)break;const E=v[_].edge,L=v[S].edge;g.push([[Math.round(E.x),b],[Math.round(L.x),b]])}b+=p,v.forEach((_=>{_.edge.x=_.edge.x+p*_.edge.islope})),w++}return g})(o,s,i);if(n){for(const h of o)dC(h,c,-n);(function(h,f,p){const m=[];h.forEach((g=>m.push(...g))),dC(m,f,p)})(u,c,-n)}return u}function vh(t,e){var r;const i=e.hachureAngle+90;let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let s=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=n),Nlt(t,n,i,s||1)}class _S{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const i=vh(e,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(e,r){const i=[];for(const n of e)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function Kp(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class Olt extends _S{fillPolygons(e,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=vh(e,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,o=[],c=.5*i*Math.cos(s),u=.5*i*Math.sin(s);for(const[h,f]of n)Kp([h,f])&&o.push([[h[0]-c,h[1]+u],[...f]],[[h[0]+c,h[1]-u],[...f]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class Rlt extends _S{fillPolygons(e,r){const i=this._fillPolygons(e,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(e,n);return i.ops=i.ops.concat(s.ops),i}}class Dlt{constructor(e){this.helper=e}fillPolygons(e,r){const i=vh(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(e,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);const o=n/4;for(const c of e){const u=Kp(c),h=u/n,f=Math.ceil(h)-1,p=u-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 v=g+p+x*n,b=m-o+2*Math.random()*o,w=v-o+2*Math.random()*o,_=this.helper.ellipse(b,w,s,s,r);i.push(..._.ops)}}return{type:"fillSketch",ops:i}}}class Flt{constructor(e){this.helper=e}fillPolygons(e,r){const i=vh(e,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(e,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,s=[];return e.forEach((o=>{const c=Kp(o),u=Math.floor(c/(i+n)),h=(c+n-u*(i+n))/2;let f=o[0],p=o[1];f[0]>p[0]&&(f=o[1],p=o[0]);const m=Math.atan((p[1]-f[1])/(p[0]-f[0]));for(let g=0;g<u;g++){const x=g*(i+n),v=x+i,b=[f[0]+x*Math.cos(m)+h*Math.cos(m),f[1]+x*Math.sin(m)+h*Math.sin(m)],w=[f[0]+v*Math.cos(m)+h*Math.cos(m),f[1]+v*Math.sin(m)+h*Math.sin(m)];s.push(...this.helper.doubleLineOps(b[0],b[1],w[0],w[1],r))}})),s}}class Ilt{constructor(e){this.helper=e}fillPolygons(e,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,s=vh(e,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(s,n,r)}}zigzagLines(e,r,i){const n=[];return e.forEach((s=>{const o=Kp(s),c=Math.round(o/(2*r));let u=s[0],h=s[1];u[0]>h[0]&&(u=s[1],h=s[0]);const f=Math.atan((h[1]-u[1])/(h[0]-u[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)),v=[u[0]+m*Math.cos(f),u[1]+m*Math.sin(f)],b=[u[0]+g*Math.cos(f),u[1]+g*Math.sin(f)],w=[v[0]+x*Math.cos(f+Math.PI/4),v[1]+x*Math.sin(f+Math.PI/4)];n.push(...this.helper.doubleLineOps(v[0],v[1],w[0],w[1],i),...this.helper.doubleLineOps(w[0],w[1],b[0],b[1],i))}})),n}}const ci={};class qlt{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const zlt=0,pC=1,O4=2,Jf={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 gC(t,e){return t.type===e}function TS(t){const e=[],r=(function(o){const c=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))c[c.length]={type:zlt,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];c[c.length]={type:pC,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return c[c.length]={type:O4,text:""},c})(t);let i="BOD",n=0,s=r[n];for(;!gC(s,O4);){let o=0;const c=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return TS("M0,0"+t);n++,o=Jf[s.text],i=s.text}else gC(s,pC)?o=Jf[i]:(n++,o=Jf[s.text],i=s.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let u=n;u<n+o;u++){const h=r[u];if(!gC(h,pC))throw new Error("Param not a number: "+i+","+h.text);c[c.length]=+h.text}if(typeof Jf[i]!="number")throw new Error("Bad segment: "+i);{const u={key:i,data:c};e.push(u),n+=o,s=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return e}function sz(t){let e=0,r=0,i=0,n=0;const s=[];for(const{key:o,data:c}of t)switch(o){case"M":s.push({key:"M",data:[...c]}),[e,r]=c,[i,n]=c;break;case"m":e+=c[0],r+=c[1],s.push({key:"M",data:[e,r]}),i=e,n=r;break;case"L":s.push({key:"L",data:[...c]}),[e,r]=c;break;case"l":e+=c[0],r+=c[1],s.push({key:"L",data:[e,r]});break;case"C":s.push({key:"C",data:[...c]}),e=c[4],r=c[5];break;case"c":{const u=c.map(((h,f)=>f%2?h+r:h+e));s.push({key:"C",data:u}),e=u[4],r=u[5];break}case"Q":s.push({key:"Q",data:[...c]}),e=c[2],r=c[3];break;case"q":{const u=c.map(((h,f)=>f%2?h+r:h+e));s.push({key:"Q",data:u}),e=u[2],r=u[3];break}case"A":s.push({key:"A",data:[...c]}),e=c[5],r=c[6];break;case"a":e+=c[5],r+=c[6],s.push({key:"A",data:[c[0],c[1],c[2],c[3],c[4],e,r]});break;case"H":s.push({key:"H",data:[...c]}),e=c[0];break;case"h":e+=c[0],s.push({key:"H",data:[e]});break;case"V":s.push({key:"V",data:[...c]}),r=c[0];break;case"v":r+=c[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...c]}),e=c[2],r=c[3];break;case"s":{const u=c.map(((h,f)=>f%2?h+r:h+e));s.push({key:"S",data:u}),e=u[2],r=u[3];break}case"T":s.push({key:"T",data:[...c]}),e=c[0],r=c[1];break;case"t":e+=c[0],r+=c[1],s.push({key:"T",data:[e,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=i,r=n}return s}function oz(t){const e=[];let r="",i=0,n=0,s=0,o=0,c=0,u=0;for(const{key:h,data:f}of t){switch(h){case"M":e.push({key:"M",data:[...f]}),[i,n]=f,[s,o]=f;break;case"C":e.push({key:"C",data:[...f]}),i=f[4],n=f[5],c=f[2],u=f[3];break;case"L":e.push({key:"L",data:[...f]}),[i,n]=f;break;case"H":i=f[0],e.push({key:"L",data:[i,n]});break;case"V":n=f[0],e.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-u)):(p=i,m=n),e.push({key:"C",data:[p,m,...f]}),c=f[0],u=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-u)):(g=i,x=n);const v=i+2*(g-i)/3,b=n+2*(x-n)/3,w=p+2*(g-p)/3,_=m+2*(x-m)/3;e.push({key:"C",data:[v,b,w,_,p,m]}),c=g,u=x,i=p,n=m;break}case"Q":{const[p,m,g,x]=f,v=i+2*(p-i)/3,b=n+2*(m-n)/3,w=g+2*(p-g)/3,_=x+2*(m-x)/3;e.push({key:"C",data:[v,b,w,_,g,x]}),c=p,u=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],v=f[4],b=f[5],w=f[6];p===0||m===0?(e.push({key:"C",data:[i,n,b,w,b,w]}),i=b,n=w):(i!==b||n!==w)&&(lz(i,n,b,w,p,m,g,x,v).forEach((function(_){e.push({key:"C",data:_})})),i=b,n=w);break}case"Z":e.push({key:"Z",data:[]}),i=s,n=o}r=h}return e}function cu(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function lz(t,e,r,i,n,s,o,c,u,h){const f=(p=o,Math.PI*p/180);var p;let m=[],g=0,x=0,v=0,b=0;if(h)[g,x,v,b]=h;else{[t,e]=cu(t,e,-f),[r,i]=cu(r,i,-f);const X=(t-r)/2,M=(e-i)/2;let F=X*X/(n*n)+M*M/(s*s);F>1&&(F=Math.sqrt(F),n*=F,s*=F);const N=n*n,P=s*s,$=N*P-N*M*M-P*X*X,q=N*M*M+P*X*X,I=(c===u?-1:1)*Math.sqrt(Math.abs($/q));v=I*n*M/s+(t+r)/2,b=I*-s*X/n+(e+i)/2,g=Math.asin(parseFloat(((e-b)/s).toFixed(9))),x=Math.asin(parseFloat(((i-b)/s).toFixed(9))),t<v&&(g=Math.PI-g),r<v&&(x=Math.PI-x),g<0&&(g=2*Math.PI+g),x<0&&(x=2*Math.PI+x),u&&g>x&&(g-=2*Math.PI),!u&&x>g&&(x-=2*Math.PI)}let w=x-g;if(Math.abs(w)>120*Math.PI/180){const X=x,M=r,F=i;x=u&&x>g?g+120*Math.PI/180*1:g+120*Math.PI/180*-1,m=lz(r=v+n*Math.cos(x),i=b+s*Math.sin(x),M,F,n,s,o,0,u,[x,X,v,b])}w=x-g;const _=Math.cos(g),S=Math.sin(g),E=Math.cos(x),L=Math.sin(x),A=Math.tan(w/4),R=4/3*n*A,j=4/3*s*A,Y=[t,e],W=[t+R*S,e-j*_],O=[r+R*L,i-j*E],z=[r,i];if(W[0]=2*Y[0]-W[0],W[1]=2*Y[1]-W[1],h)return[W,O,z].concat(m);{m=[W,O,z].concat(m);const X=[];for(let M=0;M<m.length;M+=3){const F=cu(m[M][0],m[M][1],f),N=cu(m[M+1][0],m[M+1][1],f),P=cu(m[M+2][0],m[M+2][1],f);X.push([F[0],F[1],N[0],N[1],P[0],P[1]])}return X}}const jlt={randOffset:function(t,e){return Vt(t,e)},randOffsetWithRange:function(t,e,r){return rp(t,e,r)},ellipse:function(t,e,r,i,n){const s=uz(r,i,n);return B2(t,e,n,s).opset},doubleLineOps:function(t,e,r,i,n){return rs(t,e,r,i,n,!0)}};function cz(t,e,r,i,n){return{type:"path",ops:rs(t,e,r,i,n)}}function bd(t,e,r){const i=(t||[]).length;if(i>2){const n=[];for(let s=0;s<i-1;s++)n.push(...rs(t[s][0],t[s][1],t[s+1][0],t[s+1][1],r));return e&&n.push(...rs(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:n}}return i===2?cz(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function $lt(t,e,r,i,n){return(function(s,o){return bd(s,!0,o)})([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],n)}function R4(t,e){if(t.length){const r=typeof t[0][0]=="number"?[t]:t,i=td(r[0],1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:td(r[0],1.5*(1+.22*e.roughness),I4(e));for(let s=1;s<r.length;s++){const o=r[s];if(o.length){const c=td(o,1*(1+.2*e.roughness),e),u=e.disableMultiStroke?[]:td(o,1.5*(1+.22*e.roughness),I4(e));for(const h of c)h.op!=="move"&&i.push(h);for(const h of u)h.op!=="move"&&n.push(h)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function uz(t,e,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),s=2*Math.PI/n;let o=Math.abs(t/2),c=Math.abs(e/2);const u=1-r.curveFitting;return o+=Vt(o*u,r),c+=Vt(c*u,r),{increment:s,rx:o,ry:c}}function B2(t,e,r,i){const[n,s]=q4(i.increment,t,e,i.rx,i.ry,1,i.increment*rp(.1,rp(.4,1,r),r),r);let o=ip(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[c]=q4(i.increment,t,e,i.rx,i.ry,1.5,0,r),u=ip(c,null,r);o=o.concat(u)}return{estimatedPoints:s,opset:{type:"path",ops:o}}}function D4(t,e,r,i,n,s,o,c,u){const h=t,f=e;let p=Math.abs(r/2),m=Math.abs(i/2);p+=Vt(.01*p,u),m+=Vt(.01*m,u);let g=n,x=s;for(;g<0;)g+=2*Math.PI,x+=2*Math.PI;x-g>2*Math.PI&&(g=0,x=2*Math.PI);const v=2*Math.PI/u.curveStepCount,b=Math.min(v/2,(x-g)/2),w=z4(b,h,f,p,m,g,x,1,u);if(!u.disableMultiStroke){const _=z4(b,h,f,p,m,g,x,1.5,u);w.push(..._)}return o&&(c?w.push(...rs(h,f,h+p*Math.cos(g),f+m*Math.sin(g),u),...rs(h,f,h+p*Math.cos(x),f+m*Math.sin(x),u)):w.push({op:"lineTo",data:[h,f]},{op:"lineTo",data:[h+p*Math.cos(g),f+m*Math.sin(g)]})),{type:"path",ops:w}}function F4(t,e){const r=oz(sz(TS(t))),i=[];let n=[0,0],s=[0,0];for(const{key:o,data:c}of r)switch(o){case"M":s=[c[0],c[1]],n=[c[0],c[1]];break;case"L":i.push(...rs(s[0],s[1],c[0],c[1],e)),s=[c[0],c[1]];break;case"C":{const[u,h,f,p,m,g]=c;i.push(...Plt(u,h,f,p,m,g,s,e)),s=[m,g];break}case"Z":i.push(...rs(s[0],s[1],n[0],n[1],e)),s=[n[0],n[1]]}return{type:"path",ops:i}}function mC(t,e){const r=[];for(const i of t)if(i.length){const n=e.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+Vt(n,e),i[0][1]+Vt(n,e)]});for(let o=1;o<s;o++)r.push({op:"lineTo",data:[i[o][0]+Vt(n,e),i[o][1]+Vt(n,e)]})}}return{type:"fillPath",ops:r}}function Jo(t,e){return(function(r,i){let n=r.fillStyle||"hachure";if(!ci[n])switch(n){case"zigzag":ci[n]||(ci[n]=new Olt(i));break;case"cross-hatch":ci[n]||(ci[n]=new Rlt(i));break;case"dots":ci[n]||(ci[n]=new Dlt(i));break;case"dashed":ci[n]||(ci[n]=new Flt(i));break;case"zigzag-line":ci[n]||(ci[n]=new Ilt(i));break;default:n="hachure",ci[n]||(ci[n]=new _S(i))}return ci[n]})(e,jlt).fillPolygons(t,e)}function I4(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function hz(t){return t.randomizer||(t.randomizer=new qlt(t.seed||0)),t.randomizer.next()}function rp(t,e,r,i=1){return r.roughness*i*(hz(r)*(e-t)+t)}function Vt(t,e,r=1){return rp(-t,t,e,r)}function rs(t,e,r,i,n,s=!1){const o=s?n.disableMultiStrokeFill:n.disableMultiStroke,c=L2(t,e,r,i,n,!0,!1);if(o)return c;const u=L2(t,e,r,i,n,!0,!0);return c.concat(u)}function L2(t,e,r,i,n,s,o){const c=Math.pow(t-r,2)+Math.pow(e-i,2),u=Math.sqrt(c);let h=1;h=u<200?1:u>500?.4:-.0016668*u+1.233334;let f=n.maxRandomnessOffset||0;f*f*100>c&&(f=u/10);const p=f/2,m=.2+.2*hz(n);let g=n.bowing*n.maxRandomnessOffset*(i-e)/200,x=n.bowing*n.maxRandomnessOffset*(t-r)/200;g=Vt(g,n,h),x=Vt(x,n,h);const v=[],b=()=>Vt(p,n,h),w=()=>Vt(f,n,h),_=n.preserveVertices;return o?v.push({op:"move",data:[t+(_?0:b()),e+(_?0:b())]}):v.push({op:"move",data:[t+(_?0:Vt(f,n,h)),e+(_?0:Vt(f,n,h))]}),o?v.push({op:"bcurveTo",data:[g+t+(r-t)*m+b(),x+e+(i-e)*m+b(),g+t+2*(r-t)*m+b(),x+e+2*(i-e)*m+b(),r+(_?0:b()),i+(_?0:b())]}):v.push({op:"bcurveTo",data:[g+t+(r-t)*m+w(),x+e+(i-e)*m+w(),g+t+2*(r-t)*m+w(),x+e+2*(i-e)*m+w(),r+(_?0:w()),i+(_?0:w())]}),v}function td(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+Vt(e,r),t[0][1]+Vt(e,r)]),i.push([t[0][0]+Vt(e,r),t[0][1]+Vt(e,r)]);for(let n=1;n<t.length;n++)i.push([t[n][0]+Vt(e,r),t[n][1]+Vt(e,r)]),n===t.length-1&&i.push([t[n][0]+Vt(e,r),t[n][1]+Vt(e,r)]);return ip(i,null,r)}function ip(t,e,r){const i=t.length,n=[];if(i>3){const s=[],o=1-r.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let c=1;c+2<i;c++){const u=t[c];s[0]=[u[0],u[1]],s[1]=[u[0]+(o*t[c+1][0]-o*t[c-1][0])/6,u[1]+(o*t[c+1][1]-o*t[c-1][1])/6],s[2]=[t[c+1][0]+(o*t[c][0]-o*t[c+2][0])/6,t[c+1][1]+(o*t[c][1]-o*t[c+2][1])/6],s[3]=[t[c+1][0],t[c+1][1]],n.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}}else i===3?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):i===2&&n.push(...L2(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return n}function q4(t,e,r,i,n,s,o,c){const u=[],h=[];if(c.roughness===0){t/=4,h.push([e+i*Math.cos(-t),r+n*Math.sin(-t)]);for(let f=0;f<=2*Math.PI;f+=t){const p=[e+i*Math.cos(f),r+n*Math.sin(f)];u.push(p),h.push(p)}h.push([e+i*Math.cos(0),r+n*Math.sin(0)]),h.push([e+i*Math.cos(t),r+n*Math.sin(t)])}else{const f=Vt(.5,c)-Math.PI/2;h.push([Vt(s,c)+e+.9*i*Math.cos(f-t),Vt(s,c)+r+.9*n*Math.sin(f-t)]);const p=2*Math.PI+f-.01;for(let m=f;m<p;m+=t){const g=[Vt(s,c)+e+i*Math.cos(m),Vt(s,c)+r+n*Math.sin(m)];u.push(g),h.push(g)}h.push([Vt(s,c)+e+i*Math.cos(f+2*Math.PI+.5*o),Vt(s,c)+r+n*Math.sin(f+2*Math.PI+.5*o)]),h.push([Vt(s,c)+e+.98*i*Math.cos(f+o),Vt(s,c)+r+.98*n*Math.sin(f+o)]),h.push([Vt(s,c)+e+.9*i*Math.cos(f+.5*o),Vt(s,c)+r+.9*n*Math.sin(f+.5*o)])}return[h,u]}function z4(t,e,r,i,n,s,o,c,u){const h=s+Vt(.1,u),f=[];f.push([Vt(c,u)+e+.9*i*Math.cos(h-t),Vt(c,u)+r+.9*n*Math.sin(h-t)]);for(let p=h;p<=o;p+=t)f.push([Vt(c,u)+e+i*Math.cos(p),Vt(c,u)+r+n*Math.sin(p)]);return f.push([e+i*Math.cos(o),r+n*Math.sin(o)]),f.push([e+i*Math.cos(o),r+n*Math.sin(o)]),ip(f,null,u)}function Plt(t,e,r,i,n,s,o,c){const u=[],h=[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?u.push({op:"move",data:[o[0],o[1]]}):u.push({op:"move",data:[o[0]+(m?0:Vt(h[0],c)),o[1]+(m?0:Vt(h[0],c))]}),f=m?[n,s]:[n+Vt(h[g],c),s+Vt(h[g],c)],u.push({op:"bcurveTo",data:[t+Vt(h[g],c),e+Vt(h[g],c),r+Vt(h[g],c),i+Vt(h[g],c),f[0],f[1]]});return u}function uu(t){return[...t]}function j4(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(uu(t[0]),uu(t[1]),uu(t[2]),uu(t[2]));else{const n=[];n.push(t[0],t[0]);for(let c=1;c<t.length;c++)n.push(t[c]),c===t.length-1&&n.push(t[c]);const s=[],o=1-e;i.push(uu(n[0]));for(let c=1;c+2<n.length;c++){const u=n[c];s[0]=[u[0],u[1]],s[1]=[u[0]+(o*n[c+1][0]-o*n[c-1][0])/6,u[1]+(o*n[c+1][1]-o*n[c-1][1])/6],s[2]=[n[c+1][0]+(o*n[c][0]-o*n[c+2][0])/6,n[c+1][1]+(o*n[c][1]-o*n[c+2][1])/6],s[3]=[n[c+1][0],n[c+1][1]],i.push(s[1],s[2],s[3])}}return i}function vd(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Hlt(t,e,r){const i=vd(e,r);if(i===0)return vd(t,e);let n=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return n=Math.max(0,Math.min(1,n)),vd(t,zs(e,r,n))}function zs(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function M2(t,e,r,i){const n=i||[];if((function(c,u){const h=c[u+0],f=c[u+1],p=c[u+2],m=c[u+3];let g=3*f[0]-2*h[0]-m[0];g*=g;let x=3*f[1]-2*h[1]-m[1];x*=x;let v=3*p[0]-2*m[0]-h[0];v*=v;let b=3*p[1]-2*m[1]-h[1];return b*=b,g<v&&(g=v),x<b&&(x=b),g+x})(t,e)<r){const c=t[e+0];n.length?(s=n[n.length-1],o=c,Math.sqrt(vd(s,o))>1&&n.push(c)):n.push(c),n.push(t[e+3])}else{const u=t[e+0],h=t[e+1],f=t[e+2],p=t[e+3],m=zs(u,h,.5),g=zs(h,f,.5),x=zs(f,p,.5),v=zs(m,g,.5),b=zs(g,x,.5),w=zs(v,b,.5);M2([u,m,v,w],0,r,n),M2([w,b,x,p],0,r,n)}var s,o;return n}function Ult(t,e){return np(t,0,t.length,e)}function np(t,e,r,i,n){const s=n||[],o=t[e],c=t[r-1];let u=0,h=1;for(let f=e+1;f<r-1;++f){const p=Hlt(t[f],o,c);p>u&&(u=p,h=f)}return Math.sqrt(u)>i?(np(t,e,h+1,i,s),np(t,h,r,i,s)):(s.length||s.push(o),s.push(c)),s}function yC(t,e=.15,r){const i=[],n=(t.length-1)/3;for(let s=0;s<n;s++)M2(t,3*s,e,i);return r&&r>0?np(i,0,i.length,r):i}const Ti="none";class ap{constructor(e){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=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,i){return{shape:e,sets:r||[],options:i||this.defaultOptions}}line(e,r,i,n,s){const o=this._o(s);return this._d("line",[cz(e,r,i,n,o)],o)}rectangle(e,r,i,n,s){const o=this._o(s),c=[],u=$lt(e,r,i,n,o);if(o.fill){const h=[[e,r],[e+i,r],[e+i,r+n],[e,r+n]];o.fillStyle==="solid"?c.push(mC([h],o)):c.push(Jo([h],o))}return o.stroke!==Ti&&c.push(u),this._d("rectangle",c,o)}ellipse(e,r,i,n,s){const o=this._o(s),c=[],u=uz(i,n,o),h=B2(e,r,o,u);if(o.fill)if(o.fillStyle==="solid"){const f=B2(e,r,o,u).opset;f.type="fillPath",c.push(f)}else c.push(Jo([h.estimatedPoints],o));return o.stroke!==Ti&&c.push(h.opset),this._d("ellipse",c,o)}circle(e,r,i,n){const s=this.ellipse(e,r,i,i,n);return s.shape="circle",s}linearPath(e,r){const i=this._o(r);return this._d("linearPath",[bd(e,!1,i)],i)}arc(e,r,i,n,s,o,c=!1,u){const h=this._o(u),f=[],p=D4(e,r,i,n,s,o,c,!0,h);if(c&&h.fill)if(h.fillStyle==="solid"){const m=Object.assign({},h);m.disableMultiStroke=!0;const g=D4(e,r,i,n,s,o,!0,!1,m);g.type="fillPath",f.push(g)}else f.push((function(m,g,x,v,b,w,_){const S=m,E=g;let L=Math.abs(x/2),A=Math.abs(v/2);L+=Vt(.01*L,_),A+=Vt(.01*A,_);let R=b,j=w;for(;R<0;)R+=2*Math.PI,j+=2*Math.PI;j-R>2*Math.PI&&(R=0,j=2*Math.PI);const Y=(j-R)/_.curveStepCount,W=[];for(let O=R;O<=j;O+=Y)W.push([S+L*Math.cos(O),E+A*Math.sin(O)]);return W.push([S+L*Math.cos(j),E+A*Math.sin(j)]),W.push([S,E]),Jo([W],_)})(e,r,i,n,s,o,h));return h.stroke!==Ti&&f.push(p),this._d("arc",f,h)}curve(e,r){const i=this._o(r),n=[],s=R4(e,i);if(i.fill&&i.fill!==Ti)if(i.fillStyle==="solid"){const o=R4(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],c=e;if(c.length){const u=typeof c[0][0]=="number"?[c]:c;for(const h of u)h.length<3?o.push(...h):h.length===3?o.push(...yC(j4([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):o.push(...yC(j4(h),10,(1+i.roughness)/2))}o.length&&n.push(Jo([o],i))}return i.stroke!==Ti&&n.push(s),this._d("curve",n,i)}polygon(e,r){const i=this._o(r),n=[],s=bd(e,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(mC([e],i)):n.push(Jo([e],i))),i.stroke!==Ti&&n.push(s),this._d("polygon",n,i)}path(e,r){const i=this._o(r),n=[];if(!e)return this._d("path",n,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=i.fill&&i.fill!=="transparent"&&i.fill!==Ti,o=i.stroke!==Ti,c=!!(i.simplification&&i.simplification<1),u=(function(f,p,m){const g=oz(sz(TS(f))),x=[];let v=[],b=[0,0],w=[];const _=()=>{w.length>=4&&v.push(...yC(w,p)),w=[]},S=()=>{_(),v.length&&(x.push(v),v=[])};for(const{key:L,data:A}of g)switch(L){case"M":S(),b=[A[0],A[1]],v.push(b);break;case"L":_(),v.push([A[0],A[1]]);break;case"C":if(!w.length){const R=v.length?v[v.length-1]:b;w.push([R[0],R[1]])}w.push([A[0],A[1]]),w.push([A[2],A[3]]),w.push([A[4],A[5]]);break;case"Z":_(),v.push([b[0],b[1]])}if(S(),!m)return x;const E=[];for(const L of x){const A=Ult(L,m);A.length&&E.push(A)}return E})(e,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),h=F4(e,i);if(s)if(i.fillStyle==="solid")if(u.length===1){const f=F4(e,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(mC(u,i));else n.push(Jo(u,i));return o&&(c?u.forEach((f=>{n.push(bd(f,!1,i))})):n.push(h)),this._d("path",n,i)}opsToPath(e,r){let i="";for(const n of e.ops){const s=typeof r=="number"&&r>=0?n.data.map((o=>+o.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(e){const r=e.sets||[],i=e.options||this.defaultOptions,n=[];for(const s of r){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ti};break;case"fillPath":o={d:this.opsToPath(s),stroke:Ti,strokeWidth:0,fill:i.fill||Ti};break;case"fillSketch":o=this.fillSketch(s,i)}o&&n.push(o)}return n}fillSketch(e,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||Ti,strokeWidth:i,fill:Ti}}_mergedShape(e){return e.filter(((r,i)=>i===0||r.op!=="move"))}}class Glt{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new ap(r)}draw(e){const r=e.sets||[],i=e.options||this.getDefaultOptions(),n=this.ctx,s=e.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.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,o,s),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const c=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,s,c),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(e,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=n,this._drawToContext(e,r,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,i,n="nonzero"){e.beginPath();for(const s of r.ops){const o=typeof i=="number"&&i>=0?s.data.map((c=>+c.toFixed(i))):s.data;switch(s.op){case"move":e.moveTo(o[0],o[1]);break;case"bcurveTo":e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":e.lineTo(o[0],o[1])}}r.type==="fillPath"?e.fill(n):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,i,n,s){const o=this.gen.line(e,r,i,n,s);return this.draw(o),o}rectangle(e,r,i,n,s){const o=this.gen.rectangle(e,r,i,n,s);return this.draw(o),o}ellipse(e,r,i,n,s){const o=this.gen.ellipse(e,r,i,n,s);return this.draw(o),o}circle(e,r,i,n){const s=this.gen.circle(e,r,i,n);return this.draw(s),s}linearPath(e,r){const i=this.gen.linearPath(e,r);return this.draw(i),i}polygon(e,r){const i=this.gen.polygon(e,r);return this.draw(i),i}arc(e,r,i,n,s,o,c=!1,u){const h=this.gen.arc(e,r,i,n,s,o,c,u);return this.draw(h),h}curve(e,r){const i=this.gen.curve(e,r);return this.draw(i),i}path(e,r){const i=this.gen.path(e,r);return this.draw(i),i}}const ed="http://www.w3.org/2000/svg";class Ylt{constructor(e,r){this.svg=e,this.gen=new ap(r)}draw(e){const r=e.sets||[],i=e.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,s=n.createElementNS(ed,"g"),o=e.options.fixedDecimalPlaceDigits;for(const c of r){let u=null;switch(c.type){case"path":u=n.createElementNS(ed,"path"),u.setAttribute("d",this.opsToPath(c,o)),u.setAttribute("stroke",i.stroke),u.setAttribute("stroke-width",i.strokeWidth+""),u.setAttribute("fill","none"),i.strokeLineDash&&u.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":u=n.createElementNS(ed,"path"),u.setAttribute("d",this.opsToPath(c,o)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(n,c,i)}u&&s.appendChild(u)}return s}fillSketch(e,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const s=e.createElementNS(ed,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",n+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,i,n,s){const o=this.gen.line(e,r,i,n,s);return this.draw(o)}rectangle(e,r,i,n,s){const o=this.gen.rectangle(e,r,i,n,s);return this.draw(o)}ellipse(e,r,i,n,s){const o=this.gen.ellipse(e,r,i,n,s);return this.draw(o)}circle(e,r,i,n){const s=this.gen.circle(e,r,i,n);return this.draw(s)}linearPath(e,r){const i=this.gen.linearPath(e,r);return this.draw(i)}polygon(e,r){const i=this.gen.polygon(e,r);return this.draw(i)}arc(e,r,i,n,s,o,c=!1,u){const h=this.gen.arc(e,r,i,n,s,o,c,u);return this.draw(h)}curve(e,r){const i=this.gen.curve(e,r);return this.draw(i)}path(e,r){const i=this.gen.path(e,r);return this.draw(i)}}var Nt={canvas:(t,e)=>new Glt(t,e),svg:(t,e)=>new Ylt(t,e),generator:t=>new ap(t),newSeed:()=>ap.newSeed()},Wt=B(async(t,e,r)=>{var g,x;let i;const n=e.useHtmlLabels||pa((g=ve())==null?void 0:g.htmlLabels);r?i=r:i="node default";const s=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=s.insert("g").attr("class","label").attr("style",Ar(e.labelStyle));let c;e.label===void 0?c="":c=typeof e.label=="string"?e.label:e.label[0];const u=!!e.icon||!!e.img,h=e.labelType==="markdown",f=await ga(o,cn(to(c),ve()),{useHtmlLabels:n,width:e.width||((x=ve().flowchart)==null?void 0:x.wrappingWidth),classes:h?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:u,markdown:h},ve());let p=f.getBBox();const m=((e==null?void 0:e.padding)??0)/2;if(n){const v=f.children[0],b=Ut(f);await Mq(v,c),p=v.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height)}return n?o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):o.attr("transform","translate(0, "+-p.height/2+")"),e.centerLabel&&o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:p,halfPadding:m,label:o}},"labelHelper"),xC=B(async(t,e,r)=>{var u,h;const i=r.useHtmlLabels??Kr(ve()),n=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await ga(n,cn(to(e),ve()),{useHtmlLabels:i,width:r.width||((h=(u=ve())==null?void 0:u.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=s.getBBox();const c=r.padding/2;if(Kr(ve())){const f=s.children[0],p=Ut(s);o=f.getBoundingClientRect(),p.attr("width",o.width),p.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:t,bbox:o,halfPadding:c,label:n}},"insertLabel"),It=B((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),Gt=B((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function pe(t){const e=t.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}B(pe,"createPathFromPoints");function is(t,e,r,i,n,s){const o=[],u=r-t,h=i-e,f=u/s,p=2*Math.PI/f,m=e+h/2;for(let g=0;g<=50;g++){const x=g/50,v=t+x*u,b=m+n*Math.sin(p*(v-t));o.push({x:v,y:b})}return o}B(is,"generateFullSineWavePoints");function Zu(t,e,r,i,n,s){const o=[],c=n*Math.PI/180,f=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=t+r*Math.cos(m),x=e+r*Math.sin(m);o.push({x:-g,y:-x})}return o}B(Zu,"generateCirclePoints");function N2(t){const e=Array.from(t.childNodes).filter(u=>u.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=e.map(u=>u.getAttribute("d")).filter(u=>u!==null).join(" ");r.setAttribute("d",i);const n=e.find(u=>u.getAttribute("fill")!=="none"),s=e.find(u=>u.getAttribute("stroke")!=="none"),o=B((u,h)=>(u==null?void 0:u.getAttribute(h))??void 0,"getAttr");if(n){const u={fill:o(n,"fill"),"fill-opacity":o(n,"fill-opacity")??"1"};Object.entries(u).forEach(([h,f])=>{f&&r.setAttribute(h,f)})}if(s){const u={stroke:o(s,"stroke"),"stroke-width":o(s,"stroke-width")??"1","stroke-opacity":o(s,"stroke-opacity")??"1"};Object.entries(u).forEach(([h,f])=>{f&&r.setAttribute(h,f)})}const c=document.createElementNS("http://www.w3.org/2000/svg","g");return c.appendChild(r),c}B(N2,"mergePaths");var Wlt=B((t,e)=>{var r=t.x,i=t.y,n=e.x-r,s=e.y-i,o=t.width/2,c=t.height/2,u,h;return Math.abs(s)*o>Math.abs(n)*c?(s<0&&(c=-c),u=s===0?0:c*n/s,h=c):(n<0&&(o=-o),u=o,h=n===0?0:o*s/n),{x:r+u,y:i+h}},"intersectRect"),ec=Wlt,Vlt=B(async(t,e,r,i=!1,n=!1)=>{let s=e||"";typeof s=="object"&&(s=s[0]);const o=ve(),c=Kr(o);return await ga(t,s,{style:r,isTitle:i,useHtmlLabels:c,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),Xa=Vlt,os=B((t,e,r,i,n)=>["M",t+n,e,"H",t+r-n,"A",n,n,0,0,1,t+r,e+n,"V",e+i-n,"A",n,n,0,0,1,t+r-n,e+i,"H",t+n,"A",n,n,0,0,1,t,e+i-n,"V",e+n,"A",n,n,0,0,1,t+n,e,"Z"].join(" "),"createRoundedRectPathD"),fz=B(async(t,e)=>{St.info("Creating subgraph rect for ",e.id,e);const r=ve(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:c,nodeStyles:u,borderStyles:h,backgroundStyles:f}=Dt(e),p=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),m=Kr(r),g=p.insert("g").attr("class","cluster-label ");let x;e.labelType==="markdown"?x=await ga(g,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width}):x=await Xa(g,e.label,e.labelStyle||"",!1,!0);let v=x.getBBox();if(Kr(r)){const R=x.children[0],j=Ut(x);v=R.getBoundingClientRect(),j.attr("width",v.width),j.attr("height",v.height)}const b=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;const w=e.height,_=e.x-b/2,S=e.y-w/2;St.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const R=Nt.svg(p),j=Ot(e,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:n}),Y=R.path(os(_,S,b,w,0),j);E=p.insert(()=>(St.debug("Rough node insert CXC",Y),Y),":first-child"),E.select("path:nth-child(2)").attr("style",h.join(";")),E.select("path").attr("style",f.join(";").replace("fill","stroke"))}else E=p.insert("rect",":first-child"),E.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",_).attr("y",S).attr("width",b).attr("height",w);const{subGraphTitleTopMargin:L}=pS(r);if(g.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+L})`),c){const R=g.select("span");R&&R.attr("style",c)}const A=E.node().getBBox();return e.offsetX=0,e.width=A.width,e.height=A.height,e.offsetY=v.height-e.padding/2,e.intersect=function(R){return ec(e,R)},{cluster:p,labelBBox:v}},"rect"),Xlt=B((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),i=r.insert("rect",":first-child"),n=0*e.padding,s=n/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-s).attr("y",e.y-e.height/2-s).attr("width",e.width+n).attr("height",e.height+n).attr("fill","none");const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(c){return ec(e,c)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Qlt=B(async(t,e)=>{const r=ve(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:s,compositeBackground:o,compositeTitleBackground:c,nodeBorder:u}=i,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),f=h.insert("g",":first-child"),p=h.insert("g").attr("class","cluster-label");let m=h.append("rect");const g=await Xa(p,e.label,e.labelStyle,void 0,!0);let x=g.getBBox();if(Kr(r)){const Y=g.children[0],W=Ut(g);x=Y.getBoundingClientRect(),W.attr("width",x.width),W.attr("height",x.height)}const v=0*e.padding,b=v/2,w=(e.width<=x.width+e.padding?x.width+e.padding:e.width)+v;e.width<=x.width+e.padding?e.diff=(w-e.width)/2-e.padding:e.diff=-e.padding;const _=e.height+v,S=e.height+v-x.height-6,E=e.x-w/2,L=e.y-_/2;e.width=w;const A=e.y-e.height/2-b+x.height+2;let R;if(e.look==="handDrawn"){const Y=e.cssClasses.includes("statediagram-cluster-alt"),W=Nt.svg(h),O=e.rx||e.ry?W.path(os(E,L,w,_,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:u,seed:n}):W.rectangle(E,L,w,_,{seed:n});R=h.insert(()=>O,":first-child");const z=W.rectangle(E,A,w,S,{fill:Y?s:o,fillStyle:Y?"hachure":"solid",stroke:u,seed:n});R=h.insert(()=>O,":first-child"),m=h.insert(()=>z)}else R=f.insert("rect",":first-child"),R.attr("class","outer").attr("x",E).attr("y",L).attr("width",w).attr("height",_).attr("data-look",e.look),m.attr("class","inner").attr("x",E).attr("y",A).attr("width",w).attr("height",S);p.attr("transform",`translate(${e.x-x.width/2}, ${L+1-(Kr(r)?0:3)})`);const j=R.node().getBBox();return e.height=j.height,e.offsetX=0,e.offsetY=x.height-e.padding/2,e.labelBBox=x,e.intersect=function(Y){return ec(e,Y)},{cluster:h,labelBBox:x}},"roundedWithTitle"),Zlt=B(async(t,e)=>{St.info("Creating subgraph rect for ",e.id,e);const r=ve(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:c,nodeStyles:u,borderStyles:h,backgroundStyles:f}=Dt(e),p=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),m=Kr(r),g=p.insert("g").attr("class","cluster-label "),x=await ga(g,e.label,{style:e.labelStyle,useHtmlLabels:m,isNode:!0,width:e.width});let v=x.getBBox();if(Kr(r)){const R=x.children[0],j=Ut(x);v=R.getBoundingClientRect(),j.attr("width",v.width),j.attr("height",v.height)}const b=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(b-e.width)/2-e.padding:e.diff=-e.padding;const w=e.height,_=e.x-b/2,S=e.y-w/2;St.trace("Data ",e,JSON.stringify(e));let E;if(e.look==="handDrawn"){const R=Nt.svg(p),j=Ot(e,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:n}),Y=R.path(os(_,S,b,w,e.rx),j);E=p.insert(()=>(St.debug("Rough node insert CXC",Y),Y),":first-child"),E.select("path:nth-child(2)").attr("style",h.join(";")),E.select("path").attr("style",f.join(";").replace("fill","stroke"))}else E=p.insert("rect",":first-child"),E.attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",_).attr("y",S).attr("width",b).attr("height",w);const{subGraphTitleTopMargin:L}=pS(r);if(g.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+L})`),c){const R=g.select("span");R&&R.attr("style",c)}const A=E.node().getBBox();return e.offsetX=0,e.width=A.width,e.height=A.height,e.offsetY=v.height-e.padding/2,e.intersect=function(R){return ec(e,R)},{cluster:p,labelBBox:v}},"kanbanSection"),Klt=B((t,e)=>{const r=ve(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:s}=i,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=o.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;const f=e.height+u,p=e.x-h/2,m=e.y-f/2;e.width=h;let g;if(e.look==="handDrawn"){const b=Nt.svg(o).rectangle(p,m,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:n});g=o.insert(()=>b,":first-child")}else{g=c.insert("rect",":first-child");let v="outer";e.look,v="divider",g.attr("class",v).attr("x",p).attr("y",m).attr("width",h).attr("height",f).attr("data-look",e.look)}const x=g.node().getBBox();return e.height=x.height,e.offsetX=0,e.offsetY=0,e.intersect=function(v){return ec(e,v)},{cluster:o,labelBBox:{}}},"divider"),Jlt=fz,tct={rect:fz,squareRect:Jlt,roundedWithTitle:Qlt,noteGroup:Xlt,divider:Klt,kanbanSection:Zlt},dz=new Map,ect=B(async(t,e)=>{const r=e.shape||"rect",i=await tct[r](t,e);return dz.set(e.id,i),i},"insertCluster"),npt=B(()=>{dz=new Map},"clear");function pz(t,e){return t.intersect(e)}B(pz,"intersectNode");var rct=pz;function gz(t,e,r,i){var n=t.x,s=t.y,o=n-i.x,c=s-i.y,u=Math.sqrt(e*e*c*c+r*r*o*o),h=Math.abs(e*r*o/u);i.x<n&&(h=-h);var f=Math.abs(e*r*c/u);return i.y<s&&(f=-f),{x:n+h,y:s+f}}B(gz,"intersectEllipse");var mz=gz;function yz(t,e,r){return mz(t,e,e,r)}B(yz,"intersectCircle");var ict=yz;function xz(t,e,r,i){{const n=e.y-t.y,s=t.x-e.x,o=e.x*t.y-t.x*e.y,c=n*r.x+s*r.y+o,u=n*i.x+s*i.y+o,h=1e-6;if(c!==0&&u!==0&&O2(c,u))return;const f=i.y-r.y,p=r.x-i.x,m=i.x*r.y-r.x*i.y,g=f*t.x+p*t.y+m,x=f*e.x+p*e.y+m;if(Math.abs(g)<h&&Math.abs(x)<h&&O2(g,x))return;const v=n*p-f*s;if(v===0)return;const b=Math.abs(v/2);let w=s*m-p*o;const _=w<0?(w-b)/v:(w+b)/v;w=f*o-n*m;const S=w<0?(w-b)/v:(w+b)/v;return{x:_,y:S}}}B(xz,"intersectLine");function O2(t,e){return t*e>0}B(O2,"sameSign");var nct=xz;function bz(t,e,r){let i=t.x,n=t.y,s=[],o=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(f){o=Math.min(o,f.x),c=Math.min(c,f.y)}):(o=Math.min(o,e.x),c=Math.min(c,e.y));let u=i-t.width/2-o,h=n-t.height/2-c;for(let f=0;f<e.length;f++){let p=e[f],m=e[f<e.length-1?f+1:0],g=nct(t,r,{x:u+p.x,y:h+p.y},{x:u+m.x,y:h+m.y});g&&s.push(g)}return s.length?(s.length>1&&s.sort(function(f,p){let m=f.x-r.x,g=f.y-r.y,x=Math.sqrt(m*m+g*g),v=p.x-r.x,b=p.y-r.y,w=Math.sqrt(v*v+b*b);return x<w?-1:x===w?0:1}),s[0]):t}B(bz,"intersectPolygon");var act=bz,Lt={node:rct,circle:ict,ellipse:mz,polygon:act,rect:ec};function vz(t,e){const{labelStyles:r}=Dt(e);e.labelStyle=r;const i=Gt(e);let n=i;i||(n="anchor");const s=t.insert("g").attr("class",n).attr("id",e.domId||e.id),o=1,{cssStyles:c}=e,u=Nt.svg(s),h=Ot(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);const f=u.circle(0,0,o*2,h),p=s.insert(()=>f,":first-child");return p.attr("class","anchor").attr("style",Ar(c)),It(e,p),e.intersect=function(m){return St.info("Circle intersect",e,o,m),Lt.circle(e,o,m)},s}B(vz,"anchor");function R2(t,e,r,i,n,s,o){const u=(t+r)/2,h=(e+i)/2,f=Math.atan2(i-e,r-t),p=(r-t)/2,m=(i-e)/2,g=p/n,x=m/s,v=Math.sqrt(g**2+x**2);if(v>1)throw new Error("The given radii are too small to create an arc between the points.");const b=Math.sqrt(1-v**2),w=u+b*s*Math.sin(f)*(o?-1:1),_=h-b*n*Math.cos(f)*(o?-1:1),S=Math.atan2((e-_)/s,(t-w)/n);let L=Math.atan2((i-_)/s,(r-w)/n)-S;o&&L<0&&(L+=2*Math.PI),!o&&L>0&&(L-=2*Math.PI);const A=[];for(let R=0;R<20;R++){const j=R/19,Y=S+j*L,W=w+n*Math.cos(Y),O=_+s*Math.sin(Y);A.push({x:W,y:O})}return A}B(R2,"generateArcPoints");function Cz(t,e,r){const[i,n]=[e,r].sort((s,o)=>o-s);return n*(1-Math.sqrt(1-(t/i/2)**2))}B(Cz,"calculateArcSagitta");async function wz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n,c=B(Y=>Y+o,"calcTotalHeight"),u=B(Y=>{const W=Y/2;return[W/(2.5+Y/50),W]},"calcEllipseRadius"),{shapeSvg:h,bbox:f}=await Wt(t,e,Gt(e)),p=c(e!=null&&e.height?e==null?void 0:e.height:f.height),[m,g]=u(p),x=Cz(p,m,g),b=(e!=null&&e.width?e==null?void 0:e.width:f.width)+s*2+x-x,w=p,{cssStyles:_}=e,S=[{x:b/2,y:-w/2},{x:-b/2,y:-w/2},...R2(-b/2,-w/2,-b/2,w/2,m,g,!1),{x:b/2,y:w/2},...R2(b/2,w/2,b/2,-w/2,m,g,!0)],E=Nt.svg(h),L=Ot(e,{});e.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const A=pe(S),R=E.path(A,L),j=h.insert(()=>R,":first-child");return j.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn"&&j.selectAll("path").attr("style",_),i&&e.look!=="handDrawn"&&j.selectAll("path").attr("style",i),j.attr("transform",`translate(${m/2}, 0)`),It(e,j),e.intersect=function(Y){return Lt.polygon(e,S,Y)},h}B(wz,"bowTieRect");function ma(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}B(ma,"insertPolygonShape");var rd=12;async function Sz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?28:n,o=e.look==="neo"?24:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=((e==null?void 0:e.width)??u.width)+(e.look==="neo"?s*2:s+rd),f=((e==null?void 0:e.height)??u.height)+(e.look==="neo"?o*2:o),p=0,m=h,g=-f,x=0,v=[{x:p+rd,y:g},{x:m,y:g},{x:m,y:x},{x:p,y:x},{x:p,y:g+rd},{x:p+rd,y:g}];let b;const{cssStyles:w}=e;if(e.look==="handDrawn"){const _=Nt.svg(c),S=Ot(e,{}),E=pe(v),L=_.path(E,S);b=c.insert(()=>L,":first-child").attr("transform",`translate(${-h/2}, ${f/2})`),w&&b.attr("style",w)}else b=ma(c,h,f,v);return i&&b.attr("style",i),It(e,b),e.intersect=function(_){return Lt.polygon(e,v,_)},c}B(Sz,"card");function kz(t,e){const{nodeStyles:r}=Dt(e);e.label="";const i=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(28,e.width??0),o=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],c=Nt.svg(i),u=Ot(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=pe(o),f=c.path(h,u),p=i.insert(()=>f,":first-child");return n&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",n),r&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(m){return Lt.polygon(e,o,m)},i}B(kz,"choice");async function ES(t,e,r){const{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i;const{shapeSvg:s,bbox:o,halfPadding:c}=await Wt(t,e,Gt(e)),u=16,h=(r==null?void 0:r.padding)??c,f=e.look==="neo"?o.width/2+u*2:o.width/2+h;let p;const{cssStyles:m}=e;if(e.look==="handDrawn"){const g=Nt.svg(s),x=Ot(e,{}),v=g.circle(0,0,f*2,x);p=s.insert(()=>v,":first-child"),p.attr("class","basic label-container").attr("style",Ar(m))}else p=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",f).attr("cx",0).attr("cy",0);return It(e,p),e.calcIntersect=function(g,x){const v=g.width/2;return Lt.circle(g,v,x)},e.intersect=function(g){return St.info("Circle intersect",e,f,g),Lt.circle(e,f,g)},s}B(ES,"circle");function _z(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=t*2,n={x:i/2*e,y:i/2*r},s={x:-(i/2)*e,y:i/2*r},o={x:-(i/2)*e,y:-(i/2)*r},c={x:i/2*e,y:-(i/2)*r};return`M ${s.x},${s.y} L ${c.x},${c.y}
523
+ M ${n.x},${n.y} L ${o.x},${o.y}`}B(_z,"createLine");function Tz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r,e.label="";const n=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),s=Math.max(30,(e==null?void 0:e.width)??0),{cssStyles:o}=e,c=Nt.svg(n),u=Ot(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=c.circle(0,0,s*2,u),f=_z(s),p=c.path(f,u),m=n.insert(()=>h,":first-child");return m.insert(()=>p),m.attr("class","outer-path"),o&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",o),i&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",i),It(e,m),e.intersect=function(g){return St.info("crossedCircle intersect",e,{radius:s,point:g}),Lt.circle(e,s,g)},n}B(Tz,"crossedCircle");function na(t,e,r,i=100,n=0,s=180){const o=[],c=n*Math.PI/180,f=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=t+r*Math.cos(m),x=e+r*Math.sin(m);o.push({x:-g,y:-x})}return o}B(na,"generateCirclePoints");async function Ez(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await Wt(t,e,Gt(e)),c=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=s.width+c,f=s.height+u,p=Math.max(5,f*.1),{cssStyles:m}=e,g=[...na(h/2,-f/2,p,30,-90,0),{x:-h/2-p,y:p},...na(h/2+p*2,-p,p,20,-180,-270),...na(h/2+p*2,p,p,20,-90,-180),{x:-h/2-p,y:-f/2},...na(h/2,f/2,p,20,0,90)],x=[{x:h/2,y:-f/2-p},{x:-h/2,y:-f/2-p},...na(h/2,-f/2,p,20,-90,0),{x:-h/2-p,y:-p},...na(h/2+h*.1,-p,p,20,-180,-270),...na(h/2+h*.1,p,p,20,-90,-180),{x:-h/2-p,y:f/2},...na(h/2,f/2,p,20,0,90),{x:-h/2,y:f/2+p},{x:h/2,y:f/2+p}],v=Nt.svg(n),b=Ot(e,{fill:"none"});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=pe(g).replace("Z",""),S=v.path(_,b),E=pe(x),L=v.path(E,{...b}),A=n.insert("g",":first-child");return A.insert(()=>L,":first-child").attr("stroke-opacity",0),A.insert(()=>S,":first-child"),A.attr("class","text"),m&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${p}, 0)`),o.attr("transform",`translate(${-h/2+p-(s.x-(s.left??0))},${-f/2+(e.padding??0)/2-(s.y-(s.top??0))})`),It(e,A),e.intersect=function(R){return Lt.polygon(e,x,R)},n}B(Ez,"curlyBraceLeft");function aa(t,e,r,i=100,n=0,s=180){const o=[],c=n*Math.PI/180,f=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=t+r*Math.cos(m),x=e+r*Math.sin(m);o.push({x:g,y:x})}return o}B(aa,"generateCirclePoints");async function Az(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await Wt(t,e,Gt(e)),c=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=s.width+(e.look==="neo"?c*2:c),f=s.height+(e.look==="neo"?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=e,g=[...aa(h/2,-f/2,p,20,-90,0),{x:h/2+p,y:-p},...aa(h/2+p*2,-p,p,20,-180,-270),...aa(h/2+p*2,p,p,20,-90,-180),{x:h/2+p,y:f/2},...aa(h/2,f/2,p,20,0,90)],x=[{x:-h/2,y:-f/2-p},{x:h/2,y:-f/2-p},...aa(h/2,-f/2,p,20,-90,0),{x:h/2+p,y:-p},...aa(h/2+p*2,-p,p,20,-180,-270),...aa(h/2+p*2,p,p,20,-90,-180),{x:h/2+p,y:f/2},...aa(h/2,f/2,p,20,0,90),{x:h/2,y:f/2+p},{x:-h/2,y:f/2+p}],v=Nt.svg(n),b=Ot(e,{fill:"none"});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const _=pe(g).replace("Z",""),S=v.path(_,b),E=pe(x),L=v.path(E,{...b}),A=n.insert("g",":first-child");return A.insert(()=>L,":first-child").attr("stroke-opacity",0),A.insert(()=>S,":first-child"),A.attr("class","text"),m&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${-p}, 0)`),o.attr("transform",`translate(${-h/2+(e.padding??0)/2-(s.x-(s.left??0))},${-f/2+(e.padding??0)/2-(s.y-(s.top??0))})`),It(e,A),e.intersect=function(R){return Lt.polygon(e,x,R)},n}B(Az,"curlyBraceRight");function Ir(t,e,r,i=100,n=0,s=180){const o=[],c=n*Math.PI/180,f=(s*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const m=c+p*f,g=t+r*Math.cos(m),x=e+r*Math.sin(m);o.push({x:-g,y:-x})}return o}B(Ir,"generateCirclePoints");async function Bz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await Wt(t,e,Gt(e)),c=e.look==="neo"?18:e.padding??0,u=e.look==="neo"?12:e.padding??0,h=s.width+(e.look==="neo"?c*2:c),f=s.height+(e.look==="neo"?u*2:u),p=Math.max(5,f*.1),{cssStyles:m}=e,g=[...Ir(h/2,-f/2,p,30,-90,0),{x:-h/2-p,y:p},...Ir(h/2+p*2,-p,p,20,-180,-270),...Ir(h/2+p*2,p,p,20,-90,-180),{x:-h/2-p,y:-f/2},...Ir(h/2,f/2,p,20,0,90)],x=[...Ir(-h/2+p+p/2,-f/2,p,20,-90,-180),{x:h/2-p/2,y:p},...Ir(-h/2-p/2,-p,p,20,0,90),...Ir(-h/2-p/2,p,p,20,-90,0),{x:h/2-p/2,y:-p},...Ir(-h/2+p+p/2,f/2,p,30,-180,-270)],v=[{x:h/2,y:-f/2-p},{x:-h/2,y:-f/2-p},...Ir(h/2,-f/2,p,20,-90,0),{x:-h/2-p,y:-p},...Ir(h/2+p*2,-p,p,20,-180,-270),...Ir(h/2+p*2,p,p,20,-90,-180),{x:-h/2-p,y:f/2},...Ir(h/2,f/2,p,20,0,90),{x:-h/2,y:f/2+p},{x:h/2-p-p/2,y:f/2+p},...Ir(-h/2+p+p/2,-f/2,p,20,-90,-180),{x:h/2-p/2,y:p},...Ir(-h/2-p/2,-p,p,20,0,90),...Ir(-h/2-p/2,p,p,20,-90,0),{x:h/2-p/2,y:-p},...Ir(-h/2+p+p/2,f/2,p,30,-180,-270)],b=Nt.svg(n),w=Ot(e,{fill:"none"});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=pe(g).replace("Z",""),E=b.path(S,w),A=pe(x).replace("Z",""),R=b.path(A,w),j=pe(v),Y=b.path(j,{...w}),W=n.insert("g",":first-child");return W.insert(()=>Y,":first-child").attr("stroke-opacity",0),W.insert(()=>E,":first-child"),W.insert(()=>R,":first-child"),W.attr("class","text"),m&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",i),W.attr("transform",`translate(${p-p/4}, 0)`),o.attr("transform",`translate(${-h/2+(e.padding??0)/2-(s.x-(s.left??0))},${-f/2+(e.padding??0)/2-(s.y-(s.top??0))})`),It(e,W),e.intersect=function(O){return Lt.polygon(e,v,O)},n}B(Bz,"curlyBraces");async function Lz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n,c=20,u=5,{shapeSvg:h,bbox:f}=await Wt(t,e,Gt(e)),p=Math.max(c,(f.width+s*2)*1.25,(e==null?void 0:e.width)??0),m=Math.max(u,f.height+o*2,(e==null?void 0:e.height)??0),g=m/2,{cssStyles:x}=e,v=Nt.svg(h),b=Ot(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=p,_=m,S=w-g,E=_/4,L=[{x:S,y:0},{x:E,y:0},{x:0,y:_/2},{x:E,y:_},{x:S,y:_},...Zu(-S,-_/2,g,50,270,90)],A=pe(L),R=v.path(A,b),j=h.insert(()=>R,":first-child");return j.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn"&&j.selectChildren("path").attr("style",x),i&&e.look!=="handDrawn"&&j.selectChildren("path").attr("style",i),j.attr("transform",`translate(${-p/2}, ${-m/2})`),It(e,j),e.intersect=function(Y){return Lt.polygon(e,L,Y)},h}B(Lz,"curvedTrapezoid");var sct=B((t,e,r,i,n,s)=>[`M${t},${e+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),oct=B((t,e,r,i,n,s)=>[`M${t},${e+s}`,`M${t+r},${e+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),lct=B((t,e,r,i,n,s)=>[`M${t-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),$4=8,P4=8;async function Mz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?24:n,o=e.look==="neo"?24:n;if(e.width||e.height){const b=e.width??0;e.width=(e.width??0)-o,e.width<P4&&(e.width=P4);const _=b/2/(2.5+b/50);e.height=(e.height??0)-s-_*3,e.height<$4&&(e.height=$4)}const{shapeSvg:c,bbox:u,label:h}=await Wt(t,e,Gt(e)),f=(e.width?e.width:u.width)+o,p=f/2,m=p/(2.5+f/50),g=(e.height?e.height:u.height)+s+m;let x;const{cssStyles:v}=e;if(e.look==="handDrawn"){const b=Nt.svg(c),w=oct(0,0,f,g,p,m),_=lct(0,m,f,g,p,m),S=Ot(e,{}),E=b.path(w,S),L=b.path(_,Ot(e,{fill:"none"}));x=c.insert(()=>L,":first-child"),x=c.insert(()=>E,":first-child"),x.attr("class","basic label-container"),v&&x.attr("style",v)}else{const b=sct(0,0,f,g,p,m);x=c.insert("path",":first-child").attr("d",b).attr("class","basic label-container outer-path").attr("style",Ar(v)).attr("style",i)}return x.attr("label-offset-y",m),x.attr("transform",`translate(${-f/2}, ${-(g/2+m)})`),It(e,x),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(e.padding??0)/1.5-(u.y-(u.top??0))})`),e.intersect=function(b){const w=Lt.rect(e,b),_=w.x-(e.x??0);if(p!=0&&(Math.abs(_)<(e.width??0)/2||Math.abs(_)==(e.width??0)/2&&Math.abs(w.y-(e.y??0))>(e.height??0)/2-m)){let S=m*m*(1-_*_/(p*p));S>0&&(S=Math.sqrt(S)),S=m-S,b.y-(e.y??0)>0&&(S=-S),w.y+=S}return w},c}B(Mz,"cylinder");async function rc(t,e,r){const{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i;const{shapeSvg:s,bbox:o}=await Wt(t,e,Gt(e)),c=Math.max(o.width+r.labelPaddingX*2,(e==null?void 0:e.width)||0),u=Math.max(o.height+r.labelPaddingY*2,(e==null?void 0:e.height)||0),h=-c/2,f=-u/2;let p,{rx:m,ry:g}=e;const{cssStyles:x}=e;if(r!=null&&r.rx&&r.ry&&(m=r.rx,g=r.ry),e.look==="handDrawn"){const v=Nt.svg(s),b=Ot(e,{}),w=m||g?v.path(os(h,f,c,u,m||0),b):v.rectangle(h,f,c,u,b);p=s.insert(()=>w,":first-child"),p.attr("class","basic label-container").attr("style",Ar(x))}else p=s.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",n).attr("rx",Ar(m)).attr("ry",Ar(g)).attr("x",h).attr("y",f).attr("width",c).attr("height",u);return It(e,p),e.calcIntersect=function(v,b){return Lt.rect(v,b)},e.intersect=function(v){return Lt.rect(e,v)},s}B(rc,"drawRect");async function Nz(t,e){const{cssClasses:r,labelPaddingX:i,labelPaddingY:n,padding:s,width:o,height:c}=e,u={rx:0,ry:0,labelPaddingX:i??(s??0)*2,labelPaddingY:n??s??0},h=await rc(t,e,u);if(e.look==="handDrawn"){const g=Nt.svg(h),x=Ot(e,{}),v=h.select(".basic.label-container > path:nth-child(2)"),b=v.node();if(!b)return h;let w=null;if(b instanceof SVGGraphicsElement)w=b.getBBox();else return h;return h.insert(()=>g.line(w.x,w.y,w.x+w.width,w.y,x),".basic.label-container g.label"),h.insert(()=>g.line(w.x,w.y+w.height,w.x+w.width,w.y+w.height,x),".basic.label-container g.label"),v.remove(),h}const f=h.select(".basic.label-container"),p=(Number(f.attr("width"))||o)??0,m=(Number(f.attr("height"))||c)??0;return p>0&&m>0&&f.attr("stroke-dasharray",`${p} ${m}`),h}B(Nz,"datastore");async function Oz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.look==="neo"?16:e.padding??0,s=e.look==="neo"?16:e.padding??0,{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=c.width+n,f=c.height+s,p=f*.2,m=-h/2,g=-f/2-p/2,{cssStyles:x}=e,v=Nt.svg(o),b=Ot(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:m,y:g+p},{x:-m,y:g+p},{x:-m,y:-g},{x:m,y:-g},{x:m,y:g},{x:-m,y:g},{x:-m,y:g+p}],_=v.polygon(w.map(E=>[E.x,E.y]),b),S=o.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",x),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),u.attr("transform",`translate(${m+(e.padding??0)/2-(c.x-(c.left??0))}, ${g+p+(e.padding??0)/2-(c.y-(c.top??0))})`),It(e,S),e.intersect=function(E){return Lt.rect(e,E)},o}B(Oz,"dividedRectangle");async function Rz(t,e){var g,x;const{labelStyles:r,nodeStyles:i}=Dt(e),n=e.look==="neo"?12:5;e.labelStyle=r;const s=e.padding??0,o=e.look==="neo"?16:s,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=(e!=null&&e.width?(e==null?void 0:e.width)/2:u.width/2)+(o??0),f=h-n;let p;const{cssStyles:m}=e;if(e.look==="handDrawn"){const v=Nt.svg(c),b=Ot(e,{roughness:.2,strokeWidth:2.5}),w=Ot(e,{roughness:.2,strokeWidth:1.5}),_=v.circle(0,0,h*2,b),S=v.circle(0,0,f*2,w);p=c.insert("g",":first-child"),p.attr("class",Ar(e.cssClasses)).attr("style",Ar(m)),(g=p.node())==null||g.appendChild(_),(x=p.node())==null||x.appendChild(S)}else{p=c.insert("g",":first-child");const v=p.insert("circle",":first-child"),b=p.insert("circle");p.attr("class","basic label-container").attr("style",i),v.attr("class","outer-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0),b.attr("class","inner-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0)}return It(e,p),e.intersect=function(v){return St.info("DoubleCircle intersect",e,h,v),Lt.circle(e,h,v)},c}B(Rz,"doublecircle");function Dz(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Dt(e);e.label="",e.labelStyle=i;const s=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),o=7,{cssStyles:c}=e,u=Nt.svg(s),{nodeBorder:h}=r,f=Ot(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(f.roughness=0);const p=u.circle(0,0,o*2,f),m=s.insert(()=>p,":first-child");return m.selectAll("path").attr("style",`fill: ${h} !important;`),c&&c.length>0&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),It(e,m),e.intersect=function(g){return St.info("filledCircle intersect",e,{radius:o,point:g}),Lt.circle(e,o,g)},s}B(Dz,"filledCircle");var H4=10,U4=10;async function Fz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?n*2:n;(e.width||e.height)&&(e.height=(e==null?void 0:e.height)??0,e.height<H4&&(e.height=H4),e.width=((e==null?void 0:e.width)??0)-s-s/2,e.width<U4&&(e.width=U4));const{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=(e!=null&&e.width?e==null?void 0:e.width:c.width)+(s??0),f=e!=null&&e.height?e==null?void 0:e.height:h+c.height,p=f,m=[{x:0,y:-f},{x:p,y:-f},{x:p/2,y:0}],{cssStyles:g}=e,x=Nt.svg(o),v=Ot(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=pe(m),w=x.path(b,v),_=o.insert(()=>w,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");return g&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),e.width=h,e.height=f,It(e,_),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-f/2+(e.padding??0)/2+(c.y-(c.top??0))})`),e.intersect=function(S){return St.info("Triangle intersect",e,m,S),Lt.polygon(e,m,S)},o}B(Fz,"flippedTriangle");function Iz(t,e,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:s}=Dt(e);e.label="";const o=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),{cssStyles:c}=e;let u=Math.max(70,(e==null?void 0:e.width)??0),h=Math.max(10,(e==null?void 0:e.height)??0);r==="LR"&&(u=Math.max(10,(e==null?void 0:e.width)??0),h=Math.max(70,(e==null?void 0:e.height)??0));const f=-1*u/2,p=-1*h/2,m=Nt.svg(o),g=Ot(e,{stroke:n.lineColor,fill:n.lineColor});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=m.rectangle(f,p,u,h,g),v=o.insert(()=>x,":first-child");c&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",c),s&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",s),It(e,v);const b=(i==null?void 0:i.padding)??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(w){return Lt.rect(e,w)},o}B(Iz,"forkJoin");async function qz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=15,s=10,o=e.look==="neo"?16:e.padding??0,c=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.height=((e==null?void 0:e.height)??0)-c*2,e.height<s&&(e.height=s),e.width=((e==null?void 0:e.width)??0)-o*2,e.width<n&&(e.width=n));const{shapeSvg:u,bbox:h}=await Wt(t,e,Gt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:Math.max(n,h.width))+o*2,p=(e!=null&&e.height?e==null?void 0:e.height:Math.max(s,h.height))+c*2,m=p/2,{cssStyles:g}=e,x=Nt.svg(u),v=Ot(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:-f/2,y:-p/2},{x:f/2-m,y:-p/2},...Zu(-f/2+m,0,m,50,90,270),{x:f/2-m,y:p/2},{x:-f/2,y:p/2}],w=pe(b),_=x.path(w,v),S=u.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),It(e,S),e.intersect=function(E){return St.info("Pill intersect",e,{radius:m,point:E}),Lt.polygon(e,b,E)},u}B(qz,"halfRoundedRectangle");var cct=B((t,e,r,i,n)=>[`M${t+n},${e}`,`L${t+r-n},${e}`,`L${t+r},${e-i/2}`,`L${t+r-n},${e-i}`,`L${t+n},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" "),"createHexagonPathD");async function zz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e),n=e.look==="neo"?3.5:4;e.labelStyle=r;const s=e.padding??0,o=70,c=32,u=e.look==="neo"?o:s,h=e.look==="neo"?c:s;if(e.width||e.height){const S=(e.height??0)/n;e.width=((e==null?void 0:e.width)??0)-2*S-h,e.height=(e.height??0)-u}const{shapeSvg:f,bbox:p}=await Wt(t,e,Gt(e)),m=(e!=null&&e.height?e==null?void 0:e.height:p.height)+u,g=m/n,x=(e!=null&&e.width?e==null?void 0:e.width:p.width)+2*g+h,v=[{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 b;const{cssStyles:w}=e;if(e.look==="handDrawn"){const _=Nt.svg(f),S=Ot(e,{}),E=cct(0,0,x,m,g),L=_.path(E,S);b=f.insert(()=>L,":first-child").attr("transform",`translate(${-x/2}, ${m/2})`),w&&b.attr("style",w)}else b=ma(f,x,m,v);return i&&b.attr("style",i),e.width=x,e.height=m,It(e,b),e.intersect=function(_){return Lt.polygon(e,v,_)},f}B(zz,"hexagon");async function jz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.label="",e.labelStyle=r;const{shapeSvg:n}=await Wt(t,e,Gt(e)),s=Math.max(30,(e==null?void 0:e.width)??0),o=Math.max(30,(e==null?void 0:e.height)??0),{cssStyles:c}=e,u=Nt.svg(n),h=Ot(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],p=pe(f),m=u.path(p,h),g=n.insert(()=>m,":first-child");return g.attr("class","basic label-container outer-path"),c&&e.look!=="handDrawn"&&g.selectChildren("path").attr("style",c),i&&e.look!=="handDrawn"&&g.selectChildren("path").attr("style",i),g.attr("transform",`translate(${-s/2}, ${-o/2})`),It(e,g),e.intersect=function(x){return St.info("Pill intersect",e,{points:f}),Lt.polygon(e,f,x)},n}B(jz,"hourglass");async function $z(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Dt(e);e.labelStyle=n;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),u=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,u??0);const{shapeSvg:h,bbox:f,label:p}=await Wt(t,e,"icon-shape default"),m=e.pos==="t",g=c,x=c,{nodeBorder:v}=r,{stylesMap:b}=tc(e),w=-x/2,_=-g/2,S=e.label?8:0,E=Nt.svg(h),L=Ot(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const A=E.rectangle(w,_,x,g,L),R=Math.max(x,f.width),j=g+f.height+S,Y=E.rectangle(-R/2,-j/2,R,j,{...L,fill:"transparent",stroke:"none"}),W=h.insert(()=>A,":first-child"),O=h.insert(()=>Y);if(e.icon){const z=h.append("g");z.html(`<g>${await bh(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const X=z.node().getBBox(),M=X.width,F=X.height,N=X.x,P=X.y;z.attr("transform",`translate(${-M/2-N},${m?f.height/2+S/2-F/2-P:-f.height/2-S/2-F/2-P})`),z.attr("style",`color: ${b.get("stroke")??v};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-j/2:j/2-f.height})`),W.attr("transform",`translate(0,${m?f.height/2+S/2:-f.height/2-S/2})`),It(e,O),e.intersect=function(z){if(St.info("iconSquare intersect",e,z),!e.label)return Lt.rect(e,z);const X=e.x??0,M=e.y??0,F=e.height??0;let N=[];return m?N=[{x:X-f.width/2,y:M-F/2},{x:X+f.width/2,y:M-F/2},{x:X+f.width/2,y:M-F/2+f.height+S},{x:X+x/2,y:M-F/2+f.height+S},{x:X+x/2,y:M+F/2},{x:X-x/2,y:M+F/2},{x:X-x/2,y:M-F/2+f.height+S},{x:X-f.width/2,y:M-F/2+f.height+S}]:N=[{x:X-x/2,y:M-F/2},{x:X+x/2,y:M-F/2},{x:X+x/2,y:M-F/2+g},{x:X+f.width/2,y:M-F/2+g},{x:X+f.width/2/2,y:M+F/2},{x:X-f.width/2,y:M+F/2},{x:X-f.width/2,y:M-F/2+g},{x:X-x/2,y:M-F/2+g}],Lt.polygon(e,N,z)},h}B($z,"icon");async function Pz(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Dt(e);e.labelStyle=n;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),u=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,u??0);const{shapeSvg:h,bbox:f,label:p}=await Wt(t,e,"icon-shape default"),m=20,g=e.label?8:0,x=e.pos==="t",{nodeBorder:v,mainBkg:b}=r,{stylesMap:w}=tc(e),_=Nt.svg(h),S=Ot(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const E=w.get("fill");S.stroke=E??b;const L=h.append("g");e.icon&&L.html(`<g>${await bh(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const A=L.node().getBBox(),R=A.width,j=A.height,Y=A.x,W=A.y,O=Math.max(R,j)*Math.SQRT2+m*2,z=_.circle(0,0,O,S),X=Math.max(O,f.width),M=O+f.height+g,F=_.rectangle(-X/2,-M/2,X,M,{...S,fill:"transparent",stroke:"none"}),N=h.insert(()=>z,":first-child"),P=h.insert(()=>F);return L.attr("transform",`translate(${-R/2-Y},${x?f.height/2+g/2-j/2-W:-f.height/2-g/2-j/2-W})`),L.attr("style",`color: ${w.get("stroke")??v};`),p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${x?-M/2:M/2-f.height})`),N.attr("transform",`translate(0,${x?f.height/2+g/2:-f.height/2-g/2})`),It(e,P),e.intersect=function($){return St.info("iconSquare intersect",e,$),Lt.rect(e,$)},h}B(Pz,"iconCircle");async function Hz(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Dt(e);e.labelStyle=n;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),u=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,u??0);const{shapeSvg:h,bbox:f,halfPadding:p,label:m}=await Wt(t,e,"icon-shape default"),g=e.pos==="t",x=c+p*2,v=c+p*2,{nodeBorder:b,mainBkg:w}=r,{stylesMap:_}=tc(e),S=-v/2,E=-x/2,L=e.label?8:0,A=Nt.svg(h),R=Ot(e,{});e.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");const j=_.get("fill");R.stroke=j??w;const Y=A.path(os(S,E,v,x,5),R),W=Math.max(v,f.width),O=x+f.height+L,z=A.rectangle(-W/2,-O/2,W,O,{...R,fill:"transparent",stroke:"none"}),X=h.insert(()=>Y,":first-child").attr("class","icon-shape2"),M=h.insert(()=>z);if(e.icon){const F=h.append("g");F.html(`<g>${await bh(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const N=F.node().getBBox(),P=N.width,$=N.height,q=N.x,I=N.y;F.attr("transform",`translate(${-P/2-q},${g?f.height/2+L/2-$/2-I:-f.height/2-L/2-$/2-I})`),F.attr("style",`color: ${_.get("stroke")??b};`)}return m.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-O/2:O/2-f.height})`),X.attr("transform",`translate(0,${g?f.height/2+L/2:-f.height/2-L/2})`),It(e,M),e.intersect=function(F){if(St.info("iconSquare intersect",e,F),!e.label)return Lt.rect(e,F);const N=e.x??0,P=e.y??0,$=e.height??0;let q=[];return g?q=[{x:N-f.width/2,y:P-$/2},{x:N+f.width/2,y:P-$/2},{x:N+f.width/2,y:P-$/2+f.height+L},{x:N+v/2,y:P-$/2+f.height+L},{x:N+v/2,y:P+$/2},{x:N-v/2,y:P+$/2},{x:N-v/2,y:P-$/2+f.height+L},{x:N-f.width/2,y:P-$/2+f.height+L}]:q=[{x:N-v/2,y:P-$/2},{x:N+v/2,y:P-$/2},{x:N+v/2,y:P-$/2+x},{x:N+f.width/2,y:P-$/2+x},{x:N+f.width/2/2,y:P+$/2},{x:N-f.width/2,y:P+$/2},{x:N-f.width/2,y:P-$/2+x},{x:N-v/2,y:P-$/2+x}],Lt.polygon(e,q,F)},h}B(Hz,"iconRounded");async function Uz(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Dt(e);e.labelStyle=n;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),u=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,u??0);const{shapeSvg:h,bbox:f,halfPadding:p,label:m}=await Wt(t,e,"icon-shape default"),g=e.pos==="t",x=c+p*2,v=c+p*2,{nodeBorder:b,mainBkg:w}=r,{stylesMap:_}=tc(e),S=-v/2,E=-x/2,L=e.label?8:0,A=Nt.svg(h),R=Ot(e,{});e.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");const j=_.get("fill");R.stroke=j??w;const Y=A.path(os(S,E,v,x,.1),R),W=Math.max(v,f.width),O=x+f.height+L,z=A.rectangle(-W/2,-O/2,W,O,{...R,fill:"transparent",stroke:"none"}),X=h.insert(()=>Y,":first-child"),M=h.insert(()=>z);if(e.icon){const F=h.append("g");F.html(`<g>${await bh(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const N=F.node().getBBox(),P=N.width,$=N.height,q=N.x,I=N.y;F.attr("transform",`translate(${-P/2-q},${g?f.height/2+L/2-$/2-I:-f.height/2-L/2-$/2-I})`),F.attr("style",`color: ${_.get("stroke")??b};`)}return m.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-O/2:O/2-f.height})`),X.attr("transform",`translate(0,${g?f.height/2+L/2:-f.height/2-L/2})`),It(e,M),e.intersect=function(F){if(St.info("iconSquare intersect",e,F),!e.label)return Lt.rect(e,F);const N=e.x??0,P=e.y??0,$=e.height??0;let q=[];return g?q=[{x:N-f.width/2,y:P-$/2},{x:N+f.width/2,y:P-$/2},{x:N+f.width/2,y:P-$/2+f.height+L},{x:N+v/2,y:P-$/2+f.height+L},{x:N+v/2,y:P+$/2},{x:N-v/2,y:P+$/2},{x:N-v/2,y:P-$/2+f.height+L},{x:N-f.width/2,y:P-$/2+f.height+L}]:q=[{x:N-v/2,y:P-$/2},{x:N+v/2,y:P-$/2},{x:N+v/2,y:P-$/2+x},{x:N+f.width/2,y:P-$/2+x},{x:N+f.width/2/2,y:P+$/2},{x:N-f.width/2,y:P+$/2},{x:N-f.width/2,y:P-$/2+x},{x:N-v/2,y:P-$/2+x}],Lt.polygon(e,q,F)},h}B(Uz,"iconSquare");async function Gz(t,e,{config:{flowchart:r}}){const i=new Image;i.src=(e==null?void 0:e.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/s;const{labelStyles:o}=Dt(e);e.labelStyle=o;const c=r==null?void 0:r.wrappingWidth;e.defaultWidth=r==null?void 0:r.wrappingWidth;const u=Math.max(e.label?c??0:0,(e==null?void 0:e.assetWidth)??n),h=e.constraint==="on"&&e!=null&&e.assetHeight?e.assetHeight*e.imageAspectRatio:u,f=e.constraint==="on"?h/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??s;e.width=Math.max(h,c??0);const{shapeSvg:p,bbox:m,label:g}=await Wt(t,e,"image-shape default"),x=e.pos==="t",v=-h/2,b=-f/2,w=e.label?8:0,_=Nt.svg(p),S=Ot(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const E=_.rectangle(v,b,h,f,S),L=Math.max(h,m.width),A=f+m.height+w,R=_.rectangle(-L/2,-A/2,L,A,{...S,fill:"none",stroke:"none"}),j=p.insert(()=>E,":first-child"),Y=p.insert(()=>R);if(e.img){const W=p.append("image");W.attr("href",e.img),W.attr("width",h),W.attr("height",f),W.attr("preserveAspectRatio","none"),W.attr("transform",`translate(${-h/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-w/2:f/2-m.height/2+w/2})`),j.attr("transform",`translate(0,${x?m.height/2+w/2:-m.height/2-w/2})`),It(e,Y),e.intersect=function(W){if(St.info("iconSquare intersect",e,W),!e.label)return Lt.rect(e,W);const O=e.x??0,z=e.y??0,X=e.height??0;let M=[];return x?M=[{x:O-m.width/2,y:z-X/2},{x:O+m.width/2,y:z-X/2},{x:O+m.width/2,y:z-X/2+m.height+w},{x:O+h/2,y:z-X/2+m.height+w},{x:O+h/2,y:z+X/2},{x:O-h/2,y:z+X/2},{x:O-h/2,y:z-X/2+m.height+w},{x:O-m.width/2,y:z-X/2+m.height+w}]:M=[{x:O-h/2,y:z-X/2},{x:O+h/2,y:z-X/2},{x:O+h/2,y:z-X/2+f},{x:O+m.width/2,y:z-X/2+f},{x:O+m.width/2/2,y:z+X/2},{x:O-m.width/2,y:z+X/2},{x:O-m.width/2,y:z-X/2+f},{x:O-h/2,y:z-X/2+f}],Lt.polygon(e,M,W)},p}B(Gz,"imageSquare");async function Yz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=n,o=e.look==="neo"?n*2:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=Math.max(u.width+(o??0)*2,(e==null?void 0:e.width)??0),f=Math.max(u.height+(s??0)*2,(e==null?void 0:e.height)??0),p=[{x:0,y:0},{x:h,y:0},{x:h+3*f/6,y:-f},{x:-3*f/6,y:-f}];let m;const{cssStyles:g}=e;if(e.look==="handDrawn"){const x=Nt.svg(c),v=Ot(e,{}),b=pe(p),w=x.path(b,v);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-h/2}, ${f/2})`),g&&m.attr("style",g)}else m=ma(c,h,f,p);return i&&m.attr("style",i),e.width=h,e.height=f,It(e,m),e.intersect=function(x){return Lt.polygon(e,p,x)},c}B(Yz,"inv_trapezoid");async function Wz(t,e){const{shapeSvg:r,bbox:i,label:n}=await Wt(t,e,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),It(e,s),e.intersect=function(u){return Lt.rect(e,u)},r}B(Wz,"labelRect");async function Vz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=n,o=e.look==="neo"?n*2:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=((e==null?void 0:e.height)??u.height)+s,f=((e==null?void 0:e.width)??u.width)+o,p=[{x:0,y:0},{x:f+3*h/6,y:0},{x:f,y:-h},{x:-(3*h)/6,y:-h}];let m;const{cssStyles:g}=e;if(e.look==="handDrawn"){const x=Nt.svg(c),v=Ot(e,{}),b=pe(p),w=x.path(b,v);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-f/2}, ${h/2})`),g&&m.attr("style",g)}else m=ma(c,f,h,p);return i&&m.attr("style",i),e.width=f,e.height=h,It(e,m),e.intersect=function(x){return Lt.polygon(e,p,x)},c}B(Vz,"lean_left");async function Xz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=n,o=e.look==="neo"?n*2:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=((e==null?void 0:e.height)??u.height)+s,f=((e==null?void 0:e.width)??u.width)+o,p=[{x:-3*h/6,y:0},{x:f,y:0},{x:f+3*h/6,y:-h},{x:0,y:-h}];let m;const{cssStyles:g}=e;if(e.look==="handDrawn"){const x=Nt.svg(c),v=Ot(e,{}),b=pe(p),w=x.path(b,v);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-f/2}, ${h/2})`),g&&m.attr("style",g)}else m=ma(c,f,h,p);return i&&m.attr("style",i),e.width=f,e.height=h,It(e,m),e.intersect=function(x){return Lt.polygon(e,p,x)},c}B(Xz,"lean_right");function Qz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.label="",e.labelStyle=r;const n=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=Math.max(35,(e==null?void 0:e.width)??0),c=Math.max(35,(e==null?void 0:e.height)??0),u=7,h=[{x:o,y:0},{x:0,y:c+u/2},{x:o-2*u,y:c+u/2},{x:0,y:2*c},{x:o,y:c-u/2},{x:2*u,y:c-u/2}],f=Nt.svg(n),p=Ot(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=pe(h),g=f.path(m,p),x=n.insert(()=>g,":first-child");return x.attr("class","outer-path"),s&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",s),i&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${o/2},${-c})`),It(e,x),e.intersect=function(v){return St.info("lightningBolt intersect",e,v),Lt.polygon(e,h,v)},n}B(Qz,"lightningBolt");var uct=B((t,e,r,i,n,s,o)=>[`M${t},${e+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+s+o}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),hct=B((t,e,r,i,n,s,o)=>[`M${t},${e+s}`,`M${t+r},${e+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+s+o}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),fct=B((t,e,r,i,n,s)=>[`M${t-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),G4=10,Y4=10;async function Zz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?24:n;if(e.width||e.height){const w=e.width??0;e.width=(e.width??0)-s,e.width<Y4&&(e.width=Y4);const S=w/2/(2.5+w/50);e.height=(e.height??0)-o-S*3,e.height<G4&&(e.height=G4)}const{shapeSvg:c,bbox:u,label:h}=await Wt(t,e,Gt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:u.width)+s*2,p=f/2,m=p/(2.5+f/50),g=(e!=null&&e.height?e==null?void 0:e.height:u.height)+m+o*2,x=g*.1;let v;const{cssStyles:b}=e;if(e.look==="handDrawn"){const w=Nt.svg(c),_=hct(0,0,f,g,p,m,x),S=fct(0,m,f,g,p,m),E=Ot(e,{}),L=w.path(_,E),A=w.path(S,E);c.insert(()=>A,":first-child").attr("class","line"),v=c.insert(()=>L,":first-child"),v.attr("class","basic label-container"),b&&v.attr("style",b)}else{const w=uct(0,0,f,g,p,m,x);v=c.insert("path",":first-child").attr("d",w).attr("class","basic label-container outer-path").attr("style",Ar(b)).attr("style",i)}return v.attr("label-offset-y",m),v.attr("transform",`translate(${-f/2}, ${-(g/2+m)})`),It(e,v),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+m-(u.y-(u.top??0))})`),e.intersect=function(w){const _=Lt.rect(e,w),S=_.x-(e.x??0);if(p!=0&&(Math.abs(S)<(e.width??0)/2||Math.abs(S)==(e.width??0)/2&&Math.abs(_.y-(e.y??0))>(e.height??0)/2-m)){let E=m*m*(1-S*S/(p*p));E>0&&(E=Math.sqrt(E)),E=m-E,w.y-(e.y??0)>0&&(E=-E),_.y+=E}return _},c}B(Zz,"linedCylinder");async function Kz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n;if(e.width||e.height){const E=e.width;e.width=(E??0)*10/11-s*2,e.width<10&&(e.width=10),e.height=((e==null?void 0:e.height)??0)-o*2,e.height<10&&(e.height=10)}const{shapeSvg:c,bbox:u,label:h}=await Wt(t,e,Gt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:u.width)+(s??0)*2,p=(e!=null&&e.height?e==null?void 0:e.height:u.height)+(o??0)*2,m=e.look==="neo"?p/4:p/8,g=p+m,{cssStyles:x}=e,v=Nt.svg(c),b=Ot(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:-f/2-f/2*.1,y:-g/2},{x:-f/2-f/2*.1,y:g/2},...is(-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}],_=v.polygon(w.map(E=>[E.x,E.y]),b),S=c.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),x&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",x),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-m/2})`),h.attr("transform",`translate(${-f/2+(e.padding??0)+f/2*.1/2-(u.x-(u.left??0))},${-p/2+(e.padding??0)-m/2-(u.y-(u.top??0))})`),It(e,S),e.intersect=function(E){return Lt.polygon(e,w,E)},c}B(Kz,"linedWaveEdgedRect");async function Jz(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n,c=e.look==="neo"?10:5;(e.width||e.height)&&(e.width=Math.max(((e==null?void 0:e.width)??0)-s*2-2*c,10),e.height=Math.max(((e==null?void 0:e.height)??0)-o*2-2*c,10));const{shapeSvg:u,bbox:h,label:f}=await Wt(t,e,Gt(e)),p=(e!=null&&e.width?e==null?void 0:e.width:h.width)+s*2+2*c,m=(e!=null&&e.height?e==null?void 0:e.height:h.height)+o*2+2*c,g=p-2*c,x=m-2*c,v=-g/2,b=-x/2,{cssStyles:w}=e,_=Nt.svg(u),S=Ot(e,{}),E=[{x:v-c,y:b+c},{x:v-c,y:b+x+c},{x:v+g-c,y:b+x+c},{x:v+g-c,y:b+x},{x:v+g,y:b+x},{x:v+g,y:b+x-c},{x:v+g+c,y:b+x-c},{x:v+g+c,y:b-c},{x:v+c,y:b-c},{x:v+c,y:b},{x:v,y:b},{x:v,y:b+c}],L=[{x:v,y:b+c},{x:v+g-c,y:b+c},{x:v+g-c,y:b+x},{x:v+g,y:b+x},{x:v+g,y:b},{x:v,y:b}];e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=pe(E);let R=_.path(A,S);const j=pe(L);let Y=_.path(j,S);e.look!=="handDrawn"&&(R=N2(R),Y=N2(Y));const W=u.insert("g",":first-child");return W.insert(()=>R),W.insert(()=>Y),W.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",w),i&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",i),f.attr("transform",`translate(${-(h.width/2)-c-(h.x-(h.left??0))}, ${-(h.height/2)+c-(h.y-(h.top??0))})`),It(e,W),e.intersect=function(O){return Lt.polygon(e,E,O)},u}B(Jz,"multiRect");async function t8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await Wt(t,e,Gt(e)),c=e.padding??0,u=e.look==="neo"?16:c,h=e.look==="neo"?12:c;let f=!0;(e.width||e.height)&&(f=!1,e.width=((e==null?void 0:e.width)??0)-u*2,e.height=((e==null?void 0:e.height)??0)-h*3);const p=Math.max(s.width,(e==null?void 0:e.width)??0)+u*2,m=Math.max(s.height,(e==null?void 0:e.height)??0)+h*3,g=e.look==="neo"?m/4:m/8,x=m+(f?g/2:-g/2),v=-p/2,b=-x/2,w=10,{cssStyles:_}=e,S=is(v-w,b+x+w,v+p-w,b+x+w,g,.8),E=S==null?void 0:S[S.length-1],L=[{x:v-w,y:b+w},{x:v-w,y:b+x+w},...S,{x:v+p-w,y:E.y-w},{x:v+p,y:E.y-w},{x:v+p,y:E.y-2*w},{x:v+p+w,y:E.y-2*w},{x:v+p+w,y:b-w},{x:v+w,y:b-w},{x:v+w,y:b},{x:v,y:b},{x:v,y:b+w}],A=[{x:v,y:b+w},{x:v+p-w,y:b+w},{x:v+p-w,y:E.y-w},{x:v+p,y:E.y-w},{x:v+p,y:b},{x:v,y:b}],R=Nt.svg(n),j=Ot(e,{});e.look!=="handDrawn"&&(j.roughness=0,j.fillStyle="solid");const Y=pe(L),W=R.path(Y,j),O=pe(A),z=R.path(O,j),X=n.insert(()=>W,":first-child");return X.insert(()=>z),X.attr("class","basic label-container outer-path"),_&&e.look!=="handDrawn"&&X.selectAll("path").attr("style",_),i&&e.look!=="handDrawn"&&X.selectAll("path").attr("style",i),X.attr("transform",`translate(0,${-g/2})`),o.attr("transform",`translate(${-(s.width/2)-w-(s.x-(s.left??0))}, ${-(s.height/2)+w-g/2-(s.y-(s.top??0))})`),It(e,X),e.intersect=function(M){return Lt.polygon(e,L,M)},n}B(t8,"multiWaveEdgedRectangle");async function e8(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i,e.useHtmlLabels||Kr(Ke())||(e.centerLabel=!0);const{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=Math.max(c.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(c.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),p=-h/2,m=-f/2,{cssStyles:g}=e,x=Nt.svg(o),v=Ot(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=x.rectangle(p,m,h,f,v),w=o.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),u.attr("class","label noteLabel"),g&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&w.selectAll("path").attr("style",n),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),It(e,w),e.intersect=function(_){return Lt.rect(e,_)},o}B(e8,"note");var dct=B((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function r8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s}=await Wt(t,e,Gt(e)),o=s.width+(e.padding??0),c=s.height+(e.padding??0),u=o+c,h=.5,f=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];let p;const{cssStyles:m}=e;if(e.look==="handDrawn"){const g=Nt.svg(n),x=Ot(e,{}),v=dct(0,0,u),b=g.path(v,x);p=n.insert(()=>b,":first-child").attr("transform",`translate(${-u/2+h}, ${u/2})`),m&&p.attr("style",m)}else p=ma(n,u,u,f),p.attr("transform",`translate(${-u/2+h}, ${u/2})`);return i&&p.attr("style",i),It(e,p),e.calcIntersect=function(g,x){const v=g.width,b=[{x:v/2,y:0},{x:v,y:-v/2},{x:v/2,y:-v},{x:0,y:-v/2}],w=Lt.polygon(g,b,x);return{x:w.x-.5,y:w.y-.5}},e.intersect=function(g){return this.calcIntersect(e,g)},n}B(r8,"question");async function i8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?21:n??0,o=e.look==="neo"?12:n??0,{shapeSvg:c,bbox:u,label:h}=await Wt(t,e,Gt(e)),f=((e==null?void 0:e.width)??u.width)+(e.look==="neo"?s*2:s),p=((e==null?void 0:e.height)??u.height)+(e.look==="neo"?o*2:o),m=-f/2,g=-p/2,x=g/2,v=[{x:m+x,y:g},{x:m,y:0},{x:m+x,y:-g},{x:-m,y:-g},{x:-m,y:g}],{cssStyles:b}=e,w=Nt.svg(c),_=Ot(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=pe(v),E=w.path(S,_),L=c.insert(()=>E,":first-child");return L.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&L.selectAll("path").attr("style",b),i&&e.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${-x/2},0)`),h.attr("transform",`translate(${-x/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),It(e,L),e.intersect=function(A){return Lt.polygon(e,v,A)},c}B(i8,"rect_left_inv_arrow");async function n8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;let n;e.cssClasses?n="node "+e.cssClasses:n="node default";const s=t.insert("g").attr("class",n).attr("id",e.domId||e.id),o=s.insert("g"),c=s.insert("g").attr("class","label").attr("style",i),u=e.description,h=e.label,f=await Xa(c,h,e.labelStyle,!0,!0);let p={width:0,height:0};if(Kr(ve())){const j=f.children[0],Y=Ut(f);p=j.getBoundingClientRect(),Y.attr("width",p.width),Y.attr("height",p.height)}St.info("Text 2",u);const m=u||[],g=f.getBBox(),x=await Xa(c,Array.isArray(m)?m.join("<br/>"):m,e.labelStyle,!0,!0),v=x.children[0],b=Ut(x);p=v.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height);const w=(e.padding||0)/2;Ut(x).attr("transform","translate( "+(p.width>g.width?0:(g.width-p.width)/2)+", "+(g.height+w+5)+")"),Ut(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-w+3)+")");const _=p.width+(e.padding||0),S=p.height+(e.padding||0),E=-p.width/2-w,L=-p.height/2-w;let A,R;if(e.look==="handDrawn"){const j=Nt.svg(s),Y=Ot(e,{}),W=j.path(os(E,L,_,S,e.rx||0),Y),O=j.line(-p.width/2-w,-p.height/2-w+g.height+w,p.width/2+w,-p.height/2-w+g.height+w,Y);R=s.insert(()=>(St.debug("Rough node insert CXC",W),O),":first-child"),A=s.insert(()=>(St.debug("Rough node insert CXC",W),W),":first-child")}else A=o.insert("rect",":first-child"),R=o.insert("line"),A.attr("class","outer title-state").attr("style",i).attr("x",-p.width/2-w).attr("y",-p.height/2-w).attr("width",p.width+(e.padding||0)).attr("height",p.height+(e.padding||0)),R.attr("class","divider").attr("x1",-p.width/2-w).attr("x2",p.width/2+w).attr("y1",-p.height/2-w+g.height+w).attr("y2",-p.height/2-w+g.height+w);return It(e,A),e.intersect=function(j){return Lt.rect(e,j)},s}B(n8,"rectWithTitle");async function a8(t,e,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,n={rx:i,ry:i,labelPaddingX:((e==null?void 0:e.padding)??0)*1,labelPaddingY:((e==null?void 0:e.padding)??0)*1};return rc(t,e,n)}B(a8,"roundedRect");var Fs=8;async function s8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.look==="neo"?16:e.padding??0,s=e.look==="neo"?12:e.padding??0,{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=((e==null?void 0:e.width)??c.width)+n*2+(e.look==="neo"?Fs:Fs*2),f=((e==null?void 0:e.height)??c.height)+s*2,p=h-Fs,m=f,g=Fs-h/2,x=-f/2,{cssStyles:v}=e,b=Nt.svg(o),w=Ot(e,{});e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=[{x:g,y:x},{x:g+p,y:x},{x:g+p,y:x+m},{x:g-Fs,y:x+m},{x:g-Fs,y:x},{x:g,y:x},{x:g,y:x+m}],S=b.polygon(_.map(L=>[L.x,L.y]),w),E=o.insert(()=>S,":first-child");return E.attr("class","basic label-container outer-path").attr("style",Ar(v)),i&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",i),v&&e.look!=="handDrawn"&&E.selectAll("path").attr("style",i),u.attr("transform",`translate(${Fs/2-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),It(e,E),e.intersect=function(L){return Lt.rect(e,L)},o}B(s8,"shadedProcess");async function o8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n;(e.width||e.height)&&(e.width=Math.max(((e==null?void 0:e.width)??0)-s*2,10),e.height=Math.max(((e==null?void 0:e.height)??0)/1.5-o*2,10));const{shapeSvg:c,bbox:u,label:h}=await Wt(t,e,Gt(e)),f=(e!=null&&e.width?e==null?void 0:e.width:u.width)+s*2,p=((e!=null&&e.height?e==null?void 0:e.height:u.height)+o*2)*1.5,m=f,g=p/1.5,x=-m/2,v=-g/2,{cssStyles:b}=e,w=Nt.svg(c),_=Ot(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=[{x,y:v},{x,y:v+g},{x:x+m,y:v+g},{x:x+m,y:v-g/2}],E=pe(S),L=w.path(E,_),A=c.insert(()=>L,":first-child");return A.attr("class","basic label-container outer-path"),b&&e.look!=="handDrawn"&&A.selectChildren("path").attr("style",b),i&&e.look!=="handDrawn"&&A.selectChildren("path").attr("style",i),A.attr("transform",`translate(0, ${g/4})`),h.attr("transform",`translate(${-m/2+(e.padding??0)-(u.x-(u.left??0))}, ${-g/4+(e.padding??0)-(u.y-(u.top??0))})`),It(e,A),e.intersect=function(R){return Lt.polygon(e,S,R)},c}B(o8,"slopedRect");async function l8(t,e){const r=e.padding??0,i=e.look==="neo"?16:r*2,n=e.look==="neo"?12:r,s={rx:0,ry:0,labelPaddingX:e.labelPaddingX??i,labelPaddingY:n};return rc(t,e,s)}B(l8,"squareRect");async function c8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?20:n,o=e.look==="neo"?12:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=u.height+(e.look==="neo"?o*2:o),f=u.width+h/4+(e.look==="neo"?s*2:s),p=h/2,{cssStyles:m}=e,g=Nt.svg(c),x=Ot(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const v=[{x:-f/2+p,y:-h/2},{x:f/2-p,y:-h/2},...Zu(-f/2+p,0,p,50,90,270),{x:f/2-p,y:h/2},...Zu(f/2-p,0,p,50,270,450)],b=pe(v),w=g.path(b,x),_=c.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),m&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",m),i&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),It(e,_),e.intersect=function(S){return Lt.polygon(e,v,S)},c}B(c8,"stadium");async function u8(t,e){const r={rx:e.look==="neo"?3:5,ry:e.look==="neo"?3:5};return rc(t,e,r)}B(u8,"state");function h8(t,e,{config:{themeVariables:r}}){var _,S;const{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i;const{cssStyles:s}=e,{lineColor:o,stateBorder:c,nodeBorder:u,nodeShadow:h}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const f=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),p=Nt.svg(f),m=Ot(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=p.circle(0,0,e.width,{...m,stroke:o,strokeWidth:2}),x=c??u,v=(e.width??0)*5/14,b=p.circle(0,0,v,{...m,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),w=f.insert(()=>g,":first-child");if(w.insert(()=>b),e.look!=="handDrawn"&&w.attr("class","outer-path"),s&&w.selectAll("path").attr("style",s),n&&w.selectAll("path").attr("style",n),e.width<25&&h&&e.look!=="handDrawn"){const E=((S=(_=t.node())==null?void 0:_.ownerSVGElement)==null?void 0:S.id)??"",L=E?`${E}-drop-shadow-small`:"drop-shadow-small";w.attr("style",`filter:url(#${L})`)}return It(e,w),e.intersect=function(E){return Lt.circle(e,(e.width??0)/2,E)},f}B(h8,"stateEnd");function f8(t,e,{config:{themeVariables:r}}){var c,u;const{lineColor:i,nodeShadow:n}=r;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);const s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let o;if(e.look==="handDrawn"){const f=Nt.svg(s).circle(0,0,e.width,wot(i));o=s.insert(()=>f),o.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else o=s.insert("circle",":first-child"),o.attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&e.look!=="handDrawn"){const h=((u=(c=t.node())==null?void 0:c.ownerSVGElement)==null?void 0:u.id)??"",f=h?`${h}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${f})`)}return It(e,o),e.intersect=function(h){return Lt.circle(e,(e.width??7)/2,h)},s}B(f8,"stateStart");var tl=8;async function d8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=(e==null?void 0:e.padding)??8,s=e.look==="neo"?28:n,o=e.look==="neo"?12:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=((e==null?void 0:e.width)??u.width)+2*tl+s,f=((e==null?void 0:e.height)??u.height)+o,p=h-2*tl,m=f,g=-h/2,x=-f/2,v=[{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(e.look==="handDrawn"){const b=Nt.svg(c),w=Ot(e,{}),_=b.rectangle(g,x,p+16,m,w),S=b.line(g+tl,x,g+tl,x+m,w),E=b.line(g+tl+p,x,g+tl+p,x+m,w);c.insert(()=>S,":first-child"),c.insert(()=>E,":first-child");const L=c.insert(()=>_,":first-child"),{cssStyles:A}=e;L.attr("class","basic label-container").attr("style",Ar(A)),It(e,L)}else{const b=ma(c,p,m,v);i&&b.attr("style",i),It(e,b)}return e.intersect=function(b){return Lt.polygon(e,v,b)},c}B(d8,"subroutine");var bC=.2;async function p8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n;(e.width||e.height)&&(e.height=Math.max(((e==null?void 0:e.height)??0)-o*2,10),e.width=Math.max(((e==null?void 0:e.width)??0)-s*2-bC*(e.height+o*2),10));const{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=(e!=null&&e.height?e==null?void 0:e.height:u.height)+o*2,f=bC*h,p=bC*h,g=(e!=null&&e.width?e==null?void 0:e.width:u.width)+s*2+f-f,x=h,v=-g/2,b=-x/2,{cssStyles:w}=e,_=Nt.svg(c),S=Ot(e,{}),E=[{x:v-f/2,y:b},{x:v+g+f/2,y:b},{x:v+g+f/2,y:b+x},{x:v-f/2,y:b+x}],L=[{x:v+g-f/2,y:b+x},{x:v+g+f/2,y:b+x},{x:v+g+f/2,y:b+x-p}];e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const A=pe(E),R=_.path(A,S),j=pe(L),Y=_.path(j,{...S,fillStyle:"solid"}),W=c.insert(()=>Y,":first-child");return W.insert(()=>R,":first-child"),W.attr("class","basic label-container outer-path"),w&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",w),i&&e.look!=="handDrawn"&&W.selectAll("path").attr("style",i),It(e,W),e.intersect=function(O){return Lt.polygon(e,E,O)},c}B(p8,"taggedRect");async function g8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await Wt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),u=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=u/8,f=.2*c,p=.2*u,m=u+h,{cssStyles:g}=e,x=Nt.svg(n),v=Ot(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:-c/2-c/2*.1,y:m/2},...is(-c/2-c/2*.1,m/2,c/2+c/2*.1,m/2,h,.8),{x:c/2+c/2*.1,y:-m/2},{x:-c/2-c/2*.1,y:-m/2}],w=-c/2+c/2*.1,_=-m/2-p*.4,S=[{x:w+c-f,y:(_+u)*1.3},{x:w+c,y:_+u-p},{x:w+c,y:(_+u)*.9},...is(w+c,(_+u)*1.25,w+c-f,(_+u)*1.3,-u*.02,.5)],E=pe(b),L=x.path(E,v),A=pe(S),R=x.path(A,{...v,fillStyle:"solid"}),j=n.insert(()=>R,":first-child");return j.insert(()=>L,":first-child"),j.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&j.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&j.selectAll("path").attr("style",i),j.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-c/2+(e.padding??0)-(s.x-(s.left??0))},${-u/2+(e.padding??0)-h/2-(s.y-(s.top??0))})`),It(e,j),e.intersect=function(Y){return Lt.polygon(e,b,Y)},n}B(g8,"taggedWaveEdgedRectangle");async function m8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s}=await Wt(t,e,Gt(e)),o=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)||0),c=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)||0),u=-o/2,h=-c/2,f=n.insert("rect",":first-child");return f.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",o).attr("height",c),It(e,f),e.intersect=function(p){return Lt.rect(e,p)},n}B(m8,"text");var pct=B((t,e,r,i,n,s)=>`M${t},${e}
524
+ a${n},${s} 0,0,1 0,${-i}
525
+ l${r},0
526
+ a${n},${s} 0,0,1 0,${i}
527
+ M${r},${-i}
528
+ a${n},${s} 0,0,0 0,${i}
529
+ l${-r},0`,"createCylinderPathD"),gct=B((t,e,r,i,n,s)=>[`M${t},${e}`,`M${t+r},${e}`,`a${n},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),mct=B((t,e,r,i,n,s)=>[`M${t+r/2},${-i/2}`,`a${n},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),W4=5,V4=10;async function y8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?12:n/2;if(e.width||e.height){const v=e.height??0;e.height=(e.height??0)-s,e.height<W4&&(e.height=W4);const w=v/2/(2.5+v/50);e.width=(e.width??0)-s-w*3,e.width<V4&&(e.width=V4)}const{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=(e.height?e.height:c.height)+s,f=h/2,p=f/(2.5+h/50),m=(e.width?e.width:c.width)+p+s,{cssStyles:g}=e;let x;if(e.look==="handDrawn"){const v=Nt.svg(o),b=gct(0,0,m,h,p,f),w=mct(0,0,m,h,p,f),_=v.path(b,Ot(e,{})),S=v.path(w,Ot(e,{fill:"none"}));x=o.insert(()=>S,":first-child"),x=o.insert(()=>_,":first-child"),x.attr("class","basic label-container"),g&&x.attr("style",g)}else{const v=pct(0,0,m,h,p,f);x=o.insert("path",":first-child").attr("d",v).attr("class","basic label-container").attr("style",Ar(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}, ${h/2} )`),u.attr("transform",`translate(${-(c.width/2)-p-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),It(e,x),e.intersect=function(v){const b=Lt.rect(e,v),w=b.y-(e.y??0);if(f!=0&&(Math.abs(w)<(e.height??0)/2||Math.abs(w)==(e.height??0)/2&&Math.abs(b.x-(e.x??0))>(e.width??0)/2-p)){let _=p*p*(1-w*w/(f*f));_!=0&&(_=Math.sqrt(Math.abs(_))),_=p-_,v.x-(e.x??0)>0&&(_=-_),b.x+=_}return b},o}B(y8,"tiltedCylinder");async function x8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=(e.look==="neo",n),o=e.look==="neo"?n*2:n,{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=((e==null?void 0:e.height)??u.height)+s,f=((e==null?void 0:e.width)??u.width)+o,p=[{x:-3*h/6,y:0},{x:f+3*h/6,y:0},{x:f,y:-h},{x:0,y:-h}];let m;const{cssStyles:g}=e;if(e.look==="handDrawn"){const x=Nt.svg(c),v=Ot(e,{}),b=pe(p),w=x.path(b,v);m=c.insert(()=>w,":first-child").attr("transform",`translate(${-f/2}, ${h/2})`),g&&m.attr("style",g)}else m=ma(c,f,h,p);return i&&m.attr("style",i),e.width=f,e.height=h,It(e,m),e.intersect=function(x){return Lt.polygon(e,p,x)},c}B(x8,"trapezoid");async function b8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n,c=15,u=5;(e.width||e.height)&&(e.height=(e.height??0)-o*2,e.height<u&&(e.height=u),e.width=(e.width??0)-s*2,e.width<c&&(e.width=c));const{shapeSvg:h,bbox:f}=await Wt(t,e,Gt(e)),p=(e!=null&&e.width?e==null?void 0:e.width:f.width)+s*2,m=(e!=null&&e.height?e==null?void 0:e.height:f.height)+o*2,{cssStyles:g}=e,x=Nt.svg(h),v=Ot(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:-p/2*.8,y:-m/2},{x:p/2*.8,y:-m/2},{x:p/2,y:-m/2*.6},{x:p/2,y:m/2},{x:-p/2,y:m/2},{x:-p/2,y:-m/2*.6}],w=pe(b),_=x.path(w,v),S=h.insert(()=>_,":first-child");return S.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),It(e,S),e.intersect=function(E){return Lt.polygon(e,b,E)},h}B(b8,"trapezoidalPentagon");var X4=10,Q4=10;async function v8(t,e){var E;const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?n*2:n;(e.width||e.height)&&(e.width=(((e==null?void 0:e.width)??0)-s)/2,e.width<Q4&&(e.width=Q4),e.height=(e==null?void 0:e.height)??0,e.height<X4&&(e.height=X4));const{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=pa((E=ve().flowchart)==null?void 0:E.htmlLabels),f=(e!=null&&e.width?e==null?void 0:e.width:c.width)+s,p=e!=null&&e.height?e==null?void 0:e.height:f+c.height,m=p,g=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-p}],{cssStyles:x}=e,v=Nt.svg(o),b=Ot(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=pe(g),_=v.path(w,b),S=o.insert(()=>_,":first-child").attr("transform",`translate(${-p/2}, ${p/2})`).attr("class","outer-path");return x&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",x),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),e.width=f,e.height=p,It(e,S),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${p/2-(c.height+(e.padding??0)/(h?2:1)-(c.y-(c.top??0)))})`),e.intersect=function(L){return St.info("Triangle intersect",e,g,L),Lt.polygon(e,g,L)},o}B(v8,"triangle");async function C8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?12:n;let c=!0;(e.width||e.height)&&(c=!1,e.width=((e==null?void 0:e.width)??0)-s*2,e.width<10&&(e.width=10),e.height=((e==null?void 0:e.height)??0)-o*2,e.height<10&&(e.height=10));const{shapeSvg:u,bbox:h,label:f}=await Wt(t,e,Gt(e)),p=(e!=null&&e.width?e==null?void 0:e.width:h.width)+(s??0)*2,m=(e!=null&&e.height?e==null?void 0:e.height:h.height)+(o??0)*2,g=e.look==="neo"?m/4:m/8,x=m+(c?g:-g),{cssStyles:v}=e,w=14-p,_=w>0?w/2:0,S=Nt.svg(u),E=Ot(e,{});e.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const L=[{x:-p/2-_,y:x/2},...is(-p/2-_,x/2,p/2+_,x/2,g,.8),{x:p/2+_,y:-x/2},{x:-p/2-_,y:-x/2}],A=pe(L),R=S.path(A,E),j=u.insert(()=>R,":first-child");return j.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&j.selectAll("path").attr("style",v),i&&e.look!=="handDrawn"&&j.selectAll("path").attr("style",i),j.attr("transform",`translate(0,${-g/2})`),f.attr("transform",`translate(${-p/2+(e.padding??0)-(h.x-(h.left??0))},${-m/2+(e.padding??0)-g-(h.y-(h.top??0))})`),It(e,j),e.intersect=function(Y){return Lt.polygon(e,L,Y)},u}B(C8,"waveEdgedRectangle");async function w8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.padding??0,s=e.look==="neo"?16:n,o=e.look==="neo"?20:n;if(e.width||e.height){e.width=(e==null?void 0:e.width)??0,e.width<20&&(e.width=20),e.height=(e==null?void 0:e.height)??0,e.height<10&&(e.height=10);const E=Math.min(e.height*.2,e.height/4);e.height=Math.ceil(e.height-o-E*(20/9)),e.width=e.width-s*2}const{shapeSvg:c,bbox:u}=await Wt(t,e,Gt(e)),h=(e!=null&&e.width?e==null?void 0:e.width:u.width)+s*2,f=(e!=null&&e.height?e==null?void 0:e.height:u.height)+o,p=f/8,m=f+p*2,{cssStyles:g}=e,x=Nt.svg(c),v=Ot(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const b=[{x:-h/2,y:m/2},...is(-h/2,m/2,h/2,m/2,p,1),{x:h/2,y:-m/2},...is(h/2,-m/2,-h/2,-m/2,p,-1)],w=pe(b),_=x.path(w,v),S=c.insert(()=>_,":first-child");return S.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),It(e,S),e.intersect=function(E){return Lt.polygon(e,b,E)},c}B(w8,"waveRectangle");var rr=10;async function S8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e.look==="neo"?16:e.padding??0,s=e.look==="neo"?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max(((e==null?void 0:e.width)??0)-n*2-rr,10),e.height=Math.max(((e==null?void 0:e.height)??0)-s*2-rr,10));const{shapeSvg:o,bbox:c,label:u}=await Wt(t,e,Gt(e)),h=(e!=null&&e.width?e==null?void 0:e.width:c.width)+n*2+rr,f=(e!=null&&e.height?e==null?void 0:e.height:c.height)+s*2+rr,p=h-rr,m=f-rr,g=-p/2,x=-m/2,{cssStyles:v}=e,b=Nt.svg(o),w=Ot(e,{}),_=[{x:g-rr,y:x-rr},{x:g-rr,y:x+m},{x:g+p,y:x+m},{x:g+p,y:x-rr}],S=`M${g-rr},${x-rr} L${g+p},${x-rr} L${g+p},${x+m} L${g-rr},${x+m} L${g-rr},${x-rr}
530
+ M${g-rr},${x} L${g+p},${x}
531
+ M${g},${x-rr} L${g},${x+m}`;e.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const E=b.path(S,w),L=o.insert(()=>E,":first-child");return L.attr("transform",`translate(${rr/2}, ${rr/2})`),L.attr("class","basic label-container outer-path"),v&&e.look!=="handDrawn"&&L.selectAll("path").attr("style",v),i&&e.look!=="handDrawn"&&L.selectAll("path").attr("style",i),u.attr("transform",`translate(${-(c.width/2)+rr/2-(c.x-(c.left??0))}, ${-(c.height/2)+rr/2-(c.y-(c.top??0))})`),It(e,L),e.intersect=function(A){return Lt.polygon(e,_,A)},o}B(S8,"windowPane");var Z4=new Set(["redux-color","redux-dark-color"]),yct=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function AS(t,e){var tt,K,nt,ct;const r=e;r.alias&&(e.label=r.alias);const{theme:i,themeVariables:n}=Ke(),{rowEven:s,rowOdd:o,nodeBorder:c,borderColorArray:u}=n;if(e.look==="handDrawn"){const{themeVariables:it}=Ke(),{background:dt}=it,Ct={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${dt}`]};await AS(t,Ct)}const h=Ke();e.useHtmlLabels=h.htmlLabels;let f=((tt=h.er)==null?void 0:tt.diagramPadding)??10,p=((K=h.er)==null?void 0:K.entityPadding)??6;const{cssStyles:m}=e,{labelStyles:g,nodeStyles:x}=Dt(e);if(r.attributes.length===0&&e.label){const it={rx:0,ry:0,labelPaddingX:f,labelPaddingY:f*1.5};ua(e.label,h)+it.labelPaddingX*2<h.er.minEntityWidth&&(e.width=h.er.minEntityWidth);const dt=await rc(t,e,it);if(i!=null&&Z4.has(i)){const Ct=r.colorIndex??0;dt.attr("data-color-id",`color-${Ct%u.length}`)}if(!pa(h.htmlLabels)){const Ct=dt.select("text"),kt=(nt=Ct.node())==null?void 0:nt.getBBox();Ct.attr("transform",`translate(${-kt.width/2}, 0)`)}return dt}h.htmlLabels||(f*=1.25,p*=1.25);let v=Gt(e);v||(v="node default");const b=t.insert("g").attr("class",v).attr("id",e.domId||e.id),w=await nl(b,e.label??"",h,0,0,["name"],g);w.height+=p;let _=0;const S=[],E=[];let L=0,A=0,R=0,j=0,Y=!0,W=!0;for(const it of r.attributes){const dt=await nl(b,it.type,h,0,_,["attribute-type"],g);L=Math.max(L,dt.width+f);const Ct=await nl(b,it.name,h,0,_,["attribute-name"],g);A=Math.max(A,Ct.width+f);const kt=await nl(b,it.keys.join(),h,0,_,["attribute-keys"],g);R=Math.max(R,kt.width+f);const At=await nl(b,it.comment,h,0,_,["attribute-comment"],g);j=Math.max(j,At.width+f);const Et=Math.max(dt.height,Ct.height,kt.height,At.height)+p;E.push({yOffset:_,rowHeight:Et}),_+=Et}let O=4;R<=f&&(Y=!1,R=0,O--),j<=f&&(W=!1,j=0,O--);const z=b.node().getBBox();if(w.width+f*2-(L+A+R+j)>0){const it=w.width+f*2-(L+A+R+j);L+=it/O,A+=it/O,R>0&&(R+=it/O),j>0&&(j+=it/O)}const X=L+A+R+j,M=Nt.svg(b),F=Ot(e,{});e.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");let N=0;E.length>0&&(N=E.reduce((it,dt)=>it+((dt==null?void 0:dt.rowHeight)??0),0));const P=Math.max(z.width+f*2,(e==null?void 0:e.width)||0,X),$=Math.max((N??0)+w.height,(e==null?void 0:e.height)||0),q=-P/2,I=-$/2;if(b.selectAll("g:not(:first-child)").each((it,dt,Ct)=>{const kt=Ut(Ct[dt]),At=kt.attr("transform");let Et=0,Ht=0;if(At){const we=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(At);we&&(Et=parseFloat(we[1]),Ht=parseFloat(we[2]),kt.attr("class").includes("attribute-name")?Et+=L:kt.attr("class").includes("attribute-keys")?Et+=L+A:kt.attr("class").includes("attribute-comment")&&(Et+=L+A+R))}kt.attr("transform",`translate(${q+f/2+Et}, ${Ht+I+w.height+p/2})`)}),b.select(".name").attr("transform","translate("+-w.width/2+", "+(I+p/2)+")"),i!=null&&Z4.has(i)){const it=r.colorIndex??0;b.attr("data-color-id",`color-${it%u.length}`)}const G=M.rectangle(q,I,P,$,F),Z=b.insert(()=>G,":first-child").attr("class","outer-path").attr("style",m.join(""));S.push(0);for(const[it,dt]of E.entries()){const kt=(it+1)%2===0&&dt.yOffset!==0,At=M.rectangle(q,w.height+I+(dt==null?void 0:dt.yOffset),P,dt==null?void 0:dt.rowHeight,{...F,fill:kt?s:o,stroke:c});b.insert(()=>At,"g.label").attr("style",m.join("")).attr("class",`row-rect-${kt?"even":"odd"}`)}const H=1e-4;let Q=al(q,w.height+I,P+q,w.height+I,H),J=M.polygon(Q.map(it=>[it.x,it.y]),F);if(b.insert(()=>J).attr("class","divider"),Q=al(L+q,w.height+I,L+q,$+I,H),J=M.polygon(Q.map(it=>[it.x,it.y]),F),b.insert(()=>J).attr("class","divider"),Y){const it=L+A+q;Q=al(it,w.height+I,it,$+I,H),J=M.polygon(Q.map(dt=>[dt.x,dt.y]),F),b.insert(()=>J).attr("class","divider")}if(W){const it=L+A+R+q;Q=al(it,w.height+I,it,$+I,H),J=M.polygon(Q.map(dt=>[dt.x,dt.y]),F),b.insert(()=>J).attr("class","divider")}for(const it of S){const dt=w.height+I+it;Q=al(q,dt,P+q,dt,H),J=M.polygon(Q.map(Ct=>[Ct.x,Ct.y]),F),b.insert(()=>J).attr("class","divider")}if(It(e,Z),x&&e.look!=="handDrawn")if(i!=null&&yct.has(i))b.selectAll("path").attr("style",x);else{const it=x.split(";"),dt=(ct=it==null?void 0:it.filter(Ct=>Ct.includes("stroke")))==null?void 0:ct.map(Ct=>`${Ct}`).join("; ");b.selectAll("path").attr("style",dt??""),b.selectAll(".row-rect-even path").attr("style",x)}return e.intersect=function(it){return Lt.rect(e,it)},b}B(AS,"erBox");async function nl(t,e,r,i=0,n=0,s=[],o=""){const c=t.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);e!==i4(e)&&(e=i4(e),e=e.replaceAll("<","&lt;").replaceAll(">","&gt;"));const u=c.node().appendChild(await ga(c,e,{width:ua(e,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(e.includes("&lt;")||e.includes("&gt;")){let f=u.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 h=u.getBBox();if(pa(r.htmlLabels)){const f=u.children[0];f.style.textAlign="start";const p=Ut(u);h=f.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return h}B(nl,"addText");function al(t,e,r,i,n){return t===r?[{x:t-n/2,y:e},{x:t+n/2,y:e},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:t,y:e-n/2},{x:t,y:e+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}B(al,"lineToPolygon");async function k8(t,e,r,i,n=r.class.padding??12){const s=i?0:3,o=t.insert("g").attr("class",Gt(e)).attr("id",e.domId||e.id);let c=null,u=null,h=null,f=null,p=0,m=0,g=0;if(c=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const _=e.annotations[0];await Cu(c,{text:`«${_}»`},0),p=c.node().getBBox().height}u=o.insert("g").attr("class","label-group text"),await Cu(u,e,0,["font-weight: bolder"]);const x=u.node().getBBox();m=x.height,h=o.insert("g").attr("class","members-group text");let v=0;for(const _ of e.members){const S=await Cu(h,_,v,[_.parseClassifier()]);v+=S+s}g=h.node().getBBox().height,g<=0&&(g=n/2),f=o.insert("g").attr("class","methods-group text");let b=0;for(const _ of e.methods){const S=await Cu(f,_,b,[_.parseClassifier()]);b+=S+s}let w=o.node().getBBox();if(c!==null){const _=c.node().getBBox();c.attr("transform",`translate(${-_.width/2})`)}return u.attr("transform",`translate(${-x.width/2}, ${p})`),w=o.node().getBBox(),h.attr("transform",`translate(0, ${p+m+n*2})`),w=o.node().getBBox(),f.attr("transform",`translate(0, ${p+m+(g?g+n*4:n*2)})`),w=o.node().getBBox(),{shapeSvg:o,bbox:w}}B(k8,"textHelper");async function Cu(t,e,r,i=[]){const n=t.insert("g").attr("class","label").attr("style",i.join("; ")),s=Ke();let o="useHtmlLabels"in e?e.useHtmlLabels:pa(s.htmlLabels)??!0,c="";"text"in e?c=e.text:c=e.label,!o&&c.startsWith("\\")&&(c=c.substring(1)),Yu(c)&&(o=!0);const u=await ga(n,Uw(to(c)),{width:ua(c,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s);let h,f=1;if(o){const p=u.children[0],m=Ut(u);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(v=>new Promise(b=>{function w(){var _;if(v.style.display="flex",v.style.flexDirection="column",x){const S=((_=s.fontSize)==null?void 0:_.toString())??window.getComputedStyle(document.body).fontSize,L=parseInt(S,10)*5+"px";v.style.minWidth=L,v.style.maxWidth=L}else v.style.width="100%";b(v)}B(w,"setupImage"),setTimeout(()=>{v.complete&&w()}),v.addEventListener("error",w),v.addEventListener("load",w)})))}h=p.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Ut(u).selectAll("tspan").attr("font-weight",""),f=u.children.length;const p=u.children[0];(u.textContent===""||u.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=""),h=u.getBBox()}return n.attr("transform","translate(0,"+(-h.height/(2*f)+r)+")"),h.height}B(Cu,"addText");async function _8(t,e){var M,F;const r=ve(),{themeVariables:i}=r,{useGradient:n}=i,s=r.class.padding??12,o=s,c=e.useHtmlLabels??pa(r.htmlLabels)??!0,u=e;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:f}=await k8(t,e,r,c,o),{labelStyles:p,nodeStyles:m}=Dt(e);e.labelStyle=p,e.cssStyles=u.styles||"";const g=((M=u.styles)==null?void 0:M.join(";"))||m||"";e.cssStyles||(e.cssStyles=g.replaceAll("!important","").split(";"));const x=u.members.length===0&&u.methods.length===0&&!((F=r.class)!=null&&F.hideEmptyMembersBox),v=Nt.svg(h),b=Ot(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=Math.max(e.width??0,f.width);let _=Math.max(e.height??0,f.height);const S=(e.height??0)>f.height;u.members.length===0&&u.methods.length===0?_+=o:u.members.length>0&&u.methods.length===0&&(_+=o*2);const E=-w/2,L=-_/2;let A=x?s*2:u.members.length===0&&u.methods.length===0?-s:0;S&&(A=s*2);const R=v.rectangle(E-s,L-s-(x?s:u.members.length===0&&u.methods.length===0?-s/2:0),w+2*s,_+2*s+A,b),j=h.insert(()=>R,":first-child");j.attr("class","basic label-container outer-path");const Y=j.node().getBBox(),W=h.select(".annotation-group").node().getBBox().height-(x?s/2:0)||0,O=h.select(".label-group").node().getBBox().height-(x?s/2:0)||0,z=h.select(".members-group").node().getBBox().height-(x?s/2:0)||0,X=(W+O+L+s-(L-s-(x?s:u.members.length===0&&u.methods.length===0?-s/2:0)))/2;if(h.selectAll(".text").each((N,P,$)=>{var Q,J;const q=Ut($[P]),I=q.attr("transform");let G=0;if(I){const K=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(I);K&&(G=parseFloat(K[2]))}let Z=G+L+s-(x?s:u.members.length===0&&u.methods.length===0?-s/2:0);if(q.attr("class").includes("methods-group")){const tt=Math.max(z,o/2);S?Z=Math.max(X,W+O+tt+L+o*2+s)+o*2:Z=W+O+tt+L+o*4+s}u.members.length===0&&u.methods.length===0&&((Q=r.class)!=null&&Q.hideEmptyMembersBox)&&(u.annotations.length>0?Z=G-o:Z=G),c||(Z-=4);let H=E;(q.attr("class").includes("label-group")||q.attr("class").includes("annotation-group"))&&(H=-((J=q.node())==null?void 0:J.getBBox().width)/2||0,h.selectAll("text").each(function(tt,K,nt){window.getComputedStyle(nt[K]).textAnchor==="middle"&&(H=0)})),q.attr("transform",`translate(${H}, ${Z})`)}),u.members.length>0||u.methods.length>0||x){const N=W+O+L+s,P=v.line(Y.x,N,Y.x+Y.width,N+.001,b);h.insert(()=>P).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",g)}if(x||u.members.length>0||u.methods.length>0){const N=W+O+z+L+o*2+s,P=v.line(Y.x,S?Math.max(X,N):N,Y.x+Y.width,(S?Math.max(X,N):N)+.001,b);h.insert(()=>P).attr("class",`divider${e.look==="neo"&&!n?" neo-line":""}`).attr("style",g)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",g),j.select(":nth-child(2)").attr("style",g),h.selectAll(".divider").select("path").attr("style",g),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",g),!c){const N=RegExp(/color\s*:\s*([^;]*)/),P=N.exec(g);if(P){const $=P[0].replace("color","fill");h.selectAll("tspan").attr("style",$)}else if(p){const $=N.exec(p);if($){const q=$[0].replace("color","fill");h.selectAll("tspan").attr("style",q)}}}return It(e,j),e.intersect=function(N){return Lt.rect(e,N)},h}B(_8,"classBox");async function T8(t,e){var Y,W;const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const n=e,s=e,o=20,c=20,u="verifyMethod"in e,h=Gt(e),{themeVariables:f}=ve(),{borderColorArray:p,requirementEdgeLabelBackground:m}=f,g=t.insert("g").attr("class",h).attr("id",e.domId??e.id);let x;u?x=await wn(g,`&lt;&lt;${n.type}&gt;&gt;`,0,e.labelStyle):x=await wn(g,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let v=x;const b=await wn(g,n.name,v,e.labelStyle+"; font-weight: bold;");if(v+=b+c,u){const O=await wn(g,`${n.requirementId?`ID: ${n.requirementId}`:""}`,v,e.labelStyle);v+=O;const z=await wn(g,`${n.text?`Text: ${n.text}`:""}`,v,e.labelStyle);v+=z;const X=await wn(g,`${n.risk?`Risk: ${n.risk}`:""}`,v,e.labelStyle);v+=X,await wn(g,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,v,e.labelStyle)}else{const O=await wn(g,`${s.type?`Type: ${s.type}`:""}`,v,e.labelStyle);v+=O,await wn(g,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,v,e.labelStyle)}const w=(((Y=g.node())==null?void 0:Y.getBBox().width)??200)+o,_=(((W=g.node())==null?void 0:W.getBBox().height)??200)+o,S=-w/2,E=-_/2,L=Nt.svg(g),A=Ot(e,{});e.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const R=L.rectangle(S,E,w,_,A),j=g.insert(()=>R,":first-child");if(j.attr("class","basic label-container outer-path").attr("style",i),p!=null&&p.length){const O=e.colorIndex??0;g.attr("data-color-id",`color-${O%p.length}`)}if(g.selectAll(".label").each((O,z,X)=>{const M=Ut(X[z]),F=M.attr("transform");let N=0,P=0;if(F){const G=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);G&&(N=parseFloat(G[1]),P=parseFloat(G[2]))}const $=P-_/2;let q=S+o/2;(z===0||z===1)&&(q=N),M.attr("transform",`translate(${q}, ${$+o})`)}),v>x+b+c){const O=E+x+b+c;let z;if(e.look==="neo"){const F=[[S,O],[S+w,O],[S+w,O+.001],[S,O+.001]];z=L.polygon(F,A)}else z=L.line(S,O,S+w,O,A);g.insert(()=>z).attr("class","divider")}return It(e,j),e.intersect=function(O){return Lt.rect(e,O)},i&&e.look!=="handDrawn"&&(m||p!=null&&p.length)&&g.selectAll("path").attr("style",i),g}B(T8,"requirementBox");async function wn(t,e,r,i=""){if(e==="")return 0;const n=t.insert("g").attr("class","label").attr("style",i),s=ve(),o=s.htmlLabels??!0,c=await ga(n,Uw(to(e)),{width:ua(e,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},s);let u;if(o){const h=c.children[0],f=Ut(c);u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{const h=c.children[0];for(const f of h.children)i&&f.setAttribute("style",i);u=c.getBBox(),u.height+=6}return n.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}B(wn,"addText");var xct=B(t=>{switch(t){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 E8(t,e,{config:r}){var z,X;const{labelStyles:i,nodeStyles:n}=Dt(e);e.labelStyle=i||"";const s=10,o=e.width;e.width=(e.width??200)-10;const{shapeSvg:c,bbox:u,label:h}=await Wt(t,e,Gt(e)),f=e.padding||10;let p="",m;"ticket"in e&&e.ticket&&((z=r==null?void 0:r.kanban)!=null&&z.ticketBaseUrl)&&(p=(X=r==null?void 0:r.kanban)==null?void 0:X.ticketBaseUrl.replace("#TICKET#",e.ticket),m=c.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const g={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let x,v;m?{label:x,bbox:v}=await xC(m,"ticket"in e&&e.ticket||"",g):{label:x,bbox:v}=await xC(c,"ticket"in e&&e.ticket||"",g);const{label:b,bbox:w}=await xC(c,"assigned"in e&&e.assigned||"",g);e.width=o;const _=10,S=(e==null?void 0:e.width)||0,E=Math.max(v.height,w.height)/2,L=Math.max(u.height+_*2,(e==null?void 0:e.height)||0)+E,A=-S/2,R=-L/2;h.attr("transform","translate("+(f-S/2)+", "+(-E-u.height/2)+")"),x.attr("transform","translate("+(f-S/2)+", "+(-E+u.height/2)+")"),b.attr("transform","translate("+(f+S/2-w.width-2*s)+", "+(-E+u.height/2)+")");let j;const{rx:Y,ry:W}=e,{cssStyles:O}=e;if(e.look==="handDrawn"){const M=Nt.svg(c),F=Ot(e,{}),N=Y||W?M.path(os(A,R,S,L,Y||0),F):M.rectangle(A,R,S,L,F);j=c.insert(()=>N,":first-child"),j.attr("class","basic label-container").attr("style",O||null)}else{j=c.insert("rect",":first-child"),j.attr("class","basic label-container __APA__").attr("style",n).attr("rx",Y??5).attr("ry",W??5).attr("x",A).attr("y",R).attr("width",S).attr("height",L);const M="priority"in e&&e.priority;if(M){const F=c.append("line"),N=A+2,P=R+Math.floor((Y??0)/2),$=R+L-Math.floor((Y??0)/2);F.attr("x1",N).attr("y1",P).attr("x2",N).attr("y2",$).attr("stroke-width","4").attr("stroke",xct(M))}}return It(e,j),e.height=L,e.intersect=function(M){return Lt.rect(e,M)},c}B(E8,"kanbanItem");async function A8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:o,label:c}=await Wt(t,e,Gt(e)),u=s.width+10*o,h=s.height+8*o,f=.15*u,{cssStyles:p}=e,m=s.width+20,g=s.height+20,x=Math.max(u,m),v=Math.max(h,g);c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let b;const w=`M0 0
532
+ a${f},${f} 1 0,0 ${x*.25},${-1*v*.1}
533
+ a${f},${f} 1 0,0 ${x*.25},0
534
+ a${f},${f} 1 0,0 ${x*.25},0
535
+ a${f},${f} 1 0,0 ${x*.25},${v*.1}
536
+
537
+ a${f},${f} 1 0,0 ${x*.15},${v*.33}
538
+ a${f*.8},${f*.8} 1 0,0 0,${v*.34}
539
+ a${f},${f} 1 0,0 ${-1*x*.15},${v*.33}
540
+
541
+ a${f},${f} 1 0,0 ${-1*x*.25},${v*.15}
542
+ a${f},${f} 1 0,0 ${-1*x*.25},0
543
+ a${f},${f} 1 0,0 ${-1*x*.25},0
544
+ a${f},${f} 1 0,0 ${-1*x*.25},${-1*v*.15}
545
+
546
+ a${f},${f} 1 0,0 ${-1*x*.1},${-1*v*.33}
547
+ a${f*.8},${f*.8} 1 0,0 0,${-1*v*.34}
548
+ a${f},${f} 1 0,0 ${x*.1},${-1*v*.33}
549
+ H0 V0 Z`;if(e.look==="handDrawn"){const _=Nt.svg(n),S=Ot(e,{}),E=_.path(w,S);b=n.insert(()=>E,":first-child"),b.attr("class","basic label-container").attr("style",Ar(p))}else b=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",w);return b.attr("transform",`translate(${-x/2}, ${-v/2})`),It(e,b),e.calcIntersect=function(_,S){return Lt.rect(_,S)},e.intersect=function(_){return St.info("Bang intersect",e,_),Lt.rect(e,_)},n}B(A8,"bang");async function B8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:o,label:c}=await Wt(t,e,Gt(e)),u=s.width+2*o,h=s.height+2*o,f=.15*u,p=.25*u,m=.35*u,g=.2*u,{cssStyles:x}=e;let v;const b=`M0 0
550
+ a${f},${f} 0 0,1 ${u*.25},${-1*u*.1}
551
+ a${m},${m} 1 0,1 ${u*.4},${-1*u*.1}
552
+ a${p},${p} 1 0,1 ${u*.35},${u*.2}
553
+
554
+ a${f},${f} 1 0,1 ${u*.15},${h*.35}
555
+ a${g},${g} 1 0,1 ${-1*u*.15},${h*.65}
556
+
557
+ a${p},${f} 1 0,1 ${-1*u*.25},${u*.15}
558
+ a${m},${m} 1 0,1 ${-1*u*.5},0
559
+ a${f},${f} 1 0,1 ${-1*u*.25},${-1*u*.15}
560
+
561
+ a${f},${f} 1 0,1 ${-1*u*.1},${-1*h*.35}
562
+ a${g},${g} 1 0,1 ${u*.1},${-1*h*.65}
563
+ H0 V0 Z`;if(e.look==="handDrawn"){const w=Nt.svg(n),_=Ot(e,{}),S=w.path(b,_);v=n.insert(()=>S,":first-child"),v.attr("class","basic label-container").attr("style",Ar(x))}else v=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",b);return c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),v.attr("transform",`translate(${-u/2}, ${-h/2})`),It(e,v),e.calcIntersect=function(w,_){return Lt.rect(w,_)},e.intersect=function(w){return St.info("Cloud intersect",e,w),Lt.rect(e,w)},n}B(B8,"cloud");async function L8(t,e){const{labelStyles:r,nodeStyles:i}=Dt(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:o,label:c}=await Wt(t,e,Gt(e)),u=s.width+8*o,h=s.height+2*o,f=5,p=e.look==="neo"?`
564
+ M${-u/2} ${h/2-f}
565
+ v${-h+2*f}
566
+ q0,-${f} ${f},-${f}
567
+ h${u-2*f}
568
+ q${f},0 ${f},${f}
569
+ v${h-f}
570
+ H${-u/2}
571
+ Z
572
+ `:`
573
+ M${-u/2} ${h/2-f}
574
+ v${-h+2*f}
575
+ q0,-${f} ${f},-${f}
576
+ h${u-2*f}
577
+ q${f},0 ${f},${f}
578
+ v${h-2*f}
579
+ q0,${f} ${-f},${f}
580
+ h${-(u-2*f)}
581
+ q${-f},0 ${-f},${-f}
582
+ Z
583
+ `;if(!e.domId)throw new Error(`defaultMindmapNode: node "${e.id}" is missing a domId — was render.ts domId prefixing skipped?`);const m=n.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",p);return n.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),n.append(()=>c.node()),It(e,m),e.calcIntersect=function(g,x){return Lt.rect(g,x)},e.intersect=function(g){return Lt.rect(e,g)},n}B(L8,"defaultMindmapNode");async function M8(t,e){const r={padding:e.padding??0};return ES(t,e,r)}B(M8,"mindmapCircle");var bct=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:l8},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:a8},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:c8},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:d8},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Mz},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Nz},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:ES},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:A8},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:B8},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:r8},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:zz},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Xz},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Vz},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:x8},{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:Yz},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Rz},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:m8},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Sz},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:s8},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:f8},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:h8},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Iz},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:jz},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Ez},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Az},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Bz},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Qz},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:C8},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:qz},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:y8},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Zz},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Lz},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Oz},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:v8},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:S8},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Dz},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:b8},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Fz},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:o8},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:t8},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Jz},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:wz},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Tz},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:g8},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:p8},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:w8},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:i8},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Kz}],vct=B(()=>{const e=[...Object.entries({state:u8,choice:kz,note:e8,rectWithTitle:n8,labelRect:Wz,iconSquare:Uz,iconCircle:Pz,icon:$z,iconRounded:Hz,imageSquare:Gz,anchor:vz,kanbanItem:E8,mindmapCircle:M8,defaultMindmapNode:L8,classBox:_8,erBox:AS,requirementBox:T8}),...bct.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),N8=vct();function Cct(t){return t in N8}B(Cct,"isValidShape");var Jp=new Map;async function O8(t,e,r){let i,n;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const s=e.shape?N8[e.shape]:void 0;if(!s)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;r.config.securityLevel==="sandbox"?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null),n=await s(i,e,r)}else n=await s(t,e,r),i=n;return i.attr("data-look",Ar(e.look)),e.tooltip&&n.attr("title",e.tooltip),Jp.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}B(O8,"insertNode");var apt=B((t,e)=>{Jp.set(e.id,t)},"setNodeElem"),spt=B(()=>{Jp.clear()},"clear"),opt=B(t=>{const e=Jp.get(t.id);St.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode"),wct=B((t,e,r,i,n,s=!1,o)=>{e.arrowTypeStart&&K4(t,"start",e.arrowTypeStart,r,i,n,s,o),e.arrowTypeEnd&&K4(t,"end",e.arrowTypeEnd,r,i,n,s,o)},"addEdgeMarkers"),Sct={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}},kct=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],K4=B((t,e,r,i,n,s,o=!1,c)=>{var x;const u=Sct[r],h=u&&kct.includes(u.type);if(!u){St.warn(`Unknown arrow type: ${r}`);return}const f=u.type,g=`${n}_${s}-${f}${e==="start"?"Start":"End"}${o&&h?"-margin":""}`;if(c&&c.trim()!==""){const v=c.replace(/[^\dA-Za-z]/g,"_"),b=`${g}_${v}`;if(!document.getElementById(b)){const w=document.getElementById(g);if(w){const _=w.cloneNode(!0);_.id=b,_.querySelectorAll("path, circle, line").forEach(E=>{E.setAttribute("stroke",c),u.fill&&E.setAttribute("fill",c)}),(x=w.parentNode)==null||x.appendChild(_)}}t.attr(`marker-${e}`,`url(${i}#${b})`)}else t.attr(`marker-${e}`,`url(${i}#${g})`)},"addEdgeMarker"),_ct=B(t=>{var e,r;return typeof t=="string"?t:(r=(e=ve())==null?void 0:e.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),sp=new Map,qr=new Map,lpt=B(()=>{sp.clear(),qr.clear()},"clear"),hu=B(t=>t?typeof t=="string"?t:t.reduce((e,r)=>e+";"+r,""):"","getLabelStyles"),Tct=B(async(t,e)=>{const r=ve();let i=Kr(r);const{labelStyles:n}=Dt(e);e.labelStyle=n;const s=t.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label").attr("data-id",e.id),c=e.labelType==="markdown",h=await ga(t,e.label,{style:hu(e.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:c,width:c?void 0:void 0},r);o.node().appendChild(h),St.info("abc82",e,e.labelType);let f=h.getBBox(),p=f;if(i){const g=h.children[0],x=Ut(h);f=g.getBoundingClientRect(),p=f,x.attr("width",f.width),x.attr("height",f.height)}else{const g=Ut(h).select("text").node();g&&typeof g.getBBox=="function"&&(p=g.getBBox())}o.attr("transform",su(p,i)),sp.set(e.id,s),e.width=f.width,e.height=f.height;let m;if(e.startLabelLeft){const g=t.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),v=await Xa(x,e.startLabelLeft,hu(e.labelStyle)||"",!1,!1);m=v;let b=v.getBBox();if(i){const w=v.children[0],_=Ut(v);b=w.getBoundingClientRect(),_.attr("width",b.width),_.attr("height",b.height)}x.attr("transform",su(b,i)),qr.get(e.id)||qr.set(e.id,{}),qr.get(e.id).startLeft=g,wu(m,e.startLabelLeft)}if(e.startLabelRight){const g=t.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),v=await Xa(x,e.startLabelRight,hu(e.labelStyle)||"",!1,!1);m=v;let b=v.getBBox();if(i){const w=v.children[0],_=Ut(v);b=w.getBoundingClientRect(),_.attr("width",b.width),_.attr("height",b.height)}x.attr("transform",su(b,i)),qr.get(e.id)||qr.set(e.id,{}),qr.get(e.id).startRight=g,wu(m,e.startLabelRight)}if(e.endLabelLeft){const g=t.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),v=await Xa(g,e.endLabelLeft,hu(e.labelStyle)||"",!1,!1);m=v;let b=v.getBBox();if(i){const w=v.children[0],_=Ut(v);b=w.getBoundingClientRect(),_.attr("width",b.width),_.attr("height",b.height)}x.attr("transform",su(b,i)),qr.get(e.id)||qr.set(e.id,{}),qr.get(e.id).endLeft=g,wu(m,e.endLabelLeft)}if(e.endLabelRight){const g=t.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),v=await Xa(g,e.endLabelRight,hu(e.labelStyle)||"",!1,!1);m=v;let b=v.getBBox();if(i){const w=v.children[0],_=Ut(v);b=w.getBoundingClientRect(),_.attr("width",b.width),_.attr("height",b.height)}x.attr("transform",su(b,i)),qr.get(e.id)||qr.set(e.id,{}),qr.get(e.id).endRight=g,wu(m,e.endLabelRight)}return h},"insertEdgeLabel");function wu(t,e){Kr(ve())&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}B(wu,"setTerminalWidth");var Ect=B((t,e)=>{St.debug("Moving label abc88 ",t.id,t.label,sp.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=ve(),{subGraphTitleTotalMargin:n}=pS(i);if(t.label){const s=sp.get(t.id);let o=t.x,c=t.y;if(r){const u=rn.calcLabelPosition(r);St.debug("Moving label "+t.label+" from (",o,",",c,") to (",u.x,",",u.y,") abc88"),e.updatedPath&&(o=u.x,c=u.y)}s.attr("transform",`translate(${o}, ${c+n/2})`)}if(t.startLabelLeft){const s=qr.get(t.id).startLeft;let o=t.x,c=t.y;if(r){const u=rn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);o=u.x,c=u.y}s.attr("transform",`translate(${o}, ${c})`)}if(t.startLabelRight){const s=qr.get(t.id).startRight;let o=t.x,c=t.y;if(r){const u=rn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);o=u.x,c=u.y}s.attr("transform",`translate(${o}, ${c})`)}if(t.endLabelLeft){const s=qr.get(t.id).endLeft;let o=t.x,c=t.y;if(r){const u=rn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);o=u.x,c=u.y}s.attr("transform",`translate(${o}, ${c})`)}if(t.endLabelRight){const s=qr.get(t.id).endRight;let o=t.x,c=t.y;if(r){const u=rn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);o=u.x,c=u.y}s.attr("transform",`translate(${o}, ${c})`)}},"positionEdgeLabel"),Act=B((t,e)=>{const r=t.x,i=t.y,n=Math.abs(e.x-r),s=Math.abs(e.y-i),o=t.width/2,c=t.height/2;return n>=o||s>=c},"outsideNode"),Bct=B((t,e,r)=>{St.debug(`intersection calc abc89:
584
+ outsidePoint: ${JSON.stringify(e)}
585
+ insidePoint : ${JSON.stringify(r)}
586
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,n=t.y,s=Math.abs(i-r.x),o=t.width/2;let c=r.x<e.x?o-s:o+s;const u=t.height/2,h=Math.abs(e.y-r.y),f=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*o>Math.abs(i-e.x)*u){let p=r.y<e.y?e.y-u-n:n-u-e.y;c=f*p/h;const m={x:r.x<e.x?r.x+c:r.x-f+c,y:r.y<e.y?r.y+h-p:r.y-h+p};return c===0&&(m.x=e.x,m.y=e.y),f===0&&(m.x=e.x),h===0&&(m.y=e.y),St.debug(`abc89 top/bottom calc, Q ${h}, q ${p}, R ${f}, r ${c}`,m),m}else{r.x<e.x?c=e.x-o-i:c=i-o-e.x;let p=h*c/f,m=r.x<e.x?r.x+f-c:r.x-f+c,g=r.y<e.y?r.y+p:r.y-p;return St.debug(`sides calc abc89, Q ${h}, q ${p}, R ${f}, r ${c}`,{_x:m,_y:g}),c===0&&(m=e.x,g=e.y),f===0&&(m=e.x),h===0&&(g=e.y),{x:m,y:g}}},"intersection"),J4=B((t,e)=>{St.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(s=>{if(St.info("abc88 checking point",s,e),!Act(e,s)&&!n){const o=Bct(e,i,s);St.debug("abc88 inside",s,i,o),St.debug("abc88 intersection",o,e);let c=!1;r.forEach(u=>{c=c||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?St.warn("abc88 no intersect",o,r):r.push(o),n=!0}else St.warn("abc88 outside",s,i),i=s,n||r.push(s)}),St.debug("returning points",r),r},"cutPathAtIntersect");function R8(t){const e=[],r=[];for(let i=1;i<t.length-1;i++){const n=t[i-1],s=t[i],o=t[i+1];(n.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5||n.y===s.y&&s.x===o.x&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5)&&(e.push(s),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}B(R8,"extractCornerPoints");var tO=B(function(t,e,r){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n),o=r/s;return{x:e.x-o*i,y:e.y-o*n}},"findAdjacentPoint"),Lct=B(function(t){const{cornerPointPositions:e}=R8(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const n=t[i-1],s=t[i+1],o=t[i],c=tO(n,o,5),u=tO(s,o,5),h=u.x-c.x,f=u.y-c.y;r.push(c);const p=Math.sqrt(2)*2;let m={x:o.x,y:o.y};if(Math.abs(s.x-n.x)>10&&Math.abs(s.y-n.y)>=10){St.debug("Corner point fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));const g=5;o.x===c.x?m={x:h<0?c.x-g+p:c.x+g-p,y:f<0?c.y-p:c.y+p}:m={x:h<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(s.x-n.x),Math.abs(s.y-n.y));r.push(m,u)}else r.push(t[i]);return r},"fixCorners"),Mct=B((t,e,r)=>{const i=t-e-r,n=2,s=2,o=n+s,c=Math.floor(i/o),u=Array(c).fill(`${n} ${s}`).join(" ");return`0 ${e} ${u} ${r}`},"generateDashArray"),Nct=B(function(t,e,r,i,n,s,o,c=!1){var P;if(!o)throw new Error(`insertEdge: missing diagramId for edge "${e.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:u}=ve();let h=e.points,f=!1;const p=n;var m=s;const g=[];for(const $ in e.cssCompiledStyles)Nq($)||g.push(e.cssCompiledStyles[$]);St.debug("UIO intersect check",e.points,m.x,p.x),m.intersect&&p.intersect&&!c&&(h=h.slice(1,e.points.length-1),h.unshift(p.intersect(h[0])),St.debug("Last point UIO",e.start,"-->",e.end,h[h.length-1],m,m.intersect(h[h.length-1])),h.push(m.intersect(h[h.length-1])));const x=btoa(JSON.stringify(h));e.toCluster&&(St.info("to cluster abc88",r.get(e.toCluster)),h=J4(e.points,r.get(e.toCluster).node),f=!0),e.fromCluster&&(St.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(h,null,2)),h=J4(h.reverse(),r.get(e.fromCluster).node).reverse(),f=!0);let v=h.filter($=>!Number.isNaN($.y));const b=_ct(e.curve);b!=="rounded"&&(v=Lct(v));let w=Mu;switch(b){case"linear":w=Mu;break;case"basis":w=a2;break;case"cardinal":w=b6;break;case"bumpX":w=p6;break;case"bumpY":w=g6;break;case"catmullRom":w=C6;break;case"monotoneX":w=E6;break;case"monotoneY":w=A6;break;case"natural":w=L6;break;case"step":w=M6;break;case"stepAfter":w=O6;break;case"stepBefore":w=N6;break;case"rounded":w=Mu;break;default:w=a2}const{x:_,y:S}=Tst(e),E=cat().x(_).y(S).curve(w);let L;switch(e.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible";break;default:L="edge-thickness-normal"}switch(e.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break;default:L+=" edge-pattern-solid"}let A,R=b==="rounded"?D8(F8(v,e),5):E(v);const j=Array.isArray(e.style)?e.style:[e.style];let Y=j.find($=>$==null?void 0:$.startsWith("stroke:")),W="";e.animate&&(W="edge-animation-fast"),e.animation&&(W="edge-animation-"+e.animation);let O=!1;if(e.look==="handDrawn"){const $=Nt.svg(t);Object.assign([],v);const q=$.path(R,{roughness:.3,seed:u});L+=" transition",A=Ut(q).select("path").attr("id",`${o}-${e.id}`).attr("class"," "+L+(e.classes?" "+e.classes:"")+(W?" "+W:"")).attr("style",j?j.reduce((G,Z)=>G+";"+Z,""):"");let I=A.attr("d");A.attr("d",I),t.node().appendChild(A.node())}else{const $=g.join(";"),q=j?j.reduce((J,tt)=>J+tt+";",""):"",I=($?$+";"+q+";":q)+";"+(j?j.reduce((J,tt)=>J+";"+tt,""):"");A=t.append("path").attr("d",R).attr("id",`${o}-${e.id}`).attr("class"," "+L+(e.classes?" "+e.classes:"")+(W?" "+W:"")).attr("style",I),Y=(P=I.match(/stroke:([^;]+)/))==null?void 0:P[1],O=e.animate===!0||!!e.animation||$.includes("animation");const G=A.node(),Z=typeof G.getTotalLength=="function"?G.getTotalLength():0,H=p4[e.arrowTypeStart]||0,Q=p4[e.arrowTypeEnd]||0;if(e.look==="neo"&&!O){const tt=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?Mct(Z,H,Q):`0 ${H} ${Z-H-Q} ${Q}`}; stroke-dashoffset: 0;`;A.attr("style",tt+A.attr("style"))}}A.attr("data-edge",!0),A.attr("data-et","edge"),A.attr("data-id",e.id),A.attr("data-points",x),A.attr("data-look",Ar(e.look)),e.showPoints&&v.forEach($=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",$.x).attr("cy",$.y)});let z="";(ve().flowchart.arrowMarkerAbsolute||ve().state.arrowMarkerAbsolute)&&(z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,z=z.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),St.info("arrowTypeStart",e.arrowTypeStart),St.info("arrowTypeEnd",e.arrowTypeEnd);const X=!O&&(e==null?void 0:e.look)==="neo";wct(A,e,z,o,i,X,Y);const M=Math.floor(h.length/2),F=h[M];rn.isLabelCoordinateInPath(F,A.attr("d"))||(f=!0);let N={};return f&&(N.updatedPath=h),N.originalPath=e.points,N},"insertEdge");function D8(t,e){if(t.length<2)return"";let r="";const i=t.length,n=1e-5;for(let s=0;s<i;s++){const o=t[s],c=t[s-1],u=t[s+1];if(s===0)r+=`M${o.x},${o.y}`;else if(s===i-1)r+=`L${o.x},${o.y}`;else{const h=o.x-c.x,f=o.y-c.y,p=u.x-o.x,m=u.y-o.y,g=Math.hypot(h,f),x=Math.hypot(p,m);if(g<n||x<n){r+=`L${o.x},${o.y}`;continue}const v=h/g,b=f/g,w=p/x,_=m/x,S=v*w+b*_,E=Math.max(-1,Math.min(1,S)),L=Math.acos(E);if(L<n||Math.abs(Math.PI-L)<n){r+=`L${o.x},${o.y}`;continue}const A=Math.min(e/Math.sin(L/2),g/2,x/2),R=o.x-v*A,j=o.y-b*A,Y=o.x+w*A,W=o.y+_*A;r+=`L${R},${j}`,r+=`Q${o.x},${o.y} ${Y},${W}`}}return r}B(D8,"generateRoundedPath");function D2(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}B(D2,"calculateDeltaAndAngle");function F8(t,e){const r=t.map(n=>({...n}));if(t.length>=2&&$r[e.arrowTypeStart]){const n=$r[e.arrowTypeStart],s=t[0],o=t[1],{angle:c}=D2(s,o),u=n*Math.cos(c),h=n*Math.sin(c);r[0].x=s.x+u,r[0].y=s.y+h}const i=t.length;if(i>=2&&$r[e.arrowTypeEnd]){const n=$r[e.arrowTypeEnd],s=t[i-1],o=t[i-2],{angle:c}=D2(o,s),u=n*Math.cos(c),h=n*Math.sin(c);r[i-1].x=s.x-u,r[i-1].y=s.y-h}return r}B(F8,"applyMarkerOffsetsToPoints");var Oct=B((t,e,r,i)=>{e.forEach(n=>{rut[n](t,r,i)})},"insertMarkers"),Rct=B((t,e,r)=>{St.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).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"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).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"),Dct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).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"),Fct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).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"),Ict=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).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"),qct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).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"),zct=B((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).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"),jct=B((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).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"),$ct=B((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).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),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).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"),Pct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),Hct=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{transitionColor:s}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),Uct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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"),Gct=B((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).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=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).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"),Yct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),Wct=B((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).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=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).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"),Vct=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{strokeWidth:s}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),Xct=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:o}=n,c=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");c.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),c.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);const u=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");u.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),u.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),Qct=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{strokeWidth:s}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),Zct=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:o}=n,c=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");c.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),c.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);const u=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");u.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),u.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),Kct=B((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
587
+ L20,10
588
+ M20,10
589
+ L0,20`)},"requirement_arrow"),Jct=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{strokeWidth:s}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
590
+ L20,10
591
+ M20,10
592
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),tut=B((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),eut=B((t,e,r)=>{const i=Ke(),{themeVariables:n}=i,{strokeWidth:s}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),rut={extension:Rct,composition:Dct,aggregation:Fct,dependency:Ict,lollipop:qct,point:zct,circle:jct,cross:$ct,barb:Pct,barbNeo:Hct,only_one:Uct,zero_or_one:Gct,one_or_more:Yct,zero_or_more:Wct,only_one_neo:Vct,zero_or_one_neo:Xct,one_or_more_neo:Qct,zero_or_more_neo:Zct,requirement_arrow:Kct,requirement_contains:tut,requirement_arrow_neo:Jct,requirement_contains_neo:eut},iut=Oct,nut={common:gh,getConfig:Ke,insertCluster:ect,insertEdge:Nct,insertEdgeLabel:Tct,insertMarkers:iut,insertNode:O8,interpolateToCurve:lS,labelHelper:Wt,log:St,positionEdgeLabel:Ect},Ku={},I8=B(t=>{for(const e of t)Ku[e.name]=e},"registerLayoutLoaders"),aut=B(()=>{I8([{name:"dagre",loader:B(async()=>await ge(()=>import("./dagre-BM42HDAG-BoDP4qSL.js"),__vite__mapDeps([0,1,2])),"loader")},{name:"cose-bilkent",loader:B(async()=>await ge(()=>import("./cose-bilkent-S5V4N54A-CpzWWErA.js"),__vite__mapDeps([3,4])),"loader")}])},"registerDefaultLayoutLoaders");aut();var cpt=B(async(t,e)=>{if(!(t.layoutAlgorithm in Ku))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const f of t.nodes){const p=f.domId||f.id;f.domId=`${t.diagramId}-${p}`}const r=Ku[t.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:s}=t.config,{useGradient:o,gradientStart:c,gradientStop:u}=s,h=e.attr("id");if(e.append("defs").append("filter").attr("id",`${h}-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"}`),e.append("defs").append("filter").attr("id",`${h}-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"}`),o){const f=e.append("linearGradient").attr("id",e.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",u).attr("stop-opacity",1)}return i.render(t,e,nut,{algorithm:r.algorithm})},"render"),upt=B((t="",{fallback:e="dagre"}={})=>{if(t in Ku)return t;if(e in Ku)return St.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),BS="comm",q8="rule",z8="decl",sut="@media",out="@import",lut="@supports",cut="@namespace",F2="@keyframes",j8="@layer",uut="@scope",hut=Math.abs,Ou=String.fromCharCode;function $8(t){return t.trim()}function I2(t,e,r){return t.replace(e,r)}function ml(t,e){return t.charCodeAt(e)|0}function Hl(t,e,r){return t.slice(e,r)}function kn(t){return t.length}function P8(t){return t.length}function id(t,e){return e.push(t),t}var tg=1,Ul=1,H8=0,Hi=0,mr=0,ic="";function LS(t,e,r,i,n,s,o,c){return{value:t,root:e,parent:r,type:i,props:n,children:s,line:tg,column:Ul,length:o,return:"",siblings:c}}function fut(){return mr}function dut(){return mr=Hi>0?ml(ic,--Hi):0,Ul--,mr===10&&(Ul=1,tg--),mr}function on(){return mr=Hi<H8?ml(ic,Hi++):0,Ul++,mr===10&&(Ul=1,tg++),mr}function Qa(){return ml(ic,Hi)}function Cd(){return Hi}function eg(t,e){return Hl(ic,t,e)}function Ju(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function put(t){return tg=Ul=1,H8=kn(ic=t),Hi=0,[]}function gut(t){return ic="",t}function vC(t){return $8(eg(Hi-1,q2(t===91?t+2:t===40?t+1:t)))}function mut(t){for(;(mr=Qa())&&mr<33;)on();return Ju(t)>2||Ju(mr)>3?"":" "}function yut(t,e){for(;--e&&on()&&!(mr<48||mr>102||mr>57&&mr<65||mr>70&&mr<97););return eg(t,Cd()+(e<6&&Qa()==32&&on()==32))}function q2(t){for(;on();)switch(mr){case t:return Hi;case 34:case 39:t!==34&&t!==39&&q2(mr);break;case 40:t===41&&q2(t);break;case 92:on();break}return Hi}function xut(t,e){for(;on()&&t+mr!==57;)if(t+mr===84&&Qa()===47)break;return"/*"+eg(e,Hi-1)+"*"+Ou(t===47?t:on())}function but(t){for(;!Ju(Qa());)on();return eg(t,Hi)}function vut(t){return gut(wd("",null,null,null,[""],t=put(t),0,[0],t))}function wd(t,e,r,i,n,s,o,c,u){for(var h=0,f=0,p=o,m=0,g=0,x=0,v=1,b=1,w=1,_=0,S=0,E="",L=n,A=s,R=i,j=E;b;)switch(x=S,S=on()){case 40:x!=108&&ml(j,p-1)==58?(_++,j+="("):j+=vC(S);break;case 41:_--,j+=")";break;case 34:case 39:case 91:j+=vC(S);break;case 9:case 10:case 13:case 32:if(_>0){j+=Ou(S);break}j+=mut(x);break;case 92:j+=yut(Cd()-1,7);continue;case 47:switch(Qa()){case 42:case 47:id(Cut(xut(on(),Cd()),e,r,u),u),(Ju(x||1)==5||Ju(Qa()||1)==5)&&kn(j)&&Hl(j,-1,void 0)!==" "&&(j+=" ");break;default:j+="/"}break;case 123*v:c[h++]=kn(j)*w;case 125*v:case 59:case 0:if(_>0&&S){j+=Ou(S);break}switch(S){case 0:case 125:b=0;case 59+f:w==-1&&(j=I2(j,/\f/g,"")),g>0&&(kn(j)-p||v===0)&&id(g>32?rO(j+";",i,r,p-1,u):rO(I2(j," ","")+";",i,r,p-2,u),u);break;case 59:j+=";";default:if(id(R=eO(j,e,r,h,f,n,c,E,L=[],A=[],p,s),s),S===123)if(f===0)wd(j,e,R,R,L,s,p,c,A);else{switch(m){case 99:if(ml(j,3)===110)break;case 108:if(ml(j,2)===97)break;default:f=0;case 100:case 109:case 115:}f?wd(t,R,R,i&&id(eO(t,R,R,0,0,n,c,E,n,L=[],p,A),A),n,A,p,c,i?L:A):wd(j,R,R,R,[""],A,0,c,A)}}h=f=g=0,v=w=1,E=j="",p=o;break;case 58:p=1+kn(j),g=x;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&dut()==125)continue}switch(j+=Ou(S),S*v){case 38:w=f>0?1:(j+="\f",-1);break;case 44:if(_>0)break;c[h++]=(kn(j)-1)*w,w=1;break;case 64:Qa()===45&&(j+=vC(on())),m=Qa(),f=p=kn(E=j+=but(Cd())),S++;break;case 45:x===45&&kn(j)==2&&(v=0)}}return s}function eO(t,e,r,i,n,s,o,c,u,h,f,p){for(var m=n-1,g=n===0?s:[""],x=P8(g),v=0,b=0,w=0;v<i;++v)for(var _=0,S=Hl(t,m+1,m=hut(b=o[v])),E=t;_<x;++_)(E=$8(b>0?g[_]+" "+S:I2(S,/&\f/g,g[_])))&&(u[w++]=E);return LS(t,e,r,n===0?q8:c,u,h,f,p)}function Cut(t,e,r,i){return LS(t,e,r,BS,Ou(fut()),Hl(t,2,-2),0,i)}function rO(t,e,r,i,n){return LS(t,e,r,z8,Hl(t,0,i),Hl(t,i+1,-1),i,n)}function z2(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function wut(t,e,r,i){switch(t.type){case j8:if(t.children.length)break;case out:case cut:case z8:return t.return=t.return||t.value;case BS:return"";case F2:return t.return=t.value+"{"+z2(t.children,i)+"}";case q8:if(!kn(t.value=t.props.join(",")))return""}return kn(r=z2(t.children,i))?t.return=t.value+"{"+r+"}":""}function Sut(t){var e=P8(t);return function(r,i,n,s){for(var o="",c=0;c<e;c++)o+=t[c](r,i,n,s)||"";return o}}var U8="c4",kut=B(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),_ut=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./c4Diagram-AAUBKEIU-BaIdnoVu.js");return{diagram:e}},__vite__mapDeps([5,6]));return{id:U8,diagram:t}},"loader"),Tut={id:U8,detector:kut,loader:_ut},Eut=Tut,G8="flowchart",Aut=B((t,e)=>{var r,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),But=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./flowDiagram-I6XJVG4X-DMRa3J_m.js");return{diagram:e}},__vite__mapDeps([7,8,6,9,10,11]));return{id:G8,diagram:t}},"loader"),Lut={id:G8,detector:Aut,loader:But},Mut=Lut,Y8="flowchart-v2",Nut=B((t,e)=>{var r,i,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),Out=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./flowDiagram-I6XJVG4X-DMRa3J_m.js");return{diagram:e}},__vite__mapDeps([7,8,6,9,10,11]));return{id:Y8,diagram:t}},"loader"),Rut={id:Y8,detector:Nut,loader:Out},Dut=Rut,W8="er",Fut=B(t=>/^\s*erDiagram/.test(t),"detector"),Iut=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./erDiagram-TEJ5UH35-DFtC0ScP.js");return{diagram:e}},__vite__mapDeps([12,9,10,11]));return{id:W8,diagram:t}},"loader"),qut={id:W8,detector:Fut,loader:Iut},zut=qut,V8="gitGraph",jut=B(t=>/^\s*gitGraph/.test(t),"detector"),$ut=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./gitGraphDiagram-PVQCEYII-CXTm84QI.js");return{diagram:e}},__vite__mapDeps([13,14,15,16]));return{id:V8,diagram:t}},"loader"),Put={id:V8,detector:jut,loader:$ut},Hut=Put,X8="gantt",Uut=B(t=>/^\s*gantt/.test(t),"detector"),Gut=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./ganttDiagram-6RSMTGT7-Bxuykf6p.js");return{diagram:e}},__vite__mapDeps([17,18,19,20]));return{id:X8,diagram:t}},"loader"),Yut={id:X8,detector:Uut,loader:Gut},Wut=Yut,Q8="info",Vut=B(t=>/^\s*info/.test(t),"detector"),Xut=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./infoDiagram-5YYISTIA-D2tvLdtC.js");return{diagram:e}},__vite__mapDeps([21,16]));return{id:Q8,diagram:t}},"loader"),Qut={id:Q8,detector:Vut,loader:Xut},Z8="pie",Zut=B(t=>/^\s*pie/.test(t),"detector"),Kut=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./pieDiagram-4H26LBE5-BwtLTkTI.js");return{diagram:e}},__vite__mapDeps([22,14,16,23,24,19]));return{id:Z8,diagram:t}},"loader"),Jut={id:Z8,detector:Zut,loader:Kut},K8="quadrantChart",tht=B(t=>/^\s*quadrantChart/.test(t),"detector"),eht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./quadrantDiagram-W4KKPZXB-BZ6VcAAZ.js");return{diagram:e}},__vite__mapDeps([25,18,19,20]));return{id:K8,diagram:t}},"loader"),rht={id:K8,detector:tht,loader:eht},iht=rht,J8="xychart",nht=B(t=>/^\s*xychart(-beta)?/.test(t),"detector"),aht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./xychartDiagram-2RQKCTM6-BVhFPdW8.js");return{diagram:e}},__vite__mapDeps([26,19,24,18,20]));return{id:J8,diagram:t}},"loader"),sht={id:J8,detector:nht,loader:aht},oht=sht,tj="requirement",lht=B(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),cht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./requirementDiagram-4Y6WPE33-CmuAE86r.js");return{diagram:e}},__vite__mapDeps([27,9,10]));return{id:tj,diagram:t}},"loader"),uht={id:tj,detector:lht,loader:cht},hht=uht,ej="sequence",fht=B(t=>/^\s*sequenceDiagram/.test(t),"detector"),dht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./sequenceDiagram-3UESZ5HK-DXssdhHI.js");return{diagram:e}},__vite__mapDeps([28,6,15]));return{id:ej,diagram:t}},"loader"),pht={id:ej,detector:fht,loader:dht},ght=pht,rj="class",mht=B((t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),yht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./classDiagram-4FO5ZUOK-cojzztnL.js");return{diagram:e}},__vite__mapDeps([29,30,8,6,9,10]));return{id:rj,diagram:t}},"loader"),xht={id:rj,detector:mht,loader:yht},bht=xht,ij="classDiagram",vht=B((t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),Cht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./classDiagram-v2-Q7XG4LA2-cojzztnL.js");return{diagram:e}},__vite__mapDeps([31,30,8,6,9,10]));return{id:ij,diagram:t}},"loader"),wht={id:ij,detector:vht,loader:Cht},Sht=wht,nj="state",kht=B((t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),_ht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./stateDiagram-AJRCARHV-jyjJA7Vx.js");return{diagram:e}},__vite__mapDeps([32,33,9,10,1,2]));return{id:nj,diagram:t}},"loader"),Tht={id:nj,detector:kht,loader:_ht},Eht=Tht,aj="stateDiagram",Aht=B((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),Bht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./stateDiagram-v2-BHNVJYJU-CmxCW1S9.js");return{diagram:e}},__vite__mapDeps([34,33,9,10]));return{id:aj,diagram:t}},"loader"),Lht={id:aj,detector:Aht,loader:Bht},Mht=Lht,sj="journey",Nht=B(t=>/^\s*journey/.test(t),"detector"),Oht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./journeyDiagram-JHISSGLW-Ca5D6tBE.js");return{diagram:e}},__vite__mapDeps([35,8,6,23]));return{id:sj,diagram:t}},"loader"),Rht={id:sj,detector:Nht,loader:Oht},Dht=Rht,Fht=B((t,e,r)=>{St.debug(`rendering svg for syntax error
593
+ `);const i=xat(e),n=i.append("g");i.attr("viewBox","0 0 2412 512"),c6(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"),oj={draw:Fht},Iht=oj,qht={db:{},renderer:oj,parser:{parse:B(()=>{},"parse")}},zht=qht,lj="flowchart-elk",jht=B((t,e={})=>{var r;return/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),$ht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./flowDiagram-I6XJVG4X-DMRa3J_m.js");return{diagram:e}},__vite__mapDeps([7,8,6,9,10,11]));return{id:lj,diagram:t}},"loader"),Pht={id:lj,detector:jht,loader:$ht},Hht=Pht,cj="timeline",Uht=B(t=>/^\s*timeline/.test(t),"detector"),Ght=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./timeline-definition-PNZ67QCA-CMZ7Ow2L.js");return{diagram:e}},__vite__mapDeps([36,23]));return{id:cj,diagram:t}},"loader"),Yht={id:cj,detector:Uht,loader:Ght},Wht=Yht,uj="mindmap",Vht=B(t=>/^\s*mindmap/.test(t),"detector"),Xht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./mindmap-definition-RKZ34NQL-CRRCJeZm.js");return{diagram:e}},__vite__mapDeps([37,9,10]));return{id:uj,diagram:t}},"loader"),Qht={id:uj,detector:Vht,loader:Xht},Zht=Qht,hj="kanban",Kht=B(t=>/^\s*kanban/.test(t),"detector"),Jht=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./kanban-definition-UN3LZRKU-BQ6UUXz2.js");return{diagram:e}},__vite__mapDeps([38,8]));return{id:hj,diagram:t}},"loader"),tft={id:hj,detector:Kht,loader:Jht},eft=tft,fj="sankey",rft=B(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ift=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./sankeyDiagram-5OEKKPKP-DRMutNq4.js");return{diagram:e}},__vite__mapDeps([39,24,19]));return{id:fj,diagram:t}},"loader"),nft={id:fj,detector:rft,loader:ift},aft=nft,dj="packet",sft=B(t=>/^\s*packet(-beta)?/.test(t),"detector"),oft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-LMA3HP47-CRSJknuZ.js");return{diagram:e}},__vite__mapDeps([40,14,16]));return{id:dj,diagram:t}},"loader"),lft={id:dj,detector:sft,loader:oft},pj="radar",cft=B(t=>/^\s*radar-beta/.test(t),"detector"),uft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-2AECGRRQ-DHIQUqF0.js");return{diagram:e}},__vite__mapDeps([41,14,16]));return{id:pj,diagram:t}},"loader"),hft={id:pj,detector:cft,loader:uft},gj="block",fft=B(t=>/^\s*block(-beta)?/.test(t),"detector"),dft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./blockDiagram-GPEHLZMM-CZACUlID.js");return{diagram:e}},__vite__mapDeps([42,8,1,11]));return{id:gj,diagram:t}},"loader"),pft={id:gj,detector:fft,loader:dft},gft=pft,mj="treeView",mft=B(t=>/^\s*treeView-beta/.test(t),"detector"),yft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-5GNKFQAL-xlx_pjV_.js");return{diagram:e}},__vite__mapDeps([43,14,15,16]));return{id:mj,diagram:t}},"loader"),xft={id:mj,detector:mft,loader:yft},bft=xft,yj="architecture",vft=B(t=>/^\s*architecture/.test(t),"detector"),Cft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./architectureDiagram-3BPJPVTR-BK7dvXUP.js");return{diagram:e}},__vite__mapDeps([44,14,16,4]));return{id:yj,diagram:t}},"loader"),wft={id:yj,detector:vft,loader:Cft},Sft=wft,xj="eventmodeling",kft=B(t=>/^\s*eventmodeling/.test(t),"detector"),_ft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-KO2AKTUF-B8MO1HgW.js");return{diagram:e}},__vite__mapDeps([45,14,16]));return{id:xj,diagram:t}},"loader"),Tft={id:xj,detector:kft,loader:_ft},Eft=Tft,bj="ishikawa",Aft=B(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),Bft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./ishikawaDiagram-YF4QCWOH-D0jVP7EP.js");return{diagram:e}},[]);return{id:bj,diagram:t}},"loader"),Lft={id:bj,detector:Aft,loader:Bft},vj="venn",Mft=B(t=>/^\s*venn-beta/.test(t),"detector"),Nft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./vennDiagram-CIIHVFJN-GcmWlOLV.js");return{diagram:e}},[]);return{id:vj,diagram:t}},"loader"),Oft={id:vj,detector:Mft,loader:Nft},Rft=Oft,Cj="treemap",Dft=B(t=>/^\s*treemap/.test(t),"detector"),Fft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./diagram-OG6HWLK6-CeTvy4fY.js");return{diagram:e}},__vite__mapDeps([46,10,14,16,20,24,19]));return{id:Cj,diagram:t}},"loader"),Ift={id:Cj,detector:Dft,loader:Fft},wj="wardley-beta",qft=B(t=>/^\s*wardley-beta/i.test(t),"detector"),zft=B(async()=>{const{diagram:t}=await ge(async()=>{const{diagram:e}=await import("./wardleyDiagram-YWT4CUSO-gYWXw-3o.js");return{diagram:e}},__vite__mapDeps([47,14,16]));return{id:wj,diagram:t}},"loader"),jft={id:wj,detector:qft,loader:zft},$ft=jft,iO=!1,rg=B(()=>{iO||(iO=!0,$d("error",zht,t=>t.toLowerCase().trim()==="error"),$d("---",{db:{clear:B(()=>{},"clear")},styles:{},renderer:{draw:B(()=>{},"draw")},parser:{parse:B(()=>{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:B(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),ZC(Hht,Zht,Sft),ZC(Eut,eft,Sht,bht,zut,Wut,Qut,Jut,hht,ght,Dut,Mut,Wht,Hut,Mht,Eht,Dht,iht,aft,lft,oht,gft,Eft,bft,hft,Lft,Ift,Rft,$ft))},"addDiagrams"),Pft=B(async()=>{St.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Zs).map(async([r,{detector:i,loader:n}])=>{if(n)try{r2(r)}catch{try{const{diagram:s,id:o}=await n();$d(o,s,i)}catch(s){throw St.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Zs[r],s}}}))).filter(r=>r.status==="rejected");if(e.length>0){St.error(`Failed to load ${e.length} external diagrams`);for(const r of e)St.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),Hft="graphics-document document";function Sj(t,e){t.attr("role",Hft),e!==""&&t.attr("aria-roledescription",e)}B(Sj,"setA11yDiagramInfo");function kj(t,e,r,i){if(t.insert!==void 0){if(r){const n=`chart-desc-${i}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(r)}if(e){const n=`chart-title-${i}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}B(kj,"addSVGa11yTitleDescription");var Ys,j2=(Ys=class{constructor(e,r,i,n,s){this.type=e,this.text=r,this.db=i,this.parser=n,this.renderer=s}static async fromText(e,r={}){var h,f;const i=Ke(),n=zw(e,i);e=Cot(e)+`
594
+ `;try{r2(n)}catch{const p=Kit(n);if(!p)throw new VF(`Diagram ${n} not found.`);const{id:m,diagram:g}=await p();$d(m,g)}const{db:s,parser:o,renderer:c,init:u}=r2(n);return o.parser&&(o.parser.yy=s),(h=s.clear)==null||h.call(s),u==null||u(i),r.title&&((f=s.setDiagramTitle)==null||f.call(s,r.title)),await o.parse(e),new Ys(n,e,s,o,c)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},B(Ys,"Diagram"),Ys),nO=[],Uft=B(()=>{nO.forEach(t=>{t()}),nO=[]},"attachFunctions"),Gft=B(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function _j(t){const e=t.match(WF);if(!e)return{text:t,metadata:{}};let r=_st(e[1],{schema:kst})??{};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:t.slice(e[0].length),metadata:i}}B(_j,"extractFrontMatter");var Yft=B(t=>t.replace(/\r\n?/g,`
595
+ `).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Wft=B(t=>{const{text:e,metadata:r}=_j(t),{displayMode:i,title:n,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:n,config:s,text:e}},"processFrontmatter"),Vft=B(t=>{const e=rn.detectInit(t)??{},r=rn.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:lot(t),directive:e}},"processDirectives");function MS(t){const e=Yft(t),r=Wft(e),i=Vft(r.text),n=dS(r.config,i.directive);return t=Gft(i.text),{code:t,title:r.title,config:n}}B(MS,"preprocessDiagram");function Tj(t){const e=new TextEncoder().encode(t),r=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(r)}B(Tj,"toBase64");var Xft=5e4,Qft="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Zft="sandbox",Kft="loose",Jft="http://www.w3.org/2000/svg",tdt="http://www.w3.org/1999/xlink",edt="http://www.w3.org/1999/xhtml",rdt="100%",idt="100%",ndt="border:0;margin:0;",adt="margin:0",sdt="allow-top-navigation-by-user-activation allow-popups",odt='The "iframe" tag is not supported by your browser.',ldt=["foreignobject"],cdt=["dominant-baseline"];function NS(t){const e=MS(t);return zd(),_nt(e.config??{}),e}B(NS,"processAndSetConfigs");async function Ej(t,e){rg();try{const{code:r,config:i}=NS(t);return{diagramType:(await Bj(r)).type,config:i}}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}}B(Ej,"parse");var aO=B((t,e,r=[])=>{const i=JF(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${i}`},"cssImportantStyles"),udt=B((t,e=new Map)=>{const r=new CSSStyleSheet;if(t.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),t.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){const c=Kr(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(u=>{b4(u.styles)||c.forEach(h=>{r.insertRule(aO(u.id,h,u.styles),r.cssRules.length)}),b4(u.textStyles)||r.insertRule(aO(u.id,"tspan",((u==null?void 0:u.textStyles)||[]).map(h=>h.replace("color","fill"))),r.cssRules.length)})}let i="";if(t.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const n=new CSSStyleSheet;n.replaceSync(t.themeCSS),i=e2(n)+`
596
+ `}else i+=`${t.themeCSS}
597
+ `;return i+e2(r)},"createCssStyles"),hdt=B((t,e)=>z2(vut(`${t}{${e}}`),Sut([B(function(i,n,s,o){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===F2)return;i.props=i.props.map(c=>c.startsWith(t)?c:`${t} ${c}`)}else i.type.startsWith("@")&&([...[sut,lut,j8,uut,"@container","@starting-style"],F2].includes(i.type)||(St.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=BS))},"addNamespace"),wut])),"compileCSS"),fdt=B((t,e,r,i)=>{const n=udt(t,r),s=Unt(e,n,{...t.themeVariables,theme:t.theme,look:t.look},i);return hdt(i,s)},"createUserStyles"),ddt=B((t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=to(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),pdt=B((t="",e)=>{var n,s;const r=(s=(n=e==null?void 0:e.viewBox)==null?void 0:n.baseVal)!=null&&s.height?e.viewBox.baseVal.height+"px":idt,i=Tj(`<body style="${adt}">${t}</body>`);return`<iframe style="width:${rdt};height:${r};${ndt}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${sdt}">
598
+ ${odt}
599
+ </iframe>`},"putIntoIFrame"),sO=B((t,e,r,i,n)=>{const s=t.append("div");s.attr("id",r),i&&s.attr("style",i);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Jft);return n&&o.attr("xmlns:xlink",n),o.append("g"),t},"appendDivSvgG");function $2(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}B($2,"sandboxedIframe");var gdt=B((t,e,r,i)=>{var n,s,o;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(r))==null||s.remove(),(o=t.getElementById(i))==null||o.remove()},"removeExistingElements"),mdt=B(async function(t,e,r){var z,X,M,F,N,P;rg();const i=NS(e);e=i.code;const n=Ke();St.debug(n),e.length>((n==null?void 0:n.maxTextSize)??Xft)&&(e=Qft);const s=`#${t}`,o="i"+t,c="#"+o,u="d"+t,h="#"+u,f=B(()=>{const q=Ut(m?c:h).node();q&&"remove"in q&&q.remove()},"removeTempElements");let p=Ut(document.body);const m=n.securityLevel===Zft,g=n.securityLevel===Kft,x=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const $=$2(Ut(r),o);p=Ut($.nodes()[0].contentDocument.body),p.node().style.margin="0"}else p=Ut(r);sO(p,t,u,`font-family: ${x}`,tdt)}else{if(gdt(document,t,u,o),m){const $=$2(Ut(document.body),o);p=Ut($.nodes()[0].contentDocument.body),p.node().style.margin="0"}else p=Ut("body");sO(p,t,u)}let v,b;try{v=await j2.fromText(e,{title:i.title})}catch($){if(n.suppressErrorRendering)throw f(),$;v=await j2.fromText("error"),b=$}const w=p.select(h).node(),_=v.type,S=w.firstChild,E=S.firstChild,L=(X=(z=v.renderer).getClasses)==null?void 0:X.call(z,e,v),A=fdt(n,_,L,s),R=document.createElement("style");R.innerHTML=A,S.insertBefore(R,E);try{await v.renderer.draw(e,t,"11.15.0",v)}catch($){throw n.suppressErrorRendering?f():Iht.draw(e,t,"11.15.0"),$}const j=p.select(`${h} svg`),Y=(F=(M=v.db).getAccTitle)==null?void 0:F.call(M),W=(P=(N=v.db).getAccDescription)==null?void 0:P.call(N);Lj(_,j,Y,W),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",edt);let O=p.select(h).node().innerHTML;if(St.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),O=ddt(O,m,pa(n.arrowMarkerAbsolute)),m){const $=p.select(h+" svg").node();O=pdt(O,$)}else g||(O=zl.sanitize(O,{ADD_TAGS:ldt,ADD_ATTR:cdt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Uft(),b)throw b;return f(),{diagramType:_,svg:O,bindFunctions:v.db.bindFunctions}},"render");function Aj(t={}){var i;const e=_r({},t);e!=null&&e.fontFamily&&!((i=e.themeVariables)!=null&&i.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Snt(e),e!=null&&e.theme&&e.theme in oa?e.themeVariables=oa[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=oa.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?wnt(e):t6();qw(r.logLevel),rg()}B(Aj,"initialize");var Bj=B((t,e={})=>{const{code:r}=MS(t);return j2.fromText(r,e)},"getDiagramFromText");function Lj(t,e,r,i){Sj(e,t),kj(e,r,i,e.attr("id"))}B(Lj,"addA11yInfo");var ro=Object.freeze({render:mdt,parse:Ej,getDiagramFromText:Bj,initialize:Aj,getConfig:Ke,setConfig:e6,getSiteConfig:t6,updateSiteConfig:knt,reset:B(()=>{zd()},"reset"),globalReset:B(()=>{zd(jl)},"globalReset"),defaultConfig:jl});qw(Ke().logLevel);zd(Ke());var ydt=B((t,e,r)=>{St.warn(t),fS(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),Mj=B(async function(t={querySelector:".mermaid"}){try{await xdt(t)}catch(e){if(fS(e)&&St.error(e.str),Bi.parseError&&Bi.parseError(e),!t.suppressErrors)throw St.error("Use the suppressErrors option to suppress these errors"),e}},"run"),xdt=B(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=ro.getConfig();St.debug(`${t?"":"No "}Callback function found`);let n;if(r)n=r;else if(e)n=document.querySelectorAll(e);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)),ro.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const s=new rn.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const c=[];for(const u of Array.from(n)){if(St.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const h=`mermaid-${s.next()}`;o=u.innerHTML,o=Gq(rn.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const f=rn.detectInit(o);f&&St.debug("Detected early reinit: ",f);try{const{svg:p,bindFunctions:m}=await Dj(h,o,u);u.innerHTML=p,t&&await t(h),m&&m(u)}catch(p){ydt(p,c,Bi.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),Nj=B(function(t){ro.initialize(t)},"initialize"),bdt=B(async function(t,e,r){St.warn("mermaid.init is deprecated. Please use run instead."),t&&Nj(t);const i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await Mj(i)},"init"),vdt=B(async(t,{lazyLoad:e=!0}={})=>{rg(),ZC(...t),e===!1&&await Pft()},"registerExternalDiagrams"),Oj=B(function(){if(Bi.startOnLoad){const{startOnLoad:t}=ro.getConfig();t&&Bi.run().catch(e=>St.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Oj,!1);var Cdt=B(function(t){Bi.parseError=t},"setParseErrorHandler"),op=[],CC=!1,Rj=B(async()=>{if(!CC){for(CC=!0;op.length>0;){const t=op.shift();if(t)try{await t()}catch(e){St.error("Error executing queue",e)}}CC=!1}},"executeQueue"),wdt=B(async(t,e)=>new Promise((r,i)=>{const n=B(()=>new Promise((s,o)=>{ro.parse(t,e).then(c=>{s(c),r(c)},c=>{var u;St.error("Error parsing",c),(u=Bi.parseError)==null||u.call(Bi,c),o(c),i(c)})}),"performCall");op.push(n),Rj().catch(i)}),"parse"),Dj=B((t,e,r)=>new Promise((i,n)=>{const s=B(()=>new Promise((o,c)=>{ro.render(t,e,r).then(u=>{o(u),i(u)},u=>{var h;St.error("Error parsing",u),(h=Bi.parseError)==null||h.call(Bi,u),c(u),n(u)})}),"performCall");op.push(s),Rj().catch(n)}),"render"),Sdt=B(()=>Object.keys(Zs).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),Bi={startOnLoad:!0,mermaidAPI:ro,parse:wdt,render:Dj,init:bdt,run:Mj,registerExternalDiagrams:vdt,registerLayoutLoaders:I8,initialize:Nj,parseError:void 0,contentLoaded:Oj,setParseErrorHandler:Cdt,detectType:zw,registerIconPacks:Alt,getRegisteredDiagramsMetadata:Sdt},Fj=Bi;/*! Check if previously processed *//*!
600
+ * Wait for document loaded before starting the execution
601
+ */Fj.initialize({startOnLoad:!1,theme:"base",themeVariables:{background:"transparent",fontFamily:"ui-sans-serif, system-ui, sans-serif",primaryColor:"#0a0a0a",primaryTextColor:"#e0e0e0",primaryBorderColor:"#10b981",lineColor:"#34d399",secondaryColor:"#064e3b",tertiaryColor:"#111111",noteBkgColor:"#022c22",noteTextColor:"#e0e0e0",noteBorderColor:"#059669"}});const kdt=({chart:t})=>{const e=lt.useRef(null);return lt.useEffect(()=>{let r=!0;return e.current&&Fj.render(`mermaid-${Math.random().toString(36).substring(2,9)}`,t).then(({svg:i})=>{r&&e.current&&(e.current.innerHTML=i)}).catch(i=>{console.error("Mermaid parsing issue",i),r&&e.current&&(e.current.innerHTML='<div class="text-red-400 text-xs p-2 border border-red-500/20 bg-red-950/30">Failed to render Mermaid diagram</div>')}),()=>{r=!1}},[t]),T.jsx("div",{ref:e,className:"my-6 flex justify-center bg-transparent border border-white/5 p-6 rounded-lg overflow-auto w-full mermaid-wrapper"})},_dt=({content:t})=>{const{setSelectedArtifact:e,setView:r}=ns();return T.jsx("div",{className:"markdown-body prose prose-invert prose-sm max-w-none text-[#e0e0e0]/80",children:T.jsx(zF,{components:{code({node:i,className:n,children:s,...o}){const c=/language-(\w+)/.exec(n||"");return c&&c[1]==="mermaid"?T.jsx(kdt,{chart:String(s).replace(/\n$/,"")}):c?T.jsx("code",{className:n,...o,children:s}):T.jsx("code",{className:"bg-white/10 px-1 py-0.5 rounded text-emerald-400 font-mono text-[11px] whitespace-pre-wrap",...o,children:s})},pre({children:i,...n}){var o,c;return((c=(o=i==null?void 0:i.props)==null?void 0:o.className)==null?void 0:c.includes("language-mermaid"))?T.jsx(T.Fragment,{children:i}):T.jsx("pre",{className:"bg-[#050505] p-3 rounded-md overflow-x-auto text-xs my-3 border border-white/10",...n,children:i})},p({children:i,...n}){return T.jsx("p",{className:"mb-3 leading-relaxed",...n,children:i})},ul({children:i,...n}){return T.jsx("ul",{className:"list-disc pl-5 mb-3 space-y-1",...n,children:i})},ol({children:i,...n}){return T.jsx("ol",{className:"list-decimal pl-5 mb-3 space-y-1",...n,children:i})},h1({children:i,...n}){return T.jsx("h1",{className:"text-xl font-serif text-white mt-6 mb-3",...n,children:i})},h2({children:i,...n}){return T.jsx("h2",{className:"text-lg font-serif text-white mt-5 mb-2 border-b border-white/10 pb-1",...n,children:i})},h3({children:i,...n}){return T.jsx("h3",{className:"text-base font-serif text-white mt-4 mb-2",...n,children:i})},h4({children:i,...n}){return T.jsx("h4",{className:"text-sm font-semibold text-white mt-3 mb-1",...n,children:i})},a({href:i,children:n,...s}){if((i==null?void 0:i.startsWith("#"))||!(i!=null&&i.startsWith("http"))&&!(i!=null&&i.startsWith("mailto"))&&!(i!=null&&i.startsWith("tel"))){const c=i.replace(/^#/,"");return T.jsx("button",{onClick:u=>{u.preventDefault(),e(c),r("docs")},className:"text-emerald-400 hover:text-emerald-300 underline cursor-pointer font-medium p-0 bg-transparent border-0 inline",children:n})}return T.jsx("a",{href:i,target:"_blank",rel:"noreferrer",className:"text-blue-400 hover:text-blue-300 underline",...s,children:n})}},children:t})})},Tdt=({artifact:t})=>{var e,r,i,n,s,o;return!t.layer&&!((e=t.ownership)!=null&&e.owner)&&!((r=t.ownership)!=null&&r.team)?null:T.jsxs("div",{className:"flex gap-2 mb-3 mt-1 pointer-events-none",children:[t.layer&&T.jsxs("span",{className:"text-[9px] text-purple-400 border border-purple-400/20 bg-purple-400/5 px-1.5 py-0.5 rounded-sm font-mono tracking-tighter",children:["LAYER: ",t.layer]}),((i=t.ownership)==null?void 0:i.owner)&&T.jsxs("span",{className:"text-[9px] text-blue-400 border border-blue-400/20 bg-blue-400/5 px-1.5 py-0.5 rounded-sm font-mono tracking-tighter",children:["OWNER: ",(n=t.ownership)==null?void 0:n.owner]}),((s=t.ownership)==null?void 0:s.team)&&T.jsxs("span",{className:"text-[9px] text-emerald-400 border border-emerald-400/20 bg-emerald-400/5 px-1.5 py-0.5 rounded-sm font-mono tracking-tighter",children:["TEAM: ",(o=t.ownership)==null?void 0:o.team]})]})},Edt=[{id:"strategy",title:"Strategy & Planning",icon:FZ,types:["PROJECT","EPIC","FEATURE","BUSINESS_RULE","DECISION","GLOSSARY_TERM","RISK","PROCESS"]},{id:"req",title:"Requirements / Analysis",icon:KD,types:["REQUIREMENT","USE_CASE"]},{id:"design",title:"Architecture & Design",icon:tF,types:["DESIGN","COMPONENT","API","DATABASE_ENTITY"]},{id:"dev",title:"Development",icon:tK,types:["CODE_ENTITY","LIBRARY","ENVIRONMENT"]},{id:"review",title:"Code Review",icon:JD,types:["CODE_ENTITY"]},{id:"ci",title:"Continuous Integration",icon:CK,types:["INFRASTRUCTURE","PIPELINE"]},{id:"verif",title:"Testing / QA",icon:AK,types:["TEST","TEST_CASE","CHECK","BUG"]},{id:"build",title:"Build / Packaging",icon:qZ,types:["INFRASTRUCTURE"]},{id:"deploy",title:"Deployment",icon:SK,types:["DEPLOYMENT"]},{id:"monitor",title:"Monitoring & Feedback",icon:ww,types:["MONITORING","INCIDENT"]},{id:"docs",title:"Documentation",icon:ZD,types:["DOCUMENTATION"]},{id:"maint",title:"Maintenance / Refactoring",icon:OK,types:["MAINTENANCE"]},{id:"retire",title:"Retirement / Replacement",icon:Sw,types:["MAINTENANCE"]},{id:"versions",title:"Releases & Versions",icon:gK,types:["VERSION","SYSTEM_VERSION","CHANGE"]}],Adt=()=>{var J,tt;const{fullGraph:t,currentVersionId:e,versions:r,systemVersions:i,selectedArtifactId:n,setSelectedArtifact:s,settings:o,globalFilters:c,setGlobalFilter:u}=ns(),[h,f]=lt.useState(null),[p,m]=lt.useState(null),[g,x]=lt.useState(""),v=c.layer,b=c.owner,w=c.team,_=K=>u("layer",K),S=K=>u("owner",K),E=K=>u("team",K),[L,A]=lt.useState("ALL"),[R,j]=lt.useState(!1),[Y,W]=lt.useState(!1),[O,z]=lt.useState(!1),[X,M]=lt.useState(o.defaultDocsFocusMode),F=lt.useMemo(()=>{if(!t||!t.artifacts)return{layers:[],owners:[],teams:[]};const K=Array.from(new Set(t.artifacts.map(it=>it.layer).filter(Boolean))),nt=Array.from(new Set(t.artifacts.map(it=>{var dt;return(dt=it.ownership)==null?void 0:dt.owner}).filter(Boolean))),ct=Array.from(new Set(t.artifacts.map(it=>{var dt;return(dt=it.ownership)==null?void 0:dt.team}).filter(Boolean)));return{layers:K,owners:nt,teams:ct}},[t]),N=lt.useMemo(()=>{if(!t)return new Set;const K=new Set;t.relations.forEach(ct=>{K.add(ct.from),K.add(ct.to)});const nt=new Set;return t.artifacts.forEach(ct=>{K.has(ct.id)||nt.add(ct.id)}),nt},[t]),P=lt.useMemo(()=>{if(!n||!t)return new Set;const K=new Set;K.add(n);let nt=new Set([n]);const ct=o.docsFocusDepth===0?1/0:o.docsFocusDepth;for(let it=0;it<ct;it++){let dt=new Set;if(t.relations.forEach(Ct=>{(nt.has(Ct.from)||nt.has(Ct.to))&&(K.has(Ct.from)||dt.add(Ct.from),K.has(Ct.to)||dt.add(Ct.to))}),dt.size===0)break;dt.forEach(Ct=>K.add(Ct)),nt=dt}return K},[n,t,o.docsFocusDepth]),$=lt.useMemo(()=>{const K={};return t&&t.artifacts&&t.artifacts.forEach(nt=>{K[nt.type]||(K[nt.type]=[]),K[nt.type].push(nt)}),K},[t]),q=lt.useMemo(()=>{const K=(Ct=[])=>{if(!g.trim())return Ct;const kt=g.toLowerCase();return Ct.filter(At=>At.title.toLowerCase().includes(kt)||At.description.toLowerCase().includes(kt)||At.id.toLowerCase().includes(kt)||At.subType&&At.subType.toLowerCase().includes(kt))},nt=(Ct=[])=>!n||!X?Ct:Ct.filter(kt=>P.has(kt.id)),ct=(Ct=[])=>Ct.filter(kt=>{var At,Et;return!(v!=="ALL"&&kt.layer!==v||b!=="ALL"&&((At=kt.ownership)==null?void 0:At.owner)!==b||w!=="ALL"&&((Et=kt.ownership)==null?void 0:Et.team)!==w)}),it=(Ct=[])=>nt(ct(K(Ct))),dt={};return Object.keys($).forEach(Ct=>{dt[Ct]=it($[Ct])}),dt},[$,g,n,P,X,v,b,w]),I=lt.useMemo(()=>Edt.map(K=>{let nt=K.types.flatMap(it=>q[it]||[]);K.id==="dev"?nt=nt.filter(it=>it.subType!=="Review"):K.id==="review"?nt=nt.filter(it=>it.subType==="Review"):K.id==="ci"?nt=nt.filter(it=>{var dt;return it.type==="PIPELINE"||it.type==="INFRASTRUCTURE"&&((dt=it.subType)==null?void 0:dt.includes("CI"))}):K.id==="build"?nt=nt.filter(it=>it.type==="INFRASTRUCTURE"&&(it.subType==="Build"||it.subType==="Package")):K.id==="maint"?nt=nt.filter(it=>it.type==="MAINTENANCE"&&it.subType!=="Retirement"):K.id==="retire"&&(nt=nt.filter(it=>it.type==="MAINTENANCE"&&it.subType==="Retirement"));const ct=Array.from(new Set(nt.map(it=>it.subType).filter(Boolean)));if(K.id==="design"&&(q.COMPONENT||[]).length>0){const it=Array.from(new Set((q.COMPONENT||[]).map(dt=>dt.subType).filter(Boolean)));for(const dt of it)ct.includes(dt)||ct.push(dt);it.length===0&&!ct.includes("Component")&&ct.push("Component")}return{...K,count:nt.length,subTypes:ct}}),[q]);if(lt.useEffect(()=>{n&&setTimeout(()=>{const K=document.getElementById(n);K&&K.scrollIntoView({behavior:"smooth",block:"start"})},100)},[n,q]),!t)return T.jsx("div",{className:"p-8",children:"Loading documentation..."});const G=r.find(K=>K.id===e),Z=K=>{h===K&&!p?f(null):(f(K),m(null))},H=(K,nt)=>{p===nt?(m(null),f(K)):(f(K),m(nt))},Q=K=>!(X&&n&&!K);return T.jsxs("div",{className:"h-full w-full bg-[#0a0a0a] flex overflow-hidden print-block",children:[T.jsxs("div",{className:`shrink-0 bg-[#0c0c0c] border-r border-white/5 flex flex-col transition-all duration-300 print-hidden ${R?"w-12":"w-64"}`,children:[T.jsxs("div",{className:"p-4 border-b border-white/5 sticky top-0 bg-[#0c0c0c]/90 backdrop-blur z-10 flex items-center justify-between",children:[!R&&T.jsx("div",{className:"text-[10px] uppercase tracking-widest text-emerald-500 font-bold",children:"Lifecycle Phases"}),T.jsx("button",{onClick:()=>j(!R),className:"p-1 hover:bg-white/10 rounded transition-colors text-white/40 hover:text-white",children:T.jsx(ud,{className:`transition-transform duration-300 ${R?"":"rotate-180"}`,size:16})})]}),T.jsxs("div",{className:`p-4 space-y-1 overflow-y-auto custom-scrollbar flex-1 ${R?"items-center px-2":""}`,children:[!R&&T.jsx("button",{className:`w-full text-left px-4 py-2 text-xs font-semibold uppercase tracking-widest rounded transition-colors mb-2 ${h?"text-white/40 hover:bg-white/5 hover:text-white/80":"bg-white/10 text-white"}`,onClick:()=>{f(null),m(null)},children:"All Assets"}),I.map((K,nt)=>{const ct=K.icon,it=h===K.id;return R?T.jsxs("button",{onClick:()=>Z(K.id),className:`p-2 rounded transition-colors mb-1 group relative ${it?"bg-emerald-500/10 text-emerald-400":"text-white/40 hover:bg-white/5"}`,title:K.title,children:[T.jsx(ct,{size:18}),T.jsxs("div",{className:"absolute left-full ml-2 px-2 py-1 bg-black border border-white/20 text-[10px] whitespace-nowrap rounded opacity-0 group-hover:opacity-100 pointer-events-none z-50",children:[K.title," (",K.count,")"]})]},K.id):T.jsxs("div",{className:"flex flex-col mb-1",children:[T.jsxs("button",{onClick:()=>Z(K.id),className:`w-full text-left px-3 py-2 text-xs transition-colors rounded-sm flex items-center justify-between group
602
+ ${it&&!p?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"text-white/60 hover:bg-white/5 border border-transparent"}`,children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx(ct,{size:14,className:it&&!p?"text-emerald-400":"text-white/40 group-hover:text-white/70"}),T.jsxs("span",{children:[nt+1,". ",K.title]})]}),T.jsx("span",{className:"text-[9px] bg-white/10 px-1.5 py-0.5 rounded-sm tabular-nums opacity-60 group-hover:opacity-100",children:K.count})]}),(it||h===K.id)&&K.subTypes.length>0&&T.jsx("div",{className:"flex flex-col ml-6 mt-1 space-y-0.5 border-l border-white/10 pl-2",children:K.subTypes.map(dt=>T.jsx("button",{onClick:()=>H(K.id,dt),className:`text-left px-2 py-1.5 text-[10px] uppercase tracking-widest transition-colors rounded-sm
603
+ ${p===dt?"text-white bg-white/10 font-bold":"text-white/40 hover:text-white/80 hover:bg-white/5"}`,children:dt},dt))})]},K.id)})]})]}),T.jsx("div",{className:"flex-1 overflow-y-auto relative flex flex-col group/doc",children:T.jsxs("div",{className:"flex flex-col w-full bg-[#0a0a0a] min-h-max",children:[T.jsxs("div",{className:`sticky top-0 z-30 transition-all duration-300 bg-[#0a0a0a]/80 backdrop-blur-md px-8 lg:px-16 border-b border-white/5 flex items-center justify-between print-hidden ${Y?"py-2":"py-8 pt-12 pb-4"}`,children:[T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsx("h1",{className:`font-serif italic tracking-tight transition-all duration-300 ${Y?"text-lg":"text-3xl"}`,children:p?`${p} Documentation`:h?(J=I.find(K=>K.id===h))==null?void 0:J.title:"System Documentation"}),T.jsx("div",{className:"h-4 w-px bg-white/10"}),T.jsx("button",{onClick:()=>W(!Y),className:"p-1 hover:bg-white/10 rounded transition-colors text-white/20 hover:text-white/60",title:Y?"Expand Header":"Minimize Header",children:T.jsx(ud,{className:`transition-transform duration-300 ${Y?"rotate-90":"-rotate-90"}`,size:14})})]}),T.jsxs("div",{className:"flex flex-col md:flex-row gap-2 items-center",children:[n&&T.jsxs("div",{className:"flex items-center gap-2 mr-4",children:[T.jsxs("button",{onClick:()=>M(!X),className:`flex items-center gap-2 px-3 py-1 rounded-sm border transition-all text-[10px] font-mono tracking-tight cursor-pointer ${X?"bg-emerald-500/20 border-emerald-500/40 text-emerald-400":"bg-white/5 border-white/10 text-white/40 hover:text-white/60"}`,children:[T.jsx(ww,{size:12,className:X?"animate-pulse":""}),"FOCUS: ",X?"ON":"OFF"]}),T.jsx("div",{className:"h-4 w-[1px] bg-white/10 mx-1"}),T.jsx("span",{className:"text-[10px] text-white/40 font-mono italic",children:n}),T.jsx("button",{onClick:()=>s(null),className:"p-1 text-white/20 hover:text-red-400 transition-colors",title:"Clear Selection",children:T.jsx(Sw,{size:12})})]}),T.jsxs("div",{className:"flex flex-col gap-2 w-full md:w-auto",children:[T.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[T.jsxs("div",{className:"relative w-full md:w-40",children:[T.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:T.jsx(Uu,{size:14,className:"text-white/40"})}),T.jsx("input",{type:"text",placeholder:"Keywords...",value:g,onChange:K=>x(K.target.value),className:"w-full bg-[#111] border border-white/10 rounded-md py-1.5 pl-8 pr-3 text-xs text-white focus:outline-none focus:border-emerald-500/50 focus:ring-1 focus:ring-emerald-500/50 transition-colors"})]}),T.jsxs("div",{className:"flex gap-1 w-full lg:w-auto",children:[T.jsxs("select",{value:L,onChange:K=>A(K.target.value),className:`bg-transparent py-1 px-2 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider transition-all border rounded-sm ${L!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white",children:"All Types"}),Object.keys($).map(K=>T.jsx("option",{value:K,className:"bg-[#0c0c0c] text-white",children:K.replace("_"," ")},K))]}),T.jsxs("select",{value:n||"",onChange:K=>s(K.target.value||null),className:`bg-transparent py-1 px-2 text-[9px] focus:outline-none cursor-pointer font-mono max-w-[120px] transition-all border rounded-sm ${n?"bg-emerald-500/20 border-emerald-500/40 text-emerald-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"",className:"bg-[#0c0c0c] text-white",children:"Artifact..."}),((t==null?void 0:t.artifacts)||[]).filter(K=>L==="ALL"||K.type===L).sort((K,nt)=>K.id.localeCompare(nt.id)).map(K=>T.jsx("option",{value:K.id,className:"text-white bg-[#0c0c0c]",children:K.id},K.id))]})]}),T.jsx("button",{onClick:()=>window.print(),className:"flex items-center justify-center p-1.5 ml-2 hover:bg-white/10 rounded transition-colors text-white/40 hover:text-white print-hidden",title:"Print Native (System Print Dialog)",children:T.jsx(bK,{size:16})})]}),T.jsxs("div",{className:"flex gap-1 w-full mt-2 lg:mt-0",children:[T.jsxs("select",{value:v,onChange:K=>_(K.target.value),className:`bg-transparent py-1 px-1 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${v!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"LAYER"}),F.layers.map(K=>T.jsx("option",{value:K,className:"bg-[#0c0c0c] text-white font-normal",children:K},K))]}),T.jsxs("select",{value:b,onChange:K=>S(K.target.value),className:`bg-transparent py-1 px-1 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${b!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"OWNER"}),F.owners.map(K=>T.jsx("option",{value:K,className:"bg-[#0c0c0c] text-white font-normal",children:K},K))]}),T.jsxs("select",{value:w,onChange:K=>E(K.target.value),className:`bg-transparent py-1 px-1 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${w!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"TEAM"}),F.teams.map(K=>T.jsx("option",{value:K,className:"bg-[#0c0c0c] text-white font-normal",children:K},K))]})]})]})]})]}),T.jsx("div",{className:"px-8 lg:px-16 pt-4 shrink-0",children:T.jsxs("div",{className:"flex flex-col md:flex-row md:items-start gap-4 md:gap-12 mb-8 mt-2 animate-in fade-in slide-in-from-top-1 duration-300",children:[T.jsxs("div",{className:"text-xs font-mono text-white/40",children:["SYS DOMAIN: ",T.jsx("span",{className:"text-emerald-400 font-bold tracking-widest",children:p?`${p} Documentation`:h?(tt=I.find(K=>K.id===h))==null?void 0:tt.title:"System Documentation"}),T.jsx("br",{}),"VERSION: ",T.jsxs("span",{className:"text-white/80",children:[G==null?void 0:G.name," (",e,")"]}),T.jsx("br",{}),"DATE: ",new Date().toISOString().split("T")[0]]}),i.length>0&&T.jsxs("div",{className:"flex flex-col gap-2",children:[T.jsxs("button",{onClick:()=>z(!O),className:"text-[10px] uppercase tracking-widest text-white/20 font-bold flex items-center gap-2 hover:text-white/40 transition-colors print-hidden",children:["System Inventory",T.jsx(ud,{size:10,className:`transition-transform ${O?"rotate-90":""}`})]}),O&&T.jsx("div",{className:"flex gap-2 flex-wrap animate-in fade-in slide-in-from-top-2 duration-300",children:i.map(K=>T.jsxs("div",{className:"flex items-center gap-2 bg-white/5 border border-white/10 px-2 py-1 rounded text-[10px] tabular-nums",children:[T.jsx("span",{className:"text-emerald-500 font-bold",children:K.component}),T.jsx("span",{className:"text-white/40 font-mono",children:K.version})]},K.id))})]})]})}),T.jsx("div",{className:"flex-1 overflow-y-auto px-8 lg:px-16 pb-12 custom-scrollbar",children:I.map((K,nt)=>{if(h&&h!==K.id)return null;let ct=K.types.flatMap(it=>q[it]||[]);return K.id==="dev"?ct=ct.filter(it=>it.subType!=="Review"):K.id==="review"?ct=ct.filter(it=>it.subType==="Review"):K.id==="ci"?ct=ct.filter(it=>{var dt;return it.type==="PIPELINE"||it.type==="INFRASTRUCTURE"&&((dt=it.subType)==null?void 0:dt.includes("CI"))}):K.id==="build"?ct=ct.filter(it=>it.type==="INFRASTRUCTURE"&&(it.subType==="Build"||it.subType==="Package")):K.id==="maint"?ct=ct.filter(it=>it.type==="MAINTENANCE"&&it.subType!=="Retirement"):K.id==="retire"&&(ct=ct.filter(it=>it.type==="MAINTENANCE"&&it.subType==="Retirement")),p&&(p==="Component"?ct=ct.filter(it=>it.type==="COMPONENT"&&!it.subType):ct=ct.filter(it=>it.subType===p)),!Q(ct.length>0)||ct.length===0&&h!==K.id&&!p?null:T.jsxs("section",{className:"mb-16",children:[T.jsxs("h2",{className:"text-[10px] uppercase tracking-widest text-white/40 mb-6 bg-white/5 p-3 border-l-2 border-white/20",children:[nt+1,". ",K.title]}),ct.length===0&&T.jsx("p",{className:"italic text-white/40 text-xs p-8 bg-white/5 border border-dashed border-white/10 rounded text-center",children:"No active artifacts for this phase."}),T.jsx("div",{className:"space-y-4",children:ct.map(it=>T.jsxs("div",{id:it.id,className:"mb-6 bg-[#0c0c0c] border border-white/10 p-5 pl-6 border-l-[3px] border-l-emerald-500/50 hover:bg-white/[0.02] transition-colors relative group",children:[T.jsxs("h3",{className:"font-serif text-lg text-white flex items-center gap-4 flex-wrap mb-4",children:[T.jsx("button",{onClick:()=>s(it.id),className:`text-[10px] font-mono bg-black px-2 py-1 border border-white/5 uppercase tracking-widest transition-colors hover:border-emerald-500/50 ${n===it.id?"text-emerald-400 border-emerald-500/50":"text-white/40"}`,children:it.id}),it.subType&&T.jsx("span",{className:"text-[10px] font-sans bg-white/5 text-white/60 px-2 py-1 border border-white/10 uppercase tracking-widest",children:it.subType}),N.has(it.id)&&T.jsxs("span",{className:"text-[10px] bg-red-500/10 text-red-400 px-2 py-1 border border-red-500/20 uppercase tracking-widest flex items-center gap-1",children:[T.jsx(ql,{size:10}),"Traceability Gap"]}),T.jsx("span",{children:it.title}),it.version&&T.jsxs("span",{className:"ml-auto text-xs font-mono text-emerald-400 border border-emerald-500/30 bg-emerald-500/10 px-2 py-1 rounded",children:["v",it.version]})]}),T.jsx(Tdt,{artifact:it}),T.jsx(_dt,{content:it.description})]},it.id))})]},K.id)})})]})})]})},Bdt=()=>{var Y,W;const{changes:t,versions:e,fullGraph:r,systemVersions:i,globalFilters:n,setGlobalFilter:s}=ns(),[o,c]=lt.useState(null),[u,h]=lt.useState(""),[f,p]=lt.useState("ALL"),[m,g]=lt.useState("ALL"),x=n.layer,v=n.owner,b=n.team,w=O=>s("layer",O),_=O=>s("owner",O),S=O=>s("team",O),E=lt.useMemo(()=>{if(!r||!r.artifacts)return{layers:[],owners:[],teams:[]};const O=Array.from(new Set(r.artifacts.map(M=>M.layer).filter(Boolean))),z=Array.from(new Set(r.artifacts.map(M=>{var F;return(F=M.ownership)==null?void 0:F.owner}).filter(Boolean))),X=Array.from(new Set(r.artifacts.map(M=>{var F;return(F=M.ownership)==null?void 0:F.team}).filter(Boolean)));return{layers:O,owners:z,teams:X}},[r]);lt.useEffect(()=>{!o&&(t||[]).length>0&&c(t[0].id)},[t,o]);const L=lt.useMemo(()=>(t||[]).filter(O=>{const z=(O.title||"").toLowerCase().includes((u||"").toLowerCase())||(O.description||"").toLowerCase().includes((u||"").toLowerCase()),X=f==="ALL"||O.type===f,M=(O.affects||[]).some(P=>{var Z,H;const $=r==null?void 0:r.artifacts.find(Q=>Q.id===P);if(!$)return!1;const q=x==="ALL"||$.layer===x,I=v==="ALL"||((Z=$.ownership)==null?void 0:Z.owner)===v,G=b==="ALL"||((H=$.ownership)==null?void 0:H.team)===b;return q&&I&&G}),F=x==="ALL"&&v==="ALL"&&b==="ALL"||M,N=m==="ALL"||(O.affects||[]).some(P=>r==null?void 0:r.relations.some($=>$.from!==P&&$.to!==P?!1:m==="IGNORE_WEAK"?$.strength!=="WEAK":$.strength===m));return z&&X&&F&&N}),[t,u,f,x,v,b,m,r]),A=(t||[]).find(O=>O.id===o),R=lt.useMemo(()=>{if(!A)return[];const O=(i||[]).filter(F=>(A.affects||[]).includes(F.id)),z=(A.affects||[]).map(F=>{var N;return(N=r==null?void 0:r.artifacts.find(P=>P.id===F))==null?void 0:N.systemVersionId}).filter(Boolean),X=(i||[]).filter(F=>z.includes(F.id));return([...O,...X]||[]).filter(F=>F!==void 0).reduce((F,N)=>(F.find(P=>P.id===N.id)||F.push(N),F),[])},[A,i,r]),j=lt.useMemo(()=>!A||!r||!r.artifacts?{}:(A.affects||[]).map(z=>r.artifacts.find(X=>X.id===z)).filter(Boolean).reduce((z,X)=>(z[X.type]=(z[X.type]||0)+1,z),{}),[A,r]);return T.jsxs("div",{className:"h-full w-full bg-[#0a0a0a] text-[#e0e0e0] flex overflow-hidden",children:[T.jsxs("div",{className:"w-80 bg-[#0c0c0c] border-r border-white/10 h-full overflow-y-auto shrink-0 z-10 flex flex-col",children:[T.jsxs("div",{className:"p-6 border-b border-white/10 bg-[#0a0a0a]",children:[T.jsxs("div",{className:"text-[10px] uppercase tracking-widest text-white/60 font-bold flex items-center gap-3 mb-4",children:[T.jsx(ww,{size:16,className:"text-emerald-400"})," CHANGE TIMELINE"]}),T.jsxs("div",{className:"space-y-3",children:[T.jsxs("div",{className:"relative",children:[T.jsx(Uu,{size:12,className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/30"}),T.jsx("input",{type:"text",placeholder:"Search changes...",value:u,onChange:O=>h(O.target.value),className:"w-full bg-black/40 border border-white/10 rounded-sm py-1.5 pl-8 pr-3 text-[10px] font-mono focus:border-emerald-500/50 outline-none transition-colors"})]}),T.jsx("div",{className:"flex gap-1",children:["ALL","ERROR","FEATURE","EVOLUTION","REFACTOR","ADAPTATION"].map(O=>T.jsx("button",{onClick:()=>p(O),className:`flex-1 text-[8px] font-bold py-1 border transition-all ${f===O?"bg-emerald-500/20 border-emerald-500/40 text-emerald-400":"bg-transparent border-white/5 text-white/30 hover:border-white/20"}`,children:O},O))}),T.jsx("div",{className:"flex gap-1 pt-2 border-t border-white/5",children:["ALL","STRONG","MEDIUM","WEAK","IGNORE_WEAK"].map(O=>T.jsx("button",{onClick:()=>g(O),className:`flex-1 text-[8px] font-bold py-1 border transition-all ${m===O?"bg-amber-500/20 border-amber-500/40 text-amber-400":"bg-transparent border-white/5 text-white/30 hover:border-white/20"}`,title:`Filter by Relation Strength: ${O}`,children:O==="IGNORE_WEAK"?"NO WEAK":O},O))}),T.jsxs("div",{className:"flex gap-1 pt-2 border-t border-white/5",children:[T.jsxs("select",{value:x,onChange:O=>w(O.target.value),className:`bg-transparent py-1 px-1 text-[8px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border ${x!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"LAYER"}),E.layers.map(O=>T.jsx("option",{value:O,className:"bg-[#0c0c0c] text-white font-normal",children:O},O))]}),T.jsxs("select",{value:v,onChange:O=>_(O.target.value),className:`bg-transparent py-1 px-1 text-[8px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border ${v!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"OWNER"}),E.owners.map(O=>T.jsx("option",{value:O,className:"bg-[#0c0c0c] text-white font-normal",children:O},O))]}),T.jsxs("select",{value:b,onChange:O=>S(O.target.value),className:`bg-transparent py-1 px-1 text-[8px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border ${b!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"TEAM"}),E.teams.map(O=>T.jsx("option",{value:O,className:"bg-[#0c0c0c] text-white font-normal",children:O},O))]})]})]})]}),T.jsxs("div",{className:"flex flex-col flex-1",children:[(L||[]).length>0?(L||[]).map(O=>{var M,F;const z=(M=e.find(N=>N.id===O.versionFrom))==null?void 0:M.name,X=(F=e.find(N=>N.id===O.versionTo))==null?void 0:F.name;return T.jsxs("button",{onClick:()=>c(O.id),className:`p-5 text-left border-b border-white/5 hover:bg-white/5 transition-all outline-none ${o===O.id?"bg-white/5 border-l-[3px] border-l-emerald-500 shadow-inner":"border-l-[3px] border-l-transparent"}`,children:[T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsx("span",{className:`text-[8px] font-bold px-2 py-0.5 border uppercase tracking-widest ${O.type==="ERROR"?"text-red-400 bg-red-400/10 border-red-500/20":O.type==="FEATURE"?"text-emerald-400 bg-emerald-400/10 border-emerald-500/20":O.type==="EVOLUTION"?"text-blue-400 bg-blue-400/10 border-blue-500/20":O.type==="REFACTOR"?"text-amber-400 bg-amber-400/10 border-amber-500/20":O.type==="ADAPTATION"?"text-purple-400 bg-purple-400/10 border-purple-500/20":"text-gray-400 bg-gray-400/10 border-gray-500/20"}`,children:O.type}),T.jsxs("span",{className:"text-[9px] text-white/40 font-mono tracking-tighter truncate max-w-[80px]",children:[z," ",T.jsx(OZ,{size:8,className:"inline opacity-30 mx-0.5"})," ",X]})]}),T.jsx("div",{className:"font-serif text-[#e0e0e0] mb-1 leading-snug text-sm tracking-tight",children:O.title})]},O.id)}):T.jsx("div",{className:"p-8 text-center text-[10px] text-white/20 font-mono italic",children:"No changes found matching criteria"}),(t||[]).length===0&&T.jsx("div",{className:"p-6 text-xs text-white/40 italic text-center",children:"No changes logged."})]})]}),T.jsx("div",{className:"flex-1 overflow-y-auto bg-grid-white/[0.02]",children:A?T.jsxs("div",{className:"max-w-5xl mx-auto p-12",children:[T.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-start mb-12",children:[T.jsxs("div",{className:"flex-1",children:[T.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[T.jsx("div",{className:"h-[1px] w-8 bg-emerald-500/50"}),T.jsx("span",{className:"text-[10px] font-mono text-emerald-500 uppercase tracking-[0.3em]",children:"Lifecycle Intervention"})]}),T.jsx("h2",{className:"text-4xl font-serif italic tracking-tight mb-4 text-white",children:A.title}),T.jsx("p",{className:"text-sm leading-relaxed opacity-60 max-w-2xl font-sans",children:A.description}),(R||[]).length>0&&T.jsxs("div",{className:"mt-8 flex flex-col gap-3",children:[T.jsx("span",{className:"text-[9px] uppercase tracking-widest text-white/20 font-bold",children:"Related Systems"}),T.jsx("div",{className:"flex gap-2 flex-wrap",children:(R||[]).map(O=>T.jsxs("div",{className:"flex items-center gap-3 bg-emerald-500/5 border border-emerald-500/20 px-3 py-1.5 rounded-sm",children:[T.jsx("div",{className:"w-1.5 h-1.5 bg-emerald-400 rounded-full animate-pulse"}),T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-[10px] font-bold text-white/80",children:O.component}),T.jsx("span",{className:"text-[9px] font-mono text-white/40",children:O.version})]})]},O.id))})]})]}),T.jsxs("div",{className:"w-full md:w-64 bg-white/[0.02] border border-white/10 p-6 rounded-sm backdrop-blur-sm",children:[T.jsxs("div",{className:"text-[9px] uppercase tracking-widest text-white/30 font-bold mb-4 flex items-center gap-2",children:[T.jsx(IK,{size:12,className:"text-amber-400"})," Magnitude of Change"]}),T.jsx("div",{className:"space-y-3",children:Object.entries(j||{}).length>0?Object.entries(j||{}).map(([O,z])=>T.jsxs("div",{className:"flex justify-between items-center bg-black/40 px-3 py-1.5 border border-white/5",children:[T.jsx("span",{className:"text-[9px] font-mono text-white/50",children:O}),T.jsxs("span",{className:"text-[10px] font-bold text-emerald-400",children:["+",z]})]},O)):T.jsx("div",{className:"text-[10px] text-white/20 italic",children:"No nodes affected"})})]})]}),T.jsxs("div",{className:"grid grid-cols-1 gap-12",children:[T.jsxs("section",{children:[T.jsxs("h3",{className:"text-[10px] uppercase tracking-[0.3em] text-white/40 mb-8 flex items-center gap-4",children:[T.jsx("span",{children:"Affected Node Inventory"}),T.jsx("div",{className:"flex-1 h-[1px] bg-white/5 shadow-[0_0_10px_rgba(255,255,255,0.05)]"})]}),T.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:(A.affects||[]).map(O=>{var M,F;const z=r==null?void 0:r.artifacts.find(N=>N.id===O),X=i.find(N=>N.id===O);return!z&&!X?T.jsxs("div",{className:"bg-[#0c0c0c] p-6 border border-white/5 flex items-center gap-3 text-red-400/40 opacity-50",children:[T.jsx(rF,{size:16}),T.jsxs("span",{className:"text-[11px] italic",children:["Artifact ",O," (Not in current snapshot)"]})]},O):T.jsxs("div",{className:"bg-[#0c0c0c] p-6 border border-white/5 hover:border-emerald-500/30 transition-all flex items-start flex-col group relative overflow-hidden",children:[T.jsx("div",{className:"absolute top-0 right-0 p-2 opacity-0 group-hover:opacity-100 transition-opacity",children:T.jsx(Uu,{size:14,className:"text-white/20"})}),z?T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-4 w-full",children:[T.jsx("span",{className:"text-[8px] font-bold px-2 py-0.5 bg-white/5 border border-white/10 uppercase tracking-widest text-[#888]",children:z.type}),T.jsx("span",{className:"font-mono text-[9px] text-emerald-500/50",children:z.id})]}),T.jsx("div",{className:"font-serif text-[#f0f0f0] text-base mb-3 group-hover:text-emerald-400 transition-colors",children:z.title}),T.jsxs("div",{className:"flex flex-col gap-2",children:[T.jsxs("div",{className:"flex gap-2 items-center mb-1",children:[z.layer&&T.jsx("span",{className:"text-[8px] border border-emerald-500/20 text-emerald-500/60 font-mono px-1 rounded-sm uppercase",children:z.layer}),((M=z.ownership)==null?void 0:M.owner)&&T.jsxs("span",{className:"text-[8px] text-blue-400 border border-blue-400/20 bg-blue-400/5 font-mono px-1 rounded-sm",children:["OWNER: ",z.ownership.owner]}),((F=z.ownership)==null?void 0:F.team)&&T.jsxs("span",{className:"text-[8px] text-emerald-400 border border-emerald-400/20 bg-emerald-400/5 font-mono px-1 rounded-sm",children:["TEAM: ",z.ownership.team]})]}),T.jsx("div",{className:"text-[11px] text-[#e0e0e0]/40 leading-relaxed font-sans line-clamp-3",children:z.description})]})]}):X&&T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-4 w-full",children:[T.jsx("span",{className:"text-[8px] font-bold px-2 py-0.5 bg-emerald-500/10 border border-emerald-500/20 uppercase tracking-widest text-emerald-400",children:"SYSTEM ENTITY"}),T.jsx("span",{className:"font-mono text-[9px] text-emerald-500/50",children:X.id})]}),T.jsx("div",{className:"font-serif text-[#f0f0f0] text-base mb-3 group-hover:text-emerald-400 transition-colors",children:X.component}),T.jsxs("div",{className:"text-[11px] text-[#e0e0e0]/40 leading-relaxed font-sans",children:["Core system component released on ",new Date(X.releaseDate).toLocaleDateString(),"."]})]})]},O)})})]}),T.jsx("section",{className:"bg-emerald-500/[0.02] border-y border-white/5 p-12 -mx-12",children:T.jsxs("div",{className:"max-w-3xl",children:[T.jsx("h4",{className:"text-[10px] uppercase tracking-widest text-emerald-500/60 font-bold mb-4",children:"Architectural Integrity Report"}),T.jsxs("p",{className:"text-xs text-white/40 leading-relaxed italic",children:["This intervention enabled the transition between ",T.jsx("span",{className:"text-white/60",children:(Y=(e||[]).find(O=>O.id===A.versionFrom))==null?void 0:Y.name})," and ",T.jsx("span",{className:"text-white/60",children:(W=(e||[]).find(O=>O.id===A.versionTo))==null?void 0:W.name}),". The impact is primarily concentrated at the ",T.jsxs("span",{className:"text-white/60",children:[Object.keys(j||{}).join(", ")||"Core"," layer"]}),", affecting critical systems such as ",T.jsx("span",{className:"text-white/60",children:(R||[]).map(O=>O.component).join(", ")||"Base Components"}),".",(()=>{switch(A.type){case"ERROR":return" This change addresses technical debt or a previously identified operational failure.";case"FEATURE":return" The implementation adds capabilities that expand the existing architecture.";case"EVOLUTION":return" This change provides gradual improvements, security, or compliance updates.";case"REFACTOR":return" This change focuses on code re-structuring without altering external behavior.";case"ADAPTATION":return" This change adjusts the system to new environmental or integration constraints.";default:return" This change modifies the system architecture."}})()]})]})})]})]}):T.jsxs("div",{className:"h-full flex flex-col items-center justify-center opacity-20 gap-4",children:[T.jsx(iK,{size:64,className:"animate-pulse"}),T.jsx("div",{className:"text-[10px] uppercase tracking-[0.5em] font-bold",children:"Select a change for analysis"})]})})]})};function Ldt(t,e){const r=t.length,i=t.filter(c=>c.severity==="HIGH").length,n=t.filter(c=>c.severity==="MEDIUM").length,s=t.filter(c=>c.severity==="LOW").length;let o=`# OpenLAG GAPs Report
604
+
605
+ Generated at: ${new Date().toISOString()}
606
+
607
+ Scope: ${e?"filtered":"all"}
608
+
609
+ ## Summary
610
+
611
+ - Total issues: ${r}
612
+ - Critical: ${i}
613
+ - Warning: ${n}
614
+ - Info: ${s}
615
+
616
+ ## Issues
617
+
618
+ `;return r===0?(o+=`*No GAPs found for the current exact filters. Great job!*
619
+ `,o):(t.forEach((c,u)=>{const h=c.artifact;o+=`### ${u+1}. ${h.id} — ${c.severity}
620
+
621
+ `,o+=`- Artifact: ${h.title||"Untitled"}
622
+ `,o+=`- Type: ${h.type}
623
+ `,h.status&&(o+=`- Status: ${h.status}
624
+ `),o+=`- Relation: N/A
625
+ `,o+=`- Reason: ${c.message}
626
+
627
+ `}),o)}function Mdt(t,e){const r=new Blob([e],{type:"text/markdown;charset=utf-8;"}),i=URL.createObjectURL(r),n=document.createElement("a");n.href=i,n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(i)}const Ndt=()=>{const{fullGraph:t,setView:e,selectedArtifactId:r,setSelectedArtifact:i,globalFilters:n,setGlobalFilter:s}=ns(),[o,c]=lt.useState(""),[u,h]=lt.useState("ALL"),[f,p]=lt.useState("ALL"),m=n.layer,g=n.owner,x=n.team,v=z=>s("layer",z),b=z=>s("owner",z),w=z=>s("team",z),_=lt.useMemo(()=>{if(!t||!t.artifacts)return{layers:[],owners:[],teams:[]};const z=new Set,X=new Set,M=new Set;return t.artifacts.forEach(F=>{var N,P;F.layer&&z.add(F.layer),(N=F.ownership)!=null&&N.owner&&X.add(F.ownership.owner),(P=F.ownership)!=null&&P.team&&M.add(F.ownership.team)}),{layers:Array.from(z).sort(),owners:Array.from(X).sort(),teams:Array.from(M).sort()}},[t]),S=lt.useMemo(()=>{if(!t)return[];const z=new Set;t.relations.forEach(M=>{z.add(M.from),z.add(M.to)});const X=[];return t.artifacts.forEach(M=>{var F,N;z.has(M.id)||X.push({artifact:M,type:"ORPHAN",message:"No relationships defined",severity:"HIGH"}),M.layer||X.push({artifact:M,type:"NO_LAYER",message:"Missing layer classification",severity:"MEDIUM"}),(F=M.ownership)!=null&&F.owner||X.push({artifact:M,type:"NO_OWNER",message:"Missing ownership (owner)",severity:"HIGH"}),(N=M.ownership)!=null&&N.team||X.push({artifact:M,type:"NO_TEAM",message:"Missing organizational team",severity:"LOW"}),(!M.description||M.description.length<5)&&X.push({artifact:M,type:"NO_DESCRIPTION",message:"Description is too short or missing",severity:"MEDIUM"})}),X},[t]),E=lt.useMemo(()=>S.filter(z=>{var P,$;const X=z.artifact;if(m!=="ALL"&&X.layer!==m||g!=="ALL"&&((P=X.ownership)==null?void 0:P.owner)!==g||x!=="ALL"&&(($=X.ownership)==null?void 0:$.team)!==x||r&&X.id!==r)return!1;const M=X.id.toLowerCase().includes(o.toLowerCase())||X.title.toLowerCase().includes(o.toLowerCase())||(X.description||"").toLowerCase().includes(o.toLowerCase()),F=u==="ALL"||X.type===u,N=f==="ALL"||z.type===f;return M&&F&&N}),[S,o,u,f,m,g,x,r]),L=lt.useMemo(()=>["REQUIREMENT","USE_CASE","DESIGN","COMPONENT","CODE_ENTITY","TEST","DOCUMENTATION","INCIDENT","INFRASTRUCTURE","DEPLOYMENT","MONITORING","MAINTENANCE"],[]),A=lt.useMemo(()=>Array.from(new Set(S.map(z=>z.type))),[S]),R=z=>{i(z),e("docs")},j=o!==""||u!=="ALL"||f!=="ALL"||m!=="ALL"||g!=="ALL"||x!=="ALL"||r!==null,Y=()=>{const z=Ldt(E,j);Mdt("openlag-gaps-report.md",z)};if(!t)return T.jsx("div",{className:"p-8 text-white/50",children:"Loading..."});const W=({severity:z})=>{switch(z){case"HIGH":return T.jsx(rF,{size:14,className:"text-red-500/80"});case"MEDIUM":return T.jsx(iF,{size:14,className:"text-amber-500/80"});case"LOW":return T.jsx(uK,{size:14,className:"text-blue-500/80"});default:return T.jsx(ql,{size:14,className:"text-white/40"})}},O=z=>{switch(z){case"HIGH":return"border-red-500/20 bg-red-500/5 hover:border-red-500/40 text-red-400";case"MEDIUM":return"border-amber-500/20 bg-amber-500/5 hover:border-amber-500/40 text-amber-400";case"LOW":return"border-blue-500/20 bg-blue-500/5 hover:border-blue-500/40 text-blue-400";default:return"border-white/10 hover:border-white/30 text-white/60"}};return T.jsxs("div",{className:"h-full w-full bg-[#0a0a0a] flex flex-col overflow-hidden",children:[T.jsx("div",{className:"p-8 lg:px-16 pt-12 shrink-0 border-b border-white/5 bg-[#0c0c0c]/30",children:T.jsxs("div",{className:"flex flex-col md:flex-row md:items-start justify-between gap-6 mb-8",children:[T.jsxs("div",{className:"flex-1",children:[T.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[T.jsx("h1",{className:"text-3xl font-serif italic tracking-tight",children:"Traceability GAPs"}),T.jsxs("div",{className:"bg-red-500/20 border border-red-500/30 text-red-400 text-[10px] font-mono px-2 py-0.5 rounded uppercase tracking-wider flex items-center gap-1.5 shadow-[0_0_15px_rgba(239,68,68,0.1)]",children:[T.jsx(ql,{size:12}),E.length," Violations Found"]})]}),T.jsx("p",{className:"text-xs text-white/40 max-w-2xl leading-relaxed",children:"These artifacts have been flagged for structural or documentation violations such as missing links, absent ownership, or incomplete descriptions. Clean these up to improve the system's traceability."})]}),T.jsxs("div",{className:"flex flex-col items-end gap-2 shrink-0",children:[T.jsxs("div",{className:"flex gap-2 p-0.5 bg-white/5 border border-white/10 rounded-md w-full",children:[T.jsxs("div",{className:"relative flex items-center flex-1",children:[T.jsx(Uu,{className:"absolute left-3 text-white/20",size:12}),T.jsx("input",{type:"text",placeholder:"Search...",value:o,onChange:z=>c(z.target.value),className:"bg-transparent border-none py-1.5 pl-8 pr-3 text-[10px] text-white focus:outline-none w-full placeholder:text-white/10"})]}),T.jsx("div",{className:"w-px h-4 bg-white/10 self-center"}),T.jsxs("select",{value:f,onChange:z=>p(z.target.value),className:`bg-transparent py-1.5 px-3 text-[10px] outline-none cursor-pointer uppercase tracking-widest transition-all border rounded-sm flex-1 ${f!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-transparent border-l-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"All Violations"}),A.map(z=>T.jsx("option",{value:z,className:"bg-[#0c0c0c] text-white font-normal",children:z.replace("_"," ")},z))]}),T.jsxs("select",{value:u,onChange:z=>h(z.target.value),className:`bg-transparent py-1.5 px-3 text-[10px] outline-none cursor-pointer uppercase tracking-widest transition-all border rounded-sm flex-1 ${u!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-transparent border-l-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"All Types"}),L.map(z=>T.jsx("option",{value:z,className:"bg-[#0c0c0c] text-white font-normal",children:z.replace("_"," ")},z))]}),T.jsxs("select",{value:r||"",onChange:z=>i(z.target.value||null),className:`bg-transparent py-1.5 px-3 text-[10px] outline-none cursor-pointer tracking-widest transition-all border rounded-sm flex-1 font-mono max-w-[150px] ${r?"bg-emerald-500/20 border-emerald-500/40 text-emerald-400 font-bold":"border-transparent border-l-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"",className:"bg-[#0c0c0c] text-white font-sans uppercase",children:"Artifact..."}),((t==null?void 0:t.artifacts)||[]).filter(z=>u==="ALL"||z.type===u).sort((z,X)=>z.id.localeCompare(X.id)).map(z=>T.jsx("option",{value:z.id,className:"bg-[#0c0c0c] text-white",children:z.id},z.id))]})]}),T.jsxs("div",{className:"flex gap-1 w-full lg:w-auto items-center",children:[T.jsxs("select",{value:m,onChange:z=>v(z.target.value),className:`bg-transparent py-1 px-1 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${m!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"LAYER"}),_.layers.map(z=>T.jsx("option",{value:z,className:"bg-[#0c0c0c] text-white font-normal",children:z},z))]}),T.jsxs("select",{value:g,onChange:z=>b(z.target.value),className:`bg-transparent py-1 px-1 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${g!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"OWNER"}),_.owners.map(z=>T.jsx("option",{value:z,className:"bg-[#0c0c0c] text-white font-normal",children:z},z))]}),T.jsxs("select",{value:x,onChange:z=>w(z.target.value),className:`bg-transparent py-1 px-1 text-[9px] focus:outline-none cursor-pointer uppercase tracking-wider flex-1 text-center transition-all border rounded-sm ${x!=="ALL"?"bg-blue-500/20 border-blue-500/40 text-blue-400 font-bold":"border-white/10 text-white/50 hover:border-white/20"}`,children:[T.jsx("option",{value:"ALL",className:"bg-[#0c0c0c] text-white font-normal",children:"TEAM"}),_.teams.map(z=>T.jsx("option",{value:z,className:"bg-[#0c0c0c] text-white font-normal",children:z},z))]}),T.jsxs("button",{onClick:Y,className:"bg-emerald-500/20 text-emerald-400 hover:bg-emerald-500/30 border border-emerald-500/40 font-mono text-[9px] uppercase tracking-widest px-3 py-1 flex items-center gap-1.5 rounded-sm transition-all h-full",title:"Download GAPs Report",children:[T.jsx(QZ,{size:12}),"Generar reporte"]})]})]})]})}),T.jsx("div",{className:"flex-1 overflow-y-auto p-8 lg:px-16 pb-12 custom-scrollbar",children:E.length===0?T.jsxs("div",{className:"h-64 flex flex-col items-center justify-center border border-dashed border-white/10 rounded-lg",children:[T.jsx(Sw,{className:"text-white/10 mb-4",size:48,strokeWidth:1}),T.jsx("p",{className:"text-white/30 text-sm italic",children:"No violations found matching filters."})]}):T.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:E.map((z,X)=>{var F,N;const M=z.artifact;return T.jsxs("div",{className:`border p-5 rounded-sm transition-all group relative overflow-hidden flex flex-col ${O(z.severity)}`,children:[T.jsx("div",{className:"absolute top-0 right-0 p-3 opacity-0 group-hover:opacity-100 transition-opacity",children:T.jsx("button",{onClick:()=>R(M.id),className:"p-2 bg-white/5 hover:bg-emerald-500/20 text-white/40 hover:text-emerald-400 rounded transition-colors",title:"View in Documentation",children:T.jsx(KZ,{size:14})})}),T.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[T.jsx("div",{className:`p-2 rounded border bg-black/40 ${O(z.severity)}`,children:T.jsx(W,{severity:z.severity})}),T.jsxs("div",{className:"flex flex-col gap-1",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest leading-none",children:z.type}),M.layer&&T.jsx("span",{className:"text-[8px] bg-white/5 text-white/50 px-1 rounded-sm uppercase tracking-widest",children:M.layer})]}),T.jsx("span",{className:"text-[9px] font-mono text-white/20 mt-1 uppercase tracking-tighter italic leading-none",children:M.id})]})]}),T.jsxs("div",{className:"mb-4",children:[T.jsx("div",{className:"text-[10px] font-mono text-white/60 mb-1 opacity-60",children:"Message"}),T.jsx("div",{className:"font-serif text-sm leading-tight",children:z.message})]}),T.jsx("hr",{className:"border-white/5 my-4"}),T.jsx("h3",{className:"font-serif text-lg text-white mb-2 leading-tight",children:M.title}),(((F=M.ownership)==null?void 0:F.owner)||((N=M.ownership)==null?void 0:N.team))&&T.jsxs("div",{className:"flex gap-2 mb-2",children:[M.ownership.owner&&T.jsxs("span",{className:"text-[9px] text-blue-400 border border-blue-400/20 bg-blue-400/5 px-1 rounded-sm font-mono",children:["OWNER: ",M.ownership.owner]}),M.ownership.team&&T.jsxs("span",{className:"text-[9px] text-emerald-400 border border-emerald-400/20 bg-emerald-400/5 px-1 rounded-sm font-mono",children:["TEAM: ",M.ownership.team]})]}),T.jsx("p",{className:"text-xs text-white/40 leading-relaxed line-clamp-2 mb-6 flex-1 min-h-[36px]",children:M.description}),T.jsxs("div",{className:"flex items-center justify-between border-t border-white/5 pt-4 mt-auto",children:[T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-[8px] uppercase tracking-tighter text-white/20",children:"Artifact Type"}),T.jsx("span",{className:"text-[10px] text-white/60 font-mono",children:M.type})]}),M.subType&&T.jsxs("div",{className:"flex flex-col border-l border-white/10 pl-4",children:[T.jsx("span",{className:"text-[8px] uppercase tracking-tighter text-white/20",children:"Subtype"}),T.jsx("span",{className:"text-[10px] text-white/60 font-mono",children:M.subType})]})]}),T.jsxs("button",{onClick:()=>R(M.id),className:"text-[10px] text-emerald-400/60 hover:text-emerald-400 font-bold uppercase tracking-widest flex items-center gap-1.5 transition-colors",children:["Open Docs",T.jsx(ud,{size:12})]})]})]},`${M.id}-${z.type}-${X}`)})})})]})},Odt=()=>{const{settings:t}=ns(),e=t.language||"EN",i={EN:{title:"Management Guide",desc:"Instructions for maintaining the architectural graph, documenting artifacts, and managing the project lifecycle according to OpenLAG v0.1 Specification.",langBtn:"Switch to Spanish",layerTaxonomy:"Layer Taxonomy & Artifacts",layerTaxonomyDesc:"OpenLAG classifies artifacts into semantic layers to understand their abstraction level and valid relations.",businessLayer:"Business Layer",businessLayerDesc:"Defines what to build and why. Align business goals without dictating implementation.",architectureLayer:"Architecture Layer",architectureLayerDesc:"Defines technical design and constraints of the system.",implementationLayer:"Implementation Layer",implementationLayerDesc:"Models code, tests, databases and its traceability.",operationsLayer:"Operations Layer",operationsLayerDesc:"Models infrastructure, deployment, and runtime health observability.",docsLayer:"Documentation Layer",docsLayerDesc:"Cross-cutting knowledge context.",relations:"Relationship Semantics & Strength",relationsDesc:"Relations define a semantic weight (Strength) and category purpose between artifacts.",strongRelations:"Strong",strongRelationsDesc:"Direct coupling: IMPLEMENTS, TESTS, DEPENDS_ON, BLOCKS, BREAKS, DEFINES, VALIDATES, REPLACES",mediumRelations:"Medium",mediumRelationsDesc:"Descriptive/Flow: DERIVES_FROM, USES, IMPACTS, JUSTIFIES, REFINES, MONITORS, DEPLOYS",weakRelations:"Weak",weakRelationsDesc:"Semantic/Loose: RELATES_TO, DOCUMENTS",changeTypes:"Change Types",changeTypesDesc:"Defines the nature of an architectural change or modification:",error:{label:"ERROR",desc:"Fixes for bugs or critical technical debt."},feature:{label:"FEATURE",desc:"New capabilities impacting architecture."},evolution:{label:"EVOLUTION",desc:"Gradual improvements, security or compliance updates."},refactor:{label:"REFACTOR",desc:"Code restructurings without changing external behavior."},adaptation:{label:"ADAPTATION",desc:"Changes to adjust to new environmental/integration constraints."},frontmatter:"Official Markdown Format",frontmatterDesc:"Each artifact requires a YAML frontmatter. Mandatory fields: id, type, status, title.",statusFlow:"Lifecycle Status Flow",statusFlowDesc:"Evolution of artifacts. The system tolerates missing relations in 'draft', but expects full traceability in 'closed'.",versions:"Project & System Versions",versionsDesc:"The docs/versions/ directory controls the global timeline and component versions.",bestPractices:"Best Practices & ID Conventions",bestPracticesDesc:"IDs must be unique and stable (e.g. REQ-001, CODE-023). Prefix defines the logical type.",tutorialTitle:"Step-by-Step Tutorial",tutorialDesc:"Follow these steps to structure a complete project using the OpenLAG specification.",step1Title:"Step 1: The Global Versions",step1Desc:"Always start by defining global versions of the project creating separate files inside docs/versions/ (e.g. docs/versions/v-1.md).",step2Title:"Step 2: Business Requirements",step2Desc:"Create the Business Layer artifacts (e.g., REQ-001) defining what needs to be built.",step3Title:"Step 3: Architecture & Design",step3Desc:"Define the Architecture Layer (e.g., DESIGN-001) and link it to the Business requirement.",step4Title:"Step 4: Implementation & Operations",step4Desc:"Finally, define Code and Infra (e.g., CODE-001, INFRA-001) linking them back up the chain.",step5Title:"Step 5: System Versions",step5Desc:"Document external libraries and components in individual files inside docs/versions/ (e.g. sv-lib-1.md) using SYSTEM_VERSION artifacts.",step6Title:"Step 6: Changes & Tracking",step6Desc:"Add CHANGE type artifacts inside docs/changes/ to govern modifications, bugs, or major refactors affecting the graph."},ES:{title:"Guía de Gestión",desc:"Instrucciones para mantener el grafo arquitectónico, documentar artefactos y gestionar el ciclo de vida según la Especificación OpenLAG v0.1.",langBtn:"Cambiar a Inglés",layerTaxonomy:"Taxonomía de Capas y Artefactos",layerTaxonomyDesc:"OpenLAG clasifica los artefactos en capas semánticas para entender su nivel de abstracción y relaciones válidas.",businessLayer:"Business Layer",businessLayerDesc:"Define qué construir y por qué. Alinea negocio sin dictar implementación.",architectureLayer:"Architecture Layer",architectureLayerDesc:"Define el diseño y los límites técnicos del sistema.",implementationLayer:"Implementation Layer",implementationLayerDesc:"Modela código, tests, bases de datos y su trazabilidad.",operationsLayer:"Operations Layer",operationsLayerDesc:"Modela infraestructura, despliegue y estado de ejecución/observabilidad.",docsLayer:"Documentation Layer",docsLayerDesc:"Contexto y conocimiento transversal.",relations:"Semántica y Peso de Relaciones",relationsDesc:"Las relaciones definen un peso semántico (Strength) y categoría entre los artefactos.",strongRelations:"Fuerte (Strong)",strongRelationsDesc:"Acoplamiento directo: IMPLEMENTS, TESTS, DEPENDS_ON, BLOCKS, BREAKS, DEFINES, VALIDATES, REPLACES",mediumRelations:"Media (Medium)",mediumRelationsDesc:"Descriptivas o de flujo: DERIVES_FROM, USES, IMPACTS, JUSTIFIES, REFINES, MONITORS, DEPLOYS",weakRelations:"Débil (Weak)",weakRelationsDesc:"Semánticas y laxas: RELATES_TO, DOCUMENTS",changeTypes:"Tipos de Cambios (Change Types)",changeTypesDesc:"Naturaleza de una modificación arquitectónica:",error:{label:"ERROR",desc:"Corrección de fallos o deuda técnica crítica."},feature:{label:"FEATURE",desc:"Nuevas capacidades con impacto en la arquitectura."},evolution:{label:"EVOLUTION",desc:"Mejoras graduales, seguridad o actualizaciones de cumplimiento."},refactor:{label:"REFACTOR",desc:"Reestructuraciones sin alterar el comportamiento externo."},adaptation:{label:"ADAPTATION",desc:"Ajustes para nuevas integraciones o restricciones del entorno."},frontmatter:"Formato Oficial Markdown",frontmatterDesc:"Cada artefacto requiere un YAML frontmatter. Campos obligatorios: id, type, status, title.",statusFlow:"Estados y Ciclo de Vida",statusFlowDesc:"En estado 'draft' se permiten huérfanos, pero en 'closed' se exige trazabilidad completa.",versions:"Versiones del Sistema y Proyecto",versionsDesc:"El directorio docs/versions/ define las versiones temporales globales y de componentes.",bestPractices:"Buenas Prácticas y Convención de IDs",bestPracticesDesc:"Los IDs deben ser únicos y estables (Ej: REQ-001). El prefijo define su tipo lógico de forma clara.",tutorialTitle:"Tutorial Paso a Paso",tutorialDesc:"Sigue estos pasos para estructurar un proyecto completo usando la especificación OpenLAG.",step1Title:"Paso 1: Versiones Globales",step1Desc:"Comienza siempre definiendo versiones a nivel global del proyecto creando archivos separados en docs/versions/ (ej. docs/versions/v-1.md).",step2Title:"Paso 2: Requisitos de Negocio",step2Desc:"Crea los artefactos de la Capa de Negocio (Ej. REQ-001) para definir qué se debe construir.",step3Title:"Paso 3: Arquitectura y Diseño",step3Desc:"Define la Capa de Arquitectura (Ej. DESIGN-001) y enlaza con los requisitos de negocio.",step4Title:"Paso 4: Implementación y Operaciones",step4Desc:"Finalmente, documenta Código e Infra (Ej. CODE-001, INFRA-001) trazando los enlaces hacia arriba.",step5Title:"Paso 5: Versiones de Sistemas",step5Desc:"Documenta en archivos individuales dentro de docs/versions/ (ej. sv-lib-1.md) los componentes y librerías externas mediante artefactos de tipo SYSTEM_VERSION.",step6Title:"Paso 6: Registro de Cambios",step6Desc:"Añade en docs/changes/ artefactos de tipo CHANGE para gobernar las modificaciones, errores o refactors mayores que afecten el grafo."}}[e];return T.jsxs("div",{className:"h-full w-full bg-[#0a0a0a] flex flex-col overflow-hidden",children:[T.jsxs("div",{className:"p-8 lg:px-16 pt-12 shrink-0 border-b border-white/5 bg-[#0c0c0c]/30",children:[T.jsx("div",{className:"flex items-center justify-between mb-2",children:T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("h1",{className:"text-3xl font-serif italic tracking-tight",children:i.title}),T.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 bg-blue-500/10 border border-blue-500/20 text-blue-400 text-[10px] font-mono rounded uppercase tracking-widest",children:[T.jsx(lK,{size:12}),e==="EN"?"English":"Español"]})]})}),T.jsx("p",{className:"text-xs text-white/40 max-w-2xl leading-relaxed",children:i.desc})]}),T.jsxs("div",{className:"flex-1 overflow-y-auto p-8 lg:px-16 pb-20 custom-scrollbar space-y-16",children:[T.jsxs("section",{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-pink-500/10 rounded border border-pink-500/20",children:T.jsx(tF,{size:18,className:"text-pink-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.layerTaxonomy})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.layerTaxonomyDesc}),T.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-6 rounded relative overflow-hidden group",children:[T.jsx("h3",{className:"text-sm font-bold text-white/80 mb-2 uppercase tracking-widest",children:i.businessLayer}),T.jsx("p",{className:"text-[11px] text-white/40 leading-relaxed mb-4",children:i.businessLayerDesc}),T.jsx("div",{className:"flex flex-wrap gap-2",children:["PROJECT","EPIC","FEATURE","REQUIREMENT","BUSINESS_RULE","USE_CASE"].map(n=>T.jsx("span",{className:"text-[9px] bg-white/5 px-1.5 py-0.5 rounded text-white/60",children:n},n))})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-6 rounded relative overflow-hidden group",children:[T.jsx("h3",{className:"text-sm font-bold text-white/80 mb-2 uppercase tracking-widest",children:i.architectureLayer}),T.jsx("p",{className:"text-[11px] text-white/40 leading-relaxed mb-4",children:i.architectureLayerDesc}),T.jsx("div",{className:"flex flex-wrap gap-2",children:["DESIGN","DECISION","COMPONENT","API"].map(n=>T.jsx("span",{className:"text-[9px] bg-white/5 px-1.5 py-0.5 rounded text-white/60",children:n},n))})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-6 rounded relative overflow-hidden group",children:[T.jsx("h3",{className:"text-sm font-bold text-white/80 mb-2 uppercase tracking-widest",children:i.implementationLayer}),T.jsx("p",{className:"text-[11px] text-white/40 leading-relaxed mb-4",children:i.implementationLayerDesc}),T.jsx("div",{className:"flex flex-wrap gap-2",children:["CODE_ENTITY","TEST_CASE","DATABASE_ENTITY","CHANGE","BUG","RISK","TEST"].map(n=>T.jsx("span",{className:"text-[9px] bg-white/5 px-1.5 py-0.5 rounded text-white/60",children:n},n))})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-6 rounded relative overflow-hidden group",children:[T.jsx("h3",{className:"text-sm font-bold text-white/80 mb-2 uppercase tracking-widest",children:i.operationsLayer}),T.jsx("p",{className:"text-[11px] text-white/40 leading-relaxed mb-4",children:i.operationsLayerDesc}),T.jsx("div",{className:"flex flex-wrap gap-2",children:["INFRASTRUCTURE","DEPLOYMENT","MONITORING","INCIDENT","MAINTENANCE"].map(n=>T.jsx("span",{className:"text-[9px] bg-white/5 px-1.5 py-0.5 rounded text-white/60",children:n},n))})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-6 rounded relative overflow-hidden group",children:[T.jsx("h3",{className:"text-sm font-bold text-white/80 mb-2 uppercase tracking-widest",children:i.docsLayer}),T.jsx("p",{className:"text-[11px] text-white/40 leading-relaxed mb-4",children:i.docsLayerDesc}),T.jsx("div",{className:"flex flex-wrap gap-2",children:["GLOSSARY_TERM","DOCUMENTATION"].map(n=>T.jsx("span",{className:"text-[9px] bg-white/5 px-1.5 py-0.5 rounded text-white/60",children:n},n))})]})]})]}),T.jsxs("section",{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-indigo-500/10 rounded border border-indigo-500/20",children:T.jsx(dK,{size:18,className:"text-indigo-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.relations})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.relationsDesc}),T.jsxs("div",{className:"space-y-4",children:[T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-5 rounded flex items-start gap-4",children:[T.jsx("div",{className:"w-2 h-2 rounded-full bg-red-500 mt-1.5 shrink-0"}),T.jsxs("div",{children:[T.jsx("h4",{className:"text-sm font-bold text-white mb-1",children:i.strongRelations}),T.jsx("p",{className:"text-xs text-white/60 font-mono leading-relaxed",children:i.strongRelationsDesc})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-5 rounded flex items-start gap-4",children:[T.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 mt-1.5 shrink-0"}),T.jsxs("div",{children:[T.jsx("h4",{className:"text-sm font-bold text-white mb-1",children:i.mediumRelations}),T.jsx("p",{className:"text-xs text-white/60 font-mono leading-relaxed",children:i.mediumRelationsDesc})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 p-5 rounded flex items-start gap-4",children:[T.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500 mt-1.5 shrink-0"}),T.jsxs("div",{children:[T.jsx("h4",{className:"text-sm font-bold text-white mb-1",children:i.weakRelations}),T.jsx("p",{className:"text-xs text-white/60 font-mono leading-relaxed",children:i.weakRelationsDesc})]})]})]})]}),T.jsxs("section",{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-indigo-500/10 rounded border border-indigo-500/20",children:T.jsx(rN,{size:18,className:"text-indigo-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.changeTypes})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.changeTypesDesc}),T.jsx("div",{className:"space-y-4",children:T.jsx("div",{className:"bg-[#0c0c0c] border border-white/5 p-5 rounded",children:T.jsxs("ul",{className:"space-y-3",children:[T.jsxs("li",{className:"text-sm text-white/80 font-mono",children:[T.jsx("span",{className:"text-rose-400 font-bold p-1 bg-rose-500/10 rounded mr-2",children:i.error.label})," ",i.error.desc]}),T.jsxs("li",{className:"text-sm text-white/80 font-mono",children:[T.jsx("span",{className:"text-emerald-400 font-bold p-1 bg-emerald-500/10 rounded mr-2",children:i.feature.label})," ",i.feature.desc]}),T.jsxs("li",{className:"text-sm text-white/80 font-mono",children:[T.jsx("span",{className:"text-blue-400 font-bold p-1 bg-blue-500/10 rounded mr-2",children:i.evolution.label})," ",i.evolution.desc]}),T.jsxs("li",{className:"text-sm text-white/80 font-mono",children:[T.jsx("span",{className:"text-amber-400 font-bold p-1 bg-amber-500/10 rounded mr-2",children:i.refactor.label})," ",i.refactor.desc]}),T.jsxs("li",{className:"text-sm text-white/80 font-mono",children:[T.jsx("span",{className:"text-purple-400 font-bold p-1 bg-purple-500/10 rounded mr-2",children:i.adaptation.label})," ",i.adaptation.desc]})]})})})]}),T.jsxs("section",{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-emerald-500/10 rounded border border-emerald-500/20",children:T.jsx(aK,{size:18,className:"text-emerald-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.statusFlow})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.statusFlowDesc}),T.jsx("div",{className:"flex flex-col md:flex-row items-center gap-4",children:["draft","in_progress","ready","closed","deprecated"].map((n,s)=>T.jsxs(sl.Fragment,{children:[T.jsx("div",{className:"bg-[#0c0c0c] border border-white/10 px-4 py-2 rounded text-xs font-mono text-white/80",children:n}),s<4&&T.jsx("div",{className:"h-4 w-px md:h-px md:w-8 md:flex-1 bg-white/20"})]},n))})]}),T.jsxs("section",{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-purple-500/10 rounded border border-purple-500/20",children:T.jsx(rN,{size:18,className:"text-purple-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.frontmatter})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.frontmatterDesc}),T.jsxs("div",{className:"bg-black/40 border border-white/5 rounded-lg overflow-hidden",children:[T.jsx("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/requirements/REQ-001.md"})}),T.jsx("div",{className:"p-6",children:T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-white/60 select-all",children:`---
628
+ id: REQ-001
629
+ type: REQUIREMENT
630
+ status: draft
631
+ layer: BUSINESS
632
+ title: Generar graph-data.json
633
+ version: v1
634
+ ownership:
635
+ owner: dony
636
+ team: architecture
637
+ maintainers:
638
+ - backend-team
639
+ tags:
640
+ - parser
641
+ - graph
642
+ relations:
643
+ - type: IMPLEMENTS
644
+ target: CODE-001
645
+ strength: STRONG
646
+ category: TRACEABILITY
647
+ ---
648
+
649
+ # Generar graph-data.json
650
+ ...contenido descriptivo...`})})]})]}),T.jsxs("section",{children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-amber-500/10 rounded border border-amber-500/20",children:T.jsx(iF,{size:18,className:"text-amber-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.bestPractices})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.bestPracticesDesc})]}),T.jsxs("section",{className:"border-t border-white/5 pt-16",children:[T.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[T.jsx("div",{className:"p-2 bg-blue-500/10 rounded border border-blue-500/20",children:T.jsx(YZ,{size:18,className:"text-blue-400"})}),T.jsx("h2",{className:"text-xl font-medium tracking-tight",children:i.tutorialTitle})]}),T.jsx("p",{className:"text-sm text-white/50 mb-8 leading-relaxed max-w-3xl",children:i.tutorialDesc}),T.jsxs("div",{className:"space-y-8",children:[T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 rounded-lg overflow-hidden flex flex-col",children:[T.jsxs("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:[T.jsx("h4",{className:"text-sm font-bold text-white/80",children:i.step1Title}),T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/versions/v-1.md"})]}),T.jsxs("div",{className:"p-6",children:[T.jsx("p",{className:"text-xs text-white/50 mb-4",children:i.step1Desc}),T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-white/60 bg-black/40 p-4 rounded border border-white/5 overflow-x-auto",children:`---
651
+ id: v-1
652
+ type: VERSION
653
+ name: "1.0.0"
654
+ timestamp: "2026-05-06"
655
+ parentVersion: null
656
+ layer: DOCUMENTATION
657
+ title: "Project Release v1.0.0"
658
+ description: "Initial stable release of the project architecture and features."
659
+ ownership:
660
+ owner: pcaro
661
+ team: architecture
662
+ relations:
663
+ - type: DOCUMENTS
664
+ to: req-func-1
665
+ ---`})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 rounded-lg overflow-hidden flex flex-col",children:[T.jsxs("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:[T.jsx("h4",{className:"text-sm font-bold text-white/80",children:i.step2Title}),T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/requirements/REQ-001.md"})]}),T.jsxs("div",{className:"p-6",children:[T.jsx("p",{className:"text-xs text-white/50 mb-4",children:i.step2Desc}),T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-blue-400/80 bg-black/40 p-4 rounded border border-white/5 overflow-x-auto",children:`---
666
+ id: REQ-001
667
+ type: REQUIREMENT
668
+ status: ready
669
+ layer: BUSINESS
670
+ title: User Authentication
671
+ version: v1
672
+ ---
673
+
674
+ # Authentication Requirement
675
+ The system must allow users to log in securely.`})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 rounded-lg overflow-hidden flex flex-col",children:[T.jsxs("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:[T.jsx("h4",{className:"text-sm font-bold text-white/80",children:i.step3Title}),T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/architecture/DESIGN-auth.md"})]}),T.jsxs("div",{className:"p-6",children:[T.jsx("p",{className:"text-xs text-white/50 mb-4",children:i.step3Desc}),T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-purple-400/80 bg-black/40 p-4 rounded border border-white/5 overflow-x-auto",children:`---
676
+ id: DESIGN-auth
677
+ type: DESIGN
678
+ status: ready
679
+ layer: ARCHITECTURE
680
+ title: Auth Architecture
681
+ version: v1
682
+ relations:
683
+ - type: IMPLEMENTS
684
+ target: REQ-001
685
+ strength: STRONG
686
+ category: TRACEABILITY
687
+ ---
688
+
689
+ # Auth Design
690
+ We will use JWT tokens for authentication...`})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 rounded-lg overflow-hidden flex flex-col",children:[T.jsxs("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:[T.jsx("h4",{className:"text-sm font-bold text-white/80",children:i.step4Title}),T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/implementation/CODE-auth-service.md"})]}),T.jsxs("div",{className:"p-6",children:[T.jsx("p",{className:"text-xs text-white/50 mb-4",children:i.step4Desc}),T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-emerald-400/80 bg-black/40 p-4 rounded border border-white/5 overflow-x-auto",children:`---
691
+ id: CODE-auth-service
692
+ type: CODE_ENTITY
693
+ status: in_progress
694
+ layer: IMPLEMENTATION
695
+ title: AuthService.ts
696
+ version: v1
697
+ relations:
698
+ - type: IMPLEMENTS
699
+ target: DESIGN-auth
700
+ strength: STRONG
701
+ category: TRACEABILITY
702
+ ---
703
+
704
+ # AuthService
705
+ Implementation of the login endpoint...`})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 rounded-lg overflow-hidden flex flex-col",children:[T.jsxs("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:[T.jsx("h4",{className:"text-sm font-bold text-white/80",children:i.step5Title}),T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/versions/sv-db-1.md"})]}),T.jsxs("div",{className:"p-6",children:[T.jsx("p",{className:"text-xs text-white/50 mb-4",children:i.step5Desc}),T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-yellow-400/80 bg-black/40 p-4 rounded border border-white/5 overflow-x-auto",children:`---
706
+ id: sv-db-pg-15
707
+ type: SYSTEM_VERSION
708
+ component: PostgreSQL Engine
709
+ version: 15.4
710
+ releaseDate: "2023-08-10"
711
+ layer: OPERATIONS
712
+ title: "PostgreSQL Database Engine"
713
+ description: "Used for primary relational data storage."
714
+ ownership:
715
+ owner: pcaro
716
+ team: architecture
717
+ relations:
718
+ - type: RELATES_TO
719
+ to: arch-overview
720
+ ---
721
+
722
+ # PostgreSQL Engine
723
+ Used for primary relational data storage.`})]})]}),T.jsxs("div",{className:"bg-[#0c0c0c] border border-white/5 rounded-lg overflow-hidden flex flex-col",children:[T.jsxs("div",{className:"p-4 bg-white/[0.03] border-b border-white/5 flex items-center justify-between",children:[T.jsx("h4",{className:"text-sm font-bold text-white/80",children:i.step6Title}),T.jsx("span",{className:"text-[10px] font-mono text-white/40 italic",children:"docs/changes/ch-auth-pool.md"})]}),T.jsxs("div",{className:"p-6",children:[T.jsx("p",{className:"text-xs text-white/50 mb-4",children:i.step6Desc}),T.jsx("pre",{className:"text-[11px] font-mono leading-relaxed text-rose-400/80 bg-black/40 p-4 rounded border border-white/5 overflow-x-auto",children:`---
724
+ id: ch-auth-pool
725
+ type: CHANGE
726
+ changeType: ERROR
727
+ title: Resolve Auth API Timeouts
728
+ affects: ["CODE-auth-service", "sv-db-pg-15"]
729
+ versionFrom: "v-1"
730
+ versionTo: "v-2"
731
+ ---
732
+
733
+ # Auth Pool Issue
734
+ Database connection pool was insufficient for v1 traffic volume.`})]})]})]})]})]})]})},Rdt=()=>{const{settings:t,updateSettings:e}=ns(),r=n=>{e({graphFocusDepth:parseInt(n.target.value)})},i=n=>{e({docsFocusDepth:parseInt(n.target.value)})};return T.jsx("div",{className:"h-full w-full bg-[#0a0a0a] text-white p-8 overflow-y-auto",children:T.jsxs("div",{className:"max-w-3xl mx-auto",children:[T.jsxs("div",{className:"flex items-center gap-3 mb-8 border-b border-white/10 pb-6",children:[T.jsx("div",{className:"p-3 bg-indigo-500/10 border border-indigo-500/20 rounded-md",children:T.jsx(eF,{className:"text-indigo-400",size:24})}),T.jsxs("div",{children:[T.jsx("h1",{className:"text-2xl font-serif",children:"Settings"}),T.jsx("p",{className:"text-white/40 text-sm mt-1",children:"Configure workspace preferences and focus behaviors."})]})]}),T.jsxs("div",{className:"space-y-8",children:[T.jsxs("section",{className:"bg-[#111] border border-white/10 p-6 rounded-md",children:[T.jsx("h2",{className:"text-lg font-bold mb-4 flex items-center gap-2",children:"Global Preferences"}),T.jsx("div",{className:"space-y-4",children:T.jsxs("div",{className:"flex justify-between items-start border-t border-white/5 pt-4",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"font-medium text-sm",children:"Language"}),T.jsx("p",{className:"text-xs text-white/50 mt-1 max-w-sm",children:"Set the preferred language for guides and documentation interfaces where supported."})]}),T.jsxs("select",{value:t.language||"EN",onChange:n=>e({language:n.target.value}),className:"bg-black text-white border border-white/20 rounded px-3 py-1.5 text-sm outline-none focus:border-indigo-500 transition-colors",children:[T.jsx("option",{value:"EN",className:"bg-black text-white",children:"English"}),T.jsx("option",{value:"ES",className:"bg-black text-white",children:"Español"})]})]})})]}),T.jsxs("section",{className:"bg-[#111] border border-white/10 p-6 rounded-md",children:[T.jsx("h2",{className:"text-lg font-bold mb-4 flex items-center gap-2",children:"Graph View Configuration"}),T.jsxs("div",{className:"space-y-4",children:[T.jsxs("div",{className:"flex justify-between items-start border-t border-white/5 pt-4",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"font-medium text-sm",children:"Selection Focus Depth (Subgraph Exploration)"}),T.jsx("p",{className:"text-xs text-white/50 mt-1 max-w-sm",children:"How many levels of relationships to project into the subgraph when an artifact is focused."})]}),T.jsxs("select",{value:t.graphFocusDepth,onChange:r,className:"bg-black border border-white/20 rounded px-3 py-1.5 text-sm outline-none focus:border-indigo-500 transition-colors",children:[T.jsx("option",{value:1,children:"1 Level (Direct)"}),T.jsx("option",{value:2,children:"2 Levels"}),T.jsx("option",{value:3,children:"3 Levels"})]})]}),T.jsxs("div",{className:"flex justify-between items-start border-t border-white/5 pt-4",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"font-medium text-sm",children:"Show Weak Relations"}),T.jsx("p",{className:"text-xs text-white/50 mt-1 max-w-sm",children:"Display semantic, generic, or weakly coupled relations (e.g., RELATES_TO, DOCUMENTS). Turn off to reduce noise and hubs."})]}),T.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[T.jsx("input",{type:"checkbox",value:"",className:"sr-only peer",checked:t.showWeakRelations,onChange:n=>e({showWeakRelations:n.target.checked})}),T.jsx("div",{className:"w-11 h-6 bg-white/10 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-500"})]})]})]})]}),T.jsxs("section",{className:"bg-[#111] border border-white/10 p-6 rounded-md",children:[T.jsx("h2",{className:"text-lg font-bold mb-4 flex items-center gap-2",children:"Documentation View Configuration"}),T.jsxs("div",{className:"space-y-4",children:[T.jsxs("div",{className:"flex justify-between items-start border-t border-white/5 pt-4",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"font-medium text-sm",children:"Default Focus Mode"}),T.jsx("p",{className:"text-xs text-white/50 mt-1 max-w-sm",children:"Whether the impact focus filter should be ON or OFF by default when opening Documentation view."})]}),T.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[T.jsx("input",{type:"checkbox",value:"",className:"sr-only peer",checked:t.defaultDocsFocusMode,onChange:n=>e({defaultDocsFocusMode:n.target.checked})}),T.jsx("div",{className:"w-11 h-6 bg-white/10 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-emerald-500/50"})]})]}),T.jsxs("div",{className:"flex justify-between items-start border-t border-white/5 pt-4",children:[T.jsxs("div",{children:[T.jsx("h3",{className:"font-medium text-sm",children:"Documentation Focus Depth"}),T.jsx("p",{className:"text-xs text-white/50 mt-1 max-w-sm",children:"How many levels of relationships to include in the documentation when Focus Mode is ON."})]}),T.jsxs("select",{value:t.docsFocusDepth,onChange:i,className:"bg-black border border-white/20 rounded px-3 py-1.5 text-sm outline-none focus:border-indigo-500 transition-colors",children:[T.jsx("option",{value:1,children:"1 Level (Direct Dependencies)"}),T.jsx("option",{value:2,children:"2 Levels"}),T.jsx("option",{value:3,children:"3 Levels"}),T.jsx("option",{value:0,children:"Infinite (Full Impact Graph)"})]})]})]})]})]})]})})};function Ddt(){const{initializeStore:t,versions:e,currentVersionId:r,setVersion:i,activeView:n,setView:s,isLoading:o,systemVersions:c,metadata:u}=ns();return lt.useEffect(()=>{t()},[t]),T.jsxs("div",{className:"flex h-screen w-screen overflow-hidden bg-[#0a0a0a] text-[#e0e0e0] font-sans selection:bg-emerald-500/30 print-block",children:[T.jsxs("nav",{className:"w-16 flex flex-col items-center py-6 bg-[#0c0c0c] text-white/40 border-r border-white/10 shrink-0",children:[T.jsx("div",{className:"w-8 h-8 bg-white flex items-center justify-center rounded-sm mb-8",children:T.jsx("div",{className:"w-4 h-4 border-2 border-black rotate-45"})}),T.jsxs("div",{className:"flex flex-col gap-6 w-full items-center",children:[T.jsx("button",{onClick:()=>s("graph"),className:`transition-all hover:text-white hover:opacity-100 ${n==="graph"?"text-white opacity-100":"opacity-40"}`,title:"Graph View",children:T.jsx(yK,{size:20,strokeWidth:1.5})}),T.jsx("button",{onClick:()=>s("docs"),className:`transition-all hover:text-white hover:opacity-100 ${n==="docs"?"text-white opacity-100":"opacity-40"}`,title:"Documentation Engine",children:T.jsx(KD,{size:20,strokeWidth:1.5})}),T.jsx("button",{onClick:()=>s("impact"),className:`transition-all hover:text-white hover:opacity-100 ${n==="impact"?"text-white opacity-100":"opacity-40"}`,title:"Impact Analysis",children:T.jsx(JD,{size:20,strokeWidth:1.5})}),T.jsx("button",{onClick:()=>s("orphans"),className:`transition-all hover:text-white hover:opacity-100 ${n==="orphans"?"text-red-400 opacity-100":"opacity-40"}`,title:"Traceability GAPs",children:T.jsx(ql,{size:20,strokeWidth:1.5})}),T.jsx("button",{onClick:()=>s("guide"),className:`transition-all hover:text-white hover:opacity-100 ${n==="guide"?"text-amber-400 opacity-100":"opacity-40"}`,title:"Usage Guide",children:T.jsx(ZD,{size:20,strokeWidth:1.5})})]}),T.jsx("div",{className:"mt-auto",children:T.jsx("button",{onClick:()=>s("settings"),className:`transition-all hover:text-white hover:opacity-100 ${n==="settings"?"text-white opacity-100":"opacity-40"}`,title:"Settings",children:T.jsx(eF,{size:20,strokeWidth:1.5})})})]}),T.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[T.jsxs("header",{className:"h-16 bg-[#0f0f0f] border-b border-white/10 flex items-center px-8 justify-between shrink-0 z-10",children:[T.jsxs("div",{className:"font-serif text-xl italic tracking-tight flex items-center gap-2",children:["OpenLAG ",T.jsxs("span",{className:"text-xs font-mono opacity-50 ml-2 not-italic",children:["| ",(u==null?void 0:u.name)||"Lifecycle Engine"]})]}),T.jsxs("div",{className:"flex items-center gap-6",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("div",{className:"flex flex-col items-end",children:T.jsx("span",{className:"text-[10px] opacity-40 uppercase tracking-widest",children:"Doc Snapshot"})}),T.jsx("select",{value:r||"",onChange:h=>i(h.target.value),className:"bg-[#0c0c0c] border border-white/20 text-xs font-mono text-emerald-400 rounded-sm px-3 py-1.5 outline-none cursor-pointer hover:bg-white/5 transition-colors focus:border-emerald-400",children:e.map(h=>T.jsxs("option",{value:h.id,className:"bg-[#0c0c0c] text-white",children:[h.name," (",new Date(h.timestamp).toLocaleDateString(),")"]},h.id))})]}),T.jsx("div",{className:"h-6 w-[1px] bg-white/10"}),T.jsxs("div",{className:"flex items-center gap-3 group relative",children:[T.jsx("div",{className:"p-2 bg-emerald-500/10 rounded-full border border-emerald-500/20",children:T.jsx(VZ,{size:14,className:"text-emerald-400"})}),T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-[10px] opacity-40 uppercase tracking-widest leading-none",children:"System State"}),T.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[T.jsxs("span",{className:"text-[10px] text-white/80 font-bold tracking-tight",children:[c.length," Components Active"]}),T.jsx("div",{className:"w-1.5 h-1.5 bg-emerald-500 rounded-full animate-pulse shadow-[0_0_8px_rgba(16,185,129,0.5)]"})]})]}),T.jsxs("div",{className:"absolute top-full right-0 mt-2 w-64 bg-[#0f0f0f] border border-white/10 p-4 rounded-sm shadow-2xl opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-50",children:[T.jsx("div",{className:"text-[9px] uppercase tracking-widest text-[#888] font-bold mb-3 border-b border-white/5 pb-2",children:"Active Inventory"}),T.jsxs("div",{className:"space-y-2",children:[c.map(h=>T.jsxs("div",{className:"flex justify-between items-center text-[10px]",children:[T.jsx("span",{className:"text-white/60",children:h.component}),T.jsx("span",{className:"font-mono text-emerald-500/60",children:h.version})]},h.id)),c.length===0&&T.jsx("div",{className:"text-white/20 italic",children:"No system components logged."})]})]})]})]})]}),T.jsxs("main",{className:"flex-1 relative overflow-hidden",children:[o&&!r?T.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/50 backdrop-blur-sm z-50",children:T.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"})}):null,n==="graph"&&T.jsx(fit,{}),n==="docs"&&T.jsx(Adt,{}),n==="impact"&&T.jsx(Bdt,{}),n==="orphans"&&T.jsx(Ndt,{}),n==="guide"&&T.jsx(Odt,{}),n==="settings"&&T.jsx(Rdt,{})]})]})]})}KP.createRoot(document.getElementById("root")).render(T.jsx(lt.StrictMode,{children:T.jsx(Ddt,{})}));export{u6 as $,$dt as A,Ka as B,bit as C,Ke as D,Jnt as E,dS as F,KF as G,dot as H,xat as I,kst as J,nnt as K,Yu as L,zdt as M,Wp as N,Ont as O,l6 as P,i4 as Q,cat as R,a2 as S,fot as T,ph as U,fn as V,pt as W,gt as X,$nt as Y,not as Z,B as _,Wnt as a,Nct as a$,aat as a0,o4 as a1,s4 as a2,Xdt as a3,Udt as a4,Wdt as a5,Ydt as a6,Pdt as a7,Gw as a8,Vdt as a9,vq as aA,Hst as aB,Pst as aC,$st as aD,jst as aE,Cq as aF,Yst as aG,Gst as aH,Ust as aI,Vst as aJ,Wst as aK,Ist as aL,Tst as aM,Kr as aN,ga as aO,su as aP,pS as aQ,Eq as aR,to as aS,Mq as aT,PF as aU,iut as aV,spt as aW,lpt as aX,npt as aY,It as aZ,apt as a_,Hdt as aa,Ko as ab,Zdt as ac,Qdt as ad,Gdt as ae,ect as af,O8 as ag,opt as ah,Qt as ai,Ln as aj,hS as ak,Nt as al,Llt as am,nS as an,aS as ao,yd as ap,qst as aq,zst as ar,bq as as,xq as at,yq as au,Rst as av,Nst as aw,Ost as ax,Dst as ay,Fst as az,Ynt as b,Ect as b0,Tct as b1,sat as b2,qdt as b3,Gl as b4,bh as b5,Alt as b6,Elt as b7,_n as b8,Su as b9,Dt as ba,Nq as bb,pi as bc,rH as bd,U2 as be,kO as bf,rh as bg,EO as bh,Idt as bi,xit as bj,ge as bk,ve as c,Ut as d,c6 as e,_r as f,Xnt as g,ua as h,cn as i,Bst as j,gh as k,St as l,Bq as m,jdt as n,upt as o,Qnt as p,Znt as q,cpt as r,Vnt as s,_st as t,rn as u,Cct as v,mot as w,Kdt as x,zl as y,Gnt as z};