md-review 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/_baseUniq-DKsTUUpM.js +1 -0
  3. package/dist/assets/arc-D6b_4kAR.js +1 -0
  4. package/dist/assets/architectureDiagram-VXUJARFQ-zdXFKBeB.js +36 -0
  5. package/dist/assets/blockDiagram-VD42YOAC-id4Ga823.js +122 -0
  6. package/dist/assets/c4Diagram-YG6GDRKO-DMhvwsHk.js +10 -0
  7. package/dist/assets/channel-DWMhwFBw.js +1 -0
  8. package/dist/assets/chunk-4BX2VUAB-2CHsFNTH.js +1 -0
  9. package/dist/assets/chunk-55IACEB6-2kAQCSeo.js +1 -0
  10. package/dist/assets/chunk-B4BG7PRW-B3hsz0i9.js +165 -0
  11. package/dist/assets/chunk-DI55MBZ5-DDjXnsXy.js +220 -0
  12. package/dist/assets/chunk-FMBD7UC4-C0_pYGXn.js +15 -0
  13. package/dist/assets/chunk-QN33PNHL-C4kiqv8Z.js +1 -0
  14. package/dist/assets/chunk-QZHKN3VN-DnAzjm5u.js +1 -0
  15. package/dist/assets/chunk-TZMSLE5B-CN1iqfvW.js +1 -0
  16. package/dist/assets/classDiagram-2ON5EDUG-Du0l2lke.js +1 -0
  17. package/dist/assets/classDiagram-v2-WZHVMYZB-Du0l2lke.js +1 -0
  18. package/dist/assets/clone-CInLbKno.js +1 -0
  19. package/dist/assets/cose-bilkent-S5V4N54A-BzcNN0cZ.js +1 -0
  20. package/dist/assets/cytoscape.esm-BQaXIfA_.js +331 -0
  21. package/dist/assets/dagre-6UL2VRFP-QJYTHrs6.js +4 -0
  22. package/dist/assets/defaultLocale-C4B-KCzX.js +1 -0
  23. package/dist/assets/diagram-PSM6KHXK-CnTLPTjU.js +24 -0
  24. package/dist/assets/diagram-QEK2KX5R-CtomDYHV.js +43 -0
  25. package/dist/assets/diagram-S2PKOQOG-D5BEDMVR.js +24 -0
  26. package/dist/assets/erDiagram-Q2GNP2WA-DjW2Xk-Q.js +60 -0
  27. package/dist/assets/flowDiagram-NV44I4VS-DKlPxqBJ.js +162 -0
  28. package/dist/assets/ganttDiagram-JELNMOA3-DnFR1YE9.js +267 -0
  29. package/dist/assets/gitGraphDiagram-NY62KEGX-ByKsiu6P.js +65 -0
  30. package/dist/assets/graph-Dd87rTh3.js +1 -0
  31. package/dist/assets/index-2NrSbPmz.js +342 -0
  32. package/dist/assets/{index-CpxF6eru.css → index-3wjsT0kJ.css} +1 -1
  33. package/dist/assets/infoDiagram-WHAUD3N6-CoVy4phA.js +2 -0
  34. package/dist/assets/init-Gi6I4Gst.js +1 -0
  35. package/dist/assets/journeyDiagram-XKPGCS4Q-PDmdJwLk.js +139 -0
  36. package/dist/assets/kanban-definition-3W4ZIXB7-BXAIz5vD.js +89 -0
  37. package/dist/assets/katex-Cu_Erd72.js +261 -0
  38. package/dist/assets/layout-BgCjIm3c.js +1 -0
  39. package/dist/assets/linear-7jKWoU-J.js +1 -0
  40. package/dist/assets/min-CkR1JmIH.js +1 -0
  41. package/dist/assets/mindmap-definition-VGOIOE7T-DZDnMxSk.js +68 -0
  42. package/dist/assets/ordinal-Cboi1Yqb.js +1 -0
  43. package/dist/assets/pieDiagram-ADFJNKIX-CAvuvZzi.js +30 -0
  44. package/dist/assets/quadrantDiagram-AYHSOK5B-CEcUKPRs.js +7 -0
  45. package/dist/assets/requirementDiagram-UZGBJVZJ-CwqlCSlN.js +64 -0
  46. package/dist/assets/sankeyDiagram-TZEHDZUN-BPqlZVjZ.js +10 -0
  47. package/dist/assets/sequenceDiagram-WL72ISMW-D3pXE2FY.js +145 -0
  48. package/dist/assets/stateDiagram-FKZM4ZOC-j-D1luyc.js +1 -0
  49. package/dist/assets/stateDiagram-v2-4FDKWEC3-CaPy9HHs.js +1 -0
  50. package/dist/assets/timeline-definition-IT6M3QCI-CUjtRTRO.js +61 -0
  51. package/dist/assets/treemap-KMMF4GRG-BTmku5t_.js +128 -0
  52. package/dist/assets/xychartDiagram-PRI3JC2R-D5pVOO2T.js +7 -0
  53. package/dist/index.html +2 -2
  54. package/package.json +7 -3
  55. package/dist/assets/index-BJKHz_BG.js +0 -87
@@ -0,0 +1,342 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-QJYTHrs6.js","assets/graph-Dd87rTh3.js","assets/_baseUniq-DKsTUUpM.js","assets/layout-BgCjIm3c.js","assets/min-CkR1JmIH.js","assets/clone-CInLbKno.js","assets/cose-bilkent-S5V4N54A-BzcNN0cZ.js","assets/cytoscape.esm-BQaXIfA_.js","assets/c4Diagram-YG6GDRKO-DMhvwsHk.js","assets/chunk-TZMSLE5B-CN1iqfvW.js","assets/flowDiagram-NV44I4VS-DKlPxqBJ.js","assets/chunk-FMBD7UC4-C0_pYGXn.js","assets/chunk-55IACEB6-2kAQCSeo.js","assets/chunk-QN33PNHL-C4kiqv8Z.js","assets/channel-DWMhwFBw.js","assets/erDiagram-Q2GNP2WA-DjW2Xk-Q.js","assets/gitGraphDiagram-NY62KEGX-ByKsiu6P.js","assets/chunk-4BX2VUAB-2CHsFNTH.js","assets/chunk-QZHKN3VN-DnAzjm5u.js","assets/treemap-KMMF4GRG-BTmku5t_.js","assets/ganttDiagram-JELNMOA3-DnFR1YE9.js","assets/linear-7jKWoU-J.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-C4B-KCzX.js","assets/infoDiagram-WHAUD3N6-CoVy4phA.js","assets/pieDiagram-ADFJNKIX-CAvuvZzi.js","assets/arc-D6b_4kAR.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-CEcUKPRs.js","assets/xychartDiagram-PRI3JC2R-D5pVOO2T.js","assets/requirementDiagram-UZGBJVZJ-CwqlCSlN.js","assets/sequenceDiagram-WL72ISMW-D3pXE2FY.js","assets/classDiagram-2ON5EDUG-Du0l2lke.js","assets/chunk-B4BG7PRW-B3hsz0i9.js","assets/classDiagram-v2-WZHVMYZB-Du0l2lke.js","assets/stateDiagram-FKZM4ZOC-j-D1luyc.js","assets/chunk-DI55MBZ5-DDjXnsXy.js","assets/stateDiagram-v2-4FDKWEC3-CaPy9HHs.js","assets/journeyDiagram-XKPGCS4Q-PDmdJwLk.js","assets/timeline-definition-IT6M3QCI-CUjtRTRO.js","assets/mindmap-definition-VGOIOE7T-DZDnMxSk.js","assets/kanban-definition-3W4ZIXB7-BXAIz5vD.js","assets/sankeyDiagram-TZEHDZUN-BPqlZVjZ.js","assets/diagram-S2PKOQOG-D5BEDMVR.js","assets/diagram-QEK2KX5R-CtomDYHV.js","assets/blockDiagram-VD42YOAC-id4Ga823.js","assets/architectureDiagram-VXUJARFQ-zdXFKBeB.js","assets/diagram-PSM6KHXK-CnTLPTjU.js"])))=>i.map(i=>d[i]);
2
+ var UL=Object.defineProperty;var PL=(t,e,n)=>e in t?UL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ue=(t,e,n)=>PL(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const s of a)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 n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function ad(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $g={exports:{}},oc={};/**
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 G1;function HL(){if(G1)return oc;G1=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,a,s){var o=null;if(s!==void 0&&(o=""+s),a.key!==void 0&&(o=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:t,type:i,key:o,ref:a!==void 0?a:null,props:s}}return oc.Fragment=e,oc.jsx=n,oc.jsxs=n,oc}var Y1;function qL(){return Y1||(Y1=1,$g.exports=HL()),$g.exports}var V=qL(),Ug={exports:{}},te={};/**
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 W1;function jL(){if(W1)return te;W1=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function m(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,C={};function S(I,K,O){this.props=I,this.context=K,this.refs=C,this.updater=O||_}S.prototype.isReactComponent={},S.prototype.setState=function(I,K){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,K,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function T(){}T.prototype=S.prototype;function A(I,K,O){this.props=I,this.context=K,this.refs=C,this.updater=O||_}var B=A.prototype=new T;B.constructor=A,v(B,S.prototype),B.isPureReactComponent=!0;var N=Array.isArray;function E(){}var R={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function Z(I,K,O){var ft=O.ref;return{$$typeof:t,type:I,key:K,ref:ft!==void 0?ft:null,props:O}}function z(I,K){return Z(I.type,K,I.props)}function j(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function tt(I){var K={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(O){return K[O]})}var it=/\/+/g;function H(I,K){return typeof I=="object"&&I!==null&&I.key!=null?tt(""+I.key):K.toString(36)}function F(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(E,E):(I.status="pending",I.then(function(K){I.status==="pending"&&(I.status="fulfilled",I.value=K)},function(K){I.status==="pending"&&(I.status="rejected",I.reason=K)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function L(I,K,O,ft,bt){var pt=typeof I;(pt==="undefined"||pt==="boolean")&&(I=null);var St=!1;if(I===null)St=!0;else switch(pt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(I.$$typeof){case t:case e:St=!0;break;case d:return St=I._init,L(St(I._payload),K,O,ft,bt)}}if(St)return bt=bt(I),St=ft===""?"."+H(I,0):ft,N(bt)?(O="",St!=null&&(O=St.replace(it,"$&/")+"/"),L(bt,K,O,"",function(Jt){return Jt})):bt!=null&&(j(bt)&&(bt=z(bt,O+(bt.key==null||I&&I.key===bt.key?"":(""+bt.key).replace(it,"$&/")+"/")+St)),K.push(bt)),1;St=0;var Ft=ft===""?".":ft+":";if(N(I))for(var Ut=0;Ut<I.length;Ut++)ft=I[Ut],pt=Ft+H(ft,Ut),St+=L(ft,K,O,pt,bt);else if(Ut=m(I),typeof Ut=="function")for(I=Ut.call(I),Ut=0;!(ft=I.next()).done;)ft=ft.value,pt=Ft+H(ft,Ut++),St+=L(ft,K,O,pt,bt);else if(pt==="object"){if(typeof I.then=="function")return L(F(I),K,O,ft,bt);throw K=String(I),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return St}function U(I,K,O){if(I==null)return I;var ft=[],bt=0;return L(I,ft,"","",function(pt){return K.call(O,pt,bt++)}),ft}function $(I){if(I._status===-1){var K=I._result;K=K(),K.then(function(O){(I._status===0||I._status===-1)&&(I._status=1,I._result=O)},function(O){(I._status===0||I._status===-1)&&(I._status=2,I._result=O)}),I._status===-1&&(I._status=0,I._result=K)}if(I._status===1)return I._result.default;throw I._result}var lt=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},D={map:U,forEach:function(I,K,O){U(I,function(){K.apply(this,arguments)},O)},count:function(I){var K=0;return U(I,function(){K++}),K},toArray:function(I){return U(I,function(K){return K})||[]},only:function(I){if(!j(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return te.Activity=g,te.Children=D,te.Component=S,te.Fragment=n,te.Profiler=a,te.PureComponent=A,te.StrictMode=i,te.Suspense=f,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,te.__COMPILER_RUNTIME={__proto__:null,c:function(I){return R.H.useMemoCache(I)}},te.cache=function(I){return function(){return I.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(I,K,O){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ft=v({},I.props),bt=I.key;if(K!=null)for(pt in K.key!==void 0&&(bt=""+K.key),K)!G.call(K,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&K.ref===void 0||(ft[pt]=K[pt]);var pt=arguments.length-2;if(pt===1)ft.children=O;else if(1<pt){for(var St=Array(pt),Ft=0;Ft<pt;Ft++)St[Ft]=arguments[Ft+2];ft.children=St}return Z(I.type,bt,ft)},te.createContext=function(I){return I={$$typeof:o,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:s,_context:I},I},te.createElement=function(I,K,O){var ft,bt={},pt=null;if(K!=null)for(ft in K.key!==void 0&&(pt=""+K.key),K)G.call(K,ft)&&ft!=="key"&&ft!=="__self"&&ft!=="__source"&&(bt[ft]=K[ft]);var St=arguments.length-2;if(St===1)bt.children=O;else if(1<St){for(var Ft=Array(St),Ut=0;Ut<St;Ut++)Ft[Ut]=arguments[Ut+2];bt.children=Ft}if(I&&I.defaultProps)for(ft in St=I.defaultProps,St)bt[ft]===void 0&&(bt[ft]=St[ft]);return Z(I,pt,bt)},te.createRef=function(){return{current:null}},te.forwardRef=function(I){return{$$typeof:c,render:I}},te.isValidElement=j,te.lazy=function(I){return{$$typeof:d,_payload:{_status:-1,_result:I},_init:$}},te.memo=function(I,K){return{$$typeof:h,type:I,compare:K===void 0?null:K}},te.startTransition=function(I){var K=R.T,O={};R.T=O;try{var ft=I(),bt=R.S;bt!==null&&bt(O,ft),typeof ft=="object"&&ft!==null&&typeof ft.then=="function"&&ft.then(E,lt)}catch(pt){lt(pt)}finally{K!==null&&O.types!==null&&(K.types=O.types),R.T=K}},te.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},te.use=function(I){return R.H.use(I)},te.useActionState=function(I,K,O){return R.H.useActionState(I,K,O)},te.useCallback=function(I,K){return R.H.useCallback(I,K)},te.useContext=function(I){return R.H.useContext(I)},te.useDebugValue=function(){},te.useDeferredValue=function(I,K){return R.H.useDeferredValue(I,K)},te.useEffect=function(I,K){return R.H.useEffect(I,K)},te.useEffectEvent=function(I){return R.H.useEffectEvent(I)},te.useId=function(){return R.H.useId()},te.useImperativeHandle=function(I,K,O){return R.H.useImperativeHandle(I,K,O)},te.useInsertionEffect=function(I,K){return R.H.useInsertionEffect(I,K)},te.useLayoutEffect=function(I,K){return R.H.useLayoutEffect(I,K)},te.useMemo=function(I,K){return R.H.useMemo(I,K)},te.useOptimistic=function(I,K){return R.H.useOptimistic(I,K)},te.useReducer=function(I,K,O){return R.H.useReducer(I,K,O)},te.useRef=function(I){return R.H.useRef(I)},te.useState=function(I){return R.H.useState(I)},te.useSyncExternalStore=function(I,K,O){return R.H.useSyncExternalStore(I,K,O)},te.useTransition=function(){return R.H.useTransition()},te.version="19.2.0",te}var V1;function Yy(){return V1||(V1=1,Ug.exports=jL()),Ug.exports}var zt=Yy(),Pg={exports:{}},cc={},Hg={exports:{}},qg={};/**
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 X1;function GL(){return X1||(X1=1,(function(t){function e(L,U){var $=L.length;L.push(U);t:for(;0<$;){var lt=$-1>>>1,D=L[lt];if(0<a(D,U))L[lt]=U,L[$]=D,$=lt;else break t}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var U=L[0],$=L.pop();if($!==U){L[0]=$;t:for(var lt=0,D=L.length,I=D>>>1;lt<I;){var K=2*(lt+1)-1,O=L[K],ft=K+1,bt=L[ft];if(0>a(O,$))ft<D&&0>a(bt,O)?(L[lt]=bt,L[ft]=$,lt=ft):(L[lt]=O,L[K]=$,lt=K);else if(ft<D&&0>a(bt,$))L[lt]=bt,L[ft]=$,lt=ft;else break t}}return U}function a(L,U){var $=L.sortIndex-U.sortIndex;return $!==0?$:L.id-U.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 f=[],h=[],d=1,g=null,y=3,m=!1,_=!1,v=!1,C=!1,S=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function B(L){for(var U=n(h);U!==null;){if(U.callback===null)i(h);else if(U.startTime<=L)i(h),U.sortIndex=U.expirationTime,e(f,U);else break;U=n(h)}}function N(L){if(v=!1,B(L),!_)if(n(f)!==null)_=!0,E||(E=!0,tt());else{var U=n(h);U!==null&&F(N,U.startTime-L)}}var E=!1,R=-1,G=5,Z=-1;function z(){return C?!0:!(t.unstable_now()-Z<G)}function j(){if(C=!1,E){var L=t.unstable_now();Z=L;var U=!0;try{t:{_=!1,v&&(v=!1,T(R),R=-1),m=!0;var $=y;try{e:{for(B(L),g=n(f);g!==null&&!(g.expirationTime>L&&z());){var lt=g.callback;if(typeof lt=="function"){g.callback=null,y=g.priorityLevel;var D=lt(g.expirationTime<=L);if(L=t.unstable_now(),typeof D=="function"){g.callback=D,B(L),U=!0;break e}g===n(f)&&i(f),B(L)}else i(f);g=n(f)}if(g!==null)U=!0;else{var I=n(h);I!==null&&F(N,I.startTime-L),U=!1}}break t}finally{g=null,y=$,m=!1}U=void 0}}finally{U?tt():E=!1}}}var tt;if(typeof A=="function")tt=function(){A(j)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,H=it.port2;it.port1.onmessage=j,tt=function(){H.postMessage(null)}}else tt=function(){S(j,0)};function F(L,U){R=S(function(){L(t.unstable_now())},U)}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(L){L.callback=null},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(L){switch(y){case 1:case 2:case 3:var U=3;break;default:U=y}var $=y;y=U;try{return L()}finally{y=$}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(L,U){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var $=y;y=L;try{return U()}finally{y=$}},t.unstable_scheduleCallback=function(L,U,$){var lt=t.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?lt+$:lt):$=lt,L){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=$+D,L={id:d++,callback:U,priorityLevel:L,startTime:$,expirationTime:D,sortIndex:-1},$>lt?(L.sortIndex=$,e(h,L),n(f)===null&&L===n(h)&&(v?(T(R),R=-1):v=!0,F(N,$-lt))):(L.sortIndex=D,e(f,L),_||m||(_=!0,E||(E=!0,tt()))),L},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(L){var U=y;return function(){var $=y;y=U;try{return L.apply(this,arguments)}finally{y=$}}}})(qg)),qg}var K1;function YL(){return K1||(K1=1,Hg.exports=GL()),Hg.exports}var jg={exports:{}},Wn={};/**
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 Z1;function WL(){if(Z1)return Wn;Z1=1;var t=Yy();function e(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(f,h,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:f,containerInfo:h,implementation:d}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Wn.createPortal=function(f,h){var d=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(f,h,null,d)},Wn.flushSync=function(f){var h=o.T,d=i.p;try{if(o.T=null,i.p=2,f)return f()}finally{o.T=h,i.p=d,i.d.f()}},Wn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},Wn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Wn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var d=h.as,g=c(d,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,m=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:m}):d==="script"&&i.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:m,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Wn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=c(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},Wn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,g=c(d,h.crossOrigin);i.d.L(f,d,{crossOrigin:g,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})}},Wn.preloadModule=function(f,h){if(typeof f=="string")if(h){var d=c(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},Wn.requestFormReset=function(f){i.d.r(f)},Wn.unstable_batchedUpdates=function(f,h){return f(h)},Wn.useFormState=function(f,h,d){return o.H.useFormState(f,h,d)},Wn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Wn.version="19.2.0",Wn}var Q1;function VL(){if(Q1)return jg.exports;Q1=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(),jg.exports=WL(),jg.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 J1;function XL(){if(J1)return cc;J1=1;var t=YL(),e=Yy(),n=VL();function i(r){var l="https://react.dev/errors/"+r;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+r+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var l=r,u=r;if(r.alternate)for(;l.return;)l=l.return;else{r=l;do l=r,(l.flags&4098)!==0&&(u=l.return),r=l.return;while(r)}return l.tag===3?u:null}function o(r){if(r.tag===13){var l=r.memoizedState;if(l===null&&(r=r.alternate,r!==null&&(l=r.memoizedState)),l!==null)return l.dehydrated}return null}function c(r){if(r.tag===31){var l=r.memoizedState;if(l===null&&(r=r.alternate,r!==null&&(l=r.memoizedState)),l!==null)return l.dehydrated}return null}function f(r){if(s(r)!==r)throw Error(i(188))}function h(r){var l=r.alternate;if(!l){if(l=s(r),l===null)throw Error(i(188));return l!==r?null:r}for(var u=r,p=l;;){var b=u.return;if(b===null)break;var x=b.alternate;if(x===null){if(p=b.return,p!==null){u=p;continue}break}if(b.child===x.child){for(x=b.child;x;){if(x===u)return f(b),r;if(x===p)return f(b),l;x=x.sibling}throw Error(i(188))}if(u.return!==p.return)u=b,p=x;else{for(var k=!1,M=b.child;M;){if(M===u){k=!0,u=b,p=x;break}if(M===p){k=!0,p=b,u=x;break}M=M.sibling}if(!k){for(M=x.child;M;){if(M===u){k=!0,u=x,p=b;break}if(M===p){k=!0,p=x,u=b;break}M=M.sibling}if(!k)throw Error(i(189))}}if(u.alternate!==p)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?r:l}function d(r){var l=r.tag;if(l===5||l===26||l===27||l===6)return r;for(r=r.child;r!==null;){if(l=d(r),l!==null)return l;r=r.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function tt(r){return r===null||typeof r!="object"?null:(r=j&&r[j]||r["@@iterator"],typeof r=="function"?r:null)}var it=Symbol.for("react.client.reference");function H(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===it?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case v:return"Fragment";case S:return"Profiler";case C:return"StrictMode";case N:return"Suspense";case E:return"SuspenseList";case Z:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case _:return"Portal";case A:return r.displayName||"Context";case T:return(r._context.displayName||"Context")+".Consumer";case B:var l=r.render;return r=r.displayName,r||(r=l.displayName||l.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case R:return l=r.displayName||null,l!==null?l:H(r.type)||"Memo";case G:l=r._payload,r=r._init;try{return H(r(l))}catch{}}return null}var F=Array.isArray,L=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},lt=[],D=-1;function I(r){return{current:r}}function K(r){0>D||(r.current=lt[D],lt[D]=null,D--)}function O(r,l){D++,lt[D]=r.current,r.current=l}var ft=I(null),bt=I(null),pt=I(null),St=I(null);function Ft(r,l){switch(O(pt,l),O(bt,r),O(ft,null),l.nodeType){case 9:case 11:r=(r=l.documentElement)&&(r=r.namespaceURI)?p1(r):0;break;default:if(r=l.tagName,l=l.namespaceURI)l=p1(l),r=g1(l,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}K(ft),O(ft,r)}function Ut(){K(ft),K(bt),K(pt)}function Jt(r){r.memoizedState!==null&&O(St,r);var l=ft.current,u=g1(l,r.type);l!==u&&(O(bt,r),O(ft,u))}function ve(r){bt.current===r&&(K(ft),K(bt)),St.current===r&&(K(St),rc._currentValue=$)}var hn,fn;function sn(r){if(hn===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);hn=l&&l[1]||"",fn=-1<u.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+hn+r+fn}var Dn=!1;function oe(r,l){if(!r||Dn)return"";Dn=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(l){var ut=function(){throw Error()};if(Object.defineProperty(ut.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ut,[])}catch(rt){var nt=rt}Reflect.construct(r,[],ut)}else{try{ut.call()}catch(rt){nt=rt}r.call(ut.prototype)}}else{try{throw Error()}catch(rt){nt=rt}(ut=r())&&typeof ut.catch=="function"&&ut.catch(function(){})}}catch(rt){if(rt&&nt&&typeof rt.stack=="string")return[rt.stack,nt.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=p.DetermineComponentFrameRoot(),k=x[0],M=x[1];if(k&&M){var P=k.split(`
45
+ `),et=M.split(`
46
+ `);for(b=p=0;p<P.length&&!P[p].includes("DetermineComponentFrameRoot");)p++;for(;b<et.length&&!et[b].includes("DetermineComponentFrameRoot");)b++;if(p===P.length||b===et.length)for(p=P.length-1,b=et.length-1;1<=p&&0<=b&&P[p]!==et[b];)b--;for(;1<=p&&0<=b;p--,b--)if(P[p]!==et[b]){if(p!==1||b!==1)do if(p--,b--,0>b||P[p]!==et[b]){var st=`
47
+ `+P[p].replace(" at new "," at ");return r.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",r.displayName)),st}while(1<=p&&0<=b);break}}}finally{Dn=!1,Error.prepareStackTrace=u}return(u=r?r.displayName||r.name:"")?sn(u):""}function ni(r,l){switch(r.tag){case 26:case 27:case 5:return sn(r.type);case 16:return sn("Lazy");case 13:return r.child!==l&&l!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return oe(r.type,!1);case 11:return oe(r.type.render,!1);case 1:return oe(r.type,!0);case 31:return sn("Activity");default:return""}}function kn(r){try{var l="",u=null;do l+=ni(r,u),u=r,r=r.return;while(r);return l}catch(p){return`
48
+ Error generating stack: `+p.message+`
49
+ `+p.stack}}var ii=Object.prototype.hasOwnProperty,di=t.unstable_scheduleCallback,vr=t.unstable_cancelCallback,ma=t.unstable_shouldYield,ya=t.unstable_requestPaint,He=t.unstable_now,Gi=t.unstable_getCurrentPriorityLevel,at=t.unstable_ImmediatePriority,gt=t.unstable_UserBlockingPriority,Pt=t.unstable_NormalPriority,ne=t.unstable_LowPriority,be=t.unstable_IdlePriority,En=t.log,pi=t.unstable_setDisableYieldValue,on=null,qe=null;function We(r){if(typeof En=="function"&&pi(r),qe&&typeof qe.setStrictMode=="function")try{qe.setStrictMode(on,r)}catch{}}var pe=Math.clz32?Math.clz32:Xl,gi=Math.log,Tn=Math.LN2;function Xl(r){return r>>>=0,r===0?32:31-(gi(r)/Tn|0)|0}var Yi=256,sr=262144,$r=4194304;function yn(r){var l=r&42;if(l!==0)return l;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function q(r,l,u){var p=r.pendingLanes;if(p===0)return 0;var b=0,x=r.suspendedLanes,k=r.pingedLanes;r=r.warmLanes;var M=p&134217727;return M!==0?(p=M&~x,p!==0?b=yn(p):(k&=M,k!==0?b=yn(k):u||(u=M&~r,u!==0&&(b=yn(u))))):(M=p&~x,M!==0?b=yn(M):k!==0?b=yn(k):u||(u=p&~r,u!==0&&(b=yn(u)))),b===0?0:l!==0&&l!==b&&(l&x)===0&&(x=b&-b,u=l&-l,x>=u||x===32&&(u&4194048)!==0)?l:b}function ot(r,l){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&l)===0}function mt(r,l){switch(r){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 jt(){var r=$r;return $r<<=1,($r&62914560)===0&&($r=4194304),r}function je(r){for(var l=[],u=0;31>u;u++)l.push(r);return l}function Ne(r,l){r.pendingLanes|=l,l!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Tt(r,l,u,p,b,x){var k=r.pendingLanes;r.pendingLanes=u,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=u,r.entangledLanes&=u,r.errorRecoveryDisabledLanes&=u,r.shellSuspendCounter=0;var M=r.entanglements,P=r.expirationTimes,et=r.hiddenUpdates;for(u=k&~u;0<u;){var st=31-pe(u),ut=1<<st;M[st]=0,P[st]=-1;var nt=et[st];if(nt!==null)for(et[st]=null,st=0;st<nt.length;st++){var rt=nt[st];rt!==null&&(rt.lane&=-536870913)}u&=~ut}p!==0&&Ct(r,p,0),x!==0&&b===0&&r.tag!==0&&(r.suspendedLanes|=x&~(k&~l))}function Ct(r,l,u){r.pendingLanes|=l,r.suspendedLanes&=~l;var p=31-pe(l);r.entangledLanes|=l,r.entanglements[p]=r.entanglements[p]|1073741824|u&261930}function Yt(r,l){var u=r.entangledLanes|=l;for(r=r.entanglements;u;){var p=31-pe(u),b=1<<p;b&l|r[p]&l&&(r[p]|=l),u&=~b}}function an(r,l){var u=l&-l;return u=(u&42)!==0?1:xe(u),(u&(r.suspendedLanes|l))!==0?0:u}function xe(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function In(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Ur(){var r=U.p;return r!==0?r:(r=window.event,r===void 0?32:F1(r.type))}function Pr(r,l){var u=U.p;try{return U.p=r,l()}finally{U.p=u}}var mi=Math.random().toString(36).slice(2),en="__reactFiber$"+mi,Ve="__reactProps$"+mi,or="__reactContainer$"+mi,ba="__reactEvents$"+mi,rl="__reactListeners$"+mi,Hr="__reactHandles$"+mi,Kl="__reactResources$"+mi,Ot="__reactMarker$"+mi;function Y(r){delete r[en],delete r[Ve],delete r[ba],delete r[rl],delete r[Hr]}function dt(r){var l=r[en];if(l)return l;for(var u=r.parentNode;u;){if(l=u[or]||u[en]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(r=S1(r);r!==null;){if(u=r[en])return u;r=S1(r)}return l}r=u,u=r.parentNode}return null}function kt(r){if(r=r[en]||r[or]){var l=r.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return r}return null}function Ce(r){var l=r.tag;if(l===5||l===26||l===27||l===6)return r.stateNode;throw Error(i(33))}function Ze(r){var l=r[Kl];return l||(l=r[Kl]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function re(r){r[Ot]=!0}var An=new Set,zn={};function Gn(r,l){yt(r,l),yt(r+"Capture",l)}function yt(r,l){for(zn[r]=l,r=0;r<l.length;r++)An.add(l[r])}var wt=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]*$"),ae={},ke={};function dn(r){return ii.call(ke,r)?!0:ii.call(ae,r)?!1:wt.test(r)?ke[r]=!0:(ae[r]=!0,!1)}function Yn(r,l,u){if(dn(l))if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":r.removeAttribute(l);return;case"boolean":var p=l.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){r.removeAttribute(l);return}}r.setAttribute(l,""+u)}}function Oi(r,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttribute(l,""+u)}}function yi(r,l,u,p){if(p===null)r.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}r.setAttributeNS(l,u,""+p)}}function Xe(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Li(r){var l=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function _u(r,l,u){var p=Object.getOwnPropertyDescriptor(r.constructor.prototype,l);if(!r.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,x=p.set;return Object.defineProperty(r,l,{configurable:!0,get:function(){return b.call(this)},set:function(k){u=""+k,x.call(this,k)}}),Object.defineProperty(r,l,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){r._valueTracker=null,delete r[l]}}}}function Zl(r){if(!r._valueTracker){var l=Li(r)?"checked":"value";r._valueTracker=_u(r,l,""+r[l])}}function yo(r){if(!r)return!1;var l=r._valueTracker;if(!l)return!0;var u=l.getValue(),p="";return r&&(p=Li(r)?r.checked?"true":"false":r.value),r=p,r!==u?(l.setValue(r),!0):!1}function Ql(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Fd=/[\n"\\]/g;function bi(r){return r.replace(Fd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function bo(r,l,u,p,b,x,k,M){r.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?r.type=k:r.removeAttribute("type"),l!=null?k==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+Xe(l)):r.value!==""+Xe(l)&&(r.value=""+Xe(l)):k!=="submit"&&k!=="reset"||r.removeAttribute("value"),l!=null?Jl(r,k,Xe(l)):u!=null?Jl(r,k,Xe(u)):p!=null&&r.removeAttribute("value"),b==null&&x!=null&&(r.defaultChecked=!!x),b!=null&&(r.checked=b&&typeof b!="function"&&typeof b!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?r.name=""+Xe(M):r.removeAttribute("name")}function al(r,l,u,p,b,x,k,M){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.type=x),l!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||l!=null)){Zl(r);return}u=u!=null?""+Xe(u):"",l=l!=null?""+Xe(l):u,M||l===r.value||(r.value=l),r.defaultValue=l}p=p??b,p=typeof p!="function"&&typeof p!="symbol"&&!!p,r.checked=M?r.checked:!!p,r.defaultChecked=!!p,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(r.name=k),Zl(r)}function Jl(r,l,u){l==="number"&&Ql(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function Fn(r,l,u,p){if(r=r.options,l){l={};for(var b=0;b<u.length;b++)l["$"+u[b]]=!0;for(u=0;u<r.length;u++)b=l.hasOwnProperty("$"+r[u].value),r[u].selected!==b&&(r[u].selected=b),b&&p&&(r[u].defaultSelected=!0)}else{for(u=""+Xe(u),l=null,b=0;b<r.length;b++){if(r[b].value===u){r[b].selected=!0,p&&(r[b].defaultSelected=!0);return}l!==null||r[b].disabled||(l=r[b])}l!==null&&(l.selected=!0)}}function vu(r,l,u){if(l!=null&&(l=""+Xe(l),l!==r.value&&(r.value=l),u==null)){r.defaultValue!==l&&(r.defaultValue=l);return}r.defaultValue=u!=null?""+Xe(u):""}function ts(r,l,u,p){if(l==null){if(p!=null){if(u!=null)throw Error(i(92));if(F(p)){if(1<p.length)throw Error(i(93));p=p[0]}u=p}u==null&&(u=""),l=u}u=Xe(l),r.defaultValue=u,p=r.textContent,p===u&&p!==""&&p!==null&&(r.value=p),Zl(r)}function Kt(r,l){if(l){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=l;return}}r.textContent=l}var Su=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 bn(r,l,u){var p=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?r.setProperty(l,""):l==="float"?r.cssFloat="":r[l]="":p?r.setProperty(l,u):typeof u!="number"||u===0||Su.has(l)?l==="float"?r.cssFloat=u:r[l]=(""+u).trim():r[l]=u+"px"}function De(r,l,u){if(l!=null&&typeof l!="object")throw Error(i(62));if(r=r.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||l!=null&&l.hasOwnProperty(p)||(p.indexOf("--")===0?r.setProperty(p,""):p==="float"?r.cssFloat="":r[p]="");for(var b in l)p=l[b],l.hasOwnProperty(b)&&u[b]!==p&&bn(r,b,p)}else for(var x in l)l.hasOwnProperty(x)&&bn(r,x,l[x])}function xa(r){if(r.indexOf("-")===-1)return!1;switch(r){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 qr=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"]]),xo=/^[\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 _a(r){return xo.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function _t(){}var Bt=null;function ee(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ge=null,ln=null;function Wi(r){var l=kt(r);if(l&&(r=l.stateNode)){var u=r[Ve]||null;t:switch(r=l.stateNode,l.type){case"input":if(bo(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+bi(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var p=u[l];if(p!==r&&p.form===r.form){var b=p[Ve]||null;if(!b)throw Error(i(90));bo(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(l=0;l<u.length;l++)p=u[l],p.form===r.form&&yo(p)}break t;case"textarea":vu(r,u.value,u.defaultValue);break t;case"select":l=u.value,l!=null&&Fn(r,!!u.multiple,l,!1)}}}var _o=!1;function wu(r,l,u){if(_o)return r(l,u);_o=!0;try{var p=r(l);return p}finally{if(_o=!1,(ge!==null||ln!==null)&&(uh(),ge&&(l=ge,r=ln,ln=ge=null,Wi(l),r)))for(l=0;l<r.length;l++)Wi(r[l])}}function vo(r,l){var u=r.stateNode;if(u===null)return null;var p=u[Ve]||null;if(p===null)return null;u=p[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":(p=!p.disabled)||(r=r.type,p=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!p;break t;default:r=!1}if(r)return null;if(u&&typeof u!="function")throw Error(i(231,l,typeof u));return u}var jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$d=!1;if(jr)try{var So={};Object.defineProperty(So,"passive",{get:function(){$d=!0}}),window.addEventListener("test",So,So),window.removeEventListener("test",So,So)}catch{$d=!1}var va=null,Ud=null,Cu=null;function g0(){if(Cu)return Cu;var r,l=Ud,u=l.length,p,b="value"in va?va.value:va.textContent,x=b.length;for(r=0;r<u&&l[r]===b[r];r++);var k=u-r;for(p=1;p<=k&&l[u-p]===b[x-p];p++);return Cu=b.slice(r,1<p?1-p:void 0)}function ku(r){var l=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&l===13&&(r=13)):r=l,r===10&&(r=13),32<=r||r===13?r:0}function Eu(){return!0}function m0(){return!1}function xi(r){function l(u,p,b,x,k){this._reactName=u,this._targetInst=b,this.type=p,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var M in r)r.hasOwnProperty(M)&&(u=r[M],this[M]=u?u(x):x[M]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Eu:m0,this.isPropagationStopped=m0,this}return g(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Eu)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Eu)},persist:function(){},isPersistent:Eu}),l}var ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tu=xi(ll),wo=g({},ll,{view:0,detail:0}),FN=xi(wo),Pd,Hd,Co,Au=g({},wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Co&&(Co&&r.type==="mousemove"?(Pd=r.screenX-Co.screenX,Hd=r.screenY-Co.screenY):Hd=Pd=0,Co=r),Pd)},movementY:function(r){return"movementY"in r?r.movementY:Hd}}),y0=xi(Au),$N=g({},Au,{dataTransfer:0}),UN=xi($N),PN=g({},wo,{relatedTarget:0}),qd=xi(PN),HN=g({},ll,{animationName:0,elapsedTime:0,pseudoElement:0}),qN=xi(HN),jN=g({},ll,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),GN=xi(jN),YN=g({},ll,{data:0}),b0=xi(YN),WN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VN={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"},XN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KN(r){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(r):(r=XN[r])?!!l[r]:!1}function jd(){return KN}var ZN=g({},wo,{key:function(r){if(r.key){var l=WN[r.key]||r.key;if(l!=="Unidentified")return l}return r.type==="keypress"?(r=ku(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?VN[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jd,charCode:function(r){return r.type==="keypress"?ku(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ku(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),QN=xi(ZN),JN=g({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),x0=xi(JN),tO=g({},wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jd}),eO=xi(tO),nO=g({},ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),iO=xi(nO),rO=g({},Au,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),aO=xi(rO),lO=g({},ll,{newState:0,oldState:0}),sO=xi(lO),oO=[9,13,27,32],Gd=jr&&"CompositionEvent"in window,ko=null;jr&&"documentMode"in document&&(ko=document.documentMode);var cO=jr&&"TextEvent"in window&&!ko,_0=jr&&(!Gd||ko&&8<ko&&11>=ko),v0=" ",S0=!1;function w0(r,l){switch(r){case"keyup":return oO.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C0(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var es=!1;function uO(r,l){switch(r){case"compositionend":return C0(l);case"keypress":return l.which!==32?null:(S0=!0,v0);case"textInput":return r=l.data,r===v0&&S0?null:r;default:return null}}function hO(r,l){if(es)return r==="compositionend"||!Gd&&w0(r,l)?(r=g0(),Cu=Ud=va=null,es=!1,r):null;switch(r){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 _0&&l.locale!=="ko"?null:l.data;default:return null}}var fO={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 k0(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l==="input"?!!fO[r.type]:l==="textarea"}function E0(r,l,u,p){ge?ln?ln.push(p):ln=[p]:ge=p,l=yh(l,"onChange"),0<l.length&&(u=new Tu("onChange","change",null,u,p),r.push({event:u,listeners:l}))}var Eo=null,To=null;function dO(r){o1(r,0)}function Mu(r){var l=Ce(r);if(yo(l))return r}function T0(r,l){if(r==="change")return l}var A0=!1;if(jr){var Yd;if(jr){var Wd="oninput"in document;if(!Wd){var M0=document.createElement("div");M0.setAttribute("oninput","return;"),Wd=typeof M0.oninput=="function"}Yd=Wd}else Yd=!1;A0=Yd&&(!document.documentMode||9<document.documentMode)}function N0(){Eo&&(Eo.detachEvent("onpropertychange",O0),To=Eo=null)}function O0(r){if(r.propertyName==="value"&&Mu(To)){var l=[];E0(l,To,r,ee(r)),wu(dO,l)}}function pO(r,l,u){r==="focusin"?(N0(),Eo=l,To=u,Eo.attachEvent("onpropertychange",O0)):r==="focusout"&&N0()}function gO(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Mu(To)}function mO(r,l){if(r==="click")return Mu(l)}function yO(r,l){if(r==="input"||r==="change")return Mu(l)}function bO(r,l){return r===l&&(r!==0||1/r===1/l)||r!==r&&l!==l}var Ri=typeof Object.is=="function"?Object.is:bO;function Ao(r,l){if(Ri(r,l))return!0;if(typeof r!="object"||r===null||typeof l!="object"||l===null)return!1;var u=Object.keys(r),p=Object.keys(l);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var b=u[p];if(!ii.call(l,b)||!Ri(r[b],l[b]))return!1}return!0}function L0(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function R0(r,l){var u=L0(r);r=0;for(var p;u;){if(u.nodeType===3){if(p=r+u.textContent.length,r<=l&&p>=l)return{node:u,offset:l-r};r=p}t:{for(;u;){if(u.nextSibling){u=u.nextSibling;break t}u=u.parentNode}u=void 0}u=L0(u)}}function D0(r,l){return r&&l?r===l?!0:r&&r.nodeType===3?!1:l&&l.nodeType===3?D0(r,l.parentNode):"contains"in r?r.contains(l):r.compareDocumentPosition?!!(r.compareDocumentPosition(l)&16):!1:!1}function B0(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var l=Ql(r.document);l instanceof r.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)r=l.contentWindow;else break;l=Ql(r.document)}return l}function Vd(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l&&(l==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||l==="textarea"||r.contentEditable==="true")}var xO=jr&&"documentMode"in document&&11>=document.documentMode,ns=null,Xd=null,Mo=null,Kd=!1;function I0(r,l,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Kd||ns==null||ns!==Ql(p)||(p=ns,"selectionStart"in p&&Vd(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Mo&&Ao(Mo,p)||(Mo=p,p=yh(Xd,"onSelect"),0<p.length&&(l=new Tu("onSelect","select",null,l,u),r.push({event:l,listeners:p}),l.target=ns)))}function sl(r,l){var u={};return u[r.toLowerCase()]=l.toLowerCase(),u["Webkit"+r]="webkit"+l,u["Moz"+r]="moz"+l,u}var is={animationend:sl("Animation","AnimationEnd"),animationiteration:sl("Animation","AnimationIteration"),animationstart:sl("Animation","AnimationStart"),transitionrun:sl("Transition","TransitionRun"),transitionstart:sl("Transition","TransitionStart"),transitioncancel:sl("Transition","TransitionCancel"),transitionend:sl("Transition","TransitionEnd")},Zd={},z0={};jr&&(z0=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function ol(r){if(Zd[r])return Zd[r];if(!is[r])return r;var l=is[r],u;for(u in l)if(l.hasOwnProperty(u)&&u in z0)return Zd[r]=l[u];return r}var F0=ol("animationend"),$0=ol("animationiteration"),U0=ol("animationstart"),_O=ol("transitionrun"),vO=ol("transitionstart"),SO=ol("transitioncancel"),P0=ol("transitionend"),H0=new Map,Qd="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(" ");Qd.push("scrollEnd");function cr(r,l){H0.set(r,l),Gn(l,[r])}var Nu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Vi=[],rs=0,Jd=0;function Ou(){for(var r=rs,l=Jd=rs=0;l<r;){var u=Vi[l];Vi[l++]=null;var p=Vi[l];Vi[l++]=null;var b=Vi[l];Vi[l++]=null;var x=Vi[l];if(Vi[l++]=null,p!==null&&b!==null){var k=p.pending;k===null?b.next=b:(b.next=k.next,k.next=b),p.pending=b}x!==0&&q0(u,b,x)}}function Lu(r,l,u,p){Vi[rs++]=r,Vi[rs++]=l,Vi[rs++]=u,Vi[rs++]=p,Jd|=p,r.lanes|=p,r=r.alternate,r!==null&&(r.lanes|=p)}function tp(r,l,u,p){return Lu(r,l,u,p),Ru(r)}function cl(r,l){return Lu(r,null,null,l),Ru(r)}function q0(r,l,u){r.lanes|=u;var p=r.alternate;p!==null&&(p.lanes|=u);for(var b=!1,x=r.return;x!==null;)x.childLanes|=u,p=x.alternate,p!==null&&(p.childLanes|=u),x.tag===22&&(r=x.stateNode,r===null||r._visibility&1||(b=!0)),r=x,x=x.return;return r.tag===3?(x=r.stateNode,b&&l!==null&&(b=31-pe(u),r=x.hiddenUpdates,p=r[b],p===null?r[b]=[l]:p.push(l),l.lane=u|536870912),x):null}function Ru(r){if(50<Zo)throw Zo=0,cg=null,Error(i(185));for(var l=r.return;l!==null;)r=l,l=r.return;return r.tag===3?r.stateNode:null}var as={};function wO(r,l,u,p){this.tag=r,this.key=u,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=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Di(r,l,u,p){return new wO(r,l,u,p)}function ep(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Gr(r,l){var u=r.alternate;return u===null?(u=Di(r.tag,l,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=l,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&65011712,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,l=r.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.refCleanup=r.refCleanup,u}function j0(r,l){r.flags&=65011714;var u=r.alternate;return u===null?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,l=u.dependencies,r.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),r}function Du(r,l,u,p,b,x){var k=0;if(p=r,typeof r=="function")ep(r)&&(k=1);else if(typeof r=="string")k=AL(r,u,ft.current)?26:r==="html"||r==="head"||r==="body"?27:5;else t:switch(r){case Z:return r=Di(31,u,l,b),r.elementType=Z,r.lanes=x,r;case v:return ul(u.children,b,x,l);case C:k=8,b|=24;break;case S:return r=Di(12,u,l,b|2),r.elementType=S,r.lanes=x,r;case N:return r=Di(13,u,l,b),r.elementType=N,r.lanes=x,r;case E:return r=Di(19,u,l,b),r.elementType=E,r.lanes=x,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case A:k=10;break t;case T:k=9;break t;case B:k=11;break t;case R:k=14;break t;case G:k=16,p=null;break t}k=29,u=Error(i(130,r===null?"null":typeof r,"")),p=null}return l=Di(k,u,l,b),l.elementType=r,l.type=p,l.lanes=x,l}function ul(r,l,u,p){return r=Di(7,r,p,l),r.lanes=u,r}function np(r,l,u){return r=Di(6,r,null,l),r.lanes=u,r}function G0(r){var l=Di(18,null,null,0);return l.stateNode=r,l}function ip(r,l,u){return l=Di(4,r.children!==null?r.children:[],r.key,l),l.lanes=u,l.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},l}var Y0=new WeakMap;function Xi(r,l){if(typeof r=="object"&&r!==null){var u=Y0.get(r);return u!==void 0?u:(l={value:r,source:l,stack:kn(l)},Y0.set(r,l),l)}return{value:r,source:l,stack:kn(l)}}var ls=[],ss=0,Bu=null,No=0,Ki=[],Zi=0,Sa=null,Sr=1,wr="";function Yr(r,l){ls[ss++]=No,ls[ss++]=Bu,Bu=r,No=l}function W0(r,l,u){Ki[Zi++]=Sr,Ki[Zi++]=wr,Ki[Zi++]=Sa,Sa=r;var p=Sr;r=wr;var b=32-pe(p)-1;p&=~(1<<b),u+=1;var x=32-pe(l)+b;if(30<x){var k=b-b%5;x=(p&(1<<k)-1).toString(32),p>>=k,b-=k,Sr=1<<32-pe(l)+b|u<<b|p,wr=x+r}else Sr=1<<x|u<<b|p,wr=r}function rp(r){r.return!==null&&(Yr(r,1),W0(r,1,0))}function ap(r){for(;r===Bu;)Bu=ls[--ss],ls[ss]=null,No=ls[--ss],ls[ss]=null;for(;r===Sa;)Sa=Ki[--Zi],Ki[Zi]=null,wr=Ki[--Zi],Ki[Zi]=null,Sr=Ki[--Zi],Ki[Zi]=null}function V0(r,l){Ki[Zi++]=Sr,Ki[Zi++]=wr,Ki[Zi++]=Sa,Sr=l.id,wr=l.overflow,Sa=r}var $n=null,Qe=null,_e=!1,wa=null,Qi=!1,lp=Error(i(519));function Ca(r){var l=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oo(Xi(l,r)),lp}function X0(r){var l=r.stateNode,u=r.type,p=r.memoizedProps;switch(l[en]=r,l[Ve]=p,u){case"dialog":he("cancel",l),he("close",l);break;case"iframe":case"object":case"embed":he("load",l);break;case"video":case"audio":for(u=0;u<Jo.length;u++)he(Jo[u],l);break;case"source":he("error",l);break;case"img":case"image":case"link":he("error",l),he("load",l);break;case"details":he("toggle",l);break;case"input":he("invalid",l),al(l,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":he("invalid",l);break;case"textarea":he("invalid",l),ts(l,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||p.suppressHydrationWarning===!0||f1(l.textContent,u)?(p.popover!=null&&(he("beforetoggle",l),he("toggle",l)),p.onScroll!=null&&he("scroll",l),p.onScrollEnd!=null&&he("scrollend",l),p.onClick!=null&&(l.onclick=_t),l=!0):l=!1,l||Ca(r,!0)}function K0(r){for($n=r.return;$n;)switch($n.tag){case 5:case 31:case 13:Qi=!1;return;case 27:case 3:Qi=!0;return;default:$n=$n.return}}function os(r){if(r!==$n)return!1;if(!_e)return K0(r),_e=!0,!1;var l=r.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||Cg(r.type,r.memoizedProps)),u=!u),u&&Qe&&Ca(r),K0(r),l===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Qe=v1(r)}else if(l===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Qe=v1(r)}else l===27?(l=Qe,Fa(r.type)?(r=Mg,Mg=null,Qe=r):Qe=l):Qe=$n?tr(r.stateNode.nextSibling):null;return!0}function hl(){Qe=$n=null,_e=!1}function sp(){var r=wa;return r!==null&&(wi===null?wi=r:wi.push.apply(wi,r),wa=null),r}function Oo(r){wa===null?wa=[r]:wa.push(r)}var op=I(null),fl=null,Wr=null;function ka(r,l,u){O(op,l._currentValue),l._currentValue=u}function Vr(r){r._currentValue=op.current,K(op)}function cp(r,l,u){for(;r!==null;){var p=r.alternate;if((r.childLanes&l)!==l?(r.childLanes|=l,p!==null&&(p.childLanes|=l)):p!==null&&(p.childLanes&l)!==l&&(p.childLanes|=l),r===u)break;r=r.return}}function up(r,l,u,p){var b=r.child;for(b!==null&&(b.return=r);b!==null;){var x=b.dependencies;if(x!==null){var k=b.child;x=x.firstContext;t:for(;x!==null;){var M=x;x=b;for(var P=0;P<l.length;P++)if(M.context===l[P]){x.lanes|=u,M=x.alternate,M!==null&&(M.lanes|=u),cp(x.return,u,r),p||(k=null);break t}x=M.next}}else if(b.tag===18){if(k=b.return,k===null)throw Error(i(341));k.lanes|=u,x=k.alternate,x!==null&&(x.lanes|=u),cp(k,u,r),k=null}else k=b.child;if(k!==null)k.return=b;else for(k=b;k!==null;){if(k===r){k=null;break}if(b=k.sibling,b!==null){b.return=k.return,k=b;break}k=k.return}b=k}}function cs(r,l,u,p){r=null;for(var b=l,x=!1;b!==null;){if(!x){if((b.flags&524288)!==0)x=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var k=b.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var M=b.type;Ri(b.pendingProps.value,k.value)||(r!==null?r.push(M):r=[M])}}else if(b===St.current){if(k=b.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(r!==null?r.push(rc):r=[rc])}b=b.return}r!==null&&up(l,r,u,p),l.flags|=262144}function Iu(r){for(r=r.firstContext;r!==null;){if(!Ri(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function dl(r){fl=r,Wr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Un(r){return Z0(fl,r)}function zu(r,l){return fl===null&&dl(r),Z0(r,l)}function Z0(r,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},Wr===null){if(r===null)throw Error(i(308));Wr=l,r.dependencies={lanes:0,firstContext:l},r.flags|=524288}else Wr=Wr.next=l;return u}var CO=typeof AbortController<"u"?AbortController:function(){var r=[],l=this.signal={aborted:!1,addEventListener:function(u,p){r.push(p)}};this.abort=function(){l.aborted=!0,r.forEach(function(u){return u()})}},kO=t.unstable_scheduleCallback,EO=t.unstable_NormalPriority,xn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hp(){return{controller:new CO,data:new Map,refCount:0}}function Lo(r){r.refCount--,r.refCount===0&&kO(EO,function(){r.controller.abort()})}var Ro=null,fp=0,us=0,hs=null;function TO(r,l){if(Ro===null){var u=Ro=[];fp=0,us=gg(),hs={status:"pending",value:void 0,then:function(p){u.push(p)}}}return fp++,l.then(Q0,Q0),l}function Q0(){if(--fp===0&&Ro!==null){hs!==null&&(hs.status="fulfilled");var r=Ro;Ro=null,us=0,hs=null;for(var l=0;l<r.length;l++)(0,r[l])()}}function AO(r,l){var u=[],p={status:"pending",value:null,reason:null,then:function(b){u.push(b)}};return r.then(function(){p.status="fulfilled",p.value=l;for(var b=0;b<u.length;b++)(0,u[b])(l)},function(b){for(p.status="rejected",p.reason=b,b=0;b<u.length;b++)(0,u[b])(void 0)}),p}var J0=L.S;L.S=function(r,l){I_=He(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&TO(r,l),J0!==null&&J0(r,l)};var pl=I(null);function dp(){var r=pl.current;return r!==null?r:Ge.pooledCache}function Fu(r,l){l===null?O(pl,pl.current):O(pl,l.pool)}function tx(){var r=dp();return r===null?null:{parent:xn._currentValue,pool:r}}var fs=Error(i(460)),pp=Error(i(474)),$u=Error(i(542)),Uu={then:function(){}};function ex(r){return r=r.status,r==="fulfilled"||r==="rejected"}function nx(r,l,u){switch(u=r[u],u===void 0?r.push(l):u!==l&&(l.then(_t,_t),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw r=l.reason,rx(r),r;default:if(typeof l.status=="string")l.then(_t,_t);else{if(r=Ge,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=l,r.status="pending",r.then(function(p){if(l.status==="pending"){var b=l;b.status="fulfilled",b.value=p}},function(p){if(l.status==="pending"){var b=l;b.status="rejected",b.reason=p}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw r=l.reason,rx(r),r}throw ml=l,fs}}function gl(r){try{var l=r._init;return l(r._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(ml=u,fs):u}}var ml=null;function ix(){if(ml===null)throw Error(i(459));var r=ml;return ml=null,r}function rx(r){if(r===fs||r===$u)throw Error(i(483))}var ds=null,Do=0;function Pu(r){var l=Do;return Do+=1,ds===null&&(ds=[]),nx(ds,r,l)}function Bo(r,l){l=l.props.ref,r.ref=l!==void 0?l:null}function Hu(r,l){throw l.$$typeof===y?Error(i(525)):(r=Object.prototype.toString.call(l),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":r)))}function ax(r){function l(X,W){if(r){var J=X.deletions;J===null?(X.deletions=[W],X.flags|=16):J.push(W)}}function u(X,W){if(!r)return null;for(;W!==null;)l(X,W),W=W.sibling;return null}function p(X){for(var W=new Map;X!==null;)X.key!==null?W.set(X.key,X):W.set(X.index,X),X=X.sibling;return W}function b(X,W){return X=Gr(X,W),X.index=0,X.sibling=null,X}function x(X,W,J){return X.index=J,r?(J=X.alternate,J!==null?(J=J.index,J<W?(X.flags|=67108866,W):J):(X.flags|=67108866,W)):(X.flags|=1048576,W)}function k(X){return r&&X.alternate===null&&(X.flags|=67108866),X}function M(X,W,J,ct){return W===null||W.tag!==6?(W=np(J,X.mode,ct),W.return=X,W):(W=b(W,J),W.return=X,W)}function P(X,W,J,ct){var Ht=J.type;return Ht===v?st(X,W,J.props.children,ct,J.key):W!==null&&(W.elementType===Ht||typeof Ht=="object"&&Ht!==null&&Ht.$$typeof===G&&gl(Ht)===W.type)?(W=b(W,J.props),Bo(W,J),W.return=X,W):(W=Du(J.type,J.key,J.props,null,X.mode,ct),Bo(W,J),W.return=X,W)}function et(X,W,J,ct){return W===null||W.tag!==4||W.stateNode.containerInfo!==J.containerInfo||W.stateNode.implementation!==J.implementation?(W=ip(J,X.mode,ct),W.return=X,W):(W=b(W,J.children||[]),W.return=X,W)}function st(X,W,J,ct,Ht){return W===null||W.tag!==7?(W=ul(J,X.mode,ct,Ht),W.return=X,W):(W=b(W,J),W.return=X,W)}function ut(X,W,J){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return W=np(""+W,X.mode,J),W.return=X,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case m:return J=Du(W.type,W.key,W.props,null,X.mode,J),Bo(J,W),J.return=X,J;case _:return W=ip(W,X.mode,J),W.return=X,W;case G:return W=gl(W),ut(X,W,J)}if(F(W)||tt(W))return W=ul(W,X.mode,J,null),W.return=X,W;if(typeof W.then=="function")return ut(X,Pu(W),J);if(W.$$typeof===A)return ut(X,zu(X,W),J);Hu(X,W)}return null}function nt(X,W,J,ct){var Ht=W!==null?W.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Ht!==null?null:M(X,W,""+J,ct);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case m:return J.key===Ht?P(X,W,J,ct):null;case _:return J.key===Ht?et(X,W,J,ct):null;case G:return J=gl(J),nt(X,W,J,ct)}if(F(J)||tt(J))return Ht!==null?null:st(X,W,J,ct,null);if(typeof J.then=="function")return nt(X,W,Pu(J),ct);if(J.$$typeof===A)return nt(X,W,zu(X,J),ct);Hu(X,J)}return null}function rt(X,W,J,ct,Ht){if(typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint")return X=X.get(J)||null,M(W,X,""+ct,Ht);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case m:return X=X.get(ct.key===null?J:ct.key)||null,P(W,X,ct,Ht);case _:return X=X.get(ct.key===null?J:ct.key)||null,et(W,X,ct,Ht);case G:return ct=gl(ct),rt(X,W,J,ct,Ht)}if(F(ct)||tt(ct))return X=X.get(J)||null,st(W,X,ct,Ht,null);if(typeof ct.then=="function")return rt(X,W,J,Pu(ct),Ht);if(ct.$$typeof===A)return rt(X,W,J,zu(W,ct),Ht);Hu(W,ct)}return null}function At(X,W,J,ct){for(var Ht=null,Ee=null,It=W,le=W=0,ye=null;It!==null&&le<J.length;le++){It.index>le?(ye=It,It=null):ye=It.sibling;var Te=nt(X,It,J[le],ct);if(Te===null){It===null&&(It=ye);break}r&&It&&Te.alternate===null&&l(X,It),W=x(Te,W,le),Ee===null?Ht=Te:Ee.sibling=Te,Ee=Te,It=ye}if(le===J.length)return u(X,It),_e&&Yr(X,le),Ht;if(It===null){for(;le<J.length;le++)It=ut(X,J[le],ct),It!==null&&(W=x(It,W,le),Ee===null?Ht=It:Ee.sibling=It,Ee=It);return _e&&Yr(X,le),Ht}for(It=p(It);le<J.length;le++)ye=rt(It,X,le,J[le],ct),ye!==null&&(r&&ye.alternate!==null&&It.delete(ye.key===null?le:ye.key),W=x(ye,W,le),Ee===null?Ht=ye:Ee.sibling=ye,Ee=ye);return r&&It.forEach(function(qa){return l(X,qa)}),_e&&Yr(X,le),Ht}function Vt(X,W,J,ct){if(J==null)throw Error(i(151));for(var Ht=null,Ee=null,It=W,le=W=0,ye=null,Te=J.next();It!==null&&!Te.done;le++,Te=J.next()){It.index>le?(ye=It,It=null):ye=It.sibling;var qa=nt(X,It,Te.value,ct);if(qa===null){It===null&&(It=ye);break}r&&It&&qa.alternate===null&&l(X,It),W=x(qa,W,le),Ee===null?Ht=qa:Ee.sibling=qa,Ee=qa,It=ye}if(Te.done)return u(X,It),_e&&Yr(X,le),Ht;if(It===null){for(;!Te.done;le++,Te=J.next())Te=ut(X,Te.value,ct),Te!==null&&(W=x(Te,W,le),Ee===null?Ht=Te:Ee.sibling=Te,Ee=Te);return _e&&Yr(X,le),Ht}for(It=p(It);!Te.done;le++,Te=J.next())Te=rt(It,X,le,Te.value,ct),Te!==null&&(r&&Te.alternate!==null&&It.delete(Te.key===null?le:Te.key),W=x(Te,W,le),Ee===null?Ht=Te:Ee.sibling=Te,Ee=Te);return r&&It.forEach(function($L){return l(X,$L)}),_e&&Yr(X,le),Ht}function $e(X,W,J,ct){if(typeof J=="object"&&J!==null&&J.type===v&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case m:t:{for(var Ht=J.key;W!==null;){if(W.key===Ht){if(Ht=J.type,Ht===v){if(W.tag===7){u(X,W.sibling),ct=b(W,J.props.children),ct.return=X,X=ct;break t}}else if(W.elementType===Ht||typeof Ht=="object"&&Ht!==null&&Ht.$$typeof===G&&gl(Ht)===W.type){u(X,W.sibling),ct=b(W,J.props),Bo(ct,J),ct.return=X,X=ct;break t}u(X,W);break}else l(X,W);W=W.sibling}J.type===v?(ct=ul(J.props.children,X.mode,ct,J.key),ct.return=X,X=ct):(ct=Du(J.type,J.key,J.props,null,X.mode,ct),Bo(ct,J),ct.return=X,X=ct)}return k(X);case _:t:{for(Ht=J.key;W!==null;){if(W.key===Ht)if(W.tag===4&&W.stateNode.containerInfo===J.containerInfo&&W.stateNode.implementation===J.implementation){u(X,W.sibling),ct=b(W,J.children||[]),ct.return=X,X=ct;break t}else{u(X,W);break}else l(X,W);W=W.sibling}ct=ip(J,X.mode,ct),ct.return=X,X=ct}return k(X);case G:return J=gl(J),$e(X,W,J,ct)}if(F(J))return At(X,W,J,ct);if(tt(J)){if(Ht=tt(J),typeof Ht!="function")throw Error(i(150));return J=Ht.call(J),Vt(X,W,J,ct)}if(typeof J.then=="function")return $e(X,W,Pu(J),ct);if(J.$$typeof===A)return $e(X,W,zu(X,J),ct);Hu(X,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,W!==null&&W.tag===6?(u(X,W.sibling),ct=b(W,J),ct.return=X,X=ct):(u(X,W),ct=np(J,X.mode,ct),ct.return=X,X=ct),k(X)):u(X,W)}return function(X,W,J,ct){try{Do=0;var Ht=$e(X,W,J,ct);return ds=null,Ht}catch(It){if(It===fs||It===$u)throw It;var Ee=Di(29,It,null,X.mode);return Ee.lanes=ct,Ee.return=X,Ee}finally{}}}var yl=ax(!0),lx=ax(!1),Ea=!1;function gp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mp(r,l){r=r.updateQueue,l.updateQueue===r&&(l.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ta(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Aa(r,l,u){var p=r.updateQueue;if(p===null)return null;if(p=p.shared,(Me&2)!==0){var b=p.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),p.pending=l,l=Ru(r),q0(r,null,u),l}return Lu(r,p,l,u),Ru(r)}function Io(r,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var p=l.lanes;p&=r.pendingLanes,u|=p,l.lanes=u,Yt(r,u)}}function yp(r,l){var u=r.updateQueue,p=r.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var b=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var k={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?b=x=k:x=x.next=k,u=u.next}while(u!==null);x===null?b=x=l:x=x.next=l}else b=x=l;u={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:x,shared:p.shared,callbacks:p.callbacks},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=l:r.next=l,u.lastBaseUpdate=l}var bp=!1;function zo(){if(bp){var r=hs;if(r!==null)throw r}}function Fo(r,l,u,p){bp=!1;var b=r.updateQueue;Ea=!1;var x=b.firstBaseUpdate,k=b.lastBaseUpdate,M=b.shared.pending;if(M!==null){b.shared.pending=null;var P=M,et=P.next;P.next=null,k===null?x=et:k.next=et,k=P;var st=r.alternate;st!==null&&(st=st.updateQueue,M=st.lastBaseUpdate,M!==k&&(M===null?st.firstBaseUpdate=et:M.next=et,st.lastBaseUpdate=P))}if(x!==null){var ut=b.baseState;k=0,st=et=P=null,M=x;do{var nt=M.lane&-536870913,rt=nt!==M.lane;if(rt?(me&nt)===nt:(p&nt)===nt){nt!==0&&nt===us&&(bp=!0),st!==null&&(st=st.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});t:{var At=r,Vt=M;nt=l;var $e=u;switch(Vt.tag){case 1:if(At=Vt.payload,typeof At=="function"){ut=At.call($e,ut,nt);break t}ut=At;break t;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Vt.payload,nt=typeof At=="function"?At.call($e,ut,nt):At,nt==null)break t;ut=g({},ut,nt);break t;case 2:Ea=!0}}nt=M.callback,nt!==null&&(r.flags|=64,rt&&(r.flags|=8192),rt=b.callbacks,rt===null?b.callbacks=[nt]:rt.push(nt))}else rt={lane:nt,tag:M.tag,payload:M.payload,callback:M.callback,next:null},st===null?(et=st=rt,P=ut):st=st.next=rt,k|=nt;if(M=M.next,M===null){if(M=b.shared.pending,M===null)break;rt=M,M=rt.next,rt.next=null,b.lastBaseUpdate=rt,b.shared.pending=null}}while(!0);st===null&&(P=ut),b.baseState=P,b.firstBaseUpdate=et,b.lastBaseUpdate=st,x===null&&(b.shared.lanes=0),Ra|=k,r.lanes=k,r.memoizedState=ut}}function sx(r,l){if(typeof r!="function")throw Error(i(191,r));r.call(l)}function ox(r,l){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)sx(u[r],l)}var ps=I(null),qu=I(0);function cx(r,l){r=ia,O(qu,r),O(ps,l),ia=r|l.baseLanes}function xp(){O(qu,ia),O(ps,ps.current)}function _p(){ia=qu.current,K(ps),K(qu)}var Bi=I(null),Ji=null;function Ma(r){var l=r.alternate;O(pn,pn.current&1),O(Bi,r),Ji===null&&(l===null||ps.current!==null||l.memoizedState!==null)&&(Ji=r)}function vp(r){O(pn,pn.current),O(Bi,r),Ji===null&&(Ji=r)}function ux(r){r.tag===22?(O(pn,pn.current),O(Bi,r),Ji===null&&(Ji=r)):Na()}function Na(){O(pn,pn.current),O(Bi,Bi.current)}function Ii(r){K(Bi),Ji===r&&(Ji=null),K(pn)}var pn=I(0);function ju(r){for(var l=r;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Tg(u)||Ag(u)))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===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Xr=0,ie=null,ze=null,_n=null,Gu=!1,gs=!1,bl=!1,Yu=0,$o=0,ms=null,MO=0;function cn(){throw Error(i(321))}function Sp(r,l){if(l===null)return!1;for(var u=0;u<l.length&&u<r.length;u++)if(!Ri(r[u],l[u]))return!1;return!0}function wp(r,l,u,p,b,x){return Xr=x,ie=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,L.H=r===null||r.memoizedState===null?Wx:Fp,bl=!1,x=u(p,b),bl=!1,gs&&(x=fx(l,u,p,b)),hx(r),x}function hx(r){L.H=Ho;var l=ze!==null&&ze.next!==null;if(Xr=0,_n=ze=ie=null,Gu=!1,$o=0,ms=null,l)throw Error(i(300));r===null||vn||(r=r.dependencies,r!==null&&Iu(r)&&(vn=!0))}function fx(r,l,u,p){ie=r;var b=0;do{if(gs&&(ms=null),$o=0,gs=!1,25<=b)throw Error(i(301));if(b+=1,_n=ze=null,r.updateQueue!=null){var x=r.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}L.H=Vx,x=l(u,p)}while(gs);return x}function NO(){var r=L.H,l=r.useState()[0];return l=typeof l.then=="function"?Uo(l):l,r=r.useState()[0],(ze!==null?ze.memoizedState:null)!==r&&(ie.flags|=1024),l}function Cp(){var r=Yu!==0;return Yu=0,r}function kp(r,l,u){l.updateQueue=r.updateQueue,l.flags&=-2053,r.lanes&=~u}function Ep(r){if(Gu){for(r=r.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Gu=!1}Xr=0,_n=ze=ie=null,gs=!1,$o=Yu=0,ms=null}function ri(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?ie.memoizedState=_n=r:_n=_n.next=r,_n}function gn(){if(ze===null){var r=ie.alternate;r=r!==null?r.memoizedState:null}else r=ze.next;var l=_n===null?ie.memoizedState:_n.next;if(l!==null)_n=l,ze=r;else{if(r===null)throw ie.alternate===null?Error(i(467)):Error(i(310));ze=r,r={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},_n===null?ie.memoizedState=_n=r:_n=_n.next=r}return _n}function Wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uo(r){var l=$o;return $o+=1,ms===null&&(ms=[]),r=nx(ms,r,l),l=ie,(_n===null?l.memoizedState:_n.next)===null&&(l=l.alternate,L.H=l===null||l.memoizedState===null?Wx:Fp),r}function Vu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Uo(r);if(r.$$typeof===A)return Un(r)}throw Error(i(438,String(r)))}function Tp(r){var l=null,u=ie.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var p=ie.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(l={data:p.data.map(function(b){return b.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=Wu(),ie.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(r),p=0;p<r;p++)u[p]=z;return l.index++,u}function Kr(r,l){return typeof l=="function"?l(r):l}function Xu(r){var l=gn();return Ap(l,ze,r)}function Ap(r,l,u){var p=r.queue;if(p===null)throw Error(i(311));p.lastRenderedReducer=u;var b=r.baseQueue,x=p.pending;if(x!==null){if(b!==null){var k=b.next;b.next=x.next,x.next=k}l.baseQueue=b=x,p.pending=null}if(x=r.baseState,b===null)r.memoizedState=x;else{l=b.next;var M=k=null,P=null,et=l,st=!1;do{var ut=et.lane&-536870913;if(ut!==et.lane?(me&ut)===ut:(Xr&ut)===ut){var nt=et.revertLane;if(nt===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null}),ut===us&&(st=!0);else if((Xr&nt)===nt){et=et.next,nt===us&&(st=!0);continue}else ut={lane:0,revertLane:et.revertLane,gesture:null,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null},P===null?(M=P=ut,k=x):P=P.next=ut,ie.lanes|=nt,Ra|=nt;ut=et.action,bl&&u(x,ut),x=et.hasEagerState?et.eagerState:u(x,ut)}else nt={lane:ut,revertLane:et.revertLane,gesture:et.gesture,action:et.action,hasEagerState:et.hasEagerState,eagerState:et.eagerState,next:null},P===null?(M=P=nt,k=x):P=P.next=nt,ie.lanes|=ut,Ra|=ut;et=et.next}while(et!==null&&et!==l);if(P===null?k=x:P.next=M,!Ri(x,r.memoizedState)&&(vn=!0,st&&(u=hs,u!==null)))throw u;r.memoizedState=x,r.baseState=k,r.baseQueue=P,p.lastRenderedState=x}return b===null&&(p.lanes=0),[r.memoizedState,p.dispatch]}function Mp(r){var l=gn(),u=l.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=r;var p=u.dispatch,b=u.pending,x=l.memoizedState;if(b!==null){u.pending=null;var k=b=b.next;do x=r(x,k.action),k=k.next;while(k!==b);Ri(x,l.memoizedState)||(vn=!0),l.memoizedState=x,l.baseQueue===null&&(l.baseState=x),u.lastRenderedState=x}return[x,p]}function dx(r,l,u){var p=ie,b=gn(),x=_e;if(x){if(u===void 0)throw Error(i(407));u=u()}else u=l();var k=!Ri((ze||b).memoizedState,u);if(k&&(b.memoizedState=u,vn=!0),b=b.queue,Lp(mx.bind(null,p,b,r),[r]),b.getSnapshot!==l||k||_n!==null&&_n.memoizedState.tag&1){if(p.flags|=2048,ys(9,{destroy:void 0},gx.bind(null,p,b,u,l),null),Ge===null)throw Error(i(349));x||(Xr&127)!==0||px(p,l,u)}return u}function px(r,l,u){r.flags|=16384,r={getSnapshot:l,value:u},l=ie.updateQueue,l===null?(l=Wu(),ie.updateQueue=l,l.stores=[r]):(u=l.stores,u===null?l.stores=[r]:u.push(r))}function gx(r,l,u,p){l.value=u,l.getSnapshot=p,yx(l)&&bx(r)}function mx(r,l,u){return u(function(){yx(l)&&bx(r)})}function yx(r){var l=r.getSnapshot;r=r.value;try{var u=l();return!Ri(r,u)}catch{return!0}}function bx(r){var l=cl(r,2);l!==null&&Ci(l,r,2)}function Np(r){var l=ri();if(typeof r=="function"){var u=r;if(r=u(),bl){We(!0);try{u()}finally{We(!1)}}}return l.memoizedState=l.baseState=r,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:r},l}function xx(r,l,u,p){return r.baseState=u,Ap(r,ze,typeof p=="function"?p:Kr)}function OO(r,l,u,p,b){if(Qu(r))throw Error(i(485));if(r=l.action,r!==null){var x={payload:b,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){x.listeners.push(k)}};L.T!==null?u(!0):x.isTransition=!1,p(x),u=l.pending,u===null?(x.next=l.pending=x,_x(l,x)):(x.next=u.next,l.pending=u.next=x)}}function _x(r,l){var u=l.action,p=l.payload,b=r.state;if(l.isTransition){var x=L.T,k={};L.T=k;try{var M=u(b,p),P=L.S;P!==null&&P(k,M),vx(r,l,M)}catch(et){Op(r,l,et)}finally{x!==null&&k.types!==null&&(x.types=k.types),L.T=x}}else try{x=u(b,p),vx(r,l,x)}catch(et){Op(r,l,et)}}function vx(r,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){Sx(r,l,p)},function(p){return Op(r,l,p)}):Sx(r,l,u)}function Sx(r,l,u){l.status="fulfilled",l.value=u,wx(l),r.state=u,l=r.pending,l!==null&&(u=l.next,u===l?r.pending=null:(u=u.next,l.next=u,_x(r,u)))}function Op(r,l,u){var p=r.pending;if(r.pending=null,p!==null){p=p.next;do l.status="rejected",l.reason=u,wx(l),l=l.next;while(l!==p)}r.action=null}function wx(r){r=r.listeners;for(var l=0;l<r.length;l++)(0,r[l])()}function Cx(r,l){return l}function kx(r,l){if(_e){var u=Ge.formState;if(u!==null){t:{var p=ie;if(_e){if(Qe){e:{for(var b=Qe,x=Qi;b.nodeType!==8;){if(!x){b=null;break e}if(b=tr(b.nextSibling),b===null){b=null;break e}}x=b.data,b=x==="F!"||x==="F"?b:null}if(b){Qe=tr(b.nextSibling),p=b.data==="F!";break t}}Ca(p)}p=!1}p&&(l=u[0])}}return u=ri(),u.memoizedState=u.baseState=l,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cx,lastRenderedState:l},u.queue=p,u=jx.bind(null,ie,p),p.dispatch=u,p=Np(!1),x=zp.bind(null,ie,!1,p.queue),p=ri(),b={state:l,dispatch:null,action:r,pending:null},p.queue=b,u=OO.bind(null,ie,b,x,u),b.dispatch=u,p.memoizedState=r,[l,u,!1]}function Ex(r){var l=gn();return Tx(l,ze,r)}function Tx(r,l,u){if(l=Ap(r,l,Cx)[0],r=Xu(Kr)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var p=Uo(l)}catch(k){throw k===fs?$u:k}else p=l;l=gn();var b=l.queue,x=b.dispatch;return u!==l.memoizedState&&(ie.flags|=2048,ys(9,{destroy:void 0},LO.bind(null,b,u),null)),[p,x,r]}function LO(r,l){r.action=l}function Ax(r){var l=gn(),u=ze;if(u!==null)return Tx(l,u,r);gn(),l=l.memoizedState,u=gn();var p=u.queue.dispatch;return u.memoizedState=r,[l,p,!1]}function ys(r,l,u,p){return r={tag:r,create:u,deps:p,inst:l,next:null},l=ie.updateQueue,l===null&&(l=Wu(),ie.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=r.next=r:(p=u.next,u.next=r,r.next=p,l.lastEffect=r),r}function Mx(){return gn().memoizedState}function Ku(r,l,u,p){var b=ri();ie.flags|=r,b.memoizedState=ys(1|l,{destroy:void 0},u,p===void 0?null:p)}function Zu(r,l,u,p){var b=gn();p=p===void 0?null:p;var x=b.memoizedState.inst;ze!==null&&p!==null&&Sp(p,ze.memoizedState.deps)?b.memoizedState=ys(l,x,u,p):(ie.flags|=r,b.memoizedState=ys(1|l,x,u,p))}function Nx(r,l){Ku(8390656,8,r,l)}function Lp(r,l){Zu(2048,8,r,l)}function RO(r){ie.flags|=4;var l=ie.updateQueue;if(l===null)l=Wu(),ie.updateQueue=l,l.events=[r];else{var u=l.events;u===null?l.events=[r]:u.push(r)}}function Ox(r){var l=gn().memoizedState;return RO({ref:l,nextImpl:r}),function(){if((Me&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}function Lx(r,l){return Zu(4,2,r,l)}function Rx(r,l){return Zu(4,4,r,l)}function Dx(r,l){if(typeof l=="function"){r=r();var u=l(r);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return r=r(),l.current=r,function(){l.current=null}}function Bx(r,l,u){u=u!=null?u.concat([r]):null,Zu(4,4,Dx.bind(null,l,r),u)}function Rp(){}function Ix(r,l){var u=gn();l=l===void 0?null:l;var p=u.memoizedState;return l!==null&&Sp(l,p[1])?p[0]:(u.memoizedState=[r,l],r)}function zx(r,l){var u=gn();l=l===void 0?null:l;var p=u.memoizedState;if(l!==null&&Sp(l,p[1]))return p[0];if(p=r(),bl){We(!0);try{r()}finally{We(!1)}}return u.memoizedState=[p,l],p}function Dp(r,l,u){return u===void 0||(Xr&1073741824)!==0&&(me&261930)===0?r.memoizedState=l:(r.memoizedState=u,r=F_(),ie.lanes|=r,Ra|=r,u)}function Fx(r,l,u,p){return Ri(u,l)?u:ps.current!==null?(r=Dp(r,u,p),Ri(r,l)||(vn=!0),r):(Xr&42)===0||(Xr&1073741824)!==0&&(me&261930)===0?(vn=!0,r.memoizedState=u):(r=F_(),ie.lanes|=r,Ra|=r,l)}function $x(r,l,u,p,b){var x=U.p;U.p=x!==0&&8>x?x:8;var k=L.T,M={};L.T=M,zp(r,!1,l,u);try{var P=b(),et=L.S;if(et!==null&&et(M,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var st=AO(P,p);Po(r,l,st,$i(r))}else Po(r,l,p,$i(r))}catch(ut){Po(r,l,{then:function(){},status:"rejected",reason:ut},$i())}finally{U.p=x,k!==null&&M.types!==null&&(k.types=M.types),L.T=k}}function DO(){}function Bp(r,l,u,p){if(r.tag!==5)throw Error(i(476));var b=Ux(r).queue;$x(r,b,l,$,u===null?DO:function(){return Px(r),u(p)})}function Ux(r){var l=r.memoizedState;if(l!==null)return l;l={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:$},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:u},next:null},r.memoizedState=l,r=r.alternate,r!==null&&(r.memoizedState=l),l}function Px(r){var l=Ux(r);l.next===null&&(l=r.alternate.memoizedState),Po(r,l.next.queue,{},$i())}function Ip(){return Un(rc)}function Hx(){return gn().memoizedState}function qx(){return gn().memoizedState}function BO(r){for(var l=r.return;l!==null;){switch(l.tag){case 24:case 3:var u=$i();r=Ta(u);var p=Aa(l,r,u);p!==null&&(Ci(p,l,u),Io(p,l,u)),l={cache:hp()},r.payload=l;return}l=l.return}}function IO(r,l,u){var p=$i();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Qu(r)?Gx(l,u):(u=tp(r,l,u,p),u!==null&&(Ci(u,r,p),Yx(u,l,p)))}function jx(r,l,u){var p=$i();Po(r,l,u,p)}function Po(r,l,u,p){var b={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Qu(r))Gx(l,b);else{var x=r.alternate;if(r.lanes===0&&(x===null||x.lanes===0)&&(x=l.lastRenderedReducer,x!==null))try{var k=l.lastRenderedState,M=x(k,u);if(b.hasEagerState=!0,b.eagerState=M,Ri(M,k))return Lu(r,l,b,0),Ge===null&&Ou(),!1}catch{}finally{}if(u=tp(r,l,b,p),u!==null)return Ci(u,r,p),Yx(u,l,p),!0}return!1}function zp(r,l,u,p){if(p={lane:2,revertLane:gg(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Qu(r)){if(l)throw Error(i(479))}else l=tp(r,u,p,2),l!==null&&Ci(l,r,2)}function Qu(r){var l=r.alternate;return r===ie||l!==null&&l===ie}function Gx(r,l){gs=Gu=!0;var u=r.pending;u===null?l.next=l:(l.next=u.next,u.next=l),r.pending=l}function Yx(r,l,u){if((u&4194048)!==0){var p=l.lanes;p&=r.pendingLanes,u|=p,l.lanes=u,Yt(r,u)}}var Ho={readContext:Un,use:Vu,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useLayoutEffect:cn,useInsertionEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useSyncExternalStore:cn,useId:cn,useHostTransitionStatus:cn,useFormState:cn,useActionState:cn,useOptimistic:cn,useMemoCache:cn,useCacheRefresh:cn};Ho.useEffectEvent=cn;var Wx={readContext:Un,use:Vu,useCallback:function(r,l){return ri().memoizedState=[r,l===void 0?null:l],r},useContext:Un,useEffect:Nx,useImperativeHandle:function(r,l,u){u=u!=null?u.concat([r]):null,Ku(4194308,4,Dx.bind(null,l,r),u)},useLayoutEffect:function(r,l){return Ku(4194308,4,r,l)},useInsertionEffect:function(r,l){Ku(4,2,r,l)},useMemo:function(r,l){var u=ri();l=l===void 0?null:l;var p=r();if(bl){We(!0);try{r()}finally{We(!1)}}return u.memoizedState=[p,l],p},useReducer:function(r,l,u){var p=ri();if(u!==void 0){var b=u(l);if(bl){We(!0);try{u(l)}finally{We(!1)}}}else b=l;return p.memoizedState=p.baseState=b,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:b},p.queue=r,r=r.dispatch=IO.bind(null,ie,r),[p.memoizedState,r]},useRef:function(r){var l=ri();return r={current:r},l.memoizedState=r},useState:function(r){r=Np(r);var l=r.queue,u=jx.bind(null,ie,l);return l.dispatch=u,[r.memoizedState,u]},useDebugValue:Rp,useDeferredValue:function(r,l){var u=ri();return Dp(u,r,l)},useTransition:function(){var r=Np(!1);return r=$x.bind(null,ie,r.queue,!0,!1),ri().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,l,u){var p=ie,b=ri();if(_e){if(u===void 0)throw Error(i(407));u=u()}else{if(u=l(),Ge===null)throw Error(i(349));(me&127)!==0||px(p,l,u)}b.memoizedState=u;var x={value:u,getSnapshot:l};return b.queue=x,Nx(mx.bind(null,p,x,r),[r]),p.flags|=2048,ys(9,{destroy:void 0},gx.bind(null,p,x,u,l),null),u},useId:function(){var r=ri(),l=Ge.identifierPrefix;if(_e){var u=wr,p=Sr;u=(p&~(1<<32-pe(p)-1)).toString(32)+u,l="_"+l+"R_"+u,u=Yu++,0<u&&(l+="H"+u.toString(32)),l+="_"}else u=MO++,l="_"+l+"r_"+u.toString(32)+"_";return r.memoizedState=l},useHostTransitionStatus:Ip,useFormState:kx,useActionState:kx,useOptimistic:function(r){var l=ri();l.memoizedState=l.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=zp.bind(null,ie,!0,u),u.dispatch=l,[r,l]},useMemoCache:Tp,useCacheRefresh:function(){return ri().memoizedState=BO.bind(null,ie)},useEffectEvent:function(r){var l=ri(),u={impl:r};return l.memoizedState=u,function(){if((Me&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}},Fp={readContext:Un,use:Vu,useCallback:Ix,useContext:Un,useEffect:Lp,useImperativeHandle:Bx,useInsertionEffect:Lx,useLayoutEffect:Rx,useMemo:zx,useReducer:Xu,useRef:Mx,useState:function(){return Xu(Kr)},useDebugValue:Rp,useDeferredValue:function(r,l){var u=gn();return Fx(u,ze.memoizedState,r,l)},useTransition:function(){var r=Xu(Kr)[0],l=gn().memoizedState;return[typeof r=="boolean"?r:Uo(r),l]},useSyncExternalStore:dx,useId:Hx,useHostTransitionStatus:Ip,useFormState:Ex,useActionState:Ex,useOptimistic:function(r,l){var u=gn();return xx(u,ze,r,l)},useMemoCache:Tp,useCacheRefresh:qx};Fp.useEffectEvent=Ox;var Vx={readContext:Un,use:Vu,useCallback:Ix,useContext:Un,useEffect:Lp,useImperativeHandle:Bx,useInsertionEffect:Lx,useLayoutEffect:Rx,useMemo:zx,useReducer:Mp,useRef:Mx,useState:function(){return Mp(Kr)},useDebugValue:Rp,useDeferredValue:function(r,l){var u=gn();return ze===null?Dp(u,r,l):Fx(u,ze.memoizedState,r,l)},useTransition:function(){var r=Mp(Kr)[0],l=gn().memoizedState;return[typeof r=="boolean"?r:Uo(r),l]},useSyncExternalStore:dx,useId:Hx,useHostTransitionStatus:Ip,useFormState:Ax,useActionState:Ax,useOptimistic:function(r,l){var u=gn();return ze!==null?xx(u,ze,r,l):(u.baseState=r,[r,u.queue.dispatch])},useMemoCache:Tp,useCacheRefresh:qx};Vx.useEffectEvent=Ox;function $p(r,l,u,p){l=r.memoizedState,u=u(p,l),u=u==null?l:g({},l,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var Up={enqueueSetState:function(r,l,u){r=r._reactInternals;var p=$i(),b=Ta(p);b.payload=l,u!=null&&(b.callback=u),l=Aa(r,b,p),l!==null&&(Ci(l,r,p),Io(l,r,p))},enqueueReplaceState:function(r,l,u){r=r._reactInternals;var p=$i(),b=Ta(p);b.tag=1,b.payload=l,u!=null&&(b.callback=u),l=Aa(r,b,p),l!==null&&(Ci(l,r,p),Io(l,r,p))},enqueueForceUpdate:function(r,l){r=r._reactInternals;var u=$i(),p=Ta(u);p.tag=2,l!=null&&(p.callback=l),l=Aa(r,p,u),l!==null&&(Ci(l,r,u),Io(l,r,u))}};function Xx(r,l,u,p,b,x,k){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(p,x,k):l.prototype&&l.prototype.isPureReactComponent?!Ao(u,p)||!Ao(b,x):!0}function Kx(r,l,u,p){r=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,p),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,p),l.state!==r&&Up.enqueueReplaceState(l,l.state,null)}function xl(r,l){var u=l;if("ref"in l){u={};for(var p in l)p!=="ref"&&(u[p]=l[p])}if(r=r.defaultProps){u===l&&(u=g({},u));for(var b in r)u[b]===void 0&&(u[b]=r[b])}return u}function Zx(r){Nu(r)}function Qx(r){console.error(r)}function Jx(r){Nu(r)}function Ju(r,l){try{var u=r.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(p){setTimeout(function(){throw p})}}function t_(r,l,u){try{var p=r.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Pp(r,l,u){return u=Ta(u),u.tag=3,u.payload={element:null},u.callback=function(){Ju(r,l)},u}function e_(r){return r=Ta(r),r.tag=3,r}function n_(r,l,u,p){var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var x=p.value;r.payload=function(){return b(x)},r.callback=function(){t_(l,u,p)}}var k=u.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(r.callback=function(){t_(l,u,p),typeof b!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var M=p.stack;this.componentDidCatch(p.value,{componentStack:M!==null?M:""})})}function zO(r,l,u,p,b){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(l=u.alternate,l!==null&&cs(l,u,b,!0),u=Bi.current,u!==null){switch(u.tag){case 31:case 13:return Ji===null?hh():u.alternate===null&&un===0&&(un=3),u.flags&=-257,u.flags|=65536,u.lanes=b,p===Uu?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([p]):l.add(p),fg(r,p,b)),!1;case 22:return u.flags|=65536,p===Uu?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([p]):u.add(p)),fg(r,p,b)),!1}throw Error(i(435,u.tag))}return fg(r,p,b),hh(),!1}if(_e)return l=Bi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=b,p!==lp&&(r=Error(i(422),{cause:p}),Oo(Xi(r,u)))):(p!==lp&&(l=Error(i(423),{cause:p}),Oo(Xi(l,u))),r=r.current.alternate,r.flags|=65536,b&=-b,r.lanes|=b,p=Xi(p,u),b=Pp(r.stateNode,p,b),yp(r,b),un!==4&&(un=2)),!1;var x=Error(i(520),{cause:p});if(x=Xi(x,u),Ko===null?Ko=[x]:Ko.push(x),un!==4&&(un=2),l===null)return!0;p=Xi(p,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,r=b&-b,u.lanes|=r,r=Pp(u.stateNode,p,r),yp(u,r),!1;case 1:if(l=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Da===null||!Da.has(x))))return u.flags|=65536,b&=-b,u.lanes|=b,b=e_(b),n_(b,r,u,p),yp(u,b),!1}u=u.return}while(u!==null);return!1}var Hp=Error(i(461)),vn=!1;function Pn(r,l,u,p){l.child=r===null?lx(l,null,u,p):yl(l,r.child,u,p)}function i_(r,l,u,p,b){u=u.render;var x=l.ref;if("ref"in p){var k={};for(var M in p)M!=="ref"&&(k[M]=p[M])}else k=p;return dl(l),p=wp(r,l,u,k,x,b),M=Cp(),r!==null&&!vn?(kp(r,l,b),Zr(r,l,b)):(_e&&M&&rp(l),l.flags|=1,Pn(r,l,p,b),l.child)}function r_(r,l,u,p,b){if(r===null){var x=u.type;return typeof x=="function"&&!ep(x)&&x.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=x,a_(r,l,x,p,b)):(r=Du(u.type,null,p,l,l.mode,b),r.ref=l.ref,r.return=l,l.child=r)}if(x=r.child,!Kp(r,b)){var k=x.memoizedProps;if(u=u.compare,u=u!==null?u:Ao,u(k,p)&&r.ref===l.ref)return Zr(r,l,b)}return l.flags|=1,r=Gr(x,p),r.ref=l.ref,r.return=l,l.child=r}function a_(r,l,u,p,b){if(r!==null){var x=r.memoizedProps;if(Ao(x,p)&&r.ref===l.ref)if(vn=!1,l.pendingProps=p=x,Kp(r,b))(r.flags&131072)!==0&&(vn=!0);else return l.lanes=r.lanes,Zr(r,l,b)}return qp(r,l,u,p,b)}function l_(r,l,u,p){var b=p.children,x=r!==null?r.memoizedState:null;if(r===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((l.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,r!==null){for(p=l.child=r.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~x}else p=0,l.child=null;return s_(r,l,x,u,p)}if((u&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},r!==null&&Fu(l,x!==null?x.cachePool:null),x!==null?cx(l,x):xp(),ux(l);else return p=l.lanes=536870912,s_(r,l,x!==null?x.baseLanes|u:u,u,p)}else x!==null?(Fu(l,x.cachePool),cx(l,x),Na(),l.memoizedState=null):(r!==null&&Fu(l,null),xp(),Na());return Pn(r,l,b,u),l.child}function qo(r,l){return r!==null&&r.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function s_(r,l,u,p,b){var x=dp();return x=x===null?null:{parent:xn._currentValue,pool:x},l.memoizedState={baseLanes:u,cachePool:x},r!==null&&Fu(l,null),xp(),ux(l),r!==null&&cs(r,l,p,!0),l.childLanes=b,null}function th(r,l){return l=nh({mode:l.mode,children:l.children},r.mode),l.ref=r.ref,r.child=l,l.return=r,l}function o_(r,l,u){return yl(l,r.child,null,u),r=th(l,l.pendingProps),r.flags|=2,Ii(l),l.memoizedState=null,r}function FO(r,l,u){var p=l.pendingProps,b=(l.flags&128)!==0;if(l.flags&=-129,r===null){if(_e){if(p.mode==="hidden")return r=th(l,p),l.lanes=536870912,qo(null,r);if(vp(l),(r=Qe)?(r=_1(r,Qi),r=r!==null&&r.data==="&"?r:null,r!==null&&(l.memoizedState={dehydrated:r,treeContext:Sa!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},u=G0(r),u.return=l,l.child=u,$n=l,Qe=null)):r=null,r===null)throw Ca(l);return l.lanes=536870912,null}return th(l,p)}var x=r.memoizedState;if(x!==null){var k=x.dehydrated;if(vp(l),b)if(l.flags&256)l.flags&=-257,l=o_(r,l,u);else if(l.memoizedState!==null)l.child=r.child,l.flags|=128,l=null;else throw Error(i(558));else if(vn||cs(r,l,u,!1),b=(u&r.childLanes)!==0,vn||b){if(p=Ge,p!==null&&(k=an(p,u),k!==0&&k!==x.retryLane))throw x.retryLane=k,cl(r,k),Ci(p,r,k),Hp;hh(),l=o_(r,l,u)}else r=x.treeContext,Qe=tr(k.nextSibling),$n=l,_e=!0,wa=null,Qi=!1,r!==null&&V0(l,r),l=th(l,p),l.flags|=4096;return l}return r=Gr(r.child,{mode:p.mode,children:p.children}),r.ref=l.ref,l.child=r,r.return=l,r}function eh(r,l){var u=l.ref;if(u===null)r!==null&&r.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(r===null||r.ref!==u)&&(l.flags|=4194816)}}function qp(r,l,u,p,b){return dl(l),u=wp(r,l,u,p,void 0,b),p=Cp(),r!==null&&!vn?(kp(r,l,b),Zr(r,l,b)):(_e&&p&&rp(l),l.flags|=1,Pn(r,l,u,b),l.child)}function c_(r,l,u,p,b,x){return dl(l),l.updateQueue=null,u=fx(l,p,u,b),hx(r),p=Cp(),r!==null&&!vn?(kp(r,l,x),Zr(r,l,x)):(_e&&p&&rp(l),l.flags|=1,Pn(r,l,u,x),l.child)}function u_(r,l,u,p,b){if(dl(l),l.stateNode===null){var x=as,k=u.contextType;typeof k=="object"&&k!==null&&(x=Un(k)),x=new u(p,x),l.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Up,l.stateNode=x,x._reactInternals=l,x=l.stateNode,x.props=p,x.state=l.memoizedState,x.refs={},gp(l),k=u.contextType,x.context=typeof k=="object"&&k!==null?Un(k):as,x.state=l.memoizedState,k=u.getDerivedStateFromProps,typeof k=="function"&&($p(l,u,k,p),x.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(k=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),k!==x.state&&Up.enqueueReplaceState(x,x.state,null),Fo(l,p,x,b),zo(),x.state=l.memoizedState),typeof x.componentDidMount=="function"&&(l.flags|=4194308),p=!0}else if(r===null){x=l.stateNode;var M=l.memoizedProps,P=xl(u,M);x.props=P;var et=x.context,st=u.contextType;k=as,typeof st=="object"&&st!==null&&(k=Un(st));var ut=u.getDerivedStateFromProps;st=typeof ut=="function"||typeof x.getSnapshotBeforeUpdate=="function",M=l.pendingProps!==M,st||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(M||et!==k)&&Kx(l,x,p,k),Ea=!1;var nt=l.memoizedState;x.state=nt,Fo(l,p,x,b),zo(),et=l.memoizedState,M||nt!==et||Ea?(typeof ut=="function"&&($p(l,u,ut,p),et=l.memoizedState),(P=Ea||Xx(l,u,P,p,nt,et,k))?(st||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(l.flags|=4194308)):(typeof x.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=p,l.memoizedState=et),x.props=p,x.state=et,x.context=k,p=P):(typeof x.componentDidMount=="function"&&(l.flags|=4194308),p=!1)}else{x=l.stateNode,mp(r,l),k=l.memoizedProps,st=xl(u,k),x.props=st,ut=l.pendingProps,nt=x.context,et=u.contextType,P=as,typeof et=="object"&&et!==null&&(P=Un(et)),M=u.getDerivedStateFromProps,(et=typeof M=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k!==ut||nt!==P)&&Kx(l,x,p,P),Ea=!1,nt=l.memoizedState,x.state=nt,Fo(l,p,x,b),zo();var rt=l.memoizedState;k!==ut||nt!==rt||Ea||r!==null&&r.dependencies!==null&&Iu(r.dependencies)?(typeof M=="function"&&($p(l,u,M,p),rt=l.memoizedState),(st=Ea||Xx(l,u,st,p,nt,rt,P)||r!==null&&r.dependencies!==null&&Iu(r.dependencies))?(et||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(p,rt,P),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(p,rt,P)),typeof x.componentDidUpdate=="function"&&(l.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof x.componentDidUpdate!="function"||k===r.memoizedProps&&nt===r.memoizedState||(l.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&nt===r.memoizedState||(l.flags|=1024),l.memoizedProps=p,l.memoizedState=rt),x.props=p,x.state=rt,x.context=P,p=st):(typeof x.componentDidUpdate!="function"||k===r.memoizedProps&&nt===r.memoizedState||(l.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&nt===r.memoizedState||(l.flags|=1024),p=!1)}return x=p,eh(r,l),p=(l.flags&128)!==0,x||p?(x=l.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:x.render(),l.flags|=1,r!==null&&p?(l.child=yl(l,r.child,null,b),l.child=yl(l,null,u,b)):Pn(r,l,u,b),l.memoizedState=x.state,r=l.child):r=Zr(r,l,b),r}function h_(r,l,u,p){return hl(),l.flags|=256,Pn(r,l,u,p),l.child}var jp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gp(r){return{baseLanes:r,cachePool:tx()}}function Yp(r,l,u){return r=r!==null?r.childLanes&~u:0,l&&(r|=Fi),r}function f_(r,l,u){var p=l.pendingProps,b=!1,x=(l.flags&128)!==0,k;if((k=x)||(k=r!==null&&r.memoizedState===null?!1:(pn.current&2)!==0),k&&(b=!0,l.flags&=-129),k=(l.flags&32)!==0,l.flags&=-33,r===null){if(_e){if(b?Ma(l):Na(),(r=Qe)?(r=_1(r,Qi),r=r!==null&&r.data!=="&"?r:null,r!==null&&(l.memoizedState={dehydrated:r,treeContext:Sa!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},u=G0(r),u.return=l,l.child=u,$n=l,Qe=null)):r=null,r===null)throw Ca(l);return Ag(r)?l.lanes=32:l.lanes=536870912,null}var M=p.children;return p=p.fallback,b?(Na(),b=l.mode,M=nh({mode:"hidden",children:M},b),p=ul(p,b,u,null),M.return=l,p.return=l,M.sibling=p,l.child=M,p=l.child,p.memoizedState=Gp(u),p.childLanes=Yp(r,k,u),l.memoizedState=jp,qo(null,p)):(Ma(l),Wp(l,M))}var P=r.memoizedState;if(P!==null&&(M=P.dehydrated,M!==null)){if(x)l.flags&256?(Ma(l),l.flags&=-257,l=Vp(r,l,u)):l.memoizedState!==null?(Na(),l.child=r.child,l.flags|=128,l=null):(Na(),M=p.fallback,b=l.mode,p=nh({mode:"visible",children:p.children},b),M=ul(M,b,u,null),M.flags|=2,p.return=l,M.return=l,p.sibling=M,l.child=p,yl(l,r.child,null,u),p=l.child,p.memoizedState=Gp(u),p.childLanes=Yp(r,k,u),l.memoizedState=jp,l=qo(null,p));else if(Ma(l),Ag(M)){if(k=M.nextSibling&&M.nextSibling.dataset,k)var et=k.dgst;k=et,p=Error(i(419)),p.stack="",p.digest=k,Oo({value:p,source:null,stack:null}),l=Vp(r,l,u)}else if(vn||cs(r,l,u,!1),k=(u&r.childLanes)!==0,vn||k){if(k=Ge,k!==null&&(p=an(k,u),p!==0&&p!==P.retryLane))throw P.retryLane=p,cl(r,p),Ci(k,r,p),Hp;Tg(M)||hh(),l=Vp(r,l,u)}else Tg(M)?(l.flags|=192,l.child=r.child,l=null):(r=P.treeContext,Qe=tr(M.nextSibling),$n=l,_e=!0,wa=null,Qi=!1,r!==null&&V0(l,r),l=Wp(l,p.children),l.flags|=4096);return l}return b?(Na(),M=p.fallback,b=l.mode,P=r.child,et=P.sibling,p=Gr(P,{mode:"hidden",children:p.children}),p.subtreeFlags=P.subtreeFlags&65011712,et!==null?M=Gr(et,M):(M=ul(M,b,u,null),M.flags|=2),M.return=l,p.return=l,p.sibling=M,l.child=p,qo(null,p),p=l.child,M=r.child.memoizedState,M===null?M=Gp(u):(b=M.cachePool,b!==null?(P=xn._currentValue,b=b.parent!==P?{parent:P,pool:P}:b):b=tx(),M={baseLanes:M.baseLanes|u,cachePool:b}),p.memoizedState=M,p.childLanes=Yp(r,k,u),l.memoizedState=jp,qo(r.child,p)):(Ma(l),u=r.child,r=u.sibling,u=Gr(u,{mode:"visible",children:p.children}),u.return=l,u.sibling=null,r!==null&&(k=l.deletions,k===null?(l.deletions=[r],l.flags|=16):k.push(r)),l.child=u,l.memoizedState=null,u)}function Wp(r,l){return l=nh({mode:"visible",children:l},r.mode),l.return=r,r.child=l}function nh(r,l){return r=Di(22,r,null,l),r.lanes=0,r}function Vp(r,l,u){return yl(l,r.child,null,u),r=Wp(l,l.pendingProps.children),r.flags|=2,l.memoizedState=null,r}function d_(r,l,u){r.lanes|=l;var p=r.alternate;p!==null&&(p.lanes|=l),cp(r.return,l,u)}function Xp(r,l,u,p,b,x){var k=r.memoizedState;k===null?r.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:b,treeForkCount:x}:(k.isBackwards=l,k.rendering=null,k.renderingStartTime=0,k.last=p,k.tail=u,k.tailMode=b,k.treeForkCount=x)}function p_(r,l,u){var p=l.pendingProps,b=p.revealOrder,x=p.tail;p=p.children;var k=pn.current,M=(k&2)!==0;if(M?(k=k&1|2,l.flags|=128):k&=1,O(pn,k),Pn(r,l,p,u),p=_e?No:0,!M&&r!==null&&(r.flags&128)!==0)t:for(r=l.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&d_(r,u,l);else if(r.tag===19)d_(r,u,l);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break t;for(;r.sibling===null;){if(r.return===null||r.return===l)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(b){case"forwards":for(u=l.child,b=null;u!==null;)r=u.alternate,r!==null&&ju(r)===null&&(b=u),u=u.sibling;u=b,u===null?(b=l.child,l.child=null):(b=u.sibling,u.sibling=null),Xp(l,!1,b,u,x,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,b=l.child,l.child=null;b!==null;){if(r=b.alternate,r!==null&&ju(r)===null){l.child=b;break}r=b.sibling,b.sibling=u,u=b,b=r}Xp(l,!0,u,null,x,p);break;case"together":Xp(l,!1,null,null,void 0,p);break;default:l.memoizedState=null}return l.child}function Zr(r,l,u){if(r!==null&&(l.dependencies=r.dependencies),Ra|=l.lanes,(u&l.childLanes)===0)if(r!==null){if(cs(r,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(r!==null&&l.child!==r.child)throw Error(i(153));if(l.child!==null){for(r=l.child,u=Gr(r,r.pendingProps),l.child=u,u.return=l;r.sibling!==null;)r=r.sibling,u=u.sibling=Gr(r,r.pendingProps),u.return=l;u.sibling=null}return l.child}function Kp(r,l){return(r.lanes&l)!==0?!0:(r=r.dependencies,!!(r!==null&&Iu(r)))}function $O(r,l,u){switch(l.tag){case 3:Ft(l,l.stateNode.containerInfo),ka(l,xn,r.memoizedState.cache),hl();break;case 27:case 5:Jt(l);break;case 4:Ft(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,vp(l),null;break;case 13:var p=l.memoizedState;if(p!==null)return p.dehydrated!==null?(Ma(l),l.flags|=128,null):(u&l.child.childLanes)!==0?f_(r,l,u):(Ma(l),r=Zr(r,l,u),r!==null?r.sibling:null);Ma(l);break;case 19:var b=(r.flags&128)!==0;if(p=(u&l.childLanes)!==0,p||(cs(r,l,u,!1),p=(u&l.childLanes)!==0),b){if(p)return p_(r,l,u);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),O(pn,pn.current),p)break;return null;case 22:return l.lanes=0,l_(r,l,u,l.pendingProps);case 24:ka(l,xn,r.memoizedState.cache)}return Zr(r,l,u)}function g_(r,l,u){if(r!==null)if(r.memoizedProps!==l.pendingProps)vn=!0;else{if(!Kp(r,u)&&(l.flags&128)===0)return vn=!1,$O(r,l,u);vn=(r.flags&131072)!==0}else vn=!1,_e&&(l.flags&1048576)!==0&&W0(l,No,l.index);switch(l.lanes=0,l.tag){case 16:t:{var p=l.pendingProps;if(r=gl(l.elementType),l.type=r,typeof r=="function")ep(r)?(p=xl(r,p),l.tag=1,l=u_(null,l,r,p,u)):(l.tag=0,l=qp(null,l,r,p,u));else{if(r!=null){var b=r.$$typeof;if(b===B){l.tag=11,l=i_(null,l,r,p,u);break t}else if(b===R){l.tag=14,l=r_(null,l,r,p,u);break t}}throw l=H(r)||r,Error(i(306,l,""))}}return l;case 0:return qp(r,l,l.type,l.pendingProps,u);case 1:return p=l.type,b=xl(p,l.pendingProps),u_(r,l,p,b,u);case 3:t:{if(Ft(l,l.stateNode.containerInfo),r===null)throw Error(i(387));p=l.pendingProps;var x=l.memoizedState;b=x.element,mp(r,l),Fo(l,p,null,u);var k=l.memoizedState;if(p=k.cache,ka(l,xn,p),p!==x.cache&&up(l,[xn],u,!0),zo(),p=k.element,x.isDehydrated)if(x={element:p,isDehydrated:!1,cache:k.cache},l.updateQueue.baseState=x,l.memoizedState=x,l.flags&256){l=h_(r,l,p,u);break t}else if(p!==b){b=Xi(Error(i(424)),l),Oo(b),l=h_(r,l,p,u);break t}else{switch(r=l.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Qe=tr(r.firstChild),$n=l,_e=!0,wa=null,Qi=!0,u=lx(l,null,p,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(hl(),p===b){l=Zr(r,l,u);break t}Pn(r,l,p,u)}l=l.child}return l;case 26:return eh(r,l),r===null?(u=E1(l.type,null,l.pendingProps,null))?l.memoizedState=u:_e||(u=l.type,r=l.pendingProps,p=bh(pt.current).createElement(u),p[en]=l,p[Ve]=r,Hn(p,u,r),re(p),l.stateNode=p):l.memoizedState=E1(l.type,r.memoizedProps,l.pendingProps,r.memoizedState),null;case 27:return Jt(l),r===null&&_e&&(p=l.stateNode=w1(l.type,l.pendingProps,pt.current),$n=l,Qi=!0,b=Qe,Fa(l.type)?(Mg=b,Qe=tr(p.firstChild)):Qe=b),Pn(r,l,l.pendingProps.children,u),eh(r,l),r===null&&(l.flags|=4194304),l.child;case 5:return r===null&&_e&&((b=p=Qe)&&(p=gL(p,l.type,l.pendingProps,Qi),p!==null?(l.stateNode=p,$n=l,Qe=tr(p.firstChild),Qi=!1,b=!0):b=!1),b||Ca(l)),Jt(l),b=l.type,x=l.pendingProps,k=r!==null?r.memoizedProps:null,p=x.children,Cg(b,x)?p=null:k!==null&&Cg(b,k)&&(l.flags|=32),l.memoizedState!==null&&(b=wp(r,l,NO,null,null,u),rc._currentValue=b),eh(r,l),Pn(r,l,p,u),l.child;case 6:return r===null&&_e&&((r=u=Qe)&&(u=mL(u,l.pendingProps,Qi),u!==null?(l.stateNode=u,$n=l,Qe=null,r=!0):r=!1),r||Ca(l)),null;case 13:return f_(r,l,u);case 4:return Ft(l,l.stateNode.containerInfo),p=l.pendingProps,r===null?l.child=yl(l,null,p,u):Pn(r,l,p,u),l.child;case 11:return i_(r,l,l.type,l.pendingProps,u);case 7:return Pn(r,l,l.pendingProps,u),l.child;case 8:return Pn(r,l,l.pendingProps.children,u),l.child;case 12:return Pn(r,l,l.pendingProps.children,u),l.child;case 10:return p=l.pendingProps,ka(l,l.type,p.value),Pn(r,l,p.children,u),l.child;case 9:return b=l.type._context,p=l.pendingProps.children,dl(l),b=Un(b),p=p(b),l.flags|=1,Pn(r,l,p,u),l.child;case 14:return r_(r,l,l.type,l.pendingProps,u);case 15:return a_(r,l,l.type,l.pendingProps,u);case 19:return p_(r,l,u);case 31:return FO(r,l,u);case 22:return l_(r,l,u,l.pendingProps);case 24:return dl(l),p=Un(xn),r===null?(b=dp(),b===null&&(b=Ge,x=hp(),b.pooledCache=x,x.refCount++,x!==null&&(b.pooledCacheLanes|=u),b=x),l.memoizedState={parent:p,cache:b},gp(l),ka(l,xn,b)):((r.lanes&u)!==0&&(mp(r,l),Fo(l,null,null,u),zo()),b=r.memoizedState,x=l.memoizedState,b.parent!==p?(b={parent:p,cache:p},l.memoizedState=b,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=b),ka(l,xn,p)):(p=x.cache,ka(l,xn,p),p!==b.cache&&up(l,[xn],u,!0))),Pn(r,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(i(156,l.tag))}function Qr(r){r.flags|=4}function Zp(r,l,u,p,b){if((l=(r.mode&32)!==0)&&(l=!1),l){if(r.flags|=16777216,(b&335544128)===b)if(r.stateNode.complete)r.flags|=8192;else if(H_())r.flags|=8192;else throw ml=Uu,pp}else r.flags&=-16777217}function m_(r,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!O1(l))if(H_())r.flags|=8192;else throw ml=Uu,pp}function ih(r,l){l!==null&&(r.flags|=4),r.flags&16384&&(l=r.tag!==22?jt():536870912,r.lanes|=l,vs|=l)}function jo(r,l){if(!_e)switch(r.tailMode){case"hidden":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?l||r.tail===null?r.tail=null:r.tail.sibling=null:p.sibling=null}}function Je(r){var l=r.alternate!==null&&r.alternate.child===r.child,u=0,p=0;if(l)for(var b=r.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=r,b=b.sibling;else for(b=r.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=r,b=b.sibling;return r.subtreeFlags|=p,r.childLanes=u,l}function UO(r,l,u){var p=l.pendingProps;switch(ap(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(l),null;case 1:return Je(l),null;case 3:return u=l.stateNode,p=null,r!==null&&(p=r.memoizedState.cache),l.memoizedState.cache!==p&&(l.flags|=2048),Vr(xn),Ut(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(os(l)?Qr(l):r===null||r.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,sp())),Je(l),null;case 26:var b=l.type,x=l.memoizedState;return r===null?(Qr(l),x!==null?(Je(l),m_(l,x)):(Je(l),Zp(l,b,null,p,u))):x?x!==r.memoizedState?(Qr(l),Je(l),m_(l,x)):(Je(l),l.flags&=-16777217):(r=r.memoizedProps,r!==p&&Qr(l),Je(l),Zp(l,b,r,p,u)),null;case 27:if(ve(l),u=pt.current,b=l.type,r!==null&&l.stateNode!=null)r.memoizedProps!==p&&Qr(l);else{if(!p){if(l.stateNode===null)throw Error(i(166));return Je(l),null}r=ft.current,os(l)?X0(l):(r=w1(b,p,u),l.stateNode=r,Qr(l))}return Je(l),null;case 5:if(ve(l),b=l.type,r!==null&&l.stateNode!=null)r.memoizedProps!==p&&Qr(l);else{if(!p){if(l.stateNode===null)throw Error(i(166));return Je(l),null}if(x=ft.current,os(l))X0(l);else{var k=bh(pt.current);switch(x){case 1:x=k.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:x=k.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":x=k.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":x=k.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":x=k.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof p.is=="string"?k.createElement("select",{is:p.is}):k.createElement("select"),p.multiple?x.multiple=!0:p.size&&(x.size=p.size);break;default:x=typeof p.is=="string"?k.createElement(b,{is:p.is}):k.createElement(b)}}x[en]=l,x[Ve]=p;t:for(k=l.child;k!==null;){if(k.tag===5||k.tag===6)x.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===l)break t;for(;k.sibling===null;){if(k.return===null||k.return===l)break t;k=k.return}k.sibling.return=k.return,k=k.sibling}l.stateNode=x;t:switch(Hn(x,b,p),b){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break t;case"img":p=!0;break t;default:p=!1}p&&Qr(l)}}return Je(l),Zp(l,l.type,r===null?null:r.memoizedProps,l.pendingProps,u),null;case 6:if(r&&l.stateNode!=null)r.memoizedProps!==p&&Qr(l);else{if(typeof p!="string"&&l.stateNode===null)throw Error(i(166));if(r=pt.current,os(l)){if(r=l.stateNode,u=l.memoizedProps,p=null,b=$n,b!==null)switch(b.tag){case 27:case 5:p=b.memoizedProps}r[en]=l,r=!!(r.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||f1(r.nodeValue,u)),r||Ca(l,!0)}else r=bh(r).createTextNode(p),r[en]=l,l.stateNode=r}return Je(l),null;case 31:if(u=l.memoizedState,r===null||r.memoizedState!==null){if(p=os(l),u!==null){if(r===null){if(!p)throw Error(i(318));if(r=l.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[en]=l}else hl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Je(l),r=!1}else u=sp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=u),r=!0;if(!r)return l.flags&256?(Ii(l),l):(Ii(l),null);if((l.flags&128)!==0)throw Error(i(558))}return Je(l),null;case 13:if(p=l.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(b=os(l),p!==null&&p.dehydrated!==null){if(r===null){if(!b)throw Error(i(318));if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(i(317));b[en]=l}else hl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Je(l),b=!1}else b=sp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?(Ii(l),l):(Ii(l),null)}return Ii(l),(l.flags&128)!==0?(l.lanes=u,l):(u=p!==null,r=r!==null&&r.memoizedState!==null,u&&(p=l.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),x=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(x=p.memoizedState.cachePool.pool),x!==b&&(p.flags|=2048)),u!==r&&u&&(l.child.flags|=8192),ih(l,l.updateQueue),Je(l),null);case 4:return Ut(),r===null&&xg(l.stateNode.containerInfo),Je(l),null;case 10:return Vr(l.type),Je(l),null;case 19:if(K(pn),p=l.memoizedState,p===null)return Je(l),null;if(b=(l.flags&128)!==0,x=p.rendering,x===null)if(b)jo(p,!1);else{if(un!==0||r!==null&&(r.flags&128)!==0)for(r=l.child;r!==null;){if(x=ju(r),x!==null){for(l.flags|=128,jo(p,!1),r=x.updateQueue,l.updateQueue=r,ih(l,r),l.subtreeFlags=0,r=u,u=l.child;u!==null;)j0(u,r),u=u.sibling;return O(pn,pn.current&1|2),_e&&Yr(l,p.treeForkCount),l.child}r=r.sibling}p.tail!==null&&He()>oh&&(l.flags|=128,b=!0,jo(p,!1),l.lanes=4194304)}else{if(!b)if(r=ju(x),r!==null){if(l.flags|=128,b=!0,r=r.updateQueue,l.updateQueue=r,ih(l,r),jo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!_e)return Je(l),null}else 2*He()-p.renderingStartTime>oh&&u!==536870912&&(l.flags|=128,b=!0,jo(p,!1),l.lanes=4194304);p.isBackwards?(x.sibling=l.child,l.child=x):(r=p.last,r!==null?r.sibling=x:l.child=x,p.last=x)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=He(),r.sibling=null,u=pn.current,O(pn,b?u&1|2:u&1),_e&&Yr(l,p.treeForkCount),r):(Je(l),null);case 22:case 23:return Ii(l),_p(),p=l.memoizedState!==null,r!==null?r.memoizedState!==null!==p&&(l.flags|=8192):p&&(l.flags|=8192),p?(u&536870912)!==0&&(l.flags&128)===0&&(Je(l),l.subtreeFlags&6&&(l.flags|=8192)):Je(l),u=l.updateQueue,u!==null&&ih(l,u.retryQueue),u=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==u&&(l.flags|=2048),r!==null&&K(pl),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),Vr(xn),Je(l),null;case 25:return null;case 30:return null}throw Error(i(156,l.tag))}function PO(r,l){switch(ap(l),l.tag){case 1:return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 3:return Vr(xn),Ut(),r=l.flags,(r&65536)!==0&&(r&128)===0?(l.flags=r&-65537|128,l):null;case 26:case 27:case 5:return ve(l),null;case 31:if(l.memoizedState!==null){if(Ii(l),l.alternate===null)throw Error(i(340));hl()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 13:if(Ii(l),r=l.memoizedState,r!==null&&r.dehydrated!==null){if(l.alternate===null)throw Error(i(340));hl()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 19:return K(pn),null;case 4:return Ut(),null;case 10:return Vr(l.type),null;case 22:case 23:return Ii(l),_p(),r!==null&&K(pl),r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 24:return Vr(xn),null;case 25:return null;default:return null}}function y_(r,l){switch(ap(l),l.tag){case 3:Vr(xn),Ut();break;case 26:case 27:case 5:ve(l);break;case 4:Ut();break;case 31:l.memoizedState!==null&&Ii(l);break;case 13:Ii(l);break;case 19:K(pn);break;case 10:Vr(l.type);break;case 22:case 23:Ii(l),_p(),r!==null&&K(pl);break;case 24:Vr(xn)}}function Go(r,l){try{var u=l.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var b=p.next;u=b;do{if((u.tag&r)===r){p=void 0;var x=u.create,k=u.inst;p=x(),k.destroy=p}u=u.next}while(u!==b)}}catch(M){Ie(l,l.return,M)}}function Oa(r,l,u){try{var p=l.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var x=b.next;p=x;do{if((p.tag&r)===r){var k=p.inst,M=k.destroy;if(M!==void 0){k.destroy=void 0,b=l;var P=u,et=M;try{et()}catch(st){Ie(b,P,st)}}}p=p.next}while(p!==x)}}catch(st){Ie(l,l.return,st)}}function b_(r){var l=r.updateQueue;if(l!==null){var u=r.stateNode;try{ox(l,u)}catch(p){Ie(r,r.return,p)}}}function x_(r,l,u){u.props=xl(r.type,r.memoizedProps),u.state=r.memoizedState;try{u.componentWillUnmount()}catch(p){Ie(r,l,p)}}function Yo(r,l){try{var u=r.ref;if(u!==null){switch(r.tag){case 26:case 27:case 5:var p=r.stateNode;break;case 30:p=r.stateNode;break;default:p=r.stateNode}typeof u=="function"?r.refCleanup=u(p):u.current=p}}catch(b){Ie(r,l,b)}}function Cr(r,l){var u=r.ref,p=r.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(b){Ie(r,l,b)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(b){Ie(r,l,b)}else u.current=null}function __(r){var l=r.type,u=r.memoizedProps,p=r.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break t;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(b){Ie(r,r.return,b)}}function Qp(r,l,u){try{var p=r.stateNode;cL(p,r.type,u,l),p[Ve]=l}catch(b){Ie(r,r.return,b)}}function v_(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Fa(r.type)||r.tag===4}function Jp(r){t:for(;;){for(;r.sibling===null;){if(r.return===null||v_(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Fa(r.type)||r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function tg(r,l,u){var p=r.tag;if(p===5||p===6)r=r.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(r),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=_t));else if(p!==4&&(p===27&&Fa(r.type)&&(u=r.stateNode,l=null),r=r.child,r!==null))for(tg(r,l,u),r=r.sibling;r!==null;)tg(r,l,u),r=r.sibling}function rh(r,l,u){var p=r.tag;if(p===5||p===6)r=r.stateNode,l?u.insertBefore(r,l):u.appendChild(r);else if(p!==4&&(p===27&&Fa(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(rh(r,l,u),r=r.sibling;r!==null;)rh(r,l,u),r=r.sibling}function S_(r){var l=r.stateNode,u=r.memoizedProps;try{for(var p=r.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);Hn(l,p,u),l[en]=r,l[Ve]=u}catch(x){Ie(r,r.return,x)}}var Jr=!1,Sn=!1,eg=!1,w_=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function HO(r,l){if(r=r.containerInfo,Sg=kh,r=B0(r),Vd(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else t:{u=(u=r.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var b=p.anchorOffset,x=p.focusNode;p=p.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break t}var k=0,M=-1,P=-1,et=0,st=0,ut=r,nt=null;e:for(;;){for(var rt;ut!==u||b!==0&&ut.nodeType!==3||(M=k+b),ut!==x||p!==0&&ut.nodeType!==3||(P=k+p),ut.nodeType===3&&(k+=ut.nodeValue.length),(rt=ut.firstChild)!==null;)nt=ut,ut=rt;for(;;){if(ut===r)break e;if(nt===u&&++et===b&&(M=k),nt===x&&++st===p&&(P=k),(rt=ut.nextSibling)!==null)break;ut=nt,nt=ut.parentNode}ut=rt}u=M===-1||P===-1?null:{start:M,end:P}}else u=null}u=u||{start:0,end:0}}else u=null;for(wg={focusedElem:r,selectionRange:u},kh=!1,Bn=l;Bn!==null;)if(l=Bn,r=l.child,(l.subtreeFlags&1028)!==0&&r!==null)r.return=l,Bn=r;else for(;Bn!==null;){switch(l=Bn,x=l.alternate,r=l.flags,l.tag){case 0:if((r&4)!==0&&(r=l.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)b=r[u],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&x!==null){r=void 0,u=l,b=x.memoizedProps,x=x.memoizedState,p=u.stateNode;try{var At=xl(u.type,b);r=p.getSnapshotBeforeUpdate(At,x),p.__reactInternalSnapshotBeforeUpdate=r}catch(Vt){Ie(u,u.return,Vt)}}break;case 3:if((r&1024)!==0){if(r=l.stateNode.containerInfo,u=r.nodeType,u===9)Eg(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Eg(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=l.sibling,r!==null){r.return=l.return,Bn=r;break}Bn=l.return}}function C_(r,l,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:ea(r,u),p&4&&Go(5,u);break;case 1:if(ea(r,u),p&4)if(r=u.stateNode,l===null)try{r.componentDidMount()}catch(k){Ie(u,u.return,k)}else{var b=xl(u.type,l.memoizedProps);l=l.memoizedState;try{r.componentDidUpdate(b,l,r.__reactInternalSnapshotBeforeUpdate)}catch(k){Ie(u,u.return,k)}}p&64&&b_(u),p&512&&Yo(u,u.return);break;case 3:if(ea(r,u),p&64&&(r=u.updateQueue,r!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{ox(r,l)}catch(k){Ie(u,u.return,k)}}break;case 27:l===null&&p&4&&S_(u);case 26:case 5:ea(r,u),l===null&&p&4&&__(u),p&512&&Yo(u,u.return);break;case 12:ea(r,u);break;case 31:ea(r,u),p&4&&T_(r,u);break;case 13:ea(r,u),p&4&&A_(r,u),p&64&&(r=u.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(u=ZO.bind(null,u),yL(r,u))));break;case 22:if(p=u.memoizedState!==null||Jr,!p){l=l!==null&&l.memoizedState!==null||Sn,b=Jr;var x=Sn;Jr=p,(Sn=l)&&!x?na(r,u,(u.subtreeFlags&8772)!==0):ea(r,u),Jr=b,Sn=x}break;case 30:break;default:ea(r,u)}}function k_(r){var l=r.alternate;l!==null&&(r.alternate=null,k_(l)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(l=r.stateNode,l!==null&&Y(l)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var nn=null,_i=!1;function ta(r,l,u){for(u=u.child;u!==null;)E_(r,l,u),u=u.sibling}function E_(r,l,u){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(on,u)}catch{}switch(u.tag){case 26:Sn||Cr(u,l),ta(r,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Sn||Cr(u,l);var p=nn,b=_i;Fa(u.type)&&(nn=u.stateNode,_i=!1),ta(r,l,u),ec(u.stateNode),nn=p,_i=b;break;case 5:Sn||Cr(u,l);case 6:if(p=nn,b=_i,nn=null,ta(r,l,u),nn=p,_i=b,nn!==null)if(_i)try{(nn.nodeType===9?nn.body:nn.nodeName==="HTML"?nn.ownerDocument.body:nn).removeChild(u.stateNode)}catch(x){Ie(u,l,x)}else try{nn.removeChild(u.stateNode)}catch(x){Ie(u,l,x)}break;case 18:nn!==null&&(_i?(r=nn,b1(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),Ms(r)):b1(nn,u.stateNode));break;case 4:p=nn,b=_i,nn=u.stateNode.containerInfo,_i=!0,ta(r,l,u),nn=p,_i=b;break;case 0:case 11:case 14:case 15:Oa(2,u,l),Sn||Oa(4,u,l),ta(r,l,u);break;case 1:Sn||(Cr(u,l),p=u.stateNode,typeof p.componentWillUnmount=="function"&&x_(u,l,p)),ta(r,l,u);break;case 21:ta(r,l,u);break;case 22:Sn=(p=Sn)||u.memoizedState!==null,ta(r,l,u),Sn=p;break;default:ta(r,l,u)}}function T_(r,l){if(l.memoizedState===null&&(r=l.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ms(r)}catch(u){Ie(l,l.return,u)}}}function A_(r,l){if(l.memoizedState===null&&(r=l.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ms(r)}catch(u){Ie(l,l.return,u)}}function qO(r){switch(r.tag){case 31:case 13:case 19:var l=r.stateNode;return l===null&&(l=r.stateNode=new w_),l;case 22:return r=r.stateNode,l=r._retryCache,l===null&&(l=r._retryCache=new w_),l;default:throw Error(i(435,r.tag))}}function ah(r,l){var u=qO(r);l.forEach(function(p){if(!u.has(p)){u.add(p);var b=QO.bind(null,r,p);p.then(b,b)}})}function vi(r,l){var u=l.deletions;if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],x=r,k=l,M=k;t:for(;M!==null;){switch(M.tag){case 27:if(Fa(M.type)){nn=M.stateNode,_i=!1;break t}break;case 5:nn=M.stateNode,_i=!1;break t;case 3:case 4:nn=M.stateNode.containerInfo,_i=!0;break t}M=M.return}if(nn===null)throw Error(i(160));E_(x,k,b),nn=null,_i=!1,x=b.alternate,x!==null&&(x.return=null),b.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)M_(l,r),l=l.sibling}var ur=null;function M_(r,l){var u=r.alternate,p=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:vi(l,r),Si(r),p&4&&(Oa(3,r,r.return),Go(3,r),Oa(5,r,r.return));break;case 1:vi(l,r),Si(r),p&512&&(Sn||u===null||Cr(u,u.return)),p&64&&Jr&&(r=r.updateQueue,r!==null&&(p=r.callbacks,p!==null&&(u=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var b=ur;if(vi(l,r),Si(r),p&512&&(Sn||u===null||Cr(u,u.return)),p&4){var x=u!==null?u.memoizedState:null;if(p=r.memoizedState,u===null)if(p===null)if(r.stateNode===null){t:{p=r.type,u=r.memoizedProps,b=b.ownerDocument||b;e:switch(p){case"title":x=b.getElementsByTagName("title")[0],(!x||x[Ot]||x[en]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=b.createElement(p),b.head.insertBefore(x,b.querySelector("head > title"))),Hn(x,p,u),x[en]=r,re(x),p=x;break t;case"link":var k=M1("link","href",b).get(p+(u.href||""));if(k){for(var M=0;M<k.length;M++)if(x=k[M],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){k.splice(M,1);break e}}x=b.createElement(p),Hn(x,p,u),b.head.appendChild(x);break;case"meta":if(k=M1("meta","content",b).get(p+(u.content||""))){for(M=0;M<k.length;M++)if(x=k[M],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){k.splice(M,1);break e}}x=b.createElement(p),Hn(x,p,u),b.head.appendChild(x);break;default:throw Error(i(468,p))}x[en]=r,re(x),p=x}r.stateNode=p}else N1(b,r.type,r.stateNode);else r.stateNode=A1(b,p,r.memoizedProps);else x!==p?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,p===null?N1(b,r.type,r.stateNode):A1(b,p,r.memoizedProps)):p===null&&r.stateNode!==null&&Qp(r,r.memoizedProps,u.memoizedProps)}break;case 27:vi(l,r),Si(r),p&512&&(Sn||u===null||Cr(u,u.return)),u!==null&&p&4&&Qp(r,r.memoizedProps,u.memoizedProps);break;case 5:if(vi(l,r),Si(r),p&512&&(Sn||u===null||Cr(u,u.return)),r.flags&32){b=r.stateNode;try{Kt(b,"")}catch(At){Ie(r,r.return,At)}}p&4&&r.stateNode!=null&&(b=r.memoizedProps,Qp(r,b,u!==null?u.memoizedProps:b)),p&1024&&(eg=!0);break;case 6:if(vi(l,r),Si(r),p&4){if(r.stateNode===null)throw Error(i(162));p=r.memoizedProps,u=r.stateNode;try{u.nodeValue=p}catch(At){Ie(r,r.return,At)}}break;case 3:if(vh=null,b=ur,ur=xh(l.containerInfo),vi(l,r),ur=b,Si(r),p&4&&u!==null&&u.memoizedState.isDehydrated)try{Ms(l.containerInfo)}catch(At){Ie(r,r.return,At)}eg&&(eg=!1,N_(r));break;case 4:p=ur,ur=xh(r.stateNode.containerInfo),vi(l,r),Si(r),ur=p;break;case 12:vi(l,r),Si(r);break;case 31:vi(l,r),Si(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,ah(r,p)));break;case 13:vi(l,r),Si(r),r.child.flags&8192&&r.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(sh=He()),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,ah(r,p)));break;case 22:b=r.memoizedState!==null;var P=u!==null&&u.memoizedState!==null,et=Jr,st=Sn;if(Jr=et||b,Sn=st||P,vi(l,r),Sn=st,Jr=et,Si(r),p&8192)t:for(l=r.stateNode,l._visibility=b?l._visibility&-2:l._visibility|1,b&&(u===null||P||Jr||Sn||_l(r)),u=null,l=r;;){if(l.tag===5||l.tag===26){if(u===null){P=u=l;try{if(x=P.stateNode,b)k=x.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{M=P.stateNode;var ut=P.memoizedProps.style,nt=ut!=null&&ut.hasOwnProperty("display")?ut.display:null;M.style.display=nt==null||typeof nt=="boolean"?"":(""+nt).trim()}}catch(At){Ie(P,P.return,At)}}}else if(l.tag===6){if(u===null){P=l;try{P.stateNode.nodeValue=b?"":P.memoizedProps}catch(At){Ie(P,P.return,At)}}}else if(l.tag===18){if(u===null){P=l;try{var rt=P.stateNode;b?x1(rt,!0):x1(P.stateNode,!1)}catch(At){Ie(P,P.return,At)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===r)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break t;for(;l.sibling===null;){if(l.return===null||l.return===r)break t;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}p&4&&(p=r.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,ah(r,u))));break;case 19:vi(l,r),Si(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,ah(r,p)));break;case 30:break;case 21:break;default:vi(l,r),Si(r)}}function Si(r){var l=r.flags;if(l&2){try{for(var u,p=r.return;p!==null;){if(v_(p)){u=p;break}p=p.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var b=u.stateNode,x=Jp(r);rh(r,x,b);break;case 5:var k=u.stateNode;u.flags&32&&(Kt(k,""),u.flags&=-33);var M=Jp(r);rh(r,M,k);break;case 3:case 4:var P=u.stateNode.containerInfo,et=Jp(r);tg(r,et,P);break;default:throw Error(i(161))}}catch(st){Ie(r,r.return,st)}r.flags&=-3}l&4096&&(r.flags&=-4097)}function N_(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var l=r;N_(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),r=r.sibling}}function ea(r,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)C_(r,l.alternate,l),l=l.sibling}function _l(r){for(r=r.child;r!==null;){var l=r;switch(l.tag){case 0:case 11:case 14:case 15:Oa(4,l,l.return),_l(l);break;case 1:Cr(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&x_(l,l.return,u),_l(l);break;case 27:ec(l.stateNode);case 26:case 5:Cr(l,l.return),_l(l);break;case 22:l.memoizedState===null&&_l(l);break;case 30:_l(l);break;default:_l(l)}r=r.sibling}}function na(r,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var p=l.alternate,b=r,x=l,k=x.flags;switch(x.tag){case 0:case 11:case 15:na(b,x,u),Go(4,x);break;case 1:if(na(b,x,u),p=x,b=p.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(et){Ie(p,p.return,et)}if(p=x,b=p.updateQueue,b!==null){var M=p.stateNode;try{var P=b.shared.hiddenCallbacks;if(P!==null)for(b.shared.hiddenCallbacks=null,b=0;b<P.length;b++)sx(P[b],M)}catch(et){Ie(p,p.return,et)}}u&&k&64&&b_(x),Yo(x,x.return);break;case 27:S_(x);case 26:case 5:na(b,x,u),u&&p===null&&k&4&&__(x),Yo(x,x.return);break;case 12:na(b,x,u);break;case 31:na(b,x,u),u&&k&4&&T_(b,x);break;case 13:na(b,x,u),u&&k&4&&A_(b,x);break;case 22:x.memoizedState===null&&na(b,x,u),Yo(x,x.return);break;case 30:break;default:na(b,x,u)}l=l.sibling}}function ng(r,l){var u=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(r!=null&&r.refCount++,u!=null&&Lo(u))}function ig(r,l){r=null,l.alternate!==null&&(r=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==r&&(l.refCount++,r!=null&&Lo(r))}function hr(r,l,u,p){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)O_(r,l,u,p),l=l.sibling}function O_(r,l,u,p){var b=l.flags;switch(l.tag){case 0:case 11:case 15:hr(r,l,u,p),b&2048&&Go(9,l);break;case 1:hr(r,l,u,p);break;case 3:hr(r,l,u,p),b&2048&&(r=null,l.alternate!==null&&(r=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==r&&(l.refCount++,r!=null&&Lo(r)));break;case 12:if(b&2048){hr(r,l,u,p),r=l.stateNode;try{var x=l.memoizedProps,k=x.id,M=x.onPostCommit;typeof M=="function"&&M(k,l.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(P){Ie(l,l.return,P)}}else hr(r,l,u,p);break;case 31:hr(r,l,u,p);break;case 13:hr(r,l,u,p);break;case 23:break;case 22:x=l.stateNode,k=l.alternate,l.memoizedState!==null?x._visibility&2?hr(r,l,u,p):Wo(r,l):x._visibility&2?hr(r,l,u,p):(x._visibility|=2,bs(r,l,u,p,(l.subtreeFlags&10256)!==0||!1)),b&2048&&ng(k,l);break;case 24:hr(r,l,u,p),b&2048&&ig(l.alternate,l);break;default:hr(r,l,u,p)}}function bs(r,l,u,p,b){for(b=b&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var x=r,k=l,M=u,P=p,et=k.flags;switch(k.tag){case 0:case 11:case 15:bs(x,k,M,P,b),Go(8,k);break;case 23:break;case 22:var st=k.stateNode;k.memoizedState!==null?st._visibility&2?bs(x,k,M,P,b):Wo(x,k):(st._visibility|=2,bs(x,k,M,P,b)),b&&et&2048&&ng(k.alternate,k);break;case 24:bs(x,k,M,P,b),b&&et&2048&&ig(k.alternate,k);break;default:bs(x,k,M,P,b)}l=l.sibling}}function Wo(r,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=r,p=l,b=p.flags;switch(p.tag){case 22:Wo(u,p),b&2048&&ng(p.alternate,p);break;case 24:Wo(u,p),b&2048&&ig(p.alternate,p);break;default:Wo(u,p)}l=l.sibling}}var Vo=8192;function xs(r,l,u){if(r.subtreeFlags&Vo)for(r=r.child;r!==null;)L_(r,l,u),r=r.sibling}function L_(r,l,u){switch(r.tag){case 26:xs(r,l,u),r.flags&Vo&&r.memoizedState!==null&&ML(u,ur,r.memoizedState,r.memoizedProps);break;case 5:xs(r,l,u);break;case 3:case 4:var p=ur;ur=xh(r.stateNode.containerInfo),xs(r,l,u),ur=p;break;case 22:r.memoizedState===null&&(p=r.alternate,p!==null&&p.memoizedState!==null?(p=Vo,Vo=16777216,xs(r,l,u),Vo=p):xs(r,l,u));break;default:xs(r,l,u)}}function R_(r){var l=r.alternate;if(l!==null&&(r=l.child,r!==null)){l.child=null;do l=r.sibling,r.sibling=null,r=l;while(r!==null)}}function Xo(r){var l=r.deletions;if((r.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];Bn=p,B_(p,r)}R_(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)D_(r),r=r.sibling}function D_(r){switch(r.tag){case 0:case 11:case 15:Xo(r),r.flags&2048&&Oa(9,r,r.return);break;case 3:Xo(r);break;case 12:Xo(r);break;case 22:var l=r.stateNode;r.memoizedState!==null&&l._visibility&2&&(r.return===null||r.return.tag!==13)?(l._visibility&=-3,lh(r)):Xo(r);break;default:Xo(r)}}function lh(r){var l=r.deletions;if((r.flags&16)!==0){if(l!==null)for(var u=0;u<l.length;u++){var p=l[u];Bn=p,B_(p,r)}R_(r)}for(r=r.child;r!==null;){switch(l=r,l.tag){case 0:case 11:case 15:Oa(8,l,l.return),lh(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,lh(l));break;default:lh(l)}r=r.sibling}}function B_(r,l){for(;Bn!==null;){var u=Bn;switch(u.tag){case 0:case 11:case 15:Oa(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Lo(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,Bn=p;else t:for(u=r;Bn!==null;){p=Bn;var b=p.sibling,x=p.return;if(k_(p),p===u){Bn=null;break t}if(b!==null){b.return=x,Bn=b;break t}Bn=x}}}var jO={getCacheForType:function(r){var l=Un(xn),u=l.data.get(r);return u===void 0&&(u=r(),l.data.set(r,u)),u},cacheSignal:function(){return Un(xn).controller.signal}},GO=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ge=null,ue=null,me=0,Be=0,zi=null,La=!1,_s=!1,rg=!1,ia=0,un=0,Ra=0,vl=0,ag=0,Fi=0,vs=0,Ko=null,wi=null,lg=!1,sh=0,I_=0,oh=1/0,ch=null,Da=null,Mn=0,Ba=null,Ss=null,ra=0,sg=0,og=null,z_=null,Zo=0,cg=null;function $i(){return(Me&2)!==0&&me!==0?me&-me:L.T!==null?gg():Ur()}function F_(){if(Fi===0)if((me&536870912)===0||_e){var r=sr;sr<<=1,(sr&3932160)===0&&(sr=262144),Fi=r}else Fi=536870912;return r=Bi.current,r!==null&&(r.flags|=32),Fi}function Ci(r,l,u){(r===Ge&&(Be===2||Be===9)||r.cancelPendingCommit!==null)&&(ws(r,0),Ia(r,me,Fi,!1)),Ne(r,u),((Me&2)===0||r!==Ge)&&(r===Ge&&((Me&2)===0&&(vl|=u),un===4&&Ia(r,me,Fi,!1)),kr(r))}function $_(r,l,u){if((Me&6)!==0)throw Error(i(327));var p=!u&&(l&127)===0&&(l&r.expiredLanes)===0||ot(r,l),b=p?VO(r,l):hg(r,l,!0),x=p;do{if(b===0){_s&&!p&&Ia(r,l,0,!1);break}else{if(u=r.current.alternate,x&&!YO(u)){b=hg(r,l,!1),x=!1;continue}if(b===2){if(x=l,r.errorRecoveryDisabledLanes&x)var k=0;else k=r.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){l=k;t:{var M=r;b=Ko;var P=M.current.memoizedState.isDehydrated;if(P&&(ws(M,k).flags|=256),k=hg(M,k,!1),k!==2){if(rg&&!P){M.errorRecoveryDisabledLanes|=x,vl|=x,b=4;break t}x=wi,wi=b,x!==null&&(wi===null?wi=x:wi.push.apply(wi,x))}b=k}if(x=!1,b!==2)continue}}if(b===1){ws(r,0),Ia(r,l,0,!0);break}t:{switch(p=r,x=b,x){case 0:case 1:throw Error(i(345));case 4:if((l&4194048)!==l)break;case 6:Ia(p,l,Fi,!La);break t;case 2:wi=null;break;case 3:case 5:break;default:throw Error(i(329))}if((l&62914560)===l&&(b=sh+300-He(),10<b)){if(Ia(p,l,Fi,!La),q(p,0,!0)!==0)break t;ra=l,p.timeoutHandle=m1(U_.bind(null,p,u,wi,ch,lg,l,Fi,vl,vs,La,x,"Throttled",-0,0),b);break t}U_(p,u,wi,ch,lg,l,Fi,vl,vs,La,x,null,-0,0)}}break}while(!0);kr(r)}function U_(r,l,u,p,b,x,k,M,P,et,st,ut,nt,rt){if(r.timeoutHandle=-1,ut=l.subtreeFlags,ut&8192||(ut&16785408)===16785408){ut={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_t},L_(l,x,ut);var At=(x&62914560)===x?sh-He():(x&4194048)===x?I_-He():0;if(At=NL(ut,At),At!==null){ra=x,r.cancelPendingCommit=At(V_.bind(null,r,l,x,u,p,b,k,M,P,st,ut,null,nt,rt)),Ia(r,x,k,!et);return}}V_(r,l,x,u,p,b,k,M,P)}function YO(r){for(var l=r;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var b=u[p],x=b.getSnapshot;b=b.value;try{if(!Ri(x(),b))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ia(r,l,u,p){l&=~ag,l&=~vl,r.suspendedLanes|=l,r.pingedLanes&=~l,p&&(r.warmLanes|=l),p=r.expirationTimes;for(var b=l;0<b;){var x=31-pe(b),k=1<<x;p[x]=-1,b&=~k}u!==0&&Ct(r,u,l)}function uh(){return(Me&6)===0?(Qo(0),!1):!0}function ug(){if(ue!==null){if(Be===0)var r=ue.return;else r=ue,Wr=fl=null,Ep(r),ds=null,Do=0,r=ue;for(;r!==null;)y_(r.alternate,r),r=r.return;ue=null}}function ws(r,l){var u=r.timeoutHandle;u!==-1&&(r.timeoutHandle=-1,fL(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),ra=0,ug(),Ge=r,ue=u=Gr(r.current,null),me=l,Be=0,zi=null,La=!1,_s=ot(r,l),rg=!1,vs=Fi=ag=vl=Ra=un=0,wi=Ko=null,lg=!1,(l&8)!==0&&(l|=l&32);var p=r.entangledLanes;if(p!==0)for(r=r.entanglements,p&=l;0<p;){var b=31-pe(p),x=1<<b;l|=r[b],p&=~x}return ia=l,Ou(),u}function P_(r,l){ie=null,L.H=Ho,l===fs||l===$u?(l=ix(),Be=3):l===pp?(l=ix(),Be=4):Be=l===Hp?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,zi=l,ue===null&&(un=1,Ju(r,Xi(l,r.current)))}function H_(){var r=Bi.current;return r===null?!0:(me&4194048)===me?Ji===null:(me&62914560)===me||(me&536870912)!==0?r===Ji:!1}function q_(){var r=L.H;return L.H=Ho,r===null?Ho:r}function j_(){var r=L.A;return L.A=jO,r}function hh(){un=4,La||(me&4194048)!==me&&Bi.current!==null||(_s=!0),(Ra&134217727)===0&&(vl&134217727)===0||Ge===null||Ia(Ge,me,Fi,!1)}function hg(r,l,u){var p=Me;Me|=2;var b=q_(),x=j_();(Ge!==r||me!==l)&&(ch=null,ws(r,l)),l=!1;var k=un;t:do try{if(Be!==0&&ue!==null){var M=ue,P=zi;switch(Be){case 8:ug(),k=6;break t;case 3:case 2:case 9:case 6:Bi.current===null&&(l=!0);var et=Be;if(Be=0,zi=null,Cs(r,M,P,et),u&&_s){k=0;break t}break;default:et=Be,Be=0,zi=null,Cs(r,M,P,et)}}WO(),k=un;break}catch(st){P_(r,st)}while(!0);return l&&r.shellSuspendCounter++,Wr=fl=null,Me=p,L.H=b,L.A=x,ue===null&&(Ge=null,me=0,Ou()),k}function WO(){for(;ue!==null;)G_(ue)}function VO(r,l){var u=Me;Me|=2;var p=q_(),b=j_();Ge!==r||me!==l?(ch=null,oh=He()+500,ws(r,l)):_s=ot(r,l);t:do try{if(Be!==0&&ue!==null){l=ue;var x=zi;e:switch(Be){case 1:Be=0,zi=null,Cs(r,l,x,1);break;case 2:case 9:if(ex(x)){Be=0,zi=null,Y_(l);break}l=function(){Be!==2&&Be!==9||Ge!==r||(Be=7),kr(r)},x.then(l,l);break t;case 3:Be=7;break t;case 4:Be=5;break t;case 7:ex(x)?(Be=0,zi=null,Y_(l)):(Be=0,zi=null,Cs(r,l,x,7));break;case 5:var k=null;switch(ue.tag){case 26:k=ue.memoizedState;case 5:case 27:var M=ue;if(k?O1(k):M.stateNode.complete){Be=0,zi=null;var P=M.sibling;if(P!==null)ue=P;else{var et=M.return;et!==null?(ue=et,fh(et)):ue=null}break e}}Be=0,zi=null,Cs(r,l,x,5);break;case 6:Be=0,zi=null,Cs(r,l,x,6);break;case 8:ug(),un=6;break t;default:throw Error(i(462))}}XO();break}catch(st){P_(r,st)}while(!0);return Wr=fl=null,L.H=p,L.A=b,Me=u,ue!==null?0:(Ge=null,me=0,Ou(),un)}function XO(){for(;ue!==null&&!ma();)G_(ue)}function G_(r){var l=g_(r.alternate,r,ia);r.memoizedProps=r.pendingProps,l===null?fh(r):ue=l}function Y_(r){var l=r,u=l.alternate;switch(l.tag){case 15:case 0:l=c_(u,l,l.pendingProps,l.type,void 0,me);break;case 11:l=c_(u,l,l.pendingProps,l.type.render,l.ref,me);break;case 5:Ep(l);default:y_(u,l),l=ue=j0(l,ia),l=g_(u,l,ia)}r.memoizedProps=r.pendingProps,l===null?fh(r):ue=l}function Cs(r,l,u,p){Wr=fl=null,Ep(l),ds=null,Do=0;var b=l.return;try{if(zO(r,b,l,u,me)){un=1,Ju(r,Xi(u,r.current)),ue=null;return}}catch(x){if(b!==null)throw ue=b,x;un=1,Ju(r,Xi(u,r.current)),ue=null;return}l.flags&32768?(_e||p===1?r=!0:_s||(me&536870912)!==0?r=!1:(La=r=!0,(p===2||p===9||p===3||p===6)&&(p=Bi.current,p!==null&&p.tag===13&&(p.flags|=16384))),W_(l,r)):fh(l)}function fh(r){var l=r;do{if((l.flags&32768)!==0){W_(l,La);return}r=l.return;var u=UO(l.alternate,l,ia);if(u!==null){ue=u;return}if(l=l.sibling,l!==null){ue=l;return}ue=l=r}while(l!==null);un===0&&(un=5)}function W_(r,l){do{var u=PO(r.alternate,r);if(u!==null){u.flags&=32767,ue=u;return}if(u=r.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(r=r.sibling,r!==null)){ue=r;return}ue=r=u}while(r!==null);un=6,ue=null}function V_(r,l,u,p,b,x,k,M,P){r.cancelPendingCommit=null;do dh();while(Mn!==0);if((Me&6)!==0)throw Error(i(327));if(l!==null){if(l===r.current)throw Error(i(177));if(x=l.lanes|l.childLanes,x|=Jd,Tt(r,u,x,k,M,P),r===Ge&&(ue=Ge=null,me=0),Ss=l,Ba=r,ra=u,sg=x,og=b,z_=p,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,JO(Pt,function(){return J_(),null})):(r.callbackNode=null,r.callbackPriority=0),p=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||p){p=L.T,L.T=null,b=U.p,U.p=2,k=Me,Me|=4;try{HO(r,l,u)}finally{Me=k,U.p=b,L.T=p}}Mn=1,X_(),K_(),Z_()}}function X_(){if(Mn===1){Mn=0;var r=Ba,l=Ss,u=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||u){u=L.T,L.T=null;var p=U.p;U.p=2;var b=Me;Me|=4;try{M_(l,r);var x=wg,k=B0(r.containerInfo),M=x.focusedElem,P=x.selectionRange;if(k!==M&&M&&M.ownerDocument&&D0(M.ownerDocument.documentElement,M)){if(P!==null&&Vd(M)){var et=P.start,st=P.end;if(st===void 0&&(st=et),"selectionStart"in M)M.selectionStart=et,M.selectionEnd=Math.min(st,M.value.length);else{var ut=M.ownerDocument||document,nt=ut&&ut.defaultView||window;if(nt.getSelection){var rt=nt.getSelection(),At=M.textContent.length,Vt=Math.min(P.start,At),$e=P.end===void 0?Vt:Math.min(P.end,At);!rt.extend&&Vt>$e&&(k=$e,$e=Vt,Vt=k);var X=R0(M,Vt),W=R0(M,$e);if(X&&W&&(rt.rangeCount!==1||rt.anchorNode!==X.node||rt.anchorOffset!==X.offset||rt.focusNode!==W.node||rt.focusOffset!==W.offset)){var J=ut.createRange();J.setStart(X.node,X.offset),rt.removeAllRanges(),Vt>$e?(rt.addRange(J),rt.extend(W.node,W.offset)):(J.setEnd(W.node,W.offset),rt.addRange(J))}}}}for(ut=[],rt=M;rt=rt.parentNode;)rt.nodeType===1&&ut.push({element:rt,left:rt.scrollLeft,top:rt.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ut.length;M++){var ct=ut[M];ct.element.scrollLeft=ct.left,ct.element.scrollTop=ct.top}}kh=!!Sg,wg=Sg=null}finally{Me=b,U.p=p,L.T=u}}r.current=l,Mn=2}}function K_(){if(Mn===2){Mn=0;var r=Ba,l=Ss,u=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||u){u=L.T,L.T=null;var p=U.p;U.p=2;var b=Me;Me|=4;try{C_(r,l.alternate,l)}finally{Me=b,U.p=p,L.T=u}}Mn=3}}function Z_(){if(Mn===4||Mn===3){Mn=0,ya();var r=Ba,l=Ss,u=ra,p=z_;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Mn=5:(Mn=0,Ss=Ba=null,Q_(r,r.pendingLanes));var b=r.pendingLanes;if(b===0&&(Da=null),In(u),l=l.stateNode,qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(on,l,void 0,(l.current.flags&128)===128)}catch{}if(p!==null){l=L.T,b=U.p,U.p=2,L.T=null;try{for(var x=r.onRecoverableError,k=0;k<p.length;k++){var M=p[k];x(M.value,{componentStack:M.stack})}}finally{L.T=l,U.p=b}}(ra&3)!==0&&dh(),kr(r),b=r.pendingLanes,(u&261930)!==0&&(b&42)!==0?r===cg?Zo++:(Zo=0,cg=r):Zo=0,Qo(0)}}function Q_(r,l){(r.pooledCacheLanes&=l)===0&&(l=r.pooledCache,l!=null&&(r.pooledCache=null,Lo(l)))}function dh(){return X_(),K_(),Z_(),J_()}function J_(){if(Mn!==5)return!1;var r=Ba,l=sg;sg=0;var u=In(ra),p=L.T,b=U.p;try{U.p=32>u?32:u,L.T=null,u=og,og=null;var x=Ba,k=ra;if(Mn=0,Ss=Ba=null,ra=0,(Me&6)!==0)throw Error(i(331));var M=Me;if(Me|=4,D_(x.current),O_(x,x.current,k,u),Me=M,Qo(0,!1),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(on,x)}catch{}return!0}finally{U.p=b,L.T=p,Q_(r,l)}}function t1(r,l,u){l=Xi(u,l),l=Pp(r.stateNode,l,2),r=Aa(r,l,2),r!==null&&(Ne(r,2),kr(r))}function Ie(r,l,u){if(r.tag===3)t1(r,r,u);else for(;l!==null;){if(l.tag===3){t1(l,r,u);break}else if(l.tag===1){var p=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Da===null||!Da.has(p))){r=Xi(u,r),u=e_(2),p=Aa(l,u,2),p!==null&&(n_(u,p,l,r),Ne(p,2),kr(p));break}}l=l.return}}function fg(r,l,u){var p=r.pingCache;if(p===null){p=r.pingCache=new GO;var b=new Set;p.set(l,b)}else b=p.get(l),b===void 0&&(b=new Set,p.set(l,b));b.has(u)||(rg=!0,b.add(u),r=KO.bind(null,r,l,u),l.then(r,r))}function KO(r,l,u){var p=r.pingCache;p!==null&&p.delete(l),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,Ge===r&&(me&u)===u&&(un===4||un===3&&(me&62914560)===me&&300>He()-sh?(Me&2)===0&&ws(r,0):ag|=u,vs===me&&(vs=0)),kr(r)}function e1(r,l){l===0&&(l=jt()),r=cl(r,l),r!==null&&(Ne(r,l),kr(r))}function ZO(r){var l=r.memoizedState,u=0;l!==null&&(u=l.retryLane),e1(r,u)}function QO(r,l){var u=0;switch(r.tag){case 31:case 13:var p=r.stateNode,b=r.memoizedState;b!==null&&(u=b.retryLane);break;case 19:p=r.stateNode;break;case 22:p=r.stateNode._retryCache;break;default:throw Error(i(314))}p!==null&&p.delete(l),e1(r,u)}function JO(r,l){return di(r,l)}var ph=null,ks=null,dg=!1,gh=!1,pg=!1,za=0;function kr(r){r!==ks&&r.next===null&&(ks===null?ph=ks=r:ks=ks.next=r),gh=!0,dg||(dg=!0,eL())}function Qo(r,l){if(!pg&&gh){pg=!0;do for(var u=!1,p=ph;p!==null;){if(r!==0){var b=p.pendingLanes;if(b===0)var x=0;else{var k=p.suspendedLanes,M=p.pingedLanes;x=(1<<31-pe(42|r)+1)-1,x&=b&~(k&~M),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,a1(p,x))}else x=me,x=q(p,p===Ge?x:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(x&3)===0||ot(p,x)||(u=!0,a1(p,x));p=p.next}while(u);pg=!1}}function tL(){n1()}function n1(){gh=dg=!1;var r=0;za!==0&&hL()&&(r=za);for(var l=He(),u=null,p=ph;p!==null;){var b=p.next,x=i1(p,l);x===0?(p.next=null,u===null?ph=b:u.next=b,b===null&&(ks=u)):(u=p,(r!==0||(x&3)!==0)&&(gh=!0)),p=b}Mn!==0&&Mn!==5||Qo(r),za!==0&&(za=0)}function i1(r,l){for(var u=r.suspendedLanes,p=r.pingedLanes,b=r.expirationTimes,x=r.pendingLanes&-62914561;0<x;){var k=31-pe(x),M=1<<k,P=b[k];P===-1?((M&u)===0||(M&p)!==0)&&(b[k]=mt(M,l)):P<=l&&(r.expiredLanes|=M),x&=~M}if(l=Ge,u=me,u=q(r,r===l?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),p=r.callbackNode,u===0||r===l&&(Be===2||Be===9)||r.cancelPendingCommit!==null)return p!==null&&p!==null&&vr(p),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||ot(r,u)){if(l=u&-u,l===r.callbackPriority)return l;switch(p!==null&&vr(p),In(u)){case 2:case 8:u=gt;break;case 32:u=Pt;break;case 268435456:u=be;break;default:u=Pt}return p=r1.bind(null,r),u=di(u,p),r.callbackPriority=l,r.callbackNode=u,l}return p!==null&&p!==null&&vr(p),r.callbackPriority=2,r.callbackNode=null,2}function r1(r,l){if(Mn!==0&&Mn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(dh()&&r.callbackNode!==u)return null;var p=me;return p=q(r,r===Ge?p:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),p===0?null:($_(r,p,l),i1(r,He()),r.callbackNode!=null&&r.callbackNode===u?r1.bind(null,r):null)}function a1(r,l){if(dh())return null;$_(r,l,!0)}function eL(){dL(function(){(Me&6)!==0?di(at,tL):n1()})}function gg(){if(za===0){var r=us;r===0&&(r=Yi,Yi<<=1,(Yi&261888)===0&&(Yi=256)),za=r}return za}function l1(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:_a(""+r)}function s1(r,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,r.id&&u.setAttribute("form",r.id),l.parentNode.insertBefore(u,l),r=new FormData(r),u.parentNode.removeChild(u),r}function nL(r,l,u,p,b){if(l==="submit"&&u&&u.stateNode===b){var x=l1((b[Ve]||null).action),k=p.submitter;k&&(l=(l=k[Ve]||null)?l1(l.formAction):k.getAttribute("formAction"),l!==null&&(x=l,k=null));var M=new Tu("action","action",null,p,b);r.push({event:M,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(za!==0){var P=k?s1(b,k):new FormData(b);Bp(u,{pending:!0,data:P,method:b.method,action:x},null,P)}}else typeof x=="function"&&(M.preventDefault(),P=k?s1(b,k):new FormData(b),Bp(u,{pending:!0,data:P,method:b.method,action:x},x,P))},currentTarget:b}]})}}for(var mg=0;mg<Qd.length;mg++){var yg=Qd[mg],iL=yg.toLowerCase(),rL=yg[0].toUpperCase()+yg.slice(1);cr(iL,"on"+rL)}cr(F0,"onAnimationEnd"),cr($0,"onAnimationIteration"),cr(U0,"onAnimationStart"),cr("dblclick","onDoubleClick"),cr("focusin","onFocus"),cr("focusout","onBlur"),cr(_O,"onTransitionRun"),cr(vO,"onTransitionStart"),cr(SO,"onTransitionCancel"),cr(P0,"onTransitionEnd"),yt("onMouseEnter",["mouseout","mouseover"]),yt("onMouseLeave",["mouseout","mouseover"]),yt("onPointerEnter",["pointerout","pointerover"]),yt("onPointerLeave",["pointerout","pointerover"]),Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="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(" "),aL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jo));function o1(r,l){l=(l&4)!==0;for(var u=0;u<r.length;u++){var p=r[u],b=p.event;p=p.listeners;t:{var x=void 0;if(l)for(var k=p.length-1;0<=k;k--){var M=p[k],P=M.instance,et=M.currentTarget;if(M=M.listener,P!==x&&b.isPropagationStopped())break t;x=M,b.currentTarget=et;try{x(b)}catch(st){Nu(st)}b.currentTarget=null,x=P}else for(k=0;k<p.length;k++){if(M=p[k],P=M.instance,et=M.currentTarget,M=M.listener,P!==x&&b.isPropagationStopped())break t;x=M,b.currentTarget=et;try{x(b)}catch(st){Nu(st)}b.currentTarget=null,x=P}}}}function he(r,l){var u=l[ba];u===void 0&&(u=l[ba]=new Set);var p=r+"__bubble";u.has(p)||(c1(l,r,2,!1),u.add(p))}function bg(r,l,u){var p=0;l&&(p|=4),c1(u,r,p,l)}var mh="_reactListening"+Math.random().toString(36).slice(2);function xg(r){if(!r[mh]){r[mh]=!0,An.forEach(function(u){u!=="selectionchange"&&(aL.has(u)||bg(u,!1,r),bg(u,!0,r))});var l=r.nodeType===9?r:r.ownerDocument;l===null||l[mh]||(l[mh]=!0,bg("selectionchange",!1,l))}}function c1(r,l,u,p){switch(F1(l)){case 2:var b=RL;break;case 8:b=DL;break;default:b=Dg}u=b.bind(null,l,u,r),b=void 0,!$d||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),p?b!==void 0?r.addEventListener(l,u,{capture:!0,passive:b}):r.addEventListener(l,u,!0):b!==void 0?r.addEventListener(l,u,{passive:b}):r.addEventListener(l,u,!1)}function _g(r,l,u,p,b){var x=p;if((l&1)===0&&(l&2)===0&&p!==null)t:for(;;){if(p===null)return;var k=p.tag;if(k===3||k===4){var M=p.stateNode.containerInfo;if(M===b)break;if(k===4)for(k=p.return;k!==null;){var P=k.tag;if((P===3||P===4)&&k.stateNode.containerInfo===b)return;k=k.return}for(;M!==null;){if(k=dt(M),k===null)return;if(P=k.tag,P===5||P===6||P===26||P===27){p=x=k;continue t}M=M.parentNode}}p=p.return}wu(function(){var et=x,st=ee(u),ut=[];t:{var nt=H0.get(r);if(nt!==void 0){var rt=Tu,At=r;switch(r){case"keypress":if(ku(u)===0)break t;case"keydown":case"keyup":rt=QN;break;case"focusin":At="focus",rt=qd;break;case"focusout":At="blur",rt=qd;break;case"beforeblur":case"afterblur":rt=qd;break;case"click":if(u.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":rt=y0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":rt=UN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":rt=eO;break;case F0:case $0:case U0:rt=qN;break;case P0:rt=iO;break;case"scroll":case"scrollend":rt=FN;break;case"wheel":rt=aO;break;case"copy":case"cut":case"paste":rt=GN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":rt=x0;break;case"toggle":case"beforetoggle":rt=sO}var Vt=(l&4)!==0,$e=!Vt&&(r==="scroll"||r==="scrollend"),X=Vt?nt!==null?nt+"Capture":null:nt;Vt=[];for(var W=et,J;W!==null;){var ct=W;if(J=ct.stateNode,ct=ct.tag,ct!==5&&ct!==26&&ct!==27||J===null||X===null||(ct=vo(W,X),ct!=null&&Vt.push(tc(W,ct,J))),$e)break;W=W.return}0<Vt.length&&(nt=new rt(nt,At,null,u,st),ut.push({event:nt,listeners:Vt}))}}if((l&7)===0){t:{if(nt=r==="mouseover"||r==="pointerover",rt=r==="mouseout"||r==="pointerout",nt&&u!==Bt&&(At=u.relatedTarget||u.fromElement)&&(dt(At)||At[or]))break t;if((rt||nt)&&(nt=st.window===st?st:(nt=st.ownerDocument)?nt.defaultView||nt.parentWindow:window,rt?(At=u.relatedTarget||u.toElement,rt=et,At=At?dt(At):null,At!==null&&($e=s(At),Vt=At.tag,At!==$e||Vt!==5&&Vt!==27&&Vt!==6)&&(At=null)):(rt=null,At=et),rt!==At)){if(Vt=y0,ct="onMouseLeave",X="onMouseEnter",W="mouse",(r==="pointerout"||r==="pointerover")&&(Vt=x0,ct="onPointerLeave",X="onPointerEnter",W="pointer"),$e=rt==null?nt:Ce(rt),J=At==null?nt:Ce(At),nt=new Vt(ct,W+"leave",rt,u,st),nt.target=$e,nt.relatedTarget=J,ct=null,dt(st)===et&&(Vt=new Vt(X,W+"enter",At,u,st),Vt.target=J,Vt.relatedTarget=$e,ct=Vt),$e=ct,rt&&At)e:{for(Vt=lL,X=rt,W=At,J=0,ct=X;ct;ct=Vt(ct))J++;ct=0;for(var Ht=W;Ht;Ht=Vt(Ht))ct++;for(;0<J-ct;)X=Vt(X),J--;for(;0<ct-J;)W=Vt(W),ct--;for(;J--;){if(X===W||W!==null&&X===W.alternate){Vt=X;break e}X=Vt(X),W=Vt(W)}Vt=null}else Vt=null;rt!==null&&u1(ut,nt,rt,Vt,!1),At!==null&&$e!==null&&u1(ut,$e,At,Vt,!0)}}t:{if(nt=et?Ce(et):window,rt=nt.nodeName&&nt.nodeName.toLowerCase(),rt==="select"||rt==="input"&&nt.type==="file")var Ee=T0;else if(k0(nt))if(A0)Ee=yO;else{Ee=gO;var It=pO}else rt=nt.nodeName,!rt||rt.toLowerCase()!=="input"||nt.type!=="checkbox"&&nt.type!=="radio"?et&&xa(et.elementType)&&(Ee=T0):Ee=mO;if(Ee&&(Ee=Ee(r,et))){E0(ut,Ee,u,st);break t}It&&It(r,nt,et),r==="focusout"&&et&&nt.type==="number"&&et.memoizedProps.value!=null&&Jl(nt,"number",nt.value)}switch(It=et?Ce(et):window,r){case"focusin":(k0(It)||It.contentEditable==="true")&&(ns=It,Xd=et,Mo=null);break;case"focusout":Mo=Xd=ns=null;break;case"mousedown":Kd=!0;break;case"contextmenu":case"mouseup":case"dragend":Kd=!1,I0(ut,u,st);break;case"selectionchange":if(xO)break;case"keydown":case"keyup":I0(ut,u,st)}var le;if(Gd)t:{switch(r){case"compositionstart":var ye="onCompositionStart";break t;case"compositionend":ye="onCompositionEnd";break t;case"compositionupdate":ye="onCompositionUpdate";break t}ye=void 0}else es?w0(r,u)&&(ye="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(ye="onCompositionStart");ye&&(_0&&u.locale!=="ko"&&(es||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&es&&(le=g0()):(va=st,Ud="value"in va?va.value:va.textContent,es=!0)),It=yh(et,ye),0<It.length&&(ye=new b0(ye,r,null,u,st),ut.push({event:ye,listeners:It}),le?ye.data=le:(le=C0(u),le!==null&&(ye.data=le)))),(le=cO?uO(r,u):hO(r,u))&&(ye=yh(et,"onBeforeInput"),0<ye.length&&(It=new b0("onBeforeInput","beforeinput",null,u,st),ut.push({event:It,listeners:ye}),It.data=le)),nL(ut,r,et,u,st)}o1(ut,l)})}function tc(r,l,u){return{instance:r,listener:l,currentTarget:u}}function yh(r,l){for(var u=l+"Capture",p=[];r!==null;){var b=r,x=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||x===null||(b=vo(r,u),b!=null&&p.unshift(tc(r,b,x)),b=vo(r,l),b!=null&&p.push(tc(r,b,x))),r.tag===3)return p;r=r.return}return[]}function lL(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function u1(r,l,u,p,b){for(var x=l._reactName,k=[];u!==null&&u!==p;){var M=u,P=M.alternate,et=M.stateNode;if(M=M.tag,P!==null&&P===p)break;M!==5&&M!==26&&M!==27||et===null||(P=et,b?(et=vo(u,x),et!=null&&k.unshift(tc(u,et,P))):b||(et=vo(u,x),et!=null&&k.push(tc(u,et,P)))),u=u.return}k.length!==0&&r.push({event:l,listeners:k})}var sL=/\r\n?/g,oL=/\u0000|\uFFFD/g;function h1(r){return(typeof r=="string"?r:""+r).replace(sL,`
50
+ `).replace(oL,"")}function f1(r,l){return l=h1(l),h1(r)===l}function Fe(r,l,u,p,b,x){switch(u){case"children":typeof p=="string"?l==="body"||l==="textarea"&&p===""||Kt(r,p):(typeof p=="number"||typeof p=="bigint")&&l!=="body"&&Kt(r,""+p);break;case"className":Oi(r,"class",p);break;case"tabIndex":Oi(r,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(r,u,p);break;case"style":De(r,p,x);break;case"data":if(l!=="object"){Oi(r,"data",p);break}case"src":case"href":if(p===""&&(l!=="a"||u!=="href")){r.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(u);break}p=_a(""+p),r.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){r.setAttribute(u,"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 x=="function"&&(u==="formAction"?(l!=="input"&&Fe(r,l,"name",b.name,b,null),Fe(r,l,"formEncType",b.formEncType,b,null),Fe(r,l,"formMethod",b.formMethod,b,null),Fe(r,l,"formTarget",b.formTarget,b,null)):(Fe(r,l,"encType",b.encType,b,null),Fe(r,l,"method",b.method,b,null),Fe(r,l,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(u);break}p=_a(""+p),r.setAttribute(u,p);break;case"onClick":p!=null&&(r.onclick=_t);break;case"onScroll":p!=null&&he("scroll",r);break;case"onScrollEnd":p!=null&&he("scrollend",r);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(i(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"multiple":r.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":r.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){r.removeAttribute("xlink:href");break}u=_a(""+p),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(u,""+p):r.removeAttribute(u);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":p&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(u,""):r.removeAttribute(u);break;case"capture":case"download":p===!0?r.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(u,p):r.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?r.setAttribute(u,p):r.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?r.removeAttribute(u):r.setAttribute(u,p);break;case"popover":he("beforetoggle",r),he("toggle",r),Yn(r,"popover",p);break;case"xlinkActuate":yi(r,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":yi(r,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":yi(r,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":yi(r,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":yi(r,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":yi(r,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":yi(r,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":yi(r,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":yi(r,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Yn(r,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=qr.get(u)||u,Yn(r,u,p))}}function vg(r,l,u,p,b,x){switch(u){case"style":De(r,p,x);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(i(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(i(60));r.innerHTML=u}}break;case"children":typeof p=="string"?Kt(r,p):(typeof p=="number"||typeof p=="bigint")&&Kt(r,""+p);break;case"onScroll":p!=null&&he("scroll",r);break;case"onScrollEnd":p!=null&&he("scrollend",r);break;case"onClick":p!=null&&(r.onclick=_t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zn.hasOwnProperty(u))t:{if(u[0]==="o"&&u[1]==="n"&&(b=u.endsWith("Capture"),l=u.slice(2,b?u.length-7:void 0),x=r[Ve]||null,x=x!=null?x[u]:null,typeof x=="function"&&r.removeEventListener(l,x,b),typeof p=="function")){typeof x!="function"&&x!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(l,p,b);break t}u in r?r[u]=p:p===!0?r.setAttribute(u,""):Yn(r,u,p)}}}function Hn(r,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",r),he("load",r);var p=!1,b=!1,x;for(x in u)if(u.hasOwnProperty(x)){var k=u[x];if(k!=null)switch(x){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,l));default:Fe(r,l,x,k,u,null)}}b&&Fe(r,l,"srcSet",u.srcSet,u,null),p&&Fe(r,l,"src",u.src,u,null);return;case"input":he("invalid",r);var M=x=k=b=null,P=null,et=null;for(p in u)if(u.hasOwnProperty(p)){var st=u[p];if(st!=null)switch(p){case"name":b=st;break;case"type":k=st;break;case"checked":P=st;break;case"defaultChecked":et=st;break;case"value":x=st;break;case"defaultValue":M=st;break;case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(i(137,l));break;default:Fe(r,l,p,st,u,null)}}al(r,x,M,P,et,k,b,!1);return;case"select":he("invalid",r),p=k=x=null;for(b in u)if(u.hasOwnProperty(b)&&(M=u[b],M!=null))switch(b){case"value":x=M;break;case"defaultValue":k=M;break;case"multiple":p=M;default:Fe(r,l,b,M,u,null)}l=x,u=k,r.multiple=!!p,l!=null?Fn(r,!!p,l,!1):u!=null&&Fn(r,!!p,u,!0);return;case"textarea":he("invalid",r),x=b=p=null;for(k in u)if(u.hasOwnProperty(k)&&(M=u[k],M!=null))switch(k){case"value":p=M;break;case"defaultValue":b=M;break;case"children":x=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(i(91));break;default:Fe(r,l,k,M,u,null)}ts(r,p,b,x);return;case"option":for(P in u)if(u.hasOwnProperty(P)&&(p=u[P],p!=null))switch(P){case"selected":r.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Fe(r,l,P,p,u,null)}return;case"dialog":he("beforetoggle",r),he("toggle",r),he("cancel",r),he("close",r);break;case"iframe":case"object":he("load",r);break;case"video":case"audio":for(p=0;p<Jo.length;p++)he(Jo[p],r);break;case"image":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"embed":case"source":case"link":he("error",r),he("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(et in u)if(u.hasOwnProperty(et)&&(p=u[et],p!=null))switch(et){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,l));default:Fe(r,l,et,p,u,null)}return;default:if(xa(l)){for(st in u)u.hasOwnProperty(st)&&(p=u[st],p!==void 0&&vg(r,l,st,p,u,void 0));return}}for(M in u)u.hasOwnProperty(M)&&(p=u[M],p!=null&&Fe(r,l,M,p,u,null))}function cL(r,l,u,p){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,x=null,k=null,M=null,P=null,et=null,st=null;for(rt in u){var ut=u[rt];if(u.hasOwnProperty(rt)&&ut!=null)switch(rt){case"checked":break;case"value":break;case"defaultValue":P=ut;default:p.hasOwnProperty(rt)||Fe(r,l,rt,null,p,ut)}}for(var nt in p){var rt=p[nt];if(ut=u[nt],p.hasOwnProperty(nt)&&(rt!=null||ut!=null))switch(nt){case"type":x=rt;break;case"name":b=rt;break;case"checked":et=rt;break;case"defaultChecked":st=rt;break;case"value":k=rt;break;case"defaultValue":M=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(i(137,l));break;default:rt!==ut&&Fe(r,l,nt,rt,p,ut)}}bo(r,k,M,P,et,st,x,b);return;case"select":rt=k=M=nt=null;for(x in u)if(P=u[x],u.hasOwnProperty(x)&&P!=null)switch(x){case"value":break;case"multiple":rt=P;default:p.hasOwnProperty(x)||Fe(r,l,x,null,p,P)}for(b in p)if(x=p[b],P=u[b],p.hasOwnProperty(b)&&(x!=null||P!=null))switch(b){case"value":nt=x;break;case"defaultValue":M=x;break;case"multiple":k=x;default:x!==P&&Fe(r,l,b,x,p,P)}l=M,u=k,p=rt,nt!=null?Fn(r,!!u,nt,!1):!!p!=!!u&&(l!=null?Fn(r,!!u,l,!0):Fn(r,!!u,u?[]:"",!1));return;case"textarea":rt=nt=null;for(M in u)if(b=u[M],u.hasOwnProperty(M)&&b!=null&&!p.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Fe(r,l,M,null,p,b)}for(k in p)if(b=p[k],x=u[k],p.hasOwnProperty(k)&&(b!=null||x!=null))switch(k){case"value":nt=b;break;case"defaultValue":rt=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(i(91));break;default:b!==x&&Fe(r,l,k,b,p,x)}vu(r,nt,rt);return;case"option":for(var At in u)if(nt=u[At],u.hasOwnProperty(At)&&nt!=null&&!p.hasOwnProperty(At))switch(At){case"selected":r.selected=!1;break;default:Fe(r,l,At,null,p,nt)}for(P in p)if(nt=p[P],rt=u[P],p.hasOwnProperty(P)&&nt!==rt&&(nt!=null||rt!=null))switch(P){case"selected":r.selected=nt&&typeof nt!="function"&&typeof nt!="symbol";break;default:Fe(r,l,P,nt,p,rt)}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 Vt in u)nt=u[Vt],u.hasOwnProperty(Vt)&&nt!=null&&!p.hasOwnProperty(Vt)&&Fe(r,l,Vt,null,p,nt);for(et in p)if(nt=p[et],rt=u[et],p.hasOwnProperty(et)&&nt!==rt&&(nt!=null||rt!=null))switch(et){case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(i(137,l));break;default:Fe(r,l,et,nt,p,rt)}return;default:if(xa(l)){for(var $e in u)nt=u[$e],u.hasOwnProperty($e)&&nt!==void 0&&!p.hasOwnProperty($e)&&vg(r,l,$e,void 0,p,nt);for(st in p)nt=p[st],rt=u[st],!p.hasOwnProperty(st)||nt===rt||nt===void 0&&rt===void 0||vg(r,l,st,nt,p,rt);return}}for(var X in u)nt=u[X],u.hasOwnProperty(X)&&nt!=null&&!p.hasOwnProperty(X)&&Fe(r,l,X,null,p,nt);for(ut in p)nt=p[ut],rt=u[ut],!p.hasOwnProperty(ut)||nt===rt||nt==null&&rt==null||Fe(r,l,ut,nt,p,rt)}function d1(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uL(){if(typeof performance.getEntriesByType=="function"){for(var r=0,l=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var b=u[p],x=b.transferSize,k=b.initiatorType,M=b.duration;if(x&&M&&d1(k)){for(k=0,M=b.responseEnd,p+=1;p<u.length;p++){var P=u[p],et=P.startTime;if(et>M)break;var st=P.transferSize,ut=P.initiatorType;st&&d1(ut)&&(P=P.responseEnd,k+=st*(P<M?1:(M-et)/(P-et)))}if(--p,l+=8*(x+k)/(b.duration/1e3),r++,10<r)break}}if(0<r)return l/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Sg=null,wg=null;function bh(r){return r.nodeType===9?r:r.ownerDocument}function p1(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function g1(r,l){if(r===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&l==="foreignObject"?0:r}function Cg(r,l){return r==="textarea"||r==="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 kg=null;function hL(){var r=window.event;return r&&r.type==="popstate"?r===kg?!1:(kg=r,!0):(kg=null,!1)}var m1=typeof setTimeout=="function"?setTimeout:void 0,fL=typeof clearTimeout=="function"?clearTimeout:void 0,y1=typeof Promise=="function"?Promise:void 0,dL=typeof queueMicrotask=="function"?queueMicrotask:typeof y1<"u"?function(r){return y1.resolve(null).then(r).catch(pL)}:m1;function pL(r){setTimeout(function(){throw r})}function Fa(r){return r==="head"}function b1(r,l){var u=l,p=0;do{var b=u.nextSibling;if(r.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"||u==="/&"){if(p===0){r.removeChild(b),Ms(l);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")ec(r.ownerDocument.documentElement);else if(u==="head"){u=r.ownerDocument.head,ec(u);for(var x=u.firstChild;x;){var k=x.nextSibling,M=x.nodeName;x[Ot]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=k}}else u==="body"&&ec(r.ownerDocument.body);u=b}while(u);Ms(l)}function x1(r,l){var u=r;r=0;do{var p=u.nextSibling;if(u.nodeType===1?l?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(l?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(r===0)break;r--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||r++;u=p}while(u)}function Eg(r){var l=r.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Eg(u),Y(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function gL(r,l,u,p){for(;r.nodeType===1;){var b=u;if(r.nodeName.toLowerCase()!==l.toLowerCase()){if(!p&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(p){if(!r[Ot])switch(l){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(x=r.getAttribute("rel"),x==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(x!==b.rel||r.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||r.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||r.getAttribute("title")!==(b.title==null?null:b.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(x=r.getAttribute("src"),(x!==(b.src==null?null:b.src)||r.getAttribute("type")!==(b.type==null?null:b.type)||r.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&x&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(l==="input"&&r.type==="hidden"){var x=b.name==null?null:""+b.name;if(b.type==="hidden"&&r.getAttribute("name")===x)return r}else return r;if(r=tr(r.nextSibling),r===null)break}return null}function mL(r,l,u){if(l==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!u||(r=tr(r.nextSibling),r===null))return null;return r}function _1(r,l){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=tr(r.nextSibling),r===null))return null;return r}function Tg(r){return r.data==="$?"||r.data==="$~"}function Ag(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function yL(r,l){var u=r.ownerDocument;if(r.data==="$~")r._reactRetry=l;else if(r.data!=="$?"||u.readyState!=="loading")l();else{var p=function(){l(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),r._reactRetry=p}}function tr(r){for(;r!=null;r=r.nextSibling){var l=r.nodeType;if(l===1||l===3)break;if(l===8){if(l=r.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return r}var Mg=null;function v1(r){r=r.nextSibling;for(var l=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"||u==="/&"){if(l===0)return tr(r.nextSibling);l--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||l++}r=r.nextSibling}return null}function S1(r){r=r.previousSibling;for(var l=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(l===0)return r;l--}else u!=="/$"&&u!=="/&"||l++}r=r.previousSibling}return null}function w1(r,l,u){switch(l=bh(u),r){case"html":if(r=l.documentElement,!r)throw Error(i(452));return r;case"head":if(r=l.head,!r)throw Error(i(453));return r;case"body":if(r=l.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function ec(r){for(var l=r.attributes;l.length;)r.removeAttributeNode(l[0]);Y(r)}var er=new Map,C1=new Set;function xh(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var aa=U.d;U.d={f:bL,r:xL,D:_L,C:vL,L:SL,m:wL,X:kL,S:CL,M:EL};function bL(){var r=aa.f(),l=uh();return r||l}function xL(r){var l=kt(r);l!==null&&l.tag===5&&l.type==="form"?Px(l):aa.r(r)}var Es=typeof document>"u"?null:document;function k1(r,l,u){var p=Es;if(p&&typeof l=="string"&&l){var b=bi(l);b='link[rel="'+r+'"][href="'+b+'"]',typeof u=="string"&&(b+='[crossorigin="'+u+'"]'),C1.has(b)||(C1.add(b),r={rel:r,crossOrigin:u,href:l},p.querySelector(b)===null&&(l=p.createElement("link"),Hn(l,"link",r),re(l),p.head.appendChild(l)))}}function _L(r){aa.D(r),k1("dns-prefetch",r,null)}function vL(r,l){aa.C(r,l),k1("preconnect",r,l)}function SL(r,l,u){aa.L(r,l,u);var p=Es;if(p&&r&&l){var b='link[rel="preload"][as="'+bi(l)+'"]';l==="image"&&u&&u.imageSrcSet?(b+='[imagesrcset="'+bi(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(b+='[imagesizes="'+bi(u.imageSizes)+'"]')):b+='[href="'+bi(r)+'"]';var x=b;switch(l){case"style":x=Ts(r);break;case"script":x=As(r)}er.has(x)||(r=g({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:r,as:l},u),er.set(x,r),p.querySelector(b)!==null||l==="style"&&p.querySelector(nc(x))||l==="script"&&p.querySelector(ic(x))||(l=p.createElement("link"),Hn(l,"link",r),re(l),p.head.appendChild(l)))}}function wL(r,l){aa.m(r,l);var u=Es;if(u&&r){var p=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+bi(p)+'"][href="'+bi(r)+'"]',x=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=As(r)}if(!er.has(x)&&(r=g({rel:"modulepreload",href:r},l),er.set(x,r),u.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ic(x)))return}p=u.createElement("link"),Hn(p,"link",r),re(p),u.head.appendChild(p)}}}function CL(r,l,u){aa.S(r,l,u);var p=Es;if(p&&r){var b=Ze(p).hoistableStyles,x=Ts(r);l=l||"default";var k=b.get(x);if(!k){var M={loading:0,preload:null};if(k=p.querySelector(nc(x)))M.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":l},u),(u=er.get(x))&&Ng(r,u);var P=k=p.createElement("link");re(P),Hn(P,"link",r),P._p=new Promise(function(et,st){P.onload=et,P.onerror=st}),P.addEventListener("load",function(){M.loading|=1}),P.addEventListener("error",function(){M.loading|=2}),M.loading|=4,_h(k,l,p)}k={type:"stylesheet",instance:k,count:1,state:M},b.set(x,k)}}}function kL(r,l){aa.X(r,l);var u=Es;if(u&&r){var p=Ze(u).hoistableScripts,b=As(r),x=p.get(b);x||(x=u.querySelector(ic(b)),x||(r=g({src:r,async:!0},l),(l=er.get(b))&&Og(r,l),x=u.createElement("script"),re(x),Hn(x,"link",r),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(b,x))}}function EL(r,l){aa.M(r,l);var u=Es;if(u&&r){var p=Ze(u).hoistableScripts,b=As(r),x=p.get(b);x||(x=u.querySelector(ic(b)),x||(r=g({src:r,async:!0,type:"module"},l),(l=er.get(b))&&Og(r,l),x=u.createElement("script"),re(x),Hn(x,"link",r),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},p.set(b,x))}}function E1(r,l,u,p){var b=(b=pt.current)?xh(b):null;if(!b)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=Ts(u.href),u=Ze(b).hoistableStyles,p=u.get(l),p||(p={type:"style",instance:null,count:0,state:null},u.set(l,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){r=Ts(u.href);var x=Ze(b).hoistableStyles,k=x.get(r);if(k||(b=b.ownerDocument||b,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(r,k),(x=b.querySelector(nc(r)))&&!x._p&&(k.instance=x,k.state.loading=5),er.has(r)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},er.set(r,u),x||TL(b,r,u,k.state))),l&&p===null)throw Error(i(528,""));return k}if(l&&p!==null)throw Error(i(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=As(u),u=Ze(b).hoistableScripts,p=u.get(l),p||(p={type:"script",instance:null,count:0,state:null},u.set(l,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Ts(r){return'href="'+bi(r)+'"'}function nc(r){return'link[rel="stylesheet"]['+r+"]"}function T1(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function TL(r,l,u,p){r.querySelector('link[rel="preload"][as="style"]['+l+"]")?p.loading=1:(l=r.createElement("link"),p.preload=l,l.addEventListener("load",function(){return p.loading|=1}),l.addEventListener("error",function(){return p.loading|=2}),Hn(l,"link",u),re(l),r.head.appendChild(l))}function As(r){return'[src="'+bi(r)+'"]'}function ic(r){return"script[async]"+r}function A1(r,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var p=r.querySelector('style[data-href~="'+bi(u.href)+'"]');if(p)return l.instance=p,re(p),p;var b=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(r.ownerDocument||r).createElement("style"),re(p),Hn(p,"style",b),_h(p,u.precedence,r),l.instance=p;case"stylesheet":b=Ts(u.href);var x=r.querySelector(nc(b));if(x)return l.state.loading|=4,l.instance=x,re(x),x;p=T1(u),(b=er.get(b))&&Ng(p,b),x=(r.ownerDocument||r).createElement("link"),re(x);var k=x;return k._p=new Promise(function(M,P){k.onload=M,k.onerror=P}),Hn(x,"link",p),l.state.loading|=4,_h(x,u.precedence,r),l.instance=x;case"script":return x=As(u.src),(b=r.querySelector(ic(x)))?(l.instance=b,re(b),b):(p=u,(b=er.get(x))&&(p=g({},u),Og(p,b)),r=r.ownerDocument||r,b=r.createElement("script"),re(b),Hn(b,"link",p),r.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(i(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(p=l.instance,l.state.loading|=4,_h(p,u.precedence,r));return l.instance}function _h(r,l,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,x=b,k=0;k<p.length;k++){var M=p[k];if(M.dataset.precedence===l)x=M;else if(x!==b)break}x?x.parentNode.insertBefore(r,x.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(r,l.firstChild))}function Ng(r,l){r.crossOrigin==null&&(r.crossOrigin=l.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=l.referrerPolicy),r.title==null&&(r.title=l.title)}function Og(r,l){r.crossOrigin==null&&(r.crossOrigin=l.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=l.referrerPolicy),r.integrity==null&&(r.integrity=l.integrity)}var vh=null;function M1(r,l,u){if(vh===null){var p=new Map,b=vh=new Map;b.set(u,p)}else b=vh,p=b.get(u),p||(p=new Map,b.set(u,p));if(p.has(r))return p;for(p.set(r,null),u=u.getElementsByTagName(r),b=0;b<u.length;b++){var x=u[b];if(!(x[Ot]||x[en]||r==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var k=x.getAttribute(l)||"";k=r+k;var M=p.get(k);M?M.push(x):p.set(k,[x])}}return p}function N1(r,l,u){r=r.ownerDocument||r,r.head.insertBefore(u,l==="title"?r.querySelector("head > title"):null)}function AL(r,l,u){if(u===1||l.itemProp!=null)return!1;switch(r){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 r=l.disabled,typeof l.precedence=="string"&&r==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 O1(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function ML(r,l,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=Ts(p.href),x=l.querySelector(nc(b));if(x){l=x._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(r.count++,r=Sh.bind(r),l.then(r,r)),u.state.loading|=4,u.instance=x,re(x);return}x=l.ownerDocument||l,p=T1(p),(b=er.get(b))&&Ng(p,b),x=x.createElement("link"),re(x);var k=x;k._p=new Promise(function(M,P){k.onload=M,k.onerror=P}),Hn(x,"link",p),u.instance=x}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(u,l),(l=u.state.preload)&&(u.state.loading&3)===0&&(r.count++,u=Sh.bind(r),l.addEventListener("load",u),l.addEventListener("error",u))}}var Lg=0;function NL(r,l){return r.stylesheets&&r.count===0&&Ch(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var p=setTimeout(function(){if(r.stylesheets&&Ch(r,r.stylesheets),r.unsuspend){var x=r.unsuspend;r.unsuspend=null,x()}},6e4+l);0<r.imgBytes&&Lg===0&&(Lg=62500*uL());var b=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ch(r,r.stylesheets),r.unsuspend)){var x=r.unsuspend;r.unsuspend=null,x()}},(r.imgBytes>Lg?50:800)+l);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function Sh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ch(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var wh=null;function Ch(r,l){r.stylesheets=null,r.unsuspend!==null&&(r.count++,wh=new Map,l.forEach(OL,r),wh=null,Sh.call(r))}function OL(r,l){if(!(l.state.loading&4)){var u=wh.get(r);if(u)var p=u.get(null);else{u=new Map,wh.set(r,u);for(var b=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<b.length;x++){var k=b[x];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(u.set(k.dataset.precedence,k),p=k)}p&&u.set(null,p)}b=l.instance,k=b.getAttribute("data-precedence"),x=u.get(k)||p,x===p&&u.set(null,b),u.set(k,b),this.count++,p=Sh.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),x?x.parentNode.insertBefore(b,x.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(b,r.firstChild)),l.state.loading|=4}}var rc={$$typeof:A,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function LL(r,l,u,p,b,x,k,M,P){this.tag=1,this.containerInfo=r,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=je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.hiddenUpdates=je(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=x,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function L1(r,l,u,p,b,x,k,M,P,et,st,ut){return r=new LL(r,l,u,k,P,et,st,ut,M),l=1,x===!0&&(l|=24),x=Di(3,null,null,l),r.current=x,x.stateNode=r,l=hp(),l.refCount++,r.pooledCache=l,l.refCount++,x.memoizedState={element:p,isDehydrated:u,cache:l},gp(x),r}function R1(r){return r?(r=as,r):as}function D1(r,l,u,p,b,x){b=R1(b),p.context===null?p.context=b:p.pendingContext=b,p=Ta(l),p.payload={element:u},x=x===void 0?null:x,x!==null&&(p.callback=x),u=Aa(r,p,l),u!==null&&(Ci(u,r,l),Io(u,r,l))}function B1(r,l){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<l?u:l}}function Rg(r,l){B1(r,l),(r=r.alternate)&&B1(r,l)}function I1(r){if(r.tag===13||r.tag===31){var l=cl(r,67108864);l!==null&&Ci(l,r,67108864),Rg(r,67108864)}}function z1(r){if(r.tag===13||r.tag===31){var l=$i();l=xe(l);var u=cl(r,l);u!==null&&Ci(u,r,l),Rg(r,l)}}var kh=!0;function RL(r,l,u,p){var b=L.T;L.T=null;var x=U.p;try{U.p=2,Dg(r,l,u,p)}finally{U.p=x,L.T=b}}function DL(r,l,u,p){var b=L.T;L.T=null;var x=U.p;try{U.p=8,Dg(r,l,u,p)}finally{U.p=x,L.T=b}}function Dg(r,l,u,p){if(kh){var b=Bg(p);if(b===null)_g(r,l,p,Eh,u),$1(r,p);else if(IL(b,r,l,u,p))p.stopPropagation();else if($1(r,p),l&4&&-1<BL.indexOf(r)){for(;b!==null;){var x=kt(b);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var k=yn(x.pendingLanes);if(k!==0){var M=x;for(M.pendingLanes|=2,M.entangledLanes|=2;k;){var P=1<<31-pe(k);M.entanglements[1]|=P,k&=~P}kr(x),(Me&6)===0&&(oh=He()+500,Qo(0))}}break;case 31:case 13:M=cl(x,2),M!==null&&Ci(M,x,2),uh(),Rg(x,2)}if(x=Bg(p),x===null&&_g(r,l,p,Eh,u),x===b)break;b=x}b!==null&&p.stopPropagation()}else _g(r,l,p,null,u)}}function Bg(r){return r=ee(r),Ig(r)}var Eh=null;function Ig(r){if(Eh=null,r=dt(r),r!==null){var l=s(r);if(l===null)r=null;else{var u=l.tag;if(u===13){if(r=o(l),r!==null)return r;r=null}else if(u===31){if(r=c(l),r!==null)return r;r=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;r=null}else l!==r&&(r=null)}}return Eh=r,null}function F1(r){switch(r){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(Gi()){case at:return 2;case gt:return 8;case Pt:case ne:return 32;case be:return 268435456;default:return 32}default:return 32}}var zg=!1,$a=null,Ua=null,Pa=null,ac=new Map,lc=new Map,Ha=[],BL="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 $1(r,l){switch(r){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":ac.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":lc.delete(l.pointerId)}}function sc(r,l,u,p,b,x){return r===null||r.nativeEvent!==x?(r={blockedOn:l,domEventName:u,eventSystemFlags:p,nativeEvent:x,targetContainers:[b]},l!==null&&(l=kt(l),l!==null&&I1(l)),r):(r.eventSystemFlags|=p,l=r.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),r)}function IL(r,l,u,p,b){switch(l){case"focusin":return $a=sc($a,r,l,u,p,b),!0;case"dragenter":return Ua=sc(Ua,r,l,u,p,b),!0;case"mouseover":return Pa=sc(Pa,r,l,u,p,b),!0;case"pointerover":var x=b.pointerId;return ac.set(x,sc(ac.get(x)||null,r,l,u,p,b)),!0;case"gotpointercapture":return x=b.pointerId,lc.set(x,sc(lc.get(x)||null,r,l,u,p,b)),!0}return!1}function U1(r){var l=dt(r.target);if(l!==null){var u=s(l);if(u!==null){if(l=u.tag,l===13){if(l=o(u),l!==null){r.blockedOn=l,Pr(r.priority,function(){z1(u)});return}}else if(l===31){if(l=c(u),l!==null){r.blockedOn=l,Pr(r.priority,function(){z1(u)});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Th(r){if(r.blockedOn!==null)return!1;for(var l=r.targetContainers;0<l.length;){var u=Bg(r.nativeEvent);if(u===null){u=r.nativeEvent;var p=new u.constructor(u.type,u);Bt=p,u.target.dispatchEvent(p),Bt=null}else return l=kt(u),l!==null&&I1(l),r.blockedOn=u,!1;l.shift()}return!0}function P1(r,l,u){Th(r)&&u.delete(l)}function zL(){zg=!1,$a!==null&&Th($a)&&($a=null),Ua!==null&&Th(Ua)&&(Ua=null),Pa!==null&&Th(Pa)&&(Pa=null),ac.forEach(P1),lc.forEach(P1)}function Ah(r,l){r.blockedOn===l&&(r.blockedOn=null,zg||(zg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zL)))}var Mh=null;function H1(r){Mh!==r&&(Mh=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mh===r&&(Mh=null);for(var l=0;l<r.length;l+=3){var u=r[l],p=r[l+1],b=r[l+2];if(typeof p!="function"){if(Ig(p||u)===null)continue;break}var x=kt(u);x!==null&&(r.splice(l,3),l-=3,Bp(x,{pending:!0,data:b,method:u.method,action:p},p,b))}}))}function Ms(r){function l(P){return Ah(P,r)}$a!==null&&Ah($a,r),Ua!==null&&Ah(Ua,r),Pa!==null&&Ah(Pa,r),ac.forEach(l),lc.forEach(l);for(var u=0;u<Ha.length;u++){var p=Ha[u];p.blockedOn===r&&(p.blockedOn=null)}for(;0<Ha.length&&(u=Ha[0],u.blockedOn===null);)U1(u),u.blockedOn===null&&Ha.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var b=u[p],x=u[p+1],k=b[Ve]||null;if(typeof x=="function")k||H1(u);else if(k){var M=null;if(x&&x.hasAttribute("formAction")){if(b=x,k=x[Ve]||null)M=k.formAction;else if(Ig(b)!==null)continue}else M=k.action;typeof M=="function"?u[p+1]=M:(u.splice(p,3),p-=3),H1(u)}}}function q1(){function r(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(k){return b=k})},focusReset:"manual",scroll:"manual"})}function l(){b!==null&&(b(),b=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),b!==null&&(b(),b=null)}}}function Fg(r){this._internalRoot=r}Nh.prototype.render=Fg.prototype.render=function(r){var l=this._internalRoot;if(l===null)throw Error(i(409));var u=l.current,p=$i();D1(u,p,r,l,null,null)},Nh.prototype.unmount=Fg.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var l=r.containerInfo;D1(r.current,2,null,r,null,null),uh(),l[or]=null}};function Nh(r){this._internalRoot=r}Nh.prototype.unstable_scheduleHydration=function(r){if(r){var l=Ur();r={blockedOn:null,target:r,priority:l};for(var u=0;u<Ha.length&&l!==0&&l<Ha[u].priority;u++);Ha.splice(u,0,r),u===0&&U1(r)}};var j1=e.version;if(j1!=="19.2.0")throw Error(i(527,j1,"19.2.0"));U.findDOMNode=function(r){var l=r._reactInternals;if(l===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(l),r=r!==null?d(r):null,r=r===null?null:r.stateNode,r};var FL={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oh.isDisabled&&Oh.supportsFiber)try{on=Oh.inject(FL),qe=Oh}catch{}}return cc.createRoot=function(r,l){if(!a(r))throw Error(i(299));var u=!1,p="",b=Zx,x=Qx,k=Jx;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),l=L1(r,1,!1,null,null,u,p,null,b,x,k,q1),r[or]=l.current,xg(r),new Fg(l)},cc.hydrateRoot=function(r,l,u){if(!a(r))throw Error(i(299));var p=!1,b="",x=Zx,k=Qx,M=Jx,P=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(M=u.onRecoverableError),u.formState!==void 0&&(P=u.formState)),l=L1(r,1,!0,l,u??null,p,b,P,x,k,M,q1),l.context=R1(null),u=l.current,p=$i(),p=xe(p),b=Ta(p),b.callback=null,Aa(u,b,p),u=p,l.current.lanes=u,Ne(l,u),kr(l),r[or]=l.current,xg(r),new Nh(l)},cc.version="19.2.0",cc}var tv;function KL(){if(tv)return Pg.exports;tv=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(),Pg.exports=XL(),Pg.exports}var ZL=KL();const QL="/api/files",JL=()=>{const[t,e]=zt.useState([]),[n,i]=zt.useState(!0),[a,s]=zt.useState(null);return zt.useEffect(()=>{(async()=>{try{const c=await fetch(QL);if(!c.ok)throw new Error(`API request failed: ${c.status}`);const f=await c.json();e(f.files||[])}catch(c){s(c instanceof Error?c:new Error("Unknown error"))}finally{i(!1)}})()},[]),{files:t,loading:n,error:a}},ev="/api/markdown",Hw=t=>{const[e,n]=zt.useState(null),[i,a]=zt.useState(null),[s,o]=zt.useState(!0),[c,f]=zt.useState(null),[h,d]=zt.useState(0),g=zt.useCallback(()=>{d(y=>y+1)},[]);return zt.useEffect(()=>{(async()=>{if(t===null){o(!1);return}o(!0),f(null);try{const m=t===void 0?ev:`${ev}/${t}`,_=await fetch(m);if(!_.ok)throw new Error(`API request failed: ${_.status}`);const v=await _.json();n(v.content),a(v.filename)}catch(m){f(m instanceof Error?m:new Error("Unknown error")),n(null),a(null)}finally{o(!1)}})()},[t,h]),{content:e,filename:i,loading:s,error:c,reload:g}};function tR(t,e){const[n,i]=zt.useState(()=>{try{const a=window.localStorage.getItem(t);if(!a)return e;const s=JSON.parse(a);return typeof s!="object"||s===null?(console.warn(`Invalid localStorage data for key: ${t}, resetting`),e):s}catch(a){return console.error("Error reading localStorage:",a),e}});return zt.useEffect(()=>{try{window.localStorage.setItem(t,JSON.stringify(n))}catch(a){console.error("Error writing to localStorage:",a)}},[t,n]),[n,i]}const qw=({initialWidth:t,minWidth:e,maxWidth:n,storageKey:i,direction:a="left",collapsible:s=!1,collapseThreshold:o=100})=>{const[c,f]=zt.useState(()=>{if(i){const S=localStorage.getItem(i);if(S){const T=parseInt(S,10);if(!isNaN(T)&&T>=e&&T<=n)return T}}return t}),[h,d]=zt.useState(!1),[g,y]=zt.useState(!1),m=zt.useRef(0),_=zt.useRef(0),v=zt.useCallback(S=>{S.preventDefault(),y(!0),m.current=S.clientX,_.current=c},[c]);zt.useEffect(()=>{if(!g)return;const S=A=>{const B=A.clientX-m.current,N=a==="right"?-B:B,E=_.current+N;if(s&&E<o)d(!0),f(e);else{d(!1);const R=Math.min(n,Math.max(e,E));f(R)}},T=()=>{y(!1),i&&!h&&localStorage.setItem(i,c.toString())};return document.addEventListener("mousemove",S),document.addEventListener("mouseup",T),()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",T)}},[g,n,e,i,c,a,s,o,h]);const C=zt.useCallback(()=>{d(S=>!S)},[]);return{width:c,isResizing:g,isCollapsed:h,handleMouseDown:v,toggleCollapse:C}},jw=(t,e)=>{zt.useEffect(()=>{const n=new EventSource("/api/watch");return n.onmessage=i=>{try{const a=JSON.parse(i.data);a.type==="file-changed"&&a.path?t(a.path):a.type==="file-added"&&a.path}catch(a){console.error("[FileWatch] Error parsing message:",a)}},n.onerror=i=>{console.error("[FileWatch] Connection error:",i)},()=>{n.close()}},[t,e])},Gw=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Gg=t=>t==="system"?Gw():t,Wy=()=>{const[t,e]=zt.useState(()=>localStorage.getItem("md-review-theme")||"system");zt.useEffect(()=>{const s=document.documentElement;Gg(t)==="dark"?s.classList.add("dark-mode"):s.classList.remove("dark-mode")},[t]),zt.useEffect(()=>{if(t!=="system")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const c=document.documentElement;Gw()==="dark"?c.classList.add("dark-mode"):c.classList.remove("dark-mode")};return s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[t]);const n=()=>{e(s=>{const c=Gg(s)==="light"?"dark":"light";return localStorage.setItem("md-review-theme",c),c})},i=()=>{localStorage.removeItem("md-review-theme"),e("system")},a=Gg(t);return{theme:t,effectiveTheme:a,toggleTheme:n,resetToSystem:i,isDark:a==="dark",isSystem:t==="system"}},Yw=()=>{const{isDark:t,toggleTheme:e}=Wy();return V.jsx("button",{className:"theme-toggle",onClick:e,title:t?"Switch to light mode":"Switch to dark mode","aria-label":t?"Switch to light mode":"Switch to dark mode",children:t?V.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[V.jsx("circle",{cx:"10",cy:"10",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),V.jsx("path",{d:"M10 2v2M10 16v2M18 10h-2M4 10H2M15.657 4.343l-1.414 1.414M5.757 14.243l-1.414 1.414M15.657 15.657l-1.414-1.414M5.757 5.757L4.343 4.343",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:V.jsx("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})};function eR(t){const e={name:"root",children:new Map,isFile:!1};for(const n of t){const i=n.path.split("/");let a=e;for(let s=0;s<i.length;s++){const o=i[s],c=s===i.length-1;a.children.has(o)||a.children.set(o,{name:o,path:c?n.path:void 0,children:new Map,isFile:c}),a=a.children.get(o)}}return e}function Rm({node:t,selectedFile:e,onFileSelect:n,level:i=0}){const[a,s]=zt.useState(i===0||i===1);if(t.isFile)return V.jsxs("div",{className:`tree-item file ${e===t.path?"selected":""}`,style:{paddingLeft:`${i*12+8}px`},onClick:()=>t.path&&n(t.path),children:[V.jsx("span",{className:"file-icon",children:"📄"}),V.jsx("span",{className:"file-name",children:t.name})]});const o=Array.from(t.children.entries()).sort((c,f)=>!c[1].isFile&&f[1].isFile?-1:c[1].isFile&&!f[1].isFile?1:c[0].localeCompare(f[0]));return t.name==="root"?V.jsx(V.Fragment,{children:o.map(([,c])=>V.jsx(Rm,{node:c,selectedFile:e,onFileSelect:n,level:0},c.path||c.name))}):V.jsxs("div",{children:[V.jsxs("div",{className:"tree-item directory",style:{paddingLeft:`${i*12+8}px`},onClick:()=>s(!a),children:[V.jsx("svg",{className:"chevron-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:a?"rotate(90deg)":"rotate(0deg)"},children:V.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),V.jsx("span",{className:"folder-icon",children:"📁"}),V.jsx("span",{className:"folder-name",children:t.name})]}),a&&V.jsx("div",{className:"tree-children",children:o.map(([,c])=>V.jsx(Rm,{node:c,selectedFile:e,onFileSelect:n,level:i+1},c.path||c.name))})]})}const nR=({files:t,selectedFile:e,onFileSelect:n,onToggleSidebar:i,autoFocusSearch:a})=>{const[s,o]=zt.useState(""),c=zt.useRef(null),f=s?t.filter(d=>d.name.toLowerCase().includes(s.toLowerCase())||d.path.toLowerCase().includes(s.toLowerCase())):t,h=eR(f);return zt.useEffect(()=>{var d;a&&((d=c.current)==null||d.focus())},[a]),zt.useEffect(()=>{const d=g=>{var y;g.metaKey&&g.key==="k"&&(g.preventDefault(),(y=c.current)==null||y.focus())};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[]),V.jsxs("div",{className:"file-tree",children:[V.jsxs("div",{className:"file-tree-header",children:[V.jsxs("div",{className:"file-tree-header-content",children:[V.jsx("h3",{children:"Files"}),V.jsxs("span",{className:"file-count",children:[f.length," of ",t.length," files"]})]}),V.jsxs("div",{className:"file-tree-header-actions",children:[V.jsx(Yw,{}),i&&V.jsx("button",{className:"sidebar-collapse-button",onClick:i,"aria-label":"Collapse sidebar",title:"Collapse sidebar",children:V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:V.jsx("path",{d:"M12 4L6 10L12 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),V.jsx("div",{className:"search-container",children:V.jsxs("div",{className:"search-input-wrapper",children:[V.jsx("span",{className:"search-icon",children:"🔍"}),V.jsx("input",{ref:c,type:"text",className:"search-input",placeholder:"Jump to...",value:s,onChange:d=>o(d.target.value)}),s&&V.jsx("button",{className:"search-clear",onClick:()=>o(""),"aria-label":"Clear search",children:"✕"}),V.jsx("kbd",{className:"search-shortcut",children:"⌘K"})]})}),V.jsx("div",{className:"file-tree-content",children:V.jsx(Rm,{node:h,selectedFile:e,onFileSelect:n})}),V.jsx("div",{className:"file-tree-footer",children:V.jsx("a",{href:"https://github.com/ryo-manba/md-review",target:"_blank",rel:"noopener noreferrer",className:"github-link","aria-label":"View on GitHub",title:"View on GitHub",children:V.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:V.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})})]})};function iR(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const rR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aR=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lR={};function nv(t,e){return(lR.jsx?aR:rR).test(t)}const sR=/[ \t\n\f\r]/g;function oR(t){return typeof t=="object"?t.type==="text"?iv(t.value):!1:iv(t)}function iv(t){return t.replace(sR,"")===""}class lu{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}lu.prototype.normal={};lu.prototype.property={};lu.prototype.space=void 0;function Ww(t,e){const n={},i={};for(const a of t)Object.assign(n,a.property),Object.assign(i,a.normal);return new lu(n,i,e)}function Dm(t){return t.toLowerCase()}class Ni{constructor(e,n){this.attribute=n,this.property=e}}Ni.prototype.attribute="";Ni.prototype.booleanish=!1;Ni.prototype.boolean=!1;Ni.prototype.commaOrSpaceSeparated=!1;Ni.prototype.commaSeparated=!1;Ni.prototype.defined=!1;Ni.prototype.mustUseProperty=!1;Ni.prototype.number=!1;Ni.prototype.overloadedBoolean=!1;Ni.prototype.property="";Ni.prototype.spaceSeparated=!1;Ni.prototype.space=void 0;let cR=0;const se=Hl(),wn=Hl(),Bm=Hl(),xt=Hl(),Ke=Hl(),Us=Hl(),Pi=Hl();function Hl(){return 2**++cR}const Im=Object.freeze(Object.defineProperty({__proto__:null,boolean:se,booleanish:wn,commaOrSpaceSeparated:Pi,commaSeparated:Us,number:xt,overloadedBoolean:Bm,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Yg=Object.keys(Im);class Vy extends Ni{constructor(e,n,i,a){let s=-1;if(super(e,n),rv(this,"space",a),typeof i=="number")for(;++s<Yg.length;){const o=Yg[s];rv(this,Yg[s],(i&Im[o])===Im[o])}}}Vy.prototype.defined=!0;function rv(t,e,n){n&&(t[e]=n)}function oo(t){const e={},n={};for(const[i,a]of Object.entries(t.properties)){const s=new Vy(i,t.transform(t.attributes||{},i),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,n[Dm(i)]=i,n[Dm(s.attribute)]=i}return new lu(e,n,t.space)}const Vw=oo({properties:{ariaActiveDescendant:null,ariaAtomic:wn,ariaAutoComplete:null,ariaBusy:wn,ariaChecked:wn,ariaColCount:xt,ariaColIndex:xt,ariaColSpan:xt,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:wn,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:wn,ariaFlowTo:Ke,ariaGrabbed:wn,ariaHasPopup:null,ariaHidden:wn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:xt,ariaLive:null,ariaModal:wn,ariaMultiLine:wn,ariaMultiSelectable:wn,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:xt,ariaPressed:wn,ariaReadOnly:wn,ariaRelevant:null,ariaRequired:wn,ariaRoleDescription:Ke,ariaRowCount:xt,ariaRowIndex:xt,ariaRowSpan:xt,ariaSelected:wn,ariaSetSize:xt,ariaSort:null,ariaValueMax:xt,ariaValueMin:xt,ariaValueNow:xt,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Xw(t,e){return e in t?t[e]:e}function Kw(t,e){return Xw(t,e.toLowerCase())}const uR=oo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Us,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:Ke,autoFocus:se,autoPlay:se,blocking:Ke,capture:null,charSet:null,checked:se,cite:null,className:Ke,cols:xt,colSpan:null,content:null,contentEditable:wn,controls:se,controlsList:Ke,coords:xt|Us,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:Bm,draggable:wn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:Ke,height:xt,hidden:Bm,high:xt,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:se,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:xt,manifest:null,max:null,maxLength:xt,media:null,method:null,min:null,minLength:xt,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:xt,pattern:null,ping:Ke,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:Ke,required:se,reversed:se,rows:xt,rowSpan:xt,sandbox:Ke,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:xt,sizes:null,slot:null,span:xt,spellCheck:wn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xt,step:null,style:null,tabIndex:xt,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:wn,width:xt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:xt,borderColor:null,bottomMargin:xt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:xt,leftMargin:xt,link:null,longDesc:null,lowSrc:null,marginHeight:xt,marginWidth:xt,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:xt,rules:null,scheme:null,scrolling:wn,standby:null,summary:null,text:null,topMargin:xt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:xt,security:null,unselectable:null},space:"html",transform:Kw}),hR=oo({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:Pi,accentHeight:xt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xt,amplitude:xt,arabicForm:null,ascent:xt,attributeName:null,attributeType:null,azimuth:xt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xt,by:null,calcMode:null,capHeight:xt,className:Ke,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:xt,diffuseConstant:xt,direction:null,display:null,dur:null,divisor:xt,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:xt,enableBackground:null,end:null,event:null,exponent:xt,externalResourcesRequired:null,fill:null,fillOpacity:xt,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:Us,g2:Us,glyphName:Us,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xt,horizOriginX:xt,horizOriginY:xt,id:null,ideographic:xt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xt,k:xt,k1:xt,k2:xt,k3:xt,k4:xt,kernelMatrix:Pi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xt,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:xt,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:xt,overlineThickness:xt,paintOrder:null,panose1:null,path:null,pathLength:xt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xt,pointsAtY:xt,pointsAtZ:xt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pi,rev:Pi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pi,requiredFeatures:Pi,requiredFonts:Pi,requiredFormats:Pi,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:xt,specularExponent:xt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xt,strikethroughThickness:xt,string:null,stroke:null,strokeDashArray:Pi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xt,strokeOpacity:xt,strokeWidth:null,style:null,surfaceScale:xt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pi,tabIndex:xt,tableValues:null,target:null,targetX:xt,targetY:xt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:xt,underlineThickness:xt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xt,values:null,vAlphabetic:xt,vMathematical:xt,vectorEffect:null,vHanging:xt,vIdeographic:xt,version:null,vertAdvY:xt,vertOriginX:xt,vertOriginY:xt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xw}),Zw=oo({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()}}),Qw=oo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Kw}),Jw=oo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),fR={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"},dR=/[A-Z]/g,av=/-[a-z]/g,pR=/^data[-\w.:]+$/i;function gR(t,e){const n=Dm(e);let i=e,a=Ni;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pR.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(av,yR);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!av.test(s)){let o=s.replace(dR,mR);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}a=Vy}return new a(i,e)}function mR(t){return"-"+t.toLowerCase()}function yR(t){return t.charAt(1).toUpperCase()}const bR=Ww([Vw,uR,Zw,Qw,Jw],"html"),Xy=Ww([Vw,hR,Zw,Qw,Jw],"svg");function xR(t){return t.join(" ").trim()}var Ns={},Wg,lv;function _R(){if(lv)return Wg;lv=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,f=`
51
+ `,h="/",d="*",g="",y="comment",m="declaration";function _(C,S){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];S=S||{};var T=1,A=1;function B(H){var F=H.match(e);F&&(T+=F.length);var L=H.lastIndexOf(f);A=~L?H.length-L:A+H.length}function N(){var H={line:T,column:A};return function(F){return F.position=new E(H),Z(),F}}function E(H){this.start=H,this.end={line:T,column:A},this.source=S.source}E.prototype.content=C;function R(H){var F=new Error(S.source+":"+T+":"+A+": "+H);if(F.reason=H,F.filename=S.source,F.line=T,F.column=A,F.source=C,!S.silent)throw F}function G(H){var F=H.exec(C);if(F){var L=F[0];return B(L),C=C.slice(L.length),F}}function Z(){G(n)}function z(H){var F;for(H=H||[];F=j();)F!==!1&&H.push(F);return H}function j(){var H=N();if(!(h!=C.charAt(0)||d!=C.charAt(1))){for(var F=2;g!=C.charAt(F)&&(d!=C.charAt(F)||h!=C.charAt(F+1));)++F;if(F+=2,g===C.charAt(F-1))return R("End of comment missing");var L=C.slice(2,F-2);return A+=2,B(L),C=C.slice(F),A+=2,H({type:y,comment:L})}}function tt(){var H=N(),F=G(i);if(F){if(j(),!G(a))return R("property missing ':'");var L=G(s),U=H({type:m,property:v(F[0].replace(t,g)),value:L?v(L[0].replace(t,g)):g});return G(o),U}}function it(){var H=[];z(H);for(var F;F=tt();)F!==!1&&(H.push(F),z(H));return H}return Z(),it()}function v(C){return C?C.replace(c,g):g}return Wg=_,Wg}var sv;function vR(){if(sv)return Ns;sv=1;var t=Ns&&Ns.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=n;const e=t(_R());function n(i,a){let s=null;if(!i||typeof i!="string")return s;const o=(0,e.default)(i),c=typeof a=="function";return o.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:d}=f;c?a(h,d,f):d&&(s=s||{},s[h]=d)}),s}return Ns}var uc={},ov;function SR(){if(ov)return uc;ov=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(h){return!h||n.test(h)||t.test(h)},o=function(h,d){return d.toUpperCase()},c=function(h,d){return"".concat(d,"-")},f=function(h,d){return d===void 0&&(d={}),s(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(a,c):h=h.replace(i,c),h.replace(e,o))};return uc.camelCase=f,uc}var hc,cv;function wR(){if(cv)return hc;cv=1;var t=hc&&hc.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},e=t(vR()),n=SR();function i(a,s){var o={};return!a||typeof a!="string"||(0,e.default)(a,function(c,f){c&&f&&(o[(0,n.camelCase)(c,s)]=f)}),o}return i.default=i,hc=i,hc}var CR=wR();const kR=ad(CR),t2=e2("end"),Ky=e2("start");function e2(t){return e;function e(n){const i=n&&n.position&&n.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 ER(t){const e=Ky(t),n=t2(t);if(e&&n)return{start:e,end:n}}function Ic(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?uv(t.position):"start"in t||"end"in t?uv(t):"line"in t||"column"in t?zm(t):""}function zm(t){return hv(t&&t.line)+":"+hv(t&&t.column)}function uv(t){return zm(t&&t.start)+"-"+zm(t&&t.end)}function hv(t){return t&&typeof t=="number"?t:1}class ti extends Error{constructor(e,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?a=e:!s.cause&&e&&(o=!0,a=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?s.ruleId=i:(s.source=i.slice(0,f),s.ruleId=i.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.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=a,this.line=c?c.line:void 0,this.name=Ic(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}}ti.prototype.file="";ti.prototype.name="";ti.prototype.reason="";ti.prototype.message="";ti.prototype.stack="";ti.prototype.column=void 0;ti.prototype.line=void 0;ti.prototype.ancestors=void 0;ti.prototype.cause=void 0;ti.prototype.fatal=void 0;ti.prototype.place=void 0;ti.prototype.ruleId=void 0;ti.prototype.source=void 0;const Zy={}.hasOwnProperty,TR=new Map,AR=/[A-Z]/g,MR=new Set(["table","tbody","thead","tfoot","tr"]),NR=new Set(["td","th"]),n2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function OR(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=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=$R(n,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=FR(n,e.jsx,e.jsxs)}const a={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Xy:bR,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=i2(a,t,void 0);return s&&typeof s!="string"?s:a.create(t,a.Fragment,{children:s||void 0},void 0)}function i2(t,e,n){if(e.type==="element")return LR(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return RR(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return BR(t,e,n);if(e.type==="mdxjsEsm")return DR(t,e);if(e.type==="root")return IR(t,e,n);if(e.type==="text")return zR(t,e)}function LR(t,e,n){const i=t.schema;let a=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Xy,t.schema=a),t.ancestors.push(e);const s=a2(t,e.tagName,!1),o=UR(t,e);let c=Jy(t,e);return MR.has(e.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!oR(f):!0})),r2(t,o,s,e),Qy(o,c),t.ancestors.pop(),t.schema=i,t.create(e,s,o,n)}function RR(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)}Gc(t,e.position)}function DR(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Gc(t,e.position)}function BR(t,e,n){const i=t.schema;let a=i;e.name==="svg"&&i.space==="html"&&(a=Xy,t.schema=a),t.ancestors.push(e);const s=e.name===null?t.Fragment:a2(t,e.name,!0),o=PR(t,e),c=Jy(t,e);return r2(t,o,s,e),Qy(o,c),t.ancestors.pop(),t.schema=i,t.create(e,s,o,n)}function IR(t,e,n){const i={};return Qy(i,Jy(t,e)),t.create(e,t.Fragment,i,n)}function zR(t,e){return e.value}function r2(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Qy(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function FR(t,e,n){return i;function i(a,s,o,c){const h=Array.isArray(o.children)?n:e;return c?h(s,o,c):h(s,o)}}function $R(t,e){return n;function n(i,a,s,o){const c=Array.isArray(s.children),f=Ky(i);return e(a,s,o,c,{columnNumber:f?f.column-1:void 0,fileName:t,lineNumber:f?f.line:void 0},void 0)}}function UR(t,e){const n={};let i,a;for(a in e.properties)if(a!=="children"&&Zy.call(e.properties,a)){const s=HR(t,a,e.properties[a]);if(s){const[o,c]=s;t.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&NR.has(e.tagName)?i=c:n[o]=c}}if(i){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function PR(t,e){const n={};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(n,t.evaluater.evaluateExpression(c.argument))}else Gc(t,e.position);else{const a=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 Gc(t,e.position);else s=i.value===null?!0:i.value;n[a]=s}return n}function Jy(t,e){const n=[];let i=-1;const a=t.passKeys?new Map:TR;for(;++i<e.children.length;){const s=e.children[i];let o;if(t.passKeys){const f=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(f){const h=a.get(f)||0;o=f+"-"+h,a.set(f,h+1)}}const c=i2(t,s,o);c!==void 0&&n.push(c)}return n}function HR(t,e,n){const i=gR(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?iR(n):xR(n)),i.property==="style"){let a=typeof n=="object"?n:qR(t,String(n));return t.stylePropertyNameCase==="css"&&(a=jR(a)),["style",a]}return[t.elementAttributeNameCase==="react"&&i.space?fR[i.property]||i.property:i.attribute,n]}}function qR(t,e){try{return kR(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const i=n,a=new ti("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=n2+"#cannot-parse-style-attribute",a}}function a2(t,e,n){let i;if(!n)i={type:"Literal",value:e};else if(e.includes(".")){const a=e.split(".");let s=-1,o;for(;++s<a.length;){const c=nv(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}i=o}else i=nv(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const a=i.value;return Zy.call(t.components,a)?t.components[a]:a}if(t.evaluater)return t.evaluater.evaluateExpression(i);Gc(t)}function Gc(t,e){const n=new ti("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=n2+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jR(t){const e={};let n;for(n in t)Zy.call(t,n)&&(e[GR(n)]=t[n]);return e}function GR(t){let e=t.replace(AR,YR);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function YR(t){return"-"+t.toLowerCase()}const Vg={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"]},WR={};function tb(t,e){const n=WR,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return l2(t,i,a)}function l2(t,e,n){if(VR(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return fv(t.children,e,n)}return Array.isArray(t)?fv(t,e,n):""}function fv(t,e,n){const i=[];let a=-1;for(;++a<t.length;)i[a]=l2(t[a],e,n);return i.join("")}function VR(t){return!!(t&&typeof t=="object")}const dv=document.createElement("i");function eb(t){const e="&"+t+";";dv.innerHTML=e;const n=dv.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Hi(t,e,n,i){const a=t.length;let s=0,o;if(e<0?e=-e>a?0:a+e:e=e>a?a:e,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function ir(t,e){return t.length>0?(Hi(t,t.length,0,e),t):e}const pv={}.hasOwnProperty;function s2(t){const e={};let n=-1;for(;++n<t.length;)XR(e,t[n]);return e}function XR(t,e){let n;for(n in e){const a=(pv.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){pv.call(a,o)||(a[o]=[]);const c=s[o];KR(a[o],Array.isArray(c)?c:c?[c]:[])}}}function KR(t,e){let n=-1;const i=[];for(;++n<e.length;)(e[n].add==="after"?t:i).push(e[n]);Hi(t,0,0,i)}function o2(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const si=Ja(/[A-Za-z]/),Kn=Ja(/[\dA-Za-z]/),ZR=Ja(/[#-'*+\--9=?A-Z^-~]/);function yf(t){return t!==null&&(t<32||t===127)}const Fm=Ja(/\d/),QR=Ja(/[\dA-Fa-f]/),JR=Ja(/[!-/:-@[-`{-~]/);function Wt(t){return t!==null&&t<-2}function Ye(t){return t!==null&&(t<0||t===32)}function fe(t){return t===-2||t===-1||t===32}const ld=Ja(new RegExp("\\p{P}|\\p{S}","u")),Dl=Ja(/\s/);function Ja(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function co(t){const e=[];let n=-1,i=0,a=0;for(;++n<t.length;){const s=t.charCodeAt(n);let o="";if(s===37&&Kn(t.charCodeAt(n+1))&&Kn(t.charCodeAt(n+2)))a=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(n+1);s<56320&&c>56319&&c<57344?(o=String.fromCharCode(s,c),a=1):o="�"}else o=String.fromCharCode(s);o&&(e.push(t.slice(i,n),encodeURIComponent(o)),i=n+a+1,o=""),a&&(n+=a,a=0)}return e.join("")+t.slice(i)}function we(t,e,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(f){return fe(f)?(t.enter(n),c(f)):e(f)}function c(f){return fe(f)&&s++<a?(t.consume(f),c):(t.exit(n),e(f))}}const tD={tokenize:eD};function eD(t){const e=t.attempt(this.parser.constructs.contentInitial,i,a);let n;return e;function i(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),we(t,e,"linePrefix")}function a(c){return t.enter("paragraph"),s(c)}function s(c){const f=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,o(c)}function o(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return Wt(c)?(t.consume(c),t.exit("chunkText"),s):(t.consume(c),o)}}const nD={tokenize:iD},gv={tokenize:rD};function iD(t){const e=this,n=[];let i=0,a,s,o;return c;function c(A){if(i<n.length){const B=n[i];return e.containerState=B[1],t.attempt(B[0].continuation,f,h)(A)}return h(A)}function f(A){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,a&&T();const B=e.events.length;let N=B,E;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){E=e.events[N][1].end;break}S(i);let R=B;for(;R<e.events.length;)e.events[R][1].end={...E},R++;return Hi(e.events,N+1,0,e.events.slice(B)),e.events.length=R,h(A)}return c(A)}function h(A){if(i===n.length){if(!a)return y(A);if(a.currentConstruct&&a.currentConstruct.concrete)return _(A);e.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(gv,d,g)(A)}function d(A){return a&&T(),S(i),y(A)}function g(A){return e.parser.lazy[e.now().line]=i!==n.length,o=e.now().offset,_(A)}function y(A){return e.containerState={},t.attempt(gv,m,_)(A)}function m(A){return i++,n.push([e.currentConstruct,e.containerState]),y(A)}function _(A){if(A===null){a&&T(),S(0),t.consume(A);return}return a=a||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),v(A)}function v(A){if(A===null){C(t.exit("chunkFlow"),!0),S(0),t.consume(A);return}return Wt(A)?(t.consume(A),C(t.exit("chunkFlow")),i=0,e.interrupt=void 0,c):(t.consume(A),v)}function C(A,B){const N=e.sliceStream(A);if(B&&N.push(null),A.previous=s,s&&(s.next=A),s=A,a.defineSkip(A.start),a.write(N),e.parser.lazy[A.start.line]){let E=a.events.length;for(;E--;)if(a.events[E][1].start.offset<o&&(!a.events[E][1].end||a.events[E][1].end.offset>o))return;const R=e.events.length;let G=R,Z,z;for(;G--;)if(e.events[G][0]==="exit"&&e.events[G][1].type==="chunkFlow"){if(Z){z=e.events[G][1].end;break}Z=!0}for(S(i),E=R;E<e.events.length;)e.events[E][1].end={...z},E++;Hi(e.events,G+1,0,e.events.slice(R)),e.events.length=E}}function S(A){let B=n.length;for(;B-- >A;){const N=n[B];e.containerState=N[1],N[0].exit.call(e,t)}n.length=A}function T(){a.write([null]),s=void 0,a=void 0,e.containerState._closeFlow=void 0}}function rD(t,e,n){return we(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qs(t){if(t===null||Ye(t)||Dl(t))return 1;if(ld(t))return 2}function sd(t,e,n){const i=[];let a=-1;for(;++a<t.length;){const s=t[a].resolveAll;s&&!i.includes(s)&&(e=s(e,n),i.push(s))}return e}const $m={name:"attention",resolveAll:aD,tokenize:lD};function aD(t,e){let n=-1,i,a,s,o,c,f,h,d;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(i=n;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[n][1]).charCodeAt(0)){if((t[i][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;f=t[i][1].end.offset-t[i][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const g={...t[i][1].end},y={...t[n][1].start};mv(g,-f),mv(y,f),o={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...t[i][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:y},s={type:f>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[n][1].start}},a={type:f>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},t[i][1].end={...o.start},t[n][1].start={...c.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=ir(h,[["enter",t[i][1],e],["exit",t[i][1],e]])),h=ir(h,[["enter",a,e],["enter",o,e],["exit",o,e],["enter",s,e]]),h=ir(h,sd(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),h=ir(h,[["exit",s,e],["enter",c,e],["exit",c,e],["exit",a,e]]),t[n][1].end.offset-t[n][1].start.offset?(d=2,h=ir(h,[["enter",t[n][1],e],["exit",t[n][1],e]])):d=0,Hi(t,i-1,n-i+3,h),n=i+h.length-d-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function lD(t,e){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Qs(i);let s;return o;function o(f){return s=f,t.enter("attentionSequence"),c(f)}function c(f){if(f===s)return t.consume(f),c;const h=t.exit("attentionSequence"),d=Qs(f),g=!d||d===2&&a||n.includes(f),y=!a||a===2&&d||n.includes(i);return h._open=!!(s===42?g:g&&(a||!y)),h._close=!!(s===42?y:y&&(d||!g)),e(f)}}function mv(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const sD={name:"autolink",tokenize:oD};function oD(t,e,n){let i=0;return a;function a(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(m){return si(m)?(t.consume(m),o):m===64?n(m):h(m)}function o(m){return m===43||m===45||m===46||Kn(m)?(i=1,c(m)):h(m)}function c(m){return m===58?(t.consume(m),i=0,f):(m===43||m===45||m===46||Kn(m))&&i++<32?(t.consume(m),c):(i=0,h(m))}function f(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||yf(m)?n(m):(t.consume(m),f)}function h(m){return m===64?(t.consume(m),d):ZR(m)?(t.consume(m),h):n(m)}function d(m){return Kn(m)?g(m):n(m)}function g(m){return m===46?(t.consume(m),i=0,d):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):y(m)}function y(m){if((m===45||Kn(m))&&i++<63){const _=m===45?y:g;return t.consume(m),_}return n(m)}}const su={partial:!0,tokenize:cD};function cD(t,e,n){return i;function i(s){return fe(s)?we(t,a,"linePrefix")(s):a(s)}function a(s){return s===null||Wt(s)?e(s):n(s)}}const c2={continuation:{tokenize:hD},exit:fD,name:"blockQuote",tokenize:uD};function uD(t,e,n){const i=this;return a;function a(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 n(o)}function s(o){return fe(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function hD(t,e,n){const i=this;return a;function a(o){return fe(o)?we(t,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(c2,e,n)(o)}}function fD(t){t.exit("blockQuote")}const u2={name:"characterEscape",tokenize:dD};function dD(t,e,n){return i;function i(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),a}function a(s){return JR(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const h2={name:"characterReference",tokenize:pD};function pD(t,e,n){const i=this;let a=0,s,o;return c;function c(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),f}function f(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),s=31,o=Kn,d(g))}function h(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=QR,d):(t.enter("characterReferenceValue"),s=7,o=Fm,d(g))}function d(g){if(g===59&&a){const y=t.exit("characterReferenceValue");return o===Kn&&!eb(i.sliceSerialize(y))?n(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(g)&&a++<s?(t.consume(g),d):n(g)}}const yv={partial:!0,tokenize:mD},bv={concrete:!0,name:"codeFenced",tokenize:gD};function gD(t,e,n){const i=this,a={partial:!0,tokenize:N};let s=0,o=0,c;return f;function f(E){return h(E)}function h(E){const R=i.events[i.events.length-1];return s=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,c=E,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(E)}function d(E){return E===c?(o++,t.consume(E),d):o<3?n(E):(t.exit("codeFencedFenceSequence"),fe(E)?we(t,g,"whitespace")(E):g(E))}function g(E){return E===null||Wt(E)?(t.exit("codeFencedFence"),i.interrupt?e(E):t.check(yv,v,B)(E)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===null||Wt(E)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(E)):fe(E)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),we(t,m,"whitespace")(E)):E===96&&E===c?n(E):(t.consume(E),y)}function m(E){return E===null||Wt(E)?g(E):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),_(E))}function _(E){return E===null||Wt(E)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(E)):E===96&&E===c?n(E):(t.consume(E),_)}function v(E){return t.attempt(a,B,C)(E)}function C(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),S}function S(E){return s>0&&fe(E)?we(t,T,"linePrefix",s+1)(E):T(E)}function T(E){return E===null||Wt(E)?t.check(yv,v,B)(E):(t.enter("codeFlowValue"),A(E))}function A(E){return E===null||Wt(E)?(t.exit("codeFlowValue"),T(E)):(t.consume(E),A)}function B(E){return t.exit("codeFenced"),e(E)}function N(E,R,G){let Z=0;return z;function z(F){return E.enter("lineEnding"),E.consume(F),E.exit("lineEnding"),j}function j(F){return E.enter("codeFencedFence"),fe(F)?we(E,tt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):tt(F)}function tt(F){return F===c?(E.enter("codeFencedFenceSequence"),it(F)):G(F)}function it(F){return F===c?(Z++,E.consume(F),it):Z>=o?(E.exit("codeFencedFenceSequence"),fe(F)?we(E,H,"whitespace")(F):H(F)):G(F)}function H(F){return F===null||Wt(F)?(E.exit("codeFencedFence"),R(F)):G(F)}}}function mD(t,e,n){const i=this;return a;function a(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):e(o)}}const Xg={name:"codeIndented",tokenize:bD},yD={partial:!0,tokenize:xD};function bD(t,e,n){const i=this;return a;function a(h){return t.enter("codeIndented"),we(t,s,"linePrefix",5)(h)}function s(h){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(h):n(h)}function o(h){return h===null?f(h):Wt(h)?t.attempt(yD,o,f)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||Wt(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),c)}function f(h){return t.exit("codeIndented"),e(h)}}function xD(t,e,n){const i=this;return a;function a(o){return i.parser.lazy[i.now().line]?n(o):Wt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a):we(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):Wt(o)?a(o):n(o)}}const _D={name:"codeText",previous:SD,resolve:vD,tokenize:wD};function vD(t){let e=t.length-4,n=3,i,a;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=n;++i<e;)if(t[i][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(i=n-1,e++;++i<=e;)a===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(a=i):(i===e||t[i][1].type==="lineEnding")&&(t[a][1].type="codeTextData",i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),e-=i-a-2,i=a+2),a=void 0);return t}function SD(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wD(t,e,n){let i=0,a,s;return o;function o(g){return t.enter("codeText"),t.enter("codeTextSequence"),c(g)}function c(g){return g===96?(t.consume(g),i++,c):(t.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),f):g===96?(s=t.enter("codeTextSequence"),a=0,d(g)):Wt(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),f):(t.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Wt(g)?(t.exit("codeTextData"),f(g)):(t.consume(g),h)}function d(g){return g===96?(t.consume(g),a++,d):a===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(g)):(s.type="codeTextData",h(g))}}class CD{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,n){const i=n??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,n,i){const a=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&fc(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),fc(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),fc(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 n=this.left.splice(e,Number.POSITIVE_INFINITY);fc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);fc(this.left,n.reverse())}}}function fc(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function f2(t){const e={};let n=-1,i,a,s,o,c,f,h;const d=new CD(t);for(;++n<d.length;){for(;n in e;)n=e[n];if(i=d.get(n),n&&i[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,s=0,s<f.length&&f[s][1].type==="lineEndingBlank"&&(s+=2),s<f.length&&f[s][1].type==="content"))for(;++s<f.length&&f[s][1].type!=="content";)f[s][1].type==="chunkText"&&(f[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(e,kD(d,n)),n=e[n],h=!0);else if(i[1]._container){for(s=n,a=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(i[1].end={...d.get(a)[1].start},c=d.slice(a,n),c.unshift(i),d.splice(a,n-a+1,c))}}return Hi(t,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function kD(t,e){const n=t.get(e)[1],i=t.get(e)[2];let a=e-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,f=[],h={};let d,g,y=-1,m=n,_=0,v=0;const C=[v];for(;m;){for(;t.get(++a)[1]!==m;);s.push(a),m._tokenizer||(d=i.sliceStream(m),m.next||d.push(null),g&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),g=m,m=m.next}for(m=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(v=y+1,C.push(v),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):C.pop(),y=C.length;y--;){const S=c.slice(C[y],C[y+1]),T=s.pop();f.push([T,T+S.length-1]),t.splice(T,2,S)}for(f.reverse(),y=-1;++y<f.length;)h[_+f[y][0]]=_+f[y][1],_+=f[y][1]-f[y][0]-1;return h}const ED={resolve:AD,tokenize:MD},TD={partial:!0,tokenize:ND};function AD(t){return f2(t),t}function MD(t,e){let n;return i;function i(c){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?s(c):Wt(c)?t.check(TD,o,s)(c):(t.consume(c),a)}function s(c){return t.exit("chunkContent"),t.exit("content"),e(c)}function o(c){return t.consume(c),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function ND(t,e,n){const i=this;return a;function a(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),we(t,s,"linePrefix")}function s(o){if(o===null||Wt(o))return n(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,n,e)(o)}}function d2(t,e,n,i,a,s,o,c,f){const h=f||Number.POSITIVE_INFINITY;let d=0;return g;function g(S){return S===60?(t.enter(i),t.enter(a),t.enter(s),t.consume(S),t.exit(s),y):S===null||S===32||S===41||yf(S)?n(S):(t.enter(i),t.enter(o),t.enter(c),t.enter("chunkString",{contentType:"string"}),v(S))}function y(S){return S===62?(t.enter(s),t.consume(S),t.exit(s),t.exit(a),t.exit(i),e):(t.enter(c),t.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===62?(t.exit("chunkString"),t.exit(c),y(S)):S===null||S===60||Wt(S)?n(S):(t.consume(S),S===92?_:m)}function _(S){return S===60||S===62||S===92?(t.consume(S),m):m(S)}function v(S){return!d&&(S===null||S===41||Ye(S))?(t.exit("chunkString"),t.exit(c),t.exit(o),t.exit(i),e(S)):d<h&&S===40?(t.consume(S),d++,v):S===41?(t.consume(S),d--,v):S===null||S===32||S===40||yf(S)?n(S):(t.consume(S),S===92?C:v)}function C(S){return S===40||S===41||S===92?(t.consume(S),v):v(S)}}function p2(t,e,n,i,a,s){const o=this;let c=0,f;return h;function h(m){return t.enter(i),t.enter(a),t.consume(m),t.exit(a),t.enter(s),d}function d(m){return c>999||m===null||m===91||m===93&&!f||m===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(t.exit(s),t.enter(a),t.consume(m),t.exit(a),t.exit(i),e):Wt(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),g(m))}function g(m){return m===null||m===91||m===93||Wt(m)||c++>999?(t.exit("chunkString"),d(m)):(t.consume(m),f||(f=!fe(m)),m===92?y:g)}function y(m){return m===91||m===92||m===93?(t.consume(m),c++,g):g(m)}}function g2(t,e,n,i,a,s){let o;return c;function c(y){return y===34||y===39||y===40?(t.enter(i),t.enter(a),t.consume(y),t.exit(a),o=y===40?41:y,f):n(y)}function f(y){return y===o?(t.enter(a),t.consume(y),t.exit(a),t.exit(i),e):(t.enter(s),h(y))}function h(y){return y===o?(t.exit(s),f(o)):y===null?n(y):Wt(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),we(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===o||y===null||Wt(y)?(t.exit("chunkString"),h(y)):(t.consume(y),y===92?g:d)}function g(y){return y===o||y===92?(t.consume(y),d):d(y)}}function zc(t,e){let n;return i;function i(a){return Wt(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n=!0,i):fe(a)?we(t,i,n?"linePrefix":"lineSuffix")(a):e(a)}}const OD={name:"definition",tokenize:RD},LD={partial:!0,tokenize:DD};function RD(t,e,n){const i=this;let a;return s;function s(m){return t.enter("definition"),o(m)}function o(m){return p2.call(i,t,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function c(m){return a=yr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),f):n(m)}function f(m){return Ye(m)?zc(t,h)(m):h(m)}function h(m){return d2(t,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return t.attempt(LD,g,g)(m)}function g(m){return fe(m)?we(t,y,"whitespace")(m):y(m)}function y(m){return m===null||Wt(m)?(t.exit("definition"),i.parser.defined.push(a),e(m)):n(m)}}function DD(t,e,n){return i;function i(c){return Ye(c)?zc(t,a)(c):n(c)}function a(c){return g2(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return fe(c)?we(t,o,"whitespace")(c):o(c)}function o(c){return c===null||Wt(c)?e(c):n(c)}}const BD={name:"hardBreakEscape",tokenize:ID};function ID(t,e,n){return i;function i(s){return t.enter("hardBreakEscape"),t.consume(s),a}function a(s){return Wt(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const zD={name:"headingAtx",resolve:FD,tokenize:$D};function FD(t,e){let n=t.length-2,i=3,a,s;return t[i][1].type==="whitespace"&&(i+=2),n-2>i&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&t[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:t[i][1].start,end:t[n][1].end},s={type:"chunkText",start:t[i][1].start,end:t[n][1].end,contentType:"text"},Hi(t,i,n-i+1,[["enter",a,e],["enter",s,e],["exit",s,e],["exit",a,e]])),t}function $D(t,e,n){let i=0;return a;function a(d){return t.enter("atxHeading"),s(d)}function s(d){return t.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&i++<6?(t.consume(d),o):d===null||Ye(d)?(t.exit("atxHeadingSequence"),c(d)):n(d)}function c(d){return d===35?(t.enter("atxHeadingSequence"),f(d)):d===null||Wt(d)?(t.exit("atxHeading"),e(d)):fe(d)?we(t,c,"whitespace")(d):(t.enter("atxHeadingText"),h(d))}function f(d){return d===35?(t.consume(d),f):(t.exit("atxHeadingSequence"),c(d))}function h(d){return d===null||d===35||Ye(d)?(t.exit("atxHeadingText"),c(d)):(t.consume(d),h)}}const UD=["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"],xv=["pre","script","style","textarea"],PD={concrete:!0,name:"htmlFlow",resolveTo:jD,tokenize:GD},HD={partial:!0,tokenize:WD},qD={partial:!0,tokenize:YD};function jD(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 GD(t,e,n){const i=this;let a,s,o,c,f;return h;function h(O){return d(O)}function d(O){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(O),g}function g(O){return O===33?(t.consume(O),y):O===47?(t.consume(O),s=!0,v):O===63?(t.consume(O),a=3,i.interrupt?e:D):si(O)?(t.consume(O),o=String.fromCharCode(O),C):n(O)}function y(O){return O===45?(t.consume(O),a=2,m):O===91?(t.consume(O),a=5,c=0,_):si(O)?(t.consume(O),a=4,i.interrupt?e:D):n(O)}function m(O){return O===45?(t.consume(O),i.interrupt?e:D):n(O)}function _(O){const ft="CDATA[";return O===ft.charCodeAt(c++)?(t.consume(O),c===ft.length?i.interrupt?e:tt:_):n(O)}function v(O){return si(O)?(t.consume(O),o=String.fromCharCode(O),C):n(O)}function C(O){if(O===null||O===47||O===62||Ye(O)){const ft=O===47,bt=o.toLowerCase();return!ft&&!s&&xv.includes(bt)?(a=1,i.interrupt?e(O):tt(O)):UD.includes(o.toLowerCase())?(a=6,ft?(t.consume(O),S):i.interrupt?e(O):tt(O)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):s?T(O):A(O))}return O===45||Kn(O)?(t.consume(O),o+=String.fromCharCode(O),C):n(O)}function S(O){return O===62?(t.consume(O),i.interrupt?e:tt):n(O)}function T(O){return fe(O)?(t.consume(O),T):z(O)}function A(O){return O===47?(t.consume(O),z):O===58||O===95||si(O)?(t.consume(O),B):fe(O)?(t.consume(O),A):z(O)}function B(O){return O===45||O===46||O===58||O===95||Kn(O)?(t.consume(O),B):N(O)}function N(O){return O===61?(t.consume(O),E):fe(O)?(t.consume(O),N):A(O)}function E(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(t.consume(O),f=O,R):fe(O)?(t.consume(O),E):G(O)}function R(O){return O===f?(t.consume(O),f=null,Z):O===null||Wt(O)?n(O):(t.consume(O),R)}function G(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Ye(O)?N(O):(t.consume(O),G)}function Z(O){return O===47||O===62||fe(O)?A(O):n(O)}function z(O){return O===62?(t.consume(O),j):n(O)}function j(O){return O===null||Wt(O)?tt(O):fe(O)?(t.consume(O),j):n(O)}function tt(O){return O===45&&a===2?(t.consume(O),L):O===60&&a===1?(t.consume(O),U):O===62&&a===4?(t.consume(O),I):O===63&&a===3?(t.consume(O),D):O===93&&a===5?(t.consume(O),lt):Wt(O)&&(a===6||a===7)?(t.exit("htmlFlowData"),t.check(HD,K,it)(O)):O===null||Wt(O)?(t.exit("htmlFlowData"),it(O)):(t.consume(O),tt)}function it(O){return t.check(qD,H,K)(O)}function H(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),F}function F(O){return O===null||Wt(O)?it(O):(t.enter("htmlFlowData"),tt(O))}function L(O){return O===45?(t.consume(O),D):tt(O)}function U(O){return O===47?(t.consume(O),o="",$):tt(O)}function $(O){if(O===62){const ft=o.toLowerCase();return xv.includes(ft)?(t.consume(O),I):tt(O)}return si(O)&&o.length<8?(t.consume(O),o+=String.fromCharCode(O),$):tt(O)}function lt(O){return O===93?(t.consume(O),D):tt(O)}function D(O){return O===62?(t.consume(O),I):O===45&&a===2?(t.consume(O),D):tt(O)}function I(O){return O===null||Wt(O)?(t.exit("htmlFlowData"),K(O)):(t.consume(O),I)}function K(O){return t.exit("htmlFlow"),e(O)}}function YD(t,e,n){const i=this;return a;function a(o){return Wt(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):e(o)}}function WD(t,e,n){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),t.attempt(su,e,n)}}const VD={name:"htmlText",tokenize:XD};function XD(t,e,n){const i=this;let a,s,o;return c;function c(D){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(D),f}function f(D){return D===33?(t.consume(D),h):D===47?(t.consume(D),N):D===63?(t.consume(D),A):si(D)?(t.consume(D),G):n(D)}function h(D){return D===45?(t.consume(D),d):D===91?(t.consume(D),s=0,_):si(D)?(t.consume(D),T):n(D)}function d(D){return D===45?(t.consume(D),m):n(D)}function g(D){return D===null?n(D):D===45?(t.consume(D),y):Wt(D)?(o=g,U(D)):(t.consume(D),g)}function y(D){return D===45?(t.consume(D),m):g(D)}function m(D){return D===62?L(D):D===45?y(D):g(D)}function _(D){const I="CDATA[";return D===I.charCodeAt(s++)?(t.consume(D),s===I.length?v:_):n(D)}function v(D){return D===null?n(D):D===93?(t.consume(D),C):Wt(D)?(o=v,U(D)):(t.consume(D),v)}function C(D){return D===93?(t.consume(D),S):v(D)}function S(D){return D===62?L(D):D===93?(t.consume(D),S):v(D)}function T(D){return D===null||D===62?L(D):Wt(D)?(o=T,U(D)):(t.consume(D),T)}function A(D){return D===null?n(D):D===63?(t.consume(D),B):Wt(D)?(o=A,U(D)):(t.consume(D),A)}function B(D){return D===62?L(D):A(D)}function N(D){return si(D)?(t.consume(D),E):n(D)}function E(D){return D===45||Kn(D)?(t.consume(D),E):R(D)}function R(D){return Wt(D)?(o=R,U(D)):fe(D)?(t.consume(D),R):L(D)}function G(D){return D===45||Kn(D)?(t.consume(D),G):D===47||D===62||Ye(D)?Z(D):n(D)}function Z(D){return D===47?(t.consume(D),L):D===58||D===95||si(D)?(t.consume(D),z):Wt(D)?(o=Z,U(D)):fe(D)?(t.consume(D),Z):L(D)}function z(D){return D===45||D===46||D===58||D===95||Kn(D)?(t.consume(D),z):j(D)}function j(D){return D===61?(t.consume(D),tt):Wt(D)?(o=j,U(D)):fe(D)?(t.consume(D),j):Z(D)}function tt(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(t.consume(D),a=D,it):Wt(D)?(o=tt,U(D)):fe(D)?(t.consume(D),tt):(t.consume(D),H)}function it(D){return D===a?(t.consume(D),a=void 0,F):D===null?n(D):Wt(D)?(o=it,U(D)):(t.consume(D),it)}function H(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||Ye(D)?Z(D):(t.consume(D),H)}function F(D){return D===47||D===62||Ye(D)?Z(D):n(D)}function L(D){return D===62?(t.consume(D),t.exit("htmlTextData"),t.exit("htmlText"),e):n(D)}function U(D){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),$}function $(D){return fe(D)?we(t,lt,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):lt(D)}function lt(D){return t.enter("htmlTextData"),o(D)}}const nb={name:"labelEnd",resolveAll:JD,resolveTo:tB,tokenize:eB},KD={tokenize:nB},ZD={tokenize:iB},QD={tokenize:rB};function JD(t){let e=-1;const n=[];for(;++e<t.length;){const i=t[e][1];if(n.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",e+=a}}return t.length!==n.length&&Hi(t,0,t.length,n),t}function tB(t,e){let n=t.length,i=0,a,s,o,c;for(;n--;)if(a=t[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;t[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(o=n);const f={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}},d={type:"labelText",start:{...t[s+i+2][1].end},end:{...t[o-2][1].start}};return c=[["enter",f,e],["enter",h,e]],c=ir(c,t.slice(s+1,s+i+3)),c=ir(c,[["enter",d,e]]),c=ir(c,sd(e.parser.constructs.insideSpan.null,t.slice(s+i+4,o-3),e)),c=ir(c,[["exit",d,e],t[o-2],t[o-1],["exit",h,e]]),c=ir(c,t.slice(o+1)),c=ir(c,[["exit",f,e]]),Hi(t,s,t.length,c),t}function eB(t,e,n){const i=this;let a=i.events.length,s,o;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){s=i.events[a][1];break}return c;function c(y){return s?s._inactive?g(y):(o=i.parser.defined.includes(yr(i.sliceSerialize({start:s.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(y),t.exit("labelMarker"),t.exit("labelEnd"),f):n(y)}function f(y){return y===40?t.attempt(KD,d,o?d:g)(y):y===91?t.attempt(ZD,d,o?h:g)(y):o?d(y):g(y)}function h(y){return t.attempt(QD,d,g)(y)}function d(y){return e(y)}function g(y){return s._balanced=!0,n(y)}}function nB(t,e,n){return i;function i(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),a}function a(g){return Ye(g)?zc(t,s)(g):s(g)}function s(g){return g===41?d(g):d2(t,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function o(g){return Ye(g)?zc(t,f)(g):d(g)}function c(g){return n(g)}function f(g){return g===34||g===39||g===40?g2(t,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):d(g)}function h(g){return Ye(g)?zc(t,d)(g):d(g)}function d(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),e):n(g)}}function iB(t,e,n){const i=this;return a;function a(c){return p2.call(i,t,s,o,"reference","referenceMarker","referenceString")(c)}function s(c){return i.parser.defined.includes(yr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(c):n(c)}function o(c){return n(c)}}function rB(t,e,n){return i;function i(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),a}function a(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const aB={name:"labelStartImage",resolveAll:nb.resolveAll,tokenize:lB};function lB(t,e,n){const i=this;return a;function a(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):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):e(c)}}const sB={name:"labelStartLink",resolveAll:nb.resolveAll,tokenize:oB};function oB(t,e,n){const i=this;return a;function a(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?n(o):e(o)}}const Kg={name:"lineEnding",tokenize:cB};function cB(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),we(t,e,"linePrefix")}}const tf={name:"thematicBreak",tokenize:uB};function uB(t,e,n){let i=0,a;return s;function s(h){return t.enter("thematicBreak"),o(h)}function o(h){return a=h,c(h)}function c(h){return h===a?(t.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Wt(h))?(t.exit("thematicBreak"),e(h)):n(h)}function f(h){return h===a?(t.consume(h),i++,f):(t.exit("thematicBreakSequence"),fe(h)?we(t,c,"whitespace")(h):c(h))}}const Ei={continuation:{tokenize:pB},exit:mB,name:"list",tokenize:dB},hB={partial:!0,tokenize:yB},fB={partial:!0,tokenize:gB};function dB(t,e,n){const i=this,a=i.events[i.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return c;function c(m){const _=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:Fm(m)){if(i.containerState.type||(i.containerState.type=_,t.enter(_,{_container:!0})),_==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(tf,n,h)(m):h(m);if(!i.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(m)}return n(m)}function f(m){return Fm(m)&&++o<10?(t.consume(m),f):(!i.interrupt||o<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),h(m)):n(m)}function h(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,t.check(su,i.interrupt?n:d,t.attempt(hB,y,g))}function d(m){return i.containerState.initialBlankLine=!0,s++,y(m)}function g(m){return fe(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),y):n(m)}function y(m){return i.containerState.size=s+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}function pB(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(su,a,s);function a(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,we(t,e,"listItemIndent",i.containerState.size+1)(c)}function s(c){return i.containerState.furtherBlankLines||!fe(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(fB,e,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,we(t,t.attempt(Ei,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function gB(t,e,n){const i=this;return we(t,a,"listItemIndent",i.containerState.size+1);function a(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):n(s)}}function mB(t){t.exit(this.containerState.type)}function yB(t,e,n){const i=this;return we(t,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const o=i.events[i.events.length-1];return!fe(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const _v={name:"setextUnderline",resolveTo:bB,tokenize:xB};function bB(t,e){let n=t.length,i,a,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){i=n;break}t[n][1].type==="paragraph"&&(a=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[a][1].type="setextHeadingText",s?(t.splice(a,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 xB(t,e,n){const i=this;let a;return s;function s(h){let d=i.events.length,g;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){g=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(t.enter("setextHeadingLine"),a=h,o(h)):n(h)}function o(h){return t.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===a?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),fe(h)?we(t,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Wt(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}const _B={tokenize:vB};function vB(t){const e=this,n=t.attempt(su,i,t.attempt(this.parser.constructs.flowInitial,a,we(t,t.attempt(this.parser.constructs.flow,a,t.attempt(ED,a)),"linePrefix")));return n;function i(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function a(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const SB={resolveAll:y2()},wB=m2("string"),CB=m2("text");function m2(t){return{resolveAll:y2(t==="text"?kB:void 0),tokenize:e};function e(n){const i=this,a=this.parser.constructs[t],s=n.attempt(a,o,c);return o;function o(d){return h(d)?s(d):c(d)}function c(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),f}function f(d){return h(d)?(n.exit("data"),s(d)):(n.consume(d),f)}function h(d){if(d===null)return!0;const g=a[d];let y=-1;if(g)for(;++y<g.length;){const m=g[y];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function y2(t){return e;function e(n,i){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return t?t(n,i):n}}function kB(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const i=t[n-1][1],a=e.sliceStream(i);let s=a.length,o=-1,c=0,f;for(;s--;){const h=a[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)f=!0,c++;else if(h!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(c=0),c){const h={type:n===t.length||f||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(n,0,["enter",h,e],["exit",h,e]),n+=2)}n++}return t}const EB={42:Ei,43:Ei,45:Ei,48:Ei,49:Ei,50:Ei,51:Ei,52:Ei,53:Ei,54:Ei,55:Ei,56:Ei,57:Ei,62:c2},TB={91:OD},AB={[-2]:Xg,[-1]:Xg,32:Xg},MB={35:zD,42:tf,45:[_v,tf],60:PD,61:_v,95:tf,96:bv,126:bv},NB={38:h2,92:u2},OB={[-5]:Kg,[-4]:Kg,[-3]:Kg,33:aB,38:h2,42:$m,60:[sD,VD],91:sB,92:[BD,u2],93:nb,95:$m,96:_D},LB={null:[$m,SB]},RB={null:[42,95]},DB={null:[]},BB=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:RB,contentInitial:TB,disable:DB,document:EB,flow:MB,flowInitial:AB,insideSpan:LB,string:NB,text:OB},Symbol.toStringTag,{value:"Module"}));function IB(t,e,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},s=[];let o=[],c=[];const f={attempt:R(N),check:R(E),consume:T,enter:A,exit:B,interrupt:R(E,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:_,parser:t,previous:null,sliceSerialize:y,sliceStream:m,write:g};let d=e.tokenize.call(h,f);return e.resolveAll&&s.push(e),h;function g(j){return o=ir(o,j),C(),o[o.length-1]!==null?[]:(G(e,0),h.events=sd(s,h.events,h),h.events)}function y(j,tt){return FB(m(j),tt)}function m(j){return zB(o,j)}function _(){const{_bufferIndex:j,_index:tt,line:it,column:H,offset:F}=i;return{_bufferIndex:j,_index:tt,line:it,column:H,offset:F}}function v(j){a[j.line]=j.column,z()}function C(){let j;for(;i._index<o.length;){const tt=o[i._index];if(typeof tt=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<tt.length;)S(tt.charCodeAt(i._bufferIndex));else S(tt)}}function S(j){d=d(j)}function T(j){Wt(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,z()):j!==-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=j}function A(j,tt){const it=tt||{};return it.type=j,it.start=_(),h.events.push(["enter",it,h]),c.push(it),it}function B(j){const tt=c.pop();return tt.end=_(),h.events.push(["exit",tt,h]),tt}function N(j,tt){G(j,tt.from)}function E(j,tt){tt.restore()}function R(j,tt){return it;function it(H,F,L){let U,$,lt,D;return Array.isArray(H)?K(H):"tokenize"in H?K([H]):I(H);function I(pt){return St;function St(Ft){const Ut=Ft!==null&&pt[Ft],Jt=Ft!==null&&pt.null,ve=[...Array.isArray(Ut)?Ut:Ut?[Ut]:[],...Array.isArray(Jt)?Jt:Jt?[Jt]:[]];return K(ve)(Ft)}}function K(pt){return U=pt,$=0,pt.length===0?L:O(pt[$])}function O(pt){return St;function St(Ft){return D=Z(),lt=pt,pt.partial||(h.currentConstruct=pt),pt.name&&h.parser.constructs.disable.null.includes(pt.name)?bt():pt.tokenize.call(tt?Object.assign(Object.create(h),tt):h,f,ft,bt)(Ft)}}function ft(pt){return j(lt,D),F}function bt(pt){return D.restore(),++$<U.length?O(U[$]):L}}}function G(j,tt){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&Hi(h.events,tt,h.events.length-tt,j.resolve(h.events.slice(tt),h)),j.resolveTo&&(h.events=j.resolveTo(h.events,h))}function Z(){const j=_(),tt=h.previous,it=h.currentConstruct,H=h.events.length,F=Array.from(c);return{from:H,restore:L};function L(){i=j,h.previous=tt,h.currentConstruct=it,h.events.length=H,c=F,z()}}function z(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function zB(t,e){const n=e.start._index,i=e.start._bufferIndex,a=e.end._index,s=e.end._bufferIndex;let o;if(n===a)o=[t[n].slice(i,s)];else{if(o=t.slice(n,a),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}s>0&&o.push(t[a].slice(0,s))}return o}function FB(t,e){let n=-1;const i=[];let a;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
52
+ `;break}case-3:{o=`\r
53
+ `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&a)continue;o=" ";break}default:o=String.fromCharCode(s)}a=s===-2,i.push(o)}return i.join("")}function $B(t){const i={constructs:s2([BB,...(t||{}).extensions||[]]),content:a(tD),defined:[],document:a(nD),flow:a(_B),lazy:{},string:a(wB),text:a(CB)};return i;function a(s){return o;function o(c){return IB(i,s,c)}}}function UB(t){for(;!f2(t););return t}const vv=/[\0\t\n\r]/g;function PB(){let t=1,e="",n=!0,i;return a;function a(s,o,c){const f=[];let h,d,g,y,m;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),g=0,e="",n&&(s.charCodeAt(0)===65279&&g++,n=void 0);g<s.length;){if(vv.lastIndex=g,h=vv.exec(s),y=h&&h.index!==void 0?h.index:s.length,m=s.charCodeAt(y),!h){e=s.slice(g);break}if(m===10&&g===y&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),g<y&&(f.push(s.slice(g,y)),t+=y-g),m){case 0:{f.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,f.push(-2);t++<d;)f.push(-1);break}case 10:{f.push(-4),t=1;break}default:i=!0,t=1}g=y+1}return c&&(i&&f.push(-5),e&&f.push(e),f.push(null)),f}}const HB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qB(t){return t.replace(HB,jB)}function jB(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return o2(n.slice(s?2:1),s?16:10)}return eb(n)||t}const b2={}.hasOwnProperty;function GB(t,e,n){return typeof e!="string"&&(n=e,e=void 0),YB(n)(UB($B(n).document().write(PB()(t,e,!0))))}function YB(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ii),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:s(Dn),blockQuote:s(Jt),characterEscape:Z,characterReference:Z,codeFenced:s(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(ve,o),codeText:s(hn,o),codeTextData:Z,data:Z,codeFlowValue:Z,definition:s(fn),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(sn),hardBreakEscape:s(oe),hardBreakTrailing:s(oe),htmlFlow:s(ni,o),htmlFlowData:Z,htmlText:s(ni,o),htmlTextData:Z,image:s(kn),label:o,link:s(ii),listItem:s(vr),listItemValue:y,listOrdered:s(di,g),listUnordered:s(di),paragraph:s(ma),reference:O,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Dn),strong:s(ya),thematicBreak:s(Gi)},exit:{atxHeading:f(),atxHeadingSequence:N,autolink:f(),autolinkEmail:Ut,autolinkProtocol:Ft,blockQuote:f(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:bt,characterReferenceMarkerNumeric:bt,characterReferenceValue:pt,characterReference:St,codeFenced:f(C),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:_,codeFlowValue:z,codeIndented:f(S),codeText:f(F),codeTextData:z,data:z,definition:f(),definitionDestinationString:B,definitionLabelString:T,definitionTitleString:A,emphasis:f(),hardBreakEscape:f(tt),hardBreakTrailing:f(tt),htmlFlow:f(it),htmlFlowData:z,htmlText:f(H),htmlTextData:z,image:f(U),label:lt,labelText:$,lineEnding:j,link:f(L),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ft,resourceDestinationString:D,resourceTitleString:I,resource:K,setextHeading:f(G),setextHeadingLineSequence:R,setextHeadingText:E,strong:f(),thematicBreak:f()}};x2(e,(t||{}).mdastExtensions||[]);const n={};return i;function i(at){let gt={type:"root",children:[]};const Pt={stack:[gt],tokenStack:[],config:e,enter:c,exit:h,buffer:o,resume:d,data:n},ne=[];let be=-1;for(;++be<at.length;)if(at[be][1].type==="listOrdered"||at[be][1].type==="listUnordered")if(at[be][0]==="enter")ne.push(be);else{const En=ne.pop();be=a(at,En,be)}for(be=-1;++be<at.length;){const En=e[at[be][0]];b2.call(En,at[be][1].type)&&En[at[be][1].type].call(Object.assign({sliceSerialize:at[be][2].sliceSerialize},Pt),at[be][1])}if(Pt.tokenStack.length>0){const En=Pt.tokenStack[Pt.tokenStack.length-1];(En[1]||Sv).call(Pt,void 0,En[0])}for(gt.position={start:ja(at.length>0?at[0][1].start:{line:1,column:1,offset:0}),end:ja(at.length>0?at[at.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<e.transforms.length;)gt=e.transforms[be](gt)||gt;return gt}function a(at,gt,Pt){let ne=gt-1,be=-1,En=!1,pi,on,qe,We;for(;++ne<=Pt;){const pe=at[ne];switch(pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pe[0]==="enter"?be++:be--,We=void 0;break}case"lineEndingBlank":{pe[0]==="enter"&&(pi&&!We&&!be&&!qe&&(qe=ne),We=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:We=void 0}if(!be&&pe[0]==="enter"&&pe[1].type==="listItemPrefix"||be===-1&&pe[0]==="exit"&&(pe[1].type==="listUnordered"||pe[1].type==="listOrdered")){if(pi){let gi=ne;for(on=void 0;gi--;){const Tn=at[gi];if(Tn[1].type==="lineEnding"||Tn[1].type==="lineEndingBlank"){if(Tn[0]==="exit")continue;on&&(at[on][1].type="lineEndingBlank",En=!0),Tn[1].type="lineEnding",on=gi}else if(!(Tn[1].type==="linePrefix"||Tn[1].type==="blockQuotePrefix"||Tn[1].type==="blockQuotePrefixWhitespace"||Tn[1].type==="blockQuoteMarker"||Tn[1].type==="listItemIndent"))break}qe&&(!on||qe<on)&&(pi._spread=!0),pi.end=Object.assign({},on?at[on][1].start:pe[1].end),at.splice(on||ne,0,["exit",pi,pe[2]]),ne++,Pt++}if(pe[1].type==="listItemPrefix"){const gi={type:"listItem",_spread:!1,start:Object.assign({},pe[1].start),end:void 0};pi=gi,at.splice(ne,0,["enter",gi,pe[2]]),ne++,Pt++,qe=void 0,We=!0}}}return at[gt][1]._spread=En,Pt}function s(at,gt){return Pt;function Pt(ne){c.call(this,at(ne),ne),gt&&gt.call(this,ne)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(at,gt,Pt){this.stack[this.stack.length-1].children.push(at),this.stack.push(at),this.tokenStack.push([gt,Pt||void 0]),at.position={start:ja(gt.start),end:void 0}}function f(at){return gt;function gt(Pt){at&&at.call(this,Pt),h.call(this,Pt)}}function h(at,gt){const Pt=this.stack.pop(),ne=this.tokenStack.pop();if(ne)ne[0].type!==at.type&&(gt?gt.call(this,at,ne[0]):(ne[1]||Sv).call(this,at,ne[0]));else throw new Error("Cannot close `"+at.type+"` ("+Ic({start:at.start,end:at.end})+"): it’s not open");Pt.position.end=ja(at.end)}function d(){return tb(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function y(at){if(this.data.expectingFirstListItemValue){const gt=this.stack[this.stack.length-2];gt.start=Number.parseInt(this.sliceSerialize(at),10),this.data.expectingFirstListItemValue=void 0}}function m(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.lang=at}function _(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.meta=at}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.value=at.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.value=at.replace(/(\r?\n|\r)$/g,"")}function T(at){const gt=this.resume(),Pt=this.stack[this.stack.length-1];Pt.label=gt,Pt.identifier=yr(this.sliceSerialize(at)).toLowerCase()}function A(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.title=at}function B(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.url=at}function N(at){const gt=this.stack[this.stack.length-1];if(!gt.depth){const Pt=this.sliceSerialize(at).length;gt.depth=Pt}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function R(at){const gt=this.stack[this.stack.length-1];gt.depth=this.sliceSerialize(at).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(at){const Pt=this.stack[this.stack.length-1].children;let ne=Pt[Pt.length-1];(!ne||ne.type!=="text")&&(ne=He(),ne.position={start:ja(at.start),end:void 0},Pt.push(ne)),this.stack.push(ne)}function z(at){const gt=this.stack.pop();gt.value+=this.sliceSerialize(at),gt.position.end=ja(at.end)}function j(at){const gt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Pt=gt.children[gt.children.length-1];Pt.position.end=ja(at.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(gt.type)&&(Z.call(this,at),z.call(this,at))}function tt(){this.data.atHardBreak=!0}function it(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.value=at}function H(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.value=at}function F(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.value=at}function L(){const at=this.stack[this.stack.length-1];if(this.data.inReference){const gt=this.data.referenceType||"shortcut";at.type+="Reference",at.referenceType=gt,delete at.url,delete at.title}else delete at.identifier,delete at.label;this.data.referenceType=void 0}function U(){const at=this.stack[this.stack.length-1];if(this.data.inReference){const gt=this.data.referenceType||"shortcut";at.type+="Reference",at.referenceType=gt,delete at.url,delete at.title}else delete at.identifier,delete at.label;this.data.referenceType=void 0}function $(at){const gt=this.sliceSerialize(at),Pt=this.stack[this.stack.length-2];Pt.label=qB(gt),Pt.identifier=yr(gt).toLowerCase()}function lt(){const at=this.stack[this.stack.length-1],gt=this.resume(),Pt=this.stack[this.stack.length-1];if(this.data.inReference=!0,Pt.type==="link"){const ne=at.children;Pt.children=ne}else Pt.alt=gt}function D(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.url=at}function I(){const at=this.resume(),gt=this.stack[this.stack.length-1];gt.title=at}function K(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ft(at){const gt=this.resume(),Pt=this.stack[this.stack.length-1];Pt.label=gt,Pt.identifier=yr(this.sliceSerialize(at)).toLowerCase(),this.data.referenceType="full"}function bt(at){this.data.characterReferenceType=at.type}function pt(at){const gt=this.sliceSerialize(at),Pt=this.data.characterReferenceType;let ne;Pt?(ne=o2(gt,Pt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ne=eb(gt);const be=this.stack[this.stack.length-1];be.value+=ne}function St(at){const gt=this.stack.pop();gt.position.end=ja(at.end)}function Ft(at){z.call(this,at);const gt=this.stack[this.stack.length-1];gt.url=this.sliceSerialize(at)}function Ut(at){z.call(this,at);const gt=this.stack[this.stack.length-1];gt.url="mailto:"+this.sliceSerialize(at)}function Jt(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function hn(){return{type:"inlineCode",value:""}}function fn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function sn(){return{type:"emphasis",children:[]}}function Dn(){return{type:"heading",depth:0,children:[]}}function oe(){return{type:"break"}}function ni(){return{type:"html",value:""}}function kn(){return{type:"image",title:null,url:"",alt:null}}function ii(){return{type:"link",title:null,url:"",children:[]}}function di(at){return{type:"list",ordered:at.type==="listOrdered",start:null,spread:at._spread,children:[]}}function vr(at){return{type:"listItem",spread:at._spread,checked:null,children:[]}}function ma(){return{type:"paragraph",children:[]}}function ya(){return{type:"strong",children:[]}}function He(){return{type:"text",value:""}}function Gi(){return{type:"thematicBreak"}}}function ja(t){return{line:t.line,column:t.column,offset:t.offset}}function x2(t,e){let n=-1;for(;++n<e.length;){const i=e[n];Array.isArray(i)?x2(t,i):WB(t,i)}}function WB(t,e){let n;for(n in e)if(b2.call(e,n))switch(n){case"canContainEols":{const i=e[n];i&&t[n].push(...i);break}case"transforms":{const i=e[n];i&&t[n].push(...i);break}case"enter":case"exit":{const i=e[n];i&&Object.assign(t[n],i);break}}}function Sv(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Ic({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Ic({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Ic({start:e.start,end:e.end})+") is still open")}function VB(t){const e=this;e.parser=n;function n(i){return GB(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function XB(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function KB(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
54
+ `}]}function ZB(t,e){const n=e.value?e.value+`
55
+ `:"",i={};e.lang&&(i.className=["language-"+e.lang]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return e.meta&&(a.data={meta:e.meta}),t.patch(e,a),a=t.applyData(e,a),a={type:"element",tagName:"pre",properties:{},children:[a]},t.patch(e,a),a}function QB(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function JB(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function t3(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),a=co(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 f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return t.patch(e,h),t.applyData(e,h)}function e3(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function n3(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function _2(t,e){const n=e.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const a=t.all(e),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=i:a.push({type:"text",value:i}),a}function i3(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return _2(t,e);const a={src:co(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const s={type:"element",tagName:"img",properties:a,children:[]};return t.patch(e,s),t.applyData(e,s)}function r3(t,e){const n={src:co(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,i),t.applyData(e,i)}function a3(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,i),t.applyData(e,i)}function l3(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return _2(t,e);const a={href:co(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const s={type:"element",tagName:"a",properties:a,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function s3(t,e){const n={href:co(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function o3(t,e,n){const i=t.all(e),a=n?c3(n):v2(e),s={},o=[];if(typeof e.checked=="boolean"){const d=i[0];let g;d&&d.type==="element"&&d.tagName==="p"?g=d:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.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 d=i[c];(a||c!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
56
+ `}),d.type==="element"&&d.tagName==="p"&&!a?o.push(...d.children):o.push(d)}const f=i[i.length-1];f&&(a||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
57
+ `});const h={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,h),t.applyData(e,h)}function c3(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let i=-1;for(;!e&&++i<n.length;)e=v2(n[i])}return e}function v2(t){const e=t.spread;return e??t.children.length>1}function u3(t,e){const n={},i=t.all(e);let a=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++a<i.length;){const o=i[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function h3(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function f3(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function d3(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function p3(t,e){const n=t.all(e),i=n.shift(),a=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},c=Ky(e.children[1]),f=t2(e.children[e.children.length-1]);c&&f&&(o.position={start:c,end:f}),a.push(o)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(a,!0)};return t.patch(e,s),t.applyData(e,s)}function g3(t,e,n){const i=n?n.children:void 0,s=(i?i.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:e.children.length;let f=-1;const h=[];for(;++f<c;){const g=e.children[f],y={},m=o?o[f]:void 0;m&&(y.align=m);let _={type:"element",tagName:s,properties:y,children:[]};g&&(_.children=t.all(g),t.patch(g,_),_=t.applyData(g,_)),h.push(_)}const d={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,d),t.applyData(e,d)}function m3(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const wv=9,Cv=32;function y3(t){const e=String(t),n=/\r?\n|\r/g;let i=n.exec(e),a=0;const s=[];for(;i;)s.push(kv(e.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(e);return s.push(kv(e.slice(a),a>0,!1)),s.join("")}function kv(t,e,n){let i=0,a=t.length;if(e){let s=t.codePointAt(i);for(;s===wv||s===Cv;)i++,s=t.codePointAt(i)}if(n){let s=t.codePointAt(a-1);for(;s===wv||s===Cv;)a--,s=t.codePointAt(a-1)}return a>i?t.slice(i,a):""}function b3(t,e){const n={type:"text",value:y3(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function x3(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const _3={blockquote:XB,break:KB,code:ZB,delete:QB,emphasis:JB,footnoteReference:t3,heading:e3,html:n3,imageReference:i3,image:r3,inlineCode:a3,linkReference:l3,link:s3,listItem:o3,list:u3,paragraph:h3,root:f3,strong:d3,table:p3,tableCell:m3,tableRow:g3,text:b3,thematicBreak:x3,toml:Lh,yaml:Lh,definition:Lh,footnoteDefinition:Lh};function Lh(){}const S2=-1,od=0,Fc=1,bf=2,ib=3,rb=4,ab=5,lb=6,w2=7,C2=8,Ev=typeof self=="object"?self:globalThis,v3=(t,e)=>{const n=(a,s)=>(t.set(s,a),a),i=a=>{if(t.has(a))return t.get(a);const[s,o]=e[a];switch(s){case od:case S2:return n(o,a);case Fc:{const c=n([],a);for(const f of o)c.push(i(f));return c}case bf:{const c=n({},a);for(const[f,h]of o)c[i(f)]=i(h);return c}case ib:return n(new Date(o),a);case rb:{const{source:c,flags:f}=o;return n(new RegExp(c,f),a)}case ab:{const c=n(new Map,a);for(const[f,h]of o)c.set(i(f),i(h));return c}case lb:{const c=n(new Set,a);for(const f of o)c.add(i(f));return c}case w2:{const{name:c,message:f}=o;return n(new Ev[c](f),a)}case C2:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(new Ev[s](o),a)};return i},Tv=t=>v3(new Map,t)(0),Os="",{toString:S3}={},{keys:w3}=Object,dc=t=>{const e=typeof t;if(e!=="object"||!t)return[od,e];const n=S3.call(t).slice(8,-1);switch(n){case"Array":return[Fc,Os];case"Object":return[bf,Os];case"Date":return[ib,Os];case"RegExp":return[rb,Os];case"Map":return[ab,Os];case"Set":return[lb,Os];case"DataView":return[Fc,n]}return n.includes("Array")?[Fc,n]:n.includes("Error")?[w2,n]:[bf,n]},Rh=([t,e])=>t===od&&(e==="function"||e==="symbol"),C3=(t,e,n,i)=>{const a=(o,c)=>{const f=i.push(o)-1;return n.set(c,f),f},s=o=>{if(n.has(o))return n.get(o);let[c,f]=dc(o);switch(c){case od:{let d=o;switch(f){case"bigint":c=C2,d=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+f);d=null;break;case"undefined":return a([S2],o)}return a([c,d],o)}case Fc:{if(f){let y=o;return f==="DataView"?y=new Uint8Array(o.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(o)),a([f,[...y]],o)}const d=[],g=a([c,d],o);for(const y of o)d.push(s(y));return g}case bf:{if(f)switch(f){case"BigInt":return a([f,o.toString()],o);case"Boolean":case"Number":case"String":return a([f,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const d=[],g=a([c,d],o);for(const y of w3(o))(t||!Rh(dc(o[y])))&&d.push([s(y),s(o[y])]);return g}case ib:return a([c,o.toISOString()],o);case rb:{const{source:d,flags:g}=o;return a([c,{source:d,flags:g}],o)}case ab:{const d=[],g=a([c,d],o);for(const[y,m]of o)(t||!(Rh(dc(y))||Rh(dc(m))))&&d.push([s(y),s(m)]);return g}case lb:{const d=[],g=a([c,d],o);for(const y of o)(t||!Rh(dc(y)))&&d.push(s(y));return g}}const{message:h}=o;return a([c,{name:f,message:h}],o)};return s},Av=(t,{json:e,lossy:n}={})=>{const i=[];return C3(!(e||n),!!e,new Map,i)(t),i},xf=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Tv(Av(t,e)):structuredClone(t):(t,e)=>Tv(Av(t,e));function k3(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function E3(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function T3(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||k3,i=t.options.footnoteBackLabel||E3,a=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[f]);if(!h)continue;const d=t.all(h),g=String(h.identifier).toUpperCase(),y=co(g.toLowerCase());let m=0;const _=[],v=t.footnoteCounts.get(g);for(;v!==void 0&&++m<=v;){_.length>0&&_.push({type:"text",value:" "});let T=typeof n=="string"?n:n(f,m);typeof T=="string"&&(T={type:"text",value:T}),_.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+y+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,m),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const C=d[d.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const T=C.children[C.children.length-1];T&&T.type==="text"?T.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(..._)}else d.push(..._);const S={type:"element",tagName:"li",properties:{id:e+"fn-"+y},children:t.wrap(d,!0)};t.patch(h,S),c.push(S)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...xf(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
58
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(c,!0)},{type:"text",value:`
59
+ `}]}}const ou=(function(t){if(t==null)return O3;if(typeof t=="function")return cd(t);if(typeof t=="object")return Array.isArray(t)?A3(t):M3(t);if(typeof t=="string")return N3(t);throw new Error("Expected function, string, or object as test")});function A3(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=ou(t[n]);return cd(i);function i(...a){let s=-1;for(;++s<e.length;)if(e[s].apply(this,a))return!0;return!1}}function M3(t){const e=t;return cd(n);function n(i){const a=i;let s;for(s in t)if(a[s]!==e[s])return!1;return!0}}function N3(t){return cd(e);function e(n){return n&&n.type===t}}function cd(t){return e;function e(n,i,a){return!!(L3(n)&&t.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function O3(){return!0}function L3(t){return t!==null&&typeof t=="object"&&"type"in t}const k2=[],R3=!0,Um=!1,D3="skip";function E2(t,e,n,i){let a;typeof e=="function"&&typeof n!="function"?(i=n,n=e):a=e;const s=ou(a),o=i?-1:1;c(t,void 0,[])();function c(f,h,d){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const m=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(m?"<"+m+">":""))+")"})}return y;function y(){let m=k2,_,v,C;if((!e||s(f,h,d[d.length-1]||void 0))&&(m=B3(n(f,d)),m[0]===Um))return m;if("children"in f&&f.children){const S=f;if(S.children&&m[0]!==D3)for(v=(i?S.children.length:-1)+o,C=d.concat(S);v>-1&&v<S.children.length;){const T=S.children[v];if(_=c(T,v,C)(),_[0]===Um)return _;v=typeof _[1]=="number"?_[1]:v+o}}return m}}}function B3(t){return Array.isArray(t)?t:typeof t=="number"?[R3,t]:t==null?k2:[t]}function ud(t,e,n,i){let a,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,a=n):(s=e,o=n,a=i),E2(t,s,c,a);function c(f,h){const d=h[h.length-1],g=d?d.children.indexOf(f):void 0;return o(f,g,d)}}const Pm={}.hasOwnProperty,I3={};function z3(t,e){const n=e||I3,i=new Map,a=new Map,s=new Map,o={..._3,...n.handlers},c={all:h,applyData:$3,definitionById:i,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:o,one:f,options:n,patch:F3,wrap:P3};return ud(t,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const g=d.type==="definition"?i:a,y=String(d.identifier).toUpperCase();g.has(y)||g.set(y,d)}}),c;function f(d,g){const y=d.type,m=c.handlers[y];if(Pm.call(c.handlers,y)&&m)return m(c,d,g);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in d){const{children:v,...C}=d,S=xf(C);return S.children=c.all(d),S}return xf(d)}return(c.options.unknownHandler||U3)(c,d,g)}function h(d){const g=[];if("children"in d){const y=d.children;let m=-1;for(;++m<y.length;){const _=c.one(y[m],d);if(_){if(m&&y[m-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=Mv(_.value)),!Array.isArray(_)&&_.type==="element")){const v=_.children[0];v&&v.type==="text"&&(v.value=Mv(v.value))}Array.isArray(_)?g.push(..._):g.push(_)}}}return g}}function F3(t,e){t.position&&(e.position=ER(t))}function $3(t,e){let n=e;if(t&&t.data){const i=t.data.hName,a=t.data.hChildren,s=t.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const o="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,xf(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function U3(t,e){const n=e.data||{},i="value"in e&&!(Pm.call(n,"hProperties")||Pm.call(n,"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 P3(t,e){const n=[];let i=-1;for(e&&n.push({type:"text",value:`
60
+ `});++i<t.length;)i&&n.push({type:"text",value:`
61
+ `}),n.push(t[i]);return e&&t.length>0&&n.push({type:"text",value:`
62
+ `}),n}function Mv(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function Nv(t,e){const n=z3(t,e),i=n.one(t,void 0),a=T3(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
63
+ `},a),s}function H3(t,e){return t&&"run"in t?async function(n,i){const a=Nv(n,{file:i,...e});await t.run(a,i)}:function(n,i){return Nv(n,{file:i,...t||e})}}function Ov(t){if(t)throw t}var Zg,Lv;function q3(){if(Lv)return Zg;Lv=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=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 d=t.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!g)return!1;var y;for(y in h);return typeof y>"u"||t.call(h,y)},o=function(h,d){n&&d.name==="__proto__"?n(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},c=function(h,d){if(d==="__proto__")if(t.call(h,d)){if(i)return i(h,d).value}else return;return h[d]};return Zg=function f(){var h,d,g,y,m,_,v=arguments[0],C=1,S=arguments.length,T=!1;for(typeof v=="boolean"&&(T=v,v=arguments[1]||{},C=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});C<S;++C)if(h=arguments[C],h!=null)for(d in h)g=c(v,d),y=c(h,d),v!==y&&(T&&y&&(s(y)||(m=a(y)))?(m?(m=!1,_=g&&a(g)?g:[]):_=g&&s(g)?g:{},o(v,{name:d,newValue:f(T,_,y)})):typeof y<"u"&&o(v,{name:d,newValue:y}));return v},Zg}var j3=q3();const Qg=ad(j3);function Hm(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 G3(){const t=[],e={run:n,use:i};return e;function n(...a){let s=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...a);function c(f,...h){const d=t[++s];let g=-1;if(f){o(f);return}for(;++g<a.length;)(h[g]===null||h[g]===void 0)&&(h[g]=a[g]);a=h,d?Y3(d,c)(...h):o(null,...h)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return t.push(a),e}}function Y3(t,e){let n;return i;function i(...o){const c=t.length>o.length;let f;c&&o.push(a);try{f=t.apply(this,o)}catch(h){const d=h;if(c&&n)throw d;return a(d)}c||(f&&f.then&&typeof f.then=="function"?f.then(s,a):f instanceof Error?a(f):s(f))}function a(o,...c){n||(n=!0,e(o,...c))}function s(o){a(null,o)}}const Or={basename:W3,dirname:V3,extname:X3,join:K3,sep:"/"};function W3(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');cu(t);let n=0,i=-1,a=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;a--;)if(t.codePointAt(a)===47){if(s){n=a+1;break}}else i<0&&(s=!0,i=a+1);return i<0?"":t.slice(n,i)}if(e===t)return"";let o=-1,c=e.length-1;for(;a--;)if(t.codePointAt(a)===47){if(s){n=a+1;break}}else o<0&&(s=!0,o=a+1),c>-1&&(t.codePointAt(a)===e.codePointAt(c--)?c<0&&(i=a):(c=-1,i=o));return n===i?i=o:i<0&&(i=t.length),t.slice(n,i)}function V3(t){if(cu(t),t.length===0)return".";let e=-1,n=t.length,i;for(;--n;)if(t.codePointAt(n)===47){if(i){e=n;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function X3(t){cu(t);let e=t.length,n=-1,i=0,a=-1,s=0,o;for(;e--;){const c=t.codePointAt(e);if(c===47){if(o){i=e+1;break}continue}n<0&&(o=!0,n=e+1),c===46?a<0?a=e:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===i+1?"":t.slice(a,n)}function K3(...t){let e=-1,n;for(;++e<t.length;)cu(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":Z3(n)}function Z3(t){cu(t);const e=t.codePointAt(0)===47;let n=Q3(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function Q3(t,e){let n="",i=0,a=-1,s=0,o=-1,c,f;for(;++o<=t.length;){if(o<t.length)c=t.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(a===o-1||s===1))if(a!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",i=0):(n=n.slice(0,f),i=n.length-1-n.lastIndexOf("/")),a=o,s=0;continue}}else if(n.length>0){n="",i=0,a=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+t.slice(a+1,o):n=t.slice(a+1,o),i=o-a-1;a=o,s=0}else c===46&&s>-1?s++:s=-1}return n}function cu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const J3={cwd:t5};function t5(){return"/"}function qm(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function e5(t){if(typeof t=="string")t=new URL(t);else if(!qm(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 n5(t)}function n5(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 n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const i=e.codePointAt(n+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(e)}const Jg=["history","path","basename","stem","extname","dirname"];class T2{constructor(e){let n;e?qm(e)?n={path:e}:typeof e=="string"||i5(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":J3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Jg.length;){const s=Jg[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)Jg.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Or.basename(this.path):void 0}set basename(e){em(e,"basename"),tm(e,"basename"),this.path=Or.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Or.dirname(this.path):void 0}set dirname(e){Rv(this.basename,"dirname"),this.path=Or.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Or.extname(this.path):void 0}set extname(e){if(tm(e,"extname"),Rv(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=Or.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){qm(e)&&(e=e5(e)),em(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Or.basename(this.path,this.extname):void 0}set stem(e){em(e,"stem"),tm(e,"stem"),this.path=Or.join(this.dirname||"",e+(this.extname||""))}fail(e,n,i){const a=this.message(e,n,i);throw a.fatal=!0,a}info(e,n,i){const a=this.message(e,n,i);return a.fatal=void 0,a}message(e,n,i){const a=new ti(e,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function tm(t,e){if(t&&t.includes(Or.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Or.sep+"`")}function em(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function Rv(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function i5(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const r5=(function(t){const i=this.constructor.prototype,a=i[t],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),a5={}.hasOwnProperty;class sb extends r5{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=G3()}copy(){const e=new sb;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];e.use(...i)}return e.data(Qg(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(rm("data",this.frozen),this.namespace[e]=n,this):a5.call(this.namespace,e)&&this.namespace[e]||void 0:e?(rm("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[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=n.call(e,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Dh(e),i=this.parser||this.Parser;return nm("parse",i),i(String(n),n)}process(e,n){const i=this;return this.freeze(),nm("process",this.parser||this.Parser),im("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,o){const c=Dh(e),f=i.parse(c);i.run(f,c,function(d,g,y){if(d||!g||!y)return h(d);const m=g,_=i.stringify(m,y);o5(_)?y.value=_:y.result=_,h(d,y)});function h(d,g){d||!g?o(d):s?s(g):n(void 0,g)}}}processSync(e){let n=!1,i;return this.freeze(),nm("processSync",this.parser||this.Parser),im("processSync",this.compiler||this.Compiler),this.process(e,a),Bv("processSync","process",n),i;function a(s,o){n=!0,Ov(s),i=o}}run(e,n,i){Dv(e),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,c){const f=Dh(n);a.run(e,f,h);function h(d,g,y){const m=g||e;d?c(d):o?o(m):i(void 0,m,y)}}}runSync(e,n){let i=!1,a;return this.run(e,n,s),Bv("runSync","run",i),a;function s(o,c){Ov(o),a=c,i=!0}}stringify(e,n){this.freeze();const i=Dh(n),a=this.compiler||this.Compiler;return im("stringify",a),Dv(e),a(e,i)}use(e,...n){const i=this.attachers,a=this.namespace;if(rm("use",this.frozen),e!=null)if(typeof e=="function")f(e,n);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")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...g]=h;f(d,g)}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&&(a.settings=Qg(!0,a.settings,h.settings))}function c(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const g=h[d];s(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,d){let g=-1,y=-1;for(;++g<i.length;)if(i[g][0]===h){y=g;break}if(y===-1)i.push([h,...d]);else if(d.length>0){let[m,..._]=d;const v=i[y][1];Hm(v)&&Hm(m)&&(m=Qg(!0,v,m)),i[y]=[h,m,..._]}}}}const l5=new sb().freeze();function nm(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function im(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function rm(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 Dv(t){if(!Hm(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Bv(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Dh(t){return s5(t)?t:new T2(t)}function s5(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function o5(t){return typeof t=="string"||c5(t)}function c5(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const u5="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Iv=[],zv={allowDangerousHtml:!0},h5=/^(https?|ircs?|mailto|xmpp)$/i,f5=[{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 d5(t){const e=p5(t),n=g5(t);return m5(e.runSync(e.parse(n),n),t)}function p5(t){const e=t.rehypePlugins||Iv,n=t.remarkPlugins||Iv,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...zv}:zv;return l5().use(VB).use(n).use(H3,i).use(e)}function g5(t){const e=t.children||"",n=new T2;return typeof e=="string"&&(n.value=e),n}function m5(t,e){const n=e.allowedElements,i=e.allowElement,a=e.components,s=e.disallowedElements,o=e.skipHtml,c=e.unwrapDisallowed,f=e.urlTransform||y5;for(const d of f5)Object.hasOwn(e,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+u5+d.id,void 0);return ud(t,h),OR(t,{Fragment:V.Fragment,components:a,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function h(d,g,y){if(d.type==="raw"&&y&&typeof g=="number")return o?y.children.splice(g,1):y.children[g]={type:"text",value:d.value},g;if(d.type==="element"){let m;for(m in Vg)if(Object.hasOwn(Vg,m)&&Object.hasOwn(d.properties,m)){const _=d.properties[m],v=Vg[m];(v===null||v.includes(d.tagName))&&(d.properties[m]=f(String(_||""),m,d))}}if(d.type==="element"){let m=n?!n.includes(d.tagName):s?s.includes(d.tagName):!1;if(!m&&i&&typeof g=="number"&&(m=!i(d,g,y)),m&&y&&typeof g=="number")return c&&d.children?y.children.splice(g,1,...d.children):y.children.splice(g,1),g}}}function y5(t){const e=t.indexOf(":"),n=t.indexOf("?"),i=t.indexOf("#"),a=t.indexOf("/");return e===-1||a!==-1&&e>a||n!==-1&&e>n||i!==-1&&e>i||h5.test(t.slice(0,e))?t:""}function Fv(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let i=0,a=n.indexOf(e);for(;a!==-1;)i++,a=n.indexOf(e,a+e.length);return i}function b5(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function A2(t,e,n){const a=ou((n||{}).ignore||[]),s=x5(e);let o=-1;for(;++o<s.length;)E2(t,"text",c);function c(h,d){let g=-1,y;for(;++g<d.length;){const m=d[g],_=y?y.children:void 0;if(a(m,_?_.indexOf(m):void 0,y))return;y=m}if(y)return f(h,d)}function f(h,d){const g=d[d.length-1],y=s[o][0],m=s[o][1];let _=0;const C=g.children.indexOf(h);let S=!1,T=[];y.lastIndex=0;let A=y.exec(h.value);for(;A;){const B=A.index,N={index:A.index,input:A.input,stack:[...d,h]};let E=m(...A,N);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?y.lastIndex=B+1:(_!==B&&T.push({type:"text",value:h.value.slice(_,B)}),Array.isArray(E)?T.push(...E):E&&T.push(E),_=B+A[0].length,S=!0),!y.global)break;A=y.exec(h.value)}return S?(_<h.value.length&&T.push({type:"text",value:h.value.slice(_)}),g.children.splice(C,1,...T)):T=[h],C+T.length}}function x5(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let i=-1;for(;++i<n.length;){const a=n[i];e.push([_5(a[0]),v5(a[1])])}return e}function _5(t){return typeof t=="string"?new RegExp(b5(t),"g"):t}function v5(t){return typeof t=="function"?t:function(){return t}}const am="phrasing",lm=["autolink","link","image","label"];function S5(){return{transforms:[M5],enter:{literalAutolink:C5,literalAutolinkEmail:sm,literalAutolinkHttp:sm,literalAutolinkWww:sm},exit:{literalAutolink:A5,literalAutolinkEmail:T5,literalAutolinkHttp:k5,literalAutolinkWww:E5}}}function w5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:am,notInConstruct:lm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:am,notInConstruct:lm},{character:":",before:"[ps]",after:"\\/",inConstruct:am,notInConstruct:lm}]}}function C5(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function sm(t){this.config.enter.autolinkProtocol.call(this,t)}function k5(t){this.config.exit.autolinkProtocol.call(this,t)}function E5(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function T5(t){this.config.exit.autolinkEmail.call(this,t)}function A5(t){this.exit(t)}function M5(t){A2(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),O5]],{ignore:["link","linkReference"]})}function N5(t,e,n,i,a){let s="";if(!M2(a)||(/^w/i.test(e)&&(n=e+n,e="",s="http://"),!L5(n)))return!1;const o=R5(n+i);if(!o[0])return!1;const c={type:"link",title:null,url:s+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[c,{type:"text",value:o[1]}]:c}function O5(t,e,n,i){return!M2(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function L5(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function R5(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],i=n.indexOf(")");const a=Fv(t,"(");let s=Fv(t,")");for(;i!==-1&&a>s;)t+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[t,n]}function M2(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||Dl(n)||ld(n))&&(!e||n!==47)}N2.peek=H5;function D5(){this.buffer()}function B5(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function I5(){this.buffer()}function z5(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function F5(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yr(this.sliceSerialize(t)).toLowerCase(),n.label=e}function $5(t){this.exit(t)}function U5(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yr(this.sliceSerialize(t)).toLowerCase(),n.label=e}function P5(t){this.exit(t)}function H5(){return"["}function N2(t,e,n,i){const a=n.createTracker(i);let s=a.move("[^");const o=n.enter("footnoteReference"),c=n.enter("reference");return s+=a.move(n.safe(n.associationId(t),{after:"]",before:s})),c(),o(),s+=a.move("]"),s}function q5(){return{enter:{gfmFootnoteCallString:D5,gfmFootnoteCall:B5,gfmFootnoteDefinitionLabelString:I5,gfmFootnoteDefinition:z5},exit:{gfmFootnoteCallString:F5,gfmFootnoteCall:$5,gfmFootnoteDefinitionLabelString:U5,gfmFootnoteDefinition:P5}}}function j5(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:N2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,a,s,o){const c=s.createTracker(o);let f=c.move("[^");const h=s.enter("footnoteDefinition"),d=s.enter("label");return f+=c.move(s.safe(s.associationId(i),{before:f,after:"]"})),d(),f+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),f+=c.move((e?`
64
+ `:" ")+s.indentLines(s.containerFlow(i,c.current()),e?O2:G5))),h(),f}}function G5(t,e,n){return e===0?t:O2(t,e,n)}function O2(t,e,n){return(n?"":" ")+t}const Y5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];L2.peek=Z5;function W5(){return{canContainEols:["delete"],enter:{strikethrough:X5},exit:{strikethrough:K5}}}function V5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Y5}],handlers:{delete:L2}}}function X5(t){this.enter({type:"delete",children:[]},t)}function K5(t){this.exit(t)}function L2(t,e,n,i){const a=n.createTracker(i),s=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(t,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),s(),o}function Z5(){return"~"}function Q5(t){return t.length}function J5(t,e){const n=e||{},i=(n.align||[]).concat(),a=n.stringLength||Q5,s=[],o=[],c=[],f=[];let h=0,d=-1;for(;++d<t.length;){const v=[],C=[];let S=-1;for(t[d].length>h&&(h=t[d].length);++S<t[d].length;){const T=tI(t[d][S]);if(n.alignDelimiters!==!1){const A=a(T);C[S]=A,(f[S]===void 0||A>f[S])&&(f[S]=A)}v.push(T)}o[d]=v,c[d]=C}let g=-1;if(typeof i=="object"&&"length"in i)for(;++g<h;)s[g]=$v(i[g]);else{const v=$v(i);for(;++g<h;)s[g]=v}g=-1;const y=[],m=[];for(;++g<h;){const v=s[g];let C="",S="";v===99?(C=":",S=":"):v===108?C=":":v===114&&(S=":");let T=n.alignDelimiters===!1?1:Math.max(1,f[g]-C.length-S.length);const A=C+"-".repeat(T)+S;n.alignDelimiters!==!1&&(T=C.length+T+S.length,T>f[g]&&(f[g]=T),m[g]=T),y[g]=A}o.splice(1,0,y),c.splice(1,0,m),d=-1;const _=[];for(;++d<o.length;){const v=o[d],C=c[d];g=-1;const S=[];for(;++g<h;){const T=v[g]||"";let A="",B="";if(n.alignDelimiters!==!1){const N=f[g]-(C[g]||0),E=s[g];E===114?A=" ".repeat(N):E===99?N%2?(A=" ".repeat(N/2+.5),B=" ".repeat(N/2-.5)):(A=" ".repeat(N/2),B=A):B=" ".repeat(N)}n.delimiterStart!==!1&&!g&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||g)&&S.push(" "),n.alignDelimiters!==!1&&S.push(A),S.push(T),n.alignDelimiters!==!1&&S.push(B),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&S.push("|")}_.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return _.join(`
65
+ `)}function tI(t){return t==null?"":String(t)}function $v(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function eI(t,e,n,i){const a=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(t,s.current()),nI);return a(),o}function nI(t,e,n){return">"+(n?"":" ")+t}function iI(t,e){return Uv(t,e.inConstruct,!0)&&!Uv(t,e.notInConstruct,!1)}function Uv(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let i=-1;for(;++i<e.length;)if(t.includes(e[i]))return!0;return!1}function Pv(t,e,n,i){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
66
+ `&&iI(n.stack,n.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
67
+ `}function rI(t,e){const n=String(t);let i=n.indexOf(e),a=i,s=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++s>o&&(o=s):s=1,a=i+e.length,i=n.indexOf(e,a);return o}function aI(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function lI(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function sI(t,e,n,i){const a=lI(n),s=t.value||"",o=a==="`"?"GraveAccent":"Tilde";if(aI(t,n)){const g=n.enter("codeIndented"),y=n.indentLines(s,oI);return g(),y}const c=n.createTracker(i),f=a.repeat(Math.max(rI(s,a)+1,3)),h=n.enter("codeFenced");let d=c.move(f);if(t.lang){const g=n.enter(`codeFencedLang${o}`);d+=c.move(n.safe(t.lang,{before:d,after:" ",encode:["`"],...c.current()})),g()}if(t.lang&&t.meta){const g=n.enter(`codeFencedMeta${o}`);d+=c.move(" "),d+=c.move(n.safe(t.meta,{before:d,after:`
68
+ `,encode:["`"],...c.current()})),g()}return d+=c.move(`
69
+ `),s&&(d+=c.move(s+`
70
+ `)),d+=c.move(f),h(),d}function oI(t,e,n){return(n?"":" ")+t}function ob(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function cI(t,e,n,i){const a=ob(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let c=n.enter("label");const f=n.createTracker(i);let h=f.move("[");return h+=f.move(n.safe(n.associationId(t),{before:h,after:"]",...f.current()})),h+=f.move("]: "),c(),!t.url||/[\0- \u007F]/.test(t.url)?(c=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(t.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(c=n.enter("destinationRaw"),h+=f.move(n.safe(t.url,{before:h,after:t.title?" ":`
71
+ `,...f.current()}))),c(),t.title&&(c=n.enter(`title${s}`),h+=f.move(" "+a),h+=f.move(n.safe(t.title,{before:h,after:a,...f.current()})),h+=f.move(a),c()),o(),h}function uI(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function Yc(t){return"&#x"+t.toString(16).toUpperCase()+";"}function _f(t,e,n){const i=Qs(t),a=Qs(e);return i===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}R2.peek=hI;function R2(t,e,n,i){const a=uI(n),s=n.enter("emphasis"),o=n.createTracker(i),c=o.move(a);let f=o.move(n.containerPhrasing(t,{after:a,before:c,...o.current()}));const h=f.charCodeAt(0),d=_f(i.before.charCodeAt(i.before.length-1),h,a);d.inside&&(f=Yc(h)+f.slice(1));const g=f.charCodeAt(f.length-1),y=_f(i.after.charCodeAt(0),g,a);y.inside&&(f=f.slice(0,-1)+Yc(g));const m=o.move(a);return s(),n.attentionEncodeSurroundingInfo={after:y.outside,before:d.outside},c+f+m}function hI(t,e,n){return n.options.emphasis||"*"}function fI(t,e){let n=!1;return ud(t,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Um}),!!((!t.depth||t.depth<3)&&tb(t)&&(e.options.setext||n))}function dI(t,e,n,i){const a=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(i);if(fI(t,n)){const d=n.enter("headingSetext"),g=n.enter("phrasing"),y=n.containerPhrasing(t,{...s.current(),before:`
72
+ `,after:`
73
+ `});return g(),d(),y+`
74
+ `+(a===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
75
+ `))+1))}const o="#".repeat(a),c=n.enter("headingAtx"),f=n.enter("phrasing");s.move(o+" ");let h=n.containerPhrasing(t,{before:"# ",after:`
76
+ `,...s.current()});return/^[\t ]/.test(h)&&(h=Yc(h.charCodeAt(0))+h.slice(1)),h=h?o+" "+h:o,n.options.closeAtx&&(h+=" "+o),f(),c(),h}D2.peek=pI;function D2(t){return t.value||""}function pI(){return"<"}B2.peek=gI;function B2(t,e,n,i){const a=ob(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let c=n.enter("label");const f=n.createTracker(i);let h=f.move("![");return h+=f.move(n.safe(t.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),c(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(c=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(t.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(c=n.enter("destinationRaw"),h+=f.move(n.safe(t.url,{before:h,after:t.title?" ":")",...f.current()}))),c(),t.title&&(c=n.enter(`title${s}`),h+=f.move(" "+a),h+=f.move(n.safe(t.title,{before:h,after:a,...f.current()})),h+=f.move(a),c()),h+=f.move(")"),o(),h}function gI(){return"!"}I2.peek=mI;function I2(t,e,n,i){const a=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const c=n.createTracker(i);let f=c.move("![");const h=n.safe(t.alt,{before:f,after:"]",...c.current()});f+=c.move(h+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const g=n.safe(n.associationId(t),{before:f,after:"]",...c.current()});return o(),n.stack=d,s(),a==="full"||!h||h!==g?f+=c.move(g+"]"):a==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function mI(){return"!"}z2.peek=yI;function z2(t,e,n){let i=t.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],c=n.compilePattern(o);let f;if(o.atBreak)for(;f=c.exec(i);){let h=f.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(f.index+1)}}return a+i+a}function yI(){return"`"}function F2(t,e){const n=tb(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}$2.peek=bI;function $2(t,e,n,i){const a=ob(n),s=a==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let c,f;if(F2(t,n)){const d=n.stack;n.stack=[],c=n.enter("autolink");let g=o.move("<");return g+=o.move(n.containerPhrasing(t,{before:g,after:">",...o.current()})),g+=o.move(">"),c(),n.stack=d,g}c=n.enter("link"),f=n.enter("label");let h=o.move("[");return h+=o.move(n.containerPhrasing(t,{before:h,after:"](",...o.current()})),h+=o.move("]("),f(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(f=n.enter("destinationLiteral"),h+=o.move("<"),h+=o.move(n.safe(t.url,{before:h,after:">",...o.current()})),h+=o.move(">")):(f=n.enter("destinationRaw"),h+=o.move(n.safe(t.url,{before:h,after:t.title?" ":")",...o.current()}))),f(),t.title&&(f=n.enter(`title${s}`),h+=o.move(" "+a),h+=o.move(n.safe(t.title,{before:h,after:a,...o.current()})),h+=o.move(a),f()),h+=o.move(")"),c(),h}function bI(t,e,n){return F2(t,n)?"<":"["}U2.peek=xI;function U2(t,e,n,i){const a=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const c=n.createTracker(i);let f=c.move("[");const h=n.containerPhrasing(t,{before:f,after:"]",...c.current()});f+=c.move(h+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const g=n.safe(n.associationId(t),{before:f,after:"]",...c.current()});return o(),n.stack=d,s(),a==="full"||!h||h!==g?f+=c.move(g+"]"):a==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function xI(){return"["}function cb(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function _I(t){const e=cb(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vI(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function P2(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function SI(t,e,n,i){const a=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?vI(n):cb(n);const c=t.ordered?o==="."?")":".":_I(n);let f=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const d=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(f=!0),P2(n)===o&&d){let g=-1;for(;++g<t.children.length;){const y=t.children[g];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(o=c),n.bulletCurrent=o;const h=n.containerFlow(t,i);return n.bulletLastUsed=o,n.bulletCurrent=s,a(),h}function wI(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function CI(t,e,n,i){const a=wI(n);let s=n.bulletCurrent||cb(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(a==="tab"||a==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const c=n.createTracker(i);c.move(s+" ".repeat(o-s.length)),c.shift(o);const f=n.enter("listItem"),h=n.indentLines(n.containerFlow(t,c.current()),d);return f(),h;function d(g,y,m){return y?(m?"":" ".repeat(o))+g:(m?s:s+" ".repeat(o-s.length))+g}}function kI(t,e,n,i){const a=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,i);return s(),a(),o}const EI=ou(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function TI(t,e,n,i){return(t.children.some(function(o){return EI(o)})?n.containerPhrasing:n.containerFlow).call(n,t,i)}function AI(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}H2.peek=MI;function H2(t,e,n,i){const a=AI(n),s=n.enter("strong"),o=n.createTracker(i),c=o.move(a+a);let f=o.move(n.containerPhrasing(t,{after:a,before:c,...o.current()}));const h=f.charCodeAt(0),d=_f(i.before.charCodeAt(i.before.length-1),h,a);d.inside&&(f=Yc(h)+f.slice(1));const g=f.charCodeAt(f.length-1),y=_f(i.after.charCodeAt(0),g,a);y.inside&&(f=f.slice(0,-1)+Yc(g));const m=o.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:y.outside,before:d.outside},c+f+m}function MI(t,e,n){return n.options.strong||"*"}function NI(t,e,n,i){return n.safe(t.value,i)}function OI(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function LI(t,e,n){const i=(P2(n)+(n.options.ruleSpaces?" ":"")).repeat(OI(n));return n.options.ruleSpaces?i.slice(0,-1):i}const q2={blockquote:eI,break:Pv,code:sI,definition:cI,emphasis:R2,hardBreak:Pv,heading:dI,html:D2,image:B2,imageReference:I2,inlineCode:z2,link:$2,linkReference:U2,list:SI,listItem:CI,paragraph:kI,root:TI,strong:H2,text:NI,thematicBreak:LI};function RI(){return{enter:{table:DI,tableData:Hv,tableHeader:Hv,tableRow:II},exit:{codeText:zI,table:BI,tableData:om,tableHeader:om,tableRow:om}}}function DI(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function BI(t){this.exit(t),this.data.inTable=void 0}function II(t){this.enter({type:"tableRow",children:[]},t)}function om(t){this.exit(t)}function Hv(t){this.enter({type:"tableCell",children:[]},t)}function zI(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,FI));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function FI(t,e){return e==="|"?e:t}function $I(t){const e=t||{},n=e.tableCellPadding,i=e.tablePipeAlign,a=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
77
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:o,tableCell:f,tableRow:c}};function o(m,_,v,C){return h(d(m,v,C),m.align)}function c(m,_,v,C){const S=g(m,v,C),T=h([S]);return T.slice(0,T.indexOf(`
78
+ `))}function f(m,_,v,C){const S=v.enter("tableCell"),T=v.enter("phrasing"),A=v.containerPhrasing(m,{...C,before:s,after:s});return T(),S(),A}function h(m,_){return J5(m,{align:_,alignDelimiters:i,padding:n,stringLength:a})}function d(m,_,v){const C=m.children;let S=-1;const T=[],A=_.enter("table");for(;++S<C.length;)T[S]=g(C[S],_,v);return A(),T}function g(m,_,v){const C=m.children;let S=-1;const T=[],A=_.enter("tableRow");for(;++S<C.length;)T[S]=f(C[S],m,_,v);return A(),T}function y(m,_,v){let C=q2.inlineCode(m,_,v);return v.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function UI(){return{exit:{taskListCheckValueChecked:qv,taskListCheckValueUnchecked:qv,paragraph:HI}}}function PI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qI}}}function qv(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function HI(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const a=e.children;let s=-1,o;for(;++s<a.length;){const c=a[s];if(c.type==="paragraph"){o=c;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(t)}function qI(t,e,n,i){const a=t.children[0],s=typeof t.checked=="boolean"&&a&&a.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",c=n.createTracker(i);s&&c.move(o);let f=q2.listItem(t,e,n,{...i,...c.current()});return s&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(d){return d+o}}function jI(){return[S5(),q5(),W5(),RI(),UI()]}function GI(t){return{extensions:[w5(),j5(t),V5(),$I(t),PI()]}}const YI={tokenize:QI,partial:!0},j2={tokenize:JI,partial:!0},G2={tokenize:tz,partial:!0},Y2={tokenize:ez,partial:!0},WI={tokenize:nz,partial:!0},W2={name:"wwwAutolink",tokenize:KI,previous:X2},V2={name:"protocolAutolink",tokenize:ZI,previous:K2},pa={name:"emailAutolink",tokenize:XI,previous:Z2},Ir={};function VI(){return{text:Ir}}let Sl=48;for(;Sl<123;)Ir[Sl]=pa,Sl++,Sl===58?Sl=65:Sl===91&&(Sl=97);Ir[43]=pa;Ir[45]=pa;Ir[46]=pa;Ir[95]=pa;Ir[72]=[pa,V2];Ir[104]=[pa,V2];Ir[87]=[pa,W2];Ir[119]=[pa,W2];function XI(t,e,n){const i=this;let a,s;return o;function o(g){return!jm(g)||!Z2.call(i,i.previous)||ub(i.events)?n(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),c(g))}function c(g){return jm(g)?(t.consume(g),c):g===64?(t.consume(g),f):n(g)}function f(g){return g===46?t.check(WI,d,h)(g):g===45||g===95||Kn(g)?(s=!0,t.consume(g),f):d(g)}function h(g){return t.consume(g),a=!0,f}function d(g){return s&&a&&si(i.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(g)):n(g)}}function KI(t,e,n){const i=this;return a;function a(o){return o!==87&&o!==119||!X2.call(i,i.previous)||ub(i.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(YI,t.attempt(j2,t.attempt(G2,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function ZI(t,e,n){const i=this;let a="",s=!1;return o;function o(g){return(g===72||g===104)&&K2.call(i,i.previous)&&!ub(i.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),a+=String.fromCodePoint(g),t.consume(g),c):n(g)}function c(g){if(si(g)&&a.length<5)return a+=String.fromCodePoint(g),t.consume(g),c;if(g===58){const y=a.toLowerCase();if(y==="http"||y==="https")return t.consume(g),f}return n(g)}function f(g){return g===47?(t.consume(g),s?h:(s=!0,f)):n(g)}function h(g){return g===null||yf(g)||Ye(g)||Dl(g)||ld(g)?n(g):t.attempt(j2,t.attempt(G2,d),n)(g)}function d(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(g)}}function QI(t,e,n){let i=0;return a;function a(o){return(o===87||o===119)&&i<3?(i++,t.consume(o),a):o===46&&i===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function JI(t,e,n){let i,a,s;return o;function o(h){return h===46||h===95?t.check(Y2,f,c)(h):h===null||Ye(h)||Dl(h)||h!==45&&ld(h)?f(h):(s=!0,t.consume(h),o)}function c(h){return h===95?i=!0:(a=i,i=void 0),t.consume(h),o}function f(h){return a||i||!s?n(h):e(h)}}function tz(t,e){let n=0,i=0;return a;function a(o){return o===40?(n++,t.consume(o),a):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(Y2,e,s)(o):o===null||Ye(o)||Dl(o)?e(o):(t.consume(o),a)}function s(o){return o===41&&i++,t.consume(o),a}}function ez(t,e,n){return i;function i(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(t.consume(c),i):c===38?(t.consume(c),s):c===93?(t.consume(c),a):c===60||c===null||Ye(c)||Dl(c)?e(c):n(c)}function a(c){return c===null||c===40||c===91||Ye(c)||Dl(c)?e(c):i(c)}function s(c){return si(c)?o(c):n(c)}function o(c){return c===59?(t.consume(c),i):si(c)?(t.consume(c),o):n(c)}}function nz(t,e,n){return i;function i(s){return t.consume(s),a}function a(s){return Kn(s)?n(s):e(s)}}function X2(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ye(t)}function K2(t){return!si(t)}function Z2(t){return!(t===47||jm(t))}function jm(t){return t===43||t===45||t===46||t===95||Kn(t)}function ub(t){let e=t.length,n=!1;for(;e--;){const i=t[e][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const iz={tokenize:hz,partial:!0};function rz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:oz,continuation:{tokenize:cz},exit:uz}},text:{91:{name:"gfmFootnoteCall",tokenize:sz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:az,resolveTo:lz}}}}function az(t,e,n){const i=this;let a=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;a--;){const f=i.events[a][1];if(f.type==="labelImage"){o=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return c;function c(f){if(!o||!o._balanced)return n(f);const h=yr(i.sliceSerialize({start:o.end,end:i.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(f):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(f),t.exit("gfmFootnoteCallLabelMarker"),e(f))}}function lz(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[t[n+1],t[n+2],["enter",i,e],t[n+3],t[n+4],["enter",a,e],["exit",a,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(n,t.length-n+1,...c),t}function sz(t,e,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return c;function c(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?n(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!o||g===null||g===91||Ye(g))return n(g);if(g===93){t.exit("chunkString");const y=t.exit("gfmFootnoteCallString");return a.includes(yr(i.sliceSerialize(y)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(g)}return Ye(g)||(o=!0),s++,t.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(t.consume(g),s++,h):h(g)}}function oz(t,e,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,c;return f;function f(_){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(_){return _===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):n(_)}function d(_){if(o>999||_===93&&!c||_===null||_===91||Ye(_))return n(_);if(_===93){t.exit("chunkString");const v=t.exit("gfmFootnoteDefinitionLabelString");return s=yr(i.sliceSerialize(v)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(_),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),y}return Ye(_)||(c=!0),o++,t.consume(_),_===92?g:d}function g(_){return _===91||_===92||_===93?(t.consume(_),o++,d):d(_)}function y(_){return _===58?(t.enter("definitionMarker"),t.consume(_),t.exit("definitionMarker"),a.includes(s)||a.push(s),we(t,m,"gfmFootnoteDefinitionWhitespace")):n(_)}function m(_){return e(_)}}function cz(t,e,n){return t.check(su,e,t.attempt(iz,e,n))}function uz(t){t.exit("gfmFootnoteDefinition")}function hz(t,e,n){const i=this;return we(t,a,"gfmFootnoteDefinitionIndent",5);function a(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function fz(t){let n=(t||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(o,c){let f=-1;for(;++f<o.length;)if(o[f][0]==="enter"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._close){let h=f;for(;h--;)if(o[h][0]==="exit"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._open&&o[f][1].end.offset-o[f][1].start.offset===o[h][1].end.offset-o[h][1].start.offset){o[f][1].type="strikethroughSequence",o[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[h][1].start),end:Object.assign({},o[f][1].end)},g={type:"strikethroughText",start:Object.assign({},o[h][1].end),end:Object.assign({},o[f][1].start)},y=[["enter",d,c],["enter",o[h][1],c],["exit",o[h][1],c],["enter",g,c]],m=c.parser.constructs.insideSpan.null;m&&Hi(y,y.length,0,sd(m,o.slice(h+1,f),c)),Hi(y,y.length,0,[["exit",g,c],["enter",o[f][1],c],["exit",o[f][1],c],["exit",d,c]]),Hi(o,h-1,f-h+3,y),f=h+y.length-2;break}}for(f=-1;++f<o.length;)o[f][1].type==="strikethroughSequenceTemporary"&&(o[f][1].type="data");return o}function s(o,c,f){const h=this.previous,d=this.events;let g=0;return y;function y(_){return h===126&&d[d.length-1][1].type!=="characterEscape"?f(_):(o.enter("strikethroughSequenceTemporary"),m(_))}function m(_){const v=Qs(h);if(_===126)return g>1?f(_):(o.consume(_),g++,m);if(g<2&&!n)return f(_);const C=o.exit("strikethroughSequenceTemporary"),S=Qs(_);return C._open=!S||S===2&&!!v,C._close=!v||v===2&&!!S,c(_)}}}class dz{constructor(){this.map=[]}add(e,n,i){pz(this,e,n,i)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];i.push(e.slice()),e.length=0;let a=i.pop();for(;a;){for(const s of a)e.push(s);a=i.pop()}this.map.length=0}}function pz(t,e,n,i){let a=0;if(!(n===0&&i.length===0)){for(;a<t.map.length;){if(t.map[a][0]===e){t.map[a][1]+=n,t.map[a][2].push(...i);return}a+=1}t.map.push([e,n,i])}}function gz(t,e){let n=!1;const i=[];for(;e<t.length;){const a=t[e];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return i}function mz(){return{flow:{null:{name:"table",tokenize:yz,resolveAll:bz}}}}function yz(t,e,n){const i=this;let a=0,s=0,o;return c;function c(z){let j=i.events.length-1;for(;j>-1;){const H=i.events[j][1].type;if(H==="lineEnding"||H==="linePrefix")j--;else break}const tt=j>-1?i.events[j][1].type:null,it=tt==="tableHead"||tt==="tableRow"?E:f;return it===E&&i.parser.lazy[i.now().line]?n(z):it(z)}function f(z){return t.enter("tableHead"),t.enter("tableRow"),h(z)}function h(z){return z===124||(o=!0,s+=1),d(z)}function d(z){return z===null?n(z):Wt(z)?s>1?(s=0,i.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(z),t.exit("lineEnding"),m):n(z):fe(z)?we(t,d,"whitespace")(z):(s+=1,o&&(o=!1,a+=1),z===124?(t.enter("tableCellDivider"),t.consume(z),t.exit("tableCellDivider"),o=!0,d):(t.enter("data"),g(z)))}function g(z){return z===null||z===124||Ye(z)?(t.exit("data"),d(z)):(t.consume(z),z===92?y:g)}function y(z){return z===92||z===124?(t.consume(z),g):g(z)}function m(z){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(z):(t.enter("tableDelimiterRow"),o=!1,fe(z)?we(t,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):_(z))}function _(z){return z===45||z===58?C(z):z===124?(o=!0,t.enter("tableCellDivider"),t.consume(z),t.exit("tableCellDivider"),v):N(z)}function v(z){return fe(z)?we(t,C,"whitespace")(z):C(z)}function C(z){return z===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(z),t.exit("tableDelimiterMarker"),S):z===45?(s+=1,S(z)):z===null||Wt(z)?B(z):N(z)}function S(z){return z===45?(t.enter("tableDelimiterFiller"),T(z)):N(z)}function T(z){return z===45?(t.consume(z),T):z===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(z),t.exit("tableDelimiterMarker"),A):(t.exit("tableDelimiterFiller"),A(z))}function A(z){return fe(z)?we(t,B,"whitespace")(z):B(z)}function B(z){return z===124?_(z):z===null||Wt(z)?!o||a!==s?N(z):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(z)):N(z)}function N(z){return n(z)}function E(z){return t.enter("tableRow"),R(z)}function R(z){return z===124?(t.enter("tableCellDivider"),t.consume(z),t.exit("tableCellDivider"),R):z===null||Wt(z)?(t.exit("tableRow"),e(z)):fe(z)?we(t,R,"whitespace")(z):(t.enter("data"),G(z))}function G(z){return z===null||z===124||Ye(z)?(t.exit("data"),R(z)):(t.consume(z),z===92?Z:G)}function Z(z){return z===92||z===124?(t.consume(z),G):G(z)}}function bz(t,e){let n=-1,i=!0,a=0,s=[0,0,0,0],o=[0,0,0,0],c=!1,f=0,h,d,g;const y=new dz;for(;++n<t.length;){const m=t[n],_=m[1];m[0]==="enter"?_.type==="tableHead"?(c=!1,f!==0&&(jv(y,e,f,h,d),d=void 0,f=0),h={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(n,0,[["enter",h,e]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(i=!0,g=void 0,s=[0,0,0,0],o=[0,n+1,0,0],c&&(c=!1,d={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},y.add(n,0,[["enter",d,e]])),a=_.type==="tableDelimiterRow"?2:d?3:1):a&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],g=Bh(y,e,s,a,void 0,g),s=[0,0,0,0]),o[2]=n)):_.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],g=Bh(y,e,s,a,void 0,g)),s=o,o=[s[1],n,0,0])):_.type==="tableHead"?(c=!0,f=n):_.type==="tableRow"||_.type==="tableDelimiterRow"?(f=n,s[1]!==0?(o[0]=o[1],g=Bh(y,e,s,a,n,g)):o[1]!==0&&(g=Bh(y,e,o,a,n,g)),a=0):a&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(o[3]=n)}for(f!==0&&jv(y,e,f,h,d),y.consume(e.events),n=-1;++n<e.events.length;){const m=e.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=gz(e.events,n))}return t}function Bh(t,e,n,i,a,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},Ds(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const f=Ds(e.events,n[1]);if(s={type:o,start:Object.assign({},f),end:Object.assign({},f)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const h=Ds(e.events,n[2]),d=Ds(e.events,n[3]),g={type:c,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(n[2],0,[["enter",g,e]]),i!==2){const y=e.events[n[2]],m=e.events[n[3]];if(y[1].end=Object.assign({},m[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const _=n[2]+1,v=n[3]-n[2]-1;t.add(_,v,[])}}t.add(n[3]+1,0,[["exit",g,e]])}return a!==void 0&&(s.end=Object.assign({},Ds(e.events,a)),t.add(a,0,[["exit",s,e]]),s=void 0),s}function jv(t,e,n,i,a){const s=[],o=Ds(e.events,n);a&&(a.end=Object.assign({},o),s.push(["exit",a,e])),i.end=Object.assign({},o),s.push(["exit",i,e]),t.add(n+1,0,s)}function Ds(t,e){const n=t[e],i=n[0]==="enter"?"start":"end";return n[1][i]}const xz={name:"tasklistCheck",tokenize:vz};function _z(){return{text:{91:xz}}}function vz(t,e,n){const i=this;return a;function a(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(f):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),s)}function s(f){return Ye(f)?(t.enter("taskListCheckValueUnchecked"),t.consume(f),t.exit("taskListCheckValueUnchecked"),o):f===88||f===120?(t.enter("taskListCheckValueChecked"),t.consume(f),t.exit("taskListCheckValueChecked"),o):n(f)}function o(f){return f===93?(t.enter("taskListCheckMarker"),t.consume(f),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),c):n(f)}function c(f){return Wt(f)?e(f):fe(f)?t.check({tokenize:Sz},e,n)(f):n(f)}}function Sz(t,e,n){return we(t,i,"whitespace");function i(a){return a===null?n(a):e(a)}}function wz(t){return s2([VI(),rz(),fz(t),mz(),_z()])}const Cz={};function kz(t){const e=this,n=t||Cz,i=e.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(wz(n)),s.push(jI()),o.push(GI(n))}function Ez(t){A2(t,[/\r?\n|\r/g,Tz])}function Tz(){return{type:"break"}}function Az(){return function(t){Ez(t)}}const Gv=(function(t,e,n){const i=ou(n);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(i(t.children[e],e,t))return t.children[e]}),ql=(function(t){if(t==null)return Oz;if(typeof t=="string")return Nz(t);if(typeof t=="object")return Mz(t);if(typeof t=="function")return hb(t);throw new Error("Expected function, string, or array as `test`")});function Mz(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=ql(t[n]);return hb(i);function i(...a){let s=-1;for(;++s<e.length;)if(e[s].apply(this,a))return!0;return!1}}function Nz(t){return hb(e);function e(n){return n.tagName===t}}function hb(t){return e;function e(n,i,a){return!!(Lz(n)&&t.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function Oz(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function Lz(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const Yv=/\n/g,Wv=/[\t ]+/g,Gm=ql("br"),Vv=ql(Uz),Rz=ql("p"),Xv=ql("tr"),Dz=ql(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",$z,Pz]),Q2=ql(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Bz(t,e){const n=e||{},i="children"in t?t.children:[],a=Q2(t),s=eC(t,{whitespace:n.whitespace||"normal"}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...tC(t,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<i.length;)o.push(...J2(i[c],t,{whitespace:s,breakBefore:c?void 0:a,breakAfter:c<i.length-1?Gm(i[c+1]):a}));const f=[];let h;for(c=-1;++c<o.length;){const d=o[c];typeof d=="number"?h!==void 0&&d>h&&(h=d):d&&(h!==void 0&&h>-1&&f.push(`
79
+ `.repeat(h)||" "),h=-1,f.push(d))}return f.join("")}function J2(t,e,n){return t.type==="element"?Iz(t,e,n):t.type==="text"?n.whitespace==="normal"?tC(t,n):zz(t):[]}function Iz(t,e,n){const i=eC(t,n),a=t.children||[];let s=-1,o=[];if(Dz(t))return o;let c,f;for(Gm(t)||Xv(t)&&Gv(e,t,Xv)?f=`
80
+ `:Rz(t)?(c=2,f=2):Q2(t)&&(c=1,f=1);++s<a.length;)o=o.concat(J2(a[s],t,{whitespace:i,breakBefore:s?void 0:c,breakAfter:s<a.length-1?Gm(a[s+1]):f}));return Vv(t)&&Gv(e,t,Vv)&&o.push(" "),c&&o.unshift(c),f&&o.push(f),o}function tC(t,e){const n=String(t.value),i=[],a=[];let s=0;for(;s<=n.length;){Yv.lastIndex=s;const f=Yv.exec(n),h=f&&"index"in f?f.index:n.length;i.push(Fz(n.slice(s,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?e.breakBefore:!0,h===n.length?e.breakAfter:!0)),s=h+1}let o=-1,c;for(;++o<i.length;)i[o].charCodeAt(i[o].length-1)===8203||o<i.length-1&&i[o+1].charCodeAt(0)===8203?(a.push(i[o]),c=void 0):i[o]?(typeof c=="number"&&a.push(c),a.push(i[o]),c=0):(o===0||o===i.length-1)&&a.push(0);return a}function zz(t){return[String(t.value)]}function Fz(t,e,n){const i=[];let a=0,s;for(;a<t.length;){Wv.lastIndex=a;const o=Wv.exec(t);s=o?o.index:t.length,!a&&!s&&o&&!e&&i.push(""),a!==s&&i.push(t.slice(a,s)),a=o?s+o[0].length:s}return a!==s&&!n&&i.push(""),i.join(" ")}function eC(t,e){if(t.type==="element"){const n=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function $z(t){return!!(t.properties||{}).hidden}function Uz(t){return t.tagName==="td"||t.tagName==="th"}function Pz(t){return t.tagName==="dialog"&&!(t.properties||{}).open}function Hz(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+e.optional(a)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:e.optional(a)+t.IDENT_RE,relevance:0},m=e.optional(a)+t.IDENT_RE+"\\s*\\(",_=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],C=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],B={type:v,keyword:_,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},N={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},E=[N,g,c,n,t.C_BLOCK_COMMENT_MODE,d,h],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:E.concat([{begin:/\(/,end:/\)/,keywords:B,contains:E.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:B,relevance:0},{begin:m,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,h,d,c,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,h,d,c]}]},c,n,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(R,G,N,E,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:B,contains:["self",c]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function qz(t){const e={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Hz(t),i=n.keywords;return i.type=[...i.type,...e.type],i.literal=[...i.literal,...e.literal],i.built_in=[...i.built_in,...e.built_in],i._hints=e._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function jz(t){const e=t.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n,a]};a.contains.push(c);const f={match:/\\"/},h={className:"string",begin:/'/,end:/'/},d={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,n]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=t.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),_={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],C=["true","false"],S={match:/(\/[a-z._-]+)+/},T=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],A=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],N=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:v,literal:C,built_in:[...T,...A,"set","shopt",...B,...N]},contains:[m,t.SHEBANG(),_,g,s,o,S,c,f,h,d,n]}}function Gz(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="("+i+"|"+e.optional(a)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:e.optional(a)+t.IDENT_RE,relevance:0},m=e.optional(a)+t.IDENT_RE+"\\s*\\(",C={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[g,c,n,t.C_BLOCK_COMMENT_MODE,d,h],T={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:S.concat([{begin:/\(/,end:/\)/,keywords:C,contains:S.concat(["self"]),relevance:0}]),relevance:0},A={begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:C,relevance:0},{begin:m,returnBegin:!0,contains:[t.inherit(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,h,d,c,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,h,d,c]}]},c,n,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:C,disableAutodetect:!0,illegal:"</",contains:[].concat(T,A,S,[g,{begin:t.IDENT_RE+"::",keywords:C},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:g,strings:h,keywords:C}}}function Yz(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",a="[a-zA-Z_]\\w*::",o="(?!struct)("+i+"|"+e.optional(a)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:e.optional(a)+t.IDENT_RE,relevance:0},m=e.optional(a)+t.IDENT_RE+"\\s*\\(",_=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],C=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],B={type:v,keyword:_,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},N={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},E=[N,g,c,n,t.C_BLOCK_COMMENT_MODE,d,h],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:B,contains:E.concat([{begin:/\(/,end:/\)/,keywords:B,contains:E.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+o+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:B,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:B,relevance:0},{begin:m,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,h,d,c,{begin:/\(/,end:/\)/,keywords:B,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,h,d,c]}]},c,n,t.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:B,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(R,G,N,E,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:B,contains:["self",c]},{begin:t.IDENT_RE+"::",keywords:B},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Wz(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],a=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:a.concat(s),built_in:e,literal:i},c=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=t.inherit(d,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:o},m=t.inherit(y,{illegal:/\n/}),_={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,m]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},C=t.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});y.contains=[v,_,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.C_BLOCK_COMMENT_MODE],m.contains=[C,_,g,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const S={variants:[h,v,_,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},T={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},A=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",B={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,T,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,T,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+A+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,T],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[S,f,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},B]}}const Vz=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Xz=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Kz=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Zz=[...Xz,...Kz],Qz=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Jz=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),t4=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),e4=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function n4(t){const e=t.regex,n=Vz(t),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",c=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Jz.join("|")+")"},{begin:":(:)?("+t4.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+e4.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...c,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...c,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Qz.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...c,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Zz.join("|")+")\\b"}]}}function i4(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function r4(t){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}function a4(t){const e=t.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:e.concat(n,e.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function l4(t){const e=t.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},i=t.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,s,a,o,n,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,d=/'[^']*'/,g=e.either(f,h,d),y=e.concat(g,"(\\s*\\.\\s*",g,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[i,c,s,a,o,n]}}]}}var Bs="[0-9](_*[0-9])*",Ih=`\\.(${Bs})`,zh="[0-9a-fA-F](_*[0-9a-fA-F])*",Kv={className:"number",variants:[{begin:`(\\b(${Bs})((${Ih})|\\.)?|(${Ih}))[eE][+-]?(${Bs})[fFdD]?\\b`},{begin:`\\b(${Bs})((${Ih})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ih})[fFdD]?\\b`},{begin:`\\b(${Bs})[fFdD]\\b`},{begin:`\\b0[xX]((${zh})\\.?|(${zh})?\\.(${zh}))[pP][+-]?(${Bs})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${zh})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function nC(t,e,n){return n===-1?"":t.replace(e,i=>nC(t,e,n-1))}function s4(t){const e=t.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+nC("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),f={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[h,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,Kv,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},Kv,h]}}const Zv="[A-Za-z$_][0-9A-Za-z$_]*",o4=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],c4=["true","false","null","undefined","NaN","Infinity"],iC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],aC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],u4=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],h4=[].concat(aC,iC,rC);function f4(t){const e=t.regex,n=($,{after:lt})=>{const D="</"+$[0].slice(1);return $.input.indexOf(D,lt)!==-1},i=Zv,a={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:($,lt)=>{const D=$[0].length+$.index,I=$.input[D];if(I==="<"||I===","){lt.ignoreMatch();return}I===">"&&(n($,{after:D})||lt.ignoreMatch());let K;const O=$.input.substring(D);if(K=O.match(/^\s*=/)){lt.ignoreMatch();return}if((K=O.match(/^\s+extends\s+/))&&K.index===0){lt.ignoreMatch();return}}},c={$pattern:Zv,keyword:o4,literal:c4,built_in:h4,"variable.language":u4},f="[0-9](_?[0-9])*",h=`\\.(${f})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,y],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,y]},T={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},A=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,m,_,v,C,{match:/\$\d+/},g];y.contains=A.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(A)});const B=[].concat(T,y.contains),N=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(B)}]),E={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:N},R={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...iC,...rC]}},Z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function tt($){return e.concat("(?!",$.join("|"),")")}const it={match:e.concat(/\b/,tt([...aC,"super","import"].map($=>`${$}\\s*\\(`)),i,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:N,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),Z,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,m,_,v,C,T,{match:/\$\d+/},g,G,{scope:"attr",match:i+e.lookahead(":"),relevance:0},U,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[T,t.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:N}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,t.inherit(t.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},it,j,R,F,{match:/\$[(.]/}]}}function d4(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],a={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[e,n,t.QUOTE_STRING_MODE,a,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Is="[0-9](_*[0-9])*",Fh=`\\.(${Is})`,$h="[0-9a-fA-F](_*[0-9a-fA-F])*",p4={className:"number",variants:[{begin:`(\\b(${Is})((${Fh})|\\.)?|(${Fh}))[eE][+-]?(${Is})[fFdD]?\\b`},{begin:`\\b(${Is})((${Fh})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Fh})[fFdD]?\\b`},{begin:`\\b(${Is})[fFdD]\\b`},{begin:`\\b0[xX]((${$h})\\.?|(${$h})?\\.(${$h}))[pP][+-]?(${Is})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${$h})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function g4(t){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,a]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,s,a]}]};a.contains.push(o);const c={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},f={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"}),"self"]}]},h=p4,d=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=g;return y.variants[1].contains=[g],g.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,d,n,i,c,f,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,t.C_LINE_COMMENT_MODE,d],relevance:0},t.C_LINE_COMMENT_MODE,d,c,f,o,t.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,f]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
81
+ `},h]}}const m4=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),y4=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],b4=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],x4=[...y4,...b4],_4=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),lC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),sC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),v4=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),S4=lC.concat(sC).sort().reverse();function w4(t){const e=m4(t),n=S4,i="and or not only",a="[\\w-]+",s="("+a+"|@\\{"+a+"\\})",o=[],c=[],f=function(A){return{className:"string",begin:"~?"+A+".*?"+A}},h=function(A,B,N){return{className:A,begin:B,relevance:N}},d={$pattern:/[a-z-]+/,keyword:i,attribute:_4.join(" ")},g={begin:"\\(",end:"\\)",contains:c,keywords:d,relevance:0};c.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,f("'"),f('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,g,h("variable","@@?"+a,10),h("variable","@\\{"+a+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:a+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const y=c.concat({begin:/\{/,end:/\}/,contains:o}),m={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(c)},_={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+v4.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:c}}]},v={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:c,relevance:0}},C={className:"variable",variants:[{begin:"@"+a+"\\s*:",relevance:15},{begin:"@"+a}],starts:{end:"[;}]",returnEnd:!0,contains:y}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,m,h("keyword","all\\b"),h("variable","@\\{"+a+"\\}"),{begin:"\\b("+x4.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,h("selector-tag",s,0),h("selector-id","#"+s),h("selector-class","\\."+s,0),h("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+lC.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+sC.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:y},{begin:"!important"},e.FUNCTION_DISPATCH]},T={begin:a+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[S]};return o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,v,C,T,_,S,m,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function C4(t){const e="\\[=*\\[",n="\\]=*\\]",i={begin:e,end:n,contains:["self"]},a=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:n,contains:[i],relevance:5}])}}function k4(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e,n]},a={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,e,n,i,a,s,o]}}function E4(t){const e=t.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},a={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=t.inherit(h,{contains:[]}),y=t.inherit(d,{contains:[]});h.contains.push(y),d.contains.push(g);let m=[n,f];return[h,d,g,y].forEach(S=>{S.contains=S.contains.concat(m)}),m=m.concat(h,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},n,s,h,d,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},a,i,f,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function T4(t){const e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},f={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[e,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function A4(t){const e=t.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,a={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},o={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[t.BACKSLASH_ESCAPE,s,f],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],y=(v,C,S="\\1")=>{const T=S==="\\1"?S:e.concat(S,C);return e.concat(e.concat("(?:",v,")"),C,/(?:\\.|[^\\\/])*?/,T,/(?:\\.|[^\\\/])*?/,S,i)},m=(v,C,S)=>e.concat(e.concat("(?:",v,")"),C,/(?:\\.|[^\\\/])*?/,S,i),_=[f,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:y("s|tr|y",e.either(...g,{capture:!0}))},{begin:y("s|tr|y","\\(","\\)")},{begin:y("s|tr|y","\\[","\\]")},{begin:y("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",e.either(...g,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,c,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=_,o.contains=_,{name:"Perl",aliases:["pl","pm"],keywords:a,contains:_}}function M4(t){const e=t.regex,n=/(?![A-Za-z0-9])(?![$])/,i=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),a=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s=e.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+i},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=t.inherit(t.APOS_STRING_MODE,{illegal:null}),d=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(f)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(f),"on:begin":(H,F)=>{F.data._beginMatch=H[1]||H[2]},"on:end":(H,F)=>{F.data._beginMatch!==H[1]&&F.ignoreMatch()}},y=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[
82
+ ]`,_={scope:"string",variants:[d,h,g,y]},v={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},C=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],T=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],B={keyword:S,literal:(H=>{const F=[];return H.forEach(L=>{F.push(L),L.toLowerCase()===L?F.push(L.toUpperCase()):F.push(L.toLowerCase())}),F})(C),built_in:T},N=H=>H.map(F=>F.replace(/\|\d+$/,"")),E={variants:[{match:[/new/,e.concat(m,"+"),e.concat("(?!",N(T).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},R=e.concat(i,"\\b(?!\\()"),G={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,e.concat(/::/,e.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[a,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Z={scope:"attr",match:e.concat(i,e.lookahead(":"),e.lookahead(/(?!::)/))},z={relevance:0,begin:/\(/,end:/\)/,keywords:B,contains:[Z,o,G,t.C_BLOCK_COMMENT_MODE,_,v,E]},j={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",N(S).join("\\b|"),"|",N(T).join("\\b|"),"\\b)"),i,e.concat(m,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[z]};z.contains.push(j);const tt=[Z,G,t.C_BLOCK_COMMENT_MODE,_,v,E],it={begin:e.concat(/#\[\s*\\?/,e.either(a,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...tt]},...tt,{scope:"meta",variants:[{match:a},{match:s}]}]};return{case_insensitive:!1,keywords:B,contains:[it,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},c,{scope:"variable.language",match:/\$this\b/},o,j,G,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},E,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:B,contains:["self",it,o,G,t.C_BLOCK_COMMENT_MODE,_,v]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},_,v]}}function N4(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function O4(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function L4(t){const e=t.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},d={begin:/\{\{/,relevance:0},g={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,d,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,h]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",m=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,_=`\\b|${i.join("|")}`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${m}))[eE][+-]?(${y})[jJ]?(?=${_})`},{begin:`(${m})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${_})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${_})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${_})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${_})`},{begin:`\\b(${y})[jJ](?=${_})`}]},C={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",f,v,g,t.HASH_COMMENT_MODE]}]};return h.contains=[g,v,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[f,v,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,C,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,S,g]}]}}function R4(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function D4(t){const e=t.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),a=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[a,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:a},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function B4(t){const e=t.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),a=e.concat(i,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},h=[t.COMMENT("#","$",{contains:[c]}),t.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},g={className:"string",contains:[t.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,d]})]}]},y="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",_={className:"number",relevance:0,variants:[{begin:`\\b(${y})(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},v={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},E=[g,{variants:[{match:[/class\s+/,a,/\s+<\s+/,a]},{match:[/\b(class|module)\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,a],scope:{2:"title.class"},keywords:o},{relevance:0,match:[a,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:n}],relevance:0},_,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,h),relevance:0}].concat(f,h);d.contains=E,v.contains=E;const z=[{begin:/^\s*=>/,starts:{end:"$",contains:E}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:E}}];return h.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(z).concat(h).concat(E)}}function I4(t){const e=t.regex,n=/(r#)?/,i=e.concat(n,t.UNDERSCORE_IDENT_RE),a=e.concat(n,t.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,e.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],f=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:d,keyword:c,literal:f,built_in:h},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:d}},{className:"punctuation",begin:"->"},s]}}const z4=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),F4=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],$4=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],U4=[...F4,...$4],P4=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),H4=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),q4=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),j4=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function G4(t){const e=z4(t),n=q4,i=H4,a="@[a-z-]+",s="and or not only",c={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+U4.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+j4.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,c,e.HEXCOLOR,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:a,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:P4.join(" ")},contains:[{begin:a,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},c,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function Y4(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function W4(t){const e=t.regex,n=t.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],y=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],m=d,_=[...h,...f].filter(N=>!d.includes(N)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={match:e.concat(/\b/,e.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function T(N){return e.concat(/\b/,e.either(...N.map(E=>E.replace(/\s+/,"\\s+"))),/\b/)}const A={scope:"keyword",match:T(y),relevance:0};function B(N,{exceptions:E,when:R}={}){const G=R;return E=E||[],N.map(Z=>Z.match(/\|\d+$/)||E.includes(Z)?Z:G(Z)?`${Z}|0`:Z)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:B(_,{when:N=>N.length<3}),literal:s,type:c,built_in:g},contains:[{scope:"type",match:T(o)},A,S,v,i,a,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,C]}}function oC(t){return t?typeof t=="string"?t:t.source:null}function pc(t){return Pe("(?=",t,")")}function Pe(...t){return t.map(n=>oC(n)).join("")}function V4(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function li(...t){return"("+(V4(t).capture?"":"?:")+t.map(i=>oC(i)).join("|")+")"}const fb=t=>Pe(/\b/,t,/\w$/.test(t)?/\b/:/\B/),X4=["Protocol","Type"].map(fb),Qv=["init","self"].map(fb),K4=["Any","Self"],cm=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Jv=["false","nil","true"],Z4=["assignment","associativity","higherThan","left","lowerThan","none","right"],Q4=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],tS=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],cC=li(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),uC=li(cC,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),um=Pe(cC,uC,"*"),hC=li(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),vf=li(hC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Tr=Pe(hC,vf,"*"),Uh=Pe(/[A-Z]/,vf,"*"),J4=["attached","autoclosure",Pe(/convention\(/,li("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Pe(/objc\(/,Tr,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],tF=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function eF(t){const e={match:/\s+/,relevance:0},n=t.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[t.C_LINE_COMMENT_MODE,n],a={match:[/\./,li(...X4,...Qv)],className:{2:"keyword"}},s={match:Pe(/\./,li(...cm)),relevance:0},o=cm.filter(oe=>typeof oe=="string").concat(["_|0"]),c=cm.filter(oe=>typeof oe!="string").concat(K4).map(fb),f={variants:[{className:"keyword",match:li(...c,...Qv)}]},h={$pattern:li(/\b\w+/,/#\w+/),keyword:o.concat(Q4),literal:Jv},d=[a,s,f],g={match:Pe(/\./,li(...tS)),relevance:0},y={className:"built_in",match:Pe(/\b/,li(...tS),/(?=\()/)},m=[g,y],_={match:/->/,relevance:0},v={className:"operator",relevance:0,variants:[{match:um},{match:`\\.(\\.|${uC})+`}]},C=[_,v],S="([0-9]_*)+",T="([0-9a-fA-F]_*)+",A={className:"number",relevance:0,variants:[{match:`\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b`},{match:`\\b0x(${T})(\\.(${T}))?([pP][+-]?(${S}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},B=(oe="")=>({className:"subst",variants:[{match:Pe(/\\/,oe,/[0\\tnr"']/)},{match:Pe(/\\/,oe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),N=(oe="")=>({className:"subst",match:Pe(/\\/,oe,/[\t ]*(?:[\r\n]|\r\n)/)}),E=(oe="")=>({className:"subst",label:"interpol",begin:Pe(/\\/,oe,/\(/),end:/\)/}),R=(oe="")=>({begin:Pe(oe,/"""/),end:Pe(/"""/,oe),contains:[B(oe),N(oe),E(oe)]}),G=(oe="")=>({begin:Pe(oe,/"/),end:Pe(/"/,oe),contains:[B(oe),E(oe)]}),Z={className:"string",variants:[R(),R("#"),R("##"),R("###"),G(),G("#"),G("##"),G("###")]},z=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],j={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:z},tt=oe=>{const ni=Pe(oe,/\//),kn=Pe(/\//,oe);return{begin:ni,end:kn,contains:[...z,{scope:"comment",begin:`#(?!.*${kn})`,end:/$/}]}},it={scope:"regexp",variants:[tt("###"),tt("##"),tt("#"),j]},H={match:Pe(/`/,Tr,/`/)},F={className:"variable",match:/\$\d+/},L={className:"variable",match:`\\$${vf}+`},U=[H,F,L],$={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:tF,contains:[...C,A,Z]}]}},lt={scope:"keyword",match:Pe(/@/,li(...J4),pc(li(/\(/,/\s+/)))},D={scope:"meta",match:Pe(/@/,Tr)},I=[$,lt,D],K={match:pc(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Pe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,vf,"+")},{className:"type",match:Uh,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Pe(/\s+&\s+/,pc(Uh)),relevance:0}]},O={begin:/</,end:/>/,keywords:h,contains:[...i,...d,...I,_,K]};K.contains.push(O);const ft={match:Pe(Tr,/\s*:/),keywords:"_|0",relevance:0},bt={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",ft,...i,it,...d,...m,...C,A,Z,...U,...I,K]},pt={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,K]},St={begin:li(pc(Pe(Tr,/\s*:/)),pc(Pe(Tr,/\s+/,Tr,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Tr}]},Ft={begin:/\(/,end:/\)/,keywords:h,contains:[St,...i,...d,...C,A,Z,...I,K,bt],endsParent:!0,illegal:/["']/},Ut={match:[/(func|macro)/,/\s+/,li(H.match,Tr,um)],className:{1:"keyword",3:"title.function"},contains:[pt,Ft,e],illegal:[/\[/,/%/]},Jt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[pt,Ft,e],illegal:/\[|%/},ve={match:[/operator/,/\s+/,um],className:{1:"keyword",3:"title"}},hn={begin:[/precedencegroup/,/\s+/,Uh],className:{1:"keyword",3:"title"},contains:[K],keywords:[...Z4,...Jv],end:/}/},fn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},sn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Dn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Tr,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[pt,...d,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:Uh},...d],relevance:0}]};for(const oe of Z.variants){const ni=oe.contains.find(ii=>ii.label==="interpol");ni.keywords=h;const kn=[...d,...m,...C,A,Z,...U];ni.contains=[...kn,{begin:/\(/,end:/\)/,contains:["self",...kn]}]}return{name:"Swift",keywords:h,contains:[...i,Ut,Jt,fn,sn,Dn,ve,hn,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},it,...d,...m,...C,A,Z,...U,...I,K,bt]}}const Sf="[A-Za-z$_][0-9A-Za-z$_]*",fC=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],dC=["true","false","null","undefined","NaN","Infinity"],pC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],gC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],yC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],bC=[].concat(mC,pC,gC);function nF(t){const e=t.regex,n=($,{after:lt})=>{const D="</"+$[0].slice(1);return $.input.indexOf(D,lt)!==-1},i=Sf,a={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:($,lt)=>{const D=$[0].length+$.index,I=$.input[D];if(I==="<"||I===","){lt.ignoreMatch();return}I===">"&&(n($,{after:D})||lt.ignoreMatch());let K;const O=$.input.substring(D);if(K=O.match(/^\s*=/)){lt.ignoreMatch();return}if((K=O.match(/^\s+extends\s+/))&&K.index===0){lt.ignoreMatch();return}}},c={$pattern:Sf,keyword:fC,literal:dC,built_in:bC,"variable.language":yC},f="[0-9](_?[0-9])*",h=`\\.(${f})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,y],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,y]},T={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},A=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,m,_,v,C,{match:/\$\d+/},g];y.contains=A.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(A)});const B=[].concat(T,y.contains),N=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(B)}]),E={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:N},R={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...pC,...gC]}},Z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},j={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function tt($){return e.concat("(?!",$.join("|"),")")}const it={match:e.concat(/\b/,tt([...mC,"super","import"].map($=>`${$}\\s*\\(`)),i,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:N,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),Z,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,m,_,v,C,T,{match:/\$\d+/},g,G,{scope:"attr",match:i+e.lookahead(":"),relevance:0},U,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[T,t.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:N}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,t.inherit(t.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},it,j,R,F,{match:/\$[(.]/}]}}function iF(t){const e=t.regex,n=nF(t),i=Sf,a=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:a},contains:[n.exports.CLASS_REFERENCE]},c={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:Sf,keyword:fC.concat(f),literal:dC,built_in:bC.concat(a),"variable.language":yC},d={className:"meta",begin:"@"+i},g=(v,C,S)=>{const T=v.contains.findIndex(A=>A.label===C);if(T===-1)throw new Error("can not find mode to replace");v.contains.splice(T,1,S)};Object.assign(n.keywords,h),n.exports.PARAMS_CONTAINS.push(d);const y=n.contains.find(v=>v.scope==="attr"),m=Object.assign({},y,{match:e.concat(i,e.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,y,m]),n.contains=n.contains.concat([d,s,o,m]),g(n,"shebang",t.SHEBANG()),g(n,"use_strict",c);const _=n.contains.find(v=>v.label==="func.def");return _.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function rF(t){const e=t.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},a=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:e.concat(/# */,e.either(s,a),/ *#/)},{begin:e.concat(/# */,c,/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,e.either(s,a),/ +/,e.either(o,c),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},g=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),y=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,f,h,d,g,y,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[y]}]}}function aF(t){t.regex;const e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");const n=t.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],a={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,a,t.QUOTE_STRING_MODE,f,h,c]}}function lF(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(s,{begin:/\(/,end:/\)/}),c=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,f,c,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,f,c]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function sF(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,a]},c=t.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},m={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},_={begin:/\{/,end:/\}/,contains:[m],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[m],illegal:"\\n",relevance:0},C=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},y,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},_,v,s,o],S=[...C];return S.pop(),S.push(c),m.contains=S,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}const oF={arduino:qz,bash:jz,c:Gz,cpp:Yz,csharp:Wz,css:n4,diff:i4,go:r4,graphql:a4,ini:l4,java:s4,javascript:f4,json:d4,kotlin:g4,less:w4,lua:C4,makefile:k4,markdown:E4,objectivec:T4,perl:A4,php:M4,"php-template":N4,plaintext:O4,python:L4,"python-repl":R4,r:D4,ruby:B4,rust:I4,scss:G4,shell:Y4,sql:W4,swift:eF,typescript:iF,vbnet:rF,wasm:aF,xml:lF,yaml:sF};var hm,eS;function cF(){if(eS)return hm;eS=1;function t(q){return q instanceof Map?q.clear=q.delete=q.set=function(){throw new Error("map is read-only")}:q instanceof Set&&(q.add=q.clear=q.delete=function(){throw new Error("set is read-only")}),Object.freeze(q),Object.getOwnPropertyNames(q).forEach(ot=>{const mt=q[ot],jt=typeof mt;(jt==="object"||jt==="function")&&!Object.isFrozen(mt)&&t(mt)}),q}class e{constructor(ot){ot.data===void 0&&(ot.data={}),this.data=ot.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(q){return q.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(q,...ot){const mt=Object.create(null);for(const jt in q)mt[jt]=q[jt];return ot.forEach(function(jt){for(const je in jt)mt[je]=jt[je]}),mt}const a="</span>",s=q=>!!q.scope,o=(q,{prefix:ot})=>{if(q.startsWith("language:"))return q.replace("language:","language-");if(q.includes(".")){const mt=q.split(".");return[`${ot}${mt.shift()}`,...mt.map((jt,je)=>`${jt}${"_".repeat(je+1)}`)].join(" ")}return`${ot}${q}`};class c{constructor(ot,mt){this.buffer="",this.classPrefix=mt.classPrefix,ot.walk(this)}addText(ot){this.buffer+=n(ot)}openNode(ot){if(!s(ot))return;const mt=o(ot.scope,{prefix:this.classPrefix});this.span(mt)}closeNode(ot){s(ot)&&(this.buffer+=a)}value(){return this.buffer}span(ot){this.buffer+=`<span class="${ot}">`}}const f=(q={})=>{const ot={children:[]};return Object.assign(ot,q),ot};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ot){this.top.children.push(ot)}openNode(ot){const mt=f({scope:ot});this.add(mt),this.stack.push(mt)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ot){return this.constructor._walk(ot,this.rootNode)}static _walk(ot,mt){return typeof mt=="string"?ot.addText(mt):mt.children&&(ot.openNode(mt),mt.children.forEach(jt=>this._walk(ot,jt)),ot.closeNode(mt)),ot}static _collapse(ot){typeof ot!="string"&&ot.children&&(ot.children.every(mt=>typeof mt=="string")?ot.children=[ot.children.join("")]:ot.children.forEach(mt=>{h._collapse(mt)}))}}class d extends h{constructor(ot){super(),this.options=ot}addText(ot){ot!==""&&this.add(ot)}startScope(ot){this.openNode(ot)}endScope(){this.closeNode()}__addSublanguage(ot,mt){const jt=ot.root;mt&&(jt.scope=`language:${mt}`),this.add(jt)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(q){return q?typeof q=="string"?q:q.source:null}function y(q){return v("(?=",q,")")}function m(q){return v("(?:",q,")*")}function _(q){return v("(?:",q,")?")}function v(...q){return q.map(mt=>g(mt)).join("")}function C(q){const ot=q[q.length-1];return typeof ot=="object"&&ot.constructor===Object?(q.splice(q.length-1,1),ot):{}}function S(...q){return"("+(C(q).capture?"":"?:")+q.map(jt=>g(jt)).join("|")+")"}function T(q){return new RegExp(q.toString()+"|").exec("").length-1}function A(q,ot){const mt=q&&q.exec(ot);return mt&&mt.index===0}const B=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function N(q,{joinWith:ot}){let mt=0;return q.map(jt=>{mt+=1;const je=mt;let Ne=g(jt),Tt="";for(;Ne.length>0;){const Ct=B.exec(Ne);if(!Ct){Tt+=Ne;break}Tt+=Ne.substring(0,Ct.index),Ne=Ne.substring(Ct.index+Ct[0].length),Ct[0][0]==="\\"&&Ct[1]?Tt+="\\"+String(Number(Ct[1])+je):(Tt+=Ct[0],Ct[0]==="("&&mt++)}return Tt}).map(jt=>`(${jt})`).join(ot)}const E=/\b\B/,R="[a-zA-Z]\\w*",G="[a-zA-Z_]\\w*",Z="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",j="\\b(0b[01]+)",tt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",it=(q={})=>{const ot=/^#![ ]*\//;return q.binary&&(q.begin=v(ot,/.*\b/,q.binary,/\b.*/)),i({scope:"meta",begin:ot,end:/$/,relevance:0,"on:begin":(mt,jt)=>{mt.index!==0&&jt.ignoreMatch()}},q)},H={begin:"\\\\[\\s\\S]",relevance:0},F={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[H]},L={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[H]},U={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(q,ot,mt={}){const jt=i({scope:"comment",begin:q,end:ot,contains:[]},mt);jt.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const je=S("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return jt.contains.push({begin:v(/[ ]+/,"(",je,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),jt},lt=$("//","$"),D=$("/\\*","\\*/"),I=$("#","$"),K={scope:"number",begin:Z,relevance:0},O={scope:"number",begin:z,relevance:0},ft={scope:"number",begin:j,relevance:0},bt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[H,{begin:/\[/,end:/\]/,relevance:0,contains:[H]}]},pt={scope:"title",begin:R,relevance:0},St={scope:"title",begin:G,relevance:0},Ft={begin:"\\.\\s*"+G,relevance:0};var Jt=Object.freeze({__proto__:null,APOS_STRING_MODE:F,BACKSLASH_ESCAPE:H,BINARY_NUMBER_MODE:ft,BINARY_NUMBER_RE:j,COMMENT:$,C_BLOCK_COMMENT_MODE:D,C_LINE_COMMENT_MODE:lt,C_NUMBER_MODE:O,C_NUMBER_RE:z,END_SAME_AS_BEGIN:function(q){return Object.assign(q,{"on:begin":(ot,mt)=>{mt.data._beginMatch=ot[1]},"on:end":(ot,mt)=>{mt.data._beginMatch!==ot[1]&&mt.ignoreMatch()}})},HASH_COMMENT_MODE:I,IDENT_RE:R,MATCH_NOTHING_RE:E,METHOD_GUARD:Ft,NUMBER_MODE:K,NUMBER_RE:Z,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:L,REGEXP_MODE:bt,RE_STARTERS_RE:tt,SHEBANG:it,TITLE_MODE:pt,UNDERSCORE_IDENT_RE:G,UNDERSCORE_TITLE_MODE:St});function ve(q,ot){q.input[q.index-1]==="."&&ot.ignoreMatch()}function hn(q,ot){q.className!==void 0&&(q.scope=q.className,delete q.className)}function fn(q,ot){ot&&q.beginKeywords&&(q.begin="\\b("+q.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",q.__beforeBegin=ve,q.keywords=q.keywords||q.beginKeywords,delete q.beginKeywords,q.relevance===void 0&&(q.relevance=0))}function sn(q,ot){Array.isArray(q.illegal)&&(q.illegal=S(...q.illegal))}function Dn(q,ot){if(q.match){if(q.begin||q.end)throw new Error("begin & end are not supported with match");q.begin=q.match,delete q.match}}function oe(q,ot){q.relevance===void 0&&(q.relevance=1)}const ni=(q,ot)=>{if(!q.beforeMatch)return;if(q.starts)throw new Error("beforeMatch cannot be used with starts");const mt=Object.assign({},q);Object.keys(q).forEach(jt=>{delete q[jt]}),q.keywords=mt.keywords,q.begin=v(mt.beforeMatch,y(mt.begin)),q.starts={relevance:0,contains:[Object.assign(mt,{endsParent:!0})]},q.relevance=0,delete mt.beforeMatch},kn=["of","and","for","in","not","or","if","then","parent","list","value"],ii="keyword";function di(q,ot,mt=ii){const jt=Object.create(null);return typeof q=="string"?je(mt,q.split(" ")):Array.isArray(q)?je(mt,q):Object.keys(q).forEach(function(Ne){Object.assign(jt,di(q[Ne],ot,Ne))}),jt;function je(Ne,Tt){ot&&(Tt=Tt.map(Ct=>Ct.toLowerCase())),Tt.forEach(function(Ct){const Yt=Ct.split("|");jt[Yt[0]]=[Ne,vr(Yt[0],Yt[1])]})}}function vr(q,ot){return ot?Number(ot):ma(q)?0:1}function ma(q){return kn.includes(q.toLowerCase())}const ya={},He=q=>{console.error(q)},Gi=(q,...ot)=>{console.log(`WARN: ${q}`,...ot)},at=(q,ot)=>{ya[`${q}/${ot}`]||(console.log(`Deprecated as of ${q}. ${ot}`),ya[`${q}/${ot}`]=!0)},gt=new Error;function Pt(q,ot,{key:mt}){let jt=0;const je=q[mt],Ne={},Tt={};for(let Ct=1;Ct<=ot.length;Ct++)Tt[Ct+jt]=je[Ct],Ne[Ct+jt]=!0,jt+=T(ot[Ct-1]);q[mt]=Tt,q[mt]._emit=Ne,q[mt]._multi=!0}function ne(q){if(Array.isArray(q.begin)){if(q.skip||q.excludeBegin||q.returnBegin)throw He("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),gt;if(typeof q.beginScope!="object"||q.beginScope===null)throw He("beginScope must be object"),gt;Pt(q,q.begin,{key:"beginScope"}),q.begin=N(q.begin,{joinWith:""})}}function be(q){if(Array.isArray(q.end)){if(q.skip||q.excludeEnd||q.returnEnd)throw He("skip, excludeEnd, returnEnd not compatible with endScope: {}"),gt;if(typeof q.endScope!="object"||q.endScope===null)throw He("endScope must be object"),gt;Pt(q,q.end,{key:"endScope"}),q.end=N(q.end,{joinWith:""})}}function En(q){q.scope&&typeof q.scope=="object"&&q.scope!==null&&(q.beginScope=q.scope,delete q.scope)}function pi(q){En(q),typeof q.beginScope=="string"&&(q.beginScope={_wrap:q.beginScope}),typeof q.endScope=="string"&&(q.endScope={_wrap:q.endScope}),ne(q),be(q)}function on(q){function ot(Tt,Ct){return new RegExp(g(Tt),"m"+(q.case_insensitive?"i":"")+(q.unicodeRegex?"u":"")+(Ct?"g":""))}class mt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ct,Yt){Yt.position=this.position++,this.matchIndexes[this.matchAt]=Yt,this.regexes.push([Yt,Ct]),this.matchAt+=T(Ct)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ct=this.regexes.map(Yt=>Yt[1]);this.matcherRe=ot(N(Ct,{joinWith:"|"}),!0),this.lastIndex=0}exec(Ct){this.matcherRe.lastIndex=this.lastIndex;const Yt=this.matcherRe.exec(Ct);if(!Yt)return null;const an=Yt.findIndex((In,Ur)=>Ur>0&&In!==void 0),xe=this.matchIndexes[an];return Yt.splice(0,an),Object.assign(Yt,xe)}}class jt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ct){if(this.multiRegexes[Ct])return this.multiRegexes[Ct];const Yt=new mt;return this.rules.slice(Ct).forEach(([an,xe])=>Yt.addRule(an,xe)),Yt.compile(),this.multiRegexes[Ct]=Yt,Yt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ct,Yt){this.rules.push([Ct,Yt]),Yt.type==="begin"&&this.count++}exec(Ct){const Yt=this.getMatcher(this.regexIndex);Yt.lastIndex=this.lastIndex;let an=Yt.exec(Ct);if(this.resumingScanAtSamePosition()&&!(an&&an.index===this.lastIndex)){const xe=this.getMatcher(0);xe.lastIndex=this.lastIndex+1,an=xe.exec(Ct)}return an&&(this.regexIndex+=an.position+1,this.regexIndex===this.count&&this.considerAll()),an}}function je(Tt){const Ct=new jt;return Tt.contains.forEach(Yt=>Ct.addRule(Yt.begin,{rule:Yt,type:"begin"})),Tt.terminatorEnd&&Ct.addRule(Tt.terminatorEnd,{type:"end"}),Tt.illegal&&Ct.addRule(Tt.illegal,{type:"illegal"}),Ct}function Ne(Tt,Ct){const Yt=Tt;if(Tt.isCompiled)return Yt;[hn,Dn,pi,ni].forEach(xe=>xe(Tt,Ct)),q.compilerExtensions.forEach(xe=>xe(Tt,Ct)),Tt.__beforeBegin=null,[fn,sn,oe].forEach(xe=>xe(Tt,Ct)),Tt.isCompiled=!0;let an=null;return typeof Tt.keywords=="object"&&Tt.keywords.$pattern&&(Tt.keywords=Object.assign({},Tt.keywords),an=Tt.keywords.$pattern,delete Tt.keywords.$pattern),an=an||/\w+/,Tt.keywords&&(Tt.keywords=di(Tt.keywords,q.case_insensitive)),Yt.keywordPatternRe=ot(an,!0),Ct&&(Tt.begin||(Tt.begin=/\B|\b/),Yt.beginRe=ot(Yt.begin),!Tt.end&&!Tt.endsWithParent&&(Tt.end=/\B|\b/),Tt.end&&(Yt.endRe=ot(Yt.end)),Yt.terminatorEnd=g(Yt.end)||"",Tt.endsWithParent&&Ct.terminatorEnd&&(Yt.terminatorEnd+=(Tt.end?"|":"")+Ct.terminatorEnd)),Tt.illegal&&(Yt.illegalRe=ot(Tt.illegal)),Tt.contains||(Tt.contains=[]),Tt.contains=[].concat(...Tt.contains.map(function(xe){return We(xe==="self"?Tt:xe)})),Tt.contains.forEach(function(xe){Ne(xe,Yt)}),Tt.starts&&Ne(Tt.starts,Ct),Yt.matcher=je(Yt),Yt}if(q.compilerExtensions||(q.compilerExtensions=[]),q.contains&&q.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return q.classNameAliases=i(q.classNameAliases||{}),Ne(q)}function qe(q){return q?q.endsWithParent||qe(q.starts):!1}function We(q){return q.variants&&!q.cachedVariants&&(q.cachedVariants=q.variants.map(function(ot){return i(q,{variants:null},ot)})),q.cachedVariants?q.cachedVariants:qe(q)?i(q,{starts:q.starts?i(q.starts):null}):Object.isFrozen(q)?i(q):q}var pe="11.11.1";class gi extends Error{constructor(ot,mt){super(ot),this.name="HTMLInjectionError",this.html=mt}}const Tn=n,Xl=i,Yi=Symbol("nomatch"),sr=7,$r=function(q){const ot=Object.create(null),mt=Object.create(null),jt=[];let je=!0;const Ne="Could not find the language '{}', did you forget to load/include a language module?",Tt={disableAutodetect:!0,name:"Plain text",contains:[]};let Ct={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Yt(yt){return Ct.noHighlightRe.test(yt)}function an(yt){let wt=yt.className+" ";wt+=yt.parentNode?yt.parentNode.className:"";const ae=Ct.languageDetectRe.exec(wt);if(ae){const ke=dt(ae[1]);return ke||(Gi(Ne.replace("{}",ae[1])),Gi("Falling back to no-highlight mode for this block.",yt)),ke?ae[1]:"no-highlight"}return wt.split(/\s+/).find(ke=>Yt(ke)||dt(ke))}function xe(yt,wt,ae){let ke="",dn="";typeof wt=="object"?(ke=yt,ae=wt.ignoreIllegals,dn=wt.language):(at("10.7.0","highlight(lang, code, ...args) has been deprecated."),at("10.7.0",`Please use highlight(code, options) instead.
83
+ https://github.com/highlightjs/highlight.js/issues/2277`),dn=yt,ke=wt),ae===void 0&&(ae=!0);const Yn={code:ke,language:dn};zn("before:highlight",Yn);const Oi=Yn.result?Yn.result:In(Yn.language,Yn.code,ae);return Oi.code=Yn.code,zn("after:highlight",Oi),Oi}function In(yt,wt,ae,ke){const dn=Object.create(null);function Yn(_t,Bt){return _t.keywords[Bt]}function Oi(){if(!Kt.keywords){bn.addText(De);return}let _t=0;Kt.keywordPatternRe.lastIndex=0;let Bt=Kt.keywordPatternRe.exec(De),ee="";for(;Bt;){ee+=De.substring(_t,Bt.index);const ge=Fn.case_insensitive?Bt[0].toLowerCase():Bt[0],ln=Yn(Kt,ge);if(ln){const[Wi,_o]=ln;if(bn.addText(ee),ee="",dn[ge]=(dn[ge]||0)+1,dn[ge]<=sr&&(xa+=_o),Wi.startsWith("_"))ee+=Bt[0];else{const wu=Fn.classNameAliases[Wi]||Wi;Li(Bt[0],wu)}}else ee+=Bt[0];_t=Kt.keywordPatternRe.lastIndex,Bt=Kt.keywordPatternRe.exec(De)}ee+=De.substring(_t),bn.addText(ee)}function yi(){if(De==="")return;let _t=null;if(typeof Kt.subLanguage=="string"){if(!ot[Kt.subLanguage]){bn.addText(De);return}_t=In(Kt.subLanguage,De,!0,Su[Kt.subLanguage]),Su[Kt.subLanguage]=_t._top}else _t=Pr(De,Kt.subLanguage.length?Kt.subLanguage:null);Kt.relevance>0&&(xa+=_t.relevance),bn.__addSublanguage(_t._emitter,_t.language)}function Xe(){Kt.subLanguage!=null?yi():Oi(),De=""}function Li(_t,Bt){_t!==""&&(bn.startScope(Bt),bn.addText(_t),bn.endScope())}function _u(_t,Bt){let ee=1;const ge=Bt.length-1;for(;ee<=ge;){if(!_t._emit[ee]){ee++;continue}const ln=Fn.classNameAliases[_t[ee]]||_t[ee],Wi=Bt[ee];ln?Li(Wi,ln):(De=Wi,Oi(),De=""),ee++}}function Zl(_t,Bt){return _t.scope&&typeof _t.scope=="string"&&bn.openNode(Fn.classNameAliases[_t.scope]||_t.scope),_t.beginScope&&(_t.beginScope._wrap?(Li(De,Fn.classNameAliases[_t.beginScope._wrap]||_t.beginScope._wrap),De=""):_t.beginScope._multi&&(_u(_t.beginScope,Bt),De="")),Kt=Object.create(_t,{parent:{value:Kt}}),Kt}function yo(_t,Bt,ee){let ge=A(_t.endRe,ee);if(ge){if(_t["on:end"]){const ln=new e(_t);_t["on:end"](Bt,ln),ln.isMatchIgnored&&(ge=!1)}if(ge){for(;_t.endsParent&&_t.parent;)_t=_t.parent;return _t}}if(_t.endsWithParent)return yo(_t.parent,Bt,ee)}function Ql(_t){return Kt.matcher.regexIndex===0?(De+=_t[0],1):(_a=!0,0)}function Fd(_t){const Bt=_t[0],ee=_t.rule,ge=new e(ee),ln=[ee.__beforeBegin,ee["on:begin"]];for(const Wi of ln)if(Wi&&(Wi(_t,ge),ge.isMatchIgnored))return Ql(Bt);return ee.skip?De+=Bt:(ee.excludeBegin&&(De+=Bt),Xe(),!ee.returnBegin&&!ee.excludeBegin&&(De=Bt)),Zl(ee,_t),ee.returnBegin?0:Bt.length}function bi(_t){const Bt=_t[0],ee=wt.substring(_t.index),ge=yo(Kt,_t,ee);if(!ge)return Yi;const ln=Kt;Kt.endScope&&Kt.endScope._wrap?(Xe(),Li(Bt,Kt.endScope._wrap)):Kt.endScope&&Kt.endScope._multi?(Xe(),_u(Kt.endScope,_t)):ln.skip?De+=Bt:(ln.returnEnd||ln.excludeEnd||(De+=Bt),Xe(),ln.excludeEnd&&(De=Bt));do Kt.scope&&bn.closeNode(),!Kt.skip&&!Kt.subLanguage&&(xa+=Kt.relevance),Kt=Kt.parent;while(Kt!==ge.parent);return ge.starts&&Zl(ge.starts,_t),ln.returnEnd?0:Bt.length}function bo(){const _t=[];for(let Bt=Kt;Bt!==Fn;Bt=Bt.parent)Bt.scope&&_t.unshift(Bt.scope);_t.forEach(Bt=>bn.openNode(Bt))}let al={};function Jl(_t,Bt){const ee=Bt&&Bt[0];if(De+=_t,ee==null)return Xe(),0;if(al.type==="begin"&&Bt.type==="end"&&al.index===Bt.index&&ee===""){if(De+=wt.slice(Bt.index,Bt.index+1),!je){const ge=new Error(`0 width match regex (${yt})`);throw ge.languageName=yt,ge.badRule=al.rule,ge}return 1}if(al=Bt,Bt.type==="begin")return Fd(Bt);if(Bt.type==="illegal"&&!ae){const ge=new Error('Illegal lexeme "'+ee+'" for mode "'+(Kt.scope||"<unnamed>")+'"');throw ge.mode=Kt,ge}else if(Bt.type==="end"){const ge=bi(Bt);if(ge!==Yi)return ge}if(Bt.type==="illegal"&&ee==="")return De+=`
84
+ `,1;if(xo>1e5&&xo>Bt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return De+=ee,ee.length}const Fn=dt(yt);if(!Fn)throw He(Ne.replace("{}",yt)),new Error('Unknown language: "'+yt+'"');const vu=on(Fn);let ts="",Kt=ke||vu;const Su={},bn=new Ct.__emitter(Ct);bo();let De="",xa=0,qr=0,xo=0,_a=!1;try{if(Fn.__emitTokens)Fn.__emitTokens(wt,bn);else{for(Kt.matcher.considerAll();;){xo++,_a?_a=!1:Kt.matcher.considerAll(),Kt.matcher.lastIndex=qr;const _t=Kt.matcher.exec(wt);if(!_t)break;const Bt=wt.substring(qr,_t.index),ee=Jl(Bt,_t);qr=_t.index+ee}Jl(wt.substring(qr))}return bn.finalize(),ts=bn.toHTML(),{language:yt,value:ts,relevance:xa,illegal:!1,_emitter:bn,_top:Kt}}catch(_t){if(_t.message&&_t.message.includes("Illegal"))return{language:yt,value:Tn(wt),illegal:!0,relevance:0,_illegalBy:{message:_t.message,index:qr,context:wt.slice(qr-100,qr+100),mode:_t.mode,resultSoFar:ts},_emitter:bn};if(je)return{language:yt,value:Tn(wt),illegal:!1,relevance:0,errorRaised:_t,_emitter:bn,_top:Kt};throw _t}}function Ur(yt){const wt={value:Tn(yt),illegal:!1,relevance:0,_top:Tt,_emitter:new Ct.__emitter(Ct)};return wt._emitter.addText(yt),wt}function Pr(yt,wt){wt=wt||Ct.languages||Object.keys(ot);const ae=Ur(yt),ke=wt.filter(dt).filter(Ce).map(Xe=>In(Xe,yt,!1));ke.unshift(ae);const dn=ke.sort((Xe,Li)=>{if(Xe.relevance!==Li.relevance)return Li.relevance-Xe.relevance;if(Xe.language&&Li.language){if(dt(Xe.language).supersetOf===Li.language)return 1;if(dt(Li.language).supersetOf===Xe.language)return-1}return 0}),[Yn,Oi]=dn,yi=Yn;return yi.secondBest=Oi,yi}function mi(yt,wt,ae){const ke=wt&&mt[wt]||ae;yt.classList.add("hljs"),yt.classList.add(`language-${ke}`)}function en(yt){let wt=null;const ae=an(yt);if(Yt(ae))return;if(zn("before:highlightElement",{el:yt,language:ae}),yt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",yt);return}if(yt.children.length>0&&(Ct.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(yt)),Ct.throwUnescapedHTML))throw new gi("One of your code blocks includes unescaped HTML.",yt.innerHTML);wt=yt;const ke=wt.textContent,dn=ae?xe(ke,{language:ae,ignoreIllegals:!0}):Pr(ke);yt.innerHTML=dn.value,yt.dataset.highlighted="yes",mi(yt,ae,dn.language),yt.result={language:dn.language,re:dn.relevance,relevance:dn.relevance},dn.secondBest&&(yt.secondBest={language:dn.secondBest.language,relevance:dn.secondBest.relevance}),zn("after:highlightElement",{el:yt,result:dn,text:ke})}function Ve(yt){Ct=Xl(Ct,yt)}const or=()=>{Hr(),at("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function ba(){Hr(),at("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let rl=!1;function Hr(){function yt(){Hr()}if(document.readyState==="loading"){rl||window.addEventListener("DOMContentLoaded",yt,!1),rl=!0;return}document.querySelectorAll(Ct.cssSelector).forEach(en)}function Kl(yt,wt){let ae=null;try{ae=wt(q)}catch(ke){if(He("Language definition for '{}' could not be registered.".replace("{}",yt)),je)He(ke);else throw ke;ae=Tt}ae.name||(ae.name=yt),ot[yt]=ae,ae.rawDefinition=wt.bind(null,q),ae.aliases&&kt(ae.aliases,{languageName:yt})}function Ot(yt){delete ot[yt];for(const wt of Object.keys(mt))mt[wt]===yt&&delete mt[wt]}function Y(){return Object.keys(ot)}function dt(yt){return yt=(yt||"").toLowerCase(),ot[yt]||ot[mt[yt]]}function kt(yt,{languageName:wt}){typeof yt=="string"&&(yt=[yt]),yt.forEach(ae=>{mt[ae.toLowerCase()]=wt})}function Ce(yt){const wt=dt(yt);return wt&&!wt.disableAutodetect}function Ze(yt){yt["before:highlightBlock"]&&!yt["before:highlightElement"]&&(yt["before:highlightElement"]=wt=>{yt["before:highlightBlock"](Object.assign({block:wt.el},wt))}),yt["after:highlightBlock"]&&!yt["after:highlightElement"]&&(yt["after:highlightElement"]=wt=>{yt["after:highlightBlock"](Object.assign({block:wt.el},wt))})}function re(yt){Ze(yt),jt.push(yt)}function An(yt){const wt=jt.indexOf(yt);wt!==-1&&jt.splice(wt,1)}function zn(yt,wt){const ae=yt;jt.forEach(function(ke){ke[ae]&&ke[ae](wt)})}function Gn(yt){return at("10.7.0","highlightBlock will be removed entirely in v12.0"),at("10.7.0","Please use highlightElement now."),en(yt)}Object.assign(q,{highlight:xe,highlightAuto:Pr,highlightAll:Hr,highlightElement:en,highlightBlock:Gn,configure:Ve,initHighlighting:or,initHighlightingOnLoad:ba,registerLanguage:Kl,unregisterLanguage:Ot,listLanguages:Y,getLanguage:dt,registerAliases:kt,autoDetection:Ce,inherit:Xl,addPlugin:re,removePlugin:An}),q.debugMode=function(){je=!1},q.safeMode=function(){je=!0},q.versionString=pe,q.regex={concat:v,lookahead:y,either:S,optional:_,anyNumberOfTimes:m};for(const yt in Jt)typeof Jt[yt]=="object"&&t(Jt[yt]);return Object.assign(q,Jt),q},yn=$r({});return yn.newInstance=()=>$r({}),hm=yn,yn.HighlightJS=yn,yn.default=yn,hm}var uF=cF();const hF=ad(uF),nS={},fF="hljs-";function dF(t){const e=hF.newInstance();return t&&s(t),{highlight:n,highlightAuto:i,listLanguages:a,register:s,registerAlias:o,registered:c};function n(f,h,d){const g=d||nS,y=typeof g.prefix=="string"?g.prefix:fF;if(!e.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");e.configure({__emitter:pF,classPrefix:y});const m=e.highlight(h,{ignoreIllegals:!0,language:f});if(m.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:m.errorRaised});const _=m._emitter.root,v=_.data;return v.language=m.language,v.relevance=m.relevance,_}function i(f,h){const g=(h||nS).subset||a();let y=-1,m=0,_;for(;++y<g.length;){const v=g[y];if(!e.getLanguage(v))continue;const C=n(v,f,h);C.data&&C.data.relevance!==void 0&&C.data.relevance>m&&(m=C.data.relevance,_=C)}return _||{type:"root",children:[],data:{language:void 0,relevance:m}}}function a(){return e.listLanguages()}function s(f,h){if(typeof f=="string")e.registerLanguage(f,h);else{let d;for(d in f)Object.hasOwn(f,d)&&e.registerLanguage(d,f[d])}}function o(f,h){if(typeof f=="string")e.registerAliases(typeof h=="string"?h:[...h],{languageName:f});else{let d;for(d in f)if(Object.hasOwn(f,d)){const g=f[d];e.registerAliases(typeof g=="string"?g:[...g],{languageName:d})}}}function c(f){return!!e.getLanguage(f)}}class pF{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const n=this.stack[this.stack.length-1],i=n.children[n.children.length-1];i&&i.type==="text"?i.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){const i=this.stack[this.stack.length-1],a=e.root.children;n?i.children.push({type:"element",tagName:"span",properties:{className:[n]},children:a}):i.children.push(...a)}openNode(e){const n=this,i=e.split(".").map(function(o,c){return c?o+"_".repeat(c):n.options.classPrefix+o}),a=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:i},children:[]};a.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const gF={};function mF(t){const e=t||gF,n=e.aliases,i=e.detect||!1,a=e.languages||oF,s=e.plainText,o=e.prefix,c=e.subset;let f="hljs";const h=dF(a);if(n&&h.registerAlias(n),o){const d=o.indexOf("-");f=d===-1?o:o.slice(0,d)}return function(d,g){ud(d,"element",function(y,m,_){if(y.tagName!=="code"||!_||_.type!=="element"||_.tagName!=="pre")return;const v=yF(y);if(v===!1||!v&&!i||v&&s&&s.includes(v))return;Array.isArray(y.properties.className)||(y.properties.className=[]),y.properties.className.includes(f)||y.properties.className.unshift(f);const C=Bz(y,{whitespace:"pre"});let S;try{S=v?h.highlight(v,C,{prefix:o}):h.highlightAuto(C,{prefix:o,subset:c})}catch(T){const A=T;if(v&&/Unknown language/.test(A.message)){g.message("Cannot highlight as `"+v+"`, it’s not registered",{ancestors:[_,y],cause:A,place:y.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw A}!v&&S.data&&S.data.language&&y.properties.className.push("language-"+S.data.language),S.children.length>0&&(y.children=S.children)})}}function yF(t){const e=t.properties.className;let n=-1;if(!Array.isArray(e))return;let i;for(;++n<e.length;){const a=String(e[n]);if(a==="no-highlight"||a==="nohighlight")return!1;!i&&a.slice(0,5)==="lang-"&&(i=a.slice(5)),!i&&a.slice(0,9)==="language-"&&(i=a.slice(9))}return i}function iS(t,e){let n=t.nodeType===Node.TEXT_NODE?t.parentElement:t;for(;n&&!n.hasAttribute("data-line-start");)n=n.parentElement;if(!n)return null;const i=Number(n.getAttribute("data-line-start"));if(!Number.isFinite(i))return null;const o=((t.nodeType===Node.TEXT_NODE?t.data:"").slice(0,e).match(/\n/g)||[]).length;return i+o}function bF(t){if(t.isCollapsed)return null;const{anchorNode:e,anchorOffset:n,focusNode:i,focusOffset:a}=t;if(!e||!i)return null;const s=iS(e,n),o=iS(i,a);if(s==null||o==null)return null;const c=Math.min(s,o);let f=Math.max(s,o);const h=t.toString();if(h.endsWith(`
85
+ `)&&c<f){const g=(h.replace(/\n+$/,"").match(/\n/g)||[]).length;f=c+g}return{startLine:c,endLine:f}}const xF=({containerRef:t,onSubmitComment:e})=>{const[n,i]=zt.useState(null),[a,s]=zt.useState(!1),[o,c]=zt.useState(!1),[f,h]=zt.useState(""),[d,g]=zt.useState(null),y=zt.useRef(null),m=zt.useRef(null),_=zt.useRef(!1),v=zt.useCallback(N=>{if(m.current&&(m.current.remove(),m.current=null),!N||!t.current)return;const E=N.getClientRects();if(E.length===0)return;const R=t.current.getBoundingClientRect(),G=document.createElement("div");G.className="selection-highlight-container",G.style.position="absolute",G.style.top="0",G.style.left="0",G.style.pointerEvents="none";for(let Z=0;Z<E.length;Z++){const z=E[Z],j=document.createElement("div");j.className="selection-highlight",j.style.position="absolute",j.style.left=`${z.left-R.left+t.current.scrollLeft}px`,j.style.top=`${z.top-R.top+t.current.scrollTop}px`,j.style.width=`${z.width}px`,j.style.height=`${z.height}px`,G.appendChild(j)}t.current.style.position="relative",t.current.appendChild(G),m.current=G},[t]),C=zt.useCallback(()=>{const N=window.getSelection();if(!N||N.isCollapsed||!t.current){o||(s(!1),g(null),v(null));return}const E=N.anchorNode;if(!E||!t.current.contains(E)){o||(s(!1),g(null),v(null));return}const R=N.getRangeAt(0),G=R.getBoundingClientRect(),Z=bF(N);g({range:R.cloneRange(),text:N.toString(),startLine:(Z==null?void 0:Z.startLine)??1,endLine:(Z==null?void 0:Z.endLine)??1}),i({x:G.left+G.width/2,y:G.top-8}),s(!0)},[t,o,v]),S=N=>{if(N.preventDefault(),N.stopPropagation(),d){v(d.range);const E=d.range.getClientRects();if(E.length>0){let R=E[0];for(let G=1;G<E.length;G++)E[G].top<R.top&&(R=E[G]);i({x:R.left,y:R.top-8})}}c(!0),_.current=!0,setTimeout(()=>{var E;(E=y.current)==null||E.focus()},0)},T=()=>{f.trim()&&e&&d&&e(f.trim(),d.text,d.startLine,d.endLine),h(""),c(!1),_.current=!1,s(!1),g(null),v(null)},A=()=>{h(""),c(!1),_.current=!1,s(!1),g(null),v(null)},B=N=>{N.key==="Enter"&&(N.metaKey||N.ctrlKey)?(N.preventDefault(),T()):N.key==="Escape"&&A()};return zt.useEffect(()=>{const N=R=>{setTimeout(()=>{var G;(G=R.target)!=null&&G.closest(".selection-popover")||_.current||C()},10)},E=R=>{var G;(G=R.target)!=null&&G.closest(".selection-popover")||_.current||(s(!1),g(null),v(null))};return document.addEventListener("mouseup",N),document.addEventListener("mousedown",E),()=>{document.removeEventListener("mouseup",N),document.removeEventListener("mousedown",E)}},[C,v]),zt.useEffect(()=>()=>{m.current&&m.current.remove()},[]),!a||!n?null:V.jsx("div",{className:"selection-popover",style:{position:"fixed",left:n.x,top:n.y,transform:o?"translateY(-100%)":"translate(-50%, -100%)"},children:o?V.jsxs("div",{className:"comment-form",children:[V.jsx("textarea",{ref:y,className:"comment-input",placeholder:"Add a comment...",value:f,onChange:N=>h(N.target.value),onKeyDown:B,rows:3}),V.jsxs("div",{className:"comment-actions",children:[V.jsx("button",{className:"comment-cancel",onClick:A,children:"Cancel"}),V.jsx("button",{className:"comment-submit",onClick:T,disabled:!f.trim(),children:"Submit"})]})]}):V.jsx("button",{className:"popover-button",onMouseDown:N=>N.preventDefault(),onClick:S,children:"Comment"})})},_F=({comments:t,filename:e,onDeleteComment:n,onDeleteAll:i,onClose:a,onLineClick:s,onEditComment:o})=>{const[c,f]=zt.useState(null),[h,d]=zt.useState(!1),[g,y]=zt.useState(null),[m,_]=zt.useState(""),v=E=>{const R=E.startLine===E.endLine?`L${E.startLine}`:`L${E.startLine}-${E.endLine}`;return`${e}:${R}
86
+ ${E.text}`},C=async E=>{try{await navigator.clipboard.writeText(v(E)),f(E.id),setTimeout(()=>f(null),2e3)}catch(R){console.error("Failed to copy:",R)}},S=async()=>{const E=t.map(v).join(`
87
+ ------------------------------------
88
+ `);try{await navigator.clipboard.writeText(E),d(!0),setTimeout(()=>d(!1),2e3)}catch(R){console.error("Failed to copy:",R)}},T=E=>{y(E.id),_(E.text)},A=()=>{y(null),_("")},B=E=>{m.trim()&&o&&(o(E,m.trim()),y(null),_(""))},N=(E,R)=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?(E.preventDefault(),B(R)):E.key==="Escape"&&(E.preventDefault(),A())};return V.jsxs("div",{className:"comment-list",children:[V.jsxs("div",{className:"comment-list-header",children:[V.jsxs("div",{className:"comment-list-title-wrapper",children:[a&&V.jsx("button",{className:"comment-list-collapse-btn",onClick:a,title:"Hide comments","aria-label":"Hide comments",children:V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:V.jsx("polyline",{points:"8 4 14 10 8 16"})})}),V.jsx("h3",{className:"comment-list-title","aria-label":`${t.length} comments`,children:V.jsxs("span",{className:"comment-icon-wrapper",children:[V.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:V.jsx("path",{d:"M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"})}),t.length>0&&V.jsx("span",{className:"comment-count-badge","aria-hidden":"true",children:t.length})]})})]}),t.length>0&&V.jsxs("div",{className:"comment-list-actions",children:[V.jsxs("button",{className:`comment-list-copy-all ${h?"copied":""}`,onClick:S,title:h?"Copied!":"Copy all comments",children:[h?V.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:V.jsx("polyline",{points:"20 6 9 17 4 12"})}):V.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[V.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),V.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),V.jsx("span",{children:"Copy All"})]}),i&&V.jsxs("button",{className:"comment-list-delete-all",onClick:i,title:"Delete all comments",children:[V.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[V.jsx("polyline",{points:"3 6 5 6 21 6"}),V.jsx("path",{d:"M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"})]}),V.jsx("span",{children:"Clear"})]})]})]}),t.length===0?V.jsxs("div",{className:"comment-list-empty",children:[V.jsx("p",{children:"No comments yet"}),V.jsx("p",{className:"comment-list-hint",children:"Select text to add a comment"})]}):V.jsx("div",{className:"comment-list-items",children:t.map(E=>V.jsxs("div",{className:"comment-item",children:[V.jsxs("div",{className:"comment-item-header",children:[V.jsxs("button",{className:"comment-item-lines",onClick:()=>s==null?void 0:s(E.startLine),title:"Jump to line",children:["Line"," ",E.startLine===E.endLine?E.startLine:`${E.startLine}-${E.endLine}`]}),V.jsxs("div",{className:"comment-item-actions",children:[o&&g!==E.id&&V.jsx("button",{className:"comment-item-edit",onClick:()=>T(E),title:"Edit comment",children:V.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[V.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),V.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),V.jsx("button",{className:`comment-item-copy ${c===E.id?"copied":""}`,onClick:()=>C(E),title:c===E.id?"Copied!":"Copy comment",children:c===E.id?V.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:V.jsx("polyline",{points:"20 6 9 17 4 12"})}):V.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[V.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),V.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}),n&&V.jsx("button",{className:"comment-item-delete",onClick:()=>n(E.id),title:"Delete comment",children:"×"})]})]}),V.jsxs("div",{className:"comment-item-selection",children:['"',E.selectedText.length>50?E.selectedText.slice(0,50)+"...":E.selectedText,'"']}),g===E.id?V.jsxs("div",{className:"comment-edit-form",children:[V.jsx("textarea",{className:"comment-edit-input",value:m,onChange:R=>_(R.target.value),onKeyDown:R=>N(R,E.id),rows:3,autoFocus:!0}),V.jsxs("div",{className:"comment-edit-actions",children:[V.jsx("button",{className:"comment-edit-cancel",onClick:A,children:"Cancel"}),V.jsx("button",{className:"comment-edit-save",onClick:()=>B(E.id),disabled:!m.trim(),children:"Save"})]})]}):V.jsx("div",{className:"comment-item-text",children:E.text})]},E.id))})]})},vF="modulepreload",SF=function(t){return"/"+t},rS={},Re=function(e,n,i){let a=Promise.resolve();if(n&&n.length>0){let o=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));a=o(n.map(h=>{if(h=SF(h),h in rS)return;rS[h]=!0;const d=h.endsWith(".css"),g=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const y=document.createElement("link");if(y.rel=d?"stylesheet":vF,d||(y.as="script"),y.crossOrigin="",y.href=h,f&&y.setAttribute("nonce",f),document.head.appendChild(y),d)return new Promise((m,_)=>{y.addEventListener("load",m),y.addEventListener("error",()=>_(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 a.then(o=>{for(const c of o||[])c.status==="rejected"&&s(c.reason);return e().catch(s)})};var aS={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},ef={exports:{}},wF=ef.exports,lS;function CF(){return lS||(lS=1,(function(t,e){(function(n,i){t.exports=i()})(wF,(function(){var n=1e3,i=6e4,a=36e5,s="millisecond",o="second",c="minute",f="hour",h="day",d="week",g="month",y="quarter",m="year",_="date",v="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],L=H%100;return"["+H+(F[(L-20)%10]||F[L]||F[0])+"]"}},A=function(H,F,L){var U=String(H);return!U||U.length>=F?H:""+Array(F+1-U.length).join(L)+H},B={s:A,z:function(H){var F=-H.utcOffset(),L=Math.abs(F),U=Math.floor(L/60),$=L%60;return(F<=0?"+":"-")+A(U,2,"0")+":"+A($,2,"0")},m:function H(F,L){if(F.date()<L.date())return-H(L,F);var U=12*(L.year()-F.year())+(L.month()-F.month()),$=F.clone().add(U,g),lt=L-$<0,D=F.clone().add(U+(lt?-1:1),g);return+(-(U+(L-$)/(lt?$-D:D-$))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:g,y:m,w:d,d:h,D:_,h:f,m:c,s:o,ms:s,Q:y}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},N="en",E={};E[N]=T;var R="$isDayjsObject",G=function(H){return H instanceof tt||!(!H||!H[R])},Z=function H(F,L,U){var $;if(!F)return N;if(typeof F=="string"){var lt=F.toLowerCase();E[lt]&&($=lt),L&&(E[lt]=L,$=lt);var D=F.split("-");if(!$&&D.length>1)return H(D[0])}else{var I=F.name;E[I]=F,$=I}return!U&&$&&(N=$),$||!U&&N},z=function(H,F){if(G(H))return H.clone();var L=typeof F=="object"?F:{};return L.date=H,L.args=arguments,new tt(L)},j=B;j.l=Z,j.i=G,j.w=function(H,F){return z(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var tt=(function(){function H(L){this.$L=Z(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[R]=!0}var F=H.prototype;return F.parse=function(L){this.$d=(function(U){var $=U.date,lt=U.utc;if($===null)return new Date(NaN);if(j.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var D=$.match(C);if(D){var I=D[2]-1||0,K=(D[7]||"0").substring(0,3);return lt?new Date(Date.UTC(D[1],I,D[3]||1,D[4]||0,D[5]||0,D[6]||0,K)):new Date(D[1],I,D[3]||1,D[4]||0,D[5]||0,D[6]||0,K)}}return new Date($)})(L),this.init()},F.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},F.$utils=function(){return j},F.isValid=function(){return this.$d.toString()!==v},F.isSame=function(L,U){var $=z(L);return this.startOf(U)<=$&&$<=this.endOf(U)},F.isAfter=function(L,U){return z(L)<this.startOf(U)},F.isBefore=function(L,U){return this.endOf(U)<z(L)},F.$g=function(L,U,$){return j.u(L)?this[U]:this.set($,L)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(L,U){var $=this,lt=!!j.u(U)||U,D=j.p(L),I=function(Ut,Jt){var ve=j.w($.$u?Date.UTC($.$y,Jt,Ut):new Date($.$y,Jt,Ut),$);return lt?ve:ve.endOf(h)},K=function(Ut,Jt){return j.w($.toDate()[Ut].apply($.toDate("s"),(lt?[0,0,0,0]:[23,59,59,999]).slice(Jt)),$)},O=this.$W,ft=this.$M,bt=this.$D,pt="set"+(this.$u?"UTC":"");switch(D){case m:return lt?I(1,0):I(31,11);case g:return lt?I(1,ft):I(0,ft+1);case d:var St=this.$locale().weekStart||0,Ft=(O<St?O+7:O)-St;return I(lt?bt-Ft:bt+(6-Ft),ft);case h:case _:return K(pt+"Hours",0);case f:return K(pt+"Minutes",1);case c:return K(pt+"Seconds",2);case o:return K(pt+"Milliseconds",3);default:return this.clone()}},F.endOf=function(L){return this.startOf(L,!1)},F.$set=function(L,U){var $,lt=j.p(L),D="set"+(this.$u?"UTC":""),I=($={},$[h]=D+"Date",$[_]=D+"Date",$[g]=D+"Month",$[m]=D+"FullYear",$[f]=D+"Hours",$[c]=D+"Minutes",$[o]=D+"Seconds",$[s]=D+"Milliseconds",$)[lt],K=lt===h?this.$D+(U-this.$W):U;if(lt===g||lt===m){var O=this.clone().set(_,1);O.$d[I](K),O.init(),this.$d=O.set(_,Math.min(this.$D,O.daysInMonth())).$d}else I&&this.$d[I](K);return this.init(),this},F.set=function(L,U){return this.clone().$set(L,U)},F.get=function(L){return this[j.p(L)]()},F.add=function(L,U){var $,lt=this;L=Number(L);var D=j.p(U),I=function(ft){var bt=z(lt);return j.w(bt.date(bt.date()+Math.round(ft*L)),lt)};if(D===g)return this.set(g,this.$M+L);if(D===m)return this.set(m,this.$y+L);if(D===h)return I(1);if(D===d)return I(7);var K=($={},$[c]=i,$[f]=a,$[o]=n,$)[D]||1,O=this.$d.getTime()+L*K;return j.w(O,this)},F.subtract=function(L,U){return this.add(-1*L,U)},F.format=function(L){var U=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var lt=L||"YYYY-MM-DDTHH:mm:ssZ",D=j.z(this),I=this.$H,K=this.$m,O=this.$M,ft=$.weekdays,bt=$.months,pt=$.meridiem,St=function(Jt,ve,hn,fn){return Jt&&(Jt[ve]||Jt(U,lt))||hn[ve].slice(0,fn)},Ft=function(Jt){return j.s(I%12||12,Jt,"0")},Ut=pt||function(Jt,ve,hn){var fn=Jt<12?"AM":"PM";return hn?fn.toLowerCase():fn};return lt.replace(S,(function(Jt,ve){return ve||(function(hn){switch(hn){case"YY":return String(U.$y).slice(-2);case"YYYY":return j.s(U.$y,4,"0");case"M":return O+1;case"MM":return j.s(O+1,2,"0");case"MMM":return St($.monthsShort,O,bt,3);case"MMMM":return St(bt,O);case"D":return U.$D;case"DD":return j.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return St($.weekdaysMin,U.$W,ft,2);case"ddd":return St($.weekdaysShort,U.$W,ft,3);case"dddd":return ft[U.$W];case"H":return String(I);case"HH":return j.s(I,2,"0");case"h":return Ft(1);case"hh":return Ft(2);case"a":return Ut(I,K,!0);case"A":return Ut(I,K,!1);case"m":return String(K);case"mm":return j.s(K,2,"0");case"s":return String(U.$s);case"ss":return j.s(U.$s,2,"0");case"SSS":return j.s(U.$ms,3,"0");case"Z":return D}return null})(Jt)||D.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(L,U,$){var lt,D=this,I=j.p(U),K=z(L),O=(K.utcOffset()-this.utcOffset())*i,ft=this-K,bt=function(){return j.m(D,K)};switch(I){case m:lt=bt()/12;break;case g:lt=bt();break;case y:lt=bt()/3;break;case d:lt=(ft-O)/6048e5;break;case h:lt=(ft-O)/864e5;break;case f:lt=ft/a;break;case c:lt=ft/i;break;case o:lt=ft/n;break;default:lt=ft}return $?lt:j.a(lt)},F.daysInMonth=function(){return this.endOf(g).$D},F.$locale=function(){return E[this.$L]},F.locale=function(L,U){if(!L)return this.$L;var $=this.clone(),lt=Z(L,U,!0);return lt&&($.$L=lt),$},F.clone=function(){return j.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()},H})(),it=tt.prototype;return z.prototype=it,[["$ms",s],["$s",o],["$m",c],["$H",f],["$W",h],["$M",g],["$y",m],["$D",_]].forEach((function(H){it[H[1]]=function(F){return this.$g(F,H[0],H[1])}})),z.extend=function(H,F){return H.$i||(H(F,tt,z),H.$i=!0),z},z.locale=Z,z.isDayjs=G,z.unix=function(H){return z(1e3*H)},z.en=E[N],z.Ls=E,z.p={},z}))})(ef)),ef.exports}var kF=CF();const EF=ad(kF);var xC=Object.defineProperty,w=(t,e)=>xC(t,"name",{value:e,configurable:!0}),TF=(t,e)=>{for(var n in e)xC(t,n,{get:e[n],enumerable:!0})},la={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ht={trace:w((...t)=>{},"trace"),debug:w((...t)=>{},"debug"),info:w((...t)=>{},"info"),warn:w((...t)=>{},"warn"),error:w((...t)=>{},"error"),fatal:w((...t)=>{},"fatal")},db=w(function(t="fatal"){let e=la.fatal;typeof t=="string"?t.toLowerCase()in la&&(e=la[t]):typeof t=="number"&&(e=t),ht.trace=()=>{},ht.debug=()=>{},ht.info=()=>{},ht.warn=()=>{},ht.error=()=>{},ht.fatal=()=>{},e<=la.fatal&&(ht.fatal=console.error?console.error.bind(console,nr("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",nr("FATAL"))),e<=la.error&&(ht.error=console.error?console.error.bind(console,nr("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",nr("ERROR"))),e<=la.warn&&(ht.warn=console.warn?console.warn.bind(console,nr("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",nr("WARN"))),e<=la.info&&(ht.info=console.info?console.info.bind(console,nr("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",nr("INFO"))),e<=la.debug&&(ht.debug=console.debug?console.debug.bind(console,nr("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",nr("DEBUG"))),e<=la.trace&&(ht.trace=console.debug?console.debug.bind(console,nr("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",nr("TRACE")))},"setLogLevel"),nr=w(t=>`%c${EF().format("ss.SSS")} : ${t} : `,"format");const nf={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,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;switch(i){case"r":return nf.hue2rgb(s,a,t+1/3)*255;case"g":return nf.hue2rgb(s,a,t)*255;case"b":return nf.hue2rgb(s,a,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},i)=>{t/=255,e/=255,n/=255;const a=Math.max(t,e,n),s=Math.min(t,e,n),o=(a+s)/2;if(i==="l")return o*100;if(a===s)return 0;const c=a-s,f=o>.5?c/(2-a-s):c/(a+s);if(i==="s")return f*100;switch(a){case t:return((e-n)/c+(e<n?6:0))*60;case e:return((n-t)/c+2)*60;case n:return((t-e)/c+4)*60;default:return-1}}},AF={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},MF={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Qt={channel:nf,lang:AF,unit:MF},Ga={};for(let t=0;t<=255;t++)Ga[t]=Qt.unit.dec2hex(t);const Vn={ALL:0,RGB:1,HSL:2};class NF{constructor(){this.type=Vn.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=Vn.ALL}is(e){return this.type===e}}class OF{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new NF}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=Vn.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:i,l:a}=e;n===void 0&&(e.h=Qt.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=Qt.channel.rgb2hsl(e,"s")),a===void 0&&(e.l=Qt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:i,b:a}=e;n===void 0&&(e.r=Qt.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=Qt.channel.hsl2rgb(e,"g")),a===void 0&&(e.b=Qt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(Vn.HSL)&&n!==void 0?n:(this._ensureHSL(),Qt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(Vn.HSL)&&n!==void 0?n:(this._ensureHSL(),Qt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(Vn.HSL)&&n!==void 0?n:(this._ensureHSL(),Qt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(Vn.RGB)&&n!==void 0?n:(this._ensureRGB(),Qt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(Vn.RGB)&&n!==void 0?n:(this._ensureRGB(),Qt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(Vn.RGB)&&n!==void 0?n:(this._ensureRGB(),Qt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Vn.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Vn.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Vn.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Vn.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Vn.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Vn.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const hd=new OF({r:0,g:0,b:0,a:0},"transparent"),Ps={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Ps.re);if(!e)return;const n=e[1],i=parseInt(n,16),a=n.length,s=a%4===0,o=a>4,c=o?1:17,f=o?8:4,h=s?0:-1,d=o?255:15;return hd.set({r:(i>>f*(h+3)&d)*c,g:(i>>f*(h+2)&d)*c,b:(i>>f*(h+1)&d)*c,a:s?(i&d)*c/255:1},t)},stringify:t=>{const{r:e,g:n,b:i,a}=t;return a<1?`#${Ga[Math.round(e)]}${Ga[Math.round(n)]}${Ga[Math.round(i)]}${Ga[Math.round(a*255)]}`:`#${Ga[Math.round(e)]}${Ga[Math.round(n)]}${Ga[Math.round(i)]}`}},Tl={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(Tl.hueRe);if(e){const[,n,i]=e;switch(i){case"grad":return Qt.channel.clamp.h(parseFloat(n)*.9);case"rad":return Qt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Qt.channel.clamp.h(parseFloat(n)*360)}}return Qt.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(Tl.re);if(!n)return;const[,i,a,s,o,c]=n;return hd.set({h:Tl._hue2deg(i),s:Qt.channel.clamp.s(parseFloat(a)),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:n,l:i,a}=t;return a<1?`hsla(${Qt.lang.round(e)}, ${Qt.lang.round(n)}%, ${Qt.lang.round(i)}%, ${a})`:`hsl(${Qt.lang.round(e)}, ${Qt.lang.round(n)}%, ${Qt.lang.round(i)}%)`}},$c={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=$c.colors[t];if(e)return Ps.parse(e)},stringify:t=>{const e=Ps.stringify(t);for(const n in $c.colors)if($c.colors[n]===e)return n}},Tc={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 n=t.match(Tc.re);if(!n)return;const[,i,a,s,o,c,f,h,d]=n;return hd.set({r:Qt.channel.clamp.r(a?parseFloat(i)*2.55:parseFloat(i)),g:Qt.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:Qt.channel.clamp.b(f?parseFloat(c)*2.55:parseFloat(c)),a:h?Qt.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:n,b:i,a}=t;return a<1?`rgba(${Qt.lang.round(e)}, ${Qt.lang.round(n)}, ${Qt.lang.round(i)}, ${Qt.lang.round(a)})`:`rgb(${Qt.lang.round(e)}, ${Qt.lang.round(n)}, ${Qt.lang.round(i)})`}},Dr={format:{keyword:$c,hex:Ps,rgb:Tc,rgba:Tc,hsl:Tl,hsla:Tl},parse:t=>{if(typeof t!="string")return t;const e=Ps.parse(t)||Tc.parse(t)||Tl.parse(t)||$c.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Vn.HSL)||t.data.r===void 0?Tl.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Tc.stringify(t):Ps.stringify(t)},_C=(t,e)=>{const n=Dr.parse(t);for(const i in e)n[i]=Qt.channel.clamp[i](e[i]);return Dr.stringify(n)},Uc=(t,e,n=0,i=1)=>{if(typeof t!="number")return _C(t,{a:e});const a=hd.set({r:Qt.channel.clamp.r(t),g:Qt.channel.clamp.g(e),b:Qt.channel.clamp.b(n),a:Qt.channel.clamp.a(i)});return Dr.stringify(a)},LF=t=>{const{r:e,g:n,b:i}=Dr.parse(t),a=.2126*Qt.channel.toLinear(e)+.7152*Qt.channel.toLinear(n)+.0722*Qt.channel.toLinear(i);return Qt.lang.round(a)},RF=t=>LF(t)>=.5,uu=t=>!RF(t),vC=(t,e,n)=>{const i=Dr.parse(t),a=i[e],s=Qt.channel.clamp[e](a+n);return a!==s&&(i[e]=s),Dr.stringify(i)},Mt=(t,e)=>vC(t,"l",e),qt=(t,e)=>vC(t,"l",-e),Q=(t,e)=>{const n=Dr.parse(t),i={};for(const a in e)e[a]&&(i[a]=n[a]+e[a]);return _C(t,i)},DF=(t,e,n=50)=>{const{r:i,g:a,b:s,a:o}=Dr.parse(t),{r:c,g:f,b:h,a:d}=Dr.parse(e),g=n/100,y=g*2-1,m=o-d,v=((y*m===-1?y:(y+m)/(1+y*m))+1)/2,C=1-v,S=i*v+c*C,T=a*v+f*C,A=s*v+h*C,B=o*g+d*(1-g);return Uc(S,T,A,B)},vt=(t,e=100)=>{const n=Dr.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,DF(n,t,e)};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:SC,setPrototypeOf:sS,isFrozen:BF,getPrototypeOf:IF,getOwnPropertyDescriptor:zF}=Object;let{freeze:hi,seal:rr,create:Ym}=Object,{apply:Wm,construct:Vm}=typeof Reflect<"u"&&Reflect;hi||(hi=function(e){return e});rr||(rr=function(e){return e});Wm||(Wm=function(e,n){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];return e.apply(n,a)});Vm||(Vm=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return new e(...i)});const Ph=fi(Array.prototype.forEach),FF=fi(Array.prototype.lastIndexOf),oS=fi(Array.prototype.pop),gc=fi(Array.prototype.push),$F=fi(Array.prototype.splice),rf=fi(String.prototype.toLowerCase),fm=fi(String.prototype.toString),dm=fi(String.prototype.match),mc=fi(String.prototype.replace),UF=fi(String.prototype.indexOf),PF=fi(String.prototype.trim),fr=fi(Object.prototype.hasOwnProperty),ai=fi(RegExp.prototype.test),yc=HF(TypeError);function fi(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return Wm(t,e,i)}}function HF(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return Vm(t,n)}}function ce(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rf;sS&&sS(t,null);let i=e.length;for(;i--;){let a=e[i];if(typeof a=="string"){const s=n(a);s!==a&&(BF(e)||(e[i]=s),a=s)}t[a]=!0}return t}function qF(t){for(let e=0;e<t.length;e++)fr(t,e)||(t[e]=null);return t}function Ar(t){const e=Ym(null);for(const[n,i]of SC(t))fr(t,n)&&(Array.isArray(i)?e[n]=qF(i):i&&typeof i=="object"&&i.constructor===Object?e[n]=Ar(i):e[n]=i);return e}function bc(t,e){for(;t!==null;){const i=zF(t,e);if(i){if(i.get)return fi(i.get);if(typeof i.value=="function")return fi(i.value)}t=IF(t)}function n(){return null}return n}const cS=hi(["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"]),pm=hi(["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"]),gm=hi(["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"]),jF=hi(["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"]),mm=hi(["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"]),GF=hi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),uS=hi(["#text"]),hS=hi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ym=hi(["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"]),fS=hi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hh=hi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),YF=rr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),WF=rr(/<%[\w\W]*|[\w\W]*%>/gm),VF=rr(/\$\{[\w\W]*/gm),XF=rr(/^data-[\-\w.\u00B7-\uFFFF]+$/),KF=rr(/^aria-[\-\w]+$/),wC=rr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ZF=rr(/^(?:\w+script|data):/i),QF=rr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),CC=rr(/^html$/i),JF=rr(/^[a-z][.\w]*(-[.\w]+)+$/i);var dS=Object.freeze({__proto__:null,ARIA_ATTR:KF,ATTR_WHITESPACE:QF,CUSTOM_ELEMENT:JF,DATA_ATTR:XF,DOCTYPE_NAME:CC,ERB_EXPR:WF,IS_ALLOWED_URI:wC,IS_SCRIPT_OR_DATA:ZF,MUSTACHE_EXPR:YF,TMPLIT_EXPR:VF});const xc={element:1,text:3,progressingInstruction:7,comment:8,document:9},t$=function(){return typeof window>"u"?null:window},e$=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(i=n.getAttribute(a));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}},pS=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kC(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t$();const e=Ot=>kC(Ot);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==xc.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const i=n,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:c,Element:f,NodeFilter:h,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:g,DOMParser:y,trustedTypes:m}=t,_=f.prototype,v=bc(_,"cloneNode"),C=bc(_,"remove"),S=bc(_,"nextSibling"),T=bc(_,"childNodes"),A=bc(_,"parentNode");if(typeof o=="function"){const Ot=n.createElement("template");Ot.content&&Ot.content.ownerDocument&&(n=Ot.content.ownerDocument)}let B,N="";const{implementation:E,createNodeIterator:R,createDocumentFragment:G,getElementsByTagName:Z}=n,{importNode:z}=i;let j=pS();e.isSupported=typeof SC=="function"&&typeof A=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tt,ERB_EXPR:it,TMPLIT_EXPR:H,DATA_ATTR:F,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:lt}=dS;let{IS_ALLOWED_URI:D}=dS,I=null;const K=ce({},[...cS,...pm,...gm,...mm,...uS]);let O=null;const ft=ce({},[...hS,...ym,...fS,...Hh]);let bt=Object.seal(Ym(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}})),pt=null,St=null;const Ft=Object.seal(Ym(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ut=!0,Jt=!0,ve=!1,hn=!0,fn=!1,sn=!0,Dn=!1,oe=!1,ni=!1,kn=!1,ii=!1,di=!1,vr=!0,ma=!1;const ya="user-content-";let He=!0,Gi=!1,at={},gt=null;const Pt=ce({},["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 ne=null;const be=ce({},["audio","video","img","source","image","track"]);let En=null;const pi=ce({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),on="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let pe=We,gi=!1,Tn=null;const Xl=ce({},[on,qe,We],fm);let Yi=ce({},["mi","mo","mn","ms","mtext"]),sr=ce({},["annotation-xml"]);const $r=ce({},["title","style","font","a","script"]);let yn=null;const q=["application/xhtml+xml","text/html"],ot="text/html";let mt=null,jt=null;const je=n.createElement("form"),Ne=function(Y){return Y instanceof RegExp||Y instanceof Function},Tt=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===Y)){if((!Y||typeof Y!="object")&&(Y={}),Y=Ar(Y),yn=q.indexOf(Y.PARSER_MEDIA_TYPE)===-1?ot:Y.PARSER_MEDIA_TYPE,mt=yn==="application/xhtml+xml"?fm:rf,I=fr(Y,"ALLOWED_TAGS")?ce({},Y.ALLOWED_TAGS,mt):K,O=fr(Y,"ALLOWED_ATTR")?ce({},Y.ALLOWED_ATTR,mt):ft,Tn=fr(Y,"ALLOWED_NAMESPACES")?ce({},Y.ALLOWED_NAMESPACES,fm):Xl,En=fr(Y,"ADD_URI_SAFE_ATTR")?ce(Ar(pi),Y.ADD_URI_SAFE_ATTR,mt):pi,ne=fr(Y,"ADD_DATA_URI_TAGS")?ce(Ar(be),Y.ADD_DATA_URI_TAGS,mt):be,gt=fr(Y,"FORBID_CONTENTS")?ce({},Y.FORBID_CONTENTS,mt):Pt,pt=fr(Y,"FORBID_TAGS")?ce({},Y.FORBID_TAGS,mt):Ar({}),St=fr(Y,"FORBID_ATTR")?ce({},Y.FORBID_ATTR,mt):Ar({}),at=fr(Y,"USE_PROFILES")?Y.USE_PROFILES:!1,Ut=Y.ALLOW_ARIA_ATTR!==!1,Jt=Y.ALLOW_DATA_ATTR!==!1,ve=Y.ALLOW_UNKNOWN_PROTOCOLS||!1,hn=Y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fn=Y.SAFE_FOR_TEMPLATES||!1,sn=Y.SAFE_FOR_XML!==!1,Dn=Y.WHOLE_DOCUMENT||!1,kn=Y.RETURN_DOM||!1,ii=Y.RETURN_DOM_FRAGMENT||!1,di=Y.RETURN_TRUSTED_TYPE||!1,ni=Y.FORCE_BODY||!1,vr=Y.SANITIZE_DOM!==!1,ma=Y.SANITIZE_NAMED_PROPS||!1,He=Y.KEEP_CONTENT!==!1,Gi=Y.IN_PLACE||!1,D=Y.ALLOWED_URI_REGEXP||wC,pe=Y.NAMESPACE||We,Yi=Y.MATHML_TEXT_INTEGRATION_POINTS||Yi,sr=Y.HTML_INTEGRATION_POINTS||sr,bt=Y.CUSTOM_ELEMENT_HANDLING||{},Y.CUSTOM_ELEMENT_HANDLING&&Ne(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(bt.tagNameCheck=Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&Ne(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(bt.attributeNameCheck=Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(bt.allowCustomizedBuiltInElements=Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fn&&(Jt=!1),ii&&(kn=!0),at&&(I=ce({},uS),O=[],at.html===!0&&(ce(I,cS),ce(O,hS)),at.svg===!0&&(ce(I,pm),ce(O,ym),ce(O,Hh)),at.svgFilters===!0&&(ce(I,gm),ce(O,ym),ce(O,Hh)),at.mathMl===!0&&(ce(I,mm),ce(O,fS),ce(O,Hh))),Y.ADD_TAGS&&(typeof Y.ADD_TAGS=="function"?Ft.tagCheck=Y.ADD_TAGS:(I===K&&(I=Ar(I)),ce(I,Y.ADD_TAGS,mt))),Y.ADD_ATTR&&(typeof Y.ADD_ATTR=="function"?Ft.attributeCheck=Y.ADD_ATTR:(O===ft&&(O=Ar(O)),ce(O,Y.ADD_ATTR,mt))),Y.ADD_URI_SAFE_ATTR&&ce(En,Y.ADD_URI_SAFE_ATTR,mt),Y.FORBID_CONTENTS&&(gt===Pt&&(gt=Ar(gt)),ce(gt,Y.FORBID_CONTENTS,mt)),Y.ADD_FORBID_CONTENTS&&(gt===Pt&&(gt=Ar(gt)),ce(gt,Y.ADD_FORBID_CONTENTS,mt)),He&&(I["#text"]=!0),Dn&&ce(I,["html","head","body"]),I.table&&(ce(I,["tbody"]),delete pt.tbody),Y.TRUSTED_TYPES_POLICY){if(typeof Y.TRUSTED_TYPES_POLICY.createHTML!="function")throw yc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=Y.TRUSTED_TYPES_POLICY,N=B.createHTML("")}else B===void 0&&(B=e$(m,a)),B!==null&&typeof N=="string"&&(N=B.createHTML(""));hi&&hi(Y),jt=Y}},Ct=ce({},[...pm,...gm,...jF]),Yt=ce({},[...mm,...GF]),an=function(Y){let dt=A(Y);(!dt||!dt.tagName)&&(dt={namespaceURI:pe,tagName:"template"});const kt=rf(Y.tagName),Ce=rf(dt.tagName);return Tn[Y.namespaceURI]?Y.namespaceURI===qe?dt.namespaceURI===We?kt==="svg":dt.namespaceURI===on?kt==="svg"&&(Ce==="annotation-xml"||Yi[Ce]):!!Ct[kt]:Y.namespaceURI===on?dt.namespaceURI===We?kt==="math":dt.namespaceURI===qe?kt==="math"&&sr[Ce]:!!Yt[kt]:Y.namespaceURI===We?dt.namespaceURI===qe&&!sr[Ce]||dt.namespaceURI===on&&!Yi[Ce]?!1:!Yt[kt]&&($r[kt]||!Ct[kt]):!!(yn==="application/xhtml+xml"&&Tn[Y.namespaceURI]):!1},xe=function(Y){gc(e.removed,{element:Y});try{A(Y).removeChild(Y)}catch{C(Y)}},In=function(Y,dt){try{gc(e.removed,{attribute:dt.getAttributeNode(Y),from:dt})}catch{gc(e.removed,{attribute:null,from:dt})}if(dt.removeAttribute(Y),Y==="is")if(kn||ii)try{xe(dt)}catch{}else try{dt.setAttribute(Y,"")}catch{}},Ur=function(Y){let dt=null,kt=null;if(ni)Y="<remove></remove>"+Y;else{const re=dm(Y,/^[\r\n\t ]+/);kt=re&&re[0]}yn==="application/xhtml+xml"&&pe===We&&(Y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Y+"</body></html>");const Ce=B?B.createHTML(Y):Y;if(pe===We)try{dt=new y().parseFromString(Ce,yn)}catch{}if(!dt||!dt.documentElement){dt=E.createDocument(pe,"template",null);try{dt.documentElement.innerHTML=gi?N:Ce}catch{}}const Ze=dt.body||dt.documentElement;return Y&&kt&&Ze.insertBefore(n.createTextNode(kt),Ze.childNodes[0]||null),pe===We?Z.call(dt,Dn?"html":"body")[0]:Dn?dt.documentElement:Ze},Pr=function(Y){return R.call(Y.ownerDocument||Y,Y,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},mi=function(Y){return Y instanceof g&&(typeof Y.nodeName!="string"||typeof Y.textContent!="string"||typeof Y.removeChild!="function"||!(Y.attributes instanceof d)||typeof Y.removeAttribute!="function"||typeof Y.setAttribute!="function"||typeof Y.namespaceURI!="string"||typeof Y.insertBefore!="function"||typeof Y.hasChildNodes!="function")},en=function(Y){return typeof c=="function"&&Y instanceof c};function Ve(Ot,Y,dt){Ph(Ot,kt=>{kt.call(e,Y,dt,jt)})}const or=function(Y){let dt=null;if(Ve(j.beforeSanitizeElements,Y,null),mi(Y))return xe(Y),!0;const kt=mt(Y.nodeName);if(Ve(j.uponSanitizeElement,Y,{tagName:kt,allowedTags:I}),sn&&Y.hasChildNodes()&&!en(Y.firstElementChild)&&ai(/<[/\w!]/g,Y.innerHTML)&&ai(/<[/\w!]/g,Y.textContent)||Y.nodeType===xc.progressingInstruction||sn&&Y.nodeType===xc.comment&&ai(/<[/\w]/g,Y.data))return xe(Y),!0;if(!(Ft.tagCheck instanceof Function&&Ft.tagCheck(kt))&&(!I[kt]||pt[kt])){if(!pt[kt]&&rl(kt)&&(bt.tagNameCheck instanceof RegExp&&ai(bt.tagNameCheck,kt)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(kt)))return!1;if(He&&!gt[kt]){const Ce=A(Y)||Y.parentNode,Ze=T(Y)||Y.childNodes;if(Ze&&Ce){const re=Ze.length;for(let An=re-1;An>=0;--An){const zn=v(Ze[An],!0);zn.__removalCount=(Y.__removalCount||0)+1,Ce.insertBefore(zn,S(Y))}}}return xe(Y),!0}return Y instanceof f&&!an(Y)||(kt==="noscript"||kt==="noembed"||kt==="noframes")&&ai(/<\/no(script|embed|frames)/i,Y.innerHTML)?(xe(Y),!0):(fn&&Y.nodeType===xc.text&&(dt=Y.textContent,Ph([tt,it,H],Ce=>{dt=mc(dt,Ce," ")}),Y.textContent!==dt&&(gc(e.removed,{element:Y.cloneNode()}),Y.textContent=dt)),Ve(j.afterSanitizeElements,Y,null),!1)},ba=function(Y,dt,kt){if(vr&&(dt==="id"||dt==="name")&&(kt in n||kt in je))return!1;if(!(Jt&&!St[dt]&&ai(F,dt))){if(!(Ut&&ai(L,dt))){if(!(Ft.attributeCheck instanceof Function&&Ft.attributeCheck(dt,Y))){if(!O[dt]||St[dt]){if(!(rl(Y)&&(bt.tagNameCheck instanceof RegExp&&ai(bt.tagNameCheck,Y)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(Y))&&(bt.attributeNameCheck instanceof RegExp&&ai(bt.attributeNameCheck,dt)||bt.attributeNameCheck instanceof Function&&bt.attributeNameCheck(dt,Y))||dt==="is"&&bt.allowCustomizedBuiltInElements&&(bt.tagNameCheck instanceof RegExp&&ai(bt.tagNameCheck,kt)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(kt))))return!1}else if(!En[dt]){if(!ai(D,mc(kt,$,""))){if(!((dt==="src"||dt==="xlink:href"||dt==="href")&&Y!=="script"&&UF(kt,"data:")===0&&ne[Y])){if(!(ve&&!ai(U,mc(kt,$,"")))){if(kt)return!1}}}}}}}return!0},rl=function(Y){return Y!=="annotation-xml"&&dm(Y,lt)},Hr=function(Y){Ve(j.beforeSanitizeAttributes,Y,null);const{attributes:dt}=Y;if(!dt||mi(Y))return;const kt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let Ce=dt.length;for(;Ce--;){const Ze=dt[Ce],{name:re,namespaceURI:An,value:zn}=Ze,Gn=mt(re),yt=zn;let wt=re==="value"?yt:PF(yt);if(kt.attrName=Gn,kt.attrValue=wt,kt.keepAttr=!0,kt.forceKeepAttr=void 0,Ve(j.uponSanitizeAttribute,Y,kt),wt=kt.attrValue,ma&&(Gn==="id"||Gn==="name")&&(In(re,Y),wt=ya+wt),sn&&ai(/((--!?|])>)|<\/(style|title|textarea)/i,wt)){In(re,Y);continue}if(Gn==="attributename"&&dm(wt,"href")){In(re,Y);continue}if(kt.forceKeepAttr)continue;if(!kt.keepAttr){In(re,Y);continue}if(!hn&&ai(/\/>/i,wt)){In(re,Y);continue}fn&&Ph([tt,it,H],ke=>{wt=mc(wt,ke," ")});const ae=mt(Y.nodeName);if(!ba(ae,Gn,wt)){In(re,Y);continue}if(B&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!An)switch(m.getAttributeType(ae,Gn)){case"TrustedHTML":{wt=B.createHTML(wt);break}case"TrustedScriptURL":{wt=B.createScriptURL(wt);break}}if(wt!==yt)try{An?Y.setAttributeNS(An,re,wt):Y.setAttribute(re,wt),mi(Y)?xe(Y):oS(e.removed)}catch{In(re,Y)}}Ve(j.afterSanitizeAttributes,Y,null)},Kl=function Ot(Y){let dt=null;const kt=Pr(Y);for(Ve(j.beforeSanitizeShadowDOM,Y,null);dt=kt.nextNode();)Ve(j.uponSanitizeShadowNode,dt,null),or(dt),Hr(dt),dt.content instanceof s&&Ot(dt.content);Ve(j.afterSanitizeShadowDOM,Y,null)};return e.sanitize=function(Ot){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=null,kt=null,Ce=null,Ze=null;if(gi=!Ot,gi&&(Ot="<!-->"),typeof Ot!="string"&&!en(Ot))if(typeof Ot.toString=="function"){if(Ot=Ot.toString(),typeof Ot!="string")throw yc("dirty is not a string, aborting")}else throw yc("toString is not a function");if(!e.isSupported)return Ot;if(oe||Tt(Y),e.removed=[],typeof Ot=="string"&&(Gi=!1),Gi){if(Ot.nodeName){const zn=mt(Ot.nodeName);if(!I[zn]||pt[zn])throw yc("root node is forbidden and cannot be sanitized in-place")}}else if(Ot instanceof c)dt=Ur("<!---->"),kt=dt.ownerDocument.importNode(Ot,!0),kt.nodeType===xc.element&&kt.nodeName==="BODY"||kt.nodeName==="HTML"?dt=kt:dt.appendChild(kt);else{if(!kn&&!fn&&!Dn&&Ot.indexOf("<")===-1)return B&&di?B.createHTML(Ot):Ot;if(dt=Ur(Ot),!dt)return kn?null:di?N:""}dt&&ni&&xe(dt.firstChild);const re=Pr(Gi?Ot:dt);for(;Ce=re.nextNode();)or(Ce),Hr(Ce),Ce.content instanceof s&&Kl(Ce.content);if(Gi)return Ot;if(kn){if(ii)for(Ze=G.call(dt.ownerDocument);dt.firstChild;)Ze.appendChild(dt.firstChild);else Ze=dt;return(O.shadowroot||O.shadowrootmode)&&(Ze=z.call(i,Ze,!0)),Ze}let An=Dn?dt.outerHTML:dt.innerHTML;return Dn&&I["!doctype"]&&dt.ownerDocument&&dt.ownerDocument.doctype&&dt.ownerDocument.doctype.name&&ai(CC,dt.ownerDocument.doctype.name)&&(An="<!DOCTYPE "+dt.ownerDocument.doctype.name+`>
89
+ `+An),fn&&Ph([tt,it,H],zn=>{An=mc(An,zn," ")}),B&&di?B.createHTML(An):An},e.setConfig=function(){let Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tt(Ot),oe=!0},e.clearConfig=function(){jt=null,oe=!1},e.isValidAttribute=function(Ot,Y,dt){jt||Tt({});const kt=mt(Ot),Ce=mt(Y);return ba(kt,Ce,dt)},e.addHook=function(Ot,Y){typeof Y=="function"&&gc(j[Ot],Y)},e.removeHook=function(Ot,Y){if(Y!==void 0){const dt=FF(j[Ot],Y);return dt===-1?void 0:$F(j[Ot],dt,1)[0]}return oS(j[Ot])},e.removeHooks=function(Ot){j[Ot]=[]},e.removeAllHooks=function(){j=pS()},e}var Js=kC(),EC=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Pc=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,n$=/\s*%%.*\n/gm,js,TC=(js=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},w(js,"UnknownDiagramError"),js),Bl={},pb=w(function(t,e){t=t.replace(EC,"").replace(Pc,"").replace(n$,`
90
+ `);for(const[n,{detector:i}]of Object.entries(Bl))if(i(t,e))return n;throw new TC(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Xm=w((...t)=>{for(const{id:e,detector:n,loader:i}of t)AC(e,n,i)},"registerLazyLoadedDiagrams"),AC=w((t,e,n)=>{Bl[t]&&ht.warn(`Detector with key ${t} already exists. Overwriting.`),Bl[t]={detector:e,loader:n},ht.debug(`Detector with key ${t} added${n?" with loader":""}`)},"addDetector"),i$=w(t=>Bl[t].loader,"getDiagramLoader"),Km=w((t,e,{depth:n=2,clobber:i=!1}={})=>{const a={depth:n,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>Km(t,s,a)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||n<=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"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=Km(t[s],e[s],{depth:n-1,clobber:i})):(i||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),On=Km,fd="#ffffff",dd="#f2f2f2",oi=w((t,e)=>e?Q(t,{s:-40,l:10}):Q(t,{s:-40,l:-10}),"mkBorder"),Gs,r$=(Gs=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var n,i,a,s,o,c,f,h,d,g,y,m,_,v,C,S,T,A,B,N,E;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Q(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Q(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||oi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||oi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||oi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||oi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||vt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||vt(this.tertiaryColor),this.lineColor=this.lineColor||vt(this.background),this.arrowheadColor=this.arrowheadColor||vt(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?qt(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||qt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||vt(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||Mt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||qt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Mt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Mt(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||Q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Q(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Q(this.primaryColor,{h:330}),this.darkMode)for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScale"+R]=qt(this["cScale"+R],75);else for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScale"+R]=qt(this["cScale"+R],25);for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScaleInv"+R]=this["cScaleInv"+R]||vt(this["cScale"+R]);for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this.darkMode?this["cScalePeer"+R]=this["cScalePeer"+R]||Mt(this["cScale"+R],10):this["cScalePeer"+R]=this["cScalePeer"+R]||qt(this["cScale"+R],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let R=0;R<this.THEME_COLOR_LIMIT;R++)this["cScaleLabel"+R]=this["cScaleLabel"+R]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let R=0;R<5;R++)this["surface"+R]=this["surface"+R]||Q(this.mainBkg,{h:180,s:-15,l:e*(5+R*3)}),this["surfacePeer"+R]=this["surfacePeer"+R]||Q(this.mainBkg,{h:180,s:-15,l:e*(8+R*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Q(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Q(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Q(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Q(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Q(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Q(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||Q(this.primaryColor,{l:-10}),this.pie5=this.pie5||Q(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Q(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Q(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Q(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Q(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.radar={axisColor:((n=this.radar)==null?void 0:n.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.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:((f=this.radar)==null?void 0:f.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((g=this.radar)==null?void 0:g.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||uu(this.quadrant1Fill)?Mt(this.quadrant1Fill):qt(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:((y=this.xyChart)==null?void 0:y.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,xAxisTitleColor:((_=this.xyChart)==null?void 0:_.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((v=this.xyChart)==null?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((T=this.xyChart)==null?void 0:T.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((A=this.xyChart)==null?void 0:A.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((B=this.xyChart)==null?void 0:B.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((N=this.xyChart)==null?void 0:N.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qt(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||Q(this.primaryColor,{h:-30}),this.git4=this.git4||Q(this.primaryColor,{h:-60}),this.git5=this.git5||Q(this.primaryColor,{h:-90}),this.git6=this.git6||Q(this.primaryColor,{h:60}),this.git7=this.git7||Q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Mt(this.git0,25),this.git1=Mt(this.git1,25),this.git2=Mt(this.git2,25),this.git3=Mt(this.git3,25),this.git4=Mt(this.git4,25),this.git5=Mt(this.git5,25),this.git6=Mt(this.git6,25),this.git7=Mt(this.git7,25)):(this.git0=qt(this.git0,25),this.git1=qt(this.git1,25),this.git2=qt(this.git2,25),this.git3=qt(this.git3,25),this.git4=qt(this.git4,25),this.git5=qt(this.git5,25),this.git6=qt(this.git6,25),this.git7=qt(this.git7,25)),this.gitInv0=this.gitInv0||vt(this.git0),this.gitInv1=this.gitInv1||vt(this.git1),this.gitInv2=this.gitInv2||vt(this.git2),this.gitInv3=this.gitInv3||vt(this.git3),this.gitInv4=this.gitInv4||vt(this.git4),this.gitInv5=this.gitInv5||vt(this.git5),this.gitInv6=this.gitInv6||vt(this.git6),this.gitInv7=this.gitInv7||vt(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||fd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dd}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}},w(Gs,"Theme"),Gs),a$=w(t=>{const e=new r$;return e.calculate(t),e},"getThemeVariables"),Ys,l$=(Ys=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Mt(this.primaryColor,16),this.tertiaryColor=Q(this.primaryColor,{h:-160}),this.primaryBorderColor=vt(this.background),this.secondaryBorderColor=oi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=oi(this.tertiaryColor,this.darkMode),this.primaryTextColor=vt(this.primaryColor),this.secondaryTextColor=vt(this.secondaryColor),this.tertiaryTextColor=vt(this.tertiaryColor),this.lineColor=vt(this.background),this.textColor=vt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Mt(vt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Uc(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=qt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=qt(this.sectionBkgColor,10),this.taskBorderColor=Uc(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Uc(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||Mt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,n,i,a,s,o,c,f,h,d,g,y,m,_,v,C,S,T,A,B,N;this.secondBkg=Mt(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=Mt(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=Mt(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=this.darkTextColor,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=Q(this.primaryColor,{h:64}),this.fillType3=Q(this.secondaryColor,{h:64}),this.fillType4=Q(this.primaryColor,{h:-64}),this.fillType5=Q(this.secondaryColor,{h:-64}),this.fillType6=Q(this.primaryColor,{h:128}),this.fillType7=Q(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||Q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Q(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Q(this.primaryColor,{h:330});for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||vt(this["cScale"+E]);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScalePeer"+E]=this["cScalePeer"+E]||Mt(this["cScale"+E],10);for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||Q(this.mainBkg,{h:30,s:-30,l:-(-10+E*4)}),this["surfacePeer"+E]=this["surfacePeer"+E]||Q(this.mainBkg,{h:30,s:-30,l:-(-7+E*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["pie"+E]=this["cScale"+E];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||uu(this.quadrant1Fill)?Mt(this.quadrant1Fill):qt(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:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.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:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((_=this.radar)==null?void 0:_.axisLabelFontSize)||12,curveOpacity:((v=this.radar)==null?void 0:v.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((T=this.radar)==null?void 0:T.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((B=this.radar)==null?void 0:B.legendBoxSize)||12,legendFontSize:((N=this.radar)==null?void 0:N.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Mt(this.secondaryColor,20),this.git1=Mt(this.pie2||this.secondaryColor,20),this.git2=Mt(this.pie3||this.tertiaryColor,20),this.git3=Mt(this.pie4||Q(this.primaryColor,{h:-30}),20),this.git4=Mt(this.pie5||Q(this.primaryColor,{h:-60}),20),this.git5=Mt(this.pie6||Q(this.primaryColor,{h:-90}),10),this.git6=Mt(this.pie7||Q(this.primaryColor,{h:60}),10),this.git7=Mt(this.pie8||Q(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||vt(this.git0),this.gitInv1=this.gitInv1||vt(this.git1),this.gitInv2=this.gitInv2||vt(this.git2),this.gitInv3=this.gitInv3||vt(this.git3),this.gitInv4=this.gitInv4||vt(this.git4),this.gitInv5=this.gitInv5||vt(this.git5),this.gitInv6=this.gitInv6||vt(this.git6),this.gitInv7=this.gitInv7||vt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||vt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||vt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Mt(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}},w(Ys,"Theme"),Ys),s$=w(t=>{const e=new l$;return e.calculate(t),e},"getThemeVariables"),Ws,o$=(Ws=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Q(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Q(this.primaryColor,{h:-160}),this.primaryBorderColor=oi(this.primaryColor,this.darkMode),this.secondaryBorderColor=oi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=oi(this.tertiaryColor,this.darkMode),this.primaryTextColor=vt(this.primaryColor),this.secondaryTextColor=vt(this.secondaryColor),this.tertiaryTextColor=vt(this.tertiaryColor),this.lineColor=vt(this.background),this.textColor=vt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Uc(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,n,i,a,s,o,c,f,h,d,g,y,m,_,v,C,S,T,A,B,N;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Q(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Q(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qt(this.tertiaryColor,40);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScale"+E]=qt(this["cScale"+E],10),this["cScalePeer"+E]=this["cScalePeer"+E]||qt(this["cScale"+E],25);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||Q(this["cScale"+E],{h:180});for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||Q(this.mainBkg,{h:30,l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||Q(this.mainBkg,{h:30,l:-(7+E*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||vt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||vt(this.labelTextColor);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Mt(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Mt(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Mt(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=Q(this.primaryColor,{h:64}),this.fillType3=Q(this.secondaryColor,{h:64}),this.fillType4=Q(this.primaryColor,{h:-64}),this.fillType5=Q(this.secondaryColor,{h:-64}),this.fillType6=Q(this.primaryColor,{h:128}),this.fillType7=Q(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Q(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Q(this.primaryColor,{l:-10}),this.pie5=this.pie5||Q(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Q(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Q(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Q(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Q(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Q(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Q(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Q(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||uu(this.quadrant1Fill)?Mt(this.quadrant1Fill):qt(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:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((f=this.radar)==null?void 0:f.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((v=this.xyChart)==null?void 0:v.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((T=this.xyChart)==null?void 0:T.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((A=this.xyChart)==null?void 0:A.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((B=this.xyChart)==null?void 0:B.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((N=this.xyChart)==null?void 0:N.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||Q(this.primaryColor,{h:-30}),this.git4=this.git4||Q(this.primaryColor,{h:-60}),this.git5=this.git5||Q(this.primaryColor,{h:-90}),this.git6=this.git6||Q(this.primaryColor,{h:60}),this.git7=this.git7||Q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Mt(this.git0,25),this.git1=Mt(this.git1,25),this.git2=Mt(this.git2,25),this.git3=Mt(this.git3,25),this.git4=Mt(this.git4,25),this.git5=Mt(this.git5,25),this.git6=Mt(this.git6,25),this.git7=Mt(this.git7,25)):(this.git0=qt(this.git0,25),this.git1=qt(this.git1,25),this.git2=qt(this.git2,25),this.git3=qt(this.git3,25),this.git4=qt(this.git4,25),this.git5=qt(this.git5,25),this.git6=qt(this.git6,25),this.git7=qt(this.git7,25)),this.gitInv0=this.gitInv0||qt(vt(this.git0),25),this.gitInv1=this.gitInv1||vt(this.git1),this.gitInv2=this.gitInv2||vt(this.git2),this.gitInv3=this.gitInv3||vt(this.git3),this.gitInv4=this.gitInv4||vt(this.git4),this.gitInv5=this.gitInv5||vt(this.git5),this.gitInv6=this.gitInv6||vt(this.git6),this.gitInv7=this.gitInv7||vt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||vt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||vt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||fd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dd}calculate(e){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}},w(Ws,"Theme"),Ws),c$=w(t=>{const e=new o$;return e.calculate(t),e},"getThemeVariables"),Vs,u$=(Vs=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=Mt("#cde498",10),this.primaryBorderColor=oi(this.primaryColor,this.darkMode),this.secondaryBorderColor=oi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=oi(this.tertiaryColor,this.darkMode),this.primaryTextColor=vt(this.primaryColor),this.secondaryTextColor=vt(this.secondaryColor),this.tertiaryTextColor=vt(this.primaryColor),this.lineColor=vt(this.background),this.textColor=vt(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,n,i,a,s,o,c,f,h,d,g,y,m,_,v,C,S,T,A,B,N;this.actorBorder=qt(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||Q(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Q(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Q(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Q(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Q(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Q(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Q(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Q(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Q(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qt(this.tertiaryColor,40);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScale"+E]=qt(this["cScale"+E],10),this["cScalePeer"+E]=this["cScalePeer"+E]||qt(this["cScale"+E],25);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||Q(this["cScale"+E],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||Q(this.mainBkg,{h:30,s:-30,l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||Q(this.mainBkg,{h:30,s:-30,l:-(8+E*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Mt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Mt(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=Q(this.primaryColor,{h:64}),this.fillType3=Q(this.secondaryColor,{h:64}),this.fillType4=Q(this.primaryColor,{h:-64}),this.fillType5=Q(this.secondaryColor,{h:-64}),this.fillType6=Q(this.primaryColor,{h:128}),this.fillType7=Q(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||Q(this.primaryColor,{l:-30}),this.pie5=this.pie5||Q(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Q(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Q(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Q(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Q(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Q(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Q(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Q(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.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||uu(this.quadrant1Fill)?Mt(this.quadrant1Fill):qt(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:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.graticuleStrokeWidth)||1,graticuleOpacity:((f=this.radar)==null?void 0:f.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((v=this.xyChart)==null?void 0:v.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((T=this.xyChart)==null?void 0:T.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((A=this.xyChart)==null?void 0:A.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((B=this.xyChart)==null?void 0:B.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((N=this.xyChart)==null?void 0:N.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||Q(this.primaryColor,{h:-30}),this.git4=this.git4||Q(this.primaryColor,{h:-60}),this.git5=this.git5||Q(this.primaryColor,{h:-90}),this.git6=this.git6||Q(this.primaryColor,{h:60}),this.git7=this.git7||Q(this.primaryColor,{h:120}),this.darkMode?(this.git0=Mt(this.git0,25),this.git1=Mt(this.git1,25),this.git2=Mt(this.git2,25),this.git3=Mt(this.git3,25),this.git4=Mt(this.git4,25),this.git5=Mt(this.git5,25),this.git6=Mt(this.git6,25),this.git7=Mt(this.git7,25)):(this.git0=qt(this.git0,25),this.git1=qt(this.git1,25),this.git2=qt(this.git2,25),this.git3=qt(this.git3,25),this.git4=qt(this.git4,25),this.git5=qt(this.git5,25),this.git6=qt(this.git6,25),this.git7=qt(this.git7,25)),this.gitInv0=this.gitInv0||vt(this.git0),this.gitInv1=this.gitInv1||vt(this.git1),this.gitInv2=this.gitInv2||vt(this.git2),this.gitInv3=this.gitInv3||vt(this.git3),this.gitInv4=this.gitInv4||vt(this.git4),this.gitInv5=this.gitInv5||vt(this.git5),this.gitInv6=this.gitInv6||vt(this.git6),this.gitInv7=this.gitInv7||vt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||vt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||vt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||fd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dd}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}},w(Vs,"Theme"),Vs),h$=w(t=>{const e=new u$;return e.calculate(t),e},"getThemeVariables"),Xs,f$=(Xs=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Mt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Q(this.primaryColor,{h:-160}),this.primaryBorderColor=oi(this.primaryColor,this.darkMode),this.secondaryBorderColor=oi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=oi(this.tertiaryColor,this.darkMode),this.primaryTextColor=vt(this.primaryColor),this.secondaryTextColor=vt(this.secondaryColor),this.tertiaryTextColor=vt(this.tertiaryColor),this.lineColor=vt(this.background),this.textColor=vt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Mt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,n,i,a,s,o,c,f,h,d,g,y,m,_,v,C,S,T,A,B,N;this.secondBkg=Mt(this.contrast,55),this.border2=this.contrast,this.actorBorder=Mt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleInv"+E]=this["cScaleInv"+E]||vt(this["cScale"+E]);for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this.darkMode?this["cScalePeer"+E]=this["cScalePeer"+E]||Mt(this["cScale"+E],10):this["cScalePeer"+E]=this["cScalePeer"+E]||qt(this["cScale"+E],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["cScaleLabel"+E]=this["cScaleLabel"+E]||this.scaleLabelColor;for(let E=0;E<5;E++)this["surface"+E]=this["surface"+E]||Q(this.mainBkg,{l:-(5+E*5)}),this["surfacePeer"+E]=this["surfacePeer"+E]||Q(this.mainBkg,{l:-(8+E*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Mt(this.contrast,30),this.sectionBkgColor2=Mt(this.contrast,30),this.taskBorderColor=qt(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=Mt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=qt(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=Q(this.primaryColor,{h:64}),this.fillType3=Q(this.secondaryColor,{h:64}),this.fillType4=Q(this.primaryColor,{h:-64}),this.fillType5=Q(this.secondaryColor,{h:-64}),this.fillType6=Q(this.primaryColor,{h:128}),this.fillType7=Q(this.secondaryColor,{h:128});for(let E=0;E<this.THEME_COLOR_LIMIT;E++)this["pie"+E]=this["cScale"+E];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Q(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Q(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Q(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Q(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Q(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Q(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||uu(this.quadrant1Fill)?Mt(this.quadrant1Fill):qt(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:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((_=this.radar)==null?void 0:_.axisLabelFontSize)||12,curveOpacity:((v=this.radar)==null?void 0:v.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((T=this.radar)==null?void 0:T.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((B=this.radar)==null?void 0:B.legendBoxSize)||12,legendFontSize:((N=this.radar)==null?void 0:N.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=qt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Q(this.primaryColor,{h:-30}),this.git4=this.pie5||Q(this.primaryColor,{h:-60}),this.git5=this.pie6||Q(this.primaryColor,{h:-90}),this.git6=this.pie7||Q(this.primaryColor,{h:60}),this.git7=this.pie8||Q(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||vt(this.git0),this.gitInv1=this.gitInv1||vt(this.git1),this.gitInv2=this.gitInv2||vt(this.git2),this.gitInv3=this.gitInv3||vt(this.git3),this.gitInv4=this.gitInv4||vt(this.git4),this.gitInv5=this.gitInv5||vt(this.git5),this.gitInv6=this.gitInv6||vt(this.git6),this.gitInv7=this.gitInv7||vt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||fd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dd}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}},w(Xs,"Theme"),Xs),d$=w(t=>{const e=new f$;return e.calculate(t),e},"getThemeVariables"),ua={base:{getThemeVariables:a$},dark:{getThemeVariables:s$},default:{getThemeVariables:c$},forest:{getThemeVariables:h$},neutral:{getThemeVariables:d$}},Er={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},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},MC={...Er,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:ua.default.getThemeVariables(),sequence:{...Er.sequence,messageFont:w(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:w(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:w(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Er.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Er.c4,useWidth:void 0,personFont:w(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Er.flowchart,inheritDir:!1},external_personFont:w(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:w(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:w(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:w(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:w(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:w(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:w(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:w(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:w(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:w(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:w(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:w(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:w(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:w(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:w(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:w(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:w(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:w(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:w(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:w(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:w(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Er.pie,useWidth:984},xyChart:{...Er.xyChart,useWidth:void 0},requirement:{...Er.requirement,useWidth:void 0},packet:{...Er.packet},radar:{...Er.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},NC=w((t,e="")=>Object.keys(t).reduce((n,i)=>Array.isArray(t[i])?n:typeof t[i]=="object"&&t[i]!==null?[...n,e+i,...NC(t[i],"")]:[...n,e+i],[]),"keyify"),p$=new Set(NC(MC,"")),OC=MC,wf=w(t=>{if(ht.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>wf(e));return}for(const e of Object.keys(t)){if(ht.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!p$.has(e)||t[e]==null){ht.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){ht.debug("sanitizing object",e),wf(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const i of n)e.includes(i)&&(ht.debug("sanitizing css option",e),t[e]=g$(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}ht.debug("After sanitization",t)}},"sanitizeDirective"),g$=w(t=>{let e=0,n=0;for(const i of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),to=Object.freeze(OC),Ti=On({},to),Cf,Il=[],Hc=On({},to),pd=w((t,e)=>{let n=On({},t),i={};for(const a of e)DC(a),i=On(i,a);if(n=On(n,i),i.theme&&i.theme in ua){const a=On({},Cf),s=On(a.themeVariables||{},i.themeVariables);n.theme&&n.theme in ua&&(n.themeVariables=ua[n.theme].getThemeVariables(s))}return Hc=n,BC(Hc),Hc},"updateCurrentConfig"),m$=w(t=>(Ti=On({},to),Ti=On(Ti,t),t.theme&&ua[t.theme]&&(Ti.themeVariables=ua[t.theme].getThemeVariables(t.themeVariables)),pd(Ti,Il),Ti),"setSiteConfig"),y$=w(t=>{Cf=On({},t)},"saveConfigFromInitialize"),b$=w(t=>(Ti=On(Ti,t),pd(Ti,Il),Ti),"updateSiteConfig"),LC=w(()=>On({},Ti),"getSiteConfig"),RC=w(t=>(BC(t),On(Hc,t),Zn()),"setConfig"),Zn=w(()=>On({},Hc),"getConfig"),DC=w(t=>{t&&(["secure",...Ti.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(ht.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"&&DC(t[e])}))},"sanitize"),x$=w(t=>{var e;wf(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Il.push(t),pd(Ti,Il)},"addDirective"),kf=w((t=Ti)=>{Il=[],pd(t,Il)},"reset"),_$={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},gS={},v$=w(t=>{gS[t]||(ht.warn(_$[t]),gS[t]=!0)},"issueWarning"),BC=w(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&v$("LAZY_LOAD_DEPRECATED")},"checkConfig"),vX=w(()=>{let t={};Cf&&(t=On(t,Cf));for(const e of Il)t=On(t,e);return t},"getUserDefinedConfig"),hu=/<br\s*\/?>/gi,S$=w(t=>t?FC(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),w$=(()=>{let t=!1;return()=>{t||(IC(),t=!0)}})();function IC(){const t="data-temp-href-target";Js.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Js.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"))})}w(IC,"setupDompurifyHooks");var zC=w(t=>(w$(),Js.sanitize(t)),"removeScript"),mS=w((t,e)=>{var n;if(((n=e.flowchart)==null?void 0:n.htmlLabels)!==!1){const i=e.securityLevel;i==="antiscript"||i==="strict"?t=zC(t):i!=="loose"&&(t=FC(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=T$(t))}return t},"sanitizeMore"),ar=w((t,e)=>t&&(e.dompurifyConfig?t=Js.sanitize(mS(t,e),e.dompurifyConfig).toString():t=Js.sanitize(mS(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),C$=w((t,e)=>typeof t=="string"?ar(t,e):t.flat().map(n=>ar(n,e)),"sanitizeTextOrArray"),k$=w(t=>hu.test(t),"hasBreaks"),E$=w(t=>t.split(hu),"splitBreaks"),T$=w(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),FC=w(t=>t.replace(hu,"#br#"),"breakToPlaceholder"),A$=w(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),Rn=w(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),M$=w(function(...t){const e=t.filter(n=>!isNaN(n));return Math.max(...e)},"getMax"),N$=w(function(...t){const e=t.filter(n=>!isNaN(n));return Math.min(...e)},"getMin"),yS=w(function(t){const e=t.split(/(,)/),n=[];for(let i=0;i<e.length;i++){let a=e[i];if(a===","&&i>0&&i+1<e.length){const s=e[i-1],o=e[i+1];O$(s,o)&&(a=s+","+o,i++,n.pop())}n.push(L$(a))}return n.join("")},"parseGenericTypes"),Zm=w((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),O$=w((t,e)=>{const n=Zm(t,"~"),i=Zm(e,"~");return n===1&&i===1},"shouldCombineSets"),L$=w(t=>{const e=Zm(t,"~");let n=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const i=[...t];let a=i.indexOf("~"),s=i.lastIndexOf("~");for(;a!==-1&&s!==-1&&a!==s;)i[a]="<",i[s]=">",a=i.indexOf("~"),s=i.lastIndexOf("~");return n&&i.unshift("~"),i.join("")},"processSet"),bS=w(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Qm=/\$\$(.*)\$\$/g,eo=w(t=>{var e;return(((e=t.match(Qm))==null?void 0:e.length)??0)>0},"hasKatex"),SX=w(async(t,e)=>{const n=document.createElement("div");n.innerHTML=await gb(t,e),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",n);const a={width:n.clientWidth,height:n.clientHeight};return n.remove(),a},"calculateMathMLDimensions"),R$=w(async(t,e)=>{if(!eo(t))return t;if(!(bS()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Qm,"MathML is unsupported in this environment.");{const{default:n}=await Re(async()=>{const{default:a}=await import("./katex-Cu_Erd72.js");return{default:a}},[]),i=e.forceLegacyMathML||!bS()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(hu).map(a=>eo(a)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${a}</div>`:`<div>${a}</div>`).join("").replace(Qm,(a,s)=>n.renderToString(s,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),gb=w(async(t,e)=>ar(await R$(t,e),e),"renderKatexSanitized"),uo={getRows:S$,sanitizeText:ar,sanitizeTextOrArray:C$,hasBreaks:k$,splitBreaks:E$,lineBreakRegex:hu,removeScript:zC,getUrl:A$,evaluate:Rn,getMax:M$,getMin:N$},D$=w(function(t,e){for(let n of e)t.attr(n[0],n[1])},"d3Attrs"),B$=w(function(t,e,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),$C=w(function(t,e,n,i){const a=B$(e,n,i);D$(t,a)},"configureSvgSize"),I$=w(function(t,e,n,i){const a=e.node().getBBox(),s=a.width,o=a.height;ht.info(`SVG bounds: ${s}x${o}`,a);let c=0,f=0;ht.info(`Graph bounds: ${c}x${f}`,t),c=s+n*2,f=o+n*2,ht.info(`Calculated bounds: ${c}x${f}`),$C(e,f,c,i);const h=`${a.x-n} ${a.y-n} ${a.width+2*n} ${a.height+2*n}`;e.attr("viewBox",h)},"setupGraphViewbox"),af={},z$=w((t,e,n)=>{let i="";return t in af&&af[t]?i=af[t](n):ht.warn(`No theme found for ${t}`),` & {
91
+ font-family: ${n.fontFamily};
92
+ font-size: ${n.fontSize};
93
+ fill: ${n.textColor}
94
+ }
95
+ @keyframes edge-animation-frame {
96
+ from {
97
+ stroke-dashoffset: 0;
98
+ }
99
+ }
100
+ @keyframes dash {
101
+ to {
102
+ stroke-dashoffset: 0;
103
+ }
104
+ }
105
+ & .edge-animation-slow {
106
+ stroke-dasharray: 9,5 !important;
107
+ stroke-dashoffset: 900;
108
+ animation: dash 50s linear infinite;
109
+ stroke-linecap: round;
110
+ }
111
+ & .edge-animation-fast {
112
+ stroke-dasharray: 9,5 !important;
113
+ stroke-dashoffset: 900;
114
+ animation: dash 20s linear infinite;
115
+ stroke-linecap: round;
116
+ }
117
+ /* Classes common for multiple diagrams */
118
+
119
+ & .error-icon {
120
+ fill: ${n.errorBkgColor};
121
+ }
122
+ & .error-text {
123
+ fill: ${n.errorTextColor};
124
+ stroke: ${n.errorTextColor};
125
+ }
126
+
127
+ & .edge-thickness-normal {
128
+ stroke-width: 1px;
129
+ }
130
+ & .edge-thickness-thick {
131
+ stroke-width: 3.5px
132
+ }
133
+ & .edge-pattern-solid {
134
+ stroke-dasharray: 0;
135
+ }
136
+ & .edge-thickness-invisible {
137
+ stroke-width: 0;
138
+ fill: none;
139
+ }
140
+ & .edge-pattern-dashed{
141
+ stroke-dasharray: 3;
142
+ }
143
+ .edge-pattern-dotted {
144
+ stroke-dasharray: 2;
145
+ }
146
+
147
+ & .marker {
148
+ fill: ${n.lineColor};
149
+ stroke: ${n.lineColor};
150
+ }
151
+ & .marker.cross {
152
+ stroke: ${n.lineColor};
153
+ }
154
+
155
+ & svg {
156
+ font-family: ${n.fontFamily};
157
+ font-size: ${n.fontSize};
158
+ }
159
+ & p {
160
+ margin: 0
161
+ }
162
+
163
+ ${i}
164
+
165
+ ${e}
166
+ `},"getStyles"),F$=w((t,e)=>{e!==void 0&&(af[t]=e)},"addStylesForDiagram"),$$=z$,UC={};TF(UC,{clear:()=>U$,getAccDescription:()=>j$,getAccTitle:()=>H$,getDiagramTitle:()=>Y$,setAccDescription:()=>q$,setAccTitle:()=>P$,setDiagramTitle:()=>G$});var mb="",yb="",bb="",xb=w(t=>ar(t,Zn()),"sanitizeText"),U$=w(()=>{mb="",bb="",yb=""},"clear"),P$=w(t=>{mb=xb(t).replace(/^\s+/g,"")},"setAccTitle"),H$=w(()=>mb,"getAccTitle"),q$=w(t=>{bb=xb(t).replace(/\n\s+/g,`
167
+ `)},"setAccDescription"),j$=w(()=>bb,"getAccDescription"),G$=w(t=>{yb=xb(t)},"setDiagramTitle"),Y$=w(()=>yb,"getDiagramTitle"),xS=ht,W$=db,Oe=Zn,wX=RC,CX=to,_b=w(t=>ar(t,Oe()),"sanitizeText"),V$=I$,X$=w(()=>UC,"getCommonDb"),Ef={},Tf=w((t,e,n)=>{var i;Ef[t]&&xS.warn(`Diagram with id ${t} already registered. Overwriting.`),Ef[t]=e,n&&AC(t,n),F$(t,e.styles),(i=e.injectUtils)==null||i.call(e,xS,W$,Oe,_b,V$,X$(),()=>{})},"registerDiagram"),Jm=w(t=>{if(t in Ef)return Ef[t];throw new K$(t)},"getDiagram"),Ks,K$=(Ks=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},w(Ks,"DiagramNotFoundError"),Ks),Z$={value:()=>{}};function PC(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new lf(n)}function lf(t){this._=t}function Q$(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",a=n.indexOf(".");if(a>=0&&(i=n.slice(a+1),n=n.slice(0,a)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}lf.prototype=PC.prototype={constructor:lf,on:function(t,e){var n=this._,i=Q$(t+"",n),a,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((a=(t=i[s]).type)&&(a=J$(n[a],t.name)))return a;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(a=(t=i[s]).type)n[a]=_S(n[a],t.name,e);else if(e==null)for(a in n)n[a]=_S(n[a],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new lf(t)},call:function(t,e){if((a=arguments.length-2)>0)for(var n=new Array(a),i=0,a,s;i<a;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,a=s.length;i<a;++i)s[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],a=0,s=i.length;a<s;++a)i[a].value.apply(e,n)}};function J$(t,e){for(var n=0,i=t.length,a;n<i;++n)if((a=t[n]).name===e)return a.value}function _S(t,e,n){for(var i=0,a=t.length;i<a;++i)if(t[i].name===e){t[i]=Z$,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var ty="http://www.w3.org/1999/xhtml";const vS={svg:"http://www.w3.org/2000/svg",xhtml:ty,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gd(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),vS.hasOwnProperty(e)?{space:vS[e],local:t}:t}function t6(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ty&&e.documentElement.namespaceURI===ty?e.createElement(t):e.createElementNS(n,t)}}function e6(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function HC(t){var e=gd(t);return(e.local?e6:t6)(e)}function n6(){}function vb(t){return t==null?n6:function(){return this.querySelector(t)}}function i6(t){typeof t!="function"&&(t=vb(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a<n;++a)for(var s=e[a],o=s.length,c=i[a]=new Array(o),f,h,d=0;d<o;++d)(f=s[d])&&(h=t.call(f,f.__data__,d,s))&&("__data__"in f&&(h.__data__=f.__data__),c[d]=h);return new ji(i,this._parents)}function r6(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function a6(){return[]}function qC(t){return t==null?a6:function(){return this.querySelectorAll(t)}}function l6(t){return function(){return r6(t.apply(this,arguments))}}function s6(t){typeof t=="function"?t=l6(t):t=qC(t);for(var e=this._groups,n=e.length,i=[],a=[],s=0;s<n;++s)for(var o=e[s],c=o.length,f,h=0;h<c;++h)(f=o[h])&&(i.push(t.call(f,f.__data__,h,o)),a.push(f));return new ji(i,a)}function jC(t){return function(){return this.matches(t)}}function GC(t){return function(e){return e.matches(t)}}var o6=Array.prototype.find;function c6(t){return function(){return o6.call(this.children,t)}}function u6(){return this.firstElementChild}function h6(t){return this.select(t==null?u6:c6(typeof t=="function"?t:GC(t)))}var f6=Array.prototype.filter;function d6(){return Array.from(this.children)}function p6(t){return function(){return f6.call(this.children,t)}}function g6(t){return this.selectAll(t==null?d6:p6(typeof t=="function"?t:GC(t)))}function m6(t){typeof t!="function"&&(t=jC(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a<n;++a)for(var s=e[a],o=s.length,c=i[a]=[],f,h=0;h<o;++h)(f=s[h])&&t.call(f,f.__data__,h,s)&&c.push(f);return new ji(i,this._parents)}function YC(t){return new Array(t.length)}function y6(){return new ji(this._enter||this._groups.map(YC),this._parents)}function Af(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Af.prototype={constructor:Af,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 b6(t){return function(){return t}}function x6(t,e,n,i,a,s){for(var o=0,c,f=e.length,h=s.length;o<h;++o)(c=e[o])?(c.__data__=s[o],i[o]=c):n[o]=new Af(t,s[o]);for(;o<f;++o)(c=e[o])&&(a[o]=c)}function _6(t,e,n,i,a,s,o){var c,f,h=new Map,d=e.length,g=s.length,y=new Array(d),m;for(c=0;c<d;++c)(f=e[c])&&(y[c]=m=o.call(f,f.__data__,c,e)+"",h.has(m)?a[c]=f:h.set(m,f));for(c=0;c<g;++c)m=o.call(t,s[c],c,s)+"",(f=h.get(m))?(i[c]=f,f.__data__=s[c],h.delete(m)):n[c]=new Af(t,s[c]);for(c=0;c<d;++c)(f=e[c])&&h.get(y[c])===f&&(a[c]=f)}function v6(t){return t.__data__}function S6(t,e){if(!arguments.length)return Array.from(this,v6);var n=e?_6:x6,i=this._parents,a=this._groups;typeof t!="function"&&(t=b6(t));for(var s=a.length,o=new Array(s),c=new Array(s),f=new Array(s),h=0;h<s;++h){var d=i[h],g=a[h],y=g.length,m=w6(t.call(d,d&&d.__data__,h,i)),_=m.length,v=c[h]=new Array(_),C=o[h]=new Array(_),S=f[h]=new Array(y);n(d,g,v,C,S,m,e);for(var T=0,A=0,B,N;T<_;++T)if(B=v[T]){for(T>=A&&(A=T+1);!(N=C[A])&&++A<_;);B._next=N||null}}return o=new ji(o,i),o._enter=c,o._exit=f,o}function w6(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function C6(){return new ji(this._exit||this._groups.map(YC),this._parents)}function k6(t,e,n){var i=this.enter(),a=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(a=e(a),a&&(a=a.selection())),n==null?s.remove():n(s),i&&a?i.merge(a).order():a}function E6(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,a=n.length,s=i.length,o=Math.min(a,s),c=new Array(a),f=0;f<o;++f)for(var h=n[f],d=i[f],g=h.length,y=c[f]=new Array(g),m,_=0;_<g;++_)(m=h[_]||d[_])&&(y[_]=m);for(;f<a;++f)c[f]=n[f];return new ji(c,this._parents)}function T6(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],a=i.length-1,s=i[a],o;--a>=0;)(o=i[a])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function A6(t){t||(t=M6);function e(g,y){return g&&y?t(g.__data__,y.__data__):!g-!y}for(var n=this._groups,i=n.length,a=new Array(i),s=0;s<i;++s){for(var o=n[s],c=o.length,f=a[s]=new Array(c),h,d=0;d<c;++d)(h=o[d])&&(f[d]=h);f.sort(e)}return new ji(a,this._parents).order()}function M6(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function N6(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function O6(){return Array.from(this)}function L6(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],a=0,s=i.length;a<s;++a){var o=i[a];if(o)return o}return null}function R6(){let t=0;for(const e of this)++t;return t}function D6(){return!this.node()}function B6(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var a=e[n],s=0,o=a.length,c;s<o;++s)(c=a[s])&&t.call(c,c.__data__,s,a);return this}function I6(t){return function(){this.removeAttribute(t)}}function z6(t){return function(){this.removeAttributeNS(t.space,t.local)}}function F6(t,e){return function(){this.setAttribute(t,e)}}function $6(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function U6(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function P6(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function H6(t,e){var n=gd(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?z6:I6:typeof e=="function"?n.local?P6:U6:n.local?$6:F6)(n,e))}function WC(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function q6(t){return function(){this.style.removeProperty(t)}}function j6(t,e,n){return function(){this.style.setProperty(t,e,n)}}function G6(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Y6(t,e,n){return arguments.length>1?this.each((e==null?q6:typeof e=="function"?G6:j6)(t,e,n??"")):no(this.node(),t)}function no(t,e){return t.style.getPropertyValue(e)||WC(t).getComputedStyle(t,null).getPropertyValue(e)}function W6(t){return function(){delete this[t]}}function V6(t,e){return function(){this[t]=e}}function X6(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function K6(t,e){return arguments.length>1?this.each((e==null?W6:typeof e=="function"?X6:V6)(t,e)):this.node()[t]}function VC(t){return t.trim().split(/^|\s+/)}function Sb(t){return t.classList||new XC(t)}function XC(t){this._node=t,this._names=VC(t.getAttribute("class")||"")}XC.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 KC(t,e){for(var n=Sb(t),i=-1,a=e.length;++i<a;)n.add(e[i])}function ZC(t,e){for(var n=Sb(t),i=-1,a=e.length;++i<a;)n.remove(e[i])}function Z6(t){return function(){KC(this,t)}}function Q6(t){return function(){ZC(this,t)}}function J6(t,e){return function(){(e.apply(this,arguments)?KC:ZC)(this,t)}}function t9(t,e){var n=VC(t+"");if(arguments.length<2){for(var i=Sb(this.node()),a=-1,s=n.length;++a<s;)if(!i.contains(n[a]))return!1;return!0}return this.each((typeof e=="function"?J6:e?Z6:Q6)(n,e))}function e9(){this.textContent=""}function n9(t){return function(){this.textContent=t}}function i9(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function r9(t){return arguments.length?this.each(t==null?e9:(typeof t=="function"?i9:n9)(t)):this.node().textContent}function a9(){this.innerHTML=""}function l9(t){return function(){this.innerHTML=t}}function s9(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function o9(t){return arguments.length?this.each(t==null?a9:(typeof t=="function"?s9:l9)(t)):this.node().innerHTML}function c9(){this.nextSibling&&this.parentNode.appendChild(this)}function u9(){return this.each(c9)}function h9(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function f9(){return this.each(h9)}function d9(t){var e=typeof t=="function"?t:HC(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function p9(){return null}function g9(t,e){var n=typeof t=="function"?t:HC(t),i=e==null?p9:typeof e=="function"?e:vb(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function m9(){var t=this.parentNode;t&&t.removeChild(this)}function y9(){return this.each(m9)}function b9(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function x9(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _9(t){return this.select(t?x9:b9)}function v9(t){return arguments.length?this.property("__data__",t):this.node().__data__}function S9(t){return function(e){t.call(this,e,this.__data__)}}function w9(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function C9(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,a=e.length,s;n<a;++n)s=e[n],(!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 k9(t,e,n){return function(){var i=this.__on,a,s=S9(e);if(i){for(var o=0,c=i.length;o<c;++o)if((a=i[o]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=s,a.options=n),a.value=e;return}}this.addEventListener(t.type,s,n),a={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(a):this.__on=[a]}}function E9(t,e,n){var i=w9(t+""),a,s=i.length,o;if(arguments.length<2){var c=this.node().__on;if(c){for(var f=0,h=c.length,d;f<h;++f)for(a=0,d=c[f];a<s;++a)if((o=i[a]).type===d.type&&o.name===d.name)return d.value}return}for(c=e?k9:C9,a=0;a<s;++a)this.each(c(i[a],e,n));return this}function QC(t,e,n){var i=WC(t),a=i.CustomEvent;typeof a=="function"?a=new a(e,n):(a=i.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function T9(t,e){return function(){return QC(this,t,e)}}function A9(t,e){return function(){return QC(this,t,e.apply(this,arguments))}}function M9(t,e){return this.each((typeof e=="function"?A9:T9)(t,e))}function*N9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],a=0,s=i.length,o;a<s;++a)(o=i[a])&&(yield o)}var JC=[null];function ji(t,e){this._groups=t,this._parents=e}function fu(){return new ji([[document.documentElement]],JC)}function O9(){return this}ji.prototype=fu.prototype={constructor:ji,select:i6,selectAll:s6,selectChild:h6,selectChildren:g6,filter:m6,data:S6,enter:y6,exit:C6,join:k6,merge:E6,selection:O9,order:T6,sort:A6,call:N6,nodes:O6,node:L6,size:R6,empty:D6,each:B6,attr:H6,style:Y6,property:K6,classed:t9,text:r9,html:o9,raise:u9,lower:f9,append:d9,insert:g9,remove:y9,clone:_9,datum:v9,on:E9,dispatch:M9,[Symbol.iterator]:N9};function Se(t){return typeof t=="string"?new ji([[document.querySelector(t)]],[document.documentElement]):new ji([[t]],JC)}function wb(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tk(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function du(){}var Wc=.7,Mf=1/Wc,Hs="\\s*([+-]?\\d+)\\s*",Vc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",L9=/^#([0-9a-f]{3,8})$/,R9=new RegExp(`^rgb\\(${Hs},${Hs},${Hs}\\)$`),D9=new RegExp(`^rgb\\(${Rr},${Rr},${Rr}\\)$`),B9=new RegExp(`^rgba\\(${Hs},${Hs},${Hs},${Vc}\\)$`),I9=new RegExp(`^rgba\\(${Rr},${Rr},${Rr},${Vc}\\)$`),z9=new RegExp(`^hsl\\(${Vc},${Rr},${Rr}\\)$`),F9=new RegExp(`^hsla\\(${Vc},${Rr},${Rr},${Vc}\\)$`),SS={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};wb(du,Xc,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:wS,formatHex:wS,formatHex8:$9,formatHsl:U9,formatRgb:CS,toString:CS});function wS(){return this.rgb().formatHex()}function $9(){return this.rgb().formatHex8()}function U9(){return ek(this).formatHsl()}function CS(){return this.rgb().formatRgb()}function Xc(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=L9.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?kS(e):n===3?new Mi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?qh(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?qh(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=R9.exec(t))?new Mi(e[1],e[2],e[3],1):(e=D9.exec(t))?new Mi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=B9.exec(t))?qh(e[1],e[2],e[3],e[4]):(e=I9.exec(t))?qh(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=z9.exec(t))?AS(e[1],e[2]/100,e[3]/100,1):(e=F9.exec(t))?AS(e[1],e[2]/100,e[3]/100,e[4]):SS.hasOwnProperty(t)?kS(SS[t]):t==="transparent"?new Mi(NaN,NaN,NaN,0):null}function kS(t){return new Mi(t>>16&255,t>>8&255,t&255,1)}function qh(t,e,n,i){return i<=0&&(t=e=n=NaN),new Mi(t,e,n,i)}function P9(t){return t instanceof du||(t=Xc(t)),t?(t=t.rgb(),new Mi(t.r,t.g,t.b,t.opacity)):new Mi}function ey(t,e,n,i){return arguments.length===1?P9(t):new Mi(t,e,n,i??1)}function Mi(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}wb(Mi,ey,tk(du,{brighter(t){return t=t==null?Mf:Math.pow(Mf,t),new Mi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Wc:Math.pow(Wc,t),new Mi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mi(Ll(this.r),Ll(this.g),Ll(this.b),Nf(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:ES,formatHex:ES,formatHex8:H9,formatRgb:TS,toString:TS}));function ES(){return`#${Al(this.r)}${Al(this.g)}${Al(this.b)}`}function H9(){return`#${Al(this.r)}${Al(this.g)}${Al(this.b)}${Al((isNaN(this.opacity)?1:this.opacity)*255)}`}function TS(){const t=Nf(this.opacity);return`${t===1?"rgb(":"rgba("}${Ll(this.r)}, ${Ll(this.g)}, ${Ll(this.b)}${t===1?")":`, ${t})`}`}function Nf(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ll(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Al(t){return t=Ll(t),(t<16?"0":"")+t.toString(16)}function AS(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new gr(t,e,n,i)}function ek(t){if(t instanceof gr)return new gr(t.h,t.s,t.l,t.opacity);if(t instanceof du||(t=Xc(t)),!t)return new gr;if(t instanceof gr)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,c=s-a,f=(s+a)/2;return c?(e===s?o=(n-i)/c+(n<i)*6:n===s?o=(i-e)/c+2:o=(e-n)/c+4,c/=f<.5?s+a:2-s-a,o*=60):c=f>0&&f<1?0:o,new gr(o,c,f,t.opacity)}function q9(t,e,n,i){return arguments.length===1?ek(t):new gr(t,e,n,i??1)}function gr(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}wb(gr,q9,tk(du,{brighter(t){return t=t==null?Mf:Math.pow(Mf,t),new gr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Wc:Math.pow(Wc,t),new gr(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,n=this.l,i=n+(n<.5?n:1-n)*e,a=2*n-i;return new Mi(bm(t>=240?t-240:t+120,a,i),bm(t,a,i),bm(t<120?t+240:t-120,a,i),this.opacity)},clamp(){return new gr(MS(this.h),jh(this.s),jh(this.l),Nf(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=Nf(this.opacity);return`${t===1?"hsl(":"hsla("}${MS(this.h)}, ${jh(this.s)*100}%, ${jh(this.l)*100}%${t===1?")":`, ${t})`}`}}));function MS(t){return t=(t||0)%360,t<0?t+360:t}function jh(t){return Math.max(0,Math.min(1,t||0))}function bm(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Cb=t=>()=>t;function nk(t,e){return function(n){return t+n*e}}function j9(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function kX(t,e){var n=e-t;return n?nk(t,n>180||n<-180?n-360*Math.round(n/360):n):Cb(isNaN(t)?e:t)}function G9(t){return(t=+t)==1?ik:function(e,n){return n-e?j9(e,n,t):Cb(isNaN(e)?n:e)}}function ik(t,e){var n=e-t;return n?nk(t,n):Cb(isNaN(t)?e:t)}const NS=(function t(e){var n=G9(e);function i(a,s){var o=n((a=ey(a)).r,(s=ey(s)).r),c=n(a.g,s.g),f=n(a.b,s.b),h=ik(a.opacity,s.opacity);return function(d){return a.r=o(d),a.g=c(d),a.b=f(d),a.opacity=h(d),a+""}}return i.gamma=t,i})(1);function Ya(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var ny=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xm=new RegExp(ny.source,"g");function Y9(t){return function(){return t}}function W9(t){return function(e){return t(e)+""}}function V9(t,e){var n=ny.lastIndex=xm.lastIndex=0,i,a,s,o=-1,c=[],f=[];for(t=t+"",e=e+"";(i=ny.exec(t))&&(a=xm.exec(e));)(s=a.index)>n&&(s=e.slice(n,s),c[o]?c[o]+=s:c[++o]=s),(i=i[0])===(a=a[0])?c[o]?c[o]+=a:c[++o]=a:(c[++o]=null,f.push({i:o,x:Ya(i,a)})),n=xm.lastIndex;return n<e.length&&(s=e.slice(n),c[o]?c[o]+=s:c[++o]=s),c.length<2?f[0]?W9(f[0].x):Y9(e):(e=f.length,function(h){for(var d=0,g;d<e;++d)c[(g=f[d]).i]=g.x(h);return c.join("")})}var OS=180/Math.PI,iy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rk(t,e,n,i,a,s){var o,c,f;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(f=t*n+e*i)&&(n-=t*f,i-=e*f),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,f/=c),t*i<e*n&&(t=-t,e=-e,f=-f,o=-o),{translateX:a,translateY:s,rotate:Math.atan2(e,t)*OS,skewX:Math.atan(f)*OS,scaleX:o,scaleY:c}}var Gh;function X9(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?iy:rk(e.a,e.b,e.c,e.d,e.e,e.f)}function K9(t){return t==null||(Gh||(Gh=document.createElementNS("http://www.w3.org/2000/svg","g")),Gh.setAttribute("transform",t),!(t=Gh.transform.baseVal.consolidate()))?iy:(t=t.matrix,rk(t.a,t.b,t.c,t.d,t.e,t.f))}function ak(t,e,n,i){function a(h){return h.length?h.pop()+" ":""}function s(h,d,g,y,m,_){if(h!==g||d!==y){var v=m.push("translate(",null,e,null,n);_.push({i:v-4,x:Ya(h,g)},{i:v-2,x:Ya(d,y)})}else(g||y)&&m.push("translate("+g+e+y+n)}function o(h,d,g,y){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),y.push({i:g.push(a(g)+"rotate(",null,i)-2,x:Ya(h,d)})):d&&g.push(a(g)+"rotate("+d+i)}function c(h,d,g,y){h!==d?y.push({i:g.push(a(g)+"skewX(",null,i)-2,x:Ya(h,d)}):d&&g.push(a(g)+"skewX("+d+i)}function f(h,d,g,y,m,_){if(h!==g||d!==y){var v=m.push(a(m)+"scale(",null,",",null,")");_.push({i:v-4,x:Ya(h,g)},{i:v-2,x:Ya(d,y)})}else(g!==1||y!==1)&&m.push(a(m)+"scale("+g+","+y+")")}return function(h,d){var g=[],y=[];return h=t(h),d=t(d),s(h.translateX,h.translateY,d.translateX,d.translateY,g,y),o(h.rotate,d.rotate,g,y),c(h.skewX,d.skewX,g,y),f(h.scaleX,h.scaleY,d.scaleX,d.scaleY,g,y),h=d=null,function(m){for(var _=-1,v=y.length,C;++_<v;)g[(C=y[_]).i]=C.x(m);return g.join("")}}}var Z9=ak(X9,"px, ","px)","deg)"),Q9=ak(K9,", ",")",")"),io=0,Ac=0,_c=0,lk=1e3,Of,Mc,Lf=0,zl=0,md=0,Kc=typeof performance=="object"&&performance.now?performance:Date,sk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function kb(){return zl||(sk(J9),zl=Kc.now()+md)}function J9(){zl=0}function Rf(){this._call=this._time=this._next=null}Rf.prototype=ok.prototype={constructor:Rf,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?kb():+n)+(e==null?0:+e),!this._next&&Mc!==this&&(Mc?Mc._next=this:Of=this,Mc=this),this._call=t,this._time=n,ry()},stop:function(){this._call&&(this._call=null,this._time=1/0,ry())}};function ok(t,e,n){var i=new Rf;return i.restart(t,e,n),i}function t8(){kb(),++io;for(var t=Of,e;t;)(e=zl-t._time)>=0&&t._call.call(void 0,e),t=t._next;--io}function LS(){zl=(Lf=Kc.now())+md,io=Ac=0;try{t8()}finally{io=0,n8(),zl=0}}function e8(){var t=Kc.now(),e=t-Lf;e>lk&&(md-=e,Lf=t)}function n8(){for(var t,e=Of,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Of=n);Mc=t,ry(i)}function ry(t){if(!io){Ac&&(Ac=clearTimeout(Ac));var e=t-zl;e>24?(t<1/0&&(Ac=setTimeout(LS,t-Kc.now()-md)),_c&&(_c=clearInterval(_c))):(_c||(Lf=Kc.now(),_c=setInterval(e8,lk)),io=1,sk(LS))}}function RS(t,e,n){var i=new Rf;return e=e==null?0:+e,i.restart(a=>{i.stop(),t(a+e)},e,n),i}var i8=PC("start","end","cancel","interrupt"),r8=[],ck=0,DS=1,ay=2,sf=3,BS=4,ly=5,of=6;function yd(t,e,n,i,a,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;a8(t,n,{name:e,index:i,group:a,on:i8,tween:r8,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ck})}function Eb(t,e){var n=_r(t,e);if(n.state>ck)throw new Error("too late; already scheduled");return n}function zr(t,e){var n=_r(t,e);if(n.state>sf)throw new Error("too late; already running");return n}function _r(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function a8(t,e,n){var i=t.__transition,a;i[e]=n,n.timer=ok(s,0,n.time);function s(h){n.state=DS,n.timer.restart(o,n.delay,n.time),n.delay<=h&&o(h-n.delay)}function o(h){var d,g,y,m;if(n.state!==DS)return f();for(d in i)if(m=i[d],m.name===n.name){if(m.state===sf)return RS(o);m.state===BS?(m.state=of,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete i[d]):+d<e&&(m.state=of,m.timer.stop(),m.on.call("cancel",t,t.__data__,m.index,m.group),delete i[d])}if(RS(function(){n.state===sf&&(n.state=BS,n.timer.restart(c,n.delay,n.time),c(h))}),n.state=ay,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ay){for(n.state=sf,a=new Array(y=n.tween.length),d=0,g=-1;d<y;++d)(m=n.tween[d].value.call(t,t.__data__,n.index,n.group))&&(a[++g]=m);a.length=g+1}}function c(h){for(var d=h<n.duration?n.ease.call(null,h/n.duration):(n.timer.restart(f),n.state=ly,1),g=-1,y=a.length;++g<y;)a[g].call(t,d);n.state===ly&&(n.on.call("end",t,t.__data__,n.index,n.group),f())}function f(){n.state=of,n.timer.stop(),delete i[e];for(var h in i)return;delete t.__transition}}function l8(t,e){var n=t.__transition,i,a,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((i=n[o]).name!==e){s=!1;continue}a=i.state>ay&&i.state<ly,i.state=of,i.timer.stop(),i.on.call(a?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[o]}s&&delete t.__transition}}function s8(t){return this.each(function(){l8(this,t)})}function o8(t,e){var n,i;return function(){var a=zr(this,t),s=a.tween;if(s!==n){i=n=s;for(var o=0,c=i.length;o<c;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}a.tween=i}}function c8(t,e,n){var i,a;if(typeof n!="function")throw new Error;return function(){var s=zr(this,t),o=s.tween;if(o!==i){a=(i=o).slice();for(var c={name:e,value:n},f=0,h=a.length;f<h;++f)if(a[f].name===e){a[f]=c;break}f===h&&a.push(c)}s.tween=a}}function u8(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=_r(this.node(),n).tween,a=0,s=i.length,o;a<s;++a)if((o=i[a]).name===t)return o.value;return null}return this.each((e==null?o8:c8)(n,t,e))}function Tb(t,e,n){var i=t._id;return t.each(function(){var a=zr(this,i);(a.value||(a.value={}))[e]=n.apply(this,arguments)}),function(a){return _r(a,i).value[e]}}function uk(t,e){var n;return(typeof e=="number"?Ya:e instanceof Xc?NS:(n=Xc(e))?(e=n,NS):V9)(t,e)}function h8(t){return function(){this.removeAttribute(t)}}function f8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d8(t,e,n){var i,a=n+"",s;return function(){var o=this.getAttribute(t);return o===a?null:o===i?s:s=e(i=o,n)}}function p8(t,e,n){var i,a=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===i?s:s=e(i=o,n)}}function g8(t,e,n){var i,a,s;return function(){var o,c=n(this),f;return c==null?void this.removeAttribute(t):(o=this.getAttribute(t),f=c+"",o===f?null:o===i&&f===a?s:(a=f,s=e(i=o,c)))}}function m8(t,e,n){var i,a,s;return function(){var o,c=n(this),f;return c==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),f=c+"",o===f?null:o===i&&f===a?s:(a=f,s=e(i=o,c)))}}function y8(t,e){var n=gd(t),i=n==="transform"?Q9:uk;return this.attrTween(t,typeof e=="function"?(n.local?m8:g8)(n,i,Tb(this,"attr."+t,e)):e==null?(n.local?f8:h8)(n):(n.local?p8:d8)(n,i,e))}function b8(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function x8(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function _8(t,e){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&x8(t,s)),n}return a._value=e,a}function v8(t,e){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&b8(t,s)),n}return a._value=e,a}function S8(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=gd(t);return this.tween(n,(i.local?_8:v8)(i,e))}function w8(t,e){return function(){Eb(this,t).delay=+e.apply(this,arguments)}}function C8(t,e){return e=+e,function(){Eb(this,t).delay=e}}function k8(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?w8:C8)(e,t)):_r(this.node(),e).delay}function E8(t,e){return function(){zr(this,t).duration=+e.apply(this,arguments)}}function T8(t,e){return e=+e,function(){zr(this,t).duration=e}}function A8(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?E8:T8)(e,t)):_r(this.node(),e).duration}function M8(t,e){if(typeof e!="function")throw new Error;return function(){zr(this,t).ease=e}}function N8(t){var e=this._id;return arguments.length?this.each(M8(e,t)):_r(this.node(),e).ease}function O8(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;zr(this,t).ease=n}}function L8(t){if(typeof t!="function")throw new Error;return this.each(O8(this._id,t))}function R8(t){typeof t!="function"&&(t=jC(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a<n;++a)for(var s=e[a],o=s.length,c=i[a]=[],f,h=0;h<o;++h)(f=s[h])&&t.call(f,f.__data__,h,s)&&c.push(f);return new fa(i,this._parents,this._name,this._id)}function D8(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,a=n.length,s=Math.min(i,a),o=new Array(i),c=0;c<s;++c)for(var f=e[c],h=n[c],d=f.length,g=o[c]=new Array(d),y,m=0;m<d;++m)(y=f[m]||h[m])&&(g[m]=y);for(;c<i;++c)o[c]=e[c];return new fa(o,this._parents,this._name,this._id)}function B8(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function I8(t,e,n){var i,a,s=B8(e)?Eb:zr;return function(){var o=s(this,t),c=o.on;c!==i&&(a=(i=c).copy()).on(e,n),o.on=a}}function z8(t,e){var n=this._id;return arguments.length<2?_r(this.node(),n).on.on(t):this.each(I8(n,t,e))}function F8(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function $8(){return this.on("end.remove",F8(this._id))}function U8(t){var e=this._name,n=this._id;typeof t!="function"&&(t=vb(t));for(var i=this._groups,a=i.length,s=new Array(a),o=0;o<a;++o)for(var c=i[o],f=c.length,h=s[o]=new Array(f),d,g,y=0;y<f;++y)(d=c[y])&&(g=t.call(d,d.__data__,y,c))&&("__data__"in d&&(g.__data__=d.__data__),h[y]=g,yd(h[y],e,n,y,h,_r(d,n)));return new fa(s,this._parents,e,n)}function P8(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qC(t));for(var i=this._groups,a=i.length,s=[],o=[],c=0;c<a;++c)for(var f=i[c],h=f.length,d,g=0;g<h;++g)if(d=f[g]){for(var y=t.call(d,d.__data__,g,f),m,_=_r(d,n),v=0,C=y.length;v<C;++v)(m=y[v])&&yd(m,e,n,v,y,_);s.push(y),o.push(d)}return new fa(s,o,e,n)}var H8=fu.prototype.constructor;function q8(){return new H8(this._groups,this._parents)}function j8(t,e){var n,i,a;return function(){var s=no(this,t),o=(this.style.removeProperty(t),no(this,t));return s===o?null:s===n&&o===i?a:a=e(n=s,i=o)}}function hk(t){return function(){this.style.removeProperty(t)}}function G8(t,e,n){var i,a=n+"",s;return function(){var o=no(this,t);return o===a?null:o===i?s:s=e(i=o,n)}}function Y8(t,e,n){var i,a,s;return function(){var o=no(this,t),c=n(this),f=c+"";return c==null&&(f=c=(this.style.removeProperty(t),no(this,t))),o===f?null:o===i&&f===a?s:(a=f,s=e(i=o,c))}}function W8(t,e){var n,i,a,s="style."+e,o="end."+s,c;return function(){var f=zr(this,t),h=f.on,d=f.value[s]==null?c||(c=hk(e)):void 0;(h!==n||a!==d)&&(i=(n=h).copy()).on(o,a=d),f.on=i}}function V8(t,e,n){var i=(t+="")=="transform"?Z9:uk;return e==null?this.styleTween(t,j8(t,i)).on("end.style."+t,hk(t)):typeof e=="function"?this.styleTween(t,Y8(t,i,Tb(this,"style."+t,e))).each(W8(this._id,t)):this.styleTween(t,G8(t,i,e),n).on("end.style."+t,null)}function X8(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function K8(t,e,n){var i,a;function s(){var o=e.apply(this,arguments);return o!==a&&(i=(a=o)&&X8(t,o,n)),i}return s._value=e,s}function Z8(t,e,n){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,K8(t,e,n??""))}function Q8(t){return function(){this.textContent=t}}function J8(t){return function(){var e=t(this);this.textContent=e??""}}function tU(t){return this.tween("text",typeof t=="function"?J8(Tb(this,"text",t)):Q8(t==null?"":t+""))}function eU(t){return function(e){this.textContent=t.call(this,e)}}function nU(t){var e,n;function i(){var a=t.apply(this,arguments);return a!==n&&(e=(n=a)&&eU(a)),e}return i._value=t,i}function iU(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,nU(t))}function rU(){for(var t=this._name,e=this._id,n=fk(),i=this._groups,a=i.length,s=0;s<a;++s)for(var o=i[s],c=o.length,f,h=0;h<c;++h)if(f=o[h]){var d=_r(f,e);yd(f,t,n,h,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new fa(i,this._parents,t,n)}function aU(){var t,e,n=this,i=n._id,a=n.size();return new Promise(function(s,o){var c={value:o},f={value:function(){--a===0&&s()}};n.each(function(){var h=zr(this,i),d=h.on;d!==t&&(e=(t=d).copy(),e._.cancel.push(c),e._.interrupt.push(c),e._.end.push(f)),h.on=e}),a===0&&s()})}var lU=0;function fa(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function fk(){return++lU}var sa=fu.prototype;fa.prototype={constructor:fa,select:U8,selectAll:P8,selectChild:sa.selectChild,selectChildren:sa.selectChildren,filter:R8,merge:D8,selection:q8,transition:rU,call:sa.call,nodes:sa.nodes,node:sa.node,size:sa.size,empty:sa.empty,each:sa.each,on:z8,attr:y8,attrTween:S8,style:V8,styleTween:Z8,text:tU,textTween:iU,remove:$8,tween:u8,delay:k8,duration:A8,ease:N8,easeVarying:L8,end:aU,[Symbol.iterator]:sa[Symbol.iterator]};function sU(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var oU={time:null,delay:0,duration:250,ease:sU};function cU(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function uU(t){var e,n;t instanceof fa?(e=t._id,t=t._name):(e=fk(),(n=oU).time=kb(),t=t==null?null:t+"");for(var i=this._groups,a=i.length,s=0;s<a;++s)for(var o=i[s],c=o.length,f,h=0;h<c;++h)(f=o[h])&&yd(f,t,e,h,o,n||cU(f,e));return new fa(i,this._parents,t,e)}fu.prototype.interrupt=s8;fu.prototype.transition=uU;const sy=Math.PI,oy=2*sy,Cl=1e-6,hU=oy-Cl;function dk(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function fU(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return dk;const n=10**e;return function(i){this._+=i[0];for(let a=1,s=i.length;a<s;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}class dU{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?dk:fU(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,a){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+a}`}bezierCurveTo(e,n,i,a,s,o){this._append`C${+e},${+n},${+i},${+a},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,i,a,s){if(e=+e,n=+n,i=+i,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,c=this._y1,f=i-e,h=a-n,d=o-e,g=c-n,y=d*d+g*g;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(y>Cl)if(!(Math.abs(g*f-h*d)>Cl)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let m=i-o,_=a-c,v=f*f+h*h,C=m*m+_*_,S=Math.sqrt(v),T=Math.sqrt(y),A=s*Math.tan((sy-Math.acos((v+y-C)/(2*S*T)))/2),B=A/T,N=A/S;Math.abs(B-1)>Cl&&this._append`L${e+B*d},${n+B*g}`,this._append`A${s},${s},0,0,${+(g*m>d*_)},${this._x1=e+N*f},${this._y1=n+N*h}`}}arc(e,n,i,a,s,o){if(e=+e,n=+n,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),f=i*Math.sin(a),h=e+c,d=n+f,g=1^o,y=o?a-s:s-a;this._x1===null?this._append`M${h},${d}`:(Math.abs(this._x1-h)>Cl||Math.abs(this._y1-d)>Cl)&&this._append`L${h},${d}`,i&&(y<0&&(y=y%oy+oy),y>hU?this._append`A${i},${i},0,1,${g},${e-c},${n-f}A${i},${i},0,1,${g},${this._x1=h},${this._y1=d}`:y>Cl&&this._append`A${i},${i},0,${+(y>=sy)},${g},${this._x1=e+i*Math.cos(s)},${this._y1=n+i*Math.sin(s)}`)}rect(e,n,i,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+a}h${-i}Z`}toString(){return this._}}function Ls(t){return function(){return t}}const EX=Math.abs,TX=Math.atan2,AX=Math.cos,MX=Math.max,NX=Math.min,OX=Math.sin,LX=Math.sqrt,IS=1e-12,Ab=Math.PI,zS=Ab/2,RX=2*Ab;function DX(t){return t>1?0:t<-1?Ab:Math.acos(t)}function BX(t){return t>=1?zS:t<=-1?-zS:Math.asin(t)}function pU(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new dU(e)}function gU(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function pk(t){this._context=t}pk.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 Df(t){return new pk(t)}function mU(t){return t[0]}function yU(t){return t[1]}function bU(t,e){var n=Ls(!0),i=null,a=Df,s=null,o=pU(c);t=typeof t=="function"?t:t===void 0?mU:Ls(t),e=typeof e=="function"?e:e===void 0?yU:Ls(e);function c(f){var h,d=(f=gU(f)).length,g,y=!1,m;for(i==null&&(s=a(m=o())),h=0;h<=d;++h)!(h<d&&n(g=f[h],h,f))===y&&((y=!y)?s.lineStart():s.lineEnd()),y&&s.point(+t(g,h,f),+e(g,h,f));if(m)return s=null,m+""||null}return c.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ls(+f),c):t},c.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ls(+f),c):e},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Ls(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}class gk{constructor(e,n){this._context=e,this._x=n}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,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function mk(t){return new gk(t,!0)}function yk(t){return new gk(t,!1)}function Xa(){}function Bf(t,e,n){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+n)/6)}function bd(t){this._context=t}bd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bf(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:Bf(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function cf(t){return new bd(t)}function bk(t){this._context=t}bk.prototype={areaStart:Xa,areaEnd:Xa,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:Bf(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function xU(t){return new bk(t)}function xk(t){this._context=t}xk.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 n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Bf(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function _U(t){return new xk(t)}function _k(t,e){this._basis=new bd(t),this._beta=e}_k.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],a=e[0],s=t[n]-i,o=e[n]-a,c=-1,f;++c<=n;)f=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+f*s),this._beta*e[c]+(1-this._beta)*(a+f*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const vU=(function t(e){function n(i){return e===1?new bd(i):new _k(i,e)}return n.beta=function(i){return t(+i)},n})(.85);function If(t,e,n){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-n),t._x2,t._y2)}function Mb(t,e){this._context=t,this._k=(1-e)/6}Mb.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:If(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:If(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 vk=(function t(e){function n(i){return new Mb(i,e)}return n.tension=function(i){return t(+i)},n})(0);function Nb(t,e){this._context=t,this._k=(1-e)/6}Nb.prototype={areaStart:Xa,areaEnd:Xa,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:If(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 SU=(function t(e){function n(i){return new Nb(i,e)}return n.tension=function(i){return t(+i)},n})(0);function Ob(t,e){this._context=t,this._k=(1-e)/6}Ob.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:If(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 wU=(function t(e){function n(i){return new Ob(i,e)}return n.tension=function(i){return t(+i)},n})(0);function Lb(t,e,n){var i=t._x1,a=t._y1,s=t._x2,o=t._y2;if(t._l01_a>IS){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,a=(a*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>IS){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/d,o=(o*h+t._y1*t._l23_2a-n*t._l12_2a)/d}t._context.bezierCurveTo(i,a,s,o,t._x2,t._y2)}function Sk(t,e){this._context=t,this._alpha=e}Sk.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 n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Lb(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 wk=(function t(e){function n(i){return e?new Sk(i,e):new Mb(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function Ck(t,e){this._context=t,this._alpha=e}Ck.prototype={areaStart:Xa,areaEnd:Xa,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 n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Lb(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 CU=(function t(e){function n(i){return e?new Ck(i,e):new Nb(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function kk(t,e){this._context=t,this._alpha=e}kk.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 n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Lb(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 kU=(function t(e){function n(i){return e?new kk(i,e):new Ob(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function Ek(t){this._context=t}Ek.prototype={areaStart:Xa,areaEnd:Xa,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 EU(t){return new Ek(t)}function FS(t){return t<0?-1:1}function $S(t,e,n){var i=t._x1-t._x0,a=e-t._x1,s=(t._y1-t._y0)/(i||a<0&&-0),o=(n-t._y1)/(a||i<0&&-0),c=(s*a+o*i)/(i+a);return(FS(s)+FS(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(c))||0}function US(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function _m(t,e,n){var i=t._x0,a=t._y0,s=t._x1,o=t._y1,c=(s-i)/3;t._context.bezierCurveTo(i+c,a+c*e,s-c,o-c*n,s,o)}function zf(t){this._context=t}zf.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:_m(this,this._t0,US(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 n=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,_m(this,US(this,n=$S(this,t,e)),n);break;default:_m(this,this._t0,n=$S(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Tk(t){this._context=new Ak(t)}(Tk.prototype=Object.create(zf.prototype)).point=function(t,e){zf.prototype.point.call(this,e,t)};function Ak(t){this._context=t}Ak.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,n,i,a,s){this._context.bezierCurveTo(e,t,i,n,s,a)}};function Mk(t){return new zf(t)}function Nk(t){return new Tk(t)}function Ok(t){this._context=t}Ok.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,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=PS(t),a=PS(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(i[0][s],a[0][s],i[1][s],a[1][s],t[o],e[o]);(this._line||this._line!==0&&n===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 PS(t){var e,n=t.length-1,i,a=new Array(n),s=new Array(n),o=new Array(n);for(a[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)a[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(a[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=a[e]/s[e-1],s[e]-=i,o[e]-=i*o[e-1];for(a[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)a[e]=(o[e]-a[e+1])/s[e];for(s[n-1]=(t[n]+a[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-a[e+1];return[a,s]}function Lk(t){return new Ok(t)}function xd(t,e){this._context=t,this._t=e}xd.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 n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Rk(t){return new xd(t,.5)}function Dk(t){return new xd(t,0)}function Bk(t){return new xd(t,1)}function Nc(t,e,n){this.k=t,this.x=e,this.y=n}Nc.prototype={constructor:Nc,scale:function(t){return t===1?this:new Nc(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Nc(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+")"}};Nc.prototype;var TU=w(t=>{var a;const{securityLevel:e}=Oe();let n=Se("body");if(e==="sandbox"){const o=((a=Se(`#i${t}`).node())==null?void 0:a.contentDocument)??document;n=Se(o.body)}return n.select(`#${t}`)},"selectSvgElement");function Rb(t){return typeof t>"u"||t===null}w(Rb,"isNothing");function Ik(t){return typeof t=="object"&&t!==null}w(Ik,"isObject");function zk(t){return Array.isArray(t)?t:Rb(t)?[]:[t]}w(zk,"toArray");function Fk(t,e){var n,i,a,s;if(e)for(s=Object.keys(e),n=0,i=s.length;n<i;n+=1)a=s[n],t[a]=e[a];return t}w(Fk,"extend");function $k(t,e){var n="",i;for(i=0;i<e;i+=1)n+=t;return n}w($k,"repeat");function Uk(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}w(Uk,"isNegativeZero");var AU=Rb,MU=Ik,NU=zk,OU=$k,LU=Uk,RU=Fk,Ln={isNothing:AU,isObject:MU,toArray:NU,repeat:OU,isNegativeZero:LU,extend:RU};function Db(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
168
+
169
+ `+t.mark.snippet),i+" "+n):i}w(Db,"formatError");function ro(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Db(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}w(ro,"YAMLException$1");ro.prototype=Object.create(Error.prototype);ro.prototype.constructor=ro;ro.prototype.toString=w(function(e){return this.name+": "+Db(this,e)},"toString");var Ai=ro;function uf(t,e,n,i,a){var s="",o="",c=Math.floor(a/2)-1;return i-e>c&&(s=" ... ",e=i-c+s.length),n-i>c&&(o=" ...",n=i+c-o.length),{str:s+t.slice(e,n).replace(/\t/g,"→")+o,pos:i-e+s.length}}w(uf,"getLine");function hf(t,e){return Ln.repeat(" ",e-t.length)+t}w(hf,"padStart");function Pk(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 n=/\r?\n|\r|\0/g,i=[0],a=[],s,o=-1;s=n.exec(t.buffer);)a.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="",f,h,d=Math.min(t.line+e.linesAfter,a.length).toString().length,g=e.maxLength-(e.indent+d+3);for(f=1;f<=e.linesBefore&&!(o-f<0);f++)h=uf(t.buffer,i[o-f],a[o-f],t.position-(i[o]-i[o-f]),g),c=Ln.repeat(" ",e.indent)+hf((t.line-f+1).toString(),d)+" | "+h.str+`
170
+ `+c;for(h=uf(t.buffer,i[o],a[o],t.position,g),c+=Ln.repeat(" ",e.indent)+hf((t.line+1).toString(),d)+" | "+h.str+`
171
+ `,c+=Ln.repeat("-",e.indent+d+3+h.pos)+`^
172
+ `,f=1;f<=e.linesAfter&&!(o+f>=a.length);f++)h=uf(t.buffer,i[o+f],a[o+f],t.position-(i[o]-i[o+f]),g),c+=Ln.repeat(" ",e.indent)+hf((t.line+f+1).toString(),d)+" | "+h.str+`
173
+ `;return c.replace(/\n$/,"")}w(Pk,"makeSnippet");var DU=Pk,BU=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],IU=["scalar","sequence","mapping"];function Hk(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(i){e[String(i)]=n})}),e}w(Hk,"compileStyleAliases");function qk(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(BU.indexOf(n)===-1)throw new Ai('Unknown option "'+n+'" 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(n){return n},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=Hk(e.styleAliases||null),IU.indexOf(this.kind)===-1)throw new Ai('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}w(qk,"Type$1");var Qn=qk;function cy(t,e){var n=[];return t[e].forEach(function(i){var a=n.length;n.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(a=o)}),n[a]=i}),n}w(cy,"compileList");function jk(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function i(a){a.multi?(t.multi[a.kind].push(a),t.multi.fallback.push(a)):t[a.kind][a.tag]=t.fallback[a.tag]=a}for(w(i,"collectType"),e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(i);return t}w(jk,"compileMap");function Ff(t){return this.extend(t)}w(Ff,"Schema$1");Ff.prototype.extend=w(function(e){var n=[],i=[];if(e instanceof Qn)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&&(n=n.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Ai("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof Qn))throw new Ai("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ai("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 Ai("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 Qn))throw new Ai("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(Ff.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=cy(a,"implicit"),a.compiledExplicit=cy(a,"explicit"),a.compiledTypeMap=jk(a.compiledImplicit,a.compiledExplicit),a},"extend");var zU=Ff,FU=new Qn("tag:yaml.org,2002:str",{kind:"scalar",construct:w(function(t){return t!==null?t:""},"construct")}),$U=new Qn("tag:yaml.org,2002:seq",{kind:"sequence",construct:w(function(t){return t!==null?t:[]},"construct")}),UU=new Qn("tag:yaml.org,2002:map",{kind:"mapping",construct:w(function(t){return t!==null?t:{}},"construct")}),PU=new zU({explicit:[FU,$U,UU]});function Gk(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}w(Gk,"resolveYamlNull");function Yk(){return null}w(Yk,"constructYamlNull");function Wk(t){return t===null}w(Wk,"isNull");var HU=new Qn("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gk,construct:Yk,predicate:Wk,represent:{canonical:w(function(){return"~"},"canonical"),lowercase:w(function(){return"null"},"lowercase"),uppercase:w(function(){return"NULL"},"uppercase"),camelcase:w(function(){return"Null"},"camelcase"),empty:w(function(){return""},"empty")},defaultStyle:"lowercase"});function Vk(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")}w(Vk,"resolveYamlBoolean");function Xk(t){return t==="true"||t==="True"||t==="TRUE"}w(Xk,"constructYamlBoolean");function Kk(t){return Object.prototype.toString.call(t)==="[object Boolean]"}w(Kk,"isBoolean");var qU=new Qn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Vk,construct:Xk,predicate:Kk,represent:{lowercase:w(function(t){return t?"true":"false"},"lowercase"),uppercase:w(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:w(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Zk(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}w(Zk,"isHexCode");function Qk(t){return 48<=t&&t<=55}w(Qk,"isOctCode");function Jk(t){return 48<=t&&t<=57}w(Jk,"isDecCode");function tE(t){if(t===null)return!1;var e=t.length,n=0,i=!1,a;if(!e)return!1;if(a=t[n],(a==="-"||a==="+")&&(a=t[++n]),a==="0"){if(n+1===e)return!0;if(a=t[++n],a==="b"){for(n++;n<e;n++)if(a=t[n],a!=="_"){if(a!=="0"&&a!=="1")return!1;i=!0}return i&&a!=="_"}if(a==="x"){for(n++;n<e;n++)if(a=t[n],a!=="_"){if(!Zk(t.charCodeAt(n)))return!1;i=!0}return i&&a!=="_"}if(a==="o"){for(n++;n<e;n++)if(a=t[n],a!=="_"){if(!Qk(t.charCodeAt(n)))return!1;i=!0}return i&&a!=="_"}}if(a==="_")return!1;for(;n<e;n++)if(a=t[n],a!=="_"){if(!Jk(t.charCodeAt(n)))return!1;i=!0}return!(!i||a==="_")}w(tE,"resolveYamlInteger");function eE(t){var e=t,n=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}w(eE,"constructYamlInteger");function nE(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ln.isNegativeZero(t)}w(nE,"isInteger");var jU=new Qn("tag:yaml.org,2002:int",{kind:"scalar",resolve:tE,construct:eE,predicate:nE,represent:{binary:w(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:w(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:w(function(t){return t.toString(10)},"decimal"),hexadecimal:w(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"]}}),GU=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function iE(t){return!(t===null||!GU.test(t)||t[t.length-1]==="_")}w(iE,"resolveYamlFloat");function rE(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}w(rE,"constructYamlFloat");var YU=/^[-+]?[0-9]+e/;function aE(t,e){var n;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(Ln.isNegativeZero(t))return"-0.0";return n=t.toString(10),YU.test(n)?n.replace("e",".e"):n}w(aE,"representYamlFloat");function lE(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ln.isNegativeZero(t))}w(lE,"isFloat");var WU=new Qn("tag:yaml.org,2002:float",{kind:"scalar",resolve:iE,construct:rE,predicate:lE,represent:aE,defaultStyle:"lowercase"}),sE=PU.extend({implicit:[HU,qU,jU,WU]}),VU=sE,oE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),cE=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 uE(t){return t===null?!1:oE.exec(t)!==null||cE.exec(t)!==null}w(uE,"resolveYamlTimestamp");function hE(t){var e,n,i,a,s,o,c,f=0,h=null,d,g,y;if(e=oE.exec(t),e===null&&(e=cE.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(n,i,a));if(s=+e[4],o=+e[5],c=+e[6],e[7]){for(f=e[7].slice(0,3);f.length<3;)f+="0";f=+f}return e[9]&&(d=+e[10],g=+(e[11]||0),h=(d*60+g)*6e4,e[9]==="-"&&(h=-h)),y=new Date(Date.UTC(n,i,a,s,o,c,f)),h&&y.setTime(y.getTime()-h),y}w(hE,"constructYamlTimestamp");function fE(t){return t.toISOString()}w(fE,"representYamlTimestamp");var XU=new Qn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uE,construct:hE,instanceOf:Date,represent:fE});function dE(t){return t==="<<"||t===null}w(dE,"resolveYamlMerge");var KU=new Qn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dE}),Bb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
174
+ \r`;function pE(t){if(t===null)return!1;var e,n,i=0,a=t.length,s=Bb;for(n=0;n<a;n++)if(e=s.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}w(pE,"resolveYamlBinary");function gE(t){var e,n,i=t.replace(/[\r\n=]/g,""),a=i.length,s=Bb,o=0,c=[];for(e=0;e<a;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 n=a%4*6,n===0?(c.push(o>>16&255),c.push(o>>8&255),c.push(o&255)):n===18?(c.push(o>>10&255),c.push(o>>2&255)):n===12&&c.push(o>>4&255),new Uint8Array(c)}w(gE,"constructYamlBinary");function mE(t){var e="",n=0,i,a,s=t.length,o=Bb;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[n>>18&63],e+=o[n>>12&63],e+=o[n>>6&63],e+=o[n&63]),n=(n<<8)+t[i];return a=s%3,a===0?(e+=o[n>>18&63],e+=o[n>>12&63],e+=o[n>>6&63],e+=o[n&63]):a===2?(e+=o[n>>10&63],e+=o[n>>4&63],e+=o[n<<2&63],e+=o[64]):a===1&&(e+=o[n>>2&63],e+=o[n<<4&63],e+=o[64],e+=o[64]),e}w(mE,"representYamlBinary");function yE(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}w(yE,"isBinary");var ZU=new Qn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pE,construct:gE,predicate:yE,represent:mE}),QU=Object.prototype.hasOwnProperty,JU=Object.prototype.toString;function bE(t){if(t===null)return!0;var e=[],n,i,a,s,o,c=t;for(n=0,i=c.length;n<i;n+=1){if(a=c[n],o=!1,JU.call(a)!=="[object Object]")return!1;for(s in a)if(QU.call(a,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}w(bE,"resolveYamlOmap");function xE(t){return t!==null?t:[]}w(xE,"constructYamlOmap");var tP=new Qn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:bE,construct:xE}),eP=Object.prototype.toString;function _E(t){if(t===null)return!0;var e,n,i,a,s,o=t;for(s=new Array(o.length),e=0,n=o.length;e<n;e+=1){if(i=o[e],eP.call(i)!=="[object Object]"||(a=Object.keys(i),a.length!==1))return!1;s[e]=[a[0],i[a[0]]]}return!0}w(_E,"resolveYamlPairs");function vE(t){if(t===null)return[];var e,n,i,a,s,o=t;for(s=new Array(o.length),e=0,n=o.length;e<n;e+=1)i=o[e],a=Object.keys(i),s[e]=[a[0],i[a[0]]];return s}w(vE,"constructYamlPairs");var nP=new Qn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_E,construct:vE}),iP=Object.prototype.hasOwnProperty;function SE(t){if(t===null)return!0;var e,n=t;for(e in n)if(iP.call(n,e)&&n[e]!==null)return!1;return!0}w(SE,"resolveYamlSet");function wE(t){return t!==null?t:{}}w(wE,"constructYamlSet");var rP=new Qn("tag:yaml.org,2002:set",{kind:"mapping",resolve:SE,construct:wE}),CE=VU.extend({implicit:[XU,KU],explicit:[ZU,tP,nP,rP]}),Ka=Object.prototype.hasOwnProperty,$f=1,kE=2,EE=3,Uf=4,vm=1,aP=2,HS=3,lP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sP=/[\x85\u2028\u2029]/,oP=/[,\[\]\{\}]/,TE=/^(?:!|!!|![a-z\-]+!)$/i,AE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function uy(t){return Object.prototype.toString.call(t)}w(uy,"_class");function br(t){return t===10||t===13}w(br,"is_EOL");function Va(t){return t===9||t===32}w(Va,"is_WHITE_SPACE");function ci(t){return t===9||t===32||t===10||t===13}w(ci,"is_WS_OR_EOL");function Ml(t){return t===44||t===91||t===93||t===123||t===125}w(Ml,"is_FLOW_INDICATOR");function ME(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}w(ME,"fromHexCode");function NE(t){return t===120?2:t===117?4:t===85?8:0}w(NE,"escapedHexLen");function OE(t){return 48<=t&&t<=57?t-48:-1}w(OE,"fromDecimalCode");function hy(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
175
+ `: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":""}w(hy,"simpleEscapeSequence");function LE(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}w(LE,"charFromCodepoint");var RE=new Array(256),DE=new Array(256);for(wl=0;wl<256;wl++)RE[wl]=hy(wl)?1:0,DE[wl]=hy(wl);var wl;function BE(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||CE,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=[]}w(BE,"State$1");function Ib(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=DU(n),new Ai(e,n)}w(Ib,"generateError");function $t(t,e){throw Ib(t,e)}w($t,"throwError");function Zc(t,e){t.onWarning&&t.onWarning.call(null,Ib(t,e))}w(Zc,"throwWarning");var qS={YAML:w(function(e,n,i){var a,s,o;e.version!==null&&$t(e,"duplication of %YAML directive"),i.length!==1&&$t(e,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),a===null&&$t(e,"ill-formed argument of the YAML directive"),s=parseInt(a[1],10),o=parseInt(a[2],10),s!==1&&$t(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Zc(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:w(function(e,n,i){var a,s;i.length!==2&&$t(e,"TAG directive accepts exactly two arguments"),a=i[0],s=i[1],TE.test(a)||$t(e,"ill-formed tag handle (first argument) of the TAG directive"),Ka.call(e.tagMap,a)&&$t(e,'there is a previously declared suffix for "'+a+'" tag handle'),AE.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[a]=s},"handleTagDirective")};function ha(t,e,n,i){var a,s,o,c;if(e<n){if(c=t.input.slice(e,n),i)for(a=0,s=c.length;a<s;a+=1)o=c.charCodeAt(a),o===9||32<=o&&o<=1114111||$t(t,"expected valid JSON character");else lP.test(c)&&$t(t,"the stream contains non-printable characters");t.result+=c}}w(ha,"captureSegment");function fy(t,e,n,i){var a,s,o,c;for(Ln.isObject(n)||$t(t,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(n),o=0,c=a.length;o<c;o+=1)s=a[o],Ka.call(e,s)||(e[s]=n[s],i[s]=!0)}w(fy,"mergeMappings");function Nl(t,e,n,i,a,s,o,c,f){var h,d;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),h=0,d=a.length;h<d;h+=1)Array.isArray(a[h])&&$t(t,"nested arrays are not supported inside keys"),typeof a=="object"&&uy(a[h])==="[object Object]"&&(a[h]="[object Object]");if(typeof a=="object"&&uy(a)==="[object Object]"&&(a="[object Object]"),a=String(a),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,d=s.length;h<d;h+=1)fy(t,e,s[h],n);else fy(t,e,s,n);else!t.json&&!Ka.call(n,a)&&Ka.call(e,a)&&(t.line=o||t.line,t.lineStart=c||t.lineStart,t.position=f||t.position,$t(t,"duplicated mapping key")),a==="__proto__"?Object.defineProperty(e,a,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[a]=s,delete n[a];return e}w(Nl,"storeMappingPair");function _d(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}w(_d,"readLineBreak");function mn(t,e,n){for(var i=0,a=t.input.charCodeAt(t.position);a!==0;){for(;Va(a);)a===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),a=t.input.charCodeAt(++t.position);if(e&&a===35)do a=t.input.charCodeAt(++t.position);while(a!==10&&a!==13&&a!==0);if(br(a))for(_d(t),a=t.input.charCodeAt(t.position),i++,t.lineIndent=0;a===32;)t.lineIndent++,a=t.input.charCodeAt(++t.position);else break}return n!==-1&&i!==0&&t.lineIndent<n&&Zc(t,"deficient indentation"),i}w(mn,"skipSeparationSpace");function pu(t){var e=t.position,n;return n=t.input.charCodeAt(e),!!((n===45||n===46)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)&&(e+=3,n=t.input.charCodeAt(e),n===0||ci(n)))}w(pu,"testDocumentSeparator");function vd(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ln.repeat(`
176
+ `,e-1))}w(vd,"writeFoldedLines");function IE(t,e,n){var i,a,s,o,c,f,h,d,g=t.kind,y=t.result,m;if(m=t.input.charCodeAt(t.position),ci(m)||Ml(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(a=t.input.charCodeAt(t.position+1),ci(a)||n&&Ml(a)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,c=!1;m!==0;){if(m===58){if(a=t.input.charCodeAt(t.position+1),ci(a)||n&&Ml(a))break}else if(m===35){if(i=t.input.charCodeAt(t.position-1),ci(i))break}else{if(t.position===t.lineStart&&pu(t)||n&&Ml(m))break;if(br(m))if(f=t.line,h=t.lineStart,d=t.lineIndent,mn(t,!1,-1),t.lineIndent>=e){c=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=f,t.lineStart=h,t.lineIndent=d;break}}c&&(ha(t,s,o,!1),vd(t,t.line-f),s=o=t.position,c=!1),Va(m)||(o=t.position+1),m=t.input.charCodeAt(++t.position)}return ha(t,s,o,!1),t.result?!0:(t.kind=g,t.result=y,!1)}w(IE,"readPlainScalar");function zE(t,e){var n,i,a;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=a=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(ha(t,i,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)i=t.position,t.position++,a=t.position;else return!0;else br(n)?(ha(t,i,a,!0),vd(t,mn(t,!1,e)),i=a=t.position):t.position===t.lineStart&&pu(t)?$t(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);$t(t,"unexpected end of the stream within a single quoted scalar")}w(zE,"readSingleQuotedScalar");function FE(t,e){var n,i,a,s,o,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return ha(t,n,t.position,!0),t.position++,!0;if(c===92){if(ha(t,n,t.position,!0),c=t.input.charCodeAt(++t.position),br(c))mn(t,!1,e);else if(c<256&&RE[c])t.result+=DE[c],t.position++;else if((o=NE(c))>0){for(a=o,s=0;a>0;a--)c=t.input.charCodeAt(++t.position),(o=ME(c))>=0?s=(s<<4)+o:$t(t,"expected hexadecimal character");t.result+=LE(s),t.position++}else $t(t,"unknown escape sequence");n=i=t.position}else br(c)?(ha(t,n,i,!0),vd(t,mn(t,!1,e)),n=i=t.position):t.position===t.lineStart&&pu(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")}w(FE,"readDoubleQuotedScalar");function $E(t,e){var n=!0,i,a,s,o=t.tag,c,f=t.anchor,h,d,g,y,m,_=Object.create(null),v,C,S,T;if(T=t.input.charCodeAt(t.position),T===91)d=93,m=!1,c=[];else if(T===123)d=125,m=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),T=t.input.charCodeAt(++t.position);T!==0;){if(mn(t,!0,e),T=t.input.charCodeAt(t.position),T===d)return t.position++,t.tag=o,t.anchor=f,t.kind=m?"mapping":"sequence",t.result=c,!0;n?T===44&&$t(t,"expected the node content, but found ','"):$t(t,"missed comma between flow collection entries"),C=v=S=null,g=y=!1,T===63&&(h=t.input.charCodeAt(t.position+1),ci(h)&&(g=y=!0,t.position++,mn(t,!0,e))),i=t.line,a=t.lineStart,s=t.position,Fl(t,e,$f,!1,!0),C=t.tag,v=t.result,mn(t,!0,e),T=t.input.charCodeAt(t.position),(y||t.line===i)&&T===58&&(g=!0,T=t.input.charCodeAt(++t.position),mn(t,!0,e),Fl(t,e,$f,!1,!0),S=t.result),m?Nl(t,c,_,C,v,S,i,a,s):g?c.push(Nl(t,null,_,C,v,S,i,a,s)):c.push(v),mn(t,!0,e),T=t.input.charCodeAt(t.position),T===44?(n=!0,T=t.input.charCodeAt(++t.position)):n=!1}$t(t,"unexpected end of the stream within a flow collection")}w($E,"readFlowCollection");function UE(t,e){var n,i,a=vm,s=!1,o=!1,c=e,f=0,h=!1,d,g;if(g=t.input.charCodeAt(t.position),g===124)i=!1;else if(g===62)i=!0;else return!1;for(t.kind="scalar",t.result="";g!==0;)if(g=t.input.charCodeAt(++t.position),g===43||g===45)vm===a?a=g===43?HS:aP:$t(t,"repeat of a chomping mode identifier");else if((d=OE(g))>=0)d===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+d-1,o=!0);else break;if(Va(g)){do g=t.input.charCodeAt(++t.position);while(Va(g));if(g===35)do g=t.input.charCodeAt(++t.position);while(!br(g)&&g!==0)}for(;g!==0;){for(_d(t),t.lineIndent=0,g=t.input.charCodeAt(t.position);(!o||t.lineIndent<c)&&g===32;)t.lineIndent++,g=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>c&&(c=t.lineIndent),br(g)){f++;continue}if(t.lineIndent<c){a===HS?t.result+=Ln.repeat(`
177
+ `,s?1+f:f):a===vm&&s&&(t.result+=`
178
+ `);break}for(i?Va(g)?(h=!0,t.result+=Ln.repeat(`
179
+ `,s?1+f:f)):h?(h=!1,t.result+=Ln.repeat(`
180
+ `,f+1)):f===0?s&&(t.result+=" "):t.result+=Ln.repeat(`
181
+ `,f):t.result+=Ln.repeat(`
182
+ `,s?1+f:f),s=!0,o=!0,f=0,n=t.position;!br(g)&&g!==0;)g=t.input.charCodeAt(++t.position);ha(t,n,t.position,!1)}return!0}w(UE,"readBlockScalar");function dy(t,e){var n,i=t.tag,a=t.anchor,s=[],o,c=!1,f;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),f=t.input.charCodeAt(t.position);f!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,$t(t,"tab characters must not be used in indentation")),!(f!==45||(o=t.input.charCodeAt(t.position+1),!ci(o))));){if(c=!0,t.position++,mn(t,!0,-1)&&t.lineIndent<=e){s.push(null),f=t.input.charCodeAt(t.position);continue}if(n=t.line,Fl(t,e,EE,!1,!0),s.push(t.result),mn(t,!0,-1),f=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&f!==0)$t(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return c?(t.tag=i,t.anchor=a,t.kind="sequence",t.result=s,!0):!1}w(dy,"readBlockSequence");function PE(t,e,n){var i,a,s,o,c,f,h=t.tag,d=t.anchor,g={},y=Object.create(null),m=null,_=null,v=null,C=!1,S=!1,T;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=g),T=t.input.charCodeAt(t.position);T!==0;){if(!C&&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,(T===63||T===58)&&ci(i))T===63?(C&&(Nl(t,g,y,m,_,null,o,c,f),m=_=v=null),S=!0,C=!0,a=!0):C?(C=!1,a=!0):$t(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,T=i;else{if(o=t.line,c=t.lineStart,f=t.position,!Fl(t,n,kE,!1,!0))break;if(t.line===s){for(T=t.input.charCodeAt(t.position);Va(T);)T=t.input.charCodeAt(++t.position);if(T===58)T=t.input.charCodeAt(++t.position),ci(T)||$t(t,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(Nl(t,g,y,m,_,null,o,c,f),m=_=v=null),S=!0,C=!1,a=!1,m=t.tag,_=t.result;else if(S)$t(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=h,t.anchor=d,!0}else if(S)$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=d,!0}if((t.line===s||t.lineIndent>e)&&(C&&(o=t.line,c=t.lineStart,f=t.position),Fl(t,e,Uf,!0,a)&&(C?_=t.result:v=t.result),C||(Nl(t,g,y,m,_,v,o,c,f),m=_=v=null),mn(t,!0,-1),T=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&T!==0)$t(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return C&&Nl(t,g,y,m,_,null,o,c,f),S&&(t.tag=h,t.anchor=d,t.kind="mapping",t.result=g),S}w(PE,"readBlockMapping");function HE(t){var e,n=!1,i=!1,a,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?(n=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,a="!!",o=t.input.charCodeAt(++t.position)):a="!",e=t.position,n){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&&!ci(o);)o===33&&(i?$t(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(e-1,t.position+1),TE.test(a)||$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),oP.test(s)&&$t(t,"tag suffix cannot contain flow indicator characters")}s&&!AE.test(s)&&$t(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{$t(t,"tag name is malformed: "+s)}return n?t.tag=s:Ka.call(t.tagMap,a)?t.tag=t.tagMap[a]+s:a==="!"?t.tag="!"+s:a==="!!"?t.tag="tag:yaml.org,2002:"+s:$t(t,'undeclared tag handle "'+a+'"'),!0}w(HE,"readTagProperty");function qE(t){var e,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&$t(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!ci(n)&&!Ml(n);)n=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}w(qE,"readAnchorProperty");function jE(t){var e,n,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!ci(i)&&!Ml(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&$t(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),Ka.call(t.anchorMap,n)||$t(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],mn(t,!0,-1),!0}w(jE,"readAlias");function Fl(t,e,n,i,a){var s,o,c,f=1,h=!1,d=!1,g,y,m,_,v,C;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=c=Uf===n||EE===n,i&&mn(t,!0,-1)&&(h=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),f===1)for(;HE(t)||qE(t);)mn(t,!0,-1)?(h=!0,c=s,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):c=!1;if(c&&(c=h||a),(f===1||Uf===n)&&($f===n||kE===n?v=e:v=e+1,C=t.position-t.lineStart,f===1?c&&(dy(t,C)||PE(t,C,v))||$E(t,v)?d=!0:(o&&UE(t,v)||zE(t,v)||FE(t,v)?d=!0:jE(t)?(d=!0,(t.tag!==null||t.anchor!==null)&&$t(t,"alias node should not have any properties")):IE(t,v,$f===n)&&(d=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):f===0&&(d=c&&dy(t,C))),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+'"'),g=0,y=t.implicitTypes.length;g<y;g+=1)if(_=t.implicitTypes[g],_.resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Ka.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,m=t.typeMap.multi[t.kind||"fallback"],g=0,y=m.length;g<y;g+=1)if(t.tag.slice(0,m[g].tag.length)===m[g].tag){_=m[g];break}_||$t(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&$t(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.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||d}w(Fl,"composeNode");function GE(t){var e=t.position,n,i,a,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&&(mn(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),n=t.position;o!==0&&!ci(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(n,t.position),a=[],i.length<1&&$t(t,"directive name must not be less than one character in length");o!==0;){for(;Va(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!br(o));break}if(br(o))break;for(n=t.position;o!==0&&!ci(o);)o=t.input.charCodeAt(++t.position);a.push(t.input.slice(n,t.position))}o!==0&&_d(t),Ka.call(qS,i)?qS[i](t,i,a):Zc(t,'unknown document directive "'+i+'"')}if(mn(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,mn(t,!0,-1)):s&&$t(t,"directives end mark is expected"),Fl(t,t.lineIndent-1,Uf,!1,!0),mn(t,!0,-1),t.checkLineBreaks&&sP.test(t.input.slice(e,t.position))&&Zc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&pu(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,mn(t,!0,-1));return}if(t.position<t.length-1)$t(t,"end of the stream or a document separator is expected");else return}w(GE,"readDocument");function zb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
183
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new BE(t,e),i=t.indexOf("\0");for(i!==-1&&(n.position=i,$t(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)GE(n);return n.documents}w(zb,"loadDocuments");function cP(t,e,n){e!==null&&typeof e=="object"&&typeof n>"u"&&(n=e,e=null);var i=zb(t,n);if(typeof e!="function")return i;for(var a=0,s=i.length;a<s;a+=1)e(i[a])}w(cP,"loadAll$1");function YE(t,e){var n=zb(t,e);if(n.length!==0){if(n.length===1)return n[0];throw new Ai("expected a single document in the stream, but found more")}}w(YE,"load$1");var uP=YE,hP={load:uP},WE=Object.prototype.toString,VE=Object.prototype.hasOwnProperty,Fb=65279,fP=9,Qc=10,dP=13,pP=32,gP=33,mP=34,py=35,yP=37,bP=38,xP=39,_P=42,XE=44,vP=45,Pf=58,SP=61,wP=62,CP=63,kP=64,KE=91,ZE=93,EP=96,QE=123,TP=124,JE=125,ei={};ei[0]="\\0";ei[7]="\\a";ei[8]="\\b";ei[9]="\\t";ei[10]="\\n";ei[11]="\\v";ei[12]="\\f";ei[13]="\\r";ei[27]="\\e";ei[34]='\\"';ei[92]="\\\\";ei[133]="\\N";ei[160]="\\_";ei[8232]="\\L";ei[8233]="\\P";var AP=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],MP=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function tT(t,e){var n,i,a,s,o,c,f;if(e===null)return{};for(n={},i=Object.keys(e),a=0,s=i.length;a<s;a+=1)o=i[a],c=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),f=t.compiledTypeMap.fallback[o],f&&VE.call(f.styleAliases,c)&&(c=f.styleAliases[c]),n[o]=c;return n}w(tT,"compileStyleMap");function eT(t){var e,n,i;if(e=t.toString(16).toUpperCase(),t<=255)n="x",i=2;else if(t<=65535)n="u",i=4;else if(t<=4294967295)n="U",i=8;else throw new Ai("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ln.repeat("0",i-e.length)+e}w(eT,"encodeHex");var NP=1,Jc=2;function nT(t){this.schema=t.schema||CE,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ln.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=tT(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==='"'?Jc:NP,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}w(nT,"State");function gy(t,e){for(var n=Ln.repeat(" ",e),i=0,a=-1,s="",o,c=t.length;i<c;)a=t.indexOf(`
184
+ `,i),a===-1?(o=t.slice(i),i=c):(o=t.slice(i,a+1),i=a+1),o.length&&o!==`
185
+ `&&(s+=n),s+=o;return s}w(gy,"indentString");function Hf(t,e){return`
186
+ `+Ln.repeat(" ",t.indent*e)}w(Hf,"generateNextLine");function iT(t,e){var n,i,a;for(n=0,i=t.implicitTypes.length;n<i;n+=1)if(a=t.implicitTypes[n],a.resolve(e))return!0;return!1}w(iT,"testImplicitResolving");function tu(t){return t===pP||t===fP}w(tu,"isWhitespace");function ao(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Fb||65536<=t&&t<=1114111}w(ao,"isPrintable");function my(t){return ao(t)&&t!==Fb&&t!==dP&&t!==Qc}w(my,"isNsCharOrWhitespace");function yy(t,e,n){var i=my(t),a=i&&!tu(t);return(n?i:i&&t!==XE&&t!==KE&&t!==ZE&&t!==QE&&t!==JE)&&t!==py&&!(e===Pf&&!a)||my(e)&&!tu(e)&&t===py||e===Pf&&a}w(yy,"isPlainSafe");function rT(t){return ao(t)&&t!==Fb&&!tu(t)&&t!==vP&&t!==CP&&t!==Pf&&t!==XE&&t!==KE&&t!==ZE&&t!==QE&&t!==JE&&t!==py&&t!==bP&&t!==_P&&t!==gP&&t!==TP&&t!==SP&&t!==wP&&t!==xP&&t!==mP&&t!==yP&&t!==kP&&t!==EP}w(rT,"isPlainSafeFirst");function aT(t){return!tu(t)&&t!==Pf}w(aT,"isPlainSafeLast");function $s(t,e){var n=t.charCodeAt(e),i;return n>=55296&&n<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}w($s,"codePointAt");function $b(t){var e=/^\n* /;return e.test(t)}w($b,"needIndentIndicator");var lT=1,by=2,sT=3,oT=4,zs=5;function cT(t,e,n,i,a,s,o,c){var f,h=0,d=null,g=!1,y=!1,m=i!==-1,_=-1,v=rT($s(t,0))&&aT($s(t,t.length-1));if(e||o)for(f=0;f<t.length;h>=65536?f+=2:f++){if(h=$s(t,f),!ao(h))return zs;v=v&&yy(h,d,c),d=h}else{for(f=0;f<t.length;h>=65536?f+=2:f++){if(h=$s(t,f),h===Qc)g=!0,m&&(y=y||f-_-1>i&&t[_+1]!==" ",_=f);else if(!ao(h))return zs;v=v&&yy(h,d,c),d=h}y=y||m&&f-_-1>i&&t[_+1]!==" "}return!g&&!y?v&&!o&&!a(t)?lT:s===Jc?zs:by:n>9&&$b(t)?zs:o?s===Jc?zs:by:y?oT:sT}w(cT,"chooseScalarStyle");function uT(t,e,n,i,a){t.dump=(function(){if(e.length===0)return t.quotingType===Jc?'""':"''";if(!t.noCompatMode&&(AP.indexOf(e)!==-1||MP.test(e)))return t.quotingType===Jc?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,n),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),c=i||t.flowLevel>-1&&n>=t.flowLevel;function f(h){return iT(t,h)}switch(w(f,"testAmbiguity"),cT(e,c,t.indent,o,f,t.quotingType,t.forceQuotes&&!i,a)){case lT:return e;case by:return"'"+e.replace(/'/g,"''")+"'";case sT:return"|"+xy(e,t.indent)+_y(gy(e,s));case oT:return">"+xy(e,t.indent)+_y(gy(hT(e,o),s));case zs:return'"'+fT(e)+'"';default:throw new Ai("impossible error: invalid scalar style")}})()}w(uT,"writeScalar");function xy(t,e){var n=$b(t)?String(e):"",i=t[t.length-1]===`
187
+ `,a=i&&(t[t.length-2]===`
188
+ `||t===`
189
+ `),s=a?"+":i?"":"-";return n+s+`
190
+ `}w(xy,"blockHeader");function _y(t){return t[t.length-1]===`
191
+ `?t.slice(0,-1):t}w(_y,"dropEndingNewline");function hT(t,e){for(var n=/(\n+)([^\n]*)/g,i=(function(){var h=t.indexOf(`
192
+ `);return h=h!==-1?h:t.length,n.lastIndex=h,vy(t.slice(0,h),e)})(),a=t[0]===`
193
+ `||t[0]===" ",s,o;o=n.exec(t);){var c=o[1],f=o[2];s=f[0]===" ",i+=c+(!a&&!s&&f!==""?`
194
+ `:"")+vy(f,e),a=s}return i}w(hT,"foldString");function vy(t,e){if(t===""||t[0]===" ")return t;for(var n=/ [^ ]/g,i,a=0,s,o=0,c=0,f="";i=n.exec(t);)c=i.index,c-a>e&&(s=o>a?o:c,f+=`
195
+ `+t.slice(a,s),a=s+1),o=c;return f+=`
196
+ `,t.length-a>e&&o>a?f+=t.slice(a,o)+`
197
+ `+t.slice(o+1):f+=t.slice(a),f.slice(1)}w(vy,"foldLine");function fT(t){for(var e="",n=0,i,a=0;a<t.length;n>=65536?a+=2:a++)n=$s(t,a),i=ei[n],!i&&ao(n)?(e+=t[a],n>=65536&&(e+=t[a+1])):e+=i||eT(n);return e}w(fT,"escapeString");function dT(t,e,n){var i="",a=t.tag,s,o,c;for(s=0,o=n.length;s<o;s+=1)c=n[s],t.replacer&&(c=t.replacer.call(n,String(s),c)),(Br(t,e,c,!1,!1)||typeof c>"u"&&Br(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=a,t.dump="["+i+"]"}w(dT,"writeFlowSequence");function Sy(t,e,n,i){var a="",s=t.tag,o,c,f;for(o=0,c=n.length;o<c;o+=1)f=n[o],t.replacer&&(f=t.replacer.call(n,String(o),f)),(Br(t,e+1,f,!0,!0,!1,!0)||typeof f>"u"&&Br(t,e+1,null,!0,!0,!1,!0))&&((!i||a!=="")&&(a+=Hf(t,e)),t.dump&&Qc===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=s,t.dump=a||"[]"}w(Sy,"writeBlockSequence");function pT(t,e,n){var i="",a=t.tag,s=Object.keys(n),o,c,f,h,d;for(o=0,c=s.length;o<c;o+=1)d="",i!==""&&(d+=", "),t.condenseFlow&&(d+='"'),f=s[o],h=n[f],t.replacer&&(h=t.replacer.call(n,f,h)),Br(t,e,f,!1,!1)&&(t.dump.length>1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Br(t,e,h,!1,!1)&&(d+=t.dump,i+=d));t.tag=a,t.dump="{"+i+"}"}w(pT,"writeFlowMapping");function gT(t,e,n,i){var a="",s=t.tag,o=Object.keys(n),c,f,h,d,g,y;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Ai("sortKeys must be a boolean or a function");for(c=0,f=o.length;c<f;c+=1)y="",(!i||a!=="")&&(y+=Hf(t,e)),h=o[c],d=n[h],t.replacer&&(d=t.replacer.call(n,h,d)),Br(t,e+1,h,!0,!0,!0)&&(g=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,g&&(t.dump&&Qc===t.dump.charCodeAt(0)?y+="?":y+="? "),y+=t.dump,g&&(y+=Hf(t,e)),Br(t,e+1,d,!0,g)&&(t.dump&&Qc===t.dump.charCodeAt(0)?y+=":":y+=": ",y+=t.dump,a+=y));t.tag=s,t.dump=a||"{}"}w(gT,"writeBlockMapping");function wy(t,e,n){var i,a,s,o,c,f;for(a=n?t.explicitTypes:t.implicitTypes,s=0,o=a.length;s<o;s+=1)if(c=a[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof e=="object"&&e instanceof c.instanceOf)&&(!c.predicate||c.predicate(e))){if(n?c.multi&&c.representName?t.tag=c.representName(e):t.tag=c.tag:t.tag="?",c.represent){if(f=t.styleMap[c.tag]||c.defaultStyle,WE.call(c.represent)==="[object Function]")i=c.represent(e,f);else if(VE.call(c.represent,f))i=c.represent[f](e,f);else throw new Ai("!<"+c.tag+'> tag resolver accepts not "'+f+'" style');t.dump=i}return!0}return!1}w(wy,"detectType");function Br(t,e,n,i,a,s,o){t.tag=null,t.dump=n,wy(t,n,!1)||wy(t,n,!0);var c=WE.call(t.dump),f=i,h;i&&(i=t.flowLevel<0||t.flowLevel>e);var d=c==="[object Object]"||c==="[object Array]",g,y;if(d&&(g=t.duplicates.indexOf(n),y=g!==-1),(t.tag!==null&&t.tag!=="?"||y||t.indent!==2&&e>0)&&(a=!1),y&&t.usedDuplicates[g])t.dump="*ref_"+g;else{if(d&&y&&!t.usedDuplicates[g]&&(t.usedDuplicates[g]=!0),c==="[object Object]")i&&Object.keys(t.dump).length!==0?(gT(t,e,t.dump,a),y&&(t.dump="&ref_"+g+t.dump)):(pT(t,e,t.dump),y&&(t.dump="&ref_"+g+" "+t.dump));else if(c==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?Sy(t,e-1,t.dump,a):Sy(t,e,t.dump,a),y&&(t.dump="&ref_"+g+t.dump)):(dT(t,e,t.dump),y&&(t.dump="&ref_"+g+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&uT(t,t.dump,e,s,f);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ai("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}w(Br,"writeNode");function mT(t,e){var n=[],i=[],a,s;for(qf(t,n,i),a=0,s=i.length;a<s;a+=1)e.duplicates.push(n[i[a]]);e.usedDuplicates=new Array(s)}w(mT,"getDuplicateReferences");function qf(t,e,n){var i,a,s;if(t!==null&&typeof t=="object")if(a=e.indexOf(t),a!==-1)n.indexOf(a)===-1&&n.push(a);else if(e.push(t),Array.isArray(t))for(a=0,s=t.length;a<s;a+=1)qf(t[a],e,n);else for(i=Object.keys(t),a=0,s=i.length;a<s;a+=1)qf(t[i[a]],e,n)}w(qf,"inspectNode");function OP(t,e){e=e||{};var n=new nT(e);n.noRefs||mT(t,n);var i=t;return n.replacer&&(i=n.replacer.call({"":i},"",i)),Br(n,0,i,!0,!0)?n.dump+`
198
+ `:""}w(OP,"dump$1");function LP(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.")}}w(LP,"renamed");var RP=sE,DP=hP.load;/*! Bundled license information:
199
+
200
+ js-yaml/dist/js-yaml.mjs:
201
+ (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
202
+ */var Xn={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},jS={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Oc(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=rn(t),e=rn(e);const[n,i]=[t.x,t.y],[a,s]=[e.x,e.y],o=a-n,c=s-i;return{angle:Math.atan(c/o),deltaX:o,deltaY:c}}w(Oc,"calculateDeltaAndAngle");var rn=w(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),BP=w(t=>({x:w(function(e,n,i){let a=0;const s=rn(i[0]).x<rn(i[i.length-1]).x?"left":"right";if(n===0&&Object.hasOwn(Xn,t.arrowTypeStart)){const{angle:m,deltaX:_}=Oc(i[0],i[1]);a=Xn[t.arrowTypeStart]*Math.cos(m)*(_>=0?1:-1)}else if(n===i.length-1&&Object.hasOwn(Xn,t.arrowTypeEnd)){const{angle:m,deltaX:_}=Oc(i[i.length-1],i[i.length-2]);a=Xn[t.arrowTypeEnd]*Math.cos(m)*(_>=0?1:-1)}const o=Math.abs(rn(e).x-rn(i[i.length-1]).x),c=Math.abs(rn(e).y-rn(i[i.length-1]).y),f=Math.abs(rn(e).x-rn(i[0]).x),h=Math.abs(rn(e).y-rn(i[0]).y),d=Xn[t.arrowTypeStart],g=Xn[t.arrowTypeEnd],y=1;if(o<g&&o>0&&c<g){let m=g+y-o;m*=s==="right"?-1:1,a-=m}if(f<d&&f>0&&h<d){let m=d+y-f;m*=s==="right"?-1:1,a+=m}return rn(e).x+a},"x"),y:w(function(e,n,i){let a=0;const s=rn(i[0]).y<rn(i[i.length-1]).y?"down":"up";if(n===0&&Object.hasOwn(Xn,t.arrowTypeStart)){const{angle:m,deltaY:_}=Oc(i[0],i[1]);a=Xn[t.arrowTypeStart]*Math.abs(Math.sin(m))*(_>=0?1:-1)}else if(n===i.length-1&&Object.hasOwn(Xn,t.arrowTypeEnd)){const{angle:m,deltaY:_}=Oc(i[i.length-1],i[i.length-2]);a=Xn[t.arrowTypeEnd]*Math.abs(Math.sin(m))*(_>=0?1:-1)}const o=Math.abs(rn(e).y-rn(i[i.length-1]).y),c=Math.abs(rn(e).x-rn(i[i.length-1]).x),f=Math.abs(rn(e).y-rn(i[0]).y),h=Math.abs(rn(e).x-rn(i[0]).x),d=Xn[t.arrowTypeStart],g=Xn[t.arrowTypeEnd],y=1;if(o<g&&o>0&&c<g){let m=g+y-o;m*=s==="up"?-1:1,a-=m}if(f<d&&f>0&&h<d){let m=d+y-f;m*=s==="up"?-1:1,a+=m}return rn(e).y+a},"y")}),"getLineFunctionsWithOffset"),Ub=w(({flowchart:t})=>{var a,s;const e=((a=t==null?void 0:t.subGraphTitleMargin)==null?void 0:a.top)??0,n=((s=t==null?void 0:t.subGraphTitleMargin)==null?void 0:s.bottom)??0,i=e+n;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),IP=w(t=>{const{handDrawnSeed:e}=Oe();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),ho=w(t=>{const e=zP([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),zP=w(t=>{const e=new Map;return t.forEach(n=>{const[i,a]=n.split(":");e.set(i.trim(),a==null?void 0:a.trim())}),e},"styles2Map"),yT=w(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"),Rt=w(t=>{const{stylesArray:e}=ho(t),n=[],i=[],a=[],s=[];return e.forEach(o=>{const c=o[0];yT(c)?n.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),c.includes("stroke")&&a.push(o.join(":")+" !important"),c==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:s}},"styles2String"),Lt=w((t,e)=>{var f;const{themeVariables:n,handDrawnSeed:i}=Oe(),{nodeBorder:a,mainBkg:s}=n,{stylesMap:o}=ho(t);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||a,seed:i,strokeWidth:((f=o.get("stroke-width"))==null?void 0:f.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:FP(o.get("stroke-dasharray"))},e)},"userNodeOverrides"),FP=w(t=>{if(!t)return[0,0];const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const a=isNaN(e[0])?0:e[0];return[a,a]}const n=isNaN(e[0])?0:e[0],i=isNaN(e[1])?0:e[1];return[n,i]},"getStrokeDashArray"),vc={},Nn={},GS;function $P(){return GS||(GS=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.BLANK_URL=Nn.relativeFirstCharacters=Nn.whitespaceEscapeCharsRegex=Nn.urlSchemeRegex=Nn.ctrlCharactersRegex=Nn.htmlCtrlEntityRegex=Nn.htmlEntitiesRegex=Nn.invalidProtocolRegex=void 0,Nn.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Nn.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,Nn.htmlCtrlEntityRegex=/&(newline|tab);/gi,Nn.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Nn.urlSchemeRegex=/^.+(:|&colon;)/gim,Nn.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Nn.relativeFirstCharacters=[".","/"],Nn.BLANK_URL="about:blank"),Nn}var YS;function UP(){if(YS)return vc;YS=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.sanitizeUrl=void 0;var t=$P();function e(o){return t.relativeFirstCharacters.indexOf(o[0])>-1}function n(o){var c=o.replace(t.ctrlCharactersRegex,"");return c.replace(t.htmlEntitiesRegex,function(f,h){return String.fromCharCode(h)})}function i(o){return URL.canParse(o)}function a(o){try{return decodeURIComponent(o)}catch{return o}}function s(o){if(!o)return t.BLANK_URL;var c,f=a(o.trim());do f=n(f).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),f=a(f),c=f.match(t.ctrlCharactersRegex)||f.match(t.htmlEntitiesRegex)||f.match(t.htmlCtrlEntityRegex)||f.match(t.whitespaceEscapeCharsRegex);while(c&&c.length>0);var h=f;if(!h)return t.BLANK_URL;if(e(h))return h;var d=h.trimStart(),g=d.match(t.urlSchemeRegex);if(!g)return h;var y=g[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(y))return t.BLANK_URL;var m=d.replace(/\\/g,"/");if(y==="mailto:"||y.includes("://"))return m;if(y==="http:"||y==="https:"){if(!i(m))return t.BLANK_URL;var _=new URL(m);return _.protocol=_.protocol.toLowerCase(),_.hostname=_.hostname.toLowerCase(),_.toString()}return m}return vc.sanitizeUrl=s,vc}var PP=UP(),bT=typeof global=="object"&&global&&global.Object===Object&&global,HP=typeof self=="object"&&self&&self.Object===Object&&self,Fr=bT||HP||Function("return this")(),jf=Fr.Symbol,xT=Object.prototype,qP=xT.hasOwnProperty,jP=xT.toString,Sc=jf?jf.toStringTag:void 0;function GP(t){var e=qP.call(t,Sc),n=t[Sc];try{t[Sc]=void 0;var i=!0}catch{}var a=jP.call(t);return i&&(e?t[Sc]=n:delete t[Sc]),a}var YP=Object.prototype,WP=YP.toString;function VP(t){return WP.call(t)}var XP="[object Null]",KP="[object Undefined]",WS=jf?jf.toStringTag:void 0;function fo(t){return t==null?t===void 0?KP:XP:WS&&WS in Object(t)?GP(t):VP(t)}function jl(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ZP="[object AsyncFunction]",QP="[object Function]",JP="[object GeneratorFunction]",tH="[object Proxy]";function Pb(t){if(!jl(t))return!1;var e=fo(t);return e==QP||e==JP||e==ZP||e==tH}var Sm=Fr["__core-js_shared__"],VS=(function(){var t=/[^.]+$/.exec(Sm&&Sm.keys&&Sm.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function eH(t){return!!VS&&VS in t}var nH=Function.prototype,iH=nH.toString;function Gl(t){if(t!=null){try{return iH.call(t)}catch{}try{return t+""}catch{}}return""}var rH=/[\\^$.*+?()[\]{}|]/g,aH=/^\[object .+?Constructor\]$/,lH=Function.prototype,sH=Object.prototype,oH=lH.toString,cH=sH.hasOwnProperty,uH=RegExp("^"+oH.call(cH).replace(rH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hH(t){if(!jl(t)||eH(t))return!1;var e=Pb(t)?uH:aH;return e.test(Gl(t))}function fH(t,e){return t==null?void 0:t[e]}function Yl(t,e){var n=fH(t,e);return hH(n)?n:void 0}var eu=Yl(Object,"create");function dH(){this.__data__=eu?eu(null):{},this.size=0}function pH(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var gH="__lodash_hash_undefined__",mH=Object.prototype,yH=mH.hasOwnProperty;function bH(t){var e=this.__data__;if(eu){var n=e[t];return n===gH?void 0:n}return yH.call(e,t)?e[t]:void 0}var xH=Object.prototype,_H=xH.hasOwnProperty;function vH(t){var e=this.__data__;return eu?e[t]!==void 0:_H.call(e,t)}var SH="__lodash_hash_undefined__";function wH(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=eu&&e===void 0?SH:e,this}function $l(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$l.prototype.clear=dH;$l.prototype.delete=pH;$l.prototype.get=bH;$l.prototype.has=vH;$l.prototype.set=wH;function CH(){this.__data__=[],this.size=0}function Sd(t,e){return t===e||t!==t&&e!==e}function wd(t,e){for(var n=t.length;n--;)if(Sd(t[n][0],e))return n;return-1}var kH=Array.prototype,EH=kH.splice;function TH(t){var e=this.__data__,n=wd(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():EH.call(e,n,1),--this.size,!0}function AH(t){var e=this.__data__,n=wd(e,t);return n<0?void 0:e[n][1]}function MH(t){return wd(this.__data__,t)>-1}function NH(t,e){var n=this.__data__,i=wd(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function ga(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ga.prototype.clear=CH;ga.prototype.delete=TH;ga.prototype.get=AH;ga.prototype.has=MH;ga.prototype.set=NH;var nu=Yl(Fr,"Map");function OH(){this.size=0,this.__data__={hash:new $l,map:new(nu||ga),string:new $l}}function LH(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Cd(t,e){var n=t.__data__;return LH(e)?n[typeof e=="string"?"string":"hash"]:n.map}function RH(t){var e=Cd(this,t).delete(t);return this.size-=e?1:0,e}function DH(t){return Cd(this,t).get(t)}function BH(t){return Cd(this,t).has(t)}function IH(t,e){var n=Cd(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}function tl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}tl.prototype.clear=OH;tl.prototype.delete=RH;tl.prototype.get=DH;tl.prototype.has=BH;tl.prototype.set=IH;var zH="Expected a function";function gu(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(zH);var n=function(){var i=arguments,a=e?e.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var o=t.apply(this,i);return n.cache=s.set(a,o)||s,o};return n.cache=new(gu.Cache||tl),n}gu.Cache=tl;function FH(){this.__data__=new ga,this.size=0}function $H(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function UH(t){return this.__data__.get(t)}function PH(t){return this.__data__.has(t)}var HH=200;function qH(t,e){var n=this.__data__;if(n instanceof ga){var i=n.__data__;if(!nu||i.length<HH-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new tl(i)}return n.set(t,e),this.size=n.size,this}function po(t){var e=this.__data__=new ga(t);this.size=e.size}po.prototype.clear=FH;po.prototype.delete=$H;po.prototype.get=UH;po.prototype.has=PH;po.prototype.set=qH;var Gf=(function(){try{var t=Yl(Object,"defineProperty");return t({},"",{}),t}catch{}})();function Hb(t,e,n){e=="__proto__"&&Gf?Gf(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Cy(t,e,n){(n!==void 0&&!Sd(t[e],n)||n===void 0&&!(e in t))&&Hb(t,e,n)}function jH(t){return function(e,n,i){for(var a=-1,s=Object(e),o=i(e),c=o.length;c--;){var f=o[++a];if(n(s[f],f,s)===!1)break}return e}}var GH=jH(),_T=typeof exports=="object"&&exports&&!exports.nodeType&&exports,XS=_T&&typeof module=="object"&&module&&!module.nodeType&&module,YH=XS&&XS.exports===_T,KS=YH?Fr.Buffer:void 0,ZS=KS?KS.allocUnsafe:void 0;function WH(t,e){if(e)return t.slice();var n=t.length,i=ZS?ZS(n):new t.constructor(n);return t.copy(i),i}var QS=Fr.Uint8Array;function VH(t){var e=new t.constructor(t.byteLength);return new QS(e).set(new QS(t)),e}function XH(t,e){var n=e?VH(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function KH(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var JS=Object.create,ZH=(function(){function t(){}return function(e){if(!jl(e))return{};if(JS)return JS(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function vT(t,e){return function(n){return t(e(n))}}var ST=vT(Object.getPrototypeOf,Object),QH=Object.prototype;function kd(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||QH;return t===n}function JH(t){return typeof t.constructor=="function"&&!kd(t)?ZH(ST(t)):{}}function mu(t){return t!=null&&typeof t=="object"}var tq="[object Arguments]";function tw(t){return mu(t)&&fo(t)==tq}var wT=Object.prototype,eq=wT.hasOwnProperty,nq=wT.propertyIsEnumerable,Yf=tw((function(){return arguments})())?tw:function(t){return mu(t)&&eq.call(t,"callee")&&!nq.call(t,"callee")},Wf=Array.isArray,iq=9007199254740991;function CT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=iq}function Ed(t){return t!=null&&CT(t.length)&&!Pb(t)}function rq(t){return mu(t)&&Ed(t)}function aq(){return!1}var kT=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ew=kT&&typeof module=="object"&&module&&!module.nodeType&&module,lq=ew&&ew.exports===kT,nw=lq?Fr.Buffer:void 0,sq=nw?nw.isBuffer:void 0,qb=sq||aq,oq="[object Object]",cq=Function.prototype,uq=Object.prototype,ET=cq.toString,hq=uq.hasOwnProperty,fq=ET.call(Object);function dq(t){if(!mu(t)||fo(t)!=oq)return!1;var e=ST(t);if(e===null)return!0;var n=hq.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ET.call(n)==fq}var pq="[object Arguments]",gq="[object Array]",mq="[object Boolean]",yq="[object Date]",bq="[object Error]",xq="[object Function]",_q="[object Map]",vq="[object Number]",Sq="[object Object]",wq="[object RegExp]",Cq="[object Set]",kq="[object String]",Eq="[object WeakMap]",Tq="[object ArrayBuffer]",Aq="[object DataView]",Mq="[object Float32Array]",Nq="[object Float64Array]",Oq="[object Int8Array]",Lq="[object Int16Array]",Rq="[object Int32Array]",Dq="[object Uint8Array]",Bq="[object Uint8ClampedArray]",Iq="[object Uint16Array]",zq="[object Uint32Array]",tn={};tn[Mq]=tn[Nq]=tn[Oq]=tn[Lq]=tn[Rq]=tn[Dq]=tn[Bq]=tn[Iq]=tn[zq]=!0;tn[pq]=tn[gq]=tn[Tq]=tn[mq]=tn[Aq]=tn[yq]=tn[bq]=tn[xq]=tn[_q]=tn[vq]=tn[Sq]=tn[wq]=tn[Cq]=tn[kq]=tn[Eq]=!1;function Fq(t){return mu(t)&&CT(t.length)&&!!tn[fo(t)]}function $q(t){return function(e){return t(e)}}var TT=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qc=TT&&typeof module=="object"&&module&&!module.nodeType&&module,Uq=qc&&qc.exports===TT,wm=Uq&&bT.process,iw=(function(){try{var t=qc&&qc.require&&qc.require("util").types;return t||wm&&wm.binding&&wm.binding("util")}catch{}})(),rw=iw&&iw.isTypedArray,jb=rw?$q(rw):Fq;function ky(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Pq=Object.prototype,Hq=Pq.hasOwnProperty;function qq(t,e,n){var i=t[e];(!(Hq.call(t,e)&&Sd(i,n))||n===void 0&&!(e in t))&&Hb(t,e,n)}function jq(t,e,n,i){var a=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var c=e[s],f=void 0;f===void 0&&(f=t[c]),a?Hb(n,c,f):qq(n,c,f)}return n}function Gq(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var Yq=9007199254740991,Wq=/^(?:0|[1-9]\d*)$/;function AT(t,e){var n=typeof t;return e=e??Yq,!!e&&(n=="number"||n!="symbol"&&Wq.test(t))&&t>-1&&t%1==0&&t<e}var Vq=Object.prototype,Xq=Vq.hasOwnProperty;function Kq(t,e){var n=Wf(t),i=!n&&Yf(t),a=!n&&!i&&qb(t),s=!n&&!i&&!a&&jb(t),o=n||i||a||s,c=o?Gq(t.length,String):[],f=c.length;for(var h in t)(e||Xq.call(t,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||AT(h,f)))&&c.push(h);return c}function Zq(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Qq=Object.prototype,Jq=Qq.hasOwnProperty;function t7(t){if(!jl(t))return Zq(t);var e=kd(t),n=[];for(var i in t)i=="constructor"&&(e||!Jq.call(t,i))||n.push(i);return n}function MT(t){return Ed(t)?Kq(t,!0):t7(t)}function e7(t){return jq(t,MT(t))}function n7(t,e,n,i,a,s,o){var c=ky(t,n),f=ky(e,n),h=o.get(f);if(h){Cy(t,n,h);return}var d=s?s(c,f,n+"",t,e,o):void 0,g=d===void 0;if(g){var y=Wf(f),m=!y&&qb(f),_=!y&&!m&&jb(f);d=f,y||m||_?Wf(c)?d=c:rq(c)?d=KH(c):m?(g=!1,d=WH(f,!0)):_?(g=!1,d=XH(f,!0)):d=[]:dq(f)||Yf(f)?(d=c,Yf(c)?d=e7(c):(!jl(c)||Pb(c))&&(d=JH(f))):g=!1}g&&(o.set(f,d),a(d,f,i,s,o),o.delete(f)),Cy(t,n,d)}function NT(t,e,n,i,a){t!==e&&GH(e,function(s,o){if(a||(a=new po),jl(s))n7(t,e,o,n,NT,i,a);else{var c=i?i(ky(t,o),s,o+"",t,e,a):void 0;c===void 0&&(c=s),Cy(t,o,c)}},MT)}function OT(t){return t}function i7(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var aw=Math.max;function r7(t,e,n){return e=aw(e===void 0?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=aw(i.length-e,0),o=Array(s);++a<s;)o[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(o),i7(t,this,c)}}function a7(t){return function(){return t}}var l7=Gf?function(t,e){return Gf(t,"toString",{configurable:!0,enumerable:!1,value:a7(e),writable:!0})}:OT,s7=800,o7=16,c7=Date.now;function u7(t){var e=0,n=0;return function(){var i=c7(),a=o7-(i-n);if(n=i,a>0){if(++e>=s7)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var h7=u7(l7);function f7(t,e){return h7(r7(t,e,OT),t+"")}function d7(t,e,n){if(!jl(n))return!1;var i=typeof e;return(i=="number"?Ed(n)&&AT(e,n.length):i=="string"&&e in n)?Sd(n[e],t):!1}function p7(t){return f7(function(e,n){var i=-1,a=n.length,s=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(a--,s):void 0,o&&d7(n[0],n[1],o)&&(s=a<3?void 0:s,a=1),e=Object(e);++i<a;){var c=n[i];c&&t(e,c,i,s)}return e})}var g7=p7(function(t,e,n){NT(t,e,n)}),m7="​",y7={curveBasis:cf,curveBasisClosed:xU,curveBasisOpen:_U,curveBumpX:mk,curveBumpY:yk,curveBundle:vU,curveCardinalClosed:SU,curveCardinalOpen:wU,curveCardinal:vk,curveCatmullRomClosed:CU,curveCatmullRomOpen:kU,curveCatmullRom:wk,curveLinear:Df,curveLinearClosed:EU,curveMonotoneX:Mk,curveMonotoneY:Nk,curveNatural:Lk,curveStep:Rk,curveStepAfter:Bk,curveStepBefore:Dk},b7=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,x7=w(function(t,e){const n=LT(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const o=n.map(c=>c.args);wf(o),i=On(i,[...o])}else i=n.args;if(!i)return;let a=pb(t,e);const s="config";return i[s]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),i[a]=i[s],delete i[s]),i},"detectInit"),LT=w(function(t,e=null){var n,i;try{const a=new RegExp(`[%]{2}(?![{]${b7.source})(?=[}][%]{2}).*
203
+ `,"ig");t=t.trim().replace(a,"").replace(/'/gm,'"'),ht.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let s;const o=[];for(;(s=Pc.exec(t))!==null;)if(s.index===Pc.lastIndex&&Pc.lastIndex++,s&&!e||e&&((n=s[1])!=null&&n.match(e))||e&&((i=s[2])!=null&&i.match(e))){const c=s[1]?s[1]:s[2],f=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:c,args:f})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(a){return ht.error(`ERROR: ${a.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),_7=w(function(t){return t.replace(Pc,"")},"removeDirectives"),v7=w(function(t,e){for(const[n,i]of e.entries())if(i.match(t))return n;return-1},"isSubstringInArray");function Gb(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return y7[n]??e}w(Gb,"interpolateToCurve");function RT(t,e){const n=t.trim();if(n)return e.securityLevel!=="loose"?PP.sanitizeUrl(n):n}w(RT,"formatUrl");var S7=w((t,...e)=>{const n=t.split("."),i=n.length-1,a=n[i];let s=window;for(let o=0;o<i;o++)if(s=s[n[o]],!s){ht.error(`Function name: ${t} not found in window`);return}s[a](...e)},"runFunc");function Yb(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}w(Yb,"distance");function DT(t){let e,n=0;t.forEach(a=>{n+=Yb(a,e),e=a});const i=n/2;return Wb(t,i)}w(DT,"traverseEdge");function BT(t){return t.length===1?t[0]:DT(t)}w(BT,"calcLabelPosition");var lw=w((t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n},"roundNumber"),Wb=w((t,e)=>{let n,i=e;for(const a of t){if(n){const s=Yb(a,n);if(s===0)return n;if(s<i)i-=s;else{const o=i/s;if(o<=0)return n;if(o>=1)return{x:a.x,y:a.y};if(o>0&&o<1)return{x:lw((1-o)*n.x+o*a.x,5),y:lw((1-o)*n.y+o*a.y,5)}}}n=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),w7=w((t,e,n)=>{ht.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const a=Wb(e,25),s=t?10:5,o=Math.atan2(e[0].y-a.y,e[0].x-a.x),c={x:0,y:0};return c.x=Math.sin(o)*s+(e[0].x+a.x)/2,c.y=-Math.cos(o)*s+(e[0].y+a.y)/2,c},"calcCardinalityPosition");function IT(t,e,n){const i=structuredClone(n);ht.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();const a=25+t,s=Wb(i,a),o=10+t*.5,c=Math.atan2(i[0].y-s.y,i[0].x-s.x),f={x:0,y:0};return e==="start_left"?(f.x=Math.sin(c+Math.PI)*o+(i[0].x+s.x)/2,f.y=-Math.cos(c+Math.PI)*o+(i[0].y+s.y)/2):e==="end_right"?(f.x=Math.sin(c-Math.PI)*o+(i[0].x+s.x)/2-5,f.y=-Math.cos(c-Math.PI)*o+(i[0].y+s.y)/2-5):e==="end_left"?(f.x=Math.sin(c)*o+(i[0].x+s.x)/2-5,f.y=-Math.cos(c)*o+(i[0].y+s.y)/2-5):(f.x=Math.sin(c)*o+(i[0].x+s.x)/2,f.y=-Math.cos(c)*o+(i[0].y+s.y)/2),f}w(IT,"calcTerminalLabelPosition");function zT(t){let e="",n="";for(const i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?n=n+i+";":e=e+i+";");return{style:e,labelStyle:n}}w(zT,"getStylesFromArray");var sw=0,C7=w(()=>(sw++,"id-"+Math.random().toString(36).substr(2,12)+"-"+sw),"generateId");function FT(t){let e="";const n="0123456789abcdef",i=n.length;for(let a=0;a<t;a++)e+=n.charAt(Math.floor(Math.random()*i));return e}w(FT,"makeRandomHex");var k7=w(t=>FT(t.length),"random"),E7=w(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"),T7=w(function(t,e){const n=e.text.replace(uo.lineBreakRegex," "),[,i]=Td(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",i),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),e.class!==void 0&&a.attr("class",e.class);const s=a.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(n),a},"drawSimpleText"),A7=gu((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),uo.lineBreakRegex.test(t)))return t;const i=t.split(" ").filter(Boolean),a=[];let s="";return i.forEach((o,c)=>{const f=da(`${o} `,n),h=da(s,n);if(f>e){const{hyphenatedStrings:y,remainingWord:m}=M7(o,e,"-",n);a.push(s,...y),s=m}else h+f>=e?(a.push(s),s=o):s=[s,o].filter(Boolean).join(" ");c+1===i.length&&a.push(s)}),a.filter(o=>o!=="").join(n.joinWith)},(t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),M7=gu((t,e,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const a=[...t],s=[];let o="";return a.forEach((c,f)=>{const h=`${o}${c}`;if(da(h,i)>=e){const g=f+1,y=a.length===g,m=`${h}${n}`;s.push(y?h:m),o=""}else o=h}),{hyphenatedStrings:s,remainingWord:o}},(t,e,n="-",i)=>`${t}${e}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function $T(t,e){return Vb(t,e).height}w($T,"calculateTextHeight");function da(t,e){return Vb(t,e).width}w(da,"calculateTextWidth");var Vb=gu((t,e)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};const[,s]=Td(n),o=["sans-serif",i],c=t.split(uo.lineBreakRegex),f=[],h=Se("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const y of o){let m=0;const _={width:0,height:0,lineHeight:0};for(const v of c){const C=E7();C.text=v||m7;const S=T7(d,C).style("font-size",s).style("font-weight",a).style("font-family",y),T=(S._groups||S)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,T.width)),m=Math.round(T.height),_.height+=m,_.lineHeight=Math.round(Math.max(_.lineHeight,m))}f.push(_)}d.remove();const g=isNaN(f[1].height)||isNaN(f[1].width)||isNaN(f[1].lineHeight)||f[0].height>f[1].height&&f[0].width>f[1].width&&f[0].lineHeight>f[1].lineHeight?0:1;return f[g]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),Zs,N7=(Zs=class{constructor(e=!1,n){this.count=0,this.count=n?n.length:0,this.next=e?()=>this.count++:()=>Date.now()}},w(Zs,"InitIDGenerator"),Zs),Yh,O7=w(function(t){return Yh=Yh||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Yh.innerHTML=t,unescape(Yh.textContent)},"entityDecode");function Xb(t){return"str"in t}w(Xb,"isDetailedError");var L7=w((t,e,n,i)=>{var s;if(!i)return;const a=(s=t.node())==null?void 0:s.getBBox();a&&t.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-n).attr("class",e)},"insertTitle"),Td=w(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 Kb(t,e){return g7({},t,e)}w(Kb,"cleanAndMerge");var mr={assignWithDepth:On,wrapLabel:A7,calculateTextHeight:$T,calculateTextWidth:da,calculateTextDimensions:Vb,cleanAndMerge:Kb,detectInit:x7,detectDirective:LT,isSubstringInArray:v7,interpolateToCurve:Gb,calcLabelPosition:BT,calcCardinalityPosition:w7,calcTerminalLabelPosition:IT,formatUrl:RT,getStylesFromArray:zT,generateId:C7,random:k7,runFunc:S7,entityDecode:O7,insertTitle:L7,isLabelCoordinateInPath:UT,parseFontSize:Td,InitIDGenerator:N7},R7=w(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/#\w+;/g,function(n){const i=n.substring(1,n.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),e},"encodeEntities"),Wl=w(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),IX=w((t,e,{counter:n=0,prefix:i,suffix:a},s)=>s||`${i?`${i}_`:""}${t}_${e}_${n}${a?`_${a}`:""}`,"getEdgeId");function Jn(t){return t??null}w(Jn,"handleUndefinedAttr");function UT(t,e){const n=Math.round(t.x),i=Math.round(t.y),a=e.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return a.includes(n.toString())||a.includes(i.toString())}w(UT,"isLabelCoordinateInPath");const D7=Object.freeze({left:0,top:0,width:16,height:16}),Vf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),PT=Object.freeze({...D7,...Vf}),B7=Object.freeze({...PT,body:"",hidden:!1}),I7=Object.freeze({width:null,height:null}),z7=Object.freeze({...I7,...Vf}),F7=(t,e,n,i="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;i=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const c=a.pop(),f=a.pop(),h={provider:a.length>0?a[0]:i,prefix:f,name:c};return Cm(h)?h:null}const s=a[0],o=s.split("-");if(o.length>1){const c={provider:i,prefix:o.shift(),name:o.join("-")};return Cm(c)?c:null}if(n&&i===""){const c={provider:i,prefix:"",name:s};return Cm(c,n)?c:null}return null},Cm=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function $7(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(n.rotate=i),n}function ow(t,e){const n=$7(t,e);for(const i in B7)i in Vf?i in t&&!(i in n)&&(n[i]=Vf[i]):i in e?n[i]=e[i]:i in t&&(n[i]=t[i]);return n}function U7(t,e){const n=t.icons,i=t.aliases||Object.create(null),a=Object.create(null);function s(o){if(n[o])return a[o]=[];if(!(o in a)){a[o]=null;const c=i[o]&&i[o].parent,f=c&&s(c);f&&(a[o]=[c].concat(f))}return a[o]}return(e||Object.keys(n).concat(Object.keys(i))).forEach(s),a}function cw(t,e,n){const i=t.icons,a=t.aliases||Object.create(null);let s={};function o(c){s=ow(i[c]||a[c],s)}return o(e),n.forEach(o),ow(t,s)}function P7(t,e){if(t.icons[e])return cw(t,e,[]);const n=U7(t,[e])[e];return n?cw(t,e,n):null}const H7=/(-?[0-9.]*[0-9]+[0-9.]*)/g,q7=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function uw(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const i=t.split(H7);if(i===null||!i.length)return t;const a=[];let s=i.shift(),o=q7.test(s);for(;;){if(o){const c=parseFloat(s);isNaN(c)?a.push(s):a.push(Math.ceil(c*e*n)/n)}else a.push(s);if(s=i.shift(),s===void 0)return a.join("");o=!o}}function j7(t,e="defs"){let n="";const i=t.indexOf("<"+e);for(;i>=0;){const a=t.indexOf(">",i),s=t.indexOf("</"+e);if(a===-1||s===-1)break;const o=t.indexOf(">",s);if(o===-1)break;n+=t.slice(a+1,s).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:n,content:t}}function G7(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Y7(t,e,n){const i=j7(t);return G7(i.defs,e+i.content+n)}const W7=t=>t==="unset"||t==="undefined"||t==="none";function V7(t,e){const n={...PT,...t},i={...z7,...e},a={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,i].forEach(v=>{const C=[],S=v.hFlip,T=v.vFlip;let A=v.rotate;S?T?A+=2:(C.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),C.push("scale(-1 1)"),a.top=a.left=0):T&&(C.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),C.push("scale(1 -1)"),a.top=a.left=0);let B;switch(A<0&&(A-=Math.floor(A/4)*4),A=A%4,A){case 1:B=a.height/2+a.top,C.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:C.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:B=a.width/2+a.left,C.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}A%2===1&&(a.left!==a.top&&(B=a.left,a.left=a.top,a.top=B),a.width!==a.height&&(B=a.width,a.width=a.height,a.height=B)),C.length&&(s=Y7(s,'<g transform="'+C.join(" ")+'">',"</g>"))});const o=i.width,c=i.height,f=a.width,h=a.height;let d,g;o===null?(g=c===null?"1em":c==="auto"?h:c,d=uw(g,f/h)):(d=o==="auto"?f:o,g=c===null?uw(d,h/f):c==="auto"?h:c);const y={},m=(v,C)=>{W7(C)||(y[v]=C.toString())};m("width",d),m("height",g);const _=[a.left,a.top,f,h];return y.viewBox=_.join(" "),{attributes:y,viewBox:_,body:s}}const X7=/\sid="(\S+)"/g,hw=new Map;function K7(t){t=t.replace(/[0-9]+$/,"")||"a";const e=hw.get(t)||0;return hw.set(t,e+1),e?`${t}${e}`:t}function Z7(t){const e=[];let n;for(;n=X7.exec(t);)e.push(n[1]);if(!e.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(a=>{const s=K7(a),o=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function Q7(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)n+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Zb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Vl=Zb();function HT(t){Vl=t}var jc={exec:()=>null};function Ae(t,e=""){let n=typeof t=="string"?t:t.source,i={replace:(a,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(ui.caret,"$1"),n=n.replace(a,o),i},getRegex:()=>new RegExp(n,e)};return i}var J7=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ui={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")},tj=/^(?:[ \t]*(?:\n|$))+/,ej=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nj=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,yu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ij=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Qb=/(?:[*+-]|\d{1,9}[.)])/,qT=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jT=Ae(qT).replace(/bull/g,Qb).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(),rj=Ae(qT).replace(/bull/g,Qb).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(),Jb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,aj=/^[^\n]+/,t0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lj=Ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",t0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sj=Ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Qb).getRegex(),Ad="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",e0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,oj=Ae("^ {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",e0).replace("tag",Ad).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),GT=Ae(Jb).replace("hr",yu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ad).getRegex(),cj=Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",GT).getRegex(),n0={blockquote:cj,code:ej,def:lj,fences:nj,heading:ij,hr:yu,html:oj,lheading:jT,list:sj,newline:tj,paragraph:GT,table:jc,text:aj},fw=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ad).getRegex(),uj={...n0,lheading:rj,table:fw,paragraph:Ae(Jb).replace("hr",yu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",fw).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ad).getRegex()},hj={...n0,html:Ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",e0).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:jc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(Jb).replace("hr",yu).replace("heading",` *#{1,6} *[^
204
+ ]`).replace("lheading",jT).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fj=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,dj=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,YT=/^( {2,}|\\)\n(?!\s*$)/,pj=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Md=/[\p{P}\p{S}]/u,i0=/[\s\p{P}\p{S}]/u,WT=/[^\s\p{P}\p{S}]/u,gj=Ae(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,i0).getRegex(),VT=/(?!~)[\p{P}\p{S}]/u,mj=/(?!~)[\s\p{P}\p{S}]/u,yj=/(?:[^\s\p{P}\p{S}]|~)/u,bj=Ae(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",J7?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),XT=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,xj=Ae(XT,"u").replace(/punct/g,Md).getRegex(),_j=Ae(XT,"u").replace(/punct/g,VT).getRegex(),KT="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",vj=Ae(KT,"gu").replace(/notPunctSpace/g,WT).replace(/punctSpace/g,i0).replace(/punct/g,Md).getRegex(),Sj=Ae(KT,"gu").replace(/notPunctSpace/g,yj).replace(/punctSpace/g,mj).replace(/punct/g,VT).getRegex(),wj=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,WT).replace(/punctSpace/g,i0).replace(/punct/g,Md).getRegex(),Cj=Ae(/\\(punct)/,"gu").replace(/punct/g,Md).getRegex(),kj=Ae(/^<(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(),Ej=Ae(e0).replace("(?:-->|$)","-->").getRegex(),Tj=Ae("^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",Ej).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Aj=Ae(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Xf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ZT=Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",Xf).replace("ref",t0).getRegex(),QT=Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",t0).getRegex(),Mj=Ae("reflink|nolink(?!\\()","g").replace("reflink",ZT).replace("nolink",QT).getRegex(),dw=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,r0={_backpedal:jc,anyPunctuation:Cj,autolink:kj,blockSkip:bj,br:YT,code:dj,del:jc,emStrongLDelim:xj,emStrongRDelimAst:vj,emStrongRDelimUnd:wj,escape:fj,link:Aj,nolink:QT,punctuation:gj,reflink:ZT,reflinkSearch:Mj,tag:Tj,text:pj,url:jc},Nj={...r0,link:Ae(/^!?\[(label)\]\((.*?)\)/).replace("label",Xf).getRegex(),reflink:Ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xf).getRegex()},Ey={...r0,emStrongRDelimAst:Sj,emStrongLDelim:_j,url:Ae(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",dw).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:Ae(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",dw).getRegex()},Oj={...Ey,br:Ae(YT).replace("{2,}","*").getRegex(),text:Ae(Ey.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Wh={normal:n0,gfm:uj,pedantic:hj},wc={normal:r0,gfm:Ey,breaks:Oj,pedantic:Nj},Lj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pw=t=>Lj[t];function Mr(t,e){if(e){if(ui.escapeTest.test(t))return t.replace(ui.escapeReplace,pw)}else if(ui.escapeTestNoEncode.test(t))return t.replace(ui.escapeReplaceNoEncode,pw);return t}function gw(t){try{t=encodeURI(t).replace(ui.percentDecode,"%")}catch{return null}return t}function mw(t,e){var s;let n=t.replace(ui.findPipe,(o,c,f)=>{let h=!1,d=c;for(;--d>=0&&f[d]==="\\";)h=!h;return h?"|":" |"}),i=n.split(ui.splitPipe),a=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(;a<i.length;a++)i[a]=i[a].trim().replace(ui.slashPipe,"|");return i}function Cc(t,e,n){let i=t.length;if(i===0)return"";let a=0;for(;a<i&&t.charAt(i-a-1)===e;)a++;return t.slice(0,i-a)}function Rj(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])n++;else if(t[i]===e[1]&&(n--,n<0))return i;return n>0?-2:-1}function yw(t,e,n,i,a){let s=e.href,o=e.title||null,c=t[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:o,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function Dj(t,e,n){let i=t.match(n.other.indentCodeCompensation);if(i===null)return e;let a=i[1];return e.split(`
205
+ `).map(s=>{let o=s.match(n.other.beginningSpace);if(o===null)return s;let[c]=o;return c.length>=a.length?s.slice(a.length):s}).join(`
206
+ `)}var Kf=class{constructor(e){Ue(this,"options");Ue(this,"rules");Ue(this,"lexer");this.options=e||Vl}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let i=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Cc(i,`
207
+ `)}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let i=n[0],a=Dj(i,n[3]||"",this.rules);return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:a}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let i=n[2].trim();if(this.rules.other.endingHash.test(i)){let a=Cc(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:Cc(n[0],`
208
+ `)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let i=Cc(n[0],`
209
+ `).split(`
210
+ `),a="",s="",o=[];for(;i.length>0;){let c=!1,f=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))f.push(i[h]),c=!0;else if(!c)f.push(i[h]);else break;i=i.slice(h);let d=f.join(`
211
+ `),g=d.replace(this.rules.other.blockquoteSetextReplace,`
212
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
213
+ ${d}`:d,s=s?`${s}
214
+ ${g}`:g;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,o,!0),this.lexer.state.top=y,i.length===0)break;let m=o.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){let _=m,v=_.raw+`
215
+ `+i.join(`
216
+ `),C=this.blockquote(v);o[o.length-1]=C,a=a.substring(0,a.length-_.raw.length)+C.raw,s=s.substring(0,s.length-_.text.length)+C.text;break}else if((m==null?void 0:m.type)==="list"){let _=m,v=_.raw+`
217
+ `+i.join(`
218
+ `),C=this.list(v);o[o.length-1]=C,a=a.substring(0,a.length-m.raw.length)+C.raw,s=s.substring(0,s.length-_.raw.length)+C.raw,i=v.substring(o.at(-1).raw.length).split(`
219
+ `);continue}}return{type:"blockquote",raw:a,tokens:o,text:s}}}list(e){let n=this.rules.block.list.exec(e);if(n){let i=n[1].trim(),a=i.length>1,s={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let o=this.rules.other.listItemRegex(i),c=!1;for(;e;){let h=!1,d="",g="";if(!(n=o.exec(e))||this.rules.block.hr.test(e))break;d=n[0],e=e.substring(d.length);let y=n[2].split(`
220
+ `,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),m=e.split(`
221
+ `,1)[0],_=!y.trim(),v=0;if(this.options.pedantic?(v=2,g=y.trimStart()):_?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,g=y.slice(v),v+=n[1].length),_&&this.rules.other.blankLine.test(m)&&(d+=m+`
222
+ `,e=e.substring(m.length+1),h=!0),!h){let T=this.rules.other.nextBulletRegex(v),A=this.rules.other.hrRegex(v),B=this.rules.other.fencesBeginRegex(v),N=this.rules.other.headingBeginRegex(v),E=this.rules.other.htmlBeginRegex(v);for(;e;){let R=e.split(`
223
+ `,1)[0],G;if(m=R,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),G=m):G=m.replace(this.rules.other.tabCharGlobal," "),B.test(m)||N.test(m)||E.test(m)||T.test(m)||A.test(m))break;if(G.search(this.rules.other.nonSpaceChar)>=v||!m.trim())g+=`
224
+ `+G.slice(v);else{if(_||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||B.test(y)||N.test(y)||A.test(y))break;g+=`
225
+ `+m}!_&&!m.trim()&&(_=!0),d+=R+`
226
+ `,e=e.substring(R.length+1),y=G.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(c=!0));let C=null,S;this.options.gfm&&(C=this.rules.other.listIsTask.exec(g),C&&(S=C[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:d,task:!!C,checked:S,loose:!1,text:g,tokens:[]}),s.raw+=d}let f=s.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.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 d=s.items[h].tokens.filter(y=>y.type==="space"),g=d.length>0&&d.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=g}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(e){let n=this.rules.block.html.exec(e);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(e){let n=this.rules.block.def.exec(e);if(n){let i=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:a,title:s}}}table(e){var c;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let i=mw(n[1]),a=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=n[3])!=null&&c.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
227
+ `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let f of a)this.rules.other.tableAlignRight.test(f)?o.align.push("right"):this.rules.other.tableAlignCenter.test(f)?o.align.push("center"):this.rules.other.tableAlignLeft.test(f)?o.align.push("left"):o.align.push(null);for(let f=0;f<i.length;f++)o.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:o.align[f]});for(let f of s)o.rows.push(mw(f,o.header.length).map((h,d)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:o.align[d]})));return o}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let i=n[1].charAt(n[1].length-1)===`
228
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let i=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=Cc(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=Rj(n[2],"()");if(o===-2)return;if(o>-1){let c=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let a=n[2],s="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(a);o&&(a=o[1],s=o[3])}else s=n[3]?n[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),yw(n,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[a.toLowerCase()];if(!s){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return yw(i,s,i[0],this.lexer,this.rules)}}emStrong(e,n,i=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...a[0]].length-1,o,c,f=s,h=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*e.length+s);(a=d.exec(n))!=null;){if(o=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!o)continue;if(c=[...o].length,a[3]||a[4]){f+=c;continue}else if((a[5]||a[6])&&s%3&&!((s+c)%3)){h+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+h);let g=[...a[0]][0].length,y=e.slice(0,s+a.index+g+c);if(Math.min(s,c)%2){let _=y.slice(1,-1);return{type:"em",raw:y,text:_,tokens:this.lexer.inlineTokens(_)}}let m=y.slice(2,-2);return{type:"strong",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let i=n[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:n[0],text:i}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){let n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let i,a;return n[2]==="@"?(i=n[1],a="mailto:"+i):(i=n[1],a=i),{type:"link",raw:n[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(e){var i;let n;if(n=this.rules.inline.url.exec(e)){let a,s;if(n[2]==="@")a=n[0],s="mailto:"+a;else{let o;do o=n[0],n[0]=((i=this.rules.inline._backpedal.exec(n[0]))==null?void 0:i[0])??"";while(o!==n[0]);a=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let i=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:i}}}},dr=class Ty{constructor(e){Ue(this,"tokens");Ue(this,"options");Ue(this,"state");Ue(this,"tokenizer");Ue(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Vl,this.options.tokenizer=this.options.tokenizer||new Kf,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 n={other:ui,block:Wh.normal,inline:wc.normal};this.options.pedantic?(n.block=Wh.pedantic,n.inline=wc.pedantic):this.options.gfm&&(n.block=Wh.gfm,this.options.breaks?n.inline=wc.breaks:n.inline=wc.gfm),this.tokenizer.rules=n}static get rules(){return{block:Wh,inline:wc}}static lex(e,n){return new Ty(n).lex(e)}static lexInline(e,n){return new Ty(n).inlineTokens(e)}lex(e){e=e.replace(ui.carriageReturn,`
229
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],i=!1){var a,s,o;for(this.options.pedantic&&(e=e.replace(ui.tabCharGlobal," ").replace(ui.spaceLine,""));e;){let c;if((s=(a=this.options.extensions)==null?void 0:a.block)!=null&&s.some(h=>(c=h.call({lexer:this},e,n))?(e=e.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.space(e)){e=e.substring(c.raw.length);let h=n.at(-1);c.raw.length===1&&h!==void 0?h.raw+=`
230
+ `:n.push(c);continue}if(c=this.tokenizer.code(e)){e=e.substring(c.raw.length);let h=n.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
231
+ `)?"":`
232
+ `)+c.raw,h.text+=`
233
+ `+c.text,this.inlineQueue.at(-1).src=h.text):n.push(c);continue}if(c=this.tokenizer.fences(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.heading(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.hr(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.blockquote(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.list(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.html(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.def(e)){e=e.substring(c.raw.length);let h=n.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
234
+ `)?"":`
235
+ `)+c.raw,h.text+=`
236
+ `+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},n.push(c));continue}if(c=this.tokenizer.table(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.lheading(e)){e=e.substring(c.raw.length),n.push(c);continue}let f=e;if((o=this.options.extensions)!=null&&o.startBlock){let h=1/0,d=e.slice(1),g;this.options.extensions.startBlock.forEach(y=>{g=y.call({lexer:this},d),typeof g=="number"&&g>=0&&(h=Math.min(h,g))}),h<1/0&&h>=0&&(f=e.substring(0,h+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let h=n.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
237
+ `)?"":`
238
+ `)+c.raw,h.text+=`
239
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):n.push(c),i=f.length!==e.length,e=e.substring(c.raw.length);continue}if(c=this.tokenizer.text(e)){e=e.substring(c.raw.length);let h=n.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
240
+ `)?"":`
241
+ `)+c.raw,h.text+=`
242
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):n.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,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){var f,h,d,g,y;let i=e,a=null;if(this.tokens.links){let m=Object.keys(this.tokens.links);if(m.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)m.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=a[2]?a[2].length:0,i=i.slice(0,a.index+s)+"["+"a".repeat(a[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((h=(f=this.options.hooks)==null?void 0:f.emStrongMask)==null?void 0:h.call({lexer:this},i))??i;let o=!1,c="";for(;e;){o||(c=""),o=!1;let m;if((g=(d=this.options.extensions)==null?void 0:d.inline)!=null&&g.some(v=>(m=v.call({lexer:this},e,n))?(e=e.substring(m.raw.length),n.push(m),!0):!1))continue;if(m=this.tokenizer.escape(e)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.tag(e)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.link(e)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(m.raw.length);let v=n.at(-1);m.type==="text"&&(v==null?void 0:v.type)==="text"?(v.raw+=m.raw,v.text+=m.text):n.push(m);continue}if(m=this.tokenizer.emStrong(e,i,c)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.codespan(e)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.br(e)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.del(e)){e=e.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.autolink(e)){e=e.substring(m.raw.length),n.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(e))){e=e.substring(m.raw.length),n.push(m);continue}let _=e;if((y=this.options.extensions)!=null&&y.startInline){let v=1/0,C=e.slice(1),S;this.options.extensions.startInline.forEach(T=>{S=T.call({lexer:this},C),typeof S=="number"&&S>=0&&(v=Math.min(v,S))}),v<1/0&&v>=0&&(_=e.substring(0,v+1))}if(m=this.tokenizer.inlineText(_)){e=e.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(c=m.raw.slice(-1)),o=!0;let v=n.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=m.raw,v.text+=m.text):n.push(m);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 n}},Zf=class{constructor(e){Ue(this,"options");Ue(this,"parser");this.options=e||Vl}space(e){return""}code({text:e,lang:n,escaped:i}){var o;let a=(o=(n||"").match(ui.notSpaceStart))==null?void 0:o[0],s=e.replace(ui.endingNewline,"")+`
243
+ `;return a?'<pre><code class="language-'+Mr(a)+'">'+(i?s:Mr(s,!0))+`</code></pre>
244
+ `:"<pre><code>"+(i?s:Mr(s,!0))+`</code></pre>
245
+ `}blockquote({tokens:e}){return`<blockquote>
246
+ ${this.parser.parse(e)}</blockquote>
247
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
248
+ `}hr(e){return`<hr>
249
+ `}list(e){let n=e.ordered,i=e.start,a="";for(let c=0;c<e.items.length;c++){let f=e.items[c];a+=this.listitem(f)}let s=n?"ol":"ul",o=n&&i!==1?' start="'+i+'"':"";return"<"+s+o+`>
250
+ `+a+"</"+s+`>
251
+ `}listitem(e){var i;let n="";if(e.task){let a=this.checkbox({checked:!!e.checked});e.loose?((i=e.tokens[0])==null?void 0:i.type)==="paragraph"?(e.tokens[0].text=a+" "+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=a+" "+Mr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):n+=a+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>
252
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
253
+ `}table(e){let n="",i="";for(let s=0;s<e.header.length;s++)i+=this.tablecell(e.header[s]);n+=this.tablerow({text:i});let a="";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]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
254
+ <thead>
255
+ `+n+`</thead>
256
+ `+a+`</table>
257
+ `}tablerow({text:e}){return`<tr>
258
+ ${e}</tr>
259
+ `}tablecell(e){let n=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+n+`</${i}>
260
+ `}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>${Mr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:i}){let a=this.parser.parseInline(i),s=gw(e);if(s===null)return a;e=s;let o='<a href="'+e+'"';return n&&(o+=' title="'+Mr(n)+'"'),o+=">"+a+"</a>",o}image({href:e,title:n,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let s=gw(e);if(s===null)return Mr(i);e=s;let o=`<img src="${e}" alt="${i}"`;return n&&(o+=` title="${Mr(n)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Mr(e.text)}},a0=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""}},pr=class Ay{constructor(e){Ue(this,"options");Ue(this,"renderer");Ue(this,"textRenderer");this.options=e||Vl,this.options.renderer=this.options.renderer||new Zf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new a0}static parse(e,n){return new Ay(n).parse(e)}static parseInline(e,n){return new Ay(n).parseInline(e)}parse(e,n=!0){var a,s;let i="";for(let o=0;o<e.length;o++){let c=e[o];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[c.type]){let h=c,d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){i+=d||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let h=f,d=this.renderer.text(h);for(;o+1<e.length&&e[o+1].type==="text";)h=e[++o],d+=`
261
+ `+this.renderer.text(h);n?i+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):i+=d;continue}default:{let h='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(e,n=this.renderer){var a,s;let i="";for(let o=0;o<e.length;o++){let c=e[o];if((s=(a=this.options.extensions)==null?void 0:a.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 f=c;switch(f.type){case"escape":{i+=n.text(f);break}case"html":{i+=n.html(f);break}case"link":{i+=n.link(f);break}case"image":{i+=n.image(f);break}case"strong":{i+=n.strong(f);break}case"em":{i+=n.em(f);break}case"codespan":{i+=n.codespan(f);break}case"br":{i+=n.br(f);break}case"del":{i+=n.del(f);break}case"text":{i+=n.text(f);break}default:{let h='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},Jh,Lc=(Jh=class{constructor(e){Ue(this,"options");Ue(this,"block");this.options=e||Vl}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?dr.lex:dr.lexInline}provideParser(){return this.block?pr.parse:pr.parseInline}},Ue(Jh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ue(Jh,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Jh),Bj=class{constructor(...e){Ue(this,"defaults",Zb());Ue(this,"options",this.setOptions);Ue(this,"parse",this.parseMarkdown(!0));Ue(this,"parseInline",this.parseMarkdown(!1));Ue(this,"Parser",pr);Ue(this,"Renderer",Zf);Ue(this,"TextRenderer",a0);Ue(this,"Lexer",dr);Ue(this,"Tokenizer",Kf);Ue(this,"Hooks",Lc);this.use(...e)}walkTokens(e,n){var a,s;let i=[];for(let o of e)switch(i=i.concat(n.call(this,o)),o.type){case"table":{let c=o;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,n));for(let f of c.rows)for(let h of f)i=i.concat(this.walkTokens(h.tokens,n));break}case"list":{let c=o;i=i.concat(this.walkTokens(c.items,n));break}default:{let c=o;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let h=c[f].flat(1/0);i=i.concat(this.walkTokens(h,n))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,n)))}}return i}use(...e){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=n.renderers[s.name];o?n.renderers[s.name]=function(...c){let f=s.renderer.apply(this,c);return f===!1&&(f=o.apply(this,c)),f}:n.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=n[s.level];o?o.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),a.extensions=n),i.renderer){let s=this.defaults.renderer||new Zf(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,f=i.renderer[c],h=s[c];s[c]=(...d)=>{let g=f.apply(s,d);return g===!1&&(g=h.apply(s,d)),g||""}}a.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new Kf(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,f=i.tokenizer[c],h=s[c];s[c]=(...d)=>{let g=f.apply(s,d);return g===!1&&(g=h.apply(s,d)),g}}a.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new Lc;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,f=i.hooks[c],h=s[c];Lc.passThroughHooks.has(o)?s[c]=d=>{if(this.defaults.async&&Lc.passThroughHooksRespectAsync.has(o))return(async()=>{let y=await f.call(s,d);return h.call(s,y)})();let g=f.call(s,d);return h.call(s,g)}:s[c]=(...d)=>{if(this.defaults.async)return(async()=>{let y=await f.apply(s,d);return y===!1&&(y=await h.apply(s,d)),y})();let g=f.apply(s,d);return g===!1&&(g=h.apply(s,d)),g}}a.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,o=i.walkTokens;a.walkTokens=function(c){let f=[];return f.push(o.call(this,c)),s&&(f=f.concat(s.call(this,c))),f}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return dr.lex(e,n??this.defaults)}parser(e,n){return pr.parse(e,n??this.defaults)}parseMarkdown(e){return(n,i)=>{let a={...i},s={...this.defaults,...a},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.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 n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", 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(n):n,f=await(s.hooks?await s.hooks.provideLexer():e?dr.lex:dr.lexInline)(c,s),h=s.hooks?await s.hooks.processAllTokens(f):f;s.walkTokens&&await Promise.all(this.walkTokens(h,s.walkTokens));let d=await(s.hooks?await s.hooks.provideParser():e?pr.parse:pr.parseInline)(h,s);return s.hooks?await s.hooks.postprocess(d):d})().catch(o);try{s.hooks&&(n=s.hooks.preprocess(n));let c=(s.hooks?s.hooks.provideLexer():e?dr.lex:dr.lexInline)(n,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let f=(s.hooks?s.hooks.provideParser():e?pr.parse:pr.parseInline)(c,s);return s.hooks&&(f=s.hooks.postprocess(f)),f}catch(c){return o(c)}}}onError(e,n){return i=>{if(i.message+=`
262
+ Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+Mr(i.message+"",!0)+"</pre>";return n?Promise.resolve(a):a}if(n)return Promise.reject(i);throw i}}},Ul=new Bj;function Le(t,e){return Ul.parse(t,e)}Le.options=Le.setOptions=function(t){return Ul.setOptions(t),Le.defaults=Ul.defaults,HT(Le.defaults),Le};Le.getDefaults=Zb;Le.defaults=Vl;Le.use=function(...t){return Ul.use(...t),Le.defaults=Ul.defaults,HT(Le.defaults),Le};Le.walkTokens=function(t,e){return Ul.walkTokens(t,e)};Le.parseInline=Ul.parseInline;Le.Parser=pr;Le.parser=pr.parse;Le.Renderer=Zf;Le.TextRenderer=a0;Le.Lexer=dr;Le.lexer=dr.lex;Le.Tokenizer=Kf;Le.Hooks=Lc;Le.parse=Le;Le.options;Le.setOptions;Le.use;Le.walkTokens;Le.parseInline;pr.parse;dr.lex;function JT(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var a=i.reduce(function(c,f){var h=f.match(/\n([\t ]+|(?!\s).)/g);return h?c.concat(h.map(function(d){var g,y;return(y=(g=d.match(/[\t ]/g))===null||g===void 0?void 0:g.length)!==null&&y!==void 0?y:0})):c},[]);if(a.length){var s=new RegExp(`
263
+ [ ]{`+Math.min.apply(Math,a)+"}","g");i=i.map(function(c){return c.replace(s,`
264
+ `)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return e.forEach(function(c,f){var h=o.match(/(?:^|\n)( *)$/),d=h?h[1]:"",g=c;typeof c=="string"&&c.includes(`
265
+ `)&&(g=String(c).split(`
266
+ `).map(function(y,m){return m===0?y:""+d+y}).join(`
267
+ `)),o+=g+i[f+1]}),o}var Ij={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},My=new Map,tA=new Map,zj=w(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(ht.debug("Registering icon pack:",e.name),"loader"in e)tA.set(e.name,e.loader);else if("icons"in e)My.set(e.name,e.icons);else throw ht.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),eA=w(async(t,e)=>{const n=F7(t,!0,e!==void 0);if(!n)throw new Error(`Invalid icon name: ${t}`);const i=n.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let a=My.get(i);if(!a){const o=tA.get(i);if(!o)throw new Error(`Icon set not found: ${n.prefix}`);try{a={...await o(),prefix:i},My.set(i,a)}catch(c){throw ht.error(c),new Error(`Failed to load icon set: ${n.prefix}`)}}const s=P7(a,n.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),Fj=w(async t=>{try{return await eA(t),!0}catch{return!1}},"isIconAvailable"),bu=w(async(t,e,n)=>{let i;try{i=await eA(t,e==null?void 0:e.fallbackPrefix)}catch(o){ht.error(o),i=Ij}const a=V7(i,e),s=Q7(Z7(a.body),{...a.attributes,...n});return ar(s,Zn())},"getIconSVG");function nA(t,{markdownAutoWrap:e}){const i=t.replace(/<br\/>/g,`
268
+ `).replace(/\n{2,}/g,`
269
+ `),a=JT(i);return e===!1?a.replace(/ /g,"&nbsp;"):a}w(nA,"preprocessMarkdown");function iA(t,e={}){const n=nA(t,e),i=Le.lexer(n),a=[[]];let s=0;function o(c,f="normal"){c.type==="text"?c.text.split(`
270
+ `).forEach((d,g)=>{g!==0&&(s++,a.push([])),d.split(" ").forEach(y=>{y=y.replace(/&#39;/g,"'"),y&&a[s].push({content:y,type:f})})}):c.type==="strong"||c.type==="em"?c.tokens.forEach(h=>{o(h,c.type)}):c.type==="html"&&a[s].push({content:c.text,type:"normal"})}return w(o,"processNode"),i.forEach(c=>{var f;c.type==="paragraph"?(f=c.tokens)==null||f.forEach(h=>{o(h)}):c.type==="html"?a[s].push({content:c.text,type:"normal"}):a[s].push({content:c.raw,type:"normal"})}),a}w(iA,"markdownToLines");function rA(t,{markdownAutoWrap:e}={}){const n=Le.lexer(t);function i(a){var s,o,c;return a.type==="text"?e===!1?a.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):a.text.replace(/\n */g,"<br/>"):a.type==="strong"?`<strong>${(s=a.tokens)==null?void 0:s.map(i).join("")}</strong>`:a.type==="em"?`<em>${(o=a.tokens)==null?void 0:o.map(i).join("")}</em>`:a.type==="paragraph"?`<p>${(c=a.tokens)==null?void 0:c.map(i).join("")}</p>`:a.type==="space"?"":a.type==="html"?`${a.text}`:a.type==="escape"?a.text:(ht.warn(`Unsupported markdown: ${a.type}`),a.raw)}return w(i,"output"),n.map(i).join("")}w(rA,"markdownToHTML");function aA(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}w(aA,"splitTextToChars");function lA(t,e){const n=aA(e.content);return l0(t,[],n,e.type)}w(lA,"splitWordToFitWidth");function l0(t,e,n,i){if(n.length===0)return[{content:e.join(""),type:i},{content:"",type:i}];const[a,...s]=n,o=[...e,a];return t([{content:o.join(""),type:i}])?l0(t,o,s,i):(e.length===0&&a&&(e.push(a),n.shift()),[{content:e.join(""),type:i},{content:n.join(""),type:i}])}w(l0,"splitWordToFitWidthRecursion");function sA(t,e){if(t.some(({content:n})=>n.includes(`
271
+ `)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Qf(t,e)}w(sA,"splitLineToFitWidth");function Qf(t,e,n=[],i=[]){if(t.length===0)return i.length>0&&n.push(i),n.length>0?n:[];let a="";t[0].content===" "&&(a=" ",t.shift());const s=t.shift()??{content:" ",type:"normal"},o=[...i];if(a!==""&&o.push({content:a,type:"normal"}),o.push(s),e(o))return Qf(t,e,n,o);if(i.length>0)n.push(i),t.unshift(s);else if(s.content){const[c,f]=lA(e,s);n.push([c]),f.content&&t.unshift(f)}return Qf(t,e,n)}w(Qf,"splitLineToFitWidthRecursion");function Ny(t,e){e&&t.attr("style",e)}w(Ny,"applyStyle");async function oA(t,e,n,i,a=!1,s=Zn()){const o=t.append("foreignObject");o.attr("width",`${10*n}px`),o.attr("height",`${10*n}px`);const c=o.append("xhtml:div"),f=eo(e.label)?await gb(e.label.replace(uo.lineBreakRegex,`
272
+ `),s):ar(e.label,s),h=e.isNode?"nodeLabel":"edgeLabel",d=c.append("span");d.html(f),Ny(d,e.labelStyle),d.attr("class",`${h} ${i}`),Ny(c,e.labelStyle),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("line-height","1.5"),c.style("max-width",n+"px"),c.style("text-align","center"),c.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&c.attr("class","labelBkg");let g=c.node().getBoundingClientRect();return g.width===n&&(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",n+"px"),g=c.node().getBoundingClientRect()),o.node()}w(oA,"addHtmlSpan");function Nd(t,e,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}w(Nd,"createTspan");function cA(t,e,n){const i=t.append("text"),a=Nd(i,1,e);Od(a,n);const s=a.node().getComputedTextLength();return i.remove(),s}w(cA,"computeWidthOfText");function $j(t,e,n){var o;const i=t.append("text"),a=Nd(i,1,e);Od(a,[{content:n,type:"normal"}]);const s=(o=a.node())==null?void 0:o.getBoundingClientRect();return s&&i.remove(),s}w($j,"computeDimensionOfText");function uA(t,e,n,i=!1){const s=e.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),c=s.append("text").attr("y","-10.1");let f=0;for(const h of n){const d=w(y=>cA(s,1.1,y)<=t,"checkWidth"),g=d(h)?[h]:sA(h,d);for(const y of g){const m=Nd(c,f,1.1);Od(m,y),f++}}if(i){const h=c.node().getBBox(),d=2;return o.attr("x",h.x-d).attr("y",h.y-d).attr("width",h.width+2*d).attr("height",h.height+2*d),s.node()}else return c.node()}w(uA,"createFormattedText");function Od(t,e){t.text(""),e.forEach((n,i)=>{const a=t.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");i===0?a.text(n.content):a.text(" "+n.content)})}w(Od,"updateTextContentAndStyles");async function hA(t,e={}){const n=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(a,s,o)=>(n.push((async()=>{const c=`${s}:${o}`;return await Fj(c)?await bu(c,void 0,{class:"label-icon"}):`<i class='${ar(a,e).replace(":"," ")}'></i>`})()),a));const i=await Promise.all(n);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}w(hA,"replaceIconSubstring");var el=w(async(t,e="",{style:n="",isTitle:i=!1,classes:a="",useHtmlLabels:s=!0,isNode:o=!0,width:c=200,addSvgBackground:f=!1}={},h)=>{if(ht.debug("XYZ createText",e,n,i,a,s,o,"addSvgBackground: ",f),s){const d=rA(e,h),g=await hA(Wl(d),h),y=e.replace(/\\\\/g,"\\"),m={isNode:o,label:eo(e)?y:g,labelStyle:n.replace("fill:","color:")};return await oA(t,m,c,a,f,h)}else{const d=e.replace(/<br\s*\/?>/g,"<br/>"),g=iA(d.replace("<br>","<br/>"),h),y=uA(c,t,g,e?f:!1);if(o){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Se(y).attr("style",m)}else{const m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Se(y).select("rect").attr("style",m.replace(/background:/g,"fill:"));const _=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Se(y).select("text").attr("style",_)}return y}},"createText");function km(t,e,n){if(t&&t.length){const[i,a]=e,s=Math.PI/180*n,o=Math.cos(s),c=Math.sin(s);for(const f of t){const[h,d]=f;f[0]=(h-i)*o-(d-a)*c+i,f[1]=(h-i)*c+(d-a)*o+a}}}function Uj(t,e){return t[0]===e[0]&&t[1]===e[1]}function Pj(t,e,n,i=1){const a=n,s=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,c=[0,0];if(a)for(const h of o)km(h,c,a);const f=(function(h,d,g){const y=[];for(const T of h){const A=[...T];Uj(A[0],A[A.length-1])||A.push([A[0][0],A[0][1]]),A.length>2&&y.push(A)}const m=[];d=Math.max(d,.1);const _=[];for(const T of y)for(let A=0;A<T.length-1;A++){const B=T[A],N=T[A+1];if(B[1]!==N[1]){const E=Math.min(B[1],N[1]);_.push({ymin:E,ymax:Math.max(B[1],N[1]),x:E===B[1]?B[0]:N[0],islope:(N[0]-B[0])/(N[1]-B[1])})}}if(_.sort(((T,A)=>T.ymin<A.ymin?-1:T.ymin>A.ymin?1:T.x<A.x?-1:T.x>A.x?1:T.ymax===A.ymax?0:(T.ymax-A.ymax)/Math.abs(T.ymax-A.ymax))),!_.length)return m;let v=[],C=_[0].ymin,S=0;for(;v.length||_.length;){if(_.length){let T=-1;for(let A=0;A<_.length&&!(_[A].ymin>C);A++)T=A;_.splice(0,T+1).forEach((A=>{v.push({s:C,edge:A})}))}if(v=v.filter((T=>!(T.edge.ymax<=C))),v.sort(((T,A)=>T.edge.x===A.edge.x?0:(T.edge.x-A.edge.x)/Math.abs(T.edge.x-A.edge.x))),(g!==1||S%d==0)&&v.length>1)for(let T=0;T<v.length;T+=2){const A=T+1;if(A>=v.length)break;const B=v[T].edge,N=v[A].edge;m.push([[Math.round(B.x),C],[Math.round(N.x),C]])}C+=g,v.forEach((T=>{T.edge.x=T.edge.x+g*T.edge.islope})),S++}return m})(o,s,i);if(a){for(const h of o)km(h,c,-a);(function(h,d,g){const y=[];h.forEach((m=>y.push(...m))),km(y,d,g)})(f,c,-a)}return f}function xu(t,e){var n;const i=e.hachureAngle+90;let a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let s=1;return e.roughness>=1&&(((n=e.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(s=a),Pj(t,a,i,s||1)}class s0{constructor(e){this.helper=e}fillPolygons(e,n){return this._fillPolygons(e,n)}_fillPolygons(e,n){const i=xu(e,n);return{type:"fillSketch",ops:this.renderLines(i,n)}}renderLines(e,n){const i=[];for(const a of e)i.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],n));return i}}function Ld(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class Hj extends s0{fillPolygons(e,n){let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);const a=xu(e,Object.assign({},n,{hachureGap:i})),s=Math.PI/180*n.hachureAngle,o=[],c=.5*i*Math.cos(s),f=.5*i*Math.sin(s);for(const[h,d]of a)Ld([h,d])&&o.push([[h[0]-c,h[1]+f],[...d]],[[h[0]+c,h[1]-f],[...d]]);return{type:"fillSketch",ops:this.renderLines(o,n)}}}class qj extends s0{fillPolygons(e,n){const i=this._fillPolygons(e,n),a=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),s=this._fillPolygons(e,a);return i.ops=i.ops.concat(s.ops),i}}class jj{constructor(e){this.helper=e}fillPolygons(e,n){const i=xu(e,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(i,n)}dotsOnLines(e,n){const i=[];let a=n.hachureGap;a<0&&(a=4*n.strokeWidth),a=Math.max(a,.1);let s=n.fillWeight;s<0&&(s=n.strokeWidth/2);const o=a/4;for(const c of e){const f=Ld(c),h=f/a,d=Math.ceil(h)-1,g=f-d*a,y=(c[0][0]+c[1][0])/2-a/4,m=Math.min(c[0][1],c[1][1]);for(let _=0;_<d;_++){const v=m+g+_*a,C=y-o+2*Math.random()*o,S=v-o+2*Math.random()*o,T=this.helper.ellipse(C,S,s,s,n);i.push(...T.ops)}}return{type:"fillSketch",ops:i}}}class Gj{constructor(e){this.helper=e}fillPolygons(e,n){const i=xu(e,n);return{type:"fillSketch",ops:this.dashedLine(i,n)}}dashedLine(e,n){const i=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,a=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,s=[];return e.forEach((o=>{const c=Ld(o),f=Math.floor(c/(i+a)),h=(c+a-f*(i+a))/2;let d=o[0],g=o[1];d[0]>g[0]&&(d=o[1],g=o[0]);const y=Math.atan((g[1]-d[1])/(g[0]-d[0]));for(let m=0;m<f;m++){const _=m*(i+a),v=_+i,C=[d[0]+_*Math.cos(y)+h*Math.cos(y),d[1]+_*Math.sin(y)+h*Math.sin(y)],S=[d[0]+v*Math.cos(y)+h*Math.cos(y),d[1]+v*Math.sin(y)+h*Math.sin(y)];s.push(...this.helper.doubleLineOps(C[0],C[1],S[0],S[1],n))}})),s}}class Yj{constructor(e){this.helper=e}fillPolygons(e,n){const i=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,a=n.zigzagOffset<0?i:n.zigzagOffset,s=xu(e,n=Object.assign({},n,{hachureGap:i+a}));return{type:"fillSketch",ops:this.zigzagLines(s,a,n)}}zigzagLines(e,n,i){const a=[];return e.forEach((s=>{const o=Ld(s),c=Math.round(o/(2*n));let f=s[0],h=s[1];f[0]>h[0]&&(f=s[1],h=s[0]);const d=Math.atan((h[1]-f[1])/(h[0]-f[0]));for(let g=0;g<c;g++){const y=2*g*n,m=2*(g+1)*n,_=Math.sqrt(2*Math.pow(n,2)),v=[f[0]+y*Math.cos(d),f[1]+y*Math.sin(d)],C=[f[0]+m*Math.cos(d),f[1]+m*Math.sin(d)],S=[v[0]+_*Math.cos(d+Math.PI/4),v[1]+_*Math.sin(d+Math.PI/4)];a.push(...this.helper.doubleLineOps(v[0],v[1],S[0],S[1],i),...this.helper.doubleLineOps(S[0],S[1],C[0],C[1],i))}})),a}}const ki={};class Wj{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Vj=0,Em=1,bw=2,Vh={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 Tm(t,e){return t.type===e}function o0(t){const e=[],n=(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:Vj,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:Em,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return c[c.length]={type:bw,text:""},c})(t);let i="BOD",a=0,s=n[a];for(;!Tm(s,bw);){let o=0;const c=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return o0("M0,0"+t);a++,o=Vh[s.text],i=s.text}else Tm(s,Em)?o=Vh[i]:(a++,o=Vh[s.text],i=s.text);if(!(a+o<n.length))throw new Error("Path data ended short");for(let f=a;f<a+o;f++){const h=n[f];if(!Tm(h,Em))throw new Error("Param not a number: "+i+","+h.text);c[c.length]=+h.text}if(typeof Vh[i]!="number")throw new Error("Bad segment: "+i);{const f={key:i,data:c};e.push(f),a+=o,s=n[a],i==="M"&&(i="L"),i==="m"&&(i="l")}}return e}function fA(t){let e=0,n=0,i=0,a=0;const s=[];for(const{key:o,data:c}of t)switch(o){case"M":s.push({key:"M",data:[...c]}),[e,n]=c,[i,a]=c;break;case"m":e+=c[0],n+=c[1],s.push({key:"M",data:[e,n]}),i=e,a=n;break;case"L":s.push({key:"L",data:[...c]}),[e,n]=c;break;case"l":e+=c[0],n+=c[1],s.push({key:"L",data:[e,n]});break;case"C":s.push({key:"C",data:[...c]}),e=c[4],n=c[5];break;case"c":{const f=c.map(((h,d)=>d%2?h+n:h+e));s.push({key:"C",data:f}),e=f[4],n=f[5];break}case"Q":s.push({key:"Q",data:[...c]}),e=c[2],n=c[3];break;case"q":{const f=c.map(((h,d)=>d%2?h+n:h+e));s.push({key:"Q",data:f}),e=f[2],n=f[3];break}case"A":s.push({key:"A",data:[...c]}),e=c[5],n=c[6];break;case"a":e+=c[5],n+=c[6],s.push({key:"A",data:[c[0],c[1],c[2],c[3],c[4],e,n]});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]}),n=c[0];break;case"v":n+=c[0],s.push({key:"V",data:[n]});break;case"S":s.push({key:"S",data:[...c]}),e=c[2],n=c[3];break;case"s":{const f=c.map(((h,d)=>d%2?h+n:h+e));s.push({key:"S",data:f}),e=f[2],n=f[3];break}case"T":s.push({key:"T",data:[...c]}),e=c[0],n=c[1];break;case"t":e+=c[0],n+=c[1],s.push({key:"T",data:[e,n]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=i,n=a}return s}function dA(t){const e=[];let n="",i=0,a=0,s=0,o=0,c=0,f=0;for(const{key:h,data:d}of t){switch(h){case"M":e.push({key:"M",data:[...d]}),[i,a]=d,[s,o]=d;break;case"C":e.push({key:"C",data:[...d]}),i=d[4],a=d[5],c=d[2],f=d[3];break;case"L":e.push({key:"L",data:[...d]}),[i,a]=d;break;case"H":i=d[0],e.push({key:"L",data:[i,a]});break;case"V":a=d[0],e.push({key:"L",data:[i,a]});break;case"S":{let g=0,y=0;n==="C"||n==="S"?(g=i+(i-c),y=a+(a-f)):(g=i,y=a),e.push({key:"C",data:[g,y,...d]}),c=d[0],f=d[1],i=d[2],a=d[3];break}case"T":{const[g,y]=d;let m=0,_=0;n==="Q"||n==="T"?(m=i+(i-c),_=a+(a-f)):(m=i,_=a);const v=i+2*(m-i)/3,C=a+2*(_-a)/3,S=g+2*(m-g)/3,T=y+2*(_-y)/3;e.push({key:"C",data:[v,C,S,T,g,y]}),c=m,f=_,i=g,a=y;break}case"Q":{const[g,y,m,_]=d,v=i+2*(g-i)/3,C=a+2*(y-a)/3,S=m+2*(g-m)/3,T=_+2*(y-_)/3;e.push({key:"C",data:[v,C,S,T,m,_]}),c=g,f=y,i=m,a=_;break}case"A":{const g=Math.abs(d[0]),y=Math.abs(d[1]),m=d[2],_=d[3],v=d[4],C=d[5],S=d[6];g===0||y===0?(e.push({key:"C",data:[i,a,C,S,C,S]}),i=C,a=S):(i!==C||a!==S)&&(pA(i,a,C,S,g,y,m,_,v).forEach((function(T){e.push({key:"C",data:T})})),i=C,a=S);break}case"Z":e.push({key:"Z",data:[]}),i=s,a=o}n=h}return e}function kc(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function pA(t,e,n,i,a,s,o,c,f,h){const d=(g=o,Math.PI*g/180);var g;let y=[],m=0,_=0,v=0,C=0;if(h)[m,_,v,C]=h;else{[t,e]=kc(t,e,-d),[n,i]=kc(n,i,-d);const it=(t-n)/2,H=(e-i)/2;let F=it*it/(a*a)+H*H/(s*s);F>1&&(F=Math.sqrt(F),a*=F,s*=F);const L=a*a,U=s*s,$=L*U-L*H*H-U*it*it,lt=L*H*H+U*it*it,D=(c===f?-1:1)*Math.sqrt(Math.abs($/lt));v=D*a*H/s+(t+n)/2,C=D*-s*it/a+(e+i)/2,m=Math.asin(parseFloat(((e-C)/s).toFixed(9))),_=Math.asin(parseFloat(((i-C)/s).toFixed(9))),t<v&&(m=Math.PI-m),n<v&&(_=Math.PI-_),m<0&&(m=2*Math.PI+m),_<0&&(_=2*Math.PI+_),f&&m>_&&(m-=2*Math.PI),!f&&_>m&&(_-=2*Math.PI)}let S=_-m;if(Math.abs(S)>120*Math.PI/180){const it=_,H=n,F=i;_=f&&_>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,y=pA(n=v+a*Math.cos(_),i=C+s*Math.sin(_),H,F,a,s,o,0,f,[_,it,v,C])}S=_-m;const T=Math.cos(m),A=Math.sin(m),B=Math.cos(_),N=Math.sin(_),E=Math.tan(S/4),R=4/3*a*E,G=4/3*s*E,Z=[t,e],z=[t+R*A,e-G*T],j=[n+R*N,i-G*B],tt=[n,i];if(z[0]=2*Z[0]-z[0],z[1]=2*Z[1]-z[1],h)return[z,j,tt].concat(y);{y=[z,j,tt].concat(y);const it=[];for(let H=0;H<y.length;H+=3){const F=kc(y[H][0],y[H][1],d),L=kc(y[H+1][0],y[H+1][1],d),U=kc(y[H+2][0],y[H+2][1],d);it.push([F[0],F[1],L[0],L[1],U[0],U[1]])}return it}}const Xj={randOffset:function(t,e){return Zt(t,e)},randOffsetWithRange:function(t,e,n){return Jf(t,e,n)},ellipse:function(t,e,n,i,a){const s=mA(n,i,a);return Oy(t,e,a,s).opset},doubleLineOps:function(t,e,n,i,a){return Za(t,e,n,i,a,!0)}};function gA(t,e,n,i,a){return{type:"path",ops:Za(t,e,n,i,a)}}function ff(t,e,n){const i=(t||[]).length;if(i>2){const a=[];for(let s=0;s<i-1;s++)a.push(...Za(t[s][0],t[s][1],t[s+1][0],t[s+1][1],n));return e&&a.push(...Za(t[i-1][0],t[i-1][1],t[0][0],t[0][1],n)),{type:"path",ops:a}}return i===2?gA(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function Kj(t,e,n,i,a){return(function(s,o){return ff(s,!0,o)})([[t,e],[t+n,e],[t+n,e+i],[t,e+i]],a)}function xw(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,i=Xh(n[0],1*(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:Xh(n[0],1.5*(1+.22*e.roughness),Sw(e));for(let s=1;s<n.length;s++){const o=n[s];if(o.length){const c=Xh(o,1*(1+.2*e.roughness),e),f=e.disableMultiStroke?[]:Xh(o,1.5*(1+.22*e.roughness),Sw(e));for(const h of c)h.op!=="move"&&i.push(h);for(const h of f)h.op!=="move"&&a.push(h)}}return{type:"path",ops:i.concat(a)}}return{type:"path",ops:[]}}function mA(t,e,n){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),a=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*i)),s=2*Math.PI/a;let o=Math.abs(t/2),c=Math.abs(e/2);const f=1-n.curveFitting;return o+=Zt(o*f,n),c+=Zt(c*f,n),{increment:s,rx:o,ry:c}}function Oy(t,e,n,i){const[a,s]=ww(i.increment,t,e,i.rx,i.ry,1,i.increment*Jf(.1,Jf(.4,1,n),n),n);let o=td(a,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[c]=ww(i.increment,t,e,i.rx,i.ry,1.5,0,n),f=td(c,null,n);o=o.concat(f)}return{estimatedPoints:s,opset:{type:"path",ops:o}}}function _w(t,e,n,i,a,s,o,c,f){const h=t,d=e;let g=Math.abs(n/2),y=Math.abs(i/2);g+=Zt(.01*g,f),y+=Zt(.01*y,f);let m=a,_=s;for(;m<0;)m+=2*Math.PI,_+=2*Math.PI;_-m>2*Math.PI&&(m=0,_=2*Math.PI);const v=2*Math.PI/f.curveStepCount,C=Math.min(v/2,(_-m)/2),S=Cw(C,h,d,g,y,m,_,1,f);if(!f.disableMultiStroke){const T=Cw(C,h,d,g,y,m,_,1.5,f);S.push(...T)}return o&&(c?S.push(...Za(h,d,h+g*Math.cos(m),d+y*Math.sin(m),f),...Za(h,d,h+g*Math.cos(_),d+y*Math.sin(_),f)):S.push({op:"lineTo",data:[h,d]},{op:"lineTo",data:[h+g*Math.cos(m),d+y*Math.sin(m)]})),{type:"path",ops:S}}function vw(t,e){const n=dA(fA(o0(t))),i=[];let a=[0,0],s=[0,0];for(const{key:o,data:c}of n)switch(o){case"M":s=[c[0],c[1]],a=[c[0],c[1]];break;case"L":i.push(...Za(s[0],s[1],c[0],c[1],e)),s=[c[0],c[1]];break;case"C":{const[f,h,d,g,y,m]=c;i.push(...Zj(f,h,d,g,y,m,s,e)),s=[y,m];break}case"Z":i.push(...Za(s[0],s[1],a[0],a[1],e)),s=[a[0],a[1]]}return{type:"path",ops:i}}function Am(t,e){const n=[];for(const i of t)if(i.length){const a=e.maxRandomnessOffset||0,s=i.length;if(s>2){n.push({op:"move",data:[i[0][0]+Zt(a,e),i[0][1]+Zt(a,e)]});for(let o=1;o<s;o++)n.push({op:"lineTo",data:[i[o][0]+Zt(a,e),i[o][1]+Zt(a,e)]})}}return{type:"fillPath",ops:n}}function Rs(t,e){return(function(n,i){let a=n.fillStyle||"hachure";if(!ki[a])switch(a){case"zigzag":ki[a]||(ki[a]=new Hj(i));break;case"cross-hatch":ki[a]||(ki[a]=new qj(i));break;case"dots":ki[a]||(ki[a]=new jj(i));break;case"dashed":ki[a]||(ki[a]=new Gj(i));break;case"zigzag-line":ki[a]||(ki[a]=new Yj(i));break;default:a="hachure",ki[a]||(ki[a]=new s0(i))}return ki[a]})(e,Xj).fillPolygons(t,e)}function Sw(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function yA(t){return t.randomizer||(t.randomizer=new Wj(t.seed||0)),t.randomizer.next()}function Jf(t,e,n,i=1){return n.roughness*i*(yA(n)*(e-t)+t)}function Zt(t,e,n=1){return Jf(-t,t,e,n)}function Za(t,e,n,i,a,s=!1){const o=s?a.disableMultiStrokeFill:a.disableMultiStroke,c=Ly(t,e,n,i,a,!0,!1);if(o)return c;const f=Ly(t,e,n,i,a,!0,!0);return c.concat(f)}function Ly(t,e,n,i,a,s,o){const c=Math.pow(t-n,2)+Math.pow(e-i,2),f=Math.sqrt(c);let h=1;h=f<200?1:f>500?.4:-.0016668*f+1.233334;let d=a.maxRandomnessOffset||0;d*d*100>c&&(d=f/10);const g=d/2,y=.2+.2*yA(a);let m=a.bowing*a.maxRandomnessOffset*(i-e)/200,_=a.bowing*a.maxRandomnessOffset*(t-n)/200;m=Zt(m,a,h),_=Zt(_,a,h);const v=[],C=()=>Zt(g,a,h),S=()=>Zt(d,a,h),T=a.preserveVertices;return o?v.push({op:"move",data:[t+(T?0:C()),e+(T?0:C())]}):v.push({op:"move",data:[t+(T?0:Zt(d,a,h)),e+(T?0:Zt(d,a,h))]}),o?v.push({op:"bcurveTo",data:[m+t+(n-t)*y+C(),_+e+(i-e)*y+C(),m+t+2*(n-t)*y+C(),_+e+2*(i-e)*y+C(),n+(T?0:C()),i+(T?0:C())]}):v.push({op:"bcurveTo",data:[m+t+(n-t)*y+S(),_+e+(i-e)*y+S(),m+t+2*(n-t)*y+S(),_+e+2*(i-e)*y+S(),n+(T?0:S()),i+(T?0:S())]}),v}function Xh(t,e,n){if(!t.length)return[];const i=[];i.push([t[0][0]+Zt(e,n),t[0][1]+Zt(e,n)]),i.push([t[0][0]+Zt(e,n),t[0][1]+Zt(e,n)]);for(let a=1;a<t.length;a++)i.push([t[a][0]+Zt(e,n),t[a][1]+Zt(e,n)]),a===t.length-1&&i.push([t[a][0]+Zt(e,n),t[a][1]+Zt(e,n)]);return td(i,null,n)}function td(t,e,n){const i=t.length,a=[];if(i>3){const s=[],o=1-n.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let c=1;c+2<i;c++){const f=t[c];s[0]=[f[0],f[1]],s[1]=[f[0]+(o*t[c+1][0]-o*t[c-1][0])/6,f[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]],a.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?(a.push({op:"move",data:[t[1][0],t[1][1]]}),a.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):i===2&&a.push(...Ly(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return a}function ww(t,e,n,i,a,s,o,c){const f=[],h=[];if(c.roughness===0){t/=4,h.push([e+i*Math.cos(-t),n+a*Math.sin(-t)]);for(let d=0;d<=2*Math.PI;d+=t){const g=[e+i*Math.cos(d),n+a*Math.sin(d)];f.push(g),h.push(g)}h.push([e+i*Math.cos(0),n+a*Math.sin(0)]),h.push([e+i*Math.cos(t),n+a*Math.sin(t)])}else{const d=Zt(.5,c)-Math.PI/2;h.push([Zt(s,c)+e+.9*i*Math.cos(d-t),Zt(s,c)+n+.9*a*Math.sin(d-t)]);const g=2*Math.PI+d-.01;for(let y=d;y<g;y+=t){const m=[Zt(s,c)+e+i*Math.cos(y),Zt(s,c)+n+a*Math.sin(y)];f.push(m),h.push(m)}h.push([Zt(s,c)+e+i*Math.cos(d+2*Math.PI+.5*o),Zt(s,c)+n+a*Math.sin(d+2*Math.PI+.5*o)]),h.push([Zt(s,c)+e+.98*i*Math.cos(d+o),Zt(s,c)+n+.98*a*Math.sin(d+o)]),h.push([Zt(s,c)+e+.9*i*Math.cos(d+.5*o),Zt(s,c)+n+.9*a*Math.sin(d+.5*o)])}return[h,f]}function Cw(t,e,n,i,a,s,o,c,f){const h=s+Zt(.1,f),d=[];d.push([Zt(c,f)+e+.9*i*Math.cos(h-t),Zt(c,f)+n+.9*a*Math.sin(h-t)]);for(let g=h;g<=o;g+=t)d.push([Zt(c,f)+e+i*Math.cos(g),Zt(c,f)+n+a*Math.sin(g)]);return d.push([e+i*Math.cos(o),n+a*Math.sin(o)]),d.push([e+i*Math.cos(o),n+a*Math.sin(o)]),td(d,null,f)}function Zj(t,e,n,i,a,s,o,c){const f=[],h=[c.maxRandomnessOffset||1,(c.maxRandomnessOffset||1)+.3];let d=[0,0];const g=c.disableMultiStroke?1:2,y=c.preserveVertices;for(let m=0;m<g;m++)m===0?f.push({op:"move",data:[o[0],o[1]]}):f.push({op:"move",data:[o[0]+(y?0:Zt(h[0],c)),o[1]+(y?0:Zt(h[0],c))]}),d=y?[a,s]:[a+Zt(h[m],c),s+Zt(h[m],c)],f.push({op:"bcurveTo",data:[t+Zt(h[m],c),e+Zt(h[m],c),n+Zt(h[m],c),i+Zt(h[m],c),d[0],d[1]]});return f}function Ec(t){return[...t]}function kw(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const i=[];if(n===3)i.push(Ec(t[0]),Ec(t[1]),Ec(t[2]),Ec(t[2]));else{const a=[];a.push(t[0],t[0]);for(let c=1;c<t.length;c++)a.push(t[c]),c===t.length-1&&a.push(t[c]);const s=[],o=1-e;i.push(Ec(a[0]));for(let c=1;c+2<a.length;c++){const f=a[c];s[0]=[f[0],f[1]],s[1]=[f[0]+(o*a[c+1][0]-o*a[c-1][0])/6,f[1]+(o*a[c+1][1]-o*a[c-1][1])/6],s[2]=[a[c+1][0]+(o*a[c][0]-o*a[c+2][0])/6,a[c+1][1]+(o*a[c][1]-o*a[c+2][1])/6],s[3]=[a[c+1][0],a[c+1][1]],i.push(s[1],s[2],s[3])}}return i}function df(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Qj(t,e,n){const i=df(e,n);if(i===0)return df(t,e);let a=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/i;return a=Math.max(0,Math.min(1,a)),df(t,kl(e,n,a))}function kl(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ry(t,e,n,i){const a=i||[];if((function(c,f){const h=c[f+0],d=c[f+1],g=c[f+2],y=c[f+3];let m=3*d[0]-2*h[0]-y[0];m*=m;let _=3*d[1]-2*h[1]-y[1];_*=_;let v=3*g[0]-2*y[0]-h[0];v*=v;let C=3*g[1]-2*y[1]-h[1];return C*=C,m<v&&(m=v),_<C&&(_=C),m+_})(t,e)<n){const c=t[e+0];a.length?(s=a[a.length-1],o=c,Math.sqrt(df(s,o))>1&&a.push(c)):a.push(c),a.push(t[e+3])}else{const f=t[e+0],h=t[e+1],d=t[e+2],g=t[e+3],y=kl(f,h,.5),m=kl(h,d,.5),_=kl(d,g,.5),v=kl(y,m,.5),C=kl(m,_,.5),S=kl(v,C,.5);Ry([f,y,v,S],0,n,a),Ry([S,C,_,g],0,n,a)}var s,o;return a}function Jj(t,e){return ed(t,0,t.length,e)}function ed(t,e,n,i,a){const s=a||[],o=t[e],c=t[n-1];let f=0,h=1;for(let d=e+1;d<n-1;++d){const g=Qj(t[d],o,c);g>f&&(f=g,h=d)}return Math.sqrt(f)>i?(ed(t,e,h+1,i,s),ed(t,h,n,i,s)):(s.length||s.push(o),s.push(c)),s}function Mm(t,e=.15,n){const i=[],a=(t.length-1)/3;for(let s=0;s<a;s++)Ry(t,3*s,e,i);return n&&n>0?ed(i,0,i.length,n):i}const Ui="none";class nd{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,n,i){return{shape:e,sets:n||[],options:i||this.defaultOptions}}line(e,n,i,a,s){const o=this._o(s);return this._d("line",[gA(e,n,i,a,o)],o)}rectangle(e,n,i,a,s){const o=this._o(s),c=[],f=Kj(e,n,i,a,o);if(o.fill){const h=[[e,n],[e+i,n],[e+i,n+a],[e,n+a]];o.fillStyle==="solid"?c.push(Am([h],o)):c.push(Rs([h],o))}return o.stroke!==Ui&&c.push(f),this._d("rectangle",c,o)}ellipse(e,n,i,a,s){const o=this._o(s),c=[],f=mA(i,a,o),h=Oy(e,n,o,f);if(o.fill)if(o.fillStyle==="solid"){const d=Oy(e,n,o,f).opset;d.type="fillPath",c.push(d)}else c.push(Rs([h.estimatedPoints],o));return o.stroke!==Ui&&c.push(h.opset),this._d("ellipse",c,o)}circle(e,n,i,a){const s=this.ellipse(e,n,i,i,a);return s.shape="circle",s}linearPath(e,n){const i=this._o(n);return this._d("linearPath",[ff(e,!1,i)],i)}arc(e,n,i,a,s,o,c=!1,f){const h=this._o(f),d=[],g=_w(e,n,i,a,s,o,c,!0,h);if(c&&h.fill)if(h.fillStyle==="solid"){const y=Object.assign({},h);y.disableMultiStroke=!0;const m=_w(e,n,i,a,s,o,!0,!1,y);m.type="fillPath",d.push(m)}else d.push((function(y,m,_,v,C,S,T){const A=y,B=m;let N=Math.abs(_/2),E=Math.abs(v/2);N+=Zt(.01*N,T),E+=Zt(.01*E,T);let R=C,G=S;for(;R<0;)R+=2*Math.PI,G+=2*Math.PI;G-R>2*Math.PI&&(R=0,G=2*Math.PI);const Z=(G-R)/T.curveStepCount,z=[];for(let j=R;j<=G;j+=Z)z.push([A+N*Math.cos(j),B+E*Math.sin(j)]);return z.push([A+N*Math.cos(G),B+E*Math.sin(G)]),z.push([A,B]),Rs([z],T)})(e,n,i,a,s,o,h));return h.stroke!==Ui&&d.push(g),this._d("arc",d,h)}curve(e,n){const i=this._o(n),a=[],s=xw(e,i);if(i.fill&&i.fill!==Ui)if(i.fillStyle==="solid"){const o=xw(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],c=e;if(c.length){const f=typeof c[0][0]=="number"?[c]:c;for(const h of f)h.length<3?o.push(...h):h.length===3?o.push(...Mm(kw([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):o.push(...Mm(kw(h),10,(1+i.roughness)/2))}o.length&&a.push(Rs([o],i))}return i.stroke!==Ui&&a.push(s),this._d("curve",a,i)}polygon(e,n){const i=this._o(n),a=[],s=ff(e,!0,i);return i.fill&&(i.fillStyle==="solid"?a.push(Am([e],i)):a.push(Rs([e],i))),i.stroke!==Ui&&a.push(s),this._d("polygon",a,i)}path(e,n){const i=this._o(n),a=[];if(!e)return this._d("path",a,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=i.fill&&i.fill!=="transparent"&&i.fill!==Ui,o=i.stroke!==Ui,c=!!(i.simplification&&i.simplification<1),f=(function(d,g,y){const m=dA(fA(o0(d))),_=[];let v=[],C=[0,0],S=[];const T=()=>{S.length>=4&&v.push(...Mm(S,g)),S=[]},A=()=>{T(),v.length&&(_.push(v),v=[])};for(const{key:N,data:E}of m)switch(N){case"M":A(),C=[E[0],E[1]],v.push(C);break;case"L":T(),v.push([E[0],E[1]]);break;case"C":if(!S.length){const R=v.length?v[v.length-1]:C;S.push([R[0],R[1]])}S.push([E[0],E[1]]),S.push([E[2],E[3]]),S.push([E[4],E[5]]);break;case"Z":T(),v.push([C[0],C[1]])}if(A(),!y)return _;const B=[];for(const N of _){const E=Jj(N,y);E.length&&B.push(E)}return B})(e,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),h=vw(e,i);if(s)if(i.fillStyle==="solid")if(f.length===1){const d=vw(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else a.push(Am(f,i));else a.push(Rs(f,i));return o&&(c?f.forEach((d=>{a.push(ff(d,!1,i))})):a.push(h)),this._d("path",a,i)}opsToPath(e,n){let i="";for(const a of e.ops){const s=typeof n=="number"&&n>=0?a.data.map((o=>+o.toFixed(n))):a.data;switch(a.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 n=e.sets||[],i=e.options||this.defaultOptions,a=[];for(const s of n){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ui};break;case"fillPath":o={d:this.opsToPath(s),stroke:Ui,strokeWidth:0,fill:i.fill||Ui};break;case"fillSketch":o=this.fillSketch(s,i)}o&&a.push(o)}return a}fillSketch(e,n){let i=n.fillWeight;return i<0&&(i=n.strokeWidth/2),{d:this.opsToPath(e),stroke:n.fill||Ui,strokeWidth:i,fill:Ui}}_mergedShape(e){return e.filter(((n,i)=>i===0||n.op!=="move"))}}class tG{constructor(e,n){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new nd(n)}draw(e){const n=e.sets||[],i=e.options||this.getDefaultOptions(),a=this.ctx,s=e.options.fixedDecimalPlaceDigits;for(const o of n)switch(o.type){case"path":a.save(),a.strokeStyle=i.stroke==="none"?"transparent":i.stroke,a.lineWidth=i.strokeWidth,i.strokeLineDash&&a.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(a.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(a,o,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=i.fill||"";const c=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,o,s,c),a.restore();break}case"fillSketch":this.fillSketch(a,o,i)}}fillSketch(e,n,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=a,this._drawToContext(e,n,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,n,i,a="nonzero"){e.beginPath();for(const s of n.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])}}n.type==="fillPath"?e.fill(a):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,n,i,a,s){const o=this.gen.line(e,n,i,a,s);return this.draw(o),o}rectangle(e,n,i,a,s){const o=this.gen.rectangle(e,n,i,a,s);return this.draw(o),o}ellipse(e,n,i,a,s){const o=this.gen.ellipse(e,n,i,a,s);return this.draw(o),o}circle(e,n,i,a){const s=this.gen.circle(e,n,i,a);return this.draw(s),s}linearPath(e,n){const i=this.gen.linearPath(e,n);return this.draw(i),i}polygon(e,n){const i=this.gen.polygon(e,n);return this.draw(i),i}arc(e,n,i,a,s,o,c=!1,f){const h=this.gen.arc(e,n,i,a,s,o,c,f);return this.draw(h),h}curve(e,n){const i=this.gen.curve(e,n);return this.draw(i),i}path(e,n){const i=this.gen.path(e,n);return this.draw(i),i}}const Kh="http://www.w3.org/2000/svg";class eG{constructor(e,n){this.svg=e,this.gen=new nd(n)}draw(e){const n=e.sets||[],i=e.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(Kh,"g"),o=e.options.fixedDecimalPlaceDigits;for(const c of n){let f=null;switch(c.type){case"path":f=a.createElementNS(Kh,"path"),f.setAttribute("d",this.opsToPath(c,o)),f.setAttribute("stroke",i.stroke),f.setAttribute("stroke-width",i.strokeWidth+""),f.setAttribute("fill","none"),i.strokeLineDash&&f.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&f.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":f=a.createElementNS(Kh,"path"),f.setAttribute("d",this.opsToPath(c,o)),f.setAttribute("stroke","none"),f.setAttribute("stroke-width","0"),f.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||f.setAttribute("fill-rule","evenodd");break;case"fillSketch":f=this.fillSketch(a,c,i)}f&&s.appendChild(f)}return s}fillSketch(e,n,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2);const s=e.createElementNS(Kh,"path");return s.setAttribute("d",this.opsToPath(n,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",a+""),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,n){return this.gen.opsToPath(e,n)}line(e,n,i,a,s){const o=this.gen.line(e,n,i,a,s);return this.draw(o)}rectangle(e,n,i,a,s){const o=this.gen.rectangle(e,n,i,a,s);return this.draw(o)}ellipse(e,n,i,a,s){const o=this.gen.ellipse(e,n,i,a,s);return this.draw(o)}circle(e,n,i,a){const s=this.gen.circle(e,n,i,a);return this.draw(s)}linearPath(e,n){const i=this.gen.linearPath(e,n);return this.draw(i)}polygon(e,n){const i=this.gen.polygon(e,n);return this.draw(i)}arc(e,n,i,a,s,o,c=!1,f){const h=this.gen.arc(e,n,i,a,s,o,c,f);return this.draw(h)}curve(e,n){const i=this.gen.curve(e,n);return this.draw(i)}path(e,n){const i=this.gen.path(e,n);return this.draw(i)}}var Nt={canvas:(t,e)=>new tG(t,e),svg:(t,e)=>new eG(t,e),generator:t=>new nd(t),newSeed:()=>nd.newSeed()},Xt=w(async(t,e,n)=>{var g,y;let i;const a=e.useHtmlLabels||Rn((g=Oe())==null?void 0:g.htmlLabels);n?i=n: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",Jn(e.labelStyle));let c;e.label===void 0?c="":c=typeof e.label=="string"?e.label:e.label[0];const f=await el(o,ar(Wl(c),Oe()),{useHtmlLabels:a,width:e.width||((y=Oe().flowchart)==null?void 0:y.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let h=f.getBBox();const d=((e==null?void 0:e.padding)??0)/2;if(a){const m=f.children[0],_=Se(f),v=m.getElementsByTagName("img");if(v){const C=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...v].map(S=>new Promise(T=>{function A(){if(S.style.display="flex",S.style.flexDirection="column",C){const B=Oe().fontSize?Oe().fontSize:window.getComputedStyle(document.body).fontSize,N=5,[E=OC.fontSize]=Td(B),R=E*N+"px";S.style.minWidth=R,S.style.maxWidth=R}else S.style.width="100%";T(S)}w(A,"setupImage"),setTimeout(()=>{S.complete&&A()}),S.addEventListener("error",A),S.addEventListener("load",A)})))}h=m.getBoundingClientRect(),_.attr("width",h.width),_.attr("height",h.height)}return a?o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):o.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:h,halfPadding:d,label:o}},"labelHelper"),Nm=w(async(t,e,n)=>{var f,h,d,g,y,m;const i=n.useHtmlLabels||Rn((h=(f=Oe())==null?void 0:f.flowchart)==null?void 0:h.htmlLabels),a=t.insert("g").attr("class","label").attr("style",n.labelStyle||""),s=await el(a,ar(Wl(e),Oe()),{useHtmlLabels:i,width:n.width||((g=(d=Oe())==null?void 0:d.flowchart)==null?void 0:g.wrappingWidth),style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let o=s.getBBox();const c=n.padding/2;if(Rn((m=(y=Oe())==null?void 0:y.flowchart)==null?void 0:m.htmlLabels)){const _=s.children[0],v=Se(s);o=_.getBoundingClientRect(),v.attr("width",o.width),v.attr("height",o.height)}return i?a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):a.attr("transform","translate(0, "+-o.height/2+")"),n.centerLabel&&a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:t,bbox:o,halfPadding:c,label:a}},"insertLabel"),Dt=w((t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height},"updateNodeBounds"),Gt=w((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function de(t){const e=t.map((n,i)=>`${i===0?"M":"L"}${n.x},${n.y}`);return e.push("Z"),e.join(" ")}w(de,"createPathFromPoints");function Qa(t,e,n,i,a,s){const o=[],f=n-t,h=i-e,d=f/s,g=2*Math.PI/d,y=e+h/2;for(let m=0;m<=50;m++){const _=m/50,v=t+_*f,C=y+a*Math.sin(g*(v-t));o.push({x:v,y:C})}return o}w(Qa,"generateFullSineWavePoints");function iu(t,e,n,i,a,s){const o=[],c=a*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let g=0;g<i;g++){const y=c+g*d,m=t+n*Math.cos(y),_=e+n*Math.sin(y);o.push({x:-m,y:-_})}return o}w(iu,"generateCirclePoints");var nG=w((t,e)=>{var n=t.x,i=t.y,a=e.x-n,s=e.y-i,o=t.width/2,c=t.height/2,f,h;return Math.abs(s)*o>Math.abs(a)*c?(s<0&&(c=-c),f=s===0?0:c*a/s,h=c):(a<0&&(o=-o),f=o,h=a===0?0:o*s/a),{x:n+f,y:i+h}},"intersectRect"),go=nG;function bA(t,e){e&&t.attr("style",e)}w(bA,"applyStyle");async function xA(t){const e=Se(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div"),i=Oe();let a=t.label;t.label&&eo(t.label)&&(a=await gb(t.label.replace(uo.lineBreakRegex,`
273
+ `),i));const o='<span class="'+(t.isNode?"nodeLabel":"edgeLabel")+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+a+"</span>";return n.html(ar(o,i)),bA(n,t.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}w(xA,"addHtmlLabel");var iG=w(async(t,e,n,i)=>{let a=t||"";if(typeof a=="object"&&(a=a[0]),Rn(Oe().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),ht.info("vertexText"+a);const s={isNode:i,label:Wl(a).replace(/fa[blrs]?:fa-[\w-]+/g,c=>`<i class='${c.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")};return await xA(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));let o=[];typeof a=="string"?o=a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?o=a:o=[];for(const c of o){const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f.setAttribute("dy","1em"),f.setAttribute("x","0"),n?f.setAttribute("class","title-row"):f.setAttribute("class","row"),f.textContent=c.trim(),s.appendChild(f)}return s}},"createLabel"),Ol=iG,nl=w((t,e,n,i,a)=>["M",t+a,e,"H",t+n-a,"A",a,a,0,0,1,t+n,e+a,"V",e+i-a,"A",a,a,0,0,1,t+n-a,e+i,"H",t+a,"A",a,a,0,0,1,t,e+i-a,"V",e+a,"A",a,a,0,0,1,t+a,e,"Z"].join(" "),"createRoundedRectPathD"),_A=w(async(t,e)=>{ht.info("Creating subgraph rect for ",e.id,e);const n=Oe(),{themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:c,nodeStyles:f,borderStyles:h,backgroundStyles:d}=Rt(e),g=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),y=Rn(n.flowchart.htmlLabels),m=g.insert("g").attr("class","cluster-label "),_=await el(m,e.label,{style:e.labelStyle,useHtmlLabels:y,isNode:!0});let v=_.getBBox();if(Rn(n.flowchart.htmlLabels)){const R=_.children[0],G=Se(_);v=R.getBoundingClientRect(),G.attr("width",v.width),G.attr("height",v.height)}const C=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(C-e.width)/2-e.padding:e.diff=-e.padding;const S=e.height,T=e.x-C/2,A=e.y-S/2;ht.trace("Data ",e,JSON.stringify(e));let B;if(e.look==="handDrawn"){const R=Nt.svg(g),G=Lt(e,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:a}),Z=R.path(nl(T,A,C,S,0),G);B=g.insert(()=>(ht.debug("Rough node insert CXC",Z),Z),":first-child"),B.select("path:nth-child(2)").attr("style",h.join(";")),B.select("path").attr("style",d.join(";").replace("fill","stroke"))}else B=g.insert("rect",":first-child"),B.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",A).attr("width",C).attr("height",S);const{subGraphTitleTopMargin:N}=Ub(n);if(m.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+N})`),c){const R=m.select("span");R&&R.attr("style",c)}const E=B.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=v.height-e.padding/2,e.intersect=function(R){return go(e,R)},{cluster:g,labelBBox:v}},"rect"),rG=w((t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=n.insert("rect",":first-child"),a=0*e.padding,s=a/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+a).attr("height",e.height+a).attr("fill","none");const o=i.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(c){return go(e,c)},{cluster:n,labelBBox:{width:0,height:0}}},"noteGroup"),aG=w(async(t,e)=>{const n=Oe(),{themeVariables:i,handDrawnSeed:a}=n,{altBackground:s,compositeBackground:o,compositeTitleBackground:c,nodeBorder:f}=i,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),d=h.insert("g",":first-child"),g=h.insert("g").attr("class","cluster-label");let y=h.append("rect");const m=g.node().appendChild(await Ol(e.label,e.labelStyle,void 0,!0));let _=m.getBBox();if(Rn(n.flowchart.htmlLabels)){const Z=m.children[0],z=Se(m);_=Z.getBoundingClientRect(),z.attr("width",_.width),z.attr("height",_.height)}const v=0*e.padding,C=v/2,S=(e.width<=_.width+e.padding?_.width+e.padding:e.width)+v;e.width<=_.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;const T=e.height+v,A=e.height+v-_.height-6,B=e.x-S/2,N=e.y-T/2;e.width=S;const E=e.y-e.height/2-C+_.height+2;let R;if(e.look==="handDrawn"){const Z=e.cssClasses.includes("statediagram-cluster-alt"),z=Nt.svg(h),j=e.rx||e.ry?z.path(nl(B,N,S,T,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:f,seed:a}):z.rectangle(B,N,S,T,{seed:a});R=h.insert(()=>j,":first-child");const tt=z.rectangle(B,E,S,A,{fill:Z?s:o,fillStyle:Z?"hachure":"solid",stroke:f,seed:a});R=h.insert(()=>j,":first-child"),y=h.insert(()=>tt)}else R=d.insert("rect",":first-child"),R.attr("class","outer").attr("x",B).attr("y",N).attr("width",S).attr("height",T).attr("data-look",e.look),y.attr("class","inner").attr("x",B).attr("y",E).attr("width",S).attr("height",A);g.attr("transform",`translate(${e.x-_.width/2}, ${N+1-(Rn(n.flowchart.htmlLabels)?0:3)})`);const G=R.node().getBBox();return e.height=G.height,e.offsetX=0,e.offsetY=_.height-e.padding/2,e.labelBBox=_,e.intersect=function(Z){return go(e,Z)},{cluster:h,labelBBox:_}},"roundedWithTitle"),lG=w(async(t,e)=>{ht.info("Creating subgraph rect for ",e.id,e);const n=Oe(),{themeVariables:i,handDrawnSeed:a}=n,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:c,nodeStyles:f,borderStyles:h,backgroundStyles:d}=Rt(e),g=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),y=Rn(n.flowchart.htmlLabels),m=g.insert("g").attr("class","cluster-label "),_=await el(m,e.label,{style:e.labelStyle,useHtmlLabels:y,isNode:!0,width:e.width});let v=_.getBBox();if(Rn(n.flowchart.htmlLabels)){const R=_.children[0],G=Se(_);v=R.getBoundingClientRect(),G.attr("width",v.width),G.attr("height",v.height)}const C=e.width<=v.width+e.padding?v.width+e.padding:e.width;e.width<=v.width+e.padding?e.diff=(C-e.width)/2-e.padding:e.diff=-e.padding;const S=e.height,T=e.x-C/2,A=e.y-S/2;ht.trace("Data ",e,JSON.stringify(e));let B;if(e.look==="handDrawn"){const R=Nt.svg(g),G=Lt(e,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:a}),Z=R.path(nl(T,A,C,S,e.rx),G);B=g.insert(()=>(ht.debug("Rough node insert CXC",Z),Z),":first-child"),B.select("path:nth-child(2)").attr("style",h.join(";")),B.select("path").attr("style",d.join(";").replace("fill","stroke"))}else B=g.insert("rect",":first-child"),B.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",A).attr("width",C).attr("height",S);const{subGraphTitleTopMargin:N}=Ub(n);if(m.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+N})`),c){const R=m.select("span");R&&R.attr("style",c)}const E=B.node().getBBox();return e.offsetX=0,e.width=E.width,e.height=E.height,e.offsetY=v.height-e.padding/2,e.intersect=function(R){return go(e,R)},{cluster:g,labelBBox:v}},"kanbanSection"),sG=w((t,e)=>{const n=Oe(),{themeVariables:i,handDrawnSeed:a}=n,{nodeBorder:s}=i,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),c=o.insert("g",":first-child"),f=0*e.padding,h=e.width+f;e.diff=-e.padding;const d=e.height+f,g=e.x-h/2,y=e.y-d/2;e.width=h;let m;if(e.look==="handDrawn"){const C=Nt.svg(o).rectangle(g,y,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:a});m=o.insert(()=>C,":first-child")}else m=c.insert("rect",":first-child"),m.attr("class","divider").attr("x",g).attr("y",y).attr("width",h).attr("height",d).attr("data-look",e.look);const _=m.node().getBBox();return e.height=_.height,e.offsetX=0,e.offsetY=0,e.intersect=function(v){return go(e,v)},{cluster:o,labelBBox:{}}},"divider"),oG=_A,cG={rect:_A,squareRect:oG,roundedWithTitle:aG,noteGroup:rG,divider:sG,kanbanSection:lG},vA=new Map,uG=w(async(t,e)=>{const n=e.shape||"rect",i=await cG[n](t,e);return vA.set(e.id,i),i},"insertCluster"),HX=w(()=>{vA=new Map},"clear");function SA(t,e){return t.intersect(e)}w(SA,"intersectNode");var hG=SA;function wA(t,e,n,i){var a=t.x,s=t.y,o=a-i.x,c=s-i.y,f=Math.sqrt(e*e*c*c+n*n*o*o),h=Math.abs(e*n*o/f);i.x<a&&(h=-h);var d=Math.abs(e*n*c/f);return i.y<s&&(d=-d),{x:a+h,y:s+d}}w(wA,"intersectEllipse");var CA=wA;function kA(t,e,n){return CA(t,e,e,n)}w(kA,"intersectCircle");var fG=kA;function EA(t,e,n,i){{const a=e.y-t.y,s=t.x-e.x,o=e.x*t.y-t.x*e.y,c=a*n.x+s*n.y+o,f=a*i.x+s*i.y+o,h=1e-6;if(c!==0&&f!==0&&Dy(c,f))return;const d=i.y-n.y,g=n.x-i.x,y=i.x*n.y-n.x*i.y,m=d*t.x+g*t.y+y,_=d*e.x+g*e.y+y;if(Math.abs(m)<h&&Math.abs(_)<h&&Dy(m,_))return;const v=a*g-d*s;if(v===0)return;const C=Math.abs(v/2);let S=s*y-g*o;const T=S<0?(S-C)/v:(S+C)/v;S=d*o-a*y;const A=S<0?(S-C)/v:(S+C)/v;return{x:T,y:A}}}w(EA,"intersectLine");function Dy(t,e){return t*e>0}w(Dy,"sameSign");var dG=EA;function TA(t,e,n){let i=t.x,a=t.y,s=[],o=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(d){o=Math.min(o,d.x),c=Math.min(c,d.y)}):(o=Math.min(o,e.x),c=Math.min(c,e.y));let f=i-t.width/2-o,h=a-t.height/2-c;for(let d=0;d<e.length;d++){let g=e[d],y=e[d<e.length-1?d+1:0],m=dG(t,n,{x:f+g.x,y:h+g.y},{x:f+y.x,y:h+y.y});m&&s.push(m)}return s.length?(s.length>1&&s.sort(function(d,g){let y=d.x-n.x,m=d.y-n.y,_=Math.sqrt(y*y+m*m),v=g.x-n.x,C=g.y-n.y,S=Math.sqrt(v*v+C*C);return _<S?-1:_===S?0:1}),s[0]):t}w(TA,"intersectPolygon");var pG=TA,Et={node:hG,circle:fG,ellipse:CA,polygon:pG,rect:go};function AA(t,e){const{labelStyles:n}=Rt(e);e.labelStyle=n;const i=Gt(e);let a=i;i||(a="anchor");const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),o=1,{cssStyles:c}=e,f=Nt.svg(s),h=Lt(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(h.roughness=0);const d=f.circle(0,0,o*2,h),g=s.insert(()=>d,":first-child");return g.attr("class","anchor").attr("style",Jn(c)),Dt(e,g),e.intersect=function(y){return ht.info("Circle intersect",e,o,y),Et.circle(e,o,y)},s}w(AA,"anchor");function By(t,e,n,i,a,s,o){const f=(t+n)/2,h=(e+i)/2,d=Math.atan2(i-e,n-t),g=(n-t)/2,y=(i-e)/2,m=g/a,_=y/s,v=Math.sqrt(m**2+_**2);if(v>1)throw new Error("The given radii are too small to create an arc between the points.");const C=Math.sqrt(1-v**2),S=f+C*s*Math.sin(d)*(o?-1:1),T=h-C*a*Math.cos(d)*(o?-1:1),A=Math.atan2((e-T)/s,(t-S)/a);let N=Math.atan2((i-T)/s,(n-S)/a)-A;o&&N<0&&(N+=2*Math.PI),!o&&N>0&&(N-=2*Math.PI);const E=[];for(let R=0;R<20;R++){const G=R/19,Z=A+G*N,z=S+a*Math.cos(Z),j=T+s*Math.sin(Z);E.push({x:z,y:j})}return E}w(By,"generateArcPoints");async function MA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=s.width+e.padding+20,c=s.height+e.padding,f=c/2,h=f/(2.5+c/50),{cssStyles:d}=e,g=[{x:o/2,y:-c/2},{x:-o/2,y:-c/2},...By(-o/2,-c/2,-o/2,c/2,h,f,!1),{x:o/2,y:c/2},...By(o/2,c/2,o/2,-c/2,h,f,!0)],y=Nt.svg(a),m=Lt(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=de(g),v=y.path(_,m),C=a.insert(()=>v,":first-child");return C.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${h/2}, 0)`),Dt(e,C),e.intersect=function(S){return Et.polygon(e,g,S)},a}w(MA,"bowTieRect");function il(t,e,n,i){return t.insert("polygon",":first-child").attr("points",i.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}w(il,"insertPolygonShape");async function NA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=s.height+e.padding,c=12,f=s.width+e.padding+c,h=0,d=f,g=-o,y=0,m=[{x:h+c,y:g},{x:d,y:g},{x:d,y},{x:h,y},{x:h,y:g+c},{x:h+c,y:g}];let _;const{cssStyles:v}=e;if(e.look==="handDrawn"){const C=Nt.svg(a),S=Lt(e,{}),T=de(m),A=C.path(T,S);_=a.insert(()=>A,":first-child").attr("transform",`translate(${-f/2}, ${o/2})`),v&&_.attr("style",v)}else _=il(a,f,o,m);return i&&_.attr("style",i),Dt(e,_),e.intersect=function(C){return Et.polygon(e,m,C)},a}w(NA,"card");function OA(t,e){const{nodeStyles:n}=Rt(e);e.label="";const i=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),{cssStyles:a}=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),f=Lt(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const h=de(o),d=c.path(h,f),g=i.insert(()=>d,":first-child");return a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),e.width=28,e.height=28,e.intersect=function(y){return Et.polygon(e,o,y)},i}w(OA,"choice");async function c0(t,e,n){const{labelStyles:i,nodeStyles:a}=Rt(e);e.labelStyle=i;const{shapeSvg:s,bbox:o,halfPadding:c}=await Xt(t,e,Gt(e)),f=(n==null?void 0:n.padding)??c,h=o.width/2+f;let d;const{cssStyles:g}=e;if(e.look==="handDrawn"){const y=Nt.svg(s),m=Lt(e,{}),_=y.circle(0,0,h*2,m);d=s.insert(()=>_,":first-child"),d.attr("class","basic label-container").attr("style",Jn(g))}else d=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",h).attr("cx",0).attr("cy",0);return Dt(e,d),e.calcIntersect=function(y,m){const _=y.width/2;return Et.circle(y,_,m)},e.intersect=function(y){return ht.info("Circle intersect",e,h,y),Et.circle(e,h,y)},s}w(c0,"circle");function LA(t){const e=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),i=t*2,a={x:i/2*e,y:i/2*n},s={x:-(i/2)*e,y:i/2*n},o={x:-(i/2)*e,y:-(i/2)*n},c={x:i/2*e,y:-(i/2)*n};return`M ${s.x},${s.y} L ${c.x},${c.y}
274
+ M ${a.x},${a.y} L ${o.x},${o.y}`}w(LA,"createLine");function RA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n,e.label="";const a=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(a),f=Lt(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const h=c.circle(0,0,s*2,f),d=LA(s),g=c.path(d,f),y=a.insert(()=>h,":first-child");return y.insert(()=>g),o&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",o),i&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",i),Dt(e,y),e.intersect=function(m){return ht.info("crossedCircle intersect",e,{radius:s,point:m}),Et.circle(e,s,m)},a}w(RA,"crossedCircle");function oa(t,e,n,i=100,a=0,s=180){const o=[],c=a*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let g=0;g<i;g++){const y=c+g*d,m=t+n*Math.cos(y),_=e+n*Math.sin(y);o.push({x:-m,y:-_})}return o}w(oa,"generateCirclePoints");async function DA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=s.width+(e.padding??0),f=s.height+(e.padding??0),h=Math.max(5,f*.1),{cssStyles:d}=e,g=[...oa(c/2,-f/2,h,30,-90,0),{x:-c/2-h,y:h},...oa(c/2+h*2,-h,h,20,-180,-270),...oa(c/2+h*2,h,h,20,-90,-180),{x:-c/2-h,y:-f/2},...oa(c/2,f/2,h,20,0,90)],y=[{x:c/2,y:-f/2-h},{x:-c/2,y:-f/2-h},...oa(c/2,-f/2,h,20,-90,0),{x:-c/2-h,y:-h},...oa(c/2+c*.1,-h,h,20,-180,-270),...oa(c/2+c*.1,h,h,20,-90,-180),{x:-c/2-h,y:f/2},...oa(c/2,f/2,h,20,0,90),{x:-c/2,y:f/2+h},{x:c/2,y:f/2+h}],m=Nt.svg(a),_=Lt(e,{fill:"none"});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=de(g).replace("Z",""),S=m.path(C,_),T=de(y),A=m.path(T,{..._}),B=a.insert("g",":first-child");return B.insert(()=>A,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.attr("class","text"),d&&e.look!=="handDrawn"&&B.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${h}, 0)`),o.attr("transform",`translate(${-c/2+h-(s.x-(s.left??0))},${-f/2+(e.padding??0)/2-(s.y-(s.top??0))})`),Dt(e,B),e.intersect=function(N){return Et.polygon(e,y,N)},a}w(DA,"curlyBraceLeft");function ca(t,e,n,i=100,a=0,s=180){const o=[],c=a*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let g=0;g<i;g++){const y=c+g*d,m=t+n*Math.cos(y),_=e+n*Math.sin(y);o.push({x:m,y:_})}return o}w(ca,"generateCirclePoints");async function BA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=s.width+(e.padding??0),f=s.height+(e.padding??0),h=Math.max(5,f*.1),{cssStyles:d}=e,g=[...ca(c/2,-f/2,h,20,-90,0),{x:c/2+h,y:-h},...ca(c/2+h*2,-h,h,20,-180,-270),...ca(c/2+h*2,h,h,20,-90,-180),{x:c/2+h,y:f/2},...ca(c/2,f/2,h,20,0,90)],y=[{x:-c/2,y:-f/2-h},{x:c/2,y:-f/2-h},...ca(c/2,-f/2,h,20,-90,0),{x:c/2+h,y:-h},...ca(c/2+h*2,-h,h,20,-180,-270),...ca(c/2+h*2,h,h,20,-90,-180),{x:c/2+h,y:f/2},...ca(c/2,f/2,h,20,0,90),{x:c/2,y:f/2+h},{x:-c/2,y:f/2+h}],m=Nt.svg(a),_=Lt(e,{fill:"none"});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const C=de(g).replace("Z",""),S=m.path(C,_),T=de(y),A=m.path(T,{..._}),B=a.insert("g",":first-child");return B.insert(()=>A,":first-child").attr("stroke-opacity",0),B.insert(()=>S,":first-child"),B.attr("class","text"),d&&e.look!=="handDrawn"&&B.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-h}, 0)`),o.attr("transform",`translate(${-c/2+(e.padding??0)/2-(s.x-(s.left??0))},${-f/2+(e.padding??0)/2-(s.y-(s.top??0))})`),Dt(e,B),e.intersect=function(N){return Et.polygon(e,y,N)},a}w(BA,"curlyBraceRight");function qn(t,e,n,i=100,a=0,s=180){const o=[],c=a*Math.PI/180,d=(s*Math.PI/180-c)/(i-1);for(let g=0;g<i;g++){const y=c+g*d,m=t+n*Math.cos(y),_=e+n*Math.sin(y);o.push({x:-m,y:-_})}return o}w(qn,"generateCirclePoints");async function IA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=s.width+(e.padding??0),f=s.height+(e.padding??0),h=Math.max(5,f*.1),{cssStyles:d}=e,g=[...qn(c/2,-f/2,h,30,-90,0),{x:-c/2-h,y:h},...qn(c/2+h*2,-h,h,20,-180,-270),...qn(c/2+h*2,h,h,20,-90,-180),{x:-c/2-h,y:-f/2},...qn(c/2,f/2,h,20,0,90)],y=[...qn(-c/2+h+h/2,-f/2,h,20,-90,-180),{x:c/2-h/2,y:h},...qn(-c/2-h/2,-h,h,20,0,90),...qn(-c/2-h/2,h,h,20,-90,0),{x:c/2-h/2,y:-h},...qn(-c/2+h+h/2,f/2,h,30,-180,-270)],m=[{x:c/2,y:-f/2-h},{x:-c/2,y:-f/2-h},...qn(c/2,-f/2,h,20,-90,0),{x:-c/2-h,y:-h},...qn(c/2+h*2,-h,h,20,-180,-270),...qn(c/2+h*2,h,h,20,-90,-180),{x:-c/2-h,y:f/2},...qn(c/2,f/2,h,20,0,90),{x:-c/2,y:f/2+h},{x:c/2-h-h/2,y:f/2+h},...qn(-c/2+h+h/2,-f/2,h,20,-90,-180),{x:c/2-h/2,y:h},...qn(-c/2-h/2,-h,h,20,0,90),...qn(-c/2-h/2,h,h,20,-90,0),{x:c/2-h/2,y:-h},...qn(-c/2+h+h/2,f/2,h,30,-180,-270)],_=Nt.svg(a),v=Lt(e,{fill:"none"});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const S=de(g).replace("Z",""),T=_.path(S,v),B=de(y).replace("Z",""),N=_.path(B,v),E=de(m),R=_.path(E,{...v}),G=a.insert("g",":first-child");return G.insert(()=>R,":first-child").attr("stroke-opacity",0),G.insert(()=>T,":first-child"),G.insert(()=>N,":first-child"),G.attr("class","text"),d&&e.look!=="handDrawn"&&G.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&G.selectAll("path").attr("style",i),G.attr("transform",`translate(${h-h/4}, 0)`),o.attr("transform",`translate(${-c/2+(e.padding??0)/2-(s.x-(s.left??0))},${-f/2+(e.padding??0)/2-(s.y-(s.top??0))})`),Dt(e,G),e.intersect=function(Z){return Et.polygon(e,m,Z)},a}w(IA,"curlyBraces");async function zA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=80,c=20,f=Math.max(o,(s.width+(e.padding??0)*2)*1.25,(e==null?void 0:e.width)??0),h=Math.max(c,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),d=h/2,{cssStyles:g}=e,y=Nt.svg(a),m=Lt(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=f,v=h,C=_-d,S=v/4,T=[{x:C,y:0},{x:S,y:0},{x:0,y:v/2},{x:S,y:v},{x:C,y:v},...iu(-C,-v/2,d,50,270,90)],A=de(T),B=y.path(A,m),N=a.insert(()=>B,":first-child");return N.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&N.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&N.selectChildren("path").attr("style",i),N.attr("transform",`translate(${-f/2}, ${-h/2})`),Dt(e,N),e.intersect=function(E){return Et.polygon(e,T,E)},a}w(zA,"curvedTrapezoid");var gG=w((t,e,n,i,a,s)=>[`M${t},${e+s}`,`a${a},${s} 0,0,0 ${n},0`,`a${a},${s} 0,0,0 ${-n},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${n},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),mG=w((t,e,n,i,a,s)=>[`M${t},${e+s}`,`M${t+n},${e+s}`,`a${a},${s} 0,0,0 ${-n},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${n},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),yG=w((t,e,n,i,a,s)=>[`M${t-n/2},${-i/2}`,`a${a},${s} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function FA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+e.padding,e.width??0),f=c/2,h=f/(2.5+c/50),d=Math.max(s.height+h+e.padding,e.height??0);let g;const{cssStyles:y}=e;if(e.look==="handDrawn"){const m=Nt.svg(a),_=mG(0,0,c,d,f,h),v=yG(0,h,c,d,f,h),C=m.path(_,Lt(e,{})),S=m.path(v,Lt(e,{fill:"none"}));g=a.insert(()=>S,":first-child"),g=a.insert(()=>C,":first-child"),g.attr("class","basic label-container"),y&&g.attr("style",y)}else{const m=gG(0,0,c,d,f,h);g=a.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Jn(y)).attr("style",i)}return g.attr("label-offset-y",h),g.attr("transform",`translate(${-c/2}, ${-(d/2+h)})`),Dt(e,g),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(m){const _=Et.rect(e,m),v=_.x-(e.x??0);if(f!=0&&(Math.abs(v)<(e.width??0)/2||Math.abs(v)==(e.width??0)/2&&Math.abs(_.y-(e.y??0))>(e.height??0)/2-h)){let C=h*h*(1-v*v/(f*f));C>0&&(C=Math.sqrt(C)),C=h-C,m.y-(e.y??0)>0&&(C=-C),_.y+=C}return _},a}w(FA,"cylinder");async function $A(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=s.width+e.padding,f=s.height+e.padding,h=f*.2,d=-c/2,g=-f/2-h/2,{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=[{x:d,y:g+h},{x:-d,y:g+h},{x:-d,y:-g},{x:d,y:-g},{x:d,y:g},{x:-d,y:g},{x:-d,y:g+h}],C=m.polygon(v.map(T=>[T.x,T.y]),_),S=a.insert(()=>C,":first-child");return S.attr("class","basic label-container"),y&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),o.attr("transform",`translate(${d+(e.padding??0)/2-(s.x-(s.left??0))}, ${g+h+(e.padding??0)/2-(s.y-(s.top??0))})`),Dt(e,S),e.intersect=function(T){return Et.rect(e,T)},a}w($A,"dividedRectangle");async function UA(t,e){var y,m;const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o}=await Xt(t,e,Gt(e)),f=s.width/2+o+5,h=s.width/2+o;let d;const{cssStyles:g}=e;if(e.look==="handDrawn"){const _=Nt.svg(a),v=Lt(e,{roughness:.2,strokeWidth:2.5}),C=Lt(e,{roughness:.2,strokeWidth:1.5}),S=_.circle(0,0,f*2,v),T=_.circle(0,0,h*2,C);d=a.insert("g",":first-child"),d.attr("class",Jn(e.cssClasses)).attr("style",Jn(g)),(y=d.node())==null||y.appendChild(S),(m=d.node())==null||m.appendChild(T)}else{d=a.insert("g",":first-child");const _=d.insert("circle",":first-child"),v=d.insert("circle");d.attr("class","basic label-container").attr("style",i),_.attr("class","outer-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0),v.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return Dt(e,d),e.intersect=function(_){return ht.info("DoubleCircle intersect",e,f,_),Et.circle(e,f,_)},a}w(UA,"doublecircle");function PA(t,e,{config:{themeVariables:n}}){const{labelStyles:i,nodeStyles:a}=Rt(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,f=Nt.svg(s),{nodeBorder:h}=n,d=Lt(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(d.roughness=0);const g=f.circle(0,0,o*2,d),y=s.insert(()=>g,":first-child");return y.selectAll("path").attr("style",`fill: ${h} !important;`),c&&c.length>0&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",c),a&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",a),Dt(e,y),e.intersect=function(m){return ht.info("filledCircle intersect",e,{radius:o,point:m}),Et.circle(e,o,m)},s}w(PA,"filledCircle");async function HA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=s.width+(e.padding??0),f=c+s.height,h=c+s.height,d=[{x:0,y:-f},{x:h,y:-f},{x:h/2,y:0}],{cssStyles:g}=e,y=Nt.svg(a),m=Lt(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=de(d),v=y.path(_,m),C=a.insert(()=>v,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`);return g&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),e.width=c,e.height=f,Dt(e,C),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-f/2+(e.padding??0)/2+(s.y-(s.top??0))})`),e.intersect=function(S){return ht.info("Triangle intersect",e,d,S),Et.polygon(e,d,S)},a}w(HA,"flippedTriangle");function qA(t,e,{dir:n,config:{state:i,themeVariables:a}}){const{nodeStyles:s}=Rt(e);e.label="";const o=t.insert("g").attr("class",Gt(e)).attr("id",e.domId??e.id),{cssStyles:c}=e;let f=Math.max(70,(e==null?void 0:e.width)??0),h=Math.max(10,(e==null?void 0:e.height)??0);n==="LR"&&(f=Math.max(10,(e==null?void 0:e.width)??0),h=Math.max(70,(e==null?void 0:e.height)??0));const d=-1*f/2,g=-1*h/2,y=Nt.svg(o),m=Lt(e,{stroke:a.lineColor,fill:a.lineColor});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=y.rectangle(d,g,f,h,m),v=o.insert(()=>_,":first-child");c&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",c),s&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",s),Dt(e,v);const C=(i==null?void 0:i.padding)??0;return e.width&&e.height&&(e.width+=C/2||0,e.height+=C/2||0),e.intersect=function(S){return Et.rect(e,S)},o}w(qA,"forkJoin");async function jA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const a=80,s=50,{shapeSvg:o,bbox:c}=await Xt(t,e,Gt(e)),f=Math.max(a,c.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),h=Math.max(s,c.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),d=h/2,{cssStyles:g}=e,y=Nt.svg(o),m=Lt(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:-f/2,y:-h/2},{x:f/2-d,y:-h/2},...iu(-f/2+d,0,d,50,90,270),{x:f/2-d,y:h/2},{x:-f/2,y:h/2}],v=de(_),C=y.path(v,m),S=o.insert(()=>C,":first-child");return S.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),Dt(e,S),e.intersect=function(T){return ht.info("Pill intersect",e,{radius:d,point:T}),Et.polygon(e,_,T)},o}w(jA,"halfRoundedRectangle");async function GA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=s.height+(e.padding??0),c=s.width+(e.padding??0)*2.5,{cssStyles:f}=e,h=Nt.svg(a),d=Lt(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=c/2;const y=g/6;g=g+y;const m=o/2,_=m/2,v=g-_,C=[{x:-v,y:-m},{x:0,y:-m},{x:v,y:-m},{x:g,y:0},{x:v,y:m},{x:0,y:m},{x:-v,y:m},{x:-g,y:0}],S=de(C),T=h.path(S,d),A=a.insert(()=>T,":first-child");return A.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&A.selectChildren("path").attr("style",f),i&&e.look!=="handDrawn"&&A.selectChildren("path").attr("style",i),e.width=c,e.height=o,Dt(e,A),e.intersect=function(B){return Et.polygon(e,C,B)},a}w(GA,"hexagon");async function YA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.label="",e.labelStyle=n;const{shapeSvg:a}=await Xt(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,f=Nt.svg(a),h=Lt(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],g=de(d),y=f.path(g,h),m=a.insert(()=>y,":first-child");return m.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),i&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(${-s/2}, ${-o/2})`),Dt(e,m),e.intersect=function(_){return ht.info("Pill intersect",e,{points:d}),Et.polygon(e,d,_)},a}w(YA,"hourglass");async function WA(t,e,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:a}=Rt(e);e.labelStyle=a;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),f=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,f??0);const{shapeSvg:h,bbox:d,label:g}=await Xt(t,e,"icon-shape default"),y=e.pos==="t",m=c,_=c,{nodeBorder:v}=n,{stylesMap:C}=ho(e),S=-_/2,T=-m/2,A=e.label?8:0,B=Nt.svg(h),N=Lt(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const E=B.rectangle(S,T,_,m,N),R=Math.max(_,d.width),G=m+d.height+A,Z=B.rectangle(-R/2,-G/2,R,G,{...N,fill:"transparent",stroke:"none"}),z=h.insert(()=>E,":first-child"),j=h.insert(()=>Z);if(e.icon){const tt=h.append("g");tt.html(`<g>${await bu(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const it=tt.node().getBBox(),H=it.width,F=it.height,L=it.x,U=it.y;tt.attr("transform",`translate(${-H/2-L},${y?d.height/2+A/2-F/2-U:-d.height/2-A/2-F/2-U})`),tt.attr("style",`color: ${C.get("stroke")??v};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-G/2:G/2-d.height})`),z.attr("transform",`translate(0,${y?d.height/2+A/2:-d.height/2-A/2})`),Dt(e,j),e.intersect=function(tt){if(ht.info("iconSquare intersect",e,tt),!e.label)return Et.rect(e,tt);const it=e.x??0,H=e.y??0,F=e.height??0;let L=[];return y?L=[{x:it-d.width/2,y:H-F/2},{x:it+d.width/2,y:H-F/2},{x:it+d.width/2,y:H-F/2+d.height+A},{x:it+_/2,y:H-F/2+d.height+A},{x:it+_/2,y:H+F/2},{x:it-_/2,y:H+F/2},{x:it-_/2,y:H-F/2+d.height+A},{x:it-d.width/2,y:H-F/2+d.height+A}]:L=[{x:it-_/2,y:H-F/2},{x:it+_/2,y:H-F/2},{x:it+_/2,y:H-F/2+m},{x:it+d.width/2,y:H-F/2+m},{x:it+d.width/2/2,y:H+F/2},{x:it-d.width/2,y:H+F/2},{x:it-d.width/2,y:H-F/2+m},{x:it-_/2,y:H-F/2+m}],Et.polygon(e,L,tt)},h}w(WA,"icon");async function VA(t,e,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:a}=Rt(e);e.labelStyle=a;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),f=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,f??0);const{shapeSvg:h,bbox:d,label:g}=await Xt(t,e,"icon-shape default"),y=20,m=e.label?8:0,_=e.pos==="t",{nodeBorder:v,mainBkg:C}=n,{stylesMap:S}=ho(e),T=Nt.svg(h),A=Lt(e,{});e.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const B=S.get("fill");A.stroke=B??C;const N=h.append("g");e.icon&&N.html(`<g>${await bu(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const E=N.node().getBBox(),R=E.width,G=E.height,Z=E.x,z=E.y,j=Math.max(R,G)*Math.SQRT2+y*2,tt=T.circle(0,0,j,A),it=Math.max(j,d.width),H=j+d.height+m,F=T.rectangle(-it/2,-H/2,it,H,{...A,fill:"transparent",stroke:"none"}),L=h.insert(()=>tt,":first-child"),U=h.insert(()=>F);return N.attr("transform",`translate(${-R/2-Z},${_?d.height/2+m/2-G/2-z:-d.height/2-m/2-G/2-z})`),N.attr("style",`color: ${S.get("stroke")??v};`),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${_?-H/2:H/2-d.height})`),L.attr("transform",`translate(0,${_?d.height/2+m/2:-d.height/2-m/2})`),Dt(e,U),e.intersect=function($){return ht.info("iconSquare intersect",e,$),Et.rect(e,$)},h}w(VA,"iconCircle");async function XA(t,e,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:a}=Rt(e);e.labelStyle=a;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),f=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,f??0);const{shapeSvg:h,bbox:d,halfPadding:g,label:y}=await Xt(t,e,"icon-shape default"),m=e.pos==="t",_=c+g*2,v=c+g*2,{nodeBorder:C,mainBkg:S}=n,{stylesMap:T}=ho(e),A=-v/2,B=-_/2,N=e.label?8:0,E=Nt.svg(h),R=Lt(e,{});e.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");const G=T.get("fill");R.stroke=G??S;const Z=E.path(nl(A,B,v,_,5),R),z=Math.max(v,d.width),j=_+d.height+N,tt=E.rectangle(-z/2,-j/2,z,j,{...R,fill:"transparent",stroke:"none"}),it=h.insert(()=>Z,":first-child").attr("class","icon-shape2"),H=h.insert(()=>tt);if(e.icon){const F=h.append("g");F.html(`<g>${await bu(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const L=F.node().getBBox(),U=L.width,$=L.height,lt=L.x,D=L.y;F.attr("transform",`translate(${-U/2-lt},${m?d.height/2+N/2-$/2-D:-d.height/2-N/2-$/2-D})`),F.attr("style",`color: ${T.get("stroke")??C};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-j/2:j/2-d.height})`),it.attr("transform",`translate(0,${m?d.height/2+N/2:-d.height/2-N/2})`),Dt(e,H),e.intersect=function(F){if(ht.info("iconSquare intersect",e,F),!e.label)return Et.rect(e,F);const L=e.x??0,U=e.y??0,$=e.height??0;let lt=[];return m?lt=[{x:L-d.width/2,y:U-$/2},{x:L+d.width/2,y:U-$/2},{x:L+d.width/2,y:U-$/2+d.height+N},{x:L+v/2,y:U-$/2+d.height+N},{x:L+v/2,y:U+$/2},{x:L-v/2,y:U+$/2},{x:L-v/2,y:U-$/2+d.height+N},{x:L-d.width/2,y:U-$/2+d.height+N}]:lt=[{x:L-v/2,y:U-$/2},{x:L+v/2,y:U-$/2},{x:L+v/2,y:U-$/2+_},{x:L+d.width/2,y:U-$/2+_},{x:L+d.width/2/2,y:U+$/2},{x:L-d.width/2,y:U+$/2},{x:L-d.width/2,y:U-$/2+_},{x:L-v/2,y:U-$/2+_}],Et.polygon(e,lt,F)},h}w(XA,"iconRounded");async function KA(t,e,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:a}=Rt(e);e.labelStyle=a;const s=e.assetHeight??48,o=e.assetWidth??48,c=Math.max(s,o),f=i==null?void 0:i.wrappingWidth;e.width=Math.max(c,f??0);const{shapeSvg:h,bbox:d,halfPadding:g,label:y}=await Xt(t,e,"icon-shape default"),m=e.pos==="t",_=c+g*2,v=c+g*2,{nodeBorder:C,mainBkg:S}=n,{stylesMap:T}=ho(e),A=-v/2,B=-_/2,N=e.label?8:0,E=Nt.svg(h),R=Lt(e,{});e.look!=="handDrawn"&&(R.roughness=0,R.fillStyle="solid");const G=T.get("fill");R.stroke=G??S;const Z=E.path(nl(A,B,v,_,.1),R),z=Math.max(v,d.width),j=_+d.height+N,tt=E.rectangle(-z/2,-j/2,z,j,{...R,fill:"transparent",stroke:"none"}),it=h.insert(()=>Z,":first-child"),H=h.insert(()=>tt);if(e.icon){const F=h.append("g");F.html(`<g>${await bu(e.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const L=F.node().getBBox(),U=L.width,$=L.height,lt=L.x,D=L.y;F.attr("transform",`translate(${-U/2-lt},${m?d.height/2+N/2-$/2-D:-d.height/2-N/2-$/2-D})`),F.attr("style",`color: ${T.get("stroke")??C};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-j/2:j/2-d.height})`),it.attr("transform",`translate(0,${m?d.height/2+N/2:-d.height/2-N/2})`),Dt(e,H),e.intersect=function(F){if(ht.info("iconSquare intersect",e,F),!e.label)return Et.rect(e,F);const L=e.x??0,U=e.y??0,$=e.height??0;let lt=[];return m?lt=[{x:L-d.width/2,y:U-$/2},{x:L+d.width/2,y:U-$/2},{x:L+d.width/2,y:U-$/2+d.height+N},{x:L+v/2,y:U-$/2+d.height+N},{x:L+v/2,y:U+$/2},{x:L-v/2,y:U+$/2},{x:L-v/2,y:U-$/2+d.height+N},{x:L-d.width/2,y:U-$/2+d.height+N}]:lt=[{x:L-v/2,y:U-$/2},{x:L+v/2,y:U-$/2},{x:L+v/2,y:U-$/2+_},{x:L+d.width/2,y:U-$/2+_},{x:L+d.width/2/2,y:U+$/2},{x:L-d.width/2,y:U+$/2},{x:L-d.width/2,y:U-$/2+_},{x:L-v/2,y:U-$/2+_}],Et.polygon(e,lt,F)},h}w(KA,"iconSquare");async function ZA(t,e,{config:{flowchart:n}}){const i=new Image;i.src=(e==null?void 0:e.img)??"",await i.decode();const a=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/s;const{labelStyles:o}=Rt(e);e.labelStyle=o;const c=n==null?void 0:n.wrappingWidth;e.defaultWidth=n==null?void 0:n.wrappingWidth;const f=Math.max(e.label?c??0:0,(e==null?void 0:e.assetWidth)??a),h=e.constraint==="on"&&e!=null&&e.assetHeight?e.assetHeight*e.imageAspectRatio:f,d=e.constraint==="on"?h/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??s;e.width=Math.max(h,c??0);const{shapeSvg:g,bbox:y,label:m}=await Xt(t,e,"image-shape default"),_=e.pos==="t",v=-h/2,C=-d/2,S=e.label?8:0,T=Nt.svg(g),A=Lt(e,{});e.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const B=T.rectangle(v,C,h,d,A),N=Math.max(h,y.width),E=d+y.height+S,R=T.rectangle(-N/2,-E/2,N,E,{...A,fill:"none",stroke:"none"}),G=g.insert(()=>B,":first-child"),Z=g.insert(()=>R);if(e.img){const z=g.append("image");z.attr("href",e.img),z.attr("width",h),z.attr("height",d),z.attr("preserveAspectRatio","none"),z.attr("transform",`translate(${-h/2},${_?E/2-d:-E/2})`)}return m.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${_?-d/2-y.height/2-S/2:d/2-y.height/2+S/2})`),G.attr("transform",`translate(0,${_?y.height/2+S/2:-y.height/2-S/2})`),Dt(e,Z),e.intersect=function(z){if(ht.info("iconSquare intersect",e,z),!e.label)return Et.rect(e,z);const j=e.x??0,tt=e.y??0,it=e.height??0;let H=[];return _?H=[{x:j-y.width/2,y:tt-it/2},{x:j+y.width/2,y:tt-it/2},{x:j+y.width/2,y:tt-it/2+y.height+S},{x:j+h/2,y:tt-it/2+y.height+S},{x:j+h/2,y:tt+it/2},{x:j-h/2,y:tt+it/2},{x:j-h/2,y:tt-it/2+y.height+S},{x:j-y.width/2,y:tt-it/2+y.height+S}]:H=[{x:j-h/2,y:tt-it/2},{x:j+h/2,y:tt-it/2},{x:j+h/2,y:tt-it/2+d},{x:j+y.width/2,y:tt-it/2+d},{x:j+y.width/2/2,y:tt+it/2},{x:j-y.width/2,y:tt+it/2},{x:j-y.width/2,y:tt-it/2+d},{x:j-h/2,y:tt-it/2+d}],Et.polygon(e,H,z)},g}w(ZA,"imageSquare");async function QA(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),f=[{x:0,y:0},{x:o,y:0},{x:o+3*c/6,y:-c},{x:-3*c/6,y:-c}];let h;const{cssStyles:d}=e;if(e.look==="handDrawn"){const g=Nt.svg(a),y=Lt(e,{}),m=de(f),_=g.path(m,y);h=a.insert(()=>_,":first-child").attr("transform",`translate(${-o/2}, ${c/2})`),d&&h.attr("style",d)}else h=il(a,o,c,f);return i&&h.attr("style",i),e.width=o,e.height=c,Dt(e,h),e.intersect=function(g){return Et.polygon(e,f,g)},a}w(QA,"inv_trapezoid");async function Rd(t,e,n){const{labelStyles:i,nodeStyles:a}=Rt(e);e.labelStyle=i;const{shapeSvg:s,bbox:o}=await Xt(t,e,Gt(e)),c=Math.max(o.width+n.labelPaddingX*2,(e==null?void 0:e.width)||0),f=Math.max(o.height+n.labelPaddingY*2,(e==null?void 0:e.height)||0),h=-c/2,d=-f/2;let g,{rx:y,ry:m}=e;const{cssStyles:_}=e;if(n!=null&&n.rx&&n.ry&&(y=n.rx,m=n.ry),e.look==="handDrawn"){const v=Nt.svg(s),C=Lt(e,{}),S=y||m?v.path(nl(h,d,c,f,y||0),C):v.rectangle(h,d,c,f,C);g=s.insert(()=>S,":first-child"),g.attr("class","basic label-container").attr("style",Jn(_))}else g=s.insert("rect",":first-child"),g.attr("class","basic label-container").attr("style",a).attr("rx",Jn(y)).attr("ry",Jn(m)).attr("x",h).attr("y",d).attr("width",c).attr("height",f);return Dt(e,g),e.calcIntersect=function(v,C){return Et.rect(v,C)},e.intersect=function(v){return Et.rect(e,v)},s}w(Rd,"drawRect");async function JA(t,e){const{shapeSvg:n,bbox:i,label:a}=await Xt(t,e,"label"),s=n.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Dt(e,s),e.intersect=function(f){return Et.rect(e,f)},n}w(JA,"labelRect");async function tM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(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),f=[{x:0,y:0},{x:o+3*c/6,y:0},{x:o,y:-c},{x:-(3*c)/6,y:-c}];let h;const{cssStyles:d}=e;if(e.look==="handDrawn"){const g=Nt.svg(a),y=Lt(e,{}),m=de(f),_=g.path(m,y);h=a.insert(()=>_,":first-child").attr("transform",`translate(${-o/2}, ${c/2})`),d&&h.attr("style",d)}else h=il(a,o,c,f);return i&&h.attr("style",i),e.width=o,e.height=c,Dt(e,h),e.intersect=function(g){return Et.polygon(e,f,g)},a}w(tM,"lean_left");async function eM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(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),f=[{x:-3*c/6,y:0},{x:o,y:0},{x:o+3*c/6,y:-c},{x:0,y:-c}];let h;const{cssStyles:d}=e;if(e.look==="handDrawn"){const g=Nt.svg(a),y=Lt(e,{}),m=de(f),_=g.path(m,y);h=a.insert(()=>_,":first-child").attr("transform",`translate(${-o/2}, ${c/2})`),d&&h.attr("style",d)}else h=il(a,o,c,f);return i&&h.attr("style",i),e.width=o,e.height=c,Dt(e,h),e.intersect=function(g){return Et.polygon(e,f,g)},a}w(eM,"lean_right");function nM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.label="",e.labelStyle=n;const a=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),f=7,h=[{x:o,y:0},{x:0,y:c+f/2},{x:o-2*f,y:c+f/2},{x:0,y:2*c},{x:o,y:c-f/2},{x:2*f,y:c-f/2}],d=Nt.svg(a),g=Lt(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=de(h),m=d.path(y,g),_=a.insert(()=>m,":first-child");return s&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",s),i&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(-${o/2},${-c})`),Dt(e,_),e.intersect=function(v){return ht.info("lightningBolt intersect",e,v),Et.polygon(e,h,v)},a}w(nM,"lightningBolt");var bG=w((t,e,n,i,a,s,o)=>[`M${t},${e+s}`,`a${a},${s} 0,0,0 ${n},0`,`a${a},${s} 0,0,0 ${-n},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${n},0`,`l0,${-i}`,`M${t},${e+s+o}`,`a${a},${s} 0,0,0 ${n},0`].join(" "),"createCylinderPathD"),xG=w((t,e,n,i,a,s,o)=>[`M${t},${e+s}`,`M${t+n},${e+s}`,`a${a},${s} 0,0,0 ${-n},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${n},0`,`l0,${-i}`,`M${t},${e+s+o}`,`a${a},${s} 0,0,0 ${n},0`].join(" "),"createOuterCylinderPathD"),_G=w((t,e,n,i,a,s)=>[`M${t-n/2},${-i/2}`,`a${a},${s} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function iM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0),e.width??0),f=c/2,h=f/(2.5+c/50),d=Math.max(s.height+h+(e.padding??0),e.height??0),g=d*.1;let y;const{cssStyles:m}=e;if(e.look==="handDrawn"){const _=Nt.svg(a),v=xG(0,0,c,d,f,h,g),C=_G(0,h,c,d,f,h),S=Lt(e,{}),T=_.path(v,S),A=_.path(C,S);a.insert(()=>A,":first-child").attr("class","line"),y=a.insert(()=>T,":first-child"),y.attr("class","basic label-container"),m&&y.attr("style",m)}else{const _=bG(0,0,c,d,f,h,g);y=a.insert("path",":first-child").attr("d",_).attr("class","basic label-container").attr("style",Jn(m)).attr("style",i)}return y.attr("label-offset-y",h),y.attr("transform",`translate(${-c/2}, ${-(d/2+h)})`),Dt(e,y),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+h-(s.y-(s.top??0))})`),e.intersect=function(_){const v=Et.rect(e,_),C=v.x-(e.x??0);if(f!=0&&(Math.abs(C)<(e.width??0)/2||Math.abs(C)==(e.width??0)/2&&Math.abs(v.y-(e.y??0))>(e.height??0)/2-h)){let S=h*h*(1-C*C/(f*f));S>0&&(S=Math.sqrt(S)),S=h-S,_.y-(e.y??0)>0&&(S=-S),v.y+=S}return v},a}w(iM,"linedCylinder");async function rM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=f/4,d=f+h,{cssStyles:g}=e,y=Nt.svg(a),m=Lt(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:-c/2-c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:d/2},...Qa(-c/2-c/2*.1,d/2,c/2+c/2*.1,d/2,h,.8),{x:c/2+c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:-d/2},{x:-c/2,y:-d/2},{x:-c/2,y:d/2*1.1},{x:-c/2,y:-d/2}],v=y.polygon(_.map(S=>[S.x,S.y]),m),C=a.insert(()=>v,":first-child");return C.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*.1/2-(s.x-(s.left??0))},${-f/2+(e.padding??0)-h/2-(s.y-(s.top??0))})`),Dt(e,C),e.intersect=function(S){return Et.polygon(e,_,S)},a}w(rM,"linedWaveEdgedRect");async function aM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=5,d=-c/2,g=-f/2,{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{}),v=[{x:d-h,y:g+h},{x:d-h,y:g+f+h},{x:d+c-h,y:g+f+h},{x:d+c-h,y:g+f},{x:d+c,y:g+f},{x:d+c,y:g+f-h},{x:d+c+h,y:g+f-h},{x:d+c+h,y:g-h},{x:d+h,y:g-h},{x:d+h,y:g},{x:d,y:g},{x:d,y:g+h}],C=[{x:d,y:g+h},{x:d+c-h,y:g+h},{x:d+c-h,y:g+f},{x:d+c,y:g+f},{x:d+c,y:g},{x:d,y:g}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=de(v),T=m.path(S,_),A=de(C),B=m.path(A,{..._,fill:"none"}),N=a.insert(()=>B,":first-child");return N.insert(()=>T,":first-child"),N.attr("class","basic label-container"),y&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(s.width/2)-h-(s.x-(s.left??0))}, ${-(s.height/2)+h-(s.y-(s.top??0))})`),Dt(e,N),e.intersect=function(E){return Et.polygon(e,v,E)},a}w(aM,"multiRect");async function lM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=f/4,d=f+h,g=-c/2,y=-d/2,m=5,{cssStyles:_}=e,v=Qa(g-m,y+d+m,g+c-m,y+d+m,h,.8),C=v==null?void 0:v[v.length-1],S=[{x:g-m,y:y+m},{x:g-m,y:y+d+m},...v,{x:g+c-m,y:C.y-m},{x:g+c,y:C.y-m},{x:g+c,y:C.y-2*m},{x:g+c+m,y:C.y-2*m},{x:g+c+m,y:y-m},{x:g+m,y:y-m},{x:g+m,y},{x:g,y},{x:g,y:y+m}],T=[{x:g,y:y+m},{x:g+c-m,y:y+m},{x:g+c-m,y:C.y-m},{x:g+c,y:C.y-m},{x:g+c,y},{x:g,y}],A=Nt.svg(a),B=Lt(e,{});e.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const N=de(S),E=A.path(N,B),R=de(T),G=A.path(R,B),Z=a.insert(()=>E,":first-child");return Z.insert(()=>G),Z.attr("class","basic label-container"),_&&e.look!=="handDrawn"&&Z.selectAll("path").attr("style",_),i&&e.look!=="handDrawn"&&Z.selectAll("path").attr("style",i),Z.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-(s.width/2)-m-(s.x-(s.left??0))}, ${-(s.height/2)+m-h/2-(s.y-(s.top??0))})`),Dt(e,Z),e.intersect=function(z){return Et.polygon(e,S,z)},a}w(lM,"multiWaveEdgedRectangle");async function sM(t,e,{config:{themeVariables:n}}){var T;const{labelStyles:i,nodeStyles:a}=Rt(e);e.labelStyle=i,e.useHtmlLabels||((T=Zn().flowchart)==null?void 0:T.htmlLabels)!==!1||(e.centerLabel=!0);const{shapeSvg:o,bbox:c,label:f}=await Xt(t,e,Gt(e)),h=Math.max(c.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),d=Math.max(c.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),g=-h/2,y=-d/2,{cssStyles:m}=e,_=Nt.svg(o),v=Lt(e,{fill:n.noteBkgColor,stroke:n.noteBorderColor});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const C=_.rectangle(g,y,h,d,v),S=o.insert(()=>C,":first-child");return S.attr("class","basic label-container"),m&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",m),a&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",a),f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),Dt(e,S),e.intersect=function(A){return Et.rect(e,A)},o}w(sM,"note");var vG=w((t,e,n)=>[`M${t+n/2},${e}`,`L${t+n},${e-n/2}`,`L${t+n/2},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function oM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=s.width+e.padding,c=s.height+e.padding,f=o+c,h=.5,d=[{x:f/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}];let g;const{cssStyles:y}=e;if(e.look==="handDrawn"){const m=Nt.svg(a),_=Lt(e,{}),v=vG(0,0,f),C=m.path(v,_);g=a.insert(()=>C,":first-child").attr("transform",`translate(${-f/2+h}, ${f/2})`),y&&g.attr("style",y)}else g=il(a,f,f,d),g.attr("transform",`translate(${-f/2+h}, ${f/2})`);return i&&g.attr("style",i),Dt(e,g),e.calcIntersect=function(m,_){const v=m.width,C=[{x:v/2,y:0},{x:v,y:-v/2},{x:v/2,y:-v},{x:0,y:-v/2}],S=Et.polygon(m,C,_);return{x:S.x-.5,y:S.y-.5}},e.intersect=function(m){return this.calcIntersect(e,m)},a}w(oM,"question");async function cM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),h=-c/2,d=-f/2,g=d/2,y=[{x:h+g,y:d},{x:h,y:0},{x:h+g,y:-d},{x:-h,y:-d},{x:-h,y:d}],{cssStyles:m}=e,_=Nt.svg(a),v=Lt(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const C=de(y),S=_.path(C,v),T=a.insert(()=>S,":first-child");return T.attr("class","basic label-container"),m&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${-g/2},0)`),o.attr("transform",`translate(${-g/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),Dt(e,T),e.intersect=function(A){return Et.polygon(e,y,A)},a}w(cM,"rect_left_inv_arrow");async function uM(t,e){var G,Z;const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;let a;e.cssClasses?a="node "+e.cssClasses:a="node default";const s=t.insert("g").attr("class",a).attr("id",e.domId||e.id),o=s.insert("g"),c=s.insert("g").attr("class","label").attr("style",i),f=e.description,h=e.label,d=c.node().appendChild(await Ol(h,e.labelStyle,!0,!0));let g={width:0,height:0};if(Rn((Z=(G=Oe())==null?void 0:G.flowchart)==null?void 0:Z.htmlLabels)){const z=d.children[0],j=Se(d);g=z.getBoundingClientRect(),j.attr("width",g.width),j.attr("height",g.height)}ht.info("Text 2",f);const y=f||[],m=d.getBBox(),_=c.node().appendChild(await Ol(y.join?y.join("<br/>"):y,e.labelStyle,!0,!0)),v=_.children[0],C=Se(_);g=v.getBoundingClientRect(),C.attr("width",g.width),C.attr("height",g.height);const S=(e.padding||0)/2;Se(_).attr("transform","translate( "+(g.width>m.width?0:(m.width-g.width)/2)+", "+(m.height+S+5)+")"),Se(d).attr("transform","translate( "+(g.width<m.width?0:-(m.width-g.width)/2)+", 0)"),g=c.node().getBBox(),c.attr("transform","translate("+-g.width/2+", "+(-g.height/2-S+3)+")");const T=g.width+(e.padding||0),A=g.height+(e.padding||0),B=-g.width/2-S,N=-g.height/2-S;let E,R;if(e.look==="handDrawn"){const z=Nt.svg(s),j=Lt(e,{}),tt=z.path(nl(B,N,T,A,e.rx||0),j),it=z.line(-g.width/2-S,-g.height/2-S+m.height+S,g.width/2+S,-g.height/2-S+m.height+S,j);R=s.insert(()=>(ht.debug("Rough node insert CXC",tt),it),":first-child"),E=s.insert(()=>(ht.debug("Rough node insert CXC",tt),tt),":first-child")}else E=o.insert("rect",":first-child"),R=o.insert("line"),E.attr("class","outer title-state").attr("style",i).attr("x",-g.width/2-S).attr("y",-g.height/2-S).attr("width",g.width+(e.padding||0)).attr("height",g.height+(e.padding||0)),R.attr("class","divider").attr("x1",-g.width/2-S).attr("x2",g.width/2+S).attr("y1",-g.height/2-S+m.height+S).attr("y2",-g.height/2-S+m.height+S);return Dt(e,E),e.intersect=function(z){return Et.rect(e,z)},s}w(uM,"rectWithTitle");function Rc(t,e,n,i,a,s,o){const f=(t+n)/2,h=(e+i)/2,d=Math.atan2(i-e,n-t),g=(n-t)/2,y=(i-e)/2,m=g/a,_=y/s,v=Math.sqrt(m**2+_**2);if(v>1)throw new Error("The given radii are too small to create an arc between the points.");const C=Math.sqrt(1-v**2),S=f+C*s*Math.sin(d)*(o?-1:1),T=h-C*a*Math.cos(d)*(o?-1:1),A=Math.atan2((e-T)/s,(t-S)/a);let N=Math.atan2((i-T)/s,(n-S)/a)-A;o&&N<0&&(N+=2*Math.PI),!o&&N>0&&(N-=2*Math.PI);const E=[];for(let R=0;R<20;R++){const G=R/19,Z=A+G*N,z=S+a*Math.cos(Z),j=T+s*Math.sin(Z);E.push({x:z,y:j})}return E}w(Rc,"generateArcPoints");async function hM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=(e==null?void 0:e.padding)??0,c=(e==null?void 0:e.padding)??0,f=(e!=null&&e.width?e==null?void 0:e.width:s.width)+o*2,h=(e!=null&&e.height?e==null?void 0:e.height:s.height)+c*2,d=e.radius||5,g=e.taper||5,{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{});e.stroke&&(_.stroke=e.stroke),e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=[{x:-f/2+g,y:-h/2},{x:f/2-g,y:-h/2},...Rc(f/2-g,-h/2,f/2,-h/2+g,d,d,!0),{x:f/2,y:-h/2+g},{x:f/2,y:h/2-g},...Rc(f/2,h/2-g,f/2-g,h/2,d,d,!0),{x:f/2-g,y:h/2},{x:-f/2+g,y:h/2},...Rc(-f/2+g,h/2,-f/2,h/2-g,d,d,!0),{x:-f/2,y:h/2-g},{x:-f/2,y:-h/2+g},...Rc(-f/2,-h/2+g,-f/2+g,-h/2,d,d,!0)],C=de(v),S=m.path(C,_),T=a.insert(()=>S,":first-child");return T.attr("class","basic label-container outer-path"),y&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",y),i&&e.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),Dt(e,T),e.intersect=function(A){return Et.polygon(e,v,A)},a}w(hM,"roundedRect");async function fM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=(e==null?void 0:e.padding)??0,f=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),h=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),d=-s.width/2-c,g=-s.height/2-c,{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=[{x:d,y:g},{x:d+f+8,y:g},{x:d+f+8,y:g+h},{x:d-8,y:g+h},{x:d-8,y:g},{x:d,y:g},{x:d,y:g+h}],C=m.polygon(v.map(T=>[T.x,T.y]),_),S=a.insert(()=>C,":first-child");return S.attr("class","basic label-container").attr("style",Jn(y)),i&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),y&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",i),o.attr("transform",`translate(${-f/2+4+(e.padding??0)-(s.x-(s.left??0))},${-h/2+(e.padding??0)-(s.y-(s.top??0))})`),Dt(e,S),e.intersect=function(T){return Et.rect(e,T)},a}w(fM,"shadedProcess");async function dM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-c/2,d=-f/2,{cssStyles:g}=e,y=Nt.svg(a),m=Lt(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const _=[{x:h,y:d},{x:h,y:d+f},{x:h+c,y:d+f},{x:h+c,y:d-f/2}],v=de(_),C=y.path(v,m),S=a.insert(()=>C,":first-child");return S.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),S.attr("transform",`translate(0, ${f/4})`),o.attr("transform",`translate(${-c/2+(e.padding??0)-(s.x-(s.left??0))}, ${-f/4+(e.padding??0)-(s.y-(s.top??0))})`),Dt(e,S),e.intersect=function(T){return Et.polygon(e,_,T)},a}w(dM,"slopedRect");async function pM(t,e){const n={rx:0,ry:0,labelPaddingX:e.labelPaddingX??((e==null?void 0:e.padding)||0)*2,labelPaddingY:((e==null?void 0:e.padding)||0)*1};return Rd(t,e,n)}w(pM,"squareRect");async function gM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=s.height+e.padding,c=s.width+o/4+e.padding,f=o/2,{cssStyles:h}=e,d=Nt.svg(a),g=Lt(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-c/2+f,y:-o/2},{x:c/2-f,y:-o/2},...iu(-c/2+f,0,f,50,90,270),{x:c/2-f,y:o/2},...iu(c/2-f,0,f,50,270,450)],m=de(y),_=d.path(m,g),v=a.insert(()=>_,":first-child");return v.attr("class","basic label-container outer-path"),h&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",h),i&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),Dt(e,v),e.intersect=function(C){return Et.polygon(e,y,C)},a}w(gM,"stadium");async function mM(t,e){return Rd(t,e,{rx:5,ry:5})}w(mM,"state");function yM(t,e,{config:{themeVariables:n}}){const{labelStyles:i,nodeStyles:a}=Rt(e);e.labelStyle=i;const{cssStyles:s}=e,{lineColor:o,stateBorder:c,nodeBorder:f}=n,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),d=Nt.svg(h),g=Lt(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=d.circle(0,0,14,{...g,stroke:o,strokeWidth:2}),m=c??f,_=d.circle(0,0,5,{...g,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),v=h.insert(()=>y,":first-child");return v.insert(()=>_),s&&v.selectAll("path").attr("style",s),a&&v.selectAll("path").attr("style",a),Dt(e,v),e.intersect=function(C){return Et.circle(e,7,C)},h}w(yM,"stateEnd");function bM(t,e,{config:{themeVariables:n}}){const{lineColor:i}=n,a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s;if(e.look==="handDrawn"){const c=Nt.svg(a).circle(0,0,14,IP(i));s=a.insert(()=>c),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Dt(e,s),e.intersect=function(o){return Et.circle(e,7,o)},a}w(bM,"stateStart");async function xM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=((e==null?void 0:e.padding)||0)/2,c=s.width+e.padding,f=s.height+e.padding,h=-s.width/2-o,d=-s.height/2-o,g=[{x:0,y:0},{x:c,y:0},{x:c,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(e.look==="handDrawn"){const y=Nt.svg(a),m=Lt(e,{}),_=y.rectangle(h-8,d,c+16,f,m),v=y.line(h,d,h,d+f,m),C=y.line(h+c,d,h+c,d+f,m);a.insert(()=>v,":first-child"),a.insert(()=>C,":first-child");const S=a.insert(()=>_,":first-child"),{cssStyles:T}=e;S.attr("class","basic label-container").attr("style",Jn(T)),Dt(e,S)}else{const y=il(a,c,f,g);i&&y.attr("style",i),Dt(e,y)}return e.intersect=function(y){return Et.polygon(e,g,y)},a}w(xM,"subroutine");async function _M(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),f=-o/2,h=-c/2,d=.2*c,g=.2*c,{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{}),v=[{x:f-d/2,y:h},{x:f+o+d/2,y:h},{x:f+o+d/2,y:h+c},{x:f-d/2,y:h+c}],C=[{x:f+o-d/2,y:h+c},{x:f+o+d/2,y:h+c},{x:f+o+d/2,y:h+c-g}];e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=de(v),T=m.path(S,_),A=de(C),B=m.path(A,{..._,fillStyle:"solid"}),N=a.insert(()=>B,":first-child");return N.insert(()=>T,":first-child"),N.attr("class","basic label-container"),y&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",i),Dt(e,N),e.intersect=function(E){return Et.polygon(e,v,E)},a}w(_M,"taggedRect");async function vM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=f/4,d=.2*c,g=.2*f,y=f+h,{cssStyles:m}=e,_=Nt.svg(a),v=Lt(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const C=[{x:-c/2-c/2*.1,y:y/2},...Qa(-c/2-c/2*.1,y/2,c/2+c/2*.1,y/2,h,.8),{x:c/2+c/2*.1,y:-y/2},{x:-c/2-c/2*.1,y:-y/2}],S=-c/2+c/2*.1,T=-y/2-g*.4,A=[{x:S+c-d,y:(T+f)*1.4},{x:S+c,y:T+f-g},{x:S+c,y:(T+f)*.9},...Qa(S+c,(T+f)*1.3,S+c-d,(T+f)*1.5,-f*.03,.5)],B=de(C),N=_.path(B,v),E=de(A),R=_.path(E,{...v,fillStyle:"solid"}),G=a.insert(()=>R,":first-child");return G.insert(()=>N,":first-child"),G.attr("class","basic label-container"),m&&e.look!=="handDrawn"&&G.selectAll("path").attr("style",m),i&&e.look!=="handDrawn"&&G.selectAll("path").attr("style",i),G.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-c/2+(e.padding??0)-(s.x-(s.left??0))},${-f/2+(e.padding??0)-h/2-(s.y-(s.top??0))})`),Dt(e,G),e.intersect=function(Z){return Et.polygon(e,C,Z)},a}w(vM,"taggedWaveEdgedRectangle");async function SM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=Math.max(s.width+e.padding,(e==null?void 0:e.width)||0),c=Math.max(s.height+e.padding,(e==null?void 0:e.height)||0),f=-o/2,h=-c/2,d=a.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",f).attr("y",h).attr("width",o).attr("height",c),Dt(e,d),e.intersect=function(g){return Et.rect(e,g)},a}w(SM,"text");var SG=w((t,e,n,i,a,s)=>`M${t},${e}
275
+ a${a},${s} 0,0,1 0,${-i}
276
+ l${n},0
277
+ a${a},${s} 0,0,1 0,${i}
278
+ M${n},${-i}
279
+ a${a},${s} 0,0,0 0,${i}
280
+ l${-n},0`,"createCylinderPathD"),wG=w((t,e,n,i,a,s)=>[`M${t},${e}`,`M${t+n},${e}`,`a${a},${s} 0,0,0 0,${-i}`,`l${-n},0`,`a${a},${s} 0,0,0 0,${i}`,`l${n},0`].join(" "),"createOuterCylinderPathD"),CG=w((t,e,n,i,a,s)=>[`M${t+n/2},${-i/2}`,`a${a},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function wM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o,halfPadding:c}=await Xt(t,e,Gt(e)),f=e.look==="neo"?c*2:c,h=s.height+f,d=h/2,g=d/(2.5+h/50),y=s.width+g+f,{cssStyles:m}=e;let _;if(e.look==="handDrawn"){const v=Nt.svg(a),C=wG(0,0,y,h,g,d),S=CG(0,0,y,h,g,d),T=v.path(C,Lt(e,{})),A=v.path(S,Lt(e,{fill:"none"}));_=a.insert(()=>A,":first-child"),_=a.insert(()=>T,":first-child"),_.attr("class","basic label-container"),m&&_.attr("style",m)}else{const v=SG(0,0,y,h,g,d);_=a.insert("path",":first-child").attr("d",v).attr("class","basic label-container").attr("style",Jn(m)).attr("style",i),_.attr("class","basic label-container"),m&&_.selectAll("path").attr("style",m),i&&_.selectAll("path").attr("style",i)}return _.attr("label-offset-x",g),_.attr("transform",`translate(${-y/2}, ${h/2} )`),o.attr("transform",`translate(${-(s.width/2)-g-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),Dt(e,_),e.intersect=function(v){const C=Et.rect(e,v),S=C.y-(e.y??0);if(d!=0&&(Math.abs(S)<(e.height??0)/2||Math.abs(S)==(e.height??0)/2&&Math.abs(C.x-(e.x??0))>(e.width??0)/2-g)){let T=g*g*(1-S*S/(d*d));T!=0&&(T=Math.sqrt(Math.abs(T))),T=g-T,v.x-(e.x??0)>0&&(T=-T),C.x+=T}return C},a}w(wM,"tiltedCylinder");async function CM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=s.width+e.padding,c=s.height+e.padding,f=[{x:-3*c/6,y:0},{x:o+3*c/6,y:0},{x:o,y:-c},{x:0,y:-c}];let h;const{cssStyles:d}=e;if(e.look==="handDrawn"){const g=Nt.svg(a),y=Lt(e,{}),m=de(f),_=g.path(m,y);h=a.insert(()=>_,":first-child").attr("transform",`translate(${-o/2}, ${c/2})`),d&&h.attr("style",d)}else h=il(a,o,c,f);return i&&h.attr("style",i),e.width=o,e.height=c,Dt(e,h),e.intersect=function(g){return Et.polygon(e,f,g)},a}w(CM,"trapezoid");async function kM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=60,c=20,f=Math.max(o,s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),h=Math.max(c,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),{cssStyles:d}=e,g=Nt.svg(a),y=Lt(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-f/2*.8,y:-h/2},{x:f/2*.8,y:-h/2},{x:f/2,y:-h/2*.6},{x:f/2,y:h/2},{x:-f/2,y:h/2},{x:-f/2,y:-h/2*.6}],_=de(m),v=g.path(_,y),C=a.insert(()=>v,":first-child");return C.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",d),i&&e.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),Dt(e,C),e.intersect=function(S){return Et.polygon(e,m,S)},a}w(kM,"trapezoidalPentagon");async function EM(t,e){var T;const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Rn((T=Oe().flowchart)==null?void 0:T.htmlLabels),f=s.width+(e.padding??0),h=f+s.height,d=f+s.height,g=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-h}],{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=de(g),C=m.path(v,_),S=a.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return y&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",y),i&&e.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),e.width=f,e.height=h,Dt(e,S),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${h/2-(s.height+(e.padding??0)/(c?2:1)-(s.y-(s.top??0)))})`),e.intersect=function(A){return ht.info("Triangle intersect",e,g,A),Et.polygon(e,g,A)},a}w(EM,"triangle");async function TM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=f/8,d=f+h,{cssStyles:g}=e,m=70-c,_=m>0?m/2:0,v=Nt.svg(a),C=Lt(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const S=[{x:-c/2-_,y:d/2},...Qa(-c/2-_,d/2,c/2+_,d/2,h,.8),{x:c/2+_,y:-d/2},{x:-c/2-_,y:-d/2}],T=de(S),A=v.path(T,C),B=a.insert(()=>A,":first-child");return B.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&B.selectAll("path").attr("style",g),i&&e.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-c/2+(e.padding??0)-(s.x-(s.left??0))},${-f/2+(e.padding??0)-h-(s.y-(s.top??0))})`),Dt(e,B),e.intersect=function(N){return Et.polygon(e,S,N)},a}w(TM,"waveEdgedRectangle");async function AM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await Xt(t,e,Gt(e)),o=100,c=50,f=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),h=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),d=f/h;let g=f,y=h;g>y*d?y=g/d:g=y*d,g=Math.max(g,o),y=Math.max(y,c);const m=Math.min(y*.2,y/4),_=y+m*2,{cssStyles:v}=e,C=Nt.svg(a),S=Lt(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const T=[{x:-g/2,y:_/2},...Qa(-g/2,_/2,g/2,_/2,m,1),{x:g/2,y:-_/2},...Qa(g/2,-_/2,-g/2,-_/2,m,-1)],A=de(T),B=C.path(A,S),N=a.insert(()=>B,":first-child");return N.attr("class","basic label-container"),v&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",v),i&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",i),Dt(e,N),e.intersect=function(E){return Et.polygon(e,T,E)},a}w(AM,"waveRectangle");async function MM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,label:o}=await Xt(t,e,Gt(e)),c=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),f=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=5,d=-c/2,g=-f/2,{cssStyles:y}=e,m=Nt.svg(a),_=Lt(e,{}),v=[{x:d-h,y:g-h},{x:d-h,y:g+f},{x:d+c,y:g+f},{x:d+c,y:g-h}],C=`M${d-h},${g-h} L${d+c},${g-h} L${d+c},${g+f} L${d-h},${g+f} L${d-h},${g-h}
281
+ M${d-h},${g} L${d+c},${g}
282
+ M${d},${g-h} L${d},${g+f}`;e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=m.path(C,_),T=a.insert(()=>S,":first-child");return T.attr("transform",`translate(${h/2}, ${h/2})`),T.attr("class","basic label-container"),y&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",y),i&&e.look!=="handDrawn"&&T.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(s.width/2)+h/2-(s.x-(s.left??0))}, ${-(s.height/2)+h/2-(s.y-(s.top??0))})`),Dt(e,T),e.intersect=function(A){return Et.polygon(e,v,A)},a}w(MM,"windowPane");async function u0(t,e){var K,O,ft,bt;const n=e;if(n.alias&&(e.label=n.alias),e.look==="handDrawn"){const{themeVariables:pt}=Zn(),{background:St}=pt,Ft={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${St}`]};await u0(t,Ft)}const i=Zn();e.useHtmlLabels=i.htmlLabels;let a=((K=i.er)==null?void 0:K.diagramPadding)??10,s=((O=i.er)==null?void 0:O.entityPadding)??6;const{cssStyles:o}=e,{labelStyles:c,nodeStyles:f}=Rt(e);if(n.attributes.length===0&&e.label){const pt={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5};da(e.label,i)+pt.labelPaddingX*2<i.er.minEntityWidth&&(e.width=i.er.minEntityWidth);const St=await Rd(t,e,pt);if(!Rn(i.htmlLabels)){const Ft=St.select("text"),Ut=(ft=Ft.node())==null?void 0:ft.getBBox();Ft.attr("transform",`translate(${-Ut.width/2}, 0)`)}return St}i.htmlLabels||(a*=1.25,s*=1.25);let h=Gt(e);h||(h="node default");const d=t.insert("g").attr("class",h).attr("id",e.domId||e.id),g=await Fs(d,e.label??"",i,0,0,["name"],c);g.height+=s;let y=0;const m=[],_=[];let v=0,C=0,S=0,T=0,A=!0,B=!0;for(const pt of n.attributes){const St=await Fs(d,pt.type,i,0,y,["attribute-type"],c);v=Math.max(v,St.width+a);const Ft=await Fs(d,pt.name,i,0,y,["attribute-name"],c);C=Math.max(C,Ft.width+a);const Ut=await Fs(d,pt.keys.join(),i,0,y,["attribute-keys"],c);S=Math.max(S,Ut.width+a);const Jt=await Fs(d,pt.comment,i,0,y,["attribute-comment"],c);T=Math.max(T,Jt.width+a);const ve=Math.max(St.height,Ft.height,Ut.height,Jt.height)+s;_.push({yOffset:y,rowHeight:ve}),y+=ve}let N=4;S<=a&&(A=!1,S=0,N--),T<=a&&(B=!1,T=0,N--);const E=d.node().getBBox();if(g.width+a*2-(v+C+S+T)>0){const pt=g.width+a*2-(v+C+S+T);v+=pt/N,C+=pt/N,S>0&&(S+=pt/N),T>0&&(T+=pt/N)}const R=v+C+S+T,G=Nt.svg(d),Z=Lt(e,{});e.look!=="handDrawn"&&(Z.roughness=0,Z.fillStyle="solid");let z=0;_.length>0&&(z=_.reduce((pt,St)=>pt+((St==null?void 0:St.rowHeight)??0),0));const j=Math.max(E.width+a*2,(e==null?void 0:e.width)||0,R),tt=Math.max((z??0)+g.height,(e==null?void 0:e.height)||0),it=-j/2,H=-tt/2;d.selectAll("g:not(:first-child)").each((pt,St,Ft)=>{const Ut=Se(Ft[St]),Jt=Ut.attr("transform");let ve=0,hn=0;if(Jt){const sn=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Jt);sn&&(ve=parseFloat(sn[1]),hn=parseFloat(sn[2]),Ut.attr("class").includes("attribute-name")?ve+=v:Ut.attr("class").includes("attribute-keys")?ve+=v+C:Ut.attr("class").includes("attribute-comment")&&(ve+=v+C+S))}Ut.attr("transform",`translate(${it+a/2+ve}, ${hn+H+g.height+s/2})`)}),d.select(".name").attr("transform","translate("+-g.width/2+", "+(H+s/2)+")");const F=G.rectangle(it,H,j,tt,Z),L=d.insert(()=>F,":first-child").attr("style",o.join("")),{themeVariables:U}=Zn(),{rowEven:$,rowOdd:lt,nodeBorder:D}=U;m.push(0);for(const[pt,St]of _.entries()){const Ut=(pt+1)%2===0&&St.yOffset!==0,Jt=G.rectangle(it,g.height+H+(St==null?void 0:St.yOffset),j,St==null?void 0:St.rowHeight,{...Z,fill:Ut?$:lt,stroke:D});d.insert(()=>Jt,"g.label").attr("style",o.join("")).attr("class",`row-rect-${Ut?"even":"odd"}`)}let I=G.line(it,g.height+H,j+it,g.height+H,Z);d.insert(()=>I).attr("class","divider"),I=G.line(v+it,g.height+H,v+it,tt+H,Z),d.insert(()=>I).attr("class","divider"),A&&(I=G.line(v+C+it,g.height+H,v+C+it,tt+H,Z),d.insert(()=>I).attr("class","divider")),B&&(I=G.line(v+C+S+it,g.height+H,v+C+S+it,tt+H,Z),d.insert(()=>I).attr("class","divider"));for(const pt of m)I=G.line(it,g.height+H+pt,j+it,g.height+H+pt,Z),d.insert(()=>I).attr("class","divider");if(Dt(e,L),f&&e.look!=="handDrawn"){const pt=f.split(";"),St=(bt=pt==null?void 0:pt.filter(Ft=>Ft.includes("stroke")))==null?void 0:bt.map(Ft=>`${Ft}`).join("; ");d.selectAll("path").attr("style",St??""),d.selectAll(".row-rect-even path").attr("style",f)}return e.intersect=function(pt){return Et.rect(e,pt)},d}w(u0,"erBox");async function Fs(t,e,n,i=0,a=0,s=[],o=""){const c=t.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",o);e!==yS(e)&&(e=yS(e),e=e.replaceAll("<","&lt;").replaceAll(">","&gt;"));const f=c.node().appendChild(await el(c,e,{width:da(e,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(e.includes("&lt;")||e.includes("&gt;")){let d=f.children[0];for(d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let h=f.getBBox();if(Rn(n.htmlLabels)){const d=f.children[0];d.style.textAlign="start";const g=Se(f);h=d.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return h}w(Fs,"addText");async function NM(t,e,n,i,a=n.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,f=null,h=null,d=null,g=0,y=0,m=0;if(c=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const T=e.annotations[0];await Dc(c,{text:`«${T}»`},0),g=c.node().getBBox().height}f=o.insert("g").attr("class","label-group text"),await Dc(f,e,0,["font-weight: bolder"]);const _=f.node().getBBox();y=_.height,h=o.insert("g").attr("class","members-group text");let v=0;for(const T of e.members){const A=await Dc(h,T,v,[T.parseClassifier()]);v+=A+s}m=h.node().getBBox().height,m<=0&&(m=a/2),d=o.insert("g").attr("class","methods-group text");let C=0;for(const T of e.methods){const A=await Dc(d,T,C,[T.parseClassifier()]);C+=A+s}let S=o.node().getBBox();if(c!==null){const T=c.node().getBBox();c.attr("transform",`translate(${-T.width/2})`)}return f.attr("transform",`translate(${-_.width/2}, ${g})`),S=o.node().getBBox(),h.attr("transform",`translate(0, ${g+y+a*2})`),S=o.node().getBBox(),d.attr("transform",`translate(0, ${g+y+(m?m+a*4:a*2)})`),S=o.node().getBBox(),{shapeSvg:o,bbox:S}}w(NM,"textHelper");async function Dc(t,e,n,i=[]){const a=t.insert("g").attr("class","label").attr("style",i.join("; ")),s=Zn();let o="useHtmlLabels"in e?e.useHtmlLabels:Rn(s.htmlLabels)??!0,c="";"text"in e?c=e.text:c=e.label,!o&&c.startsWith("\\")&&(c=c.substring(1)),eo(c)&&(o=!0);const f=await el(a,_b(Wl(c)),{width:da(c,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s);let h,d=1;if(o){const g=f.children[0],y=Se(f);d=g.innerHTML.split("<br>").length,g.innerHTML.includes("</math>")&&(d+=g.innerHTML.split("<mrow>").length-1);const m=g.getElementsByTagName("img");if(m){const _=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(v=>new Promise(C=>{function S(){var T;if(v.style.display="flex",v.style.flexDirection="column",_){const A=((T=s.fontSize)==null?void 0:T.toString())??window.getComputedStyle(document.body).fontSize,N=parseInt(A,10)*5+"px";v.style.minWidth=N,v.style.maxWidth=N}else v.style.width="100%";C(v)}w(S,"setupImage"),setTimeout(()=>{v.complete&&S()}),v.addEventListener("error",S),v.addEventListener("load",S)})))}h=g.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Se(f).selectAll("tspan").attr("font-weight",""),d=f.children.length;const g=f.children[0];(f.textContent===""||f.textContent.includes("&gt"))&&(g.textContent=c[0]+c.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),c[1]===" "&&(g.textContent=g.textContent[0]+" "+g.textContent.substring(1))),g.textContent==="undefined"&&(g.textContent=""),h=f.getBBox()}return a.attr("transform","translate(0,"+(-h.height/(2*d)+n)+")"),h.height}w(Dc,"addText");async function OM(t,e){var Z,z;const n=Oe(),i=n.class.padding??12,a=i,s=e.useHtmlLabels??Rn(n.htmlLabels)??!0,o=e;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:c,bbox:f}=await NM(t,e,n,s,a),{labelStyles:h,nodeStyles:d}=Rt(e);e.labelStyle=h,e.cssStyles=o.styles||"";const g=((Z=o.styles)==null?void 0:Z.join(";"))||d||"";e.cssStyles||(e.cssStyles=g.replaceAll("!important","").split(";"));const y=o.members.length===0&&o.methods.length===0&&!((z=n.class)!=null&&z.hideEmptyMembersBox),m=Nt.svg(c),_=Lt(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const v=f.width;let C=f.height;o.members.length===0&&o.methods.length===0?C+=a:o.members.length>0&&o.methods.length===0&&(C+=a*2);const S=-v/2,T=-C/2,A=m.rectangle(S-i,T-i-(y?i:o.members.length===0&&o.methods.length===0?-i/2:0),v+2*i,C+2*i+(y?i*2:o.members.length===0&&o.methods.length===0?-i:0),_),B=c.insert(()=>A,":first-child");B.attr("class","basic label-container");const N=B.node().getBBox();c.selectAll(".text").each((j,tt,it)=>{var lt;const H=Se(it[tt]),F=H.attr("transform");let L=0;if(F){const I=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);I&&(L=parseFloat(I[2]))}let U=L+T+i-(y?i:o.members.length===0&&o.methods.length===0?-i/2:0);s||(U-=4);let $=S;(H.attr("class").includes("label-group")||H.attr("class").includes("annotation-group"))&&($=-((lt=H.node())==null?void 0:lt.getBBox().width)/2||0,c.selectAll("text").each(function(D,I,K){window.getComputedStyle(K[I]).textAnchor==="middle"&&($=0)})),H.attr("transform",`translate(${$}, ${U})`)});const E=c.select(".annotation-group").node().getBBox().height-(y?i/2:0)||0,R=c.select(".label-group").node().getBBox().height-(y?i/2:0)||0,G=c.select(".members-group").node().getBBox().height-(y?i/2:0)||0;if(o.members.length>0||o.methods.length>0||y){const j=m.line(N.x,E+R+T+i,N.x+N.width,E+R+T+i,_);c.insert(()=>j).attr("class","divider").attr("style",g)}if(y||o.members.length>0||o.methods.length>0){const j=m.line(N.x,E+R+G+T+a*2+i,N.x+N.width,E+R+G+T+i+a*2,_);c.insert(()=>j).attr("class","divider").attr("style",g)}if(o.look!=="handDrawn"&&c.selectAll("path").attr("style",g),B.select(":nth-child(2)").attr("style",g),c.selectAll(".divider").select("path").attr("style",g),e.labelStyle?c.selectAll("span").attr("style",e.labelStyle):c.selectAll("span").attr("style",g),!s){const j=RegExp(/color\s*:\s*([^;]*)/),tt=j.exec(g);if(tt){const it=tt[0].replace("color","fill");c.selectAll("tspan").attr("style",it)}else if(h){const it=j.exec(h);if(it){const H=it[0].replace("color","fill");c.selectAll("tspan").attr("style",H)}}}return Dt(e,B),e.intersect=function(j){return Et.rect(e,j)},c}w(OM,"classBox");async function LM(t,e){var E,R;const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const a=e,s=e,o=20,c=20,f="verifyMethod"in e,h=Gt(e),d=t.insert("g").attr("class",h).attr("id",e.domId??e.id);let g;f?g=await Nr(d,`&lt;&lt;${a.type}&gt;&gt;`,0,e.labelStyle):g=await Nr(d,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let y=g;const m=await Nr(d,a.name,y,e.labelStyle+"; font-weight: bold;");if(y+=m+c,f){const G=await Nr(d,`${a.requirementId?`ID: ${a.requirementId}`:""}`,y,e.labelStyle);y+=G;const Z=await Nr(d,`${a.text?`Text: ${a.text}`:""}`,y,e.labelStyle);y+=Z;const z=await Nr(d,`${a.risk?`Risk: ${a.risk}`:""}`,y,e.labelStyle);y+=z,await Nr(d,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,y,e.labelStyle)}else{const G=await Nr(d,`${s.type?`Type: ${s.type}`:""}`,y,e.labelStyle);y+=G,await Nr(d,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,y,e.labelStyle)}const _=(((E=d.node())==null?void 0:E.getBBox().width)??200)+o,v=(((R=d.node())==null?void 0:R.getBBox().height)??200)+o,C=-_/2,S=-v/2,T=Nt.svg(d),A=Lt(e,{});e.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const B=T.rectangle(C,S,_,v,A),N=d.insert(()=>B,":first-child");if(N.attr("class","basic label-container").attr("style",i),d.selectAll(".label").each((G,Z,z)=>{const j=Se(z[Z]),tt=j.attr("transform");let it=0,H=0;if(tt){const $=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(tt);$&&(it=parseFloat($[1]),H=parseFloat($[2]))}const F=H-v/2;let L=C+o/2;(Z===0||Z===1)&&(L=it),j.attr("transform",`translate(${L}, ${F+o})`)}),y>g+m+c){const G=T.line(C,S+g+m+c,C+_,S+g+m+c,A);d.insert(()=>G).attr("style",i)}return Dt(e,N),e.intersect=function(G){return Et.rect(e,G)},d}w(LM,"requirementBox");async function Nr(t,e,n,i=""){if(e==="")return 0;const a=t.insert("g").attr("class","label").attr("style",i),s=Oe(),o=s.htmlLabels??!0,c=await el(a,_b(Wl(e)),{width:da(e,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},s);let f;if(o){const h=c.children[0],d=Se(c);f=h.getBoundingClientRect(),d.attr("width",f.width),d.attr("height",f.height)}else{const h=c.children[0];for(const d of h.children)d.textContent=d.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),i&&d.setAttribute("style",i);f=c.getBBox(),f.height+=6}return a.attr("transform",`translate(${-f.width/2},${-f.height/2+n})`),f.height}w(Nr,"addText");var kG=w(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 RM(t,e,{config:n}){var tt,it;const{labelStyles:i,nodeStyles:a}=Rt(e);e.labelStyle=i||"";const s=10,o=e.width;e.width=(e.width??200)-10;const{shapeSvg:c,bbox:f,label:h}=await Xt(t,e,Gt(e)),d=e.padding||10;let g="",y;"ticket"in e&&e.ticket&&((tt=n==null?void 0:n.kanban)!=null&&tt.ticketBaseUrl)&&(g=(it=n==null?void 0:n.kanban)==null?void 0:it.ticketBaseUrl.replace("#TICKET#",e.ticket),y=c.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",g).attr("target","_blank"));const m={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let _,v;y?{label:_,bbox:v}=await Nm(y,"ticket"in e&&e.ticket||"",m):{label:_,bbox:v}=await Nm(c,"ticket"in e&&e.ticket||"",m);const{label:C,bbox:S}=await Nm(c,"assigned"in e&&e.assigned||"",m);e.width=o;const T=10,A=(e==null?void 0:e.width)||0,B=Math.max(v.height,S.height)/2,N=Math.max(f.height+T*2,(e==null?void 0:e.height)||0)+B,E=-A/2,R=-N/2;h.attr("transform","translate("+(d-A/2)+", "+(-B-f.height/2)+")"),_.attr("transform","translate("+(d-A/2)+", "+(-B+f.height/2)+")"),C.attr("transform","translate("+(d+A/2-S.width-2*s)+", "+(-B+f.height/2)+")");let G;const{rx:Z,ry:z}=e,{cssStyles:j}=e;if(e.look==="handDrawn"){const H=Nt.svg(c),F=Lt(e,{}),L=Z||z?H.path(nl(E,R,A,N,Z||0),F):H.rectangle(E,R,A,N,F);G=c.insert(()=>L,":first-child"),G.attr("class","basic label-container").attr("style",j||null)}else{G=c.insert("rect",":first-child"),G.attr("class","basic label-container __APA__").attr("style",a).attr("rx",Z??5).attr("ry",z??5).attr("x",E).attr("y",R).attr("width",A).attr("height",N);const H="priority"in e&&e.priority;if(H){const F=c.append("line"),L=E+2,U=R+Math.floor((Z??0)/2),$=R+N-Math.floor((Z??0)/2);F.attr("x1",L).attr("y1",U).attr("x2",L).attr("y2",$).attr("stroke-width","4").attr("stroke",kG(H))}}return Dt(e,G),e.height=N,e.intersect=function(H){return Et.rect(e,H)},c}w(RM,"kanbanItem");async function DM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o,label:c}=await Xt(t,e,Gt(e)),f=s.width+10*o,h=s.height+8*o,d=.15*f,{cssStyles:g}=e,y=s.width+20,m=s.height+20,_=Math.max(f,y),v=Math.max(h,m);c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let C;const S=`M0 0
283
+ a${d},${d} 1 0,0 ${_*.25},${-1*v*.1}
284
+ a${d},${d} 1 0,0 ${_*.25},0
285
+ a${d},${d} 1 0,0 ${_*.25},0
286
+ a${d},${d} 1 0,0 ${_*.25},${v*.1}
287
+
288
+ a${d},${d} 1 0,0 ${_*.15},${v*.33}
289
+ a${d*.8},${d*.8} 1 0,0 0,${v*.34}
290
+ a${d},${d} 1 0,0 ${-1*_*.15},${v*.33}
291
+
292
+ a${d},${d} 1 0,0 ${-1*_*.25},${v*.15}
293
+ a${d},${d} 1 0,0 ${-1*_*.25},0
294
+ a${d},${d} 1 0,0 ${-1*_*.25},0
295
+ a${d},${d} 1 0,0 ${-1*_*.25},${-1*v*.15}
296
+
297
+ a${d},${d} 1 0,0 ${-1*_*.1},${-1*v*.33}
298
+ a${d*.8},${d*.8} 1 0,0 0,${-1*v*.34}
299
+ a${d},${d} 1 0,0 ${_*.1},${-1*v*.33}
300
+ H0 V0 Z`;if(e.look==="handDrawn"){const T=Nt.svg(a),A=Lt(e,{}),B=T.path(S,A);C=a.insert(()=>B,":first-child"),C.attr("class","basic label-container").attr("style",Jn(g))}else C=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",S);return C.attr("transform",`translate(${-_/2}, ${-v/2})`),Dt(e,C),e.calcIntersect=function(T,A){return Et.rect(T,A)},e.intersect=function(T){return ht.info("Bang intersect",e,T),Et.rect(e,T)},a}w(DM,"bang");async function BM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o,label:c}=await Xt(t,e,Gt(e)),f=s.width+2*o,h=s.height+2*o,d=.15*f,g=.25*f,y=.35*f,m=.2*f,{cssStyles:_}=e;let v;const C=`M0 0
301
+ a${d},${d} 0 0,1 ${f*.25},${-1*f*.1}
302
+ a${y},${y} 1 0,1 ${f*.4},${-1*f*.1}
303
+ a${g},${g} 1 0,1 ${f*.35},${f*.2}
304
+
305
+ a${d},${d} 1 0,1 ${f*.15},${h*.35}
306
+ a${m},${m} 1 0,1 ${-1*f*.15},${h*.65}
307
+
308
+ a${g},${d} 1 0,1 ${-1*f*.25},${f*.15}
309
+ a${y},${y} 1 0,1 ${-1*f*.5},0
310
+ a${d},${d} 1 0,1 ${-1*f*.25},${-1*f*.15}
311
+
312
+ a${d},${d} 1 0,1 ${-1*f*.1},${-1*h*.35}
313
+ a${m},${m} 1 0,1 ${f*.1},${-1*h*.65}
314
+ H0 V0 Z`;if(e.look==="handDrawn"){const S=Nt.svg(a),T=Lt(e,{}),A=S.path(C,T);v=a.insert(()=>A,":first-child"),v.attr("class","basic label-container").attr("style",Jn(_))}else v=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),v.attr("transform",`translate(${-f/2}, ${-h/2})`),Dt(e,v),e.calcIntersect=function(S,T){return Et.rect(S,T)},e.intersect=function(S){return ht.info("Cloud intersect",e,S),Et.rect(e,S)},a}w(BM,"cloud");async function IM(t,e){const{labelStyles:n,nodeStyles:i}=Rt(e);e.labelStyle=n;const{shapeSvg:a,bbox:s,halfPadding:o,label:c}=await Xt(t,e,Gt(e)),f=s.width+8*o,h=s.height+2*o,d=5,g=`
315
+ M${-f/2} ${h/2-d}
316
+ v${-h+2*d}
317
+ q0,-${d} ${d},-${d}
318
+ h${f-2*d}
319
+ q${d},0 ${d},${d}
320
+ v${h-2*d}
321
+ q0,${d} -${d},${d}
322
+ h${-f+2*d}
323
+ q-${d},0 -${d},-${d}
324
+ Z
325
+ `,y=a.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",g);return a.append("line").attr("class","node-line-").attr("x1",-f/2).attr("y1",h/2).attr("x2",f/2).attr("y2",h/2),c.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),a.append(()=>c.node()),Dt(e,y),e.calcIntersect=function(m,_){return Et.rect(m,_)},e.intersect=function(m){return Et.rect(e,m)},a}w(IM,"defaultMindmapNode");async function zM(t,e){const n={padding:e.padding??0};return c0(t,e,n)}w(zM,"mindmapCircle");var EG=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:pM},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:hM},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:gM},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:xM},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:FA},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:c0},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:DM},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:BM},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:oM},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:GA},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:eM},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tM},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:CM},{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:QA},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:UA},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:SM},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:NA},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:fM},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:bM},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:yM},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:qA},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:YA},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:DA},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:BA},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:IA},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:nM},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:TM},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:jA},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:wM},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:iM},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:zA},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:$A},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:EM},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:MM},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:PA},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:kM},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:HA},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:dM},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:lM},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:aM},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:MA},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:RA},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:vM},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:_M},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:AM},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:cM},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:rM}],TG=w(()=>{const e=[...Object.entries({state:mM,choice:OA,note:sM,rectWithTitle:uM,labelRect:JA,iconSquare:KA,iconCircle:VA,icon:WA,iconRounded:XA,imageSquare:ZA,anchor:AA,kanbanItem:RM,mindmapCircle:zM,defaultMindmapNode:IM,classBox:OM,erBox:u0,requirementBox:LM}),...EG.flatMap(n=>[n.shortName,..."aliases"in n?n.aliases:[],..."internalAliases"in n?n.internalAliases:[]].map(a=>[a,n.handler]))];return Object.fromEntries(e)},"generateShapeMap"),FM=TG();function AG(t){return t in FM}w(AG,"isValidShape");var Dd=new Map;async function $M(t,e,n){let i,a;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const s=e.shape?FM[e.shape]:void 0;if(!s)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;n.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),a=await s(i,e,n)}else a=await s(t,e,n),i=a;return e.tooltip&&a.attr("title",e.tooltip),Dd.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}w($M,"insertNode");var qX=w((t,e)=>{Dd.set(e.id,t)},"setNodeElem"),jX=w(()=>{Dd.clear()},"clear"),GX=w(t=>{const e=Dd.get(t.id);ht.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-n)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},"positionNode"),MG=w((t,e,n,i,a,s)=>{e.arrowTypeStart&&Ew(t,"start",e.arrowTypeStart,n,i,a,s),e.arrowTypeEnd&&Ew(t,"end",e.arrowTypeEnd,n,i,a,s)},"addEdgeMarkers"),NG={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{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}},Ew=w((t,e,n,i,a,s,o)=>{var g;const c=NG[n];if(!c){ht.warn(`Unknown arrow type: ${n}`);return}const f=c.type,d=`${a}_${s}-${f}${e==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const y=o.replace(/[^\dA-Za-z]/g,"_"),m=`${d}_${y}`;if(!document.getElementById(m)){const _=document.getElementById(d);if(_){const v=_.cloneNode(!0);v.id=m,v.querySelectorAll("path, circle, line").forEach(S=>{S.setAttribute("stroke",o),c.fill&&S.setAttribute("fill",o)}),(g=_.parentNode)==null||g.appendChild(v)}}t.attr(`marker-${e}`,`url(${i}#${m})`)}else t.attr(`marker-${e}`,`url(${i}#${d})`)},"addEdgeMarker"),id=new Map,jn=new Map,YX=w(()=>{id.clear(),jn.clear()},"clear"),Zh=w(t=>t?t.reduce((n,i)=>n+";"+i,""):"","getLabelStyles"),OG=w(async(t,e)=>{let n=Rn(Oe().flowchart.htmlLabels);const{labelStyles:i}=Rt(e);e.labelStyle=i;const a=await el(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:!0,isNode:!1});ht.info("abc82",e,e.labelType);const s=t.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label").attr("data-id",e.id);o.node().appendChild(a);let c=a.getBBox();if(n){const h=a.children[0],d=Se(a);c=h.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),id.set(e.id,s),e.width=c.width,e.height=c.height;let f;if(e.startLabelLeft){const h=await Ol(e.startLabelLeft,Zh(e.labelStyle)),d=t.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");f=g.node().appendChild(h);const y=h.getBBox();g.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),jn.get(e.id)||jn.set(e.id,{}),jn.get(e.id).startLeft=d,Bc(f,e.startLabelLeft)}if(e.startLabelRight){const h=await Ol(e.startLabelRight,Zh(e.labelStyle)),d=t.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");f=d.node().appendChild(h),g.node().appendChild(h);const y=h.getBBox();g.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),jn.get(e.id)||jn.set(e.id,{}),jn.get(e.id).startRight=d,Bc(f,e.startLabelRight)}if(e.endLabelLeft){const h=await Ol(e.endLabelLeft,Zh(e.labelStyle)),d=t.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");f=g.node().appendChild(h);const y=h.getBBox();g.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),d.node().appendChild(h),jn.get(e.id)||jn.set(e.id,{}),jn.get(e.id).endLeft=d,Bc(f,e.endLabelLeft)}if(e.endLabelRight){const h=await Ol(e.endLabelRight,Zh(e.labelStyle)),d=t.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");f=g.node().appendChild(h);const y=h.getBBox();g.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),d.node().appendChild(h),jn.get(e.id)||jn.set(e.id,{}),jn.get(e.id).endRight=d,Bc(f,e.endLabelRight)}return a},"insertEdgeLabel");function Bc(t,e){Oe().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}w(Bc,"setTerminalWidth");var LG=w((t,e)=>{ht.debug("Moving label abc88 ",t.id,t.label,id.get(t.id),e);let n=e.updatedPath?e.updatedPath:e.originalPath;const i=Oe(),{subGraphTitleTotalMargin:a}=Ub(i);if(t.label){const s=id.get(t.id);let o=t.x,c=t.y;if(n){const f=mr.calcLabelPosition(n);ht.debug("Moving label "+t.label+" from (",o,",",c,") to (",f.x,",",f.y,") abc88"),e.updatedPath&&(o=f.x,c=f.y)}s.attr("transform",`translate(${o}, ${c+a/2})`)}if(t.startLabelLeft){const s=jn.get(t.id).startLeft;let o=t.x,c=t.y;if(n){const f=mr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);o=f.x,c=f.y}s.attr("transform",`translate(${o}, ${c})`)}if(t.startLabelRight){const s=jn.get(t.id).startRight;let o=t.x,c=t.y;if(n){const f=mr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);o=f.x,c=f.y}s.attr("transform",`translate(${o}, ${c})`)}if(t.endLabelLeft){const s=jn.get(t.id).endLeft;let o=t.x,c=t.y;if(n){const f=mr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);o=f.x,c=f.y}s.attr("transform",`translate(${o}, ${c})`)}if(t.endLabelRight){const s=jn.get(t.id).endRight;let o=t.x,c=t.y;if(n){const f=mr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);o=f.x,c=f.y}s.attr("transform",`translate(${o}, ${c})`)}},"positionEdgeLabel"),RG=w((t,e)=>{const n=t.x,i=t.y,a=Math.abs(e.x-n),s=Math.abs(e.y-i),o=t.width/2,c=t.height/2;return a>=o||s>=c},"outsideNode"),DG=w((t,e,n)=>{ht.debug(`intersection calc abc89:
326
+ outsidePoint: ${JSON.stringify(e)}
327
+ insidePoint : ${JSON.stringify(n)}
328
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,a=t.y,s=Math.abs(i-n.x),o=t.width/2;let c=n.x<e.x?o-s:o+s;const f=t.height/2,h=Math.abs(e.y-n.y),d=Math.abs(e.x-n.x);if(Math.abs(a-e.y)*o>Math.abs(i-e.x)*f){let g=n.y<e.y?e.y-f-a:a-f-e.y;c=d*g/h;const y={x:n.x<e.x?n.x+c:n.x-d+c,y:n.y<e.y?n.y+h-g:n.y-h+g};return c===0&&(y.x=e.x,y.y=e.y),d===0&&(y.x=e.x),h===0&&(y.y=e.y),ht.debug(`abc89 top/bottom calc, Q ${h}, q ${g}, R ${d}, r ${c}`,y),y}else{n.x<e.x?c=e.x-o-i:c=i-o-e.x;let g=h*c/d,y=n.x<e.x?n.x+d-c:n.x-d+c,m=n.y<e.y?n.y+g:n.y-g;return ht.debug(`sides calc abc89, Q ${h}, q ${g}, R ${d}, r ${c}`,{_x:y,_y:m}),c===0&&(y=e.x,m=e.y),d===0&&(y=e.x),h===0&&(m=e.y),{x:y,y:m}}},"intersection"),Tw=w((t,e)=>{ht.warn("abc88 cutPathAtIntersect",t,e);let n=[],i=t[0],a=!1;return t.forEach(s=>{if(ht.info("abc88 checking point",s,e),!RG(e,s)&&!a){const o=DG(e,i,s);ht.debug("abc88 inside",s,i,o),ht.debug("abc88 intersection",o,e);let c=!1;n.forEach(f=>{c=c||f.x===o.x&&f.y===o.y}),n.some(f=>f.x===o.x&&f.y===o.y)?ht.warn("abc88 no intersect",o,n):n.push(o),a=!0}else ht.warn("abc88 outside",s,i),i=s,a||n.push(s)}),ht.debug("returning points",n),n},"cutPathAtIntersect");function UM(t){const e=[],n=[];for(let i=1;i<t.length-1;i++){const a=t[i-1],s=t[i],o=t[i+1];(a.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-a.y)>5||a.y===s.y&&s.x===o.x&&Math.abs(s.x-a.x)>5&&Math.abs(s.y-o.y)>5)&&(e.push(s),n.push(i))}return{cornerPoints:e,cornerPointPositions:n}}w(UM,"extractCornerPoints");var Aw=w(function(t,e,n){const i=e.x-t.x,a=e.y-t.y,s=Math.sqrt(i*i+a*a),o=n/s;return{x:e.x-o*i,y:e.y-o*a}},"findAdjacentPoint"),BG=w(function(t){const{cornerPointPositions:e}=UM(t),n=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const a=t[i-1],s=t[i+1],o=t[i],c=Aw(a,o,5),f=Aw(s,o,5),h=f.x-c.x,d=f.y-c.y;n.push(c);const g=Math.sqrt(2)*2;let y={x:o.x,y:o.y};if(Math.abs(s.x-a.x)>10&&Math.abs(s.y-a.y)>=10){ht.debug("Corner point fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y));const m=5;o.x===c.x?y={x:h<0?c.x-m+g:c.x+m-g,y:d<0?c.y-g:c.y+g}:y={x:h<0?c.x-g:c.x+g,y:d<0?c.y-m+g:c.y+m-g}}else ht.debug("Corner point skipping fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y));n.push(y,f)}else n.push(t[i]);return n},"fixCorners"),IG=w((t,e,n)=>{const i=t-e-n,a=2,s=2,o=a+s,c=Math.floor(i/o),f=Array(c).fill(`${a} ${s}`).join(" ");return`0 ${e} ${f} ${n}`},"generateDashArray"),zG=w(function(t,e,n,i,a,s,o,c=!1){var H;const{handDrawnSeed:f}=Oe();let h=e.points,d=!1;const g=a;var y=s;const m=[];for(const F in e.cssCompiledStyles)yT(F)||m.push(e.cssCompiledStyles[F]);ht.debug("UIO intersect check",e.points,y.x,g.x),y.intersect&&g.intersect&&!c&&(h=h.slice(1,e.points.length-1),h.unshift(g.intersect(h[0])),ht.debug("Last point UIO",e.start,"-->",e.end,h[h.length-1],y,y.intersect(h[h.length-1])),h.push(y.intersect(h[h.length-1])));const _=btoa(JSON.stringify(h));e.toCluster&&(ht.info("to cluster abc88",n.get(e.toCluster)),h=Tw(e.points,n.get(e.toCluster).node),d=!0),e.fromCluster&&(ht.debug("from cluster abc88",n.get(e.fromCluster),JSON.stringify(h,null,2)),h=Tw(h.reverse(),n.get(e.fromCluster).node).reverse(),d=!0);let v=h.filter(F=>!Number.isNaN(F.y));v=BG(v);let C=cf;switch(C=Df,e.curve){case"linear":C=Df;break;case"basis":C=cf;break;case"cardinal":C=vk;break;case"bumpX":C=mk;break;case"bumpY":C=yk;break;case"catmullRom":C=wk;break;case"monotoneX":C=Mk;break;case"monotoneY":C=Nk;break;case"natural":C=Lk;break;case"step":C=Rk;break;case"stepAfter":C=Bk;break;case"stepBefore":C=Dk;break;default:C=cf}const{x:S,y:T}=BP(e),A=bU().x(S).y(T).curve(C);let B;switch(e.thickness){case"normal":B="edge-thickness-normal";break;case"thick":B="edge-thickness-thick";break;case"invisible":B="edge-thickness-invisible";break;default:B="edge-thickness-normal"}switch(e.pattern){case"solid":B+=" edge-pattern-solid";break;case"dotted":B+=" edge-pattern-dotted";break;case"dashed":B+=" edge-pattern-dashed";break;default:B+=" edge-pattern-solid"}let N,E=e.curve==="rounded"?PM(HM(v,e),5):A(v);const R=Array.isArray(e.style)?e.style:[e.style];let G=R.find(F=>F==null?void 0:F.startsWith("stroke:")),Z=!1;if(e.look==="handDrawn"){const F=Nt.svg(t);Object.assign([],v);const L=F.path(E,{roughness:.3,seed:f});B+=" transition",N=Se(L).select("path").attr("id",e.id).attr("class"," "+B+(e.classes?" "+e.classes:"")).attr("style",R?R.reduce(($,lt)=>$+";"+lt,""):"");let U=N.attr("d");N.attr("d",U),t.node().appendChild(N.node())}else{const F=m.join(";"),L=R?R.reduce((O,ft)=>O+ft+";",""):"";let U="";e.animate&&(U=" edge-animation-fast"),e.animation&&(U=" edge-animation-"+e.animation);const $=(F?F+";"+L+";":L)+";"+(R?R.reduce((O,ft)=>O+";"+ft,""):"");N=t.append("path").attr("d",E).attr("id",e.id).attr("class"," "+B+(e.classes?" "+e.classes:"")+(U??"")).attr("style",$),G=(H=$.match(/stroke:([^;]+)/))==null?void 0:H[1],Z=e.animate===!0||!!e.animation||F.includes("animation");const lt=N.node(),D=typeof lt.getTotalLength=="function"?lt.getTotalLength():0,I=jS[e.arrowTypeStart]||0,K=jS[e.arrowTypeEnd]||0;if(e.look==="neo"&&!Z){const ft=`stroke-dasharray: ${e.pattern==="dotted"||e.pattern==="dashed"?IG(D,I,K):`0 ${I} ${D-I-K} ${K}`}; stroke-dashoffset: 0;`;N.attr("style",ft+N.attr("style"))}}N.attr("data-edge",!0),N.attr("data-et","edge"),N.attr("data-id",e.id),N.attr("data-points",_),e.showPoints&&v.forEach(F=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",F.x).attr("cy",F.y)});let z="";(Oe().flowchart.arrowMarkerAbsolute||Oe().state.arrowMarkerAbsolute)&&(z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,z=z.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ht.info("arrowTypeStart",e.arrowTypeStart),ht.info("arrowTypeEnd",e.arrowTypeEnd),MG(N,e,z,o,i,G);const j=Math.floor(h.length/2),tt=h[j];mr.isLabelCoordinateInPath(tt,N.attr("d"))||(d=!0);let it={};return d&&(it.updatedPath=h),it.originalPath=e.points,it},"insertEdge");function PM(t,e){if(t.length<2)return"";let n="";const i=t.length,a=1e-5;for(let s=0;s<i;s++){const o=t[s],c=t[s-1],f=t[s+1];if(s===0)n+=`M${o.x},${o.y}`;else if(s===i-1)n+=`L${o.x},${o.y}`;else{const h=o.x-c.x,d=o.y-c.y,g=f.x-o.x,y=f.y-o.y,m=Math.hypot(h,d),_=Math.hypot(g,y);if(m<a||_<a){n+=`L${o.x},${o.y}`;continue}const v=h/m,C=d/m,S=g/_,T=y/_,A=v*S+C*T,B=Math.max(-1,Math.min(1,A)),N=Math.acos(B);if(N<a||Math.abs(Math.PI-N)<a){n+=`L${o.x},${o.y}`;continue}const E=Math.min(e/Math.sin(N/2),m/2,_/2),R=o.x-v*E,G=o.y-C*E,Z=o.x+S*E,z=o.y+T*E;n+=`L${R},${G}`,n+=`Q${o.x},${o.y} ${Z},${z}`}}return n}w(PM,"generateRoundedPath");function Iy(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};const n=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,n),deltaX:n,deltaY:i}}w(Iy,"calculateDeltaAndAngle");function HM(t,e){const n=t.map(a=>({...a}));if(t.length>=2&&Xn[e.arrowTypeStart]){const a=Xn[e.arrowTypeStart],s=t[0],o=t[1],{angle:c}=Iy(s,o),f=a*Math.cos(c),h=a*Math.sin(c);n[0].x=s.x+f,n[0].y=s.y+h}const i=t.length;if(i>=2&&Xn[e.arrowTypeEnd]){const a=Xn[e.arrowTypeEnd],s=t[i-1],o=t[i-2],{angle:c}=Iy(o,s),f=a*Math.cos(c),h=a*Math.sin(c);n[i-1].x=s.x-f,n[i-1].y=s.y-h}return n}w(HM,"applyMarkerOffsetsToPoints");var FG=w((t,e,n,i)=>{e.forEach(a=>{tY[a](t,n,i)})},"insertMarkers"),$G=w((t,e,n)=>{ht.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",n+"_"+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")},"extension"),UG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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")},"composition"),PG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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")},"aggregation"),HG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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")},"dependency"),qG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",n+"_"+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("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),jG=w((t,e,n)=>{t.append("marker").attr("id",n+"_"+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",n+"_"+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")},"point"),GG=w((t,e,n)=>{t.append("marker").attr("id",n+"_"+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",n+"_"+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")},"circle"),YG=w((t,e,n)=>{t.append("marker").attr("id",n+"_"+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",n+"_"+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")},"cross"),WG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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"),VG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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"),XG=w((t,e,n)=>{const i=t.append("defs").append("marker").attr("id",n+"_"+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 a=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),KG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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"),ZG=w((t,e,n)=>{const i=t.append("defs").append("marker").attr("id",n+"_"+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 a=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),QG=w((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
329
+ L20,10
330
+ M20,10
331
+ L0,20`)},"requirement_arrow"),JG=w((t,e,n)=>{const i=t.append("defs").append("marker").attr("id",n+"_"+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"),tY={extension:$G,composition:UG,aggregation:PG,dependency:HG,lollipop:qG,point:jG,circle:GG,cross:YG,barb:WG,only_one:VG,zero_or_one:XG,one_or_more:KG,zero_or_more:ZG,requirement_arrow:QG,requirement_contains:JG},eY=FG,nY={common:uo,getConfig:Zn,insertCluster:uG,insertEdge:zG,insertEdgeLabel:OG,insertMarkers:eY,insertNode:$M,interpolateToCurve:Gb,labelHelper:Xt,log:ht,positionEdgeLabel:LG},ru={},qM=w(t=>{for(const e of t)ru[e.name]=e},"registerLayoutLoaders"),iY=w(()=>{qM([{name:"dagre",loader:w(async()=>await Re(()=>import("./dagre-6UL2VRFP-QJYTHrs6.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:w(async()=>await Re(()=>import("./cose-bilkent-S5V4N54A-BzcNN0cZ.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");iY();var WX=w(async(t,e)=>{if(!(t.layoutAlgorithm in ru))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const n=ru[t.layoutAlgorithm];return(await n.loader()).render(t,e,nY,{algorithm:n.algorithm})},"render"),VX=w((t="",{fallback:e="dagre"}={})=>{if(t in ru)return t;if(e in ru)return ht.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"),jM="comm",GM="rule",YM="decl",rY="@import",aY="@namespace",lY="@keyframes",sY="@layer",WM=Math.abs,h0=String.fromCharCode;function VM(t){return t.trim()}function pf(t,e,n){return t.replace(e,n)}function oY(t,e,n){return t.indexOf(e,n)}function qs(t,e){return t.charCodeAt(e)|0}function lo(t,e,n){return t.slice(e,n)}function Lr(t){return t.length}function cY(t){return t.length}function Qh(t,e){return e.push(t),t}var Bd=1,so=1,XM=0,lr=0,Cn=0,mo="";function f0(t,e,n,i,a,s,o,c){return{value:t,root:e,parent:n,type:i,props:a,children:s,line:Bd,column:so,length:o,return:"",siblings:c}}function uY(){return Cn}function hY(){return Cn=lr>0?qs(mo,--lr):0,so--,Cn===10&&(so=1,Bd--),Cn}function xr(){return Cn=lr<XM?qs(mo,lr++):0,so++,Cn===10&&(so=1,Bd++),Cn}function Wa(){return qs(mo,lr)}function gf(){return lr}function Id(t,e){return lo(mo,t,e)}function au(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 fY(t){return Bd=so=1,XM=Lr(mo=t),lr=0,[]}function dY(t){return mo="",t}function Om(t){return VM(Id(lr-1,zy(t===91?t+2:t===40?t+1:t)))}function pY(t){for(;(Cn=Wa())&&Cn<33;)xr();return au(t)>2||au(Cn)>3?"":" "}function gY(t,e){for(;--e&&xr()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return Id(t,gf()+(e<6&&Wa()==32&&xr()==32))}function zy(t){for(;xr();)switch(Cn){case t:return lr;case 34:case 39:t!==34&&t!==39&&zy(Cn);break;case 40:t===41&&zy(t);break;case 92:xr();break}return lr}function mY(t,e){for(;xr()&&t+Cn!==57;)if(t+Cn===84&&Wa()===47)break;return"/*"+Id(e,lr-1)+"*"+h0(t===47?t:xr())}function yY(t){for(;!au(Wa());)xr();return Id(t,lr)}function bY(t){return dY(mf("",null,null,null,[""],t=fY(t),0,[0],t))}function mf(t,e,n,i,a,s,o,c,f){for(var h=0,d=0,g=o,y=0,m=0,_=0,v=1,C=1,S=1,T=0,A="",B=a,N=s,E=i,R=A;C;)switch(_=T,T=xr()){case 40:if(_!=108&&qs(R,g-1)==58){oY(R+=pf(Om(T),"&","&\f"),"&\f",WM(h?c[h-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Om(T);break;case 9:case 10:case 13:case 32:R+=pY(_);break;case 92:R+=gY(gf()-1,7);continue;case 47:switch(Wa()){case 42:case 47:Qh(xY(mY(xr(),gf()),e,n,f),f),(au(_||1)==5||au(Wa()||1)==5)&&Lr(R)&&lo(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*v:c[h++]=Lr(R)*S;case 125*v:case 59:case 0:switch(T){case 0:case 125:C=0;case 59+d:S==-1&&(R=pf(R,/\f/g,"")),m>0&&(Lr(R)-g||v===0&&_===47)&&Qh(m>32?Nw(R+";",i,n,g-1,f):Nw(pf(R," ","")+";",i,n,g-2,f),f);break;case 59:R+=";";default:if(Qh(E=Mw(R,e,n,h,d,a,c,A,B=[],N=[],g,s),s),T===123)if(d===0)mf(R,e,E,E,B,s,g,c,N);else{switch(y){case 99:if(qs(R,3)===110)break;case 108:if(qs(R,2)===97)break;default:d=0;case 100:case 109:case 115:}d?mf(t,E,E,i&&Qh(Mw(t,E,E,0,0,a,c,A,a,B=[],g,N),N),a,N,g,c,i?B:N):mf(R,E,E,E,[""],N,0,c,N)}}h=d=m=0,v=S=1,A=R="",g=o;break;case 58:g=1+Lr(R),m=_;default:if(v<1){if(T==123)--v;else if(T==125&&v++==0&&hY()==125)continue}switch(R+=h0(T),T*v){case 38:S=d>0?1:(R+="\f",-1);break;case 44:c[h++]=(Lr(R)-1)*S,S=1;break;case 64:Wa()===45&&(R+=Om(xr())),y=Wa(),d=g=Lr(A=R+=yY(gf())),T++;break;case 45:_===45&&Lr(R)==2&&(v=0)}}return s}function Mw(t,e,n,i,a,s,o,c,f,h,d,g){for(var y=a-1,m=a===0?s:[""],_=cY(m),v=0,C=0,S=0;v<i;++v)for(var T=0,A=lo(t,y+1,y=WM(C=o[v])),B=t;T<_;++T)(B=VM(C>0?m[T]+" "+A:pf(A,/&\f/g,m[T])))&&(f[S++]=B);return f0(t,e,n,a===0?GM:c,f,h,d,g)}function xY(t,e,n,i){return f0(t,e,n,jM,h0(uY()),lo(t,2,-2),0,i)}function Nw(t,e,n,i,a){return f0(t,e,n,YM,lo(t,0,i),lo(t,i+1,-1),i,a)}function Fy(t,e){for(var n="",i=0;i<t.length;i++)n+=e(t[i],i,t,e)||"";return n}function _Y(t,e,n,i){switch(t.type){case sY:if(t.children.length)break;case rY:case aY:case YM:return t.return=t.return||t.value;case jM:return"";case lY:return t.return=t.value+"{"+Fy(t.children,i)+"}";case GM:if(!Lr(t.value=t.props.join(",")))return""}return Lr(n=Fy(t.children,i))?t.return=t.value+"{"+n+"}":""}var vY=vT(Object.keys,Object),SY=Object.prototype,wY=SY.hasOwnProperty;function CY(t){if(!kd(t))return vY(t);var e=[];for(var n in Object(t))wY.call(t,n)&&n!="constructor"&&e.push(n);return e}var $y=Yl(Fr,"DataView"),Uy=Yl(Fr,"Promise"),Py=Yl(Fr,"Set"),Hy=Yl(Fr,"WeakMap"),Ow="[object Map]",kY="[object Object]",Lw="[object Promise]",Rw="[object Set]",Dw="[object WeakMap]",Bw="[object DataView]",EY=Gl($y),TY=Gl(nu),AY=Gl(Uy),MY=Gl(Py),NY=Gl(Hy),El=fo;($y&&El(new $y(new ArrayBuffer(1)))!=Bw||nu&&El(new nu)!=Ow||Uy&&El(Uy.resolve())!=Lw||Py&&El(new Py)!=Rw||Hy&&El(new Hy)!=Dw)&&(El=function(t){var e=fo(t),n=e==kY?t.constructor:void 0,i=n?Gl(n):"";if(i)switch(i){case EY:return Bw;case TY:return Ow;case AY:return Lw;case MY:return Rw;case NY:return Dw}return e});var OY="[object Map]",LY="[object Set]",RY=Object.prototype,DY=RY.hasOwnProperty;function Iw(t){if(t==null)return!0;if(Ed(t)&&(Wf(t)||typeof t=="string"||typeof t.splice=="function"||qb(t)||jb(t)||Yf(t)))return!t.length;var e=El(t);if(e==OY||e==LY)return!t.size;if(kd(t))return!CY(t).length;for(var n in t)if(DY.call(t,n))return!1;return!0}var KM="c4",BY=w(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),IY=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./c4Diagram-YG6GDRKO-DMhvwsHk.js");return{diagram:e}},__vite__mapDeps([8,9]));return{id:KM,diagram:t}},"loader"),zY={id:KM,detector:BY,loader:IY},FY=zY,ZM="flowchart",$Y=w((t,e)=>{var n,i;return((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),UY=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./flowDiagram-NV44I4VS-DKlPxqBJ.js");return{diagram:e}},__vite__mapDeps([10,11,12,13,14]));return{id:ZM,diagram:t}},"loader"),PY={id:ZM,detector:$Y,loader:UY},HY=PY,QM="flowchart-v2",qY=w((t,e)=>{var n,i,a;return((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((a=e==null?void 0:e.flowchart)==null?void 0:a.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),jY=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./flowDiagram-NV44I4VS-DKlPxqBJ.js");return{diagram:e}},__vite__mapDeps([10,11,12,13,14]));return{id:QM,diagram:t}},"loader"),GY={id:QM,detector:qY,loader:jY},YY=GY,JM="er",WY=w(t=>/^\s*erDiagram/.test(t),"detector"),VY=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./erDiagram-Q2GNP2WA-DjW2Xk-Q.js");return{diagram:e}},__vite__mapDeps([15,12,13,14]));return{id:JM,diagram:t}},"loader"),XY={id:JM,detector:WY,loader:VY},KY=XY,tN="gitGraph",ZY=w(t=>/^\s*gitGraph/.test(t),"detector"),QY=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./gitGraphDiagram-NY62KEGX-ByKsiu6P.js");return{diagram:e}},__vite__mapDeps([16,17,18,19,4,2]));return{id:tN,diagram:t}},"loader"),JY={id:tN,detector:ZY,loader:QY},tW=JY,eN="gantt",eW=w(t=>/^\s*gantt/.test(t),"detector"),nW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./ganttDiagram-JELNMOA3-DnFR1YE9.js");return{diagram:e}},__vite__mapDeps([20,21,22,23]));return{id:eN,diagram:t}},"loader"),iW={id:eN,detector:eW,loader:nW},rW=iW,nN="info",aW=w(t=>/^\s*info/.test(t),"detector"),lW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./infoDiagram-WHAUD3N6-CoVy4phA.js");return{diagram:e}},__vite__mapDeps([24,19,4,2]));return{id:nN,diagram:t}},"loader"),sW={id:nN,detector:aW,loader:lW},iN="pie",oW=w(t=>/^\s*pie/.test(t),"detector"),cW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./pieDiagram-ADFJNKIX-CAvuvZzi.js");return{diagram:e}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:iN,diagram:t}},"loader"),uW={id:iN,detector:oW,loader:cW},rN="quadrantChart",hW=w(t=>/^\s*quadrantChart/.test(t),"detector"),fW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./quadrantDiagram-AYHSOK5B-CEcUKPRs.js");return{diagram:e}},__vite__mapDeps([28,21,22,23]));return{id:rN,diagram:t}},"loader"),dW={id:rN,detector:hW,loader:fW},pW=dW,aN="xychart",gW=w(t=>/^\s*xychart(-beta)?/.test(t),"detector"),mW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./xychartDiagram-PRI3JC2R-D5pVOO2T.js");return{diagram:e}},__vite__mapDeps([29,22,27,21,23]));return{id:aN,diagram:t}},"loader"),yW={id:aN,detector:gW,loader:mW},bW=yW,lN="requirement",xW=w(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),_W=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./requirementDiagram-UZGBJVZJ-CwqlCSlN.js");return{diagram:e}},__vite__mapDeps([30,12,13]));return{id:lN,diagram:t}},"loader"),vW={id:lN,detector:xW,loader:_W},SW=vW,sN="sequence",wW=w(t=>/^\s*sequenceDiagram/.test(t),"detector"),CW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./sequenceDiagram-WL72ISMW-D3pXE2FY.js");return{diagram:e}},__vite__mapDeps([31,9,18]));return{id:sN,diagram:t}},"loader"),kW={id:sN,detector:wW,loader:CW},EW=kW,oN="class",TW=w((t,e)=>{var n;return((n=e==null?void 0:e.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),AW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./classDiagram-2ON5EDUG-Du0l2lke.js");return{diagram:e}},__vite__mapDeps([32,33,11,12,13]));return{id:oN,diagram:t}},"loader"),MW={id:oN,detector:TW,loader:AW},NW=MW,cN="classDiagram",OW=w((t,e)=>{var n;return/^\s*classDiagram/.test(t)&&((n=e==null?void 0:e.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),LW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./classDiagram-v2-WZHVMYZB-Du0l2lke.js");return{diagram:e}},__vite__mapDeps([34,33,11,12,13]));return{id:cN,diagram:t}},"loader"),RW={id:cN,detector:OW,loader:LW},DW=RW,uN="state",BW=w((t,e)=>{var n;return((n=e==null?void 0:e.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),IW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./stateDiagram-FKZM4ZOC-j-D1luyc.js");return{diagram:e}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:uN,diagram:t}},"loader"),zW={id:uN,detector:BW,loader:IW},FW=zW,hN="stateDiagram",$W=w((t,e)=>{var n;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((n=e==null?void 0:e.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),UW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./stateDiagram-v2-4FDKWEC3-CaPy9HHs.js");return{diagram:e}},__vite__mapDeps([37,36,12,13]));return{id:hN,diagram:t}},"loader"),PW={id:hN,detector:$W,loader:UW},HW=PW,fN="journey",qW=w(t=>/^\s*journey/.test(t),"detector"),jW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./journeyDiagram-XKPGCS4Q-PDmdJwLk.js");return{diagram:e}},__vite__mapDeps([38,9,11,26]));return{id:fN,diagram:t}},"loader"),GW={id:fN,detector:qW,loader:jW},YW=GW,WW=w((t,e,n)=>{ht.debug(`rendering svg for syntax error
332
+ `);const i=TU(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),$C(i,100,512,!0),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.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"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),dN={draw:WW},VW=dN,XW={db:{},renderer:dN,parser:{parse:w(()=>{},"parse")}},KW=XW,pN="flowchart-elk",ZW=w((t,e={})=>{var n;return/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),QW=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./flowDiagram-NV44I4VS-DKlPxqBJ.js");return{diagram:e}},__vite__mapDeps([10,11,12,13,14]));return{id:pN,diagram:t}},"loader"),JW={id:pN,detector:ZW,loader:QW},tV=JW,gN="timeline",eV=w(t=>/^\s*timeline/.test(t),"detector"),nV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./timeline-definition-IT6M3QCI-CUjtRTRO.js");return{diagram:e}},__vite__mapDeps([39,26]));return{id:gN,diagram:t}},"loader"),iV={id:gN,detector:eV,loader:nV},rV=iV,mN="mindmap",aV=w(t=>/^\s*mindmap/.test(t),"detector"),lV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./mindmap-definition-VGOIOE7T-DZDnMxSk.js");return{diagram:e}},__vite__mapDeps([40,12,13]));return{id:mN,diagram:t}},"loader"),sV={id:mN,detector:aV,loader:lV},oV=sV,yN="kanban",cV=w(t=>/^\s*kanban/.test(t),"detector"),uV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./kanban-definition-3W4ZIXB7-BXAIz5vD.js");return{diagram:e}},__vite__mapDeps([41,11]));return{id:yN,diagram:t}},"loader"),hV={id:yN,detector:cV,loader:uV},fV=hV,bN="sankey",dV=w(t=>/^\s*sankey(-beta)?/.test(t),"detector"),pV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./sankeyDiagram-TZEHDZUN-BPqlZVjZ.js");return{diagram:e}},__vite__mapDeps([42,27,22]));return{id:bN,diagram:t}},"loader"),gV={id:bN,detector:dV,loader:pV},mV=gV,xN="packet",yV=w(t=>/^\s*packet(-beta)?/.test(t),"detector"),bV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./diagram-S2PKOQOG-D5BEDMVR.js");return{diagram:e}},__vite__mapDeps([43,17,19,4,2]));return{id:xN,diagram:t}},"loader"),xV={id:xN,detector:yV,loader:bV},_N="radar",_V=w(t=>/^\s*radar-beta/.test(t),"detector"),vV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./diagram-QEK2KX5R-CtomDYHV.js");return{diagram:e}},__vite__mapDeps([44,17,19,4,2]));return{id:_N,diagram:t}},"loader"),SV={id:_N,detector:_V,loader:vV},vN="block",wV=w(t=>/^\s*block(-beta)?/.test(t),"detector"),CV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./blockDiagram-VD42YOAC-id4Ga823.js");return{diagram:e}},__vite__mapDeps([45,11,5,1,2,14]));return{id:vN,diagram:t}},"loader"),kV={id:vN,detector:wV,loader:CV},EV=kV,SN="architecture",TV=w(t=>/^\s*architecture/.test(t),"detector"),AV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./architectureDiagram-VXUJARFQ-zdXFKBeB.js");return{diagram:e}},__vite__mapDeps([46,17,19,4,2,7]));return{id:SN,diagram:t}},"loader"),MV={id:SN,detector:TV,loader:AV},NV=MV,wN="treemap",OV=w(t=>/^\s*treemap/.test(t),"detector"),LV=w(async()=>{const{diagram:t}=await Re(async()=>{const{diagram:e}=await import("./diagram-PSM6KHXK-CnTLPTjU.js");return{diagram:e}},__vite__mapDeps([47,13,17,19,4,2,23,27,22]));return{id:wN,diagram:t}},"loader"),RV={id:wN,detector:OV,loader:LV},zw=!1,zd=w(()=>{zw||(zw=!0,Tf("error",KW,t=>t.toLowerCase().trim()==="error"),Tf("---",{db:{clear:w(()=>{},"clear")},styles:{},renderer:{draw:w(()=>{},"draw")},parser:{parse:w(()=>{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:w(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),Xm(tV,oV,NV),Xm(FY,fV,DW,NW,KY,rW,sW,uW,SW,EW,YY,HY,rV,tW,HW,FW,YW,pW,mV,xV,bW,EV,SV,RV))},"addDiagrams"),DV=w(async()=>{ht.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Bl).map(async([n,{detector:i,loader:a}])=>{if(a)try{Jm(n)}catch{try{const{diagram:s,id:o}=await a();Tf(o,s,i)}catch(s){throw ht.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete Bl[n],s}}}))).filter(n=>n.status==="rejected");if(e.length>0){ht.error(`Failed to load ${e.length} external diagrams`);for(const n of e)ht.error(n);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),BV="graphics-document document";function CN(t,e){t.attr("role",BV),e!==""&&t.attr("aria-roledescription",e)}w(CN,"setA11yDiagramInfo");function kN(t,e,n,i){if(t.insert!==void 0){if(n){const a=`chart-desc-${i}`;t.attr("aria-describedby",a),t.insert("desc",":first-child").attr("id",a).text(n)}if(e){const a=`chart-title-${i}`;t.attr("aria-labelledby",a),t.insert("title",":first-child").attr("id",a).text(e)}}}w(kN,"addSVGa11yTitleDescription");var Rl,qy=(Rl=class{constructor(e,n,i,a,s){this.type=e,this.text=n,this.db=i,this.parser=a,this.renderer=s}static async fromText(e,n={}){var h,d;const i=Zn(),a=pb(e,i);e=R7(e)+`
333
+ `;try{Jm(a)}catch{const g=i$(a);if(!g)throw new TC(`Diagram ${a} not found.`);const{id:y,diagram:m}=await g();Tf(y,m)}const{db:s,parser:o,renderer:c,init:f}=Jm(a);return o.parser&&(o.parser.yy=s),(h=s.clear)==null||h.call(s),f==null||f(i),n.title&&((d=s.setDiagramTitle)==null||d.call(s,n.title)),await o.parse(e),new Rl(a,e,s,o,c)}async render(e,n){await this.renderer.draw(this.text,e,n,this)}getParser(){return this.parser}getType(){return this.type}},w(Rl,"Diagram"),Rl),Fw=[],IV=w(()=>{Fw.forEach(t=>{t()}),Fw=[]},"attachFunctions"),zV=w(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function EN(t){const e=t.match(EC);if(!e)return{text:t,metadata:{}};let n=DP(e[1],{schema:RP})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:t.slice(e[0].length),metadata:i}}w(EN,"extractFrontMatter");var FV=w(t=>t.replace(/\r\n?/g,`
334
+ `).replace(/<(\w+)([^>]*)>/g,(e,n,i)=>"<"+n+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),$V=w(t=>{const{text:e,metadata:n}=EN(t),{displayMode:i,title:a,config:s={}}=n;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:a,config:s,text:e}},"processFrontmatter"),UV=w(t=>{const e=mr.detectInit(t)??{},n=mr.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some(({type:i})=>i==="wrap"):(n==null?void 0:n.type)==="wrap"&&(e.wrap=!0),{text:_7(t),directive:e}},"processDirectives");function d0(t){const e=FV(t),n=$V(e),i=UV(n.text),a=Kb(n.config,i.directive);return t=zV(i.text),{code:t,title:n.title,config:a}}w(d0,"preprocessDiagram");function TN(t){const e=new TextEncoder().encode(t),n=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(n)}w(TN,"toBase64");var PV=5e4,HV="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",qV="sandbox",jV="loose",GV="http://www.w3.org/2000/svg",YV="http://www.w3.org/1999/xlink",WV="http://www.w3.org/1999/xhtml",VV="100%",XV="100%",KV="border:0;margin:0;",ZV="margin:0",QV="allow-top-navigation-by-user-activation allow-popups",JV='The "iframe" tag is not supported by your browser.',tX=["foreignobject"],eX=["dominant-baseline"];function p0(t){const e=d0(t);return kf(),x$(e.config??{}),e}w(p0,"processAndSetConfigs");async function AN(t,e){zd();try{const{code:n,config:i}=p0(t);return{diagramType:(await NN(n)).type,config:i}}catch(n){if(e!=null&&e.suppressErrors)return!1;throw n}}w(AN,"parse");var $w=w((t,e,n=[])=>`
335
+ .${t} ${e} { ${n.join(" !important; ")} !important; }`,"cssImportantStyles"),nX=w((t,e=new Map)=>{var i;let n="";if(t.themeCSS!==void 0&&(n+=`
336
+ ${t.themeCSS}`),t.fontFamily!==void 0&&(n+=`
337
+ :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=`
338
+ :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const c=t.htmlLabels??((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(f=>{Iw(f.styles)||c.forEach(h=>{n+=$w(f.id,h,f.styles)}),Iw(f.textStyles)||(n+=$w(f.id,"tspan",((f==null?void 0:f.textStyles)||[]).map(h=>h.replace("color","fill"))))})}return n},"createCssStyles"),iX=w((t,e,n,i)=>{const a=nX(t,n),s=$$(e,a,t.themeVariables);return Fy(bY(`${i}{${s}}`),_Y)},"createUserStyles"),rX=w((t="",e,n)=>{let i=t;return!n&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Wl(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),aX=w((t="",e)=>{var a,s;const n=(s=(a=e==null?void 0:e.viewBox)==null?void 0:a.baseVal)!=null&&s.height?e.viewBox.baseVal.height+"px":XV,i=TN(`<body style="${ZV}">${t}</body>`);return`<iframe style="width:${VV};height:${n};${KV}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${QV}">
339
+ ${JV}
340
+ </iframe>`},"putIntoIFrame"),Uw=w((t,e,n,i,a)=>{const s=t.append("div");s.attr("id",n),i&&s.attr("style",i);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",GV);return a&&o.attr("xmlns:xlink",a),o.append("g"),t},"appendDivSvgG");function jy(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}w(jy,"sandboxedIframe");var lX=w((t,e,n,i)=>{var a,s,o;(a=t.getElementById(e))==null||a.remove(),(s=t.getElementById(n))==null||s.remove(),(o=t.getElementById(i))==null||o.remove()},"removeExistingElements"),sX=w(async function(t,e,n){var tt,it,H,F,L,U;zd();const i=p0(e);e=i.code;const a=Zn();ht.debug(a),e.length>((a==null?void 0:a.maxTextSize)??PV)&&(e=HV);const s="#"+t,o="i"+t,c="#"+o,f="d"+t,h="#"+f,d=w(()=>{const lt=Se(y?c:h).node();lt&&"remove"in lt&&lt.remove()},"removeTempElements");let g=Se("body");const y=a.securityLevel===qV,m=a.securityLevel===jV,_=a.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),y){const $=jy(Se(n),o);g=Se($.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=Se(n);Uw(g,t,f,`font-family: ${_}`,YV)}else{if(lX(document,t,f,o),y){const $=jy(Se("body"),o);g=Se($.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=Se("body");Uw(g,t,f)}let v,C;try{v=await qy.fromText(e,{title:i.title})}catch($){if(a.suppressErrorRendering)throw d(),$;v=await qy.fromText("error"),C=$}const S=g.select(h).node(),T=v.type,A=S.firstChild,B=A.firstChild,N=(it=(tt=v.renderer).getClasses)==null?void 0:it.call(tt,e,v),E=iX(a,T,N,s),R=document.createElement("style");R.innerHTML=E,A.insertBefore(R,B);try{await v.renderer.draw(e,t,aS.version,v)}catch($){throw a.suppressErrorRendering?d():VW.draw(e,t,aS.version),$}const G=g.select(`${h} svg`),Z=(F=(H=v.db).getAccTitle)==null?void 0:F.call(H),z=(U=(L=v.db).getAccDescription)==null?void 0:U.call(L);ON(T,G,Z,z),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",WV);let j=g.select(h).node().innerHTML;if(ht.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),j=rX(j,y,Rn(a.arrowMarkerAbsolute)),y){const $=g.select(h+" svg").node();j=aX(j,$)}else m||(j=Js.sanitize(j,{ADD_TAGS:tX,ADD_ATTR:eX,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(IV(),C)throw C;return d(),{diagramType:T,svg:j,bindFunctions:v.db.bindFunctions}},"render");function MN(t={}){var i;const e=On({},t);e!=null&&e.fontFamily&&!((i=e.themeVariables)!=null&&i.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),y$(e),e!=null&&e.theme&&e.theme in ua?e.themeVariables=ua[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=ua.default.getThemeVariables(e.themeVariables));const n=typeof e=="object"?m$(e):LC();db(n.logLevel),zd()}w(MN,"initialize");var NN=w((t,e={})=>{const{code:n}=d0(t);return qy.fromText(n,e)},"getDiagramFromText");function ON(t,e,n,i){CN(e,t),kN(e,n,i,e.attr("id"))}w(ON,"addA11yInfo");var Pl=Object.freeze({render:sX,parse:AN,getDiagramFromText:NN,initialize:MN,getConfig:Zn,setConfig:RC,getSiteConfig:LC,updateSiteConfig:b$,reset:w(()=>{kf()},"reset"),globalReset:w(()=>{kf(to)},"globalReset"),defaultConfig:to});db(Zn().logLevel);kf(Zn());var oX=w((t,e,n)=>{ht.warn(t),Xb(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),LN=w(async function(t={querySelector:".mermaid"}){try{await cX(t)}catch(e){if(Xb(e)&&ht.error(e.str),qi.parseError&&qi.parseError(e),!t.suppressErrors)throw ht.error("Use the suppressErrors option to suppress these errors"),e}},"run"),cX=w(async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const i=Pl.getConfig();ht.debug(`${t?"":"No "}Callback function found`);let a;if(n)a=n;else if(e)a=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");ht.debug(`Found ${a.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(ht.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Pl.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const s=new mr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const c=[];for(const f of Array.from(a)){if(ht.info("Rendering diagram: "+f.id),f.getAttribute("data-processed"))continue;f.setAttribute("data-processed","true");const h=`mermaid-${s.next()}`;o=f.innerHTML,o=JT(mr.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=mr.detectInit(o);d&&ht.debug("Detected early reinit: ",d);try{const{svg:g,bindFunctions:y}=await IN(h,o,f);f.innerHTML=g,t&&await t(h),y&&y(f)}catch(g){oX(g,c,qi.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),RN=w(function(t){Pl.initialize(t)},"initialize"),uX=w(async function(t,e,n){ht.warn("mermaid.init is deprecated. Please use run instead."),t&&RN(t);const i={postRenderCallback:n,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await LN(i)},"init"),hX=w(async(t,{lazyLoad:e=!0}={})=>{zd(),Xm(...t),e===!1&&await DV()},"registerExternalDiagrams"),DN=w(function(){if(qi.startOnLoad){const{startOnLoad:t}=Pl.getConfig();t&&qi.run().catch(e=>ht.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",DN,!1);var fX=w(function(t){qi.parseError=t},"setParseErrorHandler"),rd=[],Lm=!1,BN=w(async()=>{if(!Lm){for(Lm=!0;rd.length>0;){const t=rd.shift();if(t)try{await t()}catch(e){ht.error("Error executing queue",e)}}Lm=!1}},"executeQueue"),dX=w(async(t,e)=>new Promise((n,i)=>{const a=w(()=>new Promise((s,o)=>{Pl.parse(t,e).then(c=>{s(c),n(c)},c=>{var f;ht.error("Error parsing",c),(f=qi.parseError)==null||f.call(qi,c),o(c),i(c)})}),"performCall");rd.push(a),BN().catch(i)}),"parse"),IN=w((t,e,n)=>new Promise((i,a)=>{const s=w(()=>new Promise((o,c)=>{Pl.render(t,e,n).then(f=>{o(f),i(f)},f=>{var h;ht.error("Error parsing",f),(h=qi.parseError)==null||h.call(qi,f),c(f),a(f)})}),"performCall");rd.push(s),BN().catch(a)}),"render"),pX=w(()=>Object.keys(Bl).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),qi={startOnLoad:!0,mermaidAPI:Pl,parse:dX,render:IN,init:uX,run:LN,registerExternalDiagrams:hX,registerLayoutLoaders:qM,initialize:RN,parseError:void 0,contentLoaded:DN,setParseErrorHandler:fX,detectType:pb,registerIconPacks:zj,getRegisteredDiagramsMetadata:pX},Pw=qi;/*! Check if previously processed *//*!
341
+ * Wait for document loaded before starting the execution
342
+ */const gX=({code:t})=>{const e=zt.useRef(null),[n,i]=zt.useState(""),[a,s]=zt.useState(null),{isDark:o}=Wy();return zt.useEffect(()=>{let c=!1;return(async()=>{try{Pw.initialize({startOnLoad:!1,theme:o?"dark":"default",securityLevel:"strict"});const h=`mermaid-${crypto.randomUUID()}`,{svg:d}=await Pw.render(h,t);c||(i(d),s(null))}catch(h){c||(s(h instanceof Error?h.message:"Failed to render diagram"),i(""))}})(),()=>{c=!0}},[t,o]),a?V.jsxs("div",{className:"mermaid-error",children:[V.jsx("pre",{children:t}),V.jsxs("p",{className:"mermaid-error-message",children:["Mermaid error: ",a]})]}):V.jsx("div",{ref:e,className:"mermaid-container",dangerouslySetInnerHTML:{__html:n}})},mX={code:({node:t,className:e,children:n,...i})=>{const a=/language-(\w+)/.exec(e||"");if((a?a[1]:"")==="mermaid"){const o=String(n).replace(/\n$/,"");return V.jsx(gX,{code:o})}return V.jsx("code",{className:e,...i,children:n})},p:({node:t,children:e,...n})=>{var i,a;return V.jsx("p",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},h1:({node:t,children:e,...n})=>{var i,a;return V.jsx("h1",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},h2:({node:t,children:e,...n})=>{var i,a;return V.jsx("h2",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},h3:({node:t,children:e,...n})=>{var i,a;return V.jsx("h3",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},h4:({node:t,children:e,...n})=>{var i,a;return V.jsx("h4",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},h5:({node:t,children:e,...n})=>{var i,a;return V.jsx("h5",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},h6:({node:t,children:e,...n})=>{var i,a;return V.jsx("h6",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},li:({node:t,children:e,...n})=>{var i,a;return V.jsx("li",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},blockquote:({node:t,children:e,...n})=>{var i,a;return V.jsx("blockquote",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},pre:({node:t,children:e,...n})=>{var i,a;return V.jsx("pre",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},td:({node:t,children:e,...n})=>{var i,a;return V.jsx("td",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})},th:({node:t,children:e,...n})=>{var i,a;return V.jsx("th",{"data-line-start":(a=(i=t==null?void 0:t.position)==null?void 0:i.start)==null?void 0:a.line,...n,children:e})}},zN=({content:t,filename:e,filePath:n,comments:i,onCommentsChange:a})=>{const s=zt.useRef(null),{isDark:o}=Wy(),{width:c,isResizing:f,isCollapsed:h,handleMouseDown:d,toggleCollapse:g}=qw({initialWidth:300,minWidth:250,maxWidth:600,storageKey:"md-review-comments-sidebar-width",direction:"right",collapsible:!0,collapseThreshold:70});zt.useEffect(()=>{const S=document.querySelector('link[href*="github.css"]'),T=document.querySelector('link[href*="github-dark.css"]');S&&T&&(o?(S.disabled=!0,T.disabled=!1):(S.disabled=!1,T.disabled=!0))},[o]);const y=(S,T,A,B)=>{const N={id:crypto.randomUUID(),text:S,selectedText:T,startLine:A,endLine:B,createdAt:new Date};a([...i,N])},m=S=>{a(i.filter(T=>T.id!==S))},_=()=>{a([])},v=(S,T)=>{a(i.map(A=>A.id===S?{...A,text:T}:A))},C=S=>{if(!s.current)return;const T=s.current.querySelector(`[data-line-start="${S}"]`);T&&(T.scrollIntoView({behavior:"smooth",block:"center"}),T.classList.add("highlight-line"),setTimeout(()=>{T.classList.remove("highlight-line")},2e3))};return V.jsxs("div",{className:`markdown-with-comments ${f?"resizing":""} ${h?"comments-collapsed":""}`,children:[V.jsxs("div",{className:"markdown-container",style:{paddingRight:h?"0":`${c+20}px`},children:[V.jsx("header",{className:"markdown-header",children:V.jsx("h1",{children:e})}),V.jsx("div",{className:"markdown-content",ref:s,children:V.jsx(d5,{remarkPlugins:[kz,Az],rehypePlugins:[mF],components:mX,children:t})}),V.jsx(xF,{containerRef:s,onSubmitComment:y})]}),h&&V.jsxs("button",{className:"comments-toggle-button",onClick:g,title:"Show comments","aria-label":"Show comments",children:[V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:V.jsx("path",{d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H6l-4 3V5z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),i.length>0&&V.jsx("span",{className:"comments-badge",children:i.length})]}),!h&&V.jsxs("aside",{className:"comments-sidebar",style:{width:`${c}px`},children:[V.jsx("div",{className:"comments-sidebar-resizer",onMouseDown:d}),V.jsx(_F,{comments:[...i].sort((S,T)=>S.startLine-T.startLine),filename:n||e,onDeleteComment:m,onDeleteAll:_,onClose:g,onLineClick:C,onEditComment:v})]})]})},Gy=({error:t})=>V.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"2rem auto",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"8px"},children:[V.jsx("h2",{style:{color:"#c00"},children:"Error"}),V.jsx("p",{children:t.message})]}),yX=()=>{const{files:t,loading:e,error:n}=JL(),[i,a]=zt.useState(null),[s,o]=zt.useState(!0),[c,f]=zt.useState(!1),[h,d]=tR("md-review-comments",{}),{content:g,filename:y,loading:m,error:_,reload:v}=Hw(i);jw(R=>{i===R&&v()});const{width:C,isResizing:S,isCollapsed:T,handleMouseDown:A,toggleCollapse:B}=qw({initialWidth:240,minWidth:180,maxWidth:500,storageKey:"md-review-sidebar-width",collapsible:!0,collapseThreshold:120}),N=()=>{o(!0),f(!0),setTimeout(()=>f(!1),100)};if(e)return V.jsx("div",{className:"dev-loading",children:V.jsx("p",{children:"Loading files..."})});if(n)return V.jsx(Gy,{error:n});if(t.length===0)return V.jsxs("div",{className:"dev-empty",children:[V.jsx("h2",{children:"No Markdown Files Found"}),V.jsx("p",{children:"No .md files were found in the current directory."})]});const E=s&&!T;return V.jsxs("div",{className:`dev-container ${E?"":"sidebar-closed"} ${S?"resizing":""}`,children:[V.jsxs("div",{className:`dev-sidebar ${E?"":"closed"}`,style:E?{width:`${C}px`}:void 0,children:[!E&&V.jsxs("div",{className:"sidebar-icon-bar",children:[V.jsx("button",{className:"icon-bar-item",onClick:()=>{o(!0),T&&B()},title:"Open sidebar",children:V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:V.jsx("path",{d:"M5 3h6l2 2h4a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1h2z",stroke:"currentColor",strokeWidth:"1.5"})})}),V.jsx("button",{className:"icon-bar-item",onClick:N,title:"Search",children:V.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[V.jsx("circle",{cx:"9",cy:"9",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),V.jsx("path",{d:"M13.5 13.5l3.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),V.jsx(Yw,{}),V.jsx("div",{className:"icon-bar-spacer"}),V.jsx("a",{href:"https://github.com/ryo-manba/md-review",target:"_blank",rel:"noopener noreferrer",className:"icon-bar-item",title:"View on GitHub","aria-label":"View on GitHub",children:V.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:V.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})]}),E&&V.jsxs(V.Fragment,{children:[V.jsx("div",{className:"sidebar-content",children:V.jsx(nR,{files:t,selectedFile:i,onFileSelect:a,onToggleSidebar:()=>o(!1),autoFocusSearch:c})}),V.jsx("div",{className:"sidebar-resizer",onMouseDown:A})]})]}),V.jsx("div",{className:"dev-main",children:i?m?V.jsx("div",{className:"dev-loading",children:V.jsx("p",{children:"Loading markdown..."})}):_?V.jsx(Gy,{error:_}):g&&y?V.jsx(zN,{content:g,filename:y,filePath:i||y,comments:h[i||y]||[],onCommentsChange:R=>{const G=i||y;d(Z=>({...Z,[G]:R}))}}):V.jsx("div",{className:"dev-placeholder",children:V.jsx("p",{children:"No content available"})}):V.jsxs("div",{className:"dev-placeholder",children:[V.jsx("h2",{children:"Welcome to md-review"}),V.jsx("p",{children:"Select a markdown file from the sidebar to preview"}),V.jsxs("p",{className:"file-count",children:[t.length," markdown files found"]})]})})]})},bX=()=>{const{content:t,filename:e,loading:n,error:i,reload:a}=Hw(),[s,o]=zt.useState([]);return jw(()=>{a()}),n?V.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:V.jsx("p",{children:"Loading..."})}):i?V.jsx(Gy,{error:i}):!t||!e?V.jsx("div",{style:{padding:"2rem"},children:V.jsx("p",{children:"No content available"})}):V.jsx(zN,{content:t,filename:e,comments:s,onCommentsChange:o})};function xX(){const[t,e]=zt.useState("loading");return zt.useEffect(()=>{(async()=>{try{(await fetch("/api/files")).ok?e("dev"):e("cli")}catch{e("cli")}})()},[]),t==="loading"?V.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:V.jsx("p",{children:"Initializing..."})}):t==="dev"?V.jsx(yX,{}):V.jsx(bX,{})}ZL.createRoot(document.getElementById("root")).render(V.jsx(zt.StrictMode,{children:V.jsx(xX,{})}));export{UC as $,Uc as A,TF as B,V$ as C,Kb as D,Zn as E,OC as F,k7 as G,TU as H,aS as I,RP as J,c$ as K,eo as L,SX as M,Td as N,A$ as O,gb as P,yS as Q,bU as R,cf as S,C7 as T,hu as U,I$ as V,uu as W,Mt as X,qt as Y,m7 as Z,w as _,H$ as a,qb as a$,pU as a0,zS as a1,IS as a2,RX as a3,AX as a4,OX as a5,NX as a6,EX as a7,Ls as a8,Ab as a9,$j as aA,gU as aB,vX as aC,Ed as aD,Wf as aE,OT as aF,ad as aG,bu as aH,zj as aI,Ij as aJ,Cb as aK,Ya as aL,NS as aM,V9 as aN,Xc as aO,jq as aP,MT as aQ,ST as aR,VH as aS,jf as aT,XH as aU,mu as aV,El as aW,$q as aX,iw as aY,jl as aZ,KH as a_,LX as aa,TX as ab,BX as ac,DX as ad,MX as ae,uG as af,$M as ag,GX as ah,BP as ai,Rn as aj,el as ak,Ub as al,hA as am,Wl as an,zT as ao,Qt as ap,Dr as aq,eY as ar,jX as as,YX as at,HX as au,Dt as av,qX as aw,zG as ax,LG as ay,OG as az,P$ as b,WH as b0,JH as b1,po as b2,qq as b3,f7 as b4,rq as b5,a7 as b6,Pb as b7,Iw as b8,Rt as b9,Py as bA,Re as bB,yT as ba,Mi as bb,P9 as bc,wb as bd,tk as be,du as bf,ik as bg,kX as bh,EF as bi,h7 as bj,r7 as bk,d7 as bl,Sd as bm,GH as bn,Hb as bo,AT as bp,g7 as bq,fo as br,Kq as bs,CY as bt,gu as bu,Yf as bv,tl as bw,QS as bx,jb as by,CT as bz,Oe as c,Se as d,$C as e,On as f,j$ as g,da as h,ar as i,PP as j,uo as k,ht as l,$T as m,wX as n,VX as o,G$ as p,Y$ as q,WX as r,q$ as s,DP as t,mr as u,AG as v,A7 as w,IX as x,U$ as y,CX as z};