var LikeC4Views=(function(G6){"use strict";/* prettier-ignore-start */
/* eslint-disable */

/******************************************************************************
 * This file was generated
 * DO NOT EDIT MANUALLY!
 ******************************************************************************/


function Y1e(e,r){for(var n=0;n<r.length;n++){const o=r[n];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(o,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function RO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var X6={exports:{}},_1={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var AO;function W1e(){if(AO)return _1;AO=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(o,a,i){var l=null;if(i!==void 0&&(l=""+i),a.key!==void 0&&(l=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:e,type:o,key:l,ref:a!==void 0?a:null,props:i}}return _1.Fragment=r,_1.jsx=n,_1.jsxs=n,_1}var NO;function G1e(){return NO||(NO=1,X6.exports=W1e()),X6.exports}var y=G1e(),K6={exports:{}},St={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var DO;function X1e(){if(DO)return St;DO=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),f=Symbol.iterator;function g(X){return X===null||typeof X!="object"?null:(X=f&&X[f]||X["@@iterator"],typeof X=="function"?X:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function k(X,Z,B){this.props=X,this.context=Z,this.refs=w,this.updater=B||b}k.prototype.isReactComponent={},k.prototype.setState=function(X,Z){if(typeof X!="object"&&typeof X!="function"&&X!=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,X,Z,"setState")},k.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function C(){}C.prototype=k.prototype;function _(X,Z,B){this.props=X,this.context=Z,this.refs=w,this.updater=B||b}var T=_.prototype=new C;T.constructor=_,x(T,k.prototype),T.isPureReactComponent=!0;var R=Array.isArray;function A(){}var D={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function $(X,Z,B){var W=B.ref;return{$$typeof:e,type:X,key:Z,ref:W!==void 0?W:null,props:B}}function O(X,Z){return $(X.type,Z,X.props)}function j(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function L(X){var Z={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(B){return Z[B]})}var Y=/\/+/g;function M(X,Z){return typeof X=="object"&&X!==null&&X.key!=null?L(""+X.key):Z.toString(36)}function q(X){switch(X.status){case"fulfilled":return X.value;case"rejected":throw X.reason;default:switch(typeof X.status=="string"?X.then(A,A):(X.status="pending",X.then(function(Z){X.status==="pending"&&(X.status="fulfilled",X.value=Z)},function(Z){X.status==="pending"&&(X.status="rejected",X.reason=Z)})),X.status){case"fulfilled":return X.value;case"rejected":throw X.reason}}throw X}function z(X,Z,B,W,Q){var J=typeof X;(J==="undefined"||J==="boolean")&&(X=null);var ne=!1;if(X===null)ne=!0;else switch(J){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(X.$$typeof){case e:case r:ne=!0;break;case d:return ne=X._init,z(ne(X._payload),Z,B,W,Q)}}if(ne)return Q=Q(X),ne=W===""?"."+M(X,0):W,R(Q)?(B="",ne!=null&&(B=ne.replace(Y,"$&/")+"/"),z(Q,Z,B,"",function(pe){return pe})):Q!=null&&(j(Q)&&(Q=O(Q,B+(Q.key==null||X&&X.key===Q.key?"":(""+Q.key).replace(Y,"$&/")+"/")+ne)),Z.push(Q)),1;ne=0;var te=W===""?".":W+":";if(R(X))for(var ee=0;ee<X.length;ee++)W=X[ee],J=te+M(W,ee),ne+=z(W,Z,B,J,Q);else if(ee=g(X),typeof ee=="function")for(X=ee.call(X),ee=0;!(W=X.next()).done;)W=W.value,J=te+M(W,ee++),ne+=z(W,Z,B,J,Q);else if(J==="object"){if(typeof X.then=="function")return z(q(X),Z,B,W,Q);throw Z=String(X),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ne}function H(X,Z,B){if(X==null)return X;var W=[],Q=0;return z(X,W,"","",function(J){return Z.call(B,J,Q++)}),W}function U(X){if(X._status===-1){var Z=X._result;Z=Z(),Z.then(function(B){(X._status===0||X._status===-1)&&(X._status=1,X._result=B)},function(B){(X._status===0||X._status===-1)&&(X._status=2,X._result=B)}),X._status===-1&&(X._status=0,X._result=Z)}if(X._status===1)return X._result.default;throw X._result}var K=typeof reportError=="function"?reportError:function(X){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof X=="object"&&X!==null&&typeof X.message=="string"?String(X.message):String(X),error:X});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",X);return}console.error(X)},V={map:H,forEach:function(X,Z,B){H(X,function(){Z.apply(this,arguments)},B)},count:function(X){var Z=0;return H(X,function(){Z++}),Z},toArray:function(X){return H(X,function(Z){return Z})||[]},only:function(X){if(!j(X))throw Error("React.Children.only expected to receive a single React element child.");return X}};return St.Activity=p,St.Children=V,St.Component=k,St.Fragment=n,St.Profiler=a,St.PureComponent=_,St.StrictMode=o,St.Suspense=c,St.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,St.__COMPILER_RUNTIME={__proto__:null,c:function(X){return D.H.useMemoCache(X)}},St.cache=function(X){return function(){return X.apply(null,arguments)}},St.cacheSignal=function(){return null},St.cloneElement=function(X,Z,B){if(X==null)throw Error("The argument must be a React element, but you passed "+X+".");var W=x({},X.props),Q=X.key;if(Z!=null)for(J in Z.key!==void 0&&(Q=""+Z.key),Z)!N.call(Z,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&Z.ref===void 0||(W[J]=Z[J]);var J=arguments.length-2;if(J===1)W.children=B;else if(1<J){for(var ne=Array(J),te=0;te<J;te++)ne[te]=arguments[te+2];W.children=ne}return $(X.type,Q,W)},St.createContext=function(X){return X={$$typeof:l,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null},X.Provider=X,X.Consumer={$$typeof:i,_context:X},X},St.createElement=function(X,Z,B){var W,Q={},J=null;if(Z!=null)for(W in Z.key!==void 0&&(J=""+Z.key),Z)N.call(Z,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(Q[W]=Z[W]);var ne=arguments.length-2;if(ne===1)Q.children=B;else if(1<ne){for(var te=Array(ne),ee=0;ee<ne;ee++)te[ee]=arguments[ee+2];Q.children=te}if(X&&X.defaultProps)for(W in ne=X.defaultProps,ne)Q[W]===void 0&&(Q[W]=ne[W]);return $(X,J,Q)},St.createRef=function(){return{current:null}},St.forwardRef=function(X){return{$$typeof:s,render:X}},St.isValidElement=j,St.lazy=function(X){return{$$typeof:d,_payload:{_status:-1,_result:X},_init:U}},St.memo=function(X,Z){return{$$typeof:u,type:X,compare:Z===void 0?null:Z}},St.startTransition=function(X){var Z=D.T,B={};D.T=B;try{var W=X(),Q=D.S;Q!==null&&Q(B,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(A,K)}catch(J){K(J)}finally{Z!==null&&B.types!==null&&(Z.types=B.types),D.T=Z}},St.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},St.use=function(X){return D.H.use(X)},St.useActionState=function(X,Z,B){return D.H.useActionState(X,Z,B)},St.useCallback=function(X,Z){return D.H.useCallback(X,Z)},St.useContext=function(X){return D.H.useContext(X)},St.useDebugValue=function(){},St.useDeferredValue=function(X,Z){return D.H.useDeferredValue(X,Z)},St.useEffect=function(X,Z){return D.H.useEffect(X,Z)},St.useEffectEvent=function(X){return D.H.useEffectEvent(X)},St.useId=function(){return D.H.useId()},St.useImperativeHandle=function(X,Z,B){return D.H.useImperativeHandle(X,Z,B)},St.useInsertionEffect=function(X,Z){return D.H.useInsertionEffect(X,Z)},St.useLayoutEffect=function(X,Z){return D.H.useLayoutEffect(X,Z)},St.useMemo=function(X,Z){return D.H.useMemo(X,Z)},St.useOptimistic=function(X,Z){return D.H.useOptimistic(X,Z)},St.useReducer=function(X,Z,B){return D.H.useReducer(X,Z,B)},St.useRef=function(X){return D.H.useRef(X)},St.useState=function(X){return D.H.useState(X)},St.useSyncExternalStore=function(X,Z,B){return D.H.useSyncExternalStore(X,Z,B)},St.useTransition=function(){return D.H.useTransition()},St.version="19.2.0",St}var PO;function Z6(){return PO||(PO=1,K6.exports=X1e()),K6.exports}var S=Z6();const Qr=RO(S),Wv=Y1e({__proto__:null,default:Qr},[S]);var Q6={exports:{}},So={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $O;function K1e(){if($O)return So;$O=1;var e=Z6();function r(c){var u="https://react.dev/errors/"+c;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(r(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 i(c,u,d){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:c,containerInfo:u,implementation:d}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return So.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,So.createPortal=function(c,u){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(r(299));return i(c,u,null,d)},So.flushSync=function(c){var u=l.T,d=o.p;try{if(l.T=null,o.p=2,c)return c()}finally{l.T=u,o.p=d,o.d.f()}},So.preconnect=function(c,u){typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,o.d.C(c,u))},So.prefetchDNS=function(c){typeof c=="string"&&o.d.D(c)},So.preinit=function(c,u){if(typeof c=="string"&&u&&typeof u.as=="string"){var d=u.as,p=s(d,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;d==="style"?o.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:p,integrity:f,fetchPriority:g}):d==="script"&&o.d.X(c,{crossOrigin:p,integrity:f,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},So.preinitModule=function(c,u){if(typeof c=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var d=s(u.as,u.crossOrigin);o.d.M(c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&o.d.M(c)},So.preload=function(c,u){if(typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var d=u.as,p=s(d,u.crossOrigin);o.d.L(c,d,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},So.preloadModule=function(c,u){if(typeof c=="string")if(u){var d=s(u.as,u.crossOrigin);o.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else o.d.m(c)},So.requestFormReset=function(c){o.d.r(c)},So.unstable_batchedUpdates=function(c,u){return c(u)},So.useFormState=function(c,u,d){return l.H.useFormState(c,u,d)},So.useFormStatus=function(){return l.H.useHostTransitionStatus()},So.version="19.2.0",So}var MO;function OO(){if(MO)return Q6.exports;MO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Q6.exports=K1e(),Q6.exports}var Fi=OO();const IO=RO(Fi);function Z1e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function xa(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return Z1e(e,r,n);throw Error("Wrong number of arguments")}function Dh(...e){return xa(Q1e,e)}const Q1e=(e,r)=>e.length>=r;function bt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function nt(e,r){if(!e)throw new Error(r??"Invariant failed")}function Ja(e){throw new Error(`NonExhaustive value: ${e}`)}function pr(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}const{min:J1e,max:e0e}=Math,Rd=(e,r=0,n=1)=>J1e(e0e(r,e),n),J6=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=Rd(e[r],0,255)):r===3&&(e[r]=Rd(e[r],0,1));return e},zO={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])zO[`[object ${e}]`]=e.toLowerCase();function Ft(e){return zO[Object.prototype.toString.call(e)]||"object"}const $t=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ft(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),Ph=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:Gv,min:LO,max:BO}=Math,ei=e=>Math.round(e*100)/100,e_=e=>Math.round(e*100)/100,Ms=Gv*2,t_=Gv/3,t0e=Gv/180,r0e=180/Gv;function jO(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Tt={format:{},autodetect:[]};let Be=class{constructor(...r){const n=this;if(Ft(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=Ph(r),a=!1;if(!o){a=!0,Tt.sorted||(Tt.autodetect=Tt.autodetect.sort((i,l)=>l.p-i.p),Tt.sorted=!0);for(let i of Tt.autodetect)if(o=i.test(...r),o)break}if(Tt.format[o]){const i=Tt.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=J6(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Ft(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const n0e="3.1.2",Rt=(...e)=>new Be(...e);Rt.version=n0e;const $h={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",cyan:"#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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",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",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",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",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},o0e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,a0e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,FO=e=>{if(e.match(o0e)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(a0e)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:Xv}=Math,HO=(...e)=>{let[r,n,o,a]=$t(e,"rgba"),i=Ph(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Xv(r),n=Xv(n),o=Xv(o);let s="000000"+(r<<16|n<<8|o).toString(16);s=s.substr(s.length-6);let c="0"+Xv(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${s}${c}`;case"argb":return`#${c}${s}`;default:return`#${s}`}};Be.prototype.name=function(){const e=HO(this._rgb,"rgb");for(let r of Object.keys($h))if($h[r]===e)return r.toLowerCase();return e},Tt.format.named=e=>{if(e=e.toLowerCase(),$h[e])return FO($h[e]);throw new Error("unknown color name: "+e)},Tt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&$h[e.toLowerCase()])return"named"}}),Be.prototype.alpha=function(e,r=!1){return e!==void 0&&Ft(e)==="number"?r?(this._rgb[3]=e,this):new Be([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Be.prototype.clipped=function(){return this._rgb._clipped||!1};const Wl={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},i0e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Os(e){const r=i0e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);Wl.labWhitePoint=e,Wl.Xn=r[0],Wl.Zn=r[1]}function E1(){return Wl.labWhitePoint}const r_=(...e)=>{e=$t(e,"lab");const[r,n,o]=e,[a,i,l]=l0e(r,n,o),[s,c,u]=qO(a,i,l);return[s,c,u,e.length>3?e[3]:1]},l0e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=Wl,u=(e+16)/116,d=.002*r+u,p=u-.005*n,f=d*d*d,g=p*p*p,b=f>o?f:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*p-16)/a,k=b*l,C=x*s,_=w*c;return[k,C,_]},n_=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},qO=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:u}=Wl,d=s*o.m00+c*o.m10+u*o.m20,p=s*o.m01+c*o.m11+u*o.m21,f=s*o.m02+c*o.m12+u*o.m22,g=l.X*o.m00+l.Y*o.m10+l.Z*o.m20,b=l.X*o.m01+l.Y*o.m11+l.Z*o.m21,x=l.X*o.m02+l.Y*o.m12+l.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(b/p),C=(e*o.m02+r*o.m12+n*o.m22)*(x/f),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,R=w*a.m02+k*a.m12+C*a.m22,A=n_(_*i.m00+T*i.m10+R*i.m20),D=n_(_*i.m01+T*i.m11+R*i.m21),N=n_(_*i.m02+T*i.m12+R*i.m22);return[A*255,D*255,N*255]},o_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=UO(r,n,o),[c,u,d]=s0e(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function s0e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=Wl,c=e/o,u=r/a,d=n/i,p=c>l?Math.pow(c,1/3):(s*c+16)/116,f=u>l?Math.pow(u,1/3):(s*u+16)/116,g=d>l?Math.pow(d,1/3):(s*d+16)/116;return[116*f-16,500*(p-f),200*(f-g)]}function a_(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const UO=(e,r,n)=>{e=a_(e/255),r=a_(r/255),n=a_(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:u,Bs:d,Cs:p}=Wl;let f=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,b=e*o.m02+r*o.m12+n*o.m22;const x=l*a.m00+s*a.m10+c*a.m20,w=l*a.m01+s*a.m11+c*a.m21,k=l*a.m02+s*a.m12+c*a.m22;let C=f*a.m00+g*a.m10+b*a.m20,_=f*a.m01+g*a.m11+b*a.m21,T=f*a.m02+g*a.m12+b*a.m22;return C*=x/u,_*=w/d,T*=k/p,f=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,b=C*i.m02+_*i.m12+T*i.m22,[f,g,b]};Be.prototype.lab=function(){return o_(this._rgb)},Object.assign(Rt,{lab:(...e)=>new Be(...e,"lab"),getLabWhitePoint:E1,setLabWhitePoint:Os}),Tt.format.lab=r_,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"lab"),Ft(e)==="array"&&e.length===3)return"lab"}}),Be.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=Wl.Kn*e,new Be(n,"lab").alpha(r.alpha(),!0)},Be.prototype.brighten=function(e=1){return this.darken(-e)},Be.prototype.darker=Be.prototype.darken,Be.prototype.brighter=Be.prototype.brighten,Be.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:c0e}=Math,u0e=1e-7,d0e=20;Be.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ft(e)==="number"){if(e===0)return new Be([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Be([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=d0e;const a=(l,s)=>{const c=l.interpolate(s,.5,r),u=c.luminance();return Math.abs(e-u)<u0e||!o--?c:u>e?a(l,c):a(c,s)},i=(n>e?a(new Be([0,0,0]),this):a(this,new Be([255,255,255]))).rgb();return new Be([...i,this._rgb[3]])}return p0e(...this._rgb.slice(0,3))};const p0e=(e,r,n)=>(e=i_(e),r=i_(r),n=i_(n),.2126*e+.7152*r+.0722*n),i_=e=>(e/=255,e<=.03928?e/12.92:c0e((e+.055)/1.055,2.4)),Co={},Mh=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Co[a]&&!o.length&&(a=Object.keys(Co)[0]),!Co[a])throw new Error(`interpolation mode ${a} is not defined`);return Ft(e)!=="object"&&(e=new Be(e)),Ft(r)!=="object"&&(r=new Be(r)),Co[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};Be.prototype.mix=Be.prototype.interpolate=function(e,r=.5,...n){return Mh(this,e,r,...n)},Be.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new Be([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:h0e,cos:f0e}=Math,VO=(...e)=>{let[r,n,o]=$t(e,"lch");return isNaN(o)&&(o=0),o=o*t0e,[r,f0e(o)*n,h0e(o)*n]},l_=(...e)=>{e=$t(e,"lch");const[r,n,o]=e,[a,i,l]=VO(r,n,o),[s,c,u]=r_(a,i,l);return[s,c,u,e.length>3?e[3]:1]},m0e=(...e)=>{const r=jO($t(e,"hcl"));return l_(...r)},{sqrt:g0e,atan2:y0e,round:b0e}=Math,YO=(...e)=>{const[r,n,o]=$t(e,"lab"),a=g0e(n*n+o*o);let i=(y0e(o,n)*r0e+360)%360;return b0e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},s_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=o_(r,n,o),[c,u,d]=YO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};Be.prototype.lch=function(){return s_(this._rgb)},Be.prototype.hcl=function(){return jO(s_(this._rgb))},Object.assign(Rt,{lch:(...e)=>new Be(...e,"lch"),hcl:(...e)=>new Be(...e,"hcl")}),Tt.format.lch=l_,Tt.format.hcl=m0e,["lch","hcl"].forEach(e=>Tt.autodetect.push({p:2,test:(...r)=>{if(r=$t(r,e),Ft(r)==="array"&&r.length===3)return e}})),Be.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=Wl.Kn*e,n[1]<0&&(n[1]=0),new Be(n,"lch").alpha(r.alpha(),!0)},Be.prototype.desaturate=function(e=1){return this.saturate(-e)},Be.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const l=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(l>-1){if(Ft(r)=="string")switch(r.charAt(0)){case"+":i[l]+=+r;break;case"-":i[l]+=+r;break;case"*":i[l]*=+r.substr(1);break;case"/":i[l]/=+r.substr(1);break;default:i[l]=+r}else if(Ft(r)==="number")i[l]=r;else throw new Error("unsupported value for Color.set");const s=new Be(i,o);return n?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},Be.prototype.tint=function(e=.5,...r){return Mh(this,"white",e,...r)},Be.prototype.shade=function(e=.5,...r){return Mh(this,"black",e,...r)};const v0e=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Co.rgb=v0e;const{sqrt:c_,pow:Oh}=Math,x0e=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new Be(c_(Oh(o,2)*(1-n)+Oh(l,2)*n),c_(Oh(a,2)*(1-n)+Oh(s,2)*n),c_(Oh(i,2)*(1-n)+Oh(c,2)*n),"rgb")};Co.lrgb=x0e;const w0e=(e,r,n)=>{const o=e.lab(),a=r.lab();return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Co.lab=w0e;const Ih=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let l,s,c,u,d,p;(o.substr(0,1)==="h"||o==="oklch")&&([l,c,d]=a,[s,u,p]=i);let f,g,b,x;return!isNaN(l)&&!isNaN(s)?(s>l&&s-l>180?x=s-(l+360):s<l&&l-s>180?x=s+360-l:x=s-l,g=l+n*x):isNaN(l)?isNaN(s)?g=Number.NaN:(g=s,(d==1||d==0)&&o!="hsv"&&(f=u)):(g=l,(p==1||p==0)&&o!="hsv"&&(f=c)),f===void 0&&(f=c+n*(u-c)),b=d+n*(p-d),o==="oklch"?new Be([b,f,g],o):new Be([g,f,b],o)},WO=(e,r,n)=>Ih(e,r,n,"lch");Co.lch=WO,Co.hcl=WO;const k0e=e=>{if(Ft(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},_0e=(...e)=>{const[r,n,o]=$t(e,"rgb");return(r<<16)+(n<<8)+o};Be.prototype.num=function(){return _0e(this._rgb)},Object.assign(Rt,{num:(...e)=>new Be(...e,"num")}),Tt.format.num=k0e,Tt.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const E0e=(e,r,n)=>{const o=e.num(),a=r.num();return new Be(o+n*(a-o),"num")};Co.num=E0e;const{floor:S0e}=Math,C0e=(...e)=>{e=$t(e,"hcg");let[r,n,o]=e,a,i,l;o=o*255;const s=n*255;if(n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=S0e(r),u=r-c,d=o*(1-n),p=d+s*(1-u),f=d+s*u,g=d+s;switch(c){case 0:[a,i,l]=[g,f,d];break;case 1:[a,i,l]=[p,g,d];break;case 2:[a,i,l]=[d,g,f];break;case 3:[a,i,l]=[d,p,g];break;case 4:[a,i,l]=[f,d,g];break;case 5:[a,i,l]=[g,d,p];break}}return[a,i,l,e.length>3?e[3]:1]},T0e=(...e)=>{const[r,n,o]=$t(e,"rgb"),a=LO(r,n,o),i=BO(r,n,o),l=i-a,s=l*100/255,c=a/(255-l)*100;let u;return l===0?u=Number.NaN:(r===i&&(u=(n-o)/l),n===i&&(u=2+(o-r)/l),o===i&&(u=4+(r-n)/l),u*=60,u<0&&(u+=360)),[u,s,c]};Be.prototype.hcg=function(){return T0e(this._rgb)};const R0e=(...e)=>new Be(...e,"hcg");Rt.hcg=R0e,Tt.format.hcg=C0e,Tt.autodetect.push({p:1,test:(...e)=>{if(e=$t(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const A0e=(e,r,n)=>Ih(e,r,n,"hcg");Co.hcg=A0e;const{cos:zh}=Math,N0e=(...e)=>{e=$t(e,"hsi");let[r,n,o]=e,a,i,l;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(l=(1-n)/3,a=(1+n*zh(Ms*r)/zh(t_-Ms*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*zh(Ms*r)/zh(t_-Ms*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*zh(Ms*r)/zh(t_-Ms*r))/3,a=1-(i+l)),a=Rd(o*a*3),i=Rd(o*i*3),l=Rd(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:D0e,sqrt:P0e,acos:$0e}=Math,M0e=(...e)=>{let[r,n,o]=$t(e,"rgb");r/=255,n/=255,o/=255;let a;const i=D0e(r,n,o),l=(r+n+o)/3,s=l>0?1-i/l:0;return s===0?a=NaN:(a=(r-n+(r-o))/2,a/=P0e((r-n)*(r-n)+(r-o)*(n-o)),a=$0e(a),o>n&&(a=Ms-a),a/=Ms),[a*360,s,l]};Be.prototype.hsi=function(){return M0e(this._rgb)};const O0e=(...e)=>new Be(...e,"hsi");Rt.hsi=O0e,Tt.format.hsi=N0e,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const I0e=(e,r,n)=>Ih(e,r,n,"hsi");Co.hsi=I0e;const u_=(...e)=>{e=$t(e,"hsl");const[r,n,o]=e;let a,i,l;if(n===0)a=i=l=o*255;else{const s=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,p=r/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let f=0;f<3;f++)s[f]<0&&(s[f]+=1),s[f]>1&&(s[f]-=1),6*s[f]<1?c[f]=d+(u-d)*6*s[f]:2*s[f]<1?c[f]=u:3*s[f]<2?c[f]=d+(u-d)*(2/3-s[f])*6:c[f]=d;[a,i,l]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,l,e[3]]:[a,i,l,1]},GO=(...e)=>{e=$t(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=LO(r,n,o),i=BO(r,n,o),l=(i+a)/2;let s,c;return i===a?(s=0,c=Number.NaN):s=l<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,l,e[3]]:[c,s,l]};Be.prototype.hsl=function(){return GO(this._rgb)};const z0e=(...e)=>new Be(...e,"hsl");Rt.hsl=z0e,Tt.format.hsl=u_,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const L0e=(e,r,n)=>Ih(e,r,n,"hsl");Co.hsl=L0e;const{floor:B0e}=Math,j0e=(...e)=>{e=$t(e,"hsv");let[r,n,o]=e,a,i,l;if(o*=255,n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=B0e(r),c=r-s,u=o*(1-n),d=o*(1-n*c),p=o*(1-n*(1-c));switch(s){case 0:[a,i,l]=[o,p,u];break;case 1:[a,i,l]=[d,o,u];break;case 2:[a,i,l]=[u,o,p];break;case 3:[a,i,l]=[u,d,o];break;case 4:[a,i,l]=[p,u,o];break;case 5:[a,i,l]=[o,u,d];break}}return[a,i,l,e.length>3?e[3]:1]},{min:F0e,max:H0e}=Math,q0e=(...e)=>{e=$t(e,"rgb");let[r,n,o]=e;const a=F0e(r,n,o),i=H0e(r,n,o),l=i-a;let s,c,u;return u=i/255,i===0?(s=Number.NaN,c=0):(c=l/i,r===i&&(s=(n-o)/l),n===i&&(s=2+(o-r)/l),o===i&&(s=4+(r-n)/l),s*=60,s<0&&(s+=360)),[s,c,u]};Be.prototype.hsv=function(){return q0e(this._rgb)};const U0e=(...e)=>new Be(...e,"hsv");Rt.hsv=U0e,Tt.format.hsv=j0e,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const V0e=(e,r,n)=>Ih(e,r,n,"hsv");Co.hsv=V0e;function Kv(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(l=>[l]));let o=r[0].length,a=r[0].map((l,s)=>r.map(c=>c[s])),i=e.map(l=>a.map(s=>Array.isArray(l)?l.reduce((c,u,d)=>c+u*(s[d]||0),0):s.reduce((c,u)=>c+u*l,0)));return n===1&&(i=i[0]),o===1?i.map(l=>l[0]):i}const d_=(...e)=>{e=$t(e,"lab");const[r,n,o,...a]=e,[i,l,s]=Y0e([r,n,o]),[c,u,d]=qO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function Y0e(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Kv(n,e);return Kv(r,o.map(a=>a**3))}const p_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),i=UO(r,n,o);return[...W0e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function W0e(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Kv(r,e);return Kv(n,o.map(a=>Math.cbrt(a)))}Be.prototype.oklab=function(){return p_(this._rgb)},Object.assign(Rt,{oklab:(...e)=>new Be(...e,"oklab")}),Tt.format.oklab=d_,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const G0e=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Co.oklab=G0e;const X0e=(e,r,n)=>Ih(e,r,n,"oklch");Co.oklch=X0e;const{pow:h_,sqrt:f_,PI:m_,cos:XO,sin:KO,atan2:K0e}=Math,Z0e=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(p,f){return p+f});if(n.forEach((p,f)=>{n[f]*=a}),e=e.map(p=>new Be(p)),r==="lrgb")return Q0e(e,n);const i=e.shift(),l=i.get(r),s=[];let c=0,u=0;for(let p=0;p<l.length;p++)if(l[p]=(l[p]||0)*n[0],s.push(isNaN(l[p])?0:n[0]),r.charAt(p)==="h"&&!isNaN(l[p])){const f=l[p]/180*m_;c+=XO(f)*n[0],u+=KO(f)*n[0]}let d=i.alpha()*n[0];e.forEach((p,f)=>{const g=p.get(r);d+=p.alpha()*n[f+1];for(let b=0;b<l.length;b++)if(!isNaN(g[b]))if(s[b]+=n[f+1],r.charAt(b)==="h"){const x=g[b]/180*m_;c+=XO(x)*n[f+1],u+=KO(x)*n[f+1]}else l[b]+=g[b]*n[f+1]});for(let p=0;p<l.length;p++)if(r.charAt(p)==="h"){let f=K0e(u/s[p],c/s[p])/m_*180;for(;f<0;)f+=360;for(;f>=360;)f-=360;l[p]=f}else l[p]=l[p]/s[p];return d/=o,new Be(l,r).alpha(d>.99999?1:d,!0)},Q0e=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a<e.length;a++){const i=e[a],l=r[a]/n,s=i._rgb;o[0]+=h_(s[0],2)*l,o[1]+=h_(s[1],2)*l,o[2]+=h_(s[2],2)*l,o[3]+=s[3]*l}return o[0]=f_(o[0]),o[1]=f_(o[1]),o[2]=f_(o[2]),o[3]>.9999999&&(o[3]=1),new Be(J6(o))},{pow:J0e}=Math;function Zv(e){let r="rgb",n=Rt("#ccc"),o=0,a=[0,1],i=[],l=[0,0],s=!1,c=[],u=!1,d=0,p=1,f=!1,g={},b=!0,x=1;const w=function(D){if(D=D||["#fff","#000"],D&&Ft(D)==="string"&&Rt.brewer&&Rt.brewer[D.toLowerCase()]&&(D=Rt.brewer[D.toLowerCase()]),Ft(D)==="array"){D.length===1&&(D=[D[0],D[0]]),D=D.slice(0);for(let N=0;N<D.length;N++)D[N]=Rt(D[N]);i.length=0;for(let N=0;N<D.length;N++)i.push(N/(D.length-1))}return R(),c=D},k=function(D){if(s!=null){const N=s.length-1;let $=0;for(;$<N&&D>=s[$];)$++;return $-1}return 0};let C=D=>D,_=D=>D;const T=function(D,N){let $,O;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?O=D:s&&s.length>2?O=k(D)/(s.length-2):p!==d?O=(D-d)/(p-d):O=1,O=_(O),N||(O=C(O)),x!==1&&(O=J0e(O,x)),O=l[0]+O*(1-l[0]-l[1]),O=Rd(O,0,1);const j=Math.floor(O*1e4);if(b&&g[j])$=g[j];else{if(Ft(c)==="array")for(let L=0;L<i.length;L++){const Y=i[L];if(O<=Y){$=c[L];break}if(O>=Y&&L===i.length-1){$=c[L];break}if(O>Y&&O<i[L+1]){O=(O-Y)/(i[L+1]-Y),$=Rt.interpolate(c[L],c[L+1],O,r);break}}else Ft(c)==="function"&&($=c(O));b&&(g[j]=$)}return $};var R=()=>g={};w(e);const A=function(D){const N=Rt(T(D));return u&&N[u]?N[u]():N};return A.classes=function(D){if(D!=null){if(Ft(D)==="array")s=D,a=[D[0],D[D.length-1]];else{const N=Rt.analyze(a);D===0?s=[N.min,N.max]:s=Rt.limits(N,"e",D)}return A}return s},A.domain=function(D){if(!arguments.length)return a;d=D[0],p=D[D.length-1],i=[];const N=c.length;if(D.length===N&&d!==p)for(let $ of Array.from(D))i.push(($-d)/(p-d));else{for(let $=0;$<N;$++)i.push($/(N-1));if(D.length>2){const $=D.map((j,L)=>L/(D.length-1)),O=D.map(j=>(j-d)/(p-d));O.every((j,L)=>$[L]===j)||(_=j=>{if(j<=0||j>=1)return j;let L=0;for(;j>=O[L+1];)L++;const Y=(j-O[L])/(O[L+1]-O[L]);return $[L]+Y*($[L+1]-$[L])})}}return a=[d,p],A},A.mode=function(D){return arguments.length?(r=D,R(),A):r},A.range=function(D,N){return w(D),A},A.out=function(D){return u=D,A},A.spread=function(D){return arguments.length?(o=D,A):o},A.correctLightness=function(D){return D==null&&(D=!0),f=D,R(),f?C=function(N){const $=T(0,!0).lab()[0],O=T(1,!0).lab()[0],j=$>O;let L=T(N,!0).lab()[0];const Y=$+(O-$)*N;let M=L-Y,q=0,z=1,H=20;for(;Math.abs(M)>.01&&H-- >0;)(function(){return j&&(M*=-1),M<0?(q=N,N+=(z-N)*.5):(z=N,N+=(q-N)*.5),L=T(N,!0).lab()[0],M=L-Y})();return N}:C=N=>N,A},A.padding=function(D){return D!=null?(Ft(D)==="number"&&(D=[D,D]),l=D,A):l},A.colors=function(D,N){arguments.length<2&&(N="hex");let $=[];if(arguments.length===0)$=c.slice(0);else if(D===1)$=[A(.5)];else if(D>1){const O=a[0],j=a[1]-O;$=eye(0,D).map(L=>A(O+L/(D-1)*j))}else{e=[];let O=[];if(s&&s.length>2)for(let j=1,L=s.length,Y=1<=L;Y?j<L:j>L;Y?j++:j--)O.push((s[j-1]+s[j])*.5);else O=a;$=O.map(j=>A(j))}return Rt[N]&&($=$.map(O=>O[N]())),$},A.cache=function(D){return D!=null?(b=D,A):b},A.gamma=function(D){return D!=null?(x=D,A):x},A.nodata=function(D){return D!=null?(n=Rt(D),A):n},A}function eye(e,r,n){let o=[],a=e<r,i=r;for(let l=e;a?l<i:l>i;a?l++:l--)o.push(l);return o}const tye=function(e){let r=[1,1];for(let n=1;n<e;n++){let o=[1];for(let a=1;a<=r.length;a++)o[a]=(r[a]||0)+r[a-1];r=o}return r},rye=function(e){let r,n,o,a;if(e=e.map(i=>new Be(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>n[s]+i*(o[s]-n[s]));return new Be(l,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>(1-i)*(1-i)*n[s]+2*(1-i)*i*o[s]+i*i*a[s]);return new Be(l,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(l=>l.lab()),r=function(l){const s=[0,1,2].map(c=>(1-l)*(1-l)*(1-l)*n[c]+3*(1-l)*(1-l)*l*o[c]+3*(1-l)*l*l*a[c]+l*l*l*i[c]);return new Be(s,"lab")}}else if(e.length>=5){let i,l,s;i=e.map(c=>c.lab()),s=e.length-1,l=tye(s),r=function(c){const u=1-c,d=[0,1,2].map(p=>i.reduce((f,g,b)=>f+l[b]*u**(s-b)*c**b*g[p],0));return new Be(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},nye=e=>{const r=rye(e);return r.scale=()=>Zv(r),r},{round:ZO}=Math;Be.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ZO)},Be.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:ZO(r):r)},Object.assign(Rt,{rgb:(...e)=>new Be(...e,"rgb")}),Tt.format.rgb=(...e)=>{const r=$t(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Tt.autodetect.push({p:3,test:(...e)=>{if(e=$t(e,"rgba"),Ft(e)==="array"&&(e.length===3||e.length===4&&Ft(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Hi=(e,r,n)=>{if(!Hi[n])throw new Error("unknown blend mode "+n);return Hi[n](e,r)},Qc=e=>(r,n)=>{const o=Rt(n).rgb(),a=Rt(r).rgb();return Rt.rgb(e(o,a))},Jc=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},oye=e=>e,aye=(e,r)=>e*r/255,iye=(e,r)=>e>r?r:e,lye=(e,r)=>e>r?e:r,sye=(e,r)=>255*(1-(1-e/255)*(1-r/255)),cye=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),uye=(e,r)=>255*(1-(1-r/255)/(e/255)),dye=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Hi.normal=Qc(Jc(oye)),Hi.multiply=Qc(Jc(aye)),Hi.screen=Qc(Jc(sye)),Hi.overlay=Qc(Jc(cye)),Hi.darken=Qc(Jc(iye)),Hi.lighten=Qc(Jc(lye)),Hi.dodge=Qc(Jc(dye)),Hi.burn=Qc(Jc(uye));const{pow:pye,sin:hye,cos:fye}=Math;function mye(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,l;Ft(a)==="array"?l=a[1]-a[0]:(l=0,a=[a,a]);const s=function(c){const u=Ms*((e+120)/360+r*c),d=pye(a[0]+l*c,o),f=(i!==0?n[0]+c*i:n)*d*(1-d)/2,g=fye(u),b=hye(u),x=d+f*(-.14861*g+1.78277*b),w=d+f*(-.29227*g-.90649*b),k=d+f*(1.97294*g);return Rt(J6([x*255,w*255,k*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?r:(r=c,s)},s.gamma=function(c){return c==null?o:(o=c,s)},s.hue=function(c){return c==null?n:(n=c,Ft(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,s)},s.lightness=function(c){return c==null?a:(Ft(c)==="array"?(a=c,l=c[1]-c[0]):(a=[c,c],l=0),s)},s.scale=()=>Rt.scale(s),s.hue(n),s}const gye="0123456789abcdef",{floor:yye,random:bye}=Math,vye=()=>{let e="#";for(let r=0;r<6;r++)e+=gye.charAt(yye(bye()*16));return new Be(e,"hex")},{log:QO,pow:xye,floor:wye,abs:kye}=Math;function JO(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ft(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ft(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,o<n.min&&(n.min=o),o>n.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>eI(n,o,a),n}function eI(e,r="equal",n=7){Ft(e)=="array"&&(e=JO(e));const{min:o,max:a}=e,i=e.values.sort((s,c)=>s-c);if(n===1)return[o,a];const l=[];if(r.substr(0,1)==="c"&&(l.push(o),l.push(a)),r.substr(0,1)==="e"){l.push(o);for(let s=1;s<n;s++)l.push(o+s/n*(a-o));l.push(a)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const s=Math.LOG10E*QO(o),c=Math.LOG10E*QO(a);l.push(o);for(let u=1;u<n;u++)l.push(xye(10,s+u/n*(c-s)));l.push(a)}else if(r.substr(0,1)==="q"){l.push(o);for(let s=1;s<n;s++){const c=(i.length-1)*s/n,u=wye(c);if(u===c)l.push(i[u]);else{const d=c-u;l.push(i[u]*(1-d)+i[u+1]*d)}}l.push(a)}else if(r.substr(0,1)==="k"){let s;const c=i.length,u=new Array(c),d=new Array(n);let p=!0,f=0,g=null;g=[],g.push(o);for(let w=1;w<n;w++)g.push(o+w/n*(a-o));for(g.push(a);p;){for(let k=0;k<n;k++)d[k]=0;for(let k=0;k<c;k++){const C=i[k];let _=Number.MAX_VALUE,T;for(let R=0;R<n;R++){const A=kye(g[R]-C);A<_&&(_=A,T=R),d[T]++,u[k]=T}}const w=new Array(n);for(let k=0;k<n;k++)w[k]=null;for(let k=0;k<c;k++)s=u[k],w[s]===null?w[s]=i[k]:w[s]+=i[k];for(let k=0;k<n;k++)w[k]*=1/d[k];p=!1;for(let k=0;k<n;k++)if(w[k]!==g[k]){p=!0;break}g=w,f++,f>200&&(p=!1)}const b={};for(let w=0;w<n;w++)b[w]=[];for(let w=0;w<c;w++)s=u[w],b[s].push(i[w]);let x=[];for(let w=0;w<n;w++)x.push(b[w][0]),x.push(b[w][b[w].length-1]);x=x.sort((w,k)=>w-k),l.push(x[0]);for(let w=1;w<x.length;w+=2){const k=x[w];!isNaN(k)&&l.indexOf(k)===-1&&l.push(k)}}return l}const _ye=(e,r)=>{e=new Be(e),r=new Be(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/**
 * @license
 *
 * The APCA contrast prediction algorithm is based of the formulas published
 * in the APCA-1.0.98G specification by Myndex. The specification is available at:
 * https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
 *
 * Note that the APCA implementation is still beta, so please update to
 * future versions of chroma.js when they become available.
 *
 * You can read more about the APCA Readability Criterion at
 * https://readtech.org/ARC/
 */const tI=.027,Eye=5e-4,Sye=.1,rI=1.14,Qv=.022,nI=1.414,Cye=(e,r)=>{e=new Be(e),r=new Be(r),e.alpha()<1&&(e=Mh(r,e,e.alpha(),"rgb"));const n=oI(...e.rgb()),o=oI(...r.rgb()),a=n>=Qv?n:n+Math.pow(Qv-n,nI),i=o>=Qv?o:o+Math.pow(Qv-o,nI),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)<Eye?0:a<i?l*rI:s*rI;return(Math.abs(c)<Sye?0:c>0?c-tI:c+tI)*100};function oI(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Is,pow:bn,min:Tye,max:Rye,atan2:aI,abs:iI,cos:Jv,sin:lI,exp:Aye,PI:sI}=Math;function Nye(e,r,n=1,o=1,a=1){var i=function(B){return 360*B/(2*sI)},l=function(B){return 2*sI*B/360};e=new Be(e),r=new Be(r);const[s,c,u]=Array.from(e.lab()),[d,p,f]=Array.from(r.lab()),g=(s+d)/2,b=Is(bn(c,2)+bn(u,2)),x=Is(bn(p,2)+bn(f,2)),w=(b+x)/2,k=.5*(1-Is(bn(w,7)/(bn(w,7)+bn(25,7)))),C=c*(1+k),_=p*(1+k),T=Is(bn(C,2)+bn(u,2)),R=Is(bn(_,2)+bn(f,2)),A=(T+R)/2,D=i(aI(u,C)),N=i(aI(f,_)),$=D>=0?D:D+360,O=N>=0?N:N+360,j=iI($-O)>180?($+O+360)/2:($+O)/2,L=1-.17*Jv(l(j-30))+.24*Jv(l(2*j))+.32*Jv(l(3*j+6))-.2*Jv(l(4*j-63));let Y=O-$;Y=iI(Y)<=180?Y:O<=$?Y+360:Y-360,Y=2*Is(T*R)*lI(l(Y)/2);const M=d-s,q=R-T,z=1+.015*bn(g-50,2)/Is(20+bn(g-50,2)),H=1+.045*A,U=1+.015*A*L,K=30*Aye(-bn((j-275)/25,2)),X=-(2*Is(bn(A,7)/(bn(A,7)+bn(25,7))))*lI(2*l(K)),Z=Is(bn(M/(n*z),2)+bn(q/(o*H),2)+bn(Y/(a*U),2)+X*(q/(o*H))*(Y/(a*U)));return Rye(0,Tye(100,Z))}function Dye(e,r,n="lab"){e=new Be(e),r=new Be(r);const o=e.get(n),a=r.get(n);let i=0;for(let l in o){const s=(o[l]||0)-(a[l]||0);i+=s*s}return Math.sqrt(i)}const Pye=(...e)=>{try{return new Be(...e),!0}catch{return!1}},$ye={cool(){return Zv([Rt.hsl(180,1,.9),Rt.hsl(250,.7,.4)])},hot(){return Zv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},g_={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},cI=Object.keys(g_),uI=new Map(cI.map(e=>[e.toLowerCase(),e])),Mye=typeof Proxy=="function"?new Proxy(g_,{get(e,r){const n=r.toLowerCase();if(uI.has(n))return e[uI.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(cI)}}):g_,Oye=(...e)=>{e=$t(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:dI}=Math,Iye=(...e)=>{let[r,n,o]=$t(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-dI(r,dI(n,o)),i=a<1?1/(1-a):0,l=(1-r-a)*i,s=(1-n-a)*i,c=(1-o-a)*i;return[l,s,c,a]};Be.prototype.cmyk=function(){return Iye(this._rgb)},Object.assign(Rt,{cmyk:(...e)=>new Be(...e,"cmyk")}),Tt.format.cmyk=Oye,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const zye=(...e)=>{const r=$t(e,"hsla");let n=Ph(e)||"lsa";return r[0]=ei(r[0]||0)+"deg",r[1]=ei(r[1]*100)+"%",r[2]=ei(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},Lye=(...e)=>{const r=$t(e,"lab");let n=Ph(e)||"lab";return r[0]=ei(r[0])+"%",r[1]=ei(r[1]),r[2]=ei(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},Bye=(...e)=>{const r=$t(e,"lch");let n=Ph(e)||"lab";return r[0]=ei(r[0])+"%",r[1]=ei(r[1]),r[2]=isNaN(r[2])?"none":ei(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},jye=(...e)=>{const r=$t(e,"lab");return r[0]=ei(r[0]*100)+"%",r[1]=e_(r[1]),r[2]=e_(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},pI=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=p_(r,n,o),[c,u,d]=YO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Fye=(...e)=>{const r=$t(e,"lch");return r[0]=ei(r[0]*100)+"%",r[1]=e_(r[1]),r[2]=isNaN(r[2])?"none":ei(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:y_}=Math,Hye=(...e)=>{const r=$t(e,"rgba");let n=Ph(e)||"rgb";if(n.substr(0,3)==="hsl")return zye(GO(r),n);if(n.substr(0,3)==="lab"){const o=E1();Os("d50");const a=Lye(o_(r),n);return Os(o),a}if(n.substr(0,3)==="lch"){const o=E1();Os("d50");const a=Bye(s_(r),n);return Os(o),a}return n.substr(0,5)==="oklab"?jye(p_(r)):n.substr(0,5)==="oklch"?Fye(pI(r)):(r[0]=y_(r[0]),r[1]=y_(r[1]),r[2]=y_(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},hI=(...e)=>{e=$t(e,"lch");const[r,n,o,...a]=e,[i,l,s]=VO(r,n,o),[c,u,d]=d_(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},zs=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,qi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,e3=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,ti=/\s*/.source,Lh=/\s+/.source,b_=/\s*,\s*/.source,t3=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Bh=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,fI=new RegExp("^rgba?\\("+ti+[zs,zs,zs].join(Lh)+Bh+"\\)$"),mI=new RegExp("^rgb\\("+ti+[zs,zs,zs].join(b_)+ti+"\\)$"),gI=new RegExp("^rgba\\("+ti+[zs,zs,zs,qi].join(b_)+ti+"\\)$"),yI=new RegExp("^hsla?\\("+ti+[t3,e3,e3].join(Lh)+Bh+"\\)$"),bI=new RegExp("^hsl?\\("+ti+[t3,e3,e3].join(b_)+ti+"\\)$"),vI=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,xI=new RegExp("^lab\\("+ti+[qi,qi,qi].join(Lh)+Bh+"\\)$"),wI=new RegExp("^lch\\("+ti+[qi,qi,t3].join(Lh)+Bh+"\\)$"),kI=new RegExp("^oklab\\("+ti+[qi,qi,qi].join(Lh)+Bh+"\\)$"),_I=new RegExp("^oklch\\("+ti+[qi,qi,t3].join(Lh)+Bh+"\\)$"),{round:EI}=Math,jh=e=>e.map((r,n)=>n<=2?Rd(EI(r),0,255):r),vn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),jo=(e,r)=>e==="none"?r:e,v_=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Tt.format.named)try{return Tt.format.named(e)}catch{}if((r=e.match(fI))||(r=e.match(mI))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+vn(jo(n[a],0),0,255);n=jh(n);const o=r[4]!==void 0?+vn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(gI)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+vn(n[o],0,255);return n}if((r=e.match(yI))||(r=e.match(bI))){const n=r.slice(1,4);n[0]=+jo(n[0].replace("deg",""),0),n[1]=+vn(jo(n[1],0),0,100)*.01,n[2]=+vn(jo(n[2],0),0,100)*.01;const o=jh(u_(n)),a=r[4]!==void 0?+vn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(vI)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=u_(n);for(let a=0;a<3;a++)o[a]=EI(o[a]);return o[3]=+r[4],o}if(r=e.match(xI)){const n=r.slice(1,4);n[0]=vn(jo(n[0],0),0,100),n[1]=vn(jo(n[1],0),-125,125,!0),n[2]=vn(jo(n[2],0),-125,125,!0);const o=E1();Os("d50");const a=jh(r_(n));Os(o);const i=r[4]!==void 0?+vn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(wI)){const n=r.slice(1,4);n[0]=vn(n[0],0,100),n[1]=vn(jo(n[1],0),0,150,!1),n[2]=+jo(n[2].replace("deg",""),0);const o=E1();Os("d50");const a=jh(l_(n));Os(o);const i=r[4]!==void 0?+vn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(kI)){const n=r.slice(1,4);n[0]=vn(jo(n[0],0),0,1),n[1]=vn(jo(n[1],0),-.4,.4,!0),n[2]=vn(jo(n[2],0),-.4,.4,!0);const o=jh(d_(n)),a=r[4]!==void 0?+vn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(_I)){const n=r.slice(1,4);n[0]=vn(jo(n[0],0),0,1),n[1]=vn(jo(n[1],0),0,.4,!1),n[2]=+jo(n[2].replace("deg",""),0);const o=jh(hI(n)),a=r[4]!==void 0?+vn(r[4],0,1):1;return o[3]=a,o}};v_.test=e=>fI.test(e)||yI.test(e)||xI.test(e)||wI.test(e)||kI.test(e)||_I.test(e)||mI.test(e)||gI.test(e)||bI.test(e)||vI.test(e)||e==="transparent",Be.prototype.css=function(e){return Hye(this._rgb,e)};const qye=(...e)=>new Be(...e,"css");Rt.css=qye,Tt.format.css=v_,Tt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&v_.test(e))return"css"}}),Tt.format.gl=(...e)=>{const r=$t(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const Uye=(...e)=>new Be(...e,"gl");Rt.gl=Uye,Be.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Be.prototype.hex=function(e){return HO(this._rgb,e)};const Vye=(...e)=>new Be(...e,"hex");Rt.hex=Vye,Tt.format.hex=FO,Tt.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:r3}=Math,SI=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*r3(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*r3(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*r3(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*r3(o),a=255),[n,o,a,1]},{round:Yye}=Math,Wye=(...e)=>{const r=$t(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const l=.4;let s;for(;i-a>l;){s=(i+a)*.5;const c=SI(s);c[2]/c[0]>=o/n?i=s:a=s}return Yye(s)};Be.prototype.temp=Be.prototype.kelvin=Be.prototype.temperature=function(){return Wye(this._rgb)};const x_=(...e)=>new Be(...e,"temp");Object.assign(Rt,{temp:x_,kelvin:x_,temperature:x_}),Tt.format.temp=Tt.format.kelvin=Tt.format.temperature=SI,Be.prototype.oklch=function(){return pI(this._rgb)},Object.assign(Rt,{oklch:(...e)=>new Be(...e,"oklch")}),Tt.format.oklch=hI,Tt.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Rt,{analyze:JO,average:Z0e,bezier:nye,blend:Hi,brewer:Mye,Color:Be,colors:$h,contrast:_ye,contrastAPCA:Cye,cubehelix:mye,deltaE:Nye,distance:Dye,input:Tt,interpolate:Mh,limits:eI,mix:Mh,random:vye,scale:Zv,scales:$ye,valid:Pye});const w_=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],CI=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function Gye(e){const r=e.get("hsl.l");return w_.reduce((n,o)=>Math.abs(o-r)<Math.abs(n-r)?o:n)}function Xye(e){const r=Rt(e),n=Gye(r),o=w_.findIndex(i=>i===n),a=w_.map(i=>r.set("hsl.l",i)).map(i=>Rt(i)).map((i,l)=>{const s=CI[l]-CI[o];return s>=0?i.saturate(s):i.desaturate(s*-1)});return a[o]=Rt(e),{baseColorIndex:o,colors:a}}function Kye(e){return Xye(e).colors.map(r=>r.hex())}function Zye(...e){return xa(Qye,e)}function Qye(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function k_(...e){return xa(S1,e)}function S1(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Jye(e,r);if(e instanceof Map)return ebe(e,r);if(e instanceof Set)return tbe(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!S1(o,r[n]))return!1;return!0}function Jye(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!S1(o,r[n]))return!1;return!0}function ebe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!S1(o,r.get(n)))return!1;return!0}function tbe(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(S1(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const TI={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},RI={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},AI={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},rbe={primary:TI,blue:TI,secondary:RI,sky:RI,muted:AI,slate:AI,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},nbe={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},NI={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},DI={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},PI={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},obe={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:DI,gray:nbe,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:NI,primary:DI,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:PI,sky:PI,slate:NI},$I=60,MI=2,OI=1;function abe(e){nt(Rt.valid(e),`Invalid color: ${e}`);const r=Kye(e),n=r[6],o=ibe(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function ibe(e){const r=Rt(e);let n=r.brighten(MI),o=r.darken(MI),a,i,l,s;do a=n,i=o,n=n.brighten(OI),o=o.darken(OI),l=Rt.contrastAPCA(r,n),s=Rt.contrastAPCA(r,o);while(Math.abs(l)<$I&&Math.abs(s)<$I&&(!k_(n,a)||!k_(o,i)));return Math.abs(l)>Math.abs(s)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const lbe=["rectangle","person","browser","mobile","cylinder","storage","queue"],sbe={colors:Zye(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:rbe[e],relationships:obe[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function __(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function E_(e,r,n=".",o){if(!__(r))return E_(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const l=e[i];l!=null&&(Array.isArray(l)&&Array.isArray(a[i])?a[i]=[...l,...a[i]]:__(l)&&__(a[i])?a[i]=E_(l,a[i],(n?`${n}.`:"")+i.toString()):a[i]=l)}return a}function cbe(e){return(...r)=>r.reduce((n,o)=>E_(n,o,""),{})}const ube=cbe();function n3({size:e,padding:r,textSize:n,...o},a=S_.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const S_={theme:sbe,defaults:{color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}}};let II=class TO{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new TO(S_);static from(...r){return Dh(r,1)?new TO(ube(...r,S_)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?pr(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=n3(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){if(this.isThemeColor(r))return this.theme.colors[r];if(!Rt.valid(r))throw new Error(`Invalid color value: "${r}"`);return pr(this,`compute-${r}`,()=>abe(r))}equals(r){return r===this?!0:k_(this.config,r.config)}};function o3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eu(e){return typeof e=="string"}var C_={exports:{}},zI;function dbe(){if(zI)return C_.exports;zI=1;/*
 * @version    1.4.0
 * @date       2015-10-26
 * @stability  3 - Stable
 * @author     Lauri Rooden (https://github.com/litejs/natural-compare-lite)
 * @license    MIT License
 */var e=function(r,n){var o,a,i=1,l=0,s=0,c=String.alphabet;function u(d,p,f){if(f){for(o=p;f=u(d,o),f<76&&f>65;)++o;return+d.slice(p-1,o)}return f=c&&c.indexOf(d.charAt(p)),f>-1?f+76:(f=d.charCodeAt(p)||0,f<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,l++),i=u(n,s++),a<76&&i<76&&a>66&&i>66&&(a=u(r,l,l),i=u(n,s,l=o),s=o),a!=i)return a<i?-1:1}return 0};try{C_.exports=e}catch{String.naturalCompare=e}return C_.exports}var pbe=dbe();const LI=o3(pbe);function a3(e,r){return e===r?0:eu(e)?eu(r)?LI(e,r):1:eu(r)?-1:0}function BI(e=".",r=!1){return(n,o)=>{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),l=Math.min(a.length,i.length);for(let c=0;c<l;c++){const u=a[c],d=i[c],p=LI(u,d);if(p!==0)return p}const s=a.length-i.length;return r?-1*s:s}}function T_(e){return e!=null&&typeof e=="string"}function i3(e){const r=e.lastIndexOf(".");return r>0?e.slice(0,r):null}function C1(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const T1=e=>T_(e)?e:e.id;function Gn(e,r){const n=T1(e);return r?T1(r).startsWith(n+"."):o=>{const a=T1(o);return n.startsWith(a+".")}}function jI(e,r){if(!r)return a=>jI(e,a);const n=T1(e),o=T1(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function FI(e,r){return n=>Gn(e,n)}function l3(e){return(T_(e)?e:e.id).split(".").length}function R1(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;i<Math.min(n.length,o.length)-1&&n[i]===o[i];i++)a.push(n[i]);return a.length===0?null:a.join(".")}function Ad(e){const r=e.split(".");return r.pop(),r.length===0?[]:r.reduce((n,o,a)=>a===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function hbe(e,r){let n=r;for(const o of e)Gn(o,n)&&(n=o);return n!==r?n:null}function tu(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=hbe(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function HI(e,r){if(!e||T_(e)){const o=e??"asc";return a=>HI(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;i<o.fqn.length;i++){const l=a3(o.fqn[i],a.fqn[i]);if(l!==0)return l}return 0}).map(({item:o})=>o)}var s3={},qI;function fbe(){return qI||(qI=1,s3.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",s3.SYMBOL_SUPPORT=typeof Symbol<"u"),s3}var R_,UI;function mbe(){if(UI)return R_;UI=1;function e(r){if(typeof r!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=r}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var r=arguments,n=r.length,o=0;return new e(function(){return o>=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},R_=e,R_}var A_,VI;function gbe(){if(VI)return A_;VI=1;var e=fbe(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return A_=function(a,i){var l,s,c,u,d;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,u=a.length;c<u;c++)i(a[c],c);return}if(typeof a.forEach=="function"){a.forEach(i);return}if(n&&Symbol.iterator in a&&typeof a.next!="function"&&(a=a[Symbol.iterator]()),typeof a.next=="function"){for(l=a,c=0;d=l.next(),d.done!==!0;)i(d.value,c),c++;return}for(s in a)a.hasOwnProperty(s)&&i(a[s],s)},A_}var N_,YI;function ybe(){if(YI)return N_;YI=1;var e=mbe(),r=gbe();function n(){this.clear()}return n.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},n.prototype.enqueue=function(o){return this.items.push(o),++this.size},n.prototype.dequeue=function(){if(this.size){var o=this.items[this.offset];return++this.offset*2>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,l=0,s=this.items.length;i<s;i++,l++)o.call(a,this.items[i],l,this)},n.prototype.toArray=function(){return this.items.slice(this.offset)},n.prototype.values=function(){var o=this.items,a=this.offset;return new e(function(){if(a>=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var l=o[a];return a++,{value:[i++,l],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},N_=n,N_}var bbe=ybe();const D_=o3(bbe);var P_,WI;function vbe(){if(WI)return P_;WI=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},P_=e,P_}var xbe=vbe();const po=o3(xbe);function c3(e){return e.summary??e.description}function u3(e){return e.description??e.summary}function Ls(e){return!!e}const Nd="@group";function wbe(e){return e.kind===Nd}function GI(e,r){return nt(typeof e=="string"&&e!=""),"@"+e+"."+r}function kbe(e){return e.startsWith("@")}function _be(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function A1(e){return e.startsWith("step-")}function XI(e){if(!A1(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}const KI=-1,d3=0,N1=1,p3=2,$_=3,M_=4,O_=5,I_=6,ZI=7,QI=8,JI=typeof self=="object"?self:globalThis,Ebe=(e,r)=>{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,l]=r[a];switch(i){case d3:case KI:return n(l,a);case N1:{const s=n([],a);for(const c of l)s.push(o(c));return s}case p3:{const s=n({},a);for(const[c,u]of l)s[o(c)]=o(u);return s}case $_:return n(new Date(l),a);case M_:{const{source:s,flags:c}=l;return n(new RegExp(s,c),a)}case O_:{const s=n(new Map,a);for(const[c,u]of l)s.set(o(c),o(u));return s}case I_:{const s=n(new Set,a);for(const c of l)s.add(o(c));return s}case ZI:{const{name:s,message:c}=l;return n(new JI[s](c),a)}case QI:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new JI[i](l),a)};return o},ez=e=>Ebe(new Map,e)(0),Fh="",{toString:Sbe}={},{keys:Cbe}=Object,D1=e=>{const r=typeof e;if(r!=="object"||!e)return[d3,r];const n=Sbe.call(e).slice(8,-1);switch(n){case"Array":return[N1,Fh];case"Object":return[p3,Fh];case"Date":return[$_,Fh];case"RegExp":return[M_,Fh];case"Map":return[O_,Fh];case"Set":return[I_,Fh];case"DataView":return[N1,n]}return n.includes("Array")?[N1,n]:n.includes("Error")?[ZI,n]:[p3,n]},h3=([e,r])=>e===d3&&(r==="function"||r==="symbol"),Tbe=(e,r,n,o)=>{const a=(l,s)=>{const c=o.push(l)-1;return n.set(s,c),c},i=l=>{if(n.has(l))return n.get(l);let[s,c]=D1(l);switch(s){case d3:{let d=l;switch(c){case"bigint":s=QI,d=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([KI],l)}return a([s,d],l)}case N1:{if(c){let f=l;return c==="DataView"?f=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(l)),a([c,[...f]],l)}const d=[],p=a([s,d],l);for(const f of l)d.push(i(f));return p}case p3:{if(c)switch(c){case"BigInt":return a([c,l.toString()],l);case"Boolean":case"Number":case"String":return a([c,l.valueOf()],l)}if(r&&"toJSON"in l)return i(l.toJSON());const d=[],p=a([s,d],l);for(const f of Cbe(l))(e||!h3(D1(l[f])))&&d.push([i(f),i(l[f])]);return p}case $_:return a([s,l.toISOString()],l);case M_:{const{source:d,flags:p}=l;return a([s,{source:d,flags:p}],l)}case O_:{const d=[],p=a([s,d],l);for(const[f,g]of l)(e||!(h3(D1(f))||h3(D1(g))))&&d.push([i(f),i(g)]);return p}case I_:{const d=[],p=a([s,d],l);for(const f of l)(e||!h3(D1(f)))&&d.push(i(f));return p}}const{message:u}=l;return a([s,{name:c,message:u}],l)};return i},tz=(e,{json:r,lossy:n}={})=>{const o=[];return Tbe(!(r||n),!!r,new Map,o)(e),o},Dd=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?ez(tz(e,r)):structuredClone(e):(e,r)=>ez(tz(e,r));function t_t(){}let P1=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};P1.prototype.normal={},P1.prototype.property={},P1.prototype.space=void 0;function rz(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new P1(n,o,r)}function $1(e){return e.toLowerCase()}let Ko=class{constructor(r,n){this.attribute=n,this.property=r}};Ko.prototype.attribute="",Ko.prototype.booleanish=!1,Ko.prototype.boolean=!1,Ko.prototype.commaOrSpaceSeparated=!1,Ko.prototype.commaSeparated=!1,Ko.prototype.defined=!1,Ko.prototype.mustUseProperty=!1,Ko.prototype.number=!1,Ko.prototype.overloadedBoolean=!1,Ko.prototype.property="",Ko.prototype.spaceSeparated=!1,Ko.prototype.space=void 0;let Rbe=0;const Mt=Pd(),xn=Pd(),nz=Pd(),He=Pd(),Tr=Pd(),Hh=Pd(),wa=Pd();function Pd(){return 2**++Rbe}const z_={__proto__:null,boolean:Mt,booleanish:xn,commaOrSpaceSeparated:wa,commaSeparated:Hh,number:He,overloadedBoolean:nz,spaceSeparated:Tr},L_=Object.keys(z_);let B_=class extends Ko{constructor(r,n,o,a){let i=-1;if(super(r,n),oz(this,"space",a),typeof o=="number")for(;++i<L_.length;){const l=L_[i];oz(this,L_[i],(o&z_[l])===z_[l])}}};B_.prototype.defined=!0;function oz(e,r,n){n&&(e[r]=n)}function qh(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new B_(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[$1(o)]=o,n[$1(i.attribute)]=o}return new P1(r,n,e.space)}const az=qh({properties:{ariaActiveDescendant:null,ariaAtomic:xn,ariaAutoComplete:null,ariaBusy:xn,ariaChecked:xn,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:Tr,ariaCurrent:null,ariaDescribedBy:Tr,ariaDetails:null,ariaDisabled:xn,ariaDropEffect:Tr,ariaErrorMessage:null,ariaExpanded:xn,ariaFlowTo:Tr,ariaGrabbed:xn,ariaHasPopup:null,ariaHidden:xn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Tr,ariaLevel:He,ariaLive:null,ariaModal:xn,ariaMultiLine:xn,ariaMultiSelectable:xn,ariaOrientation:null,ariaOwns:Tr,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:xn,ariaReadOnly:xn,ariaRelevant:null,ariaRequired:xn,ariaRoleDescription:Tr,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:xn,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function iz(e,r){return r in e?e[r]:r}function lz(e,r){return iz(e,r.toLowerCase())}const Abe=qh({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hh,acceptCharset:Tr,accessKey:Tr,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:Tr,autoFocus:Mt,autoPlay:Mt,blocking:Tr,capture:null,charSet:null,checked:Mt,cite:null,className:Tr,cols:He,colSpan:null,content:null,contentEditable:xn,controls:Mt,controlsList:Tr,coords:He|Hh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:nz,draggable:xn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:Tr,height:He,hidden:Mt,high:He,href:null,hrefLang:null,htmlFor:Tr,httpEquiv:Tr,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:Tr,itemRef:Tr,itemScope:Mt,itemType:Tr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,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:Mt,optimum:He,pattern:null,ping:Tr,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:Tr,required:Mt,reversed:Mt,rows:He,rowSpan:He,sandbox:Tr,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shadowRootClonable:Mt,shadowRootDelegatesFocus:Mt,shadowRootMode:null,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:xn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:xn,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Tr,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:xn,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:lz}),Nbe=qh({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:wa,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:Tr,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:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,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:Hh,g2:Hh,glyphName:Hh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:wa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,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:He,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:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Tr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wa,rev:wa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wa,requiredFeatures:wa,requiredFonts:wa,requiredFormats:wa,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:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:wa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wa,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:iz}),sz=qh({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),cz=qh({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lz}),uz=qh({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),Dbe=/[A-Z]/g,dz=/-[a-z]/g,Pbe=/^data[-\w.:]+$/i;function j_(e,r){const n=$1(r);let o=r,a=Ko;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Pbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(dz,Mbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!dz.test(i)){let l=i.replace(Dbe,$be);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=B_}return new a(o,r)}function $be(e){return"-"+e.toLowerCase()}function Mbe(e){return e.charAt(1).toUpperCase()}const f3=rz([az,Abe,sz,cz,uz],"html"),M1=rz([az,Nbe,sz,cz,uz],"svg");function pz(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const l=n.slice(a,o).trim();(l||!i)&&r.push(l),a=o+1,o=n.indexOf(",",a)}return r}function hz(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fz=/[#.]/g;function Obe(e,r){const n=e||"",o={};let a=0,i,l;for(;a<n.length;){fz.lastIndex=a;const s=fz.exec(n),c=n.slice(a,s?s.index:n.length);c&&(i?i==="#"?o.id=c:Array.isArray(o.className)?o.className.push(c):o.className=[c]:l=c,a+=c.length),s&&(i=s[0],a++)}return{type:"element",tagName:l||r||"div",properties:o,children:[]}}function mz(e){const r=String(e||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function gz(e){return e.join(" ").trim()}function yz(e,r,n){const o=n?Bbe(n):void 0;function a(i,l,...s){let c;if(i==null){c={type:"root",children:[]};const u=l;s.unshift(u)}else{c=Obe(i,r);const u=c.tagName.toLowerCase(),d=o?o.get(u):void 0;if(c.tagName=d||u,Ibe(l))s.unshift(l);else for(const[p,f]of Object.entries(l))zbe(e,c.properties,p,f)}for(const u of s)F_(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function Ibe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const r=e,n=Object.keys(e);for(const o of n){const a=r[o];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const l of i)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function zbe(e,r,n,o){const a=j_(e,n);let i;if(o!=null){if(typeof o=="number"){if(Number.isNaN(o))return;i=o}else typeof o=="boolean"?i=o:typeof o=="string"?a.spaceSeparated?i=mz(o):a.commaSeparated?i=pz(o):a.commaOrSpaceSeparated?i=mz(pz(o).join(" ")):i=bz(a,a.property,o):Array.isArray(o)?i=[...o]:i=a.property==="style"?Lbe(o):String(o);if(Array.isArray(i)){const l=[];for(const s of i)l.push(bz(a,a.property,s));i=l}a.property==="className"&&Array.isArray(r.className)&&(i=r.className.concat(i)),r[a.property]=i}}function F_(e,r){if(r!=null)if(typeof r=="number"||typeof r=="string")e.push({type:"text",value:String(r)});else if(Array.isArray(r))for(const n of r)F_(e,n);else if(typeof r=="object"&&"type"in r)r.type==="root"?F_(e,r.children):e.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function bz(e,r,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||$1(n)===$1(r)))return!0}return n}function Lbe(e){const r=[];for(const[n,o]of Object.entries(e))r.push([n,o].join(": "));return r.join("; ")}function Bbe(e){const r=new Map;for(const n of e)r.set(n.toLowerCase(),n);return r}const jbe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Fbe=yz(f3,"div"),Hbe=yz(M1,"g",jbe);function qbe(e){const r=String(e),n=[];return{toOffset:a,toPoint:o};function o(i){if(typeof i=="number"&&i>-1&&i<=r.length){let l=0;for(;;){let s=n[l];if(s===void 0){const c=vz(r,n[l-1]);s=c===-1?r.length+1:c+1,n[l]=s}if(s>i)return{line:l+1,column:i-(l>0?n[l-1]:0)+1,offset:i};l++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const s=n[n.length-1],c=vz(r,s),u=c===-1?r.length+1:c+1;if(s===u)break;n.push(u)}const l=(i.line>1?n[i.line-2]:0)+i.column-1;if(l<n[i.line-1])return l}}}function vz(e,r){const n=e.indexOf("\r",r),o=e.indexOf(`
`,r);return o===-1?n:n===-1||n+1===o?o:n<o?n:o}const $d={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xz={}.hasOwnProperty,Ube=Object.prototype;function Vbe(e,r){const n=r||{};return H_({file:n.file||void 0,location:!1,schema:n.space==="svg"?M1:f3,verbose:n.verbose||!1},e)}function H_(e,r){let n;switch(r.nodeName){case"#comment":{const o=r;return n={type:"comment",value:o.data},m3(e,o,n),n}case"#document":case"#document-fragment":{const o=r,a="mode"in o?o.mode==="quirks"||o.mode==="limited-quirks":!1;if(n={type:"root",children:wz(e,r.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),l=qbe(i),s=l.toPoint(0),c=l.toPoint(i.length);n.position={start:s,end:c}}return n}case"#documentType":{const o=r;return n={type:"doctype"},m3(e,o,n),n}case"#text":{const o=r;return n={type:"text",value:o.value},m3(e,o,n),n}default:return n=Ybe(e,r),n}}function wz(e,r){let n=-1;const o=[];for(;++n<r.length;){const a=H_(e,r[n]);o.push(a)}return o}function Ybe(e,r){const n=e.schema;e.schema=r.namespaceURI===$d.svg?M1:f3;let o=-1;const a={};for(;++o<r.attrs.length;){const s=r.attrs[o],c=(s.prefix?s.prefix+":":"")+s.name;xz.call(Ube,c)||(a[c]=s.value)}const l=(e.schema.space==="svg"?Hbe:Fbe)(r.tagName,a,wz(e,r.childNodes));if(m3(e,r,l),l.tagName==="template"){const s=r,c=s.sourceCodeLocation,u=c&&c.startTag&&Uh(c.startTag),d=c&&c.endTag&&Uh(c.endTag),p=H_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),l.content=p}return e.schema=n,l}function m3(e,r,n){if("sourceCodeLocation"in r&&r.sourceCodeLocation&&e.file){const o=Wbe(e,n,r.sourceCodeLocation);o&&(e.location=!0,n.position=o)}}function Wbe(e,r,n){const o=Uh(n);if(r.type==="element"){const a=r.children[r.children.length-1];if(o&&!n.endTag&&a&&a.position&&a.position.end&&(o.end=Object.assign({},a.position.end)),e.verbose){const i={};let l;if(n.attrs)for(l in n.attrs)xz.call(n.attrs,l)&&(i[j_(e.schema,l).property]=Uh(n.attrs[l]));n.startTag;const s=Uh(n.startTag),c=n.endTag?Uh(n.endTag):void 0,u={opening:s};c&&(u.closing=c),u.properties=i,r.data={position:u}}}return o}function Uh(e){const r=kz({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=kz({line:e.endLine,column:e.endCol,offset:e.endOffset});return r||n?{start:r,end:n}:void 0}function kz(e){return e.line&&e.column?e:void 0}class O1{constructor(r,n,o){this.property=r,this.normal=n,o&&(this.space=o)}}O1.prototype.property={},O1.prototype.normal={},O1.prototype.space=null;function _z(e,r){const n={},o={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(o,e[a].normal);return new O1(n,o,r)}function q_(e){return e.toLowerCase()}class ri{constructor(r,n){this.property=r,this.attribute=n}}ri.prototype.space=null,ri.prototype.boolean=!1,ri.prototype.booleanish=!1,ri.prototype.overloadedBoolean=!1,ri.prototype.number=!1,ri.prototype.commaSeparated=!1,ri.prototype.spaceSeparated=!1,ri.prototype.commaOrSpaceSeparated=!1,ri.prototype.mustUseProperty=!1,ri.prototype.defined=!1;let Gbe=0;const Ot=Md(),wn=Md(),Ez=Md(),qe=Md(),Rr=Md(),Vh=Md(),ka=Md();function Md(){return 2**++Gbe}const U_={__proto__:null,boolean:Ot,booleanish:wn,commaOrSpaceSeparated:ka,commaSeparated:Vh,number:qe,overloadedBoolean:Ez,spaceSeparated:Rr},V_=Object.keys(U_);class Y_ extends ri{constructor(r,n,o,a){let i=-1;if(super(r,n),Sz(this,"space",a),typeof o=="number")for(;++i<V_.length;){const l=V_[i];Sz(this,V_[i],(o&U_[l])===U_[l])}}}Y_.prototype.defined=!0;function Sz(e,r,n){n&&(e[r]=n)}const Xbe={}.hasOwnProperty;function Yh(e){const r={},n={};let o;for(o in e.properties)if(Xbe.call(e.properties,o)){const a=e.properties[o],i=new Y_(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[q_(o)]=o,n[q_(i.attribute)]=o}return new O1(r,n,e.space)}const Cz=Yh({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Tz=Yh({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Rz(e,r){return r in e?e[r]:r}function Az(e,r){return Rz(e,r.toLowerCase())}const Nz=Yh({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Az,properties:{xmlns:null,xmlnsXLink:null}}),Dz=Yh({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:wn,ariaAutoComplete:null,ariaBusy:wn,ariaChecked:wn,ariaColCount:qe,ariaColIndex:qe,ariaColSpan:qe,ariaControls:Rr,ariaCurrent:null,ariaDescribedBy:Rr,ariaDetails:null,ariaDisabled:wn,ariaDropEffect:Rr,ariaErrorMessage:null,ariaExpanded:wn,ariaFlowTo:Rr,ariaGrabbed:wn,ariaHasPopup:null,ariaHidden:wn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rr,ariaLevel:qe,ariaLive:null,ariaModal:wn,ariaMultiLine:wn,ariaMultiSelectable:wn,ariaOrientation:null,ariaOwns:Rr,ariaPlaceholder:null,ariaPosInSet:qe,ariaPressed:wn,ariaReadOnly:wn,ariaRelevant:null,ariaRequired:wn,ariaRoleDescription:Rr,ariaRowCount:qe,ariaRowIndex:qe,ariaRowSpan:qe,ariaSelected:wn,ariaSetSize:qe,ariaSort:null,ariaValueMax:qe,ariaValueMin:qe,ariaValueNow:qe,ariaValueText:null,role:null}}),Kbe=Yh({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Az,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vh,acceptCharset:Rr,accessKey:Rr,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:Rr,autoFocus:Ot,autoPlay:Ot,blocking:Rr,capture:null,charSet:null,checked:Ot,cite:null,className:Rr,cols:qe,colSpan:null,content:null,contentEditable:wn,controls:Ot,controlsList:Rr,coords:qe|Vh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:Ez,draggable:wn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:Rr,height:qe,hidden:Ot,high:qe,href:null,hrefLang:null,htmlFor:Rr,httpEquiv:Rr,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:Rr,itemRef:Rr,itemScope:Ot,itemType:Rr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ot,low:qe,manifest:null,max:null,maxLength:qe,media:null,method:null,min:null,minLength:qe,multiple:Ot,muted:Ot,name:null,nonce:null,noModule:Ot,noValidate:Ot,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:Ot,optimum:qe,pattern:null,ping:Rr,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:Rr,required:Ot,reversed:Ot,rows:qe,rowSpan:qe,sandbox:Rr,scope:null,scoped:Ot,seamless:Ot,selected:Ot,shadowRootClonable:Ot,shadowRootDelegatesFocus:Ot,shadowRootMode:null,shape:null,size:qe,sizes:null,slot:null,span:qe,spellCheck:wn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:qe,step:null,style:null,tabIndex:qe,target:null,title:null,translate:null,type:null,typeMustMatch:Ot,useMap:null,value:wn,width:qe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Rr,axis:null,background:null,bgColor:null,border:qe,borderColor:null,bottomMargin:qe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ot,declare:Ot,event:null,face:null,frame:null,frameBorder:null,hSpace:qe,leftMargin:qe,link:null,longDesc:null,lowSrc:null,marginHeight:qe,marginWidth:qe,noResize:Ot,noHref:Ot,noShade:Ot,noWrap:Ot,object:null,profile:null,prompt:null,rev:null,rightMargin:qe,rules:null,scheme:null,scrolling:wn,standby:null,summary:null,text:null,topMargin:qe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:qe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ot,disableRemotePlayback:Ot,prefix:null,property:null,results:qe,security:null,unselectable:null}}),Zbe=Yh({space:"svg",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"},transform:Rz,properties:{about:ka,accentHeight:qe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:qe,amplitude:qe,arabicForm:null,ascent:qe,attributeName:null,attributeType:null,azimuth:qe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:qe,by:null,calcMode:null,capHeight:qe,className:Rr,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:qe,diffuseConstant:qe,direction:null,display:null,dur:null,divisor:qe,dominantBaseline:null,download:Ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:qe,enableBackground:null,end:null,event:null,exponent:qe,externalResourcesRequired:null,fill:null,fillOpacity:qe,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:Vh,g2:Vh,glyphName:Vh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:qe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:qe,horizOriginX:qe,horizOriginY:qe,id:null,ideographic:qe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:qe,k:qe,k1:qe,k2:qe,k3:qe,k4:qe,kernelMatrix:ka,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:qe,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:qe,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:qe,overlineThickness:qe,paintOrder:null,panose1:null,path:null,pathLength:qe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Rr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:qe,pointsAtY:qe,pointsAtZ:qe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ka,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ka,rev:ka,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ka,requiredFeatures:ka,requiredFonts:ka,requiredFormats:ka,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:qe,specularExponent:qe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:qe,strikethroughThickness:qe,string:null,stroke:null,strokeDashArray:ka,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:qe,strokeOpacity:qe,strokeWidth:null,style:null,surfaceScale:qe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ka,tabIndex:qe,tableValues:null,target:null,targetX:qe,targetY:qe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ka,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:qe,underlineThickness:qe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:qe,values:null,vAlphabetic:qe,vMathematical:qe,vectorEffect:null,vHanging:qe,vIdeographic:qe,version:null,vertAdvY:qe,vertOriginX:qe,vertOriginY:qe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:qe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Qbe=/^data[-\w.:]+$/i,Pz=/-[a-z]/g,Jbe=/[A-Z]/g;function eve(e,r){const n=q_(r);let o=r,a=ri;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Qbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(Pz,rve);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!Pz.test(i)){let l=i.replace(Jbe,tve);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=Y_}return new a(o,r)}function tve(e){return"-"+e.toLowerCase()}function rve(e){return e.charAt(1).toUpperCase()}const nve=_z([Tz,Cz,Nz,Dz,Kbe],"html"),$z=_z([Tz,Cz,Nz,Dz,Zbe],"svg"),Mz={}.hasOwnProperty;function W_(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&Mz.call(a,e)){const c=String(a[e]);l=Mz.call(s,c)?s[c]:o.unknown}if(l)return l.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const ove={},ave={}.hasOwnProperty,Oz=W_("type",{handlers:{root:lve,element:pve,text:uve,comment:dve,doctype:cve}});function ive(e,r){const o=(r||ove).space;return Oz(e,o==="svg"?$z:nve)}function lve(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=G_(e.children,n,r),Wh(e,n),n}function sve(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=G_(e.children,n,r),Wh(e,n),n}function cve(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Wh(e,r),r}function uve(e){const r={nodeName:"#text",value:e.value,parentNode:null};return Wh(e,r),r}function dve(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return Wh(e,r),r}function pve(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=$z);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&ave.call(e.properties,i)){const c=hve(o,i,e.properties[i]);c&&a.push(c)}}const l=o.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:$d[l],childNodes:[],parentNode:null};return s.childNodes=G_(e.children,s,o),Wh(e,s),e.tagName==="template"&&e.content&&(s.content=sve(e.content,o)),s}function hve(e,r,n){const o=eve(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?hz(n):gz(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=$d[o.space]}return a}function G_(e,r,n){let o=-1;const a=[];if(e)for(;++o<e.length;){const i=Oz(e[o],n);i.parentNode=r,a.push(i)}return a}function Wh(e,r){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,r.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Iz=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],fve=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),jr="�";var oe;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(oe||(oe={}));const Zo={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function zz(e){return e>=55296&&e<=57343}function mve(e){return e>=56320&&e<=57343}function gve(e,r){return(e-55296)*1024+9216+r}function Lz(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Bz(e){return e>=64976&&e<=65007||fve.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const yve=65536;class bve{constructor(r){this.handler=r,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=yve,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(r,n){const{line:o,col:a,offset:i}=this,l=a+n,s=i+n;return{code:r,startLine:o,endLine:o,startCol:l,endCol:l,startOffset:s,endOffset:s}}_err(r){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(r,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(r){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(mve(n))return this.pos++,this._addGap(),gve(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,oe.EOF;return this._err(Ee.surrogateInInputStream),r}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(r,n){this.html.length>0?this.html+=r:this.html=r,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(r){this.html=this.html.substring(0,this.pos+1)+r+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(r,n){if(this.pos+r.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(r,this.pos);for(let o=0;o<r.length;o++)if((this.html.charCodeAt(this.pos+o)|32)!==r.charCodeAt(o))return!1;return!0}peek(r){const n=this.pos+r;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,oe.EOF;const o=this.html.charCodeAt(n);return o===oe.CARRIAGE_RETURN?oe.LINE_FEED:o}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,oe.EOF;let r=this.html.charCodeAt(this.pos);return r===oe.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,oe.LINE_FEED):r===oe.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,zz(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===oe.LINE_FEED||r===oe.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){Lz(r)?this._err(Ee.controlCharacterInInputStream):Bz(r)&&this._err(Ee.noncharacterInInputStream)}retreat(r){for(this.pos-=r;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ht;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ht||(Ht={}));function jz(e,r){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===r)return e.attrs[n].value;return null}const Fz=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),vve=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var X_;const xve=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wve=(X_=String.fromCodePoint)!==null&&X_!==void 0?X_:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function kve(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=xve.get(e))!==null&&r!==void 0?r:e}var Xn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Xn||(Xn={}));const _ve=32;var ru;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ru||(ru={}));function K_(e){return e>=Xn.ZERO&&e<=Xn.NINE}function Eve(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_F||e>=Xn.LOWER_A&&e<=Xn.LOWER_F}function Sve(e){return e>=Xn.UPPER_A&&e<=Xn.UPPER_Z||e>=Xn.LOWER_A&&e<=Xn.LOWER_Z||K_(e)}function Cve(e){return e===Xn.EQUALS||Sve(e)}var Kn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Kn||(Kn={}));var Bs;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bs||(Bs={}));let Hz=class{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=Kn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bs.Strict}startEntity(r){this.decodeMode=r,this.state=Kn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case Kn.EntityStart:return r.charCodeAt(n)===Xn.NUM?(this.state=Kn.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=Kn.NamedEntity,this.stateNamedEntity(r,n));case Kn.NumericStart:return this.stateNumericStart(r,n);case Kn.NumericDecimal:return this.stateNumericDecimal(r,n);case Kn.NumericHex:return this.stateNumericHex(r,n);case Kn.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|_ve)===Xn.LOWER_X?(this.state=Kn.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=Kn.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(K_(a)||Eve(a))n+=1;else return this.addToNumericResult(r,o,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(r,o,n,16),-1}stateNumericDecimal(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(K_(a))n+=1;else return this.addToNumericResult(r,o,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(r,o,n,10),-1}emitNumericEntity(r,n){var o;if(this.consumed<=n)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(r===Xn.SEMI)this.consumed+=1;else if(this.decodeMode===Bs.Strict)return 0;return this.emitCodePoint(kve(this.result),this.consumed),this.errors&&(r!==Xn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,n){const{decodeTree:o}=this;let a=o[this.treeIndex],i=(a&ru.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const l=r.charCodeAt(n);if(this.treeIndex=Tve(o,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===Bs.Attribute&&(i===0||Cve(l))?0:this.emitNotTerminatedNamedEntity();if(a=o[this.treeIndex],i=(a&ru.VALUE_LENGTH)>>14,i!==0){if(l===Xn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Bs.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&ru.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~ru.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case Kn.NamedEntity:return this.result!==0&&(this.decodeMode!==Bs.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Kn.NumericDecimal:return this.emitNumericEntity(0,2);case Kn.NumericHex:return this.emitNumericEntity(0,3);case Kn.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Kn.EntityStart:return 0}}};function qz(e){let r="";const n=new Hz(e,o=>r+=wve(o));return function(a,i){let l=0,s=0;for(;(s=a.indexOf("&",s))>=0;){r+=a.slice(l,s),n.startEntity(i);const u=n.write(a,s+1);if(u<0){l=s+n.end();break}l=s+u,s=u===0?l+1:l}const c=r+a.slice(l);return r="",c}}function Tve(e,r,n,o){const a=(r&ru.BRANCH_LENGTH)>>7,i=r&ru.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let l=n,s=l+a-1;for(;l<=s;){const c=l+s>>>1,u=e[c];if(u<o)l=c+1;else if(u>o)s=c-1;else return e[c+a]}return-1}qz(Fz),qz(vve);var Me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Me||(Me={}));var Od;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Od||(Od={}));var ni;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ni||(ni={}));var fe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(fe||(fe={}));var F;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(F||(F={}));const Rve=new Map([[fe.A,F.A],[fe.ADDRESS,F.ADDRESS],[fe.ANNOTATION_XML,F.ANNOTATION_XML],[fe.APPLET,F.APPLET],[fe.AREA,F.AREA],[fe.ARTICLE,F.ARTICLE],[fe.ASIDE,F.ASIDE],[fe.B,F.B],[fe.BASE,F.BASE],[fe.BASEFONT,F.BASEFONT],[fe.BGSOUND,F.BGSOUND],[fe.BIG,F.BIG],[fe.BLOCKQUOTE,F.BLOCKQUOTE],[fe.BODY,F.BODY],[fe.BR,F.BR],[fe.BUTTON,F.BUTTON],[fe.CAPTION,F.CAPTION],[fe.CENTER,F.CENTER],[fe.CODE,F.CODE],[fe.COL,F.COL],[fe.COLGROUP,F.COLGROUP],[fe.DD,F.DD],[fe.DESC,F.DESC],[fe.DETAILS,F.DETAILS],[fe.DIALOG,F.DIALOG],[fe.DIR,F.DIR],[fe.DIV,F.DIV],[fe.DL,F.DL],[fe.DT,F.DT],[fe.EM,F.EM],[fe.EMBED,F.EMBED],[fe.FIELDSET,F.FIELDSET],[fe.FIGCAPTION,F.FIGCAPTION],[fe.FIGURE,F.FIGURE],[fe.FONT,F.FONT],[fe.FOOTER,F.FOOTER],[fe.FOREIGN_OBJECT,F.FOREIGN_OBJECT],[fe.FORM,F.FORM],[fe.FRAME,F.FRAME],[fe.FRAMESET,F.FRAMESET],[fe.H1,F.H1],[fe.H2,F.H2],[fe.H3,F.H3],[fe.H4,F.H4],[fe.H5,F.H5],[fe.H6,F.H6],[fe.HEAD,F.HEAD],[fe.HEADER,F.HEADER],[fe.HGROUP,F.HGROUP],[fe.HR,F.HR],[fe.HTML,F.HTML],[fe.I,F.I],[fe.IMG,F.IMG],[fe.IMAGE,F.IMAGE],[fe.INPUT,F.INPUT],[fe.IFRAME,F.IFRAME],[fe.KEYGEN,F.KEYGEN],[fe.LABEL,F.LABEL],[fe.LI,F.LI],[fe.LINK,F.LINK],[fe.LISTING,F.LISTING],[fe.MAIN,F.MAIN],[fe.MALIGNMARK,F.MALIGNMARK],[fe.MARQUEE,F.MARQUEE],[fe.MATH,F.MATH],[fe.MENU,F.MENU],[fe.META,F.META],[fe.MGLYPH,F.MGLYPH],[fe.MI,F.MI],[fe.MO,F.MO],[fe.MN,F.MN],[fe.MS,F.MS],[fe.MTEXT,F.MTEXT],[fe.NAV,F.NAV],[fe.NOBR,F.NOBR],[fe.NOFRAMES,F.NOFRAMES],[fe.NOEMBED,F.NOEMBED],[fe.NOSCRIPT,F.NOSCRIPT],[fe.OBJECT,F.OBJECT],[fe.OL,F.OL],[fe.OPTGROUP,F.OPTGROUP],[fe.OPTION,F.OPTION],[fe.P,F.P],[fe.PARAM,F.PARAM],[fe.PLAINTEXT,F.PLAINTEXT],[fe.PRE,F.PRE],[fe.RB,F.RB],[fe.RP,F.RP],[fe.RT,F.RT],[fe.RTC,F.RTC],[fe.RUBY,F.RUBY],[fe.S,F.S],[fe.SCRIPT,F.SCRIPT],[fe.SEARCH,F.SEARCH],[fe.SECTION,F.SECTION],[fe.SELECT,F.SELECT],[fe.SOURCE,F.SOURCE],[fe.SMALL,F.SMALL],[fe.SPAN,F.SPAN],[fe.STRIKE,F.STRIKE],[fe.STRONG,F.STRONG],[fe.STYLE,F.STYLE],[fe.SUB,F.SUB],[fe.SUMMARY,F.SUMMARY],[fe.SUP,F.SUP],[fe.TABLE,F.TABLE],[fe.TBODY,F.TBODY],[fe.TEMPLATE,F.TEMPLATE],[fe.TEXTAREA,F.TEXTAREA],[fe.TFOOT,F.TFOOT],[fe.TD,F.TD],[fe.TH,F.TH],[fe.THEAD,F.THEAD],[fe.TITLE,F.TITLE],[fe.TR,F.TR],[fe.TRACK,F.TRACK],[fe.TT,F.TT],[fe.U,F.U],[fe.UL,F.UL],[fe.SVG,F.SVG],[fe.VAR,F.VAR],[fe.WBR,F.WBR],[fe.XMP,F.XMP]]);function Gh(e){var r;return(r=Rve.get(e))!==null&&r!==void 0?r:F.UNKNOWN}const Ie=F,Ave={[Me.HTML]:new Set([Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP]),[Me.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[Me.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[Me.XLINK]:new Set,[Me.XML]:new Set,[Me.XMLNS]:new Set},Z_=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);fe.STYLE,fe.SCRIPT,fe.XMP,fe.IFRAME,fe.NOEMBED,fe.NOFRAMES,fe.PLAINTEXT;var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ae||(ae={}));const un={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Nve(e){return e>=oe.DIGIT_0&&e<=oe.DIGIT_9}function I1(e){return e>=oe.LATIN_CAPITAL_A&&e<=oe.LATIN_CAPITAL_Z}function Dve(e){return e>=oe.LATIN_SMALL_A&&e<=oe.LATIN_SMALL_Z}function nu(e){return Dve(e)||I1(e)}function Uz(e){return nu(e)||Nve(e)}function g3(e){return e+32}function Vz(e){return e===oe.SPACE||e===oe.LINE_FEED||e===oe.TABULATION||e===oe.FORM_FEED}function Yz(e){return Vz(e)||e===oe.SOLIDUS||e===oe.GREATER_THAN_SIGN}function Pve(e){return e===oe.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:zz(e)?Ee.surrogateCharacterReference:Bz(e)?Ee.noncharacterCharacterReference:Lz(e)||e===oe.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class $ve{constructor(r,n){this.options=r,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bve(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hz(Fz,(o,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(o)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:o=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+o)},validateNumericCharacterReference:o=>{const a=Pve(o);a&&this._err(a,1)}}:void 0)}_err(r,n=0){var o,a;(a=(o=this.handler).onParseError)===null||a===void 0||a.call(o,this.preprocessor.getError(r,n))}getCurrentLocation(r){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-r,startOffset:this.preprocessor.offset-r,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const r=this._consume();this._ensureHibernation()||this._callState(r)}this.inLoop=!1}}pause(){this.paused=!0}resume(r){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||r?.())}write(r,n,o){this.active=!0,this.preprocessor.write(r,n),this._runParsingLoop(),this.paused||o?.()}insertHtmlAtCurrentPos(r){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(r),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(r){this.consumedAfterSnapshot+=r;for(let n=0;n<r;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(r,n){return this.preprocessor.startsWith(r,n)?(this._advanceBy(r.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ht.START_TAG,tagName:"",tagID:F.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ht.END_TAG,tagName:"",tagID:F.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(r){this.currentToken={type:Ht.COMMENT,data:"",location:this.getCurrentLocation(r)}}_createDoctypeToken(r){this.currentToken={type:Ht.DOCTYPE,name:r,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(r,n){this.currentCharacterToken={type:r,chars:n,location:this.currentLocation}}_createAttr(r){this.currentAttr={name:r,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var r,n;const o=this.currentToken;if(jz(o,this.currentAttr.name)===null){if(o.attrs.push(this.currentAttr),o.location&&this.currentLocation){const a=(r=(n=o.location).attrs)!==null&&r!==void 0?r:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ee.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(r){this._emitCurrentCharacterToken(r.location),this.currentToken=null,r.location&&(r.location.endLine=this.preprocessor.line,r.location.endCol=this.preprocessor.col+1,r.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const r=this.currentToken;this.prepareToken(r),r.tagID=Gh(r.tagName),r.type===Ht.START_TAG?(this.lastStartTagName=r.tagName,this.handler.onStartTag(r)):(r.attrs.length>0&&this._err(Ee.endTagWithAttributes),r.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(r)),this.preprocessor.dropParsedChunk()}emitCurrentComment(r){this.prepareToken(r),this.handler.onComment(r),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(r){this.prepareToken(r),this.handler.onDoctype(r),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(r){if(this.currentCharacterToken){switch(r&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentCharacterToken.type){case Ht.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ht.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ht.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const r=this.getCurrentLocation(0);r&&(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset),this._emitCurrentCharacterToken(r),this.handler.onEof({type:Ht.EOF,location:r}),this.active=!1}_appendCharToCurrentCharacterToken(r,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===r){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(r,n)}_emitCodePoint(r){const n=Vz(r)?Ht.WHITESPACE_CHARACTER:r===oe.NULL?Ht.NULL_CHARACTER:Ht.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(r))}_emitChars(r){this._appendCharToCurrentCharacterToken(Ht.CHARACTER,r)}_startCharacterReference(){this.returnState=this.state,this.state=ae.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Bs.Attribute:Bs.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(r){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(r):this._emitCodePoint(r)}_callState(r){switch(this.state){case ae.DATA:{this._stateData(r);break}case ae.RCDATA:{this._stateRcdata(r);break}case ae.RAWTEXT:{this._stateRawtext(r);break}case ae.SCRIPT_DATA:{this._stateScriptData(r);break}case ae.PLAINTEXT:{this._statePlaintext(r);break}case ae.TAG_OPEN:{this._stateTagOpen(r);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(r);break}case ae.TAG_NAME:{this._stateTagName(r);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(r);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(r);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(r);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(r);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(r);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(r);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(r);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(r);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(r);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(r);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(r);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(r);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(r);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(r);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(r);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(r);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(r);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(r);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(r);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(r);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(r);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(r);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(r);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(r);break}case ae.COMMENT_START:{this._stateCommentStart(r);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(r);break}case ae.COMMENT:{this._stateComment(r);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(r);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(r);break}case ae.COMMENT_END:{this._stateCommentEnd(r);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(r);break}case ae.DOCTYPE:{this._stateDoctype(r);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(r);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(r);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(r);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(r);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(r);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(r);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(r);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(r);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(r);break}case ae.CDATA_SECTION:{this._stateCdataSection(r);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(r);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(r);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(r);break}default:throw new Error("Unknown state")}}_stateData(r){switch(r){case oe.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case oe.AMPERSAND:{this._startCharacterReference();break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(r);break}case oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case oe.AMPERSAND:{this._startCharacterReference();break}case oe.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(jr);break}case oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case oe.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(jr);break}case oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(jr);break}case oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(jr);break}case oe.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(nu(r))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case oe.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case oe.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case oe.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r);break}case oe.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(r)}}_stateEndTagOpen(r){if(nu(r))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case oe.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r)}}_stateTagName(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case oe.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=jr;break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(I1(r)?g3(r):r)}}_stateRcdataLessThanSign(r){r===oe.SOLIDUS?this.state=ae.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRcdataEndTagOpen(r){nu(r)?(this.state=ae.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(r)):(this._emitChars("</"),this.state=ae.RCDATA,this._stateRcdata(r))}handleSpecialEndTag(r){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ae.BEFORE_ATTRIBUTE_NAME,!1;case oe.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ae.SELF_CLOSING_START_TAG,!1;case oe.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ae.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRawtextLessThanSign(r){r===oe.SOLIDUS?this.state=ae.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagOpen(r){nu(r)?(this.state=ae.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(r)):(this._emitChars("</"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateScriptDataLessThanSign(r){switch(r){case oe.SOLIDUS:{this.state=ae.SCRIPT_DATA_END_TAG_OPEN;break}case oe.EXCLAMATION_MARK:{this.state=ae.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ae.SCRIPT_DATA,this._stateScriptData(r)}}_stateScriptDataEndTagOpen(r){nu(r)?(this.state=ae.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(r)):(this._emitChars("</"),this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscapeStart(r){r===oe.HYPHEN_MINUS?(this.state=ae.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscapeStartDash(r){r===oe.HYPHEN_MINUS?(this.state=ae.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscaped(r){switch(r){case oe.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(jr);break}case oe.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptDataEscapedDash(r){switch(r){case oe.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(jr);break}case oe.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedDashDash(r){switch(r){case oe.HYPHEN_MINUS:{this._emitChars("-");break}case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case oe.GREATER_THAN_SIGN:{this.state=ae.SCRIPT_DATA,this._emitChars(">");break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(jr);break}case oe.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===oe.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:nu(r)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(r)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagOpen(r){nu(r)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(r)):(this._emitChars("</"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars("</"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataDoubleEscapeStart(r){if(this.preprocessor.startsWith(Zo.SCRIPT,!1)&&Yz(this.preprocessor.peek(Zo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n<Zo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataDoubleEscaped(r){switch(r){case oe.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(jr);break}case oe.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedDash(r){switch(r){case oe.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(jr);break}case oe.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedDashDash(r){switch(r){case oe.HYPHEN_MINUS:{this._emitChars("-");break}case oe.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case oe.GREATER_THAN_SIGN:{this.state=ae.SCRIPT_DATA,this._emitChars(">");break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(jr);break}case oe.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===oe.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateScriptDataDoubleEscapeEnd(r){if(this.preprocessor.startsWith(Zo.SCRIPT,!1)&&Yz(this.preprocessor.peek(Zo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n<Zo.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=ae.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateBeforeAttributeName(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.SOLIDUS:case oe.GREATER_THAN_SIGN:case oe.EOF:{this.state=ae.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(r);break}case oe.EQUALS_SIGN:{this._err(Ee.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ae.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ae.ATTRIBUTE_NAME,this._stateAttributeName(r)}}_stateAttributeName(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:case oe.SOLIDUS:case oe.GREATER_THAN_SIGN:case oe.EOF:{this._leaveAttrName(),this.state=ae.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(r);break}case oe.EQUALS_SIGN:{this._leaveAttrName(),this.state=ae.BEFORE_ATTRIBUTE_VALUE;break}case oe.QUOTATION_MARK:case oe.APOSTROPHE:case oe.LESS_THAN_SIGN:{this._err(Ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(r);break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.name+=jr;break}default:this.currentAttr.name+=String.fromCodePoint(I1(r)?g3(r):r)}}_stateAfterAttributeName(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case oe.EQUALS_SIGN:{this.state=ae.BEFORE_ATTRIBUTE_VALUE;break}case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ae.ATTRIBUTE_NAME,this._stateAttributeName(r)}}_stateBeforeAttributeValue(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.QUOTATION_MARK:{this.state=ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{this.state=ae.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.missingAttributeValue),this.state=ae.DATA,this.emitCurrentTagToken();break}default:this.state=ae.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(r)}}_stateAttributeValueDoubleQuoted(r){switch(r){case oe.QUOTATION_MARK:{this.state=ae.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case oe.AMPERSAND:{this._startCharacterReference();break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=jr;break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAttributeValueSingleQuoted(r){switch(r){case oe.APOSTROPHE:{this.state=ae.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case oe.AMPERSAND:{this._startCharacterReference();break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=jr;break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAttributeValueUnquoted(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this._leaveAttrValue(),this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case oe.AMPERSAND:{this._startCharacterReference();break}case oe.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ae.DATA,this.emitCurrentTagToken();break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=jr;break}case oe.QUOTATION_MARK:case oe.APOSTROPHE:case oe.LESS_THAN_SIGN:case oe.EQUALS_SIGN:case oe.GRAVE_ACCENT:{this._err(Ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(r);break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAfterAttributeValueQuoted(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this._leaveAttrValue(),this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case oe.SOLIDUS:{this._leaveAttrValue(),this.state=ae.SELF_CLOSING_START_TAG;break}case oe.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ae.DATA,this.emitCurrentTagToken();break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBetweenAttributes),this.state=ae.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(r)}}_stateSelfClosingStartTag(r){switch(r){case oe.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=ae.DATA,this.emitCurrentTagToken();break}case oe.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._err(Ee.unexpectedSolidusInTag),this.state=ae.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(r)}}_stateBogusComment(r){const n=this.currentToken;switch(r){case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentComment(n);break}case oe.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=jr;break}default:n.data+=String.fromCodePoint(r)}}_stateMarkupDeclarationOpen(r){this._consumeSequenceIfMatch(Zo.DASH_DASH,!0)?(this._createCommentToken(Zo.DASH_DASH.length+1),this.state=ae.COMMENT_START):this._consumeSequenceIfMatch(Zo.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Zo.DOCTYPE.length+1),this.state=ae.DOCTYPE):this._consumeSequenceIfMatch(Zo.CDATA_START,!0)?this.inForeignNode?this.state=ae.CDATA_SECTION:(this._err(Ee.cdataInHtmlContent),this._createCommentToken(Zo.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ae.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ee.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r))}_stateCommentStart(r){switch(r){case oe.HYPHEN_MINUS:{this.state=ae.COMMENT_START_DASH;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=ae.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentStartDash(r){const n=this.currentToken;switch(r){case oe.HYPHEN_MINUS:{this.state=ae.COMMENT_END;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=ae.DATA,this.emitCurrentComment(n);break}case oe.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=ae.COMMENT,this._stateComment(r)}}_stateComment(r){const n=this.currentToken;switch(r){case oe.HYPHEN_MINUS:{this.state=ae.COMMENT_END_DASH;break}case oe.LESS_THAN_SIGN:{n.data+="<",this.state=ae.COMMENT_LESS_THAN_SIGN;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=jr;break}case oe.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(r)}}_stateCommentLessThanSign(r){const n=this.currentToken;switch(r){case oe.EXCLAMATION_MARK:{n.data+="!",this.state=ae.COMMENT_LESS_THAN_SIGN_BANG;break}case oe.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentLessThanSignBang(r){r===oe.HYPHEN_MINUS?this.state=ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ae.COMMENT,this._stateComment(r))}_stateCommentLessThanSignBangDash(r){r===oe.HYPHEN_MINUS?this.state=ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ae.COMMENT_END_DASH,this._stateCommentEndDash(r))}_stateCommentLessThanSignBangDashDash(r){r!==oe.GREATER_THAN_SIGN&&r!==oe.EOF&&this._err(Ee.nestedComment),this.state=ae.COMMENT_END,this._stateCommentEnd(r)}_stateCommentEndDash(r){const n=this.currentToken;switch(r){case oe.HYPHEN_MINUS:{this.state=ae.COMMENT_END;break}case oe.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentEnd(r){const n=this.currentToken;switch(r){case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentComment(n);break}case oe.EXCLAMATION_MARK:{this.state=ae.COMMENT_END_BANG;break}case oe.HYPHEN_MINUS:{n.data+="-";break}case oe.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentEndBang(r){const n=this.currentToken;switch(r){case oe.HYPHEN_MINUS:{n.data+="--!",this.state=ae.COMMENT_END_DASH;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.incorrectlyClosedComment),this.state=ae.DATA,this.emitCurrentComment(n);break}case oe.EOF:{this._err(Ee.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=ae.COMMENT,this._stateComment(r)}}_stateDoctype(r){switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_NAME;break}case oe.GREATER_THAN_SIGN:{this.state=ae.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(r);break}case oe.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingWhitespaceBeforeDoctypeName),this.state=ae.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(r)}}_stateBeforeDoctypeName(r){if(I1(r))this._createDoctypeToken(String.fromCharCode(g3(r))),this.state=ae.DOCTYPE_NAME;else switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.NULL:{this._err(Ee.unexpectedNullCharacter),this._createDoctypeToken(jr),this.state=ae.DOCTYPE_NAME;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(r)),this.state=ae.DOCTYPE_NAME}}_stateDoctypeName(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this.state=ae.AFTER_DOCTYPE_NAME;break}case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.name+=jr;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(I1(r)?g3(r):r)}}_stateAfterDoctypeName(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Zo.PUBLIC,!1)?this.state=ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Zo.SYSTEM,!1)?this.state=ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ee.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r))}}_stateAfterDoctypePublicKeyword(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case oe.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBeforeDoctypePublicIdentifier(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.QUOTATION_MARK:{n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateDoctypePublicIdentifierDoubleQuoted(r){const n=this.currentToken;switch(r){case oe.QUOTATION_MARK:{this.state=ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=jr;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(r)}}_stateDoctypePublicIdentifierSingleQuoted(r){const n=this.currentToken;switch(r){case oe.APOSTROPHE:{this.state=ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=jr;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(r)}}_stateAfterDoctypePublicIdentifier(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this.state=ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case oe.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.QUOTATION_MARK:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBetweenDoctypePublicAndSystemIdentifiers(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.QUOTATION_MARK:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateAfterDoctypeSystemKeyword(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case oe.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBeforeDoctypeSystemIdentifier(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.QUOTATION_MARK:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case oe.APOSTROPHE:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateDoctypeSystemIdentifierDoubleQuoted(r){const n=this.currentToken;switch(r){case oe.QUOTATION_MARK:{this.state=ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=jr;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(r)}}_stateDoctypeSystemIdentifierSingleQuoted(r){const n=this.currentToken;switch(r){case oe.APOSTROPHE:{this.state=ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=jr;break}case oe.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(r)}}_stateAfterDoctypeSystemIdentifier(r){const n=this.currentToken;switch(r){case oe.SPACE:case oe.LINE_FEED:case oe.TABULATION:case oe.FORM_FEED:break;case oe.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(Ee.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ae.BOGUS_DOCTYPE,this._stateBogusDoctype(r)}}_stateBogusDoctype(r){const n=this.currentToken;switch(r){case oe.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case oe.NULL:{this._err(Ee.unexpectedNullCharacter);break}case oe.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(r){switch(r){case oe.RIGHT_SQUARE_BRACKET:{this.state=ae.CDATA_SECTION_BRACKET;break}case oe.EOF:{this._err(Ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateCdataSectionBracket(r){r===oe.RIGHT_SQUARE_BRACKET?this.state=ae.CDATA_SECTION_END:(this._emitChars("]"),this.state=ae.CDATA_SECTION,this._stateCdataSection(r))}_stateCdataSectionEnd(r){switch(r){case oe.GREATER_THAN_SIGN:{this.state=ae.DATA;break}case oe.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ae.CDATA_SECTION,this._stateCdataSection(r)}}_stateCharacterReference(){let r=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(r<0)if(this.preprocessor.lastChunkWritten)r=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}r===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(oe.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Uz(this.preprocessor.peek(1))?ae.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(r){Uz(r)?this._flushCodePointConsumedAsCharacterReference(r):(r===oe.SEMICOLON&&this._err(Ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(r))}}const Wz=new Set([F.DD,F.DT,F.LI,F.OPTGROUP,F.OPTION,F.P,F.RB,F.RP,F.RT,F.RTC]),Gz=new Set([...Wz,F.CAPTION,F.COLGROUP,F.TBODY,F.TD,F.TFOOT,F.TH,F.THEAD,F.TR]),y3=new Set([F.APPLET,F.CAPTION,F.HTML,F.MARQUEE,F.OBJECT,F.TABLE,F.TD,F.TEMPLATE,F.TH]),Mve=new Set([...y3,F.OL,F.UL]),Ove=new Set([...y3,F.BUTTON]),Xz=new Set([F.ANNOTATION_XML,F.MI,F.MN,F.MO,F.MS,F.MTEXT]),Kz=new Set([F.DESC,F.FOREIGN_OBJECT,F.TITLE]),Ive=new Set([F.TR,F.TEMPLATE,F.HTML]),zve=new Set([F.TBODY,F.TFOOT,F.THEAD,F.TEMPLATE,F.HTML]),Lve=new Set([F.TABLE,F.TEMPLATE,F.HTML]),Bve=new Set([F.TD,F.TH]);class jve{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(r,n,o){this.treeAdapter=n,this.handler=o,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=F.UNKNOWN,this.current=r}_indexOf(r){return this.items.lastIndexOf(r,this.stackTop)}_isInTemplate(){return this.currentTagId===F.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(r,n){this.stackTop++,this.items[this.stackTop]=r,this.current=r,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(r,n,!0)}pop(){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!0)}replace(r,n){const o=this._indexOf(r);this.items[o]=n,o===this.stackTop&&(this.current=n)}insertAfter(r,n,o){const a=this._indexOf(r)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,o),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(r){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(r,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Me.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(r){for(;this.stackTop>=r;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<r)}}popUntilElementPopped(r){const n=this._indexOf(r);this.shortenToLength(n<0?0:n)}popUntilPopped(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o<0?0:o)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Z_,Me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Bve,Me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(r,n){for(let o=this.stackTop;o>=0;o--)if(r.has(this.tagIDs[o])&&this.treeAdapter.getNamespaceURI(this.items[o])===n)return o;return-1}clearBackTo(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o+1)}clearBackToTableContext(){this.clearBackTo(Lve,Me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(zve,Me.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ive,Me.HTML)}remove(r){const n=this._indexOf(r);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===F.BODY?this.items[1]:null}contains(r){return this._indexOf(r)>-1}getCommonAncestor(r){const n=this._indexOf(r)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===F.HTML}hasInDynamicScope(r,n){for(let o=this.stackTop;o>=0;o--){const a=this.tagIDs[o];switch(this.treeAdapter.getNamespaceURI(this.items[o])){case Me.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case Me.SVG:{if(Kz.has(a))return!1;break}case Me.MATHML:{if(Xz.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,y3)}hasInListItemScope(r){return this.hasInDynamicScope(r,Mve)}hasInButtonScope(r){return this.hasInDynamicScope(r,Ove)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Me.HTML:{if(Z_.has(n))return!0;if(y3.has(n))return!1;break}case Me.SVG:{if(Kz.has(n))return!1;break}case Me.MATHML:{if(Xz.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Me.HTML)switch(this.tagIDs[n]){case r:return!0;case F.TABLE:case F.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Me.HTML)switch(this.tagIDs[r]){case F.TBODY:case F.THEAD:case F.TFOOT:return!0;case F.TABLE:case F.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Me.HTML)switch(this.tagIDs[n]){case r:return!0;case F.OPTION:case F.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Wz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Gz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&Gz.has(this.currentTagId);)this.pop()}}const Q_=3;var Gl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Gl||(Gl={}));const Zz={type:Gl.Marker};class Fve{constructor(r){this.treeAdapter=r,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(r,n){const o=[],a=n.length,i=this.treeAdapter.getTagName(r),l=this.treeAdapter.getNamespaceURI(r);for(let s=0;s<this.entries.length;s++){const c=this.entries[s];if(c.type===Gl.Marker)break;const{element:u}=c;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===l){const d=this.treeAdapter.getAttrList(u);d.length===a&&o.push({idx:s,attrs:d})}}return o}_ensureNoahArkCondition(r){if(this.entries.length<Q_)return;const n=this.treeAdapter.getAttrList(r),o=this._getNoahArkConditionCandidates(r,n);if(o.length<Q_)return;const a=new Map(n.map(l=>[l.name,l.value]));let i=0;for(let l=0;l<o.length;l++){const s=o[l];s.attrs.every(c=>a.get(c.name)===c.value)&&(i+=1,i>=Q_&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Zz)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:Gl.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:Gl.Element,element:r,token:n})}removeEntry(r){const n=this.entries.indexOf(r);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const r=this.entries.indexOf(Zz);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===Gl.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===Gl.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===Gl.Element&&n.element===r)}}const ou={createDocument(){return{nodeName:"#document",mode:ni.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,r,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:r,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,r){e.childNodes.push(r),r.parentNode=e},insertBefore(e,r,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,r),r.parentNode=e},setTemplateContent(e,r){e.content=r},getTemplateContent(e){return e.content},setDocumentType(e,r,n,o){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=r,a.publicId=n,a.systemId=o;else{const i={nodeName:"#documentType",name:r,publicId:n,systemId:o,parentNode:null};ou.appendChild(e,i)}},setDocumentMode(e,r){e.mode=r},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const r=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(r,1),e.parentNode=null}},insertText(e,r){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ou.isTextNode(n)){n.value+=r;return}}ou.appendChild(e,ou.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&ou.isTextNode(o)?o.value+=r:ou.insertBefore(e,ou.createTextNode(r),n)},adoptAttributes(e,r){const n=new Set(e.attrs.map(o=>o.name));for(let o=0;o<r.length;o++)n.has(r[o].name)||e.attrs.push(r[o])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,r){e.sourceCodeLocation=r},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,r){e.sourceCodeLocation={...e.sourceCodeLocation,...r}}},Qz="html",Hve="about:legacy-compat",qve="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Jz=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Uve=[...Jz,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Vve=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),eL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Yve=[...eL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function tL(e,r){return r.some(n=>e.startsWith(n))}function Wve(e){return e.name===Qz&&e.publicId===null&&(e.systemId===null||e.systemId===Hve)}function Gve(e){if(e.name!==Qz)return ni.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===qve)return ni.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Vve.has(n))return ni.QUIRKS;let o=r===null?Uve:Jz;if(tL(n,o))return ni.QUIRKS;if(o=r===null?eL:Yve,tL(n,o))return ni.LIMITED_QUIRKS}return ni.NO_QUIRKS}const rL={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Xve="definitionurl",Kve="definitionURL",Zve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Qve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Me.XMLNS}]]),Jve=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),e3e=new Set([F.B,F.BIG,F.BLOCKQUOTE,F.BODY,F.BR,F.CENTER,F.CODE,F.DD,F.DIV,F.DL,F.DT,F.EM,F.EMBED,F.H1,F.H2,F.H3,F.H4,F.H5,F.H6,F.HEAD,F.HR,F.I,F.IMG,F.LI,F.LISTING,F.MENU,F.META,F.NOBR,F.OL,F.P,F.PRE,F.RUBY,F.S,F.SMALL,F.SPAN,F.STRONG,F.STRIKE,F.SUB,F.SUP,F.TABLE,F.TT,F.U,F.UL,F.VAR]);function t3e(e){const r=e.tagID;return r===F.FONT&&e.attrs.some(({name:o})=>o===Od.COLOR||o===Od.SIZE||o===Od.FACE)||e3e.has(r)}function nL(e){for(let r=0;r<e.attrs.length;r++)if(e.attrs[r].name===Xve){e.attrs[r].name=Kve;break}}function oL(e){for(let r=0;r<e.attrs.length;r++){const n=Zve.get(e.attrs[r].name);n!=null&&(e.attrs[r].name=n)}}function J_(e){for(let r=0;r<e.attrs.length;r++){const n=Qve.get(e.attrs[r].name);n&&(e.attrs[r].prefix=n.prefix,e.attrs[r].name=n.name,e.attrs[r].namespace=n.namespace)}}function r3e(e){const r=Jve.get(e.tagName);r!=null&&(e.tagName=r,e.tagID=Gh(e.tagName))}function n3e(e,r){return r===Me.MATHML&&(e===F.MI||e===F.MO||e===F.MN||e===F.MS||e===F.MTEXT)}function o3e(e,r,n){if(r===Me.MATHML&&e===F.ANNOTATION_XML){for(let o=0;o<n.length;o++)if(n[o].name===Od.ENCODING){const a=n[o].value.toLowerCase();return a===rL.TEXT_HTML||a===rL.APPLICATION_XML}}return r===Me.SVG&&(e===F.FOREIGN_OBJECT||e===F.DESC||e===F.TITLE)}function a3e(e,r,n,o){return(!o||o===Me.HTML)&&o3e(e,r,n)||(!o||o===Me.MATHML)&&n3e(e,r)}const i3e="hidden",l3e=8,s3e=3;var le;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(le||(le={}));const c3e={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},aL=new Set([F.TABLE,F.TBODY,F.TFOOT,F.THEAD,F.TR]),iL={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ou,onParseError:null};class lL{constructor(r,n,o=null,a=null){this.fragmentContext=o,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=le.INITIAL,this.originalInsertionMode=le.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...iL,...r},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new $ve(this.options,this),this.activeFormattingElements=new Fve(this.treeAdapter),this.fragmentContextID=o?Gh(this.treeAdapter.getTagName(o)):F.UNKNOWN,this._setContextModes(o??this.document,this.fragmentContextID),this.openElements=new jve(this.document,this.treeAdapter,this)}static parse(r,n){const o=new this(n);return o.tokenizer.write(r,!0),o.document}static getFragmentParser(r,n){const o={...iL,...n};r??(r=o.treeAdapter.createElement(fe.TEMPLATE,Me.HTML,[]));const a=o.treeAdapter.createElement("documentmock",Me.HTML,[]),i=new this(o,a,r);return i.fragmentContextID===F.TEMPLATE&&i.tmplInsertionModeStack.unshift(le.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const r=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,n),n}_err(r,n,o){var a;if(!this.onParseError)return;const i=(a=r.location)!==null&&a!==void 0?a:c3e,l={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:o?i.startLine:i.endLine,endCol:o?i.startCol:i.endCol,endOffset:o?i.startOffset:i.endOffset};this.onParseError(l)}onItemPush(r,n,o){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,r),o&&this.openElements.stackTop>0&&this._setContextModes(r,n)}onItemPop(r,n){var o,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(r,this.currentToken),(a=(o=this.treeAdapter).onItemPop)===null||a===void 0||a.call(o,r,this.openElements.current),n){let i,l;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,l=this.fragmentContextID):{current:i,currentTagId:l}=this.openElements,this._setContextModes(i,l)}}_setContextModes(r,n){const o=r===this.document||this.treeAdapter.getNamespaceURI(r)===Me.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,Me.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=le.TEXT}switchToPlaintextParsing(){this.insertionMode=le.TEXT,this.originalInsertionMode=le.IN_BODY,this.tokenizer.state=un.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let r=this.fragmentContext;for(;r;){if(this.treeAdapter.getTagName(r)===fe.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Me.HTML))switch(this.fragmentContextID){case F.TITLE:case F.TEXTAREA:{this.tokenizer.state=un.RCDATA;break}case F.STYLE:case F.XMP:case F.IFRAME:case F.NOEMBED:case F.NOFRAMES:case F.NOSCRIPT:{this.tokenizer.state=un.RAWTEXT;break}case F.SCRIPT:{this.tokenizer.state=un.SCRIPT_DATA;break}case F.PLAINTEXT:{this.tokenizer.state=un.PLAINTEXT;break}}}_setDocumentType(r){const n=r.name||"",o=r.publicId||"",a=r.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,o,a),r.location){const l=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));l&&this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}_attachElementToTree(r,n){if(this.options.sourceCodeLocationInfo){const o=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(r,o)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(r);else{const o=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(o,r)}}_appendElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location)}_insertElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location),this.openElements.push(o,r.tagID)}_insertFakeElement(r,n){const o=this.treeAdapter.createElement(r,Me.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,Me.HTML,r.attrs),o=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,o),this._attachElementToTree(n,r.location),this.openElements.push(n,r.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null)}_insertFakeRootElement(){const r=this.treeAdapter.createElement(fe.HTML,Me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,F.HTML)}_appendCommentNode(r,n){const o=this.treeAdapter.createCommentNode(r.data);this.treeAdapter.appendChild(n,o),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,r.location)}_insertCharacters(r){let n,o;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:o}=this._findFosterParentingLocation(),o?this.treeAdapter.insertTextBefore(n,r.chars,o):this.treeAdapter.insertText(n,r.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,r.chars)),!r.location)return;const a=this.treeAdapter.getChildNodes(n),i=o?a.lastIndexOf(o):a.length,l=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:u,endOffset:d}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}_adoptNodes(r,n){for(let o=this.treeAdapter.getFirstChild(r);o;o=this.treeAdapter.getFirstChild(r))this.treeAdapter.detachNode(o),this.treeAdapter.appendChild(n,o)}_setEndLocation(r,n){if(this.treeAdapter.getNodeSourceCodeLocation(r)&&n.location){const o=n.location,a=this.treeAdapter.getTagName(r),i=n.type===Ht.END_TAG&&a===n.tagName?{endTag:{...o},endLine:o.endLine,endCol:o.endCol,endOffset:o.endOffset}:{endLine:o.startLine,endCol:o.startCol,endOffset:o.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(r,i)}}shouldProcessStartTagTokenInForeignContent(r){if(!this.currentNotInHTML)return!1;let n,o;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,r.tagID===F.SVG&&this.treeAdapter.getTagName(n)===fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Me.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===F.MGLYPH||r.tagID===F.MALIGNMARK)&&!this._isIntegrationPoint(o,n,Me.HTML)}_processToken(r){switch(r.type){case Ht.CHARACTER:{this.onCharacter(r);break}case Ht.NULL_CHARACTER:{this.onNullCharacter(r);break}case Ht.COMMENT:{this.onComment(r);break}case Ht.DOCTYPE:{this.onDoctype(r);break}case Ht.START_TAG:{this._processStartTag(r);break}case Ht.END_TAG:{this.onEndTag(r);break}case Ht.EOF:{this.onEof(r);break}case Ht.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(r);break}}}_isIntegrationPoint(r,n,o){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return a3e(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Gl.Marker||this.openElements.contains(a.element)),o=n<0?r-1:n-1;for(let a=o;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=le.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(F.P),this.openElements.popUntilTagNamePopped(F.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case F.TR:{this.insertionMode=le.IN_ROW;return}case F.TBODY:case F.THEAD:case F.TFOOT:{this.insertionMode=le.IN_TABLE_BODY;return}case F.CAPTION:{this.insertionMode=le.IN_CAPTION;return}case F.COLGROUP:{this.insertionMode=le.IN_COLUMN_GROUP;return}case F.TABLE:{this.insertionMode=le.IN_TABLE;return}case F.BODY:{this.insertionMode=le.IN_BODY;return}case F.FRAMESET:{this.insertionMode=le.IN_FRAMESET;return}case F.SELECT:{this._resetInsertionModeForSelect(r);return}case F.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case F.HTML:{this.insertionMode=this.headElement?le.AFTER_HEAD:le.BEFORE_HEAD;return}case F.TD:case F.TH:{if(r>0){this.insertionMode=le.IN_CELL;return}break}case F.HEAD:{if(r>0){this.insertionMode=le.IN_HEAD;return}break}}this.insertionMode=le.IN_BODY}_resetInsertionModeForSelect(r){if(r>0)for(let n=r-1;n>0;n--){const o=this.openElements.tagIDs[n];if(o===F.TEMPLATE)break;if(o===F.TABLE){this.insertionMode=le.IN_SELECT_IN_TABLE;return}}this.insertionMode=le.IN_SELECT}_isElementCausesFosterParenting(r){return aL.has(r)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let r=this.openElements.stackTop;r>=0;r--){const n=this.openElements.items[r];switch(this.openElements.tagIDs[r]){case F.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Me.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case F.TABLE:{const o=this.treeAdapter.getParentNode(n);return o?{parent:o,beforeElement:n}:{parent:this.openElements.items[r-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(r){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,r,n.beforeElement):this.treeAdapter.appendChild(n.parent,r)}_isSpecialElement(r,n){const o=this.treeAdapter.getNamespaceURI(r);return Ave[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Bxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{z1(this,r);break}case le.BEFORE_HTML:{L1(this,r);break}case le.BEFORE_HEAD:{B1(this,r);break}case le.IN_HEAD:{j1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{F1(this,r);break}case le.AFTER_HEAD:{H1(this,r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:{cL(this,r);break}case le.TEXT:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{n8(this,r);break}case le.IN_TABLE_TEXT:{yL(this,r);break}case le.IN_COLUMN_GROUP:{x3(this,r);break}case le.AFTER_BODY:{_3(this,r);break}case le.AFTER_AFTER_BODY:{E3(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Lxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{z1(this,r);break}case le.BEFORE_HTML:{L1(this,r);break}case le.BEFORE_HEAD:{B1(this,r);break}case le.IN_HEAD:{j1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{F1(this,r);break}case le.AFTER_HEAD:{H1(this,r);break}case le.TEXT:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{n8(this,r);break}case le.IN_COLUMN_GROUP:{x3(this,r);break}case le.AFTER_BODY:{_3(this,r);break}case le.AFTER_AFTER_BODY:{E3(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){t8(this,r);return}switch(this.insertionMode){case le.INITIAL:case le.BEFORE_HTML:case le.BEFORE_HEAD:case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:case le.IN_BODY:case le.IN_TABLE:case le.IN_CAPTION:case le.IN_COLUMN_GROUP:case le.IN_TABLE_BODY:case le.IN_ROW:case le.IN_CELL:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:case le.IN_TEMPLATE:case le.IN_FRAMESET:case le.AFTER_FRAMESET:{t8(this,r);break}case le.IN_TABLE_TEXT:{V1(this,r);break}case le.AFTER_BODY:{g3e(this,r);break}case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{y3e(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case le.INITIAL:{b3e(this,r);break}case le.BEFORE_HEAD:case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:{this._err(r,Ee.misplacedDoctype);break}case le.IN_TABLE_TEXT:{V1(this,r);break}}}onStartTag(r){this.skipNextNewLine=!1,this.currentToken=r,this._processStartTag(r),r.selfClosing&&!r.ackSelfClosing&&this._err(r,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(r){this.shouldProcessStartTagTokenInForeignContent(r)?jxe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{z1(this,r);break}case le.BEFORE_HTML:{v3e(this,r);break}case le.BEFORE_HEAD:{w3e(this,r);break}case le.IN_HEAD:{Ui(this,r);break}case le.IN_HEAD_NO_SCRIPT:{E3e(this,r);break}case le.AFTER_HEAD:{C3e(this,r);break}case le.IN_BODY:{To(this,r);break}case le.IN_TABLE:{Xh(this,r);break}case le.IN_TABLE_TEXT:{V1(this,r);break}case le.IN_CAPTION:{kxe(this,r);break}case le.IN_COLUMN_GROUP:{o8(this,r);break}case le.IN_TABLE_BODY:{w3(this,r);break}case le.IN_ROW:{k3(this,r);break}case le.IN_CELL:{Sxe(this,r);break}case le.IN_SELECT:{xL(this,r);break}case le.IN_SELECT_IN_TABLE:{Txe(this,r);break}case le.IN_TEMPLATE:{Axe(this,r);break}case le.AFTER_BODY:{Dxe(this,r);break}case le.IN_FRAMESET:{Pxe(this,r);break}case le.AFTER_FRAMESET:{Mxe(this,r);break}case le.AFTER_AFTER_BODY:{Ixe(this,r);break}case le.AFTER_AFTER_FRAMESET:{zxe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?Fxe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{z1(this,r);break}case le.BEFORE_HTML:{x3e(this,r);break}case le.BEFORE_HEAD:{k3e(this,r);break}case le.IN_HEAD:{_3e(this,r);break}case le.IN_HEAD_NO_SCRIPT:{S3e(this,r);break}case le.AFTER_HEAD:{T3e(this,r);break}case le.IN_BODY:{v3(this,r);break}case le.TEXT:{pxe(this,r);break}case le.IN_TABLE:{q1(this,r);break}case le.IN_TABLE_TEXT:{V1(this,r);break}case le.IN_CAPTION:{_xe(this,r);break}case le.IN_COLUMN_GROUP:{Exe(this,r);break}case le.IN_TABLE_BODY:{a8(this,r);break}case le.IN_ROW:{vL(this,r);break}case le.IN_CELL:{Cxe(this,r);break}case le.IN_SELECT:{wL(this,r);break}case le.IN_SELECT_IN_TABLE:{Rxe(this,r);break}case le.IN_TEMPLATE:{Nxe(this,r);break}case le.AFTER_BODY:{_L(this,r);break}case le.IN_FRAMESET:{$xe(this,r);break}case le.AFTER_FRAMESET:{Oxe(this,r);break}case le.AFTER_AFTER_BODY:{E3(this,r);break}}}onEof(r){switch(this.insertionMode){case le.INITIAL:{z1(this,r);break}case le.BEFORE_HTML:{L1(this,r);break}case le.BEFORE_HEAD:{B1(this,r);break}case le.IN_HEAD:{j1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{F1(this,r);break}case le.AFTER_HEAD:{H1(this,r);break}case le.IN_BODY:case le.IN_TABLE:case le.IN_CAPTION:case le.IN_COLUMN_GROUP:case le.IN_TABLE_BODY:case le.IN_ROW:case le.IN_CELL:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:{mL(this,r);break}case le.TEXT:{hxe(this,r);break}case le.IN_TABLE_TEXT:{V1(this,r);break}case le.IN_TEMPLATE:{kL(this,r);break}case le.AFTER_BODY:case le.IN_FRAMESET:case le.AFTER_FRAMESET:case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{r8(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===oe.LINE_FEED)){if(r.chars.length===1)return;r.chars=r.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(r);return}switch(this.insertionMode){case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:case le.TEXT:case le.IN_COLUMN_GROUP:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:case le.IN_FRAMESET:case le.AFTER_FRAMESET:{this._insertCharacters(r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:case le.AFTER_BODY:case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{sL(this,r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{n8(this,r);break}case le.IN_TABLE_TEXT:{gL(this,r);break}}}}function u3e(e,r){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(r.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(r.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):fL(e,r),n}function d3e(e,r){let n=null,o=e.openElements.stackTop;for(;o>=0;o--){const a=e.openElements.items[o];if(a===r.element)break;e._isSpecialElement(a,e.openElements.tagIDs[o])&&(n=a)}return n||(e.openElements.shortenToLength(o<0?0:o),e.activeFormattingElements.removeEntry(r)),n}function p3e(e,r,n){let o=r,a=e.openElements.getCommonAncestor(r);for(let i=0,l=a;l!==n;i++,l=a){a=e.openElements.getCommonAncestor(l);const s=e.activeFormattingElements.getElementEntry(l),c=s&&i>=s3e;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(l)):(l=h3e(e,s),o===r&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(l,o),o=l)}return o}function h3e(e,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=e.treeAdapter.createElement(r.token.tagName,n,r.token.attrs);return e.openElements.replace(r.element,o),r.element=o,o}function f3e(e,r,n){const o=e.treeAdapter.getTagName(r),a=Gh(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===F.TEMPLATE&&i===Me.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function m3e(e,r,n){const o=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,o,a.attrs);e._adoptNodes(r,i),e.treeAdapter.appendChild(r,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,i,a.tagID)}function e8(e,r){for(let n=0;n<l3e;n++){const o=u3e(e,r);if(!o)break;const a=d3e(e,o);if(!a)break;e.activeFormattingElements.bookmark=o;const i=p3e(e,a,o.element),l=e.openElements.getCommonAncestor(o.element);e.treeAdapter.detachNode(i),l&&f3e(e,l,i),m3e(e,a,o)}}function t8(e,r){e._appendCommentNode(r,e.openElements.currentTmplContentOrNode)}function g3e(e,r){e._appendCommentNode(r,e.openElements.items[0])}function y3e(e,r){e._appendCommentNode(r,e.document)}function r8(e,r){if(e.stopped=!0,r.location){const n=e.fragmentContext?0:2;for(let o=e.openElements.stackTop;o>=n;o--)e._setEndLocation(e.openElements.items[o],r);if(!e.fragmentContext&&e.openElements.stackTop>=0){const o=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(o);if(a&&!a.endTag&&(e._setEndLocation(o,r),e.openElements.stackTop>=1)){const i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);l&&!l.endTag&&e._setEndLocation(i,r)}}}}function b3e(e,r){e._setDocumentType(r);const n=r.forceQuirks?ni.QUIRKS:Gve(r);Wve(r)||e._err(r,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=le.BEFORE_HTML}function z1(e,r){e._err(r,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ni.QUIRKS),e.insertionMode=le.BEFORE_HTML,e._processToken(r)}function v3e(e,r){r.tagID===F.HTML?(e._insertElement(r,Me.HTML),e.insertionMode=le.BEFORE_HEAD):L1(e,r)}function x3e(e,r){const n=r.tagID;(n===F.HTML||n===F.HEAD||n===F.BODY||n===F.BR)&&L1(e,r)}function L1(e,r){e._insertFakeRootElement(),e.insertionMode=le.BEFORE_HEAD,e._processToken(r)}function w3e(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.HEAD:{e._insertElement(r,Me.HTML),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD;break}default:B1(e,r)}}function k3e(e,r){const n=r.tagID;n===F.HEAD||n===F.BODY||n===F.HTML||n===F.BR?B1(e,r):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function B1(e,r){e._insertFakeElement(fe.HEAD,F.HEAD),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD,e._processToken(r)}function Ui(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.BASE:case F.BASEFONT:case F.BGSOUND:case F.LINK:case F.META:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case F.TITLE:{e._switchToTextParsing(r,un.RCDATA);break}case F.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,un.RAWTEXT):(e._insertElement(r,Me.HTML),e.insertionMode=le.IN_HEAD_NO_SCRIPT);break}case F.NOFRAMES:case F.STYLE:{e._switchToTextParsing(r,un.RAWTEXT);break}case F.SCRIPT:{e._switchToTextParsing(r,un.SCRIPT_DATA);break}case F.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=le.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(le.IN_TEMPLATE);break}case F.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:j1(e,r)}}function _3e(e,r){switch(r.tagID){case F.HEAD:{e.openElements.pop(),e.insertionMode=le.AFTER_HEAD;break}case F.BODY:case F.BR:case F.HTML:{j1(e,r);break}case F.TEMPLATE:{Id(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function Id(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==F.TEMPLATE&&e._err(r,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(F.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function j1(e,r){e.openElements.pop(),e.insertionMode=le.AFTER_HEAD,e._processToken(r)}function E3e(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.BASEFONT:case F.BGSOUND:case F.HEAD:case F.LINK:case F.META:case F.NOFRAMES:case F.STYLE:{Ui(e,r);break}case F.NOSCRIPT:{e._err(r,Ee.nestedNoscriptInHead);break}default:F1(e,r)}}function S3e(e,r){switch(r.tagID){case F.NOSCRIPT:{e.openElements.pop(),e.insertionMode=le.IN_HEAD;break}case F.BR:{F1(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function F1(e,r){const n=r.type===Ht.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(r,n),e.openElements.pop(),e.insertionMode=le.IN_HEAD,e._processToken(r)}function C3e(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.BODY:{e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=le.IN_BODY;break}case F.FRAMESET:{e._insertElement(r,Me.HTML),e.insertionMode=le.IN_FRAMESET;break}case F.BASE:case F.BASEFONT:case F.BGSOUND:case F.LINK:case F.META:case F.NOFRAMES:case F.SCRIPT:case F.STYLE:case F.TEMPLATE:case F.TITLE:{e._err(r,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,F.HEAD),Ui(e,r),e.openElements.remove(e.headElement);break}case F.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:H1(e,r)}}function T3e(e,r){switch(r.tagID){case F.BODY:case F.HTML:case F.BR:{H1(e,r);break}case F.TEMPLATE:{Id(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function H1(e,r){e._insertFakeElement(fe.BODY,F.BODY),e.insertionMode=le.IN_BODY,b3(e,r)}function b3(e,r){switch(r.type){case Ht.CHARACTER:{cL(e,r);break}case Ht.WHITESPACE_CHARACTER:{sL(e,r);break}case Ht.COMMENT:{t8(e,r);break}case Ht.START_TAG:{To(e,r);break}case Ht.END_TAG:{v3(e,r);break}case Ht.EOF:{mL(e,r);break}}}function sL(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function cL(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function R3e(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function A3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function N3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,Me.HTML),e.insertionMode=le.IN_FRAMESET)}function D3e(e,r){e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._insertElement(r,Me.HTML)}function P3e(e,r){e.openElements.hasInButtonScope(F.P)&&e._closePElement(),Z_.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,Me.HTML)}function $3e(e,r){e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function M3e(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._insertElement(r,Me.HTML),n||(e.formElement=e.openElements.current))}function O3e(e,r){e.framesetOk=!1;const n=r.tagID;for(let o=e.openElements.stackTop;o>=0;o--){const a=e.openElements.tagIDs[o];if(n===F.LI&&a===F.LI||(n===F.DD||n===F.DT)&&(a===F.DD||a===F.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==F.ADDRESS&&a!==F.DIV&&a!==F.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._insertElement(r,Me.HTML)}function I3e(e,r){e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.tokenizer.state=un.PLAINTEXT}function z3e(e,r){e.openElements.hasInScope(F.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(F.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.framesetOk=!1}function L3e(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(fe.A);n&&(e8(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function B3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function j3e(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(F.NOBR)&&(e8(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function F3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function H3e(e,r){e.treeAdapter.getDocumentMode(e.document)!==ni.QUIRKS&&e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=le.IN_TABLE}function uL(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Me.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function dL(e){const r=jz(e,Od.TYPE);return r!=null&&r.toLowerCase()===i3e}function q3e(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Me.HTML),dL(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function U3e(e,r){e._appendElement(r,Me.HTML),r.ackSelfClosing=!0}function V3e(e,r){e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._appendElement(r,Me.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function Y3e(e,r){r.tagName=fe.IMG,r.tagID=F.IMG,uL(e,r)}function W3e(e,r){e._insertElement(r,Me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=un.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=le.TEXT}function G3e(e,r){e.openElements.hasInButtonScope(F.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,un.RAWTEXT)}function X3e(e,r){e.framesetOk=!1,e._switchToTextParsing(r,un.RAWTEXT)}function pL(e,r){e._switchToTextParsing(r,un.RAWTEXT)}function K3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===le.IN_TABLE||e.insertionMode===le.IN_CAPTION||e.insertionMode===le.IN_TABLE_BODY||e.insertionMode===le.IN_ROW||e.insertionMode===le.IN_CELL?le.IN_SELECT_IN_TABLE:le.IN_SELECT}function Z3e(e,r){e.openElements.currentTagId===F.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML)}function Q3e(e,r){e.openElements.hasInScope(F.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,Me.HTML)}function J3e(e,r){e.openElements.hasInScope(F.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(F.RTC),e._insertElement(r,Me.HTML)}function exe(e,r){e._reconstructActiveFormattingElements(),nL(r),J_(r),r.selfClosing?e._appendElement(r,Me.MATHML):e._insertElement(r,Me.MATHML),r.ackSelfClosing=!0}function txe(e,r){e._reconstructActiveFormattingElements(),oL(r),J_(r),r.selfClosing?e._appendElement(r,Me.SVG):e._insertElement(r,Me.SVG),r.ackSelfClosing=!0}function hL(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML)}function To(e,r){switch(r.tagID){case F.I:case F.S:case F.B:case F.U:case F.EM:case F.TT:case F.BIG:case F.CODE:case F.FONT:case F.SMALL:case F.STRIKE:case F.STRONG:{B3e(e,r);break}case F.A:{L3e(e,r);break}case F.H1:case F.H2:case F.H3:case F.H4:case F.H5:case F.H6:{P3e(e,r);break}case F.P:case F.DL:case F.OL:case F.UL:case F.DIV:case F.DIR:case F.NAV:case F.MAIN:case F.MENU:case F.ASIDE:case F.CENTER:case F.FIGURE:case F.FOOTER:case F.HEADER:case F.HGROUP:case F.DIALOG:case F.DETAILS:case F.ADDRESS:case F.ARTICLE:case F.SEARCH:case F.SECTION:case F.SUMMARY:case F.FIELDSET:case F.BLOCKQUOTE:case F.FIGCAPTION:{D3e(e,r);break}case F.LI:case F.DD:case F.DT:{O3e(e,r);break}case F.BR:case F.IMG:case F.WBR:case F.AREA:case F.EMBED:case F.KEYGEN:{uL(e,r);break}case F.HR:{V3e(e,r);break}case F.RB:case F.RTC:{Q3e(e,r);break}case F.RT:case F.RP:{J3e(e,r);break}case F.PRE:case F.LISTING:{$3e(e,r);break}case F.XMP:{G3e(e,r);break}case F.SVG:{txe(e,r);break}case F.HTML:{R3e(e,r);break}case F.BASE:case F.LINK:case F.META:case F.STYLE:case F.TITLE:case F.SCRIPT:case F.BGSOUND:case F.BASEFONT:case F.TEMPLATE:{Ui(e,r);break}case F.BODY:{A3e(e,r);break}case F.FORM:{M3e(e,r);break}case F.NOBR:{j3e(e,r);break}case F.MATH:{exe(e,r);break}case F.TABLE:{H3e(e,r);break}case F.INPUT:{q3e(e,r);break}case F.PARAM:case F.TRACK:case F.SOURCE:{U3e(e,r);break}case F.IMAGE:{Y3e(e,r);break}case F.BUTTON:{z3e(e,r);break}case F.APPLET:case F.OBJECT:case F.MARQUEE:{F3e(e,r);break}case F.IFRAME:{X3e(e,r);break}case F.SELECT:{K3e(e,r);break}case F.OPTION:case F.OPTGROUP:{Z3e(e,r);break}case F.NOEMBED:case F.NOFRAMES:{pL(e,r);break}case F.FRAMESET:{N3e(e,r);break}case F.TEXTAREA:{W3e(e,r);break}case F.NOSCRIPT:{e.options.scriptingEnabled?pL(e,r):hL(e,r);break}case F.PLAINTEXT:{I3e(e,r);break}case F.COL:case F.TH:case F.TD:case F.TR:case F.HEAD:case F.FRAME:case F.TBODY:case F.TFOOT:case F.THEAD:case F.CAPTION:case F.COLGROUP:break;default:hL(e,r)}}function rxe(e,r){if(e.openElements.hasInScope(F.BODY)&&(e.insertionMode=le.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function nxe(e,r){e.openElements.hasInScope(F.BODY)&&(e.insertionMode=le.AFTER_BODY,_L(e,r))}function oxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function axe(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(F.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(F.FORM):n&&e.openElements.remove(n))}function ixe(e){e.openElements.hasInButtonScope(F.P)||e._insertFakeElement(fe.P,F.P),e._closePElement()}function lxe(e){e.openElements.hasInListItemScope(F.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(F.LI),e.openElements.popUntilTagNamePopped(F.LI))}function sxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cxe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function uxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function dxe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(fe.BR,F.BR),e.openElements.pop(),e.framesetOk=!1}function fL(e,r){const n=r.tagName,o=r.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],l=e.openElements.tagIDs[a];if(o===l&&(o!==F.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,l))break}}function v3(e,r){switch(r.tagID){case F.A:case F.B:case F.I:case F.S:case F.U:case F.EM:case F.TT:case F.BIG:case F.CODE:case F.FONT:case F.NOBR:case F.SMALL:case F.STRIKE:case F.STRONG:{e8(e,r);break}case F.P:{ixe(e);break}case F.DL:case F.UL:case F.OL:case F.DIR:case F.DIV:case F.NAV:case F.PRE:case F.MAIN:case F.MENU:case F.ASIDE:case F.BUTTON:case F.CENTER:case F.FIGURE:case F.FOOTER:case F.HEADER:case F.HGROUP:case F.DIALOG:case F.ADDRESS:case F.ARTICLE:case F.DETAILS:case F.SEARCH:case F.SECTION:case F.SUMMARY:case F.LISTING:case F.FIELDSET:case F.BLOCKQUOTE:case F.FIGCAPTION:{oxe(e,r);break}case F.LI:{lxe(e);break}case F.DD:case F.DT:{sxe(e,r);break}case F.H1:case F.H2:case F.H3:case F.H4:case F.H5:case F.H6:{cxe(e);break}case F.BR:{dxe(e);break}case F.BODY:{rxe(e,r);break}case F.HTML:{nxe(e,r);break}case F.FORM:{axe(e);break}case F.APPLET:case F.OBJECT:case F.MARQUEE:{uxe(e,r);break}case F.TEMPLATE:{Id(e,r);break}default:fL(e,r)}}function mL(e,r){e.tmplInsertionModeStack.length>0?kL(e,r):r8(e,r)}function pxe(e,r){var n;r.tagID===F.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hxe(e,r){e._err(r,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function n8(e,r){if(aL.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=le.IN_TABLE_TEXT,r.type){case Ht.CHARACTER:{yL(e,r);break}case Ht.WHITESPACE_CHARACTER:{gL(e,r);break}}else U1(e,r)}function fxe(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,Me.HTML),e.insertionMode=le.IN_CAPTION}function mxe(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Me.HTML),e.insertionMode=le.IN_COLUMN_GROUP}function gxe(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.COLGROUP,F.COLGROUP),e.insertionMode=le.IN_COLUMN_GROUP,o8(e,r)}function yxe(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Me.HTML),e.insertionMode=le.IN_TABLE_BODY}function bxe(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.TBODY,F.TBODY),e.insertionMode=le.IN_TABLE_BODY,w3(e,r)}function vxe(e,r){e.openElements.hasInTableScope(F.TABLE)&&(e.openElements.popUntilTagNamePopped(F.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function xxe(e,r){dL(r)?e._appendElement(r,Me.HTML):U1(e,r),r.ackSelfClosing=!0}function wxe(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,Me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Xh(e,r){switch(r.tagID){case F.TD:case F.TH:case F.TR:{bxe(e,r);break}case F.STYLE:case F.SCRIPT:case F.TEMPLATE:{Ui(e,r);break}case F.COL:{gxe(e,r);break}case F.FORM:{wxe(e,r);break}case F.TABLE:{vxe(e,r);break}case F.TBODY:case F.TFOOT:case F.THEAD:{yxe(e,r);break}case F.INPUT:{xxe(e,r);break}case F.CAPTION:{fxe(e,r);break}case F.COLGROUP:{mxe(e,r);break}default:U1(e,r)}}function q1(e,r){switch(r.tagID){case F.TABLE:{e.openElements.hasInTableScope(F.TABLE)&&(e.openElements.popUntilTagNamePopped(F.TABLE),e._resetInsertionMode());break}case F.TEMPLATE:{Id(e,r);break}case F.BODY:case F.CAPTION:case F.COL:case F.COLGROUP:case F.HTML:case F.TBODY:case F.TD:case F.TFOOT:case F.TH:case F.THEAD:case F.TR:break;default:U1(e,r)}}function U1(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,b3(e,r),e.fosterParentingEnabled=n}function gL(e,r){e.pendingCharacterTokens.push(r)}function yL(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function V1(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)U1(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(r)}const bL=new Set([F.CAPTION,F.COL,F.COLGROUP,F.TBODY,F.TD,F.TFOOT,F.TH,F.THEAD,F.TR]);function kxe(e,r){const n=r.tagID;bL.has(n)?e.openElements.hasInTableScope(F.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(F.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=le.IN_TABLE,Xh(e,r)):To(e,r)}function _xe(e,r){const n=r.tagID;switch(n){case F.CAPTION:case F.TABLE:{e.openElements.hasInTableScope(F.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(F.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=le.IN_TABLE,n===F.TABLE&&q1(e,r));break}case F.BODY:case F.COL:case F.COLGROUP:case F.HTML:case F.TBODY:case F.TD:case F.TFOOT:case F.TH:case F.THEAD:case F.TR:break;default:v3(e,r)}}function o8(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.COL:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case F.TEMPLATE:{Ui(e,r);break}default:x3(e,r)}}function Exe(e,r){switch(r.tagID){case F.COLGROUP:{e.openElements.currentTagId===F.COLGROUP&&(e.openElements.pop(),e.insertionMode=le.IN_TABLE);break}case F.TEMPLATE:{Id(e,r);break}case F.COL:break;default:x3(e,r)}}function x3(e,r){e.openElements.currentTagId===F.COLGROUP&&(e.openElements.pop(),e.insertionMode=le.IN_TABLE,e._processToken(r))}function w3(e,r){switch(r.tagID){case F.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(r,Me.HTML),e.insertionMode=le.IN_ROW;break}case F.TH:case F.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(fe.TR,F.TR),e.insertionMode=le.IN_ROW,k3(e,r);break}case F.CAPTION:case F.COL:case F.COLGROUP:case F.TBODY:case F.TFOOT:case F.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE,Xh(e,r));break}default:Xh(e,r)}}function a8(e,r){const n=r.tagID;switch(r.tagID){case F.TBODY:case F.TFOOT:case F.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE);break}case F.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE,q1(e,r));break}case F.BODY:case F.CAPTION:case F.COL:case F.COLGROUP:case F.HTML:case F.TD:case F.TH:case F.TR:break;default:q1(e,r)}}function k3(e,r){switch(r.tagID){case F.TH:case F.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(r,Me.HTML),e.insertionMode=le.IN_CELL,e.activeFormattingElements.insertMarker();break}case F.CAPTION:case F.COL:case F.COLGROUP:case F.TBODY:case F.TFOOT:case F.THEAD:case F.TR:{e.openElements.hasInTableScope(F.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY,w3(e,r));break}default:Xh(e,r)}}function vL(e,r){switch(r.tagID){case F.TR:{e.openElements.hasInTableScope(F.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY);break}case F.TABLE:{e.openElements.hasInTableScope(F.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY,a8(e,r));break}case F.TBODY:case F.TFOOT:case F.THEAD:{(e.openElements.hasInTableScope(r.tagID)||e.openElements.hasInTableScope(F.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY,a8(e,r));break}case F.BODY:case F.CAPTION:case F.COL:case F.COLGROUP:case F.HTML:case F.TD:case F.TH:break;default:q1(e,r)}}function Sxe(e,r){const n=r.tagID;bL.has(n)?(e.openElements.hasInTableScope(F.TD)||e.openElements.hasInTableScope(F.TH))&&(e._closeTableCell(),k3(e,r)):To(e,r)}function Cxe(e,r){const n=r.tagID;switch(n){case F.TD:case F.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=le.IN_ROW);break}case F.TABLE:case F.TBODY:case F.TFOOT:case F.THEAD:case F.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),vL(e,r));break}case F.BODY:case F.CAPTION:case F.COL:case F.COLGROUP:case F.HTML:break;default:v3(e,r)}}function xL(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.OPTION:{e.openElements.currentTagId===F.OPTION&&e.openElements.pop(),e._insertElement(r,Me.HTML);break}case F.OPTGROUP:{e.openElements.currentTagId===F.OPTION&&e.openElements.pop(),e.openElements.currentTagId===F.OPTGROUP&&e.openElements.pop(),e._insertElement(r,Me.HTML);break}case F.HR:{e.openElements.currentTagId===F.OPTION&&e.openElements.pop(),e.openElements.currentTagId===F.OPTGROUP&&e.openElements.pop(),e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case F.INPUT:case F.KEYGEN:case F.TEXTAREA:case F.SELECT:{e.openElements.hasInSelectScope(F.SELECT)&&(e.openElements.popUntilTagNamePopped(F.SELECT),e._resetInsertionMode(),r.tagID!==F.SELECT&&e._processStartTag(r));break}case F.SCRIPT:case F.TEMPLATE:{Ui(e,r);break}}}function wL(e,r){switch(r.tagID){case F.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===F.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===F.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===F.OPTGROUP&&e.openElements.pop();break}case F.OPTION:{e.openElements.currentTagId===F.OPTION&&e.openElements.pop();break}case F.SELECT:{e.openElements.hasInSelectScope(F.SELECT)&&(e.openElements.popUntilTagNamePopped(F.SELECT),e._resetInsertionMode());break}case F.TEMPLATE:{Id(e,r);break}}}function Txe(e,r){const n=r.tagID;n===F.CAPTION||n===F.TABLE||n===F.TBODY||n===F.TFOOT||n===F.THEAD||n===F.TR||n===F.TD||n===F.TH?(e.openElements.popUntilTagNamePopped(F.SELECT),e._resetInsertionMode(),e._processStartTag(r)):xL(e,r)}function Rxe(e,r){const n=r.tagID;n===F.CAPTION||n===F.TABLE||n===F.TBODY||n===F.TFOOT||n===F.THEAD||n===F.TR||n===F.TD||n===F.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(F.SELECT),e._resetInsertionMode(),e.onEndTag(r)):wL(e,r)}function Axe(e,r){switch(r.tagID){case F.BASE:case F.BASEFONT:case F.BGSOUND:case F.LINK:case F.META:case F.NOFRAMES:case F.SCRIPT:case F.STYLE:case F.TEMPLATE:case F.TITLE:{Ui(e,r);break}case F.CAPTION:case F.COLGROUP:case F.TBODY:case F.TFOOT:case F.THEAD:{e.tmplInsertionModeStack[0]=le.IN_TABLE,e.insertionMode=le.IN_TABLE,Xh(e,r);break}case F.COL:{e.tmplInsertionModeStack[0]=le.IN_COLUMN_GROUP,e.insertionMode=le.IN_COLUMN_GROUP,o8(e,r);break}case F.TR:{e.tmplInsertionModeStack[0]=le.IN_TABLE_BODY,e.insertionMode=le.IN_TABLE_BODY,w3(e,r);break}case F.TD:case F.TH:{e.tmplInsertionModeStack[0]=le.IN_ROW,e.insertionMode=le.IN_ROW,k3(e,r);break}default:e.tmplInsertionModeStack[0]=le.IN_BODY,e.insertionMode=le.IN_BODY,To(e,r)}}function Nxe(e,r){r.tagID===F.TEMPLATE&&Id(e,r)}function kL(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(F.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):r8(e,r)}function Dxe(e,r){r.tagID===F.HTML?To(e,r):_3(e,r)}function _L(e,r){var n;if(r.tagID===F.HTML){if(e.fragmentContext||(e.insertionMode=le.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===F.HTML){e._setEndLocation(e.openElements.items[0],r);const o=e.openElements.items[1];o&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(o))===null||n===void 0)&&n.endTag)&&e._setEndLocation(o,r)}}else _3(e,r)}function _3(e,r){e.insertionMode=le.IN_BODY,b3(e,r)}function Pxe(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.FRAMESET:{e._insertElement(r,Me.HTML);break}case F.FRAME:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case F.NOFRAMES:{Ui(e,r);break}}}function $xe(e,r){r.tagID===F.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==F.FRAMESET&&(e.insertionMode=le.AFTER_FRAMESET))}function Mxe(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.NOFRAMES:{Ui(e,r);break}}}function Oxe(e,r){r.tagID===F.HTML&&(e.insertionMode=le.AFTER_AFTER_FRAMESET)}function Ixe(e,r){r.tagID===F.HTML?To(e,r):E3(e,r)}function E3(e,r){e.insertionMode=le.IN_BODY,b3(e,r)}function zxe(e,r){switch(r.tagID){case F.HTML:{To(e,r);break}case F.NOFRAMES:{Ui(e,r);break}}}function Lxe(e,r){r.chars=jr,e._insertCharacters(r)}function Bxe(e,r){e._insertCharacters(r),e.framesetOk=!1}function EL(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Me.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function jxe(e,r){if(t3e(r))EL(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===Me.MATHML?nL(r):o===Me.SVG&&(r3e(r),oL(r)),J_(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function Fxe(e,r){if(r.tagID===F.P||r.tagID===F.BR){EL(e),e._endTagOutsideForeignContent(r);return}for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===Me.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}fe.AREA,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BR,fe.COL,fe.EMBED,fe.FRAME,fe.HR,fe.IMG,fe.INPUT,fe.KEYGEN,fe.LINK,fe.META,fe.PARAM,fe.SOURCE,fe.TRACK,fe.WBR;const S3=SL("end"),js=SL("start");function SL(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function CL(e){const r=js(e),n=S3(e);if(r&&n)return{start:r,end:n}}const C3=(function(e){if(e==null)return Vxe;if(typeof e=="function")return T3(e);if(typeof e=="object")return Array.isArray(e)?Hxe(e):qxe(e);if(typeof e=="string")return Uxe(e);throw new Error("Expected function, string, or object as test")});function Hxe(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=C3(e[n]);return T3(o);function o(...a){let i=-1;for(;++i<r.length;)if(r[i].apply(this,a))return!0;return!1}}function qxe(e){const r=e;return T3(n);function n(o){const a=o;let i;for(i in e)if(a[i]!==r[i])return!1;return!0}}function Uxe(e){return T3(r);function r(n){return n&&n.type===e}}function T3(e){return r;function r(n,o,a){return!!(Yxe(n)&&e.call(this,n,typeof o=="number"?o:void 0,a||void 0))}}function Vxe(){return!0}function Yxe(e){return e!==null&&typeof e=="object"&&"type"in e}function r_t(e){return e}const TL=[],Wxe=!0,i8=!1,Gxe="skip";function RL(e,r,n,o){let a;typeof r=="function"&&typeof n!="function"?(o=n,n=r):a=r;const i=C3(a),l=o?-1:1;s(e,void 0,[])();function s(c,u,d){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const g=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(c.type+(g?"<"+g+">":""))+")"})}return f;function f(){let g=TL,b,x,w;if((!r||i(c,u,d[d.length-1]||void 0))&&(g=Xxe(n(c,d)),g[0]===i8))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==Gxe)for(x=(o?k.children.length:-1)+l,w=d.concat(k);x>-1&&x<k.children.length;){const C=k.children[x];if(b=s(C,x,w)(),b[0]===i8)return b;x=typeof b[1]=="number"?b[1]:x+l}}return g}}}function Xxe(e){return Array.isArray(e)?e:typeof e=="number"?[Wxe,e]:e==null?TL:[e]}function l8(e,r,n,o){let a,i,l;typeof r=="function"&&typeof n!="function"?(i=void 0,l=r,a=n):(i=r,l=n,a=o),RL(e,i,s,a);function s(c,u){const d=u[u.length-1],p=d?d.children.indexOf(c):void 0;return l(c,p,d)}}const Kxe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Zxe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),AL={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function NL(e,r){const n=lwe(e),o=W_("type",{handlers:{root:Qxe,element:Jxe,text:ewe,comment:PL,doctype:twe,raw:nwe},unknown:owe}),a={parser:n?new lL(AL):lL.getFragmentParser(void 0,AL),handle(s){o(s,a)},stitches:!1,options:r||{}};o(e,a),Kh(a,js());const i=n?a.parser.document:a.parser.getFragment(),l=Vbe(i,{file:a.options.file});return a.stitches&&l8(l,"comment",function(s,c,u){const d=s;if(d.value.stitch&&u&&c!==void 0){const p=u.children;return p[c]=d.value.stitch,c}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function DL(e,r){let n=-1;if(e)for(;++n<e.length;)r.handle(e[n])}function Qxe(e,r){DL(e.children,r)}function Jxe(e,r){awe(e,r),DL(e.children,r),iwe(e,r)}function ewe(e,r){r.parser.tokenizer.state>4&&(r.parser.tokenizer.state=0);const n={type:Ht.CHARACTER,chars:e.value,location:Y1(e)};Kh(r,js(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function twe(e,r){const n={type:Ht.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Y1(e)};Kh(r,js(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function rwe(e,r){r.stitches=!0;const n=swe(e);if("children"in e&&"children"in n){const o=NL({type:"root",children:e.children},r.options);n.children=o.children}PL({type:"comment",value:{stitch:n}},r)}function PL(e,r){const n=e.value,o={type:Ht.COMMENT,data:n,location:Y1(e)};Kh(r,js(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function nwe(e,r){if(r.parser.tokenizer.preprocessor.html="",r.parser.tokenizer.preprocessor.pos=-1,r.parser.tokenizer.preprocessor.lastGapPos=-2,r.parser.tokenizer.preprocessor.gapStack=[],r.parser.tokenizer.preprocessor.skipNextNewLine=!1,r.parser.tokenizer.preprocessor.lastChunkWritten=!1,r.parser.tokenizer.preprocessor.endOfChunkHit=!1,r.parser.tokenizer.preprocessor.isEol=!1,$L(r,js(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(Kxe,"&lt;$1$2"):e.value,!1),r.parser.tokenizer._runParsingLoop(),r.parser.tokenizer.state===72||r.parser.tokenizer.state===78){r.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=r.parser.tokenizer._consume();r.parser.tokenizer._callState(n)}}function owe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))rwe(n,r);else{let o="";throw Zxe.has(n.type)&&(o=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+o)}}function Kh(e,r){$L(e,r);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=un.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function $L(e,r){if(r&&r.offset!==void 0){const n={startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-r.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=r.offset,e.parser.tokenizer.preprocessor.line=r.line,e.parser.tokenizer.currentLocation=n}}function awe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===un.PLAINTEXT)return;Kh(r,js(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:$d.html;a===$d.html&&n==="svg"&&(a=$d.svg);const i=ive({...e,children:[]},{space:a===$d.svg?"svg":"html"}),l={type:Ht.START_TAG,tagName:n,tagID:Gh(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Y1(e)};r.parser.currentToken=l,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function iwe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&Iz.includes(n)||r.parser.tokenizer.state===un.PLAINTEXT)return;Kh(r,S3(e));const o={type:Ht.END_TAG,tagName:n,tagID:Gh(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Y1(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===un.RCDATA||r.parser.tokenizer.state===un.RAWTEXT||r.parser.tokenizer.state===un.SCRIPT_DATA)&&(r.parser.tokenizer.state=un.DATA)}function lwe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function Y1(e){const r=js(e)||{line:void 0,column:void 0,offset:void 0},n=S3(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function swe(e){return"children"in e?Dd({...e,children:[]}):Dd(e)}function cwe(e){return function(r,n){return NL(r,{...e,file:n})}}const zd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],ML={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...zd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...zd],h2:[["className","sr-only"]],img:[...zd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...zd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...zd],table:[...zd],ul:[...zd,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},au={}.hasOwnProperty;function uwe(e,r){let n={type:"root",children:[]};const o={schema:r?{...ML,...r}:ML,stack:[]},a=OL(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function OL(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return dwe(e,n);case"doctype":return pwe(e,n);case"element":return hwe(e,n);case"root":return fwe(e,n);case"text":return mwe(e,n)}}}function dwe(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return W1(i,r),i}}function pwe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return W1(n,r),n}}function hwe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=IL(e,r.children),a=gwe(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&au.call(e.schema.ancestors,n))){const s=e.schema.ancestors[n];let c=-1;for(i=!1;++c<s.length;)e.stack.includes(s[c])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?o:void 0;const l={type:"element",tagName:n,properties:a,children:o};return W1(l,r),l}function fwe(e,r){const o={type:"root",children:IL(e,r.children)};return W1(o,r),o}function mwe(e,r){const o={type:"text",value:typeof r.value=="string"?r.value:""};return W1(o,r),o}function IL(e,r){const n=[];if(Array.isArray(r)){const o=r;let a=-1;for(;++a<o.length;){const i=OL(e,o[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function gwe(e,r){const n=e.stack[e.stack.length-1],o=e.schema.attributes,a=e.schema.required,i=o&&au.call(o,n)?o[n]:void 0,l=o&&au.call(o,"*")?o["*"]:void 0,s=r&&typeof r=="object"?r:{},c={};let u;for(u in s)if(au.call(s,u)){const d=s[u];let p=zL(e,BL(i,u),u,d);p==null&&(p=zL(e,BL(l,u),u,d)),p!=null&&(c[u]=p)}if(a&&au.call(a,n)){const d=a[n];for(u in d)au.call(d,u)&&!au.call(c,u)&&(c[u]=d[u])}return c}function zL(e,r,n,o){return r?Array.isArray(o)?ywe(e,r,n,o):LL(e,r,n,o):void 0}function ywe(e,r,n,o){let a=-1;const i=[];for(;++a<o.length;){const l=LL(e,r,n,o[a]);(typeof l=="number"||typeof l=="string")&&i.push(l)}return i}function LL(e,r,n,o){if(!(typeof o!="boolean"&&typeof o!="number"&&typeof o!="string")&&bwe(e,n,o)){if(typeof r=="object"&&r.length>1){let a=!1,i=0;for(;++i<r.length;){const l=r[i];if(l&&typeof l=="object"&&"flags"in l){if(l.test(String(o))){a=!0;break}}else if(l===o){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+o:o}}function bwe(e,r,n){const o=e.schema.protocols&&au.call(e.schema.protocols,r)?e.schema.protocols[r]:void 0;if(!o||o.length===0)return!0;const a=String(n),i=a.indexOf(":"),l=a.indexOf("?"),s=a.indexOf("#"),c=a.indexOf("/");if(i<0||c>-1&&i>c||l>-1&&i>l||s>-1&&i>s)return!0;let u=-1;for(;++u<o.length;){const d=o[u];if(i===d.length&&a.slice(0,d.length)===d)return!0}return!1}function W1(e,r){const n=CL(r);r.data&&(e.data=Dd(r.data)),n&&(e.position=n)}function BL(e,r){let n,o=-1;if(e)for(;++o<e.length;){const a=e[o],i=typeof a=="string"?a:a[0];if(i===r)return a;i==="data*"&&(n=a)}if(r.length>4&&r.slice(0,4).toLowerCase()==="data")return n}function vwe(e){return function(r){return uwe(r,e)}}const xwe=/["&'<>`]/g,wwe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kwe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,_we=/[|\\{}()[\]^$+*?.]/g,jL=new WeakMap;function Ewe(e,r){if(e=e.replace(r.subset?Swe(r.subset):xwe,o),r.subset||r.escapeOnly)return e;return e.replace(wwe,n).replace(kwe,o);function n(a,i,l){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),r)}function o(a,i,l){return r.format(a.charCodeAt(0),l.charCodeAt(i+1),r)}}function Swe(e){let r=jL.get(e);return r||(r=Cwe(e),jL.set(e,r)),r}function Cwe(e){const r=[];let n=-1;for(;++n<e.length;)r.push(e[n].replace(_we,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}const Twe=/[\dA-Fa-f]/;function Rwe(e,r,n){const o="&#x"+e.toString(16).toUpperCase();return n&&r&&!Twe.test(String.fromCharCode(r))?o:o+";"}const Awe=/\d/;function Nwe(e,r,n){const o="&#"+String(e);return n&&r&&!Awe.test(String.fromCharCode(r))?o:o+";"}const Dwe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],s8={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Pwe=["cent","copy","divide","gt","lt","not","para","times"],FL={}.hasOwnProperty,c8={};let R3;for(R3 in s8)FL.call(s8,R3)&&(c8[s8[R3]]=R3);const $we=/[^\dA-Za-z]/;function Mwe(e,r,n,o){const a=String.fromCharCode(e);if(FL.call(c8,a)){const i=c8[a],l="&"+i;return n&&Dwe.includes(i)&&!Pwe.includes(i)&&(!o||r&&r!==61&&$we.test(String.fromCharCode(r)))?l:l+";"}return""}function Owe(e,r,n){let o=Rwe(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Mwe(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Nwe(e,r,n.omitOptionalSemicolons);i.length<o.length&&(o=i)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function Zh(e,r){return Ewe(e,Object.assign({format:Owe},r))}const Iwe=/^>|^->|<!--|-->|--!>|<!-$/g,zwe=[">"],Lwe=["<",">"];function Bwe(e,r,n,o){return o.settings.bogusComments?"<?"+Zh(e.value,Object.assign({},o.settings.characterReferences,{subset:zwe}))+">":"<!--"+e.value.replace(Iwe,a)+"-->";function a(i){return Zh(i,Object.assign({},o.settings.characterReferences,{subset:Lwe}))}}function jwe(e,r,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function A3(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const Fwe=/[ \t\n\f\r]/g;function u8(e){return typeof e=="object"?e.type==="text"?HL(e.value):!1:HL(e)}function HL(e){return e.replace(Fwe,"")===""}const qn=UL(1),qL=UL(-1),Hwe=[];function UL(e){return r;function r(n,o,a){const i=n?n.children:Hwe;let l=(o||0)+e,s=i[l];if(!a)for(;s&&u8(s);)l+=e,s=i[l];return s}}const qwe={}.hasOwnProperty;function VL(e){return r;function r(n,o,a){return qwe.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const d8=VL({body:Vwe,caption:p8,colgroup:p8,dd:Xwe,dt:Gwe,head:p8,html:Uwe,li:Wwe,optgroup:Kwe,option:Zwe,p:Ywe,rp:YL,rt:YL,tbody:Jwe,td:WL,tfoot:e2e,th:WL,thead:Qwe,tr:t2e});function p8(e,r,n){const o=qn(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&u8(o.value.charAt(0)))}function Uwe(e,r,n){const o=qn(n,r);return!o||o.type!=="comment"}function Vwe(e,r,n){const o=qn(n,r);return!o||o.type!=="comment"}function Ywe(e,r,n){const o=qn(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Wwe(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&o.tagName==="li"}function Gwe(e,r,n){const o=qn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Xwe(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function YL(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Kwe(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Zwe(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Qwe(e,r,n){const o=qn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Jwe(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function e2e(e,r,n){return!qn(n,r)}function t2e(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function WL(e,r,n){const o=qn(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const r2e=VL({body:a2e,colgroup:i2e,head:o2e,html:n2e,tbody:l2e});function n2e(e){const r=qn(e,-1);return!r||r.type!=="comment"}function o2e(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function a2e(e){const r=qn(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&u8(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function i2e(e,r,n){const o=qL(n,r),a=qn(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&d8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function l2e(e,r,n){const o=qL(n,r),a=qn(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&d8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const N3={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function s2e(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let l=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const s=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=M1);const u=c2e(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(l=!1),(u||!i||!r2e(e,r,n))&&(s.push("<",e.tagName,u?" "+u:""),l&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!l&&(!i||!d8(e,r,n))&&s.push("</"+e.tagName+">"),s.join("")}function c2e(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=u2e(e,a,r[a]);i&&n.push(i)}}for(;++o<n.length;){const i=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&i!=='"'&&i!=="'"&&(n[o]+=" ")}return n.join("")}function u2e(e,r,n){const o=j_(e.schema,r),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let l=e.quote,s;if(o.overloadedBoolean&&(n===o.attribute||n==="")?n=!0:(o.boolean||o.overloadedBoolean)&&(typeof n!="string"||n===o.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Zh(o.attribute,Object.assign({},e.settings.characterReferences,{subset:N3.name[a][i]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?hz:gz)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=Zh(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:N3.unquoted[a][i]}))),s!==n&&(e.settings.quoteSmart&&A3(n,l)>A3(n,e.alternative)&&(l=e.alternative),s=l+Zh(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?N3.single:N3.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const d2e=["<","&"];function GL(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Zh(e.value,Object.assign({},o.settings.characterReferences,{subset:d2e}))}function p2e(e,r,n,o){return o.settings.allowDangerousHtml?e.value:GL(e,r,n,o)}function h2e(e,r,n,o){return o.all(e)}const f2e=W_("type",{invalid:m2e,unknown:g2e,handlers:{comment:Bwe,doctype:jwe,element:s2e,raw:p2e,root:h2e,text:GL}});function m2e(e){throw new Error("Expected node, not `"+e+"`")}function g2e(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const y2e={},b2e={},v2e=[];function x2e(e,r){const n=r||y2e,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:w2e,all:k2e,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Iz,characterReferences:n.characterReferences||b2e,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?M1:f3,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function w2e(e,r,n){return f2e(e,r,n,this)}function k2e(e){const r=[],n=e&&e.children||v2e;let o=-1;for(;++o<n.length;)r[o]=this.one(n[o],o,e);return r.join("")}function _2e(e){const r=this,n={...r.data("settings"),...e};r.compiler=o;function o(a){return x2e(a,n)}}const Fo=iu(/[A-Za-z]/),Ro=iu(/[\dA-Za-z]/),E2e=iu(/[#-'*+\--9=?A-Z^-~]/);function D3(e){return e!==null&&(e<32||e===127)}const h8=iu(/\d/),S2e=iu(/[\dA-Fa-f]/),C2e=iu(/[!-/:-@[-`{-~]/);function mt(e){return e!==null&&e<-2}function _r(e){return e!==null&&(e<0||e===32)}function Vt(e){return e===-2||e===-1||e===32}const P3=iu(new RegExp("\\p{P}|\\p{S}","u")),Ld=iu(/\s/);function iu(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function T2e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function R2e(e,r,n){const a=C3((n||{}).ignore||[]),i=A2e(r);let l=-1;for(;++l<i.length;)RL(e,"text",s);function s(u,d){let p=-1,f;for(;++p<d.length;){const g=d[p],b=f?f.children:void 0;if(a(g,b?b.indexOf(g):void 0,f))return;f=g}if(f)return c(u,d)}function c(u,d){const p=d[d.length-1],f=i[l][0],g=i[l][1];let b=0;const w=p.children.indexOf(u);let k=!1,C=[];f.lastIndex=0;let _=f.exec(u.value);for(;_;){const T=_.index,R={index:_.index,input:_.input,stack:[...d,u]};let A=g(..._,R);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(b!==T&&C.push({type:"text",value:u.value.slice(b,T)}),Array.isArray(A)?C.push(...A):A&&C.push(A),b=T+_[0].length,k=!0),!f.global)break;_=f.exec(u.value)}return k?(b<u.value.length&&C.push({type:"text",value:u.value.slice(b)}),p.children.splice(w,1,...C)):C=[u],w+C.length}}function A2e(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<n.length;){const a=n[o];r.push([N2e(a[0]),D2e(a[1])])}return r}function N2e(e){return typeof e=="string"?new RegExp(T2e(e),"g"):e}function D2e(e){return typeof e=="function"?e:function(){return e}}const f8="phrasing",m8=["autolink","link","image","label"];function P2e(){return{transforms:[B2e],enter:{literalAutolink:M2e,literalAutolinkEmail:g8,literalAutolinkHttp:g8,literalAutolinkWww:g8},exit:{literalAutolink:L2e,literalAutolinkEmail:z2e,literalAutolinkHttp:O2e,literalAutolinkWww:I2e}}}function $2e(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:f8,notInConstruct:m8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:f8,notInConstruct:m8},{character:":",before:"[ps]",after:"\\/",inConstruct:f8,notInConstruct:m8}]}}function M2e(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function g8(e){this.config.enter.autolinkProtocol.call(this,e)}function O2e(e){this.config.exit.autolinkProtocol.call(this,e)}function I2e(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function z2e(e){this.config.exit.autolinkEmail.call(this,e)}function L2e(e){this.exit(e)}function B2e(e){R2e(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,j2e],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),F2e]],{ignore:["link","linkReference"]})}function j2e(e,r,n,o,a){let i="";if(!XL(a)||(/^w/i.test(r)&&(n=r+n,r="",i="http://"),!H2e(n)))return!1;const l=q2e(n+o);if(!l[0])return!1;const s={type:"link",title:null,url:i+r+l[0],children:[{type:"text",value:r+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function F2e(e,r,n,o){return!XL(o,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+n,children:[{type:"text",value:r+"@"+n}]}}function H2e(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function q2e(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=A3(e,"(");let i=A3(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function XL(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ld(n)||P3(n))&&(!r||n!==47)}function Vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}KL.peek=Q2e;function U2e(){this.buffer()}function V2e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Y2e(){this.buffer()}function W2e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function G2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function X2e(e){this.exit(e)}function K2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function Z2e(e){this.exit(e)}function Q2e(){return"["}function KL(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),l(),i+=a.move("]"),i}function J2e(){return{enter:{gfmFootnoteCallString:U2e,gfmFootnoteCall:V2e,gfmFootnoteDefinitionLabelString:Y2e,gfmFootnoteDefinition:W2e},exit:{gfmFootnoteCallString:G2e,gfmFootnoteCall:X2e,gfmFootnoteDefinitionLabelString:K2e,gfmFootnoteDefinition:Z2e}}}function e4e(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:KL},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,l){const s=i.createTracker(l);let c=s.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return c+=s.move(i.safe(i.associationId(o),{before:c,after:"]"})),d(),c+=s.move("]:"),o.children&&o.children.length>0&&(s.shift(4),c+=s.move((r?`
`:" ")+i.indentLines(i.containerFlow(o,s.current()),r?ZL:t4e))),u(),c}}function t4e(e,r,n){return r===0?e:ZL(e,r,n)}function ZL(e,r,n){return(n?"":"    ")+e}const r4e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];QL.peek=l4e;function n4e(){return{canContainEols:["delete"],enter:{strikethrough:a4e},exit:{strikethrough:i4e}}}function o4e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:r4e}],handlers:{delete:QL}}}function a4e(e){this.enter({type:"delete",children:[]},e)}function i4e(e){this.exit(e)}function QL(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function l4e(){return"~"}function s4e(e){return e.length}function c4e(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||s4e,i=[],l=[],s=[],c=[];let u=0,d=-1;for(;++d<e.length;){const x=[],w=[];let k=-1;for(e[d].length>u&&(u=e[d].length);++k<e[d].length;){const C=u4e(e[d][k]);if(n.alignDelimiters!==!1){const _=a(C);w[k]=_,(c[k]===void 0||_>c[k])&&(c[k]=_)}x.push(C)}l[d]=x,s[d]=w}let p=-1;if(typeof o=="object"&&"length"in o)for(;++p<u;)i[p]=JL(o[p]);else{const x=JL(o);for(;++p<u;)i[p]=x}p=-1;const f=[],g=[];for(;++p<u;){const x=i[p];let w="",k="";x===99?(w=":",k=":"):x===108?w=":":x===114&&(k=":");let C=n.alignDelimiters===!1?1:Math.max(1,c[p]-w.length-k.length);const _=w+"-".repeat(C)+k;n.alignDelimiters!==!1&&(C=w.length+C+k.length,C>c[p]&&(c[p]=C),g[p]=C),f[p]=_}l.splice(1,0,f),s.splice(1,0,g),d=-1;const b=[];for(;++d<l.length;){const x=l[d],w=s[d];p=-1;const k=[];for(;++p<u;){const C=x[p]||"";let _="",T="";if(n.alignDelimiters!==!1){const R=c[p]-(w[p]||0),A=i[p];A===114?_=" ".repeat(R):A===99?R%2?(_=" ".repeat(R/2+.5),T=" ".repeat(R/2-.5)):(_=" ".repeat(R/2),T=_):T=" ".repeat(R)}n.delimiterStart!==!1&&!p&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||p)&&k.push(" "),n.alignDelimiters!==!1&&k.push(_),k.push(C),n.alignDelimiters!==!1&&k.push(T),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||p!==u-1)&&k.push("|")}b.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return b.join(`
`)}function u4e(e){return e==null?"":String(e)}function JL(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function d4e(e,r,n,o){const a=n.enter("blockquote"),i=n.createTracker(o);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),p4e);return a(),l}function p4e(e,r,n){return">"+(n?"":" ")+e}function h4e(e,r){return eB(e,r.inConstruct,!0)&&!eB(e,r.notInConstruct,!1)}function eB(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++o<r.length;)if(e.includes(r[o]))return!0;return!1}function tB(e,r,n,o){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&h4e(n.stack,n.unsafe[a]))return/[ \t]/.test(o.before)?"":" ";return`\\
`}function f4e(e,r){const n=String(e);let o=n.indexOf(r),a=o,i=0,l=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===a?++i>l&&(l=i):i=1,a=o+r.length,o=n.indexOf(r,a);return l}function m4e(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function g4e(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function y4e(e,r,n,o){const a=g4e(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(m4e(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(i,b4e);return p(),f}const s=n.createTracker(o),c=a.repeat(Math.max(f4e(i,a)+1,3)),u=n.enter("codeFenced");let d=s.move(c);if(e.lang){const p=n.enter(`codeFencedLang${l}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${l}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
`,encode:["`"],...s.current()})),p()}return d+=s.move(`
`),i&&(d+=s.move(i+`
`)),d+=s.move(c),u(),d}function b4e(e,r,n){return(n?"":"    ")+e}function y8(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function v4e(e,r,n,o){const a=y8(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const c=n.createTracker(o);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":`
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),s()),l(),u}function x4e(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function G1(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Qh(e){if(e===null||_r(e)||Ld(e))return 1;if(P3(e))return 2}function $3(e,r,n){const o=Qh(e),a=Qh(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===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}}rB.peek=w4e;function rB(e,r,n,o){const a=x4e(n),i=n.enter("emphasis"),l=n.createTracker(o),s=l.move(a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const u=c.charCodeAt(0),d=$3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=G1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=$3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+G1(p));const g=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function w4e(e,r,n){return n.options.emphasis||"*"}const k4e={};function M3(e,r){const n=r||k4e,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return nB(e,o,a)}function nB(e,r,n){if(_4e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return oB(e.children,r,n)}return Array.isArray(e)?oB(e,r,n):""}function oB(e,r,n){const o=[];let a=-1;for(;++a<e.length;)o[a]=nB(e[a],r,n);return o.join("")}function _4e(e){return!!(e&&typeof e=="object")}function E4e(e,r){let n=!1;return l8(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,i8}),!!((!e.depth||e.depth<3)&&M3(e)&&(r.options.setext||n))}function S4e(e,r,n,o){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(o);if(E4e(e,n)){const d=n.enter("headingSetext"),p=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:`
`,after:`
`});return p(),d(),f+`
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
`))+1))}const l="#".repeat(a),s=n.enter("headingAtx"),c=n.enter("phrasing");i.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
`,...i.current()});return/^[\t ]/.test(u)&&(u=G1(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),c(),s(),u}aB.peek=C4e;function aB(e){return e.value||""}function C4e(){return"<"}iB.peek=T4e;function iB(e,r,n,o){const a=y8(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let s=n.enter("label");const c=n.createTracker(o);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),s()),u+=c.move(")"),l(),u}function T4e(){return"!"}lB.peek=R4e;function lB(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("![");const u=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=d,i(),a==="full"||!u||u!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function R4e(){return"!"}sB.peek=A4e;function sB(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i<n.unsafe.length;){const l=n.unsafe[i],s=n.compilePattern(l);let c;if(l.atBreak)for(;c=s.exec(o);){let u=c.index;o.charCodeAt(u)===10&&o.charCodeAt(u-1)===13&&u--,o=o.slice(0,u)+" "+o.slice(c.index+1)}}return a+o+a}function A4e(){return"`"}function cB(e,r){const n=M3(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}uB.peek=N4e;function uB(e,r,n,o){const a=y8(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(o);let s,c;if(cB(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),s(),n.stack=d,p}s=n.enter("link"),c=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(c=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),c()),u+=l.move(")"),s(),u}function N4e(e,r,n){return cB(e,n)?"<":"["}dB.peek=D4e;function dB(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=d,i(),a==="full"||!u||u!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function D4e(){return"["}function b8(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function P4e(e){const r=b8(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function $4e(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function pB(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function M4e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?$4e(n):b8(n);const s=e.ordered?l==="."?")":".":P4e(n);let c=r&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&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&&(c=!0),pB(n)===l&&d){let p=-1;for(;++p<e.children.length;){const f=e.children[p];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(l=s),n.bulletCurrent=l;const u=n.containerFlow(e,o);return n.bulletLastUsed=l,n.bulletCurrent=i,a(),u}function O4e(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function I4e(e,r,n,o){const a=O4e(n);let i=n.bulletCurrent||b8(n);r&&r.type==="list"&&r.ordered&&(i=(typeof r.start=="number"&&r.start>-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=n.createTracker(o);s.move(i+" ".repeat(l-i.length)),s.shift(l);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return c(),u;function d(p,f,g){return f?(g?"":" ".repeat(l))+p:(g?i:i+" ".repeat(l-i.length))+p}}function z4e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,o);return i(),a(),l}const L4e=C3(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function B4e(e,r,n,o){return(e.children.some(function(l){return L4e(l)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function j4e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}hB.peek=F4e;function hB(e,r,n,o){const a=j4e(n),i=n.enter("strong"),l=n.createTracker(o),s=l.move(a+a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const u=c.charCodeAt(0),d=$3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=G1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=$3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+G1(p));const g=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function F4e(e,r,n){return n.options.strong||"*"}function H4e(e,r,n,o){return n.safe(e.value,o)}function q4e(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function U4e(e,r,n){const o=(pB(n)+(n.options.ruleSpaces?" ":"")).repeat(q4e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const fB={blockquote:d4e,break:tB,code:y4e,definition:v4e,emphasis:rB,hardBreak:tB,heading:S4e,html:aB,image:iB,imageReference:lB,inlineCode:sB,link:uB,linkReference:dB,list:M4e,listItem:I4e,paragraph:z4e,root:B4e,strong:hB,text:H4e,thematicBreak:U4e},mB={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"Ĳ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"	",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",ffr:"𝔣",filig:"ﬁ",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ĳ",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},V4e={}.hasOwnProperty;function v8(e){return V4e.call(mB,e)?mB[e]:!1}function gB(e,r){const n=Number.parseInt(e,r);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)}const Y4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function W4e(e){return e.replace(Y4e,G4e)}function G4e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return gB(n.slice(i?2:1),i?16:10)}return v8(n)||e}function X4e(){return{enter:{table:K4e,tableData:yB,tableHeader:yB,tableRow:Q4e},exit:{codeText:J4e,table:Z4e,tableData:x8,tableHeader:x8,tableRow:x8}}}function K4e(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Z4e(e){this.exit(e),this.data.inTable=void 0}function Q4e(e){this.enter({type:"tableRow",children:[]},e)}function x8(e){this.exit(e)}function yB(e){this.enter({type:"tableCell",children:[]},e)}function J4e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,e5e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function e5e(e,r){return r==="|"?r:e}function t5e(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:l,tableCell:c,tableRow:s}};function l(g,b,x,w){return u(d(g,x,w),g.align)}function s(g,b,x,w){const k=p(g,x,w),C=u([k]);return C.slice(0,C.indexOf(`
`))}function c(g,b,x,w){const k=x.enter("tableCell"),C=x.enter("phrasing"),_=x.containerPhrasing(g,{...w,before:i,after:i});return C(),k(),_}function u(g,b){return c4e(g,{align:b,alignDelimiters:o,padding:n,stringLength:a})}function d(g,b,x){const w=g.children;let k=-1;const C=[],_=b.enter("table");for(;++k<w.length;)C[k]=p(w[k],b,x);return _(),C}function p(g,b,x){const w=g.children;let k=-1;const C=[],_=b.enter("tableRow");for(;++k<w.length;)C[k]=c(w[k],g,b,x);return _(),C}function f(g,b,x){let w=fB.inlineCode(g,b,x);return x.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function r5e(){return{exit:{taskListCheckValueChecked:bB,taskListCheckValueUnchecked:bB,paragraph:o5e}}}function n5e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:a5e}}}function bB(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function o5e(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const a=r.children;let i=-1,l;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){l=s;break}}l===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function a5e(e,r,n,o){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",s=n.createTracker(o);i&&s.move(l);let c=fB.listItem(e,r,n,{...o,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+l}}function i5e(){return[P2e(),J2e(),n4e(),X4e(),r5e()]}function l5e(e){return{extensions:[$2e(),e4e(e),o4e(),t5e(e),n5e()]}}function _a(e,r,n,o){const a=e.length;let i=0,l;if(r<0?r=-r>a?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)l=Array.from(o),l.unshift(r,n),e.splice(...l);else for(n&&e.splice(r,n);i<o.length;)l=o.slice(i,i+1e4),l.unshift(r,0),e.splice(...l),i+=1e4,r+=1e4}function oi(e,r){return e.length>0?(_a(e,e.length,0,r),e):r}const vB={}.hasOwnProperty;function xB(e){const r={};let n=-1;for(;++n<e.length;)s5e(r,e[n]);return r}function s5e(e,r){let n;for(n in r){const a=(vB.call(e,n)?e[n]:void 0)||(e[n]={}),i=r[n];let l;if(i)for(l in i){vB.call(a,l)||(a[l]=[]);const s=i[l];c5e(a[l],Array.isArray(s)?s:s?[s]:[])}}}function c5e(e,r){let n=-1;const o=[];for(;++n<r.length;)(r[n].add==="after"?e:o).push(r[n]);_a(e,0,0,o)}const u5e={tokenize:g5e,partial:!0},wB={tokenize:y5e,partial:!0},kB={tokenize:b5e,partial:!0},_B={tokenize:v5e,partial:!0},d5e={tokenize:x5e,partial:!0},EB={name:"wwwAutolink",tokenize:f5e,previous:CB},SB={name:"protocolAutolink",tokenize:m5e,previous:TB},Fs={name:"emailAutolink",tokenize:h5e,previous:RB},Xl={};function p5e(){return{text:Xl}}let Bd=48;for(;Bd<123;)Xl[Bd]=Fs,Bd++,Bd===58?Bd=65:Bd===91&&(Bd=97);Xl[43]=Fs,Xl[45]=Fs,Xl[46]=Fs,Xl[95]=Fs,Xl[72]=[Fs,SB],Xl[104]=[Fs,SB],Xl[87]=[Fs,EB],Xl[119]=[Fs,EB];function h5e(e,r,n){const o=this;let a,i;return l;function l(p){return!w8(p)||!RB.call(o,o.previous)||k8(o.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return w8(p)?(e.consume(p),s):p===64?(e.consume(p),c):n(p)}function c(p){return p===46?e.check(d5e,d,u)(p):p===45||p===95||Ro(p)?(i=!0,e.consume(p),c):d(p)}function u(p){return e.consume(p),a=!0,c}function d(p){return i&&a&&Fo(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(p)):n(p)}}function f5e(e,r,n){const o=this;return a;function a(l){return l!==87&&l!==119||!CB.call(o,o.previous)||k8(o.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(u5e,e.attempt(wB,e.attempt(kB,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(l)}}function m5e(e,r,n){const o=this;let a="",i=!1;return l;function l(p){return(p===72||p===104)&&TB.call(o,o.previous)&&!k8(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),s):n(p)}function s(p){if(Fo(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),s;if(p===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(p),c}return n(p)}function c(p){return p===47?(e.consume(p),i?u:(i=!0,c)):n(p)}function u(p){return p===null||D3(p)||_r(p)||Ld(p)||P3(p)?n(p):e.attempt(wB,e.attempt(kB,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(p)}}function g5e(e,r,n){let o=0;return a;function a(l){return(l===87||l===119)&&o<3?(o++,e.consume(l),a):l===46&&o===3?(e.consume(l),i):n(l)}function i(l){return l===null?n(l):r(l)}}function y5e(e,r,n){let o,a,i;return l;function l(u){return u===46||u===95?e.check(_B,c,s)(u):u===null||_r(u)||Ld(u)||u!==45&&P3(u)?c(u):(i=!0,e.consume(u),l)}function s(u){return u===95?o=!0:(a=o,o=void 0),e.consume(u),l}function c(u){return a||o||!i?n(u):r(u)}}function b5e(e,r){let n=0,o=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&o<n?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(_B,r,i)(l):l===null||_r(l)||Ld(l)?r(l):(e.consume(l),a)}function i(l){return l===41&&o++,e.consume(l),a}}function v5e(e,r,n){return o;function o(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),o):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||_r(s)||Ld(s)?r(s):n(s)}function a(s){return s===null||s===40||s===91||_r(s)||Ld(s)?r(s):o(s)}function i(s){return Fo(s)?l(s):n(s)}function l(s){return s===59?(e.consume(s),o):Fo(s)?(e.consume(s),l):n(s)}}function x5e(e,r,n){return o;function o(i){return e.consume(i),a}function a(i){return Ro(i)?n(i):r(i)}}function CB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_r(e)}function TB(e){return!Fo(e)}function RB(e){return!(e===47||w8(e))}function w8(e){return e===43||e===45||e===46||e===95||Ro(e)}function k8(e){let r=e.length,n=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Jh(e){const r=[];let n=-1,o=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Ro(e.charCodeAt(n+1))&&Ro(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(l=String.fromCharCode(i,s),a=1):l="�"}else l=String.fromCharCode(i);l&&(r.push(e.slice(o,n),encodeURIComponent(l)),o=n+a+1,l=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function O3(e,r,n){const o=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!o.includes(i)&&(r=i(r,n),o.push(i))}return r}const _8={name:"attention",resolveAll:w5e,tokenize:k5e};function w5e(e,r){let n=-1,o,a,i,l,s,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(o=n;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&r.sliceSerialize(e[o][1]).charCodeAt(0)===r.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[o][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[o][1].end.offset-e[o][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[o][1].end},f={...e[n][1].start};AB(p,-c),AB(f,c),l={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[o][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[o][1].end={...l.start},e[n][1].start={...s.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=oi(u,[["enter",e[o][1],r],["exit",e[o][1],r]])),u=oi(u,[["enter",a,r],["enter",l,r],["exit",l,r],["enter",i,r]]),u=oi(u,O3(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),u=oi(u,[["exit",i,r],["enter",s,r],["exit",s,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=oi(u,[["enter",e[n][1],r],["exit",e[n][1],r]])):d=0,_a(e,o-1,n-o+3,u),n=o+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function k5e(e,r){const n=this.parser.constructs.attentionMarkers.null,o=this.previous,a=Qh(o);let i;return l;function l(c){return i=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===i)return e.consume(c),s;const u=e.exit("attentionSequence"),d=Qh(c),p=!d||d===2&&a||n.includes(c),f=!a||a===2&&d||n.includes(o);return u._open=!!(i===42?p:p&&(a||!f)),u._close=!!(i===42?f:f&&(d||!p)),r(c)}}function AB(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const _5e={name:"autolink",tokenize:E5e};function E5e(e,r,n){let o=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(g){return Fo(g)?(e.consume(g),l):g===64?n(g):u(g)}function l(g){return g===43||g===45||g===46||Ro(g)?(o=1,s(g)):u(g)}function s(g){return g===58?(e.consume(g),o=0,c):(g===43||g===45||g===46||Ro(g))&&o++<32?(e.consume(g),s):(o=0,u(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),r):g===null||g===32||g===60||D3(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),d):E2e(g)?(e.consume(g),u):n(g)}function d(g){return Ro(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),o=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),r):f(g)}function f(g){if((g===45||Ro(g))&&o++<63){const b=g===45?f:p;return e.consume(g),b}return n(g)}}function er(e,r,n,o){const a=o?o-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(c){return Vt(c)?(e.enter(n),s(c)):r(c)}function s(c){return Vt(c)&&i++<a?(e.consume(c),s):(e.exit(n),r(c))}}const X1={partial:!0,tokenize:S5e};function S5e(e,r,n){return o;function o(i){return Vt(i)?er(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||mt(i)?r(i):n(i)}}const NB={continuation:{tokenize:T5e},exit:R5e,name:"blockQuote",tokenize:C5e};function C5e(e,r,n){const o=this;return a;function a(l){if(l===62){const s=o.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return Vt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(l))}}function T5e(e,r,n){const o=this;return a;function a(l){return Vt(l)?er(e,i,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(NB,r,n)(l)}}function R5e(e){e.exit("blockQuote")}const DB={name:"characterEscape",tokenize:A5e};function A5e(e,r,n){return o;function o(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return C2e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):n(i)}}const PB={name:"characterReference",tokenize:N5e};function N5e(e,r,n){const o=this;let a=0,i,l;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,l=Ro,d(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=S2e,d):(e.enter("characterReferenceValue"),i=7,l=h8,d(p))}function d(p){if(p===59&&a){const f=e.exit("characterReferenceValue");return l===Ro&&!v8(o.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return l(p)&&a++<i?(e.consume(p),d):n(p)}}const $B={partial:!0,tokenize:P5e},MB={concrete:!0,name:"codeFenced",tokenize:D5e};function D5e(e,r,n){const o=this,a={partial:!0,tokenize:R};let i=0,l=0,s;return c;function c(A){return u(A)}function u(A){const D=o.events[o.events.length-1];return i=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===s?(l++,e.consume(A),d):l<3?n(A):(e.exit("codeFencedFenceSequence"),Vt(A)?er(e,p,"whitespace")(A):p(A))}function p(A){return A===null||mt(A)?(e.exit("codeFencedFence"),o.interrupt?r(A):e.check($B,x,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||mt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):Vt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),er(e,g,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),f)}function g(A){return A===null||mt(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===null||mt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(A)):A===96&&A===s?n(A):(e.consume(A),b)}function x(A){return e.attempt(a,T,w)(A)}function w(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),k}function k(A){return i>0&&Vt(A)?er(e,C,"linePrefix",i+1)(A):C(A)}function C(A){return A===null||mt(A)?e.check($B,x,T)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||mt(A)?(e.exit("codeFlowValue"),C(A)):(e.consume(A),_)}function T(A){return e.exit("codeFenced"),r(A)}function R(A,D,N){let $=0;return O;function O(q){return A.enter("lineEnding"),A.consume(q),A.exit("lineEnding"),j}function j(q){return A.enter("codeFencedFence"),Vt(q)?er(A,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):L(q)}function L(q){return q===s?(A.enter("codeFencedFenceSequence"),Y(q)):N(q)}function Y(q){return q===s?($++,A.consume(q),Y):$>=l?(A.exit("codeFencedFenceSequence"),Vt(q)?er(A,M,"whitespace")(q):M(q)):N(q)}function M(q){return q===null||mt(q)?(A.exit("codeFencedFence"),D(q)):N(q)}}}function P5e(e,r,n){const o=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}const E8={name:"codeIndented",tokenize:M5e},$5e={partial:!0,tokenize:O5e};function M5e(e,r,n){const o=this;return a;function a(u){return e.enter("codeIndented"),er(e,i,"linePrefix",5)(u)}function i(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?c(u):mt(u)?e.attempt($5e,l,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||mt(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),r(u)}}function O5e(e,r,n){const o=this;return a;function a(l){return o.parser.lazy[o.now().line]?n(l):mt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):er(e,i,"linePrefix",5)(l)}function i(l){const s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?r(l):mt(l)?a(l):n(l)}}const I5e={name:"codeText",previous:L5e,resolve:z5e,tokenize:B5e};function z5e(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o<r;)if(e[o][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[r][1].type="codeTextPadding",n+=2,r-=2;break}}for(o=n-1,r++;++o<=r;)a===void 0?o!==r&&e[o][1].type!=="lineEnding"&&(a=o):(o===r||e[o][1].type==="lineEnding")&&(e[a][1].type="codeTextData",o!==a+2&&(e[a][1].end=e[o-1][1].end,e.splice(a+2,o-a-2),r-=o-a-2,o=a+2),a=void 0);return e}function L5e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function B5e(e,r,n){let o=0,a,i;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),o++,s):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(i=e.enter("codeTextSequence"),a=0,d(p)):mt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||mt(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),a++,d):a===o?(e.exit("codeTextSequence"),e.exit("codeText"),r(p)):(i.type="codeTextData",u(p))}}class j5e{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,n){const o=n??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(r,o):r>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&K1(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),K1(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),K1(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const n=this.left.splice(r,Number.POSITIVE_INFINITY);K1(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);K1(this.left,n.reverse())}}}function K1(e,r){let n=0;if(r.length<1e4)e.push(...r);else for(;n<r.length;)e.push(...r.slice(n,n+1e4)),n+=1e4}function OB(e){const r={};let n=-1,o,a,i,l,s,c,u;const d=new j5e(e);for(;++n<d.length;){for(;n in r;)n=r[n];if(o=d.get(n),n&&o[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=o[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(o[0]==="enter")o[1].contentType&&(Object.assign(r,F5e(d,n)),n=r[n],u=!0);else if(o[1]._container){for(i=n,a=void 0;i--;)if(l=d.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(o[1].end={...d.get(a)[1].start},s=d.slice(a,n),s.unshift(o),d.splice(a,n-a+1,s))}}return _a(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function F5e(e,r){const n=e.get(r)[1],o=e.get(r)[2];let a=r-1;const i=[];let l=n._tokenizer;l||(l=o.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,c=[],u={};let d,p,f=-1,g=n,b=0,x=0;const w=[x];for(;g;){for(;e.get(++a)[1]!==g;);i.push(a),g._tokenizer||(d=o.sliceStream(g),g.next||d.push(null),p&&l.defineSkip(g.start),g._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(d),g._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),p=g,g=g.next}for(g=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(x=f+1,w.push(x),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(l.events=[],g?(g._tokenizer=void 0,g.previous=void 0):w.pop(),f=w.length;f--;){const k=s.slice(w[f],w[f+1]),C=i.pop();c.push([C,C+k.length-1]),e.splice(C,2,k)}for(c.reverse(),f=-1;++f<c.length;)u[b+c[f][0]]=b+c[f][1],b+=c[f][1]-c[f][0]-1;return u}const H5e={resolve:U5e,tokenize:V5e},q5e={partial:!0,tokenize:Y5e};function U5e(e){return OB(e),e}function V5e(e,r){let n;return o;function o(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):mt(s)?e.check(q5e,l,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),r(s)}function l(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Y5e(e,r,n){const o=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),er(e,i,"linePrefix")}function i(l){if(l===null||mt(l))return n(l);const s=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?r(l):e.interrupt(o.parser.constructs.flow,n,r)(l)}}function IB(e,r,n,o,a,i,l,s,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||D3(k)?n(k):(e.enter(o),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(k))}function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(s),f(k)):k===null||k===60||mt(k)?n(k):(e.consume(k),k===92?b:g)}function b(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function x(k){return!d&&(k===null||k===41||_r(k))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(o),r(k)):d<u&&k===40?(e.consume(k),d++,x):k===41?(e.consume(k),d--,x):k===null||k===32||k===40||D3(k)?n(k):(e.consume(k),k===92?w:x)}function w(k){return k===40||k===41||k===92?(e.consume(k),x):x(k)}}function zB(e,r,n,o,a,i){const l=this;let s=0,c;return u;function u(g){return e.enter(o),e.enter(a),e.consume(g),e.exit(a),e.enter(i),d}function d(g){return s>999||g===null||g===91||g===93&&!c||g===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):mt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||mt(g)||s++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!Vt(g)),g===92?f:p)}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function LB(e,r,n,o,a,i){let l;return s;function s(f){return f===34||f===39||f===40?(e.enter(o),e.enter(a),e.consume(f),e.exit(a),l=f===40?41:f,c):n(f)}function c(f){return f===l?(e.enter(a),e.consume(f),e.exit(a),e.exit(o),r):(e.enter(i),u(f))}function u(f){return f===l?(e.exit(i),c(l)):f===null?n(f):mt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),er(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===l||f===null||mt(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:d)}function p(f){return f===l||f===92?(e.consume(f),d):d(f)}}function Z1(e,r){let n;return o;function o(a){return mt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Vt(a)?er(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const W5e={name:"definition",tokenize:X5e},G5e={partial:!0,tokenize:K5e};function X5e(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),l(g)}function l(g){return zB.call(o,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return a=Vi(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return _r(g)?Z1(e,u)(g):u(g)}function u(g){return IB(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(G5e,p,p)(g)}function p(g){return Vt(g)?er(e,f,"whitespace")(g):f(g)}function f(g){return g===null||mt(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function K5e(e,r,n){return o;function o(s){return _r(s)?Z1(e,a)(s):n(s)}function a(s){return LB(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Vt(s)?er(e,l,"whitespace")(s):l(s)}function l(s){return s===null||mt(s)?r(s):n(s)}}const Z5e={name:"hardBreakEscape",tokenize:Q5e};function Q5e(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return mt(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const J5e={name:"headingAtx",resolve:eke,tokenize:tke};function eke(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},_a(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function tke(e,r,n){let o=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),l(d)}function l(d){return d===35&&o++<6?(e.consume(d),l):d===null||_r(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||mt(d)?(e.exit("atxHeading"),r(d)):Vt(d)?er(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||_r(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const rke=["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"],BB=["pre","script","style","textarea"],nke={concrete:!0,name:"htmlFlow",resolveTo:ike,tokenize:lke},oke={partial:!0,tokenize:cke},ake={partial:!0,tokenize:ske};function ike(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function lke(e,r,n){const o=this;let a,i,l,s,c;return u;function u(B){return d(B)}function d(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),p}function p(B){return B===33?(e.consume(B),f):B===47?(e.consume(B),i=!0,x):B===63?(e.consume(B),a=3,o.interrupt?r:V):Fo(B)?(e.consume(B),l=String.fromCharCode(B),w):n(B)}function f(B){return B===45?(e.consume(B),a=2,g):B===91?(e.consume(B),a=5,s=0,b):Fo(B)?(e.consume(B),a=4,o.interrupt?r:V):n(B)}function g(B){return B===45?(e.consume(B),o.interrupt?r:V):n(B)}function b(B){const W="CDATA[";return B===W.charCodeAt(s++)?(e.consume(B),s===W.length?o.interrupt?r:L:b):n(B)}function x(B){return Fo(B)?(e.consume(B),l=String.fromCharCode(B),w):n(B)}function w(B){if(B===null||B===47||B===62||_r(B)){const W=B===47,Q=l.toLowerCase();return!W&&!i&&BB.includes(Q)?(a=1,o.interrupt?r(B):L(B)):rke.includes(l.toLowerCase())?(a=6,W?(e.consume(B),k):o.interrupt?r(B):L(B)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(B):i?C(B):_(B))}return B===45||Ro(B)?(e.consume(B),l+=String.fromCharCode(B),w):n(B)}function k(B){return B===62?(e.consume(B),o.interrupt?r:L):n(B)}function C(B){return Vt(B)?(e.consume(B),C):O(B)}function _(B){return B===47?(e.consume(B),O):B===58||B===95||Fo(B)?(e.consume(B),T):Vt(B)?(e.consume(B),_):O(B)}function T(B){return B===45||B===46||B===58||B===95||Ro(B)?(e.consume(B),T):R(B)}function R(B){return B===61?(e.consume(B),A):Vt(B)?(e.consume(B),R):_(B)}function A(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),c=B,D):Vt(B)?(e.consume(B),A):N(B)}function D(B){return B===c?(e.consume(B),c=null,$):B===null||mt(B)?n(B):(e.consume(B),D)}function N(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||_r(B)?R(B):(e.consume(B),N)}function $(B){return B===47||B===62||Vt(B)?_(B):n(B)}function O(B){return B===62?(e.consume(B),j):n(B)}function j(B){return B===null||mt(B)?L(B):Vt(B)?(e.consume(B),j):n(B)}function L(B){return B===45&&a===2?(e.consume(B),z):B===60&&a===1?(e.consume(B),H):B===62&&a===4?(e.consume(B),X):B===63&&a===3?(e.consume(B),V):B===93&&a===5?(e.consume(B),K):mt(B)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(oke,Z,Y)(B)):B===null||mt(B)?(e.exit("htmlFlowData"),Y(B)):(e.consume(B),L)}function Y(B){return e.check(ake,M,Z)(B)}function M(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),q}function q(B){return B===null||mt(B)?Y(B):(e.enter("htmlFlowData"),L(B))}function z(B){return B===45?(e.consume(B),V):L(B)}function H(B){return B===47?(e.consume(B),l="",U):L(B)}function U(B){if(B===62){const W=l.toLowerCase();return BB.includes(W)?(e.consume(B),X):L(B)}return Fo(B)&&l.length<8?(e.consume(B),l+=String.fromCharCode(B),U):L(B)}function K(B){return B===93?(e.consume(B),V):L(B)}function V(B){return B===62?(e.consume(B),X):B===45&&a===2?(e.consume(B),V):L(B)}function X(B){return B===null||mt(B)?(e.exit("htmlFlowData"),Z(B)):(e.consume(B),X)}function Z(B){return e.exit("htmlFlow"),r(B)}}function ske(e,r,n){const o=this;return a;function a(l){return mt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}function cke(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(X1,r,n)}}const uke={name:"htmlText",tokenize:dke};function dke(e,r,n){const o=this;let a,i,l;return s;function s(V){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(V),c}function c(V){return V===33?(e.consume(V),u):V===47?(e.consume(V),R):V===63?(e.consume(V),_):Fo(V)?(e.consume(V),N):n(V)}function u(V){return V===45?(e.consume(V),d):V===91?(e.consume(V),i=0,b):Fo(V)?(e.consume(V),C):n(V)}function d(V){return V===45?(e.consume(V),g):n(V)}function p(V){return V===null?n(V):V===45?(e.consume(V),f):mt(V)?(l=p,H(V)):(e.consume(V),p)}function f(V){return V===45?(e.consume(V),g):p(V)}function g(V){return V===62?z(V):V===45?f(V):p(V)}function b(V){const X="CDATA[";return V===X.charCodeAt(i++)?(e.consume(V),i===X.length?x:b):n(V)}function x(V){return V===null?n(V):V===93?(e.consume(V),w):mt(V)?(l=x,H(V)):(e.consume(V),x)}function w(V){return V===93?(e.consume(V),k):x(V)}function k(V){return V===62?z(V):V===93?(e.consume(V),k):x(V)}function C(V){return V===null||V===62?z(V):mt(V)?(l=C,H(V)):(e.consume(V),C)}function _(V){return V===null?n(V):V===63?(e.consume(V),T):mt(V)?(l=_,H(V)):(e.consume(V),_)}function T(V){return V===62?z(V):_(V)}function R(V){return Fo(V)?(e.consume(V),A):n(V)}function A(V){return V===45||Ro(V)?(e.consume(V),A):D(V)}function D(V){return mt(V)?(l=D,H(V)):Vt(V)?(e.consume(V),D):z(V)}function N(V){return V===45||Ro(V)?(e.consume(V),N):V===47||V===62||_r(V)?$(V):n(V)}function $(V){return V===47?(e.consume(V),z):V===58||V===95||Fo(V)?(e.consume(V),O):mt(V)?(l=$,H(V)):Vt(V)?(e.consume(V),$):z(V)}function O(V){return V===45||V===46||V===58||V===95||Ro(V)?(e.consume(V),O):j(V)}function j(V){return V===61?(e.consume(V),L):mt(V)?(l=j,H(V)):Vt(V)?(e.consume(V),j):$(V)}function L(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(e.consume(V),a=V,Y):mt(V)?(l=L,H(V)):Vt(V)?(e.consume(V),L):(e.consume(V),M)}function Y(V){return V===a?(e.consume(V),a=void 0,q):V===null?n(V):mt(V)?(l=Y,H(V)):(e.consume(V),Y)}function M(V){return V===null||V===34||V===39||V===60||V===61||V===96?n(V):V===47||V===62||_r(V)?$(V):(e.consume(V),M)}function q(V){return V===47||V===62||_r(V)?$(V):n(V)}function z(V){return V===62?(e.consume(V),e.exit("htmlTextData"),e.exit("htmlText"),r):n(V)}function H(V){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),U}function U(V){return Vt(V)?er(e,K,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):K(V)}function K(V){return e.enter("htmlTextData"),l(V)}}const S8={name:"labelEnd",resolveAll:mke,resolveTo:gke,tokenize:yke},pke={tokenize:bke},hke={tokenize:vke},fke={tokenize:xke};function mke(e){let r=-1;const n=[];for(;++r<e.length;){const o=e[r][1];if(n.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const a=o.type==="labelImage"?4:2;o.type="data",r+=a}}return e.length!==n.length&&_a(e,0,e.length,n),e}function gke(e,r){let n=e.length,o=0,a,i,l,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){o=2;break}}else a.type==="labelEnd"&&(l=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},d={type:"labelText",start:{...e[i+o+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",c,r],["enter",u,r]],s=oi(s,e.slice(i+1,i+o+3)),s=oi(s,[["enter",d,r]]),s=oi(s,O3(r.parser.constructs.insideSpan.null,e.slice(i+o+4,l-3),r)),s=oi(s,[["exit",d,r],e[l-2],e[l-1],["exit",u,r]]),s=oi(s,e.slice(l+1)),s=oi(s,[["exit",c,r]]),_a(e,i,e.length,s),e}function yke(e,r,n){const o=this;let a=o.events.length,i,l;for(;a--;)if((o.events[a][1].type==="labelImage"||o.events[a][1].type==="labelLink")&&!o.events[a][1]._balanced){i=o.events[a][1];break}return s;function s(f){return i?i._inactive?p(f):(l=o.parser.defined.includes(Vi(o.sliceSerialize({start:i.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),c):n(f)}function c(f){return f===40?e.attempt(pke,d,l?d:p)(f):f===91?e.attempt(hke,d,l?u:p)(f):l?d(f):p(f)}function u(f){return e.attempt(fke,d,p)(f)}function d(f){return r(f)}function p(f){return i._balanced=!0,n(f)}}function bke(e,r,n){return o;function o(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return _r(p)?Z1(e,i)(p):i(p)}function i(p){return p===41?d(p):IB(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return _r(p)?Z1(e,c)(p):d(p)}function s(p){return n(p)}function c(p){return p===34||p===39||p===40?LB(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function u(p){return _r(p)?Z1(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),r):n(p)}}function vke(e,r,n){const o=this;return a;function a(s){return zB.call(o,e,i,l,"reference","referenceMarker","referenceString")(s)}function i(s){return o.parser.defined.includes(Vi(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(s):n(s)}function l(s){return n(s)}}function xke(e,r,n){return o;function o(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),r):n(i)}}const wke={name:"labelStartImage",resolveAll:S8.resolveAll,tokenize:kke};function kke(e,r,n){const o=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):n(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(s):r(s)}}const _ke={name:"labelStartLink",resolveAll:S8.resolveAll,tokenize:Eke};function Eke(e,r,n){const o=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(l):r(l)}}const C8={name:"lineEnding",tokenize:Ske};function Ske(e,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),er(e,r,"linePrefix")}}const I3={name:"thematicBreak",tokenize:Cke};function Cke(e,r,n){let o=0,a;return i;function i(u){return e.enter("thematicBreak"),l(u)}function l(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),c(u)):o>=3&&(u===null||mt(u))?(e.exit("thematicBreak"),r(u)):n(u)}function c(u){return u===a?(e.consume(u),o++,c):(e.exit("thematicBreakSequence"),Vt(u)?er(e,s,"whitespace")(u):s(u))}}const Qo={continuation:{tokenize:Nke},exit:Pke,name:"list",tokenize:Ake},Tke={partial:!0,tokenize:$ke},Rke={partial:!0,tokenize:Dke};function Ake(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return s;function s(g){const b=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:h8(g)){if(o.containerState.type||(o.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(I3,n,u)(g):u(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return h8(g)&&++l<10?(e.consume(g),c):(!o.interrupt||l<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(X1,o.interrupt?n:d,e.attempt(Tke,f,p))}function d(g){return o.containerState.initialBlankLine=!0,i++,f(g)}function p(g){return Vt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),f):n(g)}function f(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function Nke(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(X1,a,i);function a(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,er(e,r,"listItemIndent",o.containerState.size+1)(s)}function i(s){return o.containerState.furtherBlankLines||!Vt(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(Rke,r,l)(s))}function l(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,er(e,e.attempt(Qo,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Dke(e,r,n){const o=this;return er(e,a,"listItemIndent",o.containerState.size+1);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===o.containerState.size?r(i):n(i)}}function Pke(e){e.exit(this.containerState.type)}function $ke(e,r,n){const o=this;return er(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=o.events[o.events.length-1];return!Vt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const jB={name:"setextUnderline",resolveTo:Mke,tokenize:Oke};function Mke(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=l,e.push(["exit",l,r]),e}function Oke(e,r,n){const o=this;let a;return i;function i(u){let d=o.events.length,p;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){p=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||p)?(e.enter("setextHeadingLine"),a=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Vt(u)?er(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||mt(u)?(e.exit("setextHeadingLine"),r(u)):n(u)}}const Ike={tokenize:Uke,partial:!0};function zke(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fke,continuation:{tokenize:Hke},exit:qke}},text:{91:{name:"gfmFootnoteCall",tokenize:jke},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Lke,resolveTo:Bke}}}}function Lke(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let l;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!l||!l._balanced)return n(c);const u=Vi(o.sliceSerialize({start:l.end,end:o.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function Bke(e,r){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",l,r],["exit",l,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...s),e}function jke(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,l;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(i>999||p===93&&!l||p===null||p===91||_r(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Vi(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(p)}return _r(p)||(l=!0),i++,e.consume(p),p===92?d:u}function d(p){return p===91||p===92||p===93?(e.consume(p),i++,u):u(p)}}function Fke(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,l=0,s;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(b)}function d(b){if(l>999||b===93&&!s||b===null||b===91||_r(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=Vi(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return _r(b)||(s=!0),l++,e.consume(b),b===92?p:d}function p(b){return b===91||b===92||b===93?(e.consume(b),l++,d):d(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),er(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return r(b)}}function Hke(e,r,n){return e.check(X1,r,e.attempt(Ike,r,n))}function qke(e){e.exit("gfmFootnoteDefinition")}function Uke(e,r,n){const o=this;return er(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(i):n(i)}}function Vke(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(l,s){let c=-1;for(;++c<l.length;)if(l[c][0]==="enter"&&l[c][1].type==="strikethroughSequenceTemporary"&&l[c][1]._close){let u=c;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[c][1].end.offset-l[c][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[c][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[c][1].end)},p={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[c][1].start)},f=[["enter",d,s],["enter",l[u][1],s],["exit",l[u][1],s],["enter",p,s]],g=s.parser.constructs.insideSpan.null;g&&_a(f,f.length,0,O3(g,l.slice(u+1,c),s)),_a(f,f.length,0,[["exit",p,s],["enter",l[c][1],s],["exit",l[c][1],s],["exit",d,s]]),_a(l,u-1,c-u+3,f),c=u+f.length-2;break}}for(c=-1;++c<l.length;)l[c][1].type==="strikethroughSequenceTemporary"&&(l[c][1].type="data");return l}function i(l,s,c){const u=this.previous,d=this.events;let p=0;return f;function f(b){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(b):(l.enter("strikethroughSequenceTemporary"),g(b))}function g(b){const x=Qh(u);if(b===126)return p>1?c(b):(l.consume(b),p++,g);if(p<2&&!n)return c(b);const w=l.exit("strikethroughSequenceTemporary"),k=Qh(b);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,s(b)}}}class Yke{constructor(){this.map=[]}add(r,n,o){Wke(this,r,n,o)}consume(r){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function Wke(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a<e.map.length;){if(e.map[a][0]===r){e.map[a][1]+=n,e.map[a][2].push(...o);return}a+=1}e.map.push([r,n,o])}}function Gke(e,r){let n=!1;const o=[];for(;r<e.length;){const a=e[r];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&o.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const i=o.length-1;o[i]=o[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);r+=1}return o}function Xke(){return{flow:{null:{name:"table",tokenize:Kke,resolveAll:Zke}}}}function Kke(e,r,n){const o=this;let a=0,i=0,l;return s;function s(O){let j=o.events.length-1;for(;j>-1;){const M=o.events[j][1].type;if(M==="lineEnding"||M==="linePrefix")j--;else break}const L=j>-1?o.events[j][1].type:null,Y=L==="tableHead"||L==="tableRow"?A:c;return Y===A&&o.parser.lazy[o.now().line]?n(O):Y(O)}function c(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(l=!0,i+=1),d(O)}function d(O){return O===null?n(O):mt(O)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Vt(O)?er(e,d,"whitespace")(O):(i+=1,l&&(l=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),l=!0,d):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||_r(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?f:p)}function f(O){return O===92||O===124?(e.consume(O),p):p(O)}function g(O){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(O):(e.enter("tableDelimiterRow"),l=!1,Vt(O)?er(e,b,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):b(O))}function b(O){return O===45||O===58?w(O):O===124?(l=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),x):R(O)}function x(O){return Vt(O)?er(e,w,"whitespace")(O):w(O)}function w(O){return O===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),k):O===45?(i+=1,k(O)):O===null||mt(O)?T(O):R(O)}function k(O){return O===45?(e.enter("tableDelimiterFiller"),C(O)):R(O)}function C(O){return O===45?(e.consume(O),C):O===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Vt(O)?er(e,T,"whitespace")(O):T(O)}function T(O){return O===124?b(O):O===null||mt(O)?!l||a!==i?R(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(O)):R(O)}function R(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||mt(O)?(e.exit("tableRow"),r(O)):Vt(O)?er(e,D,"whitespace")(O):(e.enter("data"),N(O))}function N(O){return O===null||O===124||_r(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?$:N)}function $(O){return O===92||O===124?(e.consume(O),N):N(O)}}function Zke(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],s=!1,c=0,u,d,p;const f=new Yke;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(s=!1,c!==0&&(FB(f,r,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",u,r]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(o=!0,p=void 0,i=[0,0,0,0],l=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},f.add(n,0,[["enter",d,r]])),a=b.type==="tableDelimiterRow"?2:d?3:1):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(o=!1,l[2]===0&&(i[1]!==0&&(l[0]=l[1],p=z3(f,r,i,a,void 0,p),i=[0,0,0,0]),l[2]=n)):b.type==="tableCellDivider"&&(o?o=!1:(i[1]!==0&&(l[0]=l[1],p=z3(f,r,i,a,void 0,p)),i=l,l=[i[1],n,0,0])):b.type==="tableHead"?(s=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,i[1]!==0?(l[0]=l[1],p=z3(f,r,i,a,n,p)):l[1]!==0&&(p=z3(f,r,l,a,n,p)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(l[3]=n)}for(c!==0&&FB(f,r,c,u,d),f.consume(r.events),n=-1;++n<r.events.length;){const g=r.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=Gke(r.events,n))}return e}function z3(e,r,n,o,a,i){const l=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},ef(r.events,n[0])),e.add(n[0],0,[["exit",i,r]]));const c=ef(r.events,n[1]);if(i={type:l,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,r]]),n[2]!==0){const u=ef(r.events,n[2]),d=ef(r.events,n[3]),p={type:s,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",p,r]]),o!==2){const f=r.events[n[2]],g=r.events[n[3]];if(f[1].end=Object.assign({},g[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",p,r]])}return a!==void 0&&(i.end=Object.assign({},ef(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function FB(e,r,n,o,a){const i=[],l=ef(r.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,r])),o.end=Object.assign({},l),i.push(["exit",o,r]),e.add(n+1,0,i)}function ef(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const Qke={name:"tasklistCheck",tokenize:e6e};function Jke(){return{text:{91:Qke}}}function e6e(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return _r(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),l):n(c)}function l(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return mt(c)?r(c):Vt(c)?e.check({tokenize:t6e},r,n)(c):n(c)}}function t6e(e,r,n){return er(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function r6e(e){return xB([p5e(),zke(),Vke(e),Xke(),Jke()])}const n6e={};function o6e(e){const r=this,n=e||n6e,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push(r6e(n)),i.push(i5e()),l.push(l5e(n))}const a6e={tokenize:i6e};function i6e(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),er(e,r,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return mt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),l)}}const l6e={tokenize:s6e},HB={tokenize:c6e};function s6e(e){const r=this,n=[];let o=0,a,i,l;return s;function s(_){if(o<n.length){const T=n[o];return r.containerState=T[1],e.attempt(T[0].continuation,c,u)(_)}return u(_)}function c(_){if(o++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,a&&C();const T=r.events.length;let R=T,A;for(;R--;)if(r.events[R][0]==="exit"&&r.events[R][1].type==="chunkFlow"){A=r.events[R][1].end;break}k(o);let D=T;for(;D<r.events.length;)r.events[D][1].end={...A},D++;return _a(r.events,R+1,0,r.events.slice(T)),r.events.length=D,u(_)}return s(_)}function u(_){if(o===n.length){if(!a)return f(_);if(a.currentConstruct&&a.currentConstruct.concrete)return b(_);r.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(HB,d,p)(_)}function d(_){return a&&C(),k(o),f(_)}function p(_){return r.parser.lazy[r.now().line]=o!==n.length,l=r.now().offset,b(_)}function f(_){return r.containerState={},e.attempt(HB,g,b)(_)}function g(_){return o++,n.push([r.currentConstruct,r.containerState]),f(_)}function b(_){if(_===null){a&&C(),k(0),e.consume(_);return}return a=a||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),x(_)}function x(_){if(_===null){w(e.exit("chunkFlow"),!0),k(0),e.consume(_);return}return mt(_)?(e.consume(_),w(e.exit("chunkFlow")),o=0,r.interrupt=void 0,s):(e.consume(_),x)}function w(_,T){const R=r.sliceStream(_);if(T&&R.push(null),_.previous=i,i&&(i.next=_),i=_,a.defineSkip(_.start),a.write(R),r.parser.lazy[_.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<l&&(!a.events[A][1].end||a.events[A][1].end.offset>l))return;const D=r.events.length;let N=D,$,O;for(;N--;)if(r.events[N][0]==="exit"&&r.events[N][1].type==="chunkFlow"){if($){O=r.events[N][1].end;break}$=!0}for(k(o),A=D;A<r.events.length;)r.events[A][1].end={...O},A++;_a(r.events,N+1,0,r.events.slice(D)),r.events.length=A}}function k(_){let T=n.length;for(;T-- >_;){const R=n[T];r.containerState=R[1],R[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function c6e(e,r,n){return er(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const u6e={tokenize:d6e};function d6e(e){const r=this,n=e.attempt(X1,o,e.attempt(this.parser.constructs.flowInitial,a,er(e,e.attempt(this.parser.constructs.flow,a,e.attempt(H5e,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const p6e={resolveAll:UB()},h6e=qB("string"),f6e=qB("text");function qB(e){return{resolveAll:UB(e==="text"?m6e:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,l,s);return l;function l(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=a[d];let f=-1;if(p)for(;++f<p.length;){const g=p[f];if(!g.previous||g.previous.call(o,o.previous))return!0}return!1}}}function UB(e){return r;function r(n,o){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,o):n}}function m6e(e,r){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const o=e[n-1][1],a=r.sliceStream(o);let i=a.length,l=-1,s=0,c;for(;i--;){const u=a[i];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(u===-2)c=!0,s++;else if(u!==-1){i++;break}}if(r._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:o.start._bufferIndex+l,_index:o.start._index+i,line:o.end.line,column:o.end.column-s,offset:o.end.offset-s},end:{...o.end}};o.end={...u.start},o.start.offset===o.end.offset?Object.assign(o,u):(e.splice(n,0,["enter",u,r],["exit",u,r]),n+=2)}n++}return e}const g6e={__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:W5e},disable:{null:[]},document:{42:Qo,43:Qo,45:Qo,48:Qo,49:Qo,50:Qo,51:Qo,52:Qo,53:Qo,54:Qo,55:Qo,56:Qo,57:Qo,62:NB},flow:{35:J5e,42:I3,45:[jB,I3],60:nke,61:jB,95:I3,96:MB,126:MB},flowInitial:{[-2]:E8,[-1]:E8,32:E8},insideSpan:{null:[_8,p6e]},string:{38:PB,92:DB},text:{[-5]:C8,[-4]:C8,[-3]:C8,33:wke,38:PB,42:_8,60:[_5e,uke],91:_ke,92:[Z5e,DB],93:S8,95:_8,96:I5e}};function y6e(e,r,n){let o={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let l=[],s=[];const c={attempt:D(R),check:D(A),consume:C,enter:_,exit:T,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:b,parser:e,previous:null,sliceSerialize:f,sliceStream:g,write:p};let d=r.tokenize.call(u,c);return r.resolveAll&&i.push(r),u;function p(j){return l=oi(l,j),w(),l[l.length-1]!==null?[]:(N(r,0),u.events=O3(i,u.events,u),u.events)}function f(j,L){return v6e(g(j),L)}function g(j){return b6e(l,j)}function b(){const{_bufferIndex:j,_index:L,line:Y,column:M,offset:q}=o;return{_bufferIndex:j,_index:L,line:Y,column:M,offset:q}}function x(j){a[j.line]=j.column,O()}function w(){let j;for(;o._index<l.length;){const L=l[o._index];if(typeof L=="string")for(j=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===j&&o._bufferIndex<L.length;)k(L.charCodeAt(o._bufferIndex));else k(L)}}function k(j){d=d(j)}function C(j){mt(j)?(o.line++,o.column=1,o.offset+=j===-3?2:1,O()):j!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===l[o._index].length&&(o._bufferIndex=-1,o._index++)),u.previous=j}function _(j,L){const Y=L||{};return Y.type=j,Y.start=b(),u.events.push(["enter",Y,u]),s.push(Y),Y}function T(j){const L=s.pop();return L.end=b(),u.events.push(["exit",L,u]),L}function R(j,L){N(j,L.from)}function A(j,L){L.restore()}function D(j,L){return Y;function Y(M,q,z){let H,U,K,V;return Array.isArray(M)?Z(M):"tokenize"in M?Z([M]):X(M);function X(J){return ne;function ne(te){const ee=te!==null&&J[te],pe=te!==null&&J.null,Te=[...Array.isArray(ee)?ee:ee?[ee]:[],...Array.isArray(pe)?pe:pe?[pe]:[]];return Z(Te)(te)}}function Z(J){return H=J,U=0,J.length===0?z:B(J[U])}function B(J){return ne;function ne(te){return V=$(),K=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?Q():J.tokenize.call(L?Object.assign(Object.create(u),L):u,c,W,Q)(te)}}function W(J){return j(K,V),q}function Q(J){return V.restore(),++U<H.length?B(H[U]):z}}}function N(j,L){j.resolveAll&&!i.includes(j)&&i.push(j),j.resolve&&_a(u.events,L,u.events.length-L,j.resolve(u.events.slice(L),u)),j.resolveTo&&(u.events=j.resolveTo(u.events,u))}function $(){const j=b(),L=u.previous,Y=u.currentConstruct,M=u.events.length,q=Array.from(s);return{from:M,restore:z};function z(){o=j,u.previous=L,u.currentConstruct=Y,u.events.length=M,s=q,O()}}function O(){o.line in a&&o.column<2&&(o.column=a[o.line],o.offset+=a[o.line]-1)}}function b6e(e,r){const n=r.start._index,o=r.start._bufferIndex,a=r.end._index,i=r.end._bufferIndex;let l;if(n===a)l=[e[n].slice(o,i)];else{if(l=e.slice(n,a),o>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(o):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function v6e(e,r){let n=-1;const o=[];let a;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=r?" ":"	";break}case-1:{if(!r&&a)continue;l=" ";break}default:l=String.fromCharCode(i)}a=i===-2,o.push(l)}return o.join("")}function x6e(e){const o={constructs:xB([g6e,...(e||{}).extensions||[]]),content:a(a6e),defined:[],document:a(l6e),flow:a(u6e),lazy:{},string:a(h6e),text:a(f6e)};return o;function a(i){return l;function l(s){return y6e(o,i,s)}}}function w6e(e){for(;!OB(e););return e}const VB=/[\0\t\n\r]/g;function k6e(){let e=1,r="",n=!0,o;return a;function a(i,l,s){const c=[];let u,d,p,f,g;for(i=r+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),p=0,r="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(VB.lastIndex=p,u=VB.exec(i),f=u&&u.index!==void 0?u.index:i.length,g=i.charCodeAt(f),!u){r=i.slice(p);break}if(g===10&&p===f&&o)c.push(-3),o=void 0;else switch(o&&(c.push(-5),o=void 0),p<f&&(c.push(i.slice(p,f)),e+=f-p),g){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:o=!0,e=1}p=f+1}return s&&(o&&c.push(-5),r&&c.push(r),c.push(null)),c}}function Q1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?YB(e.position):"start"in e||"end"in e?YB(e):"line"in e||"column"in e?T8(e):""}function T8(e){return WB(e&&e.line)+":"+WB(e&&e.column)}function YB(e){return T8(e&&e.start)+"-"+T8(e&&e.end)}function WB(e){return e&&typeof e=="number"?e:1}const GB={}.hasOwnProperty;function XB(e,r,n){return typeof r!="string"&&(n=r,r=void 0),_6e(n)(w6e(x6e(n).document().write(k6e()(e,r,!0))))}function _6e(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ze),autolinkProtocol:$,autolinkEmail:$,atxHeading:i(De),blockQuote:i(pe),characterEscape:$,characterReference:$,codeFenced:i(Te),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(Te,l),codeText:i(ce,l),codeTextData:$,data:$,codeFlowValue:$,definition:i(de),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(xe),hardBreakEscape:i(Ge),hardBreakTrailing:i(Ge),htmlFlow:i(et,l),htmlFlowData:$,htmlText:i(et,l),htmlTextData:$,image:i(ft),label:l,link:i(Ze),listItem:i(Xe),listItemValue:f,listOrdered:i(Et,p),listUnordered:i(Et),paragraph:i(We),reference:B,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(De),strong:i(st),thematicBreak:i(zn)},exit:{atxHeading:c(),atxHeadingSequence:R,autolink:c(),autolinkEmail:ee,autolinkProtocol:te,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:J,characterReference:ne,codeFenced:c(w),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:O,codeIndented:c(k),codeText:c(q),codeTextData:O,data:O,definition:c(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:_,emphasis:c(),hardBreakEscape:c(L),hardBreakTrailing:c(L),htmlFlow:c(Y),htmlFlowData:O,htmlText:c(M),htmlTextData:O,image:c(H),label:K,labelText:U,lineEnding:j,link:c(z),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:W,resourceDestinationString:V,resourceTitleString:X,resource:Z,setextHeading:c(N),setextHeadingLineSequence:D,setextHeadingText:A,strong:c(),thematicBreak:c()}};KB(r,(e||{}).mdastExtensions||[]);const n={};return o;function o(we){let _e={type:"root",children:[]};const at={stack:[_e],tokenStack:[],config:r,enter:s,exit:u,buffer:l,resume:d,data:n},vt=[];let Ct=-1;for(;++Ct<we.length;)if(we[Ct][1].type==="listOrdered"||we[Ct][1].type==="listUnordered")if(we[Ct][0]==="enter")vt.push(Ct);else{const Zr=vt.pop();Ct=a(we,Zr,Ct)}for(Ct=-1;++Ct<we.length;){const Zr=r[we[Ct][0]];GB.call(Zr,we[Ct][1].type)&&Zr[we[Ct][1].type].call(Object.assign({sliceSerialize:we[Ct][2].sliceSerialize},at),we[Ct][1])}if(at.tokenStack.length>0){const Zr=at.tokenStack[at.tokenStack.length-1];(Zr[1]||ZB).call(at,void 0,Zr[0])}for(_e.position={start:lu(we.length>0?we[0][1].start:{line:1,column:1,offset:0}),end:lu(we.length>0?we[we.length-2][1].end:{line:1,column:1,offset:0})},Ct=-1;++Ct<r.transforms.length;)_e=r.transforms[Ct](_e)||_e;return _e}function a(we,_e,at){let vt=_e-1,Ct=-1,Zr=!1,Pt,Sr,Pr,fn;for(;++vt<=at;){const ar=we[vt];switch(ar[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ar[0]==="enter"?Ct++:Ct--,fn=void 0;break}case"lineEndingBlank":{ar[0]==="enter"&&(Pt&&!fn&&!Ct&&!Pr&&(Pr=vt),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!Ct&&ar[0]==="enter"&&ar[1].type==="listItemPrefix"||Ct===-1&&ar[0]==="exit"&&(ar[1].type==="listUnordered"||ar[1].type==="listOrdered")){if(Pt){let ha=vt;for(Sr=void 0;ha--;){const hr=we[ha];if(hr[1].type==="lineEnding"||hr[1].type==="lineEndingBlank"){if(hr[0]==="exit")continue;Sr&&(we[Sr][1].type="lineEndingBlank",Zr=!0),hr[1].type="lineEnding",Sr=ha}else if(!(hr[1].type==="linePrefix"||hr[1].type==="blockQuotePrefix"||hr[1].type==="blockQuotePrefixWhitespace"||hr[1].type==="blockQuoteMarker"||hr[1].type==="listItemIndent"))break}Pr&&(!Sr||Pr<Sr)&&(Pt._spread=!0),Pt.end=Object.assign({},Sr?we[Sr][1].start:ar[1].end),we.splice(Sr||vt,0,["exit",Pt,ar[2]]),vt++,at++}if(ar[1].type==="listItemPrefix"){const ha={type:"listItem",_spread:!1,start:Object.assign({},ar[1].start),end:void 0};Pt=ha,we.splice(vt,0,["enter",ha,ar[2]]),vt++,at++,Pr=void 0,fn=!0}}}return we[_e][1]._spread=Zr,at}function i(we,_e){return at;function at(vt){s.call(this,we(vt),vt),_e&&_e.call(this,vt)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(we,_e,at){this.stack[this.stack.length-1].children.push(we),this.stack.push(we),this.tokenStack.push([_e,at||void 0]),we.position={start:lu(_e.start),end:void 0}}function c(we){return _e;function _e(at){we&&we.call(this,at),u.call(this,at)}}function u(we,_e){const at=this.stack.pop(),vt=this.tokenStack.pop();if(vt)vt[0].type!==we.type&&(_e?_e.call(this,we,vt[0]):(vt[1]||ZB).call(this,we,vt[0]));else throw new Error("Cannot close `"+we.type+"` ("+Q1({start:we.start,end:we.end})+"): it’s not open");at.position.end=lu(we.end)}function d(){return M3(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(we){if(this.data.expectingFirstListItemValue){const _e=this.stack[this.stack.length-2];_e.start=Number.parseInt(this.sliceSerialize(we),10),this.data.expectingFirstListItemValue=void 0}}function g(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.lang=we}function b(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.meta=we}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.value=we.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.value=we.replace(/(\r?\n|\r)$/g,"")}function C(we){const _e=this.resume(),at=this.stack[this.stack.length-1];at.label=_e,at.identifier=Vi(this.sliceSerialize(we)).toLowerCase()}function _(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.title=we}function T(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.url=we}function R(we){const _e=this.stack[this.stack.length-1];if(!_e.depth){const at=this.sliceSerialize(we).length;_e.depth=at}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(we){const _e=this.stack[this.stack.length-1];_e.depth=this.sliceSerialize(we).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function $(we){const at=this.stack[this.stack.length-1].children;let vt=at[at.length-1];(!vt||vt.type!=="text")&&(vt=ct(),vt.position={start:lu(we.start),end:void 0},at.push(vt)),this.stack.push(vt)}function O(we){const _e=this.stack.pop();_e.value+=this.sliceSerialize(we),_e.position.end=lu(we.end)}function j(we){const _e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const at=_e.children[_e.children.length-1];at.position.end=lu(we.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(_e.type)&&($.call(this,we),O.call(this,we))}function L(){this.data.atHardBreak=!0}function Y(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.value=we}function M(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.value=we}function q(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.value=we}function z(){const we=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";we.type+="Reference",we.referenceType=_e,delete we.url,delete we.title}else delete we.identifier,delete we.label;this.data.referenceType=void 0}function H(){const we=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";we.type+="Reference",we.referenceType=_e,delete we.url,delete we.title}else delete we.identifier,delete we.label;this.data.referenceType=void 0}function U(we){const _e=this.sliceSerialize(we),at=this.stack[this.stack.length-2];at.label=W4e(_e),at.identifier=Vi(_e).toLowerCase()}function K(){const we=this.stack[this.stack.length-1],_e=this.resume(),at=this.stack[this.stack.length-1];if(this.data.inReference=!0,at.type==="link"){const vt=we.children;at.children=vt}else at.alt=_e}function V(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.url=we}function X(){const we=this.resume(),_e=this.stack[this.stack.length-1];_e.title=we}function Z(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function W(we){const _e=this.resume(),at=this.stack[this.stack.length-1];at.label=_e,at.identifier=Vi(this.sliceSerialize(we)).toLowerCase(),this.data.referenceType="full"}function Q(we){this.data.characterReferenceType=we.type}function J(we){const _e=this.sliceSerialize(we),at=this.data.characterReferenceType;let vt;at?(vt=gB(_e,at==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):vt=v8(_e);const Ct=this.stack[this.stack.length-1];Ct.value+=vt}function ne(we){const _e=this.stack.pop();_e.position.end=lu(we.end)}function te(we){O.call(this,we);const _e=this.stack[this.stack.length-1];_e.url=this.sliceSerialize(we)}function ee(we){O.call(this,we);const _e=this.stack[this.stack.length-1];_e.url="mailto:"+this.sliceSerialize(we)}function pe(){return{type:"blockquote",children:[]}}function Te(){return{type:"code",lang:null,meta:null,value:""}}function ce(){return{type:"inlineCode",value:""}}function de(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xe(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ge(){return{type:"break"}}function et(){return{type:"html",value:""}}function ft(){return{type:"image",title:null,url:"",alt:null}}function Ze(){return{type:"link",title:null,url:"",children:[]}}function Et(we){return{type:"list",ordered:we.type==="listOrdered",start:null,spread:we._spread,children:[]}}function Xe(we){return{type:"listItem",spread:we._spread,checked:null,children:[]}}function We(){return{type:"paragraph",children:[]}}function st(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function zn(){return{type:"thematicBreak"}}}function lu(e){return{line:e.line,column:e.column,offset:e.offset}}function KB(e,r){let n=-1;for(;++n<r.length;){const o=r[n];Array.isArray(o)?KB(e,o):E6e(e,o)}}function E6e(e,r){let n;for(n in r)if(GB.call(r,n))switch(n){case"canContainEols":{const o=r[n];o&&e[n].push(...o);break}case"transforms":{const o=r[n];o&&e[n].push(...o);break}case"enter":case"exit":{const o=r[n];o&&Object.assign(e[n],o);break}}}function ZB(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Q1({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Q1({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Q1({start:r.start,end:r.end})+") is still open")}function S6e(e){const r=this;r.parser=n;function n(o){return XB(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function C6e(e,r){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,n),e.applyData(r,n)}function T6e(e,r){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,n),[e.applyData(r,n),{type:"text",value:`
`}]}function R6e(e,r){const n=r.value?r.value+`
`:"",o={};r.lang&&(o.className=["language-"+r.lang]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return r.meta&&(a.data={meta:r.meta}),e.patch(r,a),a=e.applyData(r,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(r,a),a}function A6e(e,r){const n={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function N6e(e,r){const n={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function D6e(e,r){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),a=Jh(o.toLowerCase()),i=e.footnoteOrder.indexOf(o);let l,s=e.footnoteCounts.get(o);s===void 0?(s=0,e.footnoteOrder.push(o),l=e.footnoteOrder.length):l=i+1,s+=1,e.footnoteCounts.set(o,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(r,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,u),e.applyData(r,u)}function P6e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function $6e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function QB(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=o:a.push({type:"text",value:o}),a}function M6e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return QB(e,r);const a={src:Jh(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function O6e(e,r){const n={src:Jh(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function I6e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function z6e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return QB(e,r);const a={href:Jh(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function L6e(e,r){const n={href:Jh(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function B6e(e,r,n){const o=e.all(r),a=n?j6e(n):JB(r),i={},l=[];if(typeof r.checked=="boolean"){const d=o[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},o.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<o.length;){const d=o[s];(a||s!==0||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
`}),d.type==="element"&&d.tagName==="p"&&!a?l.push(...d.children):l.push(d)}const c=o[o.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:i,children:l};return e.patch(r,u),e.applyData(r,u)}function j6e(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const n=e.children;let o=-1;for(;!r&&++o<n.length;)r=JB(n[o])}return r}function JB(e){const r=e.spread;return r??e.children.length>1}function F6e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a<o.length;){const l=o[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:r.ordered?"ol":"ul",properties:n,children:e.wrap(o,!0)};return e.patch(r,i),e.applyData(r,i)}function H6e(e,r){const n={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function q6e(e,r){const n={type:"root",children:e.wrap(e.all(r))};return e.patch(r,n),e.applyData(r,n)}function U6e(e,r){const n={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function V6e(e,r){const n=e.all(r),o=n.shift(),a=[];if(o){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(r.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=js(r.children[1]),c=S3(r.children[r.children.length-1]);s&&c&&(l.position={start:s,end:c}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function Y6e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:r.children.length;let c=-1;const u=[];for(;++c<s;){const p=r.children[c],f={},g=l?l[c]:void 0;g&&(f.align=g);let b={type:"element",tagName:i,properties:f,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),u.push(b)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(r,d),e.applyData(r,d)}function W6e(e,r){const n={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}const ej=9,tj=32;function G6e(e){const r=String(e),n=/\r?\n|\r/g;let o=n.exec(r),a=0;const i=[];for(;o;)i.push(rj(r.slice(a,o.index),a>0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(rj(r.slice(a),a>0,!1)),i.join("")}function rj(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===ej||i===tj;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===ej||i===tj;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function X6e(e,r){const n={type:"text",value:G6e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function K6e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const Z6e={blockquote:C6e,break:T6e,code:R6e,delete:A6e,emphasis:N6e,footnoteReference:D6e,heading:P6e,html:$6e,imageReference:M6e,image:O6e,inlineCode:I6e,linkReference:z6e,link:L6e,listItem:B6e,list:F6e,paragraph:H6e,root:q6e,strong:U6e,table:V6e,tableCell:W6e,tableRow:Y6e,text:X6e,thematicBreak:K6e,toml:L3,yaml:L3,definition:L3,footnoteDefinition:L3};function L3(){}function Q6e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function J6e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function e_e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Q6e,o=e.options.footnoteBackLabel||J6e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),p=String(u.identifier).toUpperCase(),f=Jh(p.toLowerCase());let g=0;const b=[],x=e.footnoteCounts.get(p);for(;x!==void 0&&++g<=x;){b.length>0&&b.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),b.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+f+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else d.push(...b);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,k),s.push(k)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Dd(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
`}]}}const R8={}.hasOwnProperty,t_e={};function r_e(e,r){const n=r||t_e,o=new Map,a=new Map,i=new Map,l={...Z6e,...n.handlers},s={all:u,applyData:o_e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:n_e,wrap:i_e};return l8(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?o:a,f=String(d.identifier).toUpperCase();p.has(f)||p.set(f,d)}}),s;function c(d,p){const f=d.type,g=s.handlers[f];if(R8.call(s.handlers,f)&&g)return g(s,d,p);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:x,...w}=d,k=Dd(w);return k.children=s.all(d),k}return Dd(d)}return(s.options.unknownHandler||a_e)(s,d,p)}function u(d){const p=[];if("children"in d){const f=d.children;let g=-1;for(;++g<f.length;){const b=s.one(f[g],d);if(b){if(g&&f[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=nj(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=nj(x.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function n_e(e,r){e.position&&(r.position=CL(e))}function o_e(e,r){let n=r;if(e&&e.data){const o=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof o=="string")if(n.type==="element")n.tagName=o;else{const l="children"in n?n.children:[n];n={type:"element",tagName:o,properties:{},children:l}}n.type==="element"&&i&&Object.assign(n.properties,Dd(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function a_e(e,r){const n=r.data||{},o="value"in r&&!(R8.call(n,"hProperties")||R8.call(n,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function i_e(e,r){const n=[];let o=-1;for(r&&n.push({type:"text",value:`
`});++o<e.length;)o&&n.push({type:"text",value:`
`}),n.push(e[o]);return r&&e.length>0&&n.push({type:"text",value:`
`}),n}function nj(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function oj(e,r){const n=r_e(e,r),o=n.one(e,void 0),a=e_e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
`},a),i}function l_e(e,r){return e&&"run"in e?async function(n,o){const a=oj(n,{file:o,...r});await e.run(a,o)}:function(n,o){return oj(n,{file:o,...e||r})}}function aj(e){if(e)throw e}var A8,ij;function s_e(){if(ij)return A8;ij=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},i=function(u){if(!u||r.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},l=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},s=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(o)return o(u,d).value}else return;return u[d]};return A8=function c(){var u,d,p,f,g,b,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<k;++w)if(u=arguments[w],u!=null)for(d in u)p=s(x,d),f=s(u,d),x!==f&&(C&&f&&(i(f)||(g=a(f)))?(g?(g=!1,b=p&&a(p)?p:[]):b=p&&i(p)?p:{},l(x,{name:d,newValue:c(C,b,f)})):typeof f<"u"&&l(x,{name:d,newValue:f}));return x},A8}var c_e=s_e();const N8=o3(c_e);function D8(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function u_e(){const e=[],r={run:n,use:o};return r;function n(...a){let i=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...a);function s(c,...u){const d=e[++i];let p=-1;if(c){l(c);return}for(;++p<a.length;)(u[p]===null||u[p]===void 0)&&(u[p]=a[p]);a=u,d?d_e(d,s)(...u):l(null,...u)}}function o(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),r}}function d_e(e,r){let n;return o;function o(...l){const s=e.length>l.length;let c;s&&l.push(a);try{c=e.apply(this,l)}catch(u){const d=u;if(s&&n)throw d;return a(d)}s||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(l,...s){n||(n=!0,r(l,...s))}function i(l){a(null,l)}}let Jo=class extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(l=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=Q1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Jo.prototype.file="",Jo.prototype.name="",Jo.prototype.reason="",Jo.prototype.message="",Jo.prototype.stack="",Jo.prototype.column=void 0,Jo.prototype.line=void 0,Jo.prototype.ancestors=void 0,Jo.prototype.cause=void 0,Jo.prototype.fatal=void 0,Jo.prototype.place=void 0,Jo.prototype.ruleId=void 0,Jo.prototype.source=void 0;const Kl={basename:p_e,dirname:h_e,extname:f_e,join:m_e,sep:"/"};function p_e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');J1(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let l=-1,s=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),s>-1&&(e.codePointAt(a)===r.codePointAt(s--)?s<0&&(o=a):(s=-1,o=l));return n===o?o=l:o<0&&(o=e.length),e.slice(n,o)}function h_e(e){if(J1(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function f_e(e){J1(e);let r=e.length,n=-1,o=0,a=-1,i=0,l;for(;r--;){const s=e.codePointAt(r);if(s===47){if(l){o=r+1;break}continue}n<0&&(l=!0,n=r+1),s===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function m_e(...e){let r=-1,n;for(;++r<e.length;)J1(e[r]),e[r]&&(n=n===void 0?e[r]:n+"/"+e[r]);return n===void 0?".":g_e(n)}function g_e(e){J1(e);const r=e.codePointAt(0)===47;let n=y_e(e,!r);return n.length===0&&!r&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function y_e(e,r){let n="",o=0,a=-1,i=0,l=-1,s,c;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(a===l-1||i===1))if(a!==l-1&&i===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",o=0,a=l,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else s===46&&i>-1?i++:i=-1}return n}function J1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b_e={cwd:v_e};function v_e(){return"/"}function P8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function x_e(e){if(typeof e=="string")e=new URL(e);else if(!P8(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return w_e(e)}function w_e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n<r.length;)if(r.codePointAt(n)===37&&r.codePointAt(n+1)===50){const o=r.codePointAt(n+2);if(o===70||o===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(r)}const $8=["history","path","basename","stem","extname","dirname"];let k_e=class{constructor(r){let n;r?P8(r)?n={path:r}:typeof r=="string"||__e(r)?n={value:r}:n=r:n={},this.cwd="cwd"in n?"":b_e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<$8.length;){const i=$8[o];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)$8.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Kl.basename(this.path):void 0}set basename(r){O8(r,"basename"),M8(r,"basename"),this.path=Kl.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Kl.dirname(this.path):void 0}set dirname(r){lj(this.basename,"dirname"),this.path=Kl.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Kl.extname(this.path):void 0}set extname(r){if(M8(r,"extname"),lj(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Kl.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){P8(r)&&(r=x_e(r)),O8(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Kl.basename(this.path,this.extname):void 0}set stem(r){O8(r,"stem"),M8(r,"stem"),this.path=Kl.join(this.dirname||"",r+(this.extname||""))}fail(r,n,o){const a=this.message(r,n,o);throw a.fatal=!0,a}info(r,n,o){const a=this.message(r,n,o);return a.fatal=void 0,a}message(r,n,o){const a=new Jo(r,n,o);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}};function M8(e,r){if(e&&e.includes(Kl.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Kl.sep+"`")}function O8(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function lj(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function __e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const E_e=(function(e){const o=this.constructor.prototype,a=o[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,o),i}),S_e={}.hasOwnProperty;let C_e=class V1e extends E_e{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=u_e()}copy(){const r=new V1e;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];r.use(...o)}return r.data(N8(!0,{},this.namespace)),r}data(r,n){return typeof r=="string"?arguments.length===2?(L8("data",this.frozen),this.namespace[r]=n,this):S_e.call(this.namespace,r)&&this.namespace[r]||void 0:r?(L8("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const a=n.call(r,...o);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const n=B3(r),o=this.parser||this.Parser;return I8("parse",o),o(String(n),n)}process(r,n){const o=this;return this.freeze(),I8("process",this.parser||this.Parser),z8("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const s=B3(r),c=o.parse(s);o.run(c,s,function(d,p,f){if(d||!p||!f)return u(d);const g=p,b=o.stringify(g,f);A_e(b)?f.value=b:f.result=b,u(d,f)});function u(d,p){d||!p?l(d):i?i(p):n(void 0,p)}}}processSync(r){let n=!1,o;return this.freeze(),I8("processSync",this.parser||this.Parser),z8("processSync",this.compiler||this.Compiler),this.process(r,a),cj("processSync","process",n),o;function a(i,l){n=!0,aj(i),o=l}}run(r,n,o){sj(r),this.freeze();const a=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?i(void 0,o):new Promise(i);function i(l,s){const c=B3(n);a.run(r,c,u);function u(d,p,f){const g=p||r;d?s(d):l?l(g):o(void 0,g,f)}}}runSync(r,n){let o=!1,a;return this.run(r,n,i),cj("runSync","run",o),a;function i(l,s){aj(l),a=s,o=!0}}stringify(r,n){this.freeze();const o=B3(n),a=this.compiler||this.Compiler;return z8("stringify",a),sj(r),a(r,o)}use(r,...n){const o=this.attachers,a=this.namespace;if(L8("use",this.frozen),r!=null)if(typeof r=="function")c(r,n);else if(typeof r=="object")Array.isArray(r)?s(r):l(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...p]=u;c(d,p)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(a.settings=N8(!0,a.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const p=u[d];i(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let p=-1,f=-1;for(;++p<o.length;)if(o[p][0]===u){f=p;break}if(f===-1)o.push([u,...d]);else if(d.length>0){let[g,...b]=d;const x=o[f][1];D8(x)&&D8(g)&&(g=N8(!0,x,g)),o[f]=[u,g,...b]}}}};const T_e=new C_e().freeze();function I8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function z8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function L8(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sj(e){if(!D8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cj(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function B3(e){return R_e(e)?e:new k_e(e)}function R_e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function A_e(e){return typeof e=="string"||N_e(e)}function N_e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function D_e(){return T_e().use(S6e).use(o6e).use(l_e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(cwe).use(vwe).use(_2e,{closeSelfClosing:!0,tightSelfClosing:!0})}function P_e(e){return String(D_e().processSync(e.trim())).trim()}function $_e(e){return M3(XB(e),{includeHtml:!1,includeImageAlt:!1})}function M_e(...e){return xa(O_e,e)}function O_e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function e0(e){return M_e(e,r=>r===void 0)}const I_e=Symbol.for("text"),z_e=Symbol.for("html"),Zl="";class Zt{static _cache=new WeakMap;static memoize(r,n,o){return pr(r,n,()=>Zt.from(o))}static from(r){if(r==null||r===Zt.EMPTY)return Zt.EMPTY;if(r instanceof Zt)return r;if(typeof r=="string")return r.trim()===Zl?Zt.EMPTY:new Zt({txt:r});if("isEmpty"in r&&r.isEmpty||"md"in r&&r.md.trim()===Zl||"txt"in r&&r.txt.trim()===Zl)return Zt.EMPTY;const n=r,o=Zt._cache.get(n);if(o)return o;const a=new Zt(n);return Zt._cache.set(n,a),a}static EMPTY=new class extends Zt{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Zl})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===Zl):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Zl,this.isMarkdown=!0):this.isEmpty=r.txt===Zl),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Zl;const r=this.$source;return"txt"in r?r.txt:pr(this,I_e,()=>$_e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Zl;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Ja(r)}get html(){if(this.isEmpty||this.$source===null)return Zl;const r=this.$source;return"txt"in r?r.txt:pr(this,z_e,()=>P_e(r.md))}equals(r){return this===r?!0:r instanceof Zt?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}function uj(e){return r=>!e(r)}function L_e(...e){return xa(B_e,e)}const B_e=(e,r)=>r.every(n=>n(e));function j_e(...e){return xa(F_e,e)}const F_e=(e,r)=>r.some(n=>n(e));function H_e(e){return e==null}function dj(e,r){return e[t0]===r}const t0="_stage",r0="_type";function q_e(e){return Ls(e.kind)&&!Ls(e.element)}function U_e(e){return"tag"in e}function V_e(e){return"kind"in e}function Y_e(e){return"participant"in e}function W_e(e){return"not"in e}function G_e(e){return"and"in e}function X_e(e){return"or"in e}function jd(e){switch(!0){case Y_e(e):{const r=e.participant,n=jd(e.operator);return K_e(r,n)}case U_e(e):{if(eu(e.tag)||"eq"in e.tag){const n=eu(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case V_e(e):{if(eu(e.kind)||"eq"in e.kind){const n=eu(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>H_e(n.kind)||n.kind!==r}case W_e(e):{const r=jd(e.not);return uj(r)}case G_e(e):{const r=e.and.map(jd);return L_e(r)}case X_e(e):{const r=e.or.map(jd);return j_e(r)}default:Ja(e)}}function K_e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}var n0;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(eu(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return GI(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function l(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=l;function s(c){return l(c)||i(c)}e.isDeploymentRef=s})(n0||(n0={}));function B8(e){return A1(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var su;(e=>{function r({x:s,y:c,width:u,height:d}){return{x:s+u/2,y:c+d/2}}e.center=r;function n(s){const{x1:c,y1:u,x2:d,y2:p}=j8.fromPoints(s);return{x:c,y:u,width:d-c,height:p-u}}e.fromPoints=n;function o(...s){if(nt(Dh(s,1),"No boxes provided"),s.length===1)return s[0];let c=1/0,u=1/0,d=-1/0,p=-1/0;for(const f of s)c=Math.min(c,f.x),u=Math.min(u,f.y),d=Math.max(d,f.x+f.width),p=Math.max(p,f.y+f.height);return{x:c,y:u,width:d-c,height:p-u}}e.merge=o;function a(s){return{x1:s.x,y1:s.y,x2:s.x+s.width,y2:s.y+s.height}}e.toRectBox=a;function i(s,c){return c===0?s:{x:s.x-c,y:s.y-c,width:s.width+c*2,height:s.height+c*2}}e.expand=i;function l(s,c){return c===0?s:{x:s.x+c,y:s.y+c,width:s.width-c*2,height:s.height-c*2}}e.shrink=l})(su||(su={}));var j8;(e=>{function r({x1:i,y1:l,x2:s,y2:c}){return{x:(i+s)/2,y:(l+c)/2}}e.center=r;function n(i){nt(i.length>0,"At least one point is required");let l=1/0,s=1/0,c=-1/0,u=-1/0;for(const[d,p]of i)l=Math.min(l,d),s=Math.min(s,p),c=Math.max(c,d),u=Math.max(u,p);return{x1:l,y1:s,x2:c,y2:u}}e.fromPoints=n;function o(...i){nt(i.length>0,"No boxes provided");let l=1/0,s=1/0,c=-1/0,u=-1/0;for(const d of i)l=Math.min(l,d.x1),s=Math.min(s,d.y1),c=Math.max(c,d.x2),u=Math.max(u,d.y2);return{x1:l,y1:s,x2:c,y2:u}}e.merge=o;function a(i){return{x:i.x1,y:i.y1,width:i.x2-i.x1,height:i.y2-i.y1}}e.toBBox=a})(j8||(j8={}));function pj(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const hj={done:!1,hasNext:!1};function o0(e,...r){let n=e,o=r.map(i=>"lazy"in i?Z_e(i):void 0),a=0;for(;a<r.length;){if(o[a]===void 0||!Q_e(n)){let c=r[a];n=c(n),a+=1;continue}let i=[];for(let c=a;c<r.length;c++){let u=o[c];if(u===void 0||(i.push(u),u.isSingle))break}let l=[];for(let c of n)if(fj(c,l,i))break;let{isSingle:s}=i.at(-1);n=s?l[0]:l,a+=i.length}return n}function fj(e,r,n){if(n.length===0)return r.push(e),!1;let o=e,a=hj,i=!1;for(let[l,s]of n.entries()){let{index:c,items:u}=s;if(u.push(o),a=s(o,c,u),s.index+=1,a.hasNext){if(a.hasMany??!1){for(let d of a.next)if(fj(d,r,n.slice(l+1)))return!0;return i}o=a.next}if(!a.hasNext)break;a.done&&(i=!0)}return a.hasNext&&r.push(o),i}function Z_e(e){let{lazy:r,lazyArgs:n}=e,o=r(...n);return Object.assign(o,{isSingle:r.single??!1,index:0,items:[]})}function Q_e(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function mj(...e){return xa(J_e,e,e8e)}const J_e=(e,r)=>e.map(r),e8e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function t8e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var F8={},gj;function r8e(){return gj||(gj=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,l=arguments.length;for(i=0;i<l;i++){if(a=arguments[i],a.size===0)return r;a.size<n&&(n=a.size,o=a)}for(var s=o.values(),c,u,d,p;c=s.next(),!c.done;){for(u=c.value,d=!0,i=0;i<l;i++)if(p=arguments[i],p!==o&&!p.has(u)){d=!1;break}d&&r.add(u)}return r},e.union=function(){if(arguments.length<2)throw new Error("mnemonist/Set.union: needs at least two arguments.");var r=new Set,n,o=arguments.length,a,i;for(n=0;n<o;n++)for(a=arguments[n].values();i=a.next(),!i.done;)r.add(i.value);return r},e.difference=function(r,n){if(!r.size)return new Set;if(!n.size)return new Set(r);for(var o=new Set,a=r.values(),i;i=a.next(),!i.done;)n.has(i.value)||o.add(i.value);return o},e.symmetricDifference=function(r,n){for(var o=new Set,a=r.values(),i;i=a.next(),!i.done;)n.has(i.value)||o.add(i.value);for(a=n.values();i=a.next(),!i.done;)r.has(i.value)||o.add(i.value);return o},e.isSubset=function(r,n){var o=r.values(),a;if(r===n)return!0;if(r.size>n.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var l=0,s=i.length;l<s;l++)r.delete(i[l])},e.intersectionSize=function(r,n){var o;if(r.size>n.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,l=0;i=a.next(),!i.done;)n.has(i.value)&&l++;return l},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(F8)),F8}var n8e=r8e();function H8(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function tf(e,...r){let n=new Set;if(e.size===0)return n;let o=Dh(r,2)?n8e.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function q8(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function o8e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function a8e(e){let r=5381;const n=e.length;nt(n>0,"stringHash: empty string");for(let o=0;o<n;o++)r=r*33^e.charCodeAt(o);return(r>>>0).toString(36)}const j3=e=>typeof e=="function";function Fd(e,r){const n=r??e;nt(j3(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function a0(e,r){const n=r??e;nt(j3(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function yj(e){return e?bj(e):bj}function bj(e){for(const r of e)return r}function i8e(e,r){const n=e;nt(j3(n));function*o(a){for(const i of a)yield n(i)}return o}function i0(e){return e?Array.from(e):r=>Array.from(r)}function l8e(e){return e?new Set(e):r=>new Set(r)}function s8e(e,r){const n=r??e;nt(j3(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function c8e(e,r){const n=e;nt(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const l of a){if(i>=n)break;yield l,i++}}return a=>o(a)}function u8e(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o<n)throw RangeError(`randomInteger: The range [${e.toString()},${r.toString()}] contains no integer`);return Math.floor(Math.random()*(o-n+1)+n)}const d8e="LIKEC4_DELAY";function p8e(...e){let r=100;return e.length===2?r=u8e(e[0],e[1]):e.length===1&&(r=e[0]),new Promise(n=>{setTimeout(()=>{n(d8e)},r??100)})}function F3(e){const r=tu([...e]),n=new Set(r),o=new Map(r.map(l=>[l._literalId,l])),a=new po(()=>null),i=r.reduce((l,s,c,u)=>(l.set(s,u.slice(c+1).filter(FI(s)).map(d=>(n.delete(d),d)).reduce((d,p)=>(d.some(Gn(p))||(d.push(p),a.set(p,s)),d),[])),l),new po(()=>[]));return{sorted:r,byId:l=>bt(o.get(l),`Element not found by id: ${l}`),root:n,parent:l=>a.get(l),children:l=>i.get(l),flatten:()=>new Set([...n,...r.reduce((l,s)=>{const c=i.get(s);return c.length===0?(l.push(s),l):(c.length>1&&l.push(...c),l)},[])])}}const U8=(e,r)=>e.size>2&&r.size!==e.size?new Set(tu([...F3(e).flatten(),...r])):e.size>1?new Set(tu([...e])):e;function vj(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let l=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let p=c.target.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let u=c.source;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d})),s=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let p=c.source.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let u=c.target;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d}));return{incomers:U8(l,i.incomers),incoming:new Set(n.incoming),subjects:U8(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:U8(s,i.outgoers)}}function xj(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return nt(a,'Scope view id is required when scope is "view"'),h8e(e,a,r);const i=r.element(e),l=l8e(i.ascendingSiblings());return vj(i,l,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function h8e(e,r,n){const o=n.element(e);let a={incoming:i0(Fd(o.incoming(),s=>r.includesRelation(s.id))),outgoing:i0(Fd(o.outgoing(),s=>r.includesRelation(s.id)))};const i=FI(o),l=new Set([...o.ascendingSiblings(),...o0(r.elements(),i8e(s=>s.element),Fd(s=>s!==o&&i(s)))]);return vj(o,l,a)}var wj;(e=>{e.isInside=r=>n=>Gn(r,n.source.id)&&Gn(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||Gn(r,o.source.id))&&(o.target.id===n||Gn(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||Gn(r,n.target.id))&&!Gn(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||Gn(r,n.source.id))&&!Gn(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(wj||(wj={}));const f8e=Symbol.for("nodejs.util.inspect.custom");function m8e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return o0(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>o0(a,o),o)}throw Error("Wrong number of arguments")}function rf(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function g8e(...e){return xa(y8e,e)}const y8e=e=>e.length===1?e[0]:void 0;function V8(...e){return m8e(b8e,e)}function b8e(){let e=new Set;return r=>e.has(r)?hj:(e.add(r),{done:!1,hasNext:!0,next:r})}class kj{get style(){return pr(this,"style",()=>e0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return C1(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return Zt.memoize(this,"summary",c3(this.$node))}get description(){return Zt.memoize(this,"description",u3(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=R1(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return pr(this,Symbol.for("allOutgoing"),()=>cu.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return pr(this,Symbol.for("allIncoming"),()=>cu.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!rf(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class _j extends kj{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=l3(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return pr(this,Symbol.for("tags"),()=>V8([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=g8e([...r]);return n?.isInstance()?n:null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return tf(n,r)}}class Ej extends kj{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=l3(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return bt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return pr(this,"style",()=>e0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return pr(this,Symbol.for("tags"),()=>V8([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return Zt.memoize(this,"summary",c3(this.$instance)??c3(this.element.$element))}get description(){return Zt.memoize(this,"description",u3(this.$instance)??u3(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class v8e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return pr(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class x8e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=R1(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Ls(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get description(){return Zt.memoize(this,"description",this.$relationship.description)}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!rf(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class cu{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new cu}static from(r,n){return new cu(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return cu.from(tf(this.model,r.model),tf(this.deployment,r.deployment))}difference(r){return cu.from(q8(this.model,r.model),q8(this.deployment,r.deployment))}union(r){return cu.from(H8(this.model,r.model),H8(this.deployment,r.deployment))}}function Sj(e,r){return n=>e.source===n.source&&e.target===n.target}function Y8(e,r,n="directed"){if(e===r)return[];if(jI(e,r))return[];const o=tf(e.allOutgoing,r.allIncoming),a=o.size>0?new ai(e,r,o):null;if(n==="directed")return a?[a]:[];const i=tf(e.allIncoming,r.allOutgoing),l=i.size>0?new ai(r,e,i):null;return a&&l?[a,l]:a?[a]:l?[l]:[]}function Cj(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const l of Y8(e,i,n))l.source===e?o.push(l):a.push(l);return[...o,...a]}function w8e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...Cj(n,a.slice(o+1),"both")),r),[])}const k8e={__proto__:null,findConnection:Y8,findConnectionsBetween:Cj,findConnectionsWithin:w8e};class ai{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=a8e(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&s8e(this.relations,uj(Sj(this)))}get directRelations(){return new Set(Fd(this.relations,Sj(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return nt(this.source.id===r.source.id,"Cannot merge connections with different sources"),nt(this.target.id===r.target.id,"Cannot merge connections with different targets"),new ai(this.source,this.target,H8(this.relations,r.relations))}difference(r){return new ai(this.source,this.target,q8(this.relations,r.relations))}intersect(r){return nt(r instanceof ai,"Cannot intersect connection with different type"),new ai(this.source,this.target,tf(this.relations,r.relations))}equals(r){nt(r instanceof ai,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&o8e(this.relations,n.relations)}update(r){return new ai(this.source,this.target,r)}[f8e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:ai,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?"  relations:":"  relations: [ ]",...[...this.relations].map(r=>"    "+r.expression)].join(`
`)}reversed(r=!1){if(!r)return new ai(this.target,this.source);const[n]=Y8(this.target,this.source,"directed");return n??new ai(this.target,this.source,new Set)}}const Tj={asc:(e,r)=>e>r,desc:(e,r)=>e<r};function _8e(e,r){let[n,...o]=r;if(!E8e(n)){let i=W8(...o);return e(n,i)}let a=W8(n,...o);return i=>e(i,a)}function W8(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=Tj,l=r===void 0?void 0:W8(r,...n);return(s,c)=>{let u=o(s),d=o(c);return i(u,d)?1:i(d,u)?-1:l?.(s,c)??0}}function E8e(e){if(Rj(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return Rj(r)&&typeof n=="string"&&n in Tj&&o.length===0}const Rj=e=>typeof e=="function"&&e.length===1;function Aj(...e){return xa(Object.entries,e)}function S8e(...e){return xa(C8e,e)}function C8e(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return T8e(e,r);if(e instanceof Set&&r instanceof Set)return R8e(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function T8e(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function R8e(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function A8e(...e){return xa(N8e,e)}const N8e=e=>e.at(-1);function D8e(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>Nj(n,e,...r):Nj(e,...r)}function Nj(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function G8(...e){return xa(P8e,e)}function P8e(e,r){let n=[...e];return n.sort(r),n}function $8e(...e){return _8e(M8e,e)}const M8e=(e,r)=>[...e].sort(r);function Dj(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function H3(...e){return xa(Object.values,e)}class q3{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=_be(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=l3(a)):(this.imported=null,this.hierarchyLevel=l3(this.id))}id;_literalId;hierarchyLevel;imported;get name(){return C1(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return pr(this,Symbol.for("tags"),()=>V8([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!S8e(this.$element.summary,this.$element.description)}get summary(){return Zt.memoize(this,"summary",c3(this.$element))}get description(){return Zt.memoize(this,"description",u3(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return pr(this,Symbol.for("defaultView"),()=>yj(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return pr(this,"style",()=>e0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return Gn(this,r)}isDescendantOf(r){return Gn(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=R1(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?HI([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return pr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return pr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return pr(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return pr(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return Ls(yj(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!rf(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const gr=e=>typeof e=="string"?e:e.id,Ea="/",X8=e=>{if(nt(!e.includes(`
`),"View title cannot contain newlines"),e.includes(Ea)){const r=e.split(Ea).map(n=>n.trim()).filter(n=>n.length>0);return Dh(r,1)?r:[""]}return[e.trim()]},U3=e=>X8(e).join(Ea),O8e=e=>{const r=X8(e);return Dh(r,2)?r.slice(0,-1).join(Ea):null},I8e=e=>e.includes(Ea)?X8(e).pop()??e:e.trim();class z8e{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=H3(n.elements);for(const a of tu(o)){const i=this.addElement(a);for(const l of i.tags)this.#s.get(l).add(i);i.isInstance()&&this.#a.get(i.element.id).add(i)}for(const a of H3(n.relations)){const i=this.addRelation(a);for(const l of i.tags)this.#s.get(l).add(i)}}#e=new Map;#t=new Map;#r=new po(()=>new Set);#a=new po(()=>new Set);#i=new Set;#n=new Map;#o=new po(()=>new Set);#l=new po(()=>new Set);#c=new po(()=>new Set);#s=new po(()=>new Set);#u=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof _j||r instanceof Ej)return r;const n=gr(r);return bt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return nt(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(nt(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return nt(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(nt(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#i.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=gr(r),o=this.#a.get(n);o&&(yield*o)}deploymentRef(r){if(n0.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return t8e(this.#u,`${n}@${o}`,()=>new v8e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return bt(this.#n.get(gr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=gr(r);return this.#t.get(n)||null}children(r){const n=gr(r);return this.#r.get(n)}*siblings(r){const n=gr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=gr(r),o;for(;o=this.#t.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=gr(r);for(const a of this.#o.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=gr(r);for(const a of this.#l.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=q_e(r)?new _j(this,Object.freeze(r)):new Ej(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=i3(n.id);return o?(nt(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#t.set(n.id,this.node(o)),this.#r.get(o).add(n)):(nt(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#i.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new x8e(this,Object.freeze(r));this.#n.set(n.id,n),this.#o.get(n.target.id).add(n),this.#l.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...Ad(o)])this.#c.get(a).add(n);for(const a of Ad(n.source.id)){if(a===o)break;this.#l.get(a).add(n)}for(const a of Ad(n.target.id)){if(a===o)break;this.#o.get(a).add(n)}return n}}class Pj{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(n0.flatten(n.source)),this.target=r.element(n0.flatten(n.target));const o=R1(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Ls(this.$relationship.title)?this.$relationship.title:null}get technology(){return Ls(this.$relationship.technology)?this.$relationship.technology:null}get description(){return Zt.memoize(this,"description",this.$relationship.description)}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!rf(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class L8e{constructor(r,n,o,a){this.view=r,this.$edge=n,this.source=o,this.target=a,this.#e=n}#e;get id(){return this.#e.id}get parent(){return this.#e.parent?this.view.node(this.#e.parent):null}get label(){return this.#e.label??null}get description(){return Zt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}hasParent(){return this.#e.parent!==null}get tags(){return this.#e.tags??[]}get stepNumber(){return this.isStep()?XI(this.id):null}get navigateTo(){return this.#e.navigateTo?this.view.$model.view(this.#e.navigateTo):null}get color(){return this.#e.color}get line(){return this.#e.line??this.view.$model.$styles.defaults.relationship.line}get head(){return this.#e.head??this.view.$model.$styles.defaults.relationship.arrow}get tail(){return this.#e.tail}isStep(){return A1(this.id)}*relationships(r){for(const n of this.#e.relations)if(r){const o=this.view.$model.findRelationship(n,r);o&&(yield o)}else yield this.view.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.#e.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class B8e{constructor(r,n){this.$view=r,this.$node=n,this.#e=n}#e;get id(){return this.#e.id}get title(){return this.#e.title}get kind(){return this.#e.kind}get description(){return Zt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}get parent(){return this.#e.parent?this.$view.node(this.#e.parent):null}get element(){const r=this.#e.modelRef;return r?this.$view.$model.element(r):null}get deployment(){const r=this.#e.deploymentRef;return r?this.$view.$model.deployment.element(r):null}get shape(){return this.#e.shape}get color(){return this.#e.color}get icon(){return this.#e.icon??null}get tags(){return this.#e.tags}get links(){return this.#e.links??[]}get navigateTo(){return this.#e.navigateTo?this.$view.$model.view(this.#e.navigateTo):null}get style(){return this.#e.style}children(){return pr(this,"children",()=>new Set(this.#e.children.map(r=>this.$view.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$view.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.#e.inEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.#e.outEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isDiagramNode(){return"width"in this.#e&&"height"in this.#e}hasChildren(){return this.#e.children.length>0}hasParent(){return this.#e.parent!==null}hasElement(){return Ls(this.#e.modelRef)}hasDeployment(){return Ls(this.#e.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return wbe(this.#e)}isTagged(r){return this.tags.includes(r)}}class K8{Aux;#e=new Set;#t=new Map;#r=new Map;#a=new Set;#i=new Set;#n=new Set;#o=new po(r=>new Set);$view;$model;title;folder;viewPath;constructor(r,n,o){this.$model=r,this.$view=n,this.folder=o;for(const a of n.nodes){const i=new B8e(this,Object.freeze(a));this.#t.set(a.id,i),a.parent||this.#e.add(i),i.hasDeployment()&&this.#i.add(i.deployment.id),i.hasElement()&&this.#a.add(i.element.id);for(const l of i.tags)this.#o.get(l).add(i)}for(const a of n.edges){const i=new L8e(this,Object.freeze(a),this.node(a.source),this.node(a.target));for(const l of i.tags)this.#o.get(l).add(i);for(const l of a.relations)this.#n.add(l);this.#r.set(a.id,i)}this.title=this.$view.title?I8e(this.$view.title):null,this.viewPath=this.$view.title?U3(this.$view.title):this.$view.id}get _type(){return this.$view[r0]}get id(){return this.$view.id}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return pr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return Zt.memoize(this,"description",this.$view.description)}get tags(){return this.$view.tags??[]}get links(){return this.$view.links??[]}get viewOf(){if(this.isElementView()){const r=this.$view.viewOf;return r?this.$model.element(r):null}return null}get mode(){if(this.isDynamicView())return this.$view.variant??"diagram";throw new Error("View is not dynamic")}get includedTags(){return[...this.#o.keys()]}roots(){return this.#e.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=gr(r);return bt(this.#t.get(n),`Node ${n} not found in view ${this.$view.id}`)}findNode(r){return this.#t.get(gr(r))??null}findNodeWithElement(r){const n=gr(r);return a0(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null}nodes(){return this.#t.values()}edge(r){const n=gr(r);return bt(this.#r.get(n),`Edge ${n} not found in view ${this.$view.id}`)}findEdge(r){return this.#r.get(gr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#a.has(gr(r))}includesDeployment(r){return this.#i.has(gr(r))}includesRelation(r){return this.#n.has(gr(r))}isComputed(){return this.$view[t0]==="computed"}isDiagram(){return this.$view[t0]==="layouted"}isElementView(){return this.$view[r0]==="element"}isScopedElementView(){return this.$view[r0]==="element"&&Ls(this.$view.viewOf)}isDeploymentView(){return this.$view[r0]==="deployment"}isDynamicView(){return this.$view[r0]==="dynamic"}}class V3{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=A8e(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return nt(!this.isRoot,"Root view folder has no breadcrumbs"),pr(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return nt(!this.isRoot,"Root view folder has no parent"),rf(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return pr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof V3&&r.push(n);return r})}get views(){return pr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof K8&&r.push(n);return r})}}class Hd{Aux;_elements=new Map;_parents=new Map;_children=new po(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new po(()=>new Set);_outgoing=new po(()=>new Set);_internal=new po(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new po(()=>new Set);_allTags=new po(()=>new Set);static fromParsed(r){return new Hd(r).asParsed}static create(r){return new Hd(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:l,deployments:s,views:c,relations:u,elements:d,specification:p}=r;return new Hd({[t0]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:l??{},deployments:{elements:s?.elements??{},relations:s?.relations??{}},views:c??{},relations:u??{},elements:d??{},specification:p})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of Aj(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of Aj(r.imports??{}))for(const a of tu(o)){const i=this.addImportedElement(n,a);for(const l of i.tags)this._allTags.get(l).add(i)}for(const n of H3(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new z8e(this),dj(r,"computed")||dj(r,"layouted")){const n=BI(Ea),o=o0(H3(r.views),mj(i=>({view:i,path:U3(i.title??i.id),folderPath:i.title&&O8e(i.title)||""})),G8((i,l)=>n(i.folderPath,l.folderPath))),a=i=>{let l=this._viewFolders.get(i);if(!l){const s=Dj(i,Ea);nt(Dh(s,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(u=>u.view.id==="index"):c=o.find(u=>u.path===i),l=new V3(this,s,c?.view.id),this._viewFolders.set(i,l)}return l};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||Dj(i,Ea).reduce((l,s)=>{const c=l.join(Ea),u=rf(c)?s:c+Ea+s,d=a(u);return this._viewFolderItems.get(c).add(d),l.push(s),l},[]);for(const{view:i,folderPath:l}of o){const s=new K8(this,i,a(l));this._viewFolderItems.get(l).add(s),this._views.set(i.id,s);for(const c of s.tags)this._allTags.get(c).add(s)}}else this._rootViewFolder=new V3(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return pr(this,"styles",()=>II.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[t0]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??pr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return pr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof q3)return r;const n=gr(r);return bt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(gr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=gr(r);let a=this._relations.get(o)??null;return a||n==="model"?bt(a,`Model relation ${o} not found`):bt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(gr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=gr(r);return bt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return bt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return nt(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=gr(r);return this._parents.get(n)||null}children(r){const n=gr(r);return this._children.get(n)}*siblings(r){const n=gr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=gr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=gr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=gr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return pr(this,"tags",()=>G8([...this._allTags.keys()],a3))}get tagsSortedByUsage(){return pr(this,"tagsSortedByUsage",()=>o0([...this._allTags.entries()],mj(([r,n])=>({tag:r,count:n.size,tagged:n})),G8((r,n)=>a3(r.tag,n.tag)),$8e([D8e("count"),"desc"])))}findByTag(r,n){return Fd(this._allTags.get(r),o=>n==="elements"?o instanceof q3:n==="views"?o instanceof K8:n==="relationships"?o instanceof Pj:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=jd(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=jd(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new q3(this,Object.freeze(r));this._elements.set(n.id,n);const o=i3(n.id);return o?(nt(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){nt(!kbe(n.id),"Imported element already has global FQN");const o=GI(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new q3(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=i3(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=i3(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new Pj(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=R1(o.id,a.id);if(i)for(const l of[i,...Ad(i)])this._internal.get(l).add(n);for(const l of Ad(o.id)){if(l===i)break;this._outgoing.get(l).add(n)}for(const l of Ad(a.id)){if(l===i)break;this._incoming.get(l).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})(Hd||(Hd={}));function Y3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var j8e=e=>typeof e=="object"&&e!==null;function qd(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var F8e=e=>e==="base";function H8e(e){return e.slice().filter(r=>!F8e(r))}function $j(e){return String.fromCharCode(e+(e>25?39:97))}function q8e(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=$j(n%52)+r;return $j(n%52)+r}function U8e(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function V8e(e){return q8e(U8e(5381,e)>>>0)}var Mj=/\s*!(important)?/i;function Y8e(e){return typeof e=="string"?Mj.test(e):!1}function W8e(e){return typeof e=="string"?e.replace(Mj,"").trim():e}function Z8(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var ho=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},G8e=new Set(["__proto__","constructor","prototype"]);function Q8(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(G8e.has(o))return;const a=r[o],i=n[o];Y3(a)&&Y3(i)?r[o]=Q8(a,i):r[o]=i}),r),{})}var X8e=e=>e!=null;function J8(e,r,n={}){const{stop:o,getKey:a}=n;function i(l,s=[]){if(j8e(l)){const c={};for(const[u,d]of Object.entries(l)){const p=a?.(u,d)??u,f=[...s,p];if(o?.(l,f))return r(l,s);const g=i(d,f);X8e(g)&&(c[p]=g)}return c}return r(l,s)}return i(e)}function K8e(e,r){return Array.isArray(e)?e.map(n=>r(n)):Y3(e)?J8(e,n=>r(n)):r(e)}function Z8e(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function Oj(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:l}=o;return J8(e,s=>Array.isArray(s)?Z8e(s,a.breakpoints.keys):s,{stop:s=>Array.isArray(s),getKey:n?s=>i?l(s):s:void 0})}var Q8e={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},J8e=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function Ij(e){const{utility:r,hash:n,conditions:o=Q8e}=e,a=l=>[r.prefix,l].filter(Boolean).join("-"),i=(l,s)=>{let c;if(n){const u=[...o.finalize(l),s];c=a(r.toHash(u,V8e))}else c=[...o.finalize(l),a(s)].join(":");return c};return ho(({base:l,...s}={})=>{const c=Object.assign(s,l),u=Oj(c,e),d=new Set;return J8(u,(p,f)=>{if(p==null)return;const g=Y8e(p),[b,...x]=o.shift(f),w=H8e(x),k=r.transform(b,W8e(J8e(p)));let C=i(w,k.className);g&&(C=`${C}!`),d.add(C)}),Array.from(d).join(" ")})}function eEe(...e){return e.flat().filter(r=>Y3(r)&&Object.keys(qd(r)).length>0)}function tEe(e){function r(a){const i=eEe(...a);return i.length===1?i:i.map(l=>Oj(l,e))}function n(...a){return Q8(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:ho(n),assignCss:o}}var rEe=/([A-Z])/g,nEe=/^ms-/,oEe=ho(e=>e.startsWith("--")?e:e.replace(rEe,"-$1").replace(nEe,"-ms-").toLowerCase()),aEe=["min","max","clamp","calc"],iEe=new RegExp(`^(${aEe.join("|")})\\(.*\\)`),lEe=e=>typeof e=="string"&&iEe.test(e),sEe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",cEe=`(?:${sEe.split(",").join("|")})`,uEe=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${cEe}$`),dEe=e=>typeof e=="string"&&uEe.test(e),pEe=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),l0={map:K8e,isCssFunction:lEe,isCssVar:pEe,isCssUnit:dEe},s0=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,qd(r))},hEe=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?eE(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,l]of Object.entries(a))n.forEach(([s,c])=>{c.variants[o]??={},c.variants[o][i]=l[s]??{}});return Object.fromEntries(n)},eE=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Zn(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=l=>{const s={};for(let c=0;c<l.length;c++){const u=l[c];n[u]&&(Object.defineProperty(s,u,n[u]),delete n[u])}return s},i=l=>a(Array.isArray(l)?l:o.filter(l));return r.map(i).concat(a(o))}var tE=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},zj=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function fEe(e){return zj.includes(e)?e.replace("html","").toLowerCase():e}function rE(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[fEe(r),n]))}rE.keys=zj;const mEe="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",Lj=new Set(mEe.split(",")),gEe=/^@|&|&$/;function Bj(e){return Lj.has(e)||gEe.test(e)}const yEe=/^_/,bEe=/&|@/;function jj(e){return e.map(r=>Lj.has(r)?r.replace(yEe,""):bEe.test(r)?`[${Z8(r.trim())}]`:r)}function Fj(e){return e.sort((r,n)=>{const o=Bj(r),a=Bj(n);return o&&!a?1:!o&&a?-1:0})}const vEe="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",Hj=new Map,qj=new Map;vEe.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");Hj.set(r,o),a.length&&a.forEach(i=>{qj.set(i==="1"?o:i,r)})});const Uj=e=>qj.get(e)||e,Vj={conditions:{shift:Fj,finalize:jj,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=Uj(e);return{className:`${Hj.get(n)||oEe(n)}_${Z8(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:Uj}},xEe=Ij(Vj),me=(...e)=>xEe(Ud(...e));me.raw=(...e)=>Ud(...e);const{mergeCss:Ud}=tEe(Vj);function Je(){let e="",r=0,n;for(;r<arguments.length;)(n=arguments[r++])&&typeof n=="string"&&(e&&(e+=" "),e+=n);return e}const Yj=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function c0(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=Yj(e),i=f=>({...o,...qd(f)});function l(f={}){const g=i(f);let b={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(b=Ud(b,n[w][k]));const x=nE(a,g);return Ud(b,x)}function s(f){const g=Yj(f.config),b=tE(f.variantKeys,Object.keys(n));return c0({base:Ud(r,g.base),variants:Object.fromEntries(b.map(x=>[x,Ud(n[x],g.variants[x])])),defaultVariants:Q8(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(f){return me(l(f))}const u=Object.keys(n);function d(f){return Zn(f,u)}const p=Object.fromEntries(Object.entries(n).map(([f,g])=>[f,Object.keys(g)]));return Object.assign(ho(c),{__cva__:!0,variantMap:p,variantKeys:u,raw:l,config:e,merge:s,splitVariantProps:d,getVariantProps:i})}function nE(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(l=>r[a]===l))&&(n=Ud(n,o.css))}),n}function wEe(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function kEe(e){const r=Object.entries(hEe(e)).map(([p,f])=>[p,c0(f)]),n=e.defaultVariants??{},o=r.reduce((p,[f,g])=>(e.className&&(p[f]=g.config.className),p),{});function a(p){const f=r.map(([g,b])=>[g,Je(b(p),o[g])]);return Object.fromEntries(f)}function i(p){const f=r.map(([g,b])=>[g,b.raw(p)]);return Object.fromEntries(f)}const l=e.variants??{},s=Object.keys(l);function c(p){return Zn(p,s)}const u=p=>({...n,...qd(p)}),d=Object.fromEntries(Object.entries(l).map(([p,f])=>[p,Object.keys(f)]));return Object.assign(ho(a),{__cva__:!1,raw:i,config:e,variantMap:d,variantKeys:s,classNameMap:o,splitVariantProps:c,getVariantProps:u})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var _Ee={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const xt=(e,r,n,o)=>{const a=S.forwardRef(({color:i="currentColor",size:l=24,stroke:s=2,title:c,className:u,children:d,...p},f)=>S.createElement("svg",{ref:f,..._Ee[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:s,stroke:i},...p},[c&&S.createElement("title",{key:"svg-title"},c),...o.map(([g,b])=>S.createElement(g,b)),...Array.isArray(d)?d:[d]]));return a.displayName=`${n}`,a};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const EEe=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],Wj=xt("outline","cylinder","Cylinder",EEe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const SEe=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],CEe=xt("outline","rectangular-prism","RectangularPrism",SEe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const TEe=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],REe=xt("outline","reorder","Reorder",TEe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const AEe=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],NEe=xt("outline","user","User",AEe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const DEe=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],PEe=xt("outline","device-mobile","DeviceMobile",DEe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const $Ee=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],MEe=xt("outline","browser","Browser",$Ee),oE=S.createContext(null);function OEe({value:e,children:r}){return S.useContext(oE)?y.jsx(y.Fragment,{children:r}):y.jsx(oE.Provider,{value:e,children:r})}function W3({element:e,className:r,style:n}){const o=S.useContext(oE);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=y.jsx("img",{src:e.icon,alt:e.title}):o&&(a=y.jsx(o,{node:e})),a?y.jsx("div",{className:Je(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const IEe={browser:MEe,cylinder:Wj,mobile:PEe,person:NEe,queue:REe,rectangle:CEe,storage:Wj};function zEe({element:e,className:r}){const n=y.jsx(W3,{element:e,className:r});if(n)return n;const o=IEe[e.shape];return y.jsx("div",{className:Je(r,"likec4-shape-icon"),children:y.jsx(o,{})})}function nf(e){const r=S.useRef(e);return r.current=e,S.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function Gj(e){const r=nf(e);S.useEffect(()=>()=>{r.current()},[])}function G3(e,r,n,o=0){const a=S.useRef(void 0),i=S.useRef(void 0),l=S.useRef(e),s=S.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return Gj(c),S.useEffect(()=>{l.current=e},r),S.useMemo(()=>{const u=()=>{if(c(),!s.current)return;const p=s.current;s.current=void 0,l.current.apply(p.this,p.args)},d=function(...p){a.current&&clearTimeout(a.current),s.current={args:p,this:this},a.current=setTimeout(u,n),o>0&&!i.current&&(i.current=setTimeout(u,o))};return Object.defineProperties(d,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),d},[n,o,...r])}const LEe=()=>{},X3=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function BEe(e){const r=nf(e),n=S.useRef(0),o=S.useCallback(()=>{X3&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return Gj(o),[S.useMemo(()=>{const a=(...i)=>{X3&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const jEe=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function Xj(e,r,n=jEe,o=S.useEffect,...a){const i=S.useRef(void 0);(i.current===void 0||X3&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function FEe(e,r,n,o=0){S.useEffect(G3(e,r,n,o),r)}function Kj(){const e=S.useRef(!0);return S.useEffect(()=>{e.current=!1},[]),e.current}const aE=X3?S.useLayoutEffect:S.useEffect;function HEe(e){S.useEffect(()=>{e()},[])}function Zj(e,r){const[n,o]=BEe(e);S.useEffect(()=>(n(),o),r)}const qEe=e=>(e+1)%Number.MAX_SAFE_INTEGER;function UEe(){const[,e]=S.useState(0);return S.useCallback(()=>{e(qEe)},[])}function Qj(e,r){const n=Kj();S.useEffect(n?LEe:e,r)}const VEe=e=>{e&&clearTimeout(e)};function K3(e,r){const n=nf(e),o=nf(r),a=S.useRef(null),i=S.useCallback(()=>{VEe(a.current)},[]),l=S.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return S.useEffect(()=>(l(),i),[r]),[i,l]}const Jj=(e,r,n)=>{const o=S.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),S.useMemo(e,o.current)};function dn(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=dn(e[n]))!==""&&(r+=(r&&" ")+o);else for(let n in e)e[n]&&(r+=(r&&" ")+n);return r}var YEe={value:()=>{}};function Z3(){for(var e=0,r=arguments.length,n={},o;e<r;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Q3(n)}function Q3(e){this._=e}function WEe(e,r){return e.trim().split(/^|\s+/).map(function(n){var o="",a=n.indexOf(".");if(a>=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Q3.prototype=Z3.prototype={constructor:Q3,on:function(e,r){var n=this._,o=WEe(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i<l;)if((a=(e=o[i]).type)&&(a=GEe(n[a],e.name)))return a;return}if(r!=null&&typeof r!="function")throw new Error("invalid callback: "+r);for(;++i<l;)if(a=(e=o[i]).type)n[a]=eF(n[a],e.name,r);else if(r==null)for(a in n)n[a]=eF(n[a],e.name,null);return this},copy:function(){var e={},r=this._;for(var n in r)e[n]=r[n].slice();return new Q3(e)},call:function(e,r){if((a=arguments.length-2)>0)for(var n=new Array(a),o=0,a,i;o<a;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(r,n)},apply:function(e,r,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],a=0,i=o.length;a<i;++a)o[a].value.apply(r,n)}};function GEe(e,r){for(var n=0,o=e.length,a;n<o;++n)if((a=e[n]).name===r)return a.value}function eF(e,r,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===r){e[o]=YEe,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:r,value:n}),e}var iE="http://www.w3.org/1999/xhtml";const tF={svg:"http://www.w3.org/2000/svg",xhtml:iE,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function J3(e){var r=e+="",n=r.indexOf(":");return n>=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),tF.hasOwnProperty(r)?{space:tF[r],local:e}:e}function XEe(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===iE&&r.documentElement.namespaceURI===iE?r.createElement(e):r.createElementNS(n,e)}}function KEe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function rF(e){var r=J3(e);return(r.local?KEe:XEe)(r)}function ZEe(){}function lE(e){return e==null?ZEe:function(){return this.querySelector(e)}}function QEe(e){typeof e!="function"&&(e=lE(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],l=i.length,s=o[a]=new Array(l),c,u,d=0;d<l;++d)(c=i[d])&&(u=e.call(c,c.__data__,d,i))&&("__data__"in c&&(u.__data__=c.__data__),s[d]=u);return new Sa(o,this._parents)}function JEe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function e9e(){return[]}function nF(e){return e==null?e9e:function(){return this.querySelectorAll(e)}}function t9e(e){return function(){return JEe(e.apply(this,arguments))}}function r9e(e){typeof e=="function"?e=t9e(e):e=nF(e);for(var r=this._groups,n=r.length,o=[],a=[],i=0;i<n;++i)for(var l=r[i],s=l.length,c,u=0;u<s;++u)(c=l[u])&&(o.push(e.call(c,c.__data__,u,l)),a.push(c));return new Sa(o,a)}function oF(e){return function(){return this.matches(e)}}function aF(e){return function(r){return r.matches(e)}}var n9e=Array.prototype.find;function o9e(e){return function(){return n9e.call(this.children,e)}}function a9e(){return this.firstElementChild}function i9e(e){return this.select(e==null?a9e:o9e(typeof e=="function"?e:aF(e)))}var l9e=Array.prototype.filter;function s9e(){return Array.from(this.children)}function c9e(e){return function(){return l9e.call(this.children,e)}}function u9e(e){return this.selectAll(e==null?s9e:c9e(typeof e=="function"?e:aF(e)))}function d9e(e){typeof e!="function"&&(e=oF(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],l=i.length,s=o[a]=[],c,u=0;u<l;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&s.push(c);return new Sa(o,this._parents)}function iF(e){return new Array(e.length)}function p9e(){return new Sa(this._enter||this._groups.map(iF),this._parents)}function ex(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}ex.prototype={constructor:ex,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function h9e(e){return function(){return e}}function f9e(e,r,n,o,a,i){for(var l=0,s,c=r.length,u=i.length;l<u;++l)(s=r[l])?(s.__data__=i[l],o[l]=s):n[l]=new ex(e,i[l]);for(;l<c;++l)(s=r[l])&&(a[l]=s)}function m9e(e,r,n,o,a,i,l){var s,c,u=new Map,d=r.length,p=i.length,f=new Array(d),g;for(s=0;s<d;++s)(c=r[s])&&(f[s]=g=l.call(c,c.__data__,s,r)+"",u.has(g)?a[s]=c:u.set(g,c));for(s=0;s<p;++s)g=l.call(e,i[s],s,i)+"",(c=u.get(g))?(o[s]=c,c.__data__=i[s],u.delete(g)):n[s]=new ex(e,i[s]);for(s=0;s<d;++s)(c=r[s])&&u.get(f[s])===c&&(a[s]=c)}function g9e(e){return e.__data__}function y9e(e,r){if(!arguments.length)return Array.from(this,g9e);var n=r?m9e:f9e,o=this._parents,a=this._groups;typeof e!="function"&&(e=h9e(e));for(var i=a.length,l=new Array(i),s=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],p=a[u],f=p.length,g=b9e(e.call(d,d&&d.__data__,u,o)),b=g.length,x=s[u]=new Array(b),w=l[u]=new Array(b),k=c[u]=new Array(f);n(d,p,x,w,k,g,r);for(var C=0,_=0,T,R;C<b;++C)if(T=x[C]){for(C>=_&&(_=C+1);!(R=w[_])&&++_<b;);T._next=R||null}}return l=new Sa(l,o),l._enter=s,l._exit=c,l}function b9e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function v9e(){return new Sa(this._exit||this._groups.map(iF),this._parents)}function x9e(e,r,n){var o=this.enter(),a=this,i=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),r!=null&&(a=r(a),a&&(a=a.selection())),n==null?i.remove():n(i),o&&a?o.merge(a).order():a}function w9e(e){for(var r=e.selection?e.selection():e,n=this._groups,o=r._groups,a=n.length,i=o.length,l=Math.min(a,i),s=new Array(a),c=0;c<l;++c)for(var u=n[c],d=o[c],p=u.length,f=s[c]=new Array(p),g,b=0;b<p;++b)(g=u[b]||d[b])&&(f[b]=g);for(;c<a;++c)s[c]=n[c];return new Sa(s,this._parents)}function k9e(){for(var e=this._groups,r=-1,n=e.length;++r<n;)for(var o=e[r],a=o.length-1,i=o[a],l;--a>=0;)(l=o[a])&&(i&&l.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(l,i),i=l);return this}function _9e(e){e||(e=E9e);function r(p,f){return p&&f?e(p.__data__,f.__data__):!p-!f}for(var n=this._groups,o=n.length,a=new Array(o),i=0;i<o;++i){for(var l=n[i],s=l.length,c=a[i]=new Array(s),u,d=0;d<s;++d)(u=l[d])&&(c[d]=u);c.sort(r)}return new Sa(a,this._parents).order()}function E9e(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function S9e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function C9e(){return Array.from(this)}function T9e(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length;a<i;++a){var l=o[a];if(l)return l}return null}function R9e(){let e=0;for(const r of this)++e;return e}function A9e(){return!this.node()}function N9e(e){for(var r=this._groups,n=0,o=r.length;n<o;++n)for(var a=r[n],i=0,l=a.length,s;i<l;++i)(s=a[i])&&e.call(s,s.__data__,i,a);return this}function D9e(e){return function(){this.removeAttribute(e)}}function P9e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $9e(e,r){return function(){this.setAttribute(e,r)}}function M9e(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function O9e(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function I9e(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function z9e(e,r){var n=J3(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((r==null?n.local?P9e:D9e:typeof r=="function"?n.local?I9e:O9e:n.local?M9e:$9e)(n,r))}function lF(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function L9e(e){return function(){this.style.removeProperty(e)}}function B9e(e,r,n){return function(){this.style.setProperty(e,r,n)}}function j9e(e,r,n){return function(){var o=r.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function F9e(e,r,n){return arguments.length>1?this.each((r==null?L9e:typeof r=="function"?j9e:B9e)(e,r,n??"")):of(this.node(),e)}function of(e,r){return e.style.getPropertyValue(r)||lF(e).getComputedStyle(e,null).getPropertyValue(r)}function H9e(e){return function(){delete this[e]}}function q9e(e,r){return function(){this[e]=r}}function U9e(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function V9e(e,r){return arguments.length>1?this.each((r==null?H9e:typeof r=="function"?U9e:q9e)(e,r)):this.node()[e]}function sF(e){return e.trim().split(/^|\s+/)}function sE(e){return e.classList||new cF(e)}function cF(e){this._node=e,this._names=sF(e.getAttribute("class")||"")}cF.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function uF(e,r){for(var n=sE(e),o=-1,a=r.length;++o<a;)n.add(r[o])}function dF(e,r){for(var n=sE(e),o=-1,a=r.length;++o<a;)n.remove(r[o])}function Y9e(e){return function(){uF(this,e)}}function W9e(e){return function(){dF(this,e)}}function G9e(e,r){return function(){(r.apply(this,arguments)?uF:dF)(this,e)}}function X9e(e,r){var n=sF(e+"");if(arguments.length<2){for(var o=sE(this.node()),a=-1,i=n.length;++a<i;)if(!o.contains(n[a]))return!1;return!0}return this.each((typeof r=="function"?G9e:r?Y9e:W9e)(n,r))}function K9e(){this.textContent=""}function Z9e(e){return function(){this.textContent=e}}function Q9e(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function J9e(e){return arguments.length?this.each(e==null?K9e:(typeof e=="function"?Q9e:Z9e)(e)):this.node().textContent}function e7e(){this.innerHTML=""}function t7e(e){return function(){this.innerHTML=e}}function r7e(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function n7e(e){return arguments.length?this.each(e==null?e7e:(typeof e=="function"?r7e:t7e)(e)):this.node().innerHTML}function o7e(){this.nextSibling&&this.parentNode.appendChild(this)}function a7e(){return this.each(o7e)}function i7e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function l7e(){return this.each(i7e)}function s7e(e){var r=typeof e=="function"?e:rF(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function c7e(){return null}function u7e(e,r){var n=typeof e=="function"?e:rF(e),o=r==null?c7e:typeof r=="function"?r:lE(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function d7e(){var e=this.parentNode;e&&e.removeChild(this)}function p7e(){return this.each(d7e)}function h7e(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function f7e(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function m7e(e){return this.select(e?f7e:h7e)}function g7e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function y7e(e){return function(r){e.call(this,r,this.__data__)}}function b7e(e){return e.trim().split(/^|\s+/).map(function(r){var n="",o=r.indexOf(".");return o>=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function v7e(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n<a;++n)i=r[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):r[++o]=i;++o?r.length=o:delete this.__on}}}function x7e(e,r,n){return function(){var o=this.__on,a,i=y7e(r);if(o){for(var l=0,s=o.length;l<s;++l)if((a=o[l]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=n),a.value=r;return}}this.addEventListener(e.type,i,n),a={type:e.type,name:e.name,value:r,listener:i,options:n},o?o.push(a):this.__on=[a]}}function w7e(e,r,n){var o=b7e(e+""),a,i=o.length,l;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,d;c<u;++c)for(a=0,d=s[c];a<i;++a)if((l=o[a]).type===d.type&&l.name===d.name)return d.value}return}for(s=r?x7e:v7e,a=0;a<i;++a)this.each(s(o[a],r,n));return this}function pF(e,r,n){var o=lF(e),a=o.CustomEvent;typeof a=="function"?a=new a(r,n):(a=o.document.createEvent("Event"),n?(a.initEvent(r,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(r,!1,!1)),e.dispatchEvent(a)}function k7e(e,r){return function(){return pF(this,e,r)}}function _7e(e,r){return function(){return pF(this,e,r.apply(this,arguments))}}function E7e(e,r){return this.each((typeof r=="function"?_7e:k7e)(e,r))}function*S7e(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length,l;a<i;++a)(l=o[a])&&(yield l)}var hF=[null];function Sa(e,r){this._groups=e,this._parents=r}function u0(){return new Sa([[document.documentElement]],hF)}function C7e(){return this}Sa.prototype=u0.prototype={constructor:Sa,select:QEe,selectAll:r9e,selectChild:i9e,selectChildren:u9e,filter:d9e,data:y9e,enter:p9e,exit:v9e,join:x9e,merge:w9e,selection:C7e,order:k9e,sort:_9e,call:S9e,nodes:C9e,node:T9e,size:R9e,empty:A9e,each:N9e,attr:z9e,style:F9e,property:V9e,classed:X9e,text:J9e,html:n7e,raise:a7e,lower:l7e,append:s7e,insert:u7e,remove:p7e,clone:m7e,datum:g7e,on:w7e,dispatch:E7e,[Symbol.iterator]:S7e};function Ca(e){return typeof e=="string"?new Sa([[document.querySelector(e)]],[document.documentElement]):new Sa([[e]],hF)}function T7e(e){let r;for(;r=e.sourceEvent;)e=r;return e}function Yi(e,r){if(e=T7e(e),r===void 0&&(r=e.currentTarget),r){var n=r.ownerSVGElement||r;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(r.getScreenCTM().inverse()),[o.x,o.y]}if(r.getBoundingClientRect){var a=r.getBoundingClientRect();return[e.clientX-a.left-r.clientLeft,e.clientY-a.top-r.clientTop]}}return[e.pageX,e.pageY]}const R7e={passive:!1},d0={capture:!0,passive:!1};function cE(e){e.stopImmediatePropagation()}function af(e){e.preventDefault(),e.stopImmediatePropagation()}function fF(e){var r=e.document.documentElement,n=Ca(e).on("dragstart.drag",af,d0);"onselectstart"in r?n.on("selectstart.drag",af,d0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function mF(e,r){var n=e.document.documentElement,o=Ca(e).on("dragstart.drag",null);r&&(o.on("click.drag",af,d0),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const tx=e=>()=>e;function uE(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:l,y:s,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}uE.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function A7e(e){return!e.ctrlKey&&!e.button}function N7e(){return this.parentNode}function D7e(e,r){return r??{x:e.x,y:e.y}}function P7e(){return navigator.maxTouchPoints||"ontouchstart"in this}function gF(){var e=A7e,r=N7e,n=D7e,o=P7e,a={},i=Z3("start","drag","end"),l=0,s,c,u,d,p=0;function f(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,R7e).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,R){if(!(d||!e.call(this,T,R))){var A=_(this,r.call(this,T,R),T,R,"mouse");A&&(Ca(T.view).on("mousemove.drag",b,d0).on("mouseup.drag",x,d0),fF(T.view),cE(T),u=!1,s=T.clientX,c=T.clientY,A("start",T))}}function b(T){if(af(T),!u){var R=T.clientX-s,A=T.clientY-c;u=R*R+A*A>p}a.mouse("drag",T)}function x(T){Ca(T.view).on("mousemove.drag mouseup.drag",null),mF(T.view,u),af(T),a.mouse("end",T)}function w(T,R){if(e.call(this,T,R)){var A=T.changedTouches,D=r.call(this,T,R),N=A.length,$,O;for($=0;$<N;++$)(O=_(this,D,T,R,A[$].identifier,A[$]))&&(cE(T),O("start",T,A[$]))}}function k(T){var R=T.changedTouches,A=R.length,D,N;for(D=0;D<A;++D)(N=a[R[D].identifier])&&(af(T),N("drag",T,R[D]))}function C(T){var R=T.changedTouches,A=R.length,D,N;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),D=0;D<A;++D)(N=a[R[D].identifier])&&(cE(T),N("end",T,R[D]))}function _(T,R,A,D,N,$){var O=i.copy(),j=Yi($||A,R),L,Y,M;if((M=n.call(T,new uE("beforestart",{sourceEvent:A,target:f,identifier:N,active:l,x:j[0],y:j[1],dx:0,dy:0,dispatch:O}),D))!=null)return L=M.x-j[0]||0,Y=M.y-j[1]||0,function q(z,H,U){var K=j,V;switch(z){case"start":a[N]=q,V=l++;break;case"end":delete a[N],--l;case"drag":j=Yi(U||H,R),V=l;break}O.call(z,T,new uE(z,{sourceEvent:H,subject:M,target:f,identifier:N,active:V,x:j[0]+L,y:j[1]+Y,dx:j[0]-K[0],dy:j[1]-K[1],dispatch:O}),D)}}return f.filter=function(T){return arguments.length?(e=typeof T=="function"?T:tx(!!T),f):e},f.container=function(T){return arguments.length?(r=typeof T=="function"?T:tx(T),f):r},f.subject=function(T){return arguments.length?(n=typeof T=="function"?T:tx(T),f):n},f.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:tx(!!T),f):o},f.on=function(){var T=i.on.apply(i,arguments);return T===i?f:T},f.clickDistance=function(T){return arguments.length?(p=(T=+T)*T,f):Math.sqrt(p)},f}function dE(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function yF(e,r){var n=Object.create(e.prototype);for(var o in r)n[o]=r[o];return n}function p0(){}var h0=.7,rx=1/h0,lf="\\s*([+-]?\\d+)\\s*",f0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ql="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$7e=/^#([0-9a-f]{3,8})$/,M7e=new RegExp(`^rgb\\(${lf},${lf},${lf}\\)$`),O7e=new RegExp(`^rgb\\(${Ql},${Ql},${Ql}\\)$`),I7e=new RegExp(`^rgba\\(${lf},${lf},${lf},${f0}\\)$`),z7e=new RegExp(`^rgba\\(${Ql},${Ql},${Ql},${f0}\\)$`),L7e=new RegExp(`^hsl\\(${f0},${Ql},${Ql}\\)$`),B7e=new RegExp(`^hsla\\(${f0},${Ql},${Ql},${f0}\\)$`),bF={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};dE(p0,Vd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:vF,formatHex:vF,formatHex8:j7e,formatHsl:F7e,formatRgb:xF,toString:xF});function vF(){return this.rgb().formatHex()}function j7e(){return this.rgb().formatHex8()}function F7e(){return SF(this).formatHsl()}function xF(){return this.rgb().formatRgb()}function Vd(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=$7e.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?wF(r):n===3?new ea(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?nx(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?nx(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=M7e.exec(e))?new ea(r[1],r[2],r[3],1):(r=O7e.exec(e))?new ea(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=I7e.exec(e))?nx(r[1],r[2],r[3],r[4]):(r=z7e.exec(e))?nx(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=L7e.exec(e))?EF(r[1],r[2]/100,r[3]/100,1):(r=B7e.exec(e))?EF(r[1],r[2]/100,r[3]/100,r[4]):bF.hasOwnProperty(e)?wF(bF[e]):e==="transparent"?new ea(NaN,NaN,NaN,0):null}function wF(e){return new ea(e>>16&255,e>>8&255,e&255,1)}function nx(e,r,n,o){return o<=0&&(e=r=n=NaN),new ea(e,r,n,o)}function H7e(e){return e instanceof p0||(e=Vd(e)),e?(e=e.rgb(),new ea(e.r,e.g,e.b,e.opacity)):new ea}function pE(e,r,n,o){return arguments.length===1?H7e(e):new ea(e,r,n,o??1)}function ea(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}dE(ea,pE,yF(p0,{brighter(e){return e=e==null?rx:Math.pow(rx,e),new ea(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?h0:Math.pow(h0,e),new ea(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ea(Yd(this.r),Yd(this.g),Yd(this.b),ox(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:kF,formatHex:kF,formatHex8:q7e,formatRgb:_F,toString:_F}));function kF(){return`#${Wd(this.r)}${Wd(this.g)}${Wd(this.b)}`}function q7e(){return`#${Wd(this.r)}${Wd(this.g)}${Wd(this.b)}${Wd((isNaN(this.opacity)?1:this.opacity)*255)}`}function _F(){const e=ox(this.opacity);return`${e===1?"rgb(":"rgba("}${Yd(this.r)}, ${Yd(this.g)}, ${Yd(this.b)}${e===1?")":`, ${e})`}`}function ox(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wd(e){return e=Yd(e),(e<16?"0":"")+e.toString(16)}function EF(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new Wi(e,r,n,o)}function SF(e){if(e instanceof Wi)return new Wi(e.h,e.s,e.l,e.opacity);if(e instanceof p0||(e=Vd(e)),!e)return new Wi;if(e instanceof Wi)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),l=NaN,s=i-a,c=(i+a)/2;return s?(r===i?l=(n-o)/s+(n<o)*6:n===i?l=(o-r)/s+2:l=(r-n)/s+4,s/=c<.5?i+a:2-i-a,l*=60):s=c>0&&c<1?0:l,new Wi(l,s,c,e.opacity)}function U7e(e,r,n,o){return arguments.length===1?SF(e):new Wi(e,r,n,o??1)}function Wi(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}dE(Wi,U7e,yF(p0,{brighter(e){return e=e==null?rx:Math.pow(rx,e),new Wi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?h0:Math.pow(h0,e),new Wi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new ea(hE(e>=240?e-240:e+120,a,o),hE(e,a,o),hE(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new Wi(CF(this.h),ax(this.s),ax(this.l),ox(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ox(this.opacity);return`${e===1?"hsl(":"hsla("}${CF(this.h)}, ${ax(this.s)*100}%, ${ax(this.l)*100}%${e===1?")":`, ${e})`}`}}));function CF(e){return e=(e||0)%360,e<0?e+360:e}function ax(e){return Math.max(0,Math.min(1,e||0))}function hE(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const fE=e=>()=>e;function V7e(e,r){return function(n){return e+n*r}}function Y7e(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function W7e(e){return(e=+e)==1?TF:function(r,n){return n-r?Y7e(r,n,e):fE(isNaN(r)?n:r)}}function TF(e,r){var n=r-e;return n?V7e(e,n):fE(isNaN(e)?r:e)}const ix=(function e(r){var n=W7e(r);function o(a,i){var l=n((a=pE(a)).r,(i=pE(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=TF(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=s(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function G7e(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;a<n;++a)o[a]=e[a]*(1-i)+r[a]*i;return o}}function X7e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function K7e(e,r){var n=r?r.length:0,o=e?Math.min(n,e.length):0,a=new Array(o),i=new Array(n),l;for(l=0;l<o;++l)a[l]=m0(e[l],r[l]);for(;l<n;++l)i[l]=r[l];return function(s){for(l=0;l<o;++l)i[l]=a[l](s);return i}}function Z7e(e,r){var n=new Date;return e=+e,r=+r,function(o){return n.setTime(e*(1-o)+r*o),n}}function Jl(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}function Q7e(e,r){var n={},o={},a;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(a in r)a in e?n[a]=m0(e[a],r[a]):o[a]=r[a];return function(i){for(a in n)o[a]=n[a](i);return o}}var mE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gE=new RegExp(mE.source,"g");function J7e(e){return function(){return e}}function eSe(e){return function(r){return e(r)+""}}function RF(e,r){var n=mE.lastIndex=gE.lastIndex=0,o,a,i,l=-1,s=[],c=[];for(e=e+"",r=r+"";(o=mE.exec(e))&&(a=gE.exec(r));)(i=a.index)>n&&(i=r.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(o=o[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:Jl(o,a)})),n=gE.lastIndex;return n<r.length&&(i=r.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?eSe(c[0].x):J7e(r):(r=c.length,function(u){for(var d=0,p;d<r;++d)s[(p=c[d]).i]=p.x(u);return s.join("")})}function m0(e,r){var n=typeof r,o;return r==null||n==="boolean"?fE(r):(n==="number"?Jl:n==="string"?(o=Vd(r))?(r=o,ix):RF:r instanceof Vd?ix:r instanceof Date?Z7e:X7e(r)?G7e:Array.isArray(r)?K7e:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q7e:Jl)(e,r)}var AF=180/Math.PI,NF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function DF(e,r,n,o,a,i){var l,s,c;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(c=e*n+r*o)&&(n-=e*c,o-=r*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<r*n&&(e=-e,r=-r,c=-c,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(r,e)*AF,skewX:Math.atan(c)*AF,scaleX:l,scaleY:s}}var lx;function tSe(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?NF:DF(r.a,r.b,r.c,r.d,r.e,r.f)}function rSe(e){return e==null||(lx||(lx=document.createElementNS("http://www.w3.org/2000/svg","g")),lx.setAttribute("transform",e),!(e=lx.transform.baseVal.consolidate()))?NF:(e=e.matrix,DF(e.a,e.b,e.c,e.d,e.e,e.f))}function PF(e,r,n,o){function a(u){return u.length?u.pop()+" ":""}function i(u,d,p,f,g,b){if(u!==p||d!==f){var x=g.push("translate(",null,r,null,n);b.push({i:x-4,x:Jl(u,p)},{i:x-2,x:Jl(d,f)})}else(p||f)&&g.push("translate("+p+r+f+n)}function l(u,d,p,f){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),f.push({i:p.push(a(p)+"rotate(",null,o)-2,x:Jl(u,d)})):d&&p.push(a(p)+"rotate("+d+o)}function s(u,d,p,f){u!==d?f.push({i:p.push(a(p)+"skewX(",null,o)-2,x:Jl(u,d)}):d&&p.push(a(p)+"skewX("+d+o)}function c(u,d,p,f,g,b){if(u!==p||d!==f){var x=g.push(a(g)+"scale(",null,",",null,")");b.push({i:x-4,x:Jl(u,p)},{i:x-2,x:Jl(d,f)})}else(p!==1||f!==1)&&g.push(a(g)+"scale("+p+","+f+")")}return function(u,d){var p=[],f=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,p,f),l(u.rotate,d.rotate,p,f),s(u.skewX,d.skewX,p,f),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,p,f),u=d=null,function(g){for(var b=-1,x=f.length,w;++b<x;)p[(w=f[b]).i]=w.x(g);return p.join("")}}}var nSe=PF(tSe,"px, ","px)","deg)"),oSe=PF(rSe,", ",")",")"),aSe=1e-12;function $F(e){return((e=Math.exp(e))+1/e)/2}function iSe(e){return((e=Math.exp(e))-1/e)/2}function lSe(e){return((e=Math.exp(2*e))-1)/(e+1)}const sx=(function e(r,n,o){function a(i,l){var s=i[0],c=i[1],u=i[2],d=l[0],p=l[1],f=l[2],g=d-s,b=p-c,x=g*g+b*b,w,k;if(x<aSe)k=Math.log(f/u)/r,w=function(D){return[s+D*g,c+D*b,u*Math.exp(r*D*k)]};else{var C=Math.sqrt(x),_=(f*f-u*u+o*x)/(2*u*n*C),T=(f*f-u*u-o*x)/(2*f*n*C),R=Math.log(Math.sqrt(_*_+1)-_),A=Math.log(Math.sqrt(T*T+1)-T);k=(A-R)/r,w=function(D){var N=D*k,$=$F(R),O=u/(n*C)*($*lSe(r*N+R)-iSe(R));return[s+O*g,c+O*b,u*$/$F(r*N+R)]}}return w.duration=k*1e3*r/Math.SQRT2,w}return a.rho=function(i){var l=Math.max(.001,+i),s=l*l,c=s*s;return e(l,s,c)},a})(Math.SQRT2,2,4);var sf=0,g0=0,y0=0,MF=1e3,cx,b0,ux=0,Gd=0,dx=0,v0=typeof performance=="object"&&performance.now?performance:Date,OF=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function yE(){return Gd||(OF(sSe),Gd=v0.now()+dx)}function sSe(){Gd=0}function px(){this._call=this._time=this._next=null}px.prototype=IF.prototype={constructor:px,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?yE():+n)+(r==null?0:+r),!this._next&&b0!==this&&(b0?b0._next=this:cx=this,b0=this),this._call=e,this._time=n,bE()},stop:function(){this._call&&(this._call=null,this._time=1/0,bE())}};function IF(e,r,n){var o=new px;return o.restart(e,r,n),o}function cSe(){yE(),++sf;for(var e=cx,r;e;)(r=Gd-e._time)>=0&&e._call.call(void 0,r),e=e._next;--sf}function zF(){Gd=(ux=v0.now())+dx,sf=g0=0;try{cSe()}finally{sf=0,dSe(),Gd=0}}function uSe(){var e=v0.now(),r=e-ux;r>MF&&(dx-=r,ux=e)}function dSe(){for(var e,r=cx,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:cx=n);b0=e,bE(o)}function bE(e){if(!sf){g0&&(g0=clearTimeout(g0));var r=e-Gd;r>24?(e<1/0&&(g0=setTimeout(zF,e-v0.now()-dx)),y0&&(y0=clearInterval(y0))):(y0||(ux=v0.now(),y0=setInterval(uSe,MF)),sf=1,OF(zF))}}function LF(e,r,n){var o=new px;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var pSe=Z3("start","end","cancel","interrupt"),hSe=[],BF=0,jF=1,vE=2,hx=3,FF=4,xE=5,fx=6;function mx(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;fSe(e,n,{name:r,index:o,group:a,on:pSe,tween:hSe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:BF})}function wE(e,r){var n=Gi(e,r);if(n.state>BF)throw new Error("too late; already scheduled");return n}function es(e,r){var n=Gi(e,r);if(n.state>hx)throw new Error("too late; already running");return n}function Gi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function fSe(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=IF(i,0,n.time);function i(u){n.state=jF,n.timer.restart(l,n.delay,n.time),n.delay<=u&&l(u-n.delay)}function l(u){var d,p,f,g;if(n.state!==jF)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===hx)return LF(l);g.state===FF?(g.state=fx,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+d<r&&(g.state=fx,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[d])}if(LF(function(){n.state===hx&&(n.state=FF,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=vE,n.on.call("start",e,e.__data__,n.index,n.group),n.state===vE){for(n.state=hx,a=new Array(f=n.tween.length),d=0,p=-1;d<f;++d)(g=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++p]=g);a.length=p+1}}function s(u){for(var d=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=xE,1),p=-1,f=a.length;++p<f;)a[p].call(e,d);n.state===xE&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=fx,n.timer.stop(),delete o[r];for(var u in o)return;delete e.__transition}}function gx(e,r){var n=e.__transition,o,a,i=!0,l;if(n){r=r==null?null:r+"";for(l in n){if((o=n[l]).name!==r){i=!1;continue}a=o.state>vE&&o.state<xE,o.state=fx,o.timer.stop(),o.on.call(a?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[l]}i&&delete e.__transition}}function mSe(e){return this.each(function(){gx(this,e)})}function gSe(e,r){var n,o;return function(){var a=es(this,e),i=a.tween;if(i!==n){o=n=i;for(var l=0,s=o.length;l<s;++l)if(o[l].name===r){o=o.slice(),o.splice(l,1);break}}a.tween=o}}function ySe(e,r,n){var o,a;if(typeof n!="function")throw new Error;return function(){var i=es(this,e),l=i.tween;if(l!==o){a=(o=l).slice();for(var s={name:r,value:n},c=0,u=a.length;c<u;++c)if(a[c].name===r){a[c]=s;break}c===u&&a.push(s)}i.tween=a}}function bSe(e,r){var n=this._id;if(e+="",arguments.length<2){for(var o=Gi(this.node(),n).tween,a=0,i=o.length,l;a<i;++a)if((l=o[a]).name===e)return l.value;return null}return this.each((r==null?gSe:ySe)(n,e,r))}function kE(e,r,n){var o=e._id;return e.each(function(){var a=es(this,o);(a.value||(a.value={}))[r]=n.apply(this,arguments)}),function(a){return Gi(a,o).value[r]}}function HF(e,r){var n;return(typeof r=="number"?Jl:r instanceof Vd?ix:(n=Vd(r))?(r=n,ix):RF)(e,r)}function vSe(e){return function(){this.removeAttribute(e)}}function xSe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wSe(e,r,n){var o,a=n+"",i;return function(){var l=this.getAttribute(e);return l===a?null:l===o?i:i=r(o=l,n)}}function kSe(e,r,n){var o,a=n+"",i;return function(){var l=this.getAttributeNS(e.space,e.local);return l===a?null:l===o?i:i=r(o=l,n)}}function _Se(e,r,n){var o,a,i;return function(){var l,s=n(this),c;return s==null?void this.removeAttribute(e):(l=this.getAttribute(e),c=s+"",l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s)))}}function ESe(e,r,n){var o,a,i;return function(){var l,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),c=s+"",l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s)))}}function SSe(e,r){var n=J3(e),o=n==="transform"?oSe:HF;return this.attrTween(e,typeof r=="function"?(n.local?ESe:_Se)(n,o,kE(this,"attr."+e,r)):r==null?(n.local?xSe:vSe)(n):(n.local?kSe:wSe)(n,o,r))}function CSe(e,r){return function(n){this.setAttribute(e,r.call(this,n))}}function TSe(e,r){return function(n){this.setAttributeNS(e.space,e.local,r.call(this,n))}}function RSe(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&TSe(e,i)),n}return a._value=r,a}function ASe(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&CSe(e,i)),n}return a._value=r,a}function NSe(e,r){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;var o=J3(e);return this.tween(n,(o.local?RSe:ASe)(o,r))}function DSe(e,r){return function(){wE(this,e).delay=+r.apply(this,arguments)}}function PSe(e,r){return r=+r,function(){wE(this,e).delay=r}}function $Se(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?DSe:PSe)(r,e)):Gi(this.node(),r).delay}function MSe(e,r){return function(){es(this,e).duration=+r.apply(this,arguments)}}function OSe(e,r){return r=+r,function(){es(this,e).duration=r}}function ISe(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?MSe:OSe)(r,e)):Gi(this.node(),r).duration}function zSe(e,r){if(typeof r!="function")throw new Error;return function(){es(this,e).ease=r}}function LSe(e){var r=this._id;return arguments.length?this.each(zSe(r,e)):Gi(this.node(),r).ease}function BSe(e,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;es(this,e).ease=n}}function jSe(e){if(typeof e!="function")throw new Error;return this.each(BSe(this._id,e))}function FSe(e){typeof e!="function"&&(e=oF(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],l=i.length,s=o[a]=[],c,u=0;u<l;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&s.push(c);return new Hs(o,this._parents,this._name,this._id)}function HSe(e){if(e._id!==this._id)throw new Error;for(var r=this._groups,n=e._groups,o=r.length,a=n.length,i=Math.min(o,a),l=new Array(o),s=0;s<i;++s)for(var c=r[s],u=n[s],d=c.length,p=l[s]=new Array(d),f,g=0;g<d;++g)(f=c[g]||u[g])&&(p[g]=f);for(;s<o;++s)l[s]=r[s];return new Hs(l,this._parents,this._name,this._id)}function qSe(e){return(e+"").trim().split(/^|\s+/).every(function(r){var n=r.indexOf(".");return n>=0&&(r=r.slice(0,n)),!r||r==="start"})}function USe(e,r,n){var o,a,i=qSe(r)?wE:es;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function VSe(e,r){var n=this._id;return arguments.length<2?Gi(this.node(),n).on.on(e):this.each(USe(n,e,r))}function YSe(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function WSe(){return this.on("end.remove",YSe(this._id))}function GSe(e){var r=this._name,n=this._id;typeof e!="function"&&(e=lE(e));for(var o=this._groups,a=o.length,i=new Array(a),l=0;l<a;++l)for(var s=o[l],c=s.length,u=i[l]=new Array(c),d,p,f=0;f<c;++f)(d=s[f])&&(p=e.call(d,d.__data__,f,s))&&("__data__"in d&&(p.__data__=d.__data__),u[f]=p,mx(u[f],r,n,f,u,Gi(d,n)));return new Hs(i,this._parents,r,n)}function XSe(e){var r=this._name,n=this._id;typeof e!="function"&&(e=nF(e));for(var o=this._groups,a=o.length,i=[],l=[],s=0;s<a;++s)for(var c=o[s],u=c.length,d,p=0;p<u;++p)if(d=c[p]){for(var f=e.call(d,d.__data__,p,c),g,b=Gi(d,n),x=0,w=f.length;x<w;++x)(g=f[x])&&mx(g,r,n,x,f,b);i.push(f),l.push(d)}return new Hs(i,l,r,n)}var KSe=u0.prototype.constructor;function ZSe(){return new KSe(this._groups,this._parents)}function QSe(e,r){var n,o,a;return function(){var i=of(this,e),l=(this.style.removeProperty(e),of(this,e));return i===l?null:i===n&&l===o?a:a=r(n=i,o=l)}}function qF(e){return function(){this.style.removeProperty(e)}}function JSe(e,r,n){var o,a=n+"",i;return function(){var l=of(this,e);return l===a?null:l===o?i:i=r(o=l,n)}}function eCe(e,r,n){var o,a,i;return function(){var l=of(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),of(this,e))),l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s))}}function tCe(e,r){var n,o,a,i="style."+r,l="end."+i,s;return function(){var c=es(this,e),u=c.on,d=c.value[i]==null?s||(s=qF(r)):void 0;(u!==n||a!==d)&&(o=(n=u).copy()).on(l,a=d),c.on=o}}function rCe(e,r,n){var o=(e+="")=="transform"?nSe:HF;return r==null?this.styleTween(e,QSe(e,o)).on("end.style."+e,qF(e)):typeof r=="function"?this.styleTween(e,eCe(e,o,kE(this,"style."+e,r))).each(tCe(this._id,e)):this.styleTween(e,JSe(e,o,r),n).on("end.style."+e,null)}function nCe(e,r,n){return function(o){this.style.setProperty(e,r.call(this,o),n)}}function oCe(e,r,n){var o,a;function i(){var l=r.apply(this,arguments);return l!==a&&(o=(a=l)&&nCe(e,l,n)),o}return i._value=r,i}function aCe(e,r,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(r==null)return this.tween(o,null);if(typeof r!="function")throw new Error;return this.tween(o,oCe(e,r,n??""))}function iCe(e){return function(){this.textContent=e}}function lCe(e){return function(){var r=e(this);this.textContent=r??""}}function sCe(e){return this.tween("text",typeof e=="function"?lCe(kE(this,"text",e)):iCe(e==null?"":e+""))}function cCe(e){return function(r){this.textContent=e.call(this,r)}}function uCe(e){var r,n;function o(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&cCe(a)),r}return o._value=e,o}function dCe(e){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,uCe(e))}function pCe(){for(var e=this._name,r=this._id,n=UF(),o=this._groups,a=o.length,i=0;i<a;++i)for(var l=o[i],s=l.length,c,u=0;u<s;++u)if(c=l[u]){var d=Gi(c,r);mx(c,e,n,u,l,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Hs(o,this._parents,e,n)}function hCe(){var e,r,n=this,o=n._id,a=n.size();return new Promise(function(i,l){var s={value:l},c={value:function(){--a===0&&i()}};n.each(function(){var u=es(this,o),d=u.on;d!==e&&(r=(e=d).copy(),r._.cancel.push(s),r._.interrupt.push(s),r._.end.push(c)),u.on=r}),a===0&&i()})}var fCe=0;function Hs(e,r,n,o){this._groups=e,this._parents=r,this._name=n,this._id=o}function UF(){return++fCe}var qs=u0.prototype;Hs.prototype={constructor:Hs,select:GSe,selectAll:XSe,selectChild:qs.selectChild,selectChildren:qs.selectChildren,filter:FSe,merge:HSe,selection:ZSe,transition:pCe,call:qs.call,nodes:qs.nodes,node:qs.node,size:qs.size,empty:qs.empty,each:qs.each,on:VSe,attr:SSe,attrTween:NSe,style:rCe,styleTween:aCe,text:sCe,textTween:dCe,remove:WSe,tween:bSe,delay:$Se,duration:ISe,ease:LSe,easeVarying:jSe,end:hCe,[Symbol.iterator]:qs[Symbol.iterator]};function mCe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var gCe={time:null,delay:0,duration:250,ease:mCe};function yCe(e,r){for(var n;!(n=e.__transition)||!(n=n[r]);)if(!(e=e.parentNode))throw new Error(`transition ${r} not found`);return n}function bCe(e){var r,n;e instanceof Hs?(r=e._id,e=e._name):(r=UF(),(n=gCe).time=yE(),e=e==null?null:e+"");for(var o=this._groups,a=o.length,i=0;i<a;++i)for(var l=o[i],s=l.length,c,u=0;u<s;++u)(c=l[u])&&mx(c,e,r,u,l,n||yCe(c,r));return new Hs(o,this._parents,e,r)}u0.prototype.interrupt=mSe,u0.prototype.transition=bCe;const yx=e=>()=>e;function vCe(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Us(e,r,n){this.k=e,this.x=r,this.y=n}Us.prototype={constructor:Us,scale:function(e){return e===1?this:new Us(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Us(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var bx=new Us(1,0,0);VF.prototype=Us.prototype;function VF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return bx;return e.__zoom}function _E(e){e.stopImmediatePropagation()}function x0(e){e.preventDefault(),e.stopImmediatePropagation()}function xCe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wCe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function YF(){return this.__zoom||bx}function kCe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function _Ce(){return navigator.maxTouchPoints||"ontouchstart"in this}function ECe(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],l=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l))}function WF(){var e=xCe,r=wCe,n=ECe,o=kCe,a=_Ce,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=sx,u=Z3("start","zoom","end"),d,p,f,g=500,b=150,x=0,w=10;function k(M){M.property("__zoom",YF).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",j).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(M,q,z,H){var U=M.selection?M.selection():M;U.property("__zoom",YF),M!==U?R(M,q,z,H):U.interrupt().each(function(){A(this,arguments).event(H).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},k.scaleBy=function(M,q,z,H){k.scaleTo(M,function(){var U=this.__zoom.k,K=typeof q=="function"?q.apply(this,arguments):q;return U*K},z,H)},k.scaleTo=function(M,q,z,H){k.transform(M,function(){var U=r.apply(this,arguments),K=this.__zoom,V=z==null?T(U):typeof z=="function"?z.apply(this,arguments):z,X=K.invert(V),Z=typeof q=="function"?q.apply(this,arguments):q;return n(_(C(K,Z),V,X),U,l)},z,H)},k.translateBy=function(M,q,z,H){k.transform(M,function(){return n(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof z=="function"?z.apply(this,arguments):z),r.apply(this,arguments),l)},null,H)},k.translateTo=function(M,q,z,H,U){k.transform(M,function(){var K=r.apply(this,arguments),V=this.__zoom,X=H==null?T(K):typeof H=="function"?H.apply(this,arguments):H;return n(bx.translate(X[0],X[1]).scale(V.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof z=="function"?-z.apply(this,arguments):-z),K,l)},H,U)};function C(M,q){return q=Math.max(i[0],Math.min(i[1],q)),q===M.k?M:new Us(q,M.x,M.y)}function _(M,q,z){var H=q[0]-z[0]*M.k,U=q[1]-z[1]*M.k;return H===M.x&&U===M.y?M:new Us(M.k,H,U)}function T(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function R(M,q,z,H){M.on("start.zoom",function(){A(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(H).end()}).tween("zoom",function(){var U=this,K=arguments,V=A(U,K).event(H),X=r.apply(U,K),Z=z==null?T(X):typeof z=="function"?z.apply(U,K):z,B=Math.max(X[1][0]-X[0][0],X[1][1]-X[0][1]),W=U.__zoom,Q=typeof q=="function"?q.apply(U,K):q,J=c(W.invert(Z).concat(B/W.k),Q.invert(Z).concat(B/Q.k));return function(ne){if(ne===1)ne=Q;else{var te=J(ne),ee=B/te[2];ne=new Us(ee,Z[0]-te[0]*ee,Z[1]-te[1]*ee)}V.zoom(null,ne)}})}function A(M,q,z){return!z&&M.__zooming||new D(M,q)}function D(M,q){this.that=M,this.args=q,this.active=0,this.sourceEvent=null,this.extent=r.apply(M,q),this.taps=0}D.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,q){return this.mouse&&M!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var q=Ca(this.that).datum();u.call(M,this.that,new vCe(M,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),q)}};function N(M,...q){if(!e.apply(this,arguments))return;var z=A(this,q).event(M),H=this.__zoom,U=Math.max(i[0],Math.min(i[1],H.k*Math.pow(2,o.apply(this,arguments)))),K=Yi(M);if(z.wheel)(z.mouse[0][0]!==K[0]||z.mouse[0][1]!==K[1])&&(z.mouse[1]=H.invert(z.mouse[0]=K)),clearTimeout(z.wheel);else{if(H.k===U)return;z.mouse=[K,H.invert(K)],gx(this),z.start()}x0(M),z.wheel=setTimeout(V,b),z.zoom("mouse",n(_(C(H,U),z.mouse[0],z.mouse[1]),z.extent,l));function V(){z.wheel=null,z.end()}}function $(M,...q){if(f||!e.apply(this,arguments))return;var z=M.currentTarget,H=A(this,q,!0).event(M),U=Ca(M.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",B,!0),K=Yi(M,z),V=M.clientX,X=M.clientY;fF(M.view),_E(M),H.mouse=[K,this.__zoom.invert(K)],gx(this),H.start();function Z(W){if(x0(W),!H.moved){var Q=W.clientX-V,J=W.clientY-X;H.moved=Q*Q+J*J>x}H.event(W).zoom("mouse",n(_(H.that.__zoom,H.mouse[0]=Yi(W,z),H.mouse[1]),H.extent,l))}function B(W){U.on("mousemove.zoom mouseup.zoom",null),mF(W.view,H.moved),x0(W),H.event(W).end()}}function O(M,...q){if(e.apply(this,arguments)){var z=this.__zoom,H=Yi(M.changedTouches?M.changedTouches[0]:M,this),U=z.invert(H),K=z.k*(M.shiftKey?.5:2),V=n(_(C(z,K),H,U),r.apply(this,q),l);x0(M),s>0?Ca(this).transition().duration(s).call(R,V,H,M):Ca(this).call(k.transform,V,H,M)}}function j(M,...q){if(e.apply(this,arguments)){var z=M.touches,H=z.length,U=A(this,q,M.changedTouches.length===H).event(M),K,V,X,Z;for(_E(M),V=0;V<H;++V)X=z[V],Z=Yi(X,this),Z=[Z,this.__zoom.invert(Z),X.identifier],U.touch0?!U.touch1&&U.touch0[2]!==Z[2]&&(U.touch1=Z,U.taps=0):(U.touch0=Z,K=!0,U.taps=1+!!d);d&&(d=clearTimeout(d)),K&&(U.taps<2&&(p=Z[0],d=setTimeout(function(){d=null},g)),gx(this),U.start())}}function L(M,...q){if(this.__zooming){var z=A(this,q).event(M),H=M.changedTouches,U=H.length,K,V,X,Z;for(x0(M),K=0;K<U;++K)V=H[K],X=Yi(V,this),z.touch0&&z.touch0[2]===V.identifier?z.touch0[0]=X:z.touch1&&z.touch1[2]===V.identifier&&(z.touch1[0]=X);if(V=z.that.__zoom,z.touch1){var B=z.touch0[0],W=z.touch0[1],Q=z.touch1[0],J=z.touch1[1],ne=(ne=Q[0]-B[0])*ne+(ne=Q[1]-B[1])*ne,te=(te=J[0]-W[0])*te+(te=J[1]-W[1])*te;V=C(V,Math.sqrt(ne/te)),X=[(B[0]+Q[0])/2,(B[1]+Q[1])/2],Z=[(W[0]+J[0])/2,(W[1]+J[1])/2]}else if(z.touch0)X=z.touch0[0],Z=z.touch0[1];else return;z.zoom("touch",n(_(V,X,Z),z.extent,l))}}function Y(M,...q){if(this.__zooming){var z=A(this,q).event(M),H=M.changedTouches,U=H.length,K,V;for(_E(M),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),K=0;K<U;++K)V=H[K],z.touch0&&z.touch0[2]===V.identifier?delete z.touch0:z.touch1&&z.touch1[2]===V.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(V=Yi(V,this),Math.hypot(p[0]-V[0],p[1]-V[1])<w)){var X=Ca(this).on("dblclick.zoom");X&&X.apply(this,arguments)}}}return k.wheelDelta=function(M){return arguments.length?(o=typeof M=="function"?M:yx(+M),k):o},k.filter=function(M){return arguments.length?(e=typeof M=="function"?M:yx(!!M),k):e},k.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:yx(!!M),k):a},k.extent=function(M){return arguments.length?(r=typeof M=="function"?M:yx([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),k):r},k.scaleExtent=function(M){return arguments.length?(i[0]=+M[0],i[1]=+M[1],k):[i[0],i[1]]},k.translateExtent=function(M){return arguments.length?(l[0][0]=+M[0][0],l[1][0]=+M[1][0],l[0][1]=+M[0][1],l[1][1]=+M[1][1],k):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},k.constrain=function(M){return arguments.length?(n=M,k):n},k.duration=function(M){return arguments.length?(s=+M,k):s},k.interpolate=function(M){return arguments.length?(c=M,k):c},k.on=function(){var M=u.on.apply(u,arguments);return M===u?k:M},k.clickDistance=function(M){return arguments.length?(x=(M=+M)*M,k):Math.sqrt(x)},k.tapDistance=function(M){return arguments.length?(w=+M,k):w},k}const ts={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},w0=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],GF=["Enter"," ","Escape"],XF={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var cf;(function(e){e.Strict="strict",e.Loose="loose"})(cf||(cf={}));var Xd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Xd||(Xd={}));var k0;(function(e){e.Partial="partial",e.Full="full"})(k0||(k0={}));const KF={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var uu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(uu||(uu={}));var vx;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(vx||(vx={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const ZF={[tt.Left]:tt.Right,[tt.Right]:tt.Left,[tt.Top]:tt.Bottom,[tt.Bottom]:tt.Top};function QF(e){return e===null?null:e?"valid":"invalid"}const JF=e=>"id"in e&&"source"in e&&"target"in e,SCe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),EE=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),_0=(e,r=[0,0])=>{const{width:n,height:o}=Qn(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},eH=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let l=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(l=i?r.nodeLookup.get(a):EE(a)?a:r.nodeLookup.get(a.id));const s=l?wx(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return xx(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return E0(n)},uf=(e,r={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(a=>{(r.filter===void 0||r.filter(a))&&(n=xx(n,wx(a)),o=!0)}),o?E0(n):{x:0,y:0,width:0,height:0}},SE=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...T0(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:p=!0,hidden:f=!1}=u;if(l&&!p||f)continue;const g=d.width??u.width??u.initialWidth??null,b=d.height??u.height??u.initialHeight??null,x=S0(s,Zd(u)),w=(g??0)*(b??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},CCe=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function TCe(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function RCe({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=TCe(e,l),c=uf(s),u=du(c,r,n,l?.minZoom??a,l?.maxZoom??i,l?.padding??.1);return await o.setViewport(u,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),Promise.resolve(!0)}function tH({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const l=n.get(e),s=l.parentId?n.get(l.parentId):void 0,{x:c,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},d=l.origin??o;let p=l.extent||a;if(l.extent==="parent"&&!l.expandParent)if(!s)i?.("005",ts.error005());else{const g=s.measured.width,b=s.measured.height;g&&b&&(p=[[c,u],[c+g,u+b]])}else s&&ff(l.extent)&&(p=[[l.extent[0][0]+c,l.extent[0][1]+u],[l.extent[1][0]+c,l.extent[1][1]+u]]);const f=ff(p)?Kd(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",ts.error015()),{position:{x:f.x-c+(l.measured.width??0)*d[0],y:f.y-u+(l.measured.height??0)*d[1]},positionAbsolute:f}}async function ACe({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(p=>p.id)),l=[];for(const p of n){if(p.deletable===!1)continue;const f=i.has(p.id),g=!f&&p.parentId&&l.find(b=>b.id===p.parentId);(f||g)&&l.push(p)}const s=new Set(r.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),u=CCe(l,c);for(const p of c)s.has(p.id)&&!u.find(f=>f.id===p.id)&&u.push(p);if(!a)return{edges:u,nodes:l};const d=await a({nodes:l,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:l}:{edges:[],nodes:[]}:d}const df=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),Kd=(e={x:0,y:0},r,n)=>({x:df(e.x,r[0][0],r[1][0]-(n?.width??0)),y:df(e.y,r[0][1],r[1][1]-(n?.height??0))});function rH(e,r,n){const{width:o,height:a}=Qn(n),{x:i,y:l}=n.internals.positionAbsolute;return Kd(e,[[i,l],[i+o,l+a]],r)}const nH=(e,r,n)=>e<r?df(Math.abs(e-r),1,r)/r:e>n?-df(Math.abs(e-n),1,r)/r:0,oH=(e,r,n=15,o=40)=>{const a=nH(e.x,o,r.width-o)*n,i=nH(e.y,o,r.height-o)*n;return[a,i]},xx=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),CE=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),E0=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Zd=(e,r=[0,0])=>{const{x:n,y:o}=EE(e)?e.internals.positionAbsolute:_0(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},wx=(e,r=[0,0])=>{const{x:n,y:o}=EE(e)?e.internals.positionAbsolute:_0(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},kx=(e,r)=>E0(xx(CE(e),CE(r))),S0=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},aH=e=>Xi(e.width)&&Xi(e.height)&&Xi(e.x)&&Xi(e.y),Xi=e=>!isNaN(e)&&isFinite(e),NCe=(e,r)=>{},C0=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),T0=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?C0(s,l):s},_x=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function pf(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function DCe(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=pf(e,n),a=pf(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=pf(e.top??e.y??0,n),a=pf(e.bottom??e.y??0,n),i=pf(e.left??e.x??0,r),l=pf(e.right??e.x??0,r);return{top:o,right:l,bottom:a,left:i,x:i+l,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function PCe(e,r,n,o,a,i){const{x:l,y:s}=_x(e,[r,n,o]),{x:c,y:u}=_x({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,p=i-u;return{left:Math.floor(l),top:Math.floor(s),right:Math.floor(d),bottom:Math.floor(p)}}const du=(e,r,n,o,a,i)=>{const l=DCe(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,u=Math.min(s,c),d=df(u,o,a),p=e.x+e.width/2,f=e.y+e.height/2,g=r/2-p*d,b=n/2-f*d,x=PCe(e,g,b,d,r,n),w={left:Math.min(x.left-l.left,0),top:Math.min(x.top-l.top,0),right:Math.min(x.right-l.right,0),bottom:Math.min(x.bottom-l.bottom,0)};return{x:g-w.left+w.right,y:b-w.top+w.bottom,zoom:d}},hf=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function ff(e){return e!=null&&e!=="parent"}function Qn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function iH(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function lH(e,r={width:0,height:0},n,o,a){const i={...e},l=o.get(n);if(l){const s=l.origin||a;i.x+=l.internals.positionAbsolute.x-(r.width??0)*s[0],i.y+=l.internals.positionAbsolute.y-(r.height??0)*s[1]}return i}function sH(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function $Ce(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function MCe(e){return{...XF,...e||{}}}function R0(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Ki(e),s=T0({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:u}=n?C0(s,r):s;return{xSnapped:c,ySnapped:u,...s}}const TE=e=>({width:e.offsetWidth,height:e.offsetHeight}),cH=e=>e?.getRootNode?.()||window?.document,OCe=["INPUT","SELECT","TEXTAREA"];function uH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:OCe.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const dH=e=>"clientX"in e,Ki=(e,r)=>{const n=dH(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},pH=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(l=>{const s=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:a,position:l.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...TE(l)}})};function hH({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:l,targetControlY:s}){const c=e*.125+a*.375+l*.375+n*.125,u=r*.125+i*.375+s*.375+o*.125,d=Math.abs(c-e),p=Math.abs(u-r);return[c,u,d,p]}function Ex(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function fH({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-Ex(r-o,i),n];case tt.Right:return[r+Ex(o-r,i),n];case tt.Top:return[r,n-Ex(n-a,i)];case tt.Bottom:return[r,n+Ex(a-n,i)]}}function Sx({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:l=.25}){const[s,c]=fH({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[u,d]=fH({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,b]=hH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${s},${c} ${u},${d} ${o},${a}`,p,f,g,b]}function mH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n<e?n+a:n-a,l=Math.abs(o-r)/2,s=o<r?o+l:o-l;return[i,s,a,l]}function ICe({sourceNode:e,targetNode:r,selected:n=!1,zIndex:o,elevateOnSelect:a=!1}){if(o!==void 0)return o;const i=a&&n?1e3:0,l=Math.max(e.parentId||a&&e.selected?e.internals.z:0,r.parentId||a&&r.selected?r.internals.z:0);return i+l}function zCe({sourceNode:e,targetNode:r,width:n,height:o,transform:a}){const i=xx(wx(e),wx(r));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const l={x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:o/a[2]};return S0(l,E0(i))>0}const LCe=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,BCe=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),jCe=(e,r)=>{if(!e.source||!e.target)return r;let n;return JF(e)?n={...e}:n={...e,id:LCe(e)},BCe(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function gH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,l,s]=mH({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,l,s]}const yH={[tt.Left]:{x:-1,y:0},[tt.Right]:{x:1,y:0},[tt.Top]:{x:0,y:-1},[tt.Bottom]:{x:0,y:1}},FCe=({source:e,sourcePosition:r=tt.Bottom,target:n})=>r===tt.Left||r===tt.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},bH=(e,r)=>Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function HCe({source:e,sourcePosition:r=tt.Bottom,target:n,targetPosition:o=tt.Top,center:a,offset:i,stepPosition:l}){const s=yH[r],c=yH[o],u={x:e.x+s.x*i,y:e.y+s.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},p=FCe({source:u,sourcePosition:r,target:d}),f=p.x!==0?"x":"y",g=p[f];let b=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=mH({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f==="x"?(x=a.x??u.x+(d.x-u.x)*l,w=a.y??(u.y+d.y)/2):(x=a.x??(u.x+d.x)/2,w=a.y??u.y+(d.y-u.y)*l);const R=[{x,y:u.y},{x,y:d.y}],A=[{x:u.x,y:w},{x:d.x,y:w}];s[f]===g?b=f==="x"?R:A:b=f==="x"?A:R}else{const R=[{x:u.x,y:d.y}],A=[{x:d.x,y:u.y}];if(f==="x"?b=s.x===g?A:R:b=s.y===g?R:A,r===o){const j=Math.abs(e[f]-n[f]);if(j<=i){const L=Math.min(i-1,i-j);s[f]===g?k[f]=(u[f]>e[f]?-1:1)*L:C[f]=(d[f]>n[f]?-1:1)*L}}if(r!==o){const j=f==="x"?"y":"x",L=s[f]===c[j],Y=u[j]>d[j],M=u[j]<d[j];(s[f]===1&&(!L&&Y||L&&M)||s[f]!==1&&(!L&&M||L&&Y))&&(b=f==="x"?R:A)}const D={x:u.x+k.x,y:u.y+k.y},N={x:d.x+C.x,y:d.y+C.y},$=Math.max(Math.abs(D.x-b[0].x),Math.abs(N.x-b[0].x)),O=Math.max(Math.abs(D.y-b[0].y),Math.abs(N.y-b[0].y));$>=O?(x=(D.x+N.x)/2,w=b[0].y):(x=b[0].x,w=(D.y+N.y)/2)}return[[e,{x:u.x+k.x,y:u.y+k.y},...b,{x:d.x+C.x,y:d.y+C.y},n],x,w,_,T]}function qCe(e,r,n,o){const a=Math.min(bH(e,r)/2,bH(r,n)/2,o),{x:i,y:l}=r;if(e.x===i&&i===n.x||e.y===l&&l===n.y)return`L${i} ${l}`;if(e.y===l){const u=e.x<n.x?-1:1,d=e.y<n.y?1:-1;return`L ${i+a*u},${l}Q ${i},${l} ${i},${l+a*d}`}const s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${i},${l+a*c}Q ${i},${l} ${i+a*s},${l}`}function Cx({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,borderRadius:l=5,centerX:s,centerY:c,offset:u=20,stepPosition:d=.5}){const[p,f,g,b,x]=HCe({source:{x:e,y:r},sourcePosition:n,target:{x:o,y:a},targetPosition:i,center:{x:s,y:c},offset:u,stepPosition:d});return[p.reduce((w,k,C)=>{let _="";return C>0&&C<p.length-1?_=qCe(p[C-1],k,p[C+1],l):_=`${C===0?"M":"L"}${k.x} ${k.y}`,w+=_,w},""),f,g,b,x]}function vH(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function xH(e){const{sourceNode:r,targetNode:n}=e;if(!vH(r)||!vH(n))return null;const o=r.internals.handleBounds||wH(r.handles),a=n.internals.handleBounds||wH(n.handles),i=kH(o?.source??[],e.sourceHandle),l=kH(e.connectionMode===cf.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!l)return e.onError?.("008",ts.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=i?.position||tt.Bottom,c=l?.position||tt.Top,u=A0(r,i,s),d=A0(n,l,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:s,targetPosition:c}}function wH(e){if(!e)return null;const r=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?r.push(o):o.type==="target"&&n.push(o);return{source:r,target:n}}function A0(e,r,n=tt.Left,o=!1){const a=(r?.x??0)+e.internals.positionAbsolute.x,i=(r?.y??0)+e.internals.positionAbsolute.y,{width:l,height:s}=r??Qn(e);if(o)return{x:a+l/2,y:i+s/2};switch(r?.position??n){case tt.Top:return{x:a+l/2,y:i};case tt.Right:return{x:a+l,y:i+s/2};case tt.Bottom:return{x:a+l/2,y:i+s};case tt.Left:return{x:a,y:i+s/2}}}function kH(e,r){return e&&(r?e.find(n=>n.id===r):e[0])||null}function RE(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function UCe(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((l,s)=>([s.markerStart||o,s.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const u=RE(c,r);i.has(u)||(l.push({id:u,color:c.color||n,...c}),i.add(u))}}),l),[]).sort((l,s)=>l.id.localeCompare(s.id))}function VCe(e,r,n,o,a){let i=.5;a==="start"?i=0:a==="end"&&(i=1);let l=[(e.x+e.width*i)*r.zoom+r.x,e.y*r.zoom+r.y-o],s=[-100*i,-100];switch(n){case tt.Right:l=[(e.x+e.width)*r.zoom+r.x+o,(e.y+e.height*i)*r.zoom+r.y],s=[0,-100*i];break;case tt.Bottom:l[1]=(e.y+e.height)*r.zoom+r.y+o,s[1]=0;break;case tt.Left:l=[e.x*r.zoom+r.x-o,(e.y+e.height*i)*r.zoom+r.y],s=[-100,-100*i];break}return`translate(${l[0]}px, ${l[1]}px) translate(${s[0]}%, ${s[1]}%)`}const _H=1e3,YCe=10,AE={nodeOrigin:[0,0],nodeExtent:w0,elevateNodesOnSelect:!0,defaults:{}},WCe={...AE,checkEquality:!0};function NE(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function GCe(e,r,n){const o=NE(AE,n);for(const a of e.values())if(a.parentId)PE(a,e,r,o);else{const i=_0(a,o.nodeOrigin),l=ff(a.extent)?a.extent:o.nodeExtent,s=Kd(i,l,Qn(a));a.internals.positionAbsolute=s}}function XCe(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function DE(e,r,n,o){const a=NE(WCe,o);let i={i:-1},l=e.length>0;const s=new Map(r),c=a?.elevateNodesOnSelect?_H:0;r.clear(),n.clear();for(const u of e){let d=s.get(u.id);if(a.checkEquality&&u===d?.internals.userNode)r.set(u.id,d);else{const p=_0(u,a.nodeOrigin),f=ff(u.extent)?u.extent:a.nodeExtent,g=Kd(p,f,Qn(u));d={...a.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:g,handleBounds:XCe(u,d),z:EH(u,c),userNode:u}},r.set(u.id,d)}(d.measured===void 0||d.measured.width===void 0||d.measured.height===void 0)&&!d.hidden&&(l=!1),u.parentId&&PE(d,r,n,o,i)}return l}function KCe(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function PE(e,r,n,o,a){const{elevateNodesOnSelect:i,nodeOrigin:l,nodeExtent:s}=NE(AE,o),c=e.parentId,u=r.get(c);if(!u){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}KCe(e,n),a&&!u.parentId&&u.internals.rootParentIndex===void 0&&(u.internals.rootParentIndex=++a.i,u.internals.z=u.internals.z+a.i*YCe),a&&u.internals.rootParentIndex!==void 0&&(a.i=u.internals.rootParentIndex);const d=i?_H:0,{x:p,y:f,z:g}=ZCe(e,u,l,s,d),{positionAbsolute:b}=e.internals,x=p!==b.x||f!==b.y;(x||g!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:p,y:f}:b,z:g}})}function EH(e,r){return(Xi(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function ZCe(e,r,n,o,a){const{x:i,y:l}=r.internals.positionAbsolute,s=Qn(e),c=_0(e,n),u=ff(e.extent)?Kd(c,e.extent,s):c;let d=Kd({x:i+u.x,y:l+u.y},o,s);e.extent==="parent"&&(d=rH(d,s,r));const p=EH(e,a),f=r.internals.z??0;return{x:d.x,y:d.y,z:f>=p?f+1:p}}function $E(e,r,n,o=[0,0]){const a=[],i=new Map;for(const l of e){const s=r.get(l.parentId);if(!s)continue;const c=i.get(l.parentId)?.expandedRect??Zd(s),u=kx(c,l.rect);i.set(l.parentId,{expandedRect:u,parent:s})}return i.size>0&&i.forEach(({expandedRect:l,parent:s},c)=>{const u=s.internals.positionAbsolute,d=Qn(s),p=s.origin??o,f=l.x<u.x?Math.round(Math.abs(u.x-l.x)):0,g=l.y<u.y?Math.round(Math.abs(u.y-l.y)):0,b=Math.max(d.width,Math.round(l.width)),x=Math.max(d.height,Math.round(l.height)),w=(b-d.width)*p[0],k=(x-d.height)*p[1];(f>0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:s.position.x-f+w,y:s.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+f,y:C.position.y+g}})})),(d.width<l.width||d.height<l.height||f||g)&&a.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:b+(f?p[0]*f-w:0),height:x+(g?p[1]*g-k:0)}})}),a}function QCe(e,r,n,o,a,i){const l=o?.querySelector(".xyflow__viewport");let s=!1;if(!l)return{changes:[],updatedInternals:s};const c=[],u=window.getComputedStyle(l),{m22:d}=new window.DOMMatrixReadOnly(u.transform),p=[];for(const f of e.values()){const g=r.get(f.id);if(!g)continue;if(g.hidden){r.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),s=!0;continue}const b=TE(f.nodeElement),x=g.measured.width!==b.width||g.measured.height!==b.height;if(b.width&&b.height&&(x||!g.internals.handleBounds||f.force)){const w=f.nodeElement.getBoundingClientRect(),k=ff(g.extent)?g.extent:i;let{positionAbsolute:C}=g.internals;g.parentId&&g.extent==="parent"?C=rH(C,b,r.get(g.parentId)):k&&(C=Kd(C,k,b));const _={...g,measured:b,internals:{...g.internals,positionAbsolute:C,handleBounds:{source:pH("source",f.nodeElement,w,d,g.id),target:pH("target",f.nodeElement,w,d,g.id)}}};r.set(g.id,_),g.parentId&&PE(_,r,n,{nodeOrigin:a}),s=!0,x&&(c.push({id:g.id,type:"dimensions",dimensions:b}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:Zd(_,a)}))}}if(p.length>0){const f=$E(p,r,n,a);c.push(...f)}return{changes:c,updatedInternals:s}}async function JCe({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const l=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),s=!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2]);return Promise.resolve(s)}function SH(e,r,n,o,a,i){let l=a;const s=o.get(l)||new Map;o.set(l,s.set(n,r)),l=`${a}-${e}`;const c=o.get(l)||new Map;if(o.set(l,c.set(n,r)),i){l=`${a}-${e}-${i}`;const u=o.get(l)||new Map;o.set(l,u.set(n,r))}}function CH(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:l=null,targetHandle:s=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:l,targetHandle:s},u=`${a}-${l}--${i}-${s}`,d=`${i}-${s}--${a}-${l}`;SH("source",c,d,e,a,l),SH("target",c,u,e,i,s),r.set(o.id,o)}}function TH(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:TH(n,r):!1}function RH(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function eTe(e,r,n,o){const a=new Map;for(const[i,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!TH(l,e))&&(l.draggable||r&&typeof l.draggable>"u")){const s=e.get(i);s&&a.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return a}function ME({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[l,s]of r){const c=n.get(l)?.internals.userNode;c&&a.push({...c,position:s.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function tTe({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},l=C0(i,r);return{x:l.x-i.x,y:l.y-i.y}}function rTe({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},l=0,s=new Map,c=!1,u={x:0,y:0},d=null,p=!1,f=null,g=!1,b=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:R,nodeId:A,nodeClickDistance:D=0}){f=Ca(T);function N({x:L,y:Y}){const{nodeLookup:M,nodeExtent:q,snapGrid:z,snapToGrid:H,nodeOrigin:U,onNodeDrag:K,onSelectionDrag:V,onError:X,updateNodePositions:Z}=r();i={x:L,y:Y};let B=!1;const W=s.size>1,Q=W&&q?CE(uf(s)):null,J=W&&H?tTe({dragItems:s,snapGrid:z,x:L,y:Y}):null;for(const[ne,te]of s){if(!M.has(ne))continue;let ee={x:L-te.distance.x,y:Y-te.distance.y};H&&(ee=J?{x:Math.round(ee.x+J.x),y:Math.round(ee.y+J.y)}:C0(ee,z));let pe=null;if(W&&q&&!te.extent&&Q){const{positionAbsolute:de}=te.internals,xe=de.x-Q.x+q[0][0],De=de.x+te.measured.width-Q.x2+q[1][0],Ge=de.y-Q.y+q[0][1],et=de.y+te.measured.height-Q.y2+q[1][1];pe=[[xe,Ge],[De,et]]}const{position:Te,positionAbsolute:ce}=tH({nodeId:ne,nextPosition:ee,nodeLookup:M,nodeExtent:pe||q,nodeOrigin:U,onError:X});B=B||te.position.x!==Te.x||te.position.y!==Te.y,te.position=Te,te.internals.positionAbsolute=ce}if(b=b||B,!!B&&(Z(s,!0),x&&(o||K||!A&&V))){const[ne,te]=ME({nodeId:A,dragItems:s,nodeLookup:M});o?.(x,s,ne,te),K?.(x,ne,te),A||V?.(x,te)}}async function $(){if(!d)return;const{transform:L,panBy:Y,autoPanSpeed:M,autoPanOnNodeDrag:q}=r();if(!q){c=!1,cancelAnimationFrame(l);return}const[z,H]=oH(u,d,M);(z!==0||H!==0)&&(i.x=(i.x??0)-z/L[2],i.y=(i.y??0)-H/L[2],await Y({x:z,y:H})&&N(i)),l=requestAnimationFrame($)}function O(L){const{nodeLookup:Y,multiSelectionActive:M,nodesDraggable:q,transform:z,snapGrid:H,snapToGrid:U,selectNodesOnDrag:K,onNodeDragStart:V,onSelectionDragStart:X,unselectNodesAndEdges:Z}=r();p=!0,(!K||!R)&&!M&&A&&(Y.get(A)?.selected||Z()),R&&K&&A&&e?.(A);const B=R0(L.sourceEvent,{transform:z,snapGrid:H,snapToGrid:U,containerBounds:d});if(i=B,s=eTe(Y,q,B,A),s.size>0&&(n||V||!A&&X)){const[W,Q]=ME({nodeId:A,dragItems:s,nodeLookup:Y});n?.(L.sourceEvent,s,W,Q),V?.(L.sourceEvent,W,Q),A||X?.(L.sourceEvent,Q)}}const j=gF().clickDistance(D).on("start",L=>{const{domNode:Y,nodeDragThreshold:M,transform:q,snapGrid:z,snapToGrid:H}=r();d=Y?.getBoundingClientRect()||null,g=!1,b=!1,x=L.sourceEvent,M===0&&O(L),i=R0(L.sourceEvent,{transform:q,snapGrid:z,snapToGrid:H,containerBounds:d}),u=Ki(L.sourceEvent,d)}).on("drag",L=>{const{autoPanOnNodeDrag:Y,transform:M,snapGrid:q,snapToGrid:z,nodeDragThreshold:H,nodeLookup:U}=r(),K=R0(L.sourceEvent,{transform:M,snapGrid:q,snapToGrid:z,containerBounds:d});if(x=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||A&&!U.has(A))&&(g=!0),!g){if(!c&&Y&&p&&(c=!0,$()),!p){const V=Ki(L.sourceEvent,d),X=V.x-u.x,Z=V.y-u.y;Math.sqrt(X*X+Z*Z)>H&&O(L)}(i.x!==K.xSnapped||i.y!==K.ySnapped)&&s&&p&&(u=Ki(L.sourceEvent,d),N(K))}}).on("end",L=>{if(!(!p||g)&&(c=!1,p=!1,cancelAnimationFrame(l),s.size>0)){const{nodeLookup:Y,updateNodePositions:M,onNodeDragStop:q,onSelectionDragStop:z}=r();if(b&&(M(s,!1),b=!1),a||q||!A&&z){const[H,U]=ME({nodeId:A,dragItems:s,nodeLookup:Y,dragging:!1});a?.(L.sourceEvent,s,H,U),q?.(L.sourceEvent,H,U),A||z?.(L.sourceEvent,U)}}}).filter(L=>{const Y=L.target;return!L.button&&(!C||!RH(Y,`.${C}`,T))&&(!_||RH(Y,_,T))});f.call(j)}function k(){f?.on(".drag",null)}return{update:w,destroy:k}}function nTe(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())S0(a,Zd(i))>0&&o.push(i);return o}const oTe=250;function aTe(e,r,n,o){let a=[],i=1/0;const l=nTe(e,n,r+oTe);for(const s of l){const c=[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]];for(const u of c){if(o.nodeId===u.nodeId&&o.type===u.type&&o.id===u.id)continue;const{x:d,y:p}=A0(s,u,u.position,!0),f=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(p-e.y,2));f>r||(f<i?(a=[{...u,x:d,y:p}],i=f):f===i&&a.push({...u,x:d,y:p}))}}if(!a.length)return null;if(a.length>1){const s=o.type==="source"?"target":"source";return a.find(c=>c.type===s)??a[0]}return a[0]}function AH(e,r,n,o,a,i=!1){const l=o.get(e);if(!l)return null;const s=a==="strict"?l.internals.handleBounds?.[r]:[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]],c=(n?s?.find(u=>u.id===n):s?.[0])??null;return c&&i?{...c,...A0(l,c,c.position,!0)}:c}function NH(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function iTe(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const DH=()=>!0;function lTe(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:l,domNode:s,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:p,panBy:f,cancelConnection:g,onConnectStart:b,onConnect:x,onConnectEnd:w,isValidConnection:k=DH,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:R,autoPanSpeed:A,dragThreshold:D=1,handleDomNode:N}){const $=cH(e.target);let O=0,j;const{x:L,y:Y}=Ki(e),M=NH(i,N),q=s?.getBoundingClientRect();let z=!1;if(!q||!M)return;const H=AH(a,M,o,c,r);if(!H)return;let U=Ki(e,q),K=!1,V=null,X=!1,Z=null;function B(){if(!d||!q)return;const[pe,Te]=oH(U,q,A);f({x:pe,y:Te}),O=requestAnimationFrame(B)}const W={...H,nodeId:a,type:M,position:H.position},Q=c.get(a);let J={inProgress:!0,isValid:null,from:A0(Q,W,tt.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:Q,to:U,toHandle:null,toPosition:ZF[W.position],toNode:null};function ne(){z=!0,_(J),b?.(e,{nodeId:a,handleId:o,handleType:M})}D===0&&ne();function te(pe){if(!z){const{x:xe,y:De}=Ki(pe),Ge=xe-L,et=De-Y;if(!(Ge*Ge+et*et>D*D))return;ne()}if(!R()||!W){ee(pe);return}const Te=T();U=Ki(pe,q),j=aTe(T0(U,Te,!1,[1,1]),n,c,W),K||(B(),K=!0);const ce=PH(pe,{handle:j,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:l?"target":"source",isValidConnection:k,doc:$,lib:u,flowId:p,nodeLookup:c});Z=ce.handleDomNode,V=ce.connection,X=iTe(!!j,ce.isValid);const de={...J,isValid:X,to:ce.toHandle&&X?_x({x:ce.toHandle.x,y:ce.toHandle.y},Te):U,toHandle:ce.toHandle,toPosition:X&&ce.toHandle?ce.toHandle.position:ZF[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};X&&j&&J.toHandle&&de.toHandle&&J.toHandle.type===de.toHandle.type&&J.toHandle.nodeId===de.toHandle.nodeId&&J.toHandle.id===de.toHandle.id&&J.to.x===de.to.x&&J.to.y===de.to.y||(_(de),J=de)}function ee(pe){if(!("touches"in pe&&pe.touches.length>0)){if(z){(j||Z)&&V&&X&&x?.(V);const{inProgress:Te,...ce}=J,de={...ce,toPosition:J.toHandle?J.toPosition:null};w?.(pe,de),i&&C?.(pe,de)}g(),cancelAnimationFrame(O),K=!1,X=!1,V=null,Z=null,$.removeEventListener("mousemove",te),$.removeEventListener("mouseup",ee),$.removeEventListener("touchmove",te),$.removeEventListener("touchend",ee)}}$.addEventListener("mousemove",te),$.addEventListener("mouseup",ee),$.addEventListener("touchmove",te),$.addEventListener("touchend",ee)}function PH(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:l,lib:s,flowId:c,isValidConnection:u=DH,nodeLookup:d}){const p=i==="target",f=r?l.querySelector(`.${s}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y:b}=Ki(e),x=l.elementFromPoint(g,b),w=x?.classList.contains(`${s}-flow__handle`)?x:f,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=NH(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),R=w.classList.contains("connectable"),A=w.classList.contains("connectableend");if(!_||!C)return k;const D={source:p?_:o,sourceHandle:p?T:a,target:p?o:_,targetHandle:p?a:T};k.connection=D;const N=R&&A&&(n===cf.Strict?p&&C==="source"||!p&&C==="target":_!==o||T!==a);k.isValid=N&&u(D),k.toHandle=AH(_,C,T,d,n,!0)}return k}const OE={onPointerDown:lTe,isValid:PH};function sTe({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ca(e);function i({translateExtent:s,width:c,height:u,zoomStep:d=1,pannable:p=!0,zoomable:f=!0,inversePan:g=!1}){const b=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),R=_.sourceEvent.ctrlKey&&hf()?10:1,A=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*d,D=T[2]*Math.pow(2,A*R);r.scaleTo(D)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const R=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],A=[R[0]-x[0],R[1]-x[1]];x=R;const D=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),N={x:T[0]-A[0]*D,y:T[1]-A[1]*D},$=[[0,0],[c,u]];r.setViewportConstrained({x:N.x,y:N.y,zoom:T[2]},$,s)},C=WF().on("start",w).on("zoom",p?k:null).on("zoom.wheel",f?b:null);a.call(C,{})}function l(){a.on("zoom",null)}return{update:i,destroy:l,pointer:Yi}}const Tx=e=>({x:e.x,y:e.y,zoom:e.k}),IE=({x:e,y:r,zoom:n})=>bx.translate(e,r).scale(n),mf=(e,r)=>e.target.closest(`.${r}`),$H=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),cTe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,zE=(e,r=0,n=cTe,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},MH=e=>{const r=e.ctrlKey&&hf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function uTe({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:l,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(mf(d,r))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(d.ctrlKey&&l){const w=Yi(d),k=MH(d),C=p*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const f=d.deltaMode===1?20:1;let g=a===Xd.Vertical?0:d.deltaX*f,b=a===Xd.Horizontal?0:d.deltaY*f;!hf()&&d.shiftKey&&a!==Xd.Vertical&&(g=d.deltaY*f,b=0),o.translateBy(n,-(g/p)*i,-(b/p)*i,{internal:!0});const x=Tx(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s?.(d,x))}}function dTe({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",l=!r&&i&&!o.ctrlKey,s=mf(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),l||s)return null;o.preventDefault(),n.call(this,o,a)}}function pTe({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Tx(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function hTe({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&$H(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Tx(i.transform))}}function fTe({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&$H(r,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&i(l.sourceEvent),e.usedRightMouseButton=!1,o(!1),a)){const s=Tx(l.transform);e.prevViewport=s,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(l.sourceEvent,s)},n?150:0)}}}function mTe({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:l,noWheelClassName:s,noPanClassName:c,lib:u,connectionInProgress:d}){return p=>{const f=e||r,g=n&&p.ctrlKey,b=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(mf(p,`${u}-flow__node`)||mf(p,`${u}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||l||d&&!b||mf(p,s)&&b||mf(p,c)&&(!b||a&&b&&!e)||!n&&p.ctrlKey&&b)return!1;if(!n&&p.type==="touchstart"&&p.touches?.length>1)return p.preventDefault(),!1;if(!f&&!a&&!g&&b||!o&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(o)&&!o.includes(p.button)&&p.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||b)&&x}}function gTe({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:l,onPanZoomStart:s,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),f=WF().clickDistance(!Xi(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ca(e).call(f);_({x:i.x,y:i.y,zoom:df(i.zoom,r,n)},[[0,0],[p.width,p.height]],a);const b=g.on("wheel.zoom"),x=g.on("dblclick.zoom");f.wheelDelta(MH);function w(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?m0:sx).transform(zE(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function k({noWheelClassName:L,noPanClassName:Y,onPaneContextMenu:M,userSelectionActive:q,panOnScroll:z,panOnDrag:H,panOnScrollMode:U,panOnScrollSpeed:K,preventScrolling:V,zoomOnPinch:X,zoomOnScroll:Z,zoomOnDoubleClick:B,zoomActivationKeyPressed:W,lib:Q,onTransformChange:J,connectionInProgress:ne}){q&&!d.isZoomingOrPanning&&C();const te=z&&!W&&!q?uTe({zoomPanValues:d,noWheelClassName:L,d3Selection:g,d3Zoom:f,panOnScrollMode:U,panOnScrollSpeed:K,zoomOnPinch:X,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}):dTe({noWheelClassName:L,preventScrolling:V,d3ZoomHandler:b});if(g.on("wheel.zoom",te,{passive:!1}),!q){const pe=pTe({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:s});f.on("start",pe);const Te=hTe({zoomPanValues:d,panOnDrag:H,onPaneContextMenu:!!M,onPanZoom:l,onTransformChange:J});f.on("zoom",Te);const ce=fTe({zoomPanValues:d,panOnDrag:H,panOnScroll:z,onPaneContextMenu:M,onPanZoomEnd:c,onDraggingChange:u});f.on("end",ce)}const ee=mTe({zoomActivationKeyPressed:W,panOnDrag:H,zoomOnScroll:Z,panOnScroll:z,zoomOnDoubleClick:B,zoomOnPinch:X,userSelectionActive:q,noPanClassName:Y,noWheelClassName:L,lib:Q,connectionInProgress:ne});f.filter(ee),B?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){f.on("zoom",null)}async function _(L,Y,M){const q=IE(L),z=f?.constrain()(q,Y,M);return z&&await w(z),new Promise(H=>H(z))}async function T(L,Y){const M=IE(L);return await w(M,Y),new Promise(q=>q(M))}function R(L){if(g){const Y=IE(L),M=g.property("__zoom");(M.k!==L.zoom||M.x!==L.x||M.y!==L.y)&&f?.transform(g,Y,null,{sync:!0})}}function A(){const L=g?VF(g.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function D(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?m0:sx).scaleTo(zE(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function N(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?m0:sx).scaleBy(zE(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function $(L){f?.scaleExtent(L)}function O(L){f?.translateExtent(L)}function j(L){const Y=!Xi(L)||L<0?0:L;f?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:A,scaleTo:D,scaleBy:N,setScaleExtent:$,setTranslateExtent:O,syncViewport:R,setClickDistance:j}}var gf;(function(e){e.Line="line",e.Handle="handle"})(gf||(gf={}));function yTe({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const l=e-r,s=n-o,c=[l>0?1:l<0?-1:0,s>0?1:s<0?-1:0];return l&&a&&(c[0]=c[0]*-1),s&&i&&(c[1]=c[1]*-1),c}function OH(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function pu(e,r){return Math.max(0,r-e)}function hu(e,r){return Math.max(0,e-r)}function Rx(e,r,n){return Math.max(0,r-e,e-n)}function IH(e,r){return e?!r:r}function bTe(e,r,n,o,a,i,l,s){let{affectsX:c,affectsY:u}=r;const{isHorizontal:d,isVertical:p}=r,f=d&&p,{xSnapped:g,ySnapped:b}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:R,height:A,aspectRatio:D}=e;let N=Math.floor(d?g-e.pointerX:0),$=Math.floor(p?b-e.pointerY:0);const O=R+(c?-N:N),j=A+(u?-$:$),L=-i[0]*R,Y=-i[1]*A;let M=Rx(O,x,w),q=Rx(j,k,C);if(l){let U=0,K=0;c&&N<0?U=pu(_+N+L,l[0][0]):!c&&N>0&&(U=hu(_+O+L,l[1][0])),u&&$<0?K=pu(T+$+Y,l[0][1]):!u&&$>0&&(K=hu(T+j+Y,l[1][1])),M=Math.max(M,U),q=Math.max(q,K)}if(s){let U=0,K=0;c&&N>0?U=hu(_+N,s[0][0]):!c&&N<0&&(U=pu(_+O,s[1][0])),u&&$>0?K=hu(T+$,s[0][1]):!u&&$<0&&(K=pu(T+j,s[1][1])),M=Math.max(M,U),q=Math.max(q,K)}if(a){if(d){const U=Rx(O/D,k,C)*D;if(M=Math.max(M,U),l){let K=0;!c&&!u||c&&!u&&f?K=hu(T+Y+O/D,l[1][1])*D:K=pu(T+Y+(c?N:-N)/D,l[0][1])*D,M=Math.max(M,K)}if(s){let K=0;!c&&!u||c&&!u&&f?K=pu(T+O/D,s[1][1])*D:K=hu(T+(c?N:-N)/D,s[0][1])*D,M=Math.max(M,K)}}if(p){const U=Rx(j*D,x,w)/D;if(q=Math.max(q,U),l){let K=0;!c&&!u||u&&!c&&f?K=hu(_+j*D+L,l[1][0])/D:K=pu(_+(u?$:-$)*D+L,l[0][0])/D,q=Math.max(q,K)}if(s){let K=0;!c&&!u||u&&!c&&f?K=pu(_+j*D,s[1][0])/D:K=hu(_+(u?$:-$)*D,s[0][0])/D,q=Math.max(q,K)}}}$=$+($<0?q:-q),N=N+(N<0?M:-M),a&&(f?O>j*D?$=(IH(c,u)?-N:N)/D:N=(IH(c,u)?-$:$)*D:d?($=N/D,u=c):(N=$*D,c=u));const z=c?_+N:_,H=u?T+$:T;return{width:R+(c?-N:N),height:A+(u?-$:$),x:i[0]*N*(c?-1:1)+z,y:i[1]*$*(u?-1:1)+H}}const zH={width:0,height:0,x:0,y:0},vTe={...zH,pointerX:0,pointerY:0,aspectRatio:1};function xTe(e){return[[0,0],[e.measured.width,e.measured.height]]}function wTe(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,l=e.measured.height??0,s=n[0]*i,c=n[1]*l;return[[o-s,a-c],[o+i-s,a+l-c]]}function kTe({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ca(e);let l={controlDirection:OH("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:u,boundaries:d,keepAspectRatio:p,resizeDirection:f,onResizeStart:g,onResize:b,onResizeEnd:x,shouldResize:w}){let k={...zH},C={...vTe};l={boundaries:d,resizeDirection:f,keepAspectRatio:p,controlDirection:OH(u)};let _,T=null,R=[],A,D,N,$=!1;const O=gF().on("start",j=>{const{nodeLookup:L,transform:Y,snapGrid:M,snapToGrid:q,nodeOrigin:z,paneDomNode:H}=n();if(_=L.get(r),!_)return;T=H?.getBoundingClientRect()??null;const{xSnapped:U,ySnapped:K}=R0(j.sourceEvent,{transform:Y,snapGrid:M,snapToGrid:q,containerBounds:T});k={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},C={...k,pointerX:U,pointerY:K,aspectRatio:k.width/k.height},A=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(A=L.get(_.parentId),D=A&&_.extent==="parent"?xTe(A):void 0),R=[],N=void 0;for(const[V,X]of L)if(X.parentId===r&&(R.push({id:V,position:{...X.position},extent:X.extent}),X.extent==="parent"||X.expandParent)){const Z=wTe(X,_,X.origin??z);N?N=[[Math.min(Z[0][0],N[0][0]),Math.min(Z[0][1],N[0][1])],[Math.max(Z[1][0],N[1][0]),Math.max(Z[1][1],N[1][1])]]:N=Z}g?.(j,{...k})}).on("drag",j=>{const{transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q}=n(),z=R0(j.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:M,containerBounds:T}),H=[];if(!_)return;const{x:U,y:K,width:V,height:X}=k,Z={},B=_.origin??q,{width:W,height:Q,x:J,y:ne}=bTe(C,l.controlDirection,z,l.boundaries,l.keepAspectRatio,B,D,N),te=W!==V,ee=Q!==X,pe=J!==U&&te,Te=ne!==K&&ee;if(!pe&&!Te&&!te&&!ee)return;if((pe||Te||B[0]===1||B[1]===1)&&(Z.x=pe?J:k.x,Z.y=Te?ne:k.y,k.x=Z.x,k.y=Z.y,R.length>0)){const xe=J-U,De=ne-K;for(const Ge of R)Ge.position={x:Ge.position.x-xe+B[0]*(W-V),y:Ge.position.y-De+B[1]*(Q-X)},H.push(Ge)}if((te||ee)&&(Z.width=te&&(!l.resizeDirection||l.resizeDirection==="horizontal")?W:k.width,Z.height=ee&&(!l.resizeDirection||l.resizeDirection==="vertical")?Q:k.height,k.width=Z.width,k.height=Z.height),A&&_.expandParent){const xe=B[0]*(Z.width??0);Z.x&&Z.x<xe&&(k.x=xe,C.x=C.x-(Z.x-xe));const De=B[1]*(Z.height??0);Z.y&&Z.y<De&&(k.y=De,C.y=C.y-(Z.y-De))}const ce=yTe({width:k.width,prevWidth:V,height:k.height,prevHeight:X,affectsX:l.controlDirection.affectsX,affectsY:l.controlDirection.affectsY}),de={...k,direction:ce};w?.(j,de)!==!1&&($=!0,b?.(j,de),o(Z,H))}).on("end",j=>{$&&(x?.(j,{...k}),a?.({...k}),$=!1)});i.call(O)}function c(){i.on(".drag",null)}return{update:s,destroy:c}}function LE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var LH={exports:{}},BE={},BH={exports:{}},jE={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var jH;function _Te(){if(jH)return jE;jH=1;var e=Qr;function r(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function s(p,f){var g=f(),b=o({inst:{value:g,getSnapshot:f}}),x=b[0].inst,w=b[1];return i(function(){x.value=g,x.getSnapshot=f,c(x)&&w({inst:x})},[p,g,f]),a(function(){return c(x)&&w({inst:x}),p(function(){c(x)&&w({inst:x})})},[p]),l(g),g}function c(p){var f=p.getSnapshot;p=p.value;try{var g=f();return!n(p,g)}catch{return!0}}function u(p,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return jE.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,jE}var FH;function HH(){return FH||(FH=1,BH.exports=_Te()),BH.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qH;function ETe(){if(qH)return BE;qH=1;var e=Qr,r=HH();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,l=e.useEffect,s=e.useMemo,c=e.useDebugValue;return BE.useSyncExternalStoreWithSelector=function(u,d,p,f,g){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=s(function(){function k(A){if(!C){if(C=!0,_=A,A=f(A),g!==void 0&&x.hasValue){var D=x.value;if(g(D,A))return T=D}return T=A}if(D=T,o(_,A))return D;var N=f(A);return g!==void 0&&g(D,N)?(_=A,D):(_=A,T=N)}var C=!1,_,T,R=p===void 0?null:p;return[function(){return k(d())},R===null?void 0:function(){return k(R())}]},[d,p,f,g]);var w=a(u,b[0],b[1]);return l(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},BE}var UH;function STe(){return UH||(UH=1,LH.exports=ETe()),LH.exports}var VH=STe();const CTe=LE(VH),TTe={},YH=e=>{let r;const n=new Set,o=(s,c)=>{const u=typeof s=="function"?s(r):s;if(!Object.is(u,r)){const d=r;r=c??(typeof u!="object"||u===null)?u:Object.assign({},r,u),n.forEach(p=>p(r,d))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(TTe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=r=e(o,a,i);return i},RTe=e=>e?YH(e):YH,{useDebugValue:ATe}=Qr,{useSyncExternalStoreWithSelector:NTe}=CTe,DTe=e=>e;function WH(e,r=DTe,n){const o=NTe(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return ATe(o),o}const GH=(e,r)=>{const n=RTe(e),o=(a,i=r)=>WH(n,a,i);return Object.assign(o,n),o},PTe=(e,r)=>e?GH(e,r):GH;function $r(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const Ax=S.createContext(null),$Te=Ax.Provider,XH=ts.error001();function At(e,r){const n=S.useContext(Ax);if(n===null)throw new Error(XH);return WH(n,e,r)}function yr(){const e=S.useContext(Ax);if(e===null)throw new Error(XH);return S.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const KH={display:"none"},MTe={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ZH="react-flow__node-desc",QH="react-flow__edge-desc",OTe="react-flow__aria-live",ITe=e=>e.ariaLiveMessage,zTe=e=>e.ariaLabelConfig;function LTe({rfId:e}){const r=At(ITe);return y.jsx("div",{id:`${OTe}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:MTe,children:r})}function BTe({rfId:e,disableKeyboardA11y:r}){const n=At(zTe);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${ZH}-${e}`,style:KH,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${QH}-${e}`,style:KH,children:n["edge.a11yDescription.default"]}),!r&&y.jsx(LTe,{rfId:e})]})}const fu=S.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const l=`${e}`.split("-");return y.jsx("div",{className:dn(["react-flow__panel",n,...l]),style:o,ref:i,...a,children:r})});fu.displayName="Panel";function jTe({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:y.jsx(fu,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:y.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const FTe=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},Nx=e=>e.id;function HTe(e,r){return $r(e.selectedNodes.map(Nx),r.selectedNodes.map(Nx))&&$r(e.selectedEdges.map(Nx),r.selectedEdges.map(Nx))}function qTe({onSelectionChange:e}){const r=yr(),{selectedNodes:n,selectedEdges:o}=At(FTe,HTe);return S.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const UTe=e=>!!e.onSelectionChangeHandlers;function VTe({onSelectionChange:e}){const r=At(UTe);return e||r?y.jsx(qTe,{onSelectionChange:e}):null}const JH=[0,0],YTe={x:0,y:0,zoom:1},WTe=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],eq=[...WTe,"rfId"],GTe=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),tq={translateExtent:w0,nodeOrigin:JH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function XTe(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:l,reset:s,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=At(GTe,$r),d=yr();S.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{p.current=tq,s()}),[]);const p=S.useRef(tq);return S.useEffect(()=>{for(const f of eq){const g=e[f],b=p.current[f];g!==b&&(typeof e[f]>"u"||(f==="nodes"?r(g):f==="edges"?n(g):f==="minZoom"?o(g):f==="maxZoom"?a(g):f==="translateExtent"?i(g):f==="nodeExtent"?l(g):f==="paneClickDistance"?u(g):f==="ariaLabelConfig"?d.setState({ariaLabelConfig:MCe(g)}):f==="fitView"?d.setState({fitViewQueued:g}):f==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[f]:g})))}p.current=e},eq.map(f=>e[f])),null}function rq(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function KTe(e){const[r,n]=S.useState(e==="system"?null:e);return S.useEffect(()=>{if(e!=="system"){n(e);return}const o=rq(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:rq()?.matches?"dark":"light"}const nq=typeof document<"u"?document:null;function N0(e=null,r={target:nq,actInsideInputWithModifier:!0}){const[n,o]=S.useState(!1),a=S.useRef(!1),i=S.useRef(new Set([])),[l,s]=S.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace("+",`
`).replace(`

`,`
+`).split(`
`)),u=c.reduce((d,p)=>d.concat(...p),[]);return[c,u]}return[[],[]]},[e]);return S.useEffect(()=>{const c=r?.target??nq,u=r?.actInsideInputWithModifier??!0;if(e!==null){const d=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!u)&&uH(g))return!1;const b=aq(g.code,s);if(i.current.add(g[b]),oq(l,i.current,!1)){const x=g.composedPath?.()?.[0]||g.target,w=x?.nodeName==="BUTTON"||x?.nodeName==="A";r.preventDefault!==!1&&(a.current||!w)&&g.preventDefault(),o(!0)}},p=g=>{const b=aq(g.code,s);oq(l,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[b]),g.key==="Meta"&&i.current.clear(),a.current=!1},f=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",d),c?.addEventListener("keyup",p),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{c?.removeEventListener("keydown",d),c?.removeEventListener("keyup",p),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,o]),n}function oq(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function aq(e,r){return r.includes(e)?"code":"key"}const ZTe=()=>{const e=yr();return S.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:l}=e.getState();return l?(await l.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:l,panZoom:s}=e.getState(),c=du(r,o,a,i,l,n?.padding??.1);return s?(await s.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:l}=e.getState();if(!l)return r;const{x:s,y:c}=l.getBoundingClientRect(),u={x:r.x-s,y:r.y-c},d=n.snapGrid??a,p=n.snapToGrid??i;return T0(u,o,p,d)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),l=_x(r,n);return{x:l.x+a,y:l.y+i}}}),[])};function iq(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const l=o.get(i.id);l?l.push(i):o.set(i.id,[i])}for(const i of r){const l=o.get(i.id);if(!l){n.push(i);continue}if(l[0].type==="remove")continue;if(l[0].type==="replace"){n.push({...l[0].item});continue}const s={...i};for(const c of l)QTe(c,s);n.push(s)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function QTe(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured??={},r.measured.width=e.dimensions.width,r.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function Dx(e,r){return iq(e,r)}function Px(e,r){return iq(e,r)}function Qd(e,r){return{id:e,type:"select",selected:r}}function yf(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const l=r.has(a);!(i.selected===void 0&&!l)&&i.selected!==l&&(n&&(i.selected=l),o.push(Qd(i.id,l)))}return o}function lq({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const l=r.get(i.id),s=l?.internals?.userNode??l;s!==void 0&&s!==i&&n.push({id:i.id,item:i,type:"replace"}),s===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function sq(e){return{id:e.id,type:"remove"}}const cq=e=>SCe(e),JTe=e=>JF(e);function uq(e){return S.forwardRef(e)}const eRe=typeof window<"u"?S.useLayoutEffect:S.useEffect;function dq(e){const[r,n]=S.useState(BigInt(0)),[o]=S.useState(()=>tRe(()=>n(a=>a+BigInt(1))));return eRe(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function tRe(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const pq=S.createContext(null);function rRe({children:e}){const r=yr(),n=S.useCallback(s=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:p,nodeLookup:f,fitViewQueued:g}=r.getState();let b=c;for(const w of s)b=typeof w=="function"?w(b):w;const x=lq({items:b,lookup:f});d&&u(b),x.length>0?p?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:C}=r.getState();w&&C(k)})},[]),o=dq(n),a=S.useCallback(s=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:p,edgeLookup:f}=r.getState();let g=c;for(const b of s)g=typeof b=="function"?b(g):b;d?u(g):p&&p(lq({items:g,lookup:f}))},[]),i=dq(a),l=S.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return y.jsx(pq.Provider,{value:l,children:e})}function nRe(){const e=S.useContext(pq);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const oRe=e=>!!e.panZoom;function bf(){const e=ZTe(),r=yr(),n=nRe(),o=At(oRe),a=S.useMemo(()=>{const i=p=>r.getState().nodeLookup.get(p),l=p=>{n.nodeQueue.push(p)},s=p=>{n.edgeQueue.push(p)},c=p=>{const{nodeLookup:f,nodeOrigin:g}=r.getState(),b=cq(p)?p:f.get(p.id),x=b.parentId?lH(b.position,b.measured,b.parentId,f,g):b.position,w={...b,position:x,width:b.measured?.width??b.width,height:b.measured?.height??b.height};return Zd(w)},u=(p,f,g={replace:!1})=>{l(b=>b.map(x=>{if(x.id===p){const w=typeof f=="function"?f(x):f;return g.replace&&cq(w)?w:{...x,...w}}return x}))},d=(p,f,g={replace:!1})=>{s(b=>b.map(x=>{if(x.id===p){const w=typeof f=="function"?f(x):f;return g.replace&&JTe(w)?w:{...x,...w}}return x}))};return{getNodes:()=>r.getState().nodes.map(p=>({...p})),getNode:p=>i(p)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:p=[]}=r.getState();return p.map(f=>({...f}))},getEdge:p=>r.getState().edgeLookup.get(p),setNodes:l,setEdges:s,addNodes:p=>{const f=Array.isArray(p)?p:[p];n.nodeQueue.push(g=>[...g,...f])},addEdges:p=>{const f=Array.isArray(p)?p:[p];n.edgeQueue.push(g=>[...g,...f])},toObject:()=>{const{nodes:p=[],edges:f=[],transform:g}=r.getState(),[b,x,w]=g;return{nodes:p.map(k=>({...k})),edges:f.map(k=>({...k})),viewport:{x:b,y:x,zoom:w}}},deleteElements:async({nodes:p=[],edges:f=[]})=>{const{nodes:g,edges:b,onNodesDelete:x,onEdgesDelete:w,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:T}=r.getState(),{nodes:R,edges:A}=await ACe({nodesToRemove:p,edgesToRemove:f,nodes:g,edges:b,onBeforeDelete:T}),D=A.length>0,N=R.length>0;if(D){const $=A.map(sq);w?.(A),C($)}if(N){const $=R.map(sq);x?.(R),k($)}return(N||D)&&_?.({nodes:R,edges:A}),{deletedNodes:R,deletedEdges:A}},getIntersectingNodes:(p,f=!0,g)=>{const b=aH(p),x=b?p:c(p),w=g!==void 0;return x?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!b&&(k.id===p.id||!C.internals.positionAbsolute))return!1;const _=Zd(w?k:C),T=S0(_,x);return f&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(p,f,g=!0)=>{const b=aH(p)?p:c(p);if(!b)return!1;const x=S0(b,f);return g&&x>0||x>=f.width*f.height||x>=b.width*b.height},updateNode:u,updateNodeData:(p,f,g={replace:!1})=>{u(p,b=>{const x=typeof f=="function"?f(b):f;return g.replace?{...b,data:x}:{...b,data:{...b.data,...x}}},g)},updateEdge:d,updateEdgeData:(p,f,g={replace:!1})=>{d(p,b=>{const x=typeof f=="function"?f(b):f;return g.replace?{...b,data:x}:{...b,data:{...b.data,...x}}},g)},getNodesBounds:p=>{const{nodeLookup:f,nodeOrigin:g}=r.getState();return eH(p,{nodeLookup:f,nodeOrigin:g})},getHandleConnections:({type:p,id:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${p}${f?`-${f}`:""}`)?.values()??[]),getNodeConnections:({type:p,handleId:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${p?f?`-${p}-${f}`:`-${p}`:""}`)?.values()??[]),fitView:async p=>{const f=r.getState().fitViewResolver??$Ce();return r.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:f}),n.nodeQueue.push(g=>[...g]),f.promise}}},[]);return S.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const hq=e=>e.selected,aRe=typeof window<"u"?window:void 0;function iRe({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=yr(),{deleteElements:o}=bf(),a=N0(e,{actInsideInputWithModifier:!1}),i=N0(r,{target:aRe});S.useEffect(()=>{if(a){const{edges:l,nodes:s}=n.getState();o({nodes:s.filter(hq),edges:l.filter(hq)}),n.setState({nodesSelectionActive:!1})}},[a]),S.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function lRe(e){const r=yr();S.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=TE(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",ts.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const $x={position:"absolute",width:"100%",height:"100%",top:0,left:0},sRe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function cRe({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=Xd.Free,zoomOnDoubleClick:l=!0,panOnDrag:s=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:p,zoomActivationKeyCode:f,preventScrolling:g=!0,children:b,noWheelClassName:x,noPanClassName:w,onViewportChange:k,isControlledViewport:C,paneClickDistance:_}){const T=yr(),R=S.useRef(null),{userSelectionActive:A,lib:D,connectionInProgress:N}=At(sRe,$r),$=N0(f),O=S.useRef();lRe(R);const j=S.useCallback(L=>{k?.({x:L[0],y:L[1],zoom:L[2]}),C||T.setState({transform:L})},[k,C]);return S.useEffect(()=>{if(R.current){O.current=gTe({domNode:R.current,minZoom:d,maxZoom:p,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:q=>T.setState({paneDragging:q}),onPanZoomStart:(q,z)=>{const{onViewportChangeStart:H,onMoveStart:U}=T.getState();U?.(q,z),H?.(z)},onPanZoom:(q,z)=>{const{onViewportChange:H,onMove:U}=T.getState();U?.(q,z),H?.(z)},onPanZoomEnd:(q,z)=>{const{onViewportChangeEnd:H,onMoveEnd:U}=T.getState();U?.(q,z),H?.(z)}});const{x:L,y:Y,zoom:M}=O.current.getViewport();return T.setState({panZoom:O.current,transform:[L,Y,M],domNode:R.current.closest(".react-flow")}),()=>{O.current?.destroy()}}},[]),S.useEffect(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:l,panOnDrag:s,zoomActivationKeyPressed:$,preventScrolling:g,noPanClassName:w,userSelectionActive:A,noWheelClassName:x,lib:D,onTransformChange:j,connectionInProgress:N})},[e,r,n,o,a,i,l,s,$,g,w,A,x,D,j,N]),y.jsx("div",{className:"react-flow__renderer",ref:R,style:$x,children:b})}const uRe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function dRe(){const{userSelectionActive:e,userSelectionRect:r}=At(uRe,$r);return e&&r?y.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const FE=(e,r)=>n=>{n.target===r.current&&e?.(n)},pRe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function hRe({isSelecting:e,selectionKeyPressed:r,selectionMode:n=k0.Full,panOnDrag:o,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:l,onPaneClick:s,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:p,onPaneMouseLeave:f,children:g}){const b=yr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=At(pRe,$r),_=w&&(e||x),T=S.useRef(null),R=S.useRef(),A=S.useRef(new Set),D=S.useRef(new Set),N=S.useRef(!1),$=S.useRef(!1),O=U=>{if(N.current||C){N.current=!1;return}s?.(U),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},j=U=>{if(Array.isArray(o)&&o?.includes(2)){U.preventDefault();return}c?.(U)},L=u?U=>u(U):void 0,Y=U=>{(a&&T.current===U.target||!a||r)&&U.stopPropagation()},M=U=>{const{resetSelectedElements:K,domNode:V}=b.getState();R.current=V?.getBoundingClientRect();const X=U.target!==T.current&&!!U.target.closest(".nokey"),Z=a&&T.current===U.target||!a||r;if(!w||!e||U.button!==0||!R.current||X||!Z||!U.isPrimary)return;U.stopPropagation(),U.preventDefault(),U.target?.setPointerCapture?.(U.pointerId),$.current=!0,N.current=!1;const{x:B,y:W}=Ki(U.nativeEvent,R.current);K(),b.setState({userSelectionRect:{width:0,height:0,startX:B,startY:W,x:B,y:W}}),i?.(U)},q=U=>{const{userSelectionRect:K,transform:V,nodeLookup:X,edgeLookup:Z,connectionLookup:B,triggerNodeChanges:W,triggerEdgeChanges:Q,defaultEdgeOptions:J}=b.getState();if(!R.current||!K)return;N.current=!0;const{x:ne,y:te}=Ki(U.nativeEvent,R.current),{startX:ee,startY:pe}=K,Te={startX:ee,startY:pe,x:ne<ee?ne:ee,y:te<pe?te:pe,width:Math.abs(ne-ee),height:Math.abs(te-pe)},ce=A.current,de=D.current;A.current=new Set(SE(X,Te,V,n===k0.Partial,!0).map(De=>De.id)),D.current=new Set;const xe=J?.selectable??!0;for(const De of A.current){const Ge=B.get(De);if(Ge)for(const{edgeId:et}of Ge.values()){const ft=Z.get(et);ft&&(ft.selectable??xe)&&D.current.add(et)}}if(!sH(ce,A.current)){const De=yf(X,A.current,!0);W(De)}if(!sH(de,D.current)){const De=yf(Z,D.current);Q(De)}b.setState({userSelectionRect:Te,userSelectionActive:!0,nodesSelectionActive:!1})},z=U=>{if(U.button!==0||!$.current)return;U.target?.releasePointerCapture?.(U.pointerId);const{userSelectionRect:K}=b.getState();!x&&K&&U.target===T.current&&O?.(U),b.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:A.current.size>0}),l?.(U),(r||a)&&(N.current=!1),$.current=!1},H=o===!0||Array.isArray(o)&&o.includes(0);return y.jsxs("div",{className:dn(["react-flow__pane",{draggable:H,dragging:k,selection:e}]),onClick:_?void 0:FE(O,T),onContextMenu:FE(j,T),onWheel:FE(L,T),onPointerEnter:_?void 0:d,onPointerMove:_?q:p,onPointerUp:_?z:void 0,onPointerDownCapture:_?M:void 0,onClickCapture:_?Y:void 0,onPointerLeave:f,ref:T,style:$x,children:[g,y.jsx(dRe,{})]})}function HE({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:l,nodeLookup:s,onError:c}=r.getState(),u=s.get(e);if(!u){c?.("012",ts.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&l)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function fq({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:l}){const s=yr(),[c,u]=S.useState(!1),d=S.useRef();return S.useEffect(()=>{d.current=rTe({getStoreItems:()=>s.getState(),onNodeMouseDown:p=>{HE({id:p,store:s,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),S.useEffect(()=>{if(r)d.current?.destroy();else if(e.current)return d.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:l}),()=>{d.current?.destroy()}},[n,o,r,i,e,a]),c}const fRe=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function mq(){const e=yr();return S.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:l,updateNodePositions:s,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,p=fRe(i),f=o?a[0]:5,g=o?a[1]:5,b=r.direction.x*f*r.factor,x=r.direction.y*g*r.factor;for(const[,w]of c){if(!p(w))continue;let k={x:w.internals.positionAbsolute.x+b,y:w.internals.positionAbsolute.y+x};o&&(k=C0(k,a));const{position:C,positionAbsolute:_}=tH({nodeId:w.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:u,onError:l});w.position=C,w.internals.positionAbsolute=_,d.set(w.id,w)}s(d)},[])}const qE=S.createContext(null),mRe=qE.Provider;qE.Consumer;const UE=()=>S.useContext(qE),gRe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),yRe=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:l}=o,{fromHandle:s,toHandle:c,isValid:u}=l,d=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:s?.nodeId===e&&s?.id===r&&s?.type===n,connectingTo:d,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===cf.Strict?s?.type!==n:e!==s?.nodeId||r!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!a,valid:d&&u}};function bRe({type:e="source",position:r=tt.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:l,onConnect:s,children:c,className:u,onMouseDown:d,onTouchStart:p,...f},g){const b=l||null,x=e==="target",w=yr(),k=UE(),{connectOnClick:C,noPanClassName:_,rfId:T}=At(gRe,$r),{connectingFrom:R,connectingTo:A,clickConnecting:D,isPossibleEndHandle:N,connectionInProcess:$,clickConnectionInProcess:O,valid:j}=At(yRe(k,b,e),$r);k||w.getState().onError?.("010",ts.error010());const L=q=>{const{defaultEdgeOptions:z,onConnect:H,hasDefaultEdges:U}=w.getState(),K={...z,...q};if(U){const{edges:V,setEdges:X}=w.getState();X(jCe(K,V))}H?.(K),s?.(K)},Y=q=>{if(!k)return;const z=dH(q.nativeEvent);if(a&&(z&&q.button===0||!z)){const H=w.getState();OE.onPointerDown(q.nativeEvent,{handleDomNode:q.currentTarget,autoPanOnConnect:H.autoPanOnConnect,connectionMode:H.connectionMode,connectionRadius:H.connectionRadius,domNode:H.domNode,nodeLookup:H.nodeLookup,lib:H.lib,isTarget:x,handleId:b,nodeId:k,flowId:H.rfId,panBy:H.panBy,cancelConnection:H.cancelConnection,onConnectStart:H.onConnectStart,onConnectEnd:H.onConnectEnd,updateConnection:H.updateConnection,onConnect:L,isValidConnection:n||H.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:H.autoPanSpeed,dragThreshold:H.connectionDragThreshold})}z?d?.(q):p?.(q)},M=q=>{const{onClickConnectStart:z,onClickConnectEnd:H,connectionClickStartHandle:U,connectionMode:K,isValidConnection:V,lib:X,rfId:Z,nodeLookup:B,connection:W}=w.getState();if(!k||!U&&!a)return;if(!U){z?.(q.nativeEvent,{nodeId:k,handleId:b,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:b}});return}const Q=cH(q.target),J=n||V,{connection:ne,isValid:te}=OE.isValid(q.nativeEvent,{handle:{nodeId:k,id:b,type:e},connectionMode:K,fromNodeId:U.nodeId,fromHandleId:U.id||null,fromType:U.type,isValidConnection:J,flowId:Z,doc:Q,lib:X,nodeLookup:B});te&&ne&&L(ne);const ee=structuredClone(W);delete ee.inProgress,ee.toPosition=ee.toHandle?ee.toHandle.position:null,H?.(q,ee),w.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":b,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${b}-${e}`,className:dn(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,u,{source:!x,target:x,connectable:o,connectablestart:a,connectableend:i,clickconnecting:D,connectingfrom:R,connectingto:A,valid:j,connectionindicator:o&&(!$||N)&&($||O?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?M:void 0,ref:g,...f,children:c})}const fo=S.memo(uq(bRe));function vRe({data:e,isConnectable:r,sourcePosition:n=tt.Bottom}){return y.jsxs(y.Fragment,{children:[e?.label,y.jsx(fo,{type:"source",position:n,isConnectable:r})]})}function xRe({data:e,isConnectable:r,targetPosition:n=tt.Top,sourcePosition:o=tt.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(fo,{type:"target",position:n,isConnectable:r}),e?.label,y.jsx(fo,{type:"source",position:o,isConnectable:r})]})}function wRe(){return null}function kRe({data:e,isConnectable:r,targetPosition:n=tt.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(fo,{type:"target",position:n,isConnectable:r}),e?.label]})}const Mx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},gq={input:vRe,default:xRe,output:kRe,group:wRe};function _Re(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const ERe=e=>{const{width:r,height:n,x:o,y:a}=uf(e.nodeLookup,{filter:i=>!!i.selected});return{width:Xi(r)?r:null,height:Xi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function SRe({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=yr(),{width:a,height:i,transformString:l,userSelectionActive:s}=At(ERe,$r),c=mq(),u=S.useRef(null);if(S.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),fq({nodeRef:u}),s||!a||!i)return null;const d=e?f=>{const g=o.getState().nodes.filter(b=>b.selected);e(f,g)}:void 0,p=f=>{Object.prototype.hasOwnProperty.call(Mx,f.key)&&(f.preventDefault(),c({direction:Mx[f.key],factor:f.shiftKey?4:1}))};return y.jsx("div",{className:dn(["react-flow__nodesselection","react-flow__container",r]),style:{transform:l},children:y.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:a,height:i}})})}const yq=typeof window<"u"?window:void 0,CRe=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function bq({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:p,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:w,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:R,panOnScrollMode:A,zoomOnDoubleClick:D,panOnDrag:N,defaultViewport:$,translateExtent:O,minZoom:j,maxZoom:L,preventScrolling:Y,onSelectionContextMenu:M,noWheelClassName:q,noPanClassName:z,disableKeyboardA11y:H,onViewportChange:U,isControlledViewport:K}){const{nodesSelectionActive:V,userSelectionActive:X}=At(CRe),Z=N0(u,{target:yq}),B=N0(x,{target:yq}),W=B||N,Q=B||T,J=d&&W!==!0,ne=Z||X||J;return iRe({deleteKeyCode:c,multiSelectionKeyCode:b}),y.jsx(cRe,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:Q,panOnScrollSpeed:R,panOnScrollMode:A,zoomOnDoubleClick:D,panOnDrag:!Z&&W,defaultViewport:$,translateExtent:O,minZoom:j,maxZoom:L,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:q,noPanClassName:z,onViewportChange:U,isControlledViewport:K,paneClickDistance:s,children:y.jsxs(hRe,{onSelectionStart:f,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,panOnDrag:W,isSelecting:!!ne,selectionMode:p,selectionKeyPressed:Z,selectionOnDrag:J,children:[e,V&&y.jsx(SRe,{onSelectionContextMenu:M,noPanClassName:z,disableKeyboardA11y:H})]})})}bq.displayName="FlowRenderer";const TRe=S.memo(bq),RRe=e=>r=>e?SE(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function ARe(e){return At(S.useCallback(RRe(e),[e]),$r)}const NRe=e=>e.updateNodeInternals;function DRe(){const e=At(NRe),[r]=S.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return S.useEffect(()=>()=>{r?.disconnect()},[r]),r}function PRe({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=yr(),i=S.useRef(null),l=S.useRef(null),s=S.useRef(e.sourcePosition),c=S.useRef(e.targetPosition),u=S.useRef(r),d=n&&!!e.internals.handleBounds;return S.useEffect(()=>{i.current&&!e.hidden&&(!d||l.current!==i.current)&&(l.current&&o?.unobserve(l.current),o?.observe(i.current),l.current=i.current)},[d,e.hidden]),S.useEffect(()=>()=>{l.current&&(o?.unobserve(l.current),l.current=null)},[]),S.useEffect(()=>{if(i.current){const p=u.current!==r,f=s.current!==e.sourcePosition,g=c.current!==e.targetPosition;(p||f||g)&&(u.current=r,s.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function $Re({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:l,nodesDraggable:s,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:p,noDragClassName:f,noPanClassName:g,disableKeyboardA11y:b,rfId:x,nodeTypes:w,nodeClickDistance:k,onError:C}){const{node:_,internals:T,isParent:R}=At(te=>{const ee=te.nodeLookup.get(e),pe=te.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:pe}},$r);let A=_.type||"default",D=w?.[A]||gq[A];D===void 0&&(C?.("003",ts.error003(A)),A="default",D=w?.default||gq.default);const N=!!(_.draggable||s&&typeof _.draggable>"u"),$=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||u&&typeof _.connectable>"u"),j=!!(_.focusable||d&&typeof _.focusable>"u"),L=yr(),Y=iH(_),M=PRe({node:_,nodeType:A,hasDimensions:Y,resizeObserver:p}),q=fq({nodeRef:M,disabled:_.hidden||!N,noDragClassName:f,handleSelector:_.dragHandle,nodeId:e,isSelectable:$,nodeClickDistance:k}),z=mq();if(_.hidden)return null;const H=Qn(_),U=_Re(_),K=$||N||r||n||o||a,V=n?te=>n(te,{...T.userNode}):void 0,X=o?te=>o(te,{...T.userNode}):void 0,Z=a?te=>a(te,{...T.userNode}):void 0,B=i?te=>i(te,{...T.userNode}):void 0,W=l?te=>l(te,{...T.userNode}):void 0,Q=te=>{const{selectNodesOnDrag:ee,nodeDragThreshold:pe}=L.getState();$&&(!ee||!N||pe>0)&&HE({id:e,store:L,nodeRef:M}),r&&r(te,{...T.userNode})},J=te=>{if(!(uH(te.nativeEvent)||b)){if(GF.includes(te.key)&&$){const ee=te.key==="Escape";HE({id:e,store:L,unselect:ee,nodeRef:M})}else if(N&&_.selected&&Object.prototype.hasOwnProperty.call(Mx,te.key)){te.preventDefault();const{ariaLabelConfig:ee}=L.getState();L.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:te.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),z({direction:Mx[te.key],factor:te.shiftKey?4:1})}}},ne=()=>{if(b||!M.current?.matches(":focus-visible"))return;const{transform:te,width:ee,height:pe,autoPanOnNodeFocus:Te,setCenter:ce}=L.getState();Te&&(SE(new Map([[e,_]]),{x:0,y:0,width:ee,height:pe},te,!0).length>0||ce(_.position.x+H.width/2,_.position.y+H.height/2,{zoom:te[2]}))};return y.jsx("div",{className:dn(["react-flow__node",`react-flow__node-${A}`,{[g]:N},_.className,{selected:_.selected,selectable:$,parent:R,draggable:N,dragging:q}]),ref:M,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:Y?"visible":"hidden",..._.style,...U},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:V,onMouseMove:X,onMouseLeave:Z,onContextMenu:B,onClick:Q,onDoubleClick:W,onKeyDown:j?J:void 0,tabIndex:j?0:void 0,onFocus:j?ne:void 0,role:_.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":b?void 0:`${ZH}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:y.jsx(mRe,{value:e,children:y.jsx(D,{id:e,data:_.data,type:A,positionAbsoluteX:T.positionAbsolute.x,positionAbsoluteY:T.positionAbsolute.y,selected:_.selected??!1,selectable:$,draggable:N,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:q,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...H})})})}var MRe=S.memo($Re);const ORe=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function vq(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=At(ORe,$r),l=ARe(e.onlyRenderVisibleElements),s=DRe();return y.jsx("div",{className:"react-flow__nodes",style:$x,children:l.map(c=>y.jsx(MRe,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}vq.displayName="NodeRenderer";const IRe=S.memo(vq);function zRe(e){return At(S.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&zCe({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),$r)}const LRe=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return y.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},BRe=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return y.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},xq={[vx.Arrow]:LRe,[vx.ArrowClosed]:BRe};function jRe(e){const r=yr();return S.useMemo(()=>Object.prototype.hasOwnProperty.call(xq,e)?xq[e]:(r.getState().onError?.("009",ts.error009(e)),null),[e])}const FRe=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:l,orient:s="auto-start-reverse"})=>{const c=jRe(r);return c?y.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:y.jsx(c,{color:n,strokeWidth:l})}):null},wq=({defaultColor:e,rfId:r})=>{const n=At(i=>i.edges),o=At(i=>i.defaultEdgeOptions),a=S.useMemo(()=>UCe(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?y.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:y.jsx("defs",{children:a.map(i=>y.jsx(FRe,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};wq.displayName="MarkerDefinitions";var HRe=S.memo(wq);function kq({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:l=[2,4],labelBgBorderRadius:s=2,children:c,className:u,...d}){const[p,f]=S.useState({x:1,y:0,width:0,height:0}),g=dn(["react-flow__edge-textwrapper",u]),b=S.useRef(null);return S.useEffect(()=>{if(b.current){const x=b.current.getBBox();f({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?y.jsxs("g",{transform:`translate(${e-p.width/2} ${r-p.height/2})`,className:g,visibility:p.width?"visible":"hidden",...d,children:[a&&y.jsx("rect",{width:p.width+2*l[0],x:-l[0],y:-l[1],height:p.height+2*l[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),y.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:b,style:o,children:n}),c]}):null}kq.displayName="EdgeText";const qRe=S.memo(kq);function Ox({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:u=20,...d}){return y.jsxs(y.Fragment,{children:[y.jsx("path",{...d,d:e,fill:"none",className:dn(["react-flow__edge-path",d.className])}),u?y.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,o&&Xi(r)&&Xi(n)?y.jsx(qRe,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function _q({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===tt.Left||e===tt.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function Eq({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top}){const[l,s]=_q({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=_q({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,p,f,g]=hH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:s,targetControlX:c,targetControlY:u});return[`M${e},${r} C${l},${s} ${c},${u} ${o},${a}`,d,p,f,g]}function Sq(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l,targetPosition:s,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:k})=>{const[C,_,T]=Eq({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s}),R=e.isInternal?void 0:r;return y.jsx(Ox,{id:R,path:C,labelX:_,labelY:T,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:k})})}const URe=Sq({isInternal:!1}),Cq=Sq({isInternal:!0});URe.displayName="SimpleBezierEdge",Cq.displayName="SimpleBezierEdgeInternal";function Tq(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,sourcePosition:g=tt.Bottom,targetPosition:b=tt.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,R]=Cx({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:b,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),A=e.isInternal?void 0:r;return y.jsx(Ox,{id:A,path:_,labelX:T,labelY:R,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,markerEnd:x,markerStart:w,interactionWidth:C})})}const Rq=Tq({isInternal:!1}),Aq=Tq({isInternal:!0});Rq.displayName="SmoothStepEdge",Aq.displayName="SmoothStepEdgeInternal";function Nq(e){return S.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return y.jsx(Rq,{...n,id:o,pathOptions:S.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const VRe=Nq({isInternal:!1}),Dq=Nq({isInternal:!0});VRe.displayName="StepEdge",Dq.displayName="StepEdgeInternal";function Pq(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,markerEnd:g,markerStart:b,interactionWidth:x})=>{const[w,k,C]=gH({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return y.jsx(Ox,{id:_,path:w,labelX:k,labelY:C,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,markerEnd:g,markerStart:b,interactionWidth:x})})}const YRe=Pq({isInternal:!1}),$q=Pq({isInternal:!0});YRe.displayName="StraightEdge",$q.displayName="StraightEdgeInternal";function Mq(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l=tt.Bottom,targetPosition:s=tt.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,R]=Sx({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s,curvature:k?.curvature}),A=e.isInternal?void 0:r;return y.jsx(Ox,{id:A,path:_,labelX:T,labelY:R,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:C})})}const WRe=Mq({isInternal:!1}),Oq=Mq({isInternal:!0});WRe.displayName="BezierEdge",Oq.displayName="BezierEdgeInternal";const Iq={default:Oq,straight:$q,step:Dq,smoothstep:Aq,simplebezier:Cq},zq={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},GRe=(e,r,n)=>n===tt.Left?e-r:n===tt.Right?e+r:e,XRe=(e,r,n)=>n===tt.Top?e-r:n===tt.Bottom?e+r:e,Lq="react-flow__edgeupdater";function Bq({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:l,type:s}){return y.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:l,className:dn([Lq,`${Lq}-${s}`]),cx:GRe(r,o,e),cy:XRe(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function KRe({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:l,sourcePosition:s,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:p,setReconnecting:f,setUpdateHover:g}){const b=yr(),x=(T,R)=>{if(T.button!==0)return;const{autoPanOnConnect:A,domNode:D,isValidConnection:N,connectionMode:$,connectionRadius:O,lib:j,onConnectStart:L,onConnectEnd:Y,cancelConnection:M,nodeLookup:q,rfId:z,panBy:H,updateConnection:U}=b.getState(),K=R.type==="target",V=(B,W)=>{f(!1),p?.(B,n,R.type,W)},X=B=>u?.(n,B),Z=(B,W)=>{f(!0),d?.(T,n,R.type),L?.(B,W)};OE.onPointerDown(T.nativeEvent,{autoPanOnConnect:A,connectionMode:$,connectionRadius:O,domNode:D,handleId:R.id,nodeId:R.nodeId,nodeLookup:q,isTarget:K,edgeUpdaterType:R.type,lib:j,flowId:z,cancelConnection:M,panBy:H,isValidConnection:N,onConnect:X,onConnectStart:Z,onConnectEnd:Y,onReconnectEnd:V,updateConnection:U,getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,dragThreshold:b.getState().connectionDragThreshold,handleDomNode:T.currentTarget})},w=T=>x(T,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=T=>x(T,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return y.jsxs(y.Fragment,{children:[(e===!0||e==="source")&&y.jsx(Bq,{position:s,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&y.jsx(Bq,{position:c,centerX:i,centerY:l,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function ZRe({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:l,onMouseEnter:s,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,rfId:b,edgeTypes:x,noPanClassName:w,onError:k,disableKeyboardA11y:C}){let _=At(ce=>ce.edgeLookup.get(e));const T=At(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let R=_.type||"default",A=x?.[R]||Iq[R];A===void 0&&(k?.("011",ts.error011(R)),R="default",A=x?.default||Iq.default);const D=!!(_.focusable||r&&typeof _.focusable>"u"),N=typeof p<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),$=!!(_.selectable||o&&typeof _.selectable>"u"),O=S.useRef(null),[j,L]=S.useState(!1),[Y,M]=S.useState(!1),q=yr(),{zIndex:z,sourceX:H,sourceY:U,targetX:K,targetY:V,sourcePosition:X,targetPosition:Z}=At(S.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),xe=ce.nodeLookup.get(_.target);if(!de||!xe)return{zIndex:_.zIndex,...zq};const De=xH({id:e,sourceNode:de,targetNode:xe,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:ICe({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:xe,elevateOnSelect:ce.elevateEdgesOnSelect}),...De||zq}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),$r),B=S.useMemo(()=>_.markerStart?`url('#${RE(_.markerStart,b)}')`:void 0,[_.markerStart,b]),W=S.useMemo(()=>_.markerEnd?`url('#${RE(_.markerEnd,b)}')`:void 0,[_.markerEnd,b]);if(_.hidden||H===null||U===null||K===null||V===null)return null;const Q=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:xe,multiSelectionActive:De}=q.getState();$&&(q.setState({nodesSelectionActive:!1}),_.selected&&De?(xe({nodes:[],edges:[_]}),O.current?.blur()):de([e])),a&&a(ce,_)},J=i?ce=>{i(ce,{..._})}:void 0,ne=l?ce=>{l(ce,{..._})}:void 0,te=s?ce=>{s(ce,{..._})}:void 0,ee=c?ce=>{c(ce,{..._})}:void 0,pe=u?ce=>{u(ce,{..._})}:void 0,Te=ce=>{if(!C&&GF.includes(ce.key)&&$){const{unselectNodesAndEdges:de,addSelectedEdges:xe}=q.getState();ce.key==="Escape"?(O.current?.blur(),de({edges:[_]})):xe([e])}};return y.jsx("svg",{style:{zIndex:z},children:y.jsxs("g",{className:dn(["react-flow__edge",`react-flow__edge-${R}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!$&&!a,updating:j,selectable:$}]),onClick:Q,onDoubleClick:J,onContextMenu:ne,onMouseEnter:te,onMouseMove:ee,onMouseLeave:pe,onKeyDown:D?Te:void 0,tabIndex:D?0:void 0,role:_.ariaRole??(D?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":D?`${QH}-${b}`:void 0,ref:O,..._.domAttributes,children:[!Y&&y.jsx(A,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:$,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:H,sourceY:U,targetX:K,targetY:V,sourcePosition:X,targetPosition:Z,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:B,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),N&&y.jsx(KRe,{edge:_,isReconnectable:N,reconnectRadius:d,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,sourceX:H,sourceY:U,targetX:K,targetY:V,sourcePosition:X,targetPosition:Z,setUpdateHover:L,setReconnecting:M})]})})}var QRe=S.memo(ZRe);const JRe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function jq({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:l,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:p,onEdgeDoubleClick:f,onReconnectStart:g,onReconnectEnd:b,disableKeyboardA11y:x}){const{edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,onError:_}=At(JRe,$r),T=zRe(r);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(HRe,{defaultColor:e,rfId:n}),T.map(R=>y.jsx(QRe,{id:R,edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:l,onMouseEnter:s,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:p,onDoubleClick:f,onReconnectStart:g,onReconnectEnd:b,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:x},R))]})}jq.displayName="EdgeRenderer";const eAe=S.memo(jq),tAe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function rAe({children:e}){const r=At(tAe);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function nAe(e){const r=bf(),n=S.useRef(!1);S.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const oAe=e=>e.panZoom?.syncViewport;function aAe(e){const r=At(oAe),n=yr();return S.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function iAe(e){return e.connection.inProgress?{...e.connection,to:T0(e.connection.to,e.transform)}:{...e.connection}}function lAe(e){return iAe}function sAe(e){const r=lAe();return At(r,$r)}const cAe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function uAe({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:l,isValid:s,inProgress:c}=At(cAe,$r);return i&&a&&c?y.jsx("svg",{style:e,width:i,height:l,className:"react-flow__connectionline react-flow__container",children:y.jsx("g",{className:dn(["react-flow__connection",QF(s)]),children:y.jsx(Fq,{style:r,type:n,CustomComponent:o,isValid:s})})}):null}const Fq=({style:e,type:r=uu.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:l,fromHandle:s,fromPosition:c,to:u,toNode:d,toHandle:p,toPosition:f}=sAe();if(!a)return;if(n)return y.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:l,fromHandle:s,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:f,connectionStatus:QF(o),toNode:d,toHandle:p});let g="";const b={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:f};switch(r){case uu.Bezier:[g]=Sx(b);break;case uu.SimpleBezier:[g]=Eq(b);break;case uu.Step:[g]=Cx({...b,borderRadius:0});break;case uu.SmoothStep:[g]=Cx(b);break;default:[g]=gH(b)}return y.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};Fq.displayName="ConnectionLine";const dAe={};function Hq(e=dAe){S.useRef(e),yr(),S.useEffect(()=>{},[e])}function pAe(){yr(),S.useRef(!1),S.useEffect(()=>{},[])}function qq({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:l,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:p,onSelectionStart:f,onSelectionEnd:g,connectionLineType:b,connectionLineStyle:x,connectionLineComponent:w,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,multiSelectionKeyCode:R,panActivationKeyCode:A,zoomActivationKeyCode:D,deleteKeyCode:N,onlyRenderVisibleElements:$,elementsSelectable:O,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:M,preventScrolling:q,defaultMarkerColor:z,zoomOnScroll:H,zoomOnPinch:U,panOnScroll:K,panOnScrollSpeed:V,panOnScrollMode:X,zoomOnDoubleClick:Z,panOnDrag:B,onPaneClick:W,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:ne,onPaneScroll:te,onPaneContextMenu:ee,paneClickDistance:pe,nodeClickDistance:Te,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:xe,onEdgeMouseLeave:De,reconnectRadius:Ge,onReconnect:et,onReconnectStart:ft,onReconnectEnd:Ze,noDragClassName:Et,noWheelClassName:Xe,noPanClassName:We,disableKeyboardA11y:st,nodeExtent:ct,rfId:zn,viewport:we,onViewportChange:_e}){return Hq(e),Hq(r),pAe(),nAe(n),aAe(we),y.jsx(TRe,{onPaneClick:W,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:ne,onPaneContextMenu:ee,onPaneScroll:te,paneClickDistance:pe,deleteKeyCode:N,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:R,panActivationKeyCode:A,zoomActivationKeyCode:D,elementsSelectable:O,zoomOnScroll:H,zoomOnPinch:U,zoomOnDoubleClick:Z,panOnScroll:K,panOnScrollSpeed:V,panOnScrollMode:X,panOnDrag:B,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:M,onSelectionContextMenu:p,preventScrolling:q,noDragClassName:Et,noWheelClassName:Xe,noPanClassName:We,disableKeyboardA11y:st,onViewportChange:_e,isControlledViewport:!!we,children:y.jsxs(rAe,{children:[y.jsx(eAe,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:l,onReconnect:et,onReconnectStart:ft,onReconnectEnd:Ze,onlyRenderVisibleElements:$,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:xe,onEdgeMouseLeave:De,reconnectRadius:Ge,defaultMarkerColor:z,noPanClassName:We,disableKeyboardA11y:st,rfId:zn}),y.jsx(uAe,{style:x,type:b,component:w,containerStyle:k}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(IRe,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Te,onlyRenderVisibleElements:$,noPanClassName:We,noDragClassName:Et,disableKeyboardA11y:st,nodeExtent:ct,rfId:zn}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}qq.displayName="GraphView";const hAe=S.memo(qq),Uq=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c=.5,maxZoom:u=2,nodeOrigin:d,nodeExtent:p}={})=>{const f=new Map,g=new Map,b=new Map,x=new Map,w=o??r??[],k=n??e??[],C=d??[0,0],_=p??w0;CH(b,x,w);const T=DE(k,f,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let R=[0,0,1];if(l&&a&&i){const A=uf(f,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:D,y:N,zoom:$}=du(A,a,i,c,u,s?.padding??.1);R=[D,N,$]}return{rfId:"1",width:a??0,height:i??0,transform:R,nodes:k,nodesInitialized:T,nodeLookup:f,parentLookup:g,edges:w,edgeLookup:x,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:u,translateExtent:w0,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:cf.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:l??!1,fitViewOptions:s,fitViewResolver:null,connection:{...KF},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:NCe,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:XF}},fAe=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:p})=>PTe((f,g)=>{async function b(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:R,maxZoom:A}=g();w&&(await RCe({nodes:x,width:_,height:T,panZoom:w,minZoom:R,maxZoom:A},k),C?.resolve(!0),f({fitViewResolver:null}))}return{...Uq({nodes:e,edges:r,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:p,defaultNodes:n,defaultEdges:o}),setNodes:x=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:C,elevateNodesOnSelect:_,fitViewQueued:T}=g(),R=DE(x,w,k,{nodeOrigin:C,nodeExtent:p,elevateNodesOnSelect:_,checkEquality:!0});T&&R?(b(),f({nodes:x,nodesInitialized:R,fitViewQueued:!1,fitViewOptions:void 0})):f({nodes:x,nodesInitialized:R})},setEdges:x=>{const{connectionLookup:w,edgeLookup:k}=g();CH(w,k,x),f({edges:x})},setDefaultNodesAndEdges:(x,w)=>{if(x){const{setNodes:k}=g();k(x),f({hasDefaultNodes:!0})}if(w){const{setEdges:k}=g();k(w),f({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:C,domNode:_,nodeOrigin:T,nodeExtent:R,debug:A,fitViewQueued:D}=g(),{changes:N,updatedInternals:$}=QCe(x,k,C,_,T,R);$&&(GCe(k,C,{nodeOrigin:T,nodeExtent:R}),D?(b(),f({fitViewQueued:!1,fitViewOptions:void 0})):f({}),N?.length>0&&(A&&console.log("React Flow: trigger node changes",N),w?.(N)))},updateNodePositions:(x,w=!1)=>{const k=[],C=[],{nodeLookup:_,triggerNodeChanges:T}=g();for(const[R,A]of x){const D=_.get(R),N=!!(D?.expandParent&&D?.parentId&&A?.position),$={id:R,type:"position",position:N?{x:Math.max(0,A.position.x),y:Math.max(0,A.position.y)}:A.position,dragging:w};N&&D.parentId&&k.push({id:R,parentId:D.parentId,rect:{...A.internals.positionAbsolute,width:A.measured.width??0,height:A.measured.height??0}}),C.push($)}if(k.length>0){const{parentLookup:R,nodeOrigin:A}=g(),D=$E(k,_,R,A);C.push(...D)}T(C)},triggerNodeChanges:x=>{const{onNodesChange:w,setNodes:k,nodes:C,hasDefaultNodes:_,debug:T}=g();if(x?.length){if(_){const R=Dx(x,C);k(R)}T&&console.log("React Flow: trigger node changes",x),w?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:w,setEdges:k,edges:C,hasDefaultEdges:_,debug:T}=g();if(x?.length){if(_){const R=Px(x,C);k(R)}T&&console.log("React Flow: trigger edge changes",x),w?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const R=x.map(A=>Qd(A,!0));_(R);return}_(yf(C,new Set([...x]),!0)),T(yf(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const R=x.map(A=>Qd(A,!0));T(R);return}T(yf(k,new Set([...x]))),_(yf(C,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:w}={})=>{const{edges:k,nodes:C,nodeLookup:_,triggerNodeChanges:T,triggerEdgeChanges:R}=g(),A=x||C,D=w||k,N=A.map(O=>{const j=_.get(O.id);return j&&(j.selected=!1),Qd(O.id,!1)}),$=D.map(O=>Qd(O.id,!1));T(N),R($)},setMinZoom:x=>{const{panZoom:w,maxZoom:k}=g();w?.setScaleExtent([x,k]),f({minZoom:x})},setMaxZoom:x=>{const{panZoom:w,minZoom:k}=g();w?.setScaleExtent([k,x]),f({maxZoom:x})},setTranslateExtent:x=>{g().panZoom?.setTranslateExtent(x),f({translateExtent:x})},setPaneClickDistance:x=>{g().panZoom?.setClickDistance(x)},resetSelectedElements:()=>{const{edges:x,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:C,elementsSelectable:_}=g();if(!_)return;const T=w.reduce((A,D)=>D.selected?[...A,Qd(D.id,!1)]:A,[]),R=x.reduce((A,D)=>D.selected?[...A,Qd(D.id,!1)]:A,[]);k(T),C(R)},setNodeExtent:x=>{const{nodes:w,nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:T,nodeExtent:R}=g();x[0][0]===R[0][0]&&x[0][1]===R[0][1]&&x[1][0]===R[1][0]&&x[1][1]===R[1][1]||(DE(w,k,C,{nodeOrigin:_,nodeExtent:x,elevateNodesOnSelect:T,checkEquality:!1}),f({nodeExtent:x}))},panBy:x=>{const{transform:w,width:k,height:C,panZoom:_,translateExtent:T}=g();return JCe({delta:x,panZoom:_,transform:w,translateExtent:T,width:k,height:C})},setCenter:async(x,w,k)=>{const{width:C,height:_,maxZoom:T,panZoom:R}=g();if(!R)return Promise.resolve(!1);const A=typeof k?.zoom<"u"?k.zoom:T;return await R.setViewport({x:C/2-x*A,y:_/2-w*A,zoom:A},{duration:k?.duration,ease:k?.ease,interpolate:k?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{f({connection:{...KF}})},updateConnection:x=>{f({connection:x})},reset:()=>f({...Uq()})}},Object.is);function Ix({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:l,initialMaxZoom:s,initialFitViewOptions:c,fitView:u,nodeOrigin:d,nodeExtent:p,children:f}){const[g]=S.useState(()=>fAe({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:u,minZoom:l,maxZoom:s,fitViewOptions:c,nodeOrigin:d,nodeExtent:p}));return y.jsx($Te,{value:g,children:y.jsx(rRe,{children:f})})}function mAe({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:l,fitView:s,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:p,nodeExtent:f}){return S.useContext(Ax)?y.jsx(y.Fragment,{children:e}):y.jsx(Ix,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:l,fitView:s,initialFitViewOptions:c,initialMinZoom:u,initialMaxZoom:d,nodeOrigin:p,nodeExtent:f,children:e})}const gAe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function yAe({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:l,onNodeClick:s,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:p,onMoveEnd:f,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:R,onNodeDoubleClick:A,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:$,onNodesDelete:O,onEdgesDelete:j,onDelete:L,onSelectionChange:Y,onSelectionDragStart:M,onSelectionDrag:q,onSelectionDragStop:z,onSelectionContextMenu:H,onSelectionStart:U,onSelectionEnd:K,onBeforeDelete:V,connectionMode:X,connectionLineType:Z=uu.Bezier,connectionLineStyle:B,connectionLineComponent:W,connectionLineContainerStyle:Q,deleteKeyCode:J="Backspace",selectionKeyCode:ne="Shift",selectionOnDrag:te=!1,selectionMode:ee=k0.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:Te=hf()?"Meta":"Control",zoomActivationKeyCode:ce=hf()?"Meta":"Control",snapToGrid:de,snapGrid:xe,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:Ge,nodesDraggable:et,autoPanOnNodeFocus:ft,nodesConnectable:Ze,nodesFocusable:Et,nodeOrigin:Xe=JH,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:ct=!0,defaultViewport:zn=YTe,minZoom:we=.5,maxZoom:_e=2,translateExtent:at=w0,preventScrolling:vt=!0,nodeExtent:Ct,defaultMarkerColor:Zr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Sr=!0,panOnScroll:Pr=!1,panOnScrollSpeed:fn=.5,panOnScrollMode:ar=Xd.Free,zoomOnDoubleClick:ha=!0,panOnDrag:hr=!0,onPaneClick:Ua,onPaneMouseEnter:Ni,onPaneMouseMove:Qu,onPaneMouseLeave:Ju,onPaneScroll:jl,onPaneContextMenu:ed,paneClickDistance:Fl=0,nodeClickDistance:Jb=0,children:Dg,onReconnect:ch,onReconnectStart:Nc,onReconnectEnd:ev,onEdgeContextMenu:Pg,onEdgeDoubleClick:$g,onEdgeMouseEnter:Mg,onEdgeMouseMove:uh,onEdgeMouseLeave:dh,reconnectRadius:Og=10,onNodesChange:Ig,onEdgesChange:Di,noDragClassName:mn="nodrag",noWheelClassName:co="nowheel",noPanClassName:Pi="nopan",fitView:Dc,fitViewOptions:ph,connectOnClick:tv,attributionPosition:zg,proOptions:Pc,defaultEdgeOptions:hh,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Ts,disableKeyboardA11y:Hl=!1,autoPanOnConnect:Rs,autoPanOnNodeDrag:ln,autoPanSpeed:Lg,connectionRadius:Bg,isValidConnection:ql,onError:As,style:rv,id:td,nodeDragThreshold:jg,connectionDragThreshold:nv,viewport:rd,onViewportChange:nd,width:Va,height:Bo,colorMode:Fg="light",debug:ov,onScroll:$c,ariaLabelConfig:Hg,...od},av){const Ln=td||"1",fh=KTe(Fg),qg=S.useCallback(Mc=>{Mc.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),$c?.(Mc)},[$c]);return y.jsx("div",{"data-testid":"rf__wrapper",...od,onScroll:qg,style:{...rv,...gAe},ref:av,className:dn(["react-flow",a,fh]),id:td,role:"application",children:y.jsxs(mAe,{nodes:e,edges:r,width:Va,height:Bo,fitView:Dc,fitViewOptions:ph,minZoom:we,maxZoom:_e,nodeOrigin:Xe,nodeExtent:Ct,children:[y.jsx(hAe,{onInit:u,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:R,onNodeDoubleClick:A,nodeTypes:i,edgeTypes:l,connectionLineType:Z,connectionLineStyle:B,connectionLineComponent:W,connectionLineContainerStyle:Q,selectionKeyCode:ne,selectionOnDrag:te,selectionMode:ee,deleteKeyCode:J,multiSelectionKeyCode:Te,panActivationKeyCode:pe,zoomActivationKeyCode:ce,onlyRenderVisibleElements:De,defaultViewport:zn,translateExtent:at,minZoom:we,maxZoom:_e,preventScrolling:vt,zoomOnScroll:Pt,zoomOnPinch:Sr,zoomOnDoubleClick:ha,panOnScroll:Pr,panOnScrollSpeed:fn,panOnScrollMode:ar,panOnDrag:hr,onPaneClick:Ua,onPaneMouseEnter:Ni,onPaneMouseMove:Qu,onPaneMouseLeave:Ju,onPaneScroll:jl,onPaneContextMenu:ed,paneClickDistance:Fl,nodeClickDistance:Jb,onSelectionContextMenu:H,onSelectionStart:U,onSelectionEnd:K,onReconnect:ch,onReconnectStart:Nc,onReconnectEnd:ev,onEdgeContextMenu:Pg,onEdgeDoubleClick:$g,onEdgeMouseEnter:Mg,onEdgeMouseMove:uh,onEdgeMouseLeave:dh,reconnectRadius:Og,defaultMarkerColor:Zr,noDragClassName:mn,noWheelClassName:co,noPanClassName:Pi,rfId:Ln,disableKeyboardA11y:Hl,nodeExtent:Ct,viewport:rd,onViewportChange:nd}),y.jsx(XTe,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:et,autoPanOnNodeFocus:ft,nodesConnectable:Ze,nodesFocusable:Et,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:ct,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Ts,minZoom:we,maxZoom:_e,nodeExtent:Ct,onNodesChange:Ig,onEdgesChange:Di,snapToGrid:de,snapGrid:xe,connectionMode:X,translateExtent:at,connectOnClick:tv,defaultEdgeOptions:hh,fitView:Dc,fitViewOptions:ph,onNodesDelete:O,onEdgesDelete:j,onDelete:L,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:$,onSelectionDrag:q,onSelectionDragStart:M,onSelectionDragStop:z,onMove:d,onMoveStart:p,onMoveEnd:f,noPanClassName:Pi,nodeOrigin:Xe,rfId:Ln,autoPanOnConnect:Rs,autoPanOnNodeDrag:ln,autoPanSpeed:Lg,onError:As,connectionRadius:Bg,isValidConnection:ql,selectNodesOnDrag:Ge,nodeDragThreshold:jg,connectionDragThreshold:nv,onBeforeDelete:V,paneClickDistance:Fl,debug:ov,ariaLabelConfig:Hg}),y.jsx(VTe,{onSelectionChange:Y}),Dg,y.jsx(jTe,{proOptions:Pc,position:zg}),y.jsx(BTe,{rfId:Ln,disableKeyboardA11y:Hl})]})})}var bAe=uq(yAe);const vAe=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function Vq({children:e}){const r=At(vAe);return r?Fi.createPortal(e,r):null}function xAe(e){return At(S.useCallback(r=>r.nodeLookup.get(e),[e]),$r)}function wAe({dimensions:e,lineWidth:r,variant:n,className:o}){return y.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:dn(["react-flow__background-pattern",n,o])})}function kAe({radius:e,className:r}){return y.jsx("circle",{cx:e,cy:e,r:e,className:dn(["react-flow__background-pattern","dots",r])})}var Zi;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Zi||(Zi={}));const _Ae={[Zi.Dots]:1,[Zi.Lines]:1,[Zi.Cross]:6},EAe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Yq({id:e,variant:r=Zi.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:l,bgColor:s,style:c,className:u,patternClassName:d}){const p=S.useRef(null),{transform:f,patternId:g}=At(EAe,$r),b=o||_Ae[r],x=r===Zi.Dots,w=r===Zi.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*f[2]||1,k[1]*f[2]||1],_=b*f[2],T=Array.isArray(i)?i:[i,i],R=w?[_,_]:C,A=[T[0]*f[2]||1+R[0]/2,T[1]*f[2]||1+R[1]/2],D=`${g}${e||""}`;return y.jsxs("svg",{className:dn(["react-flow__background",u]),style:{...c,...$x,"--xy-background-color-props":s,"--xy-background-pattern-color-props":l},ref:p,"data-testid":"rf__background",children:[y.jsx("pattern",{id:D,x:f[0]%C[0],y:f[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${A[0]},-${A[1]})`,children:x?y.jsx(kAe,{radius:_/2,className:d}):y.jsx(wAe,{dimensions:R,lineWidth:a,variant:r,className:d})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}Yq.displayName="Background";const Wq=S.memo(Yq);function SAe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:y.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function CAe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:y.jsx("path",{d:"M0 0h32v4.2H0z"})})}function TAe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:y.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function RAe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function AAe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function zx({children:e,className:r,...n}){return y.jsx("button",{type:"button",className:dn(["react-flow__controls-button",r]),...n,children:e})}const NAe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Gq({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:l,onFitView:s,onInteractiveChange:c,className:u,children:d,position:p="bottom-left",orientation:f="vertical","aria-label":g}){const b=yr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=At(NAe,$r),{zoomIn:_,zoomOut:T,fitView:R}=bf(),A=()=>{_(),i?.()},D=()=>{T(),l?.()},N=()=>{R(a),s?.()},$=()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return y.jsxs(fu,{className:dn(["react-flow__controls",f==="horizontal"?"horizontal":"vertical",u]),position:p,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(zx,{onClick:A,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:y.jsx(SAe,{})}),y.jsx(zx,{onClick:D,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:y.jsx(CAe,{})})]}),n&&y.jsx(zx,{className:"react-flow__controls-fitview",onClick:N,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:y.jsx(TAe,{})}),o&&y.jsx(zx,{className:"react-flow__controls-interactive",onClick:$,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?y.jsx(AAe,{}):y.jsx(RAe,{})}),d]})}Gq.displayName="Controls",S.memo(Gq);function DAe({id:e,x:r,y:n,width:o,height:a,style:i,color:l,strokeColor:s,strokeWidth:c,className:u,borderRadius:d,shapeRendering:p,selected:f,onClick:g}){const{background:b,backgroundColor:x}=i||{},w=l||b||x;return y.jsx("rect",{className:dn(["react-flow__minimap-node",{selected:f},u]),x:r,y:n,rx:d,ry:d,width:o,height:a,style:{fill:w,stroke:s,strokeWidth:c},shapeRendering:p,onClick:g?k=>g(k,e):void 0})}const PAe=S.memo(DAe),$Ae=e=>e.nodes.map(r=>r.id),VE=e=>e instanceof Function?e:()=>e;function MAe({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=PAe,onClick:l}){const s=At($Ae,$r),c=VE(r),u=VE(e),d=VE(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:s.map(f=>y.jsx(IAe,{id:f,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:l,shapeRendering:p},f))})}function OAe({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:l,NodeComponent:s,onClick:c}){const{node:u,x:d,y:p,width:f,height:g}=At(b=>{const{internals:x}=b.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=Qn(w);return{node:w,x:k,y:C,width:_,height:T}},$r);return!u||u.hidden||!iH(u)?null:y.jsx(s,{x:d,y:p,width:f,height:g,style:u.style,selected:!!u.selected,className:o(u),color:r(u),borderRadius:a,strokeColor:n(u),strokeWidth:i,shapeRendering:l,onClick:c,id:u.id})}const IAe=S.memo(OAe);var zAe=S.memo(MAe);const LAe=200,BAe=150,jAe=e=>!e.hidden,FAe=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?kx(uf(e.nodeLookup,{filter:jAe}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},HAe="react-flow__minimap-desc";function Xq({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:l,nodeComponent:s,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:p,position:f="bottom-right",onClick:g,onNodeClick:b,pannable:x=!1,zoomable:w=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:T=5}){const R=yr(),A=S.useRef(null),{boundingRect:D,viewBB:N,rfId:$,panZoom:O,translateExtent:j,flowWidth:L,flowHeight:Y,ariaLabelConfig:M}=At(FAe,$r),q=e?.width??LAe,z=e?.height??BAe,H=D.width/q,U=D.height/z,K=Math.max(H,U),V=K*q,X=K*z,Z=T*K,B=D.x-(V-D.width)/2-Z,W=D.y-(X-D.height)/2-Z,Q=V+Z*2,J=X+Z*2,ne=`${HAe}-${$}`,te=S.useRef(0),ee=S.useRef();te.current=K,S.useEffect(()=>{if(A.current&&O)return ee.current=sTe({domNode:A.current,panZoom:O,getTransform:()=>R.getState().transform,getViewScale:()=>te.current}),()=>{ee.current?.destroy()}},[O]),S.useEffect(()=>{ee.current?.update({translateExtent:j,width:L,height:Y,inversePan:C,pannable:x,zoomStep:_,zoomable:w})},[x,w,C,_,j,L,Y]);const pe=g?de=>{const[xe,De]=ee.current?.pointer(de)||[0,0];g(de,{x:xe,y:De})}:void 0,Te=b?S.useCallback((de,xe)=>{const De=R.getState().nodeLookup.get(xe).internals.userNode;b(de,De)},[]):void 0,ce=k??M["minimap.ariaLabel"];return y.jsx(fu,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*K:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof l=="number"?l:void 0},className:dn(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:q,height:z,viewBox:`${B} ${W} ${Q} ${J}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ne,ref:A,onClick:pe,children:[ce&&y.jsx("title",{id:ne,children:ce}),y.jsx(zAe,{onClick:Te,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:l,nodeComponent:s}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${B-Z},${W-Z}h${Q+Z*2}v${J+Z*2}h${-Q-Z*2}z
        M${N.x},${N.y}h${N.width}v${N.height}h${-N.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}Xq.displayName="MiniMap",S.memo(Xq);const qAe=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,UAe={[gf.Line]:"right",[gf.Handle]:"bottom-right"};function VAe({nodeId:e,position:r,variant:n=gf.Handle,className:o,style:a=void 0,children:i,color:l,minWidth:s=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:f,autoScale:g=!0,shouldResize:b,onResizeStart:x,onResize:w,onResizeEnd:k}){const C=UE(),_=typeof e=="string"?e:C,T=yr(),R=S.useRef(null),A=n===gf.Handle,D=At(S.useCallback(qAe(A&&g),[A,g]),$r),N=S.useRef(null),$=r??UAe[n];S.useEffect(()=>{if(!(!R.current||!_))return N.current||(N.current=kTe({domNode:R.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q,domNode:z}=T.getState();return{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q,paneDomNode:z}},onChange:(j,L)=>{const{triggerNodeChanges:Y,nodeLookup:M,parentLookup:q,nodeOrigin:z}=T.getState(),H=[],U={x:j.x,y:j.y},K=M.get(_);if(K&&K.expandParent&&K.parentId){const V=K.origin??z,X=j.width??K.measured.width??0,Z=j.height??K.measured.height??0,B={id:K.id,parentId:K.parentId,rect:{width:X,height:Z,...lH({x:j.x??K.position.x,y:j.y??K.position.y},{width:X,height:Z},K.parentId,M,V)}},W=$E([B],M,q,z);H.push(...W),U.x=j.x?Math.max(V[0]*X,j.x):void 0,U.y=j.y?Math.max(V[1]*Z,j.y):void 0}if(U.x!==void 0&&U.y!==void 0){const V={id:_,type:"position",position:{...U}};H.push(V)}if(j.width!==void 0&&j.height!==void 0){const V={id:_,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};H.push(V)}for(const V of L){const X={...V,type:"position"};H.push(X)}Y(H)},onEnd:({width:j,height:L})=>{const Y={id:_,type:"dimensions",resizing:!1,dimensions:{width:j,height:L}};T.getState().triggerNodeChanges([Y])}})),N.current.update({controlPosition:$,boundaries:{minWidth:s,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:p,resizeDirection:f,onResizeStart:x,onResize:w,onResizeEnd:k,shouldResize:b}),()=>{N.current?.destroy()}},[$,s,c,u,d,p,x,w,k,b]);const O=$.split("-");return y.jsx("div",{className:dn(["react-flow__resize-control","nodrag",...O,n,o]),ref:R,style:{...a,scale:D,...l&&{[A?"backgroundColor":"borderColor"]:l}},children:i})}S.memo(VAe);const YAe=e=>e.domNode?.querySelector(".react-flow__renderer");function WAe({children:e}){const r=At(YAe);return r?Fi.createPortal(e,r):null}const GAe=(e,r)=>e?.internals.positionAbsolute.x!==r?.internals.positionAbsolute.x||e?.internals.positionAbsolute.y!==r?.internals.positionAbsolute.y||e?.measured.width!==r?.measured.width||e?.measured.height!==r?.measured.height||e?.selected!==r?.selected||e?.internals.z!==r?.internals.z,XAe=(e,r)=>{if(e.size!==r.size)return!1;for(const[n,o]of e)if(GAe(o,r.get(n)))return!1;return!0},KAe=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(r=>r.selected).length});function Kq({nodeId:e,children:r,className:n,style:o,isVisible:a,position:i=tt.Top,offset:l=10,align:s="center",...c}){const u=UE(),d=S.useCallback(T=>(Array.isArray(e)?e:[e||u||""]).reduce((R,A)=>{const D=T.nodeLookup.get(A);return D&&R.set(D.id,D),R},new Map),[e,u]),p=At(d,XAe),{x:f,y:g,zoom:b,selectedNodesCount:x}=At(KAe,$r);if(!(typeof a=="boolean"?a:p.size===1&&p.values().next().value?.selected&&x===1)||!p.size)return null;const w=uf(p),k=Array.from(p.values()),C=Math.max(...k.map(T=>T.internals.z+1)),_={position:"absolute",transform:VCe(w,{x:f,y:g,zoom:b},i,l,s),zIndex:C,...o};return y.jsx(WAe,{children:y.jsx("div",{style:_,className:dn(["react-flow__node-toolbar",n]),...c,"data-id":k.reduce((T,R)=>`${T}${R.id} `,"").trim(),children:r})})}var ZAe=Object.getOwnPropertyNames,QAe=Object.getOwnPropertySymbols,JAe=Object.prototype.hasOwnProperty;function Zq(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function Lx(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),l=a.get(n);if(i&&l)return i===n&&l===r;a.set(r,n),a.set(n,r);var s=e(r,n,o);return a.delete(r),a.delete(n),s}}function eNe(e){return e?.[Symbol.toStringTag]}function Qq(e){return ZAe(e).concat(QAe(e))}var tNe=Object.hasOwn||(function(e,r){return JAe.call(e,r)});function Jd(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var rNe="__v",nNe="__o",oNe="_owner",Jq=Object.getOwnPropertyDescriptor,eU=Object.keys;function aNe(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function iNe(e,r){return Jd(e.getTime(),r.getTime())}function lNe(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function sNe(e,r){return e===r}function tU(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),l,s,c=0;(l=i.next())&&!l.done;){for(var u=r.entries(),d=!1,p=0;(s=u.next())&&!s.done;){if(a[p]){p++;continue}var f=l.value,g=s.value;if(n.equals(f[0],g[0],c,p,e,r,n)&&n.equals(f[1],g[1],f[0],g[0],e,r,n)){d=a[p]=!0;break}p++}if(!d)return!1;c++}return!0}var cNe=Jd;function uNe(e,r,n){var o=eU(e),a=o.length;if(eU(r).length!==a)return!1;for(;a-- >0;)if(!nU(e,r,n,o[a]))return!1;return!0}function D0(e,r,n){var o=Qq(e),a=o.length;if(Qq(r).length!==a)return!1;for(var i,l,s;a-- >0;)if(i=o[a],!nU(e,r,n,i)||(l=Jq(e,i),s=Jq(r,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function dNe(e,r){return Jd(e.valueOf(),r.valueOf())}function pNe(e,r){return e.source===r.source&&e.flags===r.flags}function rU(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),l,s;(l=i.next())&&!l.done;){for(var c=r.values(),u=!1,d=0;(s=c.next())&&!s.done;){if(!a[d]&&n.equals(l.value,s.value,l.value,s.value,e,r,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function hNe(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function fNe(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function nU(e,r,n,o){return(o===oNe||o===nNe||o===rNe)&&(e.$$typeof||r.$$typeof)?!0:tNe(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var mNe="[object Arguments]",gNe="[object Boolean]",yNe="[object Date]",bNe="[object Error]",vNe="[object Map]",xNe="[object Number]",wNe="[object Object]",kNe="[object RegExp]",_Ne="[object Set]",ENe="[object String]",SNe="[object URL]",CNe=Array.isArray,oU=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,aU=Object.assign,TNe=Object.prototype.toString.call.bind(Object.prototype.toString);function RNe(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,l=e.areNumbersEqual,s=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,p=e.areTypedArraysEqual,f=e.areUrlsEqual,g=e.unknownTagComparators;return function(b,x,w){if(b===x)return!0;if(b==null||x==null)return!1;var k=typeof b;if(k!==typeof x)return!1;if(k!=="object")return k==="number"?l(b,x,w):k==="function"?a(b,x,w):!1;var C=b.constructor;if(C!==x.constructor)return!1;if(C===Object)return s(b,x,w);if(CNe(b))return r(b,x,w);if(oU!=null&&oU(b))return p(b,x,w);if(C===Date)return n(b,x,w);if(C===RegExp)return u(b,x,w);if(C===Map)return i(b,x,w);if(C===Set)return d(b,x,w);var _=TNe(b);if(_===yNe)return n(b,x,w);if(_===kNe)return u(b,x,w);if(_===vNe)return i(b,x,w);if(_===_Ne)return d(b,x,w);if(_===wNe)return typeof b.then!="function"&&typeof x.then!="function"&&s(b,x,w);if(_===SNe)return f(b,x,w);if(_===bNe)return o(b,x,w);if(_===mNe)return s(b,x,w);if(_===gNe||_===xNe||_===ENe)return c(b,x,w);if(g){var T=g[_];if(!T){var R=eNe(b);R&&(T=g[R])}if(T)return T(b,x,w)}return!1}}function ANe(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?D0:aNe,areDatesEqual:iNe,areErrorsEqual:lNe,areFunctionsEqual:sNe,areMapsEqual:o?Zq(tU,D0):tU,areNumbersEqual:cNe,areObjectsEqual:o?D0:uNe,arePrimitiveWrappersEqual:dNe,areRegExpsEqual:pNe,areSetsEqual:o?Zq(rU,D0):rU,areTypedArraysEqual:o?D0:hNe,areUrlsEqual:fNe,unknownTagComparators:void 0};if(n&&(a=aU({},a,n(a))),r){var i=Lx(a.areArraysEqual),l=Lx(a.areMapsEqual),s=Lx(a.areObjectsEqual),c=Lx(a.areSetsEqual);a=aU({},a,{areArraysEqual:i,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:c})}return a}function NNe(e){return function(r,n,o,a,i,l,s){return e(r,n,s)}}function DNe(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(s,c){var u=o(),d=u.cache,p=d===void 0?r?new WeakMap:void 0:d,f=u.meta;return n(s,c,{cache:p,equals:a,meta:f,strict:i})};if(r)return function(s,c){return n(s,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var l={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,c){return n(s,c,l)}}var ut=mu();mu({strict:!0}),mu({circular:!0}),mu({circular:!0,strict:!0});var Jn=mu({createInternalComparator:function(){return Jd}});mu({strict:!0,createInternalComparator:function(){return Jd}}),mu({circular:!0,createInternalComparator:function(){return Jd}}),mu({circular:!0,createInternalComparator:function(){return Jd},strict:!0});function mu(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,l=i===void 0?!1:i,s=ANe(e),c=RNe(s),u=o?o(c):NNe(c);return DNe({circular:n,comparator:c,createState:a,equals:u,strict:l})}function PNe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function ur(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return PNe(e,r,n);throw Error("Wrong number of arguments")}const $Ne=e=>(r,n)=>{if(n===0)return e(r);if(!Number.isInteger(n))throw TypeError(`precision must be an integer: ${n.toString()}`);if(n>15||n<-15)throw RangeError("precision must be between -15 and 15");if(Number.isNaN(r)||!Number.isFinite(r))return e(r);let o=iU(r,n),a=e(o);return iU(a,-n)};function iU(e,r){let[n,o]=e.toString().split("e"),a=(o===void 0?0:Number.parseInt(o,10))+r,i=`${n}e${a.toString()}`;return Number.parseFloat(i)}function MNe(...e){return ur($Ne(Math.ceil),e)}function Qi(...e){return ur(ONe,e)}const ONe=(e,{min:r,max:n})=>r!==void 0&&e<r?r:n!==void 0&&e>n?n:e;function INe(...e){return ur(zNe,e)}const zNe=(e,r)=>[...e,...r],Bx={done:!1,hasNext:!1};function kn(e,...r){let n=e,o=r.map(i=>"lazy"in i?LNe(i):void 0),a=0;for(;a<r.length;){if(o[a]===void 0||!BNe(n)){let c=r[a];n=c(n),a+=1;continue}let i=[];for(let c=a;c<r.length;c++){let u=o[c];if(u===void 0||(i.push(u),u.isSingle))break}let l=[];for(let c of n)if(lU(c,l,i))break;let{isSingle:s}=i.at(-1);n=s?l[0]:l,a+=i.length}return n}function lU(e,r,n){if(n.length===0)return r.push(e),!1;let o=e,a=Bx,i=!1;for(let[l,s]of n.entries()){let{index:c,items:u}=s;if(u.push(o),a=s(o,c,u),s.index+=1,a.hasNext){if(a.hasMany??!1){for(let d of a.next)if(lU(d,r,n.slice(l+1)))return!0;return i}o=a.next}if(!a.hasNext)break;a.done&&(i=!0)}return a.hasNext&&r.push(o),i}function LNe(e){let{lazy:r,lazyArgs:n}=e,o=r(...n);return Object.assign(o,{isSingle:r.single??!1,index:0,items:[]})}function BNe(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function jNe(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return kn(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>kn(a,o),o)}throw Error("Wrong number of arguments")}function Ao(...e){return ur(FNe,e)}const FNe=(e,r)=>e.length>=r,sU={asc:(e,r)=>e>r,desc:(e,r)=>e<r};function HNe(e,r){let[n,...o]=r;if(!qNe(n)){let i=YE(...o);return e(n,i)}let a=YE(n,...o);return i=>e(i,a)}function YE(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=sU,l=r===void 0?void 0:YE(r,...n);return(s,c)=>{let u=o(s),d=o(c);return i(u,d)?1:i(d,u)?-1:l?.(s,c)??0}}function qNe(e){if(cU(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return cU(r)&&typeof n=="string"&&n in sU&&o.length===0}const cU=e=>typeof e=="function"&&e.length===1;function WE(...e){return ur(Object.entries,e)}function vf(...e){return ur(UNe,e,VNe)}const UNe=(e,r)=>e.filter(r),VNe=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:Bx,uU=e=>Object.assign(e,{single:!0});function jx(...e){return ur(YNe,e,uU(WNe))}const YNe=(e,r)=>e.find(r),WNe=e=>(r,n,o)=>e(r,n,o)?{done:!0,hasNext:!0,next:r}:Bx;function xf(...e){return ur(GNe,e,uU(XNe))}const GNe=([e])=>e,XNe=()=>KNe,KNe=e=>({hasNext:!0,next:e,done:!0});function ZNe(...e){return ur(QNe,e,JNe)}const QNe=(e,r)=>e.flatMap(r),JNe=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function eDe(...e){return ur(tDe,e)}function tDe(e,r){for(let[n,o]of Object.entries(e))r(o,n,e);return e}function rDe(...e){return ur(nDe,e)}const nDe=(e,r)=>{let n=Object.create(null);for(let o=0;o<e.length;o++){let a=e[o],i=r(a,o,e);if(i!==void 0){let l=n[i];l===void 0?n[i]=[a]:l.push(a)}}return Object.setPrototypeOf(n,Object.prototype),n};function oDe(...e){return ur(P0,e)}function P0(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return aDe(e,r);if(e instanceof Map)return iDe(e,r);if(e instanceof Set)return lDe(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!P0(o,r[n]))return!1;return!0}function aDe(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!P0(o,r[n]))return!1;return!0}function iDe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!P0(o,r.get(n)))return!1;return!0}function lDe(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(P0(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}function sDe(...e){return ur(cDe,e)}function cDe(e,r){for(let[n,o]of Object.entries(r))if(!Object.hasOwn(e,n)||!oDe(o,e[n]))return!1;return!0}function GE(e){return Array.isArray(e)}function dU(e){return typeof e=="boolean"}function Fx(e){return e!==void 0}function gu(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}const $0=e=>typeof e=="function";function uDe(e){return e!==null}function pU(e){return e!=null}function hU(e){return e==null}function fU(e){return typeof e=="number"&&!Number.isNaN(e)}function XE(e){if(typeof e!="object"||!e)return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function KE(e){return typeof e=="string"}function Ta(e){return!!e}function mU(...e){return ur(dDe,e)}const dDe=(e,r)=>e.join(r);function ZE(...e){return ur(Object.keys,e)}function ep(...e){return ur(pDe,e)}const pDe=e=>e.at(-1);function No(...e){return ur(hDe,e,fDe)}const hDe=(e,r)=>e.map(r),fDe=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function M0(...e){return ur(mDe,e)}function mDe(e,r){let n={};for(let[o,a]of e.entries()){let[i,l]=r(a,o,e);n[i]=l}return n}function gDe(...e){return ur(yDe,e)}function yDe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function gU(...e){return ur(yU,e)}function yU(e,r){let n={...e,...r};for(let o in r){if(!(o in e))continue;let{[o]:a}=e;if(!XE(a))continue;let{[o]:i}=r;XE(i)&&(n[o]=yU(a,i))}return n}function tp(...e){return ur(bDe,e)}function bDe(e,r){if(!Ao(r,1))return{...e};if(!Ao(r,2)){let{[r[0]]:o,...a}=e;return a}let n={...e};for(let o of r)delete n[o];return n}function Hx(...e){return ur(vDe,e)}const vDe=e=>e.length===1?e[0]:void 0;function bU(...e){return ur(xDe,e)}const xDe=(e,r)=>{let n=[[],[]];for(let[o,a]of e.entries())r(a,o,e)?n[0].push(a):n[1].push(a);return n};function vU(...e){return ur(wDe,e)}function wDe(e,r){let n={};for(let o of r)o in e&&(n[o]=e[o]);return n}function kDe(...e){return ur(_De,e)}function _De(e,r){let n={};for(let[o,a]of Object.entries(e))r(a,o,e)&&(n[o]=a);return n}function Ra(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>xU(n,e,...r):xU(e,...r)}function xU(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function EDe(...e){return ur(SDe,e)}function SDe(e,r){let n=[];for(let o=e;o<r;o++)n.push(o);return n}function wf(...e){return ur(CDe,e)}const CDe=(e,r,n)=>e.reduce(r,n);function TDe(...e){return ur(RDe,e)}function RDe(e){return[...e].reverse()}function ADe(...e){return ur(NDe,e)}function NDe(e,r){let n=[...e];return n.sort(r),n}function qx(...e){return HNe(DDe,e)}const DDe=(e,r)=>[...e].sort(r);function wU(...e){return ur(PDe,e)}function PDe(e,r){return r(e),e}function QE(...e){return jNe($De,e)}function $De(){let e=new Set;return r=>e.has(r)?Bx:(e.add(r),{done:!1,hasNext:!0,next:r})}let Ji=[],yu=0;const Ux=4;let MDe=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=yu+Ux;i<Ji.length;)Ji[i]===o?Ji.splice(i,Ux):i+=Ux;let a=r.indexOf(o);~a&&(r.splice(a,1),--n.lc||n.off())}},notify(o,a){let i=!Ji.length;for(let l of r)Ji.push(l,n.value,o,a);if(i){for(yu=0;yu<Ji.length;yu+=Ux)Ji[yu](Ji[yu+1],Ji[yu+2],Ji[yu+3]);Ji.length=0}},off(){},set(o){let a=n.value;a!==o&&(n.value=o,n.notify(a))},subscribe(o){let a=n.listen(o);return o(n.value),a},value:e};return n};var rs=function(){return rs=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},rs.apply(this,arguments)};function kU(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function ODe(e,r,n){for(var o=0,a=r.length,i;o<a;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}var Vx="right-scroll-bar-position",Yx="width-before-scroll-bar",IDe="with-scroll-bars-hidden",zDe="--removed-body-scroll-bar-size";function JE(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function LDe(e,r){var n=S.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var BDe=typeof window<"u"?S.useLayoutEffect:S.useEffect,_U=new WeakMap;function jDe(e,r){var n=LDe(null,function(o){return e.forEach(function(a){return JE(a,o)})});return BDe(function(){var o=_U.get(n);if(o){var a=new Set(o),i=new Set(e),l=n.current;a.forEach(function(s){i.has(s)||JE(s,null)}),i.forEach(function(s){a.has(s)||JE(s,l)})}_U.set(n,e)},[e]),n}function FDe(e){return e}function HDe(e,r){r===void 0&&(r=FDe);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=r(i,o);return n.push(l),function(){n=n.filter(function(s){return s!==l})}},assignSyncMedium:function(i){for(o=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var l=[];if(n.length){var s=n;n=[],s.forEach(i),l=n}var c=function(){var d=l;l=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return a}function qDe(e){e===void 0&&(e={});var r=HDe(null);return r.options=rs({async:!0,ssr:!1},e),r}var EU=function(e){var r=e.sideCar,n=kU(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return S.createElement(o,rs({},n))};EU.isSideCarExport=!0;function UDe(e,r){return e.useMedium(r),EU}var SU=qDe(),e9=function(){},Wx=S.forwardRef(function(e,r){var n=S.useRef(null),o=S.useState({onScrollCapture:e9,onWheelCapture:e9,onTouchMoveCapture:e9}),a=o[0],i=o[1],l=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,g=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,_=e.gapMode,T=kU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=f,A=jDe([n,r]),D=rs(rs({},T),a);return S.createElement(S.Fragment,null,d&&S.createElement(R,{sideCar:SU,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:_}),l?S.cloneElement(S.Children.only(s),rs(rs({},D),{ref:A})):S.createElement(C,rs({},D,{className:c,ref:A}),s))});Wx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wx.classNames={fullWidth:Yx,zeroRight:Vx};var VDe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YDe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=VDe();return r&&e.setAttribute("nonce",r),e}function WDe(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function GDe(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var XDe=function(){var e=0,r=null;return{add:function(n){e==0&&(r=YDe())&&(WDe(r,n),GDe(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},KDe=function(){var e=XDe();return function(r,n){S.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},CU=function(){var e=KDe(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},ZDe={left:0,top:0,right:0,gap:0},t9=function(e){return parseInt(e||"",10)||0},QDe=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[t9(n),t9(o),t9(a)]},JDe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZDe;var r=QDe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},ePe=CU(),kf="data-scroll-locked",tPe=function(e,r,n,o){var a=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(IDe,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(s,"px ").concat(o,`;
  }
  body[`).concat(kf,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(s,"px ").concat(o,`;
    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Vx,` {
    right: `).concat(s,"px ").concat(o,`;
  }
  
  .`).concat(Yx,` {
    margin-right: `).concat(s,"px ").concat(o,`;
  }
  
  .`).concat(Vx," .").concat(Vx,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(Yx," .").concat(Yx,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(kf,`] {
    `).concat(zDe,": ").concat(s,`px;
  }
`)},TU=function(){var e=parseInt(document.body.getAttribute(kf)||"0",10);return isFinite(e)?e:0},rPe=function(){S.useEffect(function(){return document.body.setAttribute(kf,(TU()+1).toString()),function(){var e=TU()-1;e<=0?document.body.removeAttribute(kf):document.body.setAttribute(kf,e.toString())}},[])},nPe=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;rPe();var i=S.useMemo(function(){return JDe(a)},[a]);return S.createElement(ePe,{styles:tPe(i,!r,a,n?"":"!important")})},r9=!1;if(typeof window<"u")try{var Gx=Object.defineProperty({},"passive",{get:function(){return r9=!0,!0}});window.addEventListener("test",Gx,Gx),window.removeEventListener("test",Gx,Gx)}catch{r9=!1}var _f=r9?{passive:!1}:!1,oPe=function(e){return e.tagName==="TEXTAREA"},RU=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!oPe(e)&&n[r]==="visible")},aPe=function(e){return RU(e,"overflowY")},iPe=function(e){return RU(e,"overflowX")},AU=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=NU(e,o);if(a){var i=DU(e,o),l=i[1],s=i[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},lPe=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},sPe=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},NU=function(e,r){return e==="v"?aPe(r):iPe(r)},DU=function(e,r){return e==="v"?lPe(r):sPe(r)},cPe=function(e,r){return e==="h"&&r==="rtl"?-1:1},uPe=function(e,r,n,o,a){var i=cPe(e,window.getComputedStyle(r).direction),l=i*o,s=n.target,c=r.contains(s),u=!1,d=l>0,p=0,f=0;do{if(!s)break;var g=DU(e,s),b=g[0],x=g[1],w=g[2],k=x-w-i*b;(b||k)&&NU(e,s)&&(p+=k,f+=b);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&s!==document.body||c&&(r.contains(s)||r===s));return(d&&Math.abs(p)<1||!d&&Math.abs(f)<1)&&(u=!0),u},Xx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PU=function(e){return[e.deltaX,e.deltaY]},$U=function(e){return e&&"current"in e?e.current:e},dPe=function(e,r){return e[0]===r[0]&&e[1]===r[1]},pPe=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},hPe=0,Ef=[];function fPe(e){var r=S.useRef([]),n=S.useRef([0,0]),o=S.useRef(),a=S.useState(hPe++)[0],i=S.useState(CU)[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=ODe([e.lockRef.current],(e.shards||[]).map($U)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var k=Xx(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],R,A=x.target,D=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&D==="h"&&A.type==="range")return!1;var N=AU(D,A);if(!N)return!0;if(N?R=D:(R=D==="v"?"h":"v",N=AU(D,A)),!N)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=R),!R)return!0;var $=o.current||R;return uPe($,w,x,$==="h"?_:T)},[]),c=S.useCallback(function(x){var w=x;if(!(!Ef.length||Ef[Ef.length-1]!==i)){var k="deltaY"in w?PU(w):Xx(w),C=r.current.filter(function(R){return R.name===w.type&&(R.target===w.target||w.target===R.shadowParent)&&dPe(R.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(l.current.shards||[]).map($U).filter(Boolean).filter(function(R){return R.contains(w.target)}),T=_.length>0?s(w,_[0]):!l.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),u=S.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:mPe(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=S.useCallback(function(x){n.current=Xx(x),o.current=void 0},[]),p=S.useCallback(function(x){u(x.type,PU(x),x.target,s(x,e.lockRef.current))},[]),f=S.useCallback(function(x){u(x.type,Xx(x),x.target,s(x,e.lockRef.current))},[]);S.useEffect(function(){return Ef.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,_f),document.addEventListener("touchmove",c,_f),document.addEventListener("touchstart",d,_f),function(){Ef=Ef.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,_f),document.removeEventListener("touchmove",c,_f),document.removeEventListener("touchstart",d,_f)}},[]);var g=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(i,{styles:pPe(a)}):null,g?S.createElement(nPe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mPe(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const gPe=UDe(SU,fPe);var O0=S.forwardRef(function(e,r){return S.createElement(Wx,rs({},e,{ref:r,sideCar:gPe}))});O0.classNames=Wx.classNames;function Do(e){return Object.keys(e)}function n9(e){return e&&typeof e=="object"&&!Array.isArray(e)}function o9(e,r){const n={...e},o=r;return n9(e)&&n9(r)&&Object.keys(r).forEach(a=>{n9(o[a])&&a in e?n[a]=o9(n[a],o[a]):n[a]=o[a]}),n}function yPe(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function bPe(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function a9(e){const r=bPe(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function MU(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function OU(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?MU(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?MU(i):i}}return o}return n}const Ae=OU("rem",{shouldScale:!0}),IU=OU("em");function Sf(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function zU(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function el(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function ii(e){const r=S.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=S.useContext(r);if(n===null)throw new Error(e);return n}]}function I0(e=null){const r=S.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>S.useContext(r)]}function LU(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function Cf(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function vPe(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function xPe(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].disabled)return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].disabled)return o}return e}function wPe(e,r,n){return Cf(e,n)===Cf(r,n)}function z0({parentSelector:e,siblingSelector:r,onKeyDown:n,loop:o=!0,activateOnFocus:a=!1,dir:i="rtl",orientation:l}){return s=>{n?.(s);const c=Array.from(Cf(s.currentTarget,e)?.querySelectorAll(r)||[]).filter(b=>wPe(s.currentTarget,b,e)),u=c.findIndex(b=>s.currentTarget===b),d=xPe(u,c,o),p=vPe(u,c,o),f=i==="rtl"?p:d,g=i==="rtl"?d:p;switch(s.key){case"ArrowRight":{l==="horizontal"&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),a&&c[f].click());break}case"ArrowLeft":{l==="horizontal"&&(s.stopPropagation(),s.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{l==="vertical"&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),a&&c[p].click());break}case"ArrowDown":{l==="vertical"&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),a&&c[d].click());break}case"Home":{s.stopPropagation(),s.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{s.stopPropagation(),s.preventDefault();const b=c.length-1;!c[b].disabled&&c[b].focus();break}}}}const kPe={app:100,modal:200,popover:300,overlay:400,max:9999};function Kx(e){return kPe[e]}const BU=()=>{};function _Pe(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||BU:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function dr(e,r="size",n=!0){if(e!==void 0)return zU(e)?n?Ae(e):e:`var(--${r}-${e})`}function Vs(e){return dr(e,"mantine-spacing")}function _n(e){return e===void 0?"var(--mantine-radius-default)":dr(e,"mantine-radius")}function Po(e){return dr(e,"mantine-font-size")}function EPe(e){return dr(e,"mantine-line-height",!1)}function jU(e){if(e)return dr(e,"mantine-shadow",!1)}function En(e,r){return n=>{e?.(n),r?.(n)}}function SPe(e,r){return e in r?a9(r[e]):a9(e)}function FU(e,r){const n=e.map(o=>({value:o,px:SPe(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function L0(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function CPe(e,r,n){return n?Array.from(Cf(n,r)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function bu(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function i9(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function TPe(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in r)||e[i]!==r[i]&&!(Number.isNaN(e[i])&&Number.isNaN(r[i])))return!1}return!0}function ot(e){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useMemo(()=>((...n)=>r.current?.(...n)),[])}function Tf(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=ot(e),l=S.useRef(0),s=S.useMemo(()=>{const c=Object.assign((...u)=>{window.clearTimeout(l.current);const d=c._isFirstCall;c._isFirstCall=!1;function p(){window.clearTimeout(l.current),l.current=0,c._isFirstCall=!0}if(a&&d){i(...u);const b=()=>{p()},x=()=>{l.current!==0&&(p(),i(...u))},w=()=>{p()};c.flush=x,c.cancel=w,l.current=window.setTimeout(b,n);return}if(a&&!d){const b=()=>{l.current!==0&&(p(),i(...u))},x=()=>{p()};c.flush=b,c.cancel=x;const w=()=>{p()};l.current=window.setTimeout(w,n);return}const f=()=>{l.current!==0&&(p(),i(...u))},g=()=>{p()};c.flush=f,c.cancel=g,l.current=window.setTimeout(f,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return S.useEffect(()=>()=>{o?s.flush():s.cancel()},[s,o]),s}const RPe=["mousedown","touchstart"];function HU(e,r,n){const o=S.useRef(null),a=r||RPe;return S.useEffect(()=>{const i=l=>{const{target:s}=l??{};if(Array.isArray(n)){const c=!document.body.contains(s)&&s?.tagName!=="HTML";n.every(u=>!!u&&!l.composedPath().includes(u))&&!c&&e(l)}else o.current&&!o.current.contains(s)&&e(l)};return a.forEach(l=>document.addEventListener(l,i)),()=>{a.forEach(l=>document.removeEventListener(l,i))}},[o,e,n]),o}function APe(e={timeout:2e3}){const[r,n]=S.useState(null),[o,a]=S.useState(!1),[i,l]=S.useState(null),s=c=>{window.clearTimeout(i),l(window.setTimeout(()=>a(!1),e.timeout)),a(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>s(!0)).catch(u=>n(u)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),n(null),window.clearTimeout(i)},error:r,copied:o}}function NPe(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function DPe(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function qU(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=S.useState(n?r:DPe(e));return S.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),NPe(i,l=>a(l.matches))}catch{return}},[e]),o||!1}function UU(e,r){return qU("(prefers-color-scheme: dark)",e==="dark",r)?"dark":"light"}function PPe(e,r,n={leading:!1}){const[o,a]=S.useState(e),i=S.useRef(null),l=S.useRef(!0),s=()=>window.clearTimeout(i.current);S.useEffect(()=>s,[]);const c=S.useCallback(u=>{s(),l.current&&n.leading?a(u):i.current=window.setTimeout(()=>{l.current=!0,a(u)},r),l.current=!1},[n.leading]);return[o,c]}function l9(e,r,n={leading:!1}){const[o,a]=S.useState(e),i=S.useRef(!1),l=S.useRef(null),s=S.useRef(!1),c=S.useCallback(()=>window.clearTimeout(l.current),[]);return S.useEffect(()=>{i.current&&(!s.current&&n.leading?(s.current=!0,a(e)):(c(),l.current=window.setTimeout(()=>{s.current=!1,a(e)},r)))},[e,n.leading,r]),S.useEffect(()=>(i.current=!0,c),[]),[o,c]}const B0=typeof document<"u"?S.useLayoutEffect:S.useEffect;function rp(e,r){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function $Pe({opened:e,shouldReturnFocus:r=!0}){const n=S.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return rp(()=>{let a=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const MPe=/input|select|textarea|button|object/,VU="a, input, select, textarea, button, object, [tabindex]";function OPe(e){return e.style.display==="none"}function IPe(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(OPe(r))return!1;r=r.parentNode}return!0}function YU(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function s9(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(YU(e));return(MPe.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&IPe(e)}function WU(e){const r=YU(e);return(Number.isNaN(r)||r>=0)&&s9(e)}function zPe(e){return Array.from(e.querySelectorAll(VU)).filter(WU)}function LPe(e,r){const n=zPe(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const l=a.activeElement;if(l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===l.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const s=n[r.shiftKey?n.length-1:0];s&&s.focus()}function GU(e=!0){const r=S.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const l=Array.from(a.querySelectorAll(VU));i=l.find(WU)||l.find(s9)||null,!i&&s9(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=S.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return S.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&LPe(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const BPe=Qr.useId||(()=>{});function jPe(){const e=BPe();return e?`mantine-${e.replace(/:/g,"")}`:""}function Aa(e){const r=jPe(),[n,o]=S.useState(r);return B0(()=>{o(i9())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function Rf(e,r,n){S.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function FPe(e,r="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${r}: Failed to serialize the value`)}}function HPe(e){try{return e&&JSON.parse(e)}catch{return e}}function qPe(e){return{getItem:r=>{try{return window[e].getItem(r)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(r,n)=>{try{window[e].setItem(r,n)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:r=>{try{window[e].removeItem(r)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function XU(e,r){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:o,setItem:a,removeItem:i}=qPe(e);return function({key:l,defaultValue:s,getInitialValueInEffect:c=!0,sync:u=!0,deserialize:d=HPe,serialize:p=f=>FPe(f,r)}){const f=S.useCallback(k=>{let C;try{C=typeof window>"u"||!(e in window)||window[e]===null||!!k}catch{C=!0}if(C)return s;const _=o(l);return _!==null?d(_):s},[l,s]),[g,b]=S.useState(f(c)),x=S.useCallback(k=>{k instanceof Function?b(C=>{const _=k(C);return a(l,p(_)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:k(C)}}))}),_}):(a(l,p(k)),window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:k}})),b(k))},[l]),w=S.useCallback(()=>{i(l),b(s),window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:s}}))},[l,s]);return Rf("storage",k=>{u&&k.storageArea===window[e]&&k.key===l&&b(d(k.newValue??void 0))}),Rf(n,k=>{u&&k.detail.key===l&&b(k.detail.value)}),S.useEffect(()=>{s!==void 0&&g===void 0&&x(s)},[s,g,x]),S.useEffect(()=>{const k=f();k!==void 0&&x(k)},[l]),[g===void 0?s:g,x,w]}}function UPe(e){return XU("localStorage","use-local-storage")(e)}function VPe(e){return XU("sessionStorage","use-session-storage")(e)}function c9(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function KU(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=c9(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():c9(o,null)}),r.clear()}}}function Mr(...e){return S.useCallback(KU(...e),e)}function YPe(e){return{x:bu(e.x,0,1),y:bu(e.y,0,1)}}function ZU(e,r,n="ltr"){const o=S.useRef(!1),a=S.useRef(!1),i=S.useRef(0),[l,s]=S.useState(!1),c=S.useRef(null);return S.useEffect(()=>{o.current=!0},[]),{ref:S.useCallback(u=>{if(c.current&&(c.current(),c.current=null),!u)return;const d=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const R=u.getBoundingClientRect();if(R.width&&R.height){const A=bu((_-R.left)/R.width,0,1);e({x:n==="ltr"?A:1-A,y:bu((T-R.top)/R.height,0,1)})}}})},p=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",b),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",b)},f=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),s(!0),p())},b=()=>{a.current&&o.current&&(a.current=!1,s(!1),f(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>d({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),d({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};u.addEventListener("mousedown",x),u.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{u.removeEventListener("mousedown",x),u.removeEventListener("touchstart",k)}},[n,e]),active:l}}function Ys({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=S.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(s,...c)=>{i(s),o?.(s,...c)},!1]}function QU(e,r){return qU("(prefers-reduced-motion: reduce)",e,r)}function WPe(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n<e.length;n+=1)if(!TPe(e[n],r[n]))return!1;return!0}function GPe(e){const r=S.useRef([]),n=S.useRef(0);return WPe(r.current,e)||(r.current=e,n.current+=1),[n.current]}function XPe(e,r){S.useEffect(e,GPe(r))}const JU={passive:!0};function KPe(){const[e,r]=S.useState({width:0,height:0}),n=S.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Rf("resize",n,JU),Rf("orientationchange",n,JU),S.useEffect(n,[]),e}const ZPe={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function Zx(e){const r=e.replace("Key","").toLowerCase();return ZPe[e]||r}function QPe(e){const r=e.toLowerCase().split("+").map(i=>i.trim()),n={alt:r.includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},o=["alt","ctrl","meta","shift","mod"],a=r.find(i=>!o.includes(i));return{...n,key:a==="[plus]"?"+":a}}function JPe(e,r,n){const{alt:o,ctrl:a,meta:i,mod:l,shift:s,key:c}=e,{altKey:u,ctrlKey:d,metaKey:p,shiftKey:f,key:g,code:b}=r;if(o!==u)return!1;if(l){if(!d&&!p)return!1}else if(a!==d||i!==p)return!1;return s!==f?!1:!!(c&&(n?Zx(b)===Zx(c):Zx(g??b)===Zx(c)))}function eV(e,r){return n=>JPe(QPe(e),n,r)}function u9(e){return r=>{const n="nativeEvent"in r?r.nativeEvent:r;e.forEach(([o,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{eV(o,i.usePhysicalKeys)(n)&&(i.preventDefault&&r.preventDefault(),a(n))})}}function e$e(e,r,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!r.includes(e.target.tagName):!0}function t$e(e,r=["INPUT","TEXTAREA","SELECT"],n=!1){S.useEffect(()=>{const o=a=>{e.forEach(([i,l,s={preventDefault:!0,usePhysicalKeys:!1}])=>{eV(i,s.usePhysicalKeys)(a)&&e$e(a,r,n)&&(s.preventDefault&&a.preventDefault(),l(a))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function d9(){const[e,r]=S.useState(!1),n=S.useRef(null),o=S.useCallback(()=>{r(!0)},[]),a=S.useCallback(()=>{r(!1)},[]);return{ref:S.useCallback(i=>{n.current&&(n.current.removeEventListener("mouseenter",o),n.current.removeEventListener("mouseleave",a)),i&&(i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",a)),n.current=i},[o,a]),hovered:e}}function r$e(e=!1,r={}){const[n,o]=S.useState(e),a=S.useCallback(()=>{o(s=>s||(r.onOpen?.(),!0))},[r.onOpen]),i=S.useCallback(()=>{o(s=>s&&(r.onClose?.(),!1))},[r.onClose]),l=S.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:l}]}function n$e(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function o$e({onBlur:e,onFocus:r}={}){const[n,o]=S.useState(!1),a=S.useRef(!1),i=S.useRef(null),l=S.useCallback(d=>{o(d),a.current=d},[]),s=S.useCallback(d=>{a.current||(l(!0),r?.(d))},[r]),c=S.useCallback(d=>{a.current&&!n$e(d)&&(l(!1),e?.(d))},[e]),u=S.useCallback(d=>{d&&(i.current&&(i.current.removeEventListener("focusin",s),i.current.removeEventListener("focusout",c)),d.addEventListener("focusin",s),d.addEventListener("focusout",c))},[s,c]);return S.useEffect(()=>()=>{i.current&&(i.current.removeEventListener("focusin",s),i.current.removeEventListener("focusout",c))},[]),{ref:u,focused:n}}function tV(e,r,n={autoInvoke:!1}){const o=S.useRef(null),a=S.useCallback((...l)=>{o.current||(o.current=window.setTimeout(()=>{e(l),o.current=null},r))},[r]),i=S.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return S.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function rV(e,r,n){const o=S.useRef(null),a=S.useRef(null);return S.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function a$e(){const[e,r]=S.useState(!1);return S.useEffect(()=>r(!0),[]),e}function nV(e){const[r,n]=S.useState({history:[e],current:0}),o=S.useCallback(c=>n(u=>{const d=[...u.history.slice(0,u.current+1),c];return{history:d,current:d.length-1}}),[]),a=S.useCallback((c=1)=>n(u=>({history:u.history,current:Math.max(0,u.current-c)})),[]),i=S.useCallback((c=1)=>n(u=>({history:u.history,current:Math.min(u.history.length-1,u.current+c)})),[]),l=S.useCallback(()=>{n({history:[e],current:0})},[e]),s=S.useMemo(()=>({back:a,forward:i,reset:l,set:o}),[a,i,l,o]);return[r.history[r.current],s,r]}function i$e(e,r){const n=ot(e),o=S.useRef(null),a=S.useRef(null),i=S.useRef(!0),l=S.useRef(r),s=S.useRef(-1),c=()=>window.clearTimeout(s.current),u=S.useCallback((...f)=>{n(...f),o.current=f,a.current=f,i.current=!1},[n]),d=S.useCallback(()=>{o.current&&o.current!==a.current?(u(...o.current),s.current=window.setTimeout(d,l.current)):i.current=!0},[u]),p=S.useCallback((...f)=>{i.current?(u(...f),s.current=window.setTimeout(d,l.current)):o.current=f},[u,d]);return S.useEffect(()=>{l.current=r},[r]),[p,c]}function l$e(e,r){return i$e(e,r)[0]}function s$e(){return typeof process<"u"&&process.env?"production":"development"}function oV(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function aV(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e)<Math.abs(n-e)?o:n)}function Qx(e){const r=Qr.version;return typeof Qr.version!="string"||r.startsWith("18.")?e?.ref:e?.props?.ref}function iV(e){var r,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=iV(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function tl(){for(var e,r,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=iV(e))&&(o&&(o+=" "),o+=r);return o}const c$e={};function u$e(e){const r={};return e.forEach(n=>{Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=tl(r[o],a):r[o]=a})}),r}function Jx({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||c$e);return u$e(a)}function ew({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const tw=S.createContext(null);function vu(){const e=S.useContext(tw);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function d$e(){return vu().cssVariablesResolver}function p$e(){return vu().classNamesPrefix}function np(){return vu().getStyleNonce}function h$e(){return vu().withStaticClasses}function f$e(){return vu().headless}function m$e(){return vu().stylesTransform?.sx}function g$e(){return vu().stylesTransform?.styles}function rw(){return vu().env||"default"}function y$e(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function b$e(e){let r=e.replace("#","");if(r.length===3){const l=r.split("");r=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}if(r.length===8){const l=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:l}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function v$e(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function x$e(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,l=n[5]?parseFloat(n[5]):void 0,s=(1-Math.abs(2*i-1))*a,c=o/60,u=s*(1-Math.abs(c%2-1)),d=i-s/2;let p,f,g;return c>=0&&c<1?(p=s,f=u,g=0):c>=1&&c<2?(p=u,f=s,g=0):c>=2&&c<3?(p=0,f=s,g=u):c>=3&&c<4?(p=0,f=u,g=s):c>=4&&c<5?(p=u,f=0,g=s):(p=s,f=0,g=u),{r:Math.round((p+d)*255),g:Math.round((f+d)*255),b:Math.round((g+d)*255),a:l||1}}function p9(e){return y$e(e)?b$e(e):e.startsWith("rgb")?v$e(e):e.startsWith("hsl")?x$e(e):{r:0,g:0,b:0,a:1}}function nw(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:n,g:o,b:a,a:i}=p9(e),l=1-r,s=c=>Math.round(c*l);return`rgba(${s(n)}, ${s(o)}, ${s(a)}, ${i})`}function j0(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function h9(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function w$e(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function k$e(e){if(e.startsWith("oklch("))return(w$e(e)||0)/100;const{r,g:n,b:o}=p9(e),a=r/255,i=n/255,l=o/255,s=h9(a),c=h9(i),u=h9(l);return .2126*s+.7152*c+.0722*u}function F0(e,r=.179){return e.startsWith("var(")?!1:k$e(e)>r}function xu({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:F0(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:F0(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:F0(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,l=o in r.colors;if(l){const s=i!==void 0?r.colors[o][i]:r.colors[o][j0(r,n||"light")];return{color:o,value:s,shade:i,isThemeColor:l,isLight:F0(s,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:F0(e,r.luminanceThreshold),shade:i,variable:void 0}}function ta(e,r){const n=xu({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function f9(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=ta(n.from,r),a=ta(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function ns(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=p9(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const Af=ns,_$e=({color:e,theme:r,variant:n,gradient:o,autoContrast:a})=>{const i=xu({color:e,theme:r}),l=typeof a=="boolean"?a:r.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const s=l&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${Ae(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:s,border:`${Ae(1)} solid transparent`}:{background:e,hover:nw(e,.1),color:s,border:`${Ae(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Ae(1)} solid transparent`};const s=r.colors[i.color][i.shade];return{background:ns(s,.1),hover:ns(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ae(1)} solid transparent`}}return{background:ns(e,.1),hover:ns(e,.12),color:e,border:`${Ae(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${Ae(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:ns(r.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ae(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:ns(e,.05),color:e,border:`${Ae(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Ae(1)} solid transparent`};const s=r.colors[i.color][i.shade];return{background:"transparent",hover:ns(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ae(1)} solid transparent`}}return{background:"transparent",hover:ns(e,.12),color:e,border:`${Ae(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${Ae(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ae(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${Ae(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:nw(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Ae(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:nw(r.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ae(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:nw(r.white,.01),color:e,border:`${Ae(1)} solid transparent`}:n==="gradient"?{background:f9(o,r),hover:f9(o,r),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Ae(1)} solid var(--mantine-color-default-border)`}:{}},E$e={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},lV="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",m9={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:E$e,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:_$e,autoContrast:!1,luminanceThreshold:.3,fontFamily:lV,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:lV,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Ae(34),lineHeight:"1.3"},h2:{fontSize:Ae(26),lineHeight:"1.35"},h3:{fontSize:Ae(22),lineHeight:"1.4"},h4:{fontSize:Ae(18),lineHeight:"1.45"},h5:{fontSize:Ae(16),lineHeight:"1.5"},h6:{fontSize:Ae(14),lineHeight:"1.5"}}},fontSizes:{xs:Ae(12),sm:Ae(14),md:Ae(16),lg:Ae(18),xl:Ae(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Ae(2),sm:Ae(4),md:Ae(8),lg:Ae(16),xl:Ae(32)},spacing:{xs:Ae(10),sm:Ae(12),md:Ae(16),lg:Ae(20),xl:Ae(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Ae(1)} ${Ae(3)} rgba(0, 0, 0, 0.05), 0 ${Ae(1)} ${Ae(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Ae(1)} ${Ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ae(10)} ${Ae(15)} ${Ae(-5)}, rgba(0, 0, 0, 0.04) 0 ${Ae(7)} ${Ae(7)} ${Ae(-5)}`,md:`0 ${Ae(1)} ${Ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ae(20)} ${Ae(25)} ${Ae(-5)}, rgba(0, 0, 0, 0.04) 0 ${Ae(10)} ${Ae(10)} ${Ae(-5)}`,lg:`0 ${Ae(1)} ${Ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ae(28)} ${Ae(23)} ${Ae(-7)}, rgba(0, 0, 0, 0.04) 0 ${Ae(12)} ${Ae(12)} ${Ae(-7)}`,xl:`0 ${Ae(1)} ${Ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ae(36)} ${Ae(28)} ${Ae(-7)}, rgba(0, 0, 0, 0.04) 0 ${Ae(17)} ${Ae(17)} ${Ae(-7)}`},other:{},components:{}};function sV(e){return e==="auto"||e==="dark"||e==="light"}function S$e({key:e="mantine-color-scheme-value"}={}){let r;return{get:n=>{if(typeof window>"u")return n;try{const o=window.localStorage.getItem(e);return sV(o)?o:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{r=o=>{o.storageArea===window.localStorage&&o.key===e&&sV(o.newValue)&&n(o.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const C$e="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",cV="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function g9(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function uV(e){if(!(e.primaryColor in e.colors))throw new Error(C$e);if(typeof e.primaryShade=="object"&&(!g9(e.primaryShade.dark)||!g9(e.primaryShade.light)))throw new Error(cV);if(typeof e.primaryShade=="number"&&!g9(e.primaryShade))throw new Error(cV)}function T$e(e,r){if(!r)return uV(e),e;const n=o9(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(n.headings.fontFamily=r.fontFamily),uV(n),n}const y9=S.createContext(null),R$e=()=>S.useContext(y9)||m9;function mo(){const e=S.useContext(y9);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function dV({theme:e,children:r,inherit:n=!0}){const o=R$e(),a=S.useMemo(()=>T$e(n?o:m9,e),[e,o,n]);return y.jsx(y9.Provider,{value:a,children:r})}dV.displayName="@mantine/core/MantineThemeProvider";function A$e(){const e=mo(),r=np(),n=Do(e.breakpoints).reduce((o,a)=>{const i=e.breakpoints[a].includes("px"),l=a9(e.breakpoints[a]),s=i?`${l-.1}px`:IU(l-.1),c=i?`${l}px`:IU(l);return`${o}@media (max-width: ${s}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${a} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:n}})}function b9(e){return Object.entries(e).map(([r,n])=>`${r}: ${n};`).join("")}function v9(e,r){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,r)}function N$e(e,r){const n=b9(e.variables),o=n?v9(r,n):"",a=b9(e.dark),i=b9(e.light),l=a?v9(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,a):"",s=i?v9(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,i):"";return`${o}

${l}

${s}`}function x9({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&xu({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function pV(e,r){return x9({color:e.colors[e.primaryColor][j0(e,r)],theme:e,autoContrast:null})}function ow({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const s=j0(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${s===9?8:s+1})`,[`--mantine-color-${o}-light`]:Af(e.colors[r][s],.1),[`--mantine-color-${o}-light-hover`]:Af(e.colors[r][s],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-outline-hover`]:Af(e.colors[r][s],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=j0(e,"dark"),l={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:Af(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:Af(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:Af(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...l}:l}function D$e(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Nf(e,r,n){Do(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}const hV=e=>{const r=j0(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Ae(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":pV(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":pV(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Nf(o.variables,e.breakpoints,"breakpoint"),Nf(o.variables,e.spacing,"spacing"),Nf(o.variables,e.fontSizes,"font-size"),Nf(o.variables,e.lineHeights,"line-height"),Nf(o.variables,e.shadows,"shadow"),Nf(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{o.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),Do(e.colors).forEach(i=>{const l=e.colors[i];if(D$e(l)){Object.assign(o.light,ow({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,ow({theme:e,name:l.name,color:l.dark,colorScheme:"dark",withColorValues:!0}));return}l.forEach((s,c)=>{o.variables[`--mantine-color-${i}-${c}`]=s}),Object.assign(o.light,ow({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,ow({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return Do(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o};function P$e({theme:e,generator:r}){const n=hV(e),o=r?.(e);return o?o9(n,o):n}const w9=hV(m9);function $$e(e){const r={variables:{},light:{},dark:{}};return Do(e.variables).forEach(n=>{w9.variables[n]!==e.variables[n]&&(r.variables[n]=e.variables[n])}),Do(e.light).forEach(n=>{w9.light[n]!==e.light[n]&&(r.light[n]=e.light[n])}),Do(e.dark).forEach(n=>{w9.dark[n]!==e.dark[n]&&(r.dark[n]=e.dark[n])}),r}function M$e(e){return`
  ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
  ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function fV({cssVariablesSelector:e,deduplicateCssVariables:r}){const n=mo(),o=np(),a=d$e(),i=P$e({theme:n,generator:a}),l=e===":root"&&r,s=l?$$e(i):i,c=N$e(s,e);return c?y.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${c}${l?"":M$e(e)}`}}):null}fV.displayName="@mantine/CssVariables";function Df(e,r){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o=e!=="auto"?e:n?"dark":"light";r()?.setAttribute("data-mantine-color-scheme",o)}function O$e({manager:e,defaultColorScheme:r,getRootElement:n,forceColorScheme:o}){const a=S.useRef(null),[i,l]=S.useState(()=>e.get(r)),s=o||i,c=S.useCallback(d=>{o||(Df(d,n),l(d),e.set(d))},[e.set,s,o]),u=S.useCallback(()=>{l(r),Df(r,n),e.clear()},[e.clear,r]);return S.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),B0(()=>{Df(e.get(r),n)},[]),S.useEffect(()=>{if(o)return Df(o,n),()=>{};o===void 0&&Df(i,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const d=p=>{i==="auto"&&Df(p.matches?"dark":"light",n)};return a.current?.addEventListener("change",d),()=>a.current?.removeEventListener("change",d)},[i,o]),{colorScheme:s,setColorScheme:c,clearColorScheme:u}}function I$e({respectReducedMotion:e,getRootElement:r}){B0(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}function k9({theme:e,children:r,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:a=!0,deduplicateCssVariables:i=!0,withCssVariables:l=!0,cssVariablesSelector:s=":root",classNamesPrefix:c="mantine",colorSchemeManager:u=S$e(),defaultColorScheme:d="light",getRootElement:p=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:g,stylesTransform:b,env:x}){const{colorScheme:w,setColorScheme:k,clearColorScheme:C}=O$e({defaultColorScheme:d,forceColorScheme:g,manager:u,getRootElement:p});return I$e({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:p}),y.jsx(tw.Provider,{value:{colorScheme:w,setColorScheme:k,clearColorScheme:C,getRootElement:p,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:o,stylesTransform:b,env:x},children:y.jsxs(dV,{theme:e,children:[l&&y.jsx(fV,{cssVariablesSelector:s,deduplicateCssVariables:i}),a&&y.jsx(A$e,{}),r]})})}k9.displayName="@mantine/core/MantineProvider";function _9({classNames:e,styles:r,props:n,stylesCtx:o}){const a=mo();return{resolvedClassNames:Jx({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:ew({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const z$e={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function L$e({theme:e,options:r,unstyled:n}){return tl(r?.focusable&&!n&&(e.focusClassName||z$e[e.focusRing]),r?.active&&!n&&e.activeClassName)}function B$e({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return Jx({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function mV({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return Jx({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function j$e({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function F$e({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function H$e({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function q$e({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>Jx({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function U$e({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function V$e({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:l,unstyled:s,className:c,rootSelector:u,props:d,stylesCtx:p,withStaticClasses:f,headless:g,transformedStyles:b}){return tl(L$e({theme:e,options:r,unstyled:s||g}),q$e({theme:e,themeName:n,selector:o,props:d,stylesCtx:p}),U$e({options:r,classes:l,selector:o,unstyled:s}),mV({selector:o,stylesCtx:p,theme:e,classNames:i,props:d}),mV({selector:o,stylesCtx:p,theme:e,classNames:b,props:d}),B$e({selector:o,stylesCtx:p,options:r,props:d,theme:e}),j$e({rootSelector:u,selector:o,className:c}),F$e({selector:o,classes:l,unstyled:s||g}),f&&!g&&H$e({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function Y$e({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>ew({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,l)=>({...i,...l}),{})}function E9({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...E9({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function W$e(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...Sf(n[o])}}),r),{})}function G$e({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:l,headless:s}){return W$e([s?{}:r?.(n,o,a),...l.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function X$e({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:l,styles:s,style:c,vars:u,varsResolver:d,headless:p,withStylesTransform:f}){return{...!f&&Y$e({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&ew({theme:e,styles:s,props:a,stylesCtx:i})[n],...!f&&ew({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...G$e({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:p}),...l===n?E9({style:c,theme:e}):null,...E9({style:o?.style,theme:e})}}function K$e({props:e,stylesCtx:r,themeName:n}){const o=mo(),a=g$e()?.();return{getTransformedStyles:i=>a?[...i.map(l=>a(l,{props:e,theme:o,ctx:r})),...n.map(l=>a(o.components[l]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function wt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:l="root",unstyled:s,classNames:c,styles:u,vars:d,varsResolver:p,attributes:f}){const g=mo(),b=p$e(),x=h$e(),w=f$e(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=K$e({props:n,stylesCtx:o,themeName:k});return(T,R)=>({className:V$e({theme:g,options:R,themeName:k,selector:T,classNamesPrefix:b,classNames:c,classes:r,unstyled:s,className:a,rootSelector:l,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([R?.styles,u])}),style:X$e({theme:g,themeName:k,selector:T,options:R,props:n,stylesCtx:o,rootSelector:l,styles:u,style:i,vars:d,varsResolver:p,headless:w,withStylesTransform:C}),...f?.[T]})}function Z$e(e,r){return typeof e=="boolean"?e:r.autoContrast}function gV(e){const r=document.createElement("style");return r.setAttribute("data-mantine-styles","inline"),r.innerHTML="*, *::before, *::after {transition: none !important;}",r.setAttribute("data-mantine-disable-transition","true"),e&&r.setAttribute("nonce",e),document.head.appendChild(r),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(n=>n.remove())}function Q$e({keepTransitions:e}={}){const r=S.useRef(BU),n=S.useRef(-1),o=S.useContext(tw),a=np(),i=S.useRef(a?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const l=p=>{o.setColorScheme(p),r.current=e?()=>{}:gV(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},s=()=>{o.clearColorScheme(),r.current=e?()=>{}:gV(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},c=UU("light",{getInitialValueInEffect:!1}),u=o.colorScheme==="auto"?c:o.colorScheme,d=S.useCallback(()=>l(u==="light"?"dark":"light"),[l,u]);return S.useEffect(()=>()=>{r.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:l,clearColorScheme:s,toggleColorScheme:d}}function Le(e,r,n){const o=mo(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...Sf(n)}}function S9(e){return Do(e).reduce((r,n)=>e[n]!==void 0?`${r}${yPe(n)}:${e[n]};`:r,"").trim()}function J$e({selector:e,styles:r,media:n,container:o}){const a=r?S9(r):"",i=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${S9(s.styles)}}}`):[],l=Array.isArray(o)?o.map(s=>`@container ${s.query}{${e}{${S9(s.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${l.join("")}`.trim()}function aw(e){const r=np();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:J$e(e)}})}function yV(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:l,mr:s,me:c,ms:u,p:d,px:p,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:R,c:A,opacity:D,ff:N,fz:$,fw:O,lts:j,ta:L,lh:Y,fs:M,tt:q,td:z,w:H,miw:U,maw:K,h:V,mih:X,mah:Z,bgsz:B,bgp:W,bgr:Q,bga:J,pos:ne,top:te,left:ee,bottom:pe,right:Te,inset:ce,display:de,flex:xe,hiddenFrom:De,visibleFrom:Ge,lightHidden:et,darkHidden:ft,sx:Ze,...Et}=e;return{styleProps:Sf({m:r,mx:n,my:o,mt:a,mb:i,ml:l,mr:s,me:c,ms:u,p:d,px:p,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bg:R,c:A,opacity:D,ff:N,fz:$,fw:O,lts:j,ta:L,lh:Y,fs:M,tt:q,td:z,w:H,miw:U,maw:K,h:V,mih:X,mah:Z,bgsz:B,bgp:W,bgr:Q,bga:J,pos:ne,top:te,left:ee,bottom:pe,right:Te,inset:ce,display:de,flex:xe,bdrs:T,hiddenFrom:De,visibleFrom:Ge,lightHidden:et,darkHidden:ft,sx:Ze}),rest:Et}}const eMe={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function C9(e,r){const n=xu({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function tMe(e,r){const n=xu({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:C9(e,r)}function rMe(e,r){if(typeof e=="number")return Ae(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(l=>l.trim()!=="");let i=`${Ae(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${C9(a.join(" "),r)}`),i.trim()}return e}const bV={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function nMe(e){return typeof e=="string"&&e in bV?bV[e]:e}const oMe=["h1","h2","h3","h4","h5","h6"];function aMe(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&oMe.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Ae(e):e}function iMe(e){return e}const lMe=["h1","h2","h3","h4","h5","h6"];function sMe(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&lMe.includes(e)?`var(--mantine-${e}-line-height)`:e}function cMe(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Ae(e):e}function uMe(e){return typeof e=="number"?Ae(e):e}function dMe(e,r){if(typeof e=="number")return Ae(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return Ae(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const T9={color:C9,textColor:tMe,fontSize:aMe,spacing:dMe,radius:cMe,identity:iMe,size:uMe,lineHeight:sMe,fontFamily:nMe,border:rMe};function vV(e){return e.replace("(min-width: ","").replace("em)","")}function pMe({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(vV(o))-Number(vV(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function hMe(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function fMe(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function mMe(e){return typeof e=="object"&&e!==null?Do(e).filter(r=>r!=="base"):[]}function gMe(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function xV({styleProps:e,data:r,theme:n}){return pMe(Do(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],l=Array.isArray(i.property)?i.property:[i.property],s=fMe(e[a]);if(!hMe(e[a]))return l.forEach(u=>{o.inlineStyles[u]=T9[i.type](s,n)}),o;o.hasResponsiveStyles=!0;const c=mMe(e[a]);return l.forEach(u=>{s!=null&&(o.styles[u]=T9[i.type](s,n)),c.forEach(d=>{const p=`(min-width: ${n.breakpoints[d]})`;o.media[p]={...o.media[p],[u]:T9[i.type](gMe(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function iw(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function R9(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...R9(o,r)}),{}):typeof e=="function"?e(r):e??{}}function wV(e){return e.startsWith("data-")?e:`data-${e}`}function yMe(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[wV(n)]=e[n]),r},{})}function kV(e){return e?typeof e=="string"?{[wV(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...kV(n)}),{}):yMe(e):null}function A9(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...A9(o,r)}),{}):typeof e=="function"?e(r):e??{}}function bMe({theme:e,style:r,vars:n,styleProps:o}){const a=A9(r,e),i=A9(n,e);return{...a,...i,...o}}const _V=S.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:l,hiddenFrom:s,visibleFrom:c,lightHidden:u,darkHidden:d,renderRoot:p,__size:f,...g},b)=>{const x=mo(),w=e||"div",{styleProps:k,rest:C}=yV(g),_=m$e()?.()?.(k.sx),T=iw(),R=xV({styleProps:k,theme:x,data:eMe}),A={ref:b,style:bMe({theme:x,style:r,vars:n,styleProps:R.inlineStyles}),className:tl(o,_,{[T]:R.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":zU(l)?void 0:l||void 0,size:f,...kV(i),...C};return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(aw,{selector:`.${T}`,styles:R.styles,media:R.media}),typeof p=="function"?p(A):y.jsx(w,{...A})]})});_V.displayName="@mantine/core/Box";const Se=_V;function EV(e){return e}function vMe(e){const r=e;return n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o}}function lt(e){const r=S.forwardRef(e);return r.extend=EV,r.withProps=n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function eo(e){const r=S.forwardRef(e);return r.withProps=n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=EV,r}const xMe=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function wu(){return S.useContext(xMe)}function wMe(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function N9(e){return e?.current?e.current.scrollHeight:"auto"}const lw=typeof window<"u"&&window.requestAnimationFrame,SV=0,kMe=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function _Me({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=S.useRef(null),l=kMe(a),[s,c]=S.useState(o?{}:l),u=b=>{Fi.flushSync(()=>c(b))},d=b=>{u(x=>({...x,...b}))};function p(b){const x=e||wMe(b);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}rp(()=>{typeof lw=="function"&&lw(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),lw(()=>{const b=N9(i);d({...p(b),height:b})})}:()=>{const b=N9(i);d({...p(b),willChange:"height",height:b}),lw(()=>d({height:SV,overflow:"hidden"}))})},[o]);const f=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(o){const x=N9(i);x===s.height?u({}):d({height:x}),n()}else s.height===SV&&(u(l),n())};function g({style:b={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:KU(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...b,...s}};return Qr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const EMe={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},CV=lt((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:l,onTransitionEnd:s,animateOpacity:c,keepMounted:u,...d}=Le("Collapse",EMe,e),p=mo(),f=QU(),g=p.respectReducedMotion&&f?0:a,b=_Me({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:s,keepMounted:u});return g===0?o?y.jsx(Se,{...d,children:n}):null:y.jsx(Se,{...b({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...R9(l,p)},ref:r,...d}),children:n})});CV.displayName="@mantine/core/Collapse";function sw(){return typeof window<"u"}function Pf(e){return TV(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function os(e){var r;return(r=(TV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function TV(e){return sw()?e instanceof Node||e instanceof ra(e).Node:!1}function Or(e){return sw()?e instanceof Element||e instanceof ra(e).Element:!1}function Na(e){return sw()?e instanceof HTMLElement||e instanceof ra(e).HTMLElement:!1}function D9(e){return!sw()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot}const SMe=new Set(["inline","contents"]);function H0(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=li(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!SMe.has(a)}const CMe=new Set(["table","td","th"]);function TMe(e){return CMe.has(Pf(e))}const RMe=[":popover-open",":modal"];function cw(e){return RMe.some(r=>{try{return e.matches(r)}catch{return!1}})}const AMe=["transform","translate","scale","rotate","perspective"],NMe=["transform","translate","scale","rotate","perspective","filter"],DMe=["paint","layout","strict","content"];function P9(e){const r=uw(),n=Or(e)?li(e):e;return AMe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||NMe.some(o=>(n.willChange||"").includes(o))||DMe.some(o=>(n.contain||"").includes(o))}function PMe(e){let r=Gs(e);for(;Na(r)&&!Ws(r);){if(P9(r))return r;if(cw(r))return null;r=Gs(r)}return null}function uw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $Me=new Set(["html","body","#document"]);function Ws(e){return $Me.has(Pf(e))}function li(e){return ra(e).getComputedStyle(e)}function dw(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gs(e){if(Pf(e)==="html")return e;const r=e.assignedSlot||e.parentNode||D9(e)&&e.host||os(e);return D9(r)?r.host:r}function RV(e){const r=Gs(e);return Ws(r)?e.ownerDocument?e.ownerDocument.body:e.body:Na(r)&&H0(r)?r:RV(r)}function Xs(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=RV(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),l=ra(a);if(i){const s=$9(l);return r.concat(l,l.visualViewport||[],H0(a)?a:[],s&&n?Xs(s):[])}return r.concat(a,Xs(a,[],n))}function $9(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const AV=["top","right","bottom","left"],NV=["start","end"],DV=AV.reduce((e,r)=>e.concat(r,r+"-"+NV[0],r+"-"+NV[1]),[]),rl=Math.min,$o=Math.max,pw=Math.round,hw=Math.floor,as=e=>({x:e,y:e}),MMe={left:"right",right:"left",bottom:"top",top:"bottom"},OMe={start:"end",end:"start"};function M9(e,r,n){return $o(e,rl(r,n))}function nl(e,r){return typeof e=="function"?e(r):e}function Da(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function O9(e){return e==="x"?"y":"x"}function I9(e){return e==="y"?"height":"width"}const IMe=new Set(["top","bottom"]);function al(e){return IMe.has(Da(e))?"y":"x"}function z9(e){return O9(al(e))}function PV(e,r,n){n===void 0&&(n=!1);const o=ol(e),a=z9(e),i=I9(a);let l=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=mw(l)),[l,mw(l)]}function zMe(e){const r=mw(e);return[fw(e),r,fw(r)]}function fw(e){return e.replace(/start|end/g,r=>OMe[r])}const $V=["left","right"],MV=["right","left"],LMe=["top","bottom"],BMe=["bottom","top"];function jMe(e,r,n){switch(e){case"top":case"bottom":return n?r?MV:$V:r?$V:MV;case"left":case"right":return r?LMe:BMe;default:return[]}}function FMe(e,r,n,o){const a=ol(e);let i=jMe(Da(e),n==="start",o);return a&&(i=i.map(l=>l+"-"+a),r&&(i=i.concat(i.map(fw)))),i}function mw(e){return e.replace(/left|right|bottom|top/g,r=>MMe[r])}function HMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function L9(e){return typeof e!="number"?HMe(e):{top:e,right:e,bottom:e,left:e}}function $f(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function qMe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function UMe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function VMe(){return/apple/i.test(navigator.vendor)}function YMe(){return qMe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function WMe(){return UMe().includes("jsdom/")}const OV="data-floating-ui-focusable",GMe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function IV(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function q0(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&D9(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Mf(e){return"composedPath"in e?e.composedPath()[0]:e.target}function B9(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function XMe(e){return e.matches("html,body")}function op(e){return e?.ownerDocument||document}function KMe(e){return Na(e)&&e.matches(GMe)}function ZMe(e){if(!e||WMe())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function QMe(e){return e?e.hasAttribute(OV)?e:e.querySelector("["+OV+"]")||e:null}function gw(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...gw(e,o.id,n)])}function JMe(e){return"nativeEvent"in e}function j9(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var eOe=typeof document<"u",tOe=function(){},is=eOe?S.useLayoutEffect:tOe;const rOe={...Wv};function yw(e){const r=S.useRef(e);return is(()=>{r.current=e}),r}const nOe=rOe.useInsertionEffect,oOe=nOe||(e=>e());function ls(e){const r=S.useRef(()=>{});return oOe(()=>{r.current=e}),S.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r.current==null?void 0:r.current(...o)},[])}function zV(e,r,n){let{reference:o,floating:a}=e;const i=al(r),l=z9(r),s=I9(l),c=Da(r),u=i==="y",d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[s]/2-a[s]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-a.width,y:p};break;default:g={x:o.x,y:o.y}}switch(ol(r)){case"start":g[l]-=f*(n&&u?-1:1);break;case"end":g[l]+=f*(n&&u?-1:1);break}return g}const aOe=async(e,r,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let u=await l.getElementRects({reference:e,floating:r,strategy:a}),{x:d,y:p}=zV(u,o,c),f=o,g={},b=0;for(let x=0;x<s.length;x++){const{name:w,fn:k}=s[x],{x:C,y:_,data:T,reset:R}=await k({x:d,y:p,initialPlacement:o,placement:f,strategy:a,middlewareData:g,rects:u,platform:l,elements:{reference:e,floating:r}});d=C??d,p=_??p,g={...g,[w]:{...g[w],...T}},R&&b<=50&&(b++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await l.getElementRects({reference:e,floating:r,strategy:a}):R.rects),{x:d,y:p}=zV(u,f,c)),x=-1)}return{x:d,y:p,placement:f,strategy:a,middlewareData:g}};async function Of(e,r){var n;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:g=0}=nl(r,e),b=L9(g),x=s[f?p==="floating"?"reference":"floating":p],w=$f(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),k=p==="floating"?{x:o,y:a,width:l.floating.width,height:l.floating.height}:l.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=$f(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:k,offsetParent:C,strategy:c}):k);return{top:(w.top-T.top+b.top)/_.y,bottom:(T.bottom-w.bottom+b.bottom)/_.y,left:(w.left-T.left+b.left)/_.x,right:(T.right-w.right+b.right)/_.x}}const iOe=e=>({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:l,elements:s,middlewareData:c}=r,{element:u,padding:d=0}=nl(e,r)||{};if(u==null)return{};const p=L9(d),f={x:n,y:o},g=z9(a),b=I9(g),x=await l.getDimensions(u),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[b]+i.reference[g]-f[g]-i.floating[b],R=f[g]-i.reference[g],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let D=A?A[_]:0;(!D||!await(l.isElement==null?void 0:l.isElement(A)))&&(D=s.floating[_]||i.floating[b]);const N=T/2-R/2,$=D/2-x[b]/2-1,O=rl(p[k],$),j=rl(p[C],$),L=O,Y=D-x[b]-j,M=D/2-x[b]/2+N,q=M9(L,M,Y),z=!c.arrow&&ol(a)!=null&&M!==q&&i.reference[b]/2-(M<L?O:j)-x[b]/2<0,H=z?M<L?M-L:M-Y:0;return{[g]:f[g]+H,data:{[g]:q,centerOffset:M-q-H,...z&&{alignmentOffset:H}},reset:z}}});function lOe(e,r,n){return(e?[...n.filter(o=>ol(o)===e),...n.filter(o=>ol(o)!==e)]:n.filter(o=>Da(o)===o)).filter(o=>e?ol(o)===e||(r?fw(o)!==o:!1):!0)}const sOe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var n,o,a;const{rects:i,middlewareData:l,placement:s,platform:c,elements:u}=r,{crossAxis:d=!1,alignment:p,allowedPlacements:f=DV,autoAlignment:g=!0,...b}=nl(e,r),x=p!==void 0||f===DV?lOe(p||null,g,f):f,w=await Of(r,b),k=((n=l.autoPlacement)==null?void 0:n.index)||0,C=x[k];if(C==null)return{};const _=PV(C,i,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(s!==C)return{reset:{placement:x[0]}};const T=[w[Da(C)],w[_[0]],w[_[1]]],R=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:T}],A=x[k+1];if(A)return{data:{index:k+1,overflows:R},reset:{placement:A}};const D=R.map($=>{const O=ol($.placement);return[$.placement,O&&d?$.overflows.slice(0,2).reduce((j,L)=>j+L,0):$.overflows[0],$.overflows]}).sort(($,O)=>$[1]-O[1]),N=((a=D.filter($=>$[2].slice(0,ol($[0])?2:3).every(O=>O<=0))[0])==null?void 0:a[0])||D[0][0];return N!==s?{data:{index:k+1,overflows:R},reset:{placement:N}}:{}}}},cOe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:l,initialPlacement:s,platform:c,elements:u}=r,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...w}=nl(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Da(a),C=al(s),_=Da(s)===s,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=f||(_||!x?[mw(s)]:zMe(s)),A=b!=="none";!f&&A&&R.push(...FMe(s,x,b,T));const D=[s,...R],N=await Of(r,w),$=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&$.push(N[k]),p){const M=PV(a,l,T);$.push(N[M[0]],N[M[1]])}if(O=[...O,{placement:a,overflows:$}],!$.every(M=>M<=0)){var j,L;const M=(((j=i.flip)==null?void 0:j.index)||0)+1,q=D[M];if(q&&(!(p==="alignment"&&C!==al(q))||O.every(H=>al(H.placement)===C?H.overflows[0]>0:!0)))return{data:{index:M,overflows:O},reset:{placement:q}};let z=(L=O.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(g){case"bestFit":{var Y;const H=(Y=O.filter(U=>{if(A){const K=al(U.placement);return K===C||K==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(K=>K>0).reduce((K,V)=>K+V,0)]).sort((U,K)=>U[1]-K[1])[0])==null?void 0:Y[0];H&&(z=H);break}case"initialPlacement":z=s;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function LV(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function BV(e){return AV.some(r=>e[r]>=0)}const uOe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=nl(e,r);switch(o){case"referenceHidden":{const i=await Of(r,{...a,elementContext:"reference"}),l=LV(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:BV(l)}}}case"escaped":{const i=await Of(r,{...a,altBoundary:!0}),l=LV(i,n.floating);return{data:{escapedOffsets:l,escaped:BV(l)}}}default:return{}}}}};function jV(e){const r=rl(...e.map(i=>i.left)),n=rl(...e.map(i=>i.top)),o=$o(...e.map(i=>i.right)),a=$o(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function dOe(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;a<r.length;a++){const i=r[a];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>$f(jV(a)))}const pOe=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:l}=r,{padding:s=2,x:c,y:u}=nl(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),p=dOe(d),f=$f(jV(d)),g=L9(s);function b(){if(p.length===2&&p[0].left>p[1].right&&c!=null&&u!=null)return p.find(w=>c>w.left-g.left&&c<w.right+g.right&&u>w.top-g.top&&u<w.bottom+g.bottom)||f;if(p.length>=2){if(al(n)==="y"){const O=p[0],j=p[p.length-1],L=Da(n)==="top",Y=O.top,M=j.bottom,q=L?O.left:j.left,z=L?O.right:j.right,H=z-q,U=M-Y;return{top:Y,bottom:M,left:q,right:z,width:H,height:U,x:q,y:Y}}const w=Da(n)==="left",k=$o(...p.map(O=>O.right)),C=rl(...p.map(O=>O.left)),_=p.filter(O=>w?O.left===C:O.right===k),T=_[0].top,R=_[_.length-1].bottom,A=C,D=k,N=D-A,$=R-T;return{top:T,bottom:R,left:A,right:D,width:N,height:$,x:A,y:T}}return f}const x=await i.getElementRects({reference:{getBoundingClientRect:b},floating:o.floating,strategy:l});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},FV=new Set(["left","top"]);async function hOe(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),l=Da(n),s=ol(n),c=al(n)==="y",u=FV.has(l)?-1:1,d=i&&c?-1:1,p=nl(r,e);let{mainAxis:f,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*d,y:f*u}:{x:f*u,y:g*d}}const fOe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:l,middlewareData:s}=r,c=await hOe(r,e);return l===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:l}}}}},mOe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=nl(e,r),u={x:n,y:o},d=await Of(r,c),p=al(Da(a)),f=O9(p);let g=u[f],b=u[p];if(i){const w=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=g+d[w],_=g-d[k];g=M9(C,g,_)}if(l){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=b+d[w],_=b-d[k];b=M9(C,b,_)}const x=s.fn({...r,[f]:g,[p]:b});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[f]:i,[p]:l}}}}}},gOe=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:l}=r,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=nl(e,r),d={x:n,y:o},p=al(a),f=O9(p);let g=d[f],b=d[p];const x=nl(s,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=f==="y"?"height":"width",T=i.reference[f]-i.floating[_]+w.mainAxis,R=i.reference[f]+i.reference[_]-w.mainAxis;g<T?g=T:g>R&&(g=R)}if(u){var k,C;const _=f==="y"?"width":"height",T=FV.has(Da(a)),R=i.reference[p]-i.floating[_]+(T&&((k=l.offset)==null?void 0:k[p])||0)+(T?0:w.crossAxis),A=i.reference[p]+i.reference[_]+(T?0:((C=l.offset)==null?void 0:C[p])||0)-(T?w.crossAxis:0);b<R?b=R:b>A&&(b=A)}return{[f]:g,[p]:b}}}},yOe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:l,elements:s}=r,{apply:c=()=>{},...u}=nl(e,r),d=await Of(r,u),p=Da(a),f=ol(a),g=al(a)==="y",{width:b,height:x}=i.floating;let w,k;p==="top"||p==="bottom"?(w=p,k=f===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(k=p,w=f==="end"?"top":"bottom");const C=x-d.top-d.bottom,_=b-d.left-d.right,T=rl(x-d[w],C),R=rl(b-d[k],_),A=!r.middlewareData.shift;let D=T,N=R;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(N=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(D=C),A&&!f){const O=$o(d.left,0),j=$o(d.right,0),L=$o(d.top,0),Y=$o(d.bottom,0);g?N=b-2*(O!==0||j!==0?O+j:$o(d.left,d.right)):D=x-2*(L!==0||Y!==0?L+Y:$o(d.top,d.bottom))}await c({...r,availableWidth:N,availableHeight:D});const $=await l.getDimensions(s.floating);return b!==$.width||x!==$.height?{reset:{rects:!0}}:{}}}};function HV(e){const r=li(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Na(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:o,s=pw(n)!==i||pw(o)!==l;return s&&(n=i,o=l),{width:n,height:o,$:s}}function F9(e){return Or(e)?e:e.contextElement}function If(e){const r=F9(e);if(!Na(r))return as(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=HV(r);let l=(i?pw(n.width):n.width)/o,s=(i?pw(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const bOe=as(0);function qV(e){const r=ra(e);return!uw()||!r.visualViewport?bOe:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function vOe(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ra(e)?!1:r}function ap(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=F9(e);let l=as(1);r&&(o?Or(o)&&(l=If(o)):l=If(e));const s=vOe(i,n,o)?qV(i):as(0);let c=(a.left+s.x)/l.x,u=(a.top+s.y)/l.y,d=a.width/l.x,p=a.height/l.y;if(i){const f=ra(i),g=o&&Or(o)?ra(o):o;let b=f,x=$9(b);for(;x&&o&&g!==b;){const w=If(x),k=x.getBoundingClientRect(),C=li(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,p*=w.y,c+=_,u+=T,b=ra(x),x=$9(b)}}return $f({width:d,height:p,x:c,y:u})}function bw(e,r){const n=dw(e).scrollLeft;return r?r.left+n:ap(os(e)).left+n}function UV(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-bw(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function xOe(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",l=os(o),s=r?cw(r.floating):!1;if(o===l||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=as(1);const d=as(0),p=Na(o);if((p||!p&&!i)&&((Pf(o)!=="body"||H0(l))&&(c=dw(o)),Na(o))){const g=ap(o);u=If(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const f=l&&!p&&!i?UV(l,c):as(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function wOe(e){return Array.from(e.getClientRects())}function kOe(e){const r=os(e),n=dw(e),o=e.ownerDocument.body,a=$o(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=$o(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+bw(e);const s=-n.scrollTop;return li(o).direction==="rtl"&&(l+=$o(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:l,y:s}}const VV=25;function _Oe(e,r){const n=ra(e),o=os(e),a=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,s=0,c=0;if(a){i=a.width,l=a.height;const d=uw();(!d||d&&r==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const u=bw(o);if(u<=0){const d=o.ownerDocument,p=d.body,f=getComputedStyle(p),g=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-p.clientWidth-g);b<=VV&&(i-=b)}else u<=VV&&(i+=u);return{width:i,height:l,x:s,y:c}}const EOe=new Set(["absolute","fixed"]);function SOe(e,r){const n=ap(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Na(e)?If(e):as(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,c=a*i.x,u=o*i.y;return{width:l,height:s,x:c,y:u}}function YV(e,r,n){let o;if(r==="viewport")o=_Oe(e,n);else if(r==="document")o=kOe(os(e));else if(Or(r))o=SOe(r,n);else{const a=qV(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return $f(o)}function WV(e,r){const n=Gs(e);return n===r||!Or(n)||Ws(n)?!1:li(n).position==="fixed"||WV(n,r)}function COe(e,r){const n=r.get(e);if(n)return n;let o=Xs(e,[],!1).filter(s=>Or(s)&&Pf(s)!=="body"),a=null;const i=li(e).position==="fixed";let l=i?Gs(e):e;for(;Or(l)&&!Ws(l);){const s=li(l),c=P9(l);!c&&s.position==="fixed"&&(a=null),(i?!c&&!a:!c&&s.position==="static"&&a&&EOe.has(a.position)||H0(l)&&!c&&WV(e,l))?o=o.filter(u=>u!==l):a=s,l=Gs(l)}return r.set(e,o),o}function TOe(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?cw(r)?[]:COe(r,this._c):[].concat(n),o],l=i[0],s=i.reduce((c,u)=>{const d=YV(r,u,a);return c.top=$o(d.top,c.top),c.right=rl(d.right,c.right),c.bottom=rl(d.bottom,c.bottom),c.left=$o(d.left,c.left),c},YV(r,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function ROe(e){const{width:r,height:n}=HV(e);return{width:r,height:n}}function AOe(e,r,n){const o=Na(r),a=os(r),i=n==="fixed",l=ap(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=as(0);function u(){c.x=bw(a)}if(o||!o&&!i)if((Pf(r)!=="body"||H0(a))&&(s=dw(r)),o){const g=ap(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&u();i&&!o&&a&&u();const d=a&&!o&&!i?UV(a,s):as(0),p=l.left+s.scrollLeft-c.x-d.x,f=l.top+s.scrollTop-c.y-d.y;return{x:p,y:f,width:l.width,height:l.height}}function H9(e){return li(e).position==="static"}function GV(e,r){if(!Na(e)||li(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return os(e)===n&&(n=n.ownerDocument.body),n}function XV(e,r){const n=ra(e);if(cw(e))return n;if(!Na(e)){let a=Gs(e);for(;a&&!Ws(a);){if(Or(a)&&!H9(a))return a;a=Gs(a)}return n}let o=GV(e,r);for(;o&&TMe(o)&&H9(o);)o=GV(o,r);return o&&Ws(o)&&H9(o)&&!P9(o)?n:o||PMe(e)||n}const NOe=async function(e){const r=this.getOffsetParent||XV,n=this.getDimensions,o=await n(e.floating);return{reference:AOe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function DOe(e){return li(e).direction==="rtl"}const POe={convertOffsetParentRelativeRectToViewportRelativeRect:xOe,getDocumentElement:os,getClippingRect:TOe,getOffsetParent:XV,getElementRects:NOe,getClientRects:wOe,getDimensions:ROe,getScale:If,isElement:Or,isRTL:DOe};function KV(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function $Oe(e,r){let n=null,o;const a=os(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:f,height:g}=u;if(s||r(),!f||!g)return;const b=hw(p),x=hw(a.clientWidth-(d+f)),w=hw(a.clientHeight-(p+g)),k=hw(d),C={rootMargin:-b+"px "+-x+"px "+-w+"px "+-k+"px",threshold:$o(0,rl(1,c))||1};let _=!0;function T(R){const A=R[0].intersectionRatio;if(A!==c){if(!_)return l();A?l(!1,A):o=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!KV(u,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return l(!0),i}function vw(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=F9(e),d=a||i?[...u?Xs(u):[],...Xs(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=u&&s?$Oe(u,n):null;let f=-1,g=null;l&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),u&&!c&&g.observe(u),g.observe(r));let b,x=c?ap(e):null;c&&w();function w(){const k=ap(e);x&&!KV(x,k)&&n(),x=k,b=requestAnimationFrame(w)}return n(),()=>{var k;d.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),p?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const ZV=fOe,MOe=sOe,OOe=mOe,IOe=cOe,QV=yOe,JV=uOe,eY=iOe,zOe=pOe,LOe=gOe,tY=(e,r,n)=>{const o=new Map,a={platform:POe,...n},i={...a.platform,_c:o};return aOe(e,r,{...a,platform:i})};var BOe=typeof document<"u",jOe=function(){},xw=BOe?S.useLayoutEffect:jOe;function ww(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!ww(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!ww(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function rY(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nY(e,r){const n=rY(e);return Math.round(r*n)/n}function q9(e){const r=S.useRef(e);return xw(()=>{r.current=e}),r}function FOe(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,p]=S.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=S.useState(o);ww(f,o)||g(o);const[b,x]=S.useState(null),[w,k]=S.useState(null),C=S.useCallback(U=>{U!==A.current&&(A.current=U,x(U))},[]),_=S.useCallback(U=>{U!==D.current&&(D.current=U,k(U))},[]),T=i||b,R=l||w,A=S.useRef(null),D=S.useRef(null),N=S.useRef(d),$=c!=null,O=q9(c),j=q9(a),L=q9(u),Y=S.useCallback(()=>{if(!A.current||!D.current)return;const U={placement:r,strategy:n,middleware:f};j.current&&(U.platform=j.current),tY(A.current,D.current,U).then(K=>{const V={...K,isPositioned:L.current!==!1};M.current&&!ww(N.current,V)&&(N.current=V,Fi.flushSync(()=>{p(V)}))})},[f,r,n,j,L]);xw(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(U=>({...U,isPositioned:!1})))},[u]);const M=S.useRef(!1);xw(()=>(M.current=!0,()=>{M.current=!1}),[]),xw(()=>{if(T&&(A.current=T),R&&(D.current=R),T&&R){if(O.current)return O.current(T,R,Y);Y()}},[T,R,Y,O,$]);const q=S.useMemo(()=>({reference:A,floating:D,setReference:C,setFloating:_}),[C,_]),z=S.useMemo(()=>({reference:T,floating:R}),[T,R]),H=S.useMemo(()=>{const U={position:n,left:0,top:0};if(!z.floating)return U;const K=nY(z.floating,d.x),V=nY(z.floating,d.y);return s?{...U,transform:"translate("+K+"px, "+V+"px)",...rY(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:V}},[n,s,z.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:Y,refs:q,elements:z,floatingStyles:H}),[d,Y,q,z,H])}const HOe=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?eY({element:o.current,padding:a}).fn(n):{}:o?eY({element:o,padding:a}).fn(n):{}}}},oY=(e,r)=>({...ZV(e),options:[e,r]}),U9=(e,r)=>({...OOe(e),options:[e,r]}),aY=(e,r)=>({...LOe(e),options:[e,r]}),kw=(e,r)=>({...IOe(e),options:[e,r]}),qOe=(e,r)=>({...QV(e),options:[e,r]}),UOe=(e,r)=>({...JV(e),options:[e,r]}),U0=(e,r)=>({...zOe(e),options:[e,r]}),iY=(e,r)=>({...HOe(e),options:[e,r]});function lY(e){const r=S.useRef(void 0),n=S.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const l=i,s=l(o);return typeof s=="function"?s:()=>{l(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const VOe="data-floating-ui-focusable",sY="active",cY="selected",YOe={...Wv};let uY=!1,WOe=0;const dY=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+WOe++;function GOe(){const[e,r]=S.useState(()=>uY?dY():void 0);return is(()=>{e==null&&r(dY())},[]),S.useEffect(()=>{uY=!0},[]),e}const XOe=YOe.useId,pY=XOe||GOe;function KOe(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const ZOe=S.createContext(null),QOe=S.createContext(null),V9=()=>{var e;return((e=S.useContext(ZOe))==null?void 0:e.id)||null},Y9=()=>S.useContext(QOe);function W9(e){return"data-floating-ui-"+e}function si(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const hY=W9("safe-polygon");function _w(e,r,n){if(n&&!j9(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function G9(e){return typeof e=="function"?e():e}function fY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:l}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:f=!0}=r,g=Y9(),b=V9(),x=yw(u),w=yw(c),k=yw(n),C=yw(p),_=S.useRef(),T=S.useRef(-1),R=S.useRef(),A=S.useRef(-1),D=S.useRef(!0),N=S.useRef(!1),$=S.useRef(()=>{}),O=S.useRef(!1),j=ls(()=>{var H;const U=(H=a.current.openEvent)==null?void 0:H.type;return U?.includes("mouse")&&U!=="mousedown"});S.useEffect(()=>{if(!s)return;function H(U){let{open:K}=U;K||(si(T),si(A),D.current=!0,O.current=!1)}return i.on("openchange",H),()=>{i.off("openchange",H)}},[s,i]),S.useEffect(()=>{if(!s||!x.current||!n)return;function H(K){j()&&o(!1,K,"hover")}const U=op(l.floating).documentElement;return U.addEventListener("mouseleave",H),()=>{U.removeEventListener("mouseleave",H)}},[l.floating,n,o,s,x,j]);const L=S.useCallback(function(H,U,K){U===void 0&&(U=!0),K===void 0&&(K="hover");const V=_w(w.current,"close",_.current);V&&!R.current?(si(T),T.current=window.setTimeout(()=>o(!1,H,K),V)):U&&(si(T),o(!1,H,K))},[w,o]),Y=ls(()=>{$.current(),R.current=void 0}),M=ls(()=>{if(N.current){const H=op(l.floating).body;H.style.pointerEvents="",H.removeAttribute(hY),N.current=!1}}),q=ls(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);S.useEffect(()=>{if(!s)return;function H(Z){if(si(T),D.current=!1,d&&!j9(_.current)||G9(C.current)>0&&!_w(w.current,"open"))return;const B=_w(w.current,"open",_.current);B?T.current=window.setTimeout(()=>{k.current||o(!0,Z,"hover")},B):n||o(!0,Z,"hover")}function U(Z){if(q()){M();return}$.current();const B=op(l.floating);if(si(A),O.current=!1,x.current&&a.current.floatingContext){n||si(T),R.current=x.current({...a.current.floatingContext,tree:g,x:Z.clientX,y:Z.clientY,onClose(){M(),Y(),q()||L(Z,!0,"safe-polygon")}});const W=R.current;B.addEventListener("mousemove",W),$.current=()=>{B.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!q0(l.floating,Z.relatedTarget))&&L(Z)}function K(Z){q()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Z.clientX,y:Z.clientY,onClose(){M(),Y(),q()||L(Z)}})(Z))}function V(){si(T)}function X(Z){q()||L(Z,!1)}if(Or(l.domReference)){const Z=l.domReference,B=l.floating;return n&&Z.addEventListener("mouseleave",K),f&&Z.addEventListener("mousemove",H,{once:!0}),Z.addEventListener("mouseenter",H),Z.addEventListener("mouseleave",U),B&&(B.addEventListener("mouseleave",K),B.addEventListener("mouseenter",V),B.addEventListener("mouseleave",X)),()=>{n&&Z.removeEventListener("mouseleave",K),f&&Z.removeEventListener("mousemove",H),Z.removeEventListener("mouseenter",H),Z.removeEventListener("mouseleave",U),B&&(B.removeEventListener("mouseleave",K),B.removeEventListener("mouseenter",V),B.removeEventListener("mouseleave",X))}}},[l,s,e,d,f,L,Y,M,o,n,k,g,w,x,a,q,C]),is(()=>{var H;if(s&&n&&(H=x.current)!=null&&(H=H.__options)!=null&&H.blockPointerEvents&&j()){N.current=!0;const K=l.floating;if(Or(l.domReference)&&K){var U;const V=op(l.floating).body;V.setAttribute(hY,"");const X=l.domReference,Z=g==null||(U=g.nodesRef.current.find(B=>B.id===b))==null||(U=U.context)==null?void 0:U.elements.floating;return Z&&(Z.style.pointerEvents=""),V.style.pointerEvents="none",X.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{V.style.pointerEvents="",X.style.pointerEvents="",K.style.pointerEvents=""}}}},[s,n,b,l,g,x,j]),is(()=>{n||(_.current=void 0,O.current=!1,Y(),M())},[n,Y,M]),S.useEffect(()=>()=>{Y(),si(T),si(A),M()},[s,l.domReference,Y,M]);const z=S.useMemo(()=>{function H(U){_.current=U.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(U){const{nativeEvent:K}=U;function V(){!D.current&&!k.current&&o(!0,K,"hover")}d&&!j9(_.current)||n||G9(C.current)===0||O.current&&U.movementX**2+U.movementY**2<2||(si(A),_.current==="touch"?V():(O.current=!0,A.current=window.setTimeout(V,G9(C.current))))}}},[d,o,n,k,C]);return S.useMemo(()=>s?{reference:z}:{},[s,z])}const X9=()=>{},mY=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:X9,setState:X9,isInstantPhase:!1}),JOe=()=>S.useContext(mY);function gY(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=S.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),l=S.useRef(null),s=S.useCallback(c=>{i({currentId:c})},[]);return is(()=>{a.currentId?l.current===null?l.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),l.current=null)},[a.currentId,a.isInstantPhase]),y.jsx(mY.Provider,{value:S.useMemo(()=>({...a,setState:i,setCurrentId:s}),[a,s]),children:r})}function yY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:l=!0}=r,s=i??a,c=JOe(),{currentId:u,setCurrentId:d,initialDelay:p,setState:f,timeoutMs:g}=c;return is(()=>{l&&u&&(f({delay:{open:1,close:_w(p,"close")}}),u!==s&&o(!1))},[l,s,o,f,u,p]),is(()=>{function b(){o(!1),f({delay:p,currentId:null})}if(l&&u&&!n&&u===s){if(g){const x=window.setTimeout(b,g);return()=>{clearTimeout(x)}}b()}},[l,n,f,u,s,o,p,g]),is(()=>{l&&(d===X9||!n||d(s))},[l,n,d,s]),c}const eIe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tIe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},bY=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function vY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:l=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:b}=r,x=Y9(),w=ls(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=S.useRef(!1),{escapeKey:_,outsidePress:T}=bY(g),{escapeKey:R,outsidePress:A}=bY(b),D=S.useRef(!1),N=ls(M=>{var q;if(!n||!l||!s||M.key!=="Escape"||D.current)return;const z=(q=i.current.floatingContext)==null?void 0:q.nodeId,H=x?gw(x.nodesRef.current,z):[];if(!_&&(M.stopPropagation(),H.length>0)){let U=!0;if(H.forEach(K=>{var V;if((V=K.context)!=null&&V.open&&!K.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}o(!1,JMe(M)?M.nativeEvent:M,"escape-key")}),$=ls(M=>{var q;const z=()=>{var H;N(M),(H=Mf(M))==null||H.removeEventListener("keydown",z)};(q=Mf(M))==null||q.addEventListener("keydown",z)}),O=ls(M=>{var q;const z=i.current.insideReactTree;i.current.insideReactTree=!1;const H=C.current;if(C.current=!1,u==="click"&&H||z||typeof k=="function"&&!k(M))return;const U=Mf(M),K="["+W9("inert")+"]",V=op(a.floating).querySelectorAll(K);let X=Or(U)?U:null;for(;X&&!Ws(X);){const Q=Gs(X);if(Ws(Q)||!Or(Q))break;X=Q}if(V.length&&Or(U)&&!XMe(U)&&!q0(U,a.floating)&&Array.from(V).every(Q=>!q0(X,Q)))return;if(Na(U)&&Y){const Q=Ws(U),J=li(U),ne=/auto|scroll/,te=Q||ne.test(J.overflowX),ee=Q||ne.test(J.overflowY),pe=te&&U.clientWidth>0&&U.scrollWidth>U.clientWidth,Te=ee&&U.clientHeight>0&&U.scrollHeight>U.clientHeight,ce=J.direction==="rtl",de=Te&&(ce?M.offsetX<=U.offsetWidth-U.clientWidth:M.offsetX>U.clientWidth),xe=pe&&M.offsetY>U.clientHeight;if(de||xe)return}const Z=(q=i.current.floatingContext)==null?void 0:q.nodeId,B=x&&gw(x.nodesRef.current,Z).some(Q=>{var J;return B9(M,(J=Q.context)==null?void 0:J.elements.floating)});if(B9(M,a.floating)||B9(M,a.domReference)||B)return;const W=x?gw(x.nodesRef.current,Z):[];if(W.length>0){let Q=!0;if(W.forEach(J=>{var ne;if((ne=J.context)!=null&&ne.open&&!J.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}o(!1,M,"outside-press")}),j=ls(M=>{var q;const z=()=>{var H;O(M),(H=Mf(M))==null||H.removeEventListener(u,z)};(q=Mf(M))==null||q.addEventListener(u,z)});S.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let M=-1;function q(V){o(!1,V,"ancestor-scroll")}function z(){window.clearTimeout(M),D.current=!0}function H(){M=window.setTimeout(()=>{D.current=!1},uw()?5:0)}const U=op(a.floating);s&&(U.addEventListener("keydown",R?$:N,R),U.addEventListener("compositionstart",z),U.addEventListener("compositionend",H)),k&&U.addEventListener(u,A?j:O,A);let K=[];return f&&(Or(a.domReference)&&(K=Xs(a.domReference)),Or(a.floating)&&(K=K.concat(Xs(a.floating))),!Or(a.reference)&&a.reference&&a.reference.contextElement&&(K=K.concat(Xs(a.reference.contextElement)))),K=K.filter(V=>{var X;return V!==((X=U.defaultView)==null?void 0:X.visualViewport)}),K.forEach(V=>{V.addEventListener("scroll",q,{passive:!0})}),()=>{s&&(U.removeEventListener("keydown",R?$:N,R),U.removeEventListener("compositionstart",z),U.removeEventListener("compositionend",H)),k&&U.removeEventListener(u,A?j:O,A),K.forEach(V=>{V.removeEventListener("scroll",q)}),window.clearTimeout(M)}},[i,a,s,k,u,n,o,f,l,_,T,N,R,$,O,A,j]),S.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const L=S.useMemo(()=>({onKeyDown:N,...d&&{[eIe[p]]:M=>{o(!1,M.nativeEvent,"reference-press")},...p!=="click"&&{onClick(M){o(!1,M.nativeEvent,"reference-press")}}}}),[N,o,d,p]),Y=S.useMemo(()=>({onKeyDown:N,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[tIe[u]]:()=>{i.current.insideReactTree=!0}}),[N,u,i]);return S.useMemo(()=>l?{reference:L,floating:Y}:{},[l,L,Y])}function rIe(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=pY(),i=S.useRef({}),[l]=S.useState(()=>KOe()),s=V9()!=null,[c,u]=S.useState(o.reference),d=ls((g,b,x)=>{i.current.openEvent=g?b:void 0,l.emit("openchange",{open:g,event:b,reason:x,nested:s}),n?.(g,b,x)}),p=S.useMemo(()=>({setPositionReference:u}),[]),f=S.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return S.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:f,events:l,floatingId:a,refs:p}),[r,d,f,l,a,p])}function Ew(e){e===void 0&&(e={});const{nodeId:r}=e,n=rIe({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,l]=S.useState(null),[s,c]=S.useState(null),u=a?.domReference||i,d=S.useRef(null),p=Y9();is(()=>{u&&(d.current=u)},[u]);const f=FOe({...e,elements:{...a,...s&&{reference:s}}}),g=S.useCallback(C=>{const _=Or(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),b=S.useCallback(C=>{(Or(C)||C===null)&&(d.current=C,l(C)),(Or(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!Or(C))&&f.refs.setReference(C)},[f.refs]),x=S.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:d}),[f.refs,b,g]),w=S.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),k=S.useMemo(()=>({...f,...o,refs:x,elements:w,nodeId:r}),[f,x,w,r,o]);return is(()=>{o.dataRef.current.floatingContext=k;const C=p?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),S.useMemo(()=>({...f,context:k,refs:x,elements:w}),[f,x,w,k])}function K9(){return YMe()&&VMe()}function nIe(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:l}=e,{enabled:s=!0,visibleOnly:c=!0}=r,u=S.useRef(!1),d=S.useRef(-1),p=S.useRef(!0);S.useEffect(()=>{if(!s)return;const g=ra(l.domReference);function b(){!n&&Na(l.domReference)&&l.domReference===IV(op(l.domReference))&&(u.current=!0)}function x(){p.current=!0}function w(){p.current=!1}return g.addEventListener("blur",b),K9()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",b),K9()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[l.domReference,n,s]),S.useEffect(()=>{if(!s)return;function g(b){let{reason:x}=b;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,s]),S.useEffect(()=>()=>{si(d)},[]);const f=S.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const b=Mf(g.nativeEvent);if(c&&Or(b)){if(K9()&&!g.relatedTarget){if(!p.current&&!KMe(b))return}else if(!ZMe(b))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const b=g.relatedTarget,x=g.nativeEvent,w=Or(b)&&b.hasAttribute(W9("focus-guard"))&&b.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=IV(l.domReference?l.domReference.ownerDocument:document);!b&&C===l.domReference||q0((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||q0(l.domReference,C)||w||o(!1,x,"focus")})}}),[i,l.domReference,o,c]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}function Z9(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[sY]:l,[cY]:s,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[VOe]:""},...i,...r.map(l=>{const s=l?l[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((l,s)=>(s&&Object.entries(s).forEach(c=>{let[u,d]=c;if(!(a&&[sY,cY].includes(u)))if(u.indexOf("on")===0){if(o.has(u)||o.set(u,[]),typeof d=="function"){var p;(p=o.get(u))==null||p.push(d),l[u]=function(){for(var f,g=arguments.length,b=new Array(g),x=0;x<g;x++)b[x]=arguments[x];return(f=o.get(u))==null?void 0:f.map(w=>w(...b)).find(w=>w!==void 0)}}}else l[u]=d}),l),{})}}function xY(e){e===void 0&&(e=[]);const r=e.map(s=>s?.reference),n=e.map(s=>s?.floating),o=e.map(s=>s?.item),a=S.useCallback(s=>Z9(s,e,"reference"),r),i=S.useCallback(s=>Z9(s,e,"floating"),n),l=S.useCallback(s=>Z9(s,e,"item"),o);return S.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:l}),[a,i,l])}const oIe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function wY(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:l}=e,{enabled:s=!0,role:c="dialog"}=r,u=pY(),d=((n=i.domReference)==null?void 0:n.id)||u,p=S.useMemo(()=>{var k;return((k=QMe(i.floating))==null?void 0:k.id)||l},[i.floating,l]),f=(o=oIe.get(c))!=null?o:c,g=V9()!=null,b=S.useMemo(()=>f==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?p:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":f==="alertdialog"?"dialog":f,"aria-controls":a?p:void 0,...f==="listbox"&&{role:"combobox"},...f==="menu"&&{id:d},...f==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[f,p,g,a,d,c]),x=S.useMemo(()=>{const k={id:p,...f&&{role:f}};return f==="tooltip"||c==="label"?k:{...k,...f==="menu"&&{"aria-labelledby":d}}},[f,p,d,c]),w=S.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:p+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[p,c]);return S.useMemo(()=>s?{reference:b,floating:x,item:w}:{},[s,b,x,w])}const[aIe,ci]=ii("ScrollArea.Root component was not found in tree");function zf(e,r){const n=ot(r);B0(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const iIe=S.forwardRef((e,r)=>{const{style:n,...o}=e,a=ci(),[i,l]=S.useState(0),[s,c]=S.useState(0),u=!!(i&&s);return zf(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),zf(a.scrollbarY,()=>{const d=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(d),l(d)}),u?y.jsx("div",{...o,ref:r,style:{...n,width:i,height:s}}):null}),lIe=S.forwardRef((e,r)=>{const n=ci(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx(iIe,{...e,ref:r}):null}),sIe={scrollHideDelay:1e3,type:"hover"},kY=S.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...l}=Le("ScrollAreaRoot",sIe,e),[s,c]=S.useState(null),[u,d]=S.useState(null),[p,f]=S.useState(null),[g,b]=S.useState(null),[x,w]=S.useState(null),[k,C]=S.useState(0),[_,T]=S.useState(0),[R,A]=S.useState(!1),[D,N]=S.useState(!1),$=Mr(r,O=>c(O));return y.jsx(aIe,{value:{type:n,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:d,content:p,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:R,onScrollbarXEnabledChange:A,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:D,onScrollbarYEnabledChange:N,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:y.jsx(Se,{...l,ref:$,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});kY.displayName="@mantine/core/ScrollAreaRoot";function _Y(e,r){const n=e/r;return Number.isNaN(n)?0:n}function Sw(e){const r=_Y(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function EY(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function cIe(e,[r,n]){return Math.min(n,Math.max(r,e))}function SY(e,r,n="ltr"){const o=Sw(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,l=r.content-r.viewport,s=i-o,c=n==="ltr"?[0,l]:[l*-1,0],u=cIe(e,c);return EY([0,l],[0,s])(u)}function uIe(e,r,n,o="ltr"){const a=Sw(n),i=a/2,l=r||i,s=a-l,c=n.scrollbar.paddingStart+l,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,p=o==="ltr"?[0,d]:[d*-1,0];return EY([c,u],p)(e)}function CY(e,r){return e>0&&e<r}function ku(e){return e?parseInt(e,10):0}function ip(e,r,{checkForDefaultPrevented:n=!0}={}){return o=>{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[dIe,TY]=ii("ScrollAreaScrollbar was not found in tree"),RY=S.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,f=ci(),[g,b]=S.useState(null),x=Mr(r,N=>b(N)),w=S.useRef(null),k=S.useRef(""),{viewport:C}=f,_=n.content-n.viewport,T=ot(u),R=ot(s),A=Tf(d,10),D=N=>{if(w.current){const $=N.clientX-w.current.left,O=N.clientY-w.current.top;c({x:$,y:O})}};return S.useEffect(()=>{const N=$=>{const O=$.target;g?.contains(O)&&T($,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[C,g,_,T]),S.useEffect(R,[n,R]),zf(g,A),zf(f.content,A),y.jsx(dIe,{value:{scrollbar:g,hasThumb:o,onThumbChange:ot(a),onThumbPointerUp:ot(i),onThumbPositionChange:R,onThumbPointerDown:ot(l)},children:y.jsx("div",{...p,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:ip(e.onPointerDown,N=>{N.preventDefault(),N.button===0&&(N.target.setPointerCapture(N.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(N))}),onPointerMove:ip(e.onPointerMove,D),onPointerUp:ip(e.onPointerUp,N=>{const $=N.target;$.hasPointerCapture(N.pointerId)&&(N.preventDefault(),$.releasePointerCapture(N.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),AY=S.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=ci(),[s,c]=S.useState(),u=S.useRef(null),d=Mr(r,u,l.onScrollbarXChange);return S.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),y.jsx(RY,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${Sw(n)}px`},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(l.viewport){const g=l.viewport.scrollLeft+p.deltaX;e.onWheelScroll(g),CY(g,f)&&p.preventDefault()}},onResize:()=>{u.current&&l.viewport&&s&&o({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:ku(s.paddingLeft),paddingEnd:ku(s.paddingRight)}})}})});AY.displayName="@mantine/core/ScrollAreaScrollbarX";const NY=S.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=ci(),[s,c]=S.useState(),u=S.useRef(null),d=Mr(r,u,l.onScrollbarYChange);return S.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),y.jsx(RY,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${Sw(n)}px`,...a},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(l.viewport){const g=l.viewport.scrollTop+p.deltaY;e.onWheelScroll(g),CY(g,f)&&p.preventDefault()}},onResize:()=>{u.current&&l.viewport&&s&&o({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:ku(s.paddingTop),paddingEnd:ku(s.paddingBottom)}})}})});NY.displayName="@mantine/core/ScrollAreaScrollbarY";const Cw=S.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=wu(),i=ci(),l=S.useRef(null),s=S.useRef(0),[c,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=_Y(c.viewport,c.content),p={...o,sizes:c,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>{l.current=g},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:g=>{s.current=g}},f=(g,b)=>uIe(g,s.current,c,b);return n==="horizontal"?y.jsx(AY,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollLeft,b=SY(g,c,a);l.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=f(g,a))}}):n==="vertical"?y.jsx(NY,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollTop,b=SY(g,c);c.scrollbar.size===0?l.current.style.setProperty("--thumb-opacity","0"):l.current.style.setProperty("--thumb-opacity","1"),l.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=f(g))}}):null});Cw.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Q9=S.forwardRef((e,r)=>{const n=ci(),{forceMount:o,...a}=e,[i,l]=S.useState(!1),s=e.orientation==="horizontal",c=Tf(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;l(s?u:d)}},10);return zf(n.viewport,c),zf(n.content,c),o||i?y.jsx(Cw,{"data-state":i?"visible":"hidden",...a,ref:r}):null});Q9.displayName="@mantine/core/ScrollAreaScrollbarAuto";const DY=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ci(),[i,l]=S.useState(!1);return S.useEffect(()=>{const{scrollArea:s}=a;let c=0;if(s){const u=()=>{window.clearTimeout(c),l(!0)},d=()=>{c=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),n||i?y.jsx(Q9,{"data-state":i?"visible":"hidden",...o,ref:r}):null});DY.displayName="@mantine/core/ScrollAreaScrollbarHover";const pIe=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ci(),i=e.orientation==="horizontal",[l,s]=S.useState("hidden"),c=Tf(()=>s("idle"),100);return S.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,a.scrollHideDelay]),S.useEffect(()=>{const{viewport:u}=a,d=i?"scrollLeft":"scrollTop";if(u){let p=u[d];const f=()=>{const g=u[d];p!==g&&(s("scrolling"),c()),p=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[a.viewport,i,c]),n||l!=="hidden"?y.jsx(Cw,{"data-state":l==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:ip(e.onPointerEnter,()=>s("interacting")),onPointerLeave:ip(e.onPointerLeave,()=>s("idle"))}):null}),J9=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ci(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,s=e.orientation==="horizontal";return S.useEffect(()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)}),[s,i,l]),a.type==="hover"?y.jsx(DY,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx(pIe,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(Q9,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(Cw,{...o,ref:r}):null});J9.displayName="@mantine/core/ScrollAreaScrollbar";function hIe(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,s=n.top!==i.top;(l||s)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const PY=S.forwardRef((e,r)=>{const{style:n,...o}=e,a=ci(),i=TY(),{onThumbPositionChange:l}=i,s=Mr(r,d=>i.onThumbChange(d)),c=S.useRef(void 0),u=Tf(()=>{c.current&&(c.current(),c.current=void 0)},100);return S.useEffect(()=>{const{viewport:d}=a;if(d){const p=()=>{if(u(),!c.current){const f=hIe(d,l);c.current=f,l()}};return l(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[a.viewport,u,l]),y.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:ip(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),f=d.clientX-p.left,g=d.clientY-p.top;i.onThumbPointerDown({x:f,y:g})}),onPointerUp:ip(e.onPointerUp,i.onThumbPointerUp)})});PY.displayName="@mantine/core/ScrollAreaThumb";const e7=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=TY();return n||a.hasThumb?y.jsx(PY,{ref:r,...o}):null});e7.displayName="@mantine/core/ScrollAreaThumb";const $Y=S.forwardRef(({children:e,style:r,...n},o)=>{const a=ci(),i=Mr(o,a.onViewportChange);return y.jsx(Se,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:y.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});$Y.displayName="@mantine/core/ScrollAreaViewport";var t7={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const MY={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},fIe=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Ae(r),"--scrollarea-over-scroll-behavior":n}}),ss=lt((e,r)=>{const n=Le("ScrollArea",MY,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,scrollbarSize:c,vars:u,type:d,scrollHideDelay:p,viewportProps:f,viewportRef:g,onScrollPositionChange:b,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:R,...A}=n,[D,N]=S.useState(!1),[$,O]=S.useState(!1),[j,L]=S.useState(!1),Y=wt({name:"ScrollArea",props:n,classes:t7,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:R,vars:u,varsResolver:fIe}),M=S.useRef(null),q=lY([g,M]);return S.useEffect(()=>{if(!M.current||w!=="present")return;const z=M.current,H=new ResizeObserver(()=>{const{scrollHeight:U,clientHeight:K,scrollWidth:V,clientWidth:X}=z;O(U>K),L(V>X)});return H.observe(z),()=>H.disconnect()},[M,w]),y.jsxs(kY,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:p,ref:r,scrollbars:k,...Y("root"),...A,children:[y.jsx($Y,{...f,...Y("viewport",{style:f?.style}),ref:q,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!j?"true":void 0,"data-vertical-hidden":w==="present"&&!$?"true":void 0,onScroll:z=>{f?.onScroll?.(z),b?.({x:z.currentTarget.scrollLeft,y:z.currentTarget.scrollTop});const{scrollTop:H,scrollHeight:U,clientHeight:K}=z.currentTarget;H-(U-K)>=-.6&&C?.(),H===0&&_?.()},children:x}),(k==="xy"||k==="x")&&y.jsx(J9,{...Y("scrollbar"),orientation:"horizontal","data-hidden":d==="never"||w==="present"&&!j?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(e7,{...Y("thumb")})}),(k==="xy"||k==="y")&&y.jsx(J9,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!$?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(e7,{...Y("thumb")})}),y.jsx(lIe,{...Y("corner"),"data-hovered":D||void 0,"data-hidden":d==="never"||void 0})]})});ss.displayName="@mantine/core/ScrollArea";const na=lt((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:l,type:s,dir:c,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:p,unstyled:f,variant:g,viewportProps:b,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...R}=Le("ScrollAreaAutosize",MY,e),A=S.useRef(null),D=lY([d,A]),[N,$]=S.useState(!1),O=S.useRef(!1);return S.useEffect(()=>{if(!T)return;const j=A.current;if(!j)return;const L=()=>{const M=j.scrollHeight>j.clientHeight;M!==N&&(O.current?T?.(M):(O.current=!0,M&&T?.(!0)),$(M))};L();const Y=new ResizeObserver(L);return Y.observe(j),()=>Y.disconnect()},[T,N]),y.jsx(Se,{...R,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:y.jsx(Se,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:y.jsx(ss,{classNames:o,styles:a,scrollHideDelay:l,scrollbarSize:i,type:s,dir:c,offsetScrollbars:u,viewportRef:D,onScrollPositionChange:p,unstyled:f,variant:g,viewportProps:b,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});ss.classes=t7,na.displayName="@mantine/core/ScrollAreaAutosize",na.classes=t7,ss.Autosize=na;var OY={root:"m_87cf2631"};const mIe={__staticSelector:"UnstyledButton"},Ar=eo((e,r)=>{const n=Le("UnstyledButton",mIe,e),{className:o,component:a="button",__staticSelector:i,unstyled:l,classNames:s,styles:c,style:u,attributes:d,...p}=n,f=wt({name:i,props:n,classes:OY,className:o,style:u,classNames:s,styles:c,unstyled:l,attributes:d});return y.jsx(Se,{...f("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...p})});Ar.classes=OY,Ar.displayName="@mantine/core/UnstyledButton";var IY={root:"m_515a97f8"};const Tw=lt((e,r)=>{const n=Le("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,attributes:u,...d}=n,p=wt({name:"VisuallyHidden",classes:IY,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:u});return y.jsx(Se,{component:"span",ref:r,...p("root"),...d})});Tw.classes=IY,Tw.displayName="@mantine/core/VisuallyHidden";var zY={root:"m_1b7284a3"};const gIe=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:_n(r),"--paper-shadow":jU(n)}}),Lf=eo((e,r)=>{const n=Le("Paper",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,withBorder:c,vars:u,radius:d,shadow:p,variant:f,mod:g,attributes:b,...x}=n,w=wt({name:"Paper",props:n,classes:zY,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:u,varsResolver:gIe});return y.jsx(Se,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:f,...x})});Lf.classes=zY,Lf.displayName="@mantine/core/Paper";function LY(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function BY(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const yIe={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function bIe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:l,dir:s}){const[c,u="center"]=e.split("-"),d={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[yIe[c]]:o},p=-r/2;return c==="left"?{...d,...LY(u,l,n,a),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...LY(u,l,n,a),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...BY(u,i,n,a,s),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...BY(u,i,n,a,s),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Rw=S.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:l,arrowY:s,style:c,...u},d)=>{const{dir:p}=wu();return i?y.jsx("div",{...u,ref:d,style:{...c,...bIe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:p,arrowX:l,arrowY:s})}}):null});Rw.displayName="@mantine/core/FloatingArrow";function jY(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var FY={root:"m_9814e45f"};const vIe={zIndex:Kx("modal")},xIe=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:l})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&ns(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Ae(a)})`:void 0,"--overlay-radius":i===void 0?void 0:_n(i),"--overlay-z-index":l?.toString()}}),r7=eo((e,r)=>{const n=Le("Overlay",vIe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,fixed:u,center:d,children:p,radius:f,zIndex:g,gradient:b,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,R=wt({name:"Overlay",props:n,classes:FY,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:xIe});return y.jsx(Se,{ref:r,...R("root"),mod:[{center:d,fixed:u},C],...T,children:p})});r7.classes=FY,r7.displayName="@mantine/core/Overlay";function n7(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function wIe({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||n7(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=n7(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return n7(n)}const kIe={reuseTargetNode:!0},V0=lt((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=Le("Portal",kIe,e),[l,s]=S.useState(!1),c=S.useRef(null);return B0(()=>(s(!0),c.current=wIe({target:o,reuseTargetNode:a,...i}),c9(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!l||!c.current?null:Fi.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});V0.displayName="@mantine/core/Portal";const Bf=lt(({withinPortal:e=!0,children:r,...n},o)=>rw()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(V0,{ref:o,...n,children:r}));Bf.displayName="@mantine/core/OptionalPortal";const Y0=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Aw={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Y0("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Y0("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Y0("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Y0("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Y0("top"),common:{transformOrigin:"top right"}}},HY={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function _Ie({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in Aw?{transitionProperty:Aw[e].transitionProperty,...a,...Aw[e].common,...Aw[e][HY[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[HY[r]]}}function EIe({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:l,onExited:s,enterDelay:c,exitDelay:u}){const d=mo(),p=QU(),f=d.respectReducedMotion?p:!1,[g,b]=S.useState(f?0:e),[x,w]=S.useState(o?"entered":"exited"),k=S.useRef(-1),C=S.useRef(-1),_=S.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const R=D=>{T();const N=D?a:i,$=D?l:s,O=f?0:D?e:r;b(O),O===0?(typeof N=="function"&&N(),typeof $=="function"&&$(),w(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{IO.flushSync(()=>{w(D?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof N=="function"&&N(),w(D?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof $=="function"&&$(),w(D?"entered":"exited")},O)})})},A=D=>{if(T(),typeof(D?c:u)!="number"){R(D);return}C.current=window.setTimeout(()=>{R(D)},D?c:u)};return rp(()=>{A(o)},[o]),S.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function _u({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:l="ease",onExit:s,onEntered:c,onEnter:u,onExited:d,enterDelay:p,exitDelay:f}){const g=rw(),{transitionDuration:b,transitionStatus:x,transitionTimingFunction:w}=EIe({mounted:a,exitDuration:o,duration:n,timingFunction:l,onExit:s,onEntered:c,onEnter:u,onExited:d,enterDelay:p,exitDelay:f});return b===0||g==="test"?a?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:y.jsx(y.Fragment,{children:i(_Ie({transition:r,duration:b,state:x,timingFunction:w}))})}_u.displayName="@mantine/core/Transition";const[SIe,qY]=ii("Popover component was not found in the tree");function Nw({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=GU(r),i=Mr(a,o);return el(e)?S.cloneElement(e,{[n]:i}):e}function UY(e){return y.jsx(Tw,{tabIndex:-1,"data-autofocus":!0,...e})}Nw.displayName="@mantine/core/FocusTrap",UY.displayName="@mantine/core/FocusTrapInitialFocus",Nw.InitialFocus=UY;var VY={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Ks=lt((e,r)=>{const n=Le("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:l,onKeyDownCapture:s,variant:c,classNames:u,styles:d,...p}=n,f=qY(),g=$Pe({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Mr(r,f.floating);return f.disabled?null:y.jsx(Bf,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(_u,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:w=>y.jsx(Nw,{active:f.trapFocus&&f.opened,innerRef:x,children:y.jsxs(Se,{...b,...p,variant:c,onKeyDownCapture:_Pe(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:g,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:o,props:n,classNames:u,styles:d,style:[{...w,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:Ae(f.width),...f.referenceHidden?{display:"none"}:null},f.resolvedStyles.dropdown,d?.dropdown,a]}),children:[l,y.jsx(Rw,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});Ks.classes=VY,Ks.displayName="@mantine/core/PopoverDropdown";const CIe={refProp:"ref",popupType:"dialog"},Eu=lt((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=Le("PopoverTarget",CIe,e);if(!el(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=i,s=qY(),c=Mr(s.reference,Qx(n),r),u=s.withRoles?{"aria-haspopup":a,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return S.cloneElement(n,{...l,...u,...s.targetProps,className:tl(s.targetProps.className,l.className,n.props.className),[o]:c,...s.controlled?null:{onClick:()=>{s.onToggle(),n.props.onClick?.()}}})});Eu.displayName="@mantine/core/PopoverTarget";function TIe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function RIe(e,r,n){const o=TIe(e.middlewares),a=[oY(e.offset),UOe()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(U9(typeof o.shift=="boolean"?{limiter:aY(),padding:5}:{limiter:aY(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?kw():kw(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?U0():U0(o.inline)),a.push(iY({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(qOe({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:l,availableHeight:s,...c}){const u=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:l,availableHeight:s,...c}):Object.assign(u,{maxWidth:`${l}px`,maxHeight:`${s}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),a}function AIe(e){const r=rw(),[n,o]=Ys({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=S.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},l=()=>{e.disabled||o(!n)},s=Ew({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:RIe(e,()=>s,r),whileElementsMounted:e.keepMounted?void 0:vw});return S.useEffect(()=>{if(!(!s.refs.reference.current||!s.refs.floating.current)&&n)return vw(s.refs.reference.current,s.refs.floating.current,s.update)},[n,s.update]),rp(()=>{e.onPositionChange?.(s.placement),e.positionRef.current=s.placement},[s.placement,e.preventPositionChangeWhenVisible]),rp(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),rp(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:s,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:l}}const NIe={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Kx("popover"),__staticSelector:"Popover",width:"max-content"},DIe=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:_n(r),"--popover-shadow":jU(n)}});function br(e){const r=Le("Popover",NIe,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:l,opened:s,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:p,middlewares:f,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:R,withinPortal:A,portalProps:D,closeOnEscape:N,clickOutsideEvents:$,trapFocus:O,onClose:j,onDismiss:L,onOpen:Y,onChange:M,zIndex:q,radius:z,shadow:H,id:U,defaultOpened:K,__staticSelector:V,withRoles:X,disabled:Z,returnFocus:B,variant:W,keepMounted:Q,vars:J,floatingStrategy:ne,withOverlay:te,overlayProps:ee,hideDetached:pe,attributes:Te,preventPositionChangeWhenVisible:ce,...de}=r,xe=wt({name:V,props:r,classes:VY,classNames:_,styles:T,unstyled:C,attributes:Te,rootSelector:"dropdown",vars:J,varsResolver:DIe}),{resolvedStyles:De}=_9({classNames:_,styles:T,props:r}),[Ge,et]=S.useState(s??K??!1),ft=S.useRef(o),Ze=S.useRef(null),[Et,Xe]=S.useState(null),[We,st]=S.useState(null),{dir:ct}=wu(),zn=rw(),we=Aa(U),_e=AIe({middlewares:f,width:p,position:jY(ct,o),offset:typeof a=="number"?a+(g?b/2:0):a,arrowRef:Ze,arrowOffset:x,onPositionChange:i,positionDependencies:l,opened:s,defaultOpened:K,onChange:M,onOpen:Y,onClose:j,onDismiss:L,strategy:ne,dropdownVisible:Ge,setDropdownVisible:et,positionRef:ft,disabled:Z,preventPositionChangeWhenVisible:ce,keepMounted:Q});HU(()=>{R&&(_e.onClose(),L?.())},$,[Et,We]);const at=S.useCallback(Pt=>{Xe(Pt),_e.floating.refs.setReference(Pt)},[_e.floating.refs.setReference]),vt=S.useCallback(Pt=>{st(Pt),_e.floating.refs.setFloating(Pt)},[_e.floating.refs.setFloating]),Ct=S.useCallback(()=>{c?.onExited?.(),u?.(),et(!1),ce||(ft.current=o)},[c?.onExited,u,ce,o]),Zr=S.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return y.jsxs(SIe,{value:{returnFocus:B,disabled:Z,controlled:_e.controlled,reference:at,floating:vt,x:_e.floating.x,y:_e.floating.y,arrowX:_e.floating?.middlewareData?.arrow?.x,arrowY:_e.floating?.middlewareData?.arrow?.y,opened:_e.opened,arrowRef:Ze,transitionProps:{...c,onExited:Ct,onEntered:Zr},width:p,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:_e.floating.placement,trapFocus:O,withinPortal:A,portalProps:D,zIndex:q,radius:z,shadow:H,closeOnEscape:N,onDismiss:L,onClose:_e.onClose,onToggle:_e.onToggle,getTargetId:()=>`${we}-target`,getDropdownId:()=>`${we}-dropdown`,withRoles:X,targetProps:de,__staticSelector:V,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:Q,getStyles:xe,resolvedStyles:De,floatingStrategy:ne,referenceHidden:pe&&zn!=="test"?_e.floating.middlewareData.hide?.referenceHidden:!1},children:[n,te&&y.jsx(_u,{transition:"fade",mounted:_e.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>y.jsx(Bf,{withinPortal:A,children:y.jsx(r7,{...ee,...xe("overlay",{className:ee?.className,style:[Pt,ee?.style]})})})})]})}br.Target=Eu,br.Dropdown=Ks,br.displayName="@mantine/core/Popover",br.extend=e=>e;var il={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const YY=S.forwardRef(({className:e,...r},n)=>y.jsxs(Se,{component:"span",className:tl(il.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:il.bar}),y.jsx("span",{className:il.bar}),y.jsx("span",{className:il.bar})]}));YY.displayName="@mantine/core/Bars";const WY=S.forwardRef(({className:e,...r},n)=>y.jsxs(Se,{component:"span",className:tl(il.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:il.dot}),y.jsx("span",{className:il.dot}),y.jsx("span",{className:il.dot})]}));WY.displayName="@mantine/core/Dots";const GY=S.forwardRef(({className:e,...r},n)=>y.jsx(Se,{component:"span",className:tl(il.ovalLoader,e),...r,ref:n}));GY.displayName="@mantine/core/Oval";const XY={bars:YY,oval:GY,dots:WY},PIe={loaders:XY,type:"oval"},$Ie=(e,{size:r,color:n})=>({root:{"--loader-size":dr(r,"loader-size"),"--loader-color":n?ta(n,e):void 0}}),jf=lt((e,r)=>{const n=Le("Loader",PIe,e),{size:o,color:a,type:i,vars:l,className:s,style:c,classNames:u,styles:d,unstyled:p,loaders:f,variant:g,children:b,attributes:x,...w}=n,k=wt({name:"Loader",props:n,classes:il,className:s,style:c,classNames:u,styles:d,unstyled:p,attributes:x,vars:l,varsResolver:$Ie});return b?y.jsx(Se,{...k("root"),ref:r,...w,children:b}):y.jsx(Se,{...k("root"),ref:r,component:f[i],variant:g,size:o,...w})});jf.defaultLoaders=XY,jf.classes=il,jf.displayName="@mantine/core/Loader";var Ff={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const KY={orientation:"horizontal"},MIe=(e,{borderWidth:r})=>({group:{"--ai-border-width":Ae(r)}}),Dw=lt((e,r)=>{const n=Le("ActionIconGroup",KY,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=Le("ActionIconGroup",KY,e),x=wt({name:"ActionIconGroup",props:n,classes:Ff,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:MIe,rootSelector:"group"});return y.jsx(Se,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});Dw.classes=Ff,Dw.displayName="@mantine/core/ActionIconGroup";const OIe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":dr(l,"section-height"),"--section-padding-x":dr(l,"section-padding-x"),"--section-fz":Po(l),"--section-radius":r===void 0?void 0:_n(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},o7=lt((e,r)=>{const n=Le("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:u,gradient:d,radius:p,autoContrast:f,attributes:g,...b}=n,x=wt({name:"ActionIconGroupSection",props:n,classes:Ff,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:OIe,rootSelector:"groupSection"});return y.jsx(Se,{...x("groupSection"),ref:r,variant:u,...b})});o7.classes=Ff,o7.displayName="@mantine/core/ActionIconGroupSection";const IIe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:l});return{root:{"--ai-size":dr(r,"ai-size"),"--ai-radius":n===void 0?void 0:_n(n),"--ai-bg":i||o?s.background:void 0,"--ai-hover":i||o?s.hover:void 0,"--ai-hover-color":i||o?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":i||o?s.border:void 0}}},ir=eo((e,r)=>{const n=Le("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:l,styles:s,style:c,loading:u,loaderProps:d,size:p,color:f,radius:g,__staticSelector:b,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:R,attributes:A,...D}=n,N=wt({name:["ActionIcon",b],props:n,className:o,style:c,classes:Ff,classNames:l,styles:s,unstyled:a,attributes:A,vars:w,varsResolver:IIe});return y.jsxs(Ar,{...N("root",{active:!C&&!u&&!_}),...D,unstyled:a,variant:i,size:p,disabled:C||u,ref:r,mod:[{loading:u,disabled:C||_},R],children:[typeof u=="boolean"&&y.jsx(_u,{mounted:u,transition:"slide-down",duration:150,children:$=>y.jsx(Se,{component:"span",...N("loader",{style:$}),"aria-hidden":!0,children:y.jsx(jf,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),y.jsx(Se,{component:"span",mod:{loading:u},...N("icon"),children:k})]})});ir.classes=Ff,ir.displayName="@mantine/core/ActionIcon",ir.Group=Dw,ir.GroupSection=o7;const ZY=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));ZY.displayName="@mantine/core/CloseIcon";var QY={root:"m_86a44da5","root--subtle":"m_220c80f2"};const zIe={variant:"subtle"},LIe=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":dr(r,"cb-size"),"--cb-radius":n===void 0?void 0:_n(n),"--cb-icon-size":Ae(o)}}),lp=eo((e,r)=>{const n=Le("CloseButton",zIe,e),{iconSize:o,children:a,vars:i,radius:l,className:s,classNames:c,style:u,styles:d,unstyled:p,"data-disabled":f,disabled:g,variant:b,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=wt({name:C||"CloseButton",props:n,className:s,style:u,classes:QY,classNames:c,styles:d,unstyled:p,attributes:k,vars:i,varsResolver:LIe});return y.jsxs(Ar,{ref:r,..._,unstyled:p,variant:b,disabled:g,mod:[{disabled:g||f},w],...T("root",{variant:b,active:!g&&!f}),children:[x||y.jsx(ZY,{}),a]})});lp.classes=QY,lp.displayName="@mantine/core/CloseButton";function BIe(e){return S.Children.toArray(e).filter(Boolean)}var JY={root:"m_4081bf90"};const jIe={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},FIe=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:l},{childWidth:s})=>({root:{"--group-child-width":r&&n?s:void 0,"--group-gap":Vs(o),"--group-align":a,"--group-justify":i,"--group-wrap":l}}),Wr=lt((e,r)=>{const n=Le("Group",jIe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,children:c,gap:u,align:d,justify:p,wrap:f,grow:g,preventGrowOverflow:b,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,R=BIe(c),A=R.length,D=Vs(u??"md"),N={childWidth:`calc(${100/A}% - (${D} - ${D} / ${A}))`},$=wt({name:"Group",props:n,stylesCtx:N,className:a,style:i,classes:JY,classNames:o,styles:l,unstyled:s,attributes:_,vars:x,varsResolver:FIe});return y.jsx(Se,{...$("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:R})});Wr.classes=JY,Wr.displayName="@mantine/core/Group";const[HIe,qIe]=I0({size:"sm"}),eW=lt((e,r)=>{const n=Le("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:l,styles:s,...c}=n,u=qIe(),{resolvedClassNames:d,resolvedStyles:p}=_9({classNames:l,styles:s,props:n});return y.jsx(lp,{variant:a||"transparent",ref:r,size:o||u?.size||"sm",classNames:d,styles:p,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});eW.displayName="@mantine/core/InputClearButton";const UIe={xs:7,sm:8,md:10,lg:12,xl:15};function VIe({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:UIe[a]},children:[i,n||o]}):n===null?null:n||i||o}const[YIe,Pw]=I0({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ui={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const WIe=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Po(r)} - ${Ae(2)})`}}),$w=lt((e,r)=>{const n=Le("InputDescription",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,__staticSelector:d,__inheritStyles:p=!0,attributes:f,variant:g,...b}=Le("InputDescription",null,n),x=Pw(),w=wt({name:["InputWrapper",d],props:n,classes:ui,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,rootSelector:"description",vars:c,varsResolver:WIe}),k=p&&x?.getStyles||w;return y.jsx(Se,{component:"p",ref:r,variant:g,size:u,...k("description",x?.getStyles?{className:a,style:i}:void 0),...b})});$w.classes=ui,$w.displayName="@mantine/core/InputDescription";const GIe=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Po(r)} - ${Ae(2)})`}}),Mw=lt((e,r)=>{const n=Le("InputError",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,attributes:d,__staticSelector:p,__inheritStyles:f=!0,variant:g,...b}=n,x=wt({name:["InputWrapper",p],props:n,classes:ui,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,rootSelector:"error",vars:c,varsResolver:GIe}),w=Pw(),k=f&&w?.getStyles||x;return y.jsx(Se,{component:"p",ref:r,variant:g,size:u,...k("error",w?.getStyles?{className:a,style:i}:void 0),...b})});Mw.classes=ui,Mw.displayName="@mantine/core/InputError";const tW={labelElement:"label"},XIe=(e,{size:r})=>({label:{"--input-label-size":Po(r),"--input-asterisk-color":void 0}}),Ow=lt((e,r)=>{const n=Le("InputLabel",tW,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,labelElement:u,size:d,required:p,htmlFor:f,onMouseDown:g,children:b,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=Le("InputLabel",tW,n),T=wt({name:["InputWrapper",x],props:n,classes:ui,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,rootSelector:"label",vars:c,varsResolver:XIe}),R=Pw(),A=R?.getStyles||T;return y.jsxs(Se,{...A("label",R?.getStyles?{className:a,style:i}:void 0),component:u,variant:w,size:d,ref:r,htmlFor:u==="label"?f:void 0,mod:[{required:p},k],onMouseDown:D=>{g?.(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},..._,children:[b,p&&y.jsx("span",{...A("required"),"aria-hidden":!0,children:" *"})]})});Ow.classes=ui,Ow.displayName="@mantine/core/InputLabel";const a7=lt((e,r)=>{const n=Le("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,__staticSelector:u,variant:d,error:p,mod:f,attributes:g,...b}=n,x=wt({name:["InputPlaceholder",u],props:n,classes:ui,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,rootSelector:"placeholder"});return y.jsx(Se,{...x("placeholder"),mod:[{error:!!p},f],component:"span",variant:d,ref:r,...b})});a7.classes=ui,a7.displayName="@mantine/core/InputPlaceholder";function KIe(e,{hasDescription:r,hasError:n}){const o=e.findIndex(s=>s==="input"),a=e.slice(0,o),i=e.slice(o+1),l=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:l}}const ZIe={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},QIe=(e,{size:r})=>({label:{"--input-label-size":Po(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Po(r)} - ${Ae(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Po(r)} - ${Ae(2)})`}}),i7=lt((e,r)=>{const n=Le("InputWrapper",ZIe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,variant:d,__staticSelector:p,inputContainer:f,inputWrapperOrder:g,label:b,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:R,withAsterisk:A,id:D,required:N,__stylesApiProps:$,mod:O,attributes:j,...L}=n,Y=wt({name:["InputWrapper",p],props:$||n,classes:ui,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:QIe}),M={size:u,variant:d,__staticSelector:p},q=Aa(D),z=typeof A=="boolean"?A:N,H=_?.id||`${q}-error`,U=C?.id||`${q}-description`,K=q,V=!!x&&typeof x!="boolean",X=!!w,Z=`${V?H:""} ${X?U:""}`,B=Z.trim().length>0?Z.trim():void 0,W=k?.id||`${q}-label`,Q=b&&y.jsx(Ow,{labelElement:T,id:W,htmlFor:K,required:z,...M,...k,children:b},"label"),J=X&&y.jsx($w,{...C,...M,size:C?.size||M.size,id:C?.id||U,children:w},"description"),ne=y.jsx(S.Fragment,{children:f(R)},"input"),te=V&&S.createElement(Mw,{..._,...M,size:_?.size||M.size,key:"error",id:_?.id||H},x),ee=g.map(pe=>{switch(pe){case"label":return Q;case"input":return ne;case"description":return J;case"error":return te;default:return null}});return y.jsx(YIe,{value:{getStyles:Y,describedBy:B,inputId:K,labelId:W,...KIe(g,{hasDescription:X,hasError:V})},children:y.jsx(Se,{ref:r,variant:d,size:u,mod:[{error:!!x},O],...Y("root"),...L,children:ee})})});i7.classes=ui,i7.displayName="@mantine/core/InputWrapper";const JIe={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},eze=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":dr(r.size,"input-height"),"--input-fz":Po(r.size),"--input-radius":r.radius===void 0?void 0:_n(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?Ae(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?Ae(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?dr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),Pa=eo((e,r)=>{const n=Le("Input",JIe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,required:c,__staticSelector:u,__stylesApiProps:d,size:p,wrapperProps:f,error:g,disabled:b,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:R,leftSectionPointerEvents:A,variant:D,vars:N,pointer:$,multiline:O,radius:j,id:L,withAria:Y,withErrorStyles:M,mod:q,inputSize:z,attributes:H,__clearSection:U,__clearable:K,__defaultRightSection:V,...X}=n,{styleProps:Z,rest:B}=yV(X),W=Pw(),Q={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},J=wt({name:["Input",u],props:d||n,classes:ui,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:H,stylesCtx:Q,rootSelector:"wrapper",vars:N,varsResolver:eze}),ne=Y?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||L}:{},te=VIe({__clearable:K,__clearSection:U,rightSection:C,__defaultRightSection:V,size:p});return y.jsx(HIe,{value:{size:p||"sm"},children:y.jsxs(Se,{...J("wrapper"),...Z,...f,mod:[{error:!!g&&M,pointer:$,disabled:b,multiline:O,"data-with-right-section":!!te,"data-with-left-section":!!x},q],variant:D,size:p,children:[x&&y.jsx("div",{...w,"data-position":"left",...J("section",{className:w?.className,style:w?.style}),children:x}),y.jsx(Se,{component:"input",...B,...ne,ref:r,required:c,mod:{disabled:b,error:!!g&&M},variant:D,__size:z,...J("input")}),te&&y.jsx("div",{..._,"data-position":"right",...J("section",{className:_?.className,style:_?.style}),children:te})]})})});Pa.classes=ui,Pa.Wrapper=i7,Pa.Label=Ow,Pa.Error=Mw,Pa.Description=$w,Pa.Placeholder=a7,Pa.ClearButton=eW,Pa.displayName="@mantine/core/Input";const tze={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var rW={root:"m_8bffd616"};const Zs=eo((e,r)=>{const n=Le("Flex",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,gap:u,rowGap:d,columnGap:p,align:f,justify:g,wrap:b,direction:x,attributes:w,...k}=n,C=wt({name:"Flex",classes:rW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c}),_=mo(),T=iw(),R=xV({styleProps:{gap:u,rowGap:d,columnGap:p,align:f,justify:g,wrap:b,direction:x},theme:_,data:tze});return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(aw,{selector:`.${T}`,styles:R.styles,media:R.media}),y.jsx(Se,{ref:r,...C("root",{className:T,style:Sf(R.inlineStyles)}),...k})]})});Zs.classes=rW,Zs.displayName="@mantine/core/Flex";function rze(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function nze({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=S.useRef(-1),[i,l]=S.useState(!1),[s,c]=S.useState(typeof o=="boolean"?o:!1),u=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),b=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=ku(x.borderTopWidth)+ku(w.borderTopWidth),C=ku(x.borderLeftWidth)+ku(w.borderLeftWidth),_={top:g.top-b.top-k,left:g.left-b.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),u(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},p=S.useRef(null),f=S.useRef(null);return S.useEffect(()=>{if(u(),e)return p.current=new ResizeObserver(d),p.current.observe(e),r&&(f.current=new ResizeObserver(d),f.current.observe(r)),()=>{p.current?.disconnect(),f.current?.disconnect()}},[r,e]),S.useEffect(()=>{if(r){const g=b=>{rze(b.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),tV(()=>{s$e()!=="test"&&l(!0)},20,{autoInvoke:!0}),rV(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:s}}var nW={root:"m_96b553a6"};const oze=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),Iw=lt((e,r)=>{const n=Le("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,target:u,parent:d,transitionDuration:p,mod:f,displayAfterTransitionEnd:g,attributes:b,...x}=n,w=wt({name:"FloatingIndicator",classes:nW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:oze}),k=S.useRef(null),{initialized:C,hidden:_}=nze({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=Mr(r,k);return!u||!d?null:y.jsx(Se,{ref:T,mod:[{initialized:C,hidden:_},f],...w("root"),...x})});Iw.displayName="@mantine/core/FloatingIndicator",Iw.classes=nW;function oW({open:e,close:r,openDelay:n,closeDelay:o}){const a=S.useRef(-1),i=S.useRef(-1),l=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},s=()=>{l(),n===0||n===void 0?e():a.current=window.setTimeout(e,n)},c=()=>{l(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return S.useEffect(()=>l,[]),{openDropdown:s,closeDropdown:c}}function l7({style:e,size:r=16,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:Ae(r),height:Ae(r),display:"block"},...n,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}l7.displayName="@mantine/core/AccordionChevron";var aW={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const aze=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:_n(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},zw=lt((e,r)=>{const n=Le("Alert",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,radius:u,color:d,title:p,children:f,id:g,icon:b,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...R}=n,A=wt({name:"Alert",classes:aW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:aze}),D=Aa(g),N=p&&`${D}-title`||void 0,$=`${D}-body`;return y.jsx(Se,{id:D,...A("root",{variant:C}),variant:C,ref:r,...R,role:"alert","aria-describedby":f?$:void 0,"aria-labelledby":p?N:void 0,children:y.jsxs("div",{...A("wrapper"),children:[b&&y.jsx("div",{...A("icon"),children:b}),y.jsxs("div",{...A("body"),children:[p&&y.jsx("div",{...A("title"),"data-with-close-button":x||void 0,children:y.jsx("span",{id:N,...A("label"),children:p})}),f&&y.jsx("div",{id:$,...A("message"),"data-variant":C,children:f})]}),x&&y.jsx(lp,{...A("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:s})]})})});zw.classes=aW,zw.displayName="@mantine/core/Alert";var iW={root:"m_b6d8b162"};function ize(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const lze={inherit:!1},sze=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Po(a),"--text-lh":EPe(a),"--text-gradient":r==="gradient"?f9(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?ta(i,e):void 0}}),pt=eo((e,r)=>{const n=Le("Text",lze,e),{lineClamp:o,truncate:a,inline:i,inherit:l,gradient:s,span:c,__staticSelector:u,vars:d,className:p,style:f,classNames:g,styles:b,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,R=wt({name:["Text",u],props:n,classes:iW,className:p,style:f,classNames:g,styles:b,unstyled:x,attributes:_,vars:d,varsResolver:sze});return y.jsx(Se,{...R("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":ize(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":l},k],size:C,...T})});pt.classes=iW,pt.displayName="@mantine/core/Text";var lW={root:"m_849cf0da"};const cze={underline:"hover"},s7=eo((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...l}=Le("Anchor",cze,e);return y.jsx(pt,{component:"a",ref:r,className:tl({[lW.root]:!a},o),...l,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});s7.classes=lW,s7.displayName="@mantine/core/Anchor";var di={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const uze={error:null},dze=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":dr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?ta(n,e):void 0}}),c7=lt((e,r)=>{const n=Le("ComboboxChevron",uze,e),{size:o,error:a,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,mod:p,...f}=n,g=wt({name:"ComboboxChevron",classes:di,props:n,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,varsResolver:dze,rootSelector:"chevron"});return y.jsx(Se,{component:"svg",...f,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},p],ref:r,children:y.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});c7.classes=di,c7.displayName="@mantine/core/ComboboxChevron";const[pze,pi]=ii("Combobox component was not found in tree"),sW=S.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>y.jsx(Pa.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:l=>{l.preventDefault(),r?.(l)},onClick:l=>{o(),n?.(l)}}));sW.displayName="@mantine/core/ComboboxClearButton";const Lw=lt((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:l,...s}=Le("ComboboxDropdown",null,e),c=pi();return y.jsx(br.Dropdown,{...s,ref:r,role:"presentation","data-hidden":l||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});Lw.classes=di,Lw.displayName="@mantine/core/ComboboxDropdown";const hze={refProp:"ref"},cW=lt((e,r)=>{const{children:n,refProp:o}=Le("ComboboxDropdownTarget",hze,e);if(pi(),!el(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(br.Target,{ref:r,refProp:o,children:n})});cW.displayName="@mantine/core/ComboboxDropdownTarget";const W0=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Le("ComboboxEmpty",null,e),c=pi();return y.jsx(Se,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...s})});W0.classes=di,W0.displayName="@mantine/core/ComboboxEmpty";function u7({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const l=pi(),[s,c]=S.useState(null),u=d=>{if(e?.(d),!l.readOnly&&r){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),l.store.dropdownOpened?c(l.store.selectNextOption()):(l.store.openDropdown("keyboard"),c(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),l.store.dropdownOpened?c(l.store.selectPreviousOption()):(l.store.openDropdown("keyboard"),c(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const p=l.store.getSelectedOptionIndex();l.store.dropdownOpened&&p!==-1?(d.preventDefault(),l.store.clickSelectedOption()):a==="button"&&(d.preventDefault(),l.store.openDropdown("keyboard"))}d.key==="Escape"&&l.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&a==="button"&&(d.preventDefault(),l.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(l.store.listId&&l.store.dropdownOpened):void 0,"aria-controls":l.store.dropdownOpened&&l.store.listId?l.store.listId:void 0,"aria-activedescendant":l.store.dropdownOpened&&s||void 0,autoComplete:i,"data-expanded":l.store.dropdownOpened||void 0,"data-mantine-stop-propagation":l.store.dropdownOpened||void 0}:{},onKeyDown:u}}const fze={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},uW=lt((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=Le("ComboboxEventsTarget",fze,e);if(!el(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=pi(),p=u7({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c});return S.cloneElement(n,{...p,...u,[o]:Mr(r,d.store.targetRef,Qx(n))})});uW.displayName="@mantine/core/ComboboxEventsTarget";const d7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Le("ComboboxFooter",null,e),c=pi();return y.jsx(Se,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});d7.classes=di,d7.displayName="@mantine/core/ComboboxFooter";const p7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,children:s,label:c,id:u,...d}=Le("ComboboxGroup",null,e),p=pi(),f=Aa(u);return y.jsxs(Se,{ref:r,role:"group","aria-labelledby":c?f:void 0,...p.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...d,children:[c&&y.jsx("div",{id:f,...p.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),s]})});p7.classes=di,p7.displayName="@mantine/core/ComboboxGroup";const h7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Le("ComboboxHeader",null,e),c=pi();return y.jsx(Se,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});h7.classes=di,h7.displayName="@mantine/core/ComboboxHeader";function dW({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}dW.displayName="@mantine/core/ComboboxHiddenInput";const G0=lt((e,r)=>{const n=Le("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,onClick:c,id:u,active:d,onMouseDown:p,onMouseOver:f,disabled:g,selected:b,mod:x,...w}=n,k=pi(),C=S.useId(),_=u||C;return y.jsx(Se,{...k.getStyles("option",{className:a,classNames:o,styles:l,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":g,"combobox-selected":b},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),p?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),f?.(T)}})});G0.classes=di,G0.displayName="@mantine/core/ComboboxOption";const Bw=lt((e,r)=>{const n=Le("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:l,id:s,onMouseDown:c,labelledBy:u,...d}=n,p=pi(),f=Aa(s);return S.useEffect(()=>{p.store.setListId(f)},[f]),y.jsx(Se,{ref:r,...p.getStyles("options",{className:a,style:i,classNames:o,styles:l}),...d,id:f,role:"listbox","aria-labelledby":u,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});Bw.classes=di,Bw.displayName="@mantine/core/ComboboxOptions";const mze={withAriaAttributes:!0,withKeyboardNavigation:!0},f7=lt((e,r)=>{const n=Le("ComboboxSearch",mze,e),{classNames:o,styles:a,unstyled:i,vars:l,withAriaAttributes:s,onKeyDown:c,withKeyboardNavigation:u,size:d,...p}=n,f=pi(),g=f.getStyles("search"),b=u7({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(Pa,{ref:Mr(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||f.size,...b,...p,__staticSelector:"Combobox"})});f7.classes=di,f7.displayName="@mantine/core/ComboboxSearch";const gze={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},m7=lt((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=Le("ComboboxTarget",gze,e);if(!el(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=pi(),p=u7({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=S.cloneElement(n,{...p,...u});return y.jsx(br.Target,{ref:Mr(r,d.store.targetRef),children:f})});m7.displayName="@mantine/core/ComboboxTarget";function yze(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function bze(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function vze(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function pW({defaultOpened:e,opened:r,onOpenedChange:n,onDropdownClose:o,onDropdownOpen:a,loop:i=!0,scrollBehavior:l="instant"}={}){const[s,c]=Ys({value:r,defaultValue:e,finalValue:!1,onChange:n}),u=S.useRef(null),d=S.useRef(-1),p=S.useRef(null),f=S.useRef(null),g=S.useRef(-1),b=S.useRef(-1),x=S.useRef(-1),w=S.useCallback((z="unknown")=>{s||(c(!0),a?.(z))},[c,a,s]),k=S.useCallback((z="unknown")=>{s&&(c(!1),o?.(z))},[c,o,s]),C=S.useCallback((z="unknown")=>{s?k(z):w(z)},[k,w,s]),_=S.useCallback(()=>{const z=document.querySelector(`#${u.current} [data-combobox-selected]`);z?.removeAttribute("data-combobox-selected"),z?.removeAttribute("aria-selected")},[]),T=S.useCallback(z=>{const H=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!H)return null;const U=z>=H.length?0:z<0?H.length-1:z;return d.current=U,H?.[U]&&!H[U].hasAttribute("data-combobox-disabled")?(_(),H[U].setAttribute("data-combobox-selected","true"),H[U].setAttribute("aria-selected","true"),H[U].scrollIntoView({block:"nearest",behavior:l}),H[U].id):null},[l,_]),R=S.useCallback(()=>{const z=document.querySelector(`#${u.current} [data-combobox-active]`);if(z){const H=document.querySelectorAll(`#${u.current} [data-combobox-option]`),U=Array.from(H).findIndex(K=>K===z);return T(U)}return T(0)},[T]),A=S.useCallback(()=>T(bze(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),D=S.useCallback(()=>T(yze(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),N=S.useCallback(()=>T(vze(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),$=S.useCallback((z="selected",H)=>{x.current=window.setTimeout(()=>{const U=document.querySelectorAll(`#${u.current} [data-combobox-option]`),K=Array.from(U).findIndex(V=>V.hasAttribute(`data-combobox-${z}`));d.current=K,H?.scrollIntoView&&U[K]?.scrollIntoView({block:"nearest",behavior:l})},0)},[]),O=S.useCallback(()=>{d.current=-1,_()},[_]),j=S.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),L=S.useCallback(z=>{u.current=z},[]),Y=S.useCallback(()=>{g.current=window.setTimeout(()=>p.current?.focus(),0)},[]),M=S.useCallback(()=>{b.current=window.setTimeout(()=>f.current?.focus(),0)},[]),q=S.useCallback(()=>d.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(x.current)},[]),{dropdownOpened:s,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:d.current,getSelectedOptionIndex:q,selectOption:T,selectFirstOption:N,selectActiveOption:R,selectNextOption:A,selectPreviousOption:D,resetSelectedOption:O,updateSelectedOptionIndex:$,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:p,focusSearchInput:Y,targetRef:f,focusTarget:M}}const xze={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},wze=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Po(r),"--combobox-option-padding":dr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Ae(n),"--combobox-option-fz":Po(r),"--combobox-option-padding":dr(r,"combobox-option-padding")}});function to(e){const r=Le("Combobox",xze,e),{classNames:n,styles:o,unstyled:a,children:i,store:l,vars:s,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:p,resetSelectionOnOptionHover:f,__staticSelector:g,readOnly:b,attributes:x,...w}=r,k=pW(),C=l||k,_=wt({name:g||"Combobox",classes:di,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:s,varsResolver:wze}),T=()=>{u?.(),C.closeDropdown()};return y.jsx(pze,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:f,readOnly:b},children:y.jsx(br,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:R=>!R&&T(),withRoles:!1,unstyled:a,children:i})})}const kze=e=>e;to.extend=kze,to.classes=di,to.displayName="@mantine/core/Combobox",to.Target=m7,to.Dropdown=Lw,to.Options=Bw,to.Option=G0,to.Search=f7,to.Empty=W0,to.Chevron=c7,to.Footer=d7,to.Header=h7,to.EventsTarget=uW,to.DropdownTarget=cW,to.Group=p7,to.ClearButton=sW,to.HiddenInput=dW;function hW({size:e,style:r,...n}){const o=e!==void 0?{width:Ae(e),height:Ae(e),...r}:r;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var fW={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const _ze=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--badge-height":dr(i,"badge-height"),"--badge-padding-x":dr(i,"badge-padding-x"),"--badge-fz":dr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:_n(r),"--badge-bg":n||a?s.background:void 0,"--badge-color":n||a?s.color:void 0,"--badge-bd":n||a?s.border:void 0,"--badge-dot-color":a==="dot"?ta(n,e):void 0}}},Qs=eo((e,r)=>{const n=Le("Badge",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,radius:u,color:d,gradient:p,leftSection:f,rightSection:g,children:b,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...R}=n,A=wt({name:"Badge",props:n,classes:fW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:_ze});return y.jsxs(Se,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!f},_],...A("root",{variant:x}),ref:r,...R,children:[f&&y.jsx("span",{...A("section"),"data-position":"left",children:f}),y.jsx("span",{...A("label"),children:b}),g&&y.jsx("span",{...A("section"),"data-position":"right",children:g})]})});Qs.classes=fW,Qs.displayName="@mantine/core/Badge";var mW={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const Eze={separator:"/"},Sze=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":Vs(r)}}),jw=lt((e,r)=>{const n=Le("Breadcrumbs",Eze,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,separator:d,separatorMargin:p,attributes:f,...g}=n,b=wt({name:"Breadcrumbs",classes:mW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,vars:c,varsResolver:Sze}),x=S.Children.toArray(u).reduce((w,k,C,_)=>{const T=el(k)?S.cloneElement(k,{...b("breadcrumb",{className:k.props?.className}),key:C}):S.createElement("div",{...b("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(S.createElement(Se,{...b("separator"),key:`separator-${C}`},d)),w},[]);return y.jsx(Se,{ref:r,...b("root"),...g,children:x})});jw.classes=mW,jw.displayName="@mantine/core/Breadcrumbs";var Hf={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const gW={orientation:"horizontal"},Cze=(e,{borderWidth:r})=>({group:{"--button-border-width":Ae(r)}}),g7=lt((e,r)=>{const n=Le("ButtonGroup",gW,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=Le("ButtonGroup",gW,e),x=wt({name:"ButtonGroup",props:n,classes:Hf,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:Cze,rootSelector:"group"});return y.jsx(Se,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});g7.classes=Hf,g7.displayName="@mantine/core/ButtonGroup";const Tze=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":dr(l,"section-height"),"--section-padding-x":dr(l,"section-padding-x"),"--section-fz":l?.includes("compact")?Po(l.replace("compact-","")):Po(l),"--section-radius":r===void 0?void 0:_n(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},y7=lt((e,r)=>{const n=Le("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:u,gradient:d,radius:p,autoContrast:f,attributes:g,...b}=n,x=wt({name:"ButtonGroupSection",props:n,classes:Hf,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:Tze,rootSelector:"groupSection"});return y.jsx(Se,{...x("groupSection"),ref:r,variant:u,...b})});y7.classes=Hf,y7.displayName="@mantine/core/ButtonGroupSection";const Rze={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Ae(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},Aze=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:l,autoContrast:s})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--button-justify":l,"--button-height":dr(i,"button-height"),"--button-padding-x":dr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Po(i.replace("compact-","")):Po(i),"--button-radius":r===void 0?void 0:_n(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},ro=eo((e,r)=>{const n=Le("Button",null,e),{style:o,vars:a,className:i,color:l,disabled:s,children:c,leftSection:u,rightSection:d,fullWidth:p,variant:f,radius:g,loading:b,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:R,mod:A,attributes:D,...N}=n,$=wt({name:"Button",props:n,classes:Hf,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:D,vars:a,varsResolver:Aze}),O=!!u,j=!!d;return y.jsxs(Ar,{ref:r,...$("root",{active:!s&&!b&&!T}),unstyled:_,variant:f,disabled:s||b,mod:[{disabled:s||T,loading:b,block:p,"with-left-section":O,"with-right-section":j},A],...N,children:[typeof b=="boolean"&&y.jsx(_u,{mounted:b,transition:Rze,duration:150,children:L=>y.jsx(Se,{component:"span",...$("loader",{style:L}),"aria-hidden":!0,children:y.jsx(jf,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),y.jsxs("span",{...$("inner"),children:[u&&y.jsx(Se,{component:"span",...$("section"),mod:{position:"left"},children:u}),y.jsx(Se,{component:"span",mod:{loading:b},...$("label"),children:c}),d&&y.jsx(Se,{component:"span",...$("section"),mod:{position:"right"},children:d})]})]})});ro.classes=Hf,ro.displayName="@mantine/core/Button",ro.Group=g7,ro.GroupSection=y7;const[Nze,Dze]=ii("Card component was not found in tree");var b7={root:"m_e615b15f",section:"m_599a2148"};const Fw=eo((e,r)=>{const n=Le("CardSection",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,withBorder:c,inheritPadding:u,mod:d,...p}=n,f=Dze();return y.jsx(Se,{ref:r,mod:[{"with-border":c,"inherit-padding":u},d],...f.getStyles("section",{className:a,style:i,styles:l,classNames:o}),...p})});Fw.classes=b7,Fw.displayName="@mantine/core/CardSection";const Pze=(e,{padding:r})=>({root:{"--card-padding":Vs(r)}}),Hw=eo((e,r)=>{const n=Le("Card",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,padding:d,attributes:p,...f}=n,g=wt({name:"Card",props:n,classes:b7,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:Pze}),b=S.Children.toArray(u),x=b.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===Fw?S.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===b.length-1||void 0}):w);return y.jsx(Nze,{value:{getStyles:g},children:y.jsx(Lf,{ref:r,unstyled:s,...g("root"),...f,children:x})})});Hw.classes=b7,Hw.displayName="@mantine/core/Card",Hw.Section=Fw;var yW={root:"m_b183c0a2"};const $ze=(e,{color:r})=>({root:{"--code-bg":r?ta(r,e):void 0}}),qw=lt((e,r)=>{const n=Le("Code",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,block:d,variant:p,mod:f,attributes:g,...b}=n,x=wt({name:"Code",props:n,classes:yW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:$ze});return y.jsx(Se,{component:d?"pre":"code",variant:p,ref:r,mod:[{block:d},f],...x("root"),...b,dir:"ltr"})});qw.classes=yW,qw.displayName="@mantine/core/Code";var bW={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const vW={withShadow:!0},Mze=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:_n(r),"--cs-size":Ae(n)}}),X0=eo((e,r)=>{const n=Le("ColorSwatch",vW,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,size:d,radius:p,withShadow:f,children:g,variant:b,attributes:x,...w}=Le("ColorSwatch",vW,n),k=wt({name:"ColorSwatch",props:n,classes:bW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:c,varsResolver:Mze});return y.jsxs(Se,{ref:r,variant:b,size:d,...k("root",{focusable:!0}),...w,children:[y.jsx("span",{...k("alphaOverlay")}),f&&y.jsx("span",{...k("shadowOverlay")}),y.jsx("span",{...k("colorOverlay",{style:{backgroundColor:u}})}),y.jsx("span",{...k("childrenOverlay"),children:g})]})});X0.classes=bW,X0.displayName="@mantine/core/ColorSwatch";const Oze={timeout:1e3};function xW(e){const{children:r,timeout:n,value:o,...a}=Le("CopyButton",Oze,e),i=APe({timeout:n});return y.jsx(y.Fragment,{children:r({copy:()=>i.copy(o),copied:i.copied,...a})})}xW.displayName="@mantine/core/CopyButton";var wW={root:"m_3eebeb36",label:"m_9e365f20"};const Ize={orientation:"horizontal"},zze=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?ta(r,e):void 0,"--divider-border-style":n,"--divider-size":dr(o,"divider-size")}}),qf=lt((e,r)=>{const n=Le("Divider",Ize,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,orientation:d,label:p,labelPosition:f,mod:g,attributes:b,...x}=n,w=wt({name:"Divider",classes:wW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:zze});return y.jsx(Se,{ref:r,mod:[{orientation:d,"with-label":!!p},g],...w("root"),...x,role:"separator",children:p&&y.jsx(Se,{component:"span",mod:{position:f},...w("label"),children:p})})});qf.classes=wW,qf.displayName="@mantine/core/Divider";const[kW,_W]=ii("Grid component was not found in tree"),v7=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,EW=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":v7(e,r),SW=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},CW=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function Lze({span:e,order:r,offset:n,selector:o}){const a=mo(),i=_W(),l=i.breakpoints||a.breakpoints,s=L0(e)===void 0?12:L0(e),c=Sf({"--col-order":L0(r)?.toString(),"--col-flex-grow":SW(s,i.grow),"--col-flex-basis":v7(s,i.columns),"--col-width":s==="content"?"auto":void 0,"--col-max-width":EW(s,i.columns,i.grow),"--col-offset":CW(L0(n),i.columns)}),u=Do(l).reduce((p,f)=>(p[f]||(p[f]={}),typeof r=="object"&&r[f]!==void 0&&(p[f]["--col-order"]=r[f]?.toString()),typeof e=="object"&&e[f]!==void 0&&(p[f]["--col-flex-grow"]=SW(e[f],i.grow),p[f]["--col-flex-basis"]=v7(e[f],i.columns),p[f]["--col-width"]=e[f]==="content"?"auto":void 0,p[f]["--col-max-width"]=EW(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(p[f]["--col-offset"]=CW(n[f],i.columns)),p),{}),d=FU(Do(u),l).filter(p=>Do(u[p.value]).length>0).map(p=>({query:i.type==="container"?`mantine-grid (min-width: ${l[p.value]})`:`(min-width: ${l[p.value]})`,styles:u[p.value]}));return y.jsx(aw,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var x7={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Bze={span:12},sp=lt((e,r)=>{const n=Le("GridCol",Bze,e),{classNames:o,className:a,style:i,styles:l,vars:s,span:c,order:u,offset:d,...p}=n,f=_W(),g=iw();return y.jsxs(y.Fragment,{children:[y.jsx(Lze,{selector:`.${g}`,span:c,order:u,offset:d}),y.jsx(Se,{ref:r,...f.getStyles("col",{className:tl(a,g),style:i,classNames:o,styles:l}),...p})]})});sp.classes=x7,sp.displayName="@mantine/core/GridCol";function TW({gutter:e,selector:r,breakpoints:n,type:o}){const a=mo(),i=n||a.breakpoints,l=Sf({"--grid-gutter":Vs(L0(e))}),s=Do(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=Vs(e[d])),u),{}),c=FU(Do(s),i).filter(u=>Do(s[u.value]).length>0).map(u=>({query:o==="container"?`mantine-grid (min-width: ${i[u.value]})`:`(min-width: ${i[u.value]})`,styles:s[u.value]}));return y.jsx(aw,{styles:l,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const jze={gutter:"md",grow:!1,columns:12},Fze=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),K0=lt((e,r)=>{const n=Le("Grid",jze,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,grow:u,gutter:d,columns:p,align:f,justify:g,children:b,breakpoints:x,type:w,attributes:k,...C}=n,_=wt({name:"Grid",classes:x7,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:k,vars:c,varsResolver:Fze}),T=iw();return w==="container"&&x?y.jsxs(kW,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(TW,{selector:`.${T}`,...n}),y.jsx("div",{..._("container"),children:y.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})})]}):y.jsxs(kW,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(TW,{selector:`.${T}`,...n}),y.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})]})});K0.classes=x7,K0.displayName="@mantine/core/Grid",K0.Col=sp;function RW({color:e,theme:r,defaultShade:n}){const o=xu({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var AW={root:"m_bcb3f3c2"};const Hze={color:"yellow"},qze=(e,{color:r})=>({root:{"--mark-bg-dark":RW({color:r,theme:e,defaultShade:5}),"--mark-bg-light":RW({color:r,theme:e,defaultShade:2})}}),w7=lt((e,r)=>{const n=Le("Mark",Hze,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,variant:d,attributes:p,...f}=n,g=wt({name:"Mark",props:n,className:a,style:i,classes:AW,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:qze});return y.jsx(Se,{component:"mark",ref:r,variant:d,...g("root"),...f})});w7.classes=AW,w7.displayName="@mantine/core/Mark";function NW(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function Uze(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(NW):NW(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,l)=>l.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const Js=eo((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:l,...s}=Le("Highlight",null,e),c=Uze(o,a);return y.jsx(pt,{unstyled:n,ref:r,...s,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},p)=>d?y.jsx(w7,{unstyled:n,color:l,style:i,"data-highlight":u,children:u},p):y.jsx("span",{children:u},p))})});Js.classes=pt.classes,Js.displayName="@mantine/core/Highlight";const[Vze,DW]=ii("HoverCard component was not found in the tree"),PW=S.createContext(!1),Yze=PW.Provider,k7=()=>S.useContext(PW);function _7(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=Le("HoverCardDropdown",null,e),i=DW();if(k7()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(br.Dropdown,{ref:i.floating,...c,onMouseEnter:En(n,c.onMouseEnter),onMouseLeave:En(o,c.onMouseLeave),...a,children:r})}const l=En(n,i.openDropdown),s=En(o,i.closeDropdown);return y.jsx(br.Dropdown,{onMouseEnter:l,onMouseLeave:s,...a,children:r})}_7.displayName="@mantine/core/HoverCardDropdown";const Wze={openDelay:0,closeDelay:0};function E7(e){const{openDelay:r,closeDelay:n,children:o}=Le("HoverCardGroup",Wze,e);return y.jsx(Yze,{value:!0,children:y.jsx(gY,{delay:{open:r,close:n},children:o})})}E7.displayName="@mantine/core/HoverCardGroup",E7.extend=e=>e;const Gze={refProp:"ref"},S7=S.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=Le("HoverCardTarget",Gze,e);if(!el(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=DW();if(k7()&&l.getReferenceProps&&l.reference){const d=l.getReferenceProps();return y.jsx(br.Target,{refProp:o,ref:r,...i,children:S.cloneElement(n,a?{[a]:{...d,ref:l.reference}}:{...d,ref:l.reference})})}const s=En(n.props.onMouseEnter,l.openDropdown),c=En(n.props.onMouseLeave,l.closeDropdown),u={onMouseEnter:s,onMouseLeave:c};return y.jsx(br.Target,{refProp:o,ref:r,...i,children:S.cloneElement(n,a?{[a]:u}:u)})});S7.displayName="@mantine/core/HoverCardTarget";function Xze(e){const[r,n]=S.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=k7(),i=Aa(),l=S.useRef(-1),s=S.useRef(-1),c=S.useCallback(()=>{window.clearTimeout(l.current),window.clearTimeout(s.current)},[]),u=S.useCallback(C=>{n(C),C?(g(i),e.onOpen?.()):e.onClose?.()},[i,e.onOpen,e.onClose]),{context:d,refs:p}=Ew({open:o,onOpenChange:u}),{delay:f,setCurrentId:g}=yY(d,{id:i}),{getReferenceProps:b,getFloatingProps:x}=xY([fY(d,{enabled:!0,delay:a?f:{open:e.openDelay,close:e.closeDelay}}),wY(d,{role:"dialog"}),vY(d,{enabled:a})]),w=S.useCallback(()=>{a||(c(),e.openDelay===0||e.openDelay===void 0?u(!0):l.current=window.setTimeout(()=>u(!0),e.openDelay))},[a,c,e.openDelay,u]),k=S.useCallback(()=>{a||(c(),e.closeDelay===0||e.closeDelay===void 0?u(!1):s.current=window.setTimeout(()=>u(!1),e.closeDelay))},[a,c,e.closeDelay,u]);return S.useEffect(()=>()=>c(),[c]),{opened:o,reference:p.setReference,floating:p.setFloating,getReferenceProps:b,getFloatingProps:x,openDropdown:w,closeDropdown:k}}const Kze={openDelay:0,closeDelay:150,initiallyOpened:!1};function Uf(e){const{children:r,onOpen:n,onClose:o,openDelay:a,closeDelay:i,initiallyOpened:l,...s}=Le("HoverCard",Kze,e),c=Xze({openDelay:a,closeDelay:i,defaultOpened:l,onOpen:n,onClose:o});return y.jsx(Vze,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:y.jsx(br,{...s,opened:c.opened,__staticSelector:"HoverCard",children:r})})}Uf.displayName="@mantine/core/HoverCard",Uf.Target=S7,Uf.Dropdown=_7,Uf.Group=E7,Uf.extend=e=>e;var Zze=S.useLayoutEffect;const[Qze,Su]=ii("Menu component was not found in the tree");var Cu={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const C7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Le("MenuDivider",null,e),c=Su();return y.jsx(Se,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...s})});C7.classes=Cu,C7.displayName="@mantine/core/MenuDivider";const Z0=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=Le("MenuDropdown",null,e),f=S.useRef(null),g=Su(),b=En(u,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=En(s,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=En(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return y.jsxs(br.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Mr(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&y.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),d]})});Z0.classes=Cu,Z0.displayName="@mantine/core/MenuDropdown";const[Jze,Uw]=I0(),Q0=eo((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,color:s,closeMenuOnClick:c,leftSection:u,rightSection:d,children:p,disabled:f,"data-disabled":g,...b}=Le("MenuItem",null,e),x=Su(),w=Uw(),k=mo(),{dir:C}=wu(),_=S.useRef(null),T=b,R=En(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),A=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,D=s?xu({color:s,theme:k}):null,N=En(T.onKeyDown,$=>{$.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return y.jsxs(Ar,{onMouseDown:$=>$.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Mr(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:R,onKeyDown:z0({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:N}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[u&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:u}),p&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:p}),d&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d})]})});Q0.classes=Cu,Q0.displayName="@mantine/core/MenuItem";const T7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Le("MenuLabel",null,e),c=Su();return y.jsx(Se,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...s})});T7.classes=Cu,T7.displayName="@mantine/core/MenuLabel";const R7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=Le("MenuSubDropdown",null,e),f=S.useRef(null),g=Su(),b=Uw(),x=En(s,b?.open),w=En(c,b?.close);return y.jsx(br.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Mr(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});R7.classes=Cu,R7.displayName="@mantine/core/MenuSubDropdown";const A7=eo((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,color:s,leftSection:c,rightSection:u,children:d,disabled:p,"data-disabled":f,closeMenuOnClick:g,...b}=Le("MenuSubItem",null,e),x=Su(),w=Uw(),k=mo(),{dir:C}=wu(),_=S.useRef(null),T=b,R=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,A=s?xu({color:s,theme:k}):null,D=En(T.onKeyDown,j=>{j.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),j.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),N=En(T.onClick,()=>{!f&&g&&x.closeDropdownImmediately()}),$=En(T.onMouseEnter,w?.open),O=En(T.onMouseLeave,w?.close);return y.jsxs(Ar,{onMouseDown:j=>j.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Mr(_,r),role:"menuitem",disabled:p,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":p||f||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:$,onMouseLeave:O,onClick:N,onKeyDown:z0({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":A?.isThemeColor&&A?.shade===void 0?`var(--mantine-color-${A.color}-6)`:R?.color,"--menu-item-hover":R?.hover},children:[c&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),d&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:d}),y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u||y.jsx(l7,{...x.getStyles("chevron"),size:14})})]})});A7.classes=Cu,A7.displayName="@mantine/core/MenuSubItem";function $W({children:e,refProp:r}){if(!el(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Su(),y.jsx(br.Target,{refProp:r,popupType:"menu",children:e})}$W.displayName="@mantine/core/MenuSubTarget";const eLe={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function Vf(e){const{children:r,closeDelay:n,...o}=Le("MenuSub",eLe,e),a=Aa(),[i,{open:l,close:s}]=r$e(!1),c=Uw(),{openDropdown:u,closeDropdown:d}=oW({open:l,close:s,closeDelay:n,openDelay:0});return y.jsx(Jze,{value:{opened:i,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:y.jsx(br,{opened:i,withinPortal:!1,withArrow:!1,id:a,...o,children:r})})}Vf.extend=e=>e,Vf.displayName="@mantine/core/MenuSub",Vf.Target=$W,Vf.Dropdown=R7,Vf.Item=A7;const tLe={refProp:"ref"},Vw=S.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=Le("MenuTarget",tLe,e);if(!el(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Su(),l=n.props,s=En(l.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=En(l.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=En(l.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return y.jsx(br.Target,{refProp:o,popupType:"menu",ref:r,...a,children:S.cloneElement(n,{onClick:s,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});Vw.displayName="@mantine/core/MenuTarget";const rLe={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function go(e){const r=Le("Menu",rLe,e),{children:n,onOpen:o,onClose:a,opened:i,defaultOpened:l,trapFocus:s,onChange:c,closeOnItemClick:u,loop:d,closeOnEscape:p,trigger:f,openDelay:g,closeDelay:b,classNames:x,styles:w,unstyled:k,variant:C,vars:_,menuItemTabIndex:T,keepMounted:R,withInitialFocusPlaceholder:A,attributes:D,...N}=r,$=wt({name:"Menu",classes:Cu,props:r,classNames:x,styles:w,unstyled:k,attributes:D}),[O,j]=Ys({value:i,defaultValue:l,finalValue:!1,onChange:c}),[L,Y]=S.useState(!1),M=()=>{j(!1),Y(!1),O&&a?.()},q=()=>{j(!0),!O&&o?.()},z=()=>{O?M():q()},{openDropdown:H,closeDropdown:U}=oW({open:q,close:M,closeDelay:b,openDelay:g}),K=Z=>CPe("[data-menu-item]","[data-menu-dropdown]",Z),{resolvedClassNames:V,resolvedStyles:X}=_9({classNames:x,styles:w,props:r});return y.jsx(Qze,{value:{getStyles:$,opened:O,toggleDropdown:z,getItemIndex:K,openedViaClick:L,setOpenedViaClick:Y,closeOnItemClick:u,closeDropdown:f==="click"?M:U,openDropdown:f==="click"?q:H,closeDropdownImmediately:M,loop:d,trigger:f,unstyled:k,menuItemTabIndex:T,withInitialFocusPlaceholder:A},children:y.jsx(br,{...N,opened:O,onChange:z,defaultOpened:l,trapFocus:R?!1:s,closeOnEscape:p,__staticSelector:"Menu",classNames:V,styles:X,unstyled:k,variant:C,keepMounted:R,children:n})})}go.extend=e=>e,go.withProps=vMe(go),go.classes=Cu,go.displayName="@mantine/core/Menu",go.Item=Q0,go.Label=T7,go.Dropdown=Z0,go.Target=Vw,go.Divider=C7,go.Sub=Vf;const[p_t,MW]=I0(),[nLe,oLe]=I0();var Yw={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const aLe=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?dr(r):dr(n,"pg-gap")}}),N7=lt((e,r)=>{const n=Le("PillGroup",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,disabled:d,attributes:p,...f}=n,g=MW()?.size||u||void 0,b=wt({name:"PillGroup",classes:Yw,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:aLe,stylesCtx:{size:g},rootSelector:"group"});return y.jsx(nLe,{value:{size:g,disabled:d},children:y.jsx(Se,{ref:r,size:g,...b("group"),...f})})});N7.classes=Yw,N7.displayName="@mantine/core/PillGroup";const iLe={variant:"default"},lLe=(e,{radius:r},{size:n})=>({root:{"--pill-fz":dr(n,"pill-fz"),"--pill-height":dr(n,"pill-height"),"--pill-radius":r===void 0?void 0:_n(r)}}),Ww=lt((e,r)=>{const n=Le("Pill",iLe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,variant:u,children:d,withRemoveButton:p,onRemove:f,removeButtonProps:g,radius:b,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=oLe(),R=MW(),A=x||T?.size||void 0,D=R?.variant==="filled"?"contrast":u||"default",N=wt({name:"Pill",classes:Yw,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,vars:c,varsResolver:lLe,stylesCtx:{size:A}});return y.jsxs(Se,{component:"span",ref:r,variant:D,size:A,...N("root",{variant:D}),mod:[{"with-remove":p&&!w,disabled:w||T?.disabled},k],..._,children:[y.jsx("span",{...N("label"),children:d}),p&&y.jsx(lp,{variant:"transparent",radius:b,tabIndex:-1,"aria-hidden":!0,unstyled:s,...g,...N("remove",{className:g?.className,style:g?.style}),onMouseDown:$=>{$.preventDefault(),$.stopPropagation(),g?.onMouseDown?.($)},onClick:$=>{$.stopPropagation(),f?.(),g?.onClick?.($)}})]})});Ww.classes=Yw,Ww.displayName="@mantine/core/Pill",Ww.Group=N7;var OW={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const sLe=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":Vs(o)}}},D7=eo((e,r)=>{const n=Le("NavLink",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,opened:u,defaultOpened:d,onChange:p,children:f,active:g,disabled:b,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:R,autoContrast:A,mod:D,attributes:N,onClick:$,onKeyDown:O,...j}=n,L=wt({name:"NavLink",props:n,classes:OW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:N,vars:c,varsResolver:sLe}),[Y,M]=Ys({value:u,defaultValue:d,finalValue:!1,onChange:p}),q=!!f,z=H=>{$?.(H),q&&(H.preventDefault(),M(!Y))};return y.jsxs(y.Fragment,{children:[y.jsxs(Ar,{...L("root"),component:"a",ref:r,onClick:z,onKeyDown:H=>{O?.(H),H.nativeEvent.code==="Space"&&q&&(H.preventDefault(),M(!Y))},unstyled:s,mod:[{disabled:b,active:g,expanded:Y},D],...j,children:[x&&y.jsx(Se,{component:"span",...L("section"),mod:{position:"left"},children:x}),y.jsxs(Se,{...L("body"),mod:{"no-wrap":T},children:[y.jsx(Se,{component:"span",...L("label"),children:k}),y.jsx(Se,{component:"span",mod:{active:g},...L("description"),children:C})]}),(q||w!==void 0)&&y.jsx(Se,{...L("section"),component:"span",mod:{rotate:Y&&!_,position:"right"},children:q?w!==void 0?w:y.jsx(l7,{...L("chevron")}):w})]}),q&&y.jsx(CV,{in:Y,...L("collapse"),children:y.jsx("div",{...L("children"),children:f})})]})});D7.classes=OW,D7.displayName="@mantine/core/NavLink";var IW={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const cLe={withCloseButton:!0},uLe=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:_n(r),"--notification-color":n?ta(n,e):void 0}}),Gw=lt((e,r)=>{const n=Le("Notification",cLe,e),{className:o,color:a,radius:i,loading:l,withCloseButton:s,withBorder:c,title:u,icon:d,children:p,onClose:f,closeButtonProps:g,classNames:b,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:R,role:A,attributes:D,...N}=n,$=wt({name:"Notification",classes:IW,props:n,className:o,style:x,classNames:b,styles:w,unstyled:k,attributes:D,vars:_,varsResolver:uLe});return y.jsxs(Se,{...$("root"),mod:[{"data-with-icon":!!d||l,"data-with-border":c},T],ref:r,variant:C,role:A||"alert",...N,children:[d&&!l&&y.jsx("div",{...$("icon"),children:d}),l&&y.jsx(jf,{size:28,color:a,...R,...$("loader")}),y.jsxs("div",{...$("body"),children:[u&&y.jsx("div",{...$("title"),children:u}),y.jsx(Se,{...$("description"),mod:{"data-with-title":!!u},children:p})]}),s&&y.jsx(lp,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...$("closeButton")})]})});Gw.classes=IW,Gw.displayName="@mantine/core/Notification";const dLe={duration:100,transition:"fade"};function zW(e,r){return{...dLe,...r,...e}}function pLe({offset:e,position:r,defaultOpened:n}){const[o,a]=S.useState(n),i=S.useRef(null),{x:l,y:s,elements:c,refs:u,update:d,placement:p}=Ew({placement:r,middleware:[U9({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=p.includes("right")?e:r.includes("left")?e*-1:0,g=p.includes("bottom")?e:r.includes("top")?e*-1:0,b=S.useCallback(({clientX:x,clientY:w})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+f,top:w+g,right:x,bottom:w}}})},[c.reference]);return S.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",b);const w=Xs(u.floating.current);return w.forEach(k=>{k.addEventListener("scroll",d)}),()=>{x.removeEventListener("mousemove",b),w.forEach(k=>{k.removeEventListener("scroll",d)})}}},[c.reference,u.floating.current,d,b,o]),{handleMouseMove:b,x:l,y:s,opened:o,setOpened:a,boundaryRef:i,floating:u.setFloating}}var Xw={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const hLe={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Kx("popover")},fLe=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:_n(r),"--tooltip-bg":n?ta(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),P7=lt((e,r)=>{const n=Le("TooltipFloating",hLe,e),{children:o,refProp:a,withinPortal:i,style:l,className:s,classNames:c,styles:u,unstyled:d,radius:p,color:f,label:g,offset:b,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:R,portalProps:A,attributes:D,...N}=n,$=mo(),O=wt({name:"TooltipFloating",props:n,classes:Xw,className:s,style:l,classNames:c,styles:u,unstyled:d,attributes:D,rootSelector:"tooltip",vars:R,varsResolver:fLe}),{handleMouseMove:j,x:L,y:Y,opened:M,boundaryRef:q,floating:z,setOpened:H}=pLe({offset:b,position:x,defaultOpened:_});if(!el(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const U=Mr(q,Qx(o),r),K=o.props,V=Z=>{K.onMouseEnter?.(Z),j(Z),H(!0)},X=Z=>{K.onMouseLeave?.(Z),H(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Bf,{...A,withinPortal:i,children:y.jsx(Se,{...N,...O("tooltip",{style:{...R9(l,$),zIndex:k,display:!C&&M?"block":"none",top:(Y&&Math.round(Y))??"",left:(L&&Math.round(L))??""}}),variant:T,ref:z,mod:{multiline:w},children:g})}),S.cloneElement(o,{...K,[a]:U,onMouseEnter:V,onMouseLeave:X})]})});P7.classes=Xw,P7.displayName="@mantine/core/TooltipFloating";const LW=S.createContext(!1),mLe=LW.Provider,gLe=()=>S.useContext(LW),yLe={openDelay:0,closeDelay:0};function cp(e){const{openDelay:r,closeDelay:n,children:o}=Le("TooltipGroup",yLe,e);return y.jsx(mLe,{value:!0,children:y.jsx(gY,{delay:{open:r,close:n},children:o})})}cp.displayName="@mantine/core/TooltipGroup",cp.extend=e=>e;function bLe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function vLe(e){const r=bLe(e.middlewares),n=[oY(e.offset)];return r.shift&&n.push(U9(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?kw():kw(r.flip)),n.push(iY({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?U0():U0(r.inline)):e.inline&&n.push(U0()),n}function xLe(e){const[r,n]=S.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=gLe(),i=Aa(),l=S.useCallback(T=>{n(T),T&&w(i)},[i]),{x:s,y:c,context:u,refs:d,placement:p,middlewareData:{arrow:{x:f,y:g}={}}}=Ew({strategy:e.strategy,placement:e.position,open:o,onOpenChange:l,middleware:vLe(e),whileElementsMounted:vw}),{delay:b,currentId:x,setCurrentId:w}=yY(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=xY([fY(u,{enabled:e.events?.hover,delay:a?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),nIe(u,{enabled:e.events?.focus,visibleOnly:!0}),wY(u,{role:"tooltip"}),vY(u,{enabled:typeof e.opened>"u"})]);rp(()=>{e.onPositionChange?.(p)},[p]);const _=o&&x&&x!==i;return{x:s,y:c,arrowX:f,arrowY:g,reference:d.setReference,floating:d.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:p}}const BW={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Kx("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},wLe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:_n(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},no=lt((e,r)=>{const n=Le("Tooltip",BW,e),{children:o,position:a,refProp:i,label:l,openDelay:s,closeDelay:c,onPositionChange:u,opened:d,defaultOpened:p,withinPortal:f,radius:g,color:b,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,offset:$,transitionProps:O,multiline:j,events:L,zIndex:Y,disabled:M,positionDependencies:q,onClick:z,onMouseEnter:H,onMouseLeave:U,inline:K,variant:V,keepMounted:X,vars:Z,portalProps:B,mod:W,floatingStrategy:Q,middlewares:J,autoContrast:ne,attributes:te,target:ee,...pe}=Le("Tooltip",BW,n),{dir:Te}=wu(),ce=S.useRef(null),de=xLe({position:jY(Te,a),closeDelay:c,openDelay:s,onPositionChange:u,opened:d,defaultOpened:p,events:L,arrowRef:ce,arrowOffset:A,offset:typeof $=="number"?$+(T?R/2:0):$,positionDependencies:[...q,ee??o],inline:K,strategy:Q,middlewares:J});S.useEffect(()=>{const Ze=ee instanceof HTMLElement?ee:typeof ee=="string"?document.querySelector(ee):ee?.current||null;Ze&&de.reference(Ze)},[ee,de]);const xe=wt({name:"Tooltip",props:n,classes:Xw,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:te,rootSelector:"tooltip",vars:Z,varsResolver:wLe});if(!ee&&!el(o))return null;if(ee){const Ze=zW(O,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Bf,{...B,withinPortal:f,children:y.jsx(_u,{...Ze,keepMounted:X,mounted:!M&&!!de.opened,duration:de.isGroupPhase?10:Ze.duration,children:Et=>y.jsxs(Se,{...pe,"data-fixed":Q==="fixed"||void 0,variant:V,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:xe("tooltip").className,style:{...xe("tooltip").style,...Et,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(Rw,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...xe("arrow")})]})})})})}const De=o,Ge=De.props,et=Mr(de.reference,Qx(De),r),ft=zW(O,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Bf,{...B,withinPortal:f,children:y.jsx(_u,{...ft,keepMounted:X,mounted:!M&&!!de.opened,duration:de.isGroupPhase?10:ft.duration,children:Ze=>y.jsxs(Se,{...pe,"data-fixed":Q==="fixed"||void 0,variant:V,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:xe("tooltip").className,style:{...xe("tooltip").style,...Ze,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(Rw,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...xe("arrow")})]})})}),S.cloneElement(De,de.getReferenceProps({onClick:z,onMouseEnter:H,onMouseLeave:U,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:tl(_,Ge.className),...Ge,[i]:et}))]})});no.classes=Xw,no.displayName="@mantine/core/Tooltip",no.Floating=P7,no.Group=cp;var jW={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const kLe={withItemsBorders:!0},_Le=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:_n(r),"--sc-color":n?ta(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":dr(a,"sc-padding"),"--sc-font-size":Po(a)}}),J0=lt((e,r)=>{const n=Le("SegmentedControl",kLe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,data:u,value:d,defaultValue:p,onChange:f,size:g,name:b,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:R,transitionTimingFunction:A,variant:D,autoContrast:N,withItemsBorders:$,mod:O,attributes:j,...L}=n,Y=wt({name:"SegmentedControl",props:n,classes:jW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:_Le}),M=mo(),q=u.map(ee=>typeof ee=="string"?{label:ee,value:ee}:ee),z=a$e(),[H,U]=S.useState(i9()),[K,V]=S.useState(null),[X,Z]=S.useState({}),B=(ee,pe)=>{X[pe]=ee,Z(X)},[W,Q]=Ys({value:d,defaultValue:p,finalValue:Array.isArray(u)?q.find(ee=>!ee.disabled)?.value??u[0]?.value??null:null,onChange:f}),J=Aa(b),ne=q.map(ee=>S.createElement(Se,{...Y("control"),mod:{active:W===ee.value,orientation:C},key:ee.value},S.createElement("input",{...Y("input"),disabled:x||ee.disabled,type:"radio",name:J,value:ee.value,id:`${J}-${ee.value}`,checked:W===ee.value,onChange:()=>!w&&Q(ee.value),"data-focus-ring":M.focusRing,key:`${ee.value}-input`}),S.createElement(Se,{component:"label",...Y("label"),mod:{active:W===ee.value&&!(x||ee.disabled),disabled:x||ee.disabled,"read-only":w},htmlFor:`${J}-${ee.value}`,ref:pe=>B(pe,ee.value),__vars:{"--sc-label-color":T!==void 0?x9({color:T,theme:M,autoContrast:N}):void 0},key:`${ee.value}-label`},y.jsx("span",{...Y("innerLabel"),children:ee.label})))),te=Mr(r,ee=>V(ee));return XPe(()=>{U(i9())},[u.length]),u.length===0?null:y.jsxs(Se,{...Y("root"),variant:D,size:g,ref:te,mod:[{"full-width":k,orientation:C,initialized:z,"with-items-borders":$},O],...L,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&y.jsx(Iw,{target:X[W],parent:K,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},H),ne]})});J0.classes=jW,J0.displayName="@mantine/core/SegmentedControl";const[ELe,Kw]=ii("SliderProvider was not found in tree"),FW=S.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...l},s)=>{const{getStyles:c}=Kw();return y.jsx(Se,{tabIndex:-1,variant:n,size:e,ref:s,...c("root"),...l})});FW.displayName="@mantine/core/SliderRoot";const HW=S.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:l,onKeyDownCapture:s,labelTransitionProps:c,labelAlwaysOn:u,thumbLabel:d,onFocus:p,onBlur:f,showLabelOnHover:g,isHovered:b,children:x=null,disabled:w},k)=>{const{getStyles:C}=Kw(),[_,T]=S.useState(!1),R=u||i||_||g&&b;return y.jsxs(Se,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:A=>{T(!0),typeof p=="function"&&p(A)},onBlur:A=>{T(!1),typeof f=="function"&&f(A)},onTouchStart:l,onMouseDown:l,onKeyDownCapture:s,onClick:A=>A.stopPropagation(),children:[x,y.jsx(_u,{mounted:a!=null&&!!R,transition:"fade",duration:0,...c,children:A=>y.jsx("div",{...C("label",{style:A}),children:a})})]})});HW.displayName="@mantine/core/SliderThumb";function qW({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function SLe({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function UW({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:l}){const{getStyles:s}=Kw();if(!e)return null;const c=e.map((u,d)=>S.createElement(Se,{...s("markWrapper"),__vars:{"--mark-offset":`${qW({value:u.value,min:r,max:n})}%`},key:d},y.jsx(Se,{...s("mark"),mod:{filled:SLe({mark:u,value:a,offset:i,inverted:l}),disabled:o}}),u.label&&y.jsx("div",{...s("markLabel"),children:u.label})));return y.jsx("div",{children:c})}UW.displayName="@mantine/core/SliderMarks";function VW({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:l,...s}){const{getStyles:c}=Kw();return y.jsx(Se,{...c("trackContainer"),mod:{disabled:o},...l,children:y.jsxs(Se,{...c("track"),mod:{inverted:i,disabled:o},children:[y.jsx(Se,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,y.jsx(UW,{...s,offset:a,disabled:o,inverted:i})]})})}VW.displayName="@mantine/core/SliderTrack";function CLe({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const l=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),s=(l!==0?Math.round(l/a)*a:0)+n,c=Math.max(s,n);return i!==void 0?Number(c.toFixed(i)):c}function Zw(e,r){return parseFloat(e.toFixed(r))}function TLe(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function $7(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function M7(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.value<e);return n?n.value:e}function YW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[0].value:0}function WW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var GW={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const RLe={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},ALe=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":dr(r,"slider-size"),"--slider-color":n?ta(n,e):void 0,"--slider-radius":a===void 0?void 0:_n(a),"--slider-thumb-size":o!==void 0?Ae(o):"calc(var(--slider-size) * 2)"}}),O7=lt((e,r)=>{const n=Le("Slider",RLe,e),{classNames:o,styles:a,value:i,onChange:l,onChangeEnd:s,size:c,min:u,max:d,domain:p,step:f,precision:g,defaultValue:b,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:R,thumbChildren:A,disabled:D,unstyled:N,scale:$,inverted:O,className:j,style:L,vars:Y,hiddenInputProps:M,restrictToMarks:q,thumbProps:z,attributes:H,...U}=n,K=wt({name:"Slider",props:n,classes:GW,classNames:o,className:j,styles:a,style:L,attributes:H,vars:Y,varsResolver:ALe,unstyled:N}),{dir:V}=wu(),[X,Z]=S.useState(!1),[B,W]=Ys({value:typeof i=="number"?bu(i,u,d):i,defaultValue:typeof b=="number"?bu(b,u,d):b,finalValue:bu(0,u,d),onChange:l}),Q=S.useRef(B),J=S.useRef(s);S.useEffect(()=>{J.current=s},[s]);const ne=S.useRef(null),te=S.useRef(null),[ee,pe]=p||[u,d],Te=qW({value:B,min:ee,max:pe}),ce=$(B),de=typeof k=="function"?k(ce):k,xe=g??TLe(f),De=S.useCallback(({x:Xe})=>{if(!D){const We=CLe({value:Xe,min:ee,max:pe,step:f,precision:xe}),st=bu(We,u,d);W(q&&w?.length?aV(st,w.map(ct=>ct.value)):st),Q.current=st}},[D,u,d,ee,pe,f,xe,W,w,q]),Ge=S.useCallback(()=>{if(!D&&J.current){const Xe=q&&w?.length?aV(Q.current,w.map(We=>We.value)):Q.current;J.current(Xe)}},[D,w,q]),{ref:et,active:ft}=ZU(De,{onScrubEnd:Ge},V),Ze=S.useCallback(Xe=>{!D&&J.current&&J.current(Xe)},[D]),Et=Xe=>{if(!D)switch(Xe.key){case"ArrowUp":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=$7(B,w);W(st),Ze(st);break}const We=Zw(Math.min(Math.max(B+f,u),d),xe);W(We),Ze(We);break}case"ArrowRight":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=V==="rtl"?M7(B,w):$7(B,w);W(st),Ze(st);break}const We=Zw(Math.min(Math.max(V==="rtl"?B-f:B+f,u),d),xe);W(We),Ze(We);break}case"ArrowDown":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=M7(B,w);W(st),Ze(st);break}const We=Zw(Math.min(Math.max(B-f,u),d),xe);W(We),Ze(We);break}case"ArrowLeft":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=V==="rtl"?$7(B,w):M7(B,w);W(st),Ze(st);break}const We=Zw(Math.min(Math.max(V==="rtl"?B+f:B-f,u),d),xe);W(We),Ze(We);break}case"Home":{if(Xe.preventDefault(),te.current?.focus(),q&&w){W(YW(w)),Ze(YW(w));break}W(u),Ze(u);break}case"End":{if(Xe.preventDefault(),te.current?.focus(),q&&w){W(WW(w)),Ze(WW(w));break}W(d),Ze(d);break}}};return y.jsx(ELe,{value:{getStyles:K},children:y.jsxs(FW,{...U,ref:Mr(r,ne),onKeyDownCapture:Et,onMouseDownCapture:()=>ne.current?.focus(),size:c,disabled:D,children:[y.jsx(VW,{inverted:O,offset:0,filled:Te,marks:w,min:ee,max:pe,value:ce,disabled:D,containerProps:{ref:et,onMouseEnter:R?()=>Z(!0):void 0,onMouseLeave:R?()=>Z(!1):void 0},children:y.jsx(HW,{max:pe,min:ee,value:ce,position:Te,dragging:ft,label:de,ref:te,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:R,isHovered:X,disabled:D,...z,children:A})}),y.jsx("input",{type:"hidden",name:x,value:ce,...M})]})})});O7.classes=GW,O7.displayName="@mantine/core/Slider";const I7=lt((e,r)=>{const{w:n,h:o,miw:a,mih:i,...l}=Le("Space",null,e);return y.jsx(Se,{ref:r,...l,w:n,miw:a??n,h:o,mih:i??o})});I7.displayName="@mantine/core/Space";var XW={root:"m_6d731127"};const NLe={gap:"md",align:"stretch",justify:"flex-start"},DLe=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":Vs(r),"--stack-align":n,"--stack-justify":o}}),Ho=lt((e,r)=>{const n=Le("Stack",NLe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,align:u,justify:d,gap:p,variant:f,attributes:g,...b}=n,x=wt({name:"Stack",props:n,classes:XW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:DLe});return y.jsx(Se,{ref:r,...x("root"),variant:f,...b})});Ho.classes=XW,Ho.displayName="@mantine/core/Stack";const[PLe,z7]=ii("Tabs component was not found in the tree");var ey={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const ty=lt((e,r)=>{const n=Le("TabsList",null,e),{children:o,className:a,grow:i,justify:l,classNames:s,styles:c,style:u,mod:d,...p}=n,f=z7();return y.jsx(Se,{...p,...f.getStyles("list",{className:a,style:u,classNames:s,styles:c,props:n,variant:f.variant}),ref:r,role:"tablist",variant:f.variant,mod:[{grow:i,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},d],"aria-orientation":f.orientation,__vars:{"--tabs-justify":l},children:o})});ty.classes=ey,ty.displayName="@mantine/core/TabsList";const ec=lt((e,r)=>{const n=Le("TabsPanel",null,e),{children:o,className:a,value:i,classNames:l,styles:s,style:c,mod:u,keepMounted:d,...p}=n,f=z7(),g=f.value===i,b=f.keepMounted||d||g?o:null;return y.jsx(Se,{...f.getStyles("panel",{className:a,classNames:l,styles:s,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:f.orientation},u],role:"tabpanel",id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...p,children:b})});ec.classes=ey,ec.displayName="@mantine/core/TabsPanel";const Yf=lt((e,r)=>{const n=Le("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:l,value:s,onClick:c,onKeyDown:u,disabled:d,color:p,style:f,classNames:g,styles:b,vars:x,mod:w,tabIndex:k,...C}=n,_=mo(),{dir:T}=wu(),R=z7(),A=s===R.value,D=$=>{R.onChange(R.allowTabDeactivation&&s===R.value?null:s),c?.($)},N={classNames:g,styles:b,props:n};return y.jsxs(Ar,{...R.getStyles("tab",{className:o,style:f,variant:R.variant,...N}),disabled:d,unstyled:R.unstyled,variant:R.variant,mod:[{active:A,disabled:d,orientation:R.orientation,inverted:R.inverted,placement:R.orientation==="vertical"&&R.placement},w],ref:r,role:"tab",id:R.getTabId(s),"aria-selected":A,tabIndex:k!==void 0?k:A||R.value===null?0:-1,"aria-controls":R.getPanelId(s),onClick:D,__vars:{"--tabs-color":p?ta(p,_):void 0},onKeyDown:z0({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:R.activateTabWithKeyboard,loop:R.loop,orientation:R.orientation||"horizontal",dir:T,onKeyDown:u}),...C,children:[l&&y.jsx("span",{...R.getStyles("tabSection",N),"data-position":"left",children:l}),a&&y.jsx("span",{...R.getStyles("tabLabel",N),children:a}),i&&y.jsx("span",{...R.getStyles("tabSection",N),"data-position":"right",children:i})]})});Yf.classes=ey,Yf.displayName="@mantine/core/TabsTab";const KW="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",$Le={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},MLe=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":_n(r),"--tabs-color":ta(n,e),"--tabs-text-color":Z$e(o,e)?x9({color:n,theme:e,autoContrast:o}):void 0}}),up=lt((e,r)=>{const n=Le("Tabs",$Le,e),{defaultValue:o,value:a,onChange:i,orientation:l,children:s,loop:c,id:u,activateTabWithKeyboard:d,allowTabDeactivation:p,variant:f,color:g,radius:b,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:R,style:A,vars:D,autoContrast:N,mod:$,attributes:O,...j}=n,L=Aa(u),[Y,M]=Ys({value:a,defaultValue:o,finalValue:null,onChange:i}),q=wt({name:"Tabs",props:n,classes:ey,className:R,style:A,classNames:C,styles:_,unstyled:T,attributes:O,vars:D,varsResolver:MLe});return y.jsx(PLe,{value:{placement:w,value:Y,orientation:l,id:L,loop:c,activateTabWithKeyboard:d,getTabId:LU(`${L}-tab`,KW),getPanelId:LU(`${L}-panel`,KW),onChange:M,allowTabDeactivation:p,variant:f,color:g,radius:b,inverted:x,keepMounted:k,unstyled:T,getStyles:q},children:y.jsx(Se,{ref:r,id:L,variant:f,mod:[{orientation:l,inverted:l==="horizontal"&&x,placement:l==="vertical"&&w},$],...q("root"),...j,children:s})})});up.classes=ey,up.displayName="@mantine/core/Tabs",up.Tab=Yf,up.Panel=ec,up.List=ty;var ZW={root:"m_7341320d"};const OLe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:l});return{root:{"--ti-size":dr(r,"ti-size"),"--ti-radius":n===void 0?void 0:_n(n),"--ti-bg":i||o?s.background:void 0,"--ti-color":i||o?s.color:void 0,"--ti-bd":i||o?s.border:void 0}}},hi=lt((e,r)=>{const n=Le("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,autoContrast:u,attributes:d,...p}=n,f=wt({name:"ThemeIcon",classes:ZW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,vars:c,varsResolver:OLe});return y.jsx(Se,{ref:r,...f("root"),...p})});hi.classes=ZW,hi.displayName="@mantine/core/ThemeIcon";const ILe=["h1","h2","h3","h4","h5","h6"],zLe=["xs","sm","md","lg","xl"];function LLe(e,r){const n=r!==void 0?r:`h${e}`;return ILe.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:zLe.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:Ae(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var QW={root:"m_8a5d1357"};const BLe={order:1},jLe=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=LLe(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},dp=lt((e,r)=>{const n=Le("Title",BLe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,order:c,vars:u,size:d,variant:p,lineClamp:f,textWrap:g,mod:b,attributes:x,...w}=n,k=wt({name:"Title",props:n,classes:QW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:u,varsResolver:jLe});return[1,2,3,4,5,6].includes(c)?y.jsx(Se,{...k("root"),component:`h${c}`,variant:p,ref:r,mod:[{order:c,"data-line-clamp":typeof f=="number"},b],size:d,...w}):null});dp.classes=QW,dp.displayName="@mantine/core/Title";function JW(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),l=Math.max(o,a);return n.slice(i,l+1)}function L7({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:l,level:s=1,renderNode:c,flatValues:u,allowRangeSelection:d,expandOnSpace:p,checkOnSpace:f}){const g=S.useRef(null),b=(e.children||[]).map(_=>y.jsx(L7,{node:_,flatValues:u,getStyles:r,rootIndex:void 0,level:s+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:d,expandOnSpace:p,checkOnSpace:f},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):l&&Cf(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=Cf(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const R=Array.from(T.querySelectorAll("[role=treeitem]")),A=R.indexOf(_.currentTarget);if(A===-1)return;const D=_.nativeEvent.code==="ArrowDown"?A+1:A-1;if(R[D]?.focus(),_.shiftKey){const N=R[D];N&&o.setSelectedState(JW(o.anchorNode,N.dataset.value,u))}}_.nativeEvent.code==="Space"&&(p&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),f&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),d&&_.shiftKey&&o.anchorNode?(o.setSelectedState(JW(o.anchorNode,e.value,u)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return y.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${s-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":s,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:s,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):y.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&b.length>0&&y.jsx(Se,{component:"ul",role:"group",...r("subtree"),"data-level":s,children:b})]})}L7.displayName="@mantine/core/TreeNode";function Qw(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=Qw(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const l=i.currentTreeChecked.every(c=>c.checked),s={checked:l,indeterminate:!l,value:a.value,hasChildren:!0};o.push(s),n.push(s)}else if(i.currentTreeChecked.length>0){const l={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(l),n.push(l)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function eG(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=eG(e,n.children);if(o)return o}}return null}function Jw(e,r,n=[]){const o=eG(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?Jw(a.value,r,n):n.push(a.value)}),n):n}function tG(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...tG(n.children)):r.push(n.value),r),[])}function FLe(e,r,n){return n.length===0?!1:n.includes(e)?!0:Qw(r,n).result.some(o=>o.value===e&&o.checked)}const HLe=oV(FLe);function qLe(e,r,n){return n.length===0?!1:Qw(r,n).result.some(o=>o.value===e&&o.indeterminate)}const ULe=oV(qLe);function rG(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&rG(e,a.children,n,o)}),o}function VLe(e,r){const n=[];return e.forEach(o=>n.push(...Jw(o,r))),Array.from(new Set(n))}function ry({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[l,s]=S.useState([]),[c,u]=S.useState(n),[d,p]=S.useState(e),[f,g]=S.useState(r),[b,x]=S.useState(null),[w,k]=S.useState(null),C=S.useCallback(z=>{u(H=>rG(H,z,d)),g(H=>VLe(H,z)),s(z)},[d,f]),_=S.useCallback(z=>{u(H=>{const U={...H,[z]:!H[z]};return U[z]?i?.(z):a?.(z),U})},[a,i]),T=S.useCallback(z=>{u(H=>(H[z]!==!1&&a?.(z),{...H,[z]:!1}))},[a]),R=S.useCallback(z=>{u(H=>(H[z]!==!0&&i?.(z),{...H,[z]:!0}))},[i]),A=S.useCallback(()=>{u(z=>{const H={...z};return Object.keys(H).forEach(U=>{H[U]=!0}),H})},[]),D=S.useCallback(()=>{u(z=>{const H={...z};return Object.keys(H).forEach(U=>{H[U]=!1}),H})},[]),N=S.useCallback(z=>p(H=>o?H.includes(z)?(x(null),H.filter(U=>U!==z)):(x(z),[...H,z]):H.includes(z)?(x(null),[]):(x(z),[z])),[]),$=S.useCallback(z=>{x(z),p(H=>o?H.includes(z)?H:[...H,z]:[z])},[]),O=S.useCallback(z=>{b===z&&x(null),p(H=>H.filter(U=>U!==z))},[]),j=S.useCallback(()=>{p([]),x(null)},[]),L=S.useCallback(z=>{const H=Jw(z,l);g(U=>Array.from(new Set([...U,...H])))},[l]),Y=S.useCallback(z=>{const H=Jw(z,l);g(U=>U.filter(K=>!H.includes(K)))},[l]),M=S.useCallback(()=>{g(()=>tG(l))},[l]),q=S.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:d,checkedState:f,anchorNode:b,initialize:C,toggleExpanded:_,collapse:T,expand:R,expandAllNodes:A,collapseAllNodes:D,setExpandedState:u,checkNode:L,uncheckNode:Y,checkAllNodes:M,uncheckAllNodes:q,setCheckedState:g,toggleSelected:N,select:$,deselect:O,clearSelected:j,setSelectedState:p,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>Qw(l,f).result,isNodeChecked:z=>HLe(z,l,f),isNodeIndeterminate:z=>ULe(z,l,f)}}var nG={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function oG(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...oG(n.children)),r),[])}const YLe={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},WLe=(e,{levelOffset:r})=>({root:{"--level-offset":Vs(r)}}),Wf=lt((e,r)=>{const n=Le("Tree",YLe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,data:u,expandOnClick:d,tree:p,renderNode:f,selectOnClick:g,clearSelectionOnOutsideClick:b,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,R=ry(),A=p||R,D=wt({name:"Tree",classes:nG,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:WLe}),N=HU(()=>b&&A.clearSelected()),$=Mr(r,N),O=S.useMemo(()=>oG(u),[u]);S.useEffect(()=>{A.initialize(u)},[u]);const j=u.map((L,Y)=>y.jsx(L7,{node:L,getStyles:D,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:A,renderNode:f,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},L.value));return y.jsx(Se,{component:"ul",ref:$,...D("root"),...T,role:"tree","aria-multiselectable":A.multiple,"data-tree-root":!0,children:j})});Wf.displayName="@mantine/core/Tree",Wf.classes=nG;const B7=S.createContext(null);function aG(){const e=S.useContext(B7);if(!e)throw new Error("useRootContainer must be used within a RootContainer");return e}function GLe(){return aG().ref}function XLe(){return aG().ref.current}const iG=S.createContext(null);function KLe(){const e=S.useContext(iG);return e===null&&console.warn("ReduceGraphicsMode is not provided"),e??!1}const[ZLe,QLe]=ii("PanningAtomSafeCtx is not provided");function JLe({id:e,className:r,reduceGraphics:n=!1,children:o}){const[a,i]=S.useState(!1),l=S.useRef(null),s=S.useRef(null);s.current||(s.current=MDe(!1)),aE(()=>{i(!0)},[]),S.useEffect(()=>s.current?.subscribe(u=>{l.current?.setAttribute("data-likec4-diagram-panning",u?"true":"false")}),[]);const c=S.useMemo(()=>({id:e,ref:l}),[e,l]);return y.jsx(ZLe,{value:s.current,children:y.jsx(iG.Provider,{value:n,children:y.jsx("div",{id:e,className:Je("likec4-root",r),ref:l,...n&&{"data-likec4-reduced-graphics":!0},children:a&&!!c.ref.current&&y.jsx(B7.Provider,{value:c,children:o})})})})}const ny=S.createContext(null),j7=S.createContext(null);function eBe({children:e}){return S.useContext(j7)?y.jsx(y.Fragment,{children:e}):null}function tBe(){return S.useContext(ny)}function qo(){const e=S.useContext(ny);if(!e)throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");return e}function rBe(){const e=qo(),[r,n]=S.useState(e.$data.specification);return S.useEffect(()=>{n(o=>ut(o,e.$data.specification)?o:e.$data.specification)},[e]),r}const lG=S.createContext({}),nBe=["yellow","orange","amber","tomato","red","ruby","crimson","pink","pink","purple","violet","indigo","blue","teal","grass","lime"],oBe=e=>{const r=e.color;if(pj(e))return`
      --colors-likec4-tag-bg: ${r};
      --colors-likec4-tag-bg-hover: color-mix(in srgb, ${r}, var(--colors-likec4-mix-color) 20%);
    `;if(!nBe.includes(r))return"";let n="12";return["mint","grass","lime","yellow","amber"].includes(r)&&(n="dark-2"),`
  --colors-likec4-tag-border: var(--colors-${r}-8);
  --colors-likec4-tag-bg: var(--colors-${r}-9);
  --colors-likec4-tag-bg-hover: var(--colors-${r}-10);
  --colors-likec4-tag-text: var(--colors-${r}-${n});
  `};function aBe(e,r){return!e||gu(e)?"":kn(WE(e),ZNe(([n,o])=>[`:is(${r} [data-likec4-tag="${n}"]) {`,oBe(o),"}"]),mU(`
`))}function iBe({children:e,rootSelector:r}){const n=rBe().tags,o=aBe(n,r);return y.jsxs(lG.Provider,{value:n,children:[o!==""&&y.jsx(lBe,{stylesheet:o}),e]})}const lBe=S.memo(({stylesheet:e})=>{const r=np()?.();return y.jsx("style",{"data-likec4-tags":!0,type:"text/css",dangerouslySetInnerHTML:{__html:e},nonce:r})});function sBe(e){return S.useContext(lG)[e]??{color:"tomato"}}function sG(){return Aa().replace("mantine-","likec4-")}var cBe="css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle",uBe=cBe.split(","),dBe="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",pBe=dBe.split(",").concat(uBe),hBe=new Map(pBe.map(e=>[e,!0])),fBe=/&|@/,cG=ho(e=>hBe.has(e)||e.startsWith("--")||fBe.test(e));const mBe=(e,r)=>!r.includes(e)&&!cG(e),gBe=(e,r)=>e.__shouldForwardProps__&&r?n=>e.__shouldForwardProps__(n)&&r(n):r,yBe=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;if(e.__cva__&&r.__cva__||e.__recipe__&&r.__recipe__)return e.merge(r);const n=new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");throw TypeError.captureStackTrace?.(n),n},bBe=e=>typeof e=="string"?e:e?.displayName||e?.name||"Component";function F7(e,r={},n={}){const o=r.__cva__||r.__recipe__?r:c0(r),a=n.shouldForwardProp||mBe,i=f=>n.forwardProps?.includes(f)?!0:a(f,o.variantKeys),l=Object.assign(n.dataAttr&&r.__name__?{"data-recipe":r.__name__}:{},n.defaultProps),s=yBe(e.__cva__,o),c=gBe(e,i),u=e.__base__||e,d=S.forwardRef(function(f,g){const{as:b=u,unstyled:x,children:w,...k}=f,C=S.useMemo(()=>Object.assign({},l,k),[k]),[_,T,R,A,D]=S.useMemo(()=>Zn(C,rE.keys,c,s.variantKeys,cG),[C]);function N(){const{css:j,...L}=A,Y=s.__getCompoundVariantCss__?.(R);return Je(s(R,!1),me(Y,L,j),C.className)}function $(){const{css:j,...L}=A,Y=s.raw(R);return Je(me(Y,L,j),C.className)}const O=()=>{if(x){const{css:j,...L}=A;return Je(me(L,j),C.className)}return r.__recipe__?N():$()};return S.createElement(b,{ref:g,...T,...D,...rE(_),className:O()},w??C.children)}),p=bBe(u);return d.displayName=`styled.${p}`,d.__cva__=s,d.__base__=u,d.__shouldForwardProps__=i,d}function vBe(){const e=new Map;return new Proxy(F7,{apply(r,n,o){return F7(...o)},get(r,n){return e.has(n)||e.set(n,F7(n)),e.get(n)}})}const tc=vBe(),uG={transform(e){return e}},xBe=(e={})=>{const r=s0(uG,e);return uG.transform(r,l0)},Gr=S.forwardRef(function(e,r){const[n,o]=Zn(e,[]),a=xBe(n),i={ref:r,...a,...o};return S.createElement(tc.div,i)}),dG={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"column",...o}},defaultValues:{alignItems:"stretch",gap:"sm"}},H7=(e={})=>{const r=s0(dG,e);return dG.transform(r,l0)},oy=e=>me(H7(e));oy.raw=H7;const Gf=S.forwardRef(function(e,r){const[n,o]=Zn(e,["justify","gap"]),a=H7(n),i={ref:r,...a,...o};return S.createElement(tc.div,i)}),pG={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"row",...o}},defaultValues:{gap:"sm"}},q7=(e={})=>{const r=s0(pG,e);return pG.transform(r,l0)},Uo=e=>me(q7(e));Uo.raw=q7;const Sn=S.forwardRef(function(e,r){const[n,o]=Zn(e,["justify","gap"]),a=q7(n),i={ref:r,...a,...o};return S.createElement(tc.div,i)}),hG={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}}},fG=(e={})=>{const r=s0(hG,e);return hG.transform(r,l0)},mG=e=>me(fG(e));mG.raw=fG;const gG={transform(e,{map:r,isCssUnit:n,isCssVar:o}){const{inline:a,block:i,...l}=e,s=c=>n(c)||o(c)?c:`token(spacing.${c}, ${c})`;return{"--bleed-x":r(a,s),"--bleed-y":r(i,s),marginInline:"calc(var(--bleed-x, 0) * -1)",marginBlock:"calc(var(--bleed-y, 0) * -1)",...l}},defaultValues:{inline:"0",block:"0"}},yG=(e={})=>{const r=s0(gG,e);return gG.transform(r,l0)},bG=e=>me(yG(e));bG.raw=yG;const wBe=S.createContext(null),U7={didCatch:!1,error:null};let V7=class extends S.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=U7}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var r,n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(U7)}}componentDidCatch(e,r){var n,o;(n=(o=this.props).onError)===null||n===void 0||n.call(o,e,r)}componentDidUpdate(e,r){const{didCatch:n}=this.state,{resetKeys:o}=this.props;if(n&&r.error!==null&&kBe(e.resetKeys,o)){var a,i;(a=(i=this.props).onReset)===null||a===void 0||a.call(i,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(U7)}}render(){const{children:e,fallbackRender:r,FallbackComponent:n,fallback:o}=this.props,{didCatch:a,error:i}=this.state;let l=e;if(a){const s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(n)l=S.createElement(n,s);else if(o!==void 0)l=o;else throw i}return S.createElement(wBe.Provider,{value:{didCatch:a,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function kBe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==r.length||e.some((n,o)=>!Object.is(n,r[o]))}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const _Be=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],Xf=xt("outline","x","X",_Be);function Y7({error:e,resetErrorBoundary:r}){const n=e instanceof Error?e.message:"Unknown error";return y.jsx(Gr,{css:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0",backdropFilter:"blur(5px)",backgroundColor:{_dark:"[rgb(34 34 34 / 10%)]",_light:"[rgb(15 15 15/ 20%)]"},zIndex:1e3},children:y.jsxs(Gw,{icon:y.jsx(Xf,{style:{width:16,height:16}}),styles:{icon:{alignSelf:"flex-start"}},color:"red",title:"Oops, something went wrong",p:"xl",withCloseButton:!1,children:[y.jsx(na,{maw:"100%",mah:400,children:y.jsx(qw,{block:!0,children:n})}),y.jsx(Wr,{gap:"xs",mt:"xl",children:y.jsx(ro,{color:"gray",size:"xs",variant:"light",onClick:()=>r(),children:"Reset"})})]})})}function vG(e){return y.jsx(V7,{FallbackComponent:Y7,onError:(r,n)=>{console.error(r,n)},...e})}function EBe(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function SBe(){const e=EBe();if(e.__xstate__)return e.__xstate__}const CBe=e=>{if(typeof window>"u")return;const r=SBe();r&&r.register(e)};class xG{constructor(r){this._process=r,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(r){const n={value:r,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const r=this._current;this._process(r.value),this._current=r.next}this._last=null}}const wG=".",TBe="",kG="",RBe="#",ABe="*",_G="xstate.init",NBe="xstate.error",ay="xstate.stop";function DBe(e,r){return{type:`xstate.after.${e}.${r}`}}function W7(e,r){return{type:`xstate.done.state.${e}`,output:r}}function PBe(e,r){return{type:`xstate.done.actor.${e}`,output:r,actorId:e}}function EG(e,r){return{type:`xstate.error.actor.${e}`,error:r,actorId:e}}function SG(e){return{type:_G,input:e}}function cs(e){setTimeout(()=>{throw e})}const $Be=typeof Symbol=="function"&&Symbol.observable||"@@observable";function CG(e,r){const n=TG(e),o=TG(r);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(a=>a in o?CG(n[a],o[a]):!1)}function G7(e){if(NG(e))return e;const r=[];let n="";for(let o=0;o<e.length;o++){switch(e.charCodeAt(o)){case 92:n+=e[o+1],o++;continue;case 46:r.push(n),n="";continue}n+=e[o]}return r.push(n),r}function TG(e){if(hje(e))return e.value;if(typeof e!="string")return e;const r=G7(e);return MBe(r)}function MBe(e){if(e.length===1)return e[0];const r={};let n=r;for(let o=0;o<e.length-1;o++)if(o===e.length-2)n[e[o]]=e[o+1];else{const a=n;n={},a[e[o]]=n}return r}function RG(e,r){const n={},o=Object.keys(e);for(let a=0;a<o.length;a++){const i=o[a];n[i]=r(e[i],i,e,a)}return n}function AG(e){return NG(e)?e:[e]}function rc(e){return e===void 0?[]:AG(e)}function X7(e,r,n,o){return typeof e=="function"?e({context:r,event:n,self:o}):e}function NG(e){return Array.isArray(e)}function OBe(e){return e.type.startsWith("xstate.error.actor")}function Kf(e){return AG(e).map(r=>typeof r>"u"||typeof r=="string"?{target:r}:r)}function DG(e){if(!(e===void 0||e===TBe))return rc(e)}function e2(e,r,n){const o=typeof e=="object",a=o?e:void 0;return{next:(o?e.next:e)?.bind(a),error:(o?e.error:r)?.bind(a),complete:(o?e.complete:n)?.bind(a)}}function PG(e,r){return`${r}.${e}`}function K7(e,r){const n=r.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[r];const[,o,a]=n,i=e.getStateNodeById(a).config.invoke;return(Array.isArray(i)?i[o]:i).src}function $G(e,r){return`${e.sessionId}.${r}`}let IBe=0;function zBe(e,r){const n=new Map,o=new Map,a=new WeakMap,i=new Set,l={},{clock:s,logger:c}=r,u={schedule:(f,g,b,x,w=Math.random().toString(36).slice(2))=>{const k={source:f,target:g,event:b,delay:x,id:w,startedAt:Date.now()},C=$G(f,w);p._snapshot._scheduledEvents[C]=k;const _=s.setTimeout(()=>{delete l[C],delete p._snapshot._scheduledEvents[C],p._relay(f,g,b)},x);l[C]=_},cancel:(f,g)=>{const b=$G(f,g),x=l[b];delete l[b],delete p._snapshot._scheduledEvents[b],x!==void 0&&s.clearTimeout(x)},cancelAll:f=>{for(const g in p._snapshot._scheduledEvents){const b=p._snapshot._scheduledEvents[g];b.source===f&&u.cancel(f,b.id)}}},d=f=>{if(!i.size)return;const g={...f,rootId:e.sessionId};i.forEach(b=>b.next?.(g))},p={_snapshot:{_scheduledEvents:(r?.snapshot&&r.snapshot.scheduler)??{}},_bookId:()=>`x:${IBe++}`,_register:(f,g)=>(n.set(f,g),f),_unregister:f=>{n.delete(f.sessionId);const g=a.get(f);g!==void 0&&(o.delete(g),a.delete(f))},get:f=>o.get(f),getAll:()=>Object.fromEntries(o.entries()),_set:(f,g)=>{const b=o.get(f);if(b&&b!==g)throw new Error(`Actor with system ID '${f}' already exists.`);o.set(f,g),a.set(g,f)},inspect:f=>{const g=e2(f);return i.add(g),{unsubscribe(){i.delete(g)}}},_sendInspectionEvent:d,_relay:(f,g,b)=>{p._sendInspectionEvent({type:"@xstate.event",sourceRef:f,actorRef:g,event:b}),g._send(b)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...p._snapshot._scheduledEvents}}),start:()=>{const f=p._snapshot._scheduledEvents;p._snapshot._scheduledEvents={};for(const g in f){const{source:b,target:x,event:w,delay:k,id:C}=f[g];u.schedule(b,x,w,k,C)}},_clock:s,_logger:c};return p}let Z7=!1;const Q7=1;let oa=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const LBe={clock:{setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class BBe{constructor(r,n){this.logic=r,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new xG(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=oa.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...LBe,...n},{clock:a,logger:i,parent:l,syncSnapshot:s,id:c,systemId:u,inspect:d}=o;this.system=l?l.system:zBe(this,{clock:a,logger:i}),d&&!l&&this.system.inspect(e2(d)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=n?.logger??this.system._logger,this.clock=n?.clock??this.system._clock,this._parent=l,this._syncSnapshot=s,this.options=o,this.src=o.src??r,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:p=>{this._deferred.push(p)},system:this.system,stopChild:p=>{if(p._parent!==this)throw new Error(`Cannot stop child actor ${p.id} of ${this.id} because it is not a child`);p._stop()},emit:p=>{const f=this.eventListeners.get(p.type),g=this.eventListeners.get("*");if(!f&&!g)return;const b=[...f?f.values():[],...g?g.values():[]];for(const x of b)try{x(p)}catch(w){cs(w)}},actionExecutor:p=>{const f=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:p.type,params:p.params}}),!p.exec)return;const g=Z7;try{Z7=!0,p.exec(p.info,p.params)}finally{Z7=g}};this._processingStatus===oa.Running?f():this._deferred.push(f)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this.systemId=u,this.system._set(u,this)),this._initState(n?.snapshot??n?.state),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(r){try{this._snapshot=r?this.logic.restoreSnapshot?this.logic.restoreSnapshot(r,this._actorScope):r:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(n){this._snapshot={status:"error",output:void 0,error:n}}}update(r,n){this._snapshot=r;let o;for(;o=this._deferred.shift();)try{o()}catch(a){this._deferred.length=0,this._snapshot={...r,status:"error",error:a}}switch(this._snapshot.status){case"active":for(const a of this.observers)try{a.next?.(r)}catch(i){cs(i)}break;case"done":for(const a of this.observers)try{a.next?.(r)}catch(i){cs(i)}this._stopProcedure(),this._complete(),this._doneEvent=PBe(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:r})}subscribe(r,n,o){const a=e2(r,n,o);if(this._processingStatus!==oa.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{a.complete?.()}catch(i){cs(i)}break;case"error":{const i=this._snapshot.error;if(!a.error)cs(i);else try{a.error(i)}catch(l){cs(l)}break}}return{unsubscribe:()=>{this.observers.delete(a)}}}on(r,n){let o=this.eventListeners.get(r);o||(o=new Set,this.eventListeners.set(r,o));const a=n.bind(void 0);return o.add(a),{unsubscribe:()=>{o.delete(a)}}}start(){if(this._processingStatus===oa.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=oa.Running;const r=SG(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:r}),this._snapshot.status){case"done":return this.update(this._snapshot,r),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,r),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(r){let n,o;try{n=this.logic.transition(this._snapshot,r,this._actorScope)}catch(a){o={err:a}}if(o){const{err:a}=o;this._snapshot={...this._snapshot,status:"error",error:a},this._error(a);return}this.update(n,r),r.type===ay&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===oa.Stopped?this:(this.mailbox.clear(),this._processingStatus===oa.NotStarted?(this._processingStatus=oa.Stopped,this):(this.mailbox.enqueue({type:ay}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const r of this.observers)try{r.complete?.()}catch(n){cs(n)}this.observers.clear()}_reportError(r){if(!this.observers.size){this._parent||cs(r);return}let n=!1;for(const o of this.observers){const a=o.error;n||=!a;try{a?.(r)}catch(i){cs(i)}}this.observers.clear(),n&&cs(r)}_error(r){this._stopProcedure(),this._reportError(r),this._parent&&this.system._relay(this,this._parent,EG(this.id,r))}_stopProcedure(){return this._processingStatus!==oa.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new xG(this._process.bind(this)),this._processingStatus=oa.Stopped,this.system._unregister(this),this)}_send(r){this._processingStatus!==oa.Stopped&&this.mailbox.enqueue(r)}send(r){this.system._relay(void 0,this,r)}attachDevTools(){const{devTools:r}=this.options;r&&(typeof r=="function"?r:CBe)(this)}toJSON(){return{xstate$$type:Q7,id:this.id}}getPersistedSnapshot(r){return this.logic.getPersistedSnapshot(this._snapshot,r)}[$Be](){return this}getSnapshot(){return this._snapshot}}function Zf(e,...[r]){return new BBe(e,r)}function jBe(e,r,n,o,{sendId:a}){const i=typeof a=="function"?a(n,o):a;return[r,{sendId:i},void 0]}function FBe(e,r){e.defer(()=>{e.system.scheduler.cancel(e.self,r.sendId)})}function Vo(e){function r(n,o){}return r.type="xstate.cancel",r.sendId=e,r.resolve=jBe,r.execute=FBe,r}function HBe(e,r,n,o,{id:a,systemId:i,src:l,input:s,syncSnapshot:c}){const u=typeof l=="string"?K7(r.machine,l):l,d=typeof a=="function"?a(n):a;let p,f;return u&&(f=typeof s=="function"?s({context:r.context,event:n.event,self:e.self}):s,p=Zf(u,{id:d,src:l,parent:e.self,syncSnapshot:c,systemId:i,input:f})),[mp(r,{children:{...r.children,[d]:p}}),{id:a,systemId:i,actorRef:p,src:l,input:f},void 0]}function qBe(e,{actorRef:r}){r&&e.defer(()=>{r._processingStatus!==oa.Stopped&&r.start()})}function pp(...[e,{id:r,systemId:n,input:o,syncSnapshot:a=!1}={}]){function i(l,s){}return i.type="xstate.spawnChild",i.id=r,i.systemId=n,i.src=e,i.input=o,i.syncSnapshot=a,i.resolve=HBe,i.execute=qBe,i}function UBe(e,r,n,o,{actorRef:a}){const i=typeof a=="function"?a(n,o):a,l=typeof i=="string"?r.children[i]:i;let s=r.children;return l&&(s={...s},delete s[l.id]),[mp(r,{children:s}),l,void 0]}function VBe(e,r){if(r){if(e.system._unregister(r),r._processingStatus!==oa.Running){e.stopChild(r);return}e.defer(()=>{e.stopChild(r)})}}function nc(e){function r(n,o){}return r.type="xstate.stopChild",r.actorRef=e,r.resolve=UBe,r.execute=VBe,r}function YBe(e,{context:r,event:n},{guards:o}){return o.every(a=>Qf(a,r,n,e))}function t2(e){function r(n,o){return!1}return r.check=YBe,r.guards=e,r}function WBe(e,{context:r,event:n},{guards:o}){return o.some(a=>Qf(a,r,n,e))}function MG(e){function r(n,o){return!1}return r.check=WBe,r.guards=e,r}function Qf(e,r,n,o){const{machine:a}=o,i=typeof e=="function",l=i?e:a.implementations.guards[typeof e=="string"?e:e.type];if(!i&&!l)throw new Error(`Guard '${typeof e=="string"?e:e.type}' is not implemented.'.`);if(typeof l!="function")return Qf(l,r,n,o);const s={context:r,event:n},c=i||typeof e=="string"?void 0:"params"in e?typeof e.params=="function"?e.params({context:r,event:n}):e.params:void 0;return"check"in l?l.check(o,s,l):l(s,c)}const J7=e=>e.type==="atomic"||e.type==="final";function Jf(e){return Object.values(e.states).filter(r=>r.type!=="history")}function iy(e,r){const n=[];if(r===e)return n;let o=e.parent;for(;o&&o!==r;)n.push(o),o=o.parent;return n}function r2(e){const r=new Set(e),n=IG(r);for(const o of r)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))BG(o).forEach(a=>r.add(a));else if(o.type==="parallel"){for(const a of Jf(o))if(a.type!=="history"&&!r.has(a)){const i=BG(a);for(const l of i)r.add(l)}}for(const o of r){let a=o.parent;for(;a;)r.add(a),a=a.parent}return r}function OG(e,r){const n=r.get(e);if(!n)return{};if(e.type==="compound"){const a=n[0];if(a){if(J7(a))return a.key}else return{}}const o={};for(const a of n)o[a.key]=OG(a,r);return o}function IG(e){const r=new Map;for(const n of e)r.has(n)||r.set(n,[]),n.parent&&(r.has(n.parent)||r.set(n.parent,[]),r.get(n.parent).push(n));return r}function zG(e,r){const n=r2(r);return OG(e,IG(n))}function eS(e,r){return r.type==="compound"?Jf(r).some(n=>n.type==="final"&&e.has(n)):r.type==="parallel"?Jf(r).every(n=>eS(e,n)):r.type==="final"}const n2=e=>e[0]===RBe;function GBe(e,r){return e.transitions.get(r)||[...e.transitions.keys()].filter(n=>{if(n===ABe)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),a=r.split(".");for(let i=0;i<o.length;i++){const l=o[i],s=a[i];if(l==="*")return i===o.length-1;if(l!==s)return!1}return!0}).sort((n,o)=>o.length-n.length).flatMap(n=>e.transitions.get(n))}function XBe(e){const r=e.config.after;if(!r)return[];const n=o=>{const a=DBe(o,e.id),i=a.type;return e.entry.push(Jr(a,{id:i,delay:o})),e.exit.push(Vo(i)),i};return Object.keys(r).flatMap(o=>{const a=r[o],i=typeof a=="string"?{target:a}:a,l=Number.isNaN(+o)?o:+o,s=n(l);return rc(i).map(c=>({...c,event:s,delay:l}))}).map(o=>{const{delay:a}=o;return{...hp(e,o.event,o),delay:a}})}function hp(e,r,n){const o=DG(n.target),a=n.reenter??!1,i=QBe(e,o),l={...n,actions:rc(n.actions),guard:n.guard,target:i,source:e,reenter:a,eventType:r,toJSON:()=>({...l,source:`#${e.id}`,target:i?i.map(s=>`#${s.id}`):void 0})};return l}function KBe(e){const r=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(n===kG)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[n];r.set(n,Kf(o).map(a=>hp(e,n,a)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;r.set(n,Kf(e.config.onDone).map(o=>hp(e,n,o)))}for(const n of e.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;r.set(o,Kf(n.onDone).map(a=>hp(e,o,a)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;r.set(o,Kf(n.onError).map(a=>hp(e,o,a)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;r.set(o,Kf(n.onSnapshot).map(a=>hp(e,o,a)))}}for(const n of e.after){let o=r.get(n.eventType);o||(o=[],r.set(n.eventType,o)),o.push(n)}return r}function ZBe(e,r){const n=typeof r=="string"?e.states[r]:r?e.states[r.target]:void 0;if(!n&&r)throw new Error(`Initial state node "${r}" not found on parent state node #${e.id}`);const o={source:e,actions:!r||typeof r=="string"?[]:rc(r.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return o}function QBe(e,r){if(r!==void 0)return r.map(n=>{if(typeof n!="string")return n;if(n2(n))return e.machine.getStateNodeById(n);const o=n[0]===wG;if(o&&!e.parent)return o2(e,n.slice(1));const a=o?e.key+n:n;if(e.parent)try{return o2(e.parent,a)}catch(i){throw new Error(`Invalid transition definition for state node '${e.id}':
${i.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function LG(e){const r=DG(e.config.target);return r?{target:r.map(n=>typeof n=="string"?o2(e.parent,n):n)}:e.parent.initial}function fp(e){return e.type==="history"}function BG(e){const r=jG(e);for(const n of r)for(const o of iy(n,e))r.add(o);return r}function jG(e){const r=new Set;function n(o){if(!r.has(o)){if(r.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const a of Jf(o))n(a)}}return n(e),r}function em(e,r){if(n2(r))return e.machine.getStateNodeById(r);if(!e.states)throw new Error(`Unable to retrieve child state '${r}' from '${e.id}'; no child states exist.`);const n=e.states[r];if(!n)throw new Error(`Child state '${r}' does not exist on '${e.id}'`);return n}function o2(e,r){if(typeof r=="string"&&n2(r))try{return e.machine.getStateNodeById(r)}catch{}const n=G7(r).slice();let o=e;for(;n.length;){const a=n.shift();if(!a.length)break;o=em(o,a)}return o}function a2(e,r){if(typeof r=="string"){const a=e.states[r];if(!a)throw new Error(`State '${r}' does not exist on '${e.id}'`);return[e,a]}const n=Object.keys(r),o=n.map(a=>em(e,a)).filter(Boolean);return[e.machine.root,e].concat(o,n.reduce((a,i)=>{const l=em(e,i);if(!l)return a;const s=a2(l,r[i]);return a.concat(s)},[]))}function JBe(e,r,n,o){const a=em(e,r).next(n,o);return!a||!a.length?e.next(n,o):a}function eje(e,r,n,o){const a=Object.keys(r),i=em(e,a[0]),l=tS(i,r[a[0]],n,o);return!l||!l.length?e.next(n,o):l}function tje(e,r,n,o){const a=[];for(const i of Object.keys(r)){const l=r[i];if(!l)continue;const s=em(e,i),c=tS(s,l,n,o);c&&a.push(...c)}return a.length?a:e.next(n,o)}function tS(e,r,n,o){return typeof r=="string"?JBe(e,r,n,o):Object.keys(r).length===1?eje(e,r,n,o):tje(e,r,n,o)}function rje(e){return Object.keys(e.states).map(r=>e.states[r]).filter(r=>r.type==="history")}function Tu(e,r){let n=e;for(;n.parent&&n.parent!==r;)n=n.parent;return n.parent===r}function nje(e,r){const n=new Set(e),o=new Set(r);for(const a of n)if(o.has(a))return!0;for(const a of o)if(n.has(a))return!0;return!1}function FG(e,r,n){const o=new Set;for(const a of e){let i=!1;const l=new Set;for(const s of o)if(nje(nS([a],r,n),nS([s],r,n)))if(Tu(a.source,s.source))l.add(s);else{i=!0;break}if(!i){for(const s of l)o.delete(s);o.add(a)}}return Array.from(o)}function oje(e){const[r,...n]=e;for(const o of iy(r,void 0))if(n.every(a=>Tu(a,o)))return o}function rS(e,r){if(!e.target)return[];const n=new Set;for(const o of e.target)if(fp(o))if(r[o.id])for(const a of r[o.id])n.add(a);else for(const a of rS(LG(o),r))n.add(a);else n.add(o);return[...n]}function HG(e,r){const n=rS(e,r);if(!n)return;if(!e.reenter&&n.every(a=>a===e.source||Tu(a,e.source)))return e.source;const o=oje(n.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function nS(e,r,n){const o=new Set;for(const a of e)if(a.target?.length){const i=HG(a,n);a.reenter&&a.source===i&&o.add(i);for(const l of r)Tu(l,i)&&o.add(l)}return[...o]}function aje(e,r){if(e.length!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function oS(e,r,n,o,a,i){if(!e.length)return r;const l=new Set(r._nodes);let s=r.historyValue;const c=FG(e,l,s);let u=r;a||([u,s]=cje(u,o,n,c,l,s,i,n.actionExecutor)),u=rm(u,o,n,c.flatMap(p=>p.actions),i,void 0),u=lje(u,o,n,c,l,i,s,a);const d=[...l];u.status==="done"&&(u=rm(u,o,n,d.sort((p,f)=>f.order-p.order).flatMap(p=>p.exit),i,void 0));try{return s===r.historyValue&&aje(r._nodes,l)?u:mp(u,{_nodes:d,historyValue:s})}catch(p){throw p}}function ije(e,r,n,o,a){if(o.output===void 0)return;const i=W7(a.id,a.output!==void 0&&a.parent?X7(a.output,e.context,r,n.self):void 0);return X7(o.output,e.context,i,n.self)}function lje(e,r,n,o,a,i,l,s){let c=e;const u=new Set,d=new Set;sje(o,l,d,u),s&&d.add(e.machine.root);const p=new Set;for(const f of[...u].sort((g,b)=>g.order-b.order)){a.add(f);const g=[];g.push(...f.entry);for(const b of f.invoke)g.push(pp(b.src,{...b,syncSnapshot:!!b.onSnapshot}));if(d.has(f)){const b=f.initial.actions;g.push(...b)}if(c=rm(c,r,n,g,i,f.invoke.map(b=>b.id)),f.type==="final"){const b=f.parent;let x=b?.type==="parallel"?b:b?.parent,w=x||f;for(b?.type==="compound"&&i.push(W7(b.id,f.output!==void 0?X7(f.output,c.context,r,n.self):void 0));x?.type==="parallel"&&!p.has(x)&&eS(a,x);)p.add(x),i.push(W7(x.id)),w=x,x=x.parent;if(x)continue;c=mp(c,{status:"done",output:ije(c,r,n,c.machine.root,w)})}}return c}function sje(e,r,n,o){for(const a of e){const i=HG(a,r);for(const s of a.target||[])!fp(s)&&(a.source!==s||a.source!==i||a.reenter)&&(o.add(s),n.add(s)),tm(s,r,n,o);const l=rS(a,r);for(const s of l){const c=iy(s,i);i?.type==="parallel"&&c.push(i),qG(o,r,n,c,!a.source.parent&&a.reenter?void 0:i)}}}function tm(e,r,n,o){if(fp(e))if(r[e.id]){const a=r[e.id];for(const i of a)o.add(i),tm(i,r,n,o);for(const i of a)aS(i,e.parent,o,r,n)}else{const a=LG(e);for(const i of a.target)o.add(i),a===e.parent?.initial&&n.add(e.parent),tm(i,r,n,o);for(const i of a.target)aS(i,e.parent,o,r,n)}else if(e.type==="compound"){const[a]=e.initial.target;fp(a)||(o.add(a),n.add(a)),tm(a,r,n,o),aS(a,e,o,r,n)}else if(e.type==="parallel")for(const a of Jf(e).filter(i=>!fp(i)))[...o].some(i=>Tu(i,a))||(fp(a)||(o.add(a),n.add(a)),tm(a,r,n,o))}function qG(e,r,n,o,a){for(const i of o)if((!a||Tu(i,a))&&e.add(i),i.type==="parallel")for(const l of Jf(i).filter(s=>!fp(s)))[...e].some(s=>Tu(s,l))||(e.add(l),tm(l,r,n,e))}function aS(e,r,n,o,a){qG(n,o,a,iy(e,r))}function cje(e,r,n,o,a,i,l,s){let c=e;const u=nS(o,a,i);u.sort((p,f)=>f.order-p.order);let d;for(const p of u)for(const f of rje(p)){let g;f.history==="deep"?g=b=>J7(b)&&Tu(b,p):g=b=>b.parent===p,d??={...i},d[f.id]=Array.from(a).filter(g)}for(const p of u)c=rm(c,r,n,[...p.exit,...p.invoke.map(f=>nc(f.id))],l,void 0),a.delete(p);return[c,d||i]}function uje(e,r){return e.implementations.actions[r]}function UG(e,r,n,o,a,i){const{machine:l}=e;let s=e;for(const c of o){const u=typeof c=="function",d=u?c:uje(l,typeof c=="string"?c:c.type),p={context:s.context,event:r,self:n.self,system:n.system},f=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:s.context,event:r}):c.params:void 0;if(!d||!("resolve"in d)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:p,params:f,exec:d});continue}const g=d,[b,x,w]=g.resolve(n,s,p,f,d,a);s=b,"retryResolve"in g&&i?.push([g,x]),"execute"in g&&n.actionExecutor({type:g.type,info:p,params:x,exec:g.execute.bind(null,n,x)}),w&&(s=UG(s,r,n,w,a,i))}return s}function rm(e,r,n,o,a,i){const l=i?[]:void 0,s=UG(e,r,n,o,{internalQueue:a,deferredActorIds:i},l);return l?.forEach(([c,u])=>{c.retryResolve(n,s,u)}),s}function iS(e,r,n,o){let a=e;const i=[];function l(u,d,p){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:d,snapshot:u,_transitions:p}),i.push(u)}if(r.type===ay)return a=mp(VG(a,r,n),{status:"stopped"}),l(a,r,[]),{snapshot:a,microstates:i};let s=r;if(s.type!==_G){const u=s,d=OBe(u),p=YG(u,a);if(d&&!p.length)return a=mp(e,{status:"error",error:u.error}),l(a,u,[]),{snapshot:a,microstates:i};a=oS(p,e,n,s,!1,o),l(a,u,p)}let c=!0;for(;a.status==="active";){let u=c?dje(a,s):[];const d=u.length?a:void 0;if(!u.length){if(!o.length)break;s=o.shift(),u=YG(s,a)}a=oS(u,a,n,s,!1,o),c=a!==d,l(a,s,u)}return a.status!=="active"&&VG(a,s,n),{snapshot:a,microstates:i}}function VG(e,r,n){return rm(e,r,n,Object.values(e.children).map(o=>nc(o)),[],void 0)}function YG(e,r){return r.machine.getTransitionData(r,e)}function dje(e,r){const n=new Set,o=e._nodes.filter(J7);for(const a of o)e:for(const i of[a].concat(iy(a,void 0)))if(i.always){for(const l of i.always)if(l.guard===void 0||Qf(l.guard,e.context,r,e)){n.add(l);break e}}return FG(Array.from(n),new Set(e._nodes),e.historyValue)}function pje(e,r){const n=r2(a2(e,r));return zG(e,[...n])}function hje(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const fje=function(e){return CG(e,this.value)},mje=function(e){return this.tags.has(e)},gje=function(e){const r=this.machine.getTransitionData(this,e);return!!r?.length&&r.some(n=>n.target!==void 0||n.actions.length)},yje=function(){const{_nodes:e,tags:r,machine:n,getMeta:o,toJSON:a,can:i,hasTag:l,matches:s,...c}=this;return{...c,tags:Array.from(r)}},bje=function(){return this._nodes.reduce((e,r)=>(r.meta!==void 0&&(e[r.id]=r.meta),e),{})};function i2(e,r){return{status:e.status,output:e.output,error:e.error,machine:r,context:e.context,_nodes:e._nodes,value:zG(r.root,e._nodes),tags:new Set(e._nodes.flatMap(n=>n.tags)),children:e.children,historyValue:e.historyValue||{},matches:fje,hasTag:mje,can:gje,getMeta:bje,toJSON:yje}}function mp(e,r={}){return i2({...e,...r},e.machine)}function vje(e){if(typeof e!="object"||e===null)return{};const r={};for(const n in e){const o=e[n];Array.isArray(o)&&(r[n]=o.map(a=>({id:a.id})))}return r}function xje(e,r){const{_nodes:n,tags:o,machine:a,children:i,context:l,can:s,hasTag:c,matches:u,getMeta:d,toJSON:p,...f}=e,g={};for(const b in i){const x=i[b];g[b]={snapshot:x.getPersistedSnapshot(r),src:x.src,systemId:x.systemId,syncSnapshot:x._syncSnapshot}}return{...f,context:WG(l),children:g,historyValue:vje(f.historyValue)}}function WG(e){let r;for(const n in e){const o=e[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)r??=Array.isArray(e)?e.slice():{...e},r[n]={xstate$$type:Q7,id:o.id};else{const a=WG(o);a!==o&&(r??=Array.isArray(e)?e.slice():{...e},r[n]=a)}}return r??e}function wje(e,r,n,o,{event:a,id:i,delay:l},{internalQueue:s}){const c=r.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${a}" }) instead`);const u=typeof a=="function"?a(n,o):a;let d;if(typeof l=="string"){const p=c&&c[l];d=typeof p=="function"?p(n,o):p}else d=typeof l=="function"?l(n,o):l;return typeof d!="number"&&s.push(u),[r,{event:u,id:i,delay:d},void 0]}function kje(e,r){const{event:n,delay:o,id:a}=r;if(typeof o=="number"){e.defer(()=>{const i=e.self;e.system.scheduler.schedule(i,i,n,o,a)});return}}function Jr(e,r){function n(o,a){}return n.type="xstate.raise",n.event=e,n.id=r?.id,n.delay=r?.delay,n.resolve=wje,n.execute=kje,n}const GG=new WeakMap;function XG(e){return{config:e,start:(r,n)=>{const{self:o,system:a,emit:i}=n,l={receivers:void 0,dispose:void 0};GG.set(o,l),l.dispose=e({input:r.input,system:a,self:o,sendBack:s=>{o.getSnapshot().status!=="stopped"&&o._parent&&a._relay(o,o._parent,s)},receive:s=>{l.receivers??=new Set,l.receivers.add(s)},emit:i})},transition:(r,n,o)=>{const a=GG.get(o.self);return n.type===ay?(r={...r,status:"stopped",error:void 0},a.dispose?.(),r):(a.receivers?.forEach(i=>i(n)),r)},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}const KG="xstate.promise.resolve",ZG="xstate.promise.reject",l2=new WeakMap;function _je(e){return{config:e,transition:(r,n,o)=>{if(r.status!=="active")return r;switch(n.type){case KG:{const a=n.data;return{...r,status:"done",output:a,input:void 0}}case ZG:return{...r,status:"error",error:n.data,input:void 0};case ay:return l2.get(o.self)?.abort(),{...r,status:"stopped",input:void 0};default:return r}},start:(r,{self:n,system:o,emit:a})=>{if(r.status!=="active")return;const i=new AbortController;l2.set(n,i),Promise.resolve(e({input:r.input,system:o,self:n,signal:i.signal,emit:a})).then(l=>{n.getSnapshot().status==="active"&&(l2.delete(n),o._relay(n,n,{type:KG,data:l}))},l=>{n.getSnapshot().status==="active"&&(l2.delete(n),o._relay(n,n,{type:ZG,data:l}))})},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function Eje(e,{machine:r,context:n},o,a){const i=(l,s)=>{if(typeof l=="string"){const c=K7(r,l);if(!c)throw new Error(`Actor logic '${l}' not implemented in machine '${r.id}'`);const u=Zf(c,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:typeof s?.input=="function"?s.input({context:n,event:o,self:e.self}):s?.input,src:l,systemId:s?.systemId});return a[u.id]=u,u}else return Zf(l,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:s?.input,src:l,systemId:s?.systemId})};return(l,s)=>{const c=i(l,s);return a[c.id]=c,e.defer(()=>{c._processingStatus!==oa.Stopped&&c.start()}),c}}function Sje(e,r,n,o,{assignment:a}){if(!r.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const i={},l={context:r.context,event:n.event,spawn:Eje(e,r,n.event,i),self:e.self,system:e.system};let s={};if(typeof a=="function")s=a(l,o);else for(const u of Object.keys(a)){const d=a[u];s[u]=typeof d=="function"?d(l,o):d}const c=Object.assign({},r.context,s);return[mp(r,{context:c,children:Object.keys(i).length?{...r.children,...i}:r.children}),void 0,void 0]}function Qe(e){function r(n,o){}return r.type="xstate.assign",r.assignment=e,r.resolve=Sje,r}const QG=new WeakMap;function nm(e,r,n){let o=QG.get(e);return o?r in o||(o[r]=n()):(o={[r]:n()},QG.set(e,o)),o[r]}const Cje={},ly=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class s2{constructor(r,n){if(this.config=r,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(wG),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?RG(this.config.states,(o,a)=>new s2(o,{_parent:this,_key:a,_machine:this.machine})):Cje,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=rc(this.config.entry).slice(),this.exit=rc(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=rc(r.tags).slice()}_initialize(){this.transitions=KBe(this),this.config.always&&(this.always=Kf(this.config.always).map(r=>hp(this,kG,r))),Object.keys(this.states).forEach(r=>{this.states[r]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(ly),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(r=>`#${r.id}`),source:`#${this.id}`,actions:this.initial.actions.map(ly),eventType:null})}:void 0,history:this.history,states:RG(this.states,r=>r.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(r=>({...r,actions:r.actions.map(ly)})),entry:this.entry.map(ly),exit:this.exit.map(ly),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return nm(this,"invoke",()=>rc(this.config.invoke).map((r,n)=>{const{src:o,systemId:a}=r,i=r.id??PG(this.id,n),l=typeof o=="string"?o:`xstate.invoke.${PG(this.id,n)}`;return{...r,src:l,id:i,systemId:a,toJSON(){const{onDone:s,onError:c,...u}=r;return{...u,type:"xstate.invoke",src:l,id:i}}}}))}get on(){return nm(this,"on",()=>[...this.transitions].flatMap(([r,n])=>n.map(o=>[r,o])).reduce((r,[n,o])=>(r[n]=r[n]||[],r[n].push(o),r),{}))}get after(){return nm(this,"delayedTransitions",()=>XBe(this))}get initial(){return nm(this,"initial",()=>ZBe(this,this.config.initial))}next(r,n){const o=n.type,a=[];let i;const l=nm(this,`candidates-${o}`,()=>GBe(this,o));for(const s of l){const{guard:c}=s,u=r.context;let d=!1;try{d=!c||Qf(c,u,n,r)}catch(p){const f=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${f?`'${f}' `:""}in transition for event '${o}' in state node '${this.id}':
${p.message}`)}if(d){a.push(...s.actions),i=s;break}}return i?[i]:void 0}get events(){return nm(this,"events",()=>{const{states:r}=this,n=new Set(this.ownEvents);if(r)for(const o of Object.keys(r)){const a=r[o];if(a.states)for(const i of a.events)n.add(`${i}`)}return Array.from(n)})}get ownEvents(){const r=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(r)}}const Tje="#";class lS{constructor(r,n){this.config=r,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=r.id||"(machine)",this.implementations={actors:n?.actors??{},actions:n?.actions??{},delays:n?.delays??{},guards:n?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new s2(r,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(r){const{actions:n,guards:o,actors:a,delays:i}=this.implementations;return new lS(this.config,{actions:{...n,...r.actions},guards:{...o,...r.guards},actors:{...a,...r.actors},delays:{...i,...r.delays}})}resolveState(r){const n=pje(this.root,r.value),o=r2(a2(this.root,n));return i2({_nodes:[...o],context:r.context||{},children:{},status:eS(o,this.root)?"done":r.status||"active",output:r.output,error:r.error,historyValue:r.historyValue},this)}transition(r,n,o){return iS(r,n,o,[]).snapshot}microstep(r,n,o){return iS(r,n,o,[]).microstates}getTransitionData(r,n){return tS(this.root,r.value,r,n)||[]}getPreInitialState(r,n,o){const{context:a}=this.config,i=i2({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?rm(i,n,r,[Qe(({spawn:l,event:s,self:c})=>a({spawn:l,input:s.input,self:c}))],o,void 0):i}getInitialSnapshot(r,n){const o=SG(n),a=[],i=this.getPreInitialState(r,o,a),l=oS([{target:[...jG(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],i,r,o,!0,a),{snapshot:s}=iS(l,o,r,a);return s}start(r){Object.values(r.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(r){const n=G7(r),o=n.slice(1),a=n2(n[0])?n[0].slice(Tje.length):n[0],i=this.idMap.get(a);if(!i)throw new Error(`Child state node '#${a}' does not exist on machine '${this.id}'`);return o2(i,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(r,n){return xje(r,n)}restoreSnapshot(r,n){const o={},a=r.children;Object.keys(a).forEach(p=>{const f=a[p],g=f.snapshot,b=f.src,x=typeof b=="string"?K7(this,b):b;if(!x)return;const w=Zf(x,{id:p,parent:n.self,syncSnapshot:f.syncSnapshot,snapshot:g,src:b,systemId:f.systemId});o[p]=w});function i(p,f){if(f instanceof s2)return f;try{return p.machine.getStateNodeById(f.id)}catch{}}function l(p,f){if(!f||typeof f!="object")return{};const g={};for(const b in f){const x=f[b];for(const w of x){const k=i(p,w);k&&(g[b]??=[],g[b].push(k))}}return g}const s=l(this.root,r.historyValue),c=i2({...r,children:o,_nodes:Array.from(r2(a2(this.root,r.value))),historyValue:s},this),u=new Set;function d(p,f){if(!u.has(p)){u.add(p);for(const g in p){const b=p[g];if(b&&typeof b=="object"){if("xstate$$type"in b&&b.xstate$$type===Q7){p[g]=f[b.id];continue}d(b,f)}}}}return d(c.context,o),c}}function Rje(e,r,n,o,{event:a}){const i=typeof a=="function"?a(n,o):a;return[r,{event:i},void 0]}function Aje(e,{event:r}){e.defer(()=>e.emit(r))}function $a(e){function r(n,o){}return r.type="xstate.emit",r.event=e,r.resolve=Rje,r.execute=Aje,r}let sS=(function(e){return e.Parent="#_parent",e.Internal="#_internal",e})({});function Nje(e,r,n,o,{to:a,event:i,id:l,delay:s},c){const u=r.machine.implementations.delays;if(typeof i=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);const d=typeof i=="function"?i(n,o):i;let p;if(typeof s=="string"){const b=u&&u[s];p=typeof b=="function"?b(n,o):b}else p=typeof s=="function"?s(n,o):s;const f=typeof a=="function"?a(n,o):a;let g;if(typeof f=="string"){if(f===sS.Parent?g=e.self._parent:f===sS.Internal?g=e.self:f.startsWith("#_")?g=r.children[f.slice(2)]:g=c.deferredActorIds?.includes(f)?f:r.children[f],!g)throw new Error(`Unable to send event to actor '${f}' from machine '${r.machine.id}'.`)}else g=f||e.self;return[r,{to:g,targetId:typeof f=="string"?f:void 0,event:d,id:l,delay:p},void 0]}function Dje(e,r,n){typeof n.to=="string"&&(n.to=r.children[n.to])}function Pje(e,r){e.defer(()=>{const{to:n,event:o,delay:a,id:i}=r;if(typeof a=="number"){e.system.scheduler.schedule(e.self,n,o,a,i);return}e.system._relay(e.self,n,o.type===NBe?EG(e.self.id,o.data):o)})}function ll(e,r,n){function o(a,i){}return o.type="xstate.sendTo",o.to=e,o.event=r,o.id=n?.id,o.delay=n?.delay,o.resolve=Nje,o.retryResolve=Dje,o.execute=Pje,o}function $je(e,r){return ll(sS.Parent,e,r)}function Mje(e,r,n,o,{collect:a}){const i=[],l=function(s){i.push(s)};return l.assign=(...s)=>{i.push(Qe(...s))},l.cancel=(...s)=>{i.push(Vo(...s))},l.raise=(...s)=>{i.push(Jr(...s))},l.sendTo=(...s)=>{i.push(ll(...s))},l.sendParent=(...s)=>{i.push($je(...s))},l.spawnChild=(...s)=>{i.push(pp(...s))},l.stopChild=(...s)=>{i.push(nc(...s))},l.emit=(...s)=>{i.push($a(...s))},a({context:n.context,event:n.event,enqueue:l,check:s=>Qf(s,r.context,n.event,r),self:e.self,system:e.system},o),[r,void 0,i]}function en(e){function r(n,o){}return r.type="xstate.enqueueActions",r.collect=e,r.resolve=Mje,r}function Oje(e,r,n,o,{value:a,label:i}){return[r,{value:typeof a=="function"?a(n,o):a,label:i},void 0]}function Ije({logger:e},{value:r,label:n}){n?e(n,r):e(r)}function zje(e=({context:n,event:o})=>({context:n,event:o}),r){function n(o,a){}return n.type="xstate.log",n.value=e,n.label=r,n.resolve=Oje,n.execute=Ije,n}function qt(e,r){const n=rc(r);if(!n.includes(e.type)){const o=n.length===1?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw new Error(`Expected event ${JSON.stringify(e)} to have ${o}`)}}function Lje(e,r){return new lS(e,r)}function oc({schemas:e,actors:r,actions:n,guards:o,delays:a}){return{assign:Qe,sendTo:ll,raise:Jr,log:zje,cancel:Vo,stopChild:nc,enqueueActions:en,emit:$a,spawnChild:pp,createStateConfig:i=>i,createAction:i=>i,createMachine:i=>Lje({...i,schemas:e},{actors:r,actions:n,guards:o,delays:a})}}HH();const JG=(e,r)=>{r(e);const n=e.getSnapshot().children;n&&Object.values(n).forEach(o=>{JG(o,r)})};function Bje(e){const r=[];JG(e,o=>{r.push([o,o.getSnapshot()]),o.observers=new Set});const n=e.system.getSnapshot?.();e.stop(),e.system._snapshot=n,r.forEach(([o,a])=>{o._processingStatus=0,o._snapshot=a})}function jje(e,...[r]){let[[n,o],a]=S.useState(()=>{const i=Zf(e,r);return[e.config,i]});if(e.config!==n){const i=Zf(e,{...r,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([e.config,i]),o=i}return Zze(()=>{o.logic.implementations=e.implementations}),o}function cS(e,...[r,n]){const o=jje(e,r);return S.useEffect(()=>{if(!n)return;const a=o.subscribe(e2(n));return()=>{a.unsubscribe()}},[n]),S.useEffect(()=>(o.start(),()=>{Bje(o)}),[o]),o}function Fje(e,r){return e===r}function Cn(e,r,n=Fje){const o=S.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:l}=e.subscribe(i);return l},[e]),a=S.useCallback(()=>e?.getSnapshot(),[e]);return VH.useSyncExternalStoreWithSelector(o,a,a,r,n)}function ac(e){return{get overlaysActorRef(){return e.get("overlays")??null},get diagramActorRef(){return e.get("diagram")??null},get searchActorRef(){return e.get("search")??null}}}function om(e,r){return e.view.nodes.find(n=>n.id===r)??null}function uS(e,r){return e.view.edges.find(n=>n.id===r)??null}function Hje(e){const r=new Map,n=e.context.xynodes.reduce((o,a)=>{let i=a.position;if(a.parentId){const c=r.get(a.parentId)??{x:0,y:0};i={x:i.x+c.x,y:i.y+c.y}}if(r.set(a.id,i),a.hidden||a.data.dimmed)return o;const l=a.measured?.width??a.width??a.initialWidth,s=a.measured?.height??a.height??a.initialHeight;return o.minX=Math.min(o.minX,i.x),o.minY=Math.min(o.minY,i.y),o.maxX=Math.max(o.maxX,i.x+l),o.maxY=Math.max(o.maxY,i.y+s),o},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return n.minX===1/0?{bounds:e.context.view.bounds}:{duration:350,bounds:{x:n.minX-10,y:n.minY-10,width:n.maxX-n.minX+20,height:n.maxY-n.minY+20}}}const qje=32;function Uje(e){const r=bt(e.context.activeWalkthrough),n=bt(e.context.xyedges.find(c=>c.id===r.stepId)),o=e.context.xystore.getState(),a=bt(o.nodeLookup.get(n.source)),i=bt(o.nodeLookup.get(n.target)),l=eH([a,i],o);let s;if(r.parallelPrefix){const c=e.context.xynodes.find(u=>u.type==="seq-parallel"&&u.data.parallelPrefix===r.parallelPrefix);c&&(s={x:c.position.x,y:c.position.y,...Qn(c)})}return s??=Vje(n,o),s?s=su.merge(s,l):s=l,{duration:350,bounds:su.expand(s,qje)}}function Vje(e,r){const n=r.nodeLookup.get(e.source),o=r.nodeLookup.get(e.target);if(!n||!o)return null;const a=xH({id:e.id,sourceNode:n,targetNode:o,sourceHandle:e.sourceHandle||null,targetHandle:e.targetHandle||null,connectionMode:r.connectionMode});return a?su.fromPoints([[a.sourceX,a.sourceY],[a.targetX,a.targetY]]):null}const dS=S.createContext(null);dS.displayName="DiagramActorSafeContext";const Yje=dS.Provider,am=()=>{const e=S.useContext(dS);if(e===null)throw new Error("DiagramActorRef is not provided");return e};function Yt(){const e=am();return S.useMemo(()=>({actor:e,send:r=>e.send(r),navigateTo:(r,n)=>{e.send({type:"navigate.to",viewId:r,...n&&{fromNode:n}})},navigate:r=>{e.send({type:`navigate.${r}`})},fitDiagram:(r=350)=>{e.send({type:"fitDiagram",duration:r})},openRelationshipsBrowser:r=>{e.send({type:"open.relationshipsBrowser",fqn:r})},openSource:r=>{e.send({type:"open.source",...r})},openElementDetails:(r,n)=>{e.send({type:"open.elementDetails",fqn:r,fromNode:n})},openRelationshipDetails:(...r)=>{r.length===1?e.send({type:"open.relationshipDetails",params:{edgeId:r[0]}}):e.send({type:"open.relationshipDetails",params:{source:r[0],target:r[1]}})},updateNodeData:(r,n)=>{e.send({type:"update.nodeData",nodeId:r,data:n})},updateEdgeData:(r,n)=>{e.send({type:"update.edgeData",edgeId:r,data:n})},scheduleSaveManualLayout:()=>{e.send({type:"saveManualLayout.schedule"})},cancelSaveManualLayout:()=>{const r=e.getSnapshot().children.syncLayout?.getSnapshot().value;return e.send({type:"saveManualLayout.cancel"}),r==="pending"||r==="paused"},align:r=>{e.send({type:"layout.align",mode:r})},resetEdgeControlPoints:()=>{e.send({type:"layout.resetEdgeControlPoints"})},focusNode:r=>{e.send({type:"focus.node",nodeId:r})},get currentView(){return e.getSnapshot().context.view},getSnapshot:()=>e.getSnapshot(),getContext:()=>e.getSnapshot().context,findDiagramNode:r=>om(e.getSnapshot().context,r),findEdge:r=>e.getSnapshot().context.xyedges.find(n=>n.data.id===r)??null,findDiagramEdge:r=>uS(e.getSnapshot().context,r),startWalkthrough:()=>{e.send({type:"walkthrough.start"})},walkthroughStep:(r="next")=>{e.send({type:"walkthrough.step",direction:r})},stopWalkthrough:()=>{e.send({type:"walkthrough.end"})},toggleFeature:(r,n)=>{e.send({type:"toggle.feature",feature:r,...n!==void 0&&{forceValue:n}})},highlightNotation:(r,n)=>{e.send({type:"notations.highlight",notation:r,...n&&{kind:n}})},unhighlightNotation:()=>{e.send({type:"notations.unhighlight"})},openSearch:r=>{e.send({type:"open.search",...r&&{search:r}})},switchDynamicViewVariant:r=>{e.send({type:"switch.dynamicViewVariant",variant:r})}}),[e])}function eX(e,r=Jn){const n=am();return Cn(n,ot(e),r)}function Ma(e,r=Jn,n){const o=am(),a=S.useCallback(i=>e(i.context),n??[]);return Cn(o,a,r)}function sl(e,r){const n=am(),o=S.useRef(r);o.current=r,S.useEffect(()=>{const a=n.on(e,i=>{o.current(i)});return()=>{a.unsubscribe()}},[n])}const Wje=e=>e.children.overlays;function tX(){return eX(Wje,Object.is)}const Gje=e=>e.children.search??null;function Xje(){return eX(Gje,Object.is)}function pS(e,r){e.indexOf(r)===-1&&e.push(r)}function c2(e,r){const n=e.indexOf(r);n>-1&&e.splice(n,1)}const ic=(e,r,n)=>n>r?r:n<e?e:n;let hS=()=>{};const lc={},rX=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function nX(e){return typeof e=="object"&&e!==null}const oX=e=>/^0[^.\s]+$/u.test(e);function fS(e){let r;return()=>(r===void 0&&(r=e()),r)}const fi=e=>e,Kje=(e,r)=>n=>r(e(n)),sy=(...e)=>e.reduce(Kje),im=(e,r,n)=>{const o=r-e;return o===0?1:(n-e)/o};class mS{constructor(){this.subscriptions=[]}add(r){return pS(this.subscriptions,r),()=>c2(this.subscriptions,r)}notify(r,n,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,n,o);else for(let i=0;i<a;i++){const l=this.subscriptions[i];l&&l(r,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cl=e=>e*1e3,mi=e=>e/1e3;function aX(e,r){return r?e*(1e3/r):0}const Zje=(e,r,n)=>{const o=r-e;return((n-e)%o+o)%o+e},iX=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e,Qje=1e-7,Jje=12;function eFe(e,r,n,o,a){let i,l,s=0;do l=r+(n-r)/2,i=iX(l,o,a)-e,i>0?n=l:r=l;while(Math.abs(i)>Qje&&++s<Jje);return l}function cy(e,r,n,o){if(e===r&&n===o)return fi;const a=i=>eFe(i,0,1,e,n);return i=>i===0||i===1?i:iX(a(i),r,o)}const lX=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,sX=e=>r=>1-e(1-r),cX=cy(.33,1.53,.69,.99),gS=sX(cX),uX=lX(gS),dX=e=>(e*=2)<1?.5*gS(e):.5*(2-Math.pow(2,-10*(e-1))),yS=e=>1-Math.sin(Math.acos(e)),pX=sX(yS),hX=lX(yS),tFe=cy(.42,0,1,1),rFe=cy(0,0,.58,1),fX=cy(.42,0,.58,1),mX=e=>Array.isArray(e)&&typeof e[0]!="number";function gX(e,r){return mX(e)?e[Zje(0,e.length,r)]:e}const yX=e=>Array.isArray(e)&&typeof e[0]=="number",nFe={linear:fi,easeIn:tFe,easeInOut:fX,easeOut:rFe,circIn:yS,circInOut:hX,circOut:pX,backIn:gS,backInOut:uX,backOut:cX,anticipate:dX},oFe=e=>typeof e=="string",bX=e=>{if(yX(e)){hS(e.length===4);const[r,n,o,a]=e;return cy(r,n,o,a)}else if(oFe(e))return nFe[e];return e},u2=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aFe(e,r){let n=new Set,o=new Set,a=!1,i=!1;const l=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function c(d){l.has(d)&&(u.schedule(d),e()),d(s)}const u={schedule:(d,p=!1,f=!1)=>{const g=f&&a?n:o;return p&&l.add(d),g.has(d)||g.add(d),d},cancel:d=>{o.delete(d),l.delete(d)},process:d=>{if(s=d,a){i=!0;return}a=!0,[n,o]=[o,n],n.forEach(c),n.clear(),a=!1,i&&(i=!1,u.process(d))}};return u}const iFe=40;function vX(e,r){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=u2.reduce((k,C)=>(k[C]=aFe(i),k),{}),{setup:s,read:c,resolveKeyframes:u,preUpdate:d,update:p,preRender:f,render:g,postRender:b}=l,x=()=>{const k=lc.useManualTiming?a.timestamp:performance.now();n=!1,lc.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(k-a.timestamp,iFe),1)),a.timestamp=k,a.isProcessing=!0,s.process(a),c.process(a),u.process(a),d.process(a),p.process(a),f.process(a),g.process(a),b.process(a),a.isProcessing=!1,n&&r&&(o=!1,e(x))},w=()=>{n=!0,o=!0,a.isProcessing||e(x)};return{schedule:u2.reduce((k,C)=>{const _=l[C];return k[C]=(T,R=!1,A=!1)=>(n||w(),_.schedule(T,R,A)),k},{}),cancel:k=>{for(let C=0;C<u2.length;C++)l[u2[C]].cancel(k)},state:a,steps:l}}const{schedule:Ir,cancel:Ru,state:yo,steps:bS}=vX(typeof requestAnimationFrame<"u"?requestAnimationFrame:fi,!0);let d2;function lFe(){d2=void 0}const aa={now:()=>(d2===void 0&&aa.set(yo.isProcessing||lc.useManualTiming?yo.timestamp:performance.now()),d2),set:e=>{d2=e,queueMicrotask(lFe)}},xX=e=>r=>typeof r=="string"&&r.startsWith(e),vS=xX("--"),sFe=xX("var(--"),xS=e=>sFe(e)?cFe.test(e.split("/*")[0].trim()):!1,cFe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uy={...lm,transform:e=>ic(0,1,e)},p2={...lm,default:1},dy=e=>Math.round(e*1e5)/1e5,wS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uFe(e){return e==null}const dFe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kS=(e,r)=>n=>!!(typeof n=="string"&&dFe.test(n)&&n.startsWith(e)||r&&!uFe(n)&&Object.prototype.hasOwnProperty.call(n,r)),wX=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,l,s]=o.match(wS);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},pFe=e=>ic(0,255,e),_S={...lm,transform:e=>Math.round(pFe(e))},gp={test:kS("rgb","red"),parse:wX("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+_S.transform(e)+", "+_S.transform(r)+", "+_S.transform(n)+", "+dy(uy.transform(o))+")"};function hFe(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const ES={test:kS("#"),parse:hFe,transform:gp.transform},py=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),Au=py("deg"),us=py("%"),kt=py("px"),fFe=py("vh"),mFe=py("vw"),kX={...us,parse:e=>us.parse(e)/100,transform:e=>us.transform(e*100)},sm={test:kS("hsl","hue"),parse:wX("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+us.transform(dy(r))+", "+us.transform(dy(n))+", "+dy(uy.transform(o))+")"},Tn={test:e=>gp.test(e)||ES.test(e)||sm.test(e),parse:e=>gp.test(e)?gp.parse(e):sm.test(e)?sm.parse(e):ES.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gp.transform(e):sm.transform(e),getAnimatableNone:e=>{const r=Tn.parse(e);return r.alpha=0,Tn.transform(r)}},gFe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yFe(e){return isNaN(e)&&typeof e=="string"&&(e.match(wS)?.length||0)+(e.match(gFe)?.length||0)>0}const _X="number",EX="color",bFe="var",vFe="var(",SX="${}",xFe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hy(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const l=r.replace(xFe,s=>(Tn.test(s)?(o.color.push(i),a.push(EX),n.push(Tn.parse(s))):s.startsWith(vFe)?(o.var.push(i),a.push(bFe),n.push(s)):(o.number.push(i),a.push(_X),n.push(parseFloat(s))),++i,SX)).split(SX);return{values:n,split:l,indexes:o,types:a}}function CX(e){return hy(e).values}function TX(e){const{split:r,types:n}=hy(e),o=r.length;return a=>{let i="";for(let l=0;l<o;l++)if(i+=r[l],a[l]!==void 0){const s=n[l];s===_X?i+=dy(a[l]):s===EX?i+=Tn.transform(a[l]):i+=a[l]}return i}}const wFe=e=>typeof e=="number"?0:Tn.test(e)?Tn.getAnimatableNone(e):e;function kFe(e){const r=CX(e);return TX(e)(r.map(wFe))}const Nu={test:yFe,parse:CX,createTransformer:TX,getAnimatableNone:kFe};function SS(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(r-e)*6*n:n<.5?r:n<.6666666666666666?e+(r-e)*(.6666666666666666-n)*6:e}function _Fe({hue:e,saturation:r,lightness:n,alpha:o}){e/=360,r/=100,n/=100;let a=0,i=0,l=0;if(!r)a=i=l=n;else{const s=n<.5?n*(1+r):n+r-n*r,c=2*n-s;a=SS(c,s,e+.3333333333333333),i=SS(c,s,e),l=SS(c,s,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:o}}function h2(e,r){return n=>n>0?r:e}const Fr=(e,r,n)=>e+(r-e)*n,CS=(e,r,n)=>{const o=e*e,a=n*(r*r-o)+o;return a<0?0:Math.sqrt(a)},EFe=[ES,gp,sm],SFe=e=>EFe.find(r=>r.test(e));function RX(e){const r=SFe(e);if(!r)return!1;let n=r.parse(e);return r===sm&&(n=_Fe(n)),n}const AX=(e,r)=>{const n=RX(e),o=RX(r);if(!n||!o)return h2(e,r);const a={...n};return i=>(a.red=CS(n.red,o.red,i),a.green=CS(n.green,o.green,i),a.blue=CS(n.blue,o.blue,i),a.alpha=Fr(n.alpha,o.alpha,i),gp.transform(a))},TS=new Set(["none","hidden"]);function CFe(e,r){return TS.has(e)?n=>n<=0?e:r:n=>n>=1?r:e}function TFe(e,r){return n=>Fr(e,r,n)}function RS(e){return typeof e=="number"?TFe:typeof e=="string"?xS(e)?h2:Tn.test(e)?AX:NFe:Array.isArray(e)?NX:typeof e=="object"?Tn.test(e)?AX:RFe:h2}function NX(e,r){const n=[...e],o=n.length,a=e.map((i,l)=>RS(i)(i,r[l]));return i=>{for(let l=0;l<o;l++)n[l]=a[l](i);return n}}function RFe(e,r){const n={...e,...r},o={};for(const a in n)e[a]!==void 0&&r[a]!==void 0&&(o[a]=RS(e[a])(e[a],r[a]));return a=>{for(const i in o)n[i]=o[i](a);return n}}function AFe(e,r){const n=[],o={color:0,var:0,number:0};for(let a=0;a<r.values.length;a++){const i=r.types[a],l=e.indexes[i][o[i]],s=e.values[l]??0;n[a]=s,o[i]++}return n}const NFe=(e,r)=>{const n=Nu.createTransformer(r),o=hy(e),a=hy(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?TS.has(e)&&!a.values.length||TS.has(r)&&!o.values.length?CFe(e,r):sy(NX(AFe(o,a),a.values),n):h2(e,r)};function DX(e,r,n){return typeof e=="number"&&typeof r=="number"&&typeof n=="number"?Fr(e,r,n):RS(e)(e,r)}const DFe=e=>{const r=({timestamp:n})=>e(n);return{start:(n=!0)=>Ir.update(r,n),stop:()=>Ru(r),now:()=>yo.isProcessing?yo.timestamp:aa.now()}},PX=(e,r,n=10)=>{let o="";const a=Math.max(Math.round(r/n),2);for(let i=0;i<a;i++)o+=Math.round(e(i/(a-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},f2=2e4;function AS(e){let r=0;const n=50;let o=e.next(r);for(;!o.done&&r<f2;)r+=n,o=e.next(r);return r>=f2?1/0:r}function $X(e,r=100,n){const o=n({...e,keyframes:[0,r]}),a=Math.min(AS(o),f2);return{type:"keyframes",ease:i=>o.next(a*i).value/r,duration:mi(a)}}const PFe=5;function MX(e,r,n){const o=Math.max(r-PFe,0);return aX(n-e(o),r-o)}const tn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},NS=.001;function $Fe({duration:e=tn.duration,bounce:r=tn.bounce,velocity:n=tn.velocity,mass:o=tn.mass}){let a,i,l=1-r;l=ic(tn.minDamping,tn.maxDamping,l),e=ic(tn.minDuration,tn.maxDuration,mi(e)),l<1?(a=u=>{const d=u*l,p=d*e,f=d-n,g=DS(u,l),b=Math.exp(-p);return NS-f/g*b},i=u=>{const d=u*l*e,p=d*n+n,f=Math.pow(l,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=DS(Math.pow(u,2),l);return(-a(u)+NS>0?-1:1)*((p-f)*g)/b}):(a=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-NS+d*p},i=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const s=5/e,c=OFe(a,i,s);if(e=cl(e),isNaN(c))return{stiffness:tn.stiffness,damping:tn.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:l*2*Math.sqrt(o*u),duration:e}}}const MFe=12;function OFe(e,r,n){let o=n;for(let a=1;a<MFe;a++)o=o-e(o)/r(o);return o}function DS(e,r){return e*Math.sqrt(1-r*r)}const IFe=["duration","bounce"],zFe=["stiffness","damping","mass"];function OX(e,r){return r.some(n=>e[n]!==void 0)}function LFe(e){let r={velocity:tn.velocity,stiffness:tn.stiffness,damping:tn.damping,mass:tn.mass,isResolvedFromDuration:!1,...e};if(!OX(e,zFe)&&OX(e,IFe))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),a=o*o,i=2*ic(.05,1,1-(e.bounce||0))*Math.sqrt(a);r={...r,mass:tn.mass,stiffness:a,damping:i}}else{const n=$Fe(e);r={...r,...n,mass:tn.mass},r.isResolvedFromDuration=!0}return r}function fy(e=tn.visualDuration,r=tn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:o,restDelta:a}=n;const i=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:g}=LFe({...n,velocity:-mi(n.velocity||0)}),b=f||0,x=u/(2*Math.sqrt(c*d)),w=l-i,k=mi(Math.sqrt(c/d)),C=Math.abs(w)<5;o||(o=C?tn.restSpeed.granular:tn.restSpeed.default),a||(a=C?tn.restDelta.granular:tn.restDelta.default);let _;if(x<1){const R=DS(k,x);_=A=>{const D=Math.exp(-x*k*A);return l-D*((b+x*k*w)/R*Math.sin(R*A)+w*Math.cos(R*A))}}else if(x===1)_=R=>l-Math.exp(-k*R)*(w+(b+k*w)*R);else{const R=k*Math.sqrt(x*x-1);_=A=>{const D=Math.exp(-x*k*A),N=Math.min(R*A,300);return l-D*((b+x*k*w)*Math.sinh(N)+R*w*Math.cosh(N))/R}}const T={calculatedDuration:g&&p||null,next:R=>{const A=_(R);if(g)s.done=R>=p;else{let D=R===0?b:0;x<1&&(D=R===0?cl(b):MX(_,R,A));const N=Math.abs(D)<=o,$=Math.abs(l-A)<=a;s.done=N&&$}return s.value=s.done?l:A,s},toString:()=>{const R=Math.min(AS(T),f2),A=PX(D=>T.next(R*D).value,R,30);return R+"ms "+A},toTransition:()=>{}};return T}fy.applyToOptions=e=>{const r=$X(e,100,fy);return e.ease=r.ease,e.duration=cl(r.duration),e.type="keyframes",e};function PS({keyframes:e,velocity:r=0,power:n=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:l,min:s,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},g=N=>s!==void 0&&N<s||c!==void 0&&N>c,b=N=>s===void 0?c:c===void 0||Math.abs(s-N)<Math.abs(c-N)?s:c;let x=n*r;const w=p+x,k=l===void 0?w:l(w);k!==w&&(x=k-p);const C=N=>-x*Math.exp(-N/o),_=N=>k+C(N),T=N=>{const $=C(N),O=_(N);f.done=Math.abs($)<=u,f.value=f.done?k:O};let R,A;const D=N=>{g(f.value)&&(R=N,A=fy({keyframes:[f.value,b(f.value)],velocity:MX(_,N,f.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return D(0),{calculatedDuration:null,next:N=>{let $=!1;return!A&&R===void 0&&($=!0,T(N),D(N)),R!==void 0&&N>=R?A.next(N-R):(!$&&T(N),f)}}}function BFe(e,r,n){const o=[],a=n||lc.mix||DX,i=e.length-1;for(let l=0;l<i;l++){let s=a(e[l],e[l+1]);if(r){const c=Array.isArray(r)?r[l]||fi:r;s=sy(c,s)}o.push(s)}return o}function jFe(e,r,{clamp:n=!0,ease:o,mixer:a}={}){const i=e.length;if(hS(i===r.length),i===1)return()=>r[0];if(i===2&&r[0]===r[1])return()=>r[1];const l=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),r=[...r].reverse());const s=BFe(r,o,a),c=s.length,u=d=>{if(l&&d<e[0])return r[0];let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const f=im(e[p],e[p+1],d);return s[p](f)};return n?d=>u(ic(e[0],e[i-1],d)):u}function IX(e,r){const n=e[e.length-1];for(let o=1;o<=r;o++){const a=im(0,r,o);e.push(Fr(n,1,a))}}function zX(e){const r=[0];return IX(r,e.length-1),r}function FFe(e,r){return e.map(n=>n*r)}function HFe(e,r){return e.map(()=>r||fX).splice(0,e.length-1)}function my({duration:e=300,keyframes:r,times:n,ease:o="easeInOut"}){const a=mX(o)?o.map(bX):bX(o),i={done:!1,value:r[0]},l=FFe(n&&n.length===r.length?n:zX(r),e),s=jFe(l,r,{ease:Array.isArray(a)?a:HFe(r,a)});return{calculatedDuration:e,next:c=>(i.value=s(c),i.done=c>=e,i)}}const qFe=e=>e!==null;function $S(e,{repeat:r,repeatType:n="loop"},o,a=1){const i=e.filter(qFe),l=a<0||r&&n!=="loop"&&r%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const UFe={decay:PS,inertia:PS,tween:my,keyframes:my,spring:fy};function LX(e){typeof e.type=="string"&&(e.type=UFe[e.type])}class MS{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,n){return this.finished.then(r,n)}}const VFe=e=>e/100;class OS extends MS{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==aa.now()&&this.tick(aa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;LX(r);const{type:n=my,repeat:o=0,repeatDelay:a=0,repeatType:i,velocity:l=0}=r;let{keyframes:s}=r;const c=n||my;c!==my&&typeof s[0]!="number"&&(this.mixKeyframes=sy(VFe,DX(s[0],s[1])),s=[0,100]);const u=c({...r,keyframes:s});i==="mirror"&&(this.mirroredGenerator=c({...r,keyframes:[...s].reverse(),velocity:-l})),u.calculatedDuration===null&&(u.calculatedDuration=AS(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(o+1)-a,this.generator=u}updateTime(r){const n=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(r,n=!1){const{generator:o,totalDuration:a,mixKeyframes:i,mirroredGenerator:l,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:p,repeatType:f,repeatDelay:g,type:b,onUpdate:x,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-a/this.speed,this.startTime)),n?this.currentTime=r:this.updateTime(r);const k=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,T=o;if(p){const N=Math.min(this.currentTime,a)/s;let $=Math.floor(N),O=N%1;!O&&N>=1&&(O=1),O===1&&$--,$=Math.min($,p+1),$%2&&(f==="reverse"?(O=1-O,g&&(O-=g/s)):f==="mirror"&&(T=l)),_=ic(0,1,O)*s}const R=C?{done:!1,value:d[0]}:T.next(_);i&&(R.value=i(R.value));let{done:A}=R;!C&&c!==null&&(A=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&b!==PS&&(R.value=$S(d,this.options,w,this.speed)),x&&x(R.value),D&&this.finish(),R}then(r,n){return this.finished.then(r,n)}get duration(){return mi(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+mi(r)}get time(){return mi(this.currentTime)}set time(r){r=cl(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(aa.now());const n=this.playbackSpeed!==r;this.playbackSpeed=r,n&&(this.time=mi(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=DFe,startTime:n}=this.options;this.driver||(this.driver=r(a=>this.tick(a))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(aa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function YFe(e){for(let r=1;r<e.length;r++)e[r]??(e[r]=e[r-1])}const yp=e=>e*180/Math.PI,IS=e=>{const r=yp(Math.atan2(e[1],e[0]));return zS(r)},WFe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:IS,rotateZ:IS,skewX:e=>yp(Math.atan(e[1])),skewY:e=>yp(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zS=e=>(e=e%360,e<0&&(e+=360),e),BX=IS,jX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),FX=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),GFe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jX,scaleY:FX,scale:e=>(jX(e)+FX(e))/2,rotateX:e=>zS(yp(Math.atan2(e[6],e[5]))),rotateY:e=>zS(yp(Math.atan2(-e[2],e[0]))),rotateZ:BX,rotate:BX,skewX:e=>yp(Math.atan(e[4])),skewY:e=>yp(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function LS(e){return e.includes("scale")?1:0}function BS(e,r){if(!e||e==="none")return LS(r);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(n)o=GFe,a=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=WFe,a=s}if(!a)return LS(r);const i=o[r],l=a[1].split(",").map(KFe);return typeof i=="function"?i(l):l[i]}const XFe=(e,r)=>{const{transform:n="none"}=getComputedStyle(e);return BS(n,r)};function KFe(e){return parseFloat(e.trim())}const cm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],um=new Set(cm),HX=e=>e===lm||e===kt,ZFe=new Set(["x","y","z"]),QFe=cm.filter(e=>!ZFe.has(e));function JFe(e){const r=[];return QFe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(r.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),r}const bp={width:({x:e},{paddingLeft:r="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),height:({y:e},{paddingTop:r="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=>BS(r,"x"),y:(e,{transform:r})=>BS(r,"y")};bp.translateX=bp.x,bp.translateY=bp.y;const vp=new Set;let jS=!1,FS=!1,HS=!1;function qX(){if(FS){const e=Array.from(vp).filter(o=>o.needsMeasurement),r=new Set(e.map(o=>o.element)),n=new Map;r.forEach(o=>{const a=JFe(o);a.length&&(n.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=n.get(o);a&&a.forEach(([i,l])=>{o.getValue(i)?.set(l)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}FS=!1,jS=!1,vp.forEach(e=>e.complete(HS)),vp.clear()}function UX(){vp.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(FS=!0)})}function eHe(){HS=!0,UX(),qX(),HS=!1}class qS{constructor(r,n,o,a,i,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=n,this.name=o,this.motionValue=a,this.element=i,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(vp.add(this),jS||(jS=!0,Ir.read(UX),Ir.resolveKeyframes(qX))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:n,element:o,motionValue:a}=this;if(r[0]===null){const i=a?.get(),l=r[r.length-1];if(i!==void 0)r[0]=i;else if(o&&n){const s=o.readValue(n,l);s!=null&&(r[0]=s)}r[0]===void 0&&(r[0]=l),a&&i===void 0&&a.set(r[0])}YFe(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),vp.delete(this)}cancel(){this.state==="scheduled"&&(vp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tHe=e=>e.startsWith("--");function rHe(e,r,n){tHe(r)?e.style.setProperty(r,n):e.style[r]=n}const nHe=fS(()=>window.ScrollTimeline!==void 0),oHe={};function aHe(e,r){const n=fS(e);return()=>oHe[r]??n()}const VX=aHe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gy=([e,r,n,o])=>`cubic-bezier(${e}, ${r}, ${n}, ${o})`,YX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gy([0,.65,.55,1]),circOut:gy([.55,0,1,.45]),backIn:gy([.31,.01,.66,-.59]),backOut:gy([.33,1.53,.69,.99])};function WX(e,r){if(e)return typeof e=="function"?VX()?PX(e,r):"ease-out":yX(e)?gy(e):Array.isArray(e)?e.map(n=>WX(n,r)||YX.easeOut):YX[e]}function iHe(e,r,n,{delay:o=0,duration:a=300,repeat:i=0,repeatType:l="loop",ease:s="easeOut",times:c}={},u=void 0){const d={[r]:n};c&&(d.offset=c);const p=WX(s,a);Array.isArray(p)&&(d.easing=p);const f={delay:o,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function US(e){return typeof e=="function"&&"applyToOptions"in e}function lHe({type:e,...r}){return US(e)&&VX()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class sHe extends MS{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:n,name:o,keyframes:a,pseudoElement:i,allowFlatten:l=!1,finalKeyframe:s,onComplete:c}=r;this.isPseudoElement=!!i,this.allowFlatten=l,this.options=r,hS(typeof r.type!="string");const u=lHe(r);this.animation=iHe(n,o,a,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=$S(a,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(d):rHe(n,o,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return mi(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+mi(r)}get time(){return mi(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=cl(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&nHe()?(this.animation.timeline=r,fi):n(this)}}const GX={anticipate:dX,backInOut:uX,circInOut:hX};function cHe(e){return e in GX}function uHe(e){typeof e.ease=="string"&&cHe(e.ease)&&(e.ease=GX[e.ease])}const XX=10;class dHe extends sHe{constructor(r){uHe(r),LX(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:n,onUpdate:o,onComplete:a,element:i,...l}=this.options;if(!n)return;if(r!==void 0){n.set(r);return}const s=new OS({...l,autoplay:!1}),c=cl(this.finishedTime??this.time);n.setWithVelocity(s.sample(c-XX).value,s.sample(c).value,XX),s.stop()}}const KX=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nu.test(e)||e==="0")&&!e.startsWith("url("));function pHe(e){const r=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==r)return!0}function hHe(e,r,n,o){const a=e[0];if(a===null)return!1;if(r==="display"||r==="visibility")return!0;const i=e[e.length-1],l=KX(a,r),s=KX(i,r);return!l||!s?!1:pHe(e)||(n==="spring"||US(n))&&o}function VS(e){e.duration=0,e.type="keyframes"}const fHe=new Set(["opacity","clipPath","filter","transform"]),mHe=fS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gHe(e){const{motionValue:r,name:n,repeatDelay:o,repeatType:a,damping:i,type:l}=e;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:c}=r.owner.getProps();return mHe()&&n&&fHe.has(n)&&(n!=="transform"||!c)&&!s&&!o&&a!=="mirror"&&i!==0&&l!=="inertia"}const yHe=40;class bHe extends MS{constructor({autoplay:r=!0,delay:n=0,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:l="loop",keyframes:s,name:c,motionValue:u,element:d,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=aa.now();const f={autoplay:r,delay:n,type:o,repeat:a,repeatDelay:i,repeatType:l,name:c,motionValue:u,element:d,...p},g=d?.KeyframeResolver||qS;this.keyframeResolver=new g(s,(b,x,w)=>this.onKeyframesResolved(b,x,f,!w),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,n,o,a){this.keyframeResolver=void 0;const{name:i,type:l,velocity:s,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=aa.now(),hHe(r,i,l,s)||((lc.instantAnimations||!c)&&d?.($S(r,o,n)),r[0]=r[r.length-1],VS(o),o.repeat=0);const p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>yHe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:r},f=!u&&gHe(p)?new dHe({...p,element:p.motionValue.owner.current}):new OS(p);f.finished.then(()=>this.notifyFinished()).catch(fi),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(r,n){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eHe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class vHe{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>r.finished))}getAll(r){return this.animations[0][r]}setAll(r,n){for(let o=0;o<this.animations.length;o++)this.animations[o][r]=n}attachTimeline(r){const n=this.animations.map(o=>o.attachTimeline(r));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return ZX(this.animations,"duration")}get iterationDuration(){return ZX(this.animations,"iterationDuration")}runAll(r){this.animations.forEach(n=>n[r]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ZX(e,r){let n=0;for(let o=0;o<e.length;o++){const a=e[o][r];a!==null&&a>n&&(n=a)}return n}class xHe extends vHe{then(r,n){return this.finished.finally(r).then(()=>{})}}const wHe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kHe(e){const r=wHe.exec(e);if(!r)return[,];const[,n,o,a]=r;return[`--${n??o}`,a]}function QX(e,r,n=1){const[o,a]=kHe(e);if(!o)return;const i=window.getComputedStyle(r).getPropertyValue(o);if(i){const l=i.trim();return rX(l)?parseFloat(l):l}return xS(a)?QX(a,r,n+1):a}function YS(e,r){return e?.[r]??e?.default??e}const JX=new Set(["width","height","top","left","right","bottom",...cm]),_He={test:e=>e==="auto",parse:e=>e},eK=e=>r=>r.test(e),tK=[lm,kt,us,Au,mFe,fFe,_He],rK=e=>tK.find(eK(e));function EHe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oX(e):!0}const SHe=new Set(["brightness","contrast","saturate","opacity"]);function CHe(e){const[r,n]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[o]=n.match(wS)||[];if(!o)return e;const a=n.replace(o,"");let i=SHe.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}const THe=/\b([a-z-]*)\(.*?\)/gu,WS={...Nu,getAnimatableNone:e=>{const r=e.match(THe);return r?r.map(CHe).join(" "):e}},nK={...lm,transform:Math.round},RHe={rotate:Au,rotateX:Au,rotateY:Au,rotateZ:Au,scale:p2,scaleX:p2,scaleY:p2,scaleZ:p2,skew:Au,skewX:Au,skewY:Au,distance:kt,translateX:kt,translateY:kt,translateZ:kt,x:kt,y:kt,z:kt,perspective:kt,transformPerspective:kt,opacity:uy,originX:kX,originY:kX,originZ:kt},GS={borderWidth:kt,borderTopWidth:kt,borderRightWidth:kt,borderBottomWidth:kt,borderLeftWidth:kt,borderRadius:kt,radius:kt,borderTopLeftRadius:kt,borderTopRightRadius:kt,borderBottomRightRadius:kt,borderBottomLeftRadius:kt,width:kt,maxWidth:kt,height:kt,maxHeight:kt,top:kt,right:kt,bottom:kt,left:kt,padding:kt,paddingTop:kt,paddingRight:kt,paddingBottom:kt,paddingLeft:kt,margin:kt,marginTop:kt,marginRight:kt,marginBottom:kt,marginLeft:kt,backgroundPositionX:kt,backgroundPositionY:kt,...RHe,zIndex:nK,fillOpacity:uy,strokeOpacity:uy,numOctaves:nK},AHe={...GS,color:Tn,backgroundColor:Tn,outlineColor:Tn,fill:Tn,stroke:Tn,borderColor:Tn,borderTopColor:Tn,borderRightColor:Tn,borderBottomColor:Tn,borderLeftColor:Tn,filter:WS,WebkitFilter:WS},oK=e=>AHe[e];function aK(e,r){let n=oK(e);return n!==WS&&(n=Nu),n.getAnimatableNone?n.getAnimatableNone(r):void 0}const NHe=new Set(["auto","none","0"]);function DHe(e,r,n){let o=0,a;for(;o<e.length&&!a;){const i=e[o];typeof i=="string"&&!NHe.has(i)&&hy(i).values.length&&(a=e[o]),o++}if(a&&n)for(const i of r)e[i]=aK(n,a)}class PHe extends qS{constructor(r,n,o,a,i){super(r,n,o,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<r.length;c++){let u=r[c];if(typeof u=="string"&&(u=u.trim(),xS(u))){const d=QX(u,n.current);d!==void 0&&(r[c]=d),c===r.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!JX.has(o)||r.length!==2)return;const[a,i]=r,l=rK(a),s=rK(i);if(l!==s)if(HX(l)&&HX(s))for(let c=0;c<r.length;c++){const u=r[c];typeof u=="string"&&(r[c]=parseFloat(u))}else bp[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:n}=this,o=[];for(let a=0;a<r.length;a++)(r[a]===null||EHe(r[a]))&&o.push(a);o.length&&DHe(r,o,n)}measureInitialState(){const{element:r,unresolvedKeyframes:n,name:o}=this;if(!r||!r.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bp[o](r.measureViewportBox(),window.getComputedStyle(r.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&r.getValue(o,a).jump(a,!1)}measureEndState(){const{element:r,name:n,unresolvedKeyframes:o}=this;if(!r||!r.current)return;const a=r.getValue(n);a&&a.jump(this.measuredOrigin,!1);const i=o.length-1,l=o[i];o[i]=bp[n](r.measureViewportBox(),window.getComputedStyle(r.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,c])=>{r.getValue(s).set(c)}),this.resolveNoneKeyframes()}}function iK(e,r,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const a=n?.[e]??o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const lK=(e,r)=>r&&typeof e=="number"?r.transform(e):e;function sK(e){return nX(e)&&"offsetHeight"in e}const cK=30,$He=e=>!isNaN(parseFloat(e));class MHe{constructor(r,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const a=aa.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=n.owner}setCurrent(r){this.current=r,this.updatedAt=aa.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=$He(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,n){this.events[r]||(this.events[r]=new mS);const o=this.events[r].add(n);return r==="change"?()=>{o(),Ir.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,n){this.passiveEffect=r,this.stopPassiveEffect=n}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,n=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=aa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>cK)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cK);return aX(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(r){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=r(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xp(e,r){return new MHe(e,r)}const{schedule:XS}=vX(queueMicrotask,!1),ul={x:!1,y:!1};function uK(){return ul.x||ul.y}function OHe(e){return e==="x"||e==="y"?ul[e]?null:(ul[e]=!0,()=>{ul[e]=!1}):ul.x||ul.y?null:(ul.x=ul.y=!0,()=>{ul.x=ul.y=!1})}function dK(e,r){const n=iK(e),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[n,a,()=>o.abort()]}function pK(e){return!(e.pointerType==="touch"||uK())}function IHe(e,r,n={}){const[o,a,i]=dK(e,n),l=s=>{if(!pK(s))return;const{target:c}=s,u=r(c,s);if(typeof u!="function"||!c)return;const d=p=>{pK(p)&&(u(p),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,a)};return o.forEach(s=>{s.addEventListener("pointerenter",l,a)}),i}const hK=(e,r)=>r?e===r?!0:hK(e,r.parentElement):!1,KS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zHe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LHe(e){return zHe.has(e.tagName)||e.tabIndex!==-1}const m2=new WeakSet;function fK(e){return r=>{r.key==="Enter"&&e(r)}}function ZS(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const BHe=(e,r)=>{const n=e.currentTarget;if(!n)return;const o=fK(()=>{if(m2.has(n))return;ZS(n,"down");const a=fK(()=>{ZS(n,"up")}),i=()=>ZS(n,"cancel");n.addEventListener("keyup",a,r),n.addEventListener("blur",i,r)});n.addEventListener("keydown",o,r),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),r)};function mK(e){return KS(e)&&!uK()}function jHe(e,r,n={}){const[o,a,i]=dK(e,n),l=s=>{const c=s.currentTarget;if(!mK(s))return;m2.add(c);const u=r(c,s),d=(g,b)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),m2.has(c)&&m2.delete(c),mK(g)&&typeof u=="function"&&u(g,{success:b})},p=g=>{d(g,c===window||c===document||n.useGlobalTarget||hK(c,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",f,a)};return o.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",l,a),sK(s)&&(s.addEventListener("focus",c=>BHe(c,a)),!LHe(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function QS(e){return nX(e)&&"ownerSVGElement"in e}function gK(e){return QS(e)&&e.tagName==="svg"}const oo=e=>!!(e&&e.getVelocity),FHe=[...tK,Tn,Nu],HHe=e=>FHe.find(eK(e));function JS(e){return typeof e=="object"&&!Array.isArray(e)}function yK(e,r,n,o){return typeof e=="string"&&JS(r)?iK(e,n,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function qHe(e,r,n){return e*(r+1)}function bK(e,r,n,o){return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,e+parseFloat(r)):r==="<"?n:r.startsWith("<")?Math.max(0,n+parseFloat(r.slice(1))):o.get(r)??e}function UHe(e,r,n){for(let o=0;o<e.length;o++){const a=e[o];a.at>r&&a.at<n&&(c2(e,a),o--)}}function VHe(e,r,n,o,a,i){UHe(e,a,i);for(let l=0;l<r.length;l++)e.push({value:r[l],at:Fr(a,i,o[l]),easing:gX(n,l)})}function YHe(e,r){for(let n=0;n<e.length;n++)e[n]=e[n]/(r+1)}function WHe(e,r){return e.at===r.at?e.value===null?1:r.value===null?-1:0:e.at-r.at}const GHe="easeInOut";function XHe(e,{defaultTransition:r={},...n}={},o,a){const i=r.duration||.3,l=new Map,s=new Map,c={},u=new Map;let d=0,p=0,f=0;for(let g=0;g<e.length;g++){const b=e[g];if(typeof b=="string"){u.set(b,p);continue}else if(!Array.isArray(b)){u.set(b.name,bK(p,b.at,d,u));continue}let[x,w,k={}]=b;k.at!==void 0&&(p=bK(p,k.at,d,u));let C=0;const _=(T,R,A,D=0,N=0)=>{const $=KHe(T),{delay:O=0,times:j=zX($),type:L="keyframes",repeat:Y,repeatType:M,repeatDelay:q=0,...z}=R;let{ease:H=r.ease||"easeOut",duration:U}=R;const K=typeof O=="function"?O(D,N):O,V=$.length,X=US(L)?L:a?.[L||"keyframes"];if(V<=2&&X){let Q=100;if(V===2&&JHe($)){const te=$[1]-$[0];Q=Math.abs(te)}const J={...z};U!==void 0&&(J.duration=cl(U));const ne=$X(J,Q,X);H=ne.ease,U=ne.duration}U??(U=i);const Z=p+K;j.length===1&&j[0]===0&&(j[1]=1);const B=j.length-$.length;if(B>0&&IX(j,B),$.length===1&&$.unshift(null),Y){U=qHe(U,Y);const Q=[...$],J=[...j];H=Array.isArray(H)?[...H]:[H];const ne=[...H];for(let te=0;te<Y;te++){$.push(...Q);for(let ee=0;ee<Q.length;ee++)j.push(J[ee]+(te+1)),H.push(ee===0?"linear":gX(ne,ee-1))}YHe(j,Y)}const W=Z+U;VHe(A,$,H,j,Z,W),C=Math.max(K+U,C),f=Math.max(W,f)};if(oo(x)){const T=vK(x,s);_(w,k,xK("default",T))}else{const T=yK(x,w,o,c),R=T.length;for(let A=0;A<R;A++){w=w,k=k;const D=T[A],N=vK(D,s);for(const $ in w)_(w[$],ZHe(k,$),xK($,N),A,R)}}d=p,p+=C}return s.forEach((g,b)=>{for(const x in g){const w=g[x];w.sort(WHe);const k=[],C=[],_=[];for(let R=0;R<w.length;R++){const{at:A,value:D,easing:N}=w[R];k.push(D),C.push(im(0,f,A)),_.push(N||"easeOut")}C[0]!==0&&(C.unshift(0),k.unshift(k[0]),_.unshift(GHe)),C[C.length-1]!==1&&(C.push(1),k.push(null)),l.has(b)||l.set(b,{keyframes:{},transition:{}});const T=l.get(b);T.keyframes[x]=k,T.transition[x]={...r,duration:f,ease:_,times:C,...n}}}),l}function vK(e,r){return!r.has(e)&&r.set(e,{}),r.get(e)}function xK(e,r){return r[e]||(r[e]=[]),r[e]}function KHe(e){return Array.isArray(e)?e:[e]}function ZHe(e,r){return e&&e[r]?{...e,...e[r]}:{...e}}const QHe=e=>typeof e=="number",JHe=e=>e.every(QHe),yy=new WeakMap,eC=e=>Array.isArray(e);function wK(e){const r=[{},{}];return e?.values.forEach((n,o)=>{r[0][o]=n.get(),r[1][o]=n.getVelocity()}),r}function tC(e,r,n,o){if(typeof r=="function"){const[a,i]=wK(o);r=r(n!==void 0?n:e.custom,a,i)}if(typeof r=="string"&&(r=e.variants&&e.variants[r]),typeof r=="function"){const[a,i]=wK(o);r=r(n!==void 0?n:e.custom,a,i)}return r}function dm(e,r,n){const o=e.getProps();return tC(o,r,n!==void 0?n:o.custom,e)}function eqe(e,r,n){e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,xp(n))}function tqe(e){return eC(e)?e[e.length-1]||0:e}function rqe(e,r){const n=dm(e,r);let{transitionEnd:o={},transition:a={},...i}=n||{};i={...i,...o};for(const l in i){const s=tqe(i[l]);eqe(e,l,s)}}function nqe(e){return!!(oo(e)&&e.add)}function rC(e,r){const n=e.getValue("willChange");if(nqe(n))return n.add(r);if(!n&&lc.WillChange){const o=new lc.WillChange("auto");e.addValue("willChange",o),o.add(r)}}const nC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oqe="framerAppearId",kK="data-"+nC(oqe);function _K(e){return e.props[kK]}const aqe=e=>e!==null;function iqe(e,{repeat:r,repeatType:n="loop"},o){const a=e.filter(aqe),i=r&&n!=="loop"&&r%2===1?0:a.length-1;return a[i]}const lqe={type:"spring",stiffness:500,damping:25,restSpeed:10},sqe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cqe={type:"keyframes",duration:.8},uqe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dqe=(e,{keyframes:r})=>r.length>2?cqe:um.has(e)?e.startsWith("scale")?sqe(r[1]):lqe:uqe;function pqe({when:e,delay:r,delayChildren:n,staggerChildren:o,staggerDirection:a,repeat:i,repeatType:l,repeatDelay:s,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const oC=(e,r,n,o={},a,i)=>l=>{const s=YS(o,e)||{},c=s.delay||o.delay||0;let{elapsed:u=0}=o;u=u-cl(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:r.getVelocity(),...s,delay:-u,onUpdate:f=>{r.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{l(),s.onComplete&&s.onComplete()},name:e,motionValue:r,element:i?void 0:a};pqe(s)||Object.assign(d,dqe(e,d)),d.duration&&(d.duration=cl(d.duration)),d.repeatDelay&&(d.repeatDelay=cl(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(VS(d),d.delay===0&&(p=!0)),(lc.instantAnimations||lc.skipAnimations)&&(p=!0,VS(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,p&&!i&&r.get()!==void 0){const f=iqe(d.keyframes,s);if(f!==void 0){Ir.update(()=>{d.onUpdate(f),d.onComplete()});return}}return s.isSync?new OS(d):new bHe(d)};function hqe({protectedKeys:e,needsAnimating:r},n){const o=e.hasOwnProperty(n)&&r[n]!==!0;return r[n]=!1,o}function aC(e,r,{delay:n=0,transitionOverride:o,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:l,...s}=r;o&&(i=o);const c=[],u=a&&e.animationState&&e.animationState.getState()[a];for(const d in s){const p=e.getValue(d,e.latestValues[d]??null),f=s[d];if(f===void 0||u&&hqe(u,d))continue;const g={delay:n,...YS(i||{},d)},b=p.get();if(b!==void 0&&!p.isAnimating&&!Array.isArray(f)&&f===b&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const k=_K(e);if(k){const C=window.MotionHandoffAnimation(k,d,Ir);C!==null&&(g.startTime=C,x=!0)}}rC(e,d),p.start(oC(d,p,f,e.shouldReduceMotion&&JX.has(d)?{type:!1}:g,e,x));const w=p.animation;w&&c.push(w)}return l&&Promise.all(c).then(()=>{Ir.update(()=>{l&&rqe(e,l)})}),c}function EK({top:e,left:r,right:n,bottom:o}){return{x:{min:r,max:n},y:{min:e,max:o}}}function fqe({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function mqe(e,r){if(!r)return e;const n=r({x:e.left,y:e.top}),o=r({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function iC(e){return e===void 0||e===1}function lC({scale:e,scaleX:r,scaleY:n}){return!iC(e)||!iC(r)||!iC(n)}function wp(e){return lC(e)||SK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function SK(e){return CK(e.x)||CK(e.y)}function CK(e){return e&&e!=="0%"}function g2(e,r,n){const o=e-n,a=r*o;return n+a}function TK(e,r,n,o,a){return a!==void 0&&(e=g2(e,a,o)),g2(e,n,o)+r}function sC(e,r=0,n=1,o,a){e.min=TK(e.min,r,n,o,a),e.max=TK(e.max,r,n,o,a)}function RK(e,{x:r,y:n}){sC(e.x,r.translate,r.scale,r.originPoint),sC(e.y,n.translate,n.scale,n.originPoint)}const AK=.999999999999,NK=1.0000000000001;function gqe(e,r,n,o=!1){const a=n.length;if(!a)return;r.x=r.y=1;let i,l;for(let s=0;s<a;s++){i=n[s],l=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&hm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),l&&(r.x*=l.x.scale,r.y*=l.y.scale,RK(e,l)),o&&wp(i.latestValues)&&hm(e,i.latestValues))}r.x<NK&&r.x>AK&&(r.x=1),r.y<NK&&r.y>AK&&(r.y=1)}function pm(e,r){e.min=e.min+r,e.max=e.max+r}function DK(e,r,n,o,a=.5){const i=Fr(e.min,e.max,a);sC(e,r,n,i,o)}function hm(e,r){DK(e.x,r.x,r.scaleX,r.scale,r.originX),DK(e.y,r.y,r.scaleY,r.scale,r.originY)}function PK(e,r){return EK(mqe(e.getBoundingClientRect(),r))}function yqe(e,r,n){const o=PK(e,n),{scroll:a}=r;return a&&(pm(o.x,a.offset.x),pm(o.y,a.offset.y)),o}const $K={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},fm={};for(const e in $K)fm[e]={isEnabled:r=>$K[e].some(n=>!!r[n])};const MK=()=>({translate:0,scale:1,origin:0,originPoint:0}),mm=()=>({x:MK(),y:MK()}),OK=()=>({min:0,max:0}),rn=()=>({x:OK(),y:OK()}),cC=typeof window<"u",y2={current:null},uC={current:!1};function IK(){if(uC.current=!0,!!cC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>y2.current=e.matches;e.addEventListener("change",r),r()}else y2.current=!1}function b2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function by(e){return typeof e=="string"||Array.isArray(e)}const dC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pC=["initial",...dC];function v2(e){return b2(e.animate)||pC.some(r=>by(e[r]))}function zK(e){return!!(v2(e)||e.variants)}function bqe(e,r,n){for(const o in r){const a=r[o],i=n[o];if(oo(a))e.addValue(o,a);else if(oo(i))e.addValue(o,xp(a,{owner:e}));else if(i!==a)if(e.hasValue(o)){const l=e.getValue(o);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(o);e.addValue(o,xp(l!==void 0?l:a,{owner:e}))}}for(const o in n)r[o]===void 0&&e.removeValue(o);return r}const LK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class BK{scrapeMotionValuesFromProps(r,n,o){return{}}constructor({parent:r,props:n,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:i,visualState:l},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=aa.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Ir.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=l;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=r,this.props=n,this.presenceContext=o,this.depth=r?r.depth+1:0,this.reducedMotionConfig=a,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=v2(n),this.isVariantNode=zK(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in p){const g=p[f];c[f]!==void 0&&oo(g)&&g.set(c[f])}}mount(r){this.current=r,yy.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),uC.current||IK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:y2.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ru(this.notifyUpdate),Ru(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,n){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=um.has(r);o&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[r]=l,this.props.onUpdate&&Ir.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,r,n)),this.valueSubscriptions.set(r,()=>{a(),i&&i(),n.owner&&n.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in fm){const n=fm[r];if(!n)continue;const{isEnabled:o,Feature:a}=n;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const i=this.features[r];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rn()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,n){this.latestValues[r]=n}update(r,n){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<LK.length;o++){const a=LK[o];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,l=r[i];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=bqe(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(r),()=>n.variantChildren.delete(r)}addValue(r,n){const o=this.values.get(r);n!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,n),this.values.set(r,n),this.latestValues[r]=n.get())}removeValue(r){this.values.delete(r);const n=this.valueSubscriptions.get(r);n&&(n(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,n){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&n!==void 0&&(o=xp(n===null?void 0:n,{owner:this}),this.addValue(r,o)),o}readValue(r,n){let o=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return o!=null&&(typeof o=="string"&&(rX(o)||oX(o))?o=parseFloat(o):!HHe(o)&&Nu.test(n)&&(o=aK(r,n)),this.setBaseTarget(r,oo(o)?o.get():o)),oo(o)?o.get():o}setBaseTarget(r,n){this.baseTarget[r]=n}getBaseTarget(r){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=tC(this.props,n,this.presenceContext?.custom);i&&(o=i[r])}if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,r);return a!==void 0&&!oo(a)?a:this.initialValues[r]!==void 0&&o===void 0?void 0:this.baseTarget[r]}on(r,n){return this.events[r]||(this.events[r]=new mS),this.events[r].add(n)}notify(r,...n){this.events[r]&&this.events[r].notify(...n)}scheduleRenderMicrotask(){XS.render(this.render)}}class jK extends BK{constructor(){super(...arguments),this.KeyframeResolver=PHe}sortInstanceNodePosition(r,n){return r.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(r,n){return r.style?r.style[n]:void 0}removeValueFromRenderState(r,{vars:n,style:o}){delete n[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;oo(r)&&(this.childSubscription=r.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const vqe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xqe=cm.length;function wqe(e,r,n){let o="",a=!0;for(let i=0;i<xqe;i++){const l=cm[i],s=e[l];if(s===void 0)continue;let c=!0;if(typeof s=="number"?c=s===(l.startsWith("scale")?1:0):c=parseFloat(s)===0,!c||n){const u=lK(s,GS[l]);if(!c){a=!1;const d=vqe[l]||l;o+=`${d}(${u}) `}n&&(r[l]=u)}}return o=o.trim(),n?o=n(r,a?"":o):a&&(o="none"),o}function hC(e,r,n){const{style:o,vars:a,transformOrigin:i}=e;let l=!1,s=!1;for(const c in r){const u=r[c];if(um.has(c)){l=!0;continue}else if(vS(c)){a[c]=u;continue}else{const d=lK(u,GS[c]);c.startsWith("origin")?(s=!0,i[c]=d):o[c]=d}}if(r.transform||(l||n?o.transform=wqe(r,e.transform,n):o.transform&&(o.transform="none")),s){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${u} ${d}`}}function FK(e,{style:r,vars:n},o,a){const i=e.style;let l;for(l in r)i[l]=r[l];a?.applyProjectionStyles(i,o);for(l in n)i.setProperty(l,n[l])}const vy={};function kqe(e){for(const r in e)vy[r]=e[r],vS(r)&&(vy[r].isCSSVariable=!0)}function HK(e,{layout:r,layoutId:n}){return um.has(e)||e.startsWith("origin")||(r||n!==void 0)&&(!!vy[e]||e==="opacity")}function fC(e,r,n){const{style:o}=e,a={};for(const i in o)(oo(o[i])||r.style&&oo(r.style[i])||HK(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(a[i]=o[i]);return a}function _qe(e){return window.getComputedStyle(e)}class qK extends jK{constructor(){super(...arguments),this.type="html",this.renderInstance=FK}readValueFromInstance(r,n){if(um.has(n))return this.projection?.isProjecting?LS(n):XFe(r,n);{const o=_qe(r),a=(vS(n)?o.getPropertyValue(n):o[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(r,{transformPagePoint:n}){return PK(r,n)}build(r,n,o){hC(r,n,o.transformTemplate)}scrapeMotionValuesFromProps(r,n,o){return fC(r,n,o)}}function Eqe(e,r){return e in r}class Sqe extends BK{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,n){if(Eqe(n,r)){const o=r[n];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(r,n){delete n.output[r]}measureInstanceViewportBox(){return rn()}build(r,n){Object.assign(r.output,n)}renderInstance(r,{output:n}){Object.assign(r,n)}sortInstanceNodePosition(){return 0}}const Cqe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tqe={offset:"strokeDashoffset",array:"strokeDasharray"};function Rqe(e,r,n=1,o=0,a=!0){e.pathLength=1;const i=a?Cqe:Tqe;e[i.offset]=kt.transform(-o);const l=kt.transform(r),s=kt.transform(n);e[i.array]=`${l} ${s}`}function UK(e,{attrX:r,attrY:n,attrScale:o,pathLength:a,pathSpacing:i=1,pathOffset:l=0,...s},c,u,d){if(hC(e,s,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:f}=e;p.transform&&(f.transform=p.transform,delete p.transform),(f.transform||p.transformOrigin)&&(f.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete p.transformBox),r!==void 0&&(p.x=r),n!==void 0&&(p.y=n),o!==void 0&&(p.scale=o),a!==void 0&&Rqe(p,a,i,l,!1)}const VK=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),YK=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Aqe(e,r,n,o){FK(e,r,void 0,o);for(const a in r.attrs)e.setAttribute(VK.has(a)?a:nC(a),r.attrs[a])}function WK(e,r,n){const o=fC(e,r,n);for(const a in e)if(oo(e[a])||oo(r[a])){const i=cm.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[i]=e[a]}return o}class GK extends jK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(r,n){return r[n]}readValueFromInstance(r,n){if(um.has(n)){const o=oK(n);return o&&o.default||0}return n=VK.has(n)?n:nC(n),r.getAttribute(n)}scrapeMotionValuesFromProps(r,n,o){return WK(r,n,o)}build(r,n,o){UK(r,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(r,n,o,a){Aqe(r,n,o,a)}mount(r){this.isSVGTag=YK(r.tagName),super.mount(r)}}function Nqe(e){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=QS(e)&&!gK(e)?new GK(r):new qK(r);n.mount(e),yy.set(e,n)}function Dqe(e){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Sqe(r);n.mount(e),yy.set(e,n)}function XK(e,r,n){const o=oo(e)?e:xp(e);return o.start(oC("",o,r,n)),o.animation}function Pqe(e,r){return oo(e)||typeof e=="number"||typeof e=="string"&&!JS(r)}function KK(e,r,n,o){const a=[];if(Pqe(e,r))a.push(XK(e,JS(r)&&r.default||r,n&&(n.default||n)));else{const i=yK(e,r,o),l=i.length;for(let s=0;s<l;s++){const c=i[s],u=c instanceof Element?Nqe:Dqe;yy.has(c)||u(c);const d=yy.get(c),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(s,l)),a.push(...aC(d,{...r,transition:p},{}))}}return a}function $qe(e,r,n){const o=[];return XHe(e,r,n,{spring:fy}).forEach(({keyframes:a,transition:i},l)=>{o.push(...KK(l,a,i))}),o}function Mqe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Oqe(e){function r(n,o,a){let i=[],l;if(Mqe(n))i=$qe(n,o,e);else{const{onComplete:c,...u}=a||{};typeof c=="function"&&(l=c),i=KK(n,o,u,e)}const s=new xHe(i);return l&&s.finished.then(l),s}return r}const Iqe=Oqe();function zqe(e,r){const n=aa.now(),o=({timestamp:a})=>{const i=a-n;i>=r&&(Ru(o),e(i-r))};return Ir.setup(o,!0),()=>Ru(o)}const ZK=(e,r)=>Math.abs(e-r);function Lqe(e,r){const n=ZK(e.x,r.x),o=ZK(e.y,r.y);return Math.sqrt(n**2+o**2)}const xy=S.createContext({});function gm(e){const r=S.useRef(null);return r.current===null&&(r.current=e()),r.current}const mC=cC?S.useLayoutEffect:S.useEffect,x2=S.createContext(null),kp=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function QK(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Bqe(...e){return r=>{let n=!1;const o=e.map(a=>{const i=QK(a,r);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<o.length;a++){const i=o[a];typeof i=="function"?i():QK(e[a],null)}}}}function jqe(...e){return S.useCallback(Bqe(...e),e)}class Fqe extends S.Component{getSnapshotBeforeUpdate(r){const n=this.props.childRef.current;if(n&&r.isPresent&&!this.props.isPresent){const o=n.offsetParent,a=sK(o)&&o.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Hqe({children:e,isPresent:r,anchorX:n,root:o}){const a=S.useId(),i=S.useRef(null),l=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=S.useContext(kp),c=jqe(i,e?.ref);return S.useInsertionEffect(()=>{const{width:u,height:d,top:p,left:f,right:g}=l.current;if(r||!i.current||!u||!d)return;const b=n==="left"?`left: ${f}`:`right: ${g}`;i.current.dataset.motionPopId=a;const x=document.createElement("style");s&&(x.nonce=s);const w=o??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(`
          [data-motion-pop-id="${a}"] {
            position: absolute !important;
            width: ${u}px !important;
            height: ${d}px !important;
            ${b}px !important;
            top: ${p}px !important;
          }
        `),()=>{w.contains(x)&&w.removeChild(x)}},[r]),y.jsx(Fqe,{isPresent:r,childRef:i,sizeRef:l,children:S.cloneElement(e,{ref:c})})}const qqe=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:i,mode:l,anchorX:s,root:c})=>{const u=gm(Uqe),d=S.useId();let p=!0,f=S.useMemo(()=>(p=!1,{id:d,initial:r,isPresent:n,custom:a,onExitComplete:g=>{u.set(g,!0);for(const b of u.values())if(!b)return;o&&o()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,o]);return i&&p&&(f={...f}),S.useMemo(()=>{u.forEach((g,b)=>u.set(b,!1))},[n]),S.useEffect(()=>{!n&&!u.size&&o&&o()},[n]),l==="popLayout"&&(e=y.jsx(Hqe,{isPresent:n,anchorX:s,root:c,children:e})),y.jsx(x2.Provider,{value:f,children:e})};function Uqe(){return new Map}function JK(e=!0){const r=S.useContext(x2);if(r===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:a}=r,i=S.useId();S.useEffect(()=>{if(e)return a(i)},[e]);const l=S.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,l]:[!0]}const w2=e=>e.key||"";function eZ(e){const r=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&r.push(n)}),r}const Oa=({children:e,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:i="sync",propagate:l=!1,anchorX:s="left",root:c})=>{const[u,d]=JK(l),p=S.useMemo(()=>eZ(e),[e]),f=l&&!u?[]:p.map(w2),g=S.useRef(!0),b=S.useRef(p),x=gm(()=>new Map),[w,k]=S.useState(p),[C,_]=S.useState(p);mC(()=>{g.current=!1,b.current=p;for(let A=0;A<C.length;A++){const D=w2(C[A]);f.includes(D)?x.delete(D):x.get(D)!==!0&&x.set(D,!1)}},[C,f.length,f.join("-")]);const T=[];if(p!==w){let A=[...p];for(let D=0;D<C.length;D++){const N=C[D],$=w2(N);f.includes($)||(A.splice(D,0,N),T.push(N))}return i==="wait"&&T.length&&(A=T),_(eZ(A)),k(p),null}const{forceRender:R}=S.useContext(xy);return y.jsx(y.Fragment,{children:C.map(A=>{const D=w2(A),N=l&&!u?!1:p===C||f.includes(D),$=()=>{if(x.has(D))x.set(D,!0);else return;let O=!0;x.forEach(j=>{j||(O=!1)}),O&&(R?.(),_(b.current),l&&d?.(),o&&o())};return y.jsx(qqe,{isPresent:N,initial:!g.current||n?void 0:!1,custom:r,presenceAffectsLayout:a,mode:i,root:c,onExitComplete:N?void 0:$,anchorX:s,children:A},D)})})},Vqe=S.createContext(null);function Yqe(){const e=S.useRef(!1);return mC(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Wqe(){const e=Yqe(),[r,n]=S.useState(0),o=S.useCallback(()=>{e.current&&n(r+1)},[r]);return[S.useCallback(()=>Ir.postRender(o),[o]),r]}const Gqe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Xqe(){const e=new Set,r=new WeakMap,n=()=>e.forEach(Gqe);return{add:o=>{e.add(o),r.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const a=r.get(o);a&&(a(),r.delete(o)),n()},dirty:n}}const tZ=e=>e===!0,Kqe=e=>tZ(e===!0)||e==="id",ym=({children:e,id:r,inherit:n=!0})=>{const o=S.useContext(xy),a=S.useContext(Vqe),[i,l]=Wqe(),s=S.useRef(null),c=o.id||a;s.current===null&&(Kqe(n)&&c&&(r=r?c+"-"+r:c),s.current={id:r,group:tZ(n)&&o.group||Xqe()});const u=S.useMemo(()=>({...s.current,forceRender:i}),[l]);return y.jsx(xy.Provider,{value:u,children:e})},gC=S.createContext({strict:!1});function yC(e){for(const r in e)fm[r]={...fm[r],...e[r]}}function Zqe({children:e,features:r,strict:n=!1}){const[,o]=S.useState(!bC(r)),a=S.useRef(void 0);if(!bC(r)){const{renderer:i,...l}=r;a.current=i,yC(l)}return S.useEffect(()=>{bC(r)&&r().then(({renderer:i,...l})=>{yC(l),a.current=i,o(!0)})},[]),y.jsx(gC.Provider,{value:{renderer:a.current,strict:n},children:e})}function bC(e){return typeof e=="function"}const Qqe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function k2(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Qqe.has(e)}let rZ=e=>!k2(e);function nZ(e){typeof e=="function"&&(rZ=r=>r.startsWith("on")?!k2(r):e(r))}try{nZ(require("@emotion/is-prop-valid").default)}catch{}function Jqe(e,r,n){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(rZ(a)||n===!0&&k2(a)||!r&&!k2(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function eUe({children:e,isValidProp:r,...n}){r&&nZ(r),n={...S.useContext(kp),...n},n.isStatic=gm(()=>n.isStatic);const o=S.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return y.jsx(kp.Provider,{value:o,children:e})}const _2=S.createContext({});function tUe(e,r){if(v2(e)){const{initial:n,animate:o}=e;return{initial:n===!1||by(n)?n:void 0,animate:by(o)?o:void 0}}return e.inherit!==!1?r:{}}function rUe(e){const{initial:r,animate:n}=tUe(e,S.useContext(_2));return S.useMemo(()=>({initial:r,animate:n}),[oZ(r),oZ(n)])}function oZ(e){return Array.isArray(e)?e.join(" "):e}const vC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function aZ(e,r,n){for(const o in r)!oo(r[o])&&!HK(o,n)&&(e[o]=r[o])}function nUe({transformTemplate:e},r){return S.useMemo(()=>{const n=vC();return hC(n,r,e),Object.assign({},n.vars,n.style)},[r])}function oUe(e,r){const n=e.style||{},o={};return aZ(o,n,e),Object.assign(o,nUe(e,r)),o}function aUe(e,r){const n={},o=oUe(e,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const iZ=()=>({...vC(),attrs:{}});function iUe(e,r,n,o){const a=S.useMemo(()=>{const i=iZ();return UK(i,r,YK(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[r]);if(e.style){const i={};aZ(i,e.style,e),a.style={...i,...a.style}}return a}const lUe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function xC(e){return typeof e!="string"||e.includes("-")?!1:!!(lUe.indexOf(e)>-1||/[A-Z]/u.test(e))}function sUe(e,r,n,{latestValues:o},a,i=!1){const l=(xC(e)?iUe:aUe)(r,o,a,e),s=Jqe(r,typeof e=="string",i),c=e!==S.Fragment?{...s,...l,ref:n}:{},{children:u}=r,d=S.useMemo(()=>oo(u)?u.get():u,[u]);return S.createElement(e,{...c,children:d})}function E2(e){return oo(e)?e.get():e}function cUe({scrapeMotionValuesFromProps:e,createRenderState:r},n,o,a){return{latestValues:uUe(n,o,a,e),renderState:r()}}function uUe(e,r,n,o){const a={},i=o(e,{});for(const f in i)a[f]=E2(i[f]);let{initial:l,animate:s}=e;const c=v2(e),u=zK(e);r&&u&&!c&&e.inherit!==!1&&(l===void 0&&(l=r.initial),s===void 0&&(s=r.animate));let d=n?n.initial===!1:!1;d=d||l===!1;const p=d?s:l;if(p&&typeof p!="boolean"&&!b2(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g<f.length;g++){const b=tC(e,f[g]);if(b){const{transitionEnd:x,transition:w,...k}=b;for(const C in k){let _=k[C];if(Array.isArray(_)){const T=d?_.length-1:0;_=_[T]}_!==null&&(a[C]=_)}for(const C in x)a[C]=x[C]}}}return a}const lZ=e=>(r,n)=>{const o=S.useContext(_2),a=S.useContext(x2),i=()=>cUe(e,r,o,a);return n?i():gm(i)},dUe=lZ({scrapeMotionValuesFromProps:fC,createRenderState:vC}),pUe=lZ({scrapeMotionValuesFromProps:WK,createRenderState:iZ}),hUe=Symbol.for("motionComponentSymbol");function bm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fUe(e,r,n){return S.useCallback(o=>{o&&e.onMount&&e.onMount(o),r&&(o?r.mount(o):r.unmount()),n&&(typeof n=="function"?n(o):bm(n)&&(n.current=o))},[r])}const sZ=S.createContext({});function mUe(e,r,n,o,a){const{visualElement:i}=S.useContext(_2),l=S.useContext(gC),s=S.useContext(x2),c=S.useContext(kp).reducedMotion,u=S.useRef(null);o=o||l.renderer,!u.current&&o&&(u.current=o(e,{visualState:r,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,p=S.useContext(sZ);d&&!d.projection&&a&&(d.type==="html"||d.type==="svg")&&gUe(u.current,n,a,p);const f=S.useRef(!1);S.useInsertionEffect(()=>{d&&f.current&&d.update(n,s)});const g=n[kK],b=S.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return mC(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),b.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),b.current=!1),d.enteringChildren=void 0)}),d}function gUe(e,r,n,o){const{layoutId:a,layout:i,drag:l,dragConstraints:s,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=r;e.projection=new n(e.latestValues,r["data-framer-portal-id"]?void 0:cZ(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!l||s&&bm(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function cZ(e){if(e)return e.options.allowProjection!==!1?e.projection:cZ(e.parent)}function S2(e,{forwardMotionProps:r=!1}={},n,o){n&&yC(n);const a=xC(e)?pUe:dUe;function i(s,c){let u;const d={...S.useContext(kp),...s,layoutId:yUe(s)},{isStatic:p}=d,f=rUe(s),g=a(s,p);if(!p&&cC){bUe();const b=vUe(d);u=b.MeasureLayout,f.visualElement=mUe(e,g,d,o,b.ProjectionNode)}return y.jsxs(_2.Provider,{value:f,children:[u&&f.visualElement?y.jsx(u,{visualElement:f.visualElement,...d}):null,sUe(e,s,fUe(g,f.visualElement,c),g,p,r)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(i);return l[hUe]=e,l}function yUe({layoutId:e}){const r=S.useContext(xy).id;return r&&e!==void 0?r+"-"+e:e}function bUe(e,r){S.useContext(gC).strict}function vUe(e){const{drag:r,layout:n}=fm;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function xUe(e,r){if(typeof Proxy>"u")return S2;const n=new Map,o=(i,l)=>S2(i,l,e,r),a=(i,l)=>o(i,l);return new Proxy(a,{get:(i,l)=>l==="create"?o:(n.has(l)||n.set(l,S2(l,void 0,e,r)),n.get(l))})}const dl=xUe(),wUe=(e,r)=>xC(e)?new GK(r):new qK(r,{allowProjection:e!==S.Fragment});function uZ(e,r,n,o=0,a=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(r),l=e.size,s=(l-1)*o;return typeof n=="function"?n(i,l):a===1?i*o:s-i*o}function wC(e,r,n={}){const o=dm(e,r,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(aC(e,o,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:p}=a;return kUe(e,r,c,u,d,p,n)}:()=>Promise.resolve(),{when:s}=a;if(s){const[c,u]=s==="beforeChildren"?[i,l]:[l,i];return c().then(()=>u())}else return Promise.all([i(),l(n.delay)])}function kUe(e,r,n=0,o=0,a=0,i=1,l){const s=[];for(const c of e.variantChildren)c.notify("AnimationStart",r),s.push(wC(c,r,{...l,delay:n+(typeof o=="function"?0:o)+uZ(e.variantChildren,c,o,a,i)}).then(()=>c.notify("AnimationComplete",r)));return Promise.all(s)}function _Ue(e,r,n={}){e.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(i=>wC(e,i,n));o=Promise.all(a)}else if(typeof r=="string")o=wC(e,r,n);else{const a=typeof r=="function"?dm(e,r,n.custom):r;o=Promise.all(aC(e,a,n))}return o.then(()=>{e.notify("AnimationComplete",r)})}function dZ(e,r){if(!Array.isArray(r))return!1;const n=r.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(r[o]!==e[o])return!1;return!0}const EUe=pC.length;function pZ(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?pZ(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const r={};for(let n=0;n<EUe;n++){const o=pC[n],a=e.props[o];(by(a)||a===!1)&&(r[o]=a)}return r}const SUe=[...dC].reverse(),CUe=dC.length;function TUe(e){return r=>Promise.all(r.map(({animation:n,options:o})=>_Ue(e,n,o)))}function RUe(e){let r=TUe(e),n=hZ(),o=!0;const a=c=>(u,d)=>{const p=dm(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(p){const{transition:f,transitionEnd:g,...b}=p;u={...u,...b,...g}}return u};function i(c){r=c(e)}function l(c){const{props:u}=e,d=pZ(e.parent)||{},p=[],f=new Set;let g={},b=1/0;for(let w=0;w<CUe;w++){const k=SUe[w],C=n[k],_=u[k]!==void 0?u[k]:d[k],T=by(_),R=k===c?C.isActive:null;R===!1&&(b=w);let A=_===d[k]&&_!==u[k]&&T;if(A&&o&&e.manuallyAnimateOnMount&&(A=!1),C.protectedKeys={...g},!C.isActive&&R===null||!_&&!C.prevProp||b2(_)||typeof _=="boolean")continue;const D=AUe(C.prevProp,_);let N=D||k===c&&C.isActive&&!A&&T||w>b&&T,$=!1;const O=Array.isArray(_)?_:[_];let j=O.reduce(a(k),{});R===!1&&(j={});const{prevResolvedValues:L={}}=C,Y={...L,...j},M=z=>{N=!0,f.has(z)&&($=!0,f.delete(z)),C.needsAnimating[z]=!0;const H=e.getValue(z);H&&(H.liveStyle=!1)};for(const z in Y){const H=j[z],U=L[z];if(g.hasOwnProperty(z))continue;let K=!1;eC(H)&&eC(U)?K=!dZ(H,U):K=H!==U,K?H!=null?M(z):f.add(z):H!==void 0&&f.has(z)?M(z):C.protectedKeys[z]=!0}C.prevProp=_,C.prevResolvedValues=j,C.isActive&&(g={...g,...j}),o&&e.blockInitialAnimation&&(N=!1);const q=A&&D;N&&(!q||$)&&p.push(...O.map(z=>{const H={type:k};if(typeof z=="string"&&o&&!q&&e.manuallyAnimateOnMount&&e.parent){const{parent:U}=e,K=dm(U,z);if(U.enteringChildren&&K){const{delayChildren:V}=K.transition||{};H.delay=uZ(U.enteringChildren,e,V)}}return{animation:z,options:H}}))}if(f.size){const w={};if(typeof u.initial!="boolean"){const k=dm(e,Array.isArray(u.initial)?u.initial[0]:u.initial);k&&k.transition&&(w.transition=k.transition)}f.forEach(k=>{const C=e.getBaseTarget(k),_=e.getValue(k);_&&(_.liveStyle=!0),w[k]=C??null}),p.push({animation:w})}let x=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,x?r(p):Promise.resolve()}function s(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(c,u)),n[c].isActive=u;const d=l(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:l,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=hZ()}}}function AUe(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!dZ(r,e):!1}function _p(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hZ(){return{animate:_p(!0),whileInView:_p(),whileHover:_p(),whileTap:_p(),whileDrag:_p(),whileFocus:_p(),exit:_p()}}class Du{constructor(r){this.isMounted=!1,this.node=r}update(){}}class NUe extends Du{constructor(r){super(r),r.animationState||(r.animationState=RUe(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();b2(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:n}=this.node.prevProps||{};r!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let DUe=0;class PUe extends Du{constructor(){super(...arguments),this.id=DUe++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);n&&!r&&a.then(()=>{n(this.id)})}mount(){const{register:r,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const $Ue={animation:{Feature:NUe},exit:{Feature:PUe}};function wy(e,r,n,o={passive:!0}){return e.addEventListener(r,n,o),()=>e.removeEventListener(r,n)}function ky(e){return{point:{x:e.pageX,y:e.pageY}}}const MUe=e=>r=>KS(r)&&e(r,ky(r));function _y(e,r,n,o){return wy(e,r,MUe(n),o)}const fZ=1e-4,OUe=1-fZ,IUe=1+fZ,mZ=.01,zUe=0-mZ,LUe=0+mZ;function Yo(e){return e.max-e.min}function BUe(e,r,n){return Math.abs(e-r)<=n}function gZ(e,r,n,o=.5){e.origin=o,e.originPoint=Fr(r.min,r.max,e.origin),e.scale=Yo(n)/Yo(r),e.translate=Fr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=OUe&&e.scale<=IUe||isNaN(e.scale))&&(e.scale=1),(e.translate>=zUe&&e.translate<=LUe||isNaN(e.translate))&&(e.translate=0)}function Ey(e,r,n,o){gZ(e.x,r.x,n.x,o?o.originX:void 0),gZ(e.y,r.y,n.y,o?o.originY:void 0)}function yZ(e,r,n){e.min=n.min+r.min,e.max=e.min+Yo(r)}function jUe(e,r,n){yZ(e.x,r.x,n.x),yZ(e.y,r.y,n.y)}function bZ(e,r,n){e.min=r.min-n.min,e.max=e.min+Yo(r)}function Sy(e,r,n){bZ(e.x,r.x,n.x),bZ(e.y,r.y,n.y)}function gi(e){return[e("x"),e("y")]}const vZ=({current:e})=>e?e.ownerDocument.defaultView:null;class xZ{constructor(r,n,{transformPagePoint:o,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=_C(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=Lqe(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!b)return;const{point:x}=f,{timestamp:w}=yo;this.history.push({...x,timestamp:w});const{onStart:k,onMove:C}=this.handlers;g||(k&&k(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=kC(g,this.transformPagePoint),Ir.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=_C(f.type==="pointercancel"?this.lastMoveEventInfo:kC(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(f,k),x&&x(f,k)},!KS(r))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=l,this.contextWindow=a||window;const s=ky(r),c=kC(s,this.transformPagePoint),{point:u}=c,{timestamp:d}=yo;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(r,_C(c,this.history)),this.removeListeners=sy(_y(this.contextWindow,"pointermove",this.handlePointerMove),_y(this.contextWindow,"pointerup",this.handlePointerUp),_y(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),Ru(this.updatePoint)}}function kC(e,r){return r?{point:r(e.point)}:e}function wZ(e,r){return{x:e.x-r.x,y:e.y-r.y}}function _C({point:e},r){return{point:e,delta:wZ(e,kZ(r)),offset:wZ(e,FUe(r)),velocity:HUe(r,.1)}}function FUe(e){return e[0]}function kZ(e){return e[e.length-1]}function HUe(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const a=kZ(e);for(;n>=0&&(o=e[n],!(a.timestamp-o.timestamp>cl(r)));)n--;if(!o)return{x:0,y:0};const i=mi(a.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const l={x:(a.x-o.x)/i,y:(a.y-o.y)/i};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function qUe(e,{min:r,max:n},o){return r!==void 0&&e<r?e=o?Fr(r,e,o.min):Math.max(e,r):n!==void 0&&e>n&&(e=o?Fr(n,e,o.max):Math.min(e,n)),e}function _Z(e,r,n){return{min:r!==void 0?e.min+r:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function UUe(e,{top:r,left:n,bottom:o,right:a}){return{x:_Z(e.x,n,a),y:_Z(e.y,r,o)}}function EZ(e,r){let n=r.min-e.min,o=r.max-e.max;return r.max-r.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function VUe(e,r){return{x:EZ(e.x,r.x),y:EZ(e.y,r.y)}}function YUe(e,r){let n=.5;const o=Yo(e),a=Yo(r);return a>o?n=im(r.min,r.max-o,e.min):o>a&&(n=im(e.min,e.max-a,r.min)),ic(0,1,n)}function WUe(e,r){const n={};return r.min!==void 0&&(n.min=r.min-e.min),r.max!==void 0&&(n.max=r.max-e.min),n}const EC=.35;function GUe(e=EC){return e===!1?e=0:e===!0&&(e=EC),{x:SZ(e,"left","right"),y:SZ(e,"top","bottom")}}function SZ(e,r,n){return{min:CZ(e,r),max:CZ(e,n)}}function CZ(e,r){return typeof e=="number"?e:e[r]||0}const XUe=new WeakMap;class KUe{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ky(p).point)},l=(p,f)=>{const{drag:g,dragPropagation:b,onDragStart:x}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=OHe(g),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gi(k=>{let C=this.getAxisMotionValue(k).get()||0;if(us.test(C)){const{projection:_}=this.visualElement;if(_&&_.layout){const T=_.layout.layoutBox[k];T&&(C=Yo(T)*(parseFloat(C)/100))}}this.originPoint[k]=C}),x&&Ir.postRender(()=>x(p,f)),rC(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},s=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:x,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:k}=f;if(b&&this.currentDirection===null){this.currentDirection=ZUe(k),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,k),this.updateAxis("y",f.point,k),this.visualElement.render(),w&&w(p,f)},c=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f,this.stop(p,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>gi(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new xZ(r,{onSessionStart:i,onStart:l,onMove:s,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:vZ(this.visualElement)})}stop(r,n){const o=r||this.latestPointerEvent,a=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!o)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:s}=this.getProps();s&&Ir.postRender(()=>s(o,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:n}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(r,n,o){const{drag:a}=this.getProps();if(!o||!C2(r,a,this.currentDirection))return;const i=this.getAxisMotionValue(r);let l=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(l=qUe(l,this.constraints[r],this.elastic[r])),i.set(l)}resolveConstraints(){const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;r&&bm(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=UUe(o.layoutBox,r):this.constraints=!1,this.elastic=GUe(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&gi(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=WUe(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!bm(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=yqe(o,a.root,this.visualElement.getTransformPagePoint());let l=VUe(a.layout.layoutBox,i);if(n){const s=n(fqe(l));this.hasMutatedConstraints=!!s,s&&(l=EK(s))}return l}startAnimation(r){const{drag:n,dragMomentum:o,dragElastic:a,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},u=gi(d=>{if(!C2(d,n,this.currentDirection))return;let p=c&&c[d]||{};l&&(p={min:0,max:0});const f=a?200:1e6,g=a?40:1e7,b={type:"inertia",velocity:o?r[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...p};return this.startAxisValueAnimation(d,b)});return Promise.all(u).then(s)}startAxisValueAnimation(r,n){const o=this.getAxisMotionValue(r);return rC(this.visualElement,r),o.start(oC(r,o,0,n,this.visualElement,!1))}stopAnimation(){gi(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){gi(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const n=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[n]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){gi(n=>{const{drag:o}=this.getProps();if(!C2(n,o,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:s}=a.layout.layoutBox[n];i.set(r[n]-Fr(l,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!bm(n)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};gi(l=>{const s=this.getAxisMotionValue(l);if(s&&this.constraints!==!1){const c=s.get();a[l]=YUe({min:c,max:c},this.constraints[l])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),gi(l=>{if(!C2(l,r,null))return;const s=this.getAxisMotionValue(l),{min:c,max:u}=this.constraints[l];s.set(Fr(c,u,a[l]))})}addListeners(){if(!this.visualElement.current)return;XUe.set(this.visualElement,this);const r=this.visualElement.current,n=_y(r,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();bm(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Ir.read(o);const l=wy(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(gi(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=c[d].translate,p.set(p.get()+c[d].translate))}),this.visualElement.render())}));return()=>{l(),n(),i(),s&&s()}}getProps(){const r=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:l=EC,dragMomentum:s=!0}=r;return{...r,drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:i,dragElastic:l,dragMomentum:s}}}function C2(e,r,n){return(r===!0||r===e)&&(n===null||n===e)}function ZUe(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}class QUe extends Du{constructor(r){super(r),this.removeGroupControls=fi,this.removeListeners=fi,this.controls=new KUe(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fi}unmount(){this.removeGroupControls(),this.removeListeners()}}const TZ=e=>(r,n)=>{e&&Ir.postRender(()=>e(r,n))};class JUe extends Du{constructor(){super(...arguments),this.removePointerDownListener=fi}onPointerDown(r){this.session=new xZ(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vZ(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:n,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:TZ(r),onStart:TZ(n),onMove:o,onEnd:(i,l)=>{delete this.session,a&&Ir.postRender(()=>a(i,l))}}}mount(){this.removePointerDownListener=_y(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const T2={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RZ(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const Cy={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if(kt.test(e))e=parseFloat(e);else return e;const n=RZ(e,r.target.x),o=RZ(e,r.target.y);return`${n}% ${o}%`}},eVe={correct:(e,{treeScale:r,projectionDelta:n})=>{const o=e,a=Nu.parse(e);if(a.length>5)return o;const i=Nu.createTransformer(e),l=typeof a[0]!="number"?1:0,s=n.x.scale*r.x,c=n.y.scale*r.y;a[0+l]/=s,a[1+l]/=c;const u=Fr(s,c,.5);return typeof a[2+l]=="number"&&(a[2+l]/=u),typeof a[3+l]=="number"&&(a[3+l]/=u),i(a)}};let SC=!1;class tVe extends S.Component{componentDidMount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o,layoutId:a}=this.props,{projection:i}=r;kqe(rVe),i&&(n.group&&n.group.add(i),o&&o.register&&a&&o.register(i),SC&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),T2.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:n,visualElement:o,drag:a,isPresent:i}=this.props,{projection:l}=o;return l&&(l.isPresent=i,SC=!0,a||r.layoutDependency!==n||n===void 0||r.isPresent!==i?l.willUpdate():this.safeToRemove(),r.isPresent!==i&&(i?l.promote():l.relegate()||Ir.postRender(()=>{const s=l.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),XS.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:a}=r;SC=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function AZ(e){const[r,n]=JK(),o=S.useContext(xy);return y.jsx(tVe,{...e,layoutGroup:o,switchLayoutGroup:S.useContext(sZ),isPresent:r,safeToRemove:n})}const rVe={borderRadius:{...Cy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cy,borderTopRightRadius:Cy,borderBottomLeftRadius:Cy,borderBottomRightRadius:Cy,boxShadow:eVe},nVe=(e,r)=>e.depth-r.depth;class oVe{constructor(){this.children=[],this.isDirty=!1}add(r){pS(this.children,r),this.isDirty=!0}remove(r){c2(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(nVe),this.isDirty=!1,this.children.forEach(r)}}const NZ=["TopLeft","TopRight","BottomLeft","BottomRight"],aVe=NZ.length,DZ=e=>typeof e=="string"?parseFloat(e):e,PZ=e=>typeof e=="number"||kt.test(e);function iVe(e,r,n,o,a,i){a?(e.opacity=Fr(0,n.opacity??1,lVe(o)),e.opacityExit=Fr(r.opacity??1,0,sVe(o))):i&&(e.opacity=Fr(r.opacity??1,n.opacity??1,o));for(let l=0;l<aVe;l++){const s=`border${NZ[l]}Radius`;let c=$Z(r,s),u=$Z(n,s);c===void 0&&u===void 0||(c||(c=0),u||(u=0),c===0||u===0||PZ(c)===PZ(u)?(e[s]=Math.max(Fr(DZ(c),DZ(u),o),0),(us.test(u)||us.test(c))&&(e[s]+="%")):e[s]=u)}(r.rotate||n.rotate)&&(e.rotate=Fr(r.rotate||0,n.rotate||0,o))}function $Z(e,r){return e[r]!==void 0?e[r]:e.borderRadius}const lVe=MZ(0,.5,pX),sVe=MZ(.5,.95,fi);function MZ(e,r,n){return o=>o<e?0:o>r?1:n(im(e,r,o))}function OZ(e,r){e.min=r.min,e.max=r.max}function yi(e,r){OZ(e.x,r.x),OZ(e.y,r.y)}function IZ(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function zZ(e,r,n,o,a){return e-=r,e=g2(e,1/n,o),a!==void 0&&(e=g2(e,1/a,o)),e}function cVe(e,r=0,n=1,o=.5,a,i=e,l=e){if(us.test(r)&&(r=parseFloat(r),r=Fr(l.min,l.max,r/100)-l.min),typeof r!="number")return;let s=Fr(i.min,i.max,o);e===i&&(s-=r),e.min=zZ(e.min,r,n,s,a),e.max=zZ(e.max,r,n,s,a)}function LZ(e,r,[n,o,a],i,l){cVe(e,r[n],r[o],r[a],r.scale,i,l)}const uVe=["x","scaleX","originX"],dVe=["y","scaleY","originY"];function BZ(e,r,n,o){LZ(e.x,r,uVe,n?n.x:void 0,o?o.x:void 0),LZ(e.y,r,dVe,n?n.y:void 0,o?o.y:void 0)}function jZ(e){return e.translate===0&&e.scale===1}function FZ(e){return jZ(e.x)&&jZ(e.y)}function HZ(e,r){return e.min===r.min&&e.max===r.max}function pVe(e,r){return HZ(e.x,r.x)&&HZ(e.y,r.y)}function qZ(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function UZ(e,r){return qZ(e.x,r.x)&&qZ(e.y,r.y)}function VZ(e){return Yo(e.x)/Yo(e.y)}function YZ(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class hVe{constructor(){this.members=[]}add(r){pS(this.members,r),r.scheduleRender()}remove(r){if(c2(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(r){const n=this.members.findIndex(a=>r===a);if(n===0)return!1;let o;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(r,n){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,n&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:n,resumingFrom:o}=r;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fVe(e,r,n){let o="";const a=e.x.translate/r.x,i=e.y.translate/r.y,l=n?.z||0;if((a||i||l)&&(o=`translate3d(${a}px, ${i}px, ${l}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:g,skewY:b}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),b&&(o+=`skewY(${b}deg) `)}const s=e.x.scale*r.x,c=e.y.scale*r.y;return(s!==1||c!==1)&&(o+=`scale(${s}, ${c})`),o||"none"}const CC=["","X","Y","Z"],mVe=1e3;let gVe=0;function TC(e,r,n,o){const{latestValues:a}=r;a[e]&&(n[e]=a[e],r.setStaticValue(e,0),o&&(o[e]=0))}function WZ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const n=_K(r);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ir,!(a||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&WZ(o)}function GZ({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},l=r?.()){this.id=gVe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(vVe),this.nodes.forEach(_Ve),this.nodes.forEach(EVe),this.nodes.forEach(xVe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let s=0;s<this.path.length;s++)this.path[s].shouldResetTransform=!0;this.root===this&&(this.nodes=new oVe)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new mS),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const s=this.eventHandlers.get(i);s&&s.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=QS(i)&&!gK(i),this.instance=i;const{layoutId:l,layout:s,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||l)&&(this.isLayoutDirty=!0),e){let u,d=0;const p=()=>this.root.updateBlockedByResize=!1;Ir.read(()=>{d=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=zqe(p,250),T2.hasAnimatedSinceResize&&(T2.hasAnimatedSinceResize=!1,this.nodes.forEach(ZZ)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||s)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||AVe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=c.getProps(),w=!this.targetLayout||!UZ(this.targetLayout,f),k=!d&&p;if(this.options.layoutRoot||this.resumeFrom||k||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...YS(g,"layout"),onPlay:b,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(u,k)}else d||ZZ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ru(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(SVe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&WZ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:l,layout:s}=this.options;if(l===void 0&&!s)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(XZ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(KZ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kVe),this.nodes.forEach(yVe),this.nodes.forEach(bVe)):this.nodes.forEach(KZ),this.clearAllSnapshots();const i=aa.now();yo.delta=ic(0,16.666666666666668,i-yo.timestamp),yo.timestamp=i,yo.isProcessing=!0,bS.update.process(yo),bS.preRender.process(yo),bS.render.process(yo),yo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,XS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wVe),this.sharedNodes.forEach(CVe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ir.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ir.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yo(this.snapshot.measuredBox.x)&&!Yo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let s=0;s<this.path.length;s++)this.path[s].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&this.instance){const s=o(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:s,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:s}}}resetTransform(){if(!a)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!FZ(this.projectionDelta),s=this.getTransformTemplate(),c=s?s(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;i&&this.instance&&(l||wp(this.latestValues)||u)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let s=this.removeElementScroll(l);return i&&(s=this.removeTransform(s)),NVe(s),{animationId:this.root.animationId,measuredBox:l,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return rn();const l=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(DVe))){const{scroll:s}=this.root;s&&(pm(l.x,s.offset.x),pm(l.y,s.offset.y))}return l}removeElementScroll(i){const l=rn();if(yi(l,i),this.scroll?.wasRoot)return l;for(let s=0;s<this.path.length;s++){const c=this.path[s],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&yi(l,i),pm(l.x,u.offset.x),pm(l.y,u.offset.y))}return l}applyTransform(i,l=!1){const s=rn();yi(s,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&hm(s,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),wp(u.latestValues)&&hm(s,u.latestValues)}return wp(this.latestValues)&&hm(s,this.latestValues),s}removeTransform(i){const l=rn();yi(l,i);for(let s=0;s<this.path.length;s++){const c=this.path[s];if(!c.instance||!wp(c.latestValues))continue;lC(c.latestValues)&&c.updateSnapshot();const u=rn(),d=c.measurePageBox();yi(u,d),BZ(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return wp(this.latestValues)&&BZ(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const s=!!this.resumingFrom||this!==l;if(!(i||s&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:u}=this.options;if(!(!this.layout||!(c||u))){if(this.resolvedRelativeTargetAt=yo.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Sy(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),yi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rn(),this.targetWithTransforms=rn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jUe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yi(this.target,this.layout.layoutBox),RK(this.target,this.targetDelta)):yi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rn(),this.relativeTargetOrigin=rn(),Sy(this.relativeTargetOrigin,this.target,d.target),yi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||lC(this.parent.latestValues)||SK(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const i=this.getLead(),l=!!this.resumingFrom||this!==i;let s=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(s=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===yo.timestamp&&(s=!1),s)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;yi(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;gqe(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=rn());const{target:f}=i;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(IZ(this.prevProjectionDelta.x,this.projectionDelta.x),IZ(this.prevProjectionDelta.y,this.projectionDelta.y)),Ey(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!YZ(this.projectionDelta.x,this.prevProjectionDelta.x)||!YZ(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mm(),this.projectionDelta=mm(),this.projectionDeltaWithTransform=mm()}setAnimationOrigin(i,l=!1){const s=this.snapshot,c=s?s.latestValues:{},u={...this.latestValues},d=mm();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=rn(),f=s?s.source:void 0,g=this.layout?this.layout.source:void 0,b=f!==g,x=this.getStack(),w=!x||x.members.length<=1,k=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(RVe));this.animationProgress=0;let C;this.mixTargetDelta=_=>{const T=_/1e3;QZ(d.x,i.x,T),QZ(d.y,i.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sy(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),TVe(this.relativeTarget,this.relativeTargetOrigin,p,T),C&&pVe(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=rn()),yi(C,this.relativeTarget)),b&&(this.animationValues=u,iVe(u,c,this.latestValues,T,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ru(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ir.update(()=>{T2.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xp(0)),this.currentAnimation=XK(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mVe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:s,layout:c,latestValues:u}=i;if(!(!l||!s||!c)){if(this!==i&&this.layout&&c&&nQ(this.options.animationType,this.layout.layoutBox,c.layoutBox)){s=this.target||rn();const d=Yo(this.layout.layoutBox.x);s.x.min=i.target.x.min,s.x.max=s.x.min+d;const p=Yo(this.layout.layoutBox.y);s.y.min=i.target.y.min,s.y.max=s.y.min+p}yi(l,s),hm(l,u),Ey(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new hVe),this.sharedNodes.get(i).add(l);const s=l.options.initialPromotionConfig;l.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:s}={}){const c=this.getStack();c&&c.promote(this,s),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:s}=i;if((s.z||s.rotate||s.rotateX||s.rotateY||s.rotateZ||s.skewX||s.skewY)&&(l=!0),!l)return;const c={};s.z&&TC("z",i,c,this.animationValues);for(let u=0;u<CC.length;u++)TC(`rotate${CC[u]}`,i,c,this.animationValues),TC(`skew${CC[u]}`,i,c,this.animationValues);i.render();for(const u in c)i.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const s=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=E2(l?.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=E2(l?.pointerEvents)||""),this.hasProjected&&!wp(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=fVe(this.projectionDeltaWithTransform,this.treeScale,u);s&&(d=s(u,d)),i.transform=d;const{x:p,y:f}=this.projectionDelta;i.transformOrigin=`${p.origin*100}% ${f.origin*100}% 0`,c.animationValues?i.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in vy){if(u[g]===void 0)continue;const{correct:b,applyTo:x,isCSSVariable:w}=vy[g],k=d==="none"?u[g]:b(u[g],c);if(x){const C=x.length;for(let _=0;_<C;_++)i[x[_]]=k}else w?this.options.visualElement.renderState.vars[g]=k:i[g]=k}this.options.layoutId&&(i.pointerEvents=c===this?E2(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(XZ),this.root.sharedNodes.clear()}}}function yVe(e){e.updateLayout()}function bVe(e){const r=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;a==="size"?gi(d=>{const p=i?r.measuredBox[d]:r.layoutBox[d],f=Yo(p);p.min=n[d].min,p.max=p.min+f}):nQ(a,r.layoutBox,n)&&gi(d=>{const p=i?r.measuredBox[d]:r.layoutBox[d],f=Yo(n[d]);p.max=p.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const l=mm();Ey(l,n,r.layoutBox);const s=mm();i?Ey(s,e.applyTransform(o,!0),r.measuredBox):Ey(s,n,r.layoutBox);const c=!FZ(l);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:f}=d;if(p&&f){const g=rn();Sy(g,r.layoutBox,p.layoutBox);const b=rn();Sy(b,n,f.layoutBox),UZ(g,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:s,layoutDelta:l,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function vVe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xVe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wVe(e){e.clearSnapshot()}function XZ(e){e.clearMeasurements()}function KZ(e){e.isLayoutDirty=!1}function kVe(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _Ve(e){e.resolveTargetDelta()}function EVe(e){e.calcProjection()}function SVe(e){e.resetSkewAndRotation()}function CVe(e){e.removeLeadSnapshot()}function QZ(e,r,n){e.translate=Fr(r.translate,0,n),e.scale=Fr(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function JZ(e,r,n,o){e.min=Fr(r.min,n.min,o),e.max=Fr(r.max,n.max,o)}function TVe(e,r,n,o){JZ(e.x,r.x,n.x,o),JZ(e.y,r.y,n.y,o)}function RVe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const AVe={duration:.45,ease:[.4,0,.1,1]},eQ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tQ=eQ("applewebkit/")&&!eQ("chrome/")?Math.round:fi;function rQ(e){e.min=tQ(e.min),e.max=tQ(e.max)}function NVe(e){rQ(e.x),rQ(e.y)}function nQ(e,r,n){return e==="position"||e==="preserve-aspect"&&!BUe(VZ(r),VZ(n),.2)}function DVe(e){return e!==e.root&&e.scroll?.wasRoot}const PVe=GZ({attachResizeListener:(e,r)=>wy(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),RC={current:void 0},oQ=GZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!RC.current){const e=new PVe({});e.mount(window),e.setOptions({layoutScroll:!0}),RC.current=e}return RC.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$Ve={pan:{Feature:JUe},drag:{Feature:QUe,ProjectionNode:oQ,MeasureLayout:AZ}};function aQ(e,r,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=o[a];i&&Ir.postRender(()=>i(r,ky(r)))}class MVe extends Du{mount(){const{current:r}=this.node;r&&(this.unmount=IHe(r,(n,o)=>(aQ(this.node,o,"Start"),a=>aQ(this.node,a,"End"))))}unmount(){}}class OVe extends Du{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sy(wy(this.node.current,"focus",()=>this.onFocus()),wy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function iQ(e,r,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=o[a];i&&Ir.postRender(()=>i(r,ky(r)))}class IVe extends Du{mount(){const{current:r}=this.node;r&&(this.unmount=jHe(r,(n,o)=>(iQ(this.node,o,"Start"),(a,{success:i})=>iQ(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const AC=new WeakMap,NC=new WeakMap,zVe=e=>{const r=AC.get(e.target);r&&r(e)},LVe=e=>{e.forEach(zVe)};function BVe({root:e,...r}){const n=e||document;NC.has(n)||NC.set(n,{});const o=NC.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(LVe,{root:e,...r})),o[a]}function jVe(e,r,n){const o=BVe(r);return AC.set(e,n),o.observe(e),()=>{AC.delete(e),o.unobserve(e)}}const FVe={some:0,all:1};class HVe extends Du{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:n,margin:o,amount:a="some",once:i}=r,l={root:n?n.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:FVe[a]},s=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(c)};return jVe(this.node.current,l,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:n}=this.node;["amount","margin","root"].some(qVe(r,n))&&this.startObserver()}unmount(){}}function qVe({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}const UVe={inView:{Feature:HVe},tap:{Feature:IVe},focus:{Feature:OVe},hover:{Feature:MVe}},VVe={layout:{ProjectionNode:oQ,MeasureLayout:AZ}},YVe={renderer:wUe,...$Ue,...UVe},WVe={...YVe,...$Ve,...VVe};function lQ(e){const r=gm(()=>xp(e)),{isStatic:n}=S.useContext(kp);if(n){const[,o]=S.useState(e);S.useEffect(()=>r.on("change",o),[])}return r}function GVe(){!uC.current&&IK();const[e]=S.useState(y2.current);return e}function sQ(){const e=GVe(),{reducedMotion:r}=S.useContext(kp);return r==="never"?!1:r==="always"?!0:e}class XVe{constructor(){this.componentControls=new Set}subscribe(r){return this.componentControls.add(r),()=>this.componentControls.delete(r)}start(r,n){this.componentControls.forEach(o=>{o.start(r.nativeEvent||r,n)})}cancel(){this.componentControls.forEach(r=>{r.cancel()})}stop(){this.componentControls.forEach(r=>{r.stop()})}}const KVe=()=>new XVe;function ZVe(){return gm(KVe)}const DC=S.createContext(null);DC.displayName="ElementDetailsActorContext";const QVe=()=>{const e=S.useContext(DC);if(e===null)throw new Error("ElementDetailsActorRef is not provided");return e},pl=(e,r,n)=>{const o=a=>({[e]:"__ignore__",...r,...qd(a)});return{recipeFn:(a,i=!0)=>{const l=Ij({conditions:{shift:Fj,finalize:jj,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{toHash:(c,u)=>u(c.join(":")),transform:(c,u)=>(wEe(e,n,a,c),u==="__ignore__"?{className:e}:(u=Z8(u),{className:`${e}--${c}_${u}`}))}}),s=o(a);if(i){const c=nE(n,s);return Je(l(s),me(c))}return l(s)},getVariantProps:o,__getCompoundVariantCss__:a=>nE(n,o(a))}},sc=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;const n=(...i)=>Je(e(...i),r(...i)),o=tE(e.variantKeys,r.variantKeys),a=o.reduce((i,l)=>(i[l]=tE(e.variantMap[l],r.variantMap[l]),i),{});return Object.assign(n,{__recipe__:!0,__name__:`${e.__name__} ${r.__name__}`,raw:i=>i,variantKeys:o,variantMap:a,splitVariantProps(i){return Zn(i,o)}})},PC=pl("action-btn",{size:"md",radius:"md",variant:"filled"},[]),cQ={variant:["transparent","filled"],size:["sm","md"],radius:["sm","md"]},uQ=Object.keys(cQ),R2=Object.assign(ho(PC.recipeFn),{__recipe__:!0,__name__:"actionBtn",__getCompoundVariantCss__:PC.__getCompoundVariantCss__,raw:e=>e,variantKeys:uQ,variantMap:cQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,uQ)},getVariantProps:PC.getVariantProps}),$C=pl("likec4-compound-node",{},[]),dQ={isTransparent:["false","true"],inverseColor:["true","false"],borderStyle:["solid","dashed","dotted","none"]},pQ=Object.keys(dQ),JVe=Object.assign(ho($C.recipeFn),{__recipe__:!0,__name__:"compoundNode",__getCompoundVariantCss__:$C.__getCompoundVariantCss__,raw:e=>e,variantKeys:pQ,variantMap:dQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,pQ)},getVariantProps:$C.getVariantProps}),MC=pl("likec4-edge-action-btn",{},[]),hQ={},fQ=Object.keys(hQ),eYe=Object.assign(ho(MC.recipeFn),{__recipe__:!0,__name__:"edgeActionBtn",__getCompoundVariantCss__:MC.__getCompoundVariantCss__,raw:e=>e,variantKeys:fQ,variantMap:hQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,fQ)},getVariantProps:MC.getVariantProps}),OC=pl("likec4-element-node-data",{},[]),mQ={},gQ=Object.keys(mQ),tYe=Object.assign(ho(OC.recipeFn),{__recipe__:!0,__name__:"elementNodeData",__getCompoundVariantCss__:OC.__getCompoundVariantCss__,raw:e=>e,variantKeys:gQ,variantMap:mQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,gQ)},getVariantProps:OC.getVariantProps}),IC=pl("likec4-element-shape",{},[]),yQ={shapetype:["html","svg"]},bQ=Object.keys(yQ),vQ=Object.assign(ho(IC.recipeFn),{__recipe__:!0,__name__:"elementShapeRecipe",__getCompoundVariantCss__:IC.__getCompoundVariantCss__,raw:e=>e,variantKeys:bQ,variantMap:yQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,bQ)},getVariantProps:IC.getVariantProps}),zC=pl("likec4-tag",{autoTextColor:!1},[]),xQ={autoTextColor:["false","true"]},wQ=Object.keys(xQ),rYe=Object.assign(ho(zC.recipeFn),{__recipe__:!0,__name__:"likec4tag",__getCompoundVariantCss__:zC.__getCompoundVariantCss__,raw:e=>e,variantKeys:wQ,variantMap:xQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,wQ)},getVariantProps:zC.getVariantProps}),LC=pl("likec4-markdown-block",{uselikec4palette:!1,value:"markdown"},[]),kQ={uselikec4palette:["true","false"],value:["markdown","plaintext"]},_Q=Object.keys(kQ),nYe=Object.assign(ho(LC.recipeFn),{__recipe__:!0,__name__:"markdownBlock",__getCompoundVariantCss__:LC.__getCompoundVariantCss__,raw:e=>e,variantKeys:_Q,variantMap:kQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,_Q)},getVariantProps:LC.getVariantProps}),BC=pl("likec4-navigation-panel-icon",{variant:"default"},[]),EQ={variant:["default","filled"]},SQ=Object.keys(EQ),oYe=Object.assign(ho(BC.recipeFn),{__recipe__:!0,__name__:"navigationPanelActionIcon",__getCompoundVariantCss__:BC.__getCompoundVariantCss__,raw:e=>e,variantKeys:SQ,variantMap:EQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,SQ)},getVariantProps:BC.getVariantProps}),jC=pl("likec4-overlay",{fullscreen:!1,withBackdrop:!0},[]),CQ={fullscreen:["false","true"],withBackdrop:["false","true"]},TQ=Object.keys(CQ),aYe=Object.assign(ho(jC.recipeFn),{__recipe__:!0,__name__:"overlay",__getCompoundVariantCss__:jC.__getCompoundVariantCss__,raw:e=>e,variantKeys:TQ,variantMap:CQ,merge(e){return sc(this,e)},splitVariantProps(e){return Zn(e,TQ)},getVariantProps:jC.getVariantProps}),RQ={isStepEdge:!1,cursor:"default"},iYe=[],lYe=[["root","likec4-edge-label__root"],["stepNumber","likec4-edge-label__stepNumber"],["labelContents","likec4-edge-label__labelContents"],["labelText","likec4-edge-label__labelText"],["labelTechnology","likec4-edge-label__labelTechnology"]],sYe=lYe.map(([e,r])=>[e,pl(r,RQ,eE(iYe,e))]),cYe=ho((e={})=>Object.fromEntries(sYe.map(([r,n])=>[r,n.recipeFn(e)]))),AQ=["cursor","isStepEdge"],uYe=e=>({...RQ,...qd(e)}),dYe=Object.assign(cYe,{__recipe__:!1,__name__:"edgeLabel",raw:e=>e,classNameMap:{},variantKeys:AQ,variantMap:{cursor:["pointer","default"],isStepEdge:["false","true"]},splitVariantProps(e){return Zn(e,AQ)},getVariantProps:uYe}),NQ={truncateLabel:!1},pYe=[],hYe=[["root","likec4-navlink__root"],["body","likec4-navlink__body"],["section","likec4-navlink__section"],["label","likec4-navlink__label"],["description","likec4-navlink__description"]],fYe=hYe.map(([e,r])=>[e,pl(r,NQ,eE(pYe,e))]),mYe=ho((e={})=>Object.fromEntries(fYe.map(([r,n])=>[r,n.recipeFn(e)]))),DQ=["truncateLabel"],gYe=e=>({...NQ,...qd(e)}),yYe=Object.assign(mYe,{__recipe__:!1,__name__:"navigationLink",raw:e=>e,classNameMap:{},variantKeys:DQ,variantMap:{truncateLabel:["true","false"]},splitVariantProps(e){return Zn(e,DQ)},getVariantProps:gYe});function bYe(){return bf()}function FC(e,r){return At(ot(e),Jn)}function HC(){return yr()}function PQ(e){return xAe(e)}const vYe=e=>Math.round(e.transform[2]*100)/100;function xYe(){return At(vYe)}const wYe=e=>e.transform[2]<.2;function kYe(){return At(wYe)}const{abs:Ty,cos:cc,sin:vm,acos:_Ye,atan2:Ry,sqrt:Pu,pow:bi}=Math;function Ay(e){return e<0?-bi(-e,.3333333333333333):bi(e,.3333333333333333)}const $Q=Math.PI,A2=2*$Q,$u=$Q/2,EYe=1e-6,qC=Number.MAX_SAFE_INTEGER||9007199254740991,UC=Number.MIN_SAFE_INTEGER||-9007199254740991,SYe={x:0,y:0,z:0},Ye={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,r){const n=r(e);let o=n.x*n.x+n.y*n.y;return typeof n.z<"u"&&(o+=n.z*n.z),Pu(o)},compute:function(e,r,n){if(e===0)return r[0].t=0,r[0];const o=r.length-1;if(e===1)return r[o].t=1,r[o];const a=1-e;let i=r;if(o===0)return r[0].t=e,r[0];if(o===1){const s={x:a*i[0].x+e*i[1].x,y:a*i[0].y+e*i[1].y,t:e};return n&&(s.z=a*i[0].z+e*i[1].z),s}if(o<4){let s=a*a,c=e*e,u,d,p,f=0;o===2?(i=[i[0],i[1],i[2],SYe],u=s,d=a*e*2,p=c):o===3&&(u=s*a,d=s*e*3,p=a*c*3,f=e*c);const g={x:u*i[0].x+d*i[1].x+p*i[2].x+f*i[3].x,y:u*i[0].y+d*i[1].y+p*i[2].y+f*i[3].y,t:e};return n&&(g.z=u*i[0].z+d*i[1].z+p*i[2].z+f*i[3].z),g}const l=JSON.parse(JSON.stringify(r));for(;l.length>1;){for(let s=0;s<l.length-1;s++)l[s]={x:l[s].x+(l[s+1].x-l[s].x)*e,y:l[s].y+(l[s+1].y-l[s].y)*e},typeof l[s].z<"u"&&(l[s].z=l[s].z+(l[s+1].z-l[s].z)*e);l.splice(l.length-1,1)}return l[0].t=e,l[0]},computeWithRatios:function(e,r,n,o){const a=1-e,i=n,l=r;let s=i[0],c=i[1],u=i[2],d=i[3],p;if(s*=a,c*=e,l.length===2)return p=s+c,{x:(s*l[0].x+c*l[1].x)/p,y:(s*l[0].y+c*l[1].y)/p,z:o?(s*l[0].z+c*l[1].z)/p:!1,t:e};if(s*=a,c*=2*a,u*=e*e,l.length===3)return p=s+c+u,{x:(s*l[0].x+c*l[1].x+u*l[2].x)/p,y:(s*l[0].y+c*l[1].y+u*l[2].y)/p,z:o?(s*l[0].z+c*l[1].z+u*l[2].z)/p:!1,t:e};if(s*=a,c*=1.5*a,u*=3*a,d*=e*e*e,l.length===4)return p=s+c+u+d,{x:(s*l[0].x+c*l[1].x+u*l[2].x+d*l[3].x)/p,y:(s*l[0].y+c*l[1].y+u*l[2].y+d*l[3].y)/p,z:o?(s*l[0].z+c*l[1].z+u*l[2].z+d*l[3].z)/p:!1,t:e}},derive:function(e,r){const n=[];for(let o=e,a=o.length,i=a-1;a>1;a--,i--){const l=[];for(let s=0,c;s<i;s++)c={x:i*(o[s+1].x-o[s].x),y:i*(o[s+1].y-o[s].y)},r&&(c.z=i*(o[s+1].z-o[s].z)),l.push(c);n.push(l),o=l}return n},between:function(e,r,n){return r<=e&&e<=n||Ye.approximately(e,r)||Ye.approximately(e,n)},approximately:function(e,r,n){return Ty(e-r)<=(n||EYe)},length:function(e){const r=Ye.Tvalues.length;let n=0;for(let o=0,a;o<r;o++)a=.5*Ye.Tvalues[o]+.5,n+=Ye.Cvalues[o]*Ye.arcfn(a,e);return .5*n},map:function(e,r,n,o,a){const i=n-r,l=a-o,s=e-r,c=s/i;return o+l*c},lerp:function(e,r,n){const o={x:r.x+e*(n.x-r.x),y:r.y+e*(n.y-r.y)};return r.z!==void 0&&n.z!==void 0&&(o.z=r.z+e*(n.z-r.z)),o},pointToString:function(e){let r=e.x+"/"+e.y;return typeof e.z<"u"&&(r+="/"+e.z),r},pointsToString:function(e){return"["+e.map(Ye.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,r,n){const o=r.x-e.x,a=r.y-e.y,i=n.x-e.x,l=n.y-e.y,s=o*l-a*i,c=o*i+a*l;return Ry(s,c)},round:function(e,r){const n=""+e,o=n.indexOf(".");return parseFloat(n.substring(0,o+1+r))},dist:function(e,r){const n=e.x-r.x,o=e.y-r.y;return Pu(n*n+o*o)},closest:function(e,r){let n=bi(2,63),o,a;return e.forEach(function(i,l){a=Ye.dist(r,i),a<n&&(n=a,o=l)}),{mdist:n,mpos:o}},abcratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=bi(e,r)+bi(1-e,r),o=n-1;return Ty(o/n)},projectionratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=bi(1-e,r),o=bi(e,r)+n;return n/o},lli8:function(e,r,n,o,a,i,l,s){const c=(e*o-r*n)*(a-l)-(e-n)*(a*s-i*l),u=(e*o-r*n)*(i-s)-(r-o)*(a*s-i*l),d=(e-n)*(i-s)-(r-o)*(a-l);return d==0?!1:{x:c/d,y:u/d}},lli4:function(e,r,n,o){const a=e.x,i=e.y,l=r.x,s=r.y,c=n.x,u=n.y,d=o.x,p=o.y;return Ye.lli8(a,i,l,s,c,u,d,p)},lli:function(e,r){return Ye.lli4(e,e.c,r,r.c)},makeline:function(e,r){return new Hr(e.x,e.y,(e.x+r.x)/2,(e.y+r.y)/2,r.x,r.y)},findbbox:function(e){let r=qC,n=qC,o=UC,a=UC;return e.forEach(function(i){const l=i.bbox();r>l.x.min&&(r=l.x.min),n>l.y.min&&(n=l.y.min),o<l.x.max&&(o=l.x.max),a<l.y.max&&(a=l.y.max)}),{x:{min:r,mid:(r+o)/2,max:o,size:o-r},y:{min:n,mid:(n+a)/2,max:a,size:a-n}}},shapeintersections:function(e,r,n,o,a){if(!Ye.bboxoverlap(r,o))return[];const i=[],l=[e.startcap,e.forward,e.back,e.endcap],s=[n.startcap,n.forward,n.back,n.endcap];return l.forEach(function(c){c.virtual||s.forEach(function(u){if(u.virtual)return;const d=c.intersects(u,a);d.length>0&&(d.c1=c,d.c2=u,d.s1=e,d.s2=n,i.push(d))})}),i},makeshape:function(e,r,n){const o=r.points.length,a=e.points.length,i=Ye.makeline(r.points[o-1],e.points[0]),l=Ye.makeline(e.points[a-1],r.points[0]),s={startcap:i,forward:e,back:r,endcap:l,bbox:Ye.findbbox([i,e,r,l])};return s.intersections=function(c){return Ye.shapeintersections(s,s.bbox,c,c.bbox,n)},s},getminmax:function(e,r,n){if(!n)return{min:0,max:0};let o=qC,a=UC,i,l;n.indexOf(0)===-1&&(n=[0].concat(n)),n.indexOf(1)===-1&&n.push(1);for(let s=0,c=n.length;s<c;s++)i=n[s],l=e.get(i),l[r]<o&&(o=l[r]),l[r]>a&&(a=l[r]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,r){const n=r.p1.x,o=r.p1.y,a=-Ry(r.p2.y-o,r.p2.x-n),i=function(l){return{x:(l.x-n)*cc(a)-(l.y-o)*vm(a),y:(l.x-n)*vm(a)+(l.y-o)*cc(a)}};return e.map(i)},roots:function(e,r){r=r||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,o=Ye.align(e,r),a=function(D){return 0<=D&&D<=1};if(n===2){const D=o[0].y,N=o[1].y,$=o[2].y,O=D-2*N+$;if(O!==0){const j=-Pu(N*N-D*$),L=-D+N,Y=-(j+L)/O,M=-(-j+L)/O;return[Y,M].filter(a)}else if(N!==$&&O===0)return[(2*N-$)/(2*N-2*$)].filter(a);return[]}const i=o[0].y,l=o[1].y,s=o[2].y,c=o[3].y;let u=-i+3*l-3*s+c,d=3*i-6*l+3*s,p=-3*i+3*l,f=i;if(Ye.approximately(u,0)){if(Ye.approximately(d,0))return Ye.approximately(p,0)?[]:[-f/p].filter(a);const D=Pu(p*p-4*d*f),N=2*d;return[(D-p)/N,(-p-D)/N].filter(a)}d/=u,p/=u,f/=u;const g=(3*p-d*d)/3,b=g/3,x=(2*d*d*d-9*d*p+27*f)/27,w=x/2,k=w*w+b*b*b;let C,_,T,R,A;if(k<0){const D=-g/3,N=D*D*D,$=Pu(N),O=-x/(2*$),j=O<-1?-1:O>1?1:O,L=_Ye(j),Y=Ay($),M=2*Y;return T=M*cc(L/3)-d/3,R=M*cc((L+A2)/3)-d/3,A=M*cc((L+2*A2)/3)-d/3,[T,R,A].filter(a)}else{if(k===0)return C=w<0?Ay(-w):-Ay(w),T=2*C-d/3,R=-C-d/3,[T,R].filter(a);{const D=Pu(k);return C=Ay(-w+D),_=Ay(w+D),[C-_-d/3].filter(a)}}},droots:function(e){if(e.length===3){const r=e[0],n=e[1],o=e[2],a=r-2*n+o;if(a!==0){const i=-Pu(n*n-r*o),l=-r+n,s=-(i+l)/a,c=-(-i+l)/a;return[s,c]}else if(n!==o&&a===0)return[(2*n-o)/(2*(n-o))];return[]}if(e.length===2){const r=e[0],n=e[1];return r!==n?[r/(r-n)]:[]}return[]},curvature:function(e,r,n,o,a){let i,l,s,c,u=0,d=0;const p=Ye.compute(e,r),f=Ye.compute(e,n),g=p.x*p.x+p.y*p.y;if(o?(i=Pu(bi(p.y*f.z-f.y*p.z,2)+bi(p.z*f.x-f.z*p.x,2)+bi(p.x*f.y-f.x*p.y,2)),l=bi(g+p.z*p.z,3/2)):(i=p.x*f.y-p.y*f.x,l=bi(g,3/2)),i===0||l===0)return{k:0,r:0};if(u=i/l,d=l/i,!a){const b=Ye.curvature(e-.001,r,n,o,!0).k,x=Ye.curvature(e+.001,r,n,o,!0).k;c=(x-u+(u-b))/2,s=(Ty(x-u)+Ty(u-b))/2}return{k:u,r:d,dk:c,adk:s}},inflections:function(e){if(e.length<4)return[];const r=Ye.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=r[2].x*r[1].y,o=r[3].x*r[1].y,a=r[1].x*r[2].y,i=r[3].x*r[2].y,l=18*(-3*n+2*o+3*a-i),s=18*(3*n-o-3*a),c=18*(a-n);if(Ye.approximately(l,0)){if(!Ye.approximately(s,0)){let f=-c/s;if(0<=f&&f<=1)return[f]}return[]}const u=2*l;if(Ye.approximately(u,0))return[];const d=s*s-4*l*c;if(d<0)return[];const p=Math.sqrt(d);return[(p-s)/u,-(s+p)/u].filter(function(f){return 0<=f&&f<=1})},bboxoverlap:function(e,r){const n=["x","y"],o=n.length;for(let a=0,i,l,s,c;a<o;a++)if(i=n[a],l=e[i].mid,s=r[i].mid,c=(e[i].size+r[i].size)/2,Ty(l-s)>=c)return!1;return!0},expandbox:function(e,r){r.x.min<e.x.min&&(e.x.min=r.x.min),r.y.min<e.y.min&&(e.y.min=r.y.min),r.z&&r.z.min<e.z.min&&(e.z.min=r.z.min),r.x.max>e.x.max&&(e.x.max=r.x.max),r.y.max>e.y.max&&(e.y.max=r.y.max),r.z&&r.z.max>e.z.max&&(e.z.max=r.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,r,n){const o=e.bbox(),a=r.bbox(),i=1e5,l=n||.5;if(o.x.size+o.y.size<l&&a.x.size+a.y.size<l)return[(i*(e._t1+e._t2)/2|0)/i+"/"+(i*(r._t1+r._t2)/2|0)/i];let s=e.split(.5),c=r.split(.5),u=[{left:s.left,right:c.left},{left:s.left,right:c.right},{left:s.right,right:c.right},{left:s.right,right:c.left}];u=u.filter(function(p){return Ye.bboxoverlap(p.left.bbox(),p.right.bbox())});let d=[];return u.length===0||(u.forEach(function(p){d=d.concat(Ye.pairiteration(p.left,p.right,l))}),d=d.filter(function(p,f){return d.indexOf(p)===f})),d},getccenter:function(e,r,n){const o=r.x-e.x,a=r.y-e.y,i=n.x-r.x,l=n.y-r.y,s=o*cc($u)-a*vm($u),c=o*vm($u)+a*cc($u),u=i*cc($u)-l*vm($u),d=i*vm($u)+l*cc($u),p=(e.x+r.x)/2,f=(e.y+r.y)/2,g=(r.x+n.x)/2,b=(r.y+n.y)/2,x=p+s,w=f+c,k=g+u,C=b+d,_=Ye.lli8(p,f,x,w,g,b,k,C),T=Ye.dist(_,e);let R=Ry(e.y-_.y,e.x-_.x),A=Ry(r.y-_.y,r.x-_.x),D=Ry(n.y-_.y,n.x-_.x),N;return R<D?((R>A||A>D)&&(R+=A2),R>D&&(N=D,D=R,R=N)):D<A&&A<R?(N=D,D=R,R=N):D+=A2,_.s=R,_.e=D,_.r=T,_},numberSort:function(e,r){return e-r}};class Ny{constructor(r){this.curves=[],this._3d=!1,r&&(this.curves=r,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(r){return Ye.pointsToString(r.points)}).join(", ")+"]"}addCurve(r){this.curves.push(r),this._3d=this._3d||r._3d}length(){return this.curves.map(function(r){return r.length()}).reduce(function(r,n){return r+n})}curve(r){return this.curves[r]}bbox(){const r=this.curves;for(var n=r[0].bbox(),o=1;o<r.length;o++)Ye.expandbox(n,r[o].bbox());return n}offset(r){const n=[];return this.curves.forEach(function(o){n.push(...o.offset(r))}),new Ny(n)}}const{abs:Dy,min:MQ,max:OQ,cos:CYe,sin:TYe,acos:RYe,sqrt:Py}=Math,AYe=Math.PI;class Hr{constructor(r){let n=r&&r.forEach?r:Array.from(arguments).slice(),o=!1;if(typeof n[0]=="object"){o=n.length;const g=[];n.forEach(function(b){["x","y","z"].forEach(function(x){typeof b[x]<"u"&&g.push(b[x])})}),n=g}let a=!1;const i=n.length;if(o){if(o>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(i!==6&&i!==8&&i!==9&&i!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const l=this._3d=!a&&(i===9||i===12)||r&&r[0]&&typeof r[0].z<"u",s=this.points=[];for(let g=0,b=l?3:2;g<i;g+=b){var c={x:n[g],y:n[g+1]};l&&(c.z=n[g+2]),s.push(c)}const u=this.order=s.length-1,d=this.dims=["x","y"];l&&d.push("z"),this.dimlen=d.length;const p=Ye.align(s,{p1:s[0],p2:s[u]}),f=Ye.dist(s[0],s[u]);this._linear=p.reduce((g,b)=>g+Dy(b.y),0)<f/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(r,n,o,a){if(typeof a>"u"&&(a=.5),a===0)return new Hr(n,n,o);if(a===1)return new Hr(r,n,n);const i=Hr.getABC(2,r,n,o,a);return new Hr(r,i.A,o)}static cubicFromPoints(r,n,o,a,i){typeof a>"u"&&(a=.5);const l=Hr.getABC(3,r,n,o,a);typeof i>"u"&&(i=Ye.dist(n,l.C));const s=i*(1-a)/a,c=Ye.dist(r,o),u=(o.x-r.x)/c,d=(o.y-r.y)/c,p=i*u,f=i*d,g=s*u,b=s*d,x={x:n.x-p,y:n.y-f},w={x:n.x+g,y:n.y+b},k=l.A,C={x:k.x+(x.x-k.x)/(1-a),y:k.y+(x.y-k.y)/(1-a)},_={x:k.x+(w.x-k.x)/a,y:k.y+(w.y-k.y)/a},T={x:r.x+(C.x-r.x)/a,y:r.y+(C.y-r.y)/a},R={x:o.x+(_.x-o.x)/(1-a),y:o.y+(_.y-o.y)/(1-a)};return new Hr(r,T,R,o)}static getUtils(){return Ye}getUtils(){return Hr.getUtils()}static get PolyBezier(){return Ny}valueOf(){return this.toString()}toString(){return Ye.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const r=this.points,n=r[0].x,o=r[0].y,a=["M",n,o,this.order===2?"Q":"C"];for(let i=1,l=r.length;i<l;i++)a.push(r[i].x),a.push(r[i].y);return a.join(" ")}setRatios(r){if(r.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=r,this._lut=[]}verify(){const r=this.coordDigest();r!==this._print&&(this._print=r,this.update())}coordDigest(){return this.points.map(function(r,n){return""+n+r.x+r.y+(r.z?r.z:0)}).join("")}update(){this._lut=[],this.dpoints=Ye.derive(this.points,this._3d),this.computedirection()}computedirection(){const r=this.points,n=Ye.angle(r[0],r[this.order],r[1]);this.clockwise=n>0}length(){return Ye.length(this.derivative.bind(this))}static getABC(r=2,n,o,a,i=.5){const l=Ye.projectionratio(i,r),s=1-l,c={x:l*n.x+s*a.x,y:l*n.y+s*a.y},u=Ye.abcratio(i,r);return{A:{x:o.x+(o.x-c.x)/u,y:o.y+(o.y-c.y)/u},B:o,C:c,S:n,E:a}}getABC(r,n){n=n||this.get(r);let o=this.points[0],a=this.points[this.order];return Hr.getABC(this.order,o,n,a,r)}getLUT(r){if(this.verify(),r=r||100,this._lut.length===r+1)return this._lut;this._lut=[],r++,this._lut=[];for(let n=0,o,a;n<r;n++)a=n/(r-1),o=this.compute(a),o.t=a,this._lut.push(o);return this._lut}on(r,n){n=n||5;const o=this.getLUT(),a=[];for(let i=0,l,s=0;i<o.length;i++)l=o[i],Ye.dist(l,r)<n&&(a.push(l),s+=i/o.length);return a.length?t/=a.length:!1}project(r){const n=this.getLUT(),o=n.length-1,a=Ye.closest(n,r),i=a.mpos,l=(i-1)/o,s=(i+1)/o,c=.1/o;let u=a.mdist,d=l,p=d,f;u+=1;for(let g;d<s+c;d+=c)f=this.compute(d),g=Ye.dist(r,f),g<u&&(u=g,p=d);return p=p<0?0:p>1?1:p,f=this.compute(p),f.t=p,f.d=u,f}get(r){return this.compute(r)}point(r){return this.points[r]}compute(r){return this.ratios?Ye.computeWithRatios(r,this.points,this.ratios,this._3d):Ye.compute(r,this.points,this._3d,this.ratios)}raise(){const r=this.points,n=[r[0]],o=r.length;for(let a=1,i,l;a<o;a++)i=r[a],l=r[a-1],n[a]={x:(o-a)/o*i.x+a/o*l.x,y:(o-a)/o*i.y+a/o*l.y};return n[o]=r[o-1],new Hr(n)}derivative(r){return Ye.compute(r,this.dpoints[0],this._3d)}dderivative(r){return Ye.compute(r,this.dpoints[1],this._3d)}align(){let r=this.points;return new Hr(Ye.align(r,{p1:r[0],p2:r[r.length-1]}))}curvature(r){return Ye.curvature(r,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return Ye.inflections(this.points)}normal(r){return this._3d?this.__normal3(r):this.__normal2(r)}__normal2(r){const n=this.derivative(r),o=Py(n.x*n.x+n.y*n.y);return{t:r,x:-n.y/o,y:n.x/o}}__normal3(r){const n=this.derivative(r),o=this.derivative(r+.01),a=Py(n.x*n.x+n.y*n.y+n.z*n.z),i=Py(o.x*o.x+o.y*o.y+o.z*o.z);n.x/=a,n.y/=a,n.z/=a,o.x/=i,o.y/=i,o.z/=i;const l={x:o.y*n.z-o.z*n.y,y:o.z*n.x-o.x*n.z,z:o.x*n.y-o.y*n.x},s=Py(l.x*l.x+l.y*l.y+l.z*l.z);l.x/=s,l.y/=s,l.z/=s;const c=[l.x*l.x,l.x*l.y-l.z,l.x*l.z+l.y,l.x*l.y+l.z,l.y*l.y,l.y*l.z-l.x,l.x*l.z-l.y,l.y*l.z+l.x,l.z*l.z];return{t:r,x:c[0]*n.x+c[1]*n.y+c[2]*n.z,y:c[3]*n.x+c[4]*n.y+c[5]*n.z,z:c[6]*n.x+c[7]*n.y+c[8]*n.z}}hull(r){let n=this.points,o=[],a=[],i=0;for(a[i++]=n[0],a[i++]=n[1],a[i++]=n[2],this.order===3&&(a[i++]=n[3]);n.length>1;){o=[];for(let l=0,s,c=n.length-1;l<c;l++)s=Ye.lerp(r,n[l],n[l+1]),a[i++]=s,o.push(s);n=o}return a}split(r,n){if(r===0&&n)return this.split(n).left;if(n===1)return this.split(r).right;const o=this.hull(r),a={left:this.order===2?new Hr([o[0],o[3],o[5]]):new Hr([o[0],o[4],o[7],o[9]]),right:this.order===2?new Hr([o[5],o[4],o[2]]):new Hr([o[9],o[8],o[6],o[3]]),span:o};return a.left._t1=Ye.map(0,0,1,this._t1,this._t2),a.left._t2=Ye.map(r,0,1,this._t1,this._t2),a.right._t1=Ye.map(r,0,1,this._t1,this._t2),a.right._t2=Ye.map(1,0,1,this._t1,this._t2),n?(n=Ye.map(n,r,1,0,1),a.right.split(n).left):a}extrema(){const r={};let n=[];return this.dims.forEach((function(o){let a=function(l){return l[o]},i=this.dpoints[0].map(a);r[o]=Ye.droots(i),this.order===3&&(i=this.dpoints[1].map(a),r[o]=r[o].concat(Ye.droots(i))),r[o]=r[o].filter(function(l){return l>=0&&l<=1}),n=n.concat(r[o].sort(Ye.numberSort))}).bind(this)),r.values=n.sort(Ye.numberSort).filter(function(o,a){return n.indexOf(o)===a}),r}bbox(){const r=this.extrema(),n={};return this.dims.forEach((function(o){n[o]=Ye.getminmax(this,o,r[o])}).bind(this)),n}overlaps(r){const n=this.bbox(),o=r.bbox();return Ye.bboxoverlap(n,o)}offset(r,n){if(typeof n<"u"){const o=this.get(r),a=this.normal(r),i={c:o,n:a,x:o.x+a.x*n,y:o.y+a.y*n};return this._3d&&(i.z=o.z+a.z*n),i}if(this._linear){const o=this.normal(0),a=this.points.map(function(i){const l={x:i.x+r*o.x,y:i.y+r*o.y};return i.z&&o.z&&(l.z=i.z+r*o.z),l});return[new Hr(a)]}return this.reduce().map(function(o){return o._linear?o.offset(r)[0]:o.scale(r)})}simple(){if(this.order===3){const a=Ye.angle(this.points[0],this.points[3],this.points[1]),i=Ye.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&i<0||a<0&&i>0)return!1}const r=this.normal(0),n=this.normal(1);let o=r.x*n.x+r.y*n.y;return this._3d&&(o+=r.z*n.z),Dy(RYe(o))<AYe/3}reduce(){let r,n=0,o=0,a=.01,i,l=[],s=[],c=this.extrema().values;for(c.indexOf(0)===-1&&(c=[0].concat(c)),c.indexOf(1)===-1&&c.push(1),n=c[0],r=1;r<c.length;r++)o=c[r],i=this.split(n,o),i._t1=n,i._t2=o,l.push(i),n=o;return l.forEach(function(u){for(n=0,o=0;o<=1;)for(o=n+a;o<=1+a;o+=a)if(i=u.split(n,o),!i.simple()){if(o-=a,Dy(n-o)<a)return[];i=u.split(n,o),i._t1=Ye.map(n,0,1,u._t1,u._t2),i._t2=Ye.map(o,0,1,u._t1,u._t2),s.push(i),n=o;break}n<1&&(i=u.split(n,1),i._t1=Ye.map(n,0,1,u._t1,u._t2),i._t2=u._t2,s.push(i))}),s}translate(r,n,o){o=typeof o=="number"?o:n;const a=this.order;let i=this.points.map((l,s)=>(1-s/a)*n+s/a*o);return new Hr(this.points.map((l,s)=>({x:l.x+r.x*i[s],y:l.y+r.y*i[s]})))}scale(r){const n=this.order;let o=!1;if(typeof r=="function"&&(o=r),o&&n===2)return this.raise().scale(o);const a=this.clockwise,i=this.points;if(this._linear)return this.translate(this.normal(0),o?o(0):r,o?o(1):r);const l=o?o(0):r,s=o?o(1):r,c=[this.offset(0,10),this.offset(1,10)],u=[],d=Ye.lli4(c[0],c[0].c,c[1],c[1].c);if(!d)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(p){const f=u[p*n]=Ye.copy(i[p*n]);f.x+=(p?s:l)*c[p].n.x,f.y+=(p?s:l)*c[p].n.y}),o?([0,1].forEach(function(p){if(!(n===2&&p)){var f=i[p+1],g={x:f.x-d.x,y:f.y-d.y},b=o?o((p+1)/n):r;o&&!a&&(b=-b);var x=Py(g.x*g.x+g.y*g.y);g.x/=x,g.y/=x,u[p+1]={x:f.x+b*g.x,y:f.y+b*g.y}}}),new Hr(u)):([0,1].forEach(p=>{if(n===2&&p)return;const f=u[p*n],g=this.derivative(p),b={x:f.x+g.x,y:f.y+g.y};u[p+1]=Ye.lli4(f,b,d,i[p+1])}),new Hr(u))}outline(r,n,o,a){if(n=n===void 0?r:n,this._linear){const R=this.normal(0),A=this.points[0],D=this.points[this.points.length-1];let N,$,O;o===void 0&&(o=r,a=n),N={x:A.x+R.x*r,y:A.y+R.y*r},O={x:D.x+R.x*o,y:D.y+R.y*o},$={x:(N.x+O.x)/2,y:(N.y+O.y)/2};const j=[N,$,O];N={x:A.x-R.x*n,y:A.y-R.y*n},O={x:D.x-R.x*a,y:D.y-R.y*a},$={x:(N.x+O.x)/2,y:(N.y+O.y)/2};const L=[O,$,N],Y=Ye.makeline(L[2],j[0]),M=Ye.makeline(j[2],L[0]),q=[Y,new Hr(j),M,new Hr(L)];return new Ny(q)}const i=this.reduce(),l=i.length,s=[];let c=[],u,d=0,p=this.length();const f=typeof o<"u"&&typeof a<"u";function g(R,A,D,N,$){return function(O){const j=N/D,L=(N+$)/D,Y=A-R;return Ye.map(O,0,1,R+j*Y,R+L*Y)}}i.forEach(function(R){const A=R.length();f?(s.push(R.scale(g(r,o,p,d,A))),c.push(R.scale(g(-n,-a,p,d,A)))):(s.push(R.scale(r)),c.push(R.scale(-n))),d+=A}),c=c.map(function(R){return u=R.points,u[3]?R.points=[u[3],u[2],u[1],u[0]]:R.points=[u[2],u[1],u[0]],R}).reverse();const b=s[0].points[0],x=s[l-1].points[s[l-1].points.length-1],w=c[l-1].points[c[l-1].points.length-1],k=c[0].points[0],C=Ye.makeline(w,b),_=Ye.makeline(x,k),T=[C].concat(s).concat([_]).concat(c);return new Ny(T)}outlineshapes(r,n,o){n=n||r;const a=this.outline(r,n).curves,i=[];for(let l=1,s=a.length;l<s/2;l++){const c=Ye.makeshape(a[l],a[s-l],o);c.startcap.virtual=l>1,c.endcap.virtual=l<s/2-1,i.push(c)}return i}intersects(r,n){return r?r.p1&&r.p2?this.lineIntersects(r):(r instanceof Hr&&(r=r.reduce()),this.curveintersects(this.reduce(),r,n)):this.selfintersects(n)}lineIntersects(r){const n=MQ(r.p1.x,r.p2.x),o=MQ(r.p1.y,r.p2.y),a=OQ(r.p1.x,r.p2.x),i=OQ(r.p1.y,r.p2.y);return Ye.roots(this.points,r).filter(l=>{var s=this.get(l);return Ye.between(s.x,n,a)&&Ye.between(s.y,o,i)})}selfintersects(r){const n=this.reduce(),o=n.length-2,a=[];for(let i=0,l,s,c;i<o;i++)s=n.slice(i,i+1),c=n.slice(i+2),l=this.curveintersects(s,c,r),a.push(...l);return a}curveintersects(r,n,o){const a=[];r.forEach(function(l){n.forEach(function(s){l.overlaps(s)&&a.push({left:l,right:s})})});let i=[];return a.forEach(function(l){const s=Ye.pairiteration(l.left,l.right,o);s.length>0&&(i=i.concat(s))}),i}arcs(r){return r=r||.5,this._iterate(r,[])}_error(r,n,o,a){const i=(a-o)/4,l=this.get(o+i),s=this.get(a-i),c=Ye.dist(r,n),u=Ye.dist(r,l),d=Ye.dist(r,s);return Dy(u-c)+Dy(d-c)}_iterate(r,n){let o=0,a=1,i;do{i=0,a=1;let l=this.get(o),s,c,u,d,p=!1,f=!1,g,b=a,x=1;do if(f=p,d=u,b=(o+a)/2,s=this.get(b),c=this.get(a),u=Ye.getccenter(l,s,c),u.interval={start:o,end:a},p=this._error(u,l,o,a)<=r,g=f&&!p,g||(x=a),p){if(a>=1){if(u.interval.end=x=1,d=u,a>1){let w={x:u.x+u.r*CYe(u.e),y:u.y+u.r*TYe(u.e)};u.e+=Ye.angle({x:u.x,y:u.y},w,this.get(1))}break}a=a+(a-o)/2}else a=b;while(!g&&i++<100);if(i>=100)break;d=d||u,n.push(d),o=x}while(a<1);return n}}function IQ(e){let[r,...n]=e.points;nt(r,"start should be defined");const o=[];for(;Ao(n,3);){const[a,i,l,...s]=n,c=new Hr(r[0],r[1],a[0],a[1],i[0],i[1],l[0],l[1]),u=c.inflections();u.length===0&&u.push(.5),u.forEach(d=>{const{x:p,y:f}=c.get(d);o.push({x:Math.round(p),y:Math.round(f)})}),n=s,r=l}return nt(n.length===0,"all points should be consumed"),o}const zQ=(e,r)=>Math.abs(e-r)<3.1;function $y(e,r){const[n,o]=GE(e)?e:[e.x,e.y],[a,i]=GE(r)?r:[r.x,r.y];return zQ(n,a)&&zQ(o,i)}function pn(e){return e.stopPropagation()}function NYe(e){const{width:r,height:n}=Qn(e);return{x:e.internals.positionAbsolute.x+r/2,y:e.internals.positionAbsolute.y+n/2}}function DYe(e){let[r,...n]=e;nt(r,"start should be defined");let o=`M ${r[0]},${r[1]}`;for(;Ao(n,3);){const[a,i,l,...s]=n;o=o+` C ${a[0]},${a[1]} ${i[0]},${i[1]} ${l[0]},${l[1]}`,n=s}return nt(n.length===0,"all points should be consumed"),o}const N2=S.forwardRef(({tag:e,cursor:r,className:n,style:o,...a},i)=>{const l=sBe(e);return y.jsxs(Gr,{ref:i,"data-likec4-tag":e,className:Je(rYe({autoTextColor:pj(l)}),n),...a,style:{cursor:r,...o},children:[y.jsx("span",{children:"#"}),y.jsx("span",{children:e})]})}),PYe=(e,r)=>e.data.width===r.data.width&&ut(e.data.tags,r.data.tags)&&(e.data.hovered??!1)===(r.data.hovered??!1),My=S.memo(({id:e,data:{tags:r,width:n,hovered:o=!1}})=>{const{hovered:a,ref:i}=d9(),{hovered:l,ref:s}=d9(),[c,u]=PPe(!1,o?120:300);S.useEffect(()=>{u(w=>w?o||a||l:o&&(a||l))},[a,l,o]);const d=xYe(),p=d>1.2,f=Yt(),g=w=>{f.send({type:"tag.highlight",tag:w})},b=S.useCallback(()=>{f.send({type:"tag.unhighlight"})},[]);if(!r||r.length===0)return null;const x=Math.max(Math.round(n*d)-10,200);return y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:i,className:Je("likec4-element-tags",Uo({pointerEvents:"all",gap:"1",alignItems:"flex-end",justifyItems:"stretch",position:"absolute",width:"100%",bottom:"0",left:"0",padding:"1",_shapeCylinder:{bottom:"[5px]"},_shapeStorage:{bottom:"[5px]"},_shapeQueue:{bottom:"0",paddingLeft:"[14px]"}})),onClick:pn,children:r.map(w=>y.jsx(Gr,{"data-likec4-tag":w,className:me({layerStyle:"likec4.tag",flex:"1",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:50,height:5,_whenHovered:{height:12,borderRadius:4,transitionDelay:".08s"},transition:"fast"})},e+"#"+w))}),y.jsx(Kq,{isVisible:c,align:"start",position:tt.Bottom,children:y.jsx(Sn,{ref:s,css:{gap:"0.5",alignItems:"baseline",flexWrap:"wrap",pb:"sm",translate:"auto",x:"[-8px]",maxWidth:x},children:r.map(w=>y.jsx(N2,{tag:w,cursor:"pointer",className:me({userSelect:"none",...p&&{fontSize:"lg",borderRadius:"[4px]",px:"1.5"}}),onClick:k=>{k.stopPropagation(),f.openSearch(`#${w}`)},onMouseEnter:()=>g(w),onMouseLeave:b},w))})})]})},PYe);My.displayName="ElementTags";const $Ye=S.forwardRef((e,r)=>y.jsx("svg",{height:"24",width:"24",fill:"currentColor",...e,viewBox:"0 0 24 24",ref:r,children:y.jsx("path",{d:"M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z"})}));/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const MYe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],LQ=xt("outline","check","Check",MYe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const OYe=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],IYe=xt("outline","copy","Copy",OYe),BQ="https://github.com/",VC=S.forwardRef(({value:e,className:r,...n},o)=>{const a=e.url.includes("://")?e.url:new window.URL(e.url,window.location.href).toString();let i=a.startsWith(BQ);return y.jsx(Qs,{ref:o,variant:"default",radius:"sm",size:"sm",tt:"none",leftSection:e.title?y.jsx(y.Fragment,{children:e.title}):null,rightSection:y.jsx(xW,{value:a,timeout:1500,children:({copy:l,copied:s})=>y.jsx(ir,{className:me({opacity:s?1:.45,transition:"fast",_hover:{opacity:1}}),tabIndex:-1,size:"20",variant:s?"light":"transparent",color:s?"teal":"gray","data-active":s,onClick:c=>{c.stopPropagation(),c.preventDefault(),l()},children:s?y.jsx(LQ,{}):y.jsx(IYe,{stroke:2.5})})}),...n,className:Je(r,"group"),classNames:{root:me({flexWrap:"nowrap",minHeight:24,maxWidth:500,userSelect:"all",pr:"0",backgroundColor:{base:"transparent",_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}}}),section:me({'&:is([data-position="left"])':{color:"mantine.colors.dimmed",userSelect:"none",pointerEvents:"none",_groupHover:{color:"[var(--badge-color)]",opacity:.7}}})},children:y.jsxs(tc.a,{href:a,target:"_blank",style:{color:"var(--badge-color)",cursor:"pointer"},css:{transition:"fast",opacity:{base:.7,_hover:1},textDecoration:{base:"none",_hover:"underline"}},children:[i&&y.jsx($Ye,{height:"12",width:"12",style:{verticalAlign:"middle",marginRight:"4px"}}),i?a.replace(BQ,""):a]})})});function jQ(){const e=S.useContext(j7);if(!e)throw new Error("No LikeC4ViewModel in context found");return e}const D2="--_blur",P2="--_opacity",zYe=me({boxSizing:"border-box",margin:"0",padding:"0",position:"fixed",inset:"0",width:"100vw",height:"100vh",maxWidth:"100vw",maxHeight:"100vh",background:"transparent",border:"transparent",_backdrop:{backdropFilter:"auto",backdropBlur:`var(${D2})`,backgroundColor:`[rgb(36 36 36 / var(${P2}, 5%))]`}}),LYe=me({position:"absolute",pointerEvents:"all",display:"flex",flexDirection:"column",padding:"4",gap:"lg",justifyContent:"stretch",color:"mantine.colors.text",backgroundColor:{base:"mantine.colors.body",_dark:"mantine.colors.dark[6]"},boxShadow:"md",overflow:"hidden",border:"none",backgroundImage:`
    linear-gradient(180deg,
      color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent),
      color-mix(in srgb, var(--likec4-palette-fill) 20%, transparent) 8px,
      color-mix(in srgb, var(--likec4-palette-fill) 14%, transparent) 20px,
      transparent 80px
    ),
    linear-gradient(180deg, var(--likec4-palette-fill), var(--likec4-palette-fill) 4px, transparent 4px)
  `,"& .react-flow__attribution":{display:"none"}}),BYe=me({flex:0,cursor:"move"}),jYe=me({display:"block",fontFamily:"likec4.element",fontOpticalSizing:"auto",fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"xs"}),YC="40px",FYe=me({flex:`0 0 ${YC}`,height:YC,width:YC,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",cursor:"move",_dark:{mixBlendMode:"hard-light"},"& :where(svg, img)":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none",filter:`
    drop-shadow(0 0 3px rgb(0 0 0 / 10%))
    drop-shadow(0 1px 8px rgb(0 0 0 / 5%))
    drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))
  `},"& img":{objectFit:"contain"}}),$2="--view-title-color",M2="--icon-color",HYe=me({width:"100%",background:"mantine.colors.body",borderRadius:"sm",padding:"[10px 8px]",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",[$2]:"{colors.mantine.colors.dark[1]}",_hover:{background:"mantine.colors.defaultHover",[M2]:"{colors.mantine.colors.dark[1]}",[$2]:"{colors.mantine.colors.defaultColor}"},_dark:{background:"mantine.colors.dark[6]"},_light:{[M2]:"{colors.mantine.colors.gray[6]}",[$2]:"{colors.mantine.colors.gray[7]}",_hover:{[M2]:"{colors.mantine.colors.gray[7]}"}},"& .mantine-ThemeIcon-root":{transition:"fast",color:`[var(${M2}, {colors.mantine.colors.dark[2]})]`,"--ti-size":"22px",_hover:{color:"mantine.colors.defaultColor"}},"& > *":{transition:"all 130ms {easings.inOut}"},"&:hover > *":{transitionTimingFunction:"out",transform:"translateX(1.6px)"}}),qYe=me({transition:"fast",color:`[var(${$2}, {colors.mantine.colors.gray[7]})]`,fontSize:"15px",fontWeight:500,lineHeight:"1.4"}),UYe=me({flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch",overflow:"hidden",gap:"sm"}),VYe=me({background:"mantine.colors.gray[1]",borderRadius:"sm",flexWrap:"nowrap",gap:"1.5",padding:"1",_dark:{background:"mantine.colors.dark[7]"}}),YYe=me({fontSize:"xs",fontWeight:500,flexGrow:1,padding:"[6px 8px]",transition:"fast",borderRadius:"sm",color:"mantine.colors.gray[7]",_hover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.gray[3]"},"&[data-active]":{transition:"none",background:"mantine.colors.white",shadow:"xs",color:"mantine.colors.defaultColor"},_dark:{color:"mantine.colors.dark[1]",_hover:{color:"mantine.colors.white",background:"mantine.colors.dark[6]"},"&:is([data-active])":{color:"mantine.colors.white",background:"mantine.colors.dark[5]"}}}),WYe=me({flex:1,overflow:"hidden",position:"relative","&:not(:has(.mantine-ScrollArea-root))":{paddingLeft:"1",paddingRight:"1"},"& .mantine-ScrollArea-root":{width:"100%",height:"100%","& > div":{paddingLeft:"1",paddingRight:"1"}}}),GYe=me({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[24px 20px]",alignItems:"baseline",justifyItems:"stretch"}),XYe=me({justifySelf:"end",textAlign:"right",userSelect:"none"}),KYe=me({position:"absolute",width:"14px",height:"14px",border:"3.5px solid",borderColor:"mantine.colors.dark[3]",borderTop:"none",borderLeft:"none",borderRadius:"2px",bottom:"0.5",right:"0.5",transition:"fast",cursor:"se-resize",_hover:{borderWidth:"4px",borderColor:"mantine.colors.dark[1]"}});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZYe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],FQ=xt("outline","chevron-down","ChevronDown",ZYe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const QYe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],Mu=xt("outline","chevron-right","ChevronRight",QYe);function HQ({children:e}){return y.jsx(y.Fragment,{children:e})}function qQ({value:e,isExpanded:r}){const[n,o]=S.useState(!1),a=S.useRef(null);return S.useEffect(()=>{a.current&&o(a.current.scrollWidth>a.current.clientWidth)},[e]),y.jsx(no,{label:n&&!r?e:null,multiline:!0,w:300,withinPortal:!0,children:y.jsx(pt,{ref:a,component:"div",className:me({fontSize:"sm",padding:"xs",userSelect:"all",color:"mantine.colors.text",lineHeight:1.4,whiteSpace:r?"pre-wrap":"nowrap",overflow:r?"visible":"hidden",textOverflow:r?"unset":"ellipsis",wordBreak:r?"break-word":"normal",minWidth:0,width:"100%"}),children:e})})}function JYe({values:e,isExpanded:r,onToggle:n}){return r?y.jsx(Ho,{gap:"xs",children:e.map((o,a)=>y.jsxs(Zs,{align:"center",gap:"xs",children:[y.jsx(pt,{className:me({fontSize:"xs",color:"mantine.colors.gray[5]",fontWeight:500,flexShrink:0,_dark:{color:"mantine.colors.dark[3]"}}),children:"•"}),y.jsx(Se,{className:me({minHeight:"32px",display:"flex",alignItems:"center",flex:1}),children:y.jsx(qQ,{value:o,isExpanded:!0})})]},a))}):y.jsx(Se,{className:me({minHeight:"32px",display:"flex",alignItems:"center",padding:"xs",gap:"xs",flexWrap:"wrap",minWidth:0,overflow:"hidden"}),children:e.map((o,a)=>y.jsxs(Zs,{align:"center",gap:"xs",style:{minWidth:0},children:[y.jsx(pt,{className:me({fontSize:"sm",padding:"[4px 8px]",backgroundColor:"mantine.colors.white",color:"mantine.colors.text",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[3]",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"min(200px, 100%)",minWidth:"60px",flex:"0 1 auto",userSelect:"all",_dark:{backgroundColor:"mantine.colors.dark[9]",color:"mantine.colors.text",borderColor:"mantine.colors.dark[4]"}}),title:o,children:o}),a<e.length-1&&y.jsx(pt,{className:me({fontSize:"xs",color:"mantine.colors.gray[5]",fontWeight:500,flexShrink:0,_dark:{color:"mantine.colors.dark[3]"}}),children:"•"})]},a))})}function eWe({label:e,value:r}){const n=Array.isArray(r)?r:typeof r=="string"&&r.includes(`
`)?r.split(`
`).map(s=>s.trim()).filter(Boolean):[r],o=n.length>1,[a,i]=S.useState(!1),l=()=>{i(!a)};return y.jsxs(y.Fragment,{children:[o?y.jsx(Ar,{onClick:l,className:me({fontSize:"xs",color:"mantine.colors.dimmed",justifySelf:"end",textAlign:"right",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"xs",padding:"[4px 8px]",borderRadius:"sm",whiteSpace:"nowrap",transition:"all 150ms ease",_hover:{backgroundColor:"mantine.colors.gray[1]",color:"mantine.colors.primary[6]",_dark:{backgroundColor:"mantine.colors.dark[7]",color:"mantine.colors.primary[4]"}}}),children:y.jsxs(Zs,{align:"center",gap:"xs",children:[y.jsxs(pt,{component:"span",size:"xs",fw:700,children:[e,":"]}),y.jsx(pt,{component:"span",className:me({fontSize:"xs",fontWeight:500,color:"mantine.colors.gray[6]",backgroundColor:"mantine.colors.gray[1]",padding:"[1px 4px]",borderRadius:"xs",_dark:{color:"mantine.colors.dark[2]",backgroundColor:"mantine.colors.dark[6]"}}),children:n.length}),a?y.jsx(FQ,{size:12}):y.jsx(Mu,{size:12})]})}):y.jsxs(pt,{component:"div",className:me({fontSize:"xs",color:"mantine.colors.dimmed",justifySelf:"end",textAlign:"right",userSelect:"none",whiteSpace:"nowrap",padding:"[4px 8px]",fontWeight:700}),children:[e,":"]}),y.jsx(Se,{className:me({justifySelf:"stretch",alignSelf:"start"}),children:o?y.jsx(JYe,{values:n,isExpanded:a,onToggle:l}):y.jsx(Se,{className:me({minHeight:"32px",display:"flex",alignItems:"center"}),children:y.jsx(qQ,{value:n[0]||"",isExpanded:a})})})]})}const tWe=me({"&[data-level='1']":{marginBottom:"sm"}}),rWe=me({cursor:"default",marginTop:"0",marginBottom:"0"}),UQ=me({transition:"fast",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out","& > :not([data-no-transform])":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),nWe=Je(UQ),oWe=Je(UQ,me({cursor:"pointer",width:"100%",justifyContent:"stretch",flexWrap:"nowrap",height:"36px",paddingInlineStart:"[16px]",paddingInlineEnd:"2.5",borderRadius:"sm",alignItems:"center",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.gray.lightColor"},_hover:{background:"mantine.colors.gray.lightHover"},"& .tabler-icon":{transition:"fast",width:"90%",opacity:.65}}));/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const aWe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],WC=xt("outline","info-circle","InfoCircle",aWe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const iWe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],lWe=xt("outline","target","Target",iWe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const sWe=[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}],["path",{d:"M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-4"}],["path",{d:"M16 16l-2.5 -2.5",key:"svg-5"}]],vi=xt("outline","zoom-scan","ZoomScan",sWe),cWe=({node:e})=>y.jsxs(Wr,{className:nWe,gap:6,align:"baseline",wrap:"nowrap",children:[y.jsxs(pt,{component:"div",fz:11,c:"dimmed",children:[e.kind,":"]}),y.jsx(pt,{component:"div",fz:"sm",fw:"500",children:e.title})]}),uWe=({instance:e})=>{const r=Yt(),n=r.currentView.id,o=[...e.views()];return y.jsxs(Wr,{className:oWe,gap:4,children:[y.jsx(hi,{color:"gray",variant:"transparent",size:"xs",flex:0,children:y.jsx(lWe,{stroke:1.2})}),y.jsx(pt,{component:"div",fz:"sm",fw:"500",flex:"1 1 100%",children:e.title}),y.jsxs(Se,{onClick:pn,pos:"relative","data-no-transform":!0,flex:0,children:[o.length===0&&y.jsx(ro,{size:"compact-xs",variant:"transparent",color:"gray",disabled:!0,children:"no views"}),o.length>0&&y.jsxs(go,{shadow:"md",withinPortal:!1,position:"bottom-start",offset:0,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,trapFocus:!0,children:[y.jsx(go.Target,{children:y.jsxs(ro,{size:"compact-xs",variant:"subtle",color:"gray",children:[o.length," view",o.length>1?"s":""]})}),y.jsx(go.Dropdown,{children:o.map(a=>y.jsx(go.Item,{px:"xs",py:4,disabled:a.id===n,leftSection:y.jsx(hi,{size:"sm",variant:"transparent",color:"gray",children:y.jsx(vi,{stroke:1.8,opacity:.65})}),styles:{itemSection:{marginInlineEnd:Ae(8)}},onClick:i=>{i.stopPropagation(),r.navigateTo(a.id)},children:a.title},a.id))})]})]})]})},dWe=()=>{},pWe=S.memo(({elementFqn:e})=>{const r=qo().element(e),n=[...r.deployments()],o=ry({multiple:!1});o.setHoveredNode=dWe;const a=S.useMemo(()=>{let i=[],l=new Map;for(const s of r.deployments()){let c={label:y.jsx(uWe,{instance:s}),value:s.id,type:"instance",children:[]};l.set(s.id,c);let u=s.parent;for(;u;){let d=l.get(u.id);if(d){d.children.push(c);break}d={label:y.jsx(cWe,{node:u}),value:u.id,type:"node",children:[c]},l.set(u.id,d),c=d,u=u.parent}!u&&!i.includes(c)&&i.push(c)}return i},[r]);return S.useEffect(()=>{o.expandAllNodes()},[a]),n.length===0?y.jsx(zw,{variant:"light",color:"gray",icon:y.jsx(WC,{}),children:"This element does not have any deployments"}):y.jsx(Wf,{levelOffset:"sm",allowRangeSelection:!1,classNames:{node:tWe,label:rWe},styles:{root:{position:"relative",width:"min-content",minWidth:300}},data:a,tree:o,renderNode:({node:i,selected:l,elementProps:s,hasChildren:c})=>y.jsx(Se,{...s,style:{...!c&&{marginBottom:Ae(4)}},children:c?y.jsx(ro,{fullWidth:!0,color:"gray",variant:l?"transparent":"subtle",size:"xs",justify:"flex-start",styles:{root:{position:"unset",paddingInlineStart:Ae(16)}},children:i.label}):i.label})})}),hWe=()=>{},VQ=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n]&&!Jn(o,r[n]))return!1;return!0};function O2(e,r,n,o){const a=Kj();Xj(a?hWe:e,r,VQ,o)}function fWe(){const e=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return Qi(Math.floor(e),{min:1,max:4})}let I2;function xi(e){return I2??=fWe(),I2<2?Math.round(e):Math.round(e*I2)/I2}function mWe(e){switch(e){case"dots":return Zi.Dots;case"lines":return Zi.Lines;case"cross":return Zi.Cross;default:Ja(e)}}function gWe({background:e}){return typeof e=="string"?y.jsx(Wq,{variant:mWe(e),size:2,gap:20}):y.jsx(Wq,{...e})}const hl={Compound:1,Edge:20,Element:20,Max:30},fl=.05,GC=3,z2={default:"16px",withControls:{top:"58px",left:"16px",right:"16px",bottom:"16px"}},YQ=(e,r)=>(e.data.dimmed??!1)===r?e:{...e,data:{...e.data,dimmed:r}};function yWe(e,r){return r!==void 0?YQ(e,r):n=>YQ(n,e)}const WQ=(e,r)=>(e.data.hovered??!1)===r?e:{...e,data:{...e.data,hovered:r}};function bWe(e,r){return r!==void 0?WQ(e,r):n=>WQ(n,e)}function GQ(e,r){return sDe(e.data,r)?e:{...e,data:{...e.data,...r}}}function vWe(e,r){return r!==void 0?GQ(e,r):n=>GQ(n,e)}const tr={setDimmed:yWe,setHovered:bWe,setData:vWe};function XC({nodes:e,edges:r,onEdgesChange:n,onNodesChange:o,className:a,pannable:i=!0,zoomable:l=!0,nodesSelectable:s=!0,nodesDraggable:c=!1,background:u="dots",children:d,colorMode:p,fitViewPadding:f=0,fitView:g=!0,zoomOnDoubleClick:b=!1,onViewportResize:x,onMoveEnd:w,onNodeMouseEnter:k,onNodeMouseLeave:C,onEdgeMouseEnter:_,onEdgeMouseLeave:T,...R}){const A=u!=="transparent"&&u!=="solid",D=kYe(),N=HC(),{colorScheme:$}=Q$e();return p||(p=$==="auto"?"system":$),y.jsxs(bAe,{colorMode:p,nodes:e,edges:r,className:Je(u==="transparent"&&"bg-transparent",a),...D&&{"data-likec4-zoom-small":!0},zoomOnPinch:l,zoomOnScroll:!i&&l,...!l&&{zoomActivationKeyCode:null},zoomOnDoubleClick:b,maxZoom:l?GC:1,minZoom:l?fl:1,fitView:g,fitViewOptions:{minZoom:fl,maxZoom:1,padding:f,includeHiddenNodes:!1},preventScrolling:l||i,defaultMarkerColor:"var(--xy-edge-stroke)",noDragClassName:"nodrag",noPanClassName:"nopan",noWheelClassName:"nowheel",panOnScroll:i,panOnDrag:i,...!i&&{panActivationKeyCode:null,selectionKeyCode:null},elementsSelectable:s,nodesFocusable:c||s,edgesFocusable:!1,nodesDraggable:c,nodeDragThreshold:4,nodeClickDistance:3,paneClickDistance:3,elevateNodesOnSelect:!1,selectNodesOnDrag:!1,onNodesChange:o,onEdgesChange:n,onMoveEnd:ot((O,{x:j,y:L,zoom:Y})=>{const M=xi(j),q=xi(L);(j!==M||L!==q)&&N.setState({transform:[M,q,Y]}),w?.(O,{x:M,y:q,zoom:Y})}),onNodeMouseEnter:ot((O,j)=>{if(k){k(O,j);return}j.data.hovered||o([{id:j.id,type:"replace",item:tr.setHovered(j,!0)}])}),onNodeMouseLeave:ot((O,j)=>{if(C){C(O,j);return}j.data.hovered&&o([{id:j.id,type:"replace",item:tr.setHovered(j,!1)}])}),onEdgeMouseEnter:ot((O,j)=>{if(_){_(O,j);return}j.data.hovered||n([{id:j.id,type:"replace",item:tr.setHovered(j,!0)}])}),onEdgeMouseLeave:ot((O,j)=>{if(T){T(O,j);return}j.data.hovered&&n([{id:j.id,type:"replace",item:tr.setHovered(j,!1)}])}),onNodeDoubleClick:pn,onEdgeDoubleClick:pn,...R,children:[A&&y.jsx(gWe,{background:u}),x&&y.jsx(wWe,{onViewportResize:x}),d]})}const xWe=({width:e,height:r})=>(e||1)*(r||1),wWe=({onViewportResize:e})=>{const r=At(xWe);return O2(e,[r]),null},XQ=S.createContext(null);function KQ(){return bt(S.useContext(XQ),"No RelationshipsBrowserActorContext")}function L2(e,r=Jn){const n=KQ();return Cn(n,ot(e),r)}function Oy(){const e=KQ();return S.useMemo(()=>({actor:e,get rootElementId(){return`relationships-browser-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,updateView:r=>{e.send({type:"update.view",layouted:r})},changeScope:r=>{e.send({type:"change.scope",scope:r})},navigateTo:(r,n)=>{e.send({type:"navigate.to",subject:r,fromNode:n})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}var KC,ZQ;function ZC(){if(ZQ)return KC;ZQ=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(d){d&&(this._isDirected=Object.hasOwn(d,"directed")?d.directed:!0,this._isMultigraph=Object.hasOwn(d,"multigraph")?d.multigraph:!1,this._isCompound=Object.hasOwn(d,"compound")?d.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(d){return this._label=d,this}graph(){return this._label}setDefaultNodeLabel(d){return this._defaultNodeLabelFn=d,typeof d!="function"&&(this._defaultNodeLabelFn=()=>d),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var d=this;return this.nodes().filter(p=>Object.keys(d._in[p]).length===0)}sinks(){var d=this;return this.nodes().filter(p=>Object.keys(d._out[p]).length===0)}setNodes(d,p){var f=arguments,g=this;return d.forEach(function(b){f.length>1?g.setNode(b,p):g.setNode(b)}),this}setNode(d,p){return Object.hasOwn(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=p),this):(this._nodes[d]=arguments.length>1?p:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]=r,this._children[d]={},this._children[r][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)}node(d){return this._nodes[d]}hasNode(d){return Object.hasOwn(this._nodes,d)}removeNode(d){var p=this;if(Object.hasOwn(this._nodes,d)){var f=g=>p.removeEdge(p._edgeObjs[g]);delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],this.children(d).forEach(function(g){p.setParent(g)}),delete this._children[d]),Object.keys(this._in[d]).forEach(f),delete this._in[d],delete this._preds[d],Object.keys(this._out[d]).forEach(f),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this}setParent(d,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(p===void 0)p=r;else{p+="";for(var f=p;f!==void 0;f=this.parent(f))if(f===d)throw new Error("Setting "+p+" as parent of "+d+" would create a cycle");this.setNode(p)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=p,this._children[p][d]=!0,this}_removeFromParentsChildList(d){delete this._children[this._parent[d]][d]}parent(d){if(this._isCompound){var p=this._parent[d];if(p!==r)return p}}children(d=r){if(this._isCompound){var p=this._children[d];if(p)return Object.keys(p)}else{if(d===r)return this.nodes();if(this.hasNode(d))return[]}}predecessors(d){var p=this._preds[d];if(p)return Object.keys(p)}successors(d){var p=this._sucs[d];if(p)return Object.keys(p)}neighbors(d){var p=this.predecessors(d);if(p){const g=new Set(p);for(var f of this.successors(d))g.add(f);return Array.from(g.values())}}isLeaf(d){var p;return this.isDirected()?p=this.successors(d):p=this.neighbors(d),p.length===0}filterNodes(d){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var f=this;Object.entries(this._nodes).forEach(function([x,w]){d(x)&&p.setNode(x,w)}),Object.values(this._edgeObjs).forEach(function(x){p.hasNode(x.v)&&p.hasNode(x.w)&&p.setEdge(x,f.edge(x))});var g={};function b(x){var w=f.parent(x);return w===void 0||p.hasNode(w)?(g[x]=w,w):w in g?g[w]:b(w)}return this._isCompound&&p.nodes().forEach(x=>p.setParent(x,b(x))),p}setDefaultEdgeLabel(d){return this._defaultEdgeLabelFn=d,typeof d!="function"&&(this._defaultEdgeLabelFn=()=>d),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(d,p){var f=this,g=arguments;return d.reduce(function(b,x){return g.length>1?f.setEdge(b,x,p):f.setEdge(b,x),x}),this}setEdge(){var d,p,f,g,b=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(d=x.v,p=x.w,f=x.name,arguments.length===2&&(g=arguments[1],b=!0)):(d=x,p=arguments[1],f=arguments[3],arguments.length>2&&(g=arguments[2],b=!0)),d=""+d,p=""+p,f!==void 0&&(f=""+f);var w=l(this._isDirected,d,p,f);if(Object.hasOwn(this._edgeLabels,w))return b&&(this._edgeLabels[w]=g),this;if(f!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(p),this._edgeLabels[w]=b?g:this._defaultEdgeLabelFn(d,p,f);var k=s(this._isDirected,d,p,f);return d=k.v,p=k.w,Object.freeze(k),this._edgeObjs[w]=k,a(this._preds[p],d),a(this._sucs[d],p),this._in[p][w]=k,this._out[d][w]=k,this._edgeCount++,this}edge(d,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,p,f);return this._edgeLabels[g]}edgeAsObj(){const d=this.edge(...arguments);return typeof d!="object"?{label:d}:d}hasEdge(d,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,p,f);return Object.hasOwn(this._edgeLabels,g)}removeEdge(d,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,p,f),b=this._edgeObjs[g];return b&&(d=b.v,p=b.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[p],d),i(this._sucs[d],p),delete this._in[p][g],delete this._out[d][g],this._edgeCount--),this}inEdges(d,p){var f=this._in[d];if(f){var g=Object.values(f);return p?g.filter(b=>b.v===p):g}}outEdges(d,p){var f=this._out[d];if(f){var g=Object.values(f);return p?g.filter(b=>b.w===p):g}}nodeEdges(d,p){var f=this.inEdges(d,p);if(f)return f.concat(this.outEdges(d,p))}}function a(u,d){u[d]?u[d]++:u[d]=1}function i(u,d){--u[d]||delete u[d]}function l(u,d,p,f){var g=""+d,b=""+p;if(!u&&g>b){var x=g;g=b,b=x}return g+n+b+n+(f===void 0?e:f)}function s(u,d,p,f){var g=""+d,b=""+p;if(!u&&g>b){var x=g;g=b,b=x}var w={v:g,w:b};return f&&(w.name=f),w}function c(u,d){return l(u,d.v,d.w,d.name)}return KC=o,KC}var QQ,JQ;function kWe(){return JQ||(JQ=1,QQ="2.2.4"),QQ}var eJ,tJ;function _We(){return tJ||(tJ=1,eJ={Graph:ZC(),version:kWe()}),eJ}var QC,rJ;function EWe(){if(rJ)return QC;rJ=1;var e=ZC();QC={write:r,read:a};function r(i){var l={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(l.value=structuredClone(i.graph())),l}function n(i){return i.nodes().map(function(l){var s=i.node(l),c=i.parent(l),u={v:l};return s!==void 0&&(u.value=s),c!==void 0&&(u.parent=c),u})}function o(i){return i.edges().map(function(l){var s=i.edge(l),c={v:l.v,w:l.w};return l.name!==void 0&&(c.name=l.name),s!==void 0&&(c.value=s),c})}function a(i){var l=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(s){l.setNode(s.v,s.value),s.parent&&l.setParent(s.v,s.parent)}),i.edges.forEach(function(s){l.setEdge({v:s.v,w:s.w,name:s.name},s.value)}),l}return QC}var JC,nJ;function SWe(){if(nJ)return JC;nJ=1,JC=e;function e(r){var n={},o=[],a;function i(l){Object.hasOwn(n,l)||(n[l]=!0,a.push(l),r.successors(l).forEach(i),r.predecessors(l).forEach(i))}return r.nodes().forEach(function(l){a=[],i(l),a.length&&o.push(a)}),o}return JC}var eT,oJ;function aJ(){if(oJ)return eT;oJ=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,l=i.length;return a[n]=l,i.push({key:n,priority:o}),this._decrease(l),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,l=n;a<o.length&&(l=o[a].priority<o[l].priority?a:l,i<o.length&&(l=o[i].priority<o[l].priority?i:l),l!==n&&(this._swap(n,l),this._heapify(l)))}_decrease(n){for(var o=this._arr,a=o[n].priority,i;n!==0&&(i=n>>1,!(o[i].priority<a));)this._swap(n,i),n=i}_swap(n,o){var a=this._arr,i=this._keyIndices,l=a[n],s=a[o];a[n]=s,a[o]=l,i[s.key]=n,i[l.key]=o}}return eT=e,eT}var tT,iJ;function lJ(){if(iJ)return tT;iJ=1;var e=aJ();tT=n;var r=()=>1;function n(a,i,l,s){return o(a,String(i),l||r,s||function(c){return a.outEdges(c)})}function o(a,i,l,s){var c={},u=new e,d,p,f=function(g){var b=g.v!==d?g.v:g.w,x=c[b],w=l(g),k=p.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+w);k<x.distance&&(x.distance=k,x.predecessor=d,u.decrease(b,k))};for(a.nodes().forEach(function(g){var b=g===i?0:Number.POSITIVE_INFINITY;c[g]={distance:b},u.add(g,b)});u.size()>0&&(d=u.removeMin(),p=c[d],p.distance!==Number.POSITIVE_INFINITY);)s(d).forEach(f);return c}return tT}var rT,sJ;function CWe(){if(sJ)return rT;sJ=1;var e=lJ();rT=r;function r(n,o,a){return n.nodes().reduce(function(i,l){return i[l]=e(n,l,o,a),i},{})}return rT}var nT,cJ;function uJ(){if(cJ)return nT;cJ=1,nT=e;function e(r){var n=0,o=[],a={},i=[];function l(s){var c=a[s]={onStack:!0,lowlink:n,index:n++};if(o.push(s),r.successors(s).forEach(function(p){Object.hasOwn(a,p)?a[p].onStack&&(c.lowlink=Math.min(c.lowlink,a[p].index)):(l(p),c.lowlink=Math.min(c.lowlink,a[p].lowlink))}),c.lowlink===c.index){var u=[],d;do d=o.pop(),a[d].onStack=!1,u.push(d);while(s!==d);i.push(u)}}return r.nodes().forEach(function(s){Object.hasOwn(a,s)||l(s)}),i}return nT}var oT,dJ;function TWe(){if(dJ)return oT;dJ=1;var e=uJ();oT=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return oT}var aT,pJ;function RWe(){if(pJ)return aT;pJ=1,aT=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(l){return o.outEdges(l)})}function n(o,a,i){var l={},s=o.nodes();return s.forEach(function(c){l[c]={},l[c][c]={distance:0},s.forEach(function(u){c!==u&&(l[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var d=u.v===c?u.w:u.v,p=a(u);l[c][d]={distance:p,predecessor:c}})}),s.forEach(function(c){var u=l[c];s.forEach(function(d){var p=l[d];s.forEach(function(f){var g=p[c],b=u[f],x=p[f],w=g.distance+b.distance;w<x.distance&&(x.distance=w,x.predecessor=b.predecessor)})})}),l}return aT}var iT,hJ;function fJ(){if(hJ)return iT;hJ=1;function e(n){var o={},a={},i=[];function l(s){if(Object.hasOwn(a,s))throw new r;Object.hasOwn(o,s)||(a[s]=!0,o[s]=!0,n.predecessors(s).forEach(l),delete a[s],i.push(s))}if(n.sinks().forEach(l),Object.keys(o).length!==n.nodeCount())throw new r;return i}class r extends Error{constructor(){super(...arguments)}}return iT=e,e.CycleException=r,iT}var lT,mJ;function AWe(){if(mJ)return lT;mJ=1;var e=fJ();lT=r;function r(n){try{e(n)}catch(o){if(o instanceof e.CycleException)return!1;throw o}return!0}return lT}var sT,gJ;function yJ(){if(gJ)return sT;gJ=1,sT=e;function e(a,i,l){Array.isArray(i)||(i=[i]);var s=a.isDirected()?p=>a.successors(p):p=>a.neighbors(p),c=l==="post"?r:n,u=[],d={};return i.forEach(p=>{if(!a.hasNode(p))throw new Error("Graph does not have node: "+p);c(p,s,d,u)}),u}function r(a,i,l,s){for(var c=[[a,!1]];c.length>0;){var u=c.pop();u[1]?s.push(u[0]):Object.hasOwn(l,u[0])||(l[u[0]]=!0,c.push([u[0],!0]),o(i(u[0]),d=>c.push([d,!1])))}}function n(a,i,l,s){for(var c=[a];c.length>0;){var u=c.pop();Object.hasOwn(l,u)||(l[u]=!0,s.push(u),o(i(u),d=>c.push(d)))}}function o(a,i){for(var l=a.length;l--;)i(a[l],l,a);return a}return sT}var cT,bJ;function NWe(){if(bJ)return cT;bJ=1;var e=yJ();cT=r;function r(n,o){return e(n,o,"post")}return cT}var uT,vJ;function DWe(){if(vJ)return uT;vJ=1;var e=yJ();uT=r;function r(n,o){return e(n,o,"pre")}return uT}var dT,xJ;function PWe(){if(xJ)return dT;xJ=1;var e=ZC(),r=aJ();dT=n;function n(o,a){var i=new e,l={},s=new r,c;function u(p){var f=p.v===c?p.w:p.v,g=s.priority(f);if(g!==void 0){var b=a(p);b<g&&(l[f]=c,s.decrease(f,b))}}if(o.nodeCount()===0)return i;o.nodes().forEach(function(p){s.add(p,Number.POSITIVE_INFINITY),i.setNode(p)}),s.decrease(o.nodes()[0],0);for(var d=!1;s.size()>0;){if(c=s.removeMin(),Object.hasOwn(l,c))i.setEdge(c,l[c]);else{if(d)throw new Error("Input graph is not connected: "+o);d=!0}o.nodeEdges(c).forEach(u)}return i}return dT}var wJ,kJ;function $We(){return kJ||(kJ=1,wJ={components:SWe(),dijkstra:lJ(),dijkstraAll:CWe(),findCycles:TWe(),floydWarshall:RWe(),isAcyclic:AWe(),postorder:NWe(),preorder:DWe(),prim:PWe(),tarjan:uJ(),topsort:fJ()}),wJ}var pT,_J;function ml(){if(_J)return pT;_J=1;var e=_We();return pT={Graph:e.Graph,json:EWe(),alg:$We(),version:e.version},pT}var hT,EJ;function MWe(){if(EJ)return hT;EJ=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,l=i._prev;for(;l!==i;)a.push(JSON.stringify(l,n)),l=l._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return hT=e,hT}var fT,SJ;function OWe(){if(SJ)return fT;SJ=1;let e=ml().Graph,r=MWe();fT=o;let n=()=>1;function o(u,d){if(u.nodeCount()<=1)return[];let p=l(u,d||n);return a(p.graph,p.buckets,p.zeroIdx).flatMap(f=>u.outEdges(f.v,f.w))}function a(u,d,p){let f=[],g=d[d.length-1],b=d[0],x;for(;u.nodeCount();){for(;x=b.dequeue();)i(u,d,p,x);for(;x=g.dequeue();)i(u,d,p,x);if(u.nodeCount()){for(let w=d.length-2;w>0;--w)if(x=d[w].dequeue(),x){f=f.concat(i(u,d,p,x,!0));break}}}return f}function i(u,d,p,f,g){let b=g?[]:void 0;return u.inEdges(f.v).forEach(x=>{let w=u.edge(x),k=u.node(x.v);g&&b.push({v:x.v,w:x.w}),k.out-=w,s(d,p,k)}),u.outEdges(f.v).forEach(x=>{let w=u.edge(x),k=x.w,C=u.node(k);C.in-=w,s(d,p,C)}),u.removeNode(f.v),b}function l(u,d){let p=new e,f=0,g=0;u.nodes().forEach(w=>{p.setNode(w,{v:w,in:0,out:0})}),u.edges().forEach(w=>{let k=p.edge(w.v,w.w)||0,C=d(w),_=k+C;p.setEdge(w.v,w.w,_),g=Math.max(g,p.node(w.v).out+=C),f=Math.max(f,p.node(w.w).in+=C)});let b=c(g+f+3).map(()=>new r),x=f+1;return p.nodes().forEach(w=>{s(b,x,p.node(w))}),{graph:p,buckets:b,zeroIdx:x}}function s(u,d,p){p.out?p.in?u[p.out-p.in+d].enqueue(p):u[u.length-1].enqueue(p):u[0].enqueue(p)}function c(u){const d=[];for(let p=0;p<u;p++)d.push(p);return d}return fT}var mT,CJ;function Rn(){if(CJ)return mT;CJ=1;let e=ml().Graph;mT={addBorderNode:d,addDummyNode:r,applyWithChunking:g,asNonCompoundGraph:o,buildLayerMatrix:s,intersectRect:l,mapValues:A,maxRank:b,normalizeRanks:c,notime:k,partition:x,pick:R,predecessorWeights:i,range:T,removeEmptyRanks:u,simplify:n,successorWeights:a,time:w,uniqueId:_,zipObject:D};function r(N,$,O,j){for(var L=j;N.hasNode(L);)L=_(j);return O.dummy=$,N.setNode(L,O),L}function n(N){let $=new e().setGraph(N.graph());return N.nodes().forEach(O=>$.setNode(O,N.node(O))),N.edges().forEach(O=>{let j=$.edge(O.v,O.w)||{weight:0,minlen:1},L=N.edge(O);$.setEdge(O.v,O.w,{weight:j.weight+L.weight,minlen:Math.max(j.minlen,L.minlen)})}),$}function o(N){let $=new e({multigraph:N.isMultigraph()}).setGraph(N.graph());return N.nodes().forEach(O=>{N.children(O).length||$.setNode(O,N.node(O))}),N.edges().forEach(O=>{$.setEdge(O,N.edge(O))}),$}function a(N){let $=N.nodes().map(O=>{let j={};return N.outEdges(O).forEach(L=>{j[L.w]=(j[L.w]||0)+N.edge(L).weight}),j});return D(N.nodes(),$)}function i(N){let $=N.nodes().map(O=>{let j={};return N.inEdges(O).forEach(L=>{j[L.v]=(j[L.v]||0)+N.edge(L).weight}),j});return D(N.nodes(),$)}function l(N,$){let O=N.x,j=N.y,L=$.x-O,Y=$.y-j,M=N.width/2,q=N.height/2;if(!L&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let z,H;return Math.abs(Y)*M>Math.abs(L)*q?(Y<0&&(q=-q),z=q*L/Y,H=q):(L<0&&(M=-M),z=M,H=M*Y/L),{x:O+z,y:j+H}}function s(N){let $=T(b(N)+1).map(()=>[]);return N.nodes().forEach(O=>{let j=N.node(O),L=j.rank;L!==void 0&&($[L][j.order]=O)}),$}function c(N){let $=N.nodes().map(j=>{let L=N.node(j).rank;return L===void 0?Number.MAX_VALUE:L}),O=g(Math.min,$);N.nodes().forEach(j=>{let L=N.node(j);Object.hasOwn(L,"rank")&&(L.rank-=O)})}function u(N){let $=N.nodes().map(M=>N.node(M).rank),O=g(Math.min,$),j=[];N.nodes().forEach(M=>{let q=N.node(M).rank-O;j[q]||(j[q]=[]),j[q].push(M)});let L=0,Y=N.graph().nodeRankFactor;Array.from(j).forEach((M,q)=>{M===void 0&&q%Y!==0?--L:M!==void 0&&L&&M.forEach(z=>N.node(z).rank+=L)})}function d(N,$,O,j){let L={width:0,height:0};return arguments.length>=4&&(L.rank=O,L.order=j),r(N,"border",L,$)}function p(N,$=f){const O=[];for(let j=0;j<N.length;j+=$){const L=N.slice(j,j+$);O.push(L)}return O}const f=65535;function g(N,$){if($.length>f){const O=p($);return N.apply(null,O.map(j=>N.apply(null,j)))}else return N.apply(null,$)}function b(N){const $=N.nodes().map(O=>{let j=N.node(O).rank;return j===void 0?Number.MIN_VALUE:j});return g(Math.max,$)}function x(N,$){let O={lhs:[],rhs:[]};return N.forEach(j=>{$(j)?O.lhs.push(j):O.rhs.push(j)}),O}function w(N,$){let O=Date.now();try{return $()}finally{console.log(N+" time: "+(Date.now()-O)+"ms")}}function k(N,$){return $()}let C=0;function _(N){var $=++C;return N+(""+$)}function T(N,$,O=1){$==null&&($=N,N=0);let j=Y=>Y<$;O<0&&(j=Y=>$<Y);const L=[];for(let Y=N;j(Y);Y+=O)L.push(Y);return L}function R(N,$){const O={};for(const j of $)N[j]!==void 0&&(O[j]=N[j]);return O}function A(N,$){let O=$;return typeof $=="string"&&(O=j=>j[$]),Object.entries(N).reduce((j,[L,Y])=>(j[L]=O(Y,L),j),{})}function D(N,$){return N.reduce((O,j,L)=>(O[j]=$[L],O),{})}return mT}var gT,TJ;function IWe(){if(TJ)return gT;TJ=1;let e=OWe(),r=Rn().uniqueId;gT={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,l(i)):o(i)).forEach(s=>{let c=i.edge(s);i.removeEdge(s),c.forwardName=s.name,c.reversed=!0,i.setEdge(s.w,s.v,c,r("rev"))});function l(s){return c=>s.edge(c).weight}}function o(i){let l=[],s={},c={};function u(d){Object.hasOwn(c,d)||(c[d]=!0,s[d]=!0,i.outEdges(d).forEach(p=>{Object.hasOwn(s,p.w)?l.push(p):u(p.w)}),delete s[d])}return i.nodes().forEach(u),l}function a(i){i.edges().forEach(l=>{let s=i.edge(l);if(s.reversed){i.removeEdge(l);let c=s.forwardName;delete s.reversed,delete s.forwardName,i.setEdge(l.w,l.v,s,c)}})}return gT}var yT,RJ;function zWe(){if(RJ)return yT;RJ=1;let e=Rn();yT={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let l=i.v,s=a.node(l).rank,c=i.w,u=a.node(c).rank,d=i.name,p=a.edge(i),f=p.labelRank;if(u===s+1)return;a.removeEdge(i);let g,b,x;for(x=0,++s;s<u;++x,++s)p.points=[],b={width:0,height:0,edgeLabel:p,edgeObj:i,rank:s},g=e.addDummyNode(a,"edge",b,"_d"),s===f&&(b.width=p.width,b.height=p.height,b.dummy="edge-label",b.labelpos=p.labelpos),a.setEdge(l,g,{weight:p.weight},d),x===0&&a.graph().dummyChains.push(g),l=g;a.setEdge(l,c,{weight:p.weight},d)}function o(a){a.graph().dummyChains.forEach(i=>{let l=a.node(i),s=l.edgeLabel,c;for(a.setEdge(l.edgeObj,s);l.dummy;)c=a.successors(i)[0],a.removeNode(i),s.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(s.x=l.x,s.y=l.y,s.width=l.width,s.height=l.height),i=c,l=a.node(i)})}return yT}var bT,AJ;function B2(){if(AJ)return bT;AJ=1;const{applyWithChunking:e}=Rn();bT={longestPath:r,slack:n};function r(o){var a={};function i(l){var s=o.node(l);if(Object.hasOwn(a,l))return s.rank;a[l]=!0;let c=o.outEdges(l).map(d=>d==null?Number.POSITIVE_INFINITY:i(d.w)-o.edge(d).minlen);var u=e(Math.min,c);return u===Number.POSITIVE_INFINITY&&(u=0),s.rank=u}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return bT}var vT,NJ;function DJ(){if(NJ)return vT;NJ=1;var e=ml().Graph,r=B2().slack;vT=n;function n(l){var s=new e({directed:!1}),c=l.nodes()[0],u=l.nodeCount();s.setNode(c,{});for(var d,p;o(s,l)<u;)d=a(s,l),p=s.hasNode(d.v)?r(l,d):-r(l,d),i(s,l,p);return s}function o(l,s){function c(u){s.nodeEdges(u).forEach(d=>{var p=d.v,f=u===p?d.w:p;!l.hasNode(f)&&!r(s,d)&&(l.setNode(f,{}),l.setEdge(u,f,{}),c(f))})}return l.nodes().forEach(c),l.nodeCount()}function a(l,s){return s.edges().reduce((c,u)=>{let d=Number.POSITIVE_INFINITY;return l.hasNode(u.v)!==l.hasNode(u.w)&&(d=r(s,u)),d<c[0]?[d,u]:c},[Number.POSITIVE_INFINITY,null])[1]}function i(l,s,c){l.nodes().forEach(u=>s.node(u).rank+=c)}return vT}var xT,PJ;function LWe(){if(PJ)return xT;PJ=1;var e=DJ(),r=B2().slack,n=B2().longestPath,o=ml().alg.preorder,a=ml().alg.postorder,i=Rn().simplify;xT=l,l.initLowLimValues=d,l.initCutValues=s,l.calcCutValue=u,l.leaveEdge=f,l.enterEdge=g,l.exchangeEdges=b;function l(C){C=i(C),n(C);var _=e(C);d(_),s(_,C);for(var T,R;T=f(_);)R=g(_,C,T),b(_,C,T,R)}function s(C,_){var T=a(C,C.nodes());T=T.slice(0,T.length-1),T.forEach(R=>c(C,_,R))}function c(C,_,T){var R=C.node(T),A=R.parent;C.edge(T,A).cutvalue=u(C,_,T)}function u(C,_,T){var R=C.node(T),A=R.parent,D=!0,N=_.edge(T,A),$=0;return N||(D=!1,N=_.edge(A,T)),$=N.weight,_.nodeEdges(T).forEach(O=>{var j=O.v===T,L=j?O.w:O.v;if(L!==A){var Y=j===D,M=_.edge(O).weight;if($+=Y?M:-M,w(C,T,L)){var q=C.edge(T,L).cutvalue;$+=Y?-q:q}}}),$}function d(C,_){arguments.length<2&&(_=C.nodes()[0]),p(C,{},1,_)}function p(C,_,T,R,A){var D=T,N=C.node(R);return _[R]=!0,C.neighbors(R).forEach($=>{Object.hasOwn(_,$)||(T=p(C,_,T,$,R))}),N.low=D,N.lim=T++,A?N.parent=A:delete N.parent,T}function f(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,T){var R=T.v,A=T.w;_.hasEdge(R,A)||(R=T.w,A=T.v);var D=C.node(R),N=C.node(A),$=D,O=!1;D.lim>N.lim&&($=N,O=!0);var j=_.edges().filter(L=>O===k(C,C.node(L.v),$)&&O!==k(C,C.node(L.w),$));return j.reduce((L,Y)=>r(_,Y)<r(_,L)?Y:L)}function b(C,_,T,R){var A=T.v,D=T.w;C.removeEdge(A,D),C.setEdge(R.v,R.w,{}),d(C),s(C,_),x(C,_)}function x(C,_){var T=C.nodes().find(A=>!_.node(A).parent),R=o(C,T);R=R.slice(1),R.forEach(A=>{var D=C.node(A).parent,N=_.edge(A,D),$=!1;N||(N=_.edge(D,A),$=!0),_.node(A).rank=_.node(D).rank+($?N.minlen:-N.minlen)})}function w(C,_,T){return C.hasEdge(_,T)}function k(C,_,T){return T.low<=_.lim&&_.lim<=T.lim}return xT}var wT,$J;function BWe(){if($J)return wT;$J=1;var e=B2(),r=e.longestPath,n=DJ(),o=LWe();wT=a;function a(c){var u=c.graph().ranker;if(u instanceof Function)return u(c);switch(c.graph().ranker){case"network-simplex":s(c);break;case"tight-tree":l(c);break;case"longest-path":i(c);break;case"none":break;default:s(c)}}var i=r;function l(c){r(c),n(c)}function s(c){o(c)}return wT}var kT,MJ;function jWe(){if(MJ)return kT;MJ=1,kT=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let l=o.node(i),s=l.edgeObj,c=r(o,a,s.v,s.w),u=c.path,d=c.lca,p=0,f=u[p],g=!0;for(;i!==s.w;){if(l=o.node(i),g){for(;(f=u[p])!==d&&o.node(f).maxRank<l.rank;)p++;f===d&&(g=!1)}if(!g){for(;p<u.length-1&&o.node(f=u[p+1]).minRank<=l.rank;)p++;f=u[p]}o.setParent(i,f),i=o.successors(i)[0]}})}function r(o,a,i,l){let s=[],c=[],u=Math.min(a[i].low,a[l].low),d=Math.max(a[i].lim,a[l].lim),p,f;p=i;do p=o.parent(p),s.push(p);while(p&&(a[p].low>u||d>a[p].lim));for(f=p,p=l;(p=o.parent(p))!==f;)c.push(p);return{path:s.concat(c.reverse()),lca:f}}function n(o){let a={},i=0;function l(s){let c=i;o.children(s).forEach(l),a[s]={low:c,lim:i++}}return o.children().forEach(l),a}return kT}var _T,OJ;function FWe(){if(OJ)return _T;OJ=1;let e=Rn();_T={run:r,cleanup:i};function r(l){let s=e.addDummyNode(l,"root",{},"_root"),c=o(l),u=Object.values(c),d=e.applyWithChunking(Math.max,u)-1,p=2*d+1;l.graph().nestingRoot=s,l.edges().forEach(g=>l.edge(g).minlen*=p);let f=a(l)+1;l.children().forEach(g=>n(l,s,p,f,d,c,g)),l.graph().nodeRankFactor=p}function n(l,s,c,u,d,p,f){let g=l.children(f);if(!g.length){f!==s&&l.setEdge(s,f,{weight:0,minlen:c});return}let b=e.addBorderNode(l,"_bt"),x=e.addBorderNode(l,"_bb"),w=l.node(f);l.setParent(b,f),w.borderTop=b,l.setParent(x,f),w.borderBottom=x,g.forEach(k=>{n(l,s,c,u,d,p,k);let C=l.node(k),_=C.borderTop?C.borderTop:k,T=C.borderBottom?C.borderBottom:k,R=C.borderTop?u:2*u,A=_!==T?1:d-p[f]+1;l.setEdge(b,_,{weight:R,minlen:A,nestingEdge:!0}),l.setEdge(T,x,{weight:R,minlen:A,nestingEdge:!0})}),l.parent(f)||l.setEdge(s,b,{weight:0,minlen:d+p[f]})}function o(l){var s={};function c(u,d){var p=l.children(u);p&&p.length&&p.forEach(f=>c(f,d+1)),s[u]=d}return l.children().forEach(u=>c(u,1)),s}function a(l){return l.edges().reduce((s,c)=>s+l.edge(c).weight,0)}function i(l){var s=l.graph();l.removeNode(s.nestingRoot),delete s.nestingRoot,l.edges().forEach(c=>{var u=l.edge(c);u.nestingEdge&&l.removeEdge(c)})}return _T}var ET,IJ;function HWe(){if(IJ)return ET;IJ=1;let e=Rn();ET=r;function r(o){function a(i){let l=o.children(i),s=o.node(i);if(l.length&&l.forEach(a),Object.hasOwn(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(let c=s.minRank,u=s.maxRank+1;c<u;++c)n(o,"borderLeft","_bl",i,s,c),n(o,"borderRight","_br",i,s,c)}}o.children().forEach(a)}function n(o,a,i,l,s,c){let u={width:0,height:0,rank:c,borderType:a},d=s[a][c-1],p=e.addDummyNode(o,"border",u,i);s[a][c]=p,o.setParent(p,l),d&&o.setEdge(d,p,{weight:1})}return ET}var ST,zJ;function qWe(){if(zJ)return ST;zJ=1,ST={adjust:e,undo:r};function e(c){let u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&n(c)}function r(c){let u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&a(c),(u==="lr"||u==="rl")&&(l(c),n(c))}function n(c){c.nodes().forEach(u=>o(c.node(u))),c.edges().forEach(u=>o(c.edge(u)))}function o(c){let u=c.width;c.width=c.height,c.height=u}function a(c){c.nodes().forEach(u=>i(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(i),Object.hasOwn(d,"y")&&i(d)})}function i(c){c.y=-c.y}function l(c){c.nodes().forEach(u=>s(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(s),Object.hasOwn(d,"x")&&s(d)})}function s(c){let u=c.x;c.x=c.y,c.y=u}return ST}var CT,LJ;function UWe(){if(LJ)return CT;LJ=1;let e=Rn();CT=r;function r(n){let o={},a=n.nodes().filter(u=>!n.children(u).length),i=a.map(u=>n.node(u).rank),l=e.applyWithChunking(Math.max,i),s=e.range(l+1).map(()=>[]);function c(u){if(o[u])return;o[u]=!0;let d=n.node(u);s[d.rank].push(u),n.successors(u).forEach(c)}return a.sort((u,d)=>n.node(u).rank-n.node(d).rank).forEach(c),s}return CT}var TT,BJ;function VWe(){if(BJ)return TT;BJ=1;let e=Rn().zipObject;TT=r;function r(o,a){let i=0;for(let l=1;l<a.length;++l)i+=n(o,a[l-1],a[l]);return i}function n(o,a,i){let l=e(i,i.map((f,g)=>g)),s=a.flatMap(f=>o.outEdges(f).map(g=>({pos:l[g.w],weight:o.edge(g).weight})).sort((g,b)=>g.pos-b.pos)),c=1;for(;c<i.length;)c<<=1;let u=2*c-1;c-=1;let d=new Array(u).fill(0),p=0;return s.forEach(f=>{let g=f.pos+c;d[g]+=f.weight;let b=0;for(;g>0;)g%2&&(b+=d[g+1]),g=g-1>>1,d[g]+=f.weight;p+=f.weight*b}),p}return TT}var RT,jJ;function YWe(){if(jJ)return RT;jJ=1,RT=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((l,s)=>{let c=r.edge(s),u=r.node(s.v);return{sum:l.sum+c.weight*u.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return RT}var AT,FJ;function WWe(){if(FJ)return AT;FJ=1;let e=Rn();AT=r;function r(a,i){let l={};a.forEach((c,u)=>{let d=l[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:u};c.barycenter!==void 0&&(d.barycenter=c.barycenter,d.weight=c.weight)}),i.edges().forEach(c=>{let u=l[c.v],d=l[c.w];u!==void 0&&d!==void 0&&(d.indegree++,u.out.push(l[c.w]))});let s=Object.values(l).filter(c=>!c.indegree);return n(s)}function n(a){let i=[];function l(c){return u=>{u.merged||(u.barycenter===void 0||c.barycenter===void 0||u.barycenter>=c.barycenter)&&o(c,u)}}function s(c){return u=>{u.in.push(c),--u.indegree===0&&a.push(u)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(l(c)),c.out.forEach(s(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let l=0,s=0;a.weight&&(l+=a.barycenter*a.weight,s+=a.weight),i.weight&&(l+=i.barycenter*i.weight,s+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=l/s,a.weight=s,a.i=Math.min(i.i,a.i),i.merged=!0}return AT}var NT,HJ;function GWe(){if(HJ)return NT;HJ=1;let e=Rn();NT=r;function r(a,i){let l=e.partition(a,b=>Object.hasOwn(b,"barycenter")),s=l.lhs,c=l.rhs.sort((b,x)=>x.i-b.i),u=[],d=0,p=0,f=0;s.sort(o(!!i)),f=n(u,c,f),s.forEach(b=>{f+=b.vs.length,u.push(b.vs),d+=b.barycenter*b.weight,p+=b.weight,f=n(u,c,f)});let g={vs:u.flat(!0)};return p&&(g.barycenter=d/p,g.weight=p),g}function n(a,i,l){let s;for(;i.length&&(s=i[i.length-1]).i<=l;)i.pop(),a.push(s.vs),l++;return l}function o(a){return(i,l)=>i.barycenter<l.barycenter?-1:i.barycenter>l.barycenter?1:a?l.i-i.i:i.i-l.i}return NT}var DT,qJ;function XWe(){if(qJ)return DT;qJ=1;let e=YWe(),r=WWe(),n=GWe();DT=o;function o(l,s,c,u){let d=l.children(s),p=l.node(s),f=p?p.borderLeft:void 0,g=p?p.borderRight:void 0,b={};f&&(d=d.filter(C=>C!==f&&C!==g));let x=e(l,d);x.forEach(C=>{if(l.children(C.v).length){let _=o(l,C.v,c,u);b[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let w=r(x,c);a(w,b);let k=n(w,u);if(f&&(k.vs=[f,k.vs,g].flat(!0),l.predecessors(f).length)){let C=l.node(l.predecessors(f)[0]),_=l.node(l.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(l,s){l.forEach(c=>{c.vs=c.vs.flatMap(u=>s[u]?s[u].vs:u)})}function i(l,s){l.barycenter!==void 0?(l.barycenter=(l.barycenter*l.weight+s.barycenter*s.weight)/(l.weight+s.weight),l.weight+=s.weight):(l.barycenter=s.barycenter,l.weight=s.weight)}return DT}var PT,UJ;function KWe(){if(UJ)return PT;UJ=1;let e=ml().Graph,r=Rn();PT=n;function n(a,i,l){let s=o(a),c=new e({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(u=>a.node(u));return a.nodes().forEach(u=>{let d=a.node(u),p=a.parent(u);(d.rank===i||d.minRank<=i&&i<=d.maxRank)&&(c.setNode(u),c.setParent(u,p||s),a[l](u).forEach(f=>{let g=f.v===u?f.w:f.v,b=c.edge(g,u),x=b!==void 0?b.weight:0;c.setEdge(g,u,{weight:a.edge(f).weight+x})}),Object.hasOwn(d,"minRank")&&c.setNode(u,{borderLeft:d.borderLeft[i],borderRight:d.borderRight[i]}))}),c}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return PT}var $T,VJ;function ZWe(){if(VJ)return $T;VJ=1,$T=e;function e(r,n,o){let a={},i;o.forEach(l=>{let s=r.parent(l),c,u;for(;s;){if(c=r.parent(s),c?(u=a[c],a[c]=s):(u=i,i=s),u&&u!==s){n.setEdge(u,s);return}s=c}})}return $T}var MT,YJ;function QWe(){if(YJ)return MT;YJ=1;let e=UWe(),r=VWe(),n=XWe(),o=KWe(),a=ZWe(),i=ml().Graph,l=Rn();MT=s;function s(p,f){if(f&&typeof f.customOrder=="function"){f.customOrder(p,s);return}let g=l.maxRank(p),b=c(p,l.range(1,g+1),"inEdges"),x=c(p,l.range(g-1,-1,-1),"outEdges"),w=e(p);if(d(p,w),f&&f.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,T=0;T<4;++_,++T){u(_%2?b:x,_%4>=2),w=l.buildLayerMatrix(p);let R=r(p,w);R<k&&(T=0,C=Object.assign({},w),k=R)}d(p,C)}function c(p,f,g){return f.map(function(b){return o(p,b,g)})}function u(p,f){let g=new i;p.forEach(function(b){let x=b.graph().root,w=n(b,x,g,f);w.vs.forEach((k,C)=>b.node(k).order=C),a(b,g,w.vs)})}function d(p,f){Object.values(f).forEach(g=>g.forEach((b,x)=>p.node(b).order=x))}return MT}var OT,WJ;function JWe(){if(WJ)return OT;WJ=1;let e=ml().Graph,r=Rn();OT={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:l,verticalAlignment:s,horizontalCompaction:c,alignCoordinates:p,findSmallestWidthAlignment:d,balance:f};function n(w,k){let C={};function _(T,R){let A=0,D=0,N=T.length,$=R[R.length-1];return R.forEach((O,j)=>{let L=a(w,O),Y=L?w.node(L).order:N;(L||O===$)&&(R.slice(D,j+1).forEach(M=>{w.predecessors(M).forEach(q=>{let z=w.node(q),H=z.order;(H<A||Y<H)&&!(z.dummy&&w.node(M).dummy)&&i(C,q,M)})}),D=j+1,A=Y)}),R}return k.length&&k.reduce(_),C}function o(w,k){let C={};function _(R,A,D,N,$){let O;r.range(A,D).forEach(j=>{O=R[j],w.node(O).dummy&&w.predecessors(O).forEach(L=>{let Y=w.node(L);Y.dummy&&(Y.order<N||Y.order>$)&&i(C,L,O)})})}function T(R,A){let D=-1,N,$=0;return A.forEach((O,j)=>{if(w.node(O).dummy==="border"){let L=w.predecessors(O);L.length&&(N=w.node(L[0]).order,_(A,$,j,D,N),$=j,D=N)}_(A,$,A.length,N,R.length)}),A}return k.length&&k.reduce(T),C}function a(w,k){if(w.node(k).dummy)return w.predecessors(k).find(C=>w.node(C).dummy)}function i(w,k,C){if(k>C){let T=k;k=C,C=T}let _=w[k];_||(w[k]=_={}),_[C]=!0}function l(w,k,C){if(k>C){let _=k;k=C,C=_}return!!w[k]&&Object.hasOwn(w[k],C)}function s(w,k,C,_){let T={},R={},A={};return k.forEach(D=>{D.forEach((N,$)=>{T[N]=N,R[N]=N,A[N]=$})}),k.forEach(D=>{let N=-1;D.forEach($=>{let O=_($);if(O.length){O=O.sort((L,Y)=>A[L]-A[Y]);let j=(O.length-1)/2;for(let L=Math.floor(j),Y=Math.ceil(j);L<=Y;++L){let M=O[L];R[$]===$&&N<A[M]&&!l(C,$,M)&&(R[M]=$,R[$]=T[$]=T[M],N=A[M])}}})}),{root:T,align:R}}function c(w,k,C,_,T){let R={},A=u(w,k,C,T),D=T?"borderLeft":"borderRight";function N(j,L){let Y=A.nodes(),M=Y.pop(),q={};for(;M;)q[M]?j(M):(q[M]=!0,Y.push(M),Y=Y.concat(L(M))),M=Y.pop()}function $(j){R[j]=A.inEdges(j).reduce((L,Y)=>Math.max(L,R[Y.v]+A.edge(Y)),0)}function O(j){let L=A.outEdges(j).reduce((M,q)=>Math.min(M,R[q.w]-A.edge(q)),Number.POSITIVE_INFINITY),Y=w.node(j);L!==Number.POSITIVE_INFINITY&&Y.borderType!==D&&(R[j]=Math.max(R[j],L))}return N($,A.predecessors.bind(A)),N(O,A.successors.bind(A)),Object.keys(_).forEach(j=>R[j]=R[C[j]]),R}function u(w,k,C,_){let T=new e,R=w.graph(),A=b(R.nodesep,R.edgesep,_);return k.forEach(D=>{let N;D.forEach($=>{let O=C[$];if(T.setNode(O),N){var j=C[N],L=T.edge(j,O);T.setEdge(j,O,Math.max(A(w,$,N),L||0))}N=$})}),T}function d(w,k){return Object.values(k).reduce((C,_)=>{let T=Number.NEGATIVE_INFINITY,R=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([D,N])=>{let $=x(w,D)/2;T=Math.max(N+$,T),R=Math.min(N-$,R)});const A=T-R;return A<C[0]&&(C=[A,_]),C},[Number.POSITIVE_INFINITY,null])[1]}function p(w,k){let C=Object.values(k),_=r.applyWithChunking(Math.min,C),T=r.applyWithChunking(Math.max,C);["u","d"].forEach(R=>{["l","r"].forEach(A=>{let D=R+A,N=w[D];if(N===k)return;let $=Object.values(N),O=_-r.applyWithChunking(Math.min,$);A!=="l"&&(O=T-r.applyWithChunking(Math.max,$)),O&&(w[D]=r.mapValues(N,j=>j+O))})})}function f(w,k){return r.mapValues(w.ul,(C,_)=>{if(k)return w[k.toLowerCase()][_];{let T=Object.values(w).map(R=>R[_]).sort((R,A)=>R-A);return(T[1]+T[2])/2}})}function g(w){let k=r.buildLayerMatrix(w),C=Object.assign(n(w,k),o(w,k)),_={},T;["u","d"].forEach(A=>{T=A==="u"?k:Object.values(k).reverse(),["l","r"].forEach(D=>{D==="r"&&(T=T.map(j=>Object.values(j).reverse()));let N=(A==="u"?w.predecessors:w.successors).bind(w),$=s(w,T,C,N),O=c(w,T,$.root,$.align,D==="r");D==="r"&&(O=r.mapValues(O,j=>-j)),_[A+D]=O})});let R=d(w,_);return p(_,R),f(_,w.graph().align)}function b(w,k,C){return(_,T,R)=>{let A=_.node(T),D=_.node(R),N=0,$;if(N+=A.width/2,Object.hasOwn(A,"labelpos"))switch(A.labelpos.toLowerCase()){case"l":$=-A.width/2;break;case"r":$=A.width/2;break}if($&&(N+=C?$:-$),$=0,N+=(A.dummy?k:w)/2,N+=(D.dummy?k:w)/2,N+=D.width/2,Object.hasOwn(D,"labelpos"))switch(D.labelpos.toLowerCase()){case"l":$=D.width/2;break;case"r":$=-D.width/2;break}return $&&(N+=C?$:-$),$=0,N}}function x(w,k){return w.node(k).width}return OT}var IT,GJ;function eGe(){if(GJ)return IT;GJ=1;let e=Rn(),r=JWe().positionX;IT=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,l])=>a.node(i).x=l)}function o(a){let i=e.buildLayerMatrix(a),l=a.graph().ranksep,s=0;i.forEach(c=>{const u=c.reduce((d,p)=>{const f=a.node(p).height;return d>f?d:f},0);c.forEach(d=>a.node(d).y=s+u/2),s+=u+l})}return IT}var zT,XJ;function tGe(){if(XJ)return zT;XJ=1;let e=IWe(),r=zWe(),n=BWe(),o=Rn().normalizeRanks,a=jWe(),i=Rn().removeEmptyRanks,l=FWe(),s=HWe(),c=qWe(),u=QWe(),d=eGe(),p=Rn(),f=ml().Graph;zT=g;function g(B,W){let Q=W&&W.debugTiming?p.time:p.notime;Q("layout",()=>{let J=Q("  buildLayoutGraph",()=>N(B));Q("  runLayout",()=>b(J,Q,W)),Q("  updateInputGraph",()=>x(B,J))})}function b(B,W,Q){W("    makeSpaceForEdgeLabels",()=>$(B)),W("    removeSelfEdges",()=>U(B)),W("    acyclic",()=>e.run(B)),W("    nestingGraph.run",()=>l.run(B)),W("    rank",()=>n(p.asNonCompoundGraph(B))),W("    injectEdgeLabelProxies",()=>O(B)),W("    removeEmptyRanks",()=>i(B)),W("    nestingGraph.cleanup",()=>l.cleanup(B)),W("    normalizeRanks",()=>o(B)),W("    assignRankMinMax",()=>j(B)),W("    removeEdgeLabelProxies",()=>L(B)),W("    normalize.run",()=>r.run(B)),W("    parentDummyChains",()=>a(B)),W("    addBorderSegments",()=>s(B)),W("    order",()=>u(B,Q)),W("    insertSelfEdges",()=>K(B)),W("    adjustCoordinateSystem",()=>c.adjust(B)),W("    position",()=>d(B)),W("    positionSelfEdges",()=>V(B)),W("    removeBorderNodes",()=>H(B)),W("    normalize.undo",()=>r.undo(B)),W("    fixupEdgeLabelCoords",()=>q(B)),W("    undoCoordinateSystem",()=>c.undo(B)),W("    translateGraph",()=>Y(B)),W("    assignNodeIntersects",()=>M(B)),W("    reversePoints",()=>z(B)),W("    acyclic.undo",()=>e.undo(B))}function x(B,W){B.nodes().forEach(Q=>{let J=B.node(Q),ne=W.node(Q);J&&(J.x=ne.x,J.y=ne.y,J.rank=ne.rank,W.children(Q).length&&(J.width=ne.width,J.height=ne.height))}),B.edges().forEach(Q=>{let J=B.edge(Q),ne=W.edge(Q);J.points=ne.points,Object.hasOwn(ne,"x")&&(J.x=ne.x,J.y=ne.y)}),B.graph().width=W.graph().width,B.graph().height=W.graph().height}let w=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],T={width:0,height:0},R=["minlen","weight","width","height","labeloffset"],A={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},D=["labelpos"];function N(B){let W=new f({multigraph:!0,compound:!0}),Q=Z(B.graph());return W.setGraph(Object.assign({},k,X(Q,w),p.pick(Q,C))),B.nodes().forEach(J=>{let ne=Z(B.node(J));const te=X(ne,_);Object.keys(T).forEach(ee=>{te[ee]===void 0&&(te[ee]=T[ee])}),W.setNode(J,te),W.setParent(J,B.parent(J))}),B.edges().forEach(J=>{let ne=Z(B.edge(J));W.setEdge(J,Object.assign({},A,X(ne,R),p.pick(ne,D)))}),W}function $(B){let W=B.graph();W.ranksep/=2,B.edges().forEach(Q=>{let J=B.edge(Q);J.minlen*=2,J.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?J.width+=J.labeloffset:J.height+=J.labeloffset)})}function O(B){B.edges().forEach(W=>{let Q=B.edge(W);if(Q.width&&Q.height){let J=B.node(W.v),ne={rank:(B.node(W.w).rank-J.rank)/2+J.rank,e:W};p.addDummyNode(B,"edge-proxy",ne,"_ep")}})}function j(B){let W=0;B.nodes().forEach(Q=>{let J=B.node(Q);J.borderTop&&(J.minRank=B.node(J.borderTop).rank,J.maxRank=B.node(J.borderBottom).rank,W=Math.max(W,J.maxRank))}),B.graph().maxRank=W}function L(B){B.nodes().forEach(W=>{let Q=B.node(W);Q.dummy==="edge-proxy"&&(B.edge(Q.e).labelRank=Q.rank,B.removeNode(W))})}function Y(B){let W=Number.POSITIVE_INFINITY,Q=0,J=Number.POSITIVE_INFINITY,ne=0,te=B.graph(),ee=te.marginx||0,pe=te.marginy||0;function Te(ce){let de=ce.x,xe=ce.y,De=ce.width,Ge=ce.height;W=Math.min(W,de-De/2),Q=Math.max(Q,de+De/2),J=Math.min(J,xe-Ge/2),ne=Math.max(ne,xe+Ge/2)}B.nodes().forEach(ce=>Te(B.node(ce))),B.edges().forEach(ce=>{let de=B.edge(ce);Object.hasOwn(de,"x")&&Te(de)}),W-=ee,J-=pe,B.nodes().forEach(ce=>{let de=B.node(ce);de.x-=W,de.y-=J}),B.edges().forEach(ce=>{let de=B.edge(ce);de.points.forEach(xe=>{xe.x-=W,xe.y-=J}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=J)}),te.width=Q-W+ee,te.height=ne-J+pe}function M(B){B.edges().forEach(W=>{let Q=B.edge(W),J=B.node(W.v),ne=B.node(W.w),te,ee;Q.points?(te=Q.points[0],ee=Q.points[Q.points.length-1]):(Q.points=[],te=ne,ee=J),Q.points.unshift(p.intersectRect(J,te)),Q.points.push(p.intersectRect(ne,ee))})}function q(B){B.edges().forEach(W=>{let Q=B.edge(W);if(Object.hasOwn(Q,"x"))switch((Q.labelpos==="l"||Q.labelpos==="r")&&(Q.width-=Q.labeloffset),Q.labelpos){case"l":Q.x-=Q.width/2+Q.labeloffset;break;case"r":Q.x+=Q.width/2+Q.labeloffset;break}})}function z(B){B.edges().forEach(W=>{let Q=B.edge(W);Q.reversed&&Q.points.reverse()})}function H(B){B.nodes().forEach(W=>{if(B.children(W).length){let Q=B.node(W),J=B.node(Q.borderTop),ne=B.node(Q.borderBottom),te=B.node(Q.borderLeft[Q.borderLeft.length-1]),ee=B.node(Q.borderRight[Q.borderRight.length-1]);Q.width=Math.abs(ee.x-te.x),Q.height=Math.abs(ne.y-J.y),Q.x=te.x+Q.width/2,Q.y=J.y+Q.height/2}}),B.nodes().forEach(W=>{B.node(W).dummy==="border"&&B.removeNode(W)})}function U(B){B.edges().forEach(W=>{if(W.v===W.w){var Q=B.node(W.v);Q.selfEdges||(Q.selfEdges=[]),Q.selfEdges.push({e:W,label:B.edge(W)}),B.removeEdge(W)}})}function K(B){var W=p.buildLayerMatrix(B);W.forEach(Q=>{var J=0;Q.forEach((ne,te)=>{var ee=B.node(ne);ee.order=te+J,(ee.selfEdges||[]).forEach(pe=>{p.addDummyNode(B,"selfedge",{width:pe.label.width,height:pe.label.height,rank:ee.rank,order:te+ ++J,e:pe.e,label:pe.label},"_se")}),delete ee.selfEdges})})}function V(B){B.nodes().forEach(W=>{var Q=B.node(W);if(Q.dummy==="selfedge"){var J=B.node(Q.e.v),ne=J.x+J.width/2,te=J.y,ee=Q.x-ne,pe=J.height/2;B.setEdge(Q.e,Q.label),B.removeNode(W),Q.label.points=[{x:ne+2*ee/3,y:te-pe},{x:ne+5*ee/6,y:te-pe},{x:ne+ee,y:te},{x:ne+5*ee/6,y:te+pe},{x:ne+2*ee/3,y:te+pe}],Q.label.x=Q.x,Q.label.y=Q.y}})}function X(B,W){return p.mapValues(p.pick(B,W),Number)}function Z(B){var W={};return B&&Object.entries(B).forEach(([Q,J])=>{typeof Q=="string"&&(Q=Q.toLowerCase()),W[Q]=J}),W}return zT}var LT,KJ;function rGe(){if(KJ)return LT;KJ=1;let e=Rn(),r=ml().Graph;LT={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(l=>{i.setNode(l,{label:l}),i.setParent(l,"layer"+o.node(l).rank)}),o.edges().forEach(l=>i.setEdge(l.v,l.w,{},l.name)),a.forEach((l,s)=>{let c="layer"+s;i.setNode(c,{rank:"same"}),l.reduce((u,d)=>(i.setEdge(u,d,{style:"invis"}),d))}),i}return LT}var ZJ,QJ;function nGe(){return QJ||(QJ=1,ZJ="1.1.5"),ZJ}var JJ,eee;function oGe(){return eee||(eee=1,JJ={graphlib:ml(),layout:tGe(),debug:rGe(),util:{time:Rn().time,notime:Rn().notime},version:nGe()}),JJ}var aGe=oGe();const j2=LE(aGe),bo={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:140,height:10,minlen:1,weight:1},emptyNodeOffset:120,nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function iGe(){const e=new j2.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...bo.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...bo.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const BT="-port";function jT(e,r,n){const o=new po(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=F3(r);for(const i of a.sorted){const l=a.children(i).length>0,s=i.id,c=`${e}-${s}`,u=l?`${c}${BT}`:c;o.set(s,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:l,portId:u,inPorts:[],outPorts:[],width:bo.nodeWidth,height:bo.nodeHeight}),l&&(n.setNode(u,{element:i,portId:u,isCompound:l,inPorts:[],outPorts:[],width:bo.nodeWidth-bo.dagre.ranksep,height:bo.compound.labelHeight}),n.setParent(u,c));const d=a.parent(i);d&&n.setParent(c,`${e}-${d.id}`)}return{...a,byId:i=>{const l=a.byId(i),s=o.get(l.id);return{element:l,graph:s}},graphNodes:o}}function lGe(e){return j2.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:l}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(l/2)},width:i,height:l}}}var F2;(e=>{e.Empty="@empty"})(F2||(F2={}));function sGe(e,r){const n=iGe(),o=jT("incomers",e.incomers,n),a=jT("subjects",e.subjects,n),i=jT("outgoers",e.outgoers,n),l=[];kn(INe(kn(i0(e.incoming),No(T=>({id:T.source.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:o.byId(T.source.id).graph,target:a.byId(T.target.id).graph,relation:T}))),kn(i0(e.outgoing),No(T=>({id:T.target.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:a.byId(T.source.id).graph,target:i.byId(T.target.id).graph,relation:T})))),No(T=>({...T,expr:`${T.source.id}->${T.target.id}`})),rDe(Ra("expr")),eDe(T=>{const R=T[0].source,A=T[0].target,D=T[0].expr;n.node(R.id).outPorts.push(A.id),n.node(A.id).inPorts.push(R.id),n.setEdge(R.portId,A.portId,{...bo.edgeLabel},D),l.push({name:D,sourceFqn:T[0].sourceFqn,targetFqn:T[0].targetFqn,source:R.id,sourceHandle:R.id+"_out"+(n.node(R.id).outPorts.length-1),target:A.id,targetHandle:A.id+"_in"+(n.node(A.id).inPorts.length-1),relations:No(T,Ra("relation"))})}));for(const T of a.graphNodes.values()){const R=T.id,A=n.node(R);if(A.isCompound)continue;const D=Math.max(n.inEdges(R)?.length??0,n.outEdges(R)?.length??0);D>2&&(A.height=A.height+(D-3)*14)}const s=[...o.graphNodes.values(),...a.graphNodes.values(),...i.graphNodes.values()];if(o.graphNodes.size==0){const T="incomers-empty";n.setNode(T,{column:"incomers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:bo.nodeWidth,height:bo.nodeHeight});for(const R of a.graphNodes.values())n.setEdge(T,R.portId);s.push({id:T,portId:T})}if(i.graphNodes.size==0){const T="outgoers-empty";n.setNode(T,{column:"outgoers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:bo.nodeWidth,height:bo.nodeHeight});for(const R of a.graphNodes.values())n.setEdge(R.portId,T);s.push({id:T,portId:T})}const c=n.edgeCount();if(c>10)for(const T of n.edges())n.setEdge(T,{...bo.edgeLabel,width:c>25?800:400});const u=lGe(n),d=kn(s,vf(T=>T.id===T.portId),M0(T=>[T.id,u(T.id)]));function p(T){return d[T]??=kn(n.children(T)??[],vf(R=>!R.endsWith(BT)),No(R=>p(R)),wU(R=>{nt(R.length>0,`Node ${T} has no nested nodes`)}),wf((R,A)=>({minY:Math.min(R.minY,A.position.y),maxY:Math.max(R.maxY,A.position.y+A.height)}),{minY:1/0,maxY:-1/0}),({minY:R,maxY:A})=>{const{position:{x:D},width:N}=u(T);return R=R-bo.compound.paddingTop,A=A+bo.compound.paddingBottom,{position:{x:D,y:R},width:N,height:A-R}})}function f(T){const R=n.parent(T);return R?f(R)+1:0}function g(T){const R=n.children(T)??[];return R.length===0?0:1+Math.max(...R.map(g))}const b=(T,R,A)=>kn(A,No((D,N)=>({port:T+"_"+R+N,topY:p(D).position.y})),qx(Ra("topY")),No(Ra("port")));let x=0,w=0;const[k]=[...a.root];nt(k,"Subjects should not be empty");let C=p(a.graphNodes.get(k.id).id);const _=s.map(({id:T})=>{const{element:R,inPorts:A,outPorts:D,column:N}=n.node(T);let{position:$,width:O,height:j}=p(T);if(!R){if(j=Math.min(C.height,300),$.y=C.position.y+C.height/2-j/2,N==="incomers")O=C.position.x-bo.emptyNodeOffset-$.x;else{const U=$.x+O;$.x=C.position.x+C.width+bo.emptyNodeOffset,O=U-$.x}return{id:T,parent:null,x:$.x,y:$.y,title:"empty node",description:Zt.EMPTY,technology:null,tags:[],links:[],color:"muted",shape:"rectangle",style:{border:"dashed",opacity:50},kind:F2.Empty,level:0,labelBBox:{x:$.x,y:$.y,width:O,height:j},children:[],width:O,height:j,column:N,ports:{in:[],out:[]},existsInCurrentView:!1}}const L=n.parent(T),Y=(n.children(T)??[]).filter(U=>!U.endsWith(BT));x=Math.min(x,$.x),w=Math.min(w,$.y);const M=r?a0(R.scopedViews(),U=>U.id!==r.id)?.id??null:null,q=r?.findNodeWithElement(R.id),z=r&&!q?a0(R.ancestors(),U=>!!r.findNodeWithElement(U.id))?.id:null,H=q??(z&&r?.findNodeWithElement(z));return{id:T,parent:L??null,x:$.x,y:$.y,title:R.title,description:R.summary,technology:R.technology,tags:[...R.tags],links:null,color:H?.color??R.color,shape:q?.shape??R.shape,icon:q?.icon??R.icon??"none",modelRef:R.id,kind:R.kind,level:f(T),labelBBox:{x:$.x,y:$.y,width:O,height:j},style:tp({...(q??H)?.style,...R.$element.style},["color","shape","icon"]),navigateTo:M,...Y.length>0&&{depth:g(T)},children:Y,width:O,height:j,column:N,ports:{in:b(T,"in",A),out:b(T,"out",D)},existsInCurrentView:!!q}});return{subjectExistsInScope:!r||r.includesElement(k.id),bounds:{x:Math.min(x,0),y:Math.min(w,0),width:n.graph().width??100,height:n.graph().height??100},nodes:_,edges:n.edges().reduce((T,R)=>{const A=n.edge(R),D=R.name;if(!D)return T;const{name:N,source:$,sourceFqn:O,target:j,targetFqn:L,relations:Y,sourceHandle:M,targetHandle:q}=bt(jx(l,V=>V.name===D)),z=Hx(Y),H=z?.title??"untitled",U=Y.length>1,K=Hx(QE(Y.flatMap(V=>V.navigateTo?.id?V.navigateTo.id:[])));return T.push(e0({id:N,sourceFqn:O,source:$,sourceHandle:M,targetFqn:L,target:j,targetHandle:q,label:U?`${Y.length} relationships`:H,navigateTo:K,color:z?.color??"gray",existsInCurrentView:!r||Y.every(V=>r.includesRelation(V.id)),points:A.points.map(V=>[V.x,V.y]),line:z?.line??"dashed",head:z?.head,tail:z?.tail,relations:Y.map(V=>V.id),parent:null})),T},[])}}function cGe(e,r,n){const o=qo();return S.useMemo(()=>{const a=r?o.findView(r):null,i=sGe(xj(e,o,r,n),n==="view"?a:null);return a&&(n==="global"||!i.subjectExistsInScope)&&(i.edges=i.edges.map(l=>(l.existsInCurrentView=l.relations.every(s=>a.includesRelation(s)),l))),Object.assign(i,{subject:e})},[o,e,r,n,xj])}const Iy=(e,r)=>a3(e.label,r.label);function FT(e){return{label:e.title,value:e.id,children:[...e.children()].map(FT).sort(Iy)}}function uGe(e){const r=qo();return S.useMemo(()=>e?[...r.view(e).roots()].map(FT).sort(Iy):[...r.roots()].map(FT).sort(Iy),[r,e??null])}const dGe=me({margin:"0"}),pGe=me({_hover:{backgroundColor:"mantine.colors.gray[0]",_dark:{backgroundColor:"mantine.colors.defaultHover",color:"mantine.colors.white"}}}),tee=me({maxHeight:["70vh","calc(100cqh - 70px)"]}),hGe=Object.freeze(Object.defineProperty({__proto__:null,label:pGe,node:dGe,scrollArea:tee},Symbol.toStringTag,{value:"Module"}));/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const fGe=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],HT=xt("outline","selector","Selector",fGe),mGe=e=>{const r=e.context.layouted?.subjectExistsInScope??!1;return{subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,subjectExistsInScope:r,enableSelectSubject:e.context.enableSelectSubject,enableChangeScope:e.context.enableChangeScope}},gGe=()=>{},yGe=S.memo(()=>{const e=Oy(),{subjectId:r,viewId:n,scope:o,subjectExistsInScope:a,enableSelectSubject:i,enableChangeScope:l}=L2(mGe),s=S.useRef(null),c=S.useRef(null),u=qo().findElement(r),d=uGe(o==="view"&&n?n:void 0),p=ry({multiple:!1});return p.setHoveredNode=gGe,S.useEffect(()=>{Ad(r).reverse().forEach(f=>{p.expand(f)}),p.select(r)},[r]),y.jsxs(Wr,{ref:s,gap:"xs",pos:"relative",children:[i&&y.jsxs(Wr,{gap:4,wrap:"nowrap",children:[y.jsx(Se,{fz:"xs",fw:"500",style:{whiteSpace:"nowrap",userSelect:"none"},children:"Relationships of"}),y.jsx(Se,{pos:"relative",children:y.jsxs(br,{position:"bottom-start",shadow:"md",keepMounted:!1,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],offset:4,onOpen:()=>{setTimeout(()=>{c.current?.querySelector(`[data-value="${r}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[y.jsx(Eu,{children:y.jsx(ro,{size:"xs",variant:"default",maw:250,rightSection:y.jsx(HT,{size:16}),children:y.jsx(pt,{fz:"xs",fw:"500",truncate:!0,children:u?.title??"???"})})}),y.jsx(Ks,{p:0,miw:250,maw:400,children:y.jsx(na,{scrollbars:"y",type:"never",viewportRef:c,className:tee,children:y.jsx(Wf,{allowRangeSelection:!1,selectOnClick:!1,tree:p,data:d,classNames:hGe,levelOffset:8,styles:{root:{maxWidth:400,overflow:"hidden"},label:{paddingTop:5,paddingBottom:6}},renderNode:({node:f,selected:g,expanded:b,elementProps:x,hasChildren:w})=>y.jsxs(Wr,{gap:2,wrap:"nowrap",...x,py:"3",children:[y.jsx(ir,{variant:"subtle",size:18,c:"dimmed",style:{visibility:w?"visible":"hidden"},children:y.jsx(Mu,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${b?"90deg":"0"})`,width:"80%"}})}),y.jsx(Se,{flex:"1 1 100%",w:"100%",onClick:k=>{k.stopPropagation(),p.select(f.value),p.expand(f.value),e.navigateTo(f.value)},children:y.jsx(pt,{fz:"sm",fw:g?"600":"400",truncate:"end",children:f.label})})]})})})})]})})]}),l&&y.jsxs(Wr,{gap:4,wrap:"nowrap",children:[i&&y.jsx(Se,{fz:"xs",fw:"500",...!a&&{c:"dimmed"},style:{whiteSpace:"nowrap",userSelect:"none"},children:"Scope"}),y.jsx("div",{children:y.jsx(no,{color:"orange",label:y.jsxs(y.Fragment,{children:["This element does not exist in the current view",o==="view"&&y.jsxs(y.Fragment,{children:[y.jsx("br",{}),"Scope is set to global"]})]}),position:"bottom-start",disabled:a,portalProps:{target:s.current},children:y.jsx(J0,{flex:"1 0 auto",size:"xs",withItemsBorders:!1,value:o,styles:{label:{paddingLeft:8,paddingRight:8}},onChange:f=>{e.changeScope(f)},data:[{label:"Global",value:"global"},{label:y.jsx("span",{children:"Current view"}),value:"view",disabled:!a}]})})})]})]})}),H2=(e,r)=>Math.abs(e-r)<2.5,bGe=(e,r)=>e.id===r.id&&ut(e.selected??!1,r.selected??!1)&&ut(e.animated??!1,r.animated??!1)&&ut(e.source,r.source)&&ut(e.sourceHandleId??null,r.sourceHandleId??null)&&ut(e.sourcePosition,r.sourcePosition)&&ut(e.target,r.target)&&ut(e.targetHandleId??null,r.targetHandleId??null)&&ut(e.targetPosition,r.targetPosition)&&H2(e.sourceX,r.sourceX)&&H2(e.sourceY,r.sourceY)&&H2(e.targetX,r.targetX)&&H2(e.targetY,r.targetY)&&ut(e.data,r.data);function qT(e){return S.memo(e,bGe)}const vGe=["Controls","ReadOnly","FocusMode","NavigateTo","ElementDetails","RelationshipDetails","RelationshipBrowser","Search","NavigationButtons","Notations","DynamicViewWalkthrough","EdgeEditing","FitView","Vscode","ElementTags"],ree=M0(vGe,e=>[`enable${e}`,!1]),UT=S.createContext(ree),xGe=e=>{let{enableReadOnly:r,enableEdgeEditing:n,...o}=e;return r&&(n=!1),{enableReadOnly:r,enableEdgeEditing:n,...o}};function Ep({children:e,features:r,overrides:n}){const o=S.useContext(UT),[a,i]=S.useState(o);return S.useEffect(()=>{i(l=>{const s=xGe({...o,...r,...n});return Jn(l,s)?l:s})},[o,r,n]),y.jsx(UT.Provider,{value:a,children:e})}Ep.Overlays=({children:e})=>y.jsx(Ep,{overrides:{enableControls:!1,enableReadOnly:!0,enableEdgeEditing:!1},children:e});function Er(){return S.useContext(UT)}function wGe({feature:e,children:r,and:n=!0}){return Er()[`enable${e}`]===!0&&n?y.jsx(y.Fragment,{children:r}):null}function VT(e,r){return S2(e,r)}const gl=VT("button"),nn=VT("div"),kGe=VT("span"),zy=S.forwardRef(({edgeProps:{id:e,data:{label:r,technology:n,hovered:o=!1},selected:a=!1,selectable:i=!1},className:l,style:s,children:c,...u},d)=>{const p=A1(e)?XI(e):null,f=dYe({isStepEdge:p!==null,cursor:i||p!==null?"pointer":"default"}),g=Ta(r)||Ta(n);return y.jsxs(nn,{ref:d,className:Je(f.root,"likec4-edge-label",l),"data-edge-id":e,animate:{scale:o&&!a?1.06:1},...u,children:[p!==null&&y.jsx(Gr,{className:f.stepNumber,children:p}),g&&y.jsxs(Gr,{className:f.labelContents,children:[Ta(r)&&y.jsx(Gr,{className:Je(f.labelText,me({lineClamp:5})),children:r}),Ta(n)&&y.jsx(Gr,{className:f.labelTechnology,children:"[ "+n+" ]"}),c]})]})});zy.displayName="EdgeLabel";function q2({icon:e,onClick:r}){return y.jsx(ir,{className:Je("nodrag nopan",eYe()),onPointerDownCapture:pn,onClick:r,role:"button",onDoubleClick:pn,children:e??y.jsx(vi,{})})}const _Ge=".react-flow__edge.selected",EGe=me({_reduceGraphics:{transition:"none"}}),SGe=me({pointerEvents:"none",fill:"none",strokeWidth:"calc(var(--xy-edge-stroke-width) + 2)",strokeOpacity:.08,_noReduceGraphics:{transitionProperty:"stroke-width, stroke-opacity",transitionDuration:"fast",transitionTimingFunction:"inOut"},_whenHovered:{transitionTimingFunction:"out",strokeWidth:"calc(var(--xy-edge-stroke-width) + 4)",strokeOpacity:.2},_whenSelected:{strokeWidth:"calc(var(--xy-edge-stroke-width) + 6)",strokeOpacity:.25,_whenHovered:{strokeOpacity:.4}}}),CGe=me({fill:"[var(--xy-edge-stroke)]",stroke:"[var(--xy-edge-stroke)]"}),TGe=me({fill:"none",strokeDashoffset:0,_noReduceGraphics:{animationStyle:"xyedgeAnimated",animationPlayState:"paused",transition:"stroke 130ms ease-out,stroke-width 130ms ease-out"},":where([data-edge-dir='back']) &":{animationDirection:"reverse"},_whenHovered:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"450ms"}},[`:where(${_Ge}, [data-edge-active='true'], [data-edge-animated='true']) &`]:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"0ms"}},_whenDimmed:{animationPlayState:"paused"},_smallZoom:{animationName:"none"},_whenPanning:{strokeDasharray:"none !important",animationPlayState:"paused"}});function Ly({className:e,component:r="g",data:{color:n="gray",hovered:o=!1,active:a=!1,dimmed:i=!1,...l},children:s,style:c}){const u={className:Je(e,EGe,"likec4-edge-container"),"data-likec4-color":n,"data-edge-dir":l.dir??"forward","data-edge-active":a,"data-edge-animated":a,"data-likec4-hovered":o,...i!==!1&&{"data-likec4-dimmed":i}};return r==="svg"?y.jsx("svg",{style:c,...u,children:s}):(nt(r==="g",'EdgeContainer: component must be "g" or "svg"'),y.jsx("g",{style:c,...u,children:s}))}const RGe=e=>y.jsx("marker",{viewBox:"-4 -4 14 16",refX:5,refY:4,markerWidth:"7",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M0,0 L7,4 L0,8 L4,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeDasharray:0,strokeWidth:1,strokeLinecap:"round"})}),AGe=e=>y.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",fill:"context-stroke",strokeWidth:0})}),NGe=e=>y.jsx("marker",{viewBox:"-1 -1 12 12",refX:8,refY:4,markerWidth:"8",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",fill:"none",strokeWidth:1})}),DGe=e=>y.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinejoin:"miter",strokeLinecap:"square"})}),PGe=e=>y.jsx("marker",{viewBox:"-4 -4 16 14",refX:5,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",fill:"context-stroke",strokeWidth:0,strokeLinecap:"round"})}),$Ge=e=>y.jsx("marker",{viewBox:"-4 -4 16 14",refX:6,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinecap:"round"})}),MGe=e=>y.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:y.jsx("circle",{strokeWidth:0,fill:"context-stroke",cx:4,cy:4,r:3})}),OGe=e=>y.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:y.jsx("circle",{strokeWidth:1.25,stroke:"context-stroke",fill:"context-stroke",cx:4,cy:4,r:3})}),nee={Arrow:AGe,Crow:NGe,OArrow:DGe,Open:RGe,Diamond:PGe,ODiamond:$Ge,Dot:MGe,ODot:OGe};function oee(e){if(!(!e||e==="none"))switch(e){case"normal":return"Arrow";case"crow":return"Crow";case"onormal":return"OArrow";case"diamond":return"Diamond";case"odiamond":return"ODiamond";case"open":case"vee":return"Open";case"dot":return"Dot";case"odot":return"ODot";default:Ja(e)}}const By=S.forwardRef(({edgeProps:{id:e,data:{line:r,dir:n,tail:o,head:a},selectable:i=!0,style:l,interactionWidth:s},onEdgePointerDown:c,strokeWidth:u,svgPath:d},p)=>{let f=oee(o),g=oee(a??"normal");n==="back"&&([f,g]=[g,f]);const b=f?nee[f]:null,x=g?nee[g]:null,w=r==="dotted",k=w||r==="dashed";let C;return w?C="1,8":k&&(C="8,10"),y.jsxs(y.Fragment,{children:[i&&y.jsx("path",{className:Je("react-flow__edge-interaction","hide-on-reduced-graphics",me({fill:"none"})),d,style:{strokeWidth:s??10,stroke:"currentcolor",strokeOpacity:0}}),y.jsxs("g",{className:CGe,onPointerDown:c,children:[y.jsxs("defs",{children:[b&&y.jsx(b,{id:"start"+e}),x&&y.jsx(x,{id:"end"+e})]}),y.jsx("path",{className:Je("react-flow__edge-path","hide-on-reduced-graphics",SGe),d,style:l,strokeLinecap:"round"}),y.jsx("path",{ref:p,className:Je("react-flow__edge-path",i&&"react-flow__edge-interaction",TGe),d,style:l,strokeWidth:u,strokeLinecap:"round",strokeDasharray:C,markerStart:b?`url(#start${e})`:void 0,markerEnd:x?`url(#end${e})`:void 0})]})]})});By.displayName="EdgePath";const aee=e=>{if(e!==void 0)return fU(e)?`${Math.round(e)}px`:e};function U2({edgeProps:{id:e,data:{hovered:r=!1,active:n=!1,dimmed:o=!1,labelBBox:a,color:i="gray"}},labelPosition:l,className:s,style:c,children:u,...d}){let p=FC(S.useCallback(x=>x.edgeLookup.get(e)?.zIndex??hl.Edge,[e]));(r||n)&&(p+=100);let f=l?.x??a?.x,g=l?.y??a?.y;if(f===void 0||g===void 0)return null;const b=l?.translate;return y.jsx(Vq,{children:y.jsx("div",{...d,className:Je("nodrag nopan","likec4-edge-label-container",s),"data-likec4-hovered":r,"data-likec4-color":i,"data-edge-active":n,"data-edge-animated":n,...o!==!1&&{"data-likec4-dimmed":o},style:{...a&&{maxWidth:a.width+18},zIndex:p,...c,transform:`translate(${aee(f)}, ${aee(g)}) ${b||""}`},children:u},e)})}const IGe=qT(e=>{const r=Oy(),{enableNavigateTo:n}=Er(),{data:{navigateTo:o,relations:a,existsInCurrentView:i}}=e,[l,s,c]=Sx(e),u=Yt(),d=a.length>1||!i,p=d?{...e,data:{...e.data,line:"solid",color:"amber"}}:e;let f=y.jsx(zy,{edgeProps:p,className:me({transition:"fast"}),children:n&&o&&y.jsx(q2,{...e,onClick:g=>{g.stopPropagation(),u.navigateTo(o)}})});return i||(f=y.jsx(no,{color:"orange",c:"black",label:"This relationship is not included in the current view",portalProps:{target:`#${r.rootElementId}`},openDelay:800,children:f})),y.jsxs(Ly,{...p,children:[y.jsx(By,{edgeProps:p,svgPath:l,...d&&{strokeWidth:5}}),y.jsx(U2,{edgeProps:p,labelPosition:{x:s,y:c,translate:"translate(-50%, 0)"},style:{maxWidth:Math.min(Math.abs(e.targetX-e.sourceX-70),250)},children:f})]})}),zGe=me({width:"100%",height:"100%",border:"3px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"md",display:"flex",justifyContent:"center",alignItems:"center"});function LGe({data:{column:e}}){return y.jsx(Se,{className:zGe,children:y.jsxs(pt,{c:"dimmed",fz:"lg",fw:500,children:["No ",e==="incomers"?"incoming":"outgoing"]})})}const BGe=e=>e.context.view.id;function V2(){const e=am();return Cn(e,BGe)}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const jGe=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],FGe=xt("outline","bolt","Bolt",jGe),HGe=Uo({position:"absolute",zIndex:1,justifyContent:"center",alignItems:"center",_smallZoom:{display:"none"}}),qGe=Uo({gap:"1.5",justifyContent:"center",alignItems:"center"});function Y2({selected:e=!1,data:{hovered:r=!1},buttons:n}){const o=Aa();return n.length?y.jsx(Gr,{className:HGe,style:{top:"calc(100% - 30px)",transform:"translateX(-50%)",left:"50%",width:"auto",minHeight:30},children:y.jsx(nn,{layoutRoot:!0,initial:!1,style:{originY:0},animate:{opacity:r||e?1:.75,scale:r?1.1:e?.9:.8,y:r||e?6:0},"data-likec4-hovered":r,className:Je("nodrag nopan",qGe),children:n.map((a,i)=>y.jsx(ir,{component:gl,className:R2({}),initial:!1,whileTap:{scale:1},whileHover:{scale:1.3},onClick:a.onClick,onDoubleClick:pn,children:a.icon||y.jsx(FGe,{})},`${o}-${a.key??i}`))},`${o}-action-buttons`)}):null}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const UGe=[["path",{d:"M3 6a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3",key:"svg-1"}],["path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3",key:"svg-2"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-3"}]],jy=xt("outline","transform","Transform",UGe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const VGe=[["path",{d:"M4 21v-4a3 3 0 0 1 3 -3h5",key:"svg-0"}],["path",{d:"M9 17l3 -3l-3 -3",key:"svg-1"}],["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-2"}],["path",{d:"M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5",key:"svg-3"}]],xm=xt("outline","file-symlink","FileSymlink",VGe),YGe=e=>{const{enableNavigateTo:r,enableVscode:n}=Er(),o=Yt(),a=V2(),i=Oy(),l=L2(d=>d.context.subject),s=[],{navigateTo:c,fqn:u}=e.data;return c&&r&&a!==c&&s.push({key:"navigate",icon:y.jsx(vi,{}),onClick:d=>{d.stopPropagation(),o.navigateTo(c)}}),u!==l&&s.push({key:"relationships",icon:y.jsx(jy,{}),onClick:d=>{d.stopPropagation(),i.navigateTo(u,e.id)}}),n&&s.push({key:"goToSource",icon:y.jsx(xm,{}),onClick:d=>{d.stopPropagation(),o.openSource({element:u})}}),y.jsx(Y2,{buttons:s,...e})};function Fy({nodeProps:{data:{hovered:e=!1,dimmed:r=!1,...n}},className:o,children:a,style:i,...l}){let s=Qi(n.style.opacity??100,{min:0,max:100});const c=s<99,u=65,d=u+Qi((100-u)*(s/100),{min:0,max:100-u}),p=JVe({isTransparent:c,inverseColor:s<60,borderStyle:n.style.border??(c?"dashed":"none")}),f=Qi(n.depth??1,{min:1,max:5});return y.jsx(nn,{className:Je(p,o),initial:!1,"data-likec4-hovered":e,"data-likec4-color":n.color,"data-compound-depth":f,...r!==!1&&{"data-likec4-dimmed":r},style:{...i,"--_border-transparency":`${d}%`,"--_compound-transparency":`${s}%`},...l,children:a})}function Hy({data:e}){const r=W3({element:e,className:"likec4-compound-icon"});return y.jsxs("div",{className:"likec4-compound-title-container",children:[r,y.jsx(pt,{component:"h3",className:"likec4-compound-title",truncate:"end",children:e.title})]})}const iee=c0({base:{transitionDuration:"normal"},variants:{delay:{true:{transitionDelay:{base:"0.2s",_hover:"0s"}}}}});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const WGe=[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M9 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 8l2 0",key:"svg-2"}],["path",{d:"M15 12l2 0",key:"svg-3"}],["path",{d:"M7 16l10 0",key:"svg-4"}]],YT=xt("outline","id","Id",WGe);function lee({data:{hovered:e=!1},icon:r,onClick:n}){const o=l9(e,e?130:0)[0]&&e;return y.jsx(nn,{initial:!1,animate:{scale:o?1.2:1},whileHover:{scale:1.4},whileTap:{scale:1},className:"likec4-compound-details details-button",children:y.jsx(ir,{className:Je("nodrag nopan",iee({delay:e&&!o}),R2({variant:"transparent"})),onClick:n,onDoubleClick:pn,children:r??y.jsx(YT,{stroke:1.8,style:{width:"75%"}})})})}const GGe=me({position:"relative",width:"100%",height:"100%",padding:"0",margin:"0",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",_before:{content:'" "',position:"absolute",top:"[calc(100% - 4px)]",left:"0",width:"100%",height:"24px",background:"[transparent]",pointerEvents:"all"},_focusVisible:{outline:"none"},_reduceGraphicsOnPan:{_before:{display:"none"}},":where(.react-flow__node.selectable:not(.dragging)) &":{cursor:"pointer"}}),wm=S.forwardRef(({nodeProps:{selected:e=!1,selectable:r=!1,data:{hovered:n=!1,dimmed:o=!1,...a}},className:i,style:l,children:s,...c},u)=>{let d=1;switch(!0){case n:d=1.05;break;case e:d=1.02;break}const{size:p,padding:f,textSize:g}=n3(a.style??{});return y.jsx(nn,{ref:u,className:Je(GGe,"group","likec4-element-node",i),initial:!1,...r&&{animate:{scale:d},whileTap:{scale:.98}},"data-likec4-hovered":n,"data-likec4-color":a.color,"data-likec4-shape":a.shape,"data-likec4-shape-size":p,"data-likec4-spacing":f,"data-likec4-text-size":g,...o!==!1&&{"data-likec4-dimmed":o},style:{...l},...c,children:s})});wm.displayName="ElementNodeContainer";function see(e,r,n=.065){const o=Math.round(e/2),a=o,i=xi(n*o),l=r-2*i;return{path:`  M ${e},${i}
        a ${a},${i} 0,0,0 ${-e} 0
        l 0,${l}
        a ${a},${i} 0,0,0 ${e} 0
        l 0,${-l}
        z
        `.replace(/\s+/g," ").trim(),ry:i,rx:a}}function cee(e,r,n=.185){const o=r,a=Math.round(o/2),i=xi(o/2*n),l=e-2*i;return{path:`
    M ${i},0
    a ${i},${a} 0,0,0 0 ${o}
    l ${l},0
    a ${i},${a} 0,0,0 0 ${-o}
    z`.replace(/\s+/g," ").trim(),ry:a,rx:i}}const Sp={width:115,height:120,path:"M57.9197 0C10.9124 0 33.5766 54.75 33.5766 54.75C38.6131 62.25 45.3285 60.75 45.3285 66C45.3285 70.5 39.4526 72 33.5766 72.75C24.3431 72.75 15.9489 71.25 7.55474 84.75C2.51825 93 0 120 0 120H115C115 120 112.482 93 108.285 84.75C99.8905 70.5 91.4963 72.75 82.2628 72C76.3869 71.25 70.5109 69.75 70.5109 65.25C70.5109 60.75 77.2263 62.25 82.2628 54C82.2628 54.75 104.927 0 57.9197 0V0Z"};function uee({shape:e,w:r,h:n}){switch(e){case"mobile":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),y.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[y.jsx("circle",{cx:17,cy:n/2,r:12}),y.jsx("rect",{x:33,y:12,width:r-44,height:n-24,rx:5})]})]});case"browser":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),y.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[y.jsx("circle",{cx:16,cy:17,r:7}),y.jsx("circle",{cx:36,cy:17,r:7}),y.jsx("circle",{cx:56,cy:17,r:7}),y.jsx("rect",{x:70,y:8,width:r-80,height:17,rx:4}),y.jsx("rect",{x:10,y:32,width:r-20,height:n-42,rx:4})]})]});case"person":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,strokeWidth:0}),y.jsx("svg",{x:r-Sp.width-6,y:n-Sp.height,width:Sp.width,height:Sp.height,viewBox:`0 0 ${Sp.width} ${Sp.height}`,"data-likec4-fill":"mix-stroke",children:y.jsx("path",{strokeWidth:0,d:Sp.path})})]});case"queue":{const{path:o,rx:a,ry:i}=cee(r,n);return y.jsxs(y.Fragment,{children:[y.jsx("path",{d:o,strokeWidth:2}),y.jsx("ellipse",{cx:a,cy:i,ry:i-.75,rx:a,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}case"storage":case"cylinder":{const{path:o,rx:a,ry:i}=see(r,n);return y.jsxs(y.Fragment,{children:[y.jsx("path",{d:o,strokeWidth:2}),y.jsx("ellipse",{cx:a,cy:i,ry:i,rx:a-.75,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}default:return Ja(e)}}function XGe({shape:e,w:r,h:n}){let o;switch(e){case"queue":o=y.jsx("path",{d:cee(r,n).path});break;case"storage":case"cylinder":{o=y.jsx("path",{d:see(r,n).path});break}default:{o=y.jsx("rect",{x:-1,y:-1,width:r+2,height:n+2,rx:6});break}}return y.jsx("g",{className:"likec4-shape-outline",children:o})}function KGe({multiple:e,withOutLine:r}){return y.jsxs("div",{className:vQ({shapetype:"html"}),children:[e&&y.jsx("div",{className:"likec4-shape-multiple"}),r&&y.jsx("div",{className:"likec4-shape-outline"})]})}function km({data:e,width:r,height:n,showSeletionOutline:o=!0}){let a=r&&r>10?r:e.width,i=n&&n>10?n:e.height;const l=e.style?.multiple??!1;if(e.shape==="rectangle")return y.jsx(KGe,{multiple:l,withOutLine:o});const s=vQ({shapetype:"svg"});return y.jsxs(y.Fragment,{children:[l&&y.jsx("svg",{className:s,"data-likec4-shape-multiple":"true",viewBox:`0 0 ${a} ${i}`,children:y.jsx(uee,{shape:e.shape,w:a,h:i})}),y.jsxs("svg",{className:s,viewBox:`0 0 ${a} ${i}`,children:[o&&y.jsx(XGe,{shape:e.shape,w:a,h:i}),y.jsx(uee,{shape:e.shape,w:a,h:i})]})]})}const Cp=S.forwardRef(({value:e,textScale:r=1,uselikec4palette:n=!1,hideIfEmpty:o=!1,emptyText:a="no content",className:i,style:l,fontSize:s,...c},u)=>{if(e.isEmpty&&o)return null;const d=e.nonEmpty?e.isMarkdown?{dangerouslySetInnerHTML:{__html:e.html}}:{children:y.jsx("p",{children:e.text})}:{children:y.jsx(pt,{component:"span",fz:"xs",c:"dimmed",style:{userSelect:"none"},children:a})};return y.jsx(Gr,{ref:u,...c,className:Je(nYe({uselikec4palette:n,value:e.isMarkdown?"markdown":"plaintext"}),i),style:{...l,...s&&{"--text-fz":`var(--font-sizes-${s}, var(--font-sizes-md))`},"--mantine-scale":r},...d})});Cp.displayName="Markdown";const dee=S.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,ref:n,className:Je(e,tYe(),"likec4-element")})),pee=({data:e,...r})=>y.jsx(W3,{element:e,...r}),hee=S.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,className:Je(e,"likec4-element-node-content"),ref:n})),fee=S.forwardRef(({data:{title:e,style:r},className:n,...o},a)=>{const{size:i}=n3(r),l=i==="sm"||i==="xs";return y.jsx(pt,{component:"div",...o,className:Je(n,"likec4-element-title"),"data-likec4-node-title":"",lineClamp:l?2:3,ref:a,children:e})}),mee=S.forwardRef(({data:e,children:r,className:n,...o},a)=>{const i=e?.technology??r;return Ta(i)?y.jsx(pt,{component:"div",...o,className:Je(n,"likec4-element-technology"),"data-likec4-node-technology":"",ref:a,children:i}):null}),gee=S.forwardRef(({data:{description:e,style:r},className:n,...o},a)=>{if(!e?.nonEmpty)return null;const{size:i}=n3(r),l=i==="sm"||i==="xs";return y.jsx(Cp,{...o,className:Je(n,"likec4-element-description"),"data-likec4-node-description":"",value:e,uselikec4palette:!0,hideIfEmpty:!0,maxHeight:e.isMarkdown?"8rem   ":void 0,lineClamp:l?3:5,ref:a})});function yl({iconSize:e,data:r}){return y.jsxs(dee,{style:fU(e)?{"--likec4-icon-size":`${e}px`}:void 0,children:[y.jsx(pee,{data:r}),y.jsxs(hee,{children:[y.jsx(fee,{data:r}),y.jsx(mee,{data:r}),y.jsx(gee,{data:r})]})]})}yl.Root=dee,yl.Icon=pee,yl.Content=hee,yl.Title=fee,yl.Technology=mee,yl.Description=gee;const ZGe=me({position:"absolute",top:"0.5",right:"0.5",_shapeBrowser:{right:"[5px]"},_shapeCylinder:{top:"[14px]"},_shapeStorage:{top:"[14px]"},_shapeQueue:{top:"[1px]",right:"3"},_smallZoom:{display:"none"}});function WT({selected:e=!1,data:{hovered:r=!1},icon:n,onClick:o}){const a=Aa();return y.jsx(Gr,{className:Je(ZGe,"details-button"),children:y.jsx(ir,{className:Je("nodrag nopan",R2({variant:"transparent"})),component:gl,initial:!1,style:{originX:.45,originY:.55},animate:r||e?{scale:1.2,opacity:.8}:{scale:1,opacity:.5},whileHover:{scale:1.4,opacity:1},whileTap:{scale:1.15},onClick:o,onDoubleClick:pn,children:n??y.jsx(YT,{stroke:1.8,style:{width:"75%"}})},a)})}const QGe=e=>{const r=Yt();return y.jsx(WT,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})};function JGe(e){const{enableElementTags:r}=Er();return y.jsxs(wm,{layoutId:e.id,nodeProps:e,children:[y.jsx(km,{...e}),y.jsx(yl,{...e}),r&&y.jsx(My,{...e}),y.jsx(QGe,{...e}),y.jsx(YGe,{...e}),y.jsx(tXe,{...e})]},e.id)}function eXe(e){const r=Yt();return y.jsxs(Fy,{layoutId:e.id,nodeProps:e,children:[y.jsx(Hy,{...e}),y.jsx(lee,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}}),y.jsx(rXe,{...e})]},e.id)}const tXe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(fo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>y.jsx(fo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),rXe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(fo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(fo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const nXe=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],yee=xt("outline","chevron-left","ChevronLeft",nXe),oXe={element:JGe,compound:eXe,empty:LGe},aXe={relationship:IGe};function bee({actorRef:e}){const r=S.useRef(null);return r.current==null&&(r.current={initialNodes:[],initialEdges:[]}),y.jsx(XQ.Provider,{value:e,children:y.jsx(Ix,{...r.current,children:y.jsx(ym,{id:e.sessionId,inherit:!1,children:y.jsx(Oa,{children:y.jsx(sXe,{})})})})})}const iXe=e=>({isActive:e.hasTag("active"),nodes:e.context.xynodes,edges:e.context.xyedges}),lXe=(e,r)=>e.isActive===r.isActive&&Jn(e.nodes,r.nodes)&&Jn(e.edges,r.edges),sXe=S.memo(()=>{const e=Oy(),{isActive:r,nodes:n,edges:o}=L2(iXe,lXe);return y.jsx(XC,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","relationships-browser"),nodeTypes:oXe,edgeTypes:aXe,fitView:!1,onNodeClick:ot((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:ot((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:ot(a=>{a.stopPropagation(),e.send({type:"xyflow.paneClick"})}),onDoubleClick:ot(a=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:ot(()=>{e.send({type:"xyflow.resized"})}),onNodesChange:ot(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:ot(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),onEdgeMouseEnter:ot((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:ot((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:ot(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,pannable:!0,zoomable:!0,children:y.jsx(uXe,{})})}),cXe=e=>({subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,closeable:e.context.closeable}),uXe=S.memo(()=>{const e=Oy(),{subjectId:r,viewId:n,scope:o,closeable:a}=L2(cXe),i=yr(),l=bf();S.useEffect(()=>{l.viewportInitialized&&e.send({type:"xyflow.init",instance:l,store:i})},[i,l.viewportInitialized,e]);const s=cGe(r,n,o),[c,u,{history:d,current:p}]=nV(r);S.useEffect(()=>{c!==r&&u.set(r)},[r]),S.useEffect(()=>{c!==r&&e.navigateTo(c)},[c,e]),Zj(()=>{e.updateView(s)},[s,e]);const f=p>0,g=p+1<d.length;return y.jsxs(y.Fragment,{children:[y.jsx(dXe,{hasStepBack:f,hasStepForward:g,onStepBack:()=>u.back(),onStepForward:()=>u.forward()}),a&&y.jsx(fu,{position:"top-right",children:y.jsx(ir,{variant:"default",color:"gray",onClick:b=>{b.stopPropagation(),e.close()},children:y.jsx(Xf,{})})})]})}),dXe=({hasStepBack:e,hasStepForward:r,onStepBack:n,onStepForward:o})=>y.jsx(fu,{position:"top-left",children:y.jsxs(Wr,{gap:4,wrap:"nowrap",children:[y.jsxs(Oa,{mode:"popLayout",children:[e&&y.jsx(dl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:y.jsx(ir,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),n()},children:y.jsx(yee,{})})},"back"),r&&y.jsx(dl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(ir,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),o()},children:y.jsx(Mu,{})})},"forward")]}),y.jsx(yGe,{})]})}),pXe=me({display:"inline-block",fontSize:"sm",fontWeight:500,whiteSpace:"nowrap",padding:"[3px 6px]",borderRadius:3,background:"var(--likec4-palette-fill)/75",lineHeight:1.2,color:"var(--likec4-palette-hiContrast)"}),hXe=me({_light:{background:"mantine.colors.gray[1]","&[data-missing":{}},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/15",borderColor:"mantine.colors.orange[5]/20",_light:{color:"mantine.colors.orange[8]"}}}),fXe=me({flex:"1 1 100%",position:"relative",width:"100%",height:"100%",background:"mantine.colors.body",border:"1px solid {colors.mantine.colors.defaultBorder}",borderRadius:"sm",_light:{borderColor:"mantine.colors.gray[3]",background:"mantine.colors.gray[1]"}});me({_before:{content:'"scope:"',position:"absolute",top:"0",left:"2",fontSize:"xxs",fontWeight:500,lineHeight:"1",color:"mantine.colors.dimmed",opacity:.85,transform:"translateY(-100%) translateY(-2px)"},_light:{"& .mantine-SegmentedControl-root":{background:"mantine.colors.gray[3]"}}}),me({display:"inline-block",fontSize:"xl",fontWeight:600,padding:"[1px 5px]",minWidth:24,textAlign:"center",borderRadius:"sm",background:"mantine.colors.dark[7]",color:"mantine.colors.defaultColor","&[data-zero]":{color:"mantine.colors.dimmed"},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/20"}});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const mXe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],_m=xt("outline","arrow-right","ArrowRight",mXe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const gXe=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],vee=xt("outline","external-link","ExternalLink",gXe),yXe=no.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1});function bXe({node:e,element:r}){const n=tX(),o=QVe(),a=Cn(o,d=>d.children[`${o.id}-relationships`]),i=[...r.incoming()].map(d=>d.id),l=[...r.outgoing()].map(d=>d.id),s=e?QE([...e.incoming()].flatMap(d=>d.$edge.relations)):[],c=e?QE([...e.outgoing()].flatMap(d=>d.$edge.relations)):[],u=[...i,...l].filter(d=>!s.includes(d)&&!c.includes(d)).length;return y.jsxs(Ho,{gap:"xs",pos:"relative",w:"100%",h:"100%",children:[i.length+l.length>0&&y.jsxs(Wr,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Se,{children:y.jsxs(Wr,{gap:8,mb:4,wrap:"nowrap",children:[y.jsx(xee,{title:"incoming",total:i.length,included:s.length}),y.jsx(hi,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(_m,{style:{width:16}})}),y.jsx(pt,{className:pXe,children:C1(r.id)}),y.jsx(hi,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(_m,{style:{width:16}})}),y.jsx(xee,{title:"outgoing",total:l.length,included:c.length})]})}),u>0&&y.jsx(yXe,{label:"Current view does not include some relationships",children:y.jsxs(Wr,{mt:"xs",gap:6,c:"orange",style:{cursor:"pointer"},children:[y.jsx(WC,{style:{width:14}}),y.jsxs(pt,{fz:"sm",children:[u," relationship",u>1?"s are":" is"," hidden"]})]})})]}),y.jsx(Se,{className:fXe,children:a&&y.jsxs(y.Fragment,{children:[y.jsx(bee,{actorRef:a}),y.jsx(Se,{pos:"absolute",top:12,right:12,children:y.jsx(ir,{size:"md",variant:"default",radius:"sm",onClick:d=>{d.stopPropagation();const{subject:p,scope:f,viewId:g}=a.getSnapshot().context;n.send({type:"open.relationshipsBrowser",subject:p,scope:f,viewId:g})},children:y.jsx(vee,{stroke:1.6,style:{width:"70%"}})})})]})})]})}function xee({title:e,total:r,included:n}){return y.jsx(Lf,{withBorder:!0,shadow:"none",className:hXe,px:"md",py:"xs",radius:"md",mod:{zero:r===0,missing:r!==n},children:y.jsxs(Ho,{gap:4,align:"flex-end",children:[y.jsx(pt,{component:"div",c:r!==n?"orange":"dimmed",tt:"uppercase",fw:600,fz:10,lh:1,children:e}),y.jsx(pt,{fw:600,fz:"xl",component:"div",lh:1,children:r!==n?y.jsxs(y.Fragment,{children:[n," / ",r]}):y.jsx(y.Fragment,{children:r})})]})})}const vXe=me({marginTop:"sm",marginBottom:"sm"}),xXe=me({display:"inline-flex",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"sm",px:"md",py:"xs",alignItems:"center",cursor:"pointer",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out",borderStyle:"solid",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover","& > *":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),GT=({element:e})=>y.jsx(Se,{className:xXe,children:y.jsx(pt,{component:"div",fz:"sm",fw:"500",children:e.title})}),wXe=()=>{};function kXe({element:e}){const r=ry({multiple:!1});r.setHoveredNode=wXe;const n=S.useMemo(()=>{let o=1;const a=l=>({label:l,value:`msg${o++}`,type:"message",children:[]}),i={label:y.jsx(GT,{type:"current",element:e}),value:e.id,element:e,type:"current",children:[...e.children()].map(l=>({label:y.jsx(GT,{type:"descedant",element:l}),value:l.id,element:l,type:"descedant",children:[]}))};return i.children.length===0&&i.children.push(a(y.jsx(Ww,{radius:"sm",children:"no nested"}))),[[...e.ancestors()].reduce((l,s)=>({label:y.jsx(GT,{type:"ancestor",element:s}),value:s.id,element:s,type:"ancestor",children:[l]}),i)]},[e]);return S.useEffect(()=>{r.expandAllNodes()},[n]),y.jsxs(y.Fragment,{children:[y.jsxs(zw,{variant:"light",color:"orange",title:"In development",icon:y.jsx(WC,{}),children:["We need your feedback. Share your thoughts and ideas -"," ",y.jsx(s7,{fz:"sm",fw:500,underline:"hover",c:"orange",href:"https://github.com/likec4/likec4/discussions/",target:"_blank",children:"GitHub discussions"})]}),y.jsx(Wf,{levelOffset:"xl",allowRangeSelection:!1,expandOnClick:!1,expandOnSpace:!1,classNames:{label:vXe},data:n,tree:r})]})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const _Xe=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],XT=xt("outline","stack-2","Stack2",_Xe),wee=qf.withProps({mb:8,labelPosition:"left",variant:"dashed"}),kee=no.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4}),_ee=pt.withProps({component:"div",fz:11,fw:500,c:"dimmed",lh:1}),qy=pt.withProps({component:"div",fz:"xs",c:"dimmed",className:XYe}),Em=24,EXe=["Properties","Relationships","Views","Structure","Deployments"];function SXe({viewId:e,fromNode:r,rectFromNode:n,fqn:o,onClose:a}){const[i,l]=S.useState(!1),s=KPe(),c=s.width||window.innerWidth||1200,u=s.height||window.innerHeight||800,[d,p]=VPe({key:"likec4:element-details:active-tab",defaultValue:"Properties"}),f=Yt(),g=jQ(),b=r?g.findNode(r):g.findNodeWithElement(o),x=g.$model.element(o),[w,k]=kn([...x.views()],No(Z=>Z.$view),bU(Z=>Z._type==="element"&&Z.viewOf===o));let C=b?.navigateTo?.$view??x.defaultView?.$view??null;C?.id===e&&(C=null);const _=Hx(x.links),T=ZVe(),R=(b?.$node.children?.length??0)>0,A=Math.min(700,c-Em*2),D=Math.min(650,u-Em*2),N=n?{x:n.x+(R?n.width-A/2:n.width/2),y:n.y+(R?0:n.height/2)}:{x:c/2,y:u/2},$=n?Math.min(n.width/A,n.height/D,.9):1,O=Math.round(Qi(N.x-A/2,{min:Em,max:c-A-Em})),j=Math.round(Qi(N.y-(R?0:60),{min:Em,max:u-D-Em})),L=Qi((N.x-O)/A,{min:.1,max:.9}),Y=Qi((N.y-j)/D,{min:.1,max:.9}),M=lQ(A),q=lQ(D);O2(()=>{M.set(A),q.set(D)},[A,D]);const z=S.useCallback((Z,B)=>{M.set(Math.max(M.get()+B.delta.x,320)),q.set(Math.max(q.get()+B.delta.y,300))},[]),H=S.useRef(null),U=nf(a),K=G3(()=>{U.current()},[],50),V=b?.$node.notation??null,X=W3({element:{id:o,title:x.title,icon:b?.icon??x.icon},className:FYe});return K3(()=>{H.current?.open||H.current?.showModal()},20),K3(()=>{l(!0)},220),y.jsx(dl.dialog,{ref:H,className:Je(zYe,O0.classNames.fullWidth),layout:!0,initial:{[D2]:"0px",[P2]:"5%"},animate:{[D2]:"3px",[P2]:"60%"},exit:{[D2]:"0px",[P2]:"0%",transition:{duration:.1}},onClick:Z=>{Z.stopPropagation(),Z.target?.nodeName?.toUpperCase()==="DIALOG"&&H.current?.close()},onDoubleClick:pn,onPointerDown:pn,onClose:Z=>{Z.stopPropagation(),K()},children:y.jsx(O0,{forwardProps:!0,removeScrollBar:!1,children:y.jsxs(dl.div,{layout:!0,layoutRoot:!0,drag:!0,dragControls:T,dragElastic:0,dragMomentum:!1,dragListener:!1,"data-likec4-color":b?.color??x.color,className:LYe,initial:{top:j,left:O,width:A,height:D,opacity:0,originX:L,originY:Y,scale:Math.max($,.65)},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,translateY:-10,transition:{duration:.1}},style:{width:M,height:q},children:[y.jsxs("div",{className:BYe,onPointerDown:Z=>T.start(Z),children:[y.jsxs(Sn,{alignItems:"start",justify:"space-between",gap:"sm",mb:"sm",flexWrap:"nowrap",children:[y.jsxs(Sn,{alignItems:"start",gap:"sm",style:{cursor:"default"},flexWrap:"nowrap",children:[X,y.jsxs("div",{children:[y.jsx(pt,{component:"div",className:jYe,children:x.title}),V&&y.jsx(pt,{component:"div",c:"dimmed",fz:"sm",fw:500,lh:1.3,lineClamp:1,children:V})]})]}),y.jsx(lp,{size:"lg",onClick:Z=>{Z.stopPropagation(),K()}})]}),y.jsxs(Sn,{alignItems:"baseline",gap:"sm",flexWrap:"nowrap",children:[y.jsxs("div",{children:[y.jsx(_ee,{children:"kind"}),y.jsx(Qs,{radius:"sm",size:"sm",fw:600,color:"gray",style:{cursor:"pointer"},onClick:Z=>{Z.stopPropagation(),f.openSearch(`kind:${x.kind}`)},children:x.kind})]}),y.jsxs("div",{style:{flex:1},children:[y.jsx(_ee,{children:"tags"}),y.jsxs(Zs,{gap:4,flex:1,mt:6,wrap:"wrap",children:[x.tags.map(Z=>y.jsx(N2,{tag:Z,cursor:"pointer",onClick:B=>{B.stopPropagation(),f.openSearch(`#${Z}`)}},Z)),x.tags.length===0&&y.jsx(Qs,{radius:"sm",size:"sm",fw:600,color:"gray",children:"—"})]})]}),y.jsxs(Dw,{style:{alignSelf:"flex-start"},children:[_&&y.jsx(ir,{component:"a",href:_.url,target:"_blank",size:"lg",variant:"default",radius:"sm",children:y.jsx(vee,{stroke:1.6,style:{width:"65%"}})}),y.jsx(wGe,{feature:"Vscode",children:y.jsx(kee,{label:"Open source",children:y.jsx(ir,{size:"lg",variant:"default",radius:"sm",onClick:Z=>{Z.stopPropagation(),f.openSource({element:x.id})},children:y.jsx(xm,{stroke:1.8,style:{width:"62%"}})})})}),C&&y.jsx(kee,{label:"Open default view",children:y.jsx(ir,{size:"lg",variant:"default",radius:"sm",onClick:Z=>{Z.stopPropagation(),f.navigateTo(C.id,r??void 0)},children:y.jsx(vi,{style:{width:"70%"}})})})]})]})]}),y.jsx(HQ,{children:y.jsxs(up,{value:d,onChange:Z=>p(Z),variant:"none",classNames:{root:UYe,list:VYe,tab:YYe,panel:WYe},children:[y.jsx(ty,{children:EXe.map(Z=>y.jsx(Yf,{value:Z,children:Z},Z))}),y.jsx(ec,{value:"Properties",children:y.jsx(ss,{scrollbars:"y",type:"scroll",offsetScrollbars:!0,children:y.jsxs(Se,{className:GYe,pt:"xs",children:[x.hasSummary&&y.jsxs(y.Fragment,{children:[y.jsx(qy,{children:"summary"}),y.jsx(Cp,{value:x.summary})]}),y.jsxs(y.Fragment,{children:[y.jsx(qy,{children:"description"}),y.jsx(Cp,{value:x.description,emptyText:"no description"})]}),x.technology&&y.jsx(CXe,{title:"technology",children:x.technology}),x.links.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(qy,{children:"links"}),y.jsx(Sn,{gap:"xs",flexWrap:"wrap",children:x.links.map((Z,B)=>y.jsx(VC,{value:Z},B))})]}),x.$element.metadata&&y.jsx(TXe,{value:x.$element.metadata})]})})}),y.jsx(ec,{value:"Relationships",children:y.jsx(Ep,{overrides:{enableRelationshipBrowser:!1,enableNavigateTo:!1},children:i&&d==="Relationships"&&y.jsx(bXe,{element:x,node:b??null})})}),y.jsx(ec,{value:"Views",children:y.jsx(ss,{scrollbars:"y",type:"auto",children:y.jsxs(Ho,{gap:"lg",children:[w.length>0&&y.jsxs(Se,{children:[y.jsx(wee,{label:"views of the element (scoped)"}),y.jsx(Ho,{gap:"sm",children:w.map(Z=>y.jsx(Eee,{view:Z,onNavigateTo:B=>f.navigateTo(B,r??void 0)},Z.id))})]}),k.length>0&&y.jsxs(Se,{children:[y.jsx(wee,{label:"views including this element"}),y.jsx(Ho,{gap:"sm",children:k.map(Z=>y.jsx(Eee,{view:Z,onNavigateTo:B=>f.navigateTo(B,r??void 0)},Z.id))})]})]})})}),y.jsx(ec,{value:"Structure",children:y.jsx(ss,{scrollbars:"y",type:"auto",children:y.jsx(kXe,{element:x})})}),y.jsx(ec,{value:"Deployments",children:y.jsx(ss,{scrollbars:"y",type:"auto",children:y.jsx(pWe,{elementFqn:x.id})})})]})}),y.jsx(dl.div,{className:KYe,drag:!0,dragElastic:0,dragMomentum:!1,onDrag:z,dragConstraints:{top:0,left:0,right:0,bottom:0}})]})})})}const Eee=({view:e,onNavigateTo:r})=>y.jsx(Ar,{className:HYe,onClick:n=>r(e.id,n),children:y.jsxs(Wr,{gap:6,align:"start",wrap:"nowrap",children:[y.jsx(hi,{size:"sm",variant:"transparent",children:e._type==="deployment"?y.jsx(XT,{stroke:1.8}):y.jsx(vi,{stroke:1.8})}),y.jsx(Se,{children:y.jsx(pt,{component:"div",className:qYe,lineClamp:1,children:e.title||"untitled"})})]})});function CXe({title:e,emptyValue:r="undefined",children:n,style:o,...a}){return y.jsxs(y.Fragment,{children:[y.jsx(qy,{children:e}),y.jsx(pt,{component:"div",...hU(n)&&{c:"dimmed"},fz:"md",style:{whiteSpace:"preserve-breaks",userSelect:"all",...o},...a,children:n||r})]})}function TXe({value:e}){const r=WE(e).sort(([n],[o])=>n.localeCompare(o));return y.jsx(HQ,{children:y.jsxs(y.Fragment,{children:[y.jsx(qy,{style:{justifySelf:"end",textAlign:"right"},children:"metadata"}),y.jsx(Se,{className:me({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content",gap:"[12px 16px]",alignItems:"baseline",justifyItems:"stretch"}),children:r.map(([n,o])=>y.jsx(eWe,{label:n,value:o},n))})]})})}function RXe({actorRef:e,onClose:r}){const n=Cn(e,ot(o=>({viewId:o.context.currentView.id,fromNode:o.context.initiatedFrom.node,rectFromNode:o.context.initiatedFrom.clientRect,fqn:o.context.subject})),Jn);return y.jsx(DC.Provider,{value:e,children:y.jsx(SXe,{onClose:r,...n})})}const W2="--_blur",G2="--_opacity",AXe="--_level",Uy=S.forwardRef(({onClose:e,className:r,classes:n,overlayLevel:o=0,children:a,fullscreen:i=!1,withBackdrop:l=!0,backdrop:s,openDelay:c=130,...u},d)=>{const[p,f]=S.useState(c===0),g=GU(p),b=S.useRef(null),x=S.useRef(!1),w=sQ()!==!0,k=S.useRef(e);k.current=e;const C=G3(()=>{x.current||(x.current=!0,k.current())},[],50);S.useLayoutEffect(()=>{b.current?.open||b.current?.showModal()},[]),K3(()=>{f(!0)},c>0?c:void 0);const _=aYe({fullscreen:i,withBackdrop:l});let T=o>0?"50%":"60%";return s?.opacity!==void 0&&(T=`${s.opacity*100}%`),y.jsx(dl.dialog,{ref:Mr(b,g,d),className:Je(n?.dialog,r,_,i&&O0.classNames.fullWidth),layout:!0,style:{[AXe]:o},...w?{initial:{[W2]:"0px",[G2]:"0%",scale:.95,originY:0,translateY:-20,opacity:0},animate:{[W2]:o>0?"4px":"8px",[G2]:T,scale:1,opacity:1,translateY:0,transition:{delay:.075}},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1},[W2]:"0px",[G2]:"0%"}}:{initial:{[W2]:"8px",[G2]:T}},onClick:R=>{if(R.stopPropagation(),R.target?.nodeName?.toUpperCase()==="DIALOG"){b.current?.close();return}},onCancel:R=>{R.preventDefault(),R.stopPropagation(),C()},onDoubleClick:pn,onPointerDown:pn,onClose:R=>{R.stopPropagation(),C()},...u,children:y.jsx(O0,{forwardProps:!0,children:y.jsx("div",{className:Je(n?.body,"likec4-overlay-body"),children:p&&y.jsx(y.Fragment,{children:a})})})})});Uy.displayName="Overlay";const X2=(e,r)=>e.size>2&&r.size!==e.size?new Set(tu([...F3(e).flatten(),...r])):e.size>1?new Set(tu([...e])):e;function NXe(e,r){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},l=(s,c)=>{c==="source"?(n.add(s),i.sources.add(s)):(a.add(s),i.targets.add(s))};for(const s of e){const c=r.findEdge(s),u=c?[...c.relationships("model")]:[];if(!c||!Ao(u,1)||!c.source.hasElement()||!c.target.hasElement())continue;const d=c.source.element,p=c.target.element;l(d,"source"),l(p,"target");for(const f of u){if(o.add(f),f.source!==d){l(f.source,"source");for(const g of f.source.ancestors()){if(g===d)break;n.add(g)}}if(f.target!==p){l(f.target,"target");for(const g of f.target.ancestors()){if(g===p)break;a.add(g)}}}}return{sources:X2(n,i.sources),targets:X2(a,i.targets),relationships:o}}function DXe({source:e,target:r}){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},l=(c,u)=>{u==="source"?(n.add(c),i.sources.add(c)):(a.add(c),i.targets.add(c))};e&&l(e,"source"),r&&l(r,"target");const[s]=k8e.findConnection(e,r,"directed");if(!s)return{sources:n,targets:a,relationships:o};for(const c of s.relations){const u=c.source,d=c.target;if(l(u,"source"),l(d,"target"),o.add(c),e!==u){nt(Gn(e,u),`${e.id} is not an ancestor of ${u.id}`);for(const p of u.ancestors()){if(p===e)break;n.add(p)}}if(r!==d){nt(Gn(r,d),`${r.id} is not an ancestor of ${d.id}`);for(const p of d.ancestors()){if(p===r)break;a.add(p)}}}return{sources:X2(n,i.sources),targets:X2(a,i.targets),relationships:o}}const See=S.createContext(null);function KT(){return bt(S.useContext(See),"No RelationshipDetailsActorContext")}function Cee(e,r=Jn){const n=ot(e),o=KT();return Cn(o,n,r)}function ZT(){const e=KT();return S.useMemo(()=>({actor:e,get rootElementId(){return`relationship-details-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,navigateTo:(...r)=>{r.length===1?e.send({type:"navigate.to",params:{edgeId:r[0]}}):e.send({type:"navigate.to",params:{source:r[0],target:r[1]}})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}const bl={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:220,height:14},nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function PXe(){const e=new j2.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...bl.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...bl.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const QT="-port";function Tee(e,r,n){const o=new po(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=F3(r);for(const i of a.sorted){const l=a.children(i).length>0,s=i.id,c=`${e}-${s}`,u=l?`${c}${QT}`:c;o.set(s,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:l,portId:u,inPorts:[],outPorts:[],width:bl.nodeWidth,height:bl.nodeHeight}),l&&(n.setNode(u,{element:i,portId:u,isCompound:l,inPorts:[],outPorts:[],width:bl.nodeWidth-bl.dagre.ranksep,height:bl.compound.labelHeight}),n.setParent(u,c));const d=a.parent(i);d&&n.setParent(c,`${e}-${d.id}`)}return{...a,byId:i=>{const l=a.byId(i),s=o.get(l.id);return{element:l,graph:s}},graphNodes:o}}function $Xe(e){return j2.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:l}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(l/2)},width:i,height:l}}}function MXe(e,r){const n=PXe(),o=Tee("sources",e.sources,n),a=Tee("targets",e.targets,n),i=Array.from(e.relationships).map(k=>{const C=o.byId(k.source.id).graph,_=a.byId(k.target.id).graph,T=k.id;return n.node(C.id).outPorts.push(_.id),n.node(_.id).inPorts.push(C.id),n.setEdge(C.portId,_.portId,{...bl.edgeLabel},T),{name:T,source:C.id,sourceHandle:C.id+"_out"+(n.node(C.id).outPorts.length-1),target:_.id,targetHandle:_.id+"_in"+(n.node(_.id).inPorts.length-1),relationship:k}}),l=[...o.graphNodes.values(),...a.graphNodes.values()];for(const{id:k}of l){const C=n.node(k);if(C.isCompound)continue;const _=Math.max(n.inEdges(k)?.length??0,n.outEdges(k)?.length??0);_>3&&(C.height=C.height+(_-4)*14)}const s=n.edgeCount();if(s>5)for(const k of n.edges())n.setEdge(k,{...bl.edgeLabel,width:s>10?800:400});const c=$Xe(n),u=kn(l,vf(k=>k.id===k.portId),M0(k=>[k.id,c(k.id)]));function d(k){return u[k]??=kn(n.children(k)??[],vf(C=>!C.endsWith(QT)),No(C=>d(C)),wU(C=>{nt(C.length>0,`Node ${k} has no nested nodes`)}),wf((C,_)=>({minY:Math.min(C.minY,_.position.y),maxY:Math.max(C.maxY,_.position.y+_.height)}),{minY:1/0,maxY:-1/0}),({minY:C,maxY:_})=>{const{position:{x:T},width:R}=c(k);return C=C-bl.compound.paddingTop,_=_+bl.compound.paddingBottom,{position:{x:T,y:C},width:R,height:_-C}})}function p(k){const C=n.parent(k);return C?p(C)+1:0}function f(k){const C=n.children(k)??[];return C.length===0?0:1+Math.max(...C.map(f))}const g=(k,C,_)=>kn(_,No((T,R)=>({port:k+"_"+C+R,topY:d(T).position.y})),qx(Ra("topY")),No(Ra("port")));let b=0,x=0;const w=l.map(({id:k})=>{const{element:C,inPorts:_,outPorts:T,column:R}=n.node(k);let{position:A,width:D,height:N}=d(k);const $=n.parent(k),O=(n.children(k)??[]).filter(q=>!q.endsWith(QT));b=Math.min(b,A.x),x=Math.min(x,A.y);const j=r?a0(C.scopedViews(),q=>q.id!==r.id)?.id??null:null,L=r?.findNodeWithElement(C.id),Y=r&&!L?a0(C.ancestors(),q=>!!r.findNodeWithElement(q.id))?.id:null,M=L??(Y&&r?.findNodeWithElement(Y));return e0({id:k,parent:$??null,x:A.x,y:A.y,title:C.title,description:C.summary,technology:C.technology,tags:[...C.tags],links:null,color:M?.color??C.color,shape:L?.shape??C.shape,icon:L?.icon??C.icon??"none",modelRef:C.id,kind:C.kind,level:p(k),labelBBox:{x:A.x,y:A.y,width:D,height:N},style:tp({...(L??M)?.style,...C.$element.style},["shape","color","icon"]),navigateTo:j,...O.length>0&&{depth:f(k)},children:O,width:D,height:N,column:R,ports:{in:g(k,"in",_),out:g(k,"out",T)}})});return{bounds:{x:Math.min(b,0),y:Math.min(x,0),width:n.graph().width??100,height:n.graph().height??100},nodes:w,edges:n.edges().reduce((k,C)=>{const _=n.edge(C),T=C.name;if(!T)return k;const{name:R,source:A,target:D,relationship:N,sourceHandle:$,targetHandle:O}=jx(i,q=>q.name===T),j=N.title??"untitled",L=N.navigateTo?.id??null,Y=N.description??null,M=N.technology??null;return k.push({id:R,source:A,sourceHandle:$,target:D,targetHandle:O,label:j,color:N.color,...L&&{navigateTo:L},...Y&&{description:Y},...M&&{technology:M},points:_.points.map(q=>[q.x,q.y]),line:N.line,relationId:N.id,parent:null}),k},[])}}const JT=me.raw({display:"inline-flex",alignItems:"center",padding:"[6px 2px 0 2px]","& .mantine-Text-root":{color:"mantine.colors.text/90",fontSize:"xs",fontWeight:500,lineHeight:"1.2"}}),Ree=me({paddingLeft:"1",gridColumn:1},JT),OXe=me({gridColumn:2},JT),Aee=me({gridColumn:3,paddingRight:"1"},JT),Nee="likec4-edge-label",IXe=Je(Nee,me({display:"grid",gridColumnStart:1,gridColumnEnd:4,borderBottom:"1px solid",borderBottomColor:"mantine.colors.defaultBorder",marginBottom:"0",padding:"[0 4px 5px 4px]",width:"100%","& .mantine-Text-root":{fontSize:"xxs",fontWeight:400,lineHeight:"xs",color:"mantine.colors.dimmed"}})),zXe=me({display:"contents",[`&:last-child .${Nee}`]:{borderBottom:"none",marginBottom:"0"},"& > *":{transition:"all 0.15s ease-in"},"&:is(:hover, [data-selected=true]) > *":{transition:"all 0.15s ease-out",cursor:"pointer",backgroundColor:"mantine.colors.defaultHover"}}),LXe=me({display:"grid",gridTemplateColumns:"1fr 30px 1fr",gridAutoRows:"min-content max-content",gap:"0",alignItems:"stretch"});me({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[10px 12px]",alignItems:"baseline",justifyItems:"start"});const BXe=me({maxHeight:["70vh","calc(100cqh - 70px)"]}),jXe=({edge:e,view:r})=>{const n=ZT(),o=S.useRef(null),a=r.nodes.find(s=>s.id===e.source),i=r.nodes.find(s=>s.id===e.target),l=r.edges.flatMap(s=>{const c=r.nodes.find(d=>d.id===s.source),u=r.nodes.find(d=>d.id===s.target);return c&&u?{id:s.id,source:c,target:u,label:s.label}:[]});return!a||!i||l.length===0?null:y.jsxs(br,{position:"bottom-start",shadow:"md",keepMounted:!0,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],onOpen:()=>{setTimeout(()=>{o.current?.querySelector(`[data-edge-id="${e.id}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[y.jsx(Eu,{children:y.jsxs(ro,{size:"xs",variant:"default",fw:"500",style:{padding:"0.25rem 0.75rem"},rightSection:y.jsx(HT,{size:16}),children:[y.jsx(Se,{className:Ree,maw:160,p:0,mod:{"likec4-color":a.color},children:y.jsx(pt,{component:"span",truncate:!0,children:a.title})}),y.jsx(hi,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(_m,{style:{width:"80%"}})}),y.jsx(Se,{className:Aee,maw:160,p:0,mod:{"likec4-color":i.color},children:y.jsx(pt,{component:"span",truncate:!0,children:i.title})})]})}),y.jsx(Ks,{p:0,miw:250,maw:400,children:y.jsx(na,{className:BXe,scrollbars:"y",type:"never",viewportRef:o,children:y.jsx(Se,{className:LXe,p:"xs",maw:400,children:l.map(s=>y.jsxs("div",{className:zXe,"data-selected":s.id===e.id,onClick:c=>{c.stopPropagation(),n.navigateTo(s.id)},children:[y.jsx(Se,{className:Ree,mod:{"edge-id":s.id,"likec4-color":s.source.color},children:y.jsx(pt,{component:"span",truncate:!0,children:s.source.title})}),y.jsx(Se,{className:OXe,children:y.jsx(hi,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(_m,{style:{width:"80%"}})})}),y.jsx(Se,{className:Aee,mod:{"likec4-color":s.target.color},children:y.jsx(pt,{component:"span",truncate:!0,children:s.target.title})}),y.jsx(Se,{className:IXe,children:y.jsx(pt,{component:"span",truncate:!0,children:s.label||"untitled"})})]},s.id))})})})]})},FXe=qT(e=>{const{enableNavigateTo:r}=Er(),{data:{navigateTo:n}}=e,[o,a,i]=Sx(e),l=Yt();return y.jsxs(Ly,{...e,children:[y.jsx(By,{edgeProps:e,svgPath:o}),y.jsx(U2,{edgeProps:e,labelPosition:{x:a,y:i,translate:"translate(-50%, 0)"},style:{maxWidth:Math.abs(e.targetX-e.sourceX-100)},children:y.jsx(zy,{edgeProps:e,children:r&&n&&y.jsx(q2,{...e,onClick:s=>{s.stopPropagation(),l.navigateTo(n)}})})})]})}),HXe=e=>{const{enableNavigateTo:r,enableVscode:n}=Er(),o=Yt(),a=V2(),i=[],{navigateTo:l,fqn:s}=e.data;return l&&r&&a!==l&&i.push({key:"navigate",icon:y.jsx(vi,{}),onClick:c=>{c.stopPropagation(),o.navigateTo(l)}}),s&&i.push({key:"relationships",icon:y.jsx(jy,{}),onClick:c=>{c.stopPropagation(),o.openRelationshipsBrowser(s)}}),s&&n&&i.push({key:"goToSource",icon:y.jsx(xm,{}),onClick:c=>{c.stopPropagation(),o.openSource({element:s})}}),y.jsx(Y2,{buttons:i,...e})};function qXe(e,r){return e.id===r.id&&ut(e.selected??!1,r.selected??!1)&&ut(e.dragging??!1,r.dragging??!1)&&ut(e.width??0,r.width??0)&&ut(e.height??0,r.height??0)&&ut(e.zIndex??0,r.zIndex??0)&&ut(e.data,r.data)}const Dee=Symbol.for("isMemoized");function uc(e){if(e.hasOwnProperty(Dee))return e;const r=S.memo(e,qXe);return r.displayName="Node",Object.defineProperty(r,Dee,{enumerable:!1,writable:!1,value:!0}),r}const Pee=e=>{const r=Yt();return y.jsx(WT,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})},UXe=uc(e=>{const{enableElementTags:r}=Er();return y.jsxs(wm,{nodeProps:e,children:[y.jsx(km,{...e}),y.jsx(yl,{...e}),r&&y.jsx(My,{...e}),y.jsx(Pee,{...e}),y.jsx(HXe,{...e}),y.jsx(YXe,{...e})]})}),VXe=uc(e=>y.jsxs(Fy,{nodeProps:e,children:[y.jsx(Pee,{...e}),y.jsx(Hy,{...e}),y.jsx(WXe,{...e})]})),YXe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(fo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>y.jsx(fo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),WXe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(fo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(fo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),GXe={element:UXe,compound:VXe},XXe={relationship:FXe};function KXe({actorRef:e}){const r=S.useRef(null);return r.current==null&&(r.current={defaultNodes:[],defaultEdges:[]}),y.jsx(See.Provider,{value:e,children:y.jsx(Ix,{...r.current,children:y.jsx(ym,{id:e.sessionId,inherit:!1,children:y.jsxs(Oa,{children:[y.jsx(eKe,{},"xyflow"),y.jsx(QXe,{},"sync")]})})})})}const ZXe=e=>({...e.context.subject,viewId:e.context.viewId}),QXe=S.memo(()=>{const e=KT(),r=Cn(e,ZXe,ut),n=qo(),o=n.findView(r.viewId)??null,a=S.useMemo(()=>{let s;if("edgeId"in r&&Ta(r.edgeId)){nt(o,`view ${r.viewId} not found`);const c=bt(o.findEdge(r.edgeId),`edge ${r.edgeId} not found in ${r.viewId}`);s=NXe([c.id],o)}else if(r.source&&r.target)s=DXe({source:n.element(r.source),target:n.element(r.target)});else return null;return MXe(s,o)},[r,o,n]),i=yr(),l=bf();return S.useEffect(()=>{l.viewportInitialized&&e.send({type:"xyflow.init",instance:l,store:i})},[i,l.viewportInitialized,e]),S.useEffect(()=>{a!==null&&e.send({type:"update.layoutData",data:a})},[a,e]),null}),JXe=({context:e})=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges}),eKe=S.memo(()=>{const e=ZT(),{initialized:r,nodes:n,edges:o}=Cee(JXe,ut);return y.jsxs(XC,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","likec4-relationship-details"),nodeTypes:GXe,edgeTypes:XXe,onNodesChange:ot(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:ot(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),fitViewPadding:.05,onNodeClick:ot((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:ot((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:ot(()=>{e.send({type:"xyflow.paneClick"})}),onDoubleClick:ot(()=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:ot(()=>{e.send({type:"xyflow.resized"})}),onEdgeMouseEnter:ot((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:ot((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:ot(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,fitView:!1,pannable:!0,zoomable:!0,children:[y.jsx(rKe,{}),y.jsx(fu,{position:"top-right",children:y.jsx(ir,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),e.close()},children:y.jsx(Xf,{})})})]})}),tKe=({context:e})=>({subject:e.subject,viewId:e.viewId}),rKe=S.memo(()=>{const{subject:e,viewId:r}=Cee(tKe,ut),n=qo().findView(r);if(!n||!n.isDiagram())return null;const o=[...n.edges()];let a="edgeId"in e&&Ta(e.edgeId)?o.find(i=>i.id===e.edgeId):jx(o,i=>i.source.element?.id===e.source&&i.target.element?.id===e.target)||jx(o,i=>(i.source.element?.id===e.source||Gn(i.source.element?.id??"__",e.source??"__"))&&(i.target.element?.id===e.target||Gn(i.target.element?.id??"__",e.target??"__")));return a?y.jsx(nKe,{edge:a.$edge,view:n.$view}):null}),nKe=({edge:e,view:r})=>{const n=ZT(),o=e.id,[a,i,{history:l,current:s}]=nV(e.id);S.useEffect(()=>{a!==o&&i.set(o)},[o]),S.useEffect(()=>{a!==o&&n.navigateTo(a)},[a]);const c=s>0,u=s+1<l.length;return y.jsx(fu,{position:"top-left",children:y.jsx(Wr,{gap:4,wrap:"nowrap",children:y.jsxs(Oa,{mode:"popLayout",children:[c&&y.jsx(dl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:y.jsx(ir,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.back()},children:y.jsx(yee,{})})},"back"),u&&y.jsx(dl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(ir,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.forward()},children:y.jsx(Mu,{})})},"forward"),y.jsx(Wr,{gap:"xs",wrap:"nowrap",ml:"sm",children:y.jsx(jXe,{edge:e,view:r})})]})})})},oKe=e=>e.context.overlays.map(r=>{switch(r.type){case"relationshipsBrowser":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"relationshipDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"elementDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;default:Ja(r)}}).filter(pU),aKe=(e,r)=>e.length===r.length&&e.every((n,o)=>n.actorRef===r[o].actorRef);function iKe({overlaysActorRef:e}){const r=FC(c=>c.domNode),n=S.useMemo(()=>r?.querySelector(".react-flow__renderer")??null,[r]),o=Cn(e,oKe,aKe),a=sQ()??!1,i=o.some(c=>c.type==="elementDetails");S.useEffect(()=>{!n||a||Iqe(n,{opacity:i?.7:1,filter:i?"grayscale(1)":"grayscale(0)",transform:i?"perspective(400px) translateZ(-12px) translateY(3px)":"translateY(0)"},{duration:i?.35:.17})},[i,n]);const l=c=>{e.send({type:"close",actorId:c.id})},s=o.map((c,u)=>{switch(c.type){case"relationshipsBrowser":return y.jsx(Uy,{overlayLevel:u,onClose:()=>l(c.actorRef),children:y.jsx(bee,{actorRef:c.actorRef})},c.actorRef.sessionId);case"relationshipDetails":return y.jsx(Uy,{overlayLevel:u,onClose:()=>l(c.actorRef),children:y.jsx(KXe,{actorRef:c.actorRef})},c.actorRef.sessionId);case"elementDetails":return y.jsx(RXe,{actorRef:c.actorRef,onClose:()=>l(c.actorRef)},c.actorRef.sessionId);default:Ja(c)}});return y.jsx(Ep.Overlays,{children:y.jsx(V7,{FallbackComponent:Y7,onReset:()=>e.send({type:"close.all"}),children:y.jsx(ym,{children:y.jsx(Oa,{children:s})})})})}const[lKe,Ou]=ii("SearchActorContext"),sKe=e=>e.context.searchValue;function cKe(){const e=Ou(),r=Cn(e,sKe),n=S.useCallback(o=>{e.send({type:"change.search",search:o})},[e]);return[r,n]}const uKe=e=>{const r=e.context.searchValue.trim().toLowerCase();return r.length>1?r:""};function eR(){const e=Ou();return S.useDeferredValue(Cn(e,uKe))}function dKe(){const e=Ou();return S.useCallback(r=>{e.send({type:"change.search",search:r})},[e])}const pKe=e=>e.context.pickViewFor;function hKe(){const e=Ou();return Cn(e,pKe)}const tR=me.raw({outline:"none",background:"mantine.colors.primary[8]",borderColor:"mantine.colors.primary[9]"}),K2=".mantine-Tree-node:focus > .mantine-Tree-label &",fKe=me.raw({display:"flex",width:"100%",background:"mantine.colors.body",rounded:"sm",padding:"[12px 8px 12px 14px]",minHeight:"60px",gap:"2",border:"1px solid",borderColor:"mantine.colors.defaultBorder",_hover:{...tR,borderColor:"mantine.colors.primary[9]",background:"mantine.colors.primary[8]/60"},_focus:tR,[K2]:tR,_dark:{borderColor:"transparent",background:"mantine.colors.dark[6]/80"},_light:{background:"mantine.colors.white/80",_hover:{borderColor:"mantine.colors.primary[6]",backgroundColor:"mantine.colors.primary[5]"}}}),Z2="likec4-focusable",Q2={ref:"var(--likec4-icon-size, 24px)"},mKe=me.raw({color:{base:"mantine.colors.dimmed",_light:"mantine.colors.gray[5]",_groupHover:"mantine.colors.primary[0]",_groupFocus:"mantine.colors.primary[0]"},[K2]:{color:"mantine.colors.primary[0]"},flex:`0 0 ${Q2.ref}`,height:Q2.ref,width:Q2.ref,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start","--ti-size":Q2.ref,"& svg, & img":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none"},"& img":{objectFit:"contain"},"&.likec4-shape-icon svg":{strokeWidth:1.5}}),gKe=me.raw({fontSize:"16px",fontWeight:500,lineHeight:"1.1",":where([data-disabled]) &":{opacity:.4},color:{base:"mantine.colors.dark[1]",_light:"mantine.colors.gray[7]",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"},_groupFocus:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}},[K2]:{color:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}}}),$ee=me.raw({color:{base:"mantine.colors.dimmed",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.primary[0]"},_groupFocus:"mantine.colors.primary[0]"},[K2]:{color:"mantine.colors.primary[0]"}}),yKe=me.raw($ee,{marginTop:"1",fontSize:"12px",lineHeight:"1.4",":where([data-disabled]) &":{opacity:.85}}),bKe=me({width:"100%",height:"100%",border:"2px dashed",borderColor:"mantine.colors.defaultBorder",rounded:"md",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"md",color:"mantine.colors.dimmed",padding:"md",paddingBlock:"xl"}),Mee=kEe({slots:["root","icon","title","description","descriptionColor"],className:"search-button",base:{root:fKe,icon:mKe,title:gKe,description:yKe,descriptionColor:$ee}}),rR="@container likec4-tree (max-width: 450px)",vKe=me({outline:"none",marginBottom:"2"}),xKe=me(mG.raw({containerName:"likec4-tree"}),{containerType:"inline-size",height:"100%"}),wKe=me({display:"flex",alignItems:"baseline",outline:"none !important",gap:"1"}),kKe=me({marginTop:"2"}),_Ke=me({color:"mantine.colors.dimmed"}),EKe=me({[rR]:{flexDirection:"column-reverse",alignItems:"flex-start",gap:"0.5"}}),SKe=me({fontSize:"10px",lineHeight:"1.3",display:"block",fontWeight:500,whiteSpace:"nowrap",padding:"[1px 5px]",borderRadius:"4px",background:"mantine.colors.dark[9]/30",_light:{background:"mantine.colors.gray[3]/20"}}),CKe=me({"--likec4-icon-size":"24px",[rR]:{"--likec4-icon-size":"18px"}}),TKe=me({flex:0,fontSize:"10px",fontWeight:500,whiteSpace:"nowrap",lineHeight:"1.1",[rR]:{display:"none"}});function wi(e){e.stopPropagation(),e.preventDefault()}function Oee(e){const r=e.getBoundingClientRect();return r.y+Math.floor(r.height/2)}function Vy(e){if(!e){console.error("moveFocusToSearchInput: from is null or undefined");return}const r=e.getRootNode();if(!$0(r.querySelector)){console.error("moveFocusToSearchInput: root.querySelector is not a function");return}let n=r.querySelector("[data-likec4-search-input]");if(n){const o=n.value.length;n.focus(),n.setSelectionRange(o,o)}}function J2(e){if(!e){console.error("focusToFirstFoundElement: from is null or undefined");return}const r=e.getRootNode();if(!$0(r.querySelector)){console.error("focusToFirstFoundElement: root.querySelector is not a function");return}r.querySelector(`[data-likec4-search] .${Z2}`)?.focus()}function Iee(e,r,n=`.${Z2}`){if(!e)return console.error("queryAllFocusable: from is null or undefined"),[];const o=e.getRootNode();return $0(o.querySelectorAll)?[...o.querySelectorAll(`[data-likec4-search-${r}] ${n}`)]:(console.error("queryAllFocusable: root.querySelectorAll is not a function"),[])}const RKe="likec4-view-btn",AKe=Je(me({flexWrap:"nowrap",display:"flex","&[data-disabled] .mantine-ThemeIcon-root":{opacity:.45}}),RKe);me({marginTop:"1",fontSize:"13px",lineHeight:"1.4",":where(.likec4-view-btn[data-disabled]) &":{opacity:.85}});const zee=()=>y.jsx(Gr,{className:bKe,children:"Nothing found"}),NKe=S.memo(()=>{const e=S.useRef(null);let r=[...qo().views()],n=eR();return n&&(n.startsWith("kind:")?r=[]:r=r.filter(o=>n.startsWith("#")?o.tags.some(a=>a.toLocaleLowerCase().includes(n.slice(1))):`${o.id} ${o.title} ${o.description.text}`.toLocaleLowerCase().includes(n))),y.jsxs(Ho,{ref:e,renderRoot:o=>y.jsx(nn,{layout:!0,...o}),gap:8,"data-likec4-search-views":!0,onKeyDown:o=>{if(o.key==="ArrowLeft"||o.key==="ArrowRight"){const a=o.target.getBoundingClientRect().y,i=Iee(e.current,"elements",".likec4-element-button");let l=i.length>1?i.find((s,c,u)=>Oee(s)>a||c===u.length-1):null;l??=xf(i),l&&(o.stopPropagation(),l.focus());return}},children:[r.length===0&&y.jsx(zee,{}),r.length>0&&y.jsx(Tw,{children:y.jsx(Ar,{"data-likec4-view":!0,tabIndex:-1,onFocus:o=>{o.stopPropagation(),Vy(e.current)}})}),r.map((o,a)=>y.jsx(nn,{layoutId:`@view${o.id}`,children:y.jsx(nR,{view:o,search:n,tabIndex:a===0?0:-1})},o.id))]})}),e4=Mee();function nR({className:e,view:r,loop:n=!1,search:o,...a}){const i=Ou(),l=Yt(),s=V2(),c=r.id===s,u=()=>{i.send({type:"close"}),setTimeout(()=>{l.navigateTo(r.id)},100)};return y.jsxs(Ar,{...a,className:Je(e4.root,"group",Z2,AKe,e),"data-likec4-view":r.id,...c&&{"data-disabled":!0},onClick:d=>{d.stopPropagation(),u()},onKeyDown:z0({siblingSelector:"[data-likec4-view]",parentSelector:"[data-likec4-search-views]",activateOnFocus:!1,loop:n,orientation:"vertical",onKeyDown:d=>{d.nativeEvent.code==="Space"&&(d.stopPropagation(),u())}}),children:[y.jsx(hi,{variant:"transparent",className:e4.icon,children:r.isDeploymentView()?y.jsx(XT,{stroke:1.8}):y.jsx(vi,{stroke:1.8})}),y.jsxs(Gr,{style:{flexGrow:1},children:[y.jsxs(Wr,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Js,{component:"div",highlight:o,className:e4.title,children:r.title||"untitled"}),c&&y.jsx(Qs,{size:"xs",fz:9,radius:"sm",children:"current"})]}),y.jsx(Js,{highlight:r.description.nonEmpty?o:"",component:"div",className:e4.description,lineClamp:1,children:r.description.text||"No description"})]})]})}const Sm=Mee(),DKe=S.memo(()=>{const e=qo(),r=eR(),n=S.useMemo(()=>{const a=r.split(".");let i;gu(a)||a[0]==="kind:"?i=e.elements():i=Fd(e.elements(),u=>r.startsWith("kind:")?u.kind.toLocaleLowerCase().startsWith(r.slice(5)):r.startsWith("#")?u.tags.some(d=>d.toLocaleLowerCase().includes(r.slice(1))):(u.title+" "+u.id+" "+u.summary.text).toLocaleLowerCase().includes(r));const l={},{all:s,roots:c}=kn([...i],tu,wf((u,d)=>{const p={label:d.title,value:d.id,element:d,searchTerms:a,children:[]};l[p.value]=p;const f=u.all.findLast(g=>Gn(g.value,p.value));return f?(f.children.push(p),f.children.length>1&&f.children.sort(Iy)):u.roots.push(p),u.all.push(p),u},{all:[],roots:[]}));return{all:s,byid:l,roots:c.sort(Iy)}},[e,r]),o=Lee();return n.all.length===0?y.jsx(zee,{}):y.jsx($Ke,{data:n,handleClick:o})}),PKe=()=>{};function $Ke({data:{all:e,byid:r,roots:n},handleClick:o}){const a=ry({multiple:!1});a.setHoveredNode=PKe,S.useEffect(()=>{a.collapseAllNodes();for(const l of e)l.children.length>0&&a.expand(l.value)},[e]);const i=ot(l=>{const s=l.target,c=s.getAttribute("data-value"),u=!!c&&r[c];if(u){if(l.key==="ArrowUp"){c===n[0]?.value&&(wi(l),Vy(s));return}if(l.key==="ArrowRight"){if(u.children.length>0&&a.expandedState[c]===!1)return;const d=(l.target.querySelector(".mantine-Tree-label")??s).getBoundingClientRect().y,p=Iee(s,"views");let f=p.length>1?p.find((g,b,x)=>Oee(g)>d||b===x.length-1):null;f??=xf(p),f&&(wi(l),f.focus());return}if(l.key===" "||l.key==="Enter"){wi(l),o(u.element);return}}});return y.jsx(Wf,{"data-likec4-search-elements":!0,allowRangeSelection:!1,clearSelectionOnOutsideClick:!0,selectOnClick:!1,tree:a,data:n,levelOffset:"lg",classNames:{root:xKe,node:Je(Z2,vKe),label:wKe,subtree:kKe},onKeyDownCapture:i,renderNode:MKe})}function MKe({node:e,elementProps:r,hasChildren:n,expanded:o}){const{element:a,searchTerms:i}=e,l=zEe({element:{id:a.id,title:a.title,shape:a.shape,icon:a.icon},className:Je(Sm.icon,CKe)}),s=[...a.views()],c=Lee(),u=`@tree.${e.value}`;return y.jsxs(nn,{layoutId:u,...r,children:[y.jsx(ir,{variant:"transparent",size:16,tabIndex:-1,className:Je(_Ke),style:{visibility:n?"visible":"hidden"},children:y.jsx(Mu,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${o?"90deg":"0"})`,width:"100%"}})}),y.jsxs(Ar,{component:gl,layout:!0,tabIndex:-1,"data-value":a.id,className:Je(Sm.root,"group","likec4-element-button"),...s.length>0&&{onClick:d=>{(!n||o)&&(d.stopPropagation(),c(a))}},children:[l,y.jsxs(Se,{style:{flexGrow:1},children:[y.jsxs(Wr,{gap:"xs",wrap:"nowrap",align:"center",className:EKe,children:[y.jsx(Js,{component:"div",highlight:i,className:Sm.title,children:e.label}),y.jsx(no,{label:a.id,withinPortal:!1,fz:"xs",disabled:!a.id.includes("."),children:y.jsx(Js,{component:"div",highlight:i,className:Je(SKe,Sm.descriptionColor),children:C1(a.id)})})]}),y.jsx(Js,{component:"div",highlight:i,className:Sm.description,lineClamp:1,children:a.summary.text||"No description"})]}),y.jsx(pt,{component:"div",className:Je(TKe,Sm.descriptionColor),fz:"xs",children:s.length===0?"No views":y.jsxs(y.Fragment,{children:[s.length," view",s.length>1?"s":""]})})]})]})}function Lee(){const e=Yt(),r=Ou();return ot(n=>{const o=[...n.views()];if(o.length===0)return;const a=Hx(o);if(a){r.send({type:"close"}),a.id!==e.currentView.id&&setTimeout(()=>{e.navigateTo(a.id)},100);return}r.send({type:"pickview.open",elementFqn:n.id})})}const OKe=me({border:"transparent",background:{base:"transparent",_focusWithin:{base:"mantine.colors.gray[4]/55 !important",_dark:"mantine.colors.dark[5]/55 !important"},_groupHover:{base:"mantine.colors.gray[3]/35",_dark:"mantine.colors.dark[5]/35"}}}),IKe=me({position:"absolute",inset:"0",width:"100%",height:"100%",backgroundColor:"[rgb(34 34 34 / 0.7)]",zIndex:902,backdropFilter:"auto",backdropBlur:"10px",_light:{backgroundColor:"[rgb(255 255 255 / 0.6)]"}}),zKe=me({position:"absolute",top:"[2rem]",left:"[50%]",width:"100%",maxWidth:"600px",minWidth:"200px",transform:"translateX(-50%)",zIndex:903}),Bee=me({marginTop:"2","& + &":{marginTop:"[32px]"}});me({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}});function LKe({elementFqn:e}){const r=Ou(),n=qo().element(e),o=[],a=[];for(const l of n.views())l.viewOf===n?o.push(l):a.push(l);const i=()=>{r.send({type:"pickview.close"})};return Rf("keydown",l=>{try{l.key==="Escape"&&(l.stopPropagation(),l.preventDefault(),i())}catch(s){console.warn(s)}},{capture:!0}),y.jsxs(y.Fragment,{children:[y.jsx(nn,{className:IKe,onClick:l=>{l.stopPropagation(),i()}},"pickview-backdrop"),y.jsx(Nw,{children:y.jsxs(nn,{initial:{opacity:0,scale:.95,originY:0,translateX:"-50%",translateY:-20},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1}},className:zKe,"data-likec4-search-views":!0,children:[y.jsxs(Wr,{px:"sm",py:"md",justify:"space-between",children:[y.jsx(dp,{order:2,lh:1,children:"Select view"}),y.jsx(ir,{size:"md",variant:"default",onClick:l=>{l.stopPropagation(),i()},children:y.jsx(Xf,{})})]}),y.jsxs(na,{mah:"calc(100vh - 110px)",type:"never",children:[o.length>0&&y.jsxs(Ho,{gap:"sm",px:"sm",className:Bee,children:[y.jsx(dp,{order:6,c:"dimmed",children:"scoped views of the element"}),o.map((l,s)=>y.jsx(nR,{view:l,search:"",loop:!0,mod:{autofocus:s===0}},l.id))]}),a.length>0&&y.jsxs(Ho,{gap:"sm",px:"sm",className:Bee,children:[y.jsx(dp,{order:6,c:"dimmed",children:"views including this element"}),a.map((l,s)=>y.jsx(nR,{view:l,search:"",loop:!0,mod:{autofocus:s===0&&o.length===0}},l.id))]})]})]},"pickview")})]})}function BKe(){const e=S.useRef(null);let r=qo().tagsSortedByUsage,n=dKe(),o=eR(),a=r.length;if(o.startsWith("#")){const l=o.slice(1);r=r.filter(({tag:s})=>s.toLocaleLowerCase().includes(l))}if(r.length===0)return null;const i=r.length!==a;return y.jsxs(Sn,{ref:e,css:{gap:"md",paddingLeft:"[48px]",flexWrap:"nowrap"},children:[y.jsx(Sn,{css:{gap:"1.5",flexWrap:"wrap",opacity:i?1:.3,grayscale:i?0:.9,filter:"auto",transition:"fast",_groupHover:{opacity:1,grayscale:0},_groupFocusWithin:{opacity:1,grayscale:0}},children:r.map(({tag:l})=>y.jsx(N2,{tag:l,className:me({userSelect:"none",cursor:"pointer"}),onClick:s=>{s.stopPropagation(),n(`#${l}`),setTimeout(()=>{J2(e.current)},350)}},l))}),i&&y.jsx(ro,{size:"compact-xs",variant:"light",onClick:l=>{l.stopPropagation(),n(""),Vy(e.current)},rightSection:y.jsx(Xf,{size:14}),children:"Clear"})]})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const jKe=[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],oR=xt("outline","search","Search",jKe);function jee(e){return e.match(/^(k|ki|kin|kind|kind:)$/)!=null}const FKe=["#","kind:"],HKe=S.memo(()=>{const e=Ou(),r=qo(),n=S.useRef(null),{ref:o,focused:a}=o$e(),[i,l]=cKe(),s=pW({scrollBehavior:"smooth",loop:!1});Rf("keydown",d=>{try{!a&&(d.key==="Backspace"||d.key.startsWith("Arrow")||d.key.match(new RegExp("^\\p{L}$","u")))&&Vy(n.current)}catch(p){console.warn(p)}});let c=[],u=!1;switch(!0){case i.startsWith("#"):{const d=i.toLocaleLowerCase().slice(1),p=r.tags.filter(f=>f.toLocaleLowerCase().includes(d));p.length===0?(u=!1,c=[y.jsx(W0,{children:"No tags found"},"empty-tags")]):(u=r.tags.some(f=>f.toLocaleLowerCase()===d),c=p.map(f=>y.jsxs(G0,{value:`#${f}`,children:[y.jsx(pt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"#"}),f]},f)));break}case i.startsWith("kind:"):case jee(i):{const d=i.length>5?i.slice(5).toLocaleLowerCase():"";let p=ZE(r.specification.elements);d&&(p=p.filter(f=>f.toLocaleLowerCase().includes(d))),p.length===0?(u=!1,c=[y.jsx(W0,{children:"No kinds found"},"empty-kinds")]):(u=p.some(f=>f.toLocaleLowerCase()===d),c=p.map(f=>y.jsxs(G0,{value:`kind:${f}`,children:[y.jsx(pt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"kind:"}),f]},f)));break}}return y.jsxs(to,{onOptionSubmit:d=>{l(d),s.resetSelectedOption(),FKe.includes(d)||(s.closeDropdown(),setTimeout(()=>{J2(n.current)},350))},width:"max-content",position:"bottom-start",shadow:"md",offset:{mainAxis:4,crossAxis:50},store:s,withinPortal:!1,children:[y.jsx(m7,{children:y.jsx(Pa,{ref:Mr(n,o),placeholder:"Search by title, description or start with # or kind:",autoFocus:!0,"data-autofocus":!0,"data-likec4-search-input":!0,tabIndex:0,classNames:{input:OKe},size:"lg",value:i,leftSection:y.jsx(oR,{style:{width:Ae(20)},stroke:2}),rightSection:y.jsx(Pa.ClearButton,{onClick:d=>{d.stopPropagation();const p=e.getSnapshot().context.openedWithSearch;i===""||i===p?e.send({type:"close"}):l("")}}),rightSectionPointerEvents:"auto",onChange:d=>{l(d.currentTarget.value),s.openDropdown(),s.updateSelectedOptionIndex()},onClick:()=>s.openDropdown(),onFocus:()=>s.openDropdown(),onBlur:()=>s.closeDropdown(),onKeyDownCapture:d=>{if(d.key==="Tab"){switch(!0){case s.getSelectedOptionIndex()>=0:return s.clickSelectedOption(),wi(d);case c.length===1:return s.selectFirstOption()&&s.clickSelectedOption(),wi(d);case jee(i):return l("kind:"),wi(d)}return}if(d.key==="Backspace"&&s.dropdownOpened){if(i==="kind:")return l(""),s.resetSelectedOption(),wi(d);if(i.startsWith("kind:")&&u)return l("kind:"),s.resetSelectedOption(),wi(d);if(i.startsWith("#")&&u)return l("#"),s.resetSelectedOption(),wi(d)}if(d.key==="Escape"&&s.dropdownOpened&&c.length>0){wi(d),s.closeDropdown();return}if(d.key==="ArrowUp"&&s.dropdownOpened&&i===""&&s.getSelectedOptionIndex()===0){s.closeDropdown(),wi(d);return}if(d.key==="ArrowDown"&&(!s.dropdownOpened||c.length===0||u||i===""&&s.getSelectedOptionIndex()===c.length-1)){s.closeDropdown(),wi(d),J2(n.current);return}}})}),y.jsx(Lw,{hidden:c.length===0,style:{minWidth:300},children:y.jsx(Bw,{children:y.jsx(na,{mah:"min(322px, calc(100cqh - 50px))",type:"scroll",children:c})})})]})}),qKe=me({backgroundColor:"[rgb(34 34 34 / var(--_opacity, 95%))]",_light:{backgroundColor:"[rgb(250 250 250 / var(--_opacity, 95%))]"},backdropFilter:"auto",backdropBlur:"var(--_blur, 10px)"}),UKe=me({width:"100%",height:"100%",maxHeight:"100vh",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"stretch",gap:"sm",paddingTop:"[20px]",paddingLeft:"md",paddingRight:"md",paddingBottom:"sm",background:"[transparent]"}),VKe=e=>!e.matches("inactive");function YKe({searchActorRef:e}){const r=Cn(e,VKe),n=()=>{e.send({type:"open"})},o=ot(()=>{e.send({type:"close"})});return t$e([["mod+k",n,{preventDefault:!0}],["mod+f",n,{preventDefault:!0}]]),y.jsx(lKe,{value:e,children:y.jsx(Ep.Overlays,{children:y.jsx(V7,{FallbackComponent:Y7,onReset:o,children:y.jsx(Oa,{children:r&&y.jsx(Uy,{fullscreen:!0,withBackdrop:!1,backdrop:{opacity:.9},classes:{dialog:qKe,body:UKe},openDelay:0,onClose:o,"data-likec4-search":"true",children:y.jsx(WKe,{searchActorRef:e})})})})})})}const Fee=me({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}}),WKe=({searchActorRef:e})=>{const r=S.useRef(null),n=hKe();return K3(()=>{Ta(e.getSnapshot().context.openedWithSearch)&&J2(r.current)},150),y.jsxs(Gr,{ref:r,display:"contents",children:[y.jsx(Wr,{className:"group",wrap:"nowrap",onClick:o=>{o.stopPropagation(),Vy(r.current)},children:y.jsxs(Gf,{flex:1,px:"sm",children:[y.jsx(HKe,{}),y.jsx(BKe,{})]})}),y.jsxs(K0,{children:[y.jsx(sp,{span:6,children:y.jsx(dp,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Elements"})}),y.jsx(sp,{span:6,children:y.jsx(dp,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Views"})})]}),y.jsxs(K0,{className:me({containerName:"likec4-search-elements",containerType:"size",overflow:"hidden",flexGrow:1}),children:[y.jsx(sp,{span:6,children:y.jsx(ss,{type:"scroll",className:Fee,pr:"xs",scrollbars:"y",children:y.jsx(Oa,{children:y.jsx(ym,{id:"likec4-search-elements",children:y.jsx(DKe,{})})})})}),y.jsx(sp,{span:6,children:y.jsx(ss,{type:"scroll",className:Fee,pr:"xs",scrollbars:"y",children:y.jsx(Oa,{children:y.jsx(ym,{id:"likec4-search-views",children:y.jsx(NKe,{})})})})})]}),n&&y.jsx(LKe,{elementFqn:n})]})};function GKe({children:e}){const r=S.useContext(B7);if(!r)throw new Error("PortalToContainer must be used within RootContainer");return y.jsx(V0,{target:r.ref.current??`#${r.id}`,children:e})}const Hee={onChange:null,onNavigateTo:null,onNodeClick:null,onNodeContextMenu:null,onCanvasContextMenu:null,onEdgeClick:null,onEdgeContextMenu:null,onCanvasClick:null,onCanvasDblClick:null,onBurgerMenuClick:null,onOpenSource:null,onInitialized:null},aR=ZE(Hee),qee=S.createContext({...M0(aR,e=>[e,null]),handlersRef:{current:Hee}});function XKe({handlers:e,children:r}){const n=nf(e),o=aR.map(i=>$0(e[i])),a=S.useMemo(()=>({...M0(aR,i=>n.current[i]?[i,(...l)=>n.current[i]?.(...l)]:[i,null]),handlersRef:n}),[n,...o]);return y.jsx(qee.Provider,{value:a,children:r})}function dc(){return S.useContext(qee)}const KKe=oc({delays:{"open timeout":({context:e})=>e.openTimeout,"close timeout":600,"long idle":1500},actions:{"update edgeId":Qe(({context:e,event:r})=>(qt(r,["xyedge.select","xyedge.mouseEnter"]),{edgeId:r.edgeId,edgeSelected:e.edgeSelected||r.type==="xyedge.select"})),"increase open timeout":Qe(()=>({openTimeout:800})),"decrease open timeout":Qe(()=>({openTimeout:300})),"reset edgeId":Qe({edgeId:null,edgeSelected:!1})},guards:{"edge was selected":({context:e})=>e.edgeSelected,"edge was hovered":({context:e})=>!e.edgeSelected}}).createMachine({id:"breadcrumbs",context:()=>({edgeId:null,edgeSelected:!1,openTimeout:800}),initial:"idle",on:{close:{target:"#idle",actions:["reset edgeId","increase open timeout"]}},states:{idle:{id:"idle",on:{"xyedge.mouseEnter":{target:"opening",actions:"update edgeId"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"long idle":{actions:"increase open timeout"}}},opening:{on:{"xyedge.mouseLeave":{target:"idle"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"open timeout":{actions:"decrease open timeout",target:"active"}}},active:{tags:["opened"],initial:"opened",exit:"reset edgeId",on:{"xyedge.unselect":{target:"idle",actions:"increase open timeout"},"xyedge.select":{actions:"update edgeId"}},states:{opened:{on:{"dropdown.mouseEnter":{target:"hovered"},"xyedge.mouseLeave":{guard:"edge was hovered",target:"closing"}}},hovered:{on:{"dropdown.mouseLeave":[{guard:"edge was selected",target:"opened"},{target:"closing"}]}},closing:{on:{"xyedge.mouseEnter":{guard:"edge was hovered",target:"opened",actions:"update edgeId"},"xyedge.select":{target:"opened",actions:"update edgeId"},"dropdown.mouseEnter":{target:"hovered"}},after:{"close timeout":{target:"#idle"}}}}}}}),ZKe=KKe,Uee=me({display:"block",fontSize:"xxs",fontWeight:500,whiteSpace:"nowrap",paddingX:"1",paddingY:"0.5",borderRadius:"[2px]",background:{_light:"var(--likec4-palette-fill)/90",_dark:"var(--likec4-palette-fill)/60"},lineHeight:"1",color:{_light:"var(--likec4-palette-hiContrast)",_dark:"var(--likec4-palette-loContrast)"}}),QKe=me({whiteSpaceCollapse:"preserve-breaks",fontSize:"sm",lineHeight:"sm",userSelect:"all"});function JKe(e){let r=null;for(const n of e.xyedges)if(n.selected){if(r){r=null;break}r=n.data.id}return{viewId:e.view.id,selected:r}}const eZe=S.memo(()=>{const e=qo(),r=cS(ZKe),n=Yt(),{viewId:o,selected:a}=Ma(JKe),i=Cn(r,g=>g.hasTag("opened")?g.context.edgeId:null);sl("navigateTo",()=>{r.send({type:"close"})}),sl("edgeMouseEnter",({edge:g})=>{r.send({type:"xyedge.mouseEnter",edgeId:g.data.id})}),sl("edgeMouseLeave",()=>{r.send({type:"xyedge.mouseLeave"})}),sl("edgeEditingStarted",()=>{r.send({type:"close"})}),sl("walkthroughStarted",()=>{r.send({type:"close"})}),S.useEffect(()=>{a?r.send({type:"xyedge.select",edgeId:a}):r.send({type:"xyedge.unselect"})},[a]);const l=S.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseEnter"});const b=n.findEdge(i);b&&!b.data.hovered&&n.send({type:"xyflow.edgeMouseEnter",edge:b,event:g})},[r,n,i]),s=S.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseLeave"});const b=n.findEdge(i);b?.data.hovered&&n.send({type:"xyflow.edgeMouseLeave",edge:b,event:g})},[r,n,i]),{diagramEdge:c,sourceNode:u,targetNode:d}=Ma(g=>{const b=i?uS(g,i):null,x=b?om(g,b.source):null,w=b?om(g,b.target):null;return{diagramEdge:b,sourceNode:x,targetNode:w}},Jn,[i]);if(!c||!u||!d||gu(c.relations))return null;const[p,f]=kn(c.relations,No(g=>{try{return e.relationship(g)}catch(b){return console.error(`View is cached and likec4model missing relationship ${g} from ${u.id} -> ${d.id}`,b),null}}),vf(Ta),bU(g=>g.source.id===u.id&&g.target.id===d.id));return p.length===0&&f.length===0?(console.warn("No relationships found  diagram edge",{diagramEdge:c,sourceNode:u,targetNode:d}),null):y.jsx(GKe,{children:y.jsx(rZe,{viewId:o,direct:p,nested:f,diagramEdge:c,sourceNode:u,targetNode:d,onMouseEnter:l,onMouseLeave:s})})}),tZe=(e,r)=>r?.querySelector(`.likec4-edge-label[data-edge-id="${e}"]`)??null,iR=8,rZe=({viewId:e,diagramEdge:r,direct:n,nested:o,sourceNode:a,targetNode:i,onMouseEnter:l,onMouseLeave:s})=>{const c=S.useRef(null),{enableNavigateTo:u,enableVscode:d}=Er(),{onOpenSource:p}=dc(),f=GLe(),[g,b]=S.useState(null);S.useLayoutEffect(()=>{b(tZe(r.id,f.current))},[r]),S.useEffect(()=>{const k=g,C=c.current;if(!k||!C)return;let _=!1;const T=vw(k,C,()=>{tY(k,C,{placement:"bottom-start",middleware:[ZV(4),MOe({crossAxis:!0,padding:iR,allowedPlacements:["bottom-start","top-start","right-start","right-end","left-end"]}),QV({padding:iR,apply({availableHeight:R,availableWidth:A,elements:D}){_||Object.assign(D.floating.style,{maxWidth:`${Qi(xi(A),{min:200,max:400})}px`,maxHeight:`${Qi(xi(R),{min:0,max:500})}px`})}}),JV({padding:iR*2})]}).then(({x:R,y:A,middlewareData:D})=>{_||(C.style.transform=`translate(${xi(R)}px, ${xi(A)}px)`,C.style.visibility=D.hide?.referenceHidden?"hidden":"visible")})},{ancestorResize:!1,animationFrame:!0});return()=>{_=!0,T()}},[g]);const x=Yt(),w=S.useCallback((k,C)=>y.jsxs(S.Fragment,{children:[C>0&&y.jsx(qf,{}),y.jsx(nZe,{viewId:e,relationship:k,sourceNode:a,targetNode:i,onNavigateTo:u?_=>{x.navigateTo(_)}:void 0,...p&&d&&{onOpenSource:()=>p({relation:k.id})}})]},k.id),[e,a,i,x,u,p,d]);return y.jsx(na,{ref:c,onMouseEnter:l,onMouseLeave:s,type:"auto",scrollbars:"y",scrollbarSize:6,styles:{viewport:{overscrollBehavior:"contain",minWidth:180}},className:Je(me({layerStyle:"likec4.dropdown",p:"0",pointerEvents:{base:"all",_whenPanning:"none"},position:"absolute",top:"0",left:"0",width:"max-content",cursor:"default"})),children:y.jsxs(Gf,{css:{gap:"3",padding:"4",paddingTop:"2"},children:[y.jsx(ro,{variant:"default",color:"gray",size:"compact-xs",style:{alignSelf:"flex-start",fontWeight:500,"--button-fz":"var(--font-sizes-xxs)"},onClick:k=>{k.stopPropagation(),x.openRelationshipDetails(r.id)},children:"browse relationships"}),n.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Cm,{children:"DIRECT RELATIONSHIPS"}),n.map(w)]}),o.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Cm,{css:{mt:n.length>0?"2":"0"},children:"RESOLVED FROM NESTED"}),o.map(w)]})]})})},nZe=S.forwardRef(({viewId:e,relationship:r,sourceNode:n,targetNode:o,onNavigateTo:a,onOpenSource:i},l)=>{const s=Vee(r,"source",n),c=Vee(r,"target",o),u=a&&r.navigateTo?.id!==e?r.navigateTo?.id:void 0,d=r.links;return y.jsxs(Gf,{ref:l,className:bG({block:"2",inline:"2",paddingY:"2.5",paddingX:"2",gap:"1",rounded:"sm",backgroundColor:{_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/70"}}}),children:[y.jsx(Sn,{gap:"0.5",children:y.jsxs(cp,{openDelay:200,children:[y.jsx(t4,{label:s.full,offset:2,position:"top-start",children:y.jsx(pt,{component:"div","data-likec4-color":n.color,className:Uee,children:s.short})}),y.jsx(_m,{stroke:2.5,size:"11px",opacity:.65}),y.jsx(t4,{label:c.full,offset:2,position:"top-start",children:y.jsx(pt,{component:"div","data-likec4-color":o.color,className:Uee,children:c.short})}),u&&y.jsx(t4,{label:"Open dynamic view",children:y.jsx(ir,{size:"sm",radius:"sm",variant:"default",onClick:p=>{p.stopPropagation(),a?.(u)},style:{alignSelf:"flex-end"},role:"button",children:y.jsx(vi,{size:"80%",stroke:2})})}),i&&y.jsx(t4,{label:"Open source",children:y.jsx(ir,{size:"sm",radius:"sm",variant:"default",onClick:p=>{p.stopPropagation(),i()},role:"button",children:y.jsx(xm,{size:"80%",stroke:2})})})]})}),y.jsx(Gr,{className:QKe,children:r.title||"untitled"}),r.kind&&y.jsxs(Sn,{gap:"2",children:[y.jsx(Cm,{children:"kind"}),y.jsx(pt,{size:"xs",className:me({userSelect:"all"}),children:r.kind})]}),r.technology&&y.jsxs(Sn,{gap:"2",children:[y.jsx(Cm,{children:"technology"}),y.jsx(pt,{size:"xs",className:me({userSelect:"all"}),children:r.technology})]}),r.description.nonEmpty&&y.jsxs(y.Fragment,{children:[y.jsx(Cm,{children:"description"}),y.jsx(Gr,{css:{paddingLeft:"2.5",py:"1.5",borderLeft:"2px dotted",borderLeftColor:{base:"mantine.colors.gray[3]",_dark:"mantine.colors.dark[4]"}},children:y.jsx(Cp,{value:r.description,fontSize:"sm"})})]}),d.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Cm,{children:"links"}),y.jsx(Sn,{gap:"1",flexWrap:"wrap",children:d.map(p=>y.jsx(VC,{size:"sm",value:p},p.url))})]})]})}),Cm=tc("div",{base:{display:"block",fontSize:"xxs",fontWeight:500,userSelect:"none",lineHeight:"sm",color:"mantine.colors.dimmed"}}),t4=no.withProps({color:"dark",fz:"xs",label:"",children:null,offset:8,withinPortal:!1});function Vee(e,r,n){const o=e.isDeploymentRelation()?n.id:n.modelRef||"",a=e[r].id,i=C1(o)+a.slice(o.length);return{full:a,short:i}}function Tm(){const e=XLe();return S.useMemo(()=>e?{portalProps:{target:e},withinPortal:!0}:{withinPortal:!1},[e])}const oZe=oc({delays:{"open timeout":500,"close timeout":350},actions:{"update activatedBy":Qe({activatedBy:({context:e,event:r})=>{switch(!0){case r.type.includes("click"):return"click";case r.type.includes("mouseEnter"):return"hover";default:return e.activatedBy}}}),"keep dropdown open":Qe({activatedBy:"click"}),"update selected folder":Qe(({event:e})=>e.type==="breadcrumbs.click.root"?{selectedFolder:""}:(qt(e,["breadcrumbs.click.folder","select.folder"]),{selectedFolder:e.folderPath})),"reset selected folder":Qe({selectedFolder:({context:e})=>e.viewModel.folder.path}),"update inputs":Qe(({context:e,event:r})=>{qt(r,"update.inputs");const n=r.inputs.viewModel.id!==e.viewModel.id;let o=e.selectedFolder;return r.inputs.viewModel.folder.path.startsWith(o)||(o=r.inputs.viewModel.folder.path),{viewModel:r.inputs.viewModel,selectedFolder:o,activatedBy:n?"hover":e.activatedBy}}),"reset search query":Qe({searchQuery:""}),"update search query":Qe(({event:e})=>(qt(e,"searchQuery.change"),{searchQuery:e.value??""})),"emit navigateTo":$a(({event:e})=>(qt(e,"select.view"),{type:"navigateTo",viewId:e.viewId}))},guards:{"was opened on hover":({context:e})=>e.activatedBy==="hover","has search query":({context:e})=>!gu(e.searchQuery),"search query is empty":({context:e})=>gu(e.searchQuery)}}).createMachine({id:"breadcrumbs",context:({input:e})=>({...e,breadcrumbs:[],activatedBy:"hover",selectedFolder:"",searchQuery:"",folderColumns:[]}),initial:"idle",entry:["update activatedBy","reset selected folder"],on:{"update.inputs":{actions:"update inputs"},"searchQuery.change":{actions:["update search query",Jr({type:"searchQuery.changed"})]}},states:{idle:{id:"idle",on:{"breadcrumbs.mouseEnter.*":{target:"pending",actions:"update activatedBy"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}}},pending:{on:{"breadcrumbs.mouseEnter.*":{actions:"update activatedBy"},"breadcrumbs.mouseLeave.*":{target:"idle"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}},after:{"open timeout":{target:"active"}}},active:{tags:["active"],initial:"decide",on:{"dropdown.dismiss":{target:"#idle"},"breadcrumbs.mouseLeave":{guard:"was opened on hover",target:".closing"},"dropdown.mouseLeave":{guard:"was opened on hover",target:".closing"},"searchQuery.changed":{target:".decide"}},states:{decide:{always:[{guard:"has search query",target:"search"},{target:"opened"}]},opened:{on:{"searchQuery.changed":{guard:"has search query",actions:"keep dropdown open",target:"search"},"breadcrumbs.click.viewtitle":{actions:"reset selected folder"},"breadcrumbs.click.*":{actions:"update selected folder"},"select.folder":{actions:["keep dropdown open","update selected folder"]},"select.view":{actions:["emit navigateTo"]}}},search:{on:{"breadcrumbs.click.viewtitle":{actions:["reset search query","reset selected folder"],target:"opened"},"breadcrumbs.click.*":{actions:["reset search query","update selected folder"],target:"opened"},"select.view":{actions:["emit navigateTo"]}}},closing:{on:{"breadcrumbs.mouseEnter.*":{target:"decide"},"dropdown.mouseEnter":{target:"decide"}},after:{"close timeout":{target:"#idle"}}}}}}}),aZe=oZe,lR=S.createContext(null);lR.displayName="NavigationPanelActorSafeContext";const iZe=lR.Provider,sR=()=>{const e=S.useContext(lR);if(e===null)throw new Error("NavigationPanelActorRef is not found in the context");return e};function Yee(e,r=Jn){const n=sR();return Cn(n,e,r)}function lZe(e,r=Jn){return Yee(n=>e(n.context),r)}function Yy(){const e=sR();return S.useMemo(()=>({actorRef:e,send:r=>e.send(r),selectFolder:r=>e.send({type:"select.folder",folderPath:r}),selectView:r=>e.send({type:"select.view",viewId:r}),isOpened:()=>e.getSnapshot().hasTag("active"),clearSearch:()=>e.send({type:"searchQuery.change",value:""}),closeDropdown:()=>e.send({type:"dropdown.dismiss"})}),[e])}const Wee=no.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1}),Gee=()=>y.jsx(hi,{variant:"transparent",size:16,className:me({display:{base:"none","@/md":"flex"},color:{base:"mantine.colors.gray[5]",_dark:"mantine.colors.dark[3]"}}),children:y.jsx(Mu,{})});jw.withProps({separator:y.jsx(Gee,{}),separatorMargin:4});const Tp=S.forwardRef(({variant:e="default",className:r,disabled:n=!1,...o},a)=>y.jsx(ir,{size:"md",variant:"transparent",radius:"sm",component:gl,...!n&&{whileHover:{scale:1.085},whileTap:{scale:1,translateY:1}},disabled:n,...o,className:Je(r,oYe({variant:e})),ref:a})),r4=c0({base:{fontSize:"sm",fontWeight:"500",transition:"fast",color:{base:"mantine.colors.text/90",_hover:"[var(--mantine-color-bright)]"}},variants:{truncate:{true:{truncate:!0}},dimmed:{true:{color:{base:"mantine.colors.dimmed",_hover:"mantine.colors.text"}}}}}),sZe=S.forwardRef((e,r)=>y.jsxs("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 222 56",...e,children:[y.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"}),y.jsx("path",{className:me({fill:"[#FCFBF7]",_light:{fill:"[#222221]"}}),d:"M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"})]})),cZe=S.forwardRef((e,r)=>y.jsx("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 56",...e,children:y.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"})})),uZe=()=>{const e=Yy(),{onBurgerMenuClick:r}=dc();return y.jsx(nn,{layout:"position",children:y.jsxs(Ar,{onMouseEnter:()=>{e.send({type:"breadcrumbs.mouseEnter.root"})},onMouseLeave:()=>{e.send({type:"breadcrumbs.mouseLeave.root"})},onClick:n=>{n.stopPropagation(),r&&e.isOpened()&&setTimeout(()=>{r()},100),e.send({type:"breadcrumbs.click.root"})},className:Je("mantine-active",Uo({padding:"0.5",width:{base:"[20px]","@/md":"[64px]"}})),children:[y.jsx(sZe,{className:me({display:{base:"none","@/md":"block"}})}),y.jsx(cZe,{className:me({display:{base:"block","@/md":"none"}})})]})})};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const dZe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],pZe=xt("outline","arrow-left","ArrowLeft",dZe),hZe=()=>{const e=Yt(),{hasStepBack:r,hasStepForward:n}=Ma(o=>({hasStepBack:o.navigationHistory.currentIndex>0,hasStepForward:o.navigationHistory.currentIndex<o.navigationHistory.history.length-1}));return y.jsxs(nn,{layout:"position",className:Uo({gap:"0.5"}),children:[y.jsx(Tp,{disabled:!r,onClick:o=>{o.stopPropagation(),e.navigate("back")},children:y.jsx(pZe,{size:14})}),y.jsx(Tp,{disabled:!n,onClick:o=>{o.stopPropagation(),e.navigate("forward")},children:y.jsx(_m,{size:14})})]})};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const fZe=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],mZe=xt("outline","link","Link",fZe),gZe=({context:e})=>{const r=e.viewModel;return{id:r.id,title:r.titleOrUntitled,description:r.description,tags:r.tags,links:r.links}},yZe=e=>{const[r,n]=S.useState(!1),o=Yee(gZe),a=Tm();return y.jsxs(br,{position:"bottom-end",shadow:"xl",clickOutsideEvents:["pointerdown","mousedown","click"],offset:{mainAxis:4},opened:r,onChange:n,...a,...e,children:[y.jsx(bZe,{linksCount:o.links.length,onOpen:()=>n(!0)}),r&&y.jsx(vZe,{data:o,onClose:()=>n(!1)})]})},bZe=({linksCount:e,onOpen:r})=>y.jsx(br.Target,{children:y.jsxs(Ar,{component:gl,layout:"position",whileTap:{scale:.95,translateY:1},onClick:n=>{n.stopPropagation(),r()},className:Je("group",Uo({gap:"2",paddingInline:"2",paddingBlock:"1",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{_hover:"likec4.panel.action-icon.bg.hover"},display:{base:"none","@/xs":"flex"}}),""),children:[y.jsx(YT,{size:16,stroke:1.8}),e>0&&y.jsxs(Sn,{gap:"[1px]",children:[y.jsx(mZe,{size:14,stroke:2}),y.jsx(Gr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8},children:e})]})]})}),Xee=tc("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}}),vZe=({data:{id:e,title:r,description:n,tags:o,links:a},onClose:i})=>{const l=Yt();return sl("paneClick",i),sl("nodeClick",i),y.jsxs(br.Dropdown,{className:Je("nowheel nopan nodrag",oy({margin:"xs",layerStyle:"likec4.dropdown",gap:"md",padding:"md",paddingBottom:"lg",pointerEvents:"all",maxWidth:"calc(100cqw - 52px)",minWidth:"200px",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),children:[y.jsxs("section",{children:[y.jsx(pt,{component:"div",fw:500,size:"xl",lh:"sm",children:r}),y.jsxs(Sn,{alignItems:"flex-start",mt:"1",children:[y.jsx(xZe,{label:"id",value:e}),y.jsx(Sn,{gap:"xs",flexWrap:"wrap",children:o.map(s=>y.jsx(N2,{tag:s,cursor:"pointer",onClick:c=>{c.stopPropagation(),l.openSearch(`#${s}`)}},s))})]})]}),a.length>0&&y.jsxs("section",{className:Uo({alignItems:"baseline"}),children:[y.jsx(Xee,{children:"Links"}),y.jsx(Sn,{gap:"xs",flexWrap:"wrap",children:a.map((s,c)=>y.jsx(VC,{value:s},`${c}-${s.url}`))})]}),n.isEmpty&&y.jsx(pt,{component:"div",fw:500,size:"xs",c:"dimmed",style:{userSelect:"none"},children:"No description"}),n.nonEmpty&&y.jsxs("section",{children:[y.jsx(Xee,{children:"Description"}),y.jsx(Cp,{value:n,fontSize:"sm",emptyText:"No description",className:me({userSelect:"all"})})]})]})},xZe=({label:e,value:r})=>y.jsxs(Sn,{gap:"0.5",children:[y.jsx(wZe,{children:e}),y.jsx(Qs,{size:"sm",radius:"sm",variant:"light",color:"gray",tt:"none",fw:500,classNames:{root:me({width:"max-content",overflow:"visible",px:"1",color:{_dark:"mantine.colors.gray[4]",_light:"mantine.colors.gray[8]"}}),label:me({overflow:"visible"}),section:me({opacity:.5,userSelect:"none",marginInlineEnd:"0.5"})},children:r})]}),wZe=tc("div",{base:{color:"mantine.colors.dimmed",fontWeight:500,fontSize:"xxs",userSelect:"none"}}),kZe=()=>{const e=V2(),{enableVscode:r}=Er(),{onOpenSource:n}=dc();return r?y.jsx(Wee,{label:"Open View Source",children:y.jsx(Tp,{onClick:o=>{o.stopPropagation(),n?.({view:e})},children:y.jsx(xm,{style:{width:"60%",height:"60%"}})})}):null};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const _Ze=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],EZe=xt("outline","lock","Lock",_Ze);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const SZe=[["path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M13 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],CZe=xt("outline","lock-open-2","LockOpen2",SZe),TZe=e=>({visible:e.features.enableReadOnly!==!0,isReadOnly:e.toggledFeatures.enableReadOnly??e.features.enableReadOnly}),RZe=()=>{const{visible:e,isReadOnly:r}=Ma(TZe),n=Yt();return e?y.jsxs(Ar,{component:gl,layout:"position",onClick:o=>{o.stopPropagation(),n.toggleFeature("ReadOnly")},whileTap:{translateY:1},className:Je("group",Uo({gap:"0.5",paddingInline:"xxs",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{_hover:"likec4.panel.action-icon.bg.hover"}})),children:[r?y.jsx(EZe,{size:14,stroke:2}):y.jsx(CZe,{size:14,stroke:2}),r&&y.jsx(nn,{className:me({fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8}),children:"Unlock"})]}):null};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const AZe=[["path",{d:"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z",key:"svg-0"}]],NZe=xt("filled","player-play-filled","PlayerPlayFilled",AZe),Kee=S.forwardRef((e,r)=>y.jsx(ro,{variant:"filled",size:"xs",fw:"500",...e,ref:r,component:gl,layoutId:"trigger-dynamic-walkthrough",className:me({flexShrink:0})}));function DZe(){const e=Yt(),r=Yy();return y.jsx(Wee,{label:"Start Dynamic View Walkthrough",children:y.jsx(Kee,{onClick:n=>{n.stopPropagation(),r.closeDropdown(),e.startWalkthrough()},size:"compact-xs",h:26,classNames:{label:me({display:{base:"none","@/md":"[inherit]"}}),section:me({marginInlineStart:{base:"0","@/md":"2"}})},rightSection:y.jsx(NZe,{size:10}),children:"Start"})})}function PZe({value:e,onChange:r}){return y.jsx(nn,{layout:"position",children:y.jsx(J0,{size:"xs",value:e,component:nn,onChange:n=>{nt(n==="diagram"||n==="sequence","Invalid dynamic view variant"),r(n)},classNames:{label:me({fontSize:"xxs"})},data:[{value:"diagram",label:"Diagram"},{value:"sequence",label:"Sequence"}]})})}function $Ze(){const e=Ma(n=>n.dynamicViewVariant),r=Yt();return y.jsxs(y.Fragment,{children:[y.jsx(PZe,{value:e,onChange:n=>{r.switchDynamicViewVariant(n)}},"dynamic-view-mode-switcher"),y.jsx(DZe,{},"trigger-dynamic-walkthrough")]})}function MZe(){const e=Yt(),r=hf();return y.jsxs(Ar,{component:gl,layout:"position",onClick:n=>{n.stopPropagation(),e.openSearch()},whileTap:{scale:.95,translateY:1},className:Je("group",Uo({gap:"xxs",paddingInline:"sm",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{base:"likec4.panel.action-icon.bg",_hover:"likec4.panel.action-icon.bg.hover"},display:{base:"none","@/md":"flex"}})),children:[y.jsx(oR,{size:14,stroke:2.5}),y.jsx(Gr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8,whiteSpace:"nowrap"},children:r?"⌘ + K":"Ctrl + K"})]})}const OZe=({context:e})=>{const r=e.viewModel.folder;return{folders:r.isRoot?[]:r.breadcrumbs.map(n=>({folderPath:n.path,title:n.title})),viewId:e.viewModel.id,viewTitle:e.viewModel.titleOrUntitled,isDynamicView:e.viewModel.isDynamicView()}},IZe=()=>{const e=Yy(),{enableSearch:r,enableNavigationButtons:n,enableDynamicViewWalkthrough:o}=Er(),{folders:a,viewTitle:i,isDynamicView:l}=Cn(e.actorRef,OZe,ut),s=a.flatMap(({folderPath:u,title:d},p)=>[y.jsx(Ar,{component:gl,className:Je(r4({dimmed:!0,truncate:!0}),"mantine-active",me({userSelect:"none",maxWidth:"200px",display:{base:"none","@/md":"block"}})),title:d,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.folder",folderPath:u}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.folder",folderPath:u}),onClick:f=>{f.stopPropagation(),e.send({type:"breadcrumbs.click.folder",folderPath:u})},children:d},u),y.jsx(Gee,{},`separator-${p}`)]),c=y.jsx(Ar,{component:gl,className:Je("mantine-active",r4({truncate:!0}),me({userSelect:"none"})),title:i,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.viewtitle"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.viewtitle"}),onClick:u=>{u.stopPropagation(),e.send({type:"breadcrumbs.click.viewtitle"})},children:i},"view-title");return y.jsxs(Oa,{propagate:!0,children:[y.jsx(uZe,{},"burger-button"),n&&y.jsx(hZe,{},"nav-buttons"),y.jsxs(nn,{layout:"position",className:Uo({gap:"1",flexShrink:1,flexGrow:1,overflow:"hidden"}),children:[s,c]},"breadcrumbs"),y.jsxs(nn,{layout:"position",className:Uo({gap:"0.5",flexGrow:0,_empty:{display:"none"}}),children:[y.jsx(yZe,{onOpen:()=>e.closeDropdown()}),y.jsx(kZe,{}),y.jsx(RZe,{})]},"actions"),o&&l&&y.jsx($Ze,{},"dynamic-view-controls"),r&&y.jsx(MZe,{},"search-control")]})},cR=S.forwardRef(({className:e,truncateLabel:r=!0,...n},o)=>y.jsx(D7,{...n,component:"button",classNames:yYe({truncateLabel:r}),className:Je("group","mantine-active",e),ref:o}));cR.displayName="NavigationLink";const zZe=S.createContext(null),LZe=[],BZe=()=>{},jZe={projects:LZe,onProjectChange:BZe};function FZe(){return S.useContext(zZe)??jZe}function HZe(){const e=S.useContext(ny);if(!e)throw new Error("No LikeC4ModelContext found");return e.projectId}function qZe(e){const{projects:r,onProjectChange:n}=FZe(),o=HZe();return r.length<=1?null:y.jsxs(Sn,{gap:"0.5",alignItems:"baseline",children:[y.jsx(Gr,{css:{fontWeight:"400",fontSize:"xxs",color:"mantine.colors.dimmed",userSelect:"none"},children:"Project"}),y.jsxs(go,{withinPortal:!1,shadow:"md",position:"bottom-start",offset:{mainAxis:2},children:[y.jsx(Vw,{children:y.jsx(ro,{tabIndex:-1,autoFocus:!1,variant:"subtle",size:"compact-xs",color:"gray",classNames:{root:me({fontWeight:"400",fontSize:"xxs",height:"auto",lineHeight:1.1,color:{_light:"mantine.colors.gray[9]"}}),section:me({'&:is([data-position="right"])':{marginInlineStart:"1"}})},rightSection:y.jsx(FQ,{opacity:.5,size:12,stroke:1.5}),...e,children:o})}),y.jsx(Z0,{children:r.map(({id:a,title:i})=>y.jsx(Q0,{onClick:l=>{if(o===a){l.stopPropagation();return}n(a)},children:i??a},a))})]})]})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const UZe=[["path",{d:"M10.52 2.614a2.095 2.095 0 0 1 2.835 -.117l.126 .117l7.905 7.905c.777 .777 .816 2.013 .117 2.836l-.117 .126l-7.905 7.905a2.094 2.094 0 0 1 -2.836 .117l-.126 -.117l-7.907 -7.906a2.096 2.096 0 0 1 -.115 -2.835l.117 -.126l7.905 -7.905zm5.969 9.535l.01 -.116l-.003 -.12l-.016 -.114l-.03 -.11l-.044 -.112l-.052 -.098l-.076 -.105l-.07 -.081l-3.5 -3.5l-.095 -.083a1 1 0 0 0 -1.226 0l-.094 .083l-.083 .094a1 1 0 0 0 0 1.226l.083 .094l1.792 1.793h-5.085l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h5.085l-1.792 1.793l-.083 .094a1 1 0 0 0 1.403 1.403l.094 -.083l3.5 -3.5l.097 -.112l.05 -.074l.037 -.067l.05 -.112l.023 -.076l.025 -.117z",key:"svg-0"}]],VZe=xt("filled","direction-sign-filled","DirectionSignFilled",UZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const YZe=[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]],WZe=xt("filled","star-filled","StarFilled",YZe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const GZe=[["path",{d:"M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z",key:"svg-0"}]],XZe=xt("filled","folder-filled","FolderFilled",GZe),Zee=z0({siblingSelector:"[data-likec4-focusable]",parentSelector:"[data-likec4-breadcrumbs-dropdown]",activateOnFocus:!1,loop:!0,orientation:"vertical"});function KZe(){const e=Yy(),r=Cn(e.actorRef,a=>a.context.searchQuery);sl("paneClick",()=>{e.closeDropdown()}),sl("nodeClick",()=>{e.closeDropdown()});const n=l$e(a=>{e.send({type:"searchQuery.change",value:a})},250),o=r.trim().length>=2;return y.jsxs(Ks,{className:Je("nowheel",oy({layerStyle:"likec4.dropdown",gap:"xs",pointerEvents:"all"})),"data-likec4-breadcrumbs-dropdown":!0,onMouseLeave:()=>e.send({type:"dropdown.mouseLeave"}),onMouseEnter:()=>e.send({type:"dropdown.mouseEnter"}),children:[y.jsx(qZe,{}),y.jsx(Sn,{gap:"xs",children:y.jsx(lQe,{value:r,onChange:n,"data-likec4-focusable":!0,onKeyDown:Zee})}),y.jsx(na,{scrollbars:"x",type:"auto",offsetScrollbars:"present",classNames:{root:me({maxWidth:["calc(100vw - 50px)","calc(100cqw - 50px)"]})},styles:{viewport:{overscrollBehavior:"none"}},children:o?y.jsx(QZe,{searchQuery:U3(r).toLowerCase()}):y.jsx(oQe,{})})]})}const ZZe=BI(Ea);function QZe({searchQuery:e}){const r=qo(),n=Yy(),o=e.includes(Ea),a=kn(r.views(),Fd(l=>o&&l.$view.title?U3(l.$view.title).toLowerCase().includes(e):l.id.toLowerCase().includes(e)||!!l.title?.toLowerCase().includes(e)),c8e(20),i0(),ADe((l,s)=>ZZe(l.folder.path,s.folder.path)));if(a.length===0)return y.jsx("div",{children:"no results"});const i=o?e.split(Ea):e;return y.jsx(na,{scrollbars:"xy",offsetScrollbars:!1,className:me({width:"100%",maxWidth:["calc(100vw - 250px)","calc(100cqw - 250px)"],maxHeight:["calc(100vh - 200px)","calc(100cqh - 200px)"]}),children:y.jsx(Gf,{gap:"0.5",children:a.map(l=>y.jsx(eQe,{view:l,highlight:i,onClick:s=>{s.stopPropagation(),n.selectView(l.id)},"data-likec4-focusable":!0,onKeyDown:Zee},l.id))})})}const JZe=Uo({gap:"xxs",rounded:"sm",px:"xs",py:"xxs",_hover:{backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}},_focus:{outline:"none",color:"mantine.colors.primary.lightColor!",backgroundColor:"mantine.colors.primary.lightHover!"}}),Qee=me({_groupFocus:{color:"[inherit!]",transition:"none"}});function eQe({view:e,highlight:r,...n}){const o=e.folder,a=ete[e.id==="index"?"index":e._type],i=y.jsx(Js,{component:"div",className:Je(Qee,r4({truncate:!0}),me({"& > mark":{backgroundColor:{base:"mantine.colors.yellow[2]/90",_dark:"mantine.colors.yellow[5]/80",_groupFocus:"[transparent]"},color:{_groupFocus:"[inherit!]"}}})),maw:350,highlight:r,children:e.title??e.id},e.id),l=Je(n.className,"group",JZe);if(o.isRoot)return y.jsxs(Ar,{...n,className:l,children:[a,i]});const s=o.breadcrumbs.map(c=>y.jsx(Js,{component:"div",className:Je(me({_groupHover:{color:"mantine.colors.dimmed"}}),Qee,r4({dimmed:!0,truncate:!0})),maw:170,highlight:GE(r)?r:[],children:c.title},c.path));return s.push(y.jsxs(Sn,{gap:"[4px]",children:[a,i]})),y.jsxs(Ar,{...n,className:l,children:[Jee,y.jsx(jw,{separator:y.jsx(Mu,{size:12,stroke:1.5}),separatorMargin:3,children:s})]})}const tQe=y.jsx(Mu,{size:12,stroke:1.5,className:"mantine-rotate-rtl"}),Jee=y.jsx(XZe,{size:16,className:me({opacity:{base:.3,_groupHover:.5,_groupActive:.5,_groupFocus:.5}})}),n4=me({opacity:{base:.3,_dark:.5,_groupHover:.8,_groupActive:.8,_groupFocus:.8}}),ete={index:y.jsx(WZe,{size:16,className:n4}),element:y.jsx(vi,{size:18,stroke:2,className:n4}),deployment:y.jsx(XT,{size:16,stroke:1.5,className:n4}),dynamic:y.jsx(VZe,{size:18,className:n4})},rQe=na.withProps({scrollbars:"y",className:me({maxHeight:["calc(100vh - 160px)","calc(100cqh - 160px)"]})});function tte(e,r){return{folderPath:e.path,items:[...e.folders.map(n=>({type:"folder",folderPath:n.path,title:n.title,selected:r.selectedFolder.startsWith(n.path)})),...e.views.map(n=>({type:"view",viewType:n.id==="index"?"index":n._type,viewId:n.id,title:n.title??n.id,description:n.description.nonEmpty&&n.description.text||null,selected:n.id===r.viewModel.id}))]}}const nQe=e=>{const r=e.viewModel.$model,n=[tte(r.rootViewFolder,e)],o=r.viewFolder(e.selectedFolder);if(!o.isRoot)for(const a of o.breadcrumbs)n.push(tte(a,e));return n};function oQe(){const e=lZe(nQe,ut);return y.jsx(Sn,{gap:"xs",alignItems:"stretch",children:e.flatMap((r,n)=>[n>0&&y.jsx(qf,{orientation:"vertical"},"divider"+n),y.jsx(aQe,{data:r,isLast:n==e.length-1},r.folderPath)])})}function aQe({data:e,isLast:r}){const n=S.useRef(null),o=sR(),a=i=>l=>{l.stopPropagation(),i.type==="folder"?o.send({type:"select.folder",folderPath:i.folderPath}):o.send({type:"select.view",viewId:i.viewId})};return HEe(()=>{r&&n.current&&n.current.scrollIntoView({inline:"nearest",behavior:"smooth"})}),y.jsx(Gr,{mb:"1",ref:n,children:y.jsx(rQe,{children:y.jsx(Gf,{gap:"0.5",children:e.items.map((i,l)=>y.jsx(iQe,{columnItem:i,onClick:a(i)},`${e.folderPath}/${i.type}/${l}`))})})})}function iQe({columnItem:e,...r}){switch(e.type){case"folder":return y.jsx(cR,{variant:"light",active:e.selected,label:e.title,leftSection:Jee,rightSection:tQe,maw:"300px",miw:"200px",...r},e.folderPath);case"view":return y.jsx(cR,{variant:"filled",active:e.selected,label:e.title,description:e.description,leftSection:ete[e.viewType],maw:"300px",miw:"200px",...r},e.viewId);default:Ja(e)}}function lQe({onKeyDown:e,...r}){const[n,o]=Ys({...r,finalValue:""});return y.jsx(Pa,{size:"xs",placeholder:"Search by title or id",variant:"unstyled",height:Ae(26),value:n,onKeyDown:e,onChange:a=>o(a.currentTarget.value),classNames:{wrapper:me({flexGrow:1,backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/80",_hover:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"},_focus:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"}},rounded:"sm"}),input:me({_placeholder:{color:"mantine.colors.dimmed"},_focus:{outline:"none"}})},style:{"--input-fz":"var(--mantine-font-size-sm)"},leftSection:y.jsx(oR,{size:14}),rightSectionPointerEvents:"all",rightSectionWidth:"min-content",rightSection:!r.value||gu(r.value)?null:y.jsx(ro,{variant:"subtle",h:"100%",size:"compact-xs",color:"gray",onClick:a=>{a.stopPropagation(),o("")},children:"clear"})})}const sQe=tc("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}});function cQe(e){const r=uDe(e.activeWalkthrough),n=r?e.xyedges.findIndex(o=>o.id===e.activeWalkthrough?.stepId):-1;return{isActive:r,isParallel:r&&Ta(e.activeWalkthrough?.parallelPrefix),hasNext:r&&n<e.xyedges.length-1,hasPrevious:r&&n>0,notes:r?e.xyedges[n]?.data?.notes??Zt.EMPTY:null}}const uQe=()=>{const{notes:e}=Ma(cQe);return!e||e.isEmpty?null:y.jsx(tc.div,{position:"relative",children:y.jsxs(na,{className:Je("nowheel nopan nodrag",oy({position:"absolute",layerStyle:"likec4.dropdown",gap:"sm",padding:"md",paddingTop:"xxs",pointerEvents:"all",maxWidth:"calc(100cqw - 32px)",minWidth:"calc(100cqw - 50px)",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),type:"scroll",children:[y.jsx(sQe,{children:"Notes"}),y.jsx(Cp,{value:e,fontSize:"sm",emptyText:"No description",className:me({userSelect:"all"})})]})})},o4=no.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,position:"right"});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const dQe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-1"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-3"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-4"}]],pQe=xt("outline","focus-centered","FocusCentered",dQe),hQe=()=>{const e=Yt();return y.jsx(o4,{label:"Center camera",children:y.jsx(Tp,{onClick:()=>e.fitDiagram(),children:y.jsx(pQe,{})})})};me({gap:"xxs",_empty:{display:"none"}}),me({top:"md",left:"md",margin:"0",pointerEvents:"none","& :where(button, .action-icon, [role='dialog'])":{pointerEvents:"all"},"& .action-icon":{"--ai-size":"2rem"},"& .tabler-icon":{width:"65%",height:"65%"},_reduceGraphics:{"& .action-icon":{"--ai-radius":"0px"}}}),me({shadow:{base:"md",_whenPanning:"none"}}),me({"& .tabler-icon":{width:"65%",height:"65%"}});const a4=me({flex:"1 1 40%",textAlign:"center",fontWeight:500,padding:"[4px 6px]",fontSize:"11px",zIndex:1}),fQe=me({background:"mantine.colors.gray[2]",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[4]",_dark:{background:"mantine.colors.dark[5]",borderColor:"mantine.colors.dark[4]"}}),mQe=me({position:"relative",borderRadius:"sm",background:"mantine.colors.gray[3]",boxShadow:"inset 1px 1px 3px 0px #00000024",_dark:{background:"mantine.colors.dark[7]"}}),gQe=me({position:"absolute",width:8,height:8,border:"2px solid",borderColor:"mantine.colors.gray[5]",borderRadius:3,transform:"translate(-50%, -50%)"});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const yQe=[["path",{d:"M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-0"}],["path",{d:"M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-1"}],["path",{d:"M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-2"}],["path",{d:"M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-3"}]],bQe=xt("outline","layout-dashboard","LayoutDashboard",yQe),vQe=e=>({viewId:e.view.id,autoLayout:e.view.autoLayout}),xQe=()=>{const{onChange:e}=dc(),r=Yt(),[n,o]=S.useState(null),[a,i]=S.useState({}),{autoLayout:l,viewId:s}=Ma(vQe),{ref:c,hovered:u}=d9(),d=g=>b=>{a[g]=b,i(a)},p=g=>b=>{b.stopPropagation(),e?.({change:{op:"change-autolayout",layout:{...l,direction:g}}})},f=(g,b)=>{r.fitDiagram(),e?.({change:{op:"change-autolayout",layout:{...l,nodeSep:g,rankSep:b}}})};return y.jsxs(br,{position:"right-start",clickOutsideEvents:["pointerdown"],radius:"xs",shadow:"lg",offset:{mainAxis:10},children:[y.jsx(Eu,{children:y.jsx(o4,{label:"Change Auto Layout",children:y.jsx(Tp,{children:y.jsx(bQe,{})})})}),y.jsx(Ks,{className:"likec4-top-left-panel",p:8,pt:6,opacity:u?.6:1,children:y.jsxs(Se,{pos:"relative",ref:o,children:[y.jsx(Iw,{target:a[l.direction],parent:n,className:fQe}),y.jsx(Se,{mb:10,children:y.jsx(pt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Auto layout:"})}),y.jsxs(Zs,{gap:2,wrap:"wrap",justify:"stretch",maw:160,children:[y.jsx(Ar,{className:a4,ref:d("TB"),onClick:p("TB"),children:"Top-Bottom"}),y.jsx(Ar,{className:a4,ref:d("BT"),onClick:p("BT"),children:"Bottom-Top"}),y.jsx(Ar,{className:a4,ref:d("LR"),onClick:p("LR"),children:"Left-Right"}),y.jsx(Ar,{className:a4,ref:d("RL"),onClick:p("RL"),children:"Right-Left"})]}),y.jsx(Se,{my:10,children:y.jsx(pt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Spacing:"})}),y.jsx(wQe,{ref:c,isVertical:l.direction==="TB"||l.direction==="BT",nodeSep:l.nodeSep,rankSep:l.rankSep,onChange:f},s)]})})]})},Rm=400,wQe=S.forwardRef(({isVertical:e,nodeSep:r,rankSep:n,onChange:o},a)=>{e||([r,n]=[n,r]);const i=G3(({x:f,y:g})=>{e||([f,g]=[g,f]),o(Math.round(f*Rm),Math.round(g*Rm))},[o,e],250,2e3),[l,s]=Ys({defaultValue:YPe({x:(r??100)/Rm,y:(n??120)/Rm}),onChange:i}),{ref:c}=ZU(s);let u=Math.round(l.x*Rm),d=Math.round(l.y*Rm);e||([u,d]=[d,u]);const p=Mr(c,a);return y.jsxs(Se,{ref:p,className:mQe,pt:"100%",children:[y.jsx(Se,{className:gQe,style:{left:`${l.x*100}%`,top:`${l.y*100}%`}}),y.jsx(Se,{pos:"absolute",left:2,bottom:2,children:y.jsxs(pt,{component:"div",fz:8,c:"dimmed",fw:500,children:[d,", ",u]})})]})});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const kQe=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],rte=xt("outline","alert-triangle","AlertTriangle",kQe),_Qe=()=>{const e=Tm();return Ma(r=>r.view.hasLayoutDrift??!1)?y.jsxs(Uf,{position:"right-start",openDelay:200,closeDelay:100,...e,children:[y.jsx(S7,{children:y.jsx(ir,{color:"orange",c:"orange",className:me({bg:"mantine.colors.orange.light"}),children:y.jsx(rte,{})})}),y.jsx(_7,{p:"0",children:y.jsxs(Gw,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Manual layout issues",children:[y.jsxs(pt,{mt:2,size:"sm",lh:"xs",children:["View contains new elements or their sizes have changed,",y.jsx("br",{}),"last manual layout can not be applied."]}),y.jsxs(pt,{mt:"xs",size:"sm",lh:"xs",children:["Update view predicates or remove ",y.jsx(qw,{children:"@likec4-generated"})]})]})})]}):null};/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const EQe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M10 4l4 16",key:"svg-1"}],["path",{d:"M12 12l-8 2",key:"svg-2"}]],SQe=xt("outline","layout-collage","LayoutCollage",EQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const CQe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 12h8",key:"svg-1"}],["path",{d:"M12 15h8",key:"svg-2"}],["path",{d:"M12 9h8",key:"svg-3"}],["path",{d:"M12 4v16",key:"svg-4"}]],nte=xt("outline","layout-board-split","LayoutBoardSplit",CQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const TQe=[["path",{d:"M4 4l0 16",key:"svg-0"}],["path",{d:"M8 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],RQe=xt("outline","layout-align-left","LayoutAlignLeft",TQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const AQe=[["path",{d:"M12 4l0 5",key:"svg-0"}],["path",{d:"M12 15l0 5",key:"svg-1"}],["path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-2"}]],NQe=xt("outline","layout-align-center","LayoutAlignCenter",AQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const DQe=[["path",{d:"M20 4l0 16",key:"svg-0"}],["path",{d:"M4 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],PQe=xt("outline","layout-align-right","LayoutAlignRight",DQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const $Qe=[["path",{d:"M4 4l16 0",key:"svg-0"}],["path",{d:"M9 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],MQe=xt("outline","layout-align-top","LayoutAlignTop",$Qe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const OQe=[["path",{d:"M4 12l5 0",key:"svg-0"}],["path",{d:"M15 12l5 0",key:"svg-1"}],["path",{d:"M9 6m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]],IQe=xt("outline","layout-align-middle","LayoutAlignMiddle",OQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const zQe=[["path",{d:"M4 20l16 0",key:"svg-0"}],["path",{d:"M9 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],LQe=xt("outline","layout-align-bottom","LayoutAlignBottom",zQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const BQe=[["path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M18 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M12 19h4.5c.71 0 1.372 -.212 1.924 -.576m1.545 -2.459a3.5 3.5 0 0 0 -3.469 -3.965h-.499m-4 0h-3.501a3.5 3.5 0 0 1 -2.477 -5.972m2.477 -1.028h3.5",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],jQe=xt("outline","route-off","RouteOff",BQe),pc=({label:e,icon:r,onClick:n})=>y.jsx(o4,{label:e,withinPortal:!1,position:"top",children:y.jsx(Tp,{classNames:{root:"action-icon",icon:me({"& > svg":{width:"70%",height:"70%"}})},onClick:n,children:r})}),FQe=e=>{const r=Yt(),n=Tm();return y.jsxs(br,{position:"right",offset:{mainAxis:12},clickOutsideEvents:["pointerdown"],...n,...e,children:[y.jsx(Eu,{children:y.jsx(o4,{label:"Manual layouting tools",children:y.jsx(Tp,{children:y.jsx(SQe,{})})})}),y.jsx(Ks,{className:Uo({gap:"0.5",layerStyle:"likec4.panel",padding:"1",pointerEvents:"all"}),children:y.jsxs(cp,{children:[y.jsx(pc,{label:"Align in columns",icon:y.jsx(nte,{}),onClick:o=>{o.stopPropagation(),r.align("Column")}}),y.jsx(pc,{label:"Align left",icon:y.jsx(RQe,{}),onClick:o=>{o.stopPropagation(),r.align("Left")}}),y.jsx(pc,{label:"Align center",icon:y.jsx(NQe,{}),onClick:o=>{o.stopPropagation(),r.align("Center")}}),y.jsx(pc,{label:"Align right",icon:y.jsx(PQe,{}),onClick:o=>{o.stopPropagation(),r.align("Right")}}),y.jsx(pc,{label:"Align in rows",icon:y.jsx(nte,{style:{transform:"rotate(90deg)"}}),onClick:o=>{o.stopPropagation(),r.align("Row")}}),y.jsx(pc,{label:"Align top",icon:y.jsx(MQe,{}),onClick:o=>{o.stopPropagation(),r.align("Top")}}),y.jsx(pc,{label:"Align middle",icon:y.jsx(IQe,{}),onClick:o=>{o.stopPropagation(),r.align("Middle")}}),y.jsx(pc,{label:"Align bottom",icon:y.jsx(LQe,{}),onClick:o=>{o.stopPropagation(),r.align("Bottom")}}),y.jsx(pc,{label:"Reset all control points",icon:y.jsx(jQe,{}),onClick:o=>{o.stopPropagation(),r.resetEdgeControlPoints()}})]})})]})};function HQe(){const{enableReadOnly:e}=Er();return y.jsx(Oa,{children:!e&&y.jsx(nn,{layout:"position",className:oy({gap:"xs",layerStyle:"likec4.panel",position:"relative",cursor:"pointer",padding:"xxs",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsxs(cp,{openDelay:600,closeDelay:120,children:[y.jsx(xQe,{}),y.jsx(FQe,{}),y.jsx(_Qe,{}),y.jsx(hQe,{})]})})})}/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const qQe=[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]],UQe=xt("filled","player-stop-filled","PlayerStopFilled",qQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const VQe=[["path",{d:"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z",key:"svg-0"}],["path",{d:"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],YQe=xt("filled","player-skip-back-filled","PlayerSkipBackFilled",VQe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const WQe=[["path",{d:"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z",key:"svg-0"}],["path",{d:"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],GQe=xt("filled","player-skip-forward-filled","PlayerSkipForwardFilled",WQe),ote=ro.withProps({component:gl,variant:"light",size:"xs",fw:"500"}),XQe=()=>{const{portalProps:e}=Tm();return y.jsx(V0,{...e,children:y.jsx(Gr,{css:{position:"absolute",margin:"0",padding:"0",top:"0",left:"0",width:"100%",height:"100%",border:"2px solid",borderColor:"mantine.colors.orange[6]",pointerEvents:"none",md:{borderWidth:4}}})})};function KQe(){const e=Yt(),{isParallel:r,hasNext:n,hasPrevious:o,currentStep:a,totalSteps:i}=Ma(l=>{const s=l.xyedges.findIndex(c=>c.id===l.activeWalkthrough?.stepId);return{isParallel:Ta(l.activeWalkthrough?.parallelPrefix),hasNext:s<l.xyedges.length-1,hasPrevious:s>0,currentStep:s+1,totalSteps:l.xyedges.length}});return y.jsxs(Oa,{propagate:!0,children:[y.jsx(Kee,{variant:"light",size:"xs",color:"orange",mr:"sm",onClick:l=>{l.stopPropagation(),e.stopWalkthrough()},rightSection:y.jsx(UQe,{size:10}),children:"Stop"},"stop-walkthrough"),y.jsx(ote,{disabled:!o,onClick:()=>e.walkthroughStep("previous"),leftSection:y.jsx(YQe,{size:10}),children:"Previous"},"prev"),y.jsx(Qs,{component:nn,size:"md",radius:"sm",variant:r?"gradient":"transparent",gradient:{from:"red",to:"orange",deg:90},rightSection:y.jsx(nn,{className:me({fontSize:"xxs",display:r?"block":"none"}),children:"parallel"}),className:me({alignItems:"baseline"}),children:y.jsxs(kGe,{children:[a," / ",i]})},"step-badge"),y.jsx(ote,{disabled:!n,onClick:()=>e.walkthroughStep("next"),rightSection:y.jsx(GQe,{size:10}),children:"Next"},"next"),r&&y.jsx(XQe,{},"parallel-frame")]})}const ate=S.memo(()=>{const e=am(),r=jQ(),n=cS(aZe,{input:{viewModel:r}});return S.useEffect(()=>{const o=n.on("navigateTo",a=>{e.getSnapshot().context.view.id!==a.viewId&&e.send({type:"navigate.to",viewId:a.viewId})});return()=>o.unsubscribe()},[n,e]),Qj(()=>{n.send({type:"update.inputs",inputs:{viewModel:r}})},[r]),y.jsx(Gf,{css:{alignItems:"flex-start",pointerEvents:"none",position:"absolute",top:"0",left:"0",margin:"0",width:"100%",gap:"xxs",maxWidth:["calc(100vw)","calc(100cqw)"],"@/sm":{margin:"xs",gap:"xs",width:"max-content",maxWidth:["calc(100vw - 2 * {spacing.md})","calc(100cqw - 2 * {spacing.md})"]}},children:y.jsxs(iZe,{value:n,children:[y.jsx(ZQe,{actor:n}),y.jsx(HQe,{}),y.jsx(uQe,{})]})})});ate.displayName="NavigationPanel";const ZQe=({actor:e})=>{const r=Cn(e,o=>o.hasTag("active")),n=Tm();return y.jsxs(br,{offset:{mainAxis:4},opened:r,position:"bottom-start",trapFocus:!0,...n,clickOutsideEvents:["pointerdown","mousedown","click"],onDismiss:()=>e.send({type:"dropdown.dismiss"}),children:[y.jsx(QQe,{actor:e}),r&&y.jsx(KZe,{})]})},QQe=({actor:e})=>{const r=Ma(n=>n.activeWalkthrough!==null);return y.jsx(ym,{children:y.jsx(Eu,{children:y.jsx(nn,{layout:!0,className:Uo({layerStyle:"likec4.panel",position:"relative",gap:"xs",cursor:"pointer",paddingRight:"md",pointerEvents:"all",width:"100%"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave"}),children:y.jsx(Oa,{mode:"popLayout",children:r?y.jsx(KQe,{}):y.jsx(IZe,{})})})})})},uR=me({position:"absolute",bottom:"0",right:"0",padding:"2",margin:"0",width:"min-content",height:"min-content"}),JQe=me({"--ai-radius":"0px",_noReduceGraphics:{"--ai-radius":"{radii.md}"}}),eJe=me({cursor:"default",userSelect:"none",minWidth:200,maxWidth:"calc(100vw - 20px)",backgroundColor:"mantine.colors.body/80",sm:{minWidth:300,maxWidth:"65vw"},md:{maxWidth:"40vw"},_dark:{backgroundColor:"mantine.colors.dark[6]/80"}}),tJe=me({padding:"xxs"}),rJe=me({backgroundColor:"transparent",transition:"all 100ms ease-in",_hover:{transition:"all 120ms ease-out",backgroundColor:"mantine.colors.primary[2]/50"},_dark:{_hover:{backgroundColor:"mantine.colors.dark[3]/40"}}});me({fill:"var(--likec4-palette-fill)",stroke:"var(--likec4-palette-stroke)",strokeWidth:1,overflow:"visible",width:"100%",height:"auto",filter:`
    drop-shadow(0 2px 3px rgb(0 0 0 / 22%))
    drop-shadow(0 1px 8px rgb(0 0 0 / 10%))
  `});const nJe=me({fontWeight:500,letterSpacing:"0.2px",paddingTop:"0",paddingBottom:"0",textTransform:"lowercase",transition:"all 150ms ease-in-out",cursor:"pointer","--badge-radius":"2px","--badge-fz":"9.5px","--badge-padding-x":"3px","--badge-height":"13.5px","--badge-lh":"1","--badge-bg":"var(--likec4-palette-fill)","--badge-color":"var(--likec4-palette-hiContrast)"});/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const oJe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]],aJe=xt("outline","help-circle","HelpCircle",oJe);/**
 * @license @tabler/icons-react v3.35.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const iJe=[["path",{d:"M7 7l10 10",key:"svg-0"}],["path",{d:"M17 8l0 9l-9 0",key:"svg-1"}]],lJe=xt("outline","arrow-down-right","ArrowDownRight",iJe),sJe=({value:e})=>{const{title:r,color:n="primary",shape:o="rectangle"}=e,[a,i]=S.useState(null),l=Yt(),s=300,c=200;return y.jsx(Hw,{shadow:"none",px:"xs",py:"sm",className:Je(rJe),"data-likec4-color":n,onMouseEnter:()=>{i(null),l.highlightNotation(e)},onMouseLeave:()=>{i(null),l.unhighlightNotation()},children:y.jsxs(Wr,{gap:"sm",align:"stretch",wrap:"nowrap",children:[y.jsx(Se,{flex:"0 0 70px",style:{position:"relative",width:70,height:MNe(70*(c/s),0)},children:y.jsx(km,{data:{shape:o,width:s,height:c}})}),y.jsxs(Ho,{gap:4,flex:1,children:[y.jsx(Wr,{gap:4,flex:"0 0 auto",children:e.kinds.map(u=>y.jsx(Qs,{className:Je(nJe),onMouseEnter:()=>{i(u),l.highlightNotation(e,u)},onMouseLeave:()=>{i(null),l.highlightNotation(e)},opacity:pU(a)&&a!==u?.25:1,children:u},u))}),y.jsx(pt,{component:"div",fz:"sm",fw:500,lh:"1.25",style:{textWrap:"pretty"},children:r})]})]})})},cJe=e=>({id:e.view.id,notations:e.view.notation?.nodes??[]}),uJe=S.memo(()=>{const e=FC(s=>s.height),{id:r,notations:n}=Ma(cJe),[o,a]=UPe({key:"notation-webview-collapsed",defaultValue:!0}),i=n.length>0,l=Tm();return y.jsxs(Oa,{children:[!i&&y.jsx(dl.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:uR,children:y.jsx(no,{label:"View has no notations",color:"orange",...l,children:y.jsx(hi,{size:"lg",variant:"light",color:"orange",radius:"md",children:y.jsx(rte,{})})})},"empty"),i&&o&&y.jsx(dl.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:uR,children:y.jsx(no,{label:"Show notation",color:"dark",fz:"xs",...l,children:y.jsx(ir,{size:"lg",variant:"default",color:"gray",className:JQe,onClick:()=>a(!1),children:y.jsx(aJe,{stroke:1.5})})})},"collapsed"),i&&!o&&y.jsx(dl.div,{initial:{opacity:.75,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.25},className:Je("react-flow__panel",uR),style:{transformOrigin:"bottom right"},children:y.jsx(Lf,{radius:"sm",withBorder:!0,shadow:"lg",className:eJe,children:y.jsxs(up,{defaultValue:"first",radius:"xs",children:[y.jsxs(ty,{children:[y.jsx(ir,{size:"md",variant:"subtle",color:"gray",ml:2,style:{alignSelf:"center"},onClick:()=>a(!0),children:y.jsx(lJe,{stroke:2})}),y.jsx(Yf,{value:"first",fz:"xs",children:"Elements"}),y.jsx(Yf,{value:"second",fz:"xs",disabled:!0,children:"Relationships"})]}),y.jsx(ec,{value:"first",className:tJe,hidden:o,children:y.jsx(na,{viewportProps:{style:{maxHeight:`min(40vh, ${Math.max(e-60,50)}px)`}},children:y.jsx(Ho,{gap:0,children:n.map((s,c)=>y.jsx(sJe,{value:s},c))})})})]})})},r)]})}),ite=S.memo(()=>{const{enableControls:e,enableNotations:r,enableSearch:n,enableRelationshipDetails:o}=Er(),a=UEe(),i=tX(),l=Xje();return y.jsxs(vG,{onReset:a,children:[e&&y.jsx(eBe,{children:y.jsx(ate,{})}),i&&y.jsx(iKe,{overlaysActorRef:i}),r&&y.jsx(uJe,{}),n&&l&&y.jsx(YKe,{searchActorRef:l}),o&&y.jsx(eZe,{})]})});ite.displayName="DiagramUI";function Am(e){return function(){return e}}const lte=1e-12,dR=Math.PI,pR=2*dR,Rp=1e-6,dJe=pR-Rp;function ste(e){this._+=e[0];for(let r=1,n=e.length;r<n;++r)this._+=arguments[r]+e[r]}function pJe(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return ste;const n=10**r;return function(o){this._+=o[0];for(let a=1,i=o.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+o[a]}}class hJe{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?ste:pJe(r)}moveTo(r,n){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,n){this._append`L${this._x1=+r},${this._y1=+n}`}quadraticCurveTo(r,n,o,a){this._append`Q${+r},${+n},${this._x1=+o},${this._y1=+a}`}bezierCurveTo(r,n,o,a,i,l){this._append`C${+r},${+n},${+o},${+a},${this._x1=+i},${this._y1=+l}`}arcTo(r,n,o,a,i){if(r=+r,n=+n,o=+o,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let l=this._x1,s=this._y1,c=o-r,u=a-n,d=l-r,p=s-n,f=d*d+p*p;if(this._x1===null)this._append`M${this._x1=r},${this._y1=n}`;else if(f>Rp)if(!(Math.abs(p*c-u*d)>Rp)||!i)this._append`L${this._x1=r},${this._y1=n}`;else{let g=o-l,b=a-s,x=c*c+u*u,w=g*g+b*b,k=Math.sqrt(x),C=Math.sqrt(f),_=i*Math.tan((dR-Math.acos((x+f-w)/(2*k*C)))/2),T=_/C,R=_/k;Math.abs(T-1)>Rp&&this._append`L${r+T*d},${n+T*p}`,this._append`A${i},${i},0,0,${+(p*g>d*b)},${this._x1=r+R*c},${this._y1=n+R*u}`}}arc(r,n,o,a,i,l){if(r=+r,n=+n,o=+o,l=!!l,o<0)throw new Error(`negative radius: ${o}`);let s=o*Math.cos(a),c=o*Math.sin(a),u=r+s,d=n+c,p=1^l,f=l?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Rp||Math.abs(this._y1-d)>Rp)&&this._append`L${u},${d}`,o&&(f<0&&(f=f%pR+pR),f>dJe?this._append`A${o},${o},0,1,${p},${r-s},${n-c}A${o},${o},0,1,${p},${this._x1=u},${this._y1=d}`:f>Rp&&this._append`A${o},${o},0,${+(f>=dR)},${p},${this._x1=r+o*Math.cos(i)},${this._y1=n+o*Math.sin(i)}`)}rect(r,n,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function fJe(e){let r=3;return e.digits=function(n){if(!arguments.length)return r;if(n==null)r=null;else{const o=Math.floor(n);if(!(o>=0))throw new RangeError(`invalid digits: ${n}`);r=o}return e},()=>new hJe(r)}function mJe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cte(e){this._context=e}cte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function gJe(e){return new cte(e)}function yJe(e){return e[0]}function bJe(e){return e[1]}function vJe(e,r){var n=Am(!0),o=null,a=gJe,i=null,l=fJe(s);e=typeof e=="function"?e:e===void 0?yJe:Am(e),r=typeof r=="function"?r:r===void 0?bJe:Am(r);function s(c){var u,d=(c=mJe(c)).length,p,f=!1,g;for(o==null&&(i=a(g=l())),u=0;u<=d;++u)!(u<d&&n(p=c[u],u,c))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(p,u,c),+r(p,u,c));if(g)return i=null,g+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Am(+c),s):e},s.y=function(c){return arguments.length?(r=typeof c=="function"?c:Am(+c),s):r},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Am(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,o!=null&&(i=a(o)),s):a},s.context=function(c){return arguments.length?(c==null?o=i=null:i=a(o=c),s):o},s}function hR(e,r,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-r),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function fR(e,r){this._context=e,this._k=(1-r)/6}fR.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:hR(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2,this._x1=e,this._y1=r;break;case 2:this._point=3;default:hR(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new fR(o,r)}return n.tension=function(o){return e(+o)},n})(0);function mR(e,r){this._context=e,this._k=(1-r)/6}mR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,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:hR(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new mR(o,r)}return n.tension=function(o){return e(+o)},n})(0);function ute(e,r,n){var o=e._x1,a=e._y1,i=e._x2,l=e._y2;if(e._l01_a>lte){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>lte){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-r*e._l12_2a)/d,l=(l*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(o,a,i,l,e._x2,e._y2)}function dte(e,r){this._context=e,this._alpha=r}dte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:ute(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new dte(o,r):new fR(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function pte(e,r){this._context=e,this._alpha=r}pte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,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:ute(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};const xJe=(function e(r){function n(o){return r?new pte(o,r):new mR(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);class ia{constructor(r,n){this.x=r,this.y=n}static create(r){return new ia(r.x,r.y)}static add(r,n){return{x:r.x+n.x,y:r.y+n.y}}static sub(r,n){return{x:r.x-n.x,y:r.y-n.y}}static mul(r,n){return{x:r.x*n,y:r.y*n}}static dot(r,n){return r.x*n.x+r.y*n.y}static cross(r,n){return new ia(r.y*n.x-r.x*n.y,r.x*n.y-r.y*n.x)}static setLength(r,n){return Ap(r).setLength(n)}add(r){return new ia(this.x+r.x,this.y+r.y)}sub(r){return new ia(this.x-r.x,this.y-r.y)}mul(r){return new ia(this.x*r,this.y*r)}dot(r){return this.x*r.x+this.y*r.y}cross(r){return new ia(this.y*r.x-this.x*r.y,this.x*r.y-this.y*r.x)}abs(){return Math.sqrt(this.x*this.x+this.y*this.y)}setLength(r){return this.mul(r/this.abs())}}function Ap(e){return ia.create(e)}const wJe=".react-flow__edge.selected",kJe=me({overflow:"visible",position:"absolute",pointerEvents:"none",top:"0",left:"0",mixBlendMode:"normal"}),_Je=me({fill:"var(--likec4-palette-relation-stroke)",stroke:"var(--likec4-palette-relation-stroke)",fillOpacity:.75,strokeWidth:1,cursor:"grab",pointerEvents:"auto",visibility:"hidden",_hover:{fillOpacity:1,stroke:"mantine.colors.primary.filledHover",strokeWidth:10,transition:"stroke 100ms ease-out, stroke-width 100ms ease-out"},[`:where(${wJe}, [data-likec4-hovered='true']) &`]:{visibility:"visible",transition:"fill-opacity 150ms ease-out, stroke 150ms ease-out, stroke-width 150ms ease-out",transitionDelay:"50ms",fillOpacity:1,strokeWidth:5}}),EJe=me({cursor:"grabbing","& *":{cursor:"grabbing !important"},"& .react-flow__edge-interaction":{cursor:"grabbing !important"}});function SJe(e){const{width:r,height:n}=Qn(e),{x:o,y:a}=e.internals.positionAbsolute;return{x:o+r/2,y:a+n/2}}function i4(e,r,n=0){const o=SJe(e),{width:a,height:i}=Qn(e),l=new ia(r.x,r.y).sub(o),s=(n+(a||0)/2)/l.x,c=(n+(i||0)/2)/l.y,u=Math.min(Math.abs(s),Math.abs(c));return Ap(l).mul(u).add(o)}const CJe=vJe().curve(xJe).x(e=>e.x).y(e=>e.y),TJe=qT(e=>{const[r,n]=S.useState(!1),o=HC(),a=bYe(),i=Yt(),{enableNavigateTo:l,enableEdgeEditing:s}=Er(),{id:c,source:u,sourceX:d,sourceY:p,target:f,targetX:g,targetY:b,selected:x=!1,data:{id:w,points:k,hovered:C=!1,active:_=!1,labelBBox:T,labelXY:R,...A},style:D={}}=e,N=l?A.navigateTo:void 0,$=bt(PQ(u),`source node ${u} not found`),O=bt(PQ(f),`target node ${f} not found`),j=Ta(A.controlPoints)||!$y($.internals.positionAbsolute,$.data)||!$y(O.internals.positionAbsolute,O.data);let L=A.controlPoints??IQ(e.data),Y;if(j){const W={x:d,y:p},Q={x:g,y:b},J=6,ne=A.dir==="back"?[Q,i4(O,xf(L)??W,J),...L,i4($,ep(L)??Q,J),W]:[W,i4($,xf(L)??Q,J),...L,i4(O,ep(L)??W,J),Q];Y=bt(CJe(ne))}else Y=DYe(k);let M=T?.x??0,q=T?.y??0;const[z,H]=S.useState({x:R?.x??M,y:R?.y??q}),U=S.useRef(null);S.useEffect(()=>{const W=U.current;if(!W)return;const Q=W.getPointAtLength(W.getTotalLength()*.5),J={x:xi(Q.x),y:xi(Q.y)};H(ne=>$y(ne,J)?ne:J)},[Y]),FEe(()=>{!T||T.x===z.x&&T.y===z.y||i.updateEdgeData(c,{labelXY:{x:z.x,y:z.y}})},[z],50,300),(j||r)&&(M=z.x,q=z.y);const K=(W,Q,J)=>{const{addSelectedEdges:ne}=o.getState();ne([c]);const te=i.cancelSaveManualLayout();Q.stopPropagation();let ee=!1,pe={x:Q.clientX,y:Q.clientY};const Te=xe=>{const De={x:xe.clientX,y:xe.clientY};if(!$y(pe,De)){n(!0),ee||(i.send({type:"xyflow.edgeEditingStarted",edge:e.data}),ee=!0),pe=De;const{x:Ge,y:et}=a.screenToFlowPosition(pe,{snapToGrid:!1}),ft=L.slice();ft[W]={x:xi(Ge),y:xi(et)},i.updateEdgeData(c,{controlPoints:ft})}xe.stopPropagation()},ce=xe=>{J.removeEventListener("pointermove",Te,{capture:!0}),ee&&xe.stopPropagation(),(ee||te)&&i.scheduleSaveManualLayout(),n(!1)},de=xe=>{xe.stopPropagation(),xe.preventDefault()};J.addEventListener("pointermove",Te,{capture:!0}),J.addEventListener("pointerup",ce,{once:!0,capture:!0}),J.addEventListener("click",de,{capture:!0,once:!0})},V=(W,Q,J)=>{if(L.length<=1)return;const ne=te=>{const ee=L.slice();ee.splice(W,1),te.stopPropagation(),setTimeout(()=>{i.updateEdgeData(c,{controlPoints:ee}),i.scheduleSaveManualLayout()},10)};J.addEventListener("pointerup",ne,{once:!0,capture:!0}),Q.stopPropagation()},X=(W,Q)=>{const{domNode:J}=o.getState();if(!(!J||Q.pointerType!=="mouse"))switch(Q.button){case 0:K(W,Q,J);break;case 2:V(W,Q,J);break}},Z=W=>{const{domNode:Q}=o.getState();if(!Q||W.pointerType!=="mouse"||W.button!==2)return;const J=[new ia(d,p),...L.map(Ap)||[],new ia(g,b)];let ne={x:W.clientX,y:W.clientY};const te=Ap(a.screenToFlowPosition(ne,{snapToGrid:!1}));let ee=0,pe=1/0;for(let ce=0;ce<J.length-1;ce++){const de=J[ce],xe=J[ce+1],De=xe.sub(de),Ge=te.sub(de),et=te.sub(xe);if(De.dot(Ge)*De.dot(et)<0){const ft=Math.abs(De.cross(Ge).abs()/De.abs());ft<pe&&(pe=ft,ee=ce)}}const Te=L.slice()||[];Te.splice(ee,0,te),i.updateEdgeData(c,{controlPoints:Te}),i.scheduleSaveManualLayout(),W.stopPropagation()};let B=hl.Edge;return(C||_)&&(B=hl.Element+1),y.jsxs(y.Fragment,{children:[y.jsxs(Ly,{...e,className:Je(r&&EJe),children:[y.jsx(By,{edgeProps:e,svgPath:Y,ref:U,...s&&{onEdgePointerDown:Z}}),y.jsx(U2,{edgeProps:e,labelPosition:{x:M,y:q,translate:j?"translate(-50%, 0)":void 0},children:y.jsx(zy,{edgeProps:e,children:N&&y.jsx(q2,{onClick:W=>{W.stopPropagation(),i.navigateTo(N)}})})})]}),s&&L.length>0&&(x||C||r)&&y.jsx(Vq,{children:y.jsx(Ly,{component:"svg",className:kJe,...e,style:{...D,zIndex:B},children:y.jsx("g",{onContextMenu:W=>{W.preventDefault(),W.stopPropagation()},children:L.map((W,Q)=>y.jsx("circle",{onPointerDown:J=>X(Q,J),className:Je("nodrag nopan",_Je),cx:Math.round(W.x),cy:Math.round(W.y),r:3},"controlPoints"+w+"#"+Q))})})})]})}),l4=16;function RJe(e){const r=Yt(),{navigateTo:n}=e.data,o=e.source===e.target,a=e.sourceX>e.targetX,[i]=Cx({sourceX:e.sourceX,sourceY:e.sourceY,sourcePosition:e.sourcePosition,targetX:e.targetX,targetY:e.targetY,targetPosition:e.targetPosition,...o&&{offset:30,borderRadius:16}});let l=e.sourceX;switch(!0){case o:l=e.sourceX+24+l4;break;case a:l=e.sourceX-l4;break;default:l=e.sourceX+l4;break}return y.jsxs(Ly,{...e,children:[y.jsx(By,{edgeProps:e,svgPath:i}),y.jsx(U2,{edgeProps:e,labelPosition:{x:l,y:e.sourceY+(o?0:l4),translate:a?"translate(-100%, 0)":void 0},children:y.jsx(zy,{edgeProps:e,children:n&&y.jsx(q2,{onClick:s=>{s.stopPropagation(),r.navigateTo(n)}})})})]})}const hte=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=Er(),a=Yt(),{navigateTo:i,modelFqn:l}=r.data;let s=S.useMemo(()=>{const c=[];return i&&n&&c.push({key:"navigate",icon:y.jsx(vi,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(i,r.data.id)}}),o&&c.push({key:"relationships",icon:y.jsx(jy,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(l)}}),c},[n,o,a,l,i,r.data.id]);return e&&Ao(e,1)&&(s=[...s,...e]),y.jsx(Y2,{...r,buttons:s})},AJe=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=Er(),a=Yt(),{id:i,navigateTo:l,modelFqn:s}=r.data;let c=S.useMemo(()=>{const u=[];return l&&n&&u.push({key:"navigate",icon:y.jsx(vi,{}),onClick:d=>{d.stopPropagation(),a.navigateTo(l,i)}}),o&&s&&u.push({key:"relationships",icon:y.jsx(jy,{}),onClick:d=>{d.stopPropagation(),a.openRelationshipsBrowser(s)}}),u},[n,o,a,s,l,i]);return e&&Ao(e,1)&&(c=[...c,...e]),y.jsx(Y2,{...r,buttons:c})};function NJe({data:{hovered:e=!1},icon:r,onClick:n}){const o=l9(e,e?130:0)[0]&&e;return y.jsx(nn,{initial:!1,animate:{scale:o?1.2:1,x:o?-1:0,y:o?-1:0},whileHover:{scale:1.4,x:-3,y:-1},className:"likec4-compound-navigation compound-action",whileTap:{scale:1},onClick:pn,children:y.jsx(ir,{className:Je("nodrag nopan",iee({delay:e&&!o}),R2({variant:"transparent"})),onClick:n,onDoubleClick:pn,children:r??y.jsx(vi,{stroke:2})})})}const fte=e=>{const{enableNavigateTo:r}=Er(),n=Yt(),{navigateTo:o}=e.data;return o&&r?y.jsx(NJe,{onClick:a=>{a.stopPropagation(),n.navigateTo(o,e.id)},...e}):null},mte=["primary","secondary","muted"],gte=no.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4,withinPortal:!1});function s4(e,r){const{onChange:n}=dc(),o=Yt(),[a,i]=S.useState(null),l=ot(c=>{if(c===null){nt(a,"originalColor is null"),i(null),o.updateNodeData(r.data.id,{color:a});return}i(u=>u??r.data.color),o.updateNodeData(r.data.id,{color:c})}),s=ot(c=>{n?.({change:{op:"change-element-style",style:c,targets:[e]}});const{shape:u,color:d,...p}=c;o.updateNodeData(r.data.id,{...u&&{shape:u},...d&&{color:d},style:p})});return{elementColor:a??r.data.color,onColorPreview:l,onChange:s}}function c4({fqn:e}){const r=Yt();return y.jsx(gte,{label:"Browse relationships",children:y.jsx(ir,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),r.openRelationshipsBrowser(e)},children:y.jsx(jy,{stroke:2,style:{width:"72%",height:"72%"}})})})}function u4(e){const{onOpenSource:r}=dc();return r?y.jsx(gte,{label:"Open source",children:y.jsx(ir,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),e.elementId?r?.({element:e.elementId}):e.deploymentId&&r?.({deployment:e.deploymentId})},children:y.jsx(xm,{stroke:1.8,style:{width:"70%"}})})}):null}function yte(){const e=S.useContext(ny);e||console.error("No LikeC4ModelContext found");const r=e?.$styles??II.DEFAULT,[n,o]=S.useState(r);return S.useEffect(()=>{o(a=>a.equals(r)?a:r)},[r]),n}function d4({elementColor:e,elementOpacity:r,onColorPreview:n,isOpacityEditable:o=!1,onChange:a,...i}){const{theme:l}=yte();return y.jsxs(br,{clickOutsideEvents:["pointerdown","mousedown","click"],position:"right-end",offset:2,withinPortal:!1,...i,children:[y.jsx(Eu,{children:y.jsx(ro,{variant:"subtle",color:"gray",size:"compact-xs",px:3,children:y.jsx(X0,{color:l.colors[e].elements.fill,size:14,withShadow:!0,style:{color:"#fff",cursor:"pointer"}})})}),y.jsxs(Ks,{p:"xs",children:[y.jsx(DJe,{theme:l,elementColor:e,onColorPreview:n,onChange:s=>a({color:s})}),o&&y.jsxs(y.Fragment,{children:[y.jsx(I7,{h:"xs"}),y.jsx(qf,{label:"opacity",labelPosition:"left"}),y.jsx(I7,{h:"xs"}),y.jsx(PJe,{elementOpacity:r,onOpacityChange:s=>{a({opacity:s})}})]})]})]})}function DJe({theme:e,elementColor:r,onColorPreview:n,onChange:o}){const a=l=>s=>{s.stopPropagation(),n(null),r!==l&&o(l)},i=ZE(e.colors).filter(l=>!mte.includes(l));return y.jsx(Ho,{gap:2,onMouseLeave:()=>n(null),children:y.jsxs(cp,{openDelay:1e3,closeDelay:300,children:[y.jsx(Zs,{maw:120,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:mte.map(l=>y.jsx(no,{label:l,fz:"xs",color:"dark",offset:2,withinPortal:!1,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(X0,{color:e.colors[l].elements.fill,size:18,withShadow:!0,onMouseEnter:()=>n(l),onClick:a(l),style:{color:"#fff",cursor:"pointer"},children:r===l&&y.jsx(hW,{style:{width:Ae(10),height:Ae(10)}})})},l))}),y.jsx(Zs,{mt:"sm",maw:110,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:i.map(l=>y.jsx(no,{label:l,fz:"xs",color:"dark",offset:2,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(X0,{color:e.colors[l].elements.fill,size:18,onMouseEnter:()=>n(l),onClick:a(l),style:{color:"#fff",cursor:"pointer"},children:r===l&&y.jsx(hW,{style:{width:Ae(10),height:Ae(10)}})})},l))})]})})}function PJe({elementOpacity:e=100,onOpacityChange:r}){const[n,o]=S.useState(e);return Qj(()=>{o(e)},[e]),y.jsx(O7,{size:"sm",color:"dark",value:n,onChange:o,onChangeEnd:r})}const $Je=me({color:"mantine.colors.dimmed",fontSize:"10px",fontWeight:600,maxWidth:"220px",cursor:"default",userSelect:"all",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),MJe=()=>Ma(e=>e.xynodes.filter(r=>r.selected).length);function p4({title:e,children:r,nodeProps:n,...o}){const a=MJe(),{selected:i=!1,dragging:l=!1,data:{hovered:s=!1}}=n,c=s&&a===0||i&&a===1;let u=150;c?i?u=100:u=1e3:a>0&&(u=50);const[d]=l9(c,u);return d?y.jsx(Kq,{isVisible:!l,offset:4,...o,children:y.jsx(Lf,{className:Je("nodrag","nopan"),px:5,pb:8,pt:4,radius:"sm",shadow:"xl",onDoubleClickCapture:pn,onPointerDown:pn,onClick:pn,onDoubleClick:pn,withBorder:!0,children:y.jsxs(Ho,{gap:"6px",children:[y.jsx(Se,{px:"4px",children:y.jsx(pt,{className:$Je,children:e})}),y.jsx(Wr,{gap:4,children:r})]})})}):null}function OJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=Er(),{data:{style:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:l,onChange:s}=s4(a,e),c=o?.opacity??100;return y.jsxs(p4,{nodeProps:e,title:a,align:"start",children:[y.jsx(d4,{elementColor:i,onColorPreview:l,isOpacityEditable:!0,elementOpacity:c,onChange:s,position:"left-start"}),y.jsx(bte,{elementBorderStyle:o?.border??(c<99?"dashed":"none"),onChange:s}),r&&y.jsx(u4,{elementId:a}),n&&y.jsx(c4,{fqn:a})]})}function IJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=Er(),{data:{deploymentFqn:o,style:a,modelFqn:i}}=e,{elementColor:l,onColorPreview:s,onChange:c}=s4(o,e);return y.jsxs(p4,{nodeProps:e,title:o,align:"start",children:[y.jsx(d4,{elementColor:l,onColorPreview:s,isOpacityEditable:!0,elementOpacity:a?.opacity,onChange:c,position:"left-start"}),y.jsx(bte,{elementBorderStyle:a?.border,onChange:c}),r&&y.jsx(u4,{deploymentId:o}),n&&i&&y.jsx(c4,{fqn:i})]})}function bte({elementBorderStyle:e="dashed",onChange:r}){const[n,o]=S.useState(e);return S.useEffect(()=>{o(e)},[e]),y.jsx(Se,{children:y.jsx(J0,{size:"xs",fullWidth:!0,withItemsBorders:!1,value:n,onChange:a=>{const i=a;o(i),r({border:i})},styles:{label:{paddingTop:"0.5",paddingBottom:"0.5"}},data:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"None",value:"none"}]})})}function zJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=Er(),{data:{shape:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:l,onChange:s}=s4(a,e);return y.jsxs(p4,{nodeProps:e,title:a,align:"start",children:[y.jsx(vte,{elementShape:o,onChange:s}),y.jsx(d4,{elementColor:i,onColorPreview:l,onChange:s,position:"right-end"}),r&&y.jsx(u4,{elementId:a}),n&&y.jsx(c4,{fqn:a})]})}function LJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=Er(),{data:{shape:o,deploymentFqn:a,modelFqn:i}}=e,{elementColor:l,onColorPreview:s,onChange:c}=s4(a,e);return y.jsxs(p4,{nodeProps:e,title:a,align:"start",children:[y.jsx(vte,{elementShape:o,onChange:c}),y.jsx(d4,{elementColor:l,onColorPreview:s,onChange:c,position:"right-end"}),r&&y.jsx(u4,{deploymentId:a}),n&&i&&y.jsx(c4,{fqn:i})]})}function vte({elementShape:e,onChange:r}){return y.jsxs(go,{openDelay:300,closeDelay:450,floatingStrategy:"fixed",closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,closeOnItemClick:!1,position:"top-start",offset:2,styles:{item:{padding:"calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-xs)"}},withinPortal:!1,children:[y.jsx(Vw,{children:y.jsx(ro,{variant:"light",color:"gray",size:"compact-xs",rightSection:y.jsx(HT,{size:12}),children:e})}),y.jsx(Z0,{onDoubleClick:pn,onClick:pn,children:lbe.map(n=>y.jsx(Q0,{fz:12,fw:500,value:n,rightSection:e===n?y.jsx(LQ,{size:12}):void 0,onClick:o=>{o.stopPropagation(),r({shape:n})},children:n},n))})]})}const h4={top:"50%",left:"50%",right:"unset",bottom:"unset",visibility:"hidden",width:5,height:5,transform:"translate(-50%, -50%)"},Wy=()=>y.jsxs(y.Fragment,{children:[y.jsx(fo,{type:"target",position:tt.Top,style:h4}),y.jsx(fo,{type:"target",position:tt.Left,style:h4}),y.jsx(fo,{type:"source",position:tt.Right,style:h4}),y.jsx(fo,{type:"source",position:tt.Bottom,style:h4})]});function gR(e){const{enableElementDetails:r}=Er(),n=Yt(),o=e.data.modelFqn;return!r||!o?null:y.jsx(WT,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function xte(e){const{enableElementDetails:r}=Er(),n=Yt(),o=e.data.modelFqn;return!r||!o?null:y.jsx(lee,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function BJe(e){const{enableElementTags:r,enableReadOnly:n}=Er();return y.jsxs(wm,{nodeProps:e,children:[y.jsx(km,{...e}),y.jsx(yl,{...e}),r&&y.jsx(My,{...e}),y.jsx(hte,{...e}),y.jsx(gR,{...e}),!n&&y.jsx(zJe,{...e}),y.jsx(Wy,{})]})}function jJe(e){const{enableElementTags:r,enableReadOnly:n}=Er();return y.jsxs(wm,{nodeProps:e,children:[y.jsx(km,{...e}),y.jsx(yl,{...e}),r&&y.jsx(My,{...e}),y.jsx(AJe,{...e}),y.jsx(gR,{...e}),!n&&y.jsx(LJe,{...e}),y.jsx(Wy,{})]})}function FJe(e){const{enableElementDetails:r,enableReadOnly:n}=Er();return y.jsxs(Fy,{nodeProps:e,children:[y.jsx(Hy,{...e}),y.jsx(fte,{...e}),r&&y.jsx(xte,{...e}),!n&&y.jsx(OJe,{...e}),y.jsx(Wy,{})]})}function HJe(e){const{enableElementDetails:r,enableReadOnly:n}=Er();return y.jsxs(Fy,{nodeProps:e,children:[y.jsx(Hy,{...e}),y.jsx(fte,{...e}),r&&y.jsx(xte,{...e}),!n&&y.jsx(IJe,{...e}),y.jsx(Wy,{})]})}function qJe(e){return y.jsxs(Fy,{nodeProps:e,children:[y.jsx(Hy,{...e}),y.jsx(Wy,{})]})}const UJe={left:tt.Left,right:tt.Right,top:tt.Top,bottom:tt.Bottom},VJe=({data:e,port:r})=>y.jsxs(y.Fragment,{children:[y.jsx(Gr,{"data-likec4-color":e.color,className:me({position:"absolute",backgroundColor:"var(--likec4-palette-fill)",rounded:"xs",width:{base:"5px",_whenHovered:"7px",_whenSelected:"7px"},transition:"fast",translateX:"-1/2",translateY:"-1/2",translate:"auto"}),style:{top:r.cy,left:r.cx,height:r.height}}),y.jsx(fo,{id:r.id,type:r.type,position:UJe[r.position],style:{top:r.cy-3,left:r.cx-3,width:6,height:6,right:"unset",bottom:"unset",visibility:"hidden",transform:r.position==="left"?"translate(-150%, 0)":"translate(100%, 0)"}})]}),YJe=e=>Ta(e.modelFqn);function WJe(e){const r=e.data,{positionAbsoluteY:n,data:{viewHeight:o,hovered:a=!1,ports:i}}=e;return y.jsxs(y.Fragment,{children:[y.jsx(Gr,{"data-likec4-color":"gray",className:me({position:"absolute",rounded:"xs",top:"1",pointerEvents:"none",transition:"fast",translateX:"-1/2",translate:"auto"}),style:{backgroundColor:"var(--likec4-palette-stroke)",opacity:a?.6:.4,left:"50%",width:a?3:2,height:o-n,zIndex:-1,pointerEvents:"none"}}),y.jsxs(wm,{nodeProps:e,children:[y.jsx(km,{...e}),y.jsx(yl,{...e}),YJe(r)&&y.jsxs(y.Fragment,{children:[y.jsx(hte,{...e,data:r}),y.jsx(gR,{...e,data:r})]})]}),i.map(l=>y.jsx(VJe,{port:l,data:e.data},l.id))]})}function GJe(e){return y.jsx(Gr,{"data-likec4-color":e.data.color,css:{width:"100%",height:"100%",border:"default",rounded:"sm",borderWidth:1,"--_color":{base:"var(--likec4-palette-stroke)",_dark:"[color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))]"},borderColor:"[var(--_color)/30]",backgroundColor:"var(--likec4-palette-fill)/15",pointerEvents:"none",paddingLeft:"2",paddingTop:"0.5",fontSize:"xs",fontWeight:"bold",letterSpacing:".75px",color:"[var(--_color)/75]"},children:"PARALLEL"})}const Np={ElementNode:BJe,DeploymentNode:jJe,CompoundElementNode:FJe,CompoundDeploymentNode:HJe,ViewGroupNode:qJe,SequenceActorNode:WJe,SequenceParallelArea:GJe},wte={RelationshipEdge:TJe,SequenceStepEdge:RJe};class Nm{static LeftPadding=40;static RightPadding=40;static TopPadding=55;static BottomPadding=40;id;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;get positionAbsolute(){return{x:this.minX,y:this.minY}}set positionAbsolute(r){const n=Math.round(r.x),o=Math.round(r.y);this.maxX+=n-this.minX,this.maxY+=o-this.minY,this.minX=n,this.minY=o}get dimensions(){return{width:this.maxX-this.minX,height:this.maxY-this.minY}}get position(){const r=this.positionAbsolute;if(!this.parent)return r;const n=this.parent.positionAbsolute;return{x:r.x-n.x,y:r.y-n.y}}constructor(r,n=null){this.id=r.id,this.positionAbsolute=n?{x:r.position.x+n.minX,y:r.position.y+n.minY}:r.position;const{width:o,height:a}=Qn(r);this.maxX=this.minX+Math.ceil(o),this.maxY=this.minY+Math.ceil(a),n&&n.children.push(this)}}class yR extends Nm{constructor(r,n=null){super(r,n),this.parent=n}children=[]}class XJe extends Nm{constructor(r,n=null){super(r,n),this.parent=n}}function kte(e,r){const{parentLookup:n,nodeLookup:o}=e.getState(),a=new Map,i=g=>{const b=[];let x=o.get(g)?.parentId,w;for(;x&&(w=o.get(x));)b.push(w.id),x=w.parentId;return b},l=new Set(r.flatMap(i)),s=[...o.values()].flatMap(g=>g.parentId?[]:{xynode:g,parent:null});for(;s.length>0;){const{xynode:g,parent:b}=s.shift();if(!r.includes(g.id)&&g.type!=="element"&&g.type!=="deployment"&&l.has(g.id)){const x=new yR(g,b);a.set(g.id,x),n.get(g.id)?.forEach(w=>{s.push({xynode:w,parent:x})})}else a.set(g.id,new XJe(g,b))}const c=[...a.values()];u(c);function u(g){for(const b of g){if(!(b instanceof yR))continue;u(b.children);const x={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const w of b.children)x.minX=Math.min(x.minX,w.minX),x.minY=Math.min(x.minY,w.minY),x.maxX=Math.max(x.maxX,w.maxX),x.maxY=Math.max(x.maxY,w.maxY);b.minX=x.minX-Nm.LeftPadding,b.minY=x.minY-Nm.TopPadding,b.maxX=x.maxX+Nm.RightPadding,b.maxY=x.maxY+Nm.BottomPadding}}function d(){u(c),e.getState().triggerNodeChanges(c.reduce((g,b)=>(g.push({id:b.id,type:"position",dragging:!1,position:b.position,positionAbsolute:b.positionAbsolute}),b instanceof yR&&g.push({id:b.id,type:"dimensions",setAttributes:!0,dimensions:b.dimensions}),g),[]))}let p=null;function f(){c.length!==0&&(p??=requestAnimationFrame(()=>{p=null;const{nodeLookup:g}=e.getState();for(const b of r){const x=bt(a.get(b)),w=bt(g.get(b));x.positionAbsolute=w.internals.positionAbsolute}d()}))}return{rects:a,updateXYFlowNodes:d,onMove:f}}function KJe(){const e=HC(),r=Yt(),n=S.useRef(void 0);return S.useMemo(()=>{let o=!1;const a={x:0,y:0};let i=!1;return{onNodeDragStart:(l,s)=>{o=r.cancelSaveManualLayout();const{nodeLookup:c}=e.getState(),u=kn(Array.from(c.values()),vf(d=>d.draggable!==!1&&(d.dragging===!0||d.id===s.id||d.selected===!0)));Ao(u,1)&&(n.current=kte(e,No(u,d=>d.id))),a.x=l.clientX,a.y=l.clientY,i=!1},onNodeDrag:l=>{i=Math.abs(l.clientX-a.x)>4||Math.abs(l.clientY-a.y)>4,n.current?.onMove()},onNodeDragStop:l=>{i=Math.abs(l.clientX-a.x)>4||Math.abs(l.clientY-a.y)>4,(o||i)&&r.scheduleSaveManualLayout(),n.current=void 0}}},[e,r])}const ZJe={relationship:wte.RelationshipEdge,"seq-step":wte.SequenceStepEdge},Iu={element:uc(Np.ElementNode),deployment:uc(Np.DeploymentNode),"compound-element":uc(Np.CompoundElementNode),"compound-deployment":uc(Np.CompoundDeploymentNode),"view-group":uc(Np.ViewGroupNode),"seq-actor":uc(Np.SequenceActorNode),"seq-parallel":uc(Np.SequenceParallelArea)};function QJe(e){return!e||gu(e)?Iu:{element:e.element??Iu.element,deployment:e.deployment??Iu.deployment,"compound-element":e.compoundElement??Iu["compound-element"],"compound-deployment":e.compoundDeployment??Iu["compound-deployment"],"view-group":e.viewGroup??Iu["view-group"],"seq-actor":e.seqActor??Iu["seq-actor"],"seq-parallel":e.seqParallel??Iu["seq-parallel"]}}const JJe=e=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges,pannable:e.pannable,zoomable:e.zoomable,fitViewPadding:e.fitViewPadding,enableFitView:e.features.enableFitView,enableReadOnly:e.features.enableReadOnly||e.toggledFeatures.enableReadOnly||e.dynamicViewVariant==="sequence"&&e.view._type==="dynamic",...!e.features.enableFitView&&{viewport:{x:-Math.min(e.view.bounds.x,0),y:-Math.min(e.view.bounds.y,0),zoom:1}}}),eet=(e,r)=>e.initialized===r.initialized&&e.pannable===r.pannable&&e.zoomable===r.zoomable&&e.enableFitView===r.enableFitView&&e.enableReadOnly===r.enableReadOnly&&ut(e.fitViewPadding,r.fitViewPadding)&&Jn(e.nodes,r.nodes)&&Jn(e.edges,r.edges)&&Jn(e.viewport??null,r.viewport??null);function tet({background:e="dots",nodesDraggable:r=!1,nodesSelectable:n=!1,reactFlowProps:o={},children:a,renderNodes:i}){const l=Yt(),{initialized:s,nodes:c,edges:u,enableReadOnly:d,enableFitView:p,...f}=Ma(JJe,eet),{onNodeContextMenu:g,onCanvasContextMenu:b,onEdgeContextMenu:x,onNodeClick:w,onEdgeClick:k,onCanvasClick:C,onCanvasDblClick:_}=dc(),T=!d,R=KLe(),A=KJe(),D=QLe(),N=tV(()=>{D.set(!0)},R?120:400),$=Tf(()=>{N.clear(),D.get()&&D.set(!1)},R?350:200),O=ot(M=>{M&&(D.get()||N.start(),$())}),j=ot((M,q)=>{N.clear(),l.send({type:"xyflow.viewportMoved",viewport:q,manually:!!M})}),L=ot(()=>{l.send({type:"xyflow.resized"})}),Y=Jj(()=>QJe(i),[i],VQ);return O2(()=>{console.warn("renderNodes changed - this might degrade performance")},[Y]),y.jsx(XC,{nodes:c,edges:u,className:Je(s?"initialized":"not-initialized"),nodeTypes:Y,edgeTypes:ZJe,onNodesChange:ot(M=>{l.send({type:"xyflow.applyNodeChanges",changes:M})}),onEdgesChange:ot(M=>{l.send({type:"xyflow.applyEdgeChanges",changes:M})}),background:s?e:"transparent",fitView:!1,onNodeClick:ot((M,q)=>{M.stopPropagation(),l.send({type:"xyflow.nodeClick",node:q}),w?.(l.findDiagramNode(q.id),M)}),onEdgeClick:ot((M,q)=>{M.stopPropagation(),l.send({type:"xyflow.edgeClick",edge:q}),k?.(l.findDiagramEdge(q.id),M)}),onPaneClick:ot(M=>{M.stopPropagation(),l.send({type:"xyflow.paneClick"}),C?.(M)}),onDoubleClick:ot(M=>{M.stopPropagation(),M.preventDefault(),l.send({type:"xyflow.paneDblClick"}),_?.(M)}),onNodeMouseEnter:ot((M,q)=>{M.stopPropagation(),q.data.hovered||l.send({type:"xyflow.nodeMouseEnter",node:q})}),onNodeMouseLeave:ot((M,q)=>{M.stopPropagation(),q.data.hovered&&l.send({type:"xyflow.nodeMouseLeave",node:q})}),onEdgeMouseEnter:ot((M,q)=>{M.stopPropagation(),q.data.hovered||l.send({type:"xyflow.edgeMouseEnter",edge:q,event:M})}),onEdgeMouseLeave:ot((M,q)=>{M.stopPropagation(),q.data.hovered&&l.send({type:"xyflow.edgeMouseLeave",edge:q,event:M})}),onMove:O,onMoveEnd:j,onInit:ot(M=>{l.send({type:"xyflow.init",instance:M})}),onNodeContextMenu:ot((M,q)=>{const z=bt(l.findDiagramNode(q.id),`diagramNode ${q.id} not found`);g?.(z,M)}),onEdgeContextMenu:ot((M,q)=>{const z=bt(l.findDiagramEdge(q.id),`diagramEdge ${q.id} not found`);x?.(z,M)}),onPaneContextMenu:ot(M=>{b?.(M)}),...p&&{onViewportResize:L},nodesDraggable:T&&r,nodesSelectable:n,edgesFocusable:!1,...T&&r&&A,...f,...o,children:a})}function ret(e){const{view:r,nodesSelectable:n}=e,o=[],a=[],i=new Map,l=D_.from(r.nodes.reduce((p,f)=>(i.set(f.id,f),f.parent||p.push({node:f,parent:null}),p),[]));let s=p=>!0;if(e.where)try{const p=jd(e.where);s=f=>p({...vU(f,["tags","kind"]),..."source"in f?{source:u(f.source)}:f,..."target"in f?{target:u(f.target)}:f})}catch(p){console.error("Error in where filter:",p)}const c="",u=p=>bt(i.get(p),`Node not found: ${p}`);let d;for(;d=l.dequeue();){const{node:p,parent:f}=d,g=Ao(p.children,1)||p.kind==Nd;if(g)for(const R of p.children)l.enqueue({node:u(R),parent:p});const b={x:p.x,y:p.y};f&&(b.x-=f.x,b.y-=f.y);const x={id:c+p.id,selectable:n&&p.kind!==Nd,focusable:n&&p.kind!==Nd,deletable:!1,position:b,zIndex:g?hl.Compound:hl.Element,style:{width:p.width,height:p.height},initialWidth:p.width,initialHeight:p.height,hidden:p.kind!==Nd&&!s(p),...f&&{parentId:c+f.id}},w={viewId:r.id,id:p.id,title:p.title,color:p.color,shape:p.shape,style:p.style,depth:p.depth??0,icon:p.icon??"none",tags:p.tags??null,x:p.x,y:p.y},k={viewId:r.id,id:p.id,title:p.title,technology:p.technology??null,description:Zt.from(p.description),height:p.height,width:p.width,level:p.level,color:p.color,shape:p.shape,style:p.style,icon:p.icon??null,tags:p.tags,x:p.x,y:p.y,isMultiple:p.style?.multiple??!1};if(p.kind===Nd){o.push({...x,type:"view-group",data:{isViewGroup:!0,...w},dragHandle:".likec4-compound-title"});continue}const C=p.modelRef??null,_=p.deploymentRef??null;if(!C&&!_)throw console.error("Invalid node",p),new Error("Element should have either modelRef or deploymentRef");const T={navigateTo:p.navigateTo??null};switch(!0){case(g&&!!_):{o.push({...x,type:"compound-deployment",data:{...w,...T,deploymentFqn:_,modelFqn:C},dragHandle:".likec4-compound-title"});break}case g:{nt(!!C,"ModelRef expected"),o.push({...x,type:"compound-element",data:{...w,...T,modelFqn:C},dragHandle:".likec4-compound-title"});break}case!!_:{o.push({...x,type:"deployment",data:{...k,...T,deploymentFqn:_,modelFqn:C}});break}default:nt(!!C,"ModelRef expected"),o.push({...x,type:"element",data:{...k,...T,modelFqn:C}})}}for(const p of r.edges){const f=p.source,g=p.target,b=c+p.id;if(!Ao(p.points,2)){console.error("edge should have at least 2 points",p);continue}a.push({id:b,type:"relationship",source:c+f,target:c+g,zIndex:hl.Edge,selectable:n,hidden:!s(p),deletable:!1,data:{id:p.id,label:p.label,technology:p.technology,notes:Zt.from(p.notes),navigateTo:p.navigateTo,controlPoints:p.controlPoints??null,labelBBox:p.labelBBox??null,labelXY:p.labelBBox?{x:p.labelBBox.x,y:p.labelBBox.y}:null,points:p.points,color:p.color??"gray",line:p.line??"dashed",dir:p.dir??"forward",head:p.head??"normal",tail:p.tail??"none",astPath:p.astPath},interactionWidth:20})}return{bounds:r.bounds,xynodes:o,xyedges:a}}const _te={parallel:1,actor:10},f4={default:"gray",active:"amber"};function net(e){const{actors:r,steps:n,compounds:o,parallelAreas:a,bounds:i}=e.sequenceLayout,l=[],s=[],c=u=>bt(e.nodes.find(d=>d.id===u));for(const u of o)l.push(oet(u,c(u.origin),e));for(const u of a)l.push(aet(u,e));for(const u of r)l.push(iet(u,c(u.id),i,e));for(const u of n){const d=e.edges.find(p=>p.id===u.id);if(!d)throw new Error(`Edge ${u.id} not found`);s.push(set(u,d))}return{bounds:i,xynodes:l,xyedges:s}}function oet({id:e,x:r,y:n,width:o,height:a,depth:i},l,s){return{id:e,type:"view-group",data:{id:l.id,title:l.title,color:l.color??"gray",shape:l.shape,style:l.style,tags:l.tags,x:r,y:n,viewId:s.id,depth:i,isViewGroup:!0},position:{x:r,y:n},draggable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function aet({parallelPrefix:e,x:r,y:n,width:o,height:a},i){return{id:`seq-parallel-${e}`,type:"seq-parallel",data:{id:`seq-parallel-${e}`,title:"PARALLEL",technology:null,color:f4.default,shape:"rectangle",style:{},tags:[],x:r,y:n,level:0,icon:null,width:o,height:a,description:Zt.EMPTY,viewId:i.id,parallelPrefix:e},zIndex:_te.parallel,position:{x:r,y:n},draggable:!1,deletable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function iet({id:e,x:r,y:n,width:o,height:a,ports:i},l,s,c){return{id:e,type:"seq-actor",data:{id:l.id,x:r,y:n,level:0,icon:l.icon??null,isMultiple:l.style.multiple??!1,title:l.title,width:o,height:a,color:l.color,navigateTo:l.navigateTo??null,shape:l.shape,style:l.style,tags:l.tags,modelFqn:l.modelRef??null,technology:l.technology??null,description:Zt.from(l.description),viewHeight:s.height,viewId:c.id,ports:i},deletable:!1,selectable:!0,zIndex:_te.actor,position:{x:r,y:n},width:o,initialWidth:o,height:a,initialHeight:a}}function set({id:e,labelBBox:r,sourceHandle:n,targetHandle:o},a){return{id:e,type:"seq-step",data:{id:e,label:a.label,technology:a.technology,notes:Zt.from(a.notes),navigateTo:a.navigateTo,controlPoints:null,labelBBox:{x:0,y:0,width:r?.width??a.labelBBox?.width??32,height:r?.height??a.labelBBox?.height??32},labelXY:null,points:a.points,color:a.color,line:a.line,dir:"forward",head:a.head??"normal",tail:a.tail??"none",astPath:a.astPath},selectable:!0,focusable:!1,zIndex:20,interactionWidth:40,source:a.source,sourceHandle:n,target:a.target,targetHandle:o}}function cet({dynamicViewVariant:e,...r}){const n=r.view,o=n._type==="dynamic",{bounds:a,xynodes:i,xyedges:l}=o&&e==="sequence"?net(n):ret(r);return o&&n.variant!==e?{view:{...n,bounds:a,variant:e},xynodes:i,xyedges:l}:{view:a===n.bounds?n:{...n,bounds:a},xynodes:i,xyedges:l}}function Ete(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);return o&&ut(o.type,n.type)?ut(o.hidden??!1,n.hidden??!1)&&ut(o.source,n.source)&&ut(o.sourceHandle??null,n.sourceHandle??null)&&ut(o.target,n.target)&&ut(o.targetHandle??null,n.targetHandle??null)&&ut(o.zIndex??0,n.zIndex??0)&&ut(o.data,n.data)?o:{...tp(o,["hidden","zIndex"]),...n,data:n.data}:n})}function Ste(e,r){return Fx(r)?Ete(e,r):(r=e,n=>Ete(n,r))}function Cte(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);if(o&&ut(o.type,n.type)){const{width:a,height:i}=Qn(o);return ut(a,n.initialWidth)&&ut(i,n.initialHeight)&&ut(o.parentId??null,n.parentId??null)&&ut(o.hidden??!1,n.hidden??!1)&&ut(o.zIndex??0,n.zIndex??0)&&ut(o.position,n.position)&&ut(o.data,n.data)?o:{...tp(o,["measured","parentId","hidden","zIndex"]),...n,width:n.initialWidth,height:n.initialHeight,data:n.data}}return n})}function bR(e,r){return Fx(r)?Cte(e,r):(r=e,n=>Cte(n,r))}const vR={top:"40px",bottom:"22px",left:"22px",right:"22px"};function Tte(e){const r=[],n=[],o=new Map,a=D_.from(e.nodes.reduce((s,c)=>(o.set(c.id,c),c.parent||s.push({node:c,parent:null}),s),[])),i=s=>bt(o.get(s),`Node not found: ${s}`);let l;for(;l=a.dequeue();){const{node:s,parent:c}=l,u=Ao(s.children,1)||s.kind==Nd;if(u)for(const x of s.children)a.enqueue({node:i(x),parent:s});const d={x:s.x,y:s.y};c&&(d.x-=c.x,d.y-=c.y);const p=s.id,f={id:p,draggable:!1,selectable:!0,focusable:!0,position:d,zIndex:u?hl.Compound:hl.Element,style:{width:s.width,height:s.height},initialWidth:s.width,initialHeight:s.height,...c&&{parentId:c.id}},g=s.modelRef??null,b={navigateTo:s.navigateTo??null};switch(!0){case s.kind===F2.Empty:{r.push({...f,type:"empty",data:{column:s.column}});break}case(u&&!!g):{r.push({...f,type:"compound",data:{id:p,column:s.column,title:s.title,color:s.color,shape:s.shape,style:s.style,depth:s.depth??0,icon:s.icon??"none",ports:s.ports,existsInCurrentView:s.existsInCurrentView,fqn:g,...b}});break}default:nt(g,"Element should have either modelRef or deploymentRef"),r.push({...f,type:"element",data:{id:p,column:s.column,fqn:g,title:s.title,technology:s.technology,description:s.description,height:s.height,width:s.width,color:s.color,shape:s.shape,icon:s.icon??"none",ports:s.ports,style:s.style,existsInCurrentView:s.existsInCurrentView,tags:s.tags,...b}})}}for(const s of e.edges){const c=s.source,u=s.target,d=s.id;if(!Ao(s.points,2)){console.error("edge should have at least 2 points",s);continue}if(!Ao(s.relations,1)){console.error("edge should have at least 1 relation",s);continue}n.push({id:d,type:"relationship",source:c,target:u,sourceHandle:s.sourceHandle,targetHandle:s.targetHandle,data:{sourceFqn:s.sourceFqn,targetFqn:s.targetFqn,relations:s.relations,color:s.color??"gray",label:s.label,navigateTo:s.navigateTo??null,line:s.line??"dashed",existsInCurrentView:s.existsInCurrentView},interactionWidth:20})}return{xynodes:r,xyedges:n}}const Rte=e=>e.find(r=>r.data.column==="subjects"&&hU(r.parentId)),uet=_je(async({input:e,self:r,signal:n})=>{const{subjectId:o,navigateFromNode:a,xyflow:i,xystore:l,update:s}=e;let{nodes:c,width:u,height:d}=l.getState();const p=Tte(s),f=()=>{const{nodes:N,edges:$}=l.getState();return{xynodes:bR(N,p.xynodes),xyedges:Ste($,p.xyedges)}},g=bt(r._parent);let b=i.getZoom();const x=Math.max(b,1),w=du(s.bounds,u,d,fl,x,vR),k=p.xynodes.find(N=>N.type!=="empty"&&N.data.column==="subjects"&&N.data.fqn===o)??Rte(p.xynodes),C=Rte(c),_=a?c.find(N=>N.id===a):c.find(N=>N.type!=="empty"&&N.data.column!=="subjects"&&N.data.fqn===o);if(!k||!_||k.type==="empty"||!C||k.data.fqn===C.data.fqn)return await i.setViewport(w),f();const T={x:k.position.x+(k.initialWidth??0)/2,y:k.position.y+(k.initialHeight??0)/2},R=i.getInternalNode(C.id),A=NYe(R),D=new Set;return c.forEach(N=>{if(N.id!==_.id){if(N.data.column==="subjects"){D.add(N.id);return}N.parentId&&(N.parentId===_.id||D.has(N.parentId))&&D.add(N.id)}}),c=bR(c,c.flatMap(N=>D.has(N.id)?[]:N.id!==_.id?{...N,data:{...N.data,dimmed:N.data.column==="subjects"?"immediate":!0}}:{...tp(N,["parentId"]),position:{x:A.x-N.initialWidth/2,y:A.y-N.initialHeight/2},zIndex:hl.Max,hidden:!1,data:{...N.data,dimmed:!1}})),g.send({type:"update.xydata",xynodes:c,xyedges:[]}),await p8e(120),p.xynodes=p.xynodes.map(tr.setDimmed(!1)),n.aborted||(await i.setCenter(A.x,A.y,{zoom:b,duration:300}),await i.setCenter(T.x,T.y,{zoom:b})),f()}),det=oc({actors:{layouter:uet},guards:{hasViewId:({context:e})=>e.viewId!==null,isReady:({context:e})=>e.xyflow!==null&&e.xystore!==null&&e.layouted!==null,anotherSubject:({context:e,event:r})=>r.type==="update.view"?e.layouted?.subject!==r.layouted.subject:!1},actions:{"xyflow.init":Qe(({event:e})=>(qt(e,"xyflow.init"),{xyflow:e.instance,xystore:e.store})),"update.view":Qe(({event:e})=>(qt(e,"update.view"),{layouted:e.layouted,...Tte(e.layouted)})),"xyflow:updateNodeInternals":({context:e})=>{nt(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const l=r.querySelector(`.react-flow__node[data-id="${i}"]`);l&&a.set(i,{id:i,nodeElement:l,force:!0})}n(a,{triggerFitView:!1})},"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;nt(a,"xyflow is not initialized"),nt(i,"xystore is not initialized"),o??=e.layouted?.bounds;const l=Math.max(a.getZoom(),1);if(o){const{width:s,height:c}=i.getState(),u=du(o,s,c,fl,l,vR);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:fl,maxZoom:l,padding:vR,...n>0&&{duration:n}}).catch(console.error)},"xyflow.applyNodeChanges":Qe(({context:e,event:r})=>(qt(r,"xyflow.applyNodeChanges"),{xynodes:Dx(r.changes,e.xynodes)})),"xyflow.applyEdgeChanges":Qe(({context:e,event:r})=>(qt(r,"xyflow.applyEdgeChanges"),{xyedges:Px(r.changes,e.xyedges)}))}}).createMachine({id:"relationships-browser",context:({input:e})=>({subject:e.subject,viewId:e.viewId,scope:e.viewId?e.scope:"global",closeable:e.closeable??!0,enableSelectSubject:e.enableSelectSubject??!0,enableChangeScope:e.enableChangeScope??!0,xyflow:null,xystore:null,layouted:null,navigateFromNode:null,xynodes:[],xyedges:[]}),initial:"initializing",on:{"xyflow.applyNodeChanges":{actions:"xyflow.applyNodeChanges"},"xyflow.applyEdgeChanges":{actions:"xyflow.applyEdgeChanges"}},states:{initializing:{on:{"xyflow.init":{actions:"xyflow.init",target:"isReady"},"update.view":{actions:"update.view",target:"isReady"},stop:"closed",close:"closed"}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},Jr({type:"xyflow.updateNodeInternals"},{delay:150})],target:"active"},{target:"initializing"}]},active:{initial:"idle",tags:["active"],on:{"xyflow.nodeClick":{actions:en(({event:e,enqueue:r})=>{if("fqn"in e.node.data){const n=e.node.data.fqn;r.raise({type:"navigate.to",subject:n,fromNode:e.node.id})}})},"xyflow.edgeClick":{guard:"hasViewId",actions:en(({event:e,context:r,system:n,enqueue:o})=>{(e.edge.selected||e.edge.data.relations.length>1)&&o.sendTo(ac(n).overlaysActorRef,{type:"open.relationshipDetails",viewId:r.viewId,source:e.edge.data.sourceFqn,target:e.edge.data.targetFqn})})},"navigate.to":{actions:[Qe({subject:({event:e})=>e.subject,viewId:({event:e,context:r})=>e.viewId??r.viewId??null,navigateFromNode:({event:e})=>e.fromNode??null})]},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"update.view":{actions:"update.view",target:".layouting"},"change.scope":{actions:Qe({scope:({event:e})=>e.scope})},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"},fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ra("event")}},"xyflow.resized":{actions:[Vo("fitDiagram"),Jr({type:"fitDiagram"},{id:"fitDiagram",delay:300})]},"xyflow.init":{actions:"xyflow.init"},"xyflow.unmount":{target:"initializing"},close:"closed"},states:{idle:{on:{"xyflow.edgeMouseEnter":{actions:[Qe({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed!==!1||o.selected);return e.xyedges.map(o=>o.id===r.edge.id?tr.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?tr.setDimmed(o,"immediate"):o)}}),Vo("undim.edges"),Vo("dim.nonhovered.edges"),Jr({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:200})]},"xyflow.edgeMouseLeave":{actions:[Qe({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?tr.setHovered(n,!1):n)}),Vo("dim.nonhovered.edges"),Jr({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:Qe({xyedges:({context:e})=>e.xyedges.map(r=>r.data.hovered?r:tr.setDimmed(r,r.data.dimmed==="immediate"?"immediate":!0))})},"undim.edges":{actions:Qe({xyedges:({context:e})=>e.xyedges.map(tr.setDimmed(!1))})},"xyflow.selectionChange":{actions:en(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})}}},layouting:{invoke:{id:"layouter",src:"layouter",input:({context:e})=>({subjectId:e.subject,navigateFromNode:e.navigateFromNode,xyflow:bt(e.xyflow),xystore:bt(e.xystore),update:bt(e.layouted)}),onDone:{target:"idle",actions:en(({enqueue:e,event:r})=>{e.assign({xynodes:r.output.xynodes,xyedges:r.output.xyedges,navigateFromNode:null}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:50});for(let n=0;n<6;n++)e.raise({type:"xyflow.updateNodeInternals"},{delay:100+n*100})})}},on:{"update.xydata":{actions:Qe({xynodes:({event:e})=>e.xynodes,xyedges:({event:e})=>e.xyedges})},"xyflow.applyEdgeChanges":{},"xyflow.applyNodeChanges":{}}}}},closed:{id:"closed",type:"final"}},exit:Qe({xyflow:null,layouted:null,xystore:null,xyedges:[],xynodes:[]})}),Ate=det,pet=oc({actors:{relationshipsBrowserLogic:Ate}}).createMachine({id:"element-details",context:({input:e})=>({...e,initiatedFrom:{node:e.initiatedFrom?.node??null,clientRect:e.initiatedFrom?.clientRect??null}}),initial:"active",states:{active:{entry:pp("relationshipsBrowserLogic",{id:({self:e})=>`${e.id}-relationships`,input:({context:e})=>({subject:e.subject,viewId:e.currentView.id,scope:"view",enableSelectSubject:!1,enableChangeScope:!0,closeable:!1})}),exit:[ll(({self:e})=>`${e.id}-relationships`,{type:"close"}),nc(({self:e})=>`${e.id}-relationships`)],on:{"change.subject":{actions:Qe({subject:({event:e})=>e.subject})},close:"closed"}},closed:{id:"closed",type:"final"}}}),het=pet;function fet(e){const r=[],n=[],o=new Map,a=D_.from(e.nodes.reduce((s,c)=>(o.set(c.id,c),c.parent||s.push({node:c,parent:null}),s),[])),i=s=>bt(o.get(s),`Node not found: ${s}`);let l;for(;l=a.dequeue();){const{node:s,parent:c}=l,u=Ao(s.children,1);if(u)for(const x of s.children)a.enqueue({node:i(x),parent:s});const d={x:s.x,y:s.y};c&&(d.x-=c.x,d.y-=c.y);const p=s.id,f={id:p,draggable:!1,selectable:!0,focusable:!0,deletable:!1,position:d,zIndex:u?hl.Compound:hl.Element,style:{width:s.width,height:s.height},initialWidth:s.width,initialHeight:s.height,...c&&{parentId:c.id}},g=s.modelRef,b={navigateTo:s.navigateTo??null};switch(!0){case u:{r.push({...f,type:"compound",data:{id:p,column:s.column,title:s.title,color:s.color,style:s.style,depth:s.depth??0,icon:s.icon??"none",ports:s.ports,fqn:g,...b}});break}default:r.push({...f,type:"element",data:{id:p,column:s.column,fqn:g,title:s.title,technology:s.technology,description:Zt.from(s.description),height:s.height,width:s.width,color:s.color,shape:s.shape,icon:s.icon??"none",ports:s.ports,style:s.style,tags:s.tags,...b}})}}for(const{source:s,target:c,relationId:u,label:d,technology:p,description:f,navigateTo:g=null,color:b="gray",line:x="dashed",...w}of e.edges){const k=w.id;n.push({id:k,type:"relationship",source:s,target:c,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,deletable:!1,data:{relationId:u,label:d,color:b,navigateTo:g,line:x,description:Zt.from(f),...p&&{technology:p}}})}return{xynodes:r,xyedges:n,bounds:e.bounds}}function Nte(e){return"edgeId"in e?(nt(KE(e.edgeId),"edgeId is required"),{edgeId:e.edgeId}):{source:e.source,target:e.target}}const Dte={x:"22px",y:"22px"},met=oc({actions:{"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;nt(a,"xyflow is not initialized"),nt(i,"xystore is not initialized"),o??=e.bounds;const l=Math.max(a.getZoom(),1);if(o){const{width:s,height:c}=i.getState(),u=du(o,s,c,fl,l,Dte);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:fl,maxZoom:l,padding:Dte,...n>0&&{duration:n}}).catch(console.error)},"xyflow:updateNodeInternals":({context:e})=>{nt(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const l=r.querySelector(`.react-flow__node[data-id="${i}"]`);l&&a.set(i,{id:i,nodeElement:l,force:!0})}n(a,{triggerFitView:!1})},updateXYFlow:Qe(({context:e,event:r})=>{qt(r,"xyflow.init");let n=e.initialized;return n.xyflow||(n={...n,xyflow:!0}),{initialized:n,xyflow:r.instance,xystore:r.store}}),updateLayoutData:Qe(({context:e,event:r})=>{qt(r,"update.layoutData");const{xynodes:n,xyedges:o,bounds:a}=fet(r.data);let i=e.initialized;return i.xydata||(i={...i,xydata:!0}),{initialized:i,xynodes:bR(e.xynodes,n),xyedges:Ste(e.xyedges,o),bounds:Jn(e.bounds,a)?e.bounds:a}})},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enable: navigate.to":()=>!0}}).createMachine({initial:"initializing",context:({input:e})=>({subject:Nte(e),viewId:e.viewId,bounds:{x:0,y:0,width:200,height:200},initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null,xynodes:[],xyedges:[]}),states:{initializing:{on:{"xyflow.init":{actions:"updateXYFlow",target:"isReady"},"update.layoutData":{actions:"updateLayoutData",target:"isReady"},close:{target:"closed"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},Jr({type:"xyflow.updateNodeInternals"},{delay:50})],target:"ready"},{target:"initializing"}]},ready:{on:{"xyflow.edgeMouseEnter":{actions:[Qe({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed===!0||o.data.dimmed==="immediate");return e.xyedges.map(o=>o.id===r.edge.id?tr.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?tr.setDimmed(o,"immediate"):o)}}),Vo("undim.edges"),Vo("dim.nonhovered.edges"),Jr({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:100})]},"xyflow.edgeMouseLeave":{actions:[Qe({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?tr.setHovered(n,!1):n)}),Vo("dim.nonhovered.edges"),Jr({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:Qe({xyedges:({context:e})=>e.xyedges.map(r=>tr.setDimmed(r,r.data.hovered!==!0))})},"undim.edges":{actions:Qe({xyedges:({context:e})=>e.xyedges.some(r=>r.selected===!0)?e.xyedges.map(r=>tr.setDimmed(r,r.selected!==!0?r.data.dimmed||"immediate":!1)):e.xyedges.map(tr.setDimmed(!1))})},"xyflow.selectionChange":{actions:en(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})},"update.layoutData":{actions:["updateLayoutData",Vo("fitDiagram"),Jr({type:"fitDiagram",duration:0},{id:"fitDiagram",delay:50}),Jr({type:"xyflow.updateNodeInternals"},{delay:75})]},"xyflow.init":{actions:"updateXYFlow"},"xyflow.applyNodeChanges":{actions:Qe({xynodes:({context:e,event:r})=>Dx(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:Qe({xyedges:({context:e,event:r})=>Px(r.changes,e.xyedges)})},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"navigate.to":{actions:Qe({subject:({event:e})=>Nte(e.params),viewId:({context:e,event:r})=>r.params.viewId??e.viewId})},close:{target:"closed"}},exit:Qe({xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null})},closed:{type:"final"}},on:{fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ra("event")}},"xyflow.resized":{actions:[Vo("fitDiagram"),Jr({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"}}}),get=met,yet=XG(({sendBack:e})=>{const r=u9([["Escape",n=>{n.stopPropagation(),e({type:"close"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),bet=oc({actors:{relationshipDetails:get,elementDetails:het,relationshipsBrowser:Ate,hotkey:yet},actions:{closeLastOverlay:en(({context:e,enqueue:r})=>{if(e.overlays.length===0)return;const n=ep(e.overlays)?.id;n&&(r.sendTo(n,{type:"close"}),r.stopChild(n),r.assign({overlays:e.overlays.filter(o=>o.id!==n)}))}),closeSpecificOverlay:en(({context:e,enqueue:r},n)=>{const o=e.overlays.find(a=>a.id===n.actorId)?.id;o&&(r.sendTo(o,{type:"close"}),r.stopChild(o),r.assign({overlays:e.overlays.filter(a=>a.id!==o)}))}),closeAllOverlays:en(({context:e,enqueue:r})=>{for(const{id:n}of TDe(e.overlays))r.sendTo(n,{type:"close"}),r.stopChild(n);r.assign({overlays:[]})}),openElementDetails:en(({context:e,enqueue:r,event:n})=>{if(qt(n,"open.elementDetails"),e.overlays.some(a=>a.type==="elementDetails"&&a.subject===n.subject))return;const o=`elementDetails-${e.seq}`;r.spawnChild("elementDetails",{id:o,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"elementDetails",id:o,subject:n.subject}]})}),openRelationshipDetails:en(({context:e,enqueue:r,event:n})=>{qt(n,"open.relationshipDetails");const o=ep(e.overlays);if(o?.type==="relationshipDetails"){r.sendTo(o.id,{...n,type:"navigate.to"});return}const a=`relationshipDetails-${e.seq}`;r.spawnChild("relationshipDetails",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipDetails",id:a}]})}),openRelationshipsBrowser:en(({context:e,enqueue:r,event:n})=>{qt(n,"open.relationshipsBrowser");const o=ep(e.overlays);if(o?.type==="relationshipsBrowser"){r.sendTo(o.id,{type:"navigate.to",subject:n.subject,viewId:n.viewId});return}const a=`relationshipsBrowser-${e.seq}`;r.spawnChild("relationshipsBrowser",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipsBrowser",id:a,subject:n.subject}]})}),listenToEsc:pp("hotkey",{id:"hotkey"}),stopListeningToEsc:nc("hotkey")},guards:{"has overlays?":({context:e})=>e.overlays.length>0,"close specific overlay?":({context:e,event:r})=>(qt(r,"close"),KE(r.actorId)&&e.overlays.some(n=>n.id===r.actorId)),"last: is relationshipDetails?":({context:e})=>ep(e.overlays)?.type==="relationshipDetails","last: is relationshipsBrowser?":({context:e})=>ep(e.overlays)?.type==="relationshipsBrowser"}}).createMachine({id:"overlays",context:()=>({seq:1,overlays:[]}),initial:"idle",on:{"open.elementDetails":{actions:"openElementDetails",target:".active",reenter:!1},"open.relationshipDetails":{actions:"openRelationshipDetails",target:".active",reenter:!1},"open.relationshipsBrowser":{actions:"openRelationshipsBrowser",target:".active",reenter:!1}},states:{idle:{},active:{entry:"listenToEsc",exit:"stopListeningToEsc",on:{close:[{guard:"close specific overlay?",actions:{type:"closeSpecificOverlay",params:({event:e})=>({actorId:e.actorId})},target:"closing"},{actions:"closeLastOverlay",target:"closing"}],"close.all":{actions:["closeAllOverlays","stopListeningToEsc"],target:"idle"}}},closing:{always:[{guard:"has overlays?",target:"active"},{actions:"stopListeningToEsc",target:"idle"}]}},exit:["stopListeningToEsc","closeAllOverlays"]}),vet=bet,xet=oc({actions:{"change searchValue":Qe({searchValue:({event:e,context:r})=>(qt(e,["change.search","open"]),e.search??r.searchValue)}),"reset pickViewFor":Qe({pickViewFor:()=>null})}}).createMachine({id:"search",context:{openedWithSearch:null,searchValue:"",pickViewFor:null},initial:"inactive",on:{close:{target:".inactive",actions:"reset pickViewFor"}},states:{inactive:{on:{open:{target:"opened",actions:[Qe({openedWithSearch:({event:e})=>e.search??null,searchValue:({event:e,context:r})=>e.search??r.searchValue})]}}},opened:{on:{open:{actions:"change searchValue"},"change.search":{actions:"change searchValue"},"pickview.open":{target:"pickView",actions:Qe({pickViewFor:({event:e})=>e.elementFqn})}}},pickView:{on:{"pickview.close":{target:"opened",actions:"reset pickViewFor"}}}}}),wet=xet;class Pte{}class Dm extends Pte{constructor(r,n,o){super(),this.getEdgePosition=r,this.computePosition=n,this.propertyToEdit=o}alignTo;computeLayout(r){this.alignTo=this.getEdgePosition(r)}applyPosition(r){return{[this.propertyToEdit]:this.computePosition(this.alignTo,r)}}}class ket extends Pte{layout=new Map;axisPreset;get primaryAxisCoord(){return this.axisPreset.primaryAxisCoord}get secondaryAxisCoord(){return this.axisPreset.secondaryAxisCoord}get primaryAxisDimension(){return this.axisPreset.primaryAxisDimension}get secondaryAxisDimension(){return this.axisPreset.secondaryAxisDimension}constructor(r){super(),this.axisPreset=r==="Column"?{primaryAxisDimension:"width",secondaryAxisDimension:"height",primaryAxisCoord:"x",secondaryAxisCoord:"y"}:{primaryAxisDimension:"height",secondaryAxisDimension:"width",primaryAxisCoord:"y",secondaryAxisCoord:"x"}}applyPosition(r){return this.layout?.get(r.id)??{}}computeLayout(r){const n=kn(r,qx(i=>i[this.primaryAxisCoord])),o=this.getLayoutRect(n),a=this.getLayers(n);this.layout=this.buildLayout(a,o,n)}getLayoutRect(r){const n=Math.min(...r.map(l=>l.x)),o=Math.min(...r.map(l=>l.y)),a=Math.max(...r.map(l=>l.x+l.width)),i=Math.max(...r.map(l=>l.y+l.height));return{x:n,y:o,width:a-n,height:i-o}}getLayers(r){const n=[];let o=0,a=null;for(let i of r)if(a&&i[this.primaryAxisCoord]<o)a.nodes.push(i),a.primaryAxisSize=Math.max(a.primaryAxisSize,i[this.primaryAxisDimension]),a.occupiedSpace+=i[this.secondaryAxisDimension],o=Math.max(i[this.primaryAxisCoord]+i[this.primaryAxisDimension],o);else{a={primaryAxisSize:i[this.primaryAxisDimension],nodes:[i],occupiedSpace:i[this.secondaryAxisDimension],layout:null},n.push(a),o=i[this.primaryAxisCoord]+i[this.primaryAxisDimension];continue}return n.forEach(i=>i.nodes.sort((l,s)=>l[this.secondaryAxisCoord]-s[this.secondaryAxisCoord])),n}buildLayout(r,n,o){const a=new Map(o.map(b=>[b.id,b])),i=[],l=r.reduce((b,x)=>b+x.primaryAxisSize,0),s=r.length>1?(n[this.primaryAxisDimension]-l)/(r.length-1):0,c=r.reduce((b,x,w)=>r[b].occupiedSpace<x.occupiedSpace?w:b,0),u=r[c],d=r.slice(0,c).reduce((b,x)=>b+x.primaryAxisSize+s,n[this.primaryAxisCoord]),p=this.buildLayerLayout(u,n,d,a,null);u.layout=p,i.push(...p.nodePositions);let f=d+u.primaryAxisSize+s,g=u;for(let b=c+1;b<r.length;b++){const x=r[b];x.layout=this.buildLayerLayout(x,n,f,a,g),i.push(...x.layout.nodePositions),g=x.layout.refLayer??x,f+=x.primaryAxisSize+s}f=d,g=u;for(let b=c-1;b>=0;b--){const x=r[b];f-=x.primaryAxisSize+s,x.layout=this.buildLayerLayout(x,n,f,a,g),i.push(...x.layout.nodePositions),g=x.layout.refLayer??x}return new Map(i)}buildLayerLayout(r,n,o,a,i){let l=this.scoreLayout(this.spaceAround(r,n,o),a);if(r.nodes.length!=1){const s=this.scoreLayout(this.spaceBetween(r,n,o),a);l=s[0]<l[0]?s:l}if(i&&i.nodes.length-1>=r.nodes.length){const s=this.scoreLayout(this.placeInGaps(r,o,i),a);l=s[0]<l[0]?s:l}if(i&&i.nodes.length>=r.nodes.length){const s=this.scoreLayout(this.placeInCells(r,o,i),a);l=s[0]<l[0]?s:l}return l[1]}spaceBetween(r,n,o){const a=(n[this.secondaryAxisDimension]-r.occupiedSpace)/(r.nodes.length-1);let i=n[this.secondaryAxisCoord];const l=new Map;for(let s of r.nodes)l.set(s.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=s[this.secondaryAxisDimension]+a;return{nodePositions:l,refLayer:null}}spaceAround(r,n,o){const a=(n[this.secondaryAxisDimension]-r.occupiedSpace)/(r.nodes.length+1);let i=n[this.secondaryAxisCoord]+a;const l=new Map;for(let s of qx(r.nodes,c=>c[this.secondaryAxisCoord]))l.set(s.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=s[this.secondaryAxisDimension]+a;return{nodePositions:l,refLayer:null}}placeInGaps(r,n,o){const a=new Map,i=r.nodes,l=this.getGapsPositions(o);let s=0;for(let c=0,u=i[c];c<i.length;c++,u=i[c]){const d=u[this.secondaryAxisCoord]+u[this.secondaryAxisDimension]/2;let p=1/0;for(;s-c<=l.length-i.length;){const f=l[s]-d;if(Math.abs(f)<Math.abs(p))p=f,s++;else break}a.set(u.id,{[this.secondaryAxisCoord]:u[this.secondaryAxisCoord]+p,[this.primaryAxisCoord]:n})}return{nodePositions:a,refLayer:o}}placeInCells(r,n,o){const a=new Map,i=r.nodes,l=this.getNodePositions(o);let s=0;for(let c=0,u=i[c];c<i.length;c++,u=i[c]){const d=u[this.secondaryAxisCoord]+u[this.secondaryAxisDimension]/2;let p=1/0;for(;s-c<=l.length-i.length;){const f=l[s]-d;if(Math.abs(f)<Math.abs(p))p=f,s++;else break}a.set(u.id,{[this.secondaryAxisCoord]:u[this.secondaryAxisCoord]+p,[this.primaryAxisCoord]:n})}return{nodePositions:a,refLayer:o}}scoreLayout(r,n){return[kn(Array.from(r.nodePositions),No(([o,a])=>{const i=n.get(o);return nt(i,`Could not find original rect for node ${o}`),[vU(i,["x","y"]),a]}),No(([o,a])=>Math.abs(o[this.secondaryAxisCoord]-a[this.secondaryAxisCoord])),wf((o,a)=>o+a,0)),r]}getGapsPositions(r){const n=[],{layout:o,nodes:a}=r;nt(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=1;i<a.length;i++){const l=a[i-1],s=a[i],c=o.nodePositions.get(l.id),u=o.nodePositions.get(s.id);n.push((u[this.secondaryAxisCoord]+c[this.secondaryAxisCoord]+l[this.secondaryAxisDimension])/2)}return n}getNodePositions(r){const n=[],{layout:o,nodes:a}=r;nt(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=0;i<a.length;i++){const l=a[i],s=o.nodePositions.get(l.id);n.push(s[this.secondaryAxisCoord]+l[this.secondaryAxisDimension]/2)}return n}}function _et(e){switch(e){case"Left":return new Dm(r=>Math.min(...r.map(n=>n.x)),(r,n)=>Math.floor(r),"x");case"Top":return new Dm(r=>Math.min(...r.map(n=>n.y)),(r,n)=>Math.floor(r),"y");case"Right":return new Dm(r=>Math.max(...r.map(n=>n.x+n.width)),(r,n)=>Math.floor(r-n.width),"x");case"Bottom":return new Dm(r=>Math.max(...r.map(n=>n.y+n.height)),(r,n)=>Math.floor(r-n.height),"y");case"Center":return new Dm(r=>Math.min(...r.map(n=>n.x+n.width/2)),(r,n)=>Math.floor(r-n.width/2),"x");case"Middle":return new Dm(r=>Math.min(...r.map(n=>n.y+n.height/2)),(r,n)=>Math.floor(r-n.height/2),"y")}}function $te(e){const{width:r,height:n}=Qn(e);return{...e.internals.positionAbsolute,id:e.id,width:r,height:n}}function Eet(e){switch(e){case"Left":case"Right":case"Top":case"Bottom":case"Center":case"Middle":return _et(e);case"Column":case"Row":return new ket(e);default:Ja(e)}}function Cet(e){const{lastClickedNode:r}=e.context;return!r||r.id!==e.event.node.id?{id:e.event.node.id,clicks:1,timestamp:Date.now()}:{id:r.id,clicks:r.clicks+1,timestamp:Date.now()}}function Mte({context:e,event:r}){qt(r,"update.view");const n=r.view,o=e.view.id===n.id,a=e.xynodes,i=r.xynodes.map(s=>{const c=a.find(u=>u.id===s.id);if(c){const{width:u,height:d}=Qn(c);return ut(c.type,s.type)&&ut(u,s.initialWidth)&&ut(d,s.initialHeight)&&ut(c.hidden??!1,s.hidden??!1)&&ut(c.position,s.position)&&ut(c.data,s.data)&&ut(c.parentId??null,s.parentId??null)?c:{...tp(c,["measured","parentId"]),...s,width:s.initialWidth,height:s.initialHeight,data:{...c.data,...s.data}}}return s});let l=r.xyedges;if(o&&!n.hasLayoutDrift){const s=e.xyedges;l=r.xyedges.map(c=>{const u=s.find(d=>d.id===c.id);return u&&u.type===c.type?ut(u.hidden??!1,c.hidden??!1)&&ut(u.data,c.data)&&ut(u.source,c.source)&&ut(u.target,c.target)&&ut(u.sourceHandle,c.sourceHandle)&&ut(u.targetHandle,c.targetHandle)?u:{...tp(u,["sourceHandle","targetHandle"]),...c,data:{...u.data,...c.data}}:c})}if(!o){for(const s of i)s.data={...s.data,dimmed:!1,hovered:!1};for(const s of l)s.data={...s.data,dimmed:!1,hovered:!1,active:!1}}return{xynodes:i,xyedges:l,view:n}}function Tet(e){const{xynodes:r,xyedges:n,focusedNode:o}=e.context;if(!o)return{};const a=new Set([o]),i=n.map(l=>l.source===o||l.target===o?(a.add(l.source),a.add(l.target),tr.setData(l,{dimmed:!1,active:!0})):tr.setData(l,{dimmed:!0,active:!1}));return{xynodes:r.map(l=>tr.setDimmed(l,!a.has(l.id))),xyedges:i}}function Ote({context:e,event:r}){qt(r,"update.view");let{navigationHistory:{currentIndex:n,history:o},lastOnNavigate:a,viewport:i}=e;const l=o[n];if(!l)return{navigationHistory:{currentIndex:0,history:[{viewId:r.view.id,fromNode:null,viewport:{...i}}]}};if(l.viewId!==r.view.id){if(!a){const s=n>0?bt(o[n-1]):null;if(s&&s.viewId===r.view.id)return{navigationHistory:{currentIndex:n-1,history:o},lastOnNavigate:{fromView:l.viewId,toView:s.viewId,fromNode:l.fromNode}};const c=n<o.length-1?bt(o[n+1]):null;if(c&&c.viewId===r.view.id)return{navigationHistory:{currentIndex:n+1,history:o},lastOnNavigate:{fromView:l.viewId,toView:c.viewId,fromNode:c.fromNode}}}return o=[...o.slice(0,n+1),{viewId:r.view.id,fromNode:a?.fromNode??null,viewport:{...i}}],n=o.length-1,{navigationHistory:{currentIndex:n,history:o}}}return{}}function Ret({context:e}){const{navigationHistory:{currentIndex:r,history:n}}=e;nt(r>0,"Cannot navigate back");const o=n[r],a=n[r-1];return{navigationHistory:{currentIndex:r-1,history:n},lastOnNavigate:{fromView:o.viewId,toView:a.viewId,fromNode:o.fromNode}}}function Aet({context:e}){const{navigationHistory:{currentIndex:r,history:n}}=e;nt(r<n.length-1,"Cannot navigate forward");const o=n[r],a=n[r+1];return{navigationHistory:{currentIndex:r+1,history:n},lastOnNavigate:{fromView:o.viewId,toView:a.viewId,fromNode:a.fromNode}}}function Net({context:e,event:r}){return qt(r,"update.nodeData"),{xynodes:e.xynodes.map(n=>{if(n.id!==r.nodeId)return n;const o=gU(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function Det({context:e,event:r}){return qt(r,"update.edgeData"),{xyedges:e.xyedges.map(n=>{if(n.id!==r.edgeId)return n;const o=gU(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function Pet({context:e}){const{xynodes:r}=e;function n(i,l){const s=Ap({x:i.width||0,y:i.height||0});let c=Ap(i.position).add(s.mul(.5)),u=i;do{const d=u.parentId&&l.find(p=>p.id==u.parentId);if(!d)break;u=d,c=c.add(d.position)}while(!0);return c}function o(i){const l=r.find(g=>g.id==i.source),s=r.find(g=>g.id==i.target);if(!l||!s)return[];const c=n(l,r),u=n(s,r);if(!c||!u)return[];if(l===s){const g=new ia(0,l.height||0).mul(-.5).add(c);return[g.add(new ia(-32,-80)),g.add(new ia(32,-80))]}const d=u.sub(c),p=a(l,c,d),f=a(s,u,d.mul(-1));return[p.add(f.sub(p).mul(.3))]}function a(i,l,s){const c=(i.width||0)/2/s.x,u=(i.height||0)/2/s.y,d=Math.min(Math.abs(c),Math.abs(u));return Ap(s).mul(d).add(l)}return{xyedges:e.xyedges.map(i=>!i.data.controlPoints||gu(i.data.controlPoints)?i:{...i,data:{...i.data,controlPoints:o(i)}})}}function $et({context:e}){const{stepId:r,parallelPrefix:n}=bt(e.activeWalkthrough,"activeWalkthrough is null"),o=bt(e.xyedges.find(a=>a.id===r));return{xyedges:e.xyedges.map(a=>{const i=r===a.id||!!n&&a.id.startsWith(n);return tr.setData(a,{active:i,dimmed:r!==a.id})}),xynodes:e.xynodes.map(a=>{const i=o.source!==a.id&&o.target!==a.id;return a.type==="seq-parallel"?tr.setData(a,{color:n===a.data.parallelPrefix?f4.active:f4.default,dimmed:i}):tr.setDimmed(a,i)})}}const Met=XG(({sendBack:e})=>{const r=u9([["Escape",o=>{o.stopPropagation(),e({type:"key.esc"})},{preventDefault:!0}]]),n=u9([["ArrowLeft",o=>{o.stopPropagation(),e({type:"key.arrow.left"})},{preventDefault:!0}],["ArrowRight",o=>{o.stopPropagation(),e({type:"key.arrow.right"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r),document.body.addEventListener("keydown",n,{capture:!0}),()=>{document.body.removeEventListener("keydown",r),document.body.removeEventListener("keydown",n,{capture:!0})}}),xR="likec4:diagram:toggledFeatures",Ite={read(){try{let e=sessionStorage.getItem(xR);return e?JSON.parse(e):null}catch(e){return console.error(`Error reading fromStorage ${xR}:`,e),null}},write(e){return sessionStorage.setItem(xR,JSON.stringify(kDe(e,dU))),e}},Oet=oc({delays:{timeout:2e3},actions:{"trigger:OnChange":(e,r)=>{}},guards:{"same view":({context:e})=>e.parent.getSnapshot().context.view.id===e.viewId}}).createMachine({initial:"idle",context:({input:e})=>({...e}),states:{idle:{tags:"ready",on:{sync:{target:"pending"}}},paused:{tags:"pending",on:{sync:{target:"pending"}}},pending:{tags:"pending",on:{sync:{target:"pending",reenter:!0},cancel:{target:"paused"}},after:{timeout:[{guard:"same view",actions:{type:"trigger:OnChange",params:({context:e})=>({change:Iet(e.parent.getSnapshot().context)})},target:"synced"},{target:"stopped"}]}},synced:{tags:"ready",on:{sync:{target:"pending"}}},stopped:{entry:Qe({parent:null}),type:"final"}},on:{synced:{target:".synced"},stop:{target:".stopped"}}}),zte=Oet;function Iet(e){const{view:r,xystore:n,xyflow:o}=e,{nodeLookup:a}=n.getState(),i=new Set;let l;const s=wf([...a.values()],(u,d)=>{const p=Qn(d);(!$y(d.internals.positionAbsolute,d.data)||d.initialWidth!==p.width||d.initialHeight!==p.height)&&i.add(d.id);const f=u[d.id]={isCompound:d.type!=="element"&&d.type!=="deployment",x:Math.floor(d.internals.positionAbsolute.x),y:Math.floor(d.internals.positionAbsolute.y),width:Math.ceil(p.width),height:Math.ceil(p.height)};return l=l?kx(l,f):f,u},{}),c=wf(o?.getEdges()??[],(u,{source:d,target:p,data:f})=>{let g=f.controlPoints??[];const b=i.has(d)||i.has(p);if(g.length===0&&b&&(g=IQ(f)),f.points.length===0&&g.length===0)return u;const x=u[f.id]={points:f.points};f.labelXY&&f.labelBBox&&(x.labelBBox={...f.labelBBox,...f.labelXY}),f.labelBBox&&(x.labelBBox??=f.labelBBox),Ao(g,1)&&(x.controlPoints=g);const w=[...f.points.map(_=>_[0]),...g.map(_=>_.x),...x.labelBBox?[x.labelBBox.x,x.labelBBox.x+x.labelBBox.width]:[]],k=[...f.points.map(_=>_[1]),...g.map(_=>_.y),...x.labelBBox?[x.labelBBox.y,x.labelBBox.y+x.labelBBox.height]:[]],C=E0({x:Math.floor(Math.min(...w)),y:Math.floor(Math.min(...k)),x2:Math.ceil(Math.max(...w)),y2:Math.ceil(Math.max(...k))});return l=l?kx(l,C):C,u},{});return l??=r.bounds,{op:"save-manual-layout",layout:{hash:r.hash,autoLayout:r.autoLayout,nodes:s,edges:c,...l}}}const zet=oc({actors:{syncManualLayoutActorLogic:zte,hotkeyActorLogic:Met,overlaysActorLogic:vet,searchActorLogic:wet},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enabled: FitView":({context:e})=>e.features.enableFitView,"enabled: FocusMode":({context:e})=>e.features.enableFocusMode&&(e.view._type!=="dynamic"||e.dynamicViewVariant!=="sequence"),"enabled: Readonly":({context:e})=>e.features.enableReadOnly,"enabled: RelationshipDetails":({context:e})=>e.features.enableRelationshipDetails,"enabled: Search":({context:e})=>e.features.enableSearch,"enabled: ElementDetails":({context:e})=>e.features.enableElementDetails,"enabled: DynamicViewWalkthrough":({context:e})=>e.features.enableDynamicViewWalkthrough,"not readonly":({context:e})=>!e.features.enableReadOnly,"is dynamic view":({context:e})=>e.view._type==="dynamic","is another view":({context:e,event:r})=>{if(qt(r,["update.view","navigate.to"]),r.type==="update.view")return e.view.id!==r.view.id;if(r.type==="navigate.to")return e.view.id!==r.viewId;Ja(r.type)},"click: node has modelFqn":({event:e})=>(qt(e,"xyflow.nodeClick"),"modelFqn"in e.node.data),"click: selected node":({event:e})=>(qt(e,"xyflow.nodeClick"),e.node.selected===!0),"click: same node":({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),e.lastClickedNode?.id===r.node.id),"click: focused node":({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),e.focusedNode===r.node.id),"click: node has connections":({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),e.xyedges.some(n=>n.source===r.node.id||n.target===r.node.id)),"click: selected edge":({event:e})=>(qt(e,"xyflow.edgeClick"),e.edge.selected===!0||e.edge.data.active===!0)},actions:{"trigger:NavigateTo":$a(({context:e})=>({type:"navigateTo",viewId:bt(e.lastOnNavigate,"Invalid state, lastOnNavigate is null").toView})),"assign lastClickedNode":Qe(({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),{lastClickedNode:Cet({context:e,event:r})})),"assign: focusedNode":Qe(({event:e})=>{let r;switch(e.type){case"xyflow.nodeClick":r=e.node.data.id;break;case"focus.node":r=e.nodeId;break;default:throw new Error(`Unexpected event type: ${e.type} in action 'assign: focusedNode'`)}return{focusedNode:r}}),"reset lastClickedNode":Qe(()=>({lastClickedNode:null})),"open source of focused or last clicked node":en(({context:e,enqueue:r})=>{const n=e.focusedNode??e.lastClickedNode?.id;if(!n||!e.features.enableVscode)return;const o=om(e,n);o&&(o.deploymentRef?r.raise({type:"open.source",deployment:o.deploymentRef}):o.modelRef&&r.raise({type:"open.source",element:o.modelRef}))}),"xyflow:fitDiagram":({context:e},r)=>{const{bounds:n=e.view.bounds,duration:o=450}=r??{},{width:a,height:i,panZoom:l,transform:s}=bt(e.xystore).getState(),c=Math.max(1,s[2]),u=du(n,a,i,fl,c,e.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),l?.setViewport(u,o>0?{duration:o}:void 0).catch(console.error)},"xyflow:fitFocusedBounds":({context:e})=>{const r=!!e.activeWalkthrough&&e.dynamicViewVariant==="sequence",{bounds:n,duration:o=450}=r?Uje({context:e}):Hje({context:e}),{width:a,height:i,panZoom:l,transform:s}=bt(e.xystore).getState(),c=Math.max(1,s[2]),u=du(n,a,i,fl,c,e.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),l?.setViewport(u,o>0?{duration:o}:void 0)},"xyflow:setViewportCenter":({context:e},r)=>{const{x:n,y:o}=r;nt(e.xyflow,"xyflow is not initialized");const a=e.xyflow.getZoom();e.xyflow.setCenter(Math.round(n),Math.round(o),{zoom:a})},"xyflow:setViewport":({context:e},r)=>{const{viewport:n,duration:o=350}=r;e.xystore?.getState().panZoom?.setViewport(n,o>0?{duration:o}:void 0)},"xyflow:alignNodeFromToAfterNavigate":({context:e},r)=>{const n=bt(e.xyflow,"xyflow is not initialized"),o=n.getInternalNode(r.fromNode);if(!o)return;const a=n.flowToScreenPosition({x:o.internals.positionAbsolute.x,y:o.internals.positionAbsolute.y}),i=n.flowToScreenPosition(r.toPosition),l={x:Math.round(a.x-i.x),y:Math.round(a.y-i.y)};e.xystore.getState().panBy(l)},"layout.align":({context:e},r)=>{const{mode:n}=r,o=bt(e.xystore,"xystore is not initialized"),{nodeLookup:a,parentLookup:i}=o.getState(),l=[...new Set(a.values().filter(d=>d.selected).map(d=>d.id)).difference(new Set(i.keys()))];if(!Ao(l,2)){console.warn("At least 2 nodes must be selected to align");return}const s=kte(o,l),c=Eet(n),u=l.map(d=>({node:bt(a.get(d)),rect:bt(s.rects.get(d))}));c.computeLayout(u.map(({node:d})=>$te(d)));for(const{rect:d,node:p}of u)d.positionAbsolute={...d.positionAbsolute,...c.applyPosition($te(p))};s.updateXYFlowNodes()},"ensure overlays actor state":en(({enqueue:e,context:{features:r},system:n})=>{const o=r.enableElementDetails||r.enableRelationshipDetails||r.enableRelationshipBrowser,a=ac(n).overlaysActorRef;if(o&&!a){e.spawnChild("overlaysActorLogic",{id:"overlays",systemId:"overlays"});return}!o&&a&&(e.sendTo(a,{type:"close.all"}),e.stopChild("overlays"))}),"ensure search actor state":en(({enqueue:e,context:{features:{enableSearch:r}},system:n})=>{const o=ac(n).searchActorRef;if(r&&!o){e.spawnChild("searchActorLogic",{id:"search",systemId:"search"});return}!r&&o&&(e.sendTo(o,{type:"close"}),e.stopChild("search"))}),updateFeatures:Qe(({event:e})=>(qt(e,"update.features"),{features:{...e.features}})),updateInputs:Qe(({event:e})=>(qt(e,"update.inputs"),{...e.inputs})),closeSearch:ll(({system:e})=>ac(e).searchActorRef,{type:"close"}),closeAllOverlays:ll(({system:e})=>ac(e).overlaysActorRef,{type:"close.all"}),startSyncLayout:Qe(({context:e,spawn:r,self:n})=>({syncLayoutActorRef:r("syncManualLayoutActorLogic",{id:"syncLayout",input:{parent:n,viewId:e.view.id}})})),stopSyncLayout:en(({context:e,enqueue:r})=>{r.sendTo(e.syncLayoutActorRef,{type:"stop"}),r.stopChild(e.syncLayoutActorRef),r.assign({syncLayoutActorRef:null})}),onNodeMouseEnter:Qe(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?tr.setHovered(n,!0):n)})),onNodeMouseLeave:Qe(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?tr.setHovered(n,!1):n)})),onEdgeMouseEnter:en(({enqueue:e,context:r,event:n})=>{qt(n,"xyflow.edgeMouseEnter");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=tr.setHovered(a,!0),o):a)}),e.emit({type:"edgeMouseEnter",edge:o,event:n.event})}),onEdgeMouseLeave:en(({enqueue:e,context:r,event:n})=>{qt(n,"xyflow.edgeMouseLeave");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=tr.setHovered(a,!1),o):a)}),e.emit({type:"edgeMouseLeave",edge:o,event:n.event})}),"focus on nodes and edges":Qe(Tet),"notations.highlight":Qe(({context:e},r)=>{const n=r.kind?[r.kind]:r.notation.kinds;return{xynodes:e.xynodes.map(o=>{const a=om(e,o.id);return a&&a.notation===r.notation.title&&a.shape===r.notation.shape&&a.color===r.notation.color&&n.includes(a.kind)?tr.setDimmed(o,!1):tr.setDimmed(o,"immediate")}),xyedges:e.xyedges.map(tr.setDimmed("immediate"))}}),"tag.highlight":Qe(({context:e,event:r})=>(qt(r,"tag.highlight"),{xynodes:e.xynodes.map(n=>n.data.tags?.includes(r.tag)?tr.setDimmed(n,!1):tr.setDimmed(n,!0))})),"undim everything":Qe(({context:e})=>({xynodes:e.xynodes.map(tr.setDimmed(!1)),xyedges:e.xyedges.map(tr.setData({dimmed:!1,active:!1}))})),"update active walkthrough":Qe($et),"open element details":ll(({system:e})=>ac(e).overlaysActorRef,({context:e,event:r},n)=>{let o=null,a,i;if(n)i=n.fqn,a=n.fromNode??e.view.nodes.find(s=>s.modelRef===n.fqn)?.id;else if(r.type==="xyflow.nodeClick")nt("modelFqn"in r.node.data&&!!r.node.data.modelFqn,"No modelFqn in event node data"),i=r.node.data.modelFqn,a=r.node.data.id;else if(r.type==="open.elementDetails")i=r.fqn,a=r.fromNode;else{nt(e.lastClickedNode,"No last clicked node"),a=bt(e.lastClickedNode).id;const s=bt(e.xynodes.find(c=>c.id===a));nt("modelFqn"in s.data&&!!s.data.modelFqn,"No modelFqn in last clicked node"),i=s.data.modelFqn}const l=a?e.xystore.getState().nodeLookup.get(a):null;if(a&&l){const s=Zd(l),c=e.xyflow.getZoom(),u={...e.xyflow.flowToScreenPosition(s),width:s.width*c,height:s.height*c};o={node:a,clientRect:u}}return{type:"open.elementDetails",subject:i,currentView:e.view,...o&&{initiatedFrom:o}}}),"emit: walkthroughStarted":$a(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return nt(r,"Invalid walkthrough state"),{type:"walkthroughStarted",edge:r}}),"emit: walkthroughStep":$a(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return nt(r,"Invalid walkthrough state"),{type:"walkthroughStep",edge:r}}),"emit: walkthroughStopped":$a(()=>({type:"walkthroughStopped"})),"emit: edgeEditingStarted":$a(({context:e,event:r})=>(qt(r,"xyflow.edgeEditingStarted"),{type:"edgeEditingStarted",edge:bt(e.xyedges.find(n=>n.id===r.edge.id),`Edge ${r.edge.id} not found`)})),"emit: paneClick":$a(()=>({type:"paneClick"})),"emit: nodeClick":$a(({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),{type:"nodeClick",node:bt(om(e,r.node.id),`Node ${r.node.id} not found in diagram`),xynode:r.node})),"emit: edgeClick":$a(({context:e,event:r})=>(qt(r,"xyflow.edgeClick"),{type:"edgeClick",edge:bt(uS(e,r.edge.id),`Edge ${r.edge.id} not found in diagram`),xyedge:r.edge})),"emit: initialized":$a(({context:e})=>(nt(e.xyflow,"XYFlow instance not found"),{type:"initialized",instance:e.xyflow})),"emit: openSource":$a((e,r)=>({type:"openSource",params:r})),"assign: dynamicViewVariant":Qe(({event:e})=>(qt(e,"switch.dynamicViewVariant"),{dynamicViewVariant:e.variant}))}}).createMachine({initial:"initializing",context:({input:e})=>({...e,xyedges:[],xynodes:[],features:{...ree},toggledFeatures:Ite.read()??{enableReadOnly:!0},initialized:{xydata:!1,xyflow:!1},viewportChangedManually:!1,lastOnNavigate:null,lastClickedNode:null,focusedNode:null,activeElementDetails:null,viewportBeforeFocus:null,navigationHistory:{currentIndex:0,history:[]},viewport:{x:0,y:0,zoom:1},xyflow:null,syncLayoutActorRef:null,dynamicViewVariant:e.dynamicViewVariant??(e.view._type==="dynamic"?e.view.variant:"diagram")??"diagram",activeWalkthrough:null}),states:{initializing:{on:{"xyflow.init":{actions:Qe(({context:e,event:r})=>({initialized:{...e.initialized,xyflow:!0},xyflow:r.instance})),target:"isReady"},"update.view":{actions:Qe(({context:e,event:r})=>({initialized:{...e.initialized,xydata:!0},view:r.view,xynodes:r.xynodes,xyedges:r.xyedges})),target:"isReady"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},Qe(({context:e})=>({navigationHistory:{currentIndex:0,history:[{viewId:e.view.id,fromNode:null,viewport:{...e.xyflow.getViewport()}}]}})),"startSyncLayout","emit: initialized"],target:"ready"},{target:"initializing"}]},ready:{initial:"idle",on:{"navigate.to":{guard:"is another view",actions:Qe({lastOnNavigate:({context:e,event:r})=>({fromView:e.view.id,toView:r.viewId,fromNode:r.fromNode??null})}),target:"#navigating"},"navigate.back":{guard:({context:e})=>e.navigationHistory.currentIndex>0,actions:Qe(Ret),target:"#navigating"},"navigate.forward":{guard:({context:e})=>e.navigationHistory.currentIndex<e.navigationHistory.history.length-1,actions:Qe(Aet),target:"#navigating"},"layout.align":{guard:"not readonly",actions:[{type:"layout.align",params:({event:e})=>({mode:e.mode})},Jr({type:"saveManualLayout.schedule"})]},"layout.resetEdgeControlPoints":{guard:"not readonly",actions:[Qe(Pet),Jr({type:"saveManualLayout.schedule"})]},"xyflow.resized":{guard:({context:e})=>e.features.enableFitView&&!e.viewportChangedManually,actions:[Vo("fitDiagram"),Jr({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"open.elementDetails":{guard:"enabled: ElementDetails",actions:"open element details"},"open.relationshipsBrowser":{actions:ll(({system:e})=>ac(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipsBrowser",subject:r.fqn,viewId:e.view.id,scope:"view",closeable:!0,enableChangeScope:!0,enableSelectSubject:!0}))},"open.relationshipDetails":{actions:ll(({system:e})=>ac(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipDetails",viewId:e.view.id,...r.params}))},"open.source":{actions:{type:"emit: openSource",params:Ra("event")}},"walkthrough.start":{guard:"is dynamic view",target:".walkthrough"},"toggle.feature":{actions:Qe({toggledFeatures:({context:e,event:r})=>Ite.write({...e.toggledFeatures,[`enable${r.feature}`]:r.forceValue??!(e.toggledFeatures[`enable${r.feature}`]??e.features[`enable${r.feature}`])})})},"xyflow.nodeMouseEnter":{actions:{type:"onNodeMouseEnter",params:Ra("event")}},"xyflow.nodeMouseLeave":{actions:{type:"onNodeMouseLeave",params:Ra("event")}},"xyflow.edgeMouseEnter":{actions:"onEdgeMouseEnter"},"xyflow.edgeMouseLeave":{actions:"onEdgeMouseLeave"},"notations.highlight":{actions:{type:"notations.highlight",params:Ra("event")}},"notations.unhighlight":{actions:"undim everything"},"tag.highlight":{actions:"tag.highlight"},"tag.unhighlight":{actions:"undim everything"},"saveManualLayout.*":{guard:"not readonly",actions:ll(e=>e.context.syncLayoutActorRef,({event:e})=>{if(e.type==="saveManualLayout.schedule")return{type:"sync"};if(e.type==="saveManualLayout.cancel")return{type:"cancel"};Ja(e)})},"open.search":{guard:"enabled: Search",actions:ll(({system:e})=>ac(e).searchActorRef,({event:e})=>({type:"open",search:e.search}))}},exit:[Vo("fitDiagram")],states:{idle:{id:"idle",on:{"xyflow.nodeClick":[{guard:t2(["enabled: FocusMode","click: node has connections",MG(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","assign: focusedNode","emit: nodeClick"],target:"focused"},{guard:t2(["enabled: ElementDetails","click: node has modelFqn",MG(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","open source of focused or last clicked node","open element details","emit: nodeClick"]},{actions:["assign lastClickedNode","open source of focused or last clicked node","emit: nodeClick"]}],"xyflow.paneClick":{actions:["reset lastClickedNode","emit: paneClick"]},"xyflow.paneDblClick":{actions:["reset lastClickedNode","xyflow:fitDiagram",{type:"emit: openSource",params:({context:e})=>({view:e.view.id})}]},"focus.node":{guard:"enabled: FocusMode",actions:"assign: focusedNode",target:"focused"},"xyflow.edgeClick":{guard:t2(["is dynamic view","enabled: DynamicViewWalkthrough","click: selected edge"]),actions:[Jr(({event:e})=>({type:"walkthrough.start",stepId:e.edge.id})),"emit: edgeClick"]}}},focused:{entry:["focus on nodes and edges",Qe(e=>({viewportBeforeFocus:{...e.context.viewport}})),"open source of focused or last clicked node",pp("hotkeyActorLogic",{id:"hotkey"}),"xyflow:fitFocusedBounds"],exit:en(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e({type:"xyflow:setViewport",params:{viewport:r.viewportBeforeFocus}}):e("xyflow:fitDiagram"),e("undim everything"),e.assign({viewportBeforeFocus:null,focusedNode:null})}),on:{"xyflow.nodeClick":[{guard:t2(["click: focused node","click: node has modelFqn"]),actions:["open element details","emit: nodeClick"]},{guard:"click: focused node",actions:"emit: nodeClick",target:"#idle"},{actions:["assign lastClickedNode",Jr(({event:e})=>({type:"focus.node",nodeId:e.node.id})),"emit: nodeClick"]}],"focus.node":{actions:["assign: focusedNode","focus on nodes and edges","open source of focused or last clicked node","xyflow:fitFocusedBounds"]},"key.esc":{target:"idle"},"xyflow.paneClick":{actions:["reset lastClickedNode","emit: paneClick"],target:"idle"},"notations.unhighlight":{actions:"focus on nodes and edges"},"tag.unhighlight":{actions:"focus on nodes and edges"}}},walkthrough:{entry:[pp("hotkeyActorLogic",{id:"hotkey"}),Qe({viewportBeforeFocus:({context:e})=>e.viewport,activeWalkthrough:({context:e,event:r})=>{qt(r,"walkthrough.start");const n=r.stepId??xf(e.xyedges).id;return{stepId:n,parallelPrefix:B8(n)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStarted"],exit:en(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e({type:"xyflow:setViewport",params:{viewport:r.viewportBeforeFocus}}):e("xyflow:fitDiagram"),r.dynamicViewVariant==="sequence"&&r.activeWalkthrough?.parallelPrefix&&e.assign({xynodes:r.xynodes.map(n=>n.type==="seq-parallel"?tr.setData(n,{color:f4.default}):n)}),e("undim everything"),e.assign({activeWalkthrough:null,viewportBeforeFocus:null}),e("emit: walkthroughStopped")}),on:{"key.esc":{target:"idle"},"key.arrow.left":{actions:Jr({type:"walkthrough.step",direction:"previous"})},"key.arrow.right":{actions:Jr({type:"walkthrough.step",direction:"next"})},"walkthrough.step":{actions:[Qe(({context:e,event:r})=>{const{stepId:n}=e.activeWalkthrough,o=e.xyedges.findIndex(l=>l.id===n),a=Qi(r.direction==="next"?o+1:o-1,{min:0,max:e.xyedges.length-1});if(a===o)return{};const i=e.xyedges[a].id;return{activeWalkthrough:{stepId:i,parallelPrefix:B8(i)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStep"]},"xyflow.edgeClick":{actions:[Qe(({event:e,context:r})=>!A1(e.edge.id)||e.edge.id===r.activeWalkthrough?.stepId?{}:{activeWalkthrough:{stepId:e.edge.id,parallelPrefix:B8(e.edge.id)}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: edgeClick","emit: walkthroughStep"]},"notations.unhighlight":{actions:"update active walkthrough"},"tag.unhighlight":{actions:"update active walkthrough"},"walkthrough.end":{target:"idle"},"xyflow.paneDblClick":{target:"idle"},"update.view":{guard:"is another view",actions:Jr(({event:e})=>e,{delay:50}),target:"idle"}}}}},navigating:{id:"navigating",entry:["closeAllOverlays","closeSearch","stopSyncLayout","trigger:NavigateTo"],on:{"update.view":{actions:en(({enqueue:e,context:r,event:n})=>{const{fromNode:o,toNode:a}=Bte(r,n);e(o&&a?{type:"xyflow:alignNodeFromToAfterNavigate",params:{fromNode:o.id,toPosition:{x:a.data.x,y:a.data.y}}}:{type:"xyflow:setViewportCenter",params:su.center(n.view.bounds)}),e.assign(Ote),e.assign({...Mte({context:r,event:n}),lastOnNavigate:null}),e("startSyncLayout"),e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:25})}),target:"#idle"}}}},on:{"xyflow.paneClick":{actions:"emit: paneClick"},"xyflow.nodeClick":{actions:"emit: nodeClick"},"xyflow.edgeClick":{actions:"emit: edgeClick"},"xyflow.applyNodeChanges":{actions:Qe({xynodes:({context:e,event:r})=>Dx(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:Qe({xyedges:({context:e,event:r})=>Px(r.changes,e.xyedges)})},"xyflow.viewportMoved":{actions:Qe({viewportChangedManually:(({event:e})=>e.manually),viewport:(({event:e})=>e.viewport)})},"xyflow.edgeEditingStarted":{actions:"emit: edgeEditingStarted"},fitDiagram:{guard:"enabled: FitView",actions:{type:"xyflow:fitDiagram",params:Ra("event")}},"update.nodeData":{actions:Qe(Net)},"update.edgeData":{actions:Qe(Det)},"update.view":{actions:[Qe(Ote),en(({enqueue:e,event:r,check:n,context:o})=>{const a=n("is another view");if(a){e("closeAllOverlays"),e("closeSearch"),e("stopSyncLayout"),e.assign({focusedNode:null});const{fromNode:i,toNode:l}=Bte(o,r);i&&l?(e({type:"xyflow:alignNodeFromToAfterNavigate",params:{fromNode:i.id,toPosition:{x:l.data.x,y:l.data.y}}}),e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:80})):(e({type:"xyflow:setViewportCenter",params:su.center(r.view.bounds)}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:25}))}else{const i=r.view;i._type==="dynamic"&&o.view._type==="dynamic"&&i.variant!==o.view.variant&&e({type:"xyflow:setViewportCenter",params:su.center(i.bounds)})}e.assign({...Mte({context:o,event:r}),lastOnNavigate:null}),a?e("startSyncLayout"):(e.sendTo(i=>i.context.syncLayoutActorRef,{type:"synced"}),o.viewportChangedManually||e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:50}))})]},"update.inputs":{actions:"updateInputs"},"update.features":{actions:["updateFeatures","ensure overlays actor state","ensure search actor state"]},"switch.dynamicViewVariant":{actions:"assign: dynamicViewVariant"}},exit:["stopSyncLayout",Vo("fitDiagram"),nc("hotkey"),nc("overlays"),nc("search"),Qe({xyflow:null,xystore:null,xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},syncLayoutActorRef:null})]});function Lte(e){switch(e.type){case"element":case"compound-element":case"seq-actor":return e.data.modelFqn;case"deployment":case"compound-deployment":return e.data.modelFqn??e.data.deploymentFqn;case"seq-parallel":case"view-group":return null;default:Ja(e)}}function Bte(e,r){const n=e.lastOnNavigate?.fromNode,o=n&&e.xynodes.find(l=>l.id===n),a=o&&Lte(o),i=a&&r.xynodes.find(l=>Lte(l)===a);return{fromNode:o,toNode:i}}const Let=zet,Bet=e=>e.context.dynamicViewVariant;function jet({view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,where:i,children:l,dynamicViewVariant:s}){const{handlersRef:c}=dc(),u=yr(),d=S.useRef(null);d.current||(d.current=Let.provide({actors:{syncManualLayoutActorLogic:zte.provide({actions:{"trigger:OnChange":((x,w)=>{c.current.onChange?.(w)})}})}}));const p=cS(d.current,{id:"diagram",systemId:"diagram",input:{xystore:u,view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,dynamicViewVariant:s}}),f=Er();Xj(()=>{p.send({type:"update.features",features:f})},[f],Jn),S.useEffect(()=>{p.send({type:"update.inputs",inputs:{zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a}})},[r,n,o,a]);const g=Cn(p,Bet),b=S.useMemo(()=>cet({view:e,where:i,nodesSelectable:a,dynamicViewVariant:g}),[e,i,a,g]);return Zj(()=>{p.send({type:"update.view",...b})},[p,b]),O2(()=>{s&&p.send({type:"switch.dynamicViewVariant",variant:s})},[s]),y.jsxs(Yje,{value:p,children:[y.jsx(vG,{children:y.jsx(Het,{actorRef:p,children:l})}),y.jsx(qet,{actorRef:p})]})}const Fet=e=>e.context.features.enableReadOnly||e.context.activeWalkthrough?{viewId:e.context.view.id,toggledFeatures:{...e.context.toggledFeatures,enableReadOnly:!0}}:{viewId:e.context.view.id,toggledFeatures:e.context.toggledFeatures};function Het({children:e,actorRef:r}){const{viewId:n,toggledFeatures:o}=Cn(r,Fet,ut),a=qo().findView(n);return y.jsx(j7.Provider,{value:a,children:y.jsx(Ep,{overrides:o,children:e})})}function qet({actorRef:e}){const r=Yt(),{onNavigateTo:n,onOpenSource:o,handlersRef:a}=dc();sl("openSource",({params:l})=>o?.(l)),sl("navigateTo",({viewId:l})=>n?.(l));const i=S.useRef(!1);return S.useEffect(()=>{if(i.current)return;let l=e.on("initialized",({instance:s})=>{try{a.current.onInitialized?.({diagram:r,xyflow:s})}catch(c){console.error(c)}i.current=!0,l?.unsubscribe(),l=null});return()=>{l?.unsubscribe()}},[e,r]),null}const m4={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const r=e/255;return e>.03928?Math.pow((r+.055)/1.055,2.4):r/12.92},hue2rgb:(e,r,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:r,l:n},o)=>{if(!r)return n*2.55;e/=360,r/=100,n/=100;const a=n<.5?n*(1+r):n+r-n*r,i=2*n-a;switch(o){case"r":return m4.hue2rgb(i,a,e+1/3)*255;case"g":return m4.hue2rgb(i,a,e)*255;case"b":return m4.hue2rgb(i,a,e-1/3)*255}},rgb2hsl:({r:e,g:r,b:n},o)=>{e/=255,r/=255,n/=255;const a=Math.max(e,r,n),i=Math.min(e,r,n),l=(a+i)/2;if(o==="l")return l*100;if(a===i)return 0;const s=a-i,c=l>.5?s/(2-a-i):s/(a+i);if(o==="s")return c*100;switch(a){case e:return((r-n)/s+(r<n?6:0))*60;case r:return((n-e)/s+2)*60;case n:return((e-r)/s+4)*60;default:return-1}}},Uet={clamp:(e,r,n)=>r>n?Math.min(r,Math.max(n,e)):Math.min(n,Math.max(r,e)),round:e=>Math.round(e*1e10)/1e10},Vet={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},Nt={channel:m4,lang:Uet,unit:Vet},zu={};for(let e=0;e<=255;e++)zu[e]=Nt.unit.dec2hex(e);const Mo={ALL:0,RGB:1,HSL:2};class Yet{constructor(){this.type=Mo.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Mo.ALL}is(r){return this.type===r}}class Wet{constructor(r,n){this.color=n,this.changed=!1,this.data=r,this.type=new Yet}set(r,n){return this.color=n,this.changed=!1,this.data=r,this.type.type=Mo.ALL,this}_ensureHSL(){const r=this.data,{h:n,s:o,l:a}=r;n===void 0&&(r.h=Nt.channel.rgb2hsl(r,"h")),o===void 0&&(r.s=Nt.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=Nt.channel.rgb2hsl(r,"l"))}_ensureRGB(){const r=this.data,{r:n,g:o,b:a}=r;n===void 0&&(r.r=Nt.channel.hsl2rgb(r,"r")),o===void 0&&(r.g=Nt.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=Nt.channel.hsl2rgb(r,"b"))}get r(){const r=this.data,n=r.r;return!this.type.is(Mo.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"r"))}get g(){const r=this.data,n=r.g;return!this.type.is(Mo.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"g"))}get b(){const r=this.data,n=r.b;return!this.type.is(Mo.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"b"))}get h(){const r=this.data,n=r.h;return!this.type.is(Mo.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"h"))}get s(){const r=this.data,n=r.s;return!this.type.is(Mo.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"s"))}get l(){const r=this.data,n=r.l;return!this.type.is(Mo.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set(Mo.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Mo.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Mo.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Mo.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Mo.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Mo.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}const g4=new Wet({r:0,g:0,b:0,a:0},"transparent"),Pm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const r=e.match(Pm.re);if(!r)return;const n=r[1],o=parseInt(n,16),a=n.length,i=a%4===0,l=a>4,s=l?1:17,c=l?8:4,u=i?0:-1,d=l?255:15;return g4.set({r:(o>>c*(u+3)&d)*s,g:(o>>c*(u+2)&d)*s,b:(o>>c*(u+1)&d)*s,a:i?(o&d)*s/255:1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`#${zu[Math.round(r)]}${zu[Math.round(n)]}${zu[Math.round(o)]}${zu[Math.round(a*255)]}`:`#${zu[Math.round(r)]}${zu[Math.round(n)]}${zu[Math.round(o)]}`}},Dp={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const r=e.match(Dp.hueRe);if(r){const[,n,o]=r;switch(o){case"grad":return Nt.channel.clamp.h(parseFloat(n)*.9);case"rad":return Nt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Nt.channel.clamp.h(parseFloat(n)*360)}}return Nt.channel.clamp.h(parseFloat(e))},parse:e=>{const r=e.charCodeAt(0);if(r!==104&&r!==72)return;const n=e.match(Dp.re);if(!n)return;const[,o,a,i,l,s]=n;return g4.set({h:Dp._hue2deg(o),s:Nt.channel.clamp.s(parseFloat(a)),l:Nt.channel.clamp.l(parseFloat(i)),a:l?Nt.channel.clamp.a(s?parseFloat(l)/100:parseFloat(l)):1},e)},stringify:e=>{const{h:r,s:n,l:o,a}=e;return a<1?`hsla(${Nt.lang.round(r)}, ${Nt.lang.round(n)}%, ${Nt.lang.round(o)}%, ${a})`:`hsl(${Nt.lang.round(r)}, ${Nt.lang.round(n)}%, ${Nt.lang.round(o)}%)`}},Gy={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const r=Gy.colors[e];if(r)return Pm.parse(r)},stringify:e=>{const r=Pm.stringify(e);for(const n in Gy.colors)if(Gy.colors[n]===r)return n}},Xy={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const r=e.charCodeAt(0);if(r!==114&&r!==82)return;const n=e.match(Xy.re);if(!n)return;const[,o,a,i,l,s,c,u,d]=n;return g4.set({r:Nt.channel.clamp.r(a?parseFloat(o)*2.55:parseFloat(o)),g:Nt.channel.clamp.g(l?parseFloat(i)*2.55:parseFloat(i)),b:Nt.channel.clamp.b(c?parseFloat(s)*2.55:parseFloat(s)),a:u?Nt.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`rgba(${Nt.lang.round(r)}, ${Nt.lang.round(n)}, ${Nt.lang.round(o)}, ${Nt.lang.round(a)})`:`rgb(${Nt.lang.round(r)}, ${Nt.lang.round(n)}, ${Nt.lang.round(o)})`}},vl={format:{keyword:Gy,hex:Pm,rgb:Xy,rgba:Xy,hsl:Dp,hsla:Dp},parse:e=>{if(typeof e!="string")return e;const r=Pm.parse(e)||Xy.parse(e)||Dp.parse(e)||Gy.parse(e);if(r)return r;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Mo.HSL)||e.data.r===void 0?Dp.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Xy.stringify(e):Pm.stringify(e)},jte=(e,r)=>{const n=vl.parse(e);for(const o in r)n[o]=Nt.channel.clamp[o](r[o]);return vl.stringify(n)},Get=(e,r,n=0,o=1)=>{if(typeof e!="number")return jte(e,{a:r});const a=g4.set({r:Nt.channel.clamp.r(e),g:Nt.channel.clamp.g(r),b:Nt.channel.clamp.b(n),a:Nt.channel.clamp.a(o)});return vl.stringify(a)},Fte=e=>vl.format.hex.stringify(vl.parse(e)),Hte=e=>vl.format.rgba.stringify(vl.parse(e)),Xet=(e,r)=>{const n=vl.parse(e),o={};for(const a in r)r[a]&&(o[a]=n[a]+r[a]);return jte(e,o)},qte=(e,r,n=50)=>{const{r:o,g:a,b:i,a:l}=vl.parse(e),{r:s,g:c,b:u,a:d}=vl.parse(r),p=n/100,f=p*2-1,g=l-d,b=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,x=1-b,w=o*b+s*x,k=a*b+c*x,C=i*b+u*x,_=l*p+d*(1-p);return Get(w,k,C,_)},Ute=(e,r)=>{const n=vl.parse(e),o={},a=(i,l,s)=>l>0?(s-i)*l/100:i*l/100;for(const i in r)o[i]=a(n[i],r[i],Nt.channel.max[i]);return Xet(e,o)},Vte=e=>`[data-mantine-color-scheme="${e}"]`,Yte=Vte("dark"),Ket=Vte("light"),Zet=5,Qet=(e,r,n,o)=>{const a=s=>Fte(Ute(s,{l:-22-5*o,s:-10-6*o})),i=s=>Fte(Ute(s,{l:-20-3*o,s:-3-6*o})),l=`:where(${e} [data-likec4-color="${r}"][data-compound-depth="${o}"])`;return`
${l} {
  --likec4-palette-fill: ${i(n.elements.fill)};
  --likec4-palette-stroke: ${i(n.elements.stroke)};
}
${Yte} ${l} {
  --likec4-palette-fill: ${a(n.elements.fill)};
  --likec4-palette-stroke: ${a(n.elements.stroke)};
}
  `.trim()};function Jet(e,r,n){const{elements:o,relationships:a}=n,i=`:where(${e} [data-likec4-color=${r}])`;return[`
${i} {
  --likec4-palette-fill: ${o.fill};
  --likec4-palette-stroke: ${o.stroke};
  --likec4-palette-hiContrast: ${o.hiContrast};
  --likec4-palette-loContrast: ${o.loContrast};
  --likec4-palette-relation-stroke: ${a.line};
  --likec4-palette-relation-label: ${a.label};
  --likec4-palette-relation-label-bg: ${a.labelBg};
}
${Ket} ${i} {
  --likec4-palette-relation-stroke-selected: ${Hte(qte(a.line,"black",85))};
}
${Yte} ${i} {
  --likec4-palette-relation-stroke-selected: ${Hte(qte(a.line,"white",70))};
}

  `.trim(),...EDe(1,Zet+1).map(l=>Qet(e,r,n,l))].join(`
`)}function ett(e,r){return kn(r.colors,WE(),No(([n,o])=>Jet(e,n,o)),mU(`
`))}const ttt=S.memo(({id:e})=>{const r=`#${e}`,n=np()?.(),{theme:o}=yte(),a=ett(r,o);return y.jsx("style",{type:"text/css","data-likec4-colors":e,dangerouslySetInnerHTML:{__html:a},nonce:n})});function Wte(e,r){if(e._type==="dynamic")try{if(r??=e.variant,r==="sequence")return e.sequenceLayout.bounds}catch{}return e.bounds}function Gte({children:e}){const r=S.useContext(tw);return S.useEffect(()=>{r||console.warn("LikeC4Diagram must be a child of MantineProvider")},[]),r?y.jsx(y.Fragment,{children:e}):y.jsx(k9,{defaultColorScheme:"auto",children:e})}Gte.displayName="EnsureMantine";const wR=({reducedMotion:e="user",children:r})=>{const n=np()?.();return y.jsx(Zqe,{features:WVe,strict:!0,children:y.jsx(eUe,{reducedMotion:e,...n&&{nonce:n},children:r})})};function Xte({onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:l,onNodeClick:s,onNodeContextMenu:c,onOpenSource:u,onBurgerMenuClick:d,onInitialized:p,view:f,className:g,readonly:b=!0,controls:x=!b,fitView:w=!0,fitViewPadding:k=x?z2.withControls:z2.default,pannable:C=!0,zoomable:_=!0,background:T="dots",enableElementTags:R=!1,enableFocusMode:A=!1,enableElementDetails:D=!1,enableRelationshipDetails:N=!1,enableRelationshipBrowser:$=!1,nodesDraggable:O=!b,nodesSelectable:j=!b||A||!!l||!!s,enableNotations:L=!1,showNavigationButtons:Y=!!l,enableDynamicViewWalkthrough:M=!1,dynamicViewVariant:q,enableSearch:z=!1,initialWidth:H,initialHeight:U,experimentalEdgeEditing:K=!b,reduceGraphics:V="auto",renderIcon:X,where:Z,reactFlowProps:B,renderNodes:W,children:Q}){const J=sG(),ne=S.useRef(null),te=Wte(f,q),ee=rtt(k);ne.current==null&&(ne.current={defaultEdges:[],defaultNodes:[],initialWidth:H??te.width,initialHeight:U??te.height,initialFitViewOptions:{maxZoom:GC,minZoom:fl,padding:ee},initialMaxZoom:GC,initialMinZoom:fl});const pe=V==="auto"?C&&(te.width??1)*(te.height??1)>6e6&&f.nodes.some(Te=>Te.children?.length>0):V;return y.jsx(Gte,{children:y.jsx(wR,{...pe&&{reducedMotion:"always"},children:y.jsx(OEe,{value:X??null,children:y.jsx(Ep,{features:{enableFitView:w,enableReadOnly:b,enableFocusMode:A,enableNavigateTo:!!l,enableElementDetails:D,enableRelationshipDetails:N,enableRelationshipBrowser:$,enableSearch:z,enableNavigationButtons:Y&&!!l,enableDynamicViewWalkthrough:f._type==="dynamic"&&M,enableEdgeEditing:K,enableNotations:L,enableVscode:!!u,enableControls:x,enableElementTags:R},children:y.jsxs(XKe,{handlers:{onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:l,onNodeClick:s,onNodeContextMenu:c,onOpenSource:u,onBurgerMenuClick:d,onInitialized:p},children:[y.jsx(ttt,{id:J}),y.jsx(iBe,{rootSelector:`#${J}`,children:y.jsx(JLe,{id:J,className:g,reduceGraphics:pe,children:y.jsx(Ix,{fitView:w,...ne.current,children:y.jsxs(jet,{view:f,zoomable:_,pannable:C,fitViewPadding:ee,nodesSelectable:j,where:Z??null,dynamicViewVariant:q,children:[y.jsx(tet,{nodesDraggable:O,nodesSelectable:j,background:T,reactFlowProps:B,renderNodes:W,children:Q}),y.jsx(ite,{})]})})})})]})})})})})}const Kte=e=>typeof e=="number"?`${e}px`:e;function rtt(e){return Jj(()=>XE(e)?gDe(e,Kte):Kte(e),[e],ut)}function ntt({children:e,likec4model:r}){return y.jsx(ny.Provider,{value:r,children:e})}const kR=({children:e})=>y.jsx("div",{style:{margin:"1rem 0"},children:y.jsx("div",{style:{margin:"0 auto",display:"inline-block",padding:"2rem",background:"rgba(250,82,82,.15)",color:"#ffa8a8"},children:e})}),ott=({viewId:e})=>y.jsxs(kR,{children:["View ",y.jsx("code",{children:e})," not found"]}),att=e=>{throw new Error("LikeC4View is not available SSR")};var Zte={exports:{}},_R,Qte;function itt(){if(Qte)return _R;Qte=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _R=e,_R}var ER,Jte;function ltt(){if(Jte)return ER;Jte=1;var e=itt();function r(){}function n(){}return n.resetWarningCache=r,ER=function(){function o(l,s,c,u,d,p){if(p!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function a(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return i.PropTypes=i,i},ER}var ere;function stt(){return ere||(ere=1,Zte.exports=ltt()()),Zte.exports}var ctt=stt();const xl=LE(ctt);var utt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tre(e,r){return e(r={exports:{}},r.exports),r.exports}var dtt=tre((function(e){(function(r){var n=function(w,k,C){if(!c(k)||d(k)||p(k)||f(k)||s(k))return k;var _,T=0,R=0;if(u(k))for(_=[],R=k.length;T<R;T++)_.push(n(w,k[T],C));else for(var A in _={},k)Object.prototype.hasOwnProperty.call(k,A)&&(_[w(A,C)]=n(w,k[A],C));return _},o=function(w){return g(w)?w:(w=w.replace(/[\-_\s]+(.)?/g,(function(k,C){return C?C.toUpperCase():""}))).substr(0,1).toLowerCase()+w.substr(1)},a=function(w){var k=o(w);return k.substr(0,1).toUpperCase()+k.substr(1)},i=function(w,k){return(function(C,_){var T=(_=_||{}).separator||"_",R=_.split||/(?=[A-Z])/;return C.split(R).join(T)})(w,k).toLowerCase()},l=Object.prototype.toString,s=function(w){return typeof w=="function"},c=function(w){return w===Object(w)},u=function(w){return l.call(w)=="[object Array]"},d=function(w){return l.call(w)=="[object Date]"},p=function(w){return l.call(w)=="[object RegExp]"},f=function(w){return l.call(w)=="[object Boolean]"},g=function(w){return(w-=0)==w},b=function(w,k){var C=k&&"process"in k?k.process:k;return typeof C!="function"?w:function(_,T){return C(_,w,T)}},x={camelize:o,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(w,k){return n(b(o,k),w)},decamelizeKeys:function(w,k){return n(b(i,k),w,k)},pascalizeKeys:function(w,k){return n(b(a,k),w)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=x:r.humps=x})(utt)})).decamelize,ptt=function(e){if(Array.isArray(e))return e},htt=function(e,r){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,i=void 0;try{for(var l,s=e[Symbol.iterator]();!(o=(l=s.next()).done)&&(n.push(l.value),!r||n.length!==r);o=!0);}catch(c){a=!0,i=c}finally{try{o||s.return==null||s.return()}finally{if(a)throw i}}return n}},rre=function(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=e[n];return o},ftt=function(e,r){if(e){if(typeof e=="string")return rre(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rre(e,r):void 0}},mtt=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},gtt=function(e,r){return ptt(e)||htt(e,r)||ftt(e,r)||mtt()},nre=tre((function(e){function r(){return e.exports=r=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])}return n},r.apply(this,arguments)}e.exports=r})),ytt=function(e,r){if(e==null)return{};var n,o,a={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],r.indexOf(n)>=0||(a[n]=e[n]);return a},ore=function(e,r){if(e==null)return{};var n,o,a=ytt(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},btt=S.createContext(null);function are(e){var r=e.children,n=r===void 0?"":r,o=ore(e,["children"]);return typeof n!="string"&&(n=att()),Qr.createElement("template",nre({},o,{dangerouslySetInnerHTML:{__html:n}}))}function ire(e){var r=e.root,n=e.children;return Fi.createPortal(n===void 0?null:n,r)}function vtt(e){var r=S.forwardRef((function(n,o){var a,i,l=n.mode,s=l===void 0?"open":l,c=n.delegatesFocus,u=c!==void 0&&c,d=n.styleSheets,p=d===void 0?[]:d,f=n.ssr,g=f!==void 0&&f,b=n.children,x=ore(n,["mode","delegatesFocus","styleSheets","ssr","children"]),w=(i=S.useRef((a=o)&&a.current),S.useEffect((function(){a&&(a.current=i.current)}),[a]),i),k=S.useState(null),C=gtt(k,2),_=C[0],T=C[1],R="node_".concat(s).concat(u);return S.useLayoutEffect((function(){if(w.current)try{if(typeof o=="function"&&o(w.current),g){var A=w.current.shadowRoot;return void T(A)}var D=w.current.attachShadow({mode:s,delegatesFocus:u});p.length>0&&(D.adoptedStyleSheets=p),T(D)}catch(N){(function($){var O=$.error,j=$.styleSheets,L=$.root;switch(O.name){case"NotSupportedError":j.length>0&&(L.adoptedStyleSheets=j);break;default:throw O}})({error:N,styleSheets:p,root:_})}}),[o,w,p]),Qr.createElement(Qr.Fragment,null,Qr.createElement(e.tag,nre({key:R,ref:w},x),(_||g)&&Qr.createElement(btt.Provider,{value:_},g?Qr.createElement(are,{shadowroot:s,shadowrootmode:s},e.render({root:_,ssr:g,children:b})):Qr.createElement(ire,{root:_},e.render({root:_,ssr:g,children:b})))))}));return r.propTypes={mode:xl.oneOf(["open","closed"]),delegatesFocus:xl.bool,styleSheets:xl.arrayOf(xl.instanceOf(globalThis.CSSStyleSheet)),ssr:xl.bool,children:xl.node},r}are.propTypes={children:xl.oneOfType([xl.string,xl.node])},ire.propTypes={root:xl.object.isRequired,children:xl.node};var SR=new Map;function xtt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(o){return o.children};return new Proxy(e,{get:function(o,a){var i=dtt(a,{separator:"-"}),l="".concat(r,"-").concat(i);return SR.has(l)||SR.set(l,vtt({tag:i,render:n})),SR.get(l)}})}var wtt=xtt();const ktt='@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}',lre=`@layer reset,base,mantine,xyflow,tokens,recipes,utilities;@layer mantine{:root{color-scheme:var(--mantine-color-scheme)}*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width:31.25em){body{-webkit-text-size-adjust:100%}}@media(prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-heading-text-wrap: wrap;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-disabled: var(--mantine-color-dark-6);--mantine-color-disabled-color: var(--mantine-color-dark-3);--mantine-color-disabled-border: var(--mantine-color-dark-4);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-9);--mantine-color-dark-light: rgba(46, 46, 46, .15);--mantine-color-dark-light-hover: rgba(46, 46, 46, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(66, 66, 66, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: #000;--mantine-color-body: #fff;--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-color-blue-6);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-black);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-disabled: var(--mantine-color-gray-2);--mantine-color-disabled-color: var(--mantine-color-gray-5);--mantine-color-disabled-border: var(--mantine-color-gray-3);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(46, 46, 46, .1);--mantine-color-dark-light-hover: rgba(46, 46, 46, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(46, 46, 46, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline-end:0;padding-inline-start:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden;opacity:var(--thumb-opacity)}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color: var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{inset:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media(hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media(hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background-color:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_437b6484{--section-height-xs: calc(1.125rem * var(--mantine-scale));--section-height-sm: calc(1.375rem * var(--mantine-scale));--section-height-md: calc(1.75rem * var(--mantine-scale));--section-height-lg: calc(2.125rem * var(--mantine-scale));--section-height-xl: calc(2.75rem * var(--mantine-scale));--section-height-input-xs: calc(1.875rem * var(--mantine-scale));--section-height-input-sm: calc(2.25rem * var(--mantine-scale));--section-height-input-md: calc(2.625rem * var(--mantine-scale));--section-height-input-lg: calc(3.125rem * var(--mantine-scale));--section-height-input-xl: calc(3.75rem * var(--mantine-scale));--section-padding-x-xs: calc(.375rem * var(--mantine-scale));--section-padding-x-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-md: calc(.625rem * var(--mantine-scale));--section-padding-x-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-xl: calc(1rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-disabled-bg: var(--mantine-color-disabled);--input-disabled-color: var(--mantine-color-disabled-color);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}.m_6c018570[data-size=xs] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(5.5625rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz, var(--input-fz, var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--_input-fz: calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:transparent}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_6c018570[data-size=xs] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(5.5625rem * var(--mantine-scale))}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent;color:var(--mantine-color-bright)}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media(hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media(hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media(hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media(hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;inset-block:0;inset-inline-start:calc(50% - 1.5px);inset-inline-end:0;height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important;--app-shell-aside-offset: 0rem !important;--app-shell-footer-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;overflow-wrap:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color, var(--mantine-color-error))}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_5e5256ee:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_5e5256ee:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_5e5256ee{position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_bf2d988c:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_bf2d988c:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_bf295423{position:absolute;inset:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media(hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media(hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: calc(1.875rem * var(--mantine-scale));--section-height-sm: calc(2.25rem * var(--mantine-scale));--section-height-md: calc(2.625rem * var(--mantine-scale));--section-height-lg: calc(3.125rem * var(--mantine-scale));--section-height-xl: calc(3.75rem * var(--mantine-scale));--section-height-compact-xs: calc(1.375rem * var(--mantine-scale));--section-height-compact-sm: calc(1.625rem * var(--mantine-scale));--section-height-compact-md: calc(1.875rem * var(--mantine-scale));--section-height-compact-lg: calc(2.125rem * var(--mantine-scale));--section-height-compact-xl: calc(2.5rem * var(--mantine-scale));--section-padding-x-xs: calc(.875rem * var(--mantine-scale));--section-padding-x-sm: calc(1.125rem * var(--mantine-scale));--section-padding-x-md: calc(1.375rem * var(--mantine-scale));--section-padding-x-lg: calc(1.625rem * var(--mantine-scale));--section-padding-x-xl: calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media(hover:hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media(hover:hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;inset:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;inset:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){display:grid;grid-template-columns:1fr min(100%,var(--container-size)) 1fr;margin-inline:auto}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1 / -1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;inset:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed;text-align:center;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);--list-marker-gap: var(--mantine-spacing-lg);list-style-position:outside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0;padding-inline-start:var(--list-marker-gap)}.m_abbac491:where([data-with-padding]){padding-inline-start:calc(var(--list-marker-gap) + var(--mantine-spacing-md))}.m_abb6bec2{white-space:normal;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);user-select:none}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media(hover:hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media(hover:none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media(hover:hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media(hover:hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media(hover:none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;inset:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration, .1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:m_e0fb7a86 1s linear infinite}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-start-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration: 0ms}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease,stroke-dasharray var(--rp-transition-duration) ease,stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";inset:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media(hover:hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media(hover:none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";inset:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";inset:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);--slider-track-disabled-bg: var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md);--stepper-outline-thickness: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-dark-5)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{transition:background-color .15s ease;flex:1;height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color)}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.21875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);--switch-disabled-color: var(--mantine-color-disabled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-5);--switch-text-color: var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";width:40%;height:40%;background-color:var(--switch-bg);position:absolute;border-radius:var(--switch-radius);top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;border-spacing:0;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:500}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media(hover:hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media(hover:none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){position:sticky;top:var(--table-sticky-header-offset, 0);background-color:var(--mantine-color-body)}:where([data-with-table-border]) .m_b242d975[data-sticky]{position:sticky;top:var(--table-sticky-header-offset, 0);z-index:4;border-top:none}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";display:block;position:absolute;left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{display:flex;flex-direction:column;--toc-depth-offset: .8em}.m_375a65ef{display:block;padding:.3em .8em;font-size:var(--toc-size, var(--mantine-font-size-md));border-radius:var(--toc-radius, var(--mantine-radius-default));padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)),.8em)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap)}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;user-select:none}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{flex:1;text-align:center}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media(hover:hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:transparent}}@media(hover:none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media(hover:hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media(hover:none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media(hover:hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media(hover:none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media(hover:hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media(hover:none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d08caa0 :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}}@layer xyflow{.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}}@layer base{:root{--made-with-panda: "🐼"}*,:before,:after,::backdrop{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--gradient-from-position: ;--gradient-to-position: ;--gradient-via-position: ;--scroll-snap-strictness: proximity;--border-spacing-x: 0;--border-spacing-y: 0;--translate-x: 0;--translate-y: 0;--rotate: 0;--rotate-x: 0;--rotate-y: 0;--skew-x: 0;--skew-y: 0;--scale-x: 1;--scale-y: 1}:where(:root,:host){--likec4-app-font-default: "IBM Plex Sans",'ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'}:where([data-likec4-text-size=xs]){--likec4-text-size: var(--font-sizes-likec4-xs)}:where([data-likec4-text-size=sm]){--likec4-text-size: var(--font-sizes-likec4-sm)}:where([data-likec4-text-size=md]){--likec4-text-size: var(--font-sizes-likec4-md)}:where([data-likec4-text-size=lg]){--likec4-text-size: var(--font-sizes-likec4-lg)}:where([data-likec4-text-size=xl]){--likec4-text-size: var(--font-sizes-likec4-xl)}:where([data-likec4-spacing=xs]){--likec4-spacing: var(--spacing-likec4-xs)}:where([data-likec4-spacing=sm]){--likec4-spacing: var(--spacing-likec4-sm)}:where([data-likec4-spacing=md]){--likec4-spacing: var(--spacing-likec4-md)}:where([data-likec4-spacing=lg]){--likec4-spacing: var(--spacing-likec4-lg)}:where([data-likec4-spacing=xl]){--likec4-spacing: var(--spacing-likec4-xl)}.likec4-shadow-root{--mantine-font-family: var(--likec4-app-font, var(--likec4-app-font-default));--mantine-font-family-headings: var(--likec4-app-font, var(--likec4-app-font-default));display:contents}.likec4-shadow-root dialog{color:var(--mantine-color-text)}.likec4-edge-label-container{position:absolute;top:var(--spacing-0);left:var(--spacing-0);width:auto;height:auto}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-edge-label-container{display:none}:where([data-likec4-zoom-small=true]) .likec4-edge-label-container{display:none}.likec4-root{padding:var(--spacing-0);margin:var(--spacing-0);border:0px solid transparent;overflow:hidden;position:relative;container-name:likec4-root;container-type:size;width:100%;height:100%}.likec4-root .react-flow{--xy-background-color: var(--colors-likec4-background);--xy-background-pattern-color: var(--colors-likec4-background-pattern, var(--colors-likec4-background));contain:paint}.likec4-root .react-flow:is(.bg-transparent){--xy-background-color: transparent !important;background:var(--colors-transparent)!important}.likec4-root .react-flow:is(.not-initialized){opacity:0}.likec4-root .react-flow .react-flow__pane{-webkit-user-select:none;user-select:none}.likec4-root .react-flow :where(.react-flow__nodes,.react-flow__edges,.react-flow__edgelabel-renderer){display:contents}.likec4-root .react-flow .react-flow__node.draggable:has(.likec4-compound-node){cursor:default}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-stroke-width: 3;--xy-edge-stroke: var(--likec4-palette-relation-stroke);--xy-edge-stroke-selected: var(--likec4-palette-relation-stroke-selected);--xy-edge-label-color: var(--likec4-palette-relation-label);--xy-edge-label-background-color: var(--likec4-palette-relation-label-bg)}[data-mantine-color-scheme=dark] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 50%, transparent)}[data-mantine-color-scheme=light] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-color: color-mix(in srgb, var(--likec4-palette-relation-label), rgba(255 255 255 / .85) 40%);--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 60%, transparent)}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container):is([data-likec4-hovered=true],[data-edge-active=true]){--xy-edge-stroke-width: 4;--xy-edge-stroke: var(--likec4-palette-relation-stroke-selected)}.likec4-root :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){opacity:.25}.likec4-root .likec4-edge-label-container:is([data-likec4-dimmed]){opacity:.25}.likec4-root:is([data-likec4-reduced-graphics]) .hide-on-reduced-graphics{display:none}.likec4-root :where(.relationships-browser,.likec4-relationship-details) .react-flow__attribution{display:none}.likec4-root .mantine-ActionIcon-icon .tabler-icon{width:75%;height:75%}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:plus-lighter}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:screen}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]):has(.react-flow__node-seq-parallel) :where(.react-flow__edges>svg){mix-blend-mode:color-burn}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:luminosity}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:color-burn}.likec4-static-view .react-flow .react-flow__attribution{display:none}:where(:root,:host){--likec4-text-size: 1.2rem;--likec4-palette-fill: #3b82f6;--likec4-palette-stroke: #2563eb;--likec4-palette-hiContrast: #eff6ff;--likec4-palette-loContrast: #bfdbfe;--likec4-palette-relation-stroke: #6E6E6E;--likec4-palette-relation-label: #C6C6C6;--likec4-palette-relation-label-bg: #18191b;--mantine-scale: 1;--likec4-palette-outline: var(--likec4-palette-loContrast);--likec4-spacing: ;--text-fz: ;--likec4-icon-size: }}@layer tokens{:where(:root,:host){--spacing-0: 0px;--spacing-1: 4px;--spacing-2: 8px;--spacing-3: 12px;--spacing-4: 16px;--spacing-5: 20px;--spacing-6: 24px;--spacing-7: 28px;--spacing-8: 32px;--spacing-9: 36px;--spacing-10: 40px;--spacing-likec4-xs: 8px;--spacing-likec4-sm: 10px;--spacing-likec4-md: 16px;--spacing-likec4-lg: 24px;--spacing-likec4-xl: 32px;--spacing-0\\.5: 2px;--spacing-1\\.5: 6px;--spacing-2\\.5: 10px;--spacing-3\\.5: 14px;--spacing-4\\.5: 18px;--spacing-xxs: calc(.5rem * var(--mantine-scale));--spacing-xs: calc(.625rem * var(--mantine-scale));--spacing-sm: calc(.75rem * var(--mantine-scale));--spacing-md: calc(1rem * var(--mantine-scale));--spacing-lg: calc(1.25rem * var(--mantine-scale));--spacing-xl: calc(2rem * var(--mantine-scale));--font-sizes-xxs: .625rem;--font-sizes-xs: calc(.75rem * var(--mantine-scale));--font-sizes-sm: calc(.875rem * var(--mantine-scale));--font-sizes-md: calc(1rem * var(--mantine-scale));--font-sizes-lg: calc(1.125rem * var(--mantine-scale));--font-sizes-xl: calc(1.25rem * var(--mantine-scale));--font-sizes-likec4-xs: .833rem;--font-sizes-likec4-sm: 1rem;--font-sizes-likec4-md: 1.2rem;--font-sizes-likec4-lg: 1.44rem;--font-sizes-likec4-xl: 1.73rem;--line-heights-1: 1;--line-heights-xs: 1.4;--line-heights-sm: 1.45;--line-heights-md: 1.55;--line-heights-lg: 1.6;--line-heights-xl: 1.65;--colors-mantine-colors-primary: var(--mantine-primary-color-6);--colors-mantine-colors-primary-filled: var(--mantine-primary-color-filled);--colors-mantine-colors-primary-filled-hover: var(--mantine-primary-color-filled-hover);--colors-mantine-colors-primary-light: var(--mantine-primary-color-light);--colors-mantine-colors-primary-light-hover: var(--mantine-primary-color-light-hover);--colors-mantine-colors-primary-light-color: var(--mantine-primary-color-light-color);--colors-mantine-colors-primary-outline: var(--mantine-primary-color-outline);--colors-mantine-colors-primary-outline-hover: var(--mantine-primary-color-outline-hover);--colors-mantine-colors-primary\\[0\\]: var(--mantine-primary-color-0);--colors-mantine-colors-primary\\[1\\]: var(--mantine-primary-color-1);--colors-mantine-colors-primary\\[2\\]: var(--mantine-primary-color-2);--colors-mantine-colors-primary\\[3\\]: var(--mantine-primary-color-3);--colors-mantine-colors-primary\\[4\\]: var(--mantine-primary-color-4);--colors-mantine-colors-primary\\[5\\]: var(--mantine-primary-color-5);--colors-mantine-colors-primary\\[6\\]: var(--mantine-primary-color-6);--colors-mantine-colors-primary\\[7\\]: var(--mantine-primary-color-7);--colors-mantine-colors-primary\\[8\\]: var(--mantine-primary-color-8);--colors-mantine-colors-primary\\[9\\]: var(--mantine-primary-color-9);--colors-mantine-colors-white: var(--mantine-color-white);--colors-mantine-colors-text: var(--mantine-color-text);--colors-mantine-colors-body: var(--mantine-color-body);--colors-mantine-colors-dimmed: var(--mantine-color-dimmed);--colors-mantine-colors-default-border: var(--mantine-color-default-border);--colors-mantine-colors-default-color: var(--mantine-color-default-color);--colors-mantine-colors-default-hover: var(--mantine-color-default-hover);--colors-mantine-colors-default: var(--mantine-color-default);--colors-mantine-colors-error: var(--mantine-color-error);--colors-mantine-colors-placeholder: var(--mantine-color-placeholder);--colors-mantine-colors-gray: var(--mantine-color-gray-6);--colors-mantine-colors-gray-filled: var(--mantine-color-gray-filled);--colors-mantine-colors-gray-filled-hover: var(--mantine-color-gray-filled-hover);--colors-mantine-colors-gray-light: var(--mantine-color-gray-light);--colors-mantine-colors-gray-light-hover: var(--mantine-color-gray-light-hover);--colors-mantine-colors-gray-light-color: var(--mantine-color-gray-light-color);--colors-mantine-colors-gray-outline: var(--mantine-color-gray-outline);--colors-mantine-colors-gray-outline-hover: var(--mantine-color-gray-outline-hover);--colors-mantine-colors-gray\\[0\\]: var(--mantine-color-gray-0);--colors-mantine-colors-gray\\[1\\]: var(--mantine-color-gray-1);--colors-mantine-colors-gray\\[2\\]: var(--mantine-color-gray-2);--colors-mantine-colors-gray\\[3\\]: var(--mantine-color-gray-3);--colors-mantine-colors-gray\\[4\\]: var(--mantine-color-gray-4);--colors-mantine-colors-gray\\[5\\]: var(--mantine-color-gray-5);--colors-mantine-colors-gray\\[6\\]: var(--mantine-color-gray-6);--colors-mantine-colors-gray\\[7\\]: var(--mantine-color-gray-7);--colors-mantine-colors-gray\\[8\\]: var(--mantine-color-gray-8);--colors-mantine-colors-gray\\[9\\]: var(--mantine-color-gray-9);--colors-mantine-colors-dark: var(--mantine-color-dark-6);--colors-mantine-colors-dark-filled: var(--mantine-color-dark-filled);--colors-mantine-colors-dark-filled-hover: var(--mantine-color-dark-filled-hover);--colors-mantine-colors-dark-light: var(--mantine-color-dark-light);--colors-mantine-colors-dark-light-hover: var(--mantine-color-dark-light-hover);--colors-mantine-colors-dark-light-color: var(--mantine-color-dark-light-color);--colors-mantine-colors-dark-outline: var(--mantine-color-dark-outline);--colors-mantine-colors-dark-outline-hover: var(--mantine-color-dark-outline-hover);--colors-mantine-colors-dark\\[0\\]: var(--mantine-color-dark-0);--colors-mantine-colors-dark\\[1\\]: var(--mantine-color-dark-1);--colors-mantine-colors-dark\\[2\\]: var(--mantine-color-dark-2);--colors-mantine-colors-dark\\[3\\]: var(--mantine-color-dark-3);--colors-mantine-colors-dark\\[4\\]: var(--mantine-color-dark-4);--colors-mantine-colors-dark\\[5\\]: var(--mantine-color-dark-5);--colors-mantine-colors-dark\\[6\\]: var(--mantine-color-dark-6);--colors-mantine-colors-dark\\[7\\]: var(--mantine-color-dark-7);--colors-mantine-colors-dark\\[8\\]: var(--mantine-color-dark-8);--colors-mantine-colors-dark\\[9\\]: var(--mantine-color-dark-9);--colors-mantine-colors-orange: var(--mantine-color-orange-6);--colors-mantine-colors-orange-filled: var(--mantine-color-orange-filled);--colors-mantine-colors-orange-filled-hover: var(--mantine-color-orange-filled-hover);--colors-mantine-colors-orange-light: var(--mantine-color-orange-light);--colors-mantine-colors-orange-light-hover: var(--mantine-color-orange-light-hover);--colors-mantine-colors-orange-light-color: var(--mantine-color-orange-light-color);--colors-mantine-colors-orange-outline: var(--mantine-color-orange-outline);--colors-mantine-colors-orange-outline-hover: var(--mantine-color-orange-outline-hover);--colors-mantine-colors-orange\\[0\\]: var(--mantine-color-orange-0);--colors-mantine-colors-orange\\[1\\]: var(--mantine-color-orange-1);--colors-mantine-colors-orange\\[2\\]: var(--mantine-color-orange-2);--colors-mantine-colors-orange\\[3\\]: var(--mantine-color-orange-3);--colors-mantine-colors-orange\\[4\\]: var(--mantine-color-orange-4);--colors-mantine-colors-orange\\[5\\]: var(--mantine-color-orange-5);--colors-mantine-colors-orange\\[6\\]: var(--mantine-color-orange-6);--colors-mantine-colors-orange\\[7\\]: var(--mantine-color-orange-7);--colors-mantine-colors-orange\\[8\\]: var(--mantine-color-orange-8);--colors-mantine-colors-orange\\[9\\]: var(--mantine-color-orange-9);--colors-mantine-colors-teal: var(--mantine-color-teal-6);--colors-mantine-colors-teal-filled: var(--mantine-color-teal-filled);--colors-mantine-colors-teal-filled-hover: var(--mantine-color-teal-filled-hover);--colors-mantine-colors-teal-light: var(--mantine-color-teal-light);--colors-mantine-colors-teal-light-hover: var(--mantine-color-teal-light-hover);--colors-mantine-colors-teal-light-color: var(--mantine-color-teal-light-color);--colors-mantine-colors-teal-outline: var(--mantine-color-teal-outline);--colors-mantine-colors-teal-outline-hover: var(--mantine-color-teal-outline-hover);--colors-mantine-colors-teal\\[0\\]: var(--mantine-color-teal-0);--colors-mantine-colors-teal\\[1\\]: var(--mantine-color-teal-1);--colors-mantine-colors-teal\\[2\\]: var(--mantine-color-teal-2);--colors-mantine-colors-teal\\[3\\]: var(--mantine-color-teal-3);--colors-mantine-colors-teal\\[4\\]: var(--mantine-color-teal-4);--colors-mantine-colors-teal\\[5\\]: var(--mantine-color-teal-5);--colors-mantine-colors-teal\\[6\\]: var(--mantine-color-teal-6);--colors-mantine-colors-teal\\[7\\]: var(--mantine-color-teal-7);--colors-mantine-colors-teal\\[8\\]: var(--mantine-color-teal-8);--colors-mantine-colors-teal\\[9\\]: var(--mantine-color-teal-9);--colors-mantine-colors-red: var(--mantine-color-red-6);--colors-mantine-colors-red-filled: var(--mantine-color-red-filled);--colors-mantine-colors-red-filled-hover: var(--mantine-color-red-filled-hover);--colors-mantine-colors-red-light: var(--mantine-color-red-light);--colors-mantine-colors-red-light-hover: var(--mantine-color-red-light-hover);--colors-mantine-colors-red-light-color: var(--mantine-color-red-light-color);--colors-mantine-colors-red-outline: var(--mantine-color-red-outline);--colors-mantine-colors-red-outline-hover: var(--mantine-color-red-outline-hover);--colors-mantine-colors-red\\[0\\]: var(--mantine-color-red-0);--colors-mantine-colors-red\\[1\\]: var(--mantine-color-red-1);--colors-mantine-colors-red\\[2\\]: var(--mantine-color-red-2);--colors-mantine-colors-red\\[3\\]: var(--mantine-color-red-3);--colors-mantine-colors-red\\[4\\]: var(--mantine-color-red-4);--colors-mantine-colors-red\\[5\\]: var(--mantine-color-red-5);--colors-mantine-colors-red\\[6\\]: var(--mantine-color-red-6);--colors-mantine-colors-red\\[7\\]: var(--mantine-color-red-7);--colors-mantine-colors-red\\[8\\]: var(--mantine-color-red-8);--colors-mantine-colors-red\\[9\\]: var(--mantine-color-red-9);--colors-mantine-colors-green: var(--mantine-color-green-6);--colors-mantine-colors-green-filled: var(--mantine-color-green-filled);--colors-mantine-colors-green-filled-hover: var(--mantine-color-green-filled-hover);--colors-mantine-colors-green-light: var(--mantine-color-green-light);--colors-mantine-colors-green-light-hover: var(--mantine-color-green-light-hover);--colors-mantine-colors-green-light-color: var(--mantine-color-green-light-color);--colors-mantine-colors-green-outline: var(--mantine-color-green-outline);--colors-mantine-colors-green-outline-hover: var(--mantine-color-green-outline-hover);--colors-mantine-colors-green\\[0\\]: var(--mantine-color-green-0);--colors-mantine-colors-green\\[1\\]: var(--mantine-color-green-1);--colors-mantine-colors-green\\[2\\]: var(--mantine-color-green-2);--colors-mantine-colors-green\\[3\\]: var(--mantine-color-green-3);--colors-mantine-colors-green\\[4\\]: var(--mantine-color-green-4);--colors-mantine-colors-green\\[5\\]: var(--mantine-color-green-5);--colors-mantine-colors-green\\[6\\]: var(--mantine-color-green-6);--colors-mantine-colors-green\\[7\\]: var(--mantine-color-green-7);--colors-mantine-colors-green\\[8\\]: var(--mantine-color-green-8);--colors-mantine-colors-green\\[9\\]: var(--mantine-color-green-9);--colors-mantine-colors-yellow: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow-filled: var(--mantine-color-yellow-filled);--colors-mantine-colors-yellow-filled-hover: var(--mantine-color-yellow-filled-hover);--colors-mantine-colors-yellow-light: var(--mantine-color-yellow-light);--colors-mantine-colors-yellow-light-hover: var(--mantine-color-yellow-light-hover);--colors-mantine-colors-yellow-light-color: var(--mantine-color-yellow-light-color);--colors-mantine-colors-yellow-outline: var(--mantine-color-yellow-outline);--colors-mantine-colors-yellow-outline-hover: var(--mantine-color-yellow-outline-hover);--colors-mantine-colors-yellow\\[0\\]: var(--mantine-color-yellow-0);--colors-mantine-colors-yellow\\[1\\]: var(--mantine-color-yellow-1);--colors-mantine-colors-yellow\\[2\\]: var(--mantine-color-yellow-2);--colors-mantine-colors-yellow\\[3\\]: var(--mantine-color-yellow-3);--colors-mantine-colors-yellow\\[4\\]: var(--mantine-color-yellow-4);--colors-mantine-colors-yellow\\[5\\]: var(--mantine-color-yellow-5);--colors-mantine-colors-yellow\\[6\\]: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow\\[7\\]: var(--mantine-color-yellow-7);--colors-mantine-colors-yellow\\[8\\]: var(--mantine-color-yellow-8);--colors-mantine-colors-yellow\\[9\\]: var(--mantine-color-yellow-9);--colors-transparent: transparent;--colors-none: none;--borders-none: none;--borders-transparent: 0px solid transparent;--borders-default: 1px solid var(--colors-mantine-colors-default-border);--radii-0: 0px;--radii-xs: .125rem;--radii-sm: .25rem;--radii-md: .5rem;--radii-lg: 1rem;--radii-xl: 2rem;--fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--fonts-body: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4-element: var(--likec4-element-font, var(--fonts-likec4));--fonts-likec4-compound: var(--likec4-compound-font, var(--fonts-likec4));--fonts-likec4-relation: var(--likec4-relation-font, var(--fonts-likec4));--easings-default: cubic-bezier(.4, 0, .2, 1);--easings-in: cubic-bezier(.4, 0, 1, 1);--easings-out: cubic-bezier(0, 0, .4, 1);--easings-in-out: cubic-bezier(.5, 0, .2, 1);--durations-fastest: 50ms;--durations-faster: .1s;--durations-fast: .13s;--durations-normal: .17s;--durations-slow: .3s;--durations-slower: .4s;--durations-slowest: .5s;--shadows-none: none;--shadows-xs: 0 1px 3px rgb(0 0 0/5%), 0 1px 2px rgb(0 0 0/10%);--shadows-sm: 0 1px 3px rgb(0 0 0/5%), 0 10px 15px -5px rgb(0 0 0/5%), 0 7px 7px -5px rgb(0 0 0/4%);--shadows-md: 0 1px 3px rgb(0 0 0/5%), 0 20px 25px -5px rgb(0 0 0/5%), 0 10px 10px -5px rgb(0 0 0/4%);--shadows-lg: 0 1px 3px rgb(0 0 0/5%), 0 28px 23px -7px rgb(0 0 0/5%), 0 12px 12px -7px rgb(0 0 0/4%);--shadows-xl: 0 1px 3px rgb(0 0 0/5%), 0 36px 28px -7px rgb(0 0 0/5%), 0 17px 17px -7px rgb(0 0 0/4%);--breakpoints-xs: 36em;--breakpoints-sm: 48em;--breakpoints-md: 62em;--breakpoints-lg: 75em;--breakpoints-xl: 88em;--sizes-breakpoint-xs: 36em;--sizes-breakpoint-sm: 48em;--sizes-breakpoint-md: 62em;--sizes-breakpoint-lg: 75em;--sizes-breakpoint-xl: 88em;--colors-amber-1: var(--colors-amber-light-1);--colors-amber-2: var(--colors-amber-light-2);--colors-amber-3: var(--colors-amber-light-3);--colors-amber-4: var(--colors-amber-light-4);--colors-amber-5: var(--colors-amber-light-5);--colors-amber-6: var(--colors-amber-light-6);--colors-amber-7: var(--colors-amber-light-7);--colors-amber-8: var(--colors-amber-light-8);--colors-amber-9: var(--colors-amber-light-9);--colors-amber-10: var(--colors-amber-light-10);--colors-amber-11: var(--colors-amber-light-11);--colors-amber-12: var(--colors-amber-light-12);--colors-amber-light-1: #fefdfb;--colors-amber-light-2: #fefbe9;--colors-amber-light-3: #fff7c2;--colors-amber-light-4: #ffee9c;--colors-amber-light-5: #fbe577;--colors-amber-light-6: #f3d673;--colors-amber-light-7: #e9c162;--colors-amber-light-8: #e2a336;--colors-amber-light-9: #ffc53d;--colors-amber-light-10: #ffba18;--colors-amber-light-11: #ab6400;--colors-amber-light-12: #4f3422;--colors-amber-light-a-1: #c0800004;--colors-amber-light-a-2: #f4d10016;--colors-amber-light-a-3: #ffde003d;--colors-amber-light-a-4: #ffd40063;--colors-amber-light-a-5: #f8cf0088;--colors-amber-light-a-6: #eab5008c;--colors-amber-light-a-7: #dc9b009d;--colors-amber-light-a-8: #da8a00c9;--colors-amber-light-a-9: #ffb300c2;--colors-amber-light-a-10: #ffb300e7;--colors-amber-light-a-11: #ab6400;--colors-amber-light-a-12: #341500dd;--colors-amber-light-p3-1: color(display-p3 .995 .992 .985);--colors-amber-light-p3-2: color(display-p3 .994 .986 .921);--colors-amber-light-p3-3: color(display-p3 .994 .969 .782);--colors-amber-light-p3-4: color(display-p3 .989 .937 .65);--colors-amber-light-p3-5: color(display-p3 .97 .902 .527);--colors-amber-light-p3-6: color(display-p3 .936 .844 .506);--colors-amber-light-p3-7: color(display-p3 .89 .762 .443);--colors-amber-light-p3-8: color(display-p3 .85 .65 .3);--colors-amber-light-p3-9: color(display-p3 1 .77 .26);--colors-amber-light-p3-10: color(display-p3 .959 .741 .274);--colors-amber-light-p3-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-12: color(display-p3 .294 .208 .145);--colors-amber-light-p3-a-1: color(display-p3 .757 .514 .024 / .016);--colors-amber-light-p3-a-2: color(display-p3 .902 .804 .008 / .079);--colors-amber-light-p3-a-3: color(display-p3 .965 .859 .004 / .22);--colors-amber-light-p3-a-4: color(display-p3 .969 .82 .004 / .35);--colors-amber-light-p3-a-5: color(display-p3 .933 .796 .004 / .475);--colors-amber-light-p3-a-6: color(display-p3 .875 .682 .004 / .495);--colors-amber-light-p3-a-7: color(display-p3 .804 .573 0 / .557);--colors-amber-light-p3-a-8: color(display-p3 .788 .502 0 / .699);--colors-amber-light-p3-a-9: color(display-p3 1 .686 0 / .742);--colors-amber-light-p3-a-10: color(display-p3 .945 .643 0 / .726);--colors-amber-light-p3-a-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-a-12: color(display-p3 .294 .208 .145);--colors-amber-dark-1: #16120c;--colors-amber-dark-2: #1d180f;--colors-amber-dark-3: #302008;--colors-amber-dark-4: #3f2700;--colors-amber-dark-5: #4d3000;--colors-amber-dark-6: #5c3d05;--colors-amber-dark-7: #714f19;--colors-amber-dark-8: #8f6424;--colors-amber-dark-9: #ffc53d;--colors-amber-dark-10: #ffd60a;--colors-amber-dark-11: #ffca16;--colors-amber-dark-12: #ffe7b3;--colors-amber-dark-a-1: #e63c0006;--colors-amber-dark-a-2: #fd9b000d;--colors-amber-dark-a-3: #fa820022;--colors-amber-dark-a-4: #fc820032;--colors-amber-dark-a-5: #fd8b0041;--colors-amber-dark-a-6: #fd9b0051;--colors-amber-dark-a-7: #ffab2567;--colors-amber-dark-a-8: #ffae3587;--colors-amber-dark-a-9: #ffc53d;--colors-amber-dark-a-10: #ffd60a;--colors-amber-dark-a-11: #ffca16;--colors-amber-dark-a-12: #ffe7b3;--colors-amber-dark-p3-1: color(display-p3 .082 .07 .05);--colors-amber-dark-p3-2: color(display-p3 .111 .094 .064);--colors-amber-dark-p3-3: color(display-p3 .178 .128 .049);--colors-amber-dark-p3-4: color(display-p3 .239 .156 0);--colors-amber-dark-p3-5: color(display-p3 .29 .193 0);--colors-amber-dark-p3-6: color(display-p3 .344 .245 .076);--colors-amber-dark-p3-7: color(display-p3 .422 .314 .141);--colors-amber-dark-p3-8: color(display-p3 .535 .399 .189);--colors-amber-dark-p3-9: color(display-p3 1 .77 .26);--colors-amber-dark-p3-10: color(display-p3 1 .87 .15);--colors-amber-dark-p3-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-12: color(display-p3 .984 .909 .726);--colors-amber-dark-p3-a-1: color(display-p3 .992 .298 0 / .017);--colors-amber-dark-p3-a-2: color(display-p3 .988 .651 0 / .047);--colors-amber-dark-p3-a-3: color(display-p3 1 .6 0 / .118);--colors-amber-dark-p3-a-4: color(display-p3 1 .557 0 / .185);--colors-amber-dark-p3-a-5: color(display-p3 1 .592 0 / .24);--colors-amber-dark-p3-a-6: color(display-p3 1 .659 .094 / .299);--colors-amber-dark-p3-a-7: color(display-p3 1 .714 .263 / .383);--colors-amber-dark-p3-a-8: color(display-p3 .996 .729 .306 / .5);--colors-amber-dark-p3-a-9: color(display-p3 1 .769 .259);--colors-amber-dark-p3-a-10: color(display-p3 1 .871 .149);--colors-amber-dark-p3-a-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-a-12: color(display-p3 .984 .909 .726);--colors-amber-a-1: var(--colors-amber-light-a-1);--colors-amber-a-2: var(--colors-amber-light-a-2);--colors-amber-a-3: var(--colors-amber-light-a-3);--colors-amber-a-4: var(--colors-amber-light-a-4);--colors-amber-a-5: var(--colors-amber-light-a-5);--colors-amber-a-6: var(--colors-amber-light-a-6);--colors-amber-a-7: var(--colors-amber-light-a-7);--colors-amber-a-8: var(--colors-amber-light-a-8);--colors-amber-a-9: var(--colors-amber-light-a-9);--colors-amber-a-10: var(--colors-amber-light-a-10);--colors-amber-a-11: var(--colors-amber-light-a-11);--colors-amber-a-12: var(--colors-amber-light-a-12);--colors-amber-p3-1: var(--colors-amber-light-p3-1);--colors-amber-p3-2: var(--colors-amber-light-p3-2);--colors-amber-p3-3: var(--colors-amber-light-p3-3);--colors-amber-p3-4: var(--colors-amber-light-p3-4);--colors-amber-p3-5: var(--colors-amber-light-p3-5);--colors-amber-p3-6: var(--colors-amber-light-p3-6);--colors-amber-p3-7: var(--colors-amber-light-p3-7);--colors-amber-p3-8: var(--colors-amber-light-p3-8);--colors-amber-p3-9: var(--colors-amber-light-p3-9);--colors-amber-p3-10: var(--colors-amber-light-p3-10);--colors-amber-p3-11: var(--colors-amber-light-p3-11);--colors-amber-p3-12: var(--colors-amber-light-p3-12);--colors-amber-p3-a-1: var(--colors-amber-light-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-light-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-light-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-light-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-light-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-light-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-light-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-light-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-light-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-light-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-light-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-light-p3-a-12);--colors-blue-1: var(--colors-blue-light-1);--colors-blue-2: var(--colors-blue-light-2);--colors-blue-3: var(--colors-blue-light-3);--colors-blue-4: var(--colors-blue-light-4);--colors-blue-5: var(--colors-blue-light-5);--colors-blue-6: var(--colors-blue-light-6);--colors-blue-7: var(--colors-blue-light-7);--colors-blue-8: var(--colors-blue-light-8);--colors-blue-9: var(--colors-blue-light-9);--colors-blue-10: var(--colors-blue-light-10);--colors-blue-11: var(--colors-blue-light-11);--colors-blue-12: var(--colors-blue-light-12);--colors-blue-light-1: #fbfdff;--colors-blue-light-2: #f4faff;--colors-blue-light-3: #e6f4fe;--colors-blue-light-4: #d5efff;--colors-blue-light-5: #c2e5ff;--colors-blue-light-6: #acd8fc;--colors-blue-light-7: #8ec8f6;--colors-blue-light-8: #5eb1ef;--colors-blue-light-9: #0090ff;--colors-blue-light-10: #0588f0;--colors-blue-light-11: #0d74ce;--colors-blue-light-12: #113264;--colors-blue-light-a-1: #0080ff04;--colors-blue-light-a-2: #008cff0b;--colors-blue-light-a-3: #008ff519;--colors-blue-light-a-4: #009eff2a;--colors-blue-light-a-5: #0093ff3d;--colors-blue-light-a-6: #0088f653;--colors-blue-light-a-7: #0083eb71;--colors-blue-light-a-8: #0084e6a1;--colors-blue-light-a-9: #0090ff;--colors-blue-light-a-10: #0086f0fa;--colors-blue-light-a-11: #006dcbf2;--colors-blue-light-a-12: #002359ee;--colors-blue-light-p3-1: color(display-p3 .986 .992 .999);--colors-blue-light-p3-2: color(display-p3 .96 .979 .998);--colors-blue-light-p3-3: color(display-p3 .912 .956 .991);--colors-blue-light-p3-4: color(display-p3 .853 .932 1);--colors-blue-light-p3-5: color(display-p3 .788 .894 .998);--colors-blue-light-p3-6: color(display-p3 .709 .843 .976);--colors-blue-light-p3-7: color(display-p3 .606 .777 .947);--colors-blue-light-p3-8: color(display-p3 .451 .688 .917);--colors-blue-light-p3-9: color(display-p3 .247 .556 .969);--colors-blue-light-p3-10: color(display-p3 .234 .523 .912);--colors-blue-light-p3-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-12: color(display-p3 .102 .193 .379);--colors-blue-light-p3-a-1: color(display-p3 .024 .514 1 / .016);--colors-blue-light-p3-a-2: color(display-p3 .024 .514 .906 / .04);--colors-blue-light-p3-a-3: color(display-p3 .012 .506 .914 / .087);--colors-blue-light-p3-a-4: color(display-p3 .008 .545 1 / .146);--colors-blue-light-p3-a-5: color(display-p3 .004 .502 .984 / .212);--colors-blue-light-p3-a-6: color(display-p3 .004 .463 .922 / .291);--colors-blue-light-p3-a-7: color(display-p3 .004 .431 .863 / .393);--colors-blue-light-p3-a-8: color(display-p3 0 .427 .851 / .55);--colors-blue-light-p3-a-9: color(display-p3 0 .412 .961 / .753);--colors-blue-light-p3-a-10: color(display-p3 0 .376 .886 / .765);--colors-blue-light-p3-a-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-a-12: color(display-p3 .102 .193 .379);--colors-blue-dark-1: #0d1520;--colors-blue-dark-2: #111927;--colors-blue-dark-3: #0d2847;--colors-blue-dark-4: #003362;--colors-blue-dark-5: #004074;--colors-blue-dark-6: #104d87;--colors-blue-dark-7: #205d9e;--colors-blue-dark-8: #2870bd;--colors-blue-dark-9: #0090ff;--colors-blue-dark-10: #3b9eff;--colors-blue-dark-11: #70b8ff;--colors-blue-dark-12: #c2e6ff;--colors-blue-dark-a-1: #004df211;--colors-blue-dark-a-2: #1166fb18;--colors-blue-dark-a-3: #0077ff3a;--colors-blue-dark-a-4: #0075ff57;--colors-blue-dark-a-5: #0081fd6b;--colors-blue-dark-a-6: #0f89fd7f;--colors-blue-dark-a-7: #2a91fe98;--colors-blue-dark-a-8: #3094feb9;--colors-blue-dark-a-9: #0090ff;--colors-blue-dark-a-10: #3b9eff;--colors-blue-dark-a-11: #70b8ff;--colors-blue-dark-a-12: #c2e6ff;--colors-blue-dark-p3-1: color(display-p3 .057 .081 .122);--colors-blue-dark-p3-2: color(display-p3 .072 .098 .147);--colors-blue-dark-p3-3: color(display-p3 .078 .154 .27);--colors-blue-dark-p3-4: color(display-p3 .033 .197 .37);--colors-blue-dark-p3-5: color(display-p3 .08 .245 .441);--colors-blue-dark-p3-6: color(display-p3 .14 .298 .511);--colors-blue-dark-p3-7: color(display-p3 .195 .361 .6);--colors-blue-dark-p3-8: color(display-p3 .239 .434 .72);--colors-blue-dark-p3-9: color(display-p3 .247 .556 .969);--colors-blue-dark-p3-10: color(display-p3 .344 .612 .973);--colors-blue-dark-p3-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-12: color(display-p3 .788 .898 .99);--colors-blue-dark-p3-a-1: color(display-p3 0 .333 1 / .059);--colors-blue-dark-p3-a-2: color(display-p3 .114 .435 .988 / .085);--colors-blue-dark-p3-a-3: color(display-p3 .122 .463 1 / .219);--colors-blue-dark-p3-a-4: color(display-p3 0 .467 1 / .324);--colors-blue-dark-p3-a-5: color(display-p3 .098 .51 1 / .4);--colors-blue-dark-p3-a-6: color(display-p3 .224 .557 1 / .475);--colors-blue-dark-p3-a-7: color(display-p3 .294 .584 1 / .572);--colors-blue-dark-p3-a-8: color(display-p3 .314 .592 1 / .702);--colors-blue-dark-p3-a-9: color(display-p3 .251 .573 .996 / .967);--colors-blue-dark-p3-a-10: color(display-p3 .357 .631 1 / .971);--colors-blue-dark-p3-a-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-a-12: color(display-p3 .788 .898 .99);--colors-blue-a-1: var(--colors-blue-light-a-1);--colors-blue-a-2: var(--colors-blue-light-a-2);--colors-blue-a-3: var(--colors-blue-light-a-3);--colors-blue-a-4: var(--colors-blue-light-a-4);--colors-blue-a-5: var(--colors-blue-light-a-5);--colors-blue-a-6: var(--colors-blue-light-a-6);--colors-blue-a-7: var(--colors-blue-light-a-7);--colors-blue-a-8: var(--colors-blue-light-a-8);--colors-blue-a-9: var(--colors-blue-light-a-9);--colors-blue-a-10: var(--colors-blue-light-a-10);--colors-blue-a-11: var(--colors-blue-light-a-11);--colors-blue-a-12: var(--colors-blue-light-a-12);--colors-blue-p3-1: var(--colors-blue-light-p3-1);--colors-blue-p3-2: var(--colors-blue-light-p3-2);--colors-blue-p3-3: var(--colors-blue-light-p3-3);--colors-blue-p3-4: var(--colors-blue-light-p3-4);--colors-blue-p3-5: var(--colors-blue-light-p3-5);--colors-blue-p3-6: var(--colors-blue-light-p3-6);--colors-blue-p3-7: var(--colors-blue-light-p3-7);--colors-blue-p3-8: var(--colors-blue-light-p3-8);--colors-blue-p3-9: var(--colors-blue-light-p3-9);--colors-blue-p3-10: var(--colors-blue-light-p3-10);--colors-blue-p3-11: var(--colors-blue-light-p3-11);--colors-blue-p3-12: var(--colors-blue-light-p3-12);--colors-blue-p3-a-1: var(--colors-blue-light-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-light-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-light-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-light-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-light-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-light-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-light-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-light-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-light-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-light-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-light-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-light-p3-a-12);--colors-crimson-1: var(--colors-crimson-light-1);--colors-crimson-2: var(--colors-crimson-light-2);--colors-crimson-3: var(--colors-crimson-light-3);--colors-crimson-4: var(--colors-crimson-light-4);--colors-crimson-5: var(--colors-crimson-light-5);--colors-crimson-6: var(--colors-crimson-light-6);--colors-crimson-7: var(--colors-crimson-light-7);--colors-crimson-8: var(--colors-crimson-light-8);--colors-crimson-9: var(--colors-crimson-light-9);--colors-crimson-10: var(--colors-crimson-light-10);--colors-crimson-11: var(--colors-crimson-light-11);--colors-crimson-12: var(--colors-crimson-light-12);--colors-crimson-light-1: #fffcfd;--colors-crimson-light-2: #fef7f9;--colors-crimson-light-3: #ffe9f0;--colors-crimson-light-4: #fedce7;--colors-crimson-light-5: #facedd;--colors-crimson-light-6: #f3bed1;--colors-crimson-light-7: #eaacc3;--colors-crimson-light-8: #e093b2;--colors-crimson-light-9: #e93d82;--colors-crimson-light-10: #df3478;--colors-crimson-light-11: #cb1d63;--colors-crimson-light-12: #621639;--colors-crimson-light-a-1: #ff005503;--colors-crimson-light-a-2: #e0004008;--colors-crimson-light-a-3: #ff005216;--colors-crimson-light-a-4: #f8005123;--colors-crimson-light-a-5: #e5004f31;--colors-crimson-light-a-6: #d0004b41;--colors-crimson-light-a-7: #bf004753;--colors-crimson-light-a-8: #b6004a6c;--colors-crimson-light-a-9: #e2005bc2;--colors-crimson-light-a-10: #d70056cb;--colors-crimson-light-a-11: #c4004fe2;--colors-crimson-light-a-12: #530026e9;--colors-crimson-light-p3-1: color(display-p3 .998 .989 .992);--colors-crimson-light-p3-2: color(display-p3 .991 .969 .976);--colors-crimson-light-p3-3: color(display-p3 .987 .917 .941);--colors-crimson-light-p3-4: color(display-p3 .975 .866 .904);--colors-crimson-light-p3-5: color(display-p3 .953 .813 .864);--colors-crimson-light-p3-6: color(display-p3 .921 .755 .817);--colors-crimson-light-p3-7: color(display-p3 .88 .683 .761);--colors-crimson-light-p3-8: color(display-p3 .834 .592 .694);--colors-crimson-light-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-light-p3-10: color(display-p3 .807 .266 .468);--colors-crimson-light-p3-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-12: color(display-p3 .352 .111 .221);--colors-crimson-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-crimson-light-p3-a-2: color(display-p3 .757 .02 .267 / .032);--colors-crimson-light-p3-a-3: color(display-p3 .859 .008 .294 / .083);--colors-crimson-light-p3-a-4: color(display-p3 .827 .008 .298 / .134);--colors-crimson-light-p3-a-5: color(display-p3 .753 .008 .275 / .189);--colors-crimson-light-p3-a-6: color(display-p3 .682 .004 .247 / .244);--colors-crimson-light-p3-a-7: color(display-p3 .62 .004 .251 / .318);--colors-crimson-light-p3-a-8: color(display-p3 .6 .004 .251 / .408);--colors-crimson-light-p3-a-9: color(display-p3 .776 0 .298 / .702);--colors-crimson-light-p3-a-10: color(display-p3 .737 0 .275 / .734);--colors-crimson-light-p3-a-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-a-12: color(display-p3 .352 .111 .221);--colors-crimson-dark-1: #191114;--colors-crimson-dark-2: #201318;--colors-crimson-dark-3: #381525;--colors-crimson-dark-4: #4d122f;--colors-crimson-dark-5: #5c1839;--colors-crimson-dark-6: #6d2545;--colors-crimson-dark-7: #873356;--colors-crimson-dark-8: #b0436e;--colors-crimson-dark-9: #e93d82;--colors-crimson-dark-10: #ee518a;--colors-crimson-dark-11: #ff92ad;--colors-crimson-dark-12: #fdd3e8;--colors-crimson-dark-a-1: #f4126709;--colors-crimson-dark-a-2: #f22f7a11;--colors-crimson-dark-a-3: #fe2a8b2a;--colors-crimson-dark-a-4: #fd158741;--colors-crimson-dark-a-5: #fd278f51;--colors-crimson-dark-a-6: #fe459763;--colors-crimson-dark-a-7: #fd559b7f;--colors-crimson-dark-a-8: #fe5b9bab;--colors-crimson-dark-a-9: #fe418de8;--colors-crimson-dark-a-10: #ff5693ed;--colors-crimson-dark-a-11: #ff92ad;--colors-crimson-dark-a-12: #ffd5eafd;--colors-crimson-dark-p3-1: color(display-p3 .093 .068 .078);--colors-crimson-dark-p3-2: color(display-p3 .117 .078 .095);--colors-crimson-dark-p3-3: color(display-p3 .203 .091 .143);--colors-crimson-dark-p3-4: color(display-p3 .277 .087 .182);--colors-crimson-dark-p3-5: color(display-p3 .332 .115 .22);--colors-crimson-dark-p3-6: color(display-p3 .394 .162 .268);--colors-crimson-dark-p3-7: color(display-p3 .489 .222 .336);--colors-crimson-dark-p3-8: color(display-p3 .638 .289 .429);--colors-crimson-dark-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-dark-p3-10: color(display-p3 .864 .364 .539);--colors-crimson-dark-p3-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-12: color(display-p3 .966 .834 .906);--colors-crimson-dark-p3-a-1: color(display-p3 .984 .071 .463 / .03);--colors-crimson-dark-p3-a-2: color(display-p3 .996 .282 .569 / .055);--colors-crimson-dark-p3-a-3: color(display-p3 .996 .227 .573 / .148);--colors-crimson-dark-p3-a-4: color(display-p3 1 .157 .569 / .227);--colors-crimson-dark-p3-a-5: color(display-p3 1 .231 .604 / .286);--colors-crimson-dark-p3-a-6: color(display-p3 1 .337 .643 / .349);--colors-crimson-dark-p3-a-7: color(display-p3 1 .416 .663 / .454);--colors-crimson-dark-p3-a-8: color(display-p3 .996 .427 .651 / .614);--colors-crimson-dark-p3-a-9: color(display-p3 1 .345 .596 / .832);--colors-crimson-dark-p3-a-10: color(display-p3 1 .42 .62 / .853);--colors-crimson-dark-p3-a-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-a-12: color(display-p3 .966 .834 .906);--colors-crimson-a-1: var(--colors-crimson-light-a-1);--colors-crimson-a-2: var(--colors-crimson-light-a-2);--colors-crimson-a-3: var(--colors-crimson-light-a-3);--colors-crimson-a-4: var(--colors-crimson-light-a-4);--colors-crimson-a-5: var(--colors-crimson-light-a-5);--colors-crimson-a-6: var(--colors-crimson-light-a-6);--colors-crimson-a-7: var(--colors-crimson-light-a-7);--colors-crimson-a-8: var(--colors-crimson-light-a-8);--colors-crimson-a-9: var(--colors-crimson-light-a-9);--colors-crimson-a-10: var(--colors-crimson-light-a-10);--colors-crimson-a-11: var(--colors-crimson-light-a-11);--colors-crimson-a-12: var(--colors-crimson-light-a-12);--colors-crimson-p3-1: var(--colors-crimson-light-p3-1);--colors-crimson-p3-2: var(--colors-crimson-light-p3-2);--colors-crimson-p3-3: var(--colors-crimson-light-p3-3);--colors-crimson-p3-4: var(--colors-crimson-light-p3-4);--colors-crimson-p3-5: var(--colors-crimson-light-p3-5);--colors-crimson-p3-6: var(--colors-crimson-light-p3-6);--colors-crimson-p3-7: var(--colors-crimson-light-p3-7);--colors-crimson-p3-8: var(--colors-crimson-light-p3-8);--colors-crimson-p3-9: var(--colors-crimson-light-p3-9);--colors-crimson-p3-10: var(--colors-crimson-light-p3-10);--colors-crimson-p3-11: var(--colors-crimson-light-p3-11);--colors-crimson-p3-12: var(--colors-crimson-light-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-light-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-light-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-light-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-light-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-light-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-light-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-light-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-light-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-light-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-light-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-light-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-light-p3-a-12);--colors-grass-1: var(--colors-grass-light-1);--colors-grass-2: var(--colors-grass-light-2);--colors-grass-3: var(--colors-grass-light-3);--colors-grass-4: var(--colors-grass-light-4);--colors-grass-5: var(--colors-grass-light-5);--colors-grass-6: var(--colors-grass-light-6);--colors-grass-7: var(--colors-grass-light-7);--colors-grass-8: var(--colors-grass-light-8);--colors-grass-9: var(--colors-grass-light-9);--colors-grass-10: var(--colors-grass-light-10);--colors-grass-11: var(--colors-grass-light-11);--colors-grass-12: var(--colors-grass-light-12);--colors-grass-light-1: #fbfefb;--colors-grass-light-2: #f5fbf5;--colors-grass-light-3: #e9f6e9;--colors-grass-light-4: #daf1db;--colors-grass-light-5: #c9e8ca;--colors-grass-light-6: #b2ddb5;--colors-grass-light-7: #94ce9a;--colors-grass-light-8: #65ba74;--colors-grass-light-9: #46a758;--colors-grass-light-10: #3e9b4f;--colors-grass-light-11: #2a7e3b;--colors-grass-light-12: #203c25;--colors-grass-light-a-1: #00c00004;--colors-grass-light-a-2: #0099000a;--colors-grass-light-a-3: #00970016;--colors-grass-light-a-4: #009f0725;--colors-grass-light-a-5: #00930536;--colors-grass-light-a-6: #008f0a4d;--colors-grass-light-a-7: #018b0f6b;--colors-grass-light-a-8: #008d199a;--colors-grass-light-a-9: #008619b9;--colors-grass-light-a-10: #007b17c1;--colors-grass-light-a-11: #006514d5;--colors-grass-light-a-12: #002006df;--colors-grass-light-p3-1: color(display-p3 .986 .996 .985);--colors-grass-light-p3-2: color(display-p3 .966 .983 .964);--colors-grass-light-p3-3: color(display-p3 .923 .965 .917);--colors-grass-light-p3-4: color(display-p3 .872 .94 .865);--colors-grass-light-p3-5: color(display-p3 .811 .908 .802);--colors-grass-light-p3-6: color(display-p3 .733 .864 .724);--colors-grass-light-p3-7: color(display-p3 .628 .803 .622);--colors-grass-light-p3-8: color(display-p3 .477 .72 .482);--colors-grass-light-p3-9: color(display-p3 .38 .647 .378);--colors-grass-light-p3-10: color(display-p3 .344 .598 .342);--colors-grass-light-p3-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-12: color(display-p3 .151 .233 .153);--colors-grass-light-p3-a-1: color(display-p3 .024 .757 .024 / .016);--colors-grass-light-p3-a-2: color(display-p3 .024 .565 .024 / .036);--colors-grass-light-p3-a-3: color(display-p3 .059 .576 .008 / .083);--colors-grass-light-p3-a-4: color(display-p3 .035 .565 .008 / .134);--colors-grass-light-p3-a-5: color(display-p3 .047 .545 .008 / .197);--colors-grass-light-p3-a-6: color(display-p3 .031 .502 .004 / .275);--colors-grass-light-p3-a-7: color(display-p3 .012 .482 .004 / .377);--colors-grass-light-p3-a-8: color(display-p3 0 .467 .008 / .522);--colors-grass-light-p3-a-9: color(display-p3 .008 .435 0 / .624);--colors-grass-light-p3-a-10: color(display-p3 .008 .388 0 / .659);--colors-grass-light-p3-a-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-a-12: color(display-p3 .151 .233 .153);--colors-grass-dark-1: #0e1511;--colors-grass-dark-2: #141a15;--colors-grass-dark-3: #1b2a1e;--colors-grass-dark-4: #1d3a24;--colors-grass-dark-5: #25482d;--colors-grass-dark-6: #2d5736;--colors-grass-dark-7: #366740;--colors-grass-dark-8: #3e7949;--colors-grass-dark-9: #46a758;--colors-grass-dark-10: #53b365;--colors-grass-dark-11: #71d083;--colors-grass-dark-12: #c2f0c2;--colors-grass-dark-a-1: #00de1205;--colors-grass-dark-a-2: #5ef7780a;--colors-grass-dark-a-3: #70fe8c1b;--colors-grass-dark-a-4: #57ff802c;--colors-grass-dark-a-5: #68ff8b3b;--colors-grass-dark-a-6: #71ff8f4b;--colors-grass-dark-a-7: #77fd925d;--colors-grass-dark-a-8: #77fd9070;--colors-grass-dark-a-9: #65ff82a1;--colors-grass-dark-a-10: #72ff8dae;--colors-grass-dark-a-11: #89ff9fcd;--colors-grass-dark-a-12: #ceffceef;--colors-grass-dark-p3-1: color(display-p3 .062 .083 .067);--colors-grass-dark-p3-2: color(display-p3 .083 .103 .085);--colors-grass-dark-p3-3: color(display-p3 .118 .163 .122);--colors-grass-dark-p3-4: color(display-p3 .142 .225 .15);--colors-grass-dark-p3-5: color(display-p3 .178 .279 .186);--colors-grass-dark-p3-6: color(display-p3 .217 .337 .224);--colors-grass-dark-p3-7: color(display-p3 .258 .4 .264);--colors-grass-dark-p3-8: color(display-p3 .302 .47 .305);--colors-grass-dark-p3-9: color(display-p3 .38 .647 .378);--colors-grass-dark-p3-10: color(display-p3 .426 .694 .426);--colors-grass-dark-p3-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-12: color(display-p3 .797 .936 .776);--colors-grass-dark-p3-a-1: color(display-p3 0 .992 .071 / .017);--colors-grass-dark-p3-a-2: color(display-p3 .482 .996 .584 / .038);--colors-grass-dark-p3-a-3: color(display-p3 .549 .992 .588 / .106);--colors-grass-dark-p3-a-4: color(display-p3 .51 .996 .557 / .169);--colors-grass-dark-p3-a-5: color(display-p3 .553 1 .588 / .227);--colors-grass-dark-p3-a-6: color(display-p3 .584 1 .608 / .29);--colors-grass-dark-p3-a-7: color(display-p3 .604 1 .616 / .358);--colors-grass-dark-p3-a-8: color(display-p3 .608 1 .62 / .433);--colors-grass-dark-p3-a-9: color(display-p3 .573 1 .569 / .622);--colors-grass-dark-p3-a-10: color(display-p3 .6 .996 .6 / .673);--colors-grass-dark-p3-a-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-a-12: color(display-p3 .797 .936 .776);--colors-grass-a-1: var(--colors-grass-light-a-1);--colors-grass-a-2: var(--colors-grass-light-a-2);--colors-grass-a-3: var(--colors-grass-light-a-3);--colors-grass-a-4: var(--colors-grass-light-a-4);--colors-grass-a-5: var(--colors-grass-light-a-5);--colors-grass-a-6: var(--colors-grass-light-a-6);--colors-grass-a-7: var(--colors-grass-light-a-7);--colors-grass-a-8: var(--colors-grass-light-a-8);--colors-grass-a-9: var(--colors-grass-light-a-9);--colors-grass-a-10: var(--colors-grass-light-a-10);--colors-grass-a-11: var(--colors-grass-light-a-11);--colors-grass-a-12: var(--colors-grass-light-a-12);--colors-grass-p3-1: var(--colors-grass-light-p3-1);--colors-grass-p3-2: var(--colors-grass-light-p3-2);--colors-grass-p3-3: var(--colors-grass-light-p3-3);--colors-grass-p3-4: var(--colors-grass-light-p3-4);--colors-grass-p3-5: var(--colors-grass-light-p3-5);--colors-grass-p3-6: var(--colors-grass-light-p3-6);--colors-grass-p3-7: var(--colors-grass-light-p3-7);--colors-grass-p3-8: var(--colors-grass-light-p3-8);--colors-grass-p3-9: var(--colors-grass-light-p3-9);--colors-grass-p3-10: var(--colors-grass-light-p3-10);--colors-grass-p3-11: var(--colors-grass-light-p3-11);--colors-grass-p3-12: var(--colors-grass-light-p3-12);--colors-grass-p3-a-1: var(--colors-grass-light-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-light-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-light-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-light-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-light-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-light-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-light-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-light-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-light-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-light-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-light-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-light-p3-a-12);--colors-indigo-1: var(--colors-indigo-light-1);--colors-indigo-2: var(--colors-indigo-light-2);--colors-indigo-3: var(--colors-indigo-light-3);--colors-indigo-4: var(--colors-indigo-light-4);--colors-indigo-5: var(--colors-indigo-light-5);--colors-indigo-6: var(--colors-indigo-light-6);--colors-indigo-7: var(--colors-indigo-light-7);--colors-indigo-8: var(--colors-indigo-light-8);--colors-indigo-9: var(--colors-indigo-light-9);--colors-indigo-10: var(--colors-indigo-light-10);--colors-indigo-11: var(--colors-indigo-light-11);--colors-indigo-12: var(--colors-indigo-light-12);--colors-indigo-light-1: #fdfdfe;--colors-indigo-light-2: #f7f9ff;--colors-indigo-light-3: #edf2fe;--colors-indigo-light-4: #e1e9ff;--colors-indigo-light-5: #d2deff;--colors-indigo-light-6: #c1d0ff;--colors-indigo-light-7: #abbdf9;--colors-indigo-light-8: #8da4ef;--colors-indigo-light-9: #3e63dd;--colors-indigo-light-10: #3358d4;--colors-indigo-light-11: #3a5bc7;--colors-indigo-light-12: #1f2d5c;--colors-indigo-light-a-1: #00008002;--colors-indigo-light-a-2: #0040ff08;--colors-indigo-light-a-3: #0047f112;--colors-indigo-light-a-4: #0044ff1e;--colors-indigo-light-a-5: #0044ff2d;--colors-indigo-light-a-6: #003eff3e;--colors-indigo-light-a-7: #0037ed54;--colors-indigo-light-a-8: #0034dc72;--colors-indigo-light-a-9: #0031d2c1;--colors-indigo-light-a-10: #002ec9cc;--colors-indigo-light-a-11: #002bb7c5;--colors-indigo-light-a-12: #001046e0;--colors-indigo-light-p3-1: color(display-p3 .992 .992 .996);--colors-indigo-light-p3-2: color(display-p3 .971 .977 .998);--colors-indigo-light-p3-3: color(display-p3 .933 .948 .992);--colors-indigo-light-p3-4: color(display-p3 .885 .914 1);--colors-indigo-light-p3-5: color(display-p3 .831 .87 1);--colors-indigo-light-p3-6: color(display-p3 .767 .814 .995);--colors-indigo-light-p3-7: color(display-p3 .685 .74 .957);--colors-indigo-light-p3-8: color(display-p3 .569 .639 .916);--colors-indigo-light-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-light-p3-10: color(display-p3 .234 .343 .801);--colors-indigo-light-p3-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-12: color(display-p3 .133 .175 .348);--colors-indigo-light-p3-a-1: color(display-p3 .02 .02 .51 / .008);--colors-indigo-light-p3-a-2: color(display-p3 .024 .161 .863 / .028);--colors-indigo-light-p3-a-3: color(display-p3 .008 .239 .886 / .067);--colors-indigo-light-p3-a-4: color(display-p3 .004 .247 1 / .114);--colors-indigo-light-p3-a-5: color(display-p3 .004 .235 1 / .169);--colors-indigo-light-p3-a-6: color(display-p3 .004 .208 .984 / .232);--colors-indigo-light-p3-a-7: color(display-p3 .004 .176 .863 / .314);--colors-indigo-light-p3-a-8: color(display-p3 .004 .165 .812 / .432);--colors-indigo-light-p3-a-9: color(display-p3 0 .153 .773 / .726);--colors-indigo-light-p3-a-10: color(display-p3 0 .137 .737 / .765);--colors-indigo-light-p3-a-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-a-12: color(display-p3 .133 .175 .348);--colors-indigo-dark-1: #11131f;--colors-indigo-dark-2: #141726;--colors-indigo-dark-3: #182449;--colors-indigo-dark-4: #1d2e62;--colors-indigo-dark-5: #253974;--colors-indigo-dark-6: #304384;--colors-indigo-dark-7: #3a4f97;--colors-indigo-dark-8: #435db1;--colors-indigo-dark-9: #3e63dd;--colors-indigo-dark-10: #5472e4;--colors-indigo-dark-11: #9eb1ff;--colors-indigo-dark-12: #d6e1ff;--colors-indigo-dark-a-1: #1133ff0f;--colors-indigo-dark-a-2: #3354fa17;--colors-indigo-dark-a-3: #2f62ff3c;--colors-indigo-dark-a-4: #3566ff57;--colors-indigo-dark-a-5: #4171fd6b;--colors-indigo-dark-a-6: #5178fd7c;--colors-indigo-dark-a-7: #5a7fff90;--colors-indigo-dark-a-8: #5b81feac;--colors-indigo-dark-a-9: #4671ffdb;--colors-indigo-dark-a-10: #5c7efee3;--colors-indigo-dark-a-11: #9eb1ff;--colors-indigo-dark-a-12: #d6e1ff;--colors-indigo-dark-p3-1: color(display-p3 .068 .074 .118);--colors-indigo-dark-p3-2: color(display-p3 .081 .089 .144);--colors-indigo-dark-p3-3: color(display-p3 .105 .141 .275);--colors-indigo-dark-p3-4: color(display-p3 .129 .18 .369);--colors-indigo-dark-p3-5: color(display-p3 .163 .22 .439);--colors-indigo-dark-p3-6: color(display-p3 .203 .262 .5);--colors-indigo-dark-p3-7: color(display-p3 .245 .309 .575);--colors-indigo-dark-p3-8: color(display-p3 .285 .362 .674);--colors-indigo-dark-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-dark-p3-10: color(display-p3 .354 .445 .866);--colors-indigo-dark-p3-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-12: color(display-p3 .848 .881 .99);--colors-indigo-dark-p3-a-1: color(display-p3 .071 .212 .996 / .055);--colors-indigo-dark-p3-a-2: color(display-p3 .251 .345 .988 / .085);--colors-indigo-dark-p3-a-3: color(display-p3 .243 .404 1 / .223);--colors-indigo-dark-p3-a-4: color(display-p3 .263 .42 1 / .324);--colors-indigo-dark-p3-a-5: color(display-p3 .314 .451 1 / .4);--colors-indigo-dark-p3-a-6: color(display-p3 .361 .49 1 / .467);--colors-indigo-dark-p3-a-7: color(display-p3 .388 .51 1 / .547);--colors-indigo-dark-p3-a-8: color(display-p3 .404 .518 1 / .652);--colors-indigo-dark-p3-a-9: color(display-p3 .318 .451 1 / .824);--colors-indigo-dark-p3-a-10: color(display-p3 .404 .506 1 / .858);--colors-indigo-dark-p3-a-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-a-12: color(display-p3 .848 .881 .99);--colors-indigo-a-1: var(--colors-indigo-light-a-1);--colors-indigo-a-2: var(--colors-indigo-light-a-2);--colors-indigo-a-3: var(--colors-indigo-light-a-3);--colors-indigo-a-4: var(--colors-indigo-light-a-4);--colors-indigo-a-5: var(--colors-indigo-light-a-5);--colors-indigo-a-6: var(--colors-indigo-light-a-6);--colors-indigo-a-7: var(--colors-indigo-light-a-7);--colors-indigo-a-8: var(--colors-indigo-light-a-8);--colors-indigo-a-9: var(--colors-indigo-light-a-9);--colors-indigo-a-10: var(--colors-indigo-light-a-10);--colors-indigo-a-11: var(--colors-indigo-light-a-11);--colors-indigo-a-12: var(--colors-indigo-light-a-12);--colors-indigo-p3-1: var(--colors-indigo-light-p3-1);--colors-indigo-p3-2: var(--colors-indigo-light-p3-2);--colors-indigo-p3-3: var(--colors-indigo-light-p3-3);--colors-indigo-p3-4: var(--colors-indigo-light-p3-4);--colors-indigo-p3-5: var(--colors-indigo-light-p3-5);--colors-indigo-p3-6: var(--colors-indigo-light-p3-6);--colors-indigo-p3-7: var(--colors-indigo-light-p3-7);--colors-indigo-p3-8: var(--colors-indigo-light-p3-8);--colors-indigo-p3-9: var(--colors-indigo-light-p3-9);--colors-indigo-p3-10: var(--colors-indigo-light-p3-10);--colors-indigo-p3-11: var(--colors-indigo-light-p3-11);--colors-indigo-p3-12: var(--colors-indigo-light-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-light-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-light-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-light-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-light-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-light-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-light-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-light-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-light-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-light-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-light-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-light-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-light-p3-a-12);--colors-lime-1: var(--colors-lime-light-1);--colors-lime-2: var(--colors-lime-light-2);--colors-lime-3: var(--colors-lime-light-3);--colors-lime-4: var(--colors-lime-light-4);--colors-lime-5: var(--colors-lime-light-5);--colors-lime-6: var(--colors-lime-light-6);--colors-lime-7: var(--colors-lime-light-7);--colors-lime-8: var(--colors-lime-light-8);--colors-lime-9: var(--colors-lime-light-9);--colors-lime-10: var(--colors-lime-light-10);--colors-lime-11: var(--colors-lime-light-11);--colors-lime-12: var(--colors-lime-light-12);--colors-lime-light-1: #fcfdfa;--colors-lime-light-2: #f8faf3;--colors-lime-light-3: #eef6d6;--colors-lime-light-4: #e2f0bd;--colors-lime-light-5: #d3e7a6;--colors-lime-light-6: #c2da91;--colors-lime-light-7: #abc978;--colors-lime-light-8: #8db654;--colors-lime-light-9: #bdee63;--colors-lime-light-10: #b0e64c;--colors-lime-light-11: #5c7c2f;--colors-lime-light-12: #37401c;--colors-lime-light-a-1: #66990005;--colors-lime-light-a-2: #6b95000c;--colors-lime-light-a-3: #96c80029;--colors-lime-light-a-4: #8fc60042;--colors-lime-light-a-5: #81bb0059;--colors-lime-light-a-6: #72aa006e;--colors-lime-light-a-7: #61990087;--colors-lime-light-a-8: #559200ab;--colors-lime-light-a-9: #93e4009c;--colors-lime-light-a-10: #8fdc00b3;--colors-lime-light-a-11: #375f00d0;--colors-lime-light-a-12: #1e2900e3;--colors-lime-light-p3-1: color(display-p3 .989 .992 .981);--colors-lime-light-p3-2: color(display-p3 .975 .98 .954);--colors-lime-light-p3-3: color(display-p3 .939 .965 .851);--colors-lime-light-p3-4: color(display-p3 .896 .94 .76);--colors-lime-light-p3-5: color(display-p3 .843 .903 .678);--colors-lime-light-p3-6: color(display-p3 .778 .852 .599);--colors-lime-light-p3-7: color(display-p3 .694 .784 .508);--colors-lime-light-p3-8: color(display-p3 .585 .707 .378);--colors-lime-light-p3-9: color(display-p3 .78 .928 .466);--colors-lime-light-p3-10: color(display-p3 .734 .896 .397);--colors-lime-light-p3-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-12: color(display-p3 .222 .25 .128);--colors-lime-light-p3-a-1: color(display-p3 .412 .608 .02 / .02);--colors-lime-light-p3-a-2: color(display-p3 .514 .592 .024 / .048);--colors-lime-light-p3-a-3: color(display-p3 .584 .765 .008 / .15);--colors-lime-light-p3-a-4: color(display-p3 .561 .757 .004 / .24);--colors-lime-light-p3-a-5: color(display-p3 .514 .698 .004 / .322);--colors-lime-light-p3-a-6: color(display-p3 .443 .627 0 / .4);--colors-lime-light-p3-a-7: color(display-p3 .376 .561 .004 / .491);--colors-lime-light-p3-a-8: color(display-p3 .333 .529 0 / .624);--colors-lime-light-p3-a-9: color(display-p3 .588 .867 0 / .534);--colors-lime-light-p3-a-10: color(display-p3 .561 .827 0 / .604);--colors-lime-light-p3-a-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-a-12: color(display-p3 .222 .25 .128);--colors-lime-dark-1: #11130c;--colors-lime-dark-2: #151a10;--colors-lime-dark-3: #1f2917;--colors-lime-dark-4: #29371d;--colors-lime-dark-5: #334423;--colors-lime-dark-6: #3d522a;--colors-lime-dark-7: #496231;--colors-lime-dark-8: #577538;--colors-lime-dark-9: #bdee63;--colors-lime-dark-10: #d4ff70;--colors-lime-dark-11: #bde56c;--colors-lime-dark-12: #e3f7ba;--colors-lime-dark-a-1: #11bb0003;--colors-lime-dark-a-2: #78f7000a;--colors-lime-dark-a-3: #9bfd4c1a;--colors-lime-dark-a-4: #a7fe5c29;--colors-lime-dark-a-5: #affe6537;--colors-lime-dark-a-6: #b2fe6d46;--colors-lime-dark-a-7: #b6ff6f57;--colors-lime-dark-a-8: #b6fd6d6c;--colors-lime-dark-a-9: #caff69ed;--colors-lime-dark-a-10: #d4ff70;--colors-lime-dark-a-11: #d1fe77e4;--colors-lime-dark-a-12: #e9febff7;--colors-lime-dark-p3-1: color(display-p3 .067 .073 .048);--colors-lime-dark-p3-2: color(display-p3 .086 .1 .067);--colors-lime-dark-p3-3: color(display-p3 .13 .16 .099);--colors-lime-dark-p3-4: color(display-p3 .172 .214 .126);--colors-lime-dark-p3-5: color(display-p3 .213 .266 .153);--colors-lime-dark-p3-6: color(display-p3 .257 .321 .182);--colors-lime-dark-p3-7: color(display-p3 .307 .383 .215);--colors-lime-dark-p3-8: color(display-p3 .365 .456 .25);--colors-lime-dark-p3-9: color(display-p3 .78 .928 .466);--colors-lime-dark-p3-10: color(display-p3 .865 .995 .519);--colors-lime-dark-p3-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-12: color(display-p3 .905 .966 .753);--colors-lime-dark-p3-a-1: color(display-p3 .067 .941 0 / .009);--colors-lime-dark-p3-a-2: color(display-p3 .584 .996 .071 / .038);--colors-lime-dark-p3-a-3: color(display-p3 .69 1 .38 / .101);--colors-lime-dark-p3-a-4: color(display-p3 .729 1 .435 / .16);--colors-lime-dark-p3-a-5: color(display-p3 .745 1 .471 / .215);--colors-lime-dark-p3-a-6: color(display-p3 .769 1 .482 / .274);--colors-lime-dark-p3-a-7: color(display-p3 .769 1 .506 / .341);--colors-lime-dark-p3-a-8: color(display-p3 .784 1 .51 / .416);--colors-lime-dark-p3-a-9: color(display-p3 .839 1 .502 / .925);--colors-lime-dark-p3-a-10: color(display-p3 .871 1 .522 / .996);--colors-lime-dark-p3-a-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-a-12: color(display-p3 .905 .966 .753);--colors-lime-a-1: var(--colors-lime-light-a-1);--colors-lime-a-2: var(--colors-lime-light-a-2);--colors-lime-a-3: var(--colors-lime-light-a-3);--colors-lime-a-4: var(--colors-lime-light-a-4);--colors-lime-a-5: var(--colors-lime-light-a-5);--colors-lime-a-6: var(--colors-lime-light-a-6);--colors-lime-a-7: var(--colors-lime-light-a-7);--colors-lime-a-8: var(--colors-lime-light-a-8);--colors-lime-a-9: var(--colors-lime-light-a-9);--colors-lime-a-10: var(--colors-lime-light-a-10);--colors-lime-a-11: var(--colors-lime-light-a-11);--colors-lime-a-12: var(--colors-lime-light-a-12);--colors-lime-p3-1: var(--colors-lime-light-p3-1);--colors-lime-p3-2: var(--colors-lime-light-p3-2);--colors-lime-p3-3: var(--colors-lime-light-p3-3);--colors-lime-p3-4: var(--colors-lime-light-p3-4);--colors-lime-p3-5: var(--colors-lime-light-p3-5);--colors-lime-p3-6: var(--colors-lime-light-p3-6);--colors-lime-p3-7: var(--colors-lime-light-p3-7);--colors-lime-p3-8: var(--colors-lime-light-p3-8);--colors-lime-p3-9: var(--colors-lime-light-p3-9);--colors-lime-p3-10: var(--colors-lime-light-p3-10);--colors-lime-p3-11: var(--colors-lime-light-p3-11);--colors-lime-p3-12: var(--colors-lime-light-p3-12);--colors-lime-p3-a-1: var(--colors-lime-light-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-light-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-light-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-light-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-light-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-light-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-light-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-light-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-light-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-light-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-light-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-light-p3-a-12);--colors-orange-1: var(--colors-orange-light-1);--colors-orange-2: var(--colors-orange-light-2);--colors-orange-3: var(--colors-orange-light-3);--colors-orange-4: var(--colors-orange-light-4);--colors-orange-5: var(--colors-orange-light-5);--colors-orange-6: var(--colors-orange-light-6);--colors-orange-7: var(--colors-orange-light-7);--colors-orange-8: var(--colors-orange-light-8);--colors-orange-9: var(--colors-orange-light-9);--colors-orange-10: var(--colors-orange-light-10);--colors-orange-11: var(--colors-orange-light-11);--colors-orange-12: var(--colors-orange-light-12);--colors-orange-light-1: #fefcfb;--colors-orange-light-2: #fff7ed;--colors-orange-light-3: #ffefd6;--colors-orange-light-4: #ffdfb5;--colors-orange-light-5: #ffd19a;--colors-orange-light-6: #ffc182;--colors-orange-light-7: #f5ae73;--colors-orange-light-8: #ec9455;--colors-orange-light-9: #f76b15;--colors-orange-light-10: #ef5f00;--colors-orange-light-11: #cc4e00;--colors-orange-light-12: #582d1d;--colors-orange-light-a-1: #c0400004;--colors-orange-light-a-2: #ff8e0012;--colors-orange-light-a-3: #ff9c0029;--colors-orange-light-a-4: #ff91014a;--colors-orange-light-a-5: #ff8b0065;--colors-orange-light-a-6: #ff81007d;--colors-orange-light-a-7: #ed6c008c;--colors-orange-light-a-8: #e35f00aa;--colors-orange-light-a-9: #f65e00ea;--colors-orange-light-a-10: #ef5f00;--colors-orange-light-a-11: #cc4e00;--colors-orange-light-a-12: #431200e2;--colors-orange-light-p3-1: color(display-p3 .995 .988 .985);--colors-orange-light-p3-2: color(display-p3 .994 .968 .934);--colors-orange-light-p3-3: color(display-p3 .989 .938 .85);--colors-orange-light-p3-4: color(display-p3 1 .874 .687);--colors-orange-light-p3-5: color(display-p3 1 .821 .583);--colors-orange-light-p3-6: color(display-p3 .975 .767 .545);--colors-orange-light-p3-7: color(display-p3 .919 .693 .486);--colors-orange-light-p3-8: color(display-p3 .877 .597 .379);--colors-orange-light-p3-9: color(display-p3 .9 .45 .2);--colors-orange-light-p3-10: color(display-p3 .87 .409 .164);--colors-orange-light-p3-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-12: color(display-p3 .323 .185 .127);--colors-orange-light-p3-a-1: color(display-p3 .757 .267 .024 / .016);--colors-orange-light-p3-a-2: color(display-p3 .886 .533 .008 / .067);--colors-orange-light-p3-a-3: color(display-p3 .922 .584 .008 / .15);--colors-orange-light-p3-a-4: color(display-p3 1 .604 .004 / .314);--colors-orange-light-p3-a-5: color(display-p3 1 .569 .004 / .416);--colors-orange-light-p3-a-6: color(display-p3 .949 .494 .004 / .455);--colors-orange-light-p3-a-7: color(display-p3 .839 .408 0 / .514);--colors-orange-light-p3-a-8: color(display-p3 .804 .349 0 / .62);--colors-orange-light-p3-a-9: color(display-p3 .878 .314 0 / .8);--colors-orange-light-p3-a-10: color(display-p3 .843 .29 0 / .836);--colors-orange-light-p3-a-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-a-12: color(display-p3 .323 .185 .127);--colors-orange-dark-1: #17120e;--colors-orange-dark-2: #1e160f;--colors-orange-dark-3: #331e0b;--colors-orange-dark-4: #462100;--colors-orange-dark-5: #562800;--colors-orange-dark-6: #66350c;--colors-orange-dark-7: #7e451d;--colors-orange-dark-8: #a35829;--colors-orange-dark-9: #f76b15;--colors-orange-dark-10: #ff801f;--colors-orange-dark-11: #ffa057;--colors-orange-dark-12: #ffe0c2;--colors-orange-dark-a-1: #ec360007;--colors-orange-dark-a-2: #fe6d000e;--colors-orange-dark-a-3: #fb6a0025;--colors-orange-dark-a-4: #ff590039;--colors-orange-dark-a-5: #ff61004a;--colors-orange-dark-a-6: #fd75045c;--colors-orange-dark-a-7: #ff832c75;--colors-orange-dark-a-8: #fe84389d;--colors-orange-dark-a-9: #fe6d15f7;--colors-orange-dark-a-10: #ff801f;--colors-orange-dark-a-11: #ffa057;--colors-orange-dark-a-12: #ffe0c2;--colors-orange-dark-p3-1: color(display-p3 .088 .07 .057);--colors-orange-dark-p3-2: color(display-p3 .113 .089 .061);--colors-orange-dark-p3-3: color(display-p3 .189 .12 .056);--colors-orange-dark-p3-4: color(display-p3 .262 .132 0);--colors-orange-dark-p3-5: color(display-p3 .315 .168 .016);--colors-orange-dark-p3-6: color(display-p3 .376 .219 .088);--colors-orange-dark-p3-7: color(display-p3 .465 .283 .147);--colors-orange-dark-p3-8: color(display-p3 .601 .359 .201);--colors-orange-dark-p3-9: color(display-p3 .9 .45 .2);--colors-orange-dark-p3-10: color(display-p3 .98 .51 .23);--colors-orange-dark-p3-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-12: color(display-p3 .98 .883 .775);--colors-orange-dark-p3-a-1: color(display-p3 .961 .247 0 / .022);--colors-orange-dark-p3-a-2: color(display-p3 .992 .529 0 / .051);--colors-orange-dark-p3-a-3: color(display-p3 .996 .486 0 / .131);--colors-orange-dark-p3-a-4: color(display-p3 .996 .384 0 / .211);--colors-orange-dark-p3-a-5: color(display-p3 1 .455 0 / .265);--colors-orange-dark-p3-a-6: color(display-p3 1 .529 .129 / .332);--colors-orange-dark-p3-a-7: color(display-p3 1 .569 .251 / .429);--colors-orange-dark-p3-a-8: color(display-p3 1 .584 .302 / .572);--colors-orange-dark-p3-a-9: color(display-p3 1 .494 .216 / .895);--colors-orange-dark-p3-a-10: color(display-p3 1 .522 .235 / .979);--colors-orange-dark-p3-a-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-a-12: color(display-p3 .98 .883 .775);--colors-orange-a-1: var(--colors-orange-light-a-1);--colors-orange-a-2: var(--colors-orange-light-a-2);--colors-orange-a-3: var(--colors-orange-light-a-3);--colors-orange-a-4: var(--colors-orange-light-a-4);--colors-orange-a-5: var(--colors-orange-light-a-5);--colors-orange-a-6: var(--colors-orange-light-a-6);--colors-orange-a-7: var(--colors-orange-light-a-7);--colors-orange-a-8: var(--colors-orange-light-a-8);--colors-orange-a-9: var(--colors-orange-light-a-9);--colors-orange-a-10: var(--colors-orange-light-a-10);--colors-orange-a-11: var(--colors-orange-light-a-11);--colors-orange-a-12: var(--colors-orange-light-a-12);--colors-orange-p3-1: var(--colors-orange-light-p3-1);--colors-orange-p3-2: var(--colors-orange-light-p3-2);--colors-orange-p3-3: var(--colors-orange-light-p3-3);--colors-orange-p3-4: var(--colors-orange-light-p3-4);--colors-orange-p3-5: var(--colors-orange-light-p3-5);--colors-orange-p3-6: var(--colors-orange-light-p3-6);--colors-orange-p3-7: var(--colors-orange-light-p3-7);--colors-orange-p3-8: var(--colors-orange-light-p3-8);--colors-orange-p3-9: var(--colors-orange-light-p3-9);--colors-orange-p3-10: var(--colors-orange-light-p3-10);--colors-orange-p3-11: var(--colors-orange-light-p3-11);--colors-orange-p3-12: var(--colors-orange-light-p3-12);--colors-orange-p3-a-1: var(--colors-orange-light-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-light-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-light-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-light-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-light-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-light-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-light-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-light-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-light-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-light-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-light-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-light-p3-a-12);--colors-pink-1: var(--colors-pink-light-1);--colors-pink-2: var(--colors-pink-light-2);--colors-pink-3: var(--colors-pink-light-3);--colors-pink-4: var(--colors-pink-light-4);--colors-pink-5: var(--colors-pink-light-5);--colors-pink-6: var(--colors-pink-light-6);--colors-pink-7: var(--colors-pink-light-7);--colors-pink-8: var(--colors-pink-light-8);--colors-pink-9: var(--colors-pink-light-9);--colors-pink-10: var(--colors-pink-light-10);--colors-pink-11: var(--colors-pink-light-11);--colors-pink-12: var(--colors-pink-light-12);--colors-pink-light-1: #fffcfe;--colors-pink-light-2: #fef7fb;--colors-pink-light-3: #fee9f5;--colors-pink-light-4: #fbdcef;--colors-pink-light-5: #f6cee7;--colors-pink-light-6: #efbfdd;--colors-pink-light-7: #e7acd0;--colors-pink-light-8: #dd93c2;--colors-pink-light-9: #d6409f;--colors-pink-light-10: #cf3897;--colors-pink-light-11: #c2298a;--colors-pink-light-12: #651249;--colors-pink-light-a-1: #ff00aa03;--colors-pink-light-a-2: #e0008008;--colors-pink-light-a-3: #f4008c16;--colors-pink-light-a-4: #e2008b23;--colors-pink-light-a-5: #d1008331;--colors-pink-light-a-6: #c0007840;--colors-pink-light-a-7: #b6006f53;--colors-pink-light-a-8: #af006f6c;--colors-pink-light-a-9: #c8007fbf;--colors-pink-light-a-10: #c2007ac7;--colors-pink-light-a-11: #b60074d6;--colors-pink-light-a-12: #59003bed;--colors-pink-light-p3-1: color(display-p3 .998 .989 .996);--colors-pink-light-p3-2: color(display-p3 .992 .97 .985);--colors-pink-light-p3-3: color(display-p3 .981 .917 .96);--colors-pink-light-p3-4: color(display-p3 .963 .867 .932);--colors-pink-light-p3-5: color(display-p3 .939 .815 .899);--colors-pink-light-p3-6: color(display-p3 .907 .756 .859);--colors-pink-light-p3-7: color(display-p3 .869 .683 .81);--colors-pink-light-p3-8: color(display-p3 .825 .59 .751);--colors-pink-light-p3-9: color(display-p3 .775 .297 .61);--colors-pink-light-p3-10: color(display-p3 .748 .27 .581);--colors-pink-light-p3-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-12: color(display-p3 .363 .101 .279);--colors-pink-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-pink-light-p3-a-2: color(display-p3 .757 .02 .51 / .032);--colors-pink-light-p3-a-3: color(display-p3 .765 .008 .529 / .083);--colors-pink-light-p3-a-4: color(display-p3 .737 .008 .506 / .134);--colors-pink-light-p3-a-5: color(display-p3 .663 .004 .451 / .185);--colors-pink-light-p3-a-6: color(display-p3 .616 .004 .424 / .244);--colors-pink-light-p3-a-7: color(display-p3 .596 .004 .412 / .318);--colors-pink-light-p3-a-8: color(display-p3 .573 .004 .404 / .412);--colors-pink-light-p3-a-9: color(display-p3 .682 0 .447 / .702);--colors-pink-light-p3-a-10: color(display-p3 .655 0 .424 / .73);--colors-pink-light-p3-a-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-a-12: color(display-p3 .363 .101 .279);--colors-pink-dark-1: #191117;--colors-pink-dark-2: #21121d;--colors-pink-dark-3: #37172f;--colors-pink-dark-4: #4b143d;--colors-pink-dark-5: #591c47;--colors-pink-dark-6: #692955;--colors-pink-dark-7: #833869;--colors-pink-dark-8: #a84885;--colors-pink-dark-9: #d6409f;--colors-pink-dark-10: #de51a8;--colors-pink-dark-11: #ff8dcc;--colors-pink-dark-12: #fdd1ea;--colors-pink-dark-a-1: #f412bc09;--colors-pink-dark-a-2: #f420bb12;--colors-pink-dark-a-3: #fe37cc29;--colors-pink-dark-a-4: #fc1ec43f;--colors-pink-dark-a-5: #fd35c24e;--colors-pink-dark-a-6: #fd51c75f;--colors-pink-dark-a-7: #fd62c87b;--colors-pink-dark-a-8: #ff68c8a2;--colors-pink-dark-a-9: #fe49bcd4;--colors-pink-dark-a-10: #ff5cc0dc;--colors-pink-dark-a-11: #ff8dcc;--colors-pink-dark-a-12: #ffd3ecfd;--colors-pink-dark-p3-1: color(display-p3 .093 .068 .089);--colors-pink-dark-p3-2: color(display-p3 .121 .073 .11);--colors-pink-dark-p3-3: color(display-p3 .198 .098 .179);--colors-pink-dark-p3-4: color(display-p3 .271 .095 .231);--colors-pink-dark-p3-5: color(display-p3 .32 .127 .273);--colors-pink-dark-p3-6: color(display-p3 .382 .177 .326);--colors-pink-dark-p3-7: color(display-p3 .477 .238 .405);--colors-pink-dark-p3-8: color(display-p3 .612 .304 .51);--colors-pink-dark-p3-9: color(display-p3 .775 .297 .61);--colors-pink-dark-p3-10: color(display-p3 .808 .356 .645);--colors-pink-dark-p3-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-12: color(display-p3 .964 .826 .912);--colors-pink-dark-p3-a-1: color(display-p3 .984 .071 .855 / .03);--colors-pink-dark-p3-a-2: color(display-p3 1 .2 .8 / .059);--colors-pink-dark-p3-a-3: color(display-p3 1 .294 .886 / .139);--colors-pink-dark-p3-a-4: color(display-p3 1 .192 .82 / .219);--colors-pink-dark-p3-a-5: color(display-p3 1 .282 .827 / .274);--colors-pink-dark-p3-a-6: color(display-p3 1 .396 .835 / .337);--colors-pink-dark-p3-a-7: color(display-p3 1 .459 .831 / .442);--colors-pink-dark-p3-a-8: color(display-p3 1 .478 .827 / .585);--colors-pink-dark-p3-a-9: color(display-p3 1 .373 .784 / .761);--colors-pink-dark-p3-a-10: color(display-p3 1 .435 .792 / .795);--colors-pink-dark-p3-a-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-a-12: color(display-p3 .964 .826 .912);--colors-pink-a-1: var(--colors-pink-light-a-1);--colors-pink-a-2: var(--colors-pink-light-a-2);--colors-pink-a-3: var(--colors-pink-light-a-3);--colors-pink-a-4: var(--colors-pink-light-a-4);--colors-pink-a-5: var(--colors-pink-light-a-5);--colors-pink-a-6: var(--colors-pink-light-a-6);--colors-pink-a-7: var(--colors-pink-light-a-7);--colors-pink-a-8: var(--colors-pink-light-a-8);--colors-pink-a-9: var(--colors-pink-light-a-9);--colors-pink-a-10: var(--colors-pink-light-a-10);--colors-pink-a-11: var(--colors-pink-light-a-11);--colors-pink-a-12: var(--colors-pink-light-a-12);--colors-pink-p3-1: var(--colors-pink-light-p3-1);--colors-pink-p3-2: var(--colors-pink-light-p3-2);--colors-pink-p3-3: var(--colors-pink-light-p3-3);--colors-pink-p3-4: var(--colors-pink-light-p3-4);--colors-pink-p3-5: var(--colors-pink-light-p3-5);--colors-pink-p3-6: var(--colors-pink-light-p3-6);--colors-pink-p3-7: var(--colors-pink-light-p3-7);--colors-pink-p3-8: var(--colors-pink-light-p3-8);--colors-pink-p3-9: var(--colors-pink-light-p3-9);--colors-pink-p3-10: var(--colors-pink-light-p3-10);--colors-pink-p3-11: var(--colors-pink-light-p3-11);--colors-pink-p3-12: var(--colors-pink-light-p3-12);--colors-pink-p3-a-1: var(--colors-pink-light-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-light-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-light-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-light-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-light-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-light-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-light-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-light-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-light-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-light-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-light-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-light-p3-a-12);--colors-purple-1: var(--colors-purple-light-1);--colors-purple-2: var(--colors-purple-light-2);--colors-purple-3: var(--colors-purple-light-3);--colors-purple-4: var(--colors-purple-light-4);--colors-purple-5: var(--colors-purple-light-5);--colors-purple-6: var(--colors-purple-light-6);--colors-purple-7: var(--colors-purple-light-7);--colors-purple-8: var(--colors-purple-light-8);--colors-purple-9: var(--colors-purple-light-9);--colors-purple-10: var(--colors-purple-light-10);--colors-purple-11: var(--colors-purple-light-11);--colors-purple-12: var(--colors-purple-light-12);--colors-purple-light-1: #fefcfe;--colors-purple-light-2: #fbf7fe;--colors-purple-light-3: #f7edfe;--colors-purple-light-4: #f2e2fc;--colors-purple-light-5: #ead5f9;--colors-purple-light-6: #e0c4f4;--colors-purple-light-7: #d1afec;--colors-purple-light-8: #be93e4;--colors-purple-light-9: #8e4ec6;--colors-purple-light-10: #8347b9;--colors-purple-light-11: #8145b5;--colors-purple-light-12: #402060;--colors-purple-light-a-1: #aa00aa03;--colors-purple-light-a-2: #8000e008;--colors-purple-light-a-3: #8e00f112;--colors-purple-light-a-4: #8d00e51d;--colors-purple-light-a-5: #8000db2a;--colors-purple-light-a-6: #7a01d03b;--colors-purple-light-a-7: #6d00c350;--colors-purple-light-a-8: #6600c06c;--colors-purple-light-a-9: #5c00adb1;--colors-purple-light-a-10: #53009eb8;--colors-purple-light-a-11: #52009aba;--colors-purple-light-a-12: #250049df;--colors-purple-light-p3-1: color(display-p3 .995 .988 .996);--colors-purple-light-p3-2: color(display-p3 .983 .971 .993);--colors-purple-light-p3-3: color(display-p3 .963 .931 .989);--colors-purple-light-p3-4: color(display-p3 .937 .888 .981);--colors-purple-light-p3-5: color(display-p3 .904 .837 .966);--colors-purple-light-p3-6: color(display-p3 .86 .774 .942);--colors-purple-light-p3-7: color(display-p3 .799 .69 .91);--colors-purple-light-p3-8: color(display-p3 .719 .583 .874);--colors-purple-light-p3-9: color(display-p3 .523 .318 .751);--colors-purple-light-p3-10: color(display-p3 .483 .289 .7);--colors-purple-light-p3-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-12: color(display-p3 .234 .132 .363);--colors-purple-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-purple-light-p3-a-2: color(display-p3 .443 .024 .722 / .028);--colors-purple-light-p3-a-3: color(display-p3 .506 .008 .835 / .071);--colors-purple-light-p3-a-4: color(display-p3 .451 .004 .831 / .114);--colors-purple-light-p3-a-5: color(display-p3 .431 .004 .788 / .165);--colors-purple-light-p3-a-6: color(display-p3 .384 .004 .745 / .228);--colors-purple-light-p3-a-7: color(display-p3 .357 .004 .71 / .31);--colors-purple-light-p3-a-8: color(display-p3 .322 .004 .702 / .416);--colors-purple-light-p3-a-9: color(display-p3 .298 0 .639 / .683);--colors-purple-light-p3-a-10: color(display-p3 .271 0 .58 / .71);--colors-purple-light-p3-a-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-a-12: color(display-p3 .234 .132 .363);--colors-purple-dark-1: #18111b;--colors-purple-dark-2: #1e1523;--colors-purple-dark-3: #301c3b;--colors-purple-dark-4: #3d224e;--colors-purple-dark-5: #48295c;--colors-purple-dark-6: #54346b;--colors-purple-dark-7: #664282;--colors-purple-dark-8: #8457aa;--colors-purple-dark-9: #8e4ec6;--colors-purple-dark-10: #9a5cd0;--colors-purple-dark-11: #d19dff;--colors-purple-dark-12: #ecd9fa;--colors-purple-dark-a-1: #b412f90b;--colors-purple-dark-a-2: #b744f714;--colors-purple-dark-a-3: #c150ff2d;--colors-purple-dark-a-4: #bb53fd42;--colors-purple-dark-a-5: #be5cfd51;--colors-purple-dark-a-6: #c16dfd61;--colors-purple-dark-a-7: #c378fd7a;--colors-purple-dark-a-8: #c47effa4;--colors-purple-dark-a-9: #b661ffc2;--colors-purple-dark-a-10: #bc6fffcd;--colors-purple-dark-a-11: #d19dff;--colors-purple-dark-a-12: #f1ddfffa;--colors-purple-dark-p3-1: color(display-p3 .09 .068 .103);--colors-purple-dark-p3-2: color(display-p3 .113 .082 .134);--colors-purple-dark-p3-3: color(display-p3 .175 .112 .224);--colors-purple-dark-p3-4: color(display-p3 .224 .137 .297);--colors-purple-dark-p3-5: color(display-p3 .264 .167 .349);--colors-purple-dark-p3-6: color(display-p3 .311 .208 .406);--colors-purple-dark-p3-7: color(display-p3 .381 .266 .496);--colors-purple-dark-p3-8: color(display-p3 .49 .349 .649);--colors-purple-dark-p3-9: color(display-p3 .523 .318 .751);--colors-purple-dark-p3-10: color(display-p3 .57 .373 .791);--colors-purple-dark-p3-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-12: color(display-p3 .913 .854 .971);--colors-purple-dark-p3-a-1: color(display-p3 .686 .071 .996 / .038);--colors-purple-dark-p3-a-2: color(display-p3 .722 .286 .996 / .072);--colors-purple-dark-p3-a-3: color(display-p3 .718 .349 .996 / .169);--colors-purple-dark-p3-a-4: color(display-p3 .702 .353 1 / .248);--colors-purple-dark-p3-a-5: color(display-p3 .718 .404 1 / .303);--colors-purple-dark-p3-a-6: color(display-p3 .733 .455 1 / .366);--colors-purple-dark-p3-a-7: color(display-p3 .753 .506 1 / .458);--colors-purple-dark-p3-a-8: color(display-p3 .749 .522 1 / .622);--colors-purple-dark-p3-a-9: color(display-p3 .686 .408 1 / .736);--colors-purple-dark-p3-a-10: color(display-p3 .71 .459 1 / .778);--colors-purple-dark-p3-a-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-a-12: color(display-p3 .913 .854 .971);--colors-purple-a-1: var(--colors-purple-light-a-1);--colors-purple-a-2: var(--colors-purple-light-a-2);--colors-purple-a-3: var(--colors-purple-light-a-3);--colors-purple-a-4: var(--colors-purple-light-a-4);--colors-purple-a-5: var(--colors-purple-light-a-5);--colors-purple-a-6: var(--colors-purple-light-a-6);--colors-purple-a-7: var(--colors-purple-light-a-7);--colors-purple-a-8: var(--colors-purple-light-a-8);--colors-purple-a-9: var(--colors-purple-light-a-9);--colors-purple-a-10: var(--colors-purple-light-a-10);--colors-purple-a-11: var(--colors-purple-light-a-11);--colors-purple-a-12: var(--colors-purple-light-a-12);--colors-purple-p3-1: var(--colors-purple-light-p3-1);--colors-purple-p3-2: var(--colors-purple-light-p3-2);--colors-purple-p3-3: var(--colors-purple-light-p3-3);--colors-purple-p3-4: var(--colors-purple-light-p3-4);--colors-purple-p3-5: var(--colors-purple-light-p3-5);--colors-purple-p3-6: var(--colors-purple-light-p3-6);--colors-purple-p3-7: var(--colors-purple-light-p3-7);--colors-purple-p3-8: var(--colors-purple-light-p3-8);--colors-purple-p3-9: var(--colors-purple-light-p3-9);--colors-purple-p3-10: var(--colors-purple-light-p3-10);--colors-purple-p3-11: var(--colors-purple-light-p3-11);--colors-purple-p3-12: var(--colors-purple-light-p3-12);--colors-purple-p3-a-1: var(--colors-purple-light-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-light-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-light-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-light-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-light-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-light-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-light-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-light-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-light-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-light-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-light-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-light-p3-a-12);--colors-red-1: var(--colors-red-light-1);--colors-red-2: var(--colors-red-light-2);--colors-red-3: var(--colors-red-light-3);--colors-red-4: var(--colors-red-light-4);--colors-red-5: var(--colors-red-light-5);--colors-red-6: var(--colors-red-light-6);--colors-red-7: var(--colors-red-light-7);--colors-red-8: var(--colors-red-light-8);--colors-red-9: var(--colors-red-light-9);--colors-red-10: var(--colors-red-light-10);--colors-red-11: var(--colors-red-light-11);--colors-red-12: var(--colors-red-light-12);--colors-red-light-1: #fffcfc;--colors-red-light-2: #fff7f7;--colors-red-light-3: #feebec;--colors-red-light-4: #ffdbdc;--colors-red-light-5: #ffcdce;--colors-red-light-6: #fdbdbe;--colors-red-light-7: #f4a9aa;--colors-red-light-8: #eb8e90;--colors-red-light-9: #e5484d;--colors-red-light-10: #dc3e42;--colors-red-light-11: #ce2c31;--colors-red-light-12: #641723;--colors-red-light-a-1: #ff000003;--colors-red-light-a-2: #ff000008;--colors-red-light-a-3: #f3000d14;--colors-red-light-a-4: #ff000824;--colors-red-light-a-5: #ff000632;--colors-red-light-a-6: #f8000442;--colors-red-light-a-7: #df000356;--colors-red-light-a-8: #d2000571;--colors-red-light-a-9: #db0007b7;--colors-red-light-a-10: #d10005c1;--colors-red-light-a-11: #c40006d3;--colors-red-light-a-12: #55000de8;--colors-red-light-p3-1: color(display-p3 .998 .989 .988);--colors-red-light-p3-2: color(display-p3 .995 .971 .971);--colors-red-light-p3-3: color(display-p3 .985 .925 .925);--colors-red-light-p3-4: color(display-p3 .999 .866 .866);--colors-red-light-p3-5: color(display-p3 .984 .812 .811);--colors-red-light-p3-6: color(display-p3 .955 .751 .749);--colors-red-light-p3-7: color(display-p3 .915 .675 .672);--colors-red-light-p3-8: color(display-p3 .872 .575 .572);--colors-red-light-p3-9: color(display-p3 .83 .329 .324);--colors-red-light-p3-10: color(display-p3 .798 .294 .285);--colors-red-light-p3-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-12: color(display-p3 .36 .115 .143);--colors-red-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-red-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-red-light-p3-a-3: color(display-p3 .792 .008 .008 / .075);--colors-red-light-p3-a-4: color(display-p3 1 .008 .008 / .134);--colors-red-light-p3-a-5: color(display-p3 .918 .008 .008 / .189);--colors-red-light-p3-a-6: color(display-p3 .831 .02 .004 / .251);--colors-red-light-p3-a-7: color(display-p3 .741 .016 .004 / .33);--colors-red-light-p3-a-8: color(display-p3 .698 .012 .004 / .428);--colors-red-light-p3-a-9: color(display-p3 .749 .008 0 / .675);--colors-red-light-p3-a-10: color(display-p3 .714 .012 0 / .714);--colors-red-light-p3-a-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-a-12: color(display-p3 .36 .115 .143);--colors-red-dark-1: #191111;--colors-red-dark-2: #201314;--colors-red-dark-3: #3b1219;--colors-red-dark-4: #500f1c;--colors-red-dark-5: #611623;--colors-red-dark-6: #72232d;--colors-red-dark-7: #8c333a;--colors-red-dark-8: #b54548;--colors-red-dark-9: #e5484d;--colors-red-dark-10: #ec5d5e;--colors-red-dark-11: #ff9592;--colors-red-dark-12: #ffd1d9;--colors-red-dark-a-1: #f4121209;--colors-red-dark-a-2: #f22f3e11;--colors-red-dark-a-3: #ff173f2d;--colors-red-dark-a-4: #fe0a3b44;--colors-red-dark-a-5: #ff204756;--colors-red-dark-a-6: #ff3e5668;--colors-red-dark-a-7: #ff536184;--colors-red-dark-a-8: #ff5d61b0;--colors-red-dark-a-9: #fe4e54e4;--colors-red-dark-a-10: #ff6465eb;--colors-red-dark-a-11: #ff9592;--colors-red-dark-a-12: #ffd1d9;--colors-red-dark-p3-1: color(display-p3 .093 .068 .067);--colors-red-dark-p3-2: color(display-p3 .118 .077 .079);--colors-red-dark-p3-3: color(display-p3 .211 .081 .099);--colors-red-dark-p3-4: color(display-p3 .287 .079 .113);--colors-red-dark-p3-5: color(display-p3 .348 .11 .142);--colors-red-dark-p3-6: color(display-p3 .414 .16 .183);--colors-red-dark-p3-7: color(display-p3 .508 .224 .236);--colors-red-dark-p3-8: color(display-p3 .659 .298 .297);--colors-red-dark-p3-9: color(display-p3 .83 .329 .324);--colors-red-dark-p3-10: color(display-p3 .861 .403 .387);--colors-red-dark-p3-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-12: color(display-p3 .971 .826 .852);--colors-red-dark-p3-a-1: color(display-p3 .984 .071 .071 / .03);--colors-red-dark-p3-a-2: color(display-p3 .996 .282 .282 / .055);--colors-red-dark-p3-a-3: color(display-p3 1 .169 .271 / .156);--colors-red-dark-p3-a-4: color(display-p3 1 .118 .267 / .236);--colors-red-dark-p3-a-5: color(display-p3 1 .212 .314 / .303);--colors-red-dark-p3-a-6: color(display-p3 1 .318 .38 / .374);--colors-red-dark-p3-a-7: color(display-p3 1 .4 .424 / .475);--colors-red-dark-p3-a-8: color(display-p3 1 .431 .431 / .635);--colors-red-dark-p3-a-9: color(display-p3 1 .388 .384 / .82);--colors-red-dark-p3-a-10: color(display-p3 1 .463 .447 / .853);--colors-red-dark-p3-a-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-a-12: color(display-p3 .971 .826 .852);--colors-red-a-1: var(--colors-red-light-a-1);--colors-red-a-2: var(--colors-red-light-a-2);--colors-red-a-3: var(--colors-red-light-a-3);--colors-red-a-4: var(--colors-red-light-a-4);--colors-red-a-5: var(--colors-red-light-a-5);--colors-red-a-6: var(--colors-red-light-a-6);--colors-red-a-7: var(--colors-red-light-a-7);--colors-red-a-8: var(--colors-red-light-a-8);--colors-red-a-9: var(--colors-red-light-a-9);--colors-red-a-10: var(--colors-red-light-a-10);--colors-red-a-11: var(--colors-red-light-a-11);--colors-red-a-12: var(--colors-red-light-a-12);--colors-red-p3-1: var(--colors-red-light-p3-1);--colors-red-p3-2: var(--colors-red-light-p3-2);--colors-red-p3-3: var(--colors-red-light-p3-3);--colors-red-p3-4: var(--colors-red-light-p3-4);--colors-red-p3-5: var(--colors-red-light-p3-5);--colors-red-p3-6: var(--colors-red-light-p3-6);--colors-red-p3-7: var(--colors-red-light-p3-7);--colors-red-p3-8: var(--colors-red-light-p3-8);--colors-red-p3-9: var(--colors-red-light-p3-9);--colors-red-p3-10: var(--colors-red-light-p3-10);--colors-red-p3-11: var(--colors-red-light-p3-11);--colors-red-p3-12: var(--colors-red-light-p3-12);--colors-red-p3-a-1: var(--colors-red-light-p3-a-1);--colors-red-p3-a-2: var(--colors-red-light-p3-a-2);--colors-red-p3-a-3: var(--colors-red-light-p3-a-3);--colors-red-p3-a-4: var(--colors-red-light-p3-a-4);--colors-red-p3-a-5: var(--colors-red-light-p3-a-5);--colors-red-p3-a-6: var(--colors-red-light-p3-a-6);--colors-red-p3-a-7: var(--colors-red-light-p3-a-7);--colors-red-p3-a-8: var(--colors-red-light-p3-a-8);--colors-red-p3-a-9: var(--colors-red-light-p3-a-9);--colors-red-p3-a-10: var(--colors-red-light-p3-a-10);--colors-red-p3-a-11: var(--colors-red-light-p3-a-11);--colors-red-p3-a-12: var(--colors-red-light-p3-a-12);--colors-ruby-1: var(--colors-ruby-light-1);--colors-ruby-2: var(--colors-ruby-light-2);--colors-ruby-3: var(--colors-ruby-light-3);--colors-ruby-4: var(--colors-ruby-light-4);--colors-ruby-5: var(--colors-ruby-light-5);--colors-ruby-6: var(--colors-ruby-light-6);--colors-ruby-7: var(--colors-ruby-light-7);--colors-ruby-8: var(--colors-ruby-light-8);--colors-ruby-9: var(--colors-ruby-light-9);--colors-ruby-10: var(--colors-ruby-light-10);--colors-ruby-11: var(--colors-ruby-light-11);--colors-ruby-12: var(--colors-ruby-light-12);--colors-ruby-light-1: #fffcfd;--colors-ruby-light-2: #fff7f8;--colors-ruby-light-3: #feeaed;--colors-ruby-light-4: #ffdce1;--colors-ruby-light-5: #ffced6;--colors-ruby-light-6: #f8bfc8;--colors-ruby-light-7: #efacb8;--colors-ruby-light-8: #e592a3;--colors-ruby-light-9: #e54666;--colors-ruby-light-10: #dc3b5d;--colors-ruby-light-11: #ca244d;--colors-ruby-light-12: #64172b;--colors-ruby-light-a-1: #ff005503;--colors-ruby-light-a-2: #ff002008;--colors-ruby-light-a-3: #f3002515;--colors-ruby-light-a-4: #ff002523;--colors-ruby-light-a-5: #ff002a31;--colors-ruby-light-a-6: #e4002440;--colors-ruby-light-a-7: #ce002553;--colors-ruby-light-a-8: #c300286d;--colors-ruby-light-a-9: #db002cb9;--colors-ruby-light-a-10: #d2002cc4;--colors-ruby-light-a-11: #c10030db;--colors-ruby-light-a-12: #550016e8;--colors-ruby-light-p3-1: color(display-p3 .998 .989 .992);--colors-ruby-light-p3-2: color(display-p3 .995 .971 .974);--colors-ruby-light-p3-3: color(display-p3 .983 .92 .928);--colors-ruby-light-p3-4: color(display-p3 .987 .869 .885);--colors-ruby-light-p3-5: color(display-p3 .968 .817 .839);--colors-ruby-light-p3-6: color(display-p3 .937 .758 .786);--colors-ruby-light-p3-7: color(display-p3 .897 .685 .721);--colors-ruby-light-p3-8: color(display-p3 .851 .588 .639);--colors-ruby-light-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-light-p3-10: color(display-p3 .795 .286 .375);--colors-ruby-light-p3-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-12: color(display-p3 .36 .115 .171);--colors-ruby-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-ruby-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-ruby-light-p3-a-3: color(display-p3 .804 .008 .11 / .079);--colors-ruby-light-p3-a-4: color(display-p3 .91 .008 .125 / .13);--colors-ruby-light-p3-a-5: color(display-p3 .831 .004 .133 / .185);--colors-ruby-light-p3-a-6: color(display-p3 .745 .004 .118 / .244);--colors-ruby-light-p3-a-7: color(display-p3 .678 .004 .114 / .314);--colors-ruby-light-p3-a-8: color(display-p3 .639 .004 .125 / .412);--colors-ruby-light-p3-a-9: color(display-p3 .753 0 .129 / .679);--colors-ruby-light-p3-a-10: color(display-p3 .714 0 .125 / .714);--colors-ruby-light-p3-a-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-a-12: color(display-p3 .36 .115 .171);--colors-ruby-dark-1: #191113;--colors-ruby-dark-2: #1e1517;--colors-ruby-dark-3: #3a141e;--colors-ruby-dark-4: #4e1325;--colors-ruby-dark-5: #5e1a2e;--colors-ruby-dark-6: #6f2539;--colors-ruby-dark-7: #883447;--colors-ruby-dark-8: #b3445a;--colors-ruby-dark-9: #e54666;--colors-ruby-dark-10: #ec5a72;--colors-ruby-dark-11: #ff949d;--colors-ruby-dark-12: #fed2e1;--colors-ruby-dark-a-1: #f4124a09;--colors-ruby-dark-a-2: #fe5a7f0e;--colors-ruby-dark-a-3: #ff235d2c;--colors-ruby-dark-a-4: #fd195e42;--colors-ruby-dark-a-5: #fe2d6b53;--colors-ruby-dark-a-6: #ff447665;--colors-ruby-dark-a-7: #ff577d80;--colors-ruby-dark-a-8: #ff5c7cae;--colors-ruby-dark-a-9: #fe4c70e4;--colors-ruby-dark-a-10: #ff617beb;--colors-ruby-dark-a-11: #ff949d;--colors-ruby-dark-a-12: #ffd3e2fe;--colors-ruby-dark-p3-1: color(display-p3 .093 .068 .074);--colors-ruby-dark-p3-2: color(display-p3 .113 .083 .089);--colors-ruby-dark-p3-3: color(display-p3 .208 .088 .117);--colors-ruby-dark-p3-4: color(display-p3 .279 .092 .147);--colors-ruby-dark-p3-5: color(display-p3 .337 .12 .18);--colors-ruby-dark-p3-6: color(display-p3 .401 .166 .223);--colors-ruby-dark-p3-7: color(display-p3 .495 .224 .281);--colors-ruby-dark-p3-8: color(display-p3 .652 .295 .359);--colors-ruby-dark-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-dark-p3-10: color(display-p3 .857 .392 .455);--colors-ruby-dark-p3-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-12: color(display-p3 .968 .83 .88);--colors-ruby-dark-p3-a-1: color(display-p3 .984 .071 .329 / .03);--colors-ruby-dark-p3-a-2: color(display-p3 .992 .376 .529 / .051);--colors-ruby-dark-p3-a-3: color(display-p3 .996 .196 .404 / .152);--colors-ruby-dark-p3-a-4: color(display-p3 1 .173 .416 / .227);--colors-ruby-dark-p3-a-5: color(display-p3 1 .259 .459 / .29);--colors-ruby-dark-p3-a-6: color(display-p3 1 .341 .506 / .358);--colors-ruby-dark-p3-a-7: color(display-p3 1 .412 .541 / .458);--colors-ruby-dark-p3-a-8: color(display-p3 1 .431 .537 / .627);--colors-ruby-dark-p3-a-9: color(display-p3 1 .376 .482 / .82);--colors-ruby-dark-p3-a-10: color(display-p3 1 .447 .522 / .849);--colors-ruby-dark-p3-a-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-a-12: color(display-p3 .968 .83 .88);--colors-ruby-a-1: var(--colors-ruby-light-a-1);--colors-ruby-a-2: var(--colors-ruby-light-a-2);--colors-ruby-a-3: var(--colors-ruby-light-a-3);--colors-ruby-a-4: var(--colors-ruby-light-a-4);--colors-ruby-a-5: var(--colors-ruby-light-a-5);--colors-ruby-a-6: var(--colors-ruby-light-a-6);--colors-ruby-a-7: var(--colors-ruby-light-a-7);--colors-ruby-a-8: var(--colors-ruby-light-a-8);--colors-ruby-a-9: var(--colors-ruby-light-a-9);--colors-ruby-a-10: var(--colors-ruby-light-a-10);--colors-ruby-a-11: var(--colors-ruby-light-a-11);--colors-ruby-a-12: var(--colors-ruby-light-a-12);--colors-ruby-p3-1: var(--colors-ruby-light-p3-1);--colors-ruby-p3-2: var(--colors-ruby-light-p3-2);--colors-ruby-p3-3: var(--colors-ruby-light-p3-3);--colors-ruby-p3-4: var(--colors-ruby-light-p3-4);--colors-ruby-p3-5: var(--colors-ruby-light-p3-5);--colors-ruby-p3-6: var(--colors-ruby-light-p3-6);--colors-ruby-p3-7: var(--colors-ruby-light-p3-7);--colors-ruby-p3-8: var(--colors-ruby-light-p3-8);--colors-ruby-p3-9: var(--colors-ruby-light-p3-9);--colors-ruby-p3-10: var(--colors-ruby-light-p3-10);--colors-ruby-p3-11: var(--colors-ruby-light-p3-11);--colors-ruby-p3-12: var(--colors-ruby-light-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-light-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-light-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-light-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-light-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-light-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-light-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-light-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-light-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-light-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-light-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-light-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-light-p3-a-12);--colors-teal-1: var(--colors-teal-light-1);--colors-teal-2: var(--colors-teal-light-2);--colors-teal-3: var(--colors-teal-light-3);--colors-teal-4: var(--colors-teal-light-4);--colors-teal-5: var(--colors-teal-light-5);--colors-teal-6: var(--colors-teal-light-6);--colors-teal-7: var(--colors-teal-light-7);--colors-teal-8: var(--colors-teal-light-8);--colors-teal-9: var(--colors-teal-light-9);--colors-teal-10: var(--colors-teal-light-10);--colors-teal-11: var(--colors-teal-light-11);--colors-teal-12: var(--colors-teal-light-12);--colors-teal-light-1: #fafefd;--colors-teal-light-2: #f3fbf9;--colors-teal-light-3: #e0f8f3;--colors-teal-light-4: #ccf3ea;--colors-teal-light-5: #b8eae0;--colors-teal-light-6: #a1ded2;--colors-teal-light-7: #83cdc1;--colors-teal-light-8: #53b9ab;--colors-teal-light-9: #12a594;--colors-teal-light-10: #0d9b8a;--colors-teal-light-11: #008573;--colors-teal-light-12: #0d3d38;--colors-teal-light-a-1: #00cc9905;--colors-teal-light-a-2: #00aa800c;--colors-teal-light-a-3: #00c69d1f;--colors-teal-light-a-4: #00c39633;--colors-teal-light-a-5: #00b49047;--colors-teal-light-a-6: #00a6855e;--colors-teal-light-a-7: #0099807c;--colors-teal-light-a-8: #009783ac;--colors-teal-light-a-9: #009e8ced;--colors-teal-light-a-10: #009684f2;--colors-teal-light-a-11: #008573;--colors-teal-light-a-12: #00332df2;--colors-teal-light-p3-1: color(display-p3 .983 .996 .992);--colors-teal-light-p3-2: color(display-p3 .958 .983 .976);--colors-teal-light-p3-3: color(display-p3 .895 .971 .952);--colors-teal-light-p3-4: color(display-p3 .831 .949 .92);--colors-teal-light-p3-5: color(display-p3 .761 .914 .878);--colors-teal-light-p3-6: color(display-p3 .682 .864 .825);--colors-teal-light-p3-7: color(display-p3 .581 .798 .756);--colors-teal-light-p3-8: color(display-p3 .433 .716 .671);--colors-teal-light-p3-9: color(display-p3 .297 .637 .581);--colors-teal-light-p3-10: color(display-p3 .275 .599 .542);--colors-teal-light-p3-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-12: color(display-p3 .11 .235 .219);--colors-teal-light-p3-a-1: color(display-p3 .024 .757 .514 / .016);--colors-teal-light-p3-a-2: color(display-p3 .02 .647 .467 / .044);--colors-teal-light-p3-a-3: color(display-p3 .004 .741 .557 / .106);--colors-teal-light-p3-a-4: color(display-p3 .004 .702 .537 / .169);--colors-teal-light-p3-a-5: color(display-p3 .004 .643 .494 / .24);--colors-teal-light-p3-a-6: color(display-p3 .004 .569 .447 / .318);--colors-teal-light-p3-a-7: color(display-p3 .004 .518 .424 / .42);--colors-teal-light-p3-a-8: color(display-p3 0 .506 .424 / .569);--colors-teal-light-p3-a-9: color(display-p3 0 .482 .404 / .702);--colors-teal-light-p3-a-10: color(display-p3 0 .451 .369 / .726);--colors-teal-light-p3-a-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-a-12: color(display-p3 .11 .235 .219);--colors-teal-dark-1: #0d1514;--colors-teal-dark-2: #111c1b;--colors-teal-dark-3: #0d2d2a;--colors-teal-dark-4: #023b37;--colors-teal-dark-5: #084843;--colors-teal-dark-6: #145750;--colors-teal-dark-7: #1c6961;--colors-teal-dark-8: #207e73;--colors-teal-dark-9: #12a594;--colors-teal-dark-10: #0eb39e;--colors-teal-dark-11: #0bd8b6;--colors-teal-dark-12: #adf0dd;--colors-teal-dark-a-1: #00deab05;--colors-teal-dark-a-2: #12fbe60c;--colors-teal-dark-a-3: #00ffe61e;--colors-teal-dark-a-4: #00ffe92d;--colors-teal-dark-a-5: #00ffea3b;--colors-teal-dark-a-6: #1cffe84b;--colors-teal-dark-a-7: #2efde85f;--colors-teal-dark-a-8: #32ffe775;--colors-teal-dark-a-9: #13ffe49f;--colors-teal-dark-a-10: #0dffe0ae;--colors-teal-dark-a-11: #0afed5d6;--colors-teal-dark-a-12: #b8ffebef;--colors-teal-dark-p3-1: color(display-p3 .059 .083 .079);--colors-teal-dark-p3-2: color(display-p3 .075 .11 .107);--colors-teal-dark-p3-3: color(display-p3 .087 .175 .165);--colors-teal-dark-p3-4: color(display-p3 .087 .227 .214);--colors-teal-dark-p3-5: color(display-p3 .12 .277 .261);--colors-teal-dark-p3-6: color(display-p3 .162 .335 .314);--colors-teal-dark-p3-7: color(display-p3 .205 .406 .379);--colors-teal-dark-p3-8: color(display-p3 .245 .489 .453);--colors-teal-dark-p3-9: color(display-p3 .297 .637 .581);--colors-teal-dark-p3-10: color(display-p3 .319 .69 .62);--colors-teal-dark-p3-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-12: color(display-p3 .734 .934 .87);--colors-teal-dark-p3-a-1: color(display-p3 0 .992 .761 / .017);--colors-teal-dark-p3-a-2: color(display-p3 .235 .988 .902 / .047);--colors-teal-dark-p3-a-3: color(display-p3 .235 1 .898 / .118);--colors-teal-dark-p3-a-4: color(display-p3 .18 .996 .929 / .173);--colors-teal-dark-p3-a-5: color(display-p3 .31 1 .933 / .227);--colors-teal-dark-p3-a-6: color(display-p3 .396 1 .933 / .286);--colors-teal-dark-p3-a-7: color(display-p3 .443 1 .925 / .366);--colors-teal-dark-p3-a-8: color(display-p3 .459 1 .925 / .454);--colors-teal-dark-p3-a-9: color(display-p3 .443 .996 .906 / .61);--colors-teal-dark-p3-a-10: color(display-p3 .439 .996 .89 / .669);--colors-teal-dark-p3-a-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-a-12: color(display-p3 .734 .934 .87);--colors-teal-a-1: var(--colors-teal-light-a-1);--colors-teal-a-2: var(--colors-teal-light-a-2);--colors-teal-a-3: var(--colors-teal-light-a-3);--colors-teal-a-4: var(--colors-teal-light-a-4);--colors-teal-a-5: var(--colors-teal-light-a-5);--colors-teal-a-6: var(--colors-teal-light-a-6);--colors-teal-a-7: var(--colors-teal-light-a-7);--colors-teal-a-8: var(--colors-teal-light-a-8);--colors-teal-a-9: var(--colors-teal-light-a-9);--colors-teal-a-10: var(--colors-teal-light-a-10);--colors-teal-a-11: var(--colors-teal-light-a-11);--colors-teal-a-12: var(--colors-teal-light-a-12);--colors-teal-p3-1: var(--colors-teal-light-p3-1);--colors-teal-p3-2: var(--colors-teal-light-p3-2);--colors-teal-p3-3: var(--colors-teal-light-p3-3);--colors-teal-p3-4: var(--colors-teal-light-p3-4);--colors-teal-p3-5: var(--colors-teal-light-p3-5);--colors-teal-p3-6: var(--colors-teal-light-p3-6);--colors-teal-p3-7: var(--colors-teal-light-p3-7);--colors-teal-p3-8: var(--colors-teal-light-p3-8);--colors-teal-p3-9: var(--colors-teal-light-p3-9);--colors-teal-p3-10: var(--colors-teal-light-p3-10);--colors-teal-p3-11: var(--colors-teal-light-p3-11);--colors-teal-p3-12: var(--colors-teal-light-p3-12);--colors-teal-p3-a-1: var(--colors-teal-light-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-light-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-light-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-light-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-light-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-light-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-light-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-light-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-light-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-light-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-light-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-light-p3-a-12);--colors-tomato-1: var(--colors-tomato-light-1);--colors-tomato-2: var(--colors-tomato-light-2);--colors-tomato-3: var(--colors-tomato-light-3);--colors-tomato-4: var(--colors-tomato-light-4);--colors-tomato-5: var(--colors-tomato-light-5);--colors-tomato-6: var(--colors-tomato-light-6);--colors-tomato-7: var(--colors-tomato-light-7);--colors-tomato-8: var(--colors-tomato-light-8);--colors-tomato-9: var(--colors-tomato-light-9);--colors-tomato-10: var(--colors-tomato-light-10);--colors-tomato-11: var(--colors-tomato-light-11);--colors-tomato-12: var(--colors-tomato-light-12);--colors-tomato-light-1: #fffcfc;--colors-tomato-light-2: #fff8f7;--colors-tomato-light-3: #feebe7;--colors-tomato-light-4: #ffdcd3;--colors-tomato-light-5: #ffcdc2;--colors-tomato-light-6: #fdbdaf;--colors-tomato-light-7: #f5a898;--colors-tomato-light-8: #ec8e7b;--colors-tomato-light-9: #e54d2e;--colors-tomato-light-10: #dd4425;--colors-tomato-light-11: #d13415;--colors-tomato-light-12: #5c271f;--colors-tomato-light-a-1: #ff000003;--colors-tomato-light-a-2: #ff200008;--colors-tomato-light-a-3: #f52b0018;--colors-tomato-light-a-4: #ff35002c;--colors-tomato-light-a-5: #ff2e003d;--colors-tomato-light-a-6: #f92d0050;--colors-tomato-light-a-7: #e7280067;--colors-tomato-light-a-8: #db250084;--colors-tomato-light-a-9: #df2600d1;--colors-tomato-light-a-10: #d72400da;--colors-tomato-light-a-11: #cd2200ea;--colors-tomato-light-a-12: #460900e0;--colors-tomato-light-p3-1: color(display-p3 .998 .989 .988);--colors-tomato-light-p3-2: color(display-p3 .994 .974 .969);--colors-tomato-light-p3-3: color(display-p3 .985 .924 .909);--colors-tomato-light-p3-4: color(display-p3 .996 .868 .835);--colors-tomato-light-p3-5: color(display-p3 .98 .812 .77);--colors-tomato-light-p3-6: color(display-p3 .953 .75 .698);--colors-tomato-light-p3-7: color(display-p3 .917 .673 .611);--colors-tomato-light-p3-8: color(display-p3 .875 .575 .502);--colors-tomato-light-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-light-p3-10: color(display-p3 .802 .313 .2);--colors-tomato-light-p3-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-12: color(display-p3 .335 .165 .132);--colors-tomato-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-tomato-light-p3-a-2: color(display-p3 .757 .145 .02 / .032);--colors-tomato-light-p3-a-3: color(display-p3 .831 .184 .012 / .091);--colors-tomato-light-p3-a-4: color(display-p3 .976 .192 .004 / .165);--colors-tomato-light-p3-a-5: color(display-p3 .918 .192 .004 / .232);--colors-tomato-light-p3-a-6: color(display-p3 .847 .173 .004 / .302);--colors-tomato-light-p3-a-7: color(display-p3 .788 .165 .004 / .389);--colors-tomato-light-p3-a-8: color(display-p3 .749 .153 .004 / .499);--colors-tomato-light-p3-a-9: color(display-p3 .78 .149 0 / .769);--colors-tomato-light-p3-a-10: color(display-p3 .757 .141 0 / .8);--colors-tomato-light-p3-a-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-a-12: color(display-p3 .335 .165 .132);--colors-tomato-dark-1: #181111;--colors-tomato-dark-2: #1f1513;--colors-tomato-dark-3: #391714;--colors-tomato-dark-4: #4e1511;--colors-tomato-dark-5: #5e1c16;--colors-tomato-dark-6: #6e2920;--colors-tomato-dark-7: #853a2d;--colors-tomato-dark-8: #ac4d39;--colors-tomato-dark-9: #e54d2e;--colors-tomato-dark-10: #ec6142;--colors-tomato-dark-11: #ff977d;--colors-tomato-dark-12: #fbd3cb;--colors-tomato-dark-a-1: #f1121208;--colors-tomato-dark-a-2: #ff55330f;--colors-tomato-dark-a-3: #ff35232b;--colors-tomato-dark-a-4: #fd201142;--colors-tomato-dark-a-5: #fe332153;--colors-tomato-dark-a-6: #ff4f3864;--colors-tomato-dark-a-7: #fd644a7d;--colors-tomato-dark-a-8: #fe6d4ea7;--colors-tomato-dark-a-9: #fe5431e4;--colors-tomato-dark-a-10: #ff6847eb;--colors-tomato-dark-a-11: #ff977d;--colors-tomato-dark-a-12: #ffd6cefb;--colors-tomato-dark-p3-1: color(display-p3 .09 .068 .067);--colors-tomato-dark-p3-2: color(display-p3 .115 .084 .076);--colors-tomato-dark-p3-3: color(display-p3 .205 .097 .083);--colors-tomato-dark-p3-4: color(display-p3 .282 .099 .077);--colors-tomato-dark-p3-5: color(display-p3 .339 .129 .101);--colors-tomato-dark-p3-6: color(display-p3 .398 .179 .141);--colors-tomato-dark-p3-7: color(display-p3 .487 .245 .194);--colors-tomato-dark-p3-8: color(display-p3 .629 .322 .248);--colors-tomato-dark-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-dark-p3-10: color(display-p3 .862 .415 .298);--colors-tomato-dark-p3-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-12: color(display-p3 .959 .833 .802);--colors-tomato-dark-p3-a-1: color(display-p3 .973 .071 .071 / .026);--colors-tomato-dark-p3-a-2: color(display-p3 .992 .376 .224 / .051);--colors-tomato-dark-p3-a-3: color(display-p3 .996 .282 .176 / .148);--colors-tomato-dark-p3-a-4: color(display-p3 1 .204 .118 / .232);--colors-tomato-dark-p3-a-5: color(display-p3 1 .286 .192 / .29);--colors-tomato-dark-p3-a-6: color(display-p3 1 .392 .278 / .353);--colors-tomato-dark-p3-a-7: color(display-p3 1 .459 .349 / .45);--colors-tomato-dark-p3-a-8: color(display-p3 1 .49 .369 / .601);--colors-tomato-dark-p3-a-9: color(display-p3 1 .408 .267 / .82);--colors-tomato-dark-p3-a-10: color(display-p3 1 .478 .341 / .853);--colors-tomato-dark-p3-a-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-a-12: color(display-p3 .959 .833 .802);--colors-tomato-a-1: var(--colors-tomato-light-a-1);--colors-tomato-a-2: var(--colors-tomato-light-a-2);--colors-tomato-a-3: var(--colors-tomato-light-a-3);--colors-tomato-a-4: var(--colors-tomato-light-a-4);--colors-tomato-a-5: var(--colors-tomato-light-a-5);--colors-tomato-a-6: var(--colors-tomato-light-a-6);--colors-tomato-a-7: var(--colors-tomato-light-a-7);--colors-tomato-a-8: var(--colors-tomato-light-a-8);--colors-tomato-a-9: var(--colors-tomato-light-a-9);--colors-tomato-a-10: var(--colors-tomato-light-a-10);--colors-tomato-a-11: var(--colors-tomato-light-a-11);--colors-tomato-a-12: var(--colors-tomato-light-a-12);--colors-tomato-p3-1: var(--colors-tomato-light-p3-1);--colors-tomato-p3-2: var(--colors-tomato-light-p3-2);--colors-tomato-p3-3: var(--colors-tomato-light-p3-3);--colors-tomato-p3-4: var(--colors-tomato-light-p3-4);--colors-tomato-p3-5: var(--colors-tomato-light-p3-5);--colors-tomato-p3-6: var(--colors-tomato-light-p3-6);--colors-tomato-p3-7: var(--colors-tomato-light-p3-7);--colors-tomato-p3-8: var(--colors-tomato-light-p3-8);--colors-tomato-p3-9: var(--colors-tomato-light-p3-9);--colors-tomato-p3-10: var(--colors-tomato-light-p3-10);--colors-tomato-p3-11: var(--colors-tomato-light-p3-11);--colors-tomato-p3-12: var(--colors-tomato-light-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-light-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-light-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-light-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-light-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-light-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-light-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-light-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-light-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-light-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-light-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-light-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-light-p3-a-12);--colors-violet-1: var(--colors-violet-light-1);--colors-violet-2: var(--colors-violet-light-2);--colors-violet-3: var(--colors-violet-light-3);--colors-violet-4: var(--colors-violet-light-4);--colors-violet-5: var(--colors-violet-light-5);--colors-violet-6: var(--colors-violet-light-6);--colors-violet-7: var(--colors-violet-light-7);--colors-violet-8: var(--colors-violet-light-8);--colors-violet-9: var(--colors-violet-light-9);--colors-violet-10: var(--colors-violet-light-10);--colors-violet-11: var(--colors-violet-light-11);--colors-violet-12: var(--colors-violet-light-12);--colors-violet-light-1: #fdfcfe;--colors-violet-light-2: #faf8ff;--colors-violet-light-3: #f4f0fe;--colors-violet-light-4: #ebe4ff;--colors-violet-light-5: #e1d9ff;--colors-violet-light-6: #d4cafe;--colors-violet-light-7: #c2b5f5;--colors-violet-light-8: #aa99ec;--colors-violet-light-9: #6e56cf;--colors-violet-light-10: #654dc4;--colors-violet-light-11: #6550b9;--colors-violet-light-12: #2f265f;--colors-violet-light-a-1: #5500aa03;--colors-violet-light-a-2: #4900ff07;--colors-violet-light-a-3: #4400ee0f;--colors-violet-light-a-4: #4300ff1b;--colors-violet-light-a-5: #3600ff26;--colors-violet-light-a-6: #3100fb35;--colors-violet-light-a-7: #2d01dd4a;--colors-violet-light-a-8: #2b00d066;--colors-violet-light-a-9: #2400b7a9;--colors-violet-light-a-10: #2300abb2;--colors-violet-light-a-11: #1f0099af;--colors-violet-light-a-12: #0b0043d9;--colors-violet-light-p3-1: color(display-p3 .991 .988 .995);--colors-violet-light-p3-2: color(display-p3 .978 .974 .998);--colors-violet-light-p3-3: color(display-p3 .953 .943 .993);--colors-violet-light-p3-4: color(display-p3 .916 .897 1);--colors-violet-light-p3-5: color(display-p3 .876 .851 1);--colors-violet-light-p3-6: color(display-p3 .825 .793 .981);--colors-violet-light-p3-7: color(display-p3 .752 .712 .943);--colors-violet-light-p3-8: color(display-p3 .654 .602 .902);--colors-violet-light-p3-9: color(display-p3 .417 .341 .784);--colors-violet-light-p3-10: color(display-p3 .381 .306 .741);--colors-violet-light-p3-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-12: color(display-p3 .179 .15 .359);--colors-violet-light-p3-a-1: color(display-p3 .349 .024 .675 / .012);--colors-violet-light-p3-a-2: color(display-p3 .161 .024 .863 / .028);--colors-violet-light-p3-a-3: color(display-p3 .204 .004 .871 / .059);--colors-violet-light-p3-a-4: color(display-p3 .196 .004 1 / .102);--colors-violet-light-p3-a-5: color(display-p3 .165 .008 1 / .15);--colors-violet-light-p3-a-6: color(display-p3 .153 .004 .906 / .208);--colors-violet-light-p3-a-7: color(display-p3 .141 .004 .796 / .287);--colors-violet-light-p3-a-8: color(display-p3 .133 .004 .753 / .397);--colors-violet-light-p3-a-9: color(display-p3 .114 0 .675 / .659);--colors-violet-light-p3-a-10: color(display-p3 .11 0 .627 / .695);--colors-violet-light-p3-a-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-a-12: color(display-p3 .179 .15 .359);--colors-violet-dark-1: #14121f;--colors-violet-dark-2: #1b1525;--colors-violet-dark-3: #291f43;--colors-violet-dark-4: #33255b;--colors-violet-dark-5: #3c2e69;--colors-violet-dark-6: #473876;--colors-violet-dark-7: #56468b;--colors-violet-dark-8: #6958ad;--colors-violet-dark-9: #6e56cf;--colors-violet-dark-10: #7d66d9;--colors-violet-dark-11: #baa7ff;--colors-violet-dark-12: #e2ddfe;--colors-violet-dark-a-1: #4422ff0f;--colors-violet-dark-a-2: #853ff916;--colors-violet-dark-a-3: #8354fe36;--colors-violet-dark-a-4: #7d51fd50;--colors-violet-dark-a-5: #845ffd5f;--colors-violet-dark-a-6: #8f6cfd6d;--colors-violet-dark-a-7: #9879ff83;--colors-violet-dark-a-8: #977dfea8;--colors-violet-dark-a-9: #8668ffcc;--colors-violet-dark-a-10: #9176fed7;--colors-violet-dark-a-11: #baa7ff;--colors-violet-dark-a-12: #e3defffe;--colors-violet-dark-p3-1: color(display-p3 .077 .071 .118);--colors-violet-dark-p3-2: color(display-p3 .101 .084 .141);--colors-violet-dark-p3-3: color(display-p3 .154 .123 .256);--colors-violet-dark-p3-4: color(display-p3 .191 .148 .345);--colors-violet-dark-p3-5: color(display-p3 .226 .182 .396);--colors-violet-dark-p3-6: color(display-p3 .269 .223 .449);--colors-violet-dark-p3-7: color(display-p3 .326 .277 .53);--colors-violet-dark-p3-8: color(display-p3 .399 .346 .656);--colors-violet-dark-p3-9: color(display-p3 .417 .341 .784);--colors-violet-dark-p3-10: color(display-p3 .477 .402 .823);--colors-violet-dark-p3-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-12: color(display-p3 .883 .867 .986);--colors-violet-dark-p3-a-1: color(display-p3 .282 .141 .996 / .055);--colors-violet-dark-p3-a-2: color(display-p3 .51 .263 1 / .08);--colors-violet-dark-p3-a-3: color(display-p3 .494 .337 .996 / .202);--colors-violet-dark-p3-a-4: color(display-p3 .49 .345 1 / .299);--colors-violet-dark-p3-a-5: color(display-p3 .525 .392 1 / .353);--colors-violet-dark-p3-a-6: color(display-p3 .569 .455 1 / .408);--colors-violet-dark-p3-a-7: color(display-p3 .588 .494 1 / .496);--colors-violet-dark-p3-a-8: color(display-p3 .596 .51 1 / .631);--colors-violet-dark-p3-a-9: color(display-p3 .522 .424 1 / .769);--colors-violet-dark-p3-a-10: color(display-p3 .576 .482 1 / .811);--colors-violet-dark-p3-a-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-a-12: color(display-p3 .883 .867 .986);--colors-violet-a-1: var(--colors-violet-light-a-1);--colors-violet-a-2: var(--colors-violet-light-a-2);--colors-violet-a-3: var(--colors-violet-light-a-3);--colors-violet-a-4: var(--colors-violet-light-a-4);--colors-violet-a-5: var(--colors-violet-light-a-5);--colors-violet-a-6: var(--colors-violet-light-a-6);--colors-violet-a-7: var(--colors-violet-light-a-7);--colors-violet-a-8: var(--colors-violet-light-a-8);--colors-violet-a-9: var(--colors-violet-light-a-9);--colors-violet-a-10: var(--colors-violet-light-a-10);--colors-violet-a-11: var(--colors-violet-light-a-11);--colors-violet-a-12: var(--colors-violet-light-a-12);--colors-violet-p3-1: var(--colors-violet-light-p3-1);--colors-violet-p3-2: var(--colors-violet-light-p3-2);--colors-violet-p3-3: var(--colors-violet-light-p3-3);--colors-violet-p3-4: var(--colors-violet-light-p3-4);--colors-violet-p3-5: var(--colors-violet-light-p3-5);--colors-violet-p3-6: var(--colors-violet-light-p3-6);--colors-violet-p3-7: var(--colors-violet-light-p3-7);--colors-violet-p3-8: var(--colors-violet-light-p3-8);--colors-violet-p3-9: var(--colors-violet-light-p3-9);--colors-violet-p3-10: var(--colors-violet-light-p3-10);--colors-violet-p3-11: var(--colors-violet-light-p3-11);--colors-violet-p3-12: var(--colors-violet-light-p3-12);--colors-violet-p3-a-1: var(--colors-violet-light-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-light-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-light-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-light-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-light-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-light-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-light-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-light-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-light-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-light-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-light-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-light-p3-a-12);--colors-yellow-1: var(--colors-yellow-light-1);--colors-yellow-2: var(--colors-yellow-light-2);--colors-yellow-3: var(--colors-yellow-light-3);--colors-yellow-4: var(--colors-yellow-light-4);--colors-yellow-5: var(--colors-yellow-light-5);--colors-yellow-6: var(--colors-yellow-light-6);--colors-yellow-7: var(--colors-yellow-light-7);--colors-yellow-8: var(--colors-yellow-light-8);--colors-yellow-9: var(--colors-yellow-light-9);--colors-yellow-10: var(--colors-yellow-light-10);--colors-yellow-11: var(--colors-yellow-light-11);--colors-yellow-12: var(--colors-yellow-light-12);--colors-yellow-light-1: #fdfdf9;--colors-yellow-light-2: #fefce9;--colors-yellow-light-3: #fffab8;--colors-yellow-light-4: #fff394;--colors-yellow-light-5: #ffe770;--colors-yellow-light-6: #f3d768;--colors-yellow-light-7: #e4c767;--colors-yellow-light-8: #d5ae39;--colors-yellow-light-9: #ffe629;--colors-yellow-light-10: #ffdc00;--colors-yellow-light-11: #9e6c00;--colors-yellow-light-12: #473b1f;--colors-yellow-light-a-1: #aaaa0006;--colors-yellow-light-a-2: #f4dd0016;--colors-yellow-light-a-3: #ffee0047;--colors-yellow-light-a-4: #ffe3016b;--colors-yellow-light-a-5: #ffd5008f;--colors-yellow-light-a-6: #ebbc0097;--colors-yellow-light-a-7: #d2a10098;--colors-yellow-light-a-8: #c99700c6;--colors-yellow-light-a-9: #ffe100d6;--colors-yellow-light-a-10: #ffdc00;--colors-yellow-light-a-11: #9e6c00;--colors-yellow-light-a-12: #2e2000e0;--colors-yellow-light-p3-1: color(display-p3 .992 .992 .978);--colors-yellow-light-p3-2: color(display-p3 .995 .99 .922);--colors-yellow-light-p3-3: color(display-p3 .997 .982 .749);--colors-yellow-light-p3-4: color(display-p3 .992 .953 .627);--colors-yellow-light-p3-5: color(display-p3 .984 .91 .51);--colors-yellow-light-p3-6: color(display-p3 .934 .847 .474);--colors-yellow-light-p3-7: color(display-p3 .876 .785 .46);--colors-yellow-light-p3-8: color(display-p3 .811 .689 .313);--colors-yellow-light-p3-9: color(display-p3 1 .92 .22);--colors-yellow-light-p3-10: color(display-p3 .977 .868 .291);--colors-yellow-light-p3-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-12: color(display-p3 .271 .233 .137);--colors-yellow-light-p3-a-1: color(display-p3 .675 .675 .024 / .024);--colors-yellow-light-p3-a-2: color(display-p3 .953 .855 .008 / .079);--colors-yellow-light-p3-a-3: color(display-p3 .988 .925 .004 / .251);--colors-yellow-light-p3-a-4: color(display-p3 .98 .875 .004 / .373);--colors-yellow-light-p3-a-5: color(display-p3 .969 .816 .004 / .491);--colors-yellow-light-p3-a-6: color(display-p3 .875 .71 0 / .526);--colors-yellow-light-p3-a-7: color(display-p3 .769 .604 0 / .542);--colors-yellow-light-p3-a-8: color(display-p3 .725 .549 0 / .687);--colors-yellow-light-p3-a-9: color(display-p3 1 .898 0 / .781);--colors-yellow-light-p3-a-10: color(display-p3 .969 .812 0 / .71);--colors-yellow-light-p3-a-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-a-12: color(display-p3 .271 .233 .137);--colors-yellow-dark-1: #14120b;--colors-yellow-dark-2: #1b180f;--colors-yellow-dark-3: #2d2305;--colors-yellow-dark-4: #362b00;--colors-yellow-dark-5: #433500;--colors-yellow-dark-6: #524202;--colors-yellow-dark-7: #665417;--colors-yellow-dark-8: #836a21;--colors-yellow-dark-9: #ffe629;--colors-yellow-dark-10: #ffff57;--colors-yellow-dark-11: #f5e147;--colors-yellow-dark-12: #f6eeb4;--colors-yellow-dark-a-1: #d1510004;--colors-yellow-dark-a-2: #f9b4000b;--colors-yellow-dark-a-3: #ffaa001e;--colors-yellow-dark-a-4: #fdb70028;--colors-yellow-dark-a-5: #febb0036;--colors-yellow-dark-a-6: #fec40046;--colors-yellow-dark-a-7: #fdcb225c;--colors-yellow-dark-a-8: #fdca327b;--colors-yellow-dark-a-9: #ffe629;--colors-yellow-dark-a-10: #ffff57;--colors-yellow-dark-a-11: #fee949f5;--colors-yellow-dark-a-12: #fef6baf6;--colors-yellow-dark-p3-1: color(display-p3 .078 .069 .047);--colors-yellow-dark-p3-2: color(display-p3 .103 .094 .063);--colors-yellow-dark-p3-3: color(display-p3 .168 .137 .039);--colors-yellow-dark-p3-4: color(display-p3 .209 .169 0);--colors-yellow-dark-p3-5: color(display-p3 .255 .209 0);--colors-yellow-dark-p3-6: color(display-p3 .31 .261 .07);--colors-yellow-dark-p3-7: color(display-p3 .389 .331 .135);--colors-yellow-dark-p3-8: color(display-p3 .497 .42 .182);--colors-yellow-dark-p3-9: color(display-p3 1 .92 .22);--colors-yellow-dark-p3-10: color(display-p3 1 1 .456);--colors-yellow-dark-p3-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-12: color(display-p3 .959 .934 .731);--colors-yellow-dark-p3-a-1: color(display-p3 .973 .369 0 / .013);--colors-yellow-dark-p3-a-2: color(display-p3 .996 .792 0 / .038);--colors-yellow-dark-p3-a-3: color(display-p3 .996 .71 0 / .11);--colors-yellow-dark-p3-a-4: color(display-p3 .996 .741 0 / .152);--colors-yellow-dark-p3-a-5: color(display-p3 .996 .765 0 / .202);--colors-yellow-dark-p3-a-6: color(display-p3 .996 .816 .082 / .261);--colors-yellow-dark-p3-a-7: color(display-p3 1 .831 .263 / .345);--colors-yellow-dark-p3-a-8: color(display-p3 1 .831 .314 / .463);--colors-yellow-dark-p3-a-9: color(display-p3 1 .922 .22);--colors-yellow-dark-p3-a-10: color(display-p3 1 1 .455);--colors-yellow-dark-p3-a-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-a-12: color(display-p3 .959 .934 .731);--colors-yellow-a-1: var(--colors-yellow-light-a-1);--colors-yellow-a-2: var(--colors-yellow-light-a-2);--colors-yellow-a-3: var(--colors-yellow-light-a-3);--colors-yellow-a-4: var(--colors-yellow-light-a-4);--colors-yellow-a-5: var(--colors-yellow-light-a-5);--colors-yellow-a-6: var(--colors-yellow-light-a-6);--colors-yellow-a-7: var(--colors-yellow-light-a-7);--colors-yellow-a-8: var(--colors-yellow-light-a-8);--colors-yellow-a-9: var(--colors-yellow-light-a-9);--colors-yellow-a-10: var(--colors-yellow-light-a-10);--colors-yellow-a-11: var(--colors-yellow-light-a-11);--colors-yellow-a-12: var(--colors-yellow-light-a-12);--colors-yellow-p3-1: var(--colors-yellow-light-p3-1);--colors-yellow-p3-2: var(--colors-yellow-light-p3-2);--colors-yellow-p3-3: var(--colors-yellow-light-p3-3);--colors-yellow-p3-4: var(--colors-yellow-light-p3-4);--colors-yellow-p3-5: var(--colors-yellow-light-p3-5);--colors-yellow-p3-6: var(--colors-yellow-light-p3-6);--colors-yellow-p3-7: var(--colors-yellow-light-p3-7);--colors-yellow-p3-8: var(--colors-yellow-light-p3-8);--colors-yellow-p3-9: var(--colors-yellow-light-p3-9);--colors-yellow-p3-10: var(--colors-yellow-light-p3-10);--colors-yellow-p3-11: var(--colors-yellow-light-p3-11);--colors-yellow-p3-12: var(--colors-yellow-light-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-light-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-light-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-light-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-light-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-light-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-light-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-light-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-light-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-light-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-light-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-light-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-light-p3-a-12);--colors-likec4-background: var(--mantine-color-body);--colors-likec4-tag-bg: var(--colors-tomato-9);--colors-likec4-tag-bg-hover: var(--colors-tomato-10);--colors-likec4-tag-border: var(--colors-tomato-8);--colors-likec4-tag-text: var(--colors-tomato-12);--colors-likec4-panel-bg: var(--colors-mantine-colors-body);--colors-likec4-panel-border: transparent;--colors-likec4-panel-action-icon-text: color-mix(in srgb, var(--mantine-color-text) 80%, transparent);--colors-likec4-panel-action-icon-text-hover: var(--mantine-color-bright);--colors-likec4-panel-action-icon-text-disabled: var(--mantine-color-dimmed);--colors-likec4-panel-action-icon-bg: var(--colors-mantine-colors-gray\\[1\\]);--colors-likec4-panel-action-icon-bg-hover: var(--colors-mantine-colors-gray\\[2\\]);--colors-likec4-dropdown-bg: #FFF;--colors-likec4-dropdown-border: var(--colors-likec4-panel-border);--colors-likec4-overlay-backdrop: rgb(34 34 34);--colors-likec4-overlay-body: var(--mantine-color-body);--colors-likec4-overlay-border: color-mix(in srgb, var(--colors-mantine-colors-default-border) 50%, transparent)}[data-mantine-color-scheme=dark]{--colors-amber-1: var(--colors-amber-dark-1);--colors-amber-2: var(--colors-amber-dark-2);--colors-amber-3: var(--colors-amber-dark-3);--colors-amber-4: var(--colors-amber-dark-4);--colors-amber-5: var(--colors-amber-dark-5);--colors-amber-6: var(--colors-amber-dark-6);--colors-amber-7: var(--colors-amber-dark-7);--colors-amber-8: var(--colors-amber-dark-8);--colors-amber-9: var(--colors-amber-dark-9);--colors-amber-10: var(--colors-amber-dark-10);--colors-amber-11: var(--colors-amber-dark-11);--colors-amber-12: var(--colors-amber-dark-12);--colors-amber-a-1: var(--colors-amber-dark-a-1);--colors-amber-a-2: var(--colors-amber-dark-a-2);--colors-amber-a-3: var(--colors-amber-dark-a-3);--colors-amber-a-4: var(--colors-amber-dark-a-4);--colors-amber-a-5: var(--colors-amber-dark-a-5);--colors-amber-a-6: var(--colors-amber-dark-a-6);--colors-amber-a-7: var(--colors-amber-dark-a-7);--colors-amber-a-8: var(--colors-amber-dark-a-8);--colors-amber-a-9: var(--colors-amber-dark-a-9);--colors-amber-a-10: var(--colors-amber-dark-a-10);--colors-amber-a-11: var(--colors-amber-dark-a-11);--colors-amber-a-12: var(--colors-amber-dark-a-12);--colors-amber-p3-1: var(--colors-amber-dark-p3-1);--colors-amber-p3-2: var(--colors-amber-dark-p3-2);--colors-amber-p3-3: var(--colors-amber-dark-p3-3);--colors-amber-p3-4: var(--colors-amber-dark-p3-4);--colors-amber-p3-5: var(--colors-amber-dark-p3-5);--colors-amber-p3-6: var(--colors-amber-dark-p3-6);--colors-amber-p3-7: var(--colors-amber-dark-p3-7);--colors-amber-p3-8: var(--colors-amber-dark-p3-8);--colors-amber-p3-9: var(--colors-amber-dark-p3-9);--colors-amber-p3-10: var(--colors-amber-dark-p3-10);--colors-amber-p3-11: var(--colors-amber-dark-p3-11);--colors-amber-p3-12: var(--colors-amber-dark-p3-12);--colors-amber-p3-a-1: var(--colors-amber-dark-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-dark-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-dark-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-dark-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-dark-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-dark-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-dark-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-dark-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-dark-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-dark-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-dark-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-dark-p3-a-12);--colors-blue-1: var(--colors-blue-dark-1);--colors-blue-2: var(--colors-blue-dark-2);--colors-blue-3: var(--colors-blue-dark-3);--colors-blue-4: var(--colors-blue-dark-4);--colors-blue-5: var(--colors-blue-dark-5);--colors-blue-6: var(--colors-blue-dark-6);--colors-blue-7: var(--colors-blue-dark-7);--colors-blue-8: var(--colors-blue-dark-8);--colors-blue-9: var(--colors-blue-dark-9);--colors-blue-10: var(--colors-blue-dark-10);--colors-blue-11: var(--colors-blue-dark-11);--colors-blue-12: var(--colors-blue-dark-12);--colors-blue-a-1: var(--colors-blue-dark-a-1);--colors-blue-a-2: var(--colors-blue-dark-a-2);--colors-blue-a-3: var(--colors-blue-dark-a-3);--colors-blue-a-4: var(--colors-blue-dark-a-4);--colors-blue-a-5: var(--colors-blue-dark-a-5);--colors-blue-a-6: var(--colors-blue-dark-a-6);--colors-blue-a-7: var(--colors-blue-dark-a-7);--colors-blue-a-8: var(--colors-blue-dark-a-8);--colors-blue-a-9: var(--colors-blue-dark-a-9);--colors-blue-a-10: var(--colors-blue-dark-a-10);--colors-blue-a-11: var(--colors-blue-dark-a-11);--colors-blue-a-12: var(--colors-blue-dark-a-12);--colors-blue-p3-1: var(--colors-blue-dark-p3-1);--colors-blue-p3-2: var(--colors-blue-dark-p3-2);--colors-blue-p3-3: var(--colors-blue-dark-p3-3);--colors-blue-p3-4: var(--colors-blue-dark-p3-4);--colors-blue-p3-5: var(--colors-blue-dark-p3-5);--colors-blue-p3-6: var(--colors-blue-dark-p3-6);--colors-blue-p3-7: var(--colors-blue-dark-p3-7);--colors-blue-p3-8: var(--colors-blue-dark-p3-8);--colors-blue-p3-9: var(--colors-blue-dark-p3-9);--colors-blue-p3-10: var(--colors-blue-dark-p3-10);--colors-blue-p3-11: var(--colors-blue-dark-p3-11);--colors-blue-p3-12: var(--colors-blue-dark-p3-12);--colors-blue-p3-a-1: var(--colors-blue-dark-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-dark-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-dark-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-dark-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-dark-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-dark-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-dark-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-dark-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-dark-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-dark-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-dark-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-dark-p3-a-12);--colors-crimson-1: var(--colors-crimson-dark-1);--colors-crimson-2: var(--colors-crimson-dark-2);--colors-crimson-3: var(--colors-crimson-dark-3);--colors-crimson-4: var(--colors-crimson-dark-4);--colors-crimson-5: var(--colors-crimson-dark-5);--colors-crimson-6: var(--colors-crimson-dark-6);--colors-crimson-7: var(--colors-crimson-dark-7);--colors-crimson-8: var(--colors-crimson-dark-8);--colors-crimson-9: var(--colors-crimson-dark-9);--colors-crimson-10: var(--colors-crimson-dark-10);--colors-crimson-11: var(--colors-crimson-dark-11);--colors-crimson-12: var(--colors-crimson-dark-12);--colors-crimson-a-1: var(--colors-crimson-dark-a-1);--colors-crimson-a-2: var(--colors-crimson-dark-a-2);--colors-crimson-a-3: var(--colors-crimson-dark-a-3);--colors-crimson-a-4: var(--colors-crimson-dark-a-4);--colors-crimson-a-5: var(--colors-crimson-dark-a-5);--colors-crimson-a-6: var(--colors-crimson-dark-a-6);--colors-crimson-a-7: var(--colors-crimson-dark-a-7);--colors-crimson-a-8: var(--colors-crimson-dark-a-8);--colors-crimson-a-9: var(--colors-crimson-dark-a-9);--colors-crimson-a-10: var(--colors-crimson-dark-a-10);--colors-crimson-a-11: var(--colors-crimson-dark-a-11);--colors-crimson-a-12: var(--colors-crimson-dark-a-12);--colors-crimson-p3-1: var(--colors-crimson-dark-p3-1);--colors-crimson-p3-2: var(--colors-crimson-dark-p3-2);--colors-crimson-p3-3: var(--colors-crimson-dark-p3-3);--colors-crimson-p3-4: var(--colors-crimson-dark-p3-4);--colors-crimson-p3-5: var(--colors-crimson-dark-p3-5);--colors-crimson-p3-6: var(--colors-crimson-dark-p3-6);--colors-crimson-p3-7: var(--colors-crimson-dark-p3-7);--colors-crimson-p3-8: var(--colors-crimson-dark-p3-8);--colors-crimson-p3-9: var(--colors-crimson-dark-p3-9);--colors-crimson-p3-10: var(--colors-crimson-dark-p3-10);--colors-crimson-p3-11: var(--colors-crimson-dark-p3-11);--colors-crimson-p3-12: var(--colors-crimson-dark-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-dark-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-dark-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-dark-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-dark-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-dark-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-dark-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-dark-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-dark-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-dark-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-dark-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-dark-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-dark-p3-a-12);--colors-grass-1: var(--colors-grass-dark-1);--colors-grass-2: var(--colors-grass-dark-2);--colors-grass-3: var(--colors-grass-dark-3);--colors-grass-4: var(--colors-grass-dark-4);--colors-grass-5: var(--colors-grass-dark-5);--colors-grass-6: var(--colors-grass-dark-6);--colors-grass-7: var(--colors-grass-dark-7);--colors-grass-8: var(--colors-grass-dark-8);--colors-grass-9: var(--colors-grass-dark-9);--colors-grass-10: var(--colors-grass-dark-10);--colors-grass-11: var(--colors-grass-dark-11);--colors-grass-12: var(--colors-grass-dark-12);--colors-grass-a-1: var(--colors-grass-dark-a-1);--colors-grass-a-2: var(--colors-grass-dark-a-2);--colors-grass-a-3: var(--colors-grass-dark-a-3);--colors-grass-a-4: var(--colors-grass-dark-a-4);--colors-grass-a-5: var(--colors-grass-dark-a-5);--colors-grass-a-6: var(--colors-grass-dark-a-6);--colors-grass-a-7: var(--colors-grass-dark-a-7);--colors-grass-a-8: var(--colors-grass-dark-a-8);--colors-grass-a-9: var(--colors-grass-dark-a-9);--colors-grass-a-10: var(--colors-grass-dark-a-10);--colors-grass-a-11: var(--colors-grass-dark-a-11);--colors-grass-a-12: var(--colors-grass-dark-a-12);--colors-grass-p3-1: var(--colors-grass-dark-p3-1);--colors-grass-p3-2: var(--colors-grass-dark-p3-2);--colors-grass-p3-3: var(--colors-grass-dark-p3-3);--colors-grass-p3-4: var(--colors-grass-dark-p3-4);--colors-grass-p3-5: var(--colors-grass-dark-p3-5);--colors-grass-p3-6: var(--colors-grass-dark-p3-6);--colors-grass-p3-7: var(--colors-grass-dark-p3-7);--colors-grass-p3-8: var(--colors-grass-dark-p3-8);--colors-grass-p3-9: var(--colors-grass-dark-p3-9);--colors-grass-p3-10: var(--colors-grass-dark-p3-10);--colors-grass-p3-11: var(--colors-grass-dark-p3-11);--colors-grass-p3-12: var(--colors-grass-dark-p3-12);--colors-grass-p3-a-1: var(--colors-grass-dark-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-dark-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-dark-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-dark-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-dark-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-dark-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-dark-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-dark-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-dark-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-dark-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-dark-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-dark-p3-a-12);--colors-indigo-1: var(--colors-indigo-dark-1);--colors-indigo-2: var(--colors-indigo-dark-2);--colors-indigo-3: var(--colors-indigo-dark-3);--colors-indigo-4: var(--colors-indigo-dark-4);--colors-indigo-5: var(--colors-indigo-dark-5);--colors-indigo-6: var(--colors-indigo-dark-6);--colors-indigo-7: var(--colors-indigo-dark-7);--colors-indigo-8: var(--colors-indigo-dark-8);--colors-indigo-9: var(--colors-indigo-dark-9);--colors-indigo-10: var(--colors-indigo-dark-10);--colors-indigo-11: var(--colors-indigo-dark-11);--colors-indigo-12: var(--colors-indigo-dark-12);--colors-indigo-a-1: var(--colors-indigo-dark-a-1);--colors-indigo-a-2: var(--colors-indigo-dark-a-2);--colors-indigo-a-3: var(--colors-indigo-dark-a-3);--colors-indigo-a-4: var(--colors-indigo-dark-a-4);--colors-indigo-a-5: var(--colors-indigo-dark-a-5);--colors-indigo-a-6: var(--colors-indigo-dark-a-6);--colors-indigo-a-7: var(--colors-indigo-dark-a-7);--colors-indigo-a-8: var(--colors-indigo-dark-a-8);--colors-indigo-a-9: var(--colors-indigo-dark-a-9);--colors-indigo-a-10: var(--colors-indigo-dark-a-10);--colors-indigo-a-11: var(--colors-indigo-dark-a-11);--colors-indigo-a-12: var(--colors-indigo-dark-a-12);--colors-indigo-p3-1: var(--colors-indigo-dark-p3-1);--colors-indigo-p3-2: var(--colors-indigo-dark-p3-2);--colors-indigo-p3-3: var(--colors-indigo-dark-p3-3);--colors-indigo-p3-4: var(--colors-indigo-dark-p3-4);--colors-indigo-p3-5: var(--colors-indigo-dark-p3-5);--colors-indigo-p3-6: var(--colors-indigo-dark-p3-6);--colors-indigo-p3-7: var(--colors-indigo-dark-p3-7);--colors-indigo-p3-8: var(--colors-indigo-dark-p3-8);--colors-indigo-p3-9: var(--colors-indigo-dark-p3-9);--colors-indigo-p3-10: var(--colors-indigo-dark-p3-10);--colors-indigo-p3-11: var(--colors-indigo-dark-p3-11);--colors-indigo-p3-12: var(--colors-indigo-dark-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-dark-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-dark-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-dark-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-dark-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-dark-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-dark-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-dark-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-dark-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-dark-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-dark-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-dark-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-dark-p3-a-12);--colors-lime-1: var(--colors-lime-dark-1);--colors-lime-2: var(--colors-lime-dark-2);--colors-lime-3: var(--colors-lime-dark-3);--colors-lime-4: var(--colors-lime-dark-4);--colors-lime-5: var(--colors-lime-dark-5);--colors-lime-6: var(--colors-lime-dark-6);--colors-lime-7: var(--colors-lime-dark-7);--colors-lime-8: var(--colors-lime-dark-8);--colors-lime-9: var(--colors-lime-dark-9);--colors-lime-10: var(--colors-lime-dark-10);--colors-lime-11: var(--colors-lime-dark-11);--colors-lime-12: var(--colors-lime-dark-12);--colors-lime-a-1: var(--colors-lime-dark-a-1);--colors-lime-a-2: var(--colors-lime-dark-a-2);--colors-lime-a-3: var(--colors-lime-dark-a-3);--colors-lime-a-4: var(--colors-lime-dark-a-4);--colors-lime-a-5: var(--colors-lime-dark-a-5);--colors-lime-a-6: var(--colors-lime-dark-a-6);--colors-lime-a-7: var(--colors-lime-dark-a-7);--colors-lime-a-8: var(--colors-lime-dark-a-8);--colors-lime-a-9: var(--colors-lime-dark-a-9);--colors-lime-a-10: var(--colors-lime-dark-a-10);--colors-lime-a-11: var(--colors-lime-dark-a-11);--colors-lime-a-12: var(--colors-lime-dark-a-12);--colors-lime-p3-1: var(--colors-lime-dark-p3-1);--colors-lime-p3-2: var(--colors-lime-dark-p3-2);--colors-lime-p3-3: var(--colors-lime-dark-p3-3);--colors-lime-p3-4: var(--colors-lime-dark-p3-4);--colors-lime-p3-5: var(--colors-lime-dark-p3-5);--colors-lime-p3-6: var(--colors-lime-dark-p3-6);--colors-lime-p3-7: var(--colors-lime-dark-p3-7);--colors-lime-p3-8: var(--colors-lime-dark-p3-8);--colors-lime-p3-9: var(--colors-lime-dark-p3-9);--colors-lime-p3-10: var(--colors-lime-dark-p3-10);--colors-lime-p3-11: var(--colors-lime-dark-p3-11);--colors-lime-p3-12: var(--colors-lime-dark-p3-12);--colors-lime-p3-a-1: var(--colors-lime-dark-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-dark-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-dark-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-dark-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-dark-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-dark-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-dark-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-dark-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-dark-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-dark-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-dark-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-dark-p3-a-12);--colors-orange-1: var(--colors-orange-dark-1);--colors-orange-2: var(--colors-orange-dark-2);--colors-orange-3: var(--colors-orange-dark-3);--colors-orange-4: var(--colors-orange-dark-4);--colors-orange-5: var(--colors-orange-dark-5);--colors-orange-6: var(--colors-orange-dark-6);--colors-orange-7: var(--colors-orange-dark-7);--colors-orange-8: var(--colors-orange-dark-8);--colors-orange-9: var(--colors-orange-dark-9);--colors-orange-10: var(--colors-orange-dark-10);--colors-orange-11: var(--colors-orange-dark-11);--colors-orange-12: var(--colors-orange-dark-12);--colors-orange-a-1: var(--colors-orange-dark-a-1);--colors-orange-a-2: var(--colors-orange-dark-a-2);--colors-orange-a-3: var(--colors-orange-dark-a-3);--colors-orange-a-4: var(--colors-orange-dark-a-4);--colors-orange-a-5: var(--colors-orange-dark-a-5);--colors-orange-a-6: var(--colors-orange-dark-a-6);--colors-orange-a-7: var(--colors-orange-dark-a-7);--colors-orange-a-8: var(--colors-orange-dark-a-8);--colors-orange-a-9: var(--colors-orange-dark-a-9);--colors-orange-a-10: var(--colors-orange-dark-a-10);--colors-orange-a-11: var(--colors-orange-dark-a-11);--colors-orange-a-12: var(--colors-orange-dark-a-12);--colors-orange-p3-1: var(--colors-orange-dark-p3-1);--colors-orange-p3-2: var(--colors-orange-dark-p3-2);--colors-orange-p3-3: var(--colors-orange-dark-p3-3);--colors-orange-p3-4: var(--colors-orange-dark-p3-4);--colors-orange-p3-5: var(--colors-orange-dark-p3-5);--colors-orange-p3-6: var(--colors-orange-dark-p3-6);--colors-orange-p3-7: var(--colors-orange-dark-p3-7);--colors-orange-p3-8: var(--colors-orange-dark-p3-8);--colors-orange-p3-9: var(--colors-orange-dark-p3-9);--colors-orange-p3-10: var(--colors-orange-dark-p3-10);--colors-orange-p3-11: var(--colors-orange-dark-p3-11);--colors-orange-p3-12: var(--colors-orange-dark-p3-12);--colors-orange-p3-a-1: var(--colors-orange-dark-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-dark-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-dark-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-dark-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-dark-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-dark-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-dark-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-dark-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-dark-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-dark-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-dark-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-dark-p3-a-12);--colors-pink-1: var(--colors-pink-dark-1);--colors-pink-2: var(--colors-pink-dark-2);--colors-pink-3: var(--colors-pink-dark-3);--colors-pink-4: var(--colors-pink-dark-4);--colors-pink-5: var(--colors-pink-dark-5);--colors-pink-6: var(--colors-pink-dark-6);--colors-pink-7: var(--colors-pink-dark-7);--colors-pink-8: var(--colors-pink-dark-8);--colors-pink-9: var(--colors-pink-dark-9);--colors-pink-10: var(--colors-pink-dark-10);--colors-pink-11: var(--colors-pink-dark-11);--colors-pink-12: var(--colors-pink-dark-12);--colors-pink-a-1: var(--colors-pink-dark-a-1);--colors-pink-a-2: var(--colors-pink-dark-a-2);--colors-pink-a-3: var(--colors-pink-dark-a-3);--colors-pink-a-4: var(--colors-pink-dark-a-4);--colors-pink-a-5: var(--colors-pink-dark-a-5);--colors-pink-a-6: var(--colors-pink-dark-a-6);--colors-pink-a-7: var(--colors-pink-dark-a-7);--colors-pink-a-8: var(--colors-pink-dark-a-8);--colors-pink-a-9: var(--colors-pink-dark-a-9);--colors-pink-a-10: var(--colors-pink-dark-a-10);--colors-pink-a-11: var(--colors-pink-dark-a-11);--colors-pink-a-12: var(--colors-pink-dark-a-12);--colors-pink-p3-1: var(--colors-pink-dark-p3-1);--colors-pink-p3-2: var(--colors-pink-dark-p3-2);--colors-pink-p3-3: var(--colors-pink-dark-p3-3);--colors-pink-p3-4: var(--colors-pink-dark-p3-4);--colors-pink-p3-5: var(--colors-pink-dark-p3-5);--colors-pink-p3-6: var(--colors-pink-dark-p3-6);--colors-pink-p3-7: var(--colors-pink-dark-p3-7);--colors-pink-p3-8: var(--colors-pink-dark-p3-8);--colors-pink-p3-9: var(--colors-pink-dark-p3-9);--colors-pink-p3-10: var(--colors-pink-dark-p3-10);--colors-pink-p3-11: var(--colors-pink-dark-p3-11);--colors-pink-p3-12: var(--colors-pink-dark-p3-12);--colors-pink-p3-a-1: var(--colors-pink-dark-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-dark-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-dark-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-dark-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-dark-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-dark-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-dark-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-dark-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-dark-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-dark-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-dark-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-dark-p3-a-12);--colors-purple-1: var(--colors-purple-dark-1);--colors-purple-2: var(--colors-purple-dark-2);--colors-purple-3: var(--colors-purple-dark-3);--colors-purple-4: var(--colors-purple-dark-4);--colors-purple-5: var(--colors-purple-dark-5);--colors-purple-6: var(--colors-purple-dark-6);--colors-purple-7: var(--colors-purple-dark-7);--colors-purple-8: var(--colors-purple-dark-8);--colors-purple-9: var(--colors-purple-dark-9);--colors-purple-10: var(--colors-purple-dark-10);--colors-purple-11: var(--colors-purple-dark-11);--colors-purple-12: var(--colors-purple-dark-12);--colors-purple-a-1: var(--colors-purple-dark-a-1);--colors-purple-a-2: var(--colors-purple-dark-a-2);--colors-purple-a-3: var(--colors-purple-dark-a-3);--colors-purple-a-4: var(--colors-purple-dark-a-4);--colors-purple-a-5: var(--colors-purple-dark-a-5);--colors-purple-a-6: var(--colors-purple-dark-a-6);--colors-purple-a-7: var(--colors-purple-dark-a-7);--colors-purple-a-8: var(--colors-purple-dark-a-8);--colors-purple-a-9: var(--colors-purple-dark-a-9);--colors-purple-a-10: var(--colors-purple-dark-a-10);--colors-purple-a-11: var(--colors-purple-dark-a-11);--colors-purple-a-12: var(--colors-purple-dark-a-12);--colors-purple-p3-1: var(--colors-purple-dark-p3-1);--colors-purple-p3-2: var(--colors-purple-dark-p3-2);--colors-purple-p3-3: var(--colors-purple-dark-p3-3);--colors-purple-p3-4: var(--colors-purple-dark-p3-4);--colors-purple-p3-5: var(--colors-purple-dark-p3-5);--colors-purple-p3-6: var(--colors-purple-dark-p3-6);--colors-purple-p3-7: var(--colors-purple-dark-p3-7);--colors-purple-p3-8: var(--colors-purple-dark-p3-8);--colors-purple-p3-9: var(--colors-purple-dark-p3-9);--colors-purple-p3-10: var(--colors-purple-dark-p3-10);--colors-purple-p3-11: var(--colors-purple-dark-p3-11);--colors-purple-p3-12: var(--colors-purple-dark-p3-12);--colors-purple-p3-a-1: var(--colors-purple-dark-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-dark-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-dark-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-dark-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-dark-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-dark-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-dark-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-dark-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-dark-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-dark-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-dark-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-dark-p3-a-12);--colors-red-1: var(--colors-red-dark-1);--colors-red-2: var(--colors-red-dark-2);--colors-red-3: var(--colors-red-dark-3);--colors-red-4: var(--colors-red-dark-4);--colors-red-5: var(--colors-red-dark-5);--colors-red-6: var(--colors-red-dark-6);--colors-red-7: var(--colors-red-dark-7);--colors-red-8: var(--colors-red-dark-8);--colors-red-9: var(--colors-red-dark-9);--colors-red-10: var(--colors-red-dark-10);--colors-red-11: var(--colors-red-dark-11);--colors-red-12: var(--colors-red-dark-12);--colors-red-a-1: var(--colors-red-dark-a-1);--colors-red-a-2: var(--colors-red-dark-a-2);--colors-red-a-3: var(--colors-red-dark-a-3);--colors-red-a-4: var(--colors-red-dark-a-4);--colors-red-a-5: var(--colors-red-dark-a-5);--colors-red-a-6: var(--colors-red-dark-a-6);--colors-red-a-7: var(--colors-red-dark-a-7);--colors-red-a-8: var(--colors-red-dark-a-8);--colors-red-a-9: var(--colors-red-dark-a-9);--colors-red-a-10: var(--colors-red-dark-a-10);--colors-red-a-11: var(--colors-red-dark-a-11);--colors-red-a-12: var(--colors-red-dark-a-12);--colors-red-p3-1: var(--colors-red-dark-p3-1);--colors-red-p3-2: var(--colors-red-dark-p3-2);--colors-red-p3-3: var(--colors-red-dark-p3-3);--colors-red-p3-4: var(--colors-red-dark-p3-4);--colors-red-p3-5: var(--colors-red-dark-p3-5);--colors-red-p3-6: var(--colors-red-dark-p3-6);--colors-red-p3-7: var(--colors-red-dark-p3-7);--colors-red-p3-8: var(--colors-red-dark-p3-8);--colors-red-p3-9: var(--colors-red-dark-p3-9);--colors-red-p3-10: var(--colors-red-dark-p3-10);--colors-red-p3-11: var(--colors-red-dark-p3-11);--colors-red-p3-12: var(--colors-red-dark-p3-12);--colors-red-p3-a-1: var(--colors-red-dark-p3-a-1);--colors-red-p3-a-2: var(--colors-red-dark-p3-a-2);--colors-red-p3-a-3: var(--colors-red-dark-p3-a-3);--colors-red-p3-a-4: var(--colors-red-dark-p3-a-4);--colors-red-p3-a-5: var(--colors-red-dark-p3-a-5);--colors-red-p3-a-6: var(--colors-red-dark-p3-a-6);--colors-red-p3-a-7: var(--colors-red-dark-p3-a-7);--colors-red-p3-a-8: var(--colors-red-dark-p3-a-8);--colors-red-p3-a-9: var(--colors-red-dark-p3-a-9);--colors-red-p3-a-10: var(--colors-red-dark-p3-a-10);--colors-red-p3-a-11: var(--colors-red-dark-p3-a-11);--colors-red-p3-a-12: var(--colors-red-dark-p3-a-12);--colors-ruby-1: var(--colors-ruby-dark-1);--colors-ruby-2: var(--colors-ruby-dark-2);--colors-ruby-3: var(--colors-ruby-dark-3);--colors-ruby-4: var(--colors-ruby-dark-4);--colors-ruby-5: var(--colors-ruby-dark-5);--colors-ruby-6: var(--colors-ruby-dark-6);--colors-ruby-7: var(--colors-ruby-dark-7);--colors-ruby-8: var(--colors-ruby-dark-8);--colors-ruby-9: var(--colors-ruby-dark-9);--colors-ruby-10: var(--colors-ruby-dark-10);--colors-ruby-11: var(--colors-ruby-dark-11);--colors-ruby-12: var(--colors-ruby-dark-12);--colors-ruby-a-1: var(--colors-ruby-dark-a-1);--colors-ruby-a-2: var(--colors-ruby-dark-a-2);--colors-ruby-a-3: var(--colors-ruby-dark-a-3);--colors-ruby-a-4: var(--colors-ruby-dark-a-4);--colors-ruby-a-5: var(--colors-ruby-dark-a-5);--colors-ruby-a-6: var(--colors-ruby-dark-a-6);--colors-ruby-a-7: var(--colors-ruby-dark-a-7);--colors-ruby-a-8: var(--colors-ruby-dark-a-8);--colors-ruby-a-9: var(--colors-ruby-dark-a-9);--colors-ruby-a-10: var(--colors-ruby-dark-a-10);--colors-ruby-a-11: var(--colors-ruby-dark-a-11);--colors-ruby-a-12: var(--colors-ruby-dark-a-12);--colors-ruby-p3-1: var(--colors-ruby-dark-p3-1);--colors-ruby-p3-2: var(--colors-ruby-dark-p3-2);--colors-ruby-p3-3: var(--colors-ruby-dark-p3-3);--colors-ruby-p3-4: var(--colors-ruby-dark-p3-4);--colors-ruby-p3-5: var(--colors-ruby-dark-p3-5);--colors-ruby-p3-6: var(--colors-ruby-dark-p3-6);--colors-ruby-p3-7: var(--colors-ruby-dark-p3-7);--colors-ruby-p3-8: var(--colors-ruby-dark-p3-8);--colors-ruby-p3-9: var(--colors-ruby-dark-p3-9);--colors-ruby-p3-10: var(--colors-ruby-dark-p3-10);--colors-ruby-p3-11: var(--colors-ruby-dark-p3-11);--colors-ruby-p3-12: var(--colors-ruby-dark-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-dark-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-dark-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-dark-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-dark-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-dark-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-dark-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-dark-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-dark-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-dark-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-dark-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-dark-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-dark-p3-a-12);--colors-teal-1: var(--colors-teal-dark-1);--colors-teal-2: var(--colors-teal-dark-2);--colors-teal-3: var(--colors-teal-dark-3);--colors-teal-4: var(--colors-teal-dark-4);--colors-teal-5: var(--colors-teal-dark-5);--colors-teal-6: var(--colors-teal-dark-6);--colors-teal-7: var(--colors-teal-dark-7);--colors-teal-8: var(--colors-teal-dark-8);--colors-teal-9: var(--colors-teal-dark-9);--colors-teal-10: var(--colors-teal-dark-10);--colors-teal-11: var(--colors-teal-dark-11);--colors-teal-12: var(--colors-teal-dark-12);--colors-teal-a-1: var(--colors-teal-dark-a-1);--colors-teal-a-2: var(--colors-teal-dark-a-2);--colors-teal-a-3: var(--colors-teal-dark-a-3);--colors-teal-a-4: var(--colors-teal-dark-a-4);--colors-teal-a-5: var(--colors-teal-dark-a-5);--colors-teal-a-6: var(--colors-teal-dark-a-6);--colors-teal-a-7: var(--colors-teal-dark-a-7);--colors-teal-a-8: var(--colors-teal-dark-a-8);--colors-teal-a-9: var(--colors-teal-dark-a-9);--colors-teal-a-10: var(--colors-teal-dark-a-10);--colors-teal-a-11: var(--colors-teal-dark-a-11);--colors-teal-a-12: var(--colors-teal-dark-a-12);--colors-teal-p3-1: var(--colors-teal-dark-p3-1);--colors-teal-p3-2: var(--colors-teal-dark-p3-2);--colors-teal-p3-3: var(--colors-teal-dark-p3-3);--colors-teal-p3-4: var(--colors-teal-dark-p3-4);--colors-teal-p3-5: var(--colors-teal-dark-p3-5);--colors-teal-p3-6: var(--colors-teal-dark-p3-6);--colors-teal-p3-7: var(--colors-teal-dark-p3-7);--colors-teal-p3-8: var(--colors-teal-dark-p3-8);--colors-teal-p3-9: var(--colors-teal-dark-p3-9);--colors-teal-p3-10: var(--colors-teal-dark-p3-10);--colors-teal-p3-11: var(--colors-teal-dark-p3-11);--colors-teal-p3-12: var(--colors-teal-dark-p3-12);--colors-teal-p3-a-1: var(--colors-teal-dark-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-dark-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-dark-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-dark-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-dark-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-dark-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-dark-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-dark-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-dark-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-dark-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-dark-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-dark-p3-a-12);--colors-tomato-1: var(--colors-tomato-dark-1);--colors-tomato-2: var(--colors-tomato-dark-2);--colors-tomato-3: var(--colors-tomato-dark-3);--colors-tomato-4: var(--colors-tomato-dark-4);--colors-tomato-5: var(--colors-tomato-dark-5);--colors-tomato-6: var(--colors-tomato-dark-6);--colors-tomato-7: var(--colors-tomato-dark-7);--colors-tomato-8: var(--colors-tomato-dark-8);--colors-tomato-9: var(--colors-tomato-dark-9);--colors-tomato-10: var(--colors-tomato-dark-10);--colors-tomato-11: var(--colors-tomato-dark-11);--colors-tomato-12: var(--colors-tomato-dark-12);--colors-tomato-a-1: var(--colors-tomato-dark-a-1);--colors-tomato-a-2: var(--colors-tomato-dark-a-2);--colors-tomato-a-3: var(--colors-tomato-dark-a-3);--colors-tomato-a-4: var(--colors-tomato-dark-a-4);--colors-tomato-a-5: var(--colors-tomato-dark-a-5);--colors-tomato-a-6: var(--colors-tomato-dark-a-6);--colors-tomato-a-7: var(--colors-tomato-dark-a-7);--colors-tomato-a-8: var(--colors-tomato-dark-a-8);--colors-tomato-a-9: var(--colors-tomato-dark-a-9);--colors-tomato-a-10: var(--colors-tomato-dark-a-10);--colors-tomato-a-11: var(--colors-tomato-dark-a-11);--colors-tomato-a-12: var(--colors-tomato-dark-a-12);--colors-tomato-p3-1: var(--colors-tomato-dark-p3-1);--colors-tomato-p3-2: var(--colors-tomato-dark-p3-2);--colors-tomato-p3-3: var(--colors-tomato-dark-p3-3);--colors-tomato-p3-4: var(--colors-tomato-dark-p3-4);--colors-tomato-p3-5: var(--colors-tomato-dark-p3-5);--colors-tomato-p3-6: var(--colors-tomato-dark-p3-6);--colors-tomato-p3-7: var(--colors-tomato-dark-p3-7);--colors-tomato-p3-8: var(--colors-tomato-dark-p3-8);--colors-tomato-p3-9: var(--colors-tomato-dark-p3-9);--colors-tomato-p3-10: var(--colors-tomato-dark-p3-10);--colors-tomato-p3-11: var(--colors-tomato-dark-p3-11);--colors-tomato-p3-12: var(--colors-tomato-dark-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-dark-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-dark-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-dark-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-dark-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-dark-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-dark-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-dark-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-dark-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-dark-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-dark-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-dark-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-dark-p3-a-12);--colors-violet-1: var(--colors-violet-dark-1);--colors-violet-2: var(--colors-violet-dark-2);--colors-violet-3: var(--colors-violet-dark-3);--colors-violet-4: var(--colors-violet-dark-4);--colors-violet-5: var(--colors-violet-dark-5);--colors-violet-6: var(--colors-violet-dark-6);--colors-violet-7: var(--colors-violet-dark-7);--colors-violet-8: var(--colors-violet-dark-8);--colors-violet-9: var(--colors-violet-dark-9);--colors-violet-10: var(--colors-violet-dark-10);--colors-violet-11: var(--colors-violet-dark-11);--colors-violet-12: var(--colors-violet-dark-12);--colors-violet-a-1: var(--colors-violet-dark-a-1);--colors-violet-a-2: var(--colors-violet-dark-a-2);--colors-violet-a-3: var(--colors-violet-dark-a-3);--colors-violet-a-4: var(--colors-violet-dark-a-4);--colors-violet-a-5: var(--colors-violet-dark-a-5);--colors-violet-a-6: var(--colors-violet-dark-a-6);--colors-violet-a-7: var(--colors-violet-dark-a-7);--colors-violet-a-8: var(--colors-violet-dark-a-8);--colors-violet-a-9: var(--colors-violet-dark-a-9);--colors-violet-a-10: var(--colors-violet-dark-a-10);--colors-violet-a-11: var(--colors-violet-dark-a-11);--colors-violet-a-12: var(--colors-violet-dark-a-12);--colors-violet-p3-1: var(--colors-violet-dark-p3-1);--colors-violet-p3-2: var(--colors-violet-dark-p3-2);--colors-violet-p3-3: var(--colors-violet-dark-p3-3);--colors-violet-p3-4: var(--colors-violet-dark-p3-4);--colors-violet-p3-5: var(--colors-violet-dark-p3-5);--colors-violet-p3-6: var(--colors-violet-dark-p3-6);--colors-violet-p3-7: var(--colors-violet-dark-p3-7);--colors-violet-p3-8: var(--colors-violet-dark-p3-8);--colors-violet-p3-9: var(--colors-violet-dark-p3-9);--colors-violet-p3-10: var(--colors-violet-dark-p3-10);--colors-violet-p3-11: var(--colors-violet-dark-p3-11);--colors-violet-p3-12: var(--colors-violet-dark-p3-12);--colors-violet-p3-a-1: var(--colors-violet-dark-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-dark-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-dark-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-dark-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-dark-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-dark-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-dark-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-dark-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-dark-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-dark-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-dark-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-dark-p3-a-12);--colors-yellow-1: var(--colors-yellow-dark-1);--colors-yellow-2: var(--colors-yellow-dark-2);--colors-yellow-3: var(--colors-yellow-dark-3);--colors-yellow-4: var(--colors-yellow-dark-4);--colors-yellow-5: var(--colors-yellow-dark-5);--colors-yellow-6: var(--colors-yellow-dark-6);--colors-yellow-7: var(--colors-yellow-dark-7);--colors-yellow-8: var(--colors-yellow-dark-8);--colors-yellow-9: var(--colors-yellow-dark-9);--colors-yellow-10: var(--colors-yellow-dark-10);--colors-yellow-11: var(--colors-yellow-dark-11);--colors-yellow-12: var(--colors-yellow-dark-12);--colors-yellow-a-1: var(--colors-yellow-dark-a-1);--colors-yellow-a-2: var(--colors-yellow-dark-a-2);--colors-yellow-a-3: var(--colors-yellow-dark-a-3);--colors-yellow-a-4: var(--colors-yellow-dark-a-4);--colors-yellow-a-5: var(--colors-yellow-dark-a-5);--colors-yellow-a-6: var(--colors-yellow-dark-a-6);--colors-yellow-a-7: var(--colors-yellow-dark-a-7);--colors-yellow-a-8: var(--colors-yellow-dark-a-8);--colors-yellow-a-9: var(--colors-yellow-dark-a-9);--colors-yellow-a-10: var(--colors-yellow-dark-a-10);--colors-yellow-a-11: var(--colors-yellow-dark-a-11);--colors-yellow-a-12: var(--colors-yellow-dark-a-12);--colors-yellow-p3-1: var(--colors-yellow-dark-p3-1);--colors-yellow-p3-2: var(--colors-yellow-dark-p3-2);--colors-yellow-p3-3: var(--colors-yellow-dark-p3-3);--colors-yellow-p3-4: var(--colors-yellow-dark-p3-4);--colors-yellow-p3-5: var(--colors-yellow-dark-p3-5);--colors-yellow-p3-6: var(--colors-yellow-dark-p3-6);--colors-yellow-p3-7: var(--colors-yellow-dark-p3-7);--colors-yellow-p3-8: var(--colors-yellow-dark-p3-8);--colors-yellow-p3-9: var(--colors-yellow-dark-p3-9);--colors-yellow-p3-10: var(--colors-yellow-dark-p3-10);--colors-yellow-p3-11: var(--colors-yellow-dark-p3-11);--colors-yellow-p3-12: var(--colors-yellow-dark-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-dark-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-dark-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-dark-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-dark-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-dark-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-dark-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-dark-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-dark-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-dark-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-dark-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-dark-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-dark-p3-a-12);--colors-likec4-background-pattern: color-mix(in srgb, var(--colors-mantine-colors-dark\\[4\\]) 70%, transparent);--colors-likec4-mix-color: white;--colors-likec4-panel-bg: var(--colors-mantine-colors-dark\\[6\\]);--colors-likec4-panel-action-icon-bg: color-mix(in srgb, var(--colors-mantine-colors-dark\\[7\\]) 70%, transparent);--colors-likec4-panel-action-icon-bg-hover: var(--colors-mantine-colors-dark\\[8\\]);--colors-likec4-dropdown-bg: var(--colors-mantine-colors-dark\\[6\\]) }[data-mantine-color-scheme=light]{--colors-likec4-background-pattern: var(--colors-mantine-colors-gray\\[4\\]);--colors-likec4-mix-color: black;--colors-likec4-panel-border: color-mix(in srgb, var(--colors-mantine-colors-default-border) 30%, transparent);--colors-likec4-overlay-backdrop: rgb(15 15 15) }@keyframes indicatorOpacity{0%{opacity:.9;stroke-opacity:.8}to{opacity:.6;stroke-opacity:.4}}@keyframes xyedgeAnimated{0%{stroke-dashoffset:36}to{stroke-dashoffset:0}}}@layer recipes{@layer _base{.likec4-overlay{--_blur: 0px;--_level: 0;--_offset: 0px;--_inset: calc((1 + var(--_level) * .75) * var(--_offset));--_opacity: 0%;--_border-radius: 0px;margin:var(--spacing-0);background:var(--colors-likec4-overlay-border);border:var(--borders-transparent);inset:var(--spacing-0);padding:var(--spacing-0);outline:var(--borders-none);border-radius:var(--_border-radius);box-sizing:border-box;position:fixed;box-shadow:var(--shadows-xl);width:100vw;height:100vh;max-width:100vw;max-height:100vh}.likec4-overlay::backdrop{cursor:zoom-out}.likec4-overlay .likec4-overlay-body{border:var(--borders-transparent);background:var(--colors-likec4-overlay-body);overflow:hidden;position:relative;container-name:likec4-dialog;container-type:size;width:100%;height:100%}.likec4-markdown-block{--text-fz: 1rem;--text-fz-sm: calc(var(--text-fz) * var(--mantine-scale, 1) / 1.125);--text-fz-md: calc(var(--text-fz) * var(--mantine-scale, 1));--typography-spacing: calc(.75 * var(--text-fz-md));--text-fw-headings: 600;font-size:var(--text-fz-md);line-height:var(--mantine-line-height)}[data-mantine-color-scheme=light] .likec4-markdown-block{--code-background: var(--mantine-color-gray-2);--code-color: var(--mantine-color-black)}[data-mantine-color-scheme=dark] .likec4-markdown-block{--code-background: var(--mantine-color-dark-8);--code-color: var(--mantine-color-white)}.likec4-markdown-block :where(hr){border:var(--borders-none);border-bottom:1px solid;margin-top:calc(var(--typography-spacing) / 2);margin-bottom:calc(var(--typography-spacing) / 2)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-gray\\[3\\])}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-dark\\[3\\])}.likec4-markdown-block :where(pre){margin:var(--spacing-0);padding-inline:var(--spacing-3);padding-block:var(--spacing-2);border-radius:var(--radii-sm);line-height:var(--mantine-line-height-xs);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color);margin-top:var(--typography-spacing);margin-bottom:var(--typography-spacing);overflow-x:auto}.likec4-markdown-block :where(code){padding:1px 4px;border-radius:var(--radii-xs);line-height:var(--line-heights-1);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color)}.likec4-markdown-block :where(pre code){padding:var(--spacing-0);border:0;border-radius:var(--radii-0);background-color:var(--colors-transparent);color:inherit}.likec4-markdown-block :where(blockquote){margin:var(--spacing-0);padding:var(--spacing-xs);border-radius:var(--mantine-radius-sm);font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-dark-5)}.likec4-markdown-block :where(blockquote):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(h1,h2,h3,h4,h5,h6){text-wrap:var(--mantine-heading-text-wrap);line-height:1.5;font-family:var(--mantine-font-family-headings);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(a){text-decoration:none;font-size:var(--text-fz-md);color:var(--mantine-color-anchor);font-weight:500}.likec4-markdown-block :where(a):is(:hover,[data-hover]){text-decoration:underline}.likec4-markdown-block :is(h1){font-size:calc(1.476 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h2){font-size:calc(1.383 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h3){font-size:calc(1.296 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h4){font-size:calc(1.215 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h5){font-size:calc(1.138 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h6){font-size:calc(1.067 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :where(p){font-size:var(--text-fz-md);margin-top:var(--spacing-0);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(strong){font-weight:500}.likec4-markdown-block :where(mark){font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[2\\]);color:inherit}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[5\\]);color:var(--mantine-color-black)}.likec4-markdown-block :where(ul,ol):not([data-type=taskList]){padding-inline-start:var(--typography-spacing);list-style-position:inside;margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(table){border-collapse:collapse;caption-side:bottom;width:100%;margin-bottom:var(--typography-spacing)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-dark-4)}.likec4-markdown-block :where(table) :where(th){padding:var(--typography-spacing);text-align:left;font-weight:700;font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(td){padding:var(--typography-spacing);border-bottom:1px solid;border-color:var(--table-border-color);font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(thead th){border-bottom:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tfoot th){border-top:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tr:last-of-type td){border-bottom:0}.likec4-markdown-block :where(table) :where(caption){font-size:var(--text-fz-sm);color:var(--mantine-color-dimmed);margin-top:calc(.5 * var(--typography-spacing) + 1px)}.likec4-markdown-block :first-child{margin-top:var(--spacing-0)}.likec4-markdown-block :last-child{margin-bottom:var(--spacing-0)}.likec4-markdown-block :is(h1,h2,h3,h4,h5,h6):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(img){max-width:100%;margin-bottom:var(--typography-spacing)}.likec4-navigation-panel-icon{color:var(--colors-likec4-panel-action-icon-text)}.likec4-navigation-panel-icon:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-icon-text-disabled);opacity:.5}.likec4-navigation-panel-icon:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-icon-text-hover)}.action-btn{--actionbtn-color: var(--likec4-palette-loContrast);--actionbtn-color-hovered: var(--likec4-palette-loContrast);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-idle: color-mix(in srgb , var(--likec4-palette-fill), transparent 99%);--actionbtn-bg-hovered: color-mix(in srgb , var(--likec4-palette-fill) 65%, var(--likec4-palette-stroke));--actionbtn-bg-hovered-btn: color-mix(in srgb , var(--likec4-palette-fill) 50%, var(--likec4-palette-stroke));--ai-bg: var(--actionbtn-bg-idle);background:var(--ai-bg);pointer-events:all;cursor:pointer;color:var(--actionbtn-color);opacity:.75}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn{--ai-bg: var(--actionbtn-bg-hovered);opacity:1;color:var(--actionbtn-color-hovered)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .action-btn{display:none}:where([data-likec4-zoom-small=true]) .action-btn{display:none}.action-btn *{pointer-events:none}.action-btn:is(:hover,[data-hover]){--ai-bg: var(--actionbtn-bg-hovered-btn);opacity:1;color:var(--actionbtn-color-hovered-btn)}.likec4-compound-node{--_border-width: 3px;--_border-radius: 6px;--_compound-transparency: 100%;--_border-transparency: 100%;--_indicator-spacing: calc(var(--_border-width) + 2px);--_compound-color: var(--likec4-palette-loContrast);padding:var(--spacing-0);margin:var(--spacing-0);border-style:solid;border-width:var(--_border-width);border-radius:var(--_border-radius);position:relative;pointer-events:none;background-clip:padding-box;-webkit-background-clip:padding-box;box-sizing:border-box;color:var(--_compound-color);width:100%;height:100%}[data-mantine-color-scheme=light] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 80%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}.likec4-compound-node:after{border-style:solid;border-width:calc(var(--_border-width) + 1px);border-radius:calc(var(--_border-radius) + 4px);border-color:var(--likec4-palette-outline);position:absolute;content:" ";pointer-events:none;display:none;animation-play-state:paused;top:calc(-1 * var(--_indicator-spacing));left:calc(-1 * var(--_indicator-spacing));width:calc(100% + 2 * var(--_indicator-spacing));height:calc(100% + 2 * var(--_indicator-spacing))}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-compound-node:after{display:block;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node:after{display:block;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node:after{animation-play-state:paused}.likec4-compound-node:has(.likec4-compound-navigation) .likec4-compound-title-container{padding-left:24px}.likec4-compound-node .action-btn{--actionbtn-color: var(--_compound-color);--actionbtn-color-hovered: var(--_compound-color);--actionbtn-color-hovered-btn: color-mix(in srgb, var(--_compound-color) 80%, #fff);opacity:.6}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node .action-btn{transition:all var(--durations-fast) var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-compound-node .action-btn{opacity:.75}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node .action-btn{opacity:.75}.likec4-compound-node .action-btn:is(:hover,[data-hover]){opacity:1}.likec4-compound-node .likec4-compound-title-container{gap:var(--spacing-1\\.5);position:absolute;display:flex;align-items:center;left:var(--spacing-2\\.5);top:var(--spacing-0\\.5);right:30px;width:auto;min-height:30px}:where(.react-flow__node.draggable) .likec4-compound-node .likec4-compound-title-container{pointer-events:all;cursor:grab}.likec4-compound-node .likec4-compound-title{flex:1 1 0%;font-family:var(--fonts-likec4-compound);font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.25px;line-height:var(--line-heights-1);color:var(--_compound-color)}.likec4-compound-node .likec4-compound-icon{flex:0 0 20px;display:flex;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:20px;width:20px}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon{mix-blend-mode:normal}.likec4-compound-node .likec4-compound-icon svg,.likec4-compound-node .likec4-compound-icon img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%)) drop-shadow(0 1px 8px rgb(0 0 0 / 8%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 3%));width:100%;height:auto;max-height:100%}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon img{filter:none}.likec4-compound-node .likec4-compound-icon img{object-fit:contain}.likec4-compound-node .likec4-compound-navigation{position:absolute;top:var(--spacing-1);left:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-navigation{display:none}.likec4-compound-node .likec4-compound-details{position:absolute;top:var(--spacing-0\\.5);right:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-details{display:none}.likec4-edge-action-btn{--ai-bg: transparent;--ai-hover: color-mix(in srgb , var(--xy-edge-label-background-color), var(--colors-likec4-mix-color) 10%);--ai-size: var(--ai-size-sm);--ai-radius: var(--radii-sm);transition:all var(--durations-fast) var(--easings-in-out);pointer-events:all;color:var(--xy-edge-label-color);cursor:pointer;opacity:.75;translate:var(--translate-x) var(--translate-y)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-edge-action-btn{--ai-bg: var(--xy-edge-label-background-color);opacity:1}.likec4-edge-action-btn .tabler-icon{stroke-width:2;width:80%;height:80%}.likec4-edge-action-btn:is(:hover,[data-hover]){--translate-y: 2px;scale:1.15}.likec4-edge-action-btn:is(:active,[data-active]){--translate-y: -1px;scale:.9}.likec4-element-node-data{margin:0 auto;flex:1 1 0%;overflow:hidden;gap:var(--spacing-3);position:relative;display:flex;align-items:center;justify-content:center;flex-direction:row;pointer-events:none;text-align:center;height:fit-content;width:fit-content;max-height:100%;max-width:100%;padding-top:var(--likec4-spacing);padding-bottom:var(--likec4-spacing);padding-left:calc(var(--likec4-spacing) + 8px);padding-right:calc(var(--likec4-spacing) + 8px)}:where([data-likec4-shape-size=xs]) .likec4-element-node-data{--likec4-icon-size: 24px}:where([data-likec4-shape-size=sm]) .likec4-element-node-data{--likec4-icon-size: 36px}:where([data-likec4-shape-size=md]) .likec4-element-node-data{--likec4-icon-size: 60px}:where([data-likec4-shape-size=lg]) .likec4-element-node-data{--likec4-icon-size: 82px;gap:var(--spacing-4)}:where([data-likec4-shape-size=xl]) .likec4-element-node-data{--likec4-icon-size: 90px;gap:var(--spacing-4)}.likec4-element-node-data:has([data-likec4-icon]){gap:var(--spacing-4);text-align:left}.likec4-element-node-data:has([data-likec4-icon]) .likec4-element-node-content{align-items:flex-start;min-width:calc(50% + var(--likec4-icon-size))}:where([data-likec4-shape=queue]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=mobile]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=cylinder]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=storage]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=browser]) .likec4-element-node-data{padding-top:32px;padding-bottom:28px}.likec4-element-node-data [data-likec4-icon]{flex:0 0 var(--likec4-icon-size, 48px);display:flex;align-self:flex-start;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:var(--likec4-icon-size, 48px);width:var(--likec4-icon-size, 48px)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon]{mix-blend-mode:normal}.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%));width:100%;height:auto;max-height:100%}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] img{filter:none}.likec4-element-node-data [data-likec4-icon] img{object-fit:contain}.likec4-element-node-data .likec4-element-node-content{flex:0 1 auto;overflow:hidden;gap:var(--spacing-2);display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-wrap:nowrap;height:fit-content;width:fit-content;max-height:100%;max-width:100%}.likec4-element-node-data .likec4-element-node-content:has([data-likec4-node-description]):has([data-likec4-node-technology]){gap:var(--spacing-1\\.5)}.likec4-element-node-data [data-likec4-node-title]{flex:0 0 auto;font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:500;font-size:var(--likec4-text-size);line-height:1.15;text-wrap-style:balance;white-space:preserve-breaks;text-align:var(__text-align);color:var(--likec4-palette-hiContrast)}.likec4-element-node-data [data-likec4-node-description]{overflow:hidden;flex-grow:0;flex-shrink:1;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .74);line-height:1.3;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);text-overflow:ellipsis}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-description]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-description]{display:none}.likec4-element-node-data [data-likec4-node-description] a{pointer-events:all}.likec4-element-node-data [data-likec4-node-technology]{flex:0 0 auto;text-wrap:balance;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .635);line-height:1.125;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);opacity:.92}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-node-data [data-likec4-node-technology]{opacity:1}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-shape-size=sm]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-technology]{display:none}.likec4-element-shape{overflow:visible;position:absolute;pointer-events:none;top:var(--spacing-0);left:var(--spacing-0);width:100%;height:100%}[data-mantine-color-scheme=light] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 30%, var(--likec4-palette-loContrast))}.likec4-element-shape .likec4-shape-outline{visibility:hidden;animation-play-state:paused;pointer-events:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape .likec4-shape-outline{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.group:is(:focus-visible,[data-focus-visible]) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape .likec4-shape-outline{animation-play-state:paused}.likec4-tag{transition:all var(--durations-fast) var(--easings-in-out);gap:1px;padding-inline:var(--spacing-1);padding-block:var(--spacing-0);pointer-events:all;display:inline-flex;align-items:center;justify-content:center;font-size:var(--font-sizes-xs);cursor:default;font-family:var(--fonts-likec4);font-weight:700;border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.likec4-tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-tag{white-space:nowrap;min-width:40px;width:min-content}@media screen and (min-width:36rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(0 1px 8px rgb(0 0 0 / 8%))}}@media screen and (min-width:48rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(1px 1px 16px rgb(0 0 0 / 3%))}}}.likec4-overlay--withBackdrop_true::backdrop{background:color-mix(in srgb,var(--colors-likec4-overlay-backdrop) var(--_opacity),transparent);backdrop-filter:blur(var(--_blur));-webkit-backdrop-filter:blur(var(--_blur))}.likec4-overlay--fullscreen_true{inset:var(--spacing-0);padding:var(--spacing-0)}.likec4-overlay--withBackdrop_false::backdrop{display:none}.likec4-markdown-block--value_plaintext :where(p){white-space:preserve-breaks}.likec4-markdown-block--uselikec4palette_true{--code-background: color-mix(in srgb , var(--likec4-palette-stroke) 70%, transparent);--code-color: var(--likec4-palette-loContrast);--typography-spacing: calc(.5 * var(--text-fz-md))}.likec4-markdown-block--uselikec4palette_true :where(blockquote){padding:var(--spacing-xxs);--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-stroke) 65%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(hr){--mix-borderColor: color-mix(in srgb, var(--likec4-palette-stroke) 85%, transparent);border-color:var(--mix-borderColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(a){--mix-color: color-mix(in srgb, var(--likec4-palette-fill) 45%, transparent);color:var(--mix-color, var(--likec4-palette-fill));mix-blend-mode:difference}.likec4-markdown-block--uselikec4palette_true :where(strong){color:color-mix(in srgb,var(--likec4-palette-hiContrast) 50%,var(--likec4-palette-loContrast))}.likec4-navigation-panel-icon--variant_default{background-color:var(--colors-transparent)}.likec4-navigation-panel-icon--variant_default:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.likec4-navigation-panel-icon--variant_filled{background-color:var(--colors-likec4-panel-action-icon-bg)}.likec4-navigation-panel-icon--variant_filled:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.action-btn--size_md{--ai-size: var(--ai-size-md)}.action-btn--radius_md{--ai-radius: var(--mantine-radius-md)}.action-btn--variant_transparent{--actionbtn-bg-hovered: var(--actionbtn-bg-idle)}.action-btn--variant_filled{box-shadow:1px 1px 3px 0 transparent}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn--variant_filled{box-shadow:1px 1px 3px #0003}.likec4-root:is([data-likec4-reduced-graphics]) .action-btn--variant_filled{box-shadow:var(--shadows-none)}.likec4-compound-node--borderStyle_dashed{border-style:dashed}.likec4-compound-node--borderStyle_none{--_indicator-spacing: calc(var(--_border-width) * 2);border-color:var(--colors-transparent)!important;background-clip:border-box!important;-webkit-background-clip:border-box!important}.likec4-compound-node--isTransparent_false{border-color:var(--likec4-palette-stroke);background-color:var(--likec4-palette-fill)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node--isTransparent_false{box-shadow:0 4px 10px .5px #0000001a,0 2px 2px -1px #0006}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)!important}.likec4-compound-node--isTransparent_true{border-color:color-mix(in srgb,var(--likec4-palette-stroke) var(--_border-transparency),transparent);background-color:color-mix(in srgb,var(--likec4-palette-fill) var(--_compound-transparency),transparent)}.likec4-compound-node--inverseColor_true{--_compound-color: var(--likec4-palette-stroke)}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true{--_compound-color: color-mix(in srgb, var(--likec4-palette-loContrast) 60%, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color-hovered-btn: var(--likec4-palette-loContrast)}[data-mantine-color-scheme=light] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color: var(--likec4-palette-stroke);--actionbtn-color-hovered: var(--likec4-palette-stroke);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-hovered: var(--likec4-palette-fill)/50;--actionbtn-bg-hovered-btn: var(--likec4-palette-fill)}.likec4-compound-node--borderStyle_solid{border-style:solid}.likec4-compound-node--borderStyle_dotted{border-style:dotted}.likec4-element-shape--shapetype_html{--likec4-outline-size: 4px;border-radius:6px;transition:background-color .12s linear,box-shadow .13s var(--easings-in-out);background-color:var(--likec4-palette-fill);box-shadow:0 2px 1px #00000036,0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent),0 5px 3px #0000001a;transition-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{transition:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}[data-mantine-color-scheme=light] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#26394df2 0 20px 30px -10px}[data-mantine-color-scheme=dark] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#0a0b10e5 0 20px 30px -10px}.likec4-element-shape--shapetype_html .likec4-shape-multiple{border-radius:6px;transition:all var(--durations-fast) var(--easings-in-out);position:absolute;content:" ";background-color:var(--likec4-palette-fill);z-index:-1;filter:brightness(.5)!important;visibility:visible;top:16px;left:16px;width:calc(100% - 6px);height:calc(100% - 6px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{transform:translate(-14px,-14px)}.likec4-element-shape--shapetype_html .likec4-shape-outline{border-style:solid;border-width:var(--likec4-outline-size);border-radius:10px;border-color:var(--likec4-palette-outline);position:absolute;content:" ";animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity;top:calc(-1 * var(--likec4-outline-size));left:calc(-1 * var(--likec4-outline-size));width:calc(100% + 2 * var(--likec4-outline-size));height:calc(100% + 2 * var(--likec4-outline-size))}.likec4-element-shape--shapetype_svg{transition:fill .12s linear,filter .13s var(--easings-in-out);fill:var(--likec4-palette-fill);stroke:var(--likec4-palette-stroke);transition-delay:0ms;filter:drop-shadow(0 2px 1px rgba(0,0,0,.21)) drop-shadow(0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent)) drop-shadow(0 5px 3px rgba(0,0,0,.1))}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg{filter:drop-shadow(0 2px 1px rgba(0,0,0,.12)) drop-shadow(0px 4px 2px rgba(0,0,0,.12)) drop-shadow(0px 8px 4px rgba(0,0,0,.12)) drop-shadow(0px 16px 8px rgba(0,0,0,.1)) drop-shadow(0px 32px 16px rgba(0,0,0,.09))}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg{filter:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-element-shape--shapetype_svg [data-likec4-fill=fill]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg [data-likec4-fill=stroke]{fill:var(--likec4-palette-stroke)}.likec4-element-shape--shapetype_svg [data-likec4-fill=mix-stroke]{fill:color-mix(in srgb,var(--likec4-palette-stroke) 90%,var(--likec4-palette-fill))}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transition:all var(--durations-fast) var(--easings-in-out);transform-origin:50% 50%;transform:translate(14px,14px) perspective(200px) translateZ(-4px);filter:brightness(.5)!important;stroke:var(--colors-none)}:where([data-likec4-shape=queue]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:75% 25%}:where([data-likec4-shape=cylinder]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where([data-likec4-shape=storage]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform:translate(2px,2px) perspective(200px) translateZ(-4px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]) [data-likec4-fill=mix-stroke]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg .likec4-shape-outline{stroke:var(--likec4-palette-outline);fill:var(--colors-none);stroke-width:8;stroke-opacity:.8;animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity}.likec4-tag--autoTextColor_false>span{color:var(--colors-likec4-tag-text)}.likec4-tag--autoTextColor_false>span:first-child{opacity:.65}.likec4-tag--autoTextColor_true>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_true:is(:hover,[data-hover])>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span{color:var(--colors-likec4-tag-text)}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span:first-child{opacity:.65}@media screen and (min-width:48rem){.likec4-overlay--fullscreen_false{--_border-radius: 6px;--_offset: 1rem;inset:var(--_inset) var(--_inset) var(--_offset) var(--_inset);padding:var(--spacing-1\\.5);border-radius:calc(var(--_border-radius) - 2px);width:calc(100vw - 2 * var(--_inset));height:calc(100vh - var(--_offset) - var(--_inset))}}@media screen and (min-width:62rem){.likec4-overlay--fullscreen_false{--_offset: 1rem}}@media screen and (min-width:75rem){.likec4-overlay--fullscreen_false{--_offset: 2rem}}@media screen and (min-width:88rem){.likec4-overlay--fullscreen_false{--_offset: 4rem}}}@layer recipes.slots{@layer _base{.likec4-navlink__root{border-radius:var(--radii-sm);padding-inline:var(--spacing-xs);padding-block:var(--spacing-xxs)}.likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-gray\\[1\\])}[data-mantine-color-scheme=dark] .likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-dark\\[5\\])}.likec4-navlink__body{gap:var(--spacing-0\\.5);display:flex;flex-direction:column}.likec4-navlink__section:where([data-position=left]){margin-inline-end:var(--spacing-xxs)}.likec4-navlink__label{display:block;font-size:var(--font-sizes-sm);font-weight:500;line-height:1.2}.likec4-navlink__description{display:block;font-size:var(--font-sizes-xxs);line-height:1.2}.likec4-edge-label__root{background:var(--xy-edge-label-background-color);border:0px solid transparent;padding-block:var(--spacing-1);padding-inline:var(--spacing-1\\.5);gap:var(--spacing-0\\.5);border-radius:4px;pointer-events:all;font-family:var(--fonts-likec4-relation);display:flex;flex-direction:column;align-items:center;line-height:1.2;color:var(--xy-edge-label-color);width:max-content;max-width:100%}.likec4-edge-label__stepNumber{padding:var(--spacing-1);background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 10%);flex:0 0 auto;align-self:stretch;font-weight:600;font-size:14px;text-align:center;font-variant-numeric:tabular-nums;min-width:22px;border-top-left-radius:4px;border-bottom-left-radius:4px}.likec4-edge-label__stepNumber:only-child{border-radius:4px;min-width:24px}[data-mantine-color-scheme=dark] :where([data-likec4-color=gray]) .likec4-edge-label__stepNumber{background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 15%)}.likec4-edge-label__labelContents{display:contents}.likec4-edge-label__labelContents:is(:empty,[data-empty]){display:none!important}.likec4-edge-label__labelText{margin:var(--spacing-0);white-space-collapse:preserve-breaks;font-size:14px}.likec4-edge-label__labelTechnology{text-align:center;white-space-collapse:preserve-breaks;font-size:11px;line-height:var(--line-heights-1);opacity:.75}}.likec4-navlink__label--truncateLabel_true,.likec4-navlink__description--truncateLabel_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.likec4-edge-label__root--cursor_pointer{cursor:pointer}.likec4-edge-label__root--cursor_default{cursor:default}.likec4-edge-label__root--isStepEdge_true{padding:var(--spacing-0);gap:var(--spacing-1);flex-direction:row}.likec4-edge-label__labelContents--isStepEdge_true{gap:var(--spacing-0\\.5);display:flex;flex-direction:column;align-items:center;padding-top:var(--spacing-0\\.5);padding-right:var(--spacing-1);padding-bottom:var(--spacing-1)}.likec4-edge-label__labelText--isStepEdge_true{padding-block:var(--spacing-0\\.5);padding-right:var(--spacing-0\\.5)}}@layer utilities{@layer compositions{.layerStyle_likec4\\.panel{border:1px solid var(--colors-likec4-panel-border);padding-block:var(--spacing-1);padding-inline:var(--spacing-xs);border-radius:var(--radii-0);background-color:var(--colors-likec4-panel-bg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.panel{border-radius:var(--radii-0);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.dropdown{padding:var(--spacing-xxs);border:1px solid var(--colors-likec4-dropdown-border);border-radius:var(--radii-md);background-color:var(--colors-likec4-dropdown-bg);box-shadow:var(--shadows-lg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.dropdown{border-radius:0;border-color:var(--colors-transparent);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.tag{border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.layerStyle_likec4\\.tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:animationStyle_xyedgeAnimated{animation-duration:.8s;animation-iteration-count:infinite;animation-timing-function:linear;animation-fill-mode:both;animation-name:xyedgeAnimated}@container (min-width: 40rem){.layerStyle_likec4\\.panel{padding:2xs;border-radius:var(--radii-md);box-shadow:var(--shadows-lg)}}}.--mantine-cursor-pointer_pointer{--mantine-cursor-pointer: pointer}.--thickness_1px{--thickness: 1px}.--bleed-x_token\\(spacing\\.2\\,_2\\){--bleed-x: var(--spacing-2, 2)}.--bleed-y_token\\(spacing\\.2\\,_2\\){--bleed-y: var(--spacing-2, 2)}.--text-fz_\\{fontSizes\\.sm\\}{--text-fz: var(--font-sizes-sm)}.--view-title-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}{--view-title-color: var(--colors-mantine-colors-dark\\[1\\])}.--likec4-icon-size_24px{--likec4-icon-size: 24px}.--ti-size_var\\(--likec4-icon-size\\,_24px\\){--ti-size: var(--likec4-icon-size, 24px)}.--_color_var\\(--likec4-palette-stroke\\){--_color: var(--likec4-palette-stroke)}.--ai-radius_0px{--ai-radius: 0px}.--badge-radius_2px{--badge-radius: 2px}.--badge-fz_9\\.5px{--badge-fz: 9.5px}.--badge-padding-x_3px{--badge-padding-x: 3px}.--badge-height_13\\.5px{--badge-height: 13.5px}.--badge-lh_1{--badge-lh: 1}.--badge-bg_var\\(--likec4-palette-fill\\){--badge-bg: var(--likec4-palette-fill)}.--badge-color_var\\(--likec4-palette-hiContrast\\){--badge-color: var(--likec4-palette-hiContrast)}.bg_dots{background:dots}.bg_transparent{background:var(--colors-transparent)}.p_0{padding:var(--spacing-0)}.p_xl{padding:var(--spacing-xl)}.bd_1px_solid{border:1px solid}.bg_mantine\\.colors\\.default{background:var(--colors-mantine-colors-default)}.p_\\[4px_7px\\]{padding:4px 7px}.m_0{margin:var(--spacing-0)}.bg_\\[transparent\\]{background:var(--colors-transparent)}.p_1{padding:var(--spacing-1)}.p_4{padding:var(--spacing-4)}.p_0\\.5{padding:var(--spacing-0\\.5)}.m_xs{margin:var(--spacing-xs)}.p_md{padding:var(--spacing-md)}.p_8{padding:var(--spacing-8)}.p_xxs{padding:var(--spacing-xxs)}.bg_mantine\\.colors\\.orange\\.light{background:var(--colors-mantine-colors-orange-light)}.p_\\[4px_6px\\]{padding:4px 6px}.bg_mantine\\.colors\\.gray\\[2\\]{background:var(--colors-mantine-colors-gray\\[2\\])}.bg_mantine\\.colors\\.gray\\[3\\]{background:var(--colors-mantine-colors-gray\\[3\\])}.bd_2px_solid{border:2px solid}.inset_0{inset:var(--spacing-0)}.bd_transparent{border:var(--borders-transparent)}.bd_none{border:var(--borders-none)}.bg_mantine\\.colors\\.body{background:var(--colors-mantine-colors-body)}.p_\\[10px_8px\\]{padding:10px 8px}.bd_1px_dashed{border:1px dashed}.bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.p_\\[6px_8px\\]{padding:6px 8px}.bd_3\\.5px_solid{border:3.5px solid}.p_xs{padding:var(--spacing-xs)}.p_\\[4px_8px\\]{padding:4px 8px}.p_\\[1px_4px\\]{padding:1px 4px}.p_\\[3px_6px\\]{padding:3px 6px}.bg_var\\(--likec4-palette-fill\\)\\/75{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 75%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}.bd_1px_solid_\\{colors\\.mantine\\.colors\\.defaultBorder\\}{border:1px solid var(--colors-mantine-colors-default-border)}.p_\\[1px_5px\\]{padding:1px 5px}.bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.p_\\[6px_2px_0_2px\\]{padding:6px 2px 0}.p_\\[0_4px_5px_4px\\]{padding:0 4px 5px}.bg_mantine\\.colors\\.dark\\[9\\]\\/30{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[9\\]) 30%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[9\\]))}.bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.p_\\[12px_8px_12px_14px\\]{padding:12px 8px 12px 14px}.bd_2px_dashed{border:2px dashed}.bd_default{border:var(--borders-default)}.p_2{padding:var(--spacing-2)}.bd_3px_dashed{border:3px dashed}.gap_20{gap:20px}.gap_xs{gap:var(--spacing-xs)}.transition_fast{transition:all var(--durations-fast) var(--easings-in-out)}.td_none{text-decoration:none}.bdr_sm{border-radius:var(--radii-sm)}.bd-c_mantine\\.colors\\.defaultBorder{border-color:var(--colors-mantine-colors-default-border)}.flex_1{flex:1 1 0%}.gap_xxs{gap:var(--spacing-xxs)}.gap_sm{gap:var(--spacing-sm)}.gap_1{gap:var(--spacing-1)}.ov_hidden{overflow:hidden}.gap_0\\.5{gap:var(--spacing-0\\.5)}.gap_\\[4px\\]{gap:4px}.px_xs{padding-inline:var(--spacing-xs)}.py_xxs{padding-block:var(--spacing-xxs)}.px_sm{padding-inline:var(--spacing-sm)}.gap_8px{gap:8px}.gap_1\\.5{gap:var(--spacing-1\\.5)}.bdr_\\[4px\\]{border-radius:4px}.px_1\\.5{padding-inline:var(--spacing-1\\.5)}.gap_3{gap:var(--spacing-3)}.mx_calc\\(var\\(--bleed-x\\,_0\\)_\\*_-1\\){margin-inline:calc(var(--bleed-x, 0) * -1)}.my_calc\\(var\\(--bleed-y\\,_0\\)_\\*_-1\\){margin-block:calc(var(--bleed-y, 0) * -1)}.py_2\\.5{padding-block:var(--spacing-2\\.5)}.px_2{padding-inline:var(--spacing-2)}.gap_2{gap:var(--spacing-2)}.offset_2{offset:2px}.py_1\\.5{padding-block:var(--spacing-1\\.5)}.bd-l_2px_dotted{border-left:2px dotted}.px_1{padding-inline:var(--spacing-1)}.py_0\\.5{padding-block:var(--spacing-0\\.5)}.bdr_\\[2px\\]{border-radius:2px}.px_xxs{padding-inline:var(--spacing-xxs)}.py_1{padding-block:var(--spacing-1)}.gap_\\[1px\\]{gap:1px}.gap_md{gap:var(--spacing-md)}.ov_auto{overflow:auto}.ovs-b_contain{overscroll-behavior:contain}.ov_visible{overflow:visible}.my_10{margin-block:var(--spacing-10)}.flex_1_1_40\\%{flex:1 1 40%}.bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}.bd-c_mantine\\.colors\\.gray\\[5\\]{border-color:var(--colors-mantine-colors-gray\\[5\\])}.bdr_3{border-radius:3px}.bd-c_mantine\\.colors\\.orange\\[6\\]{border-color:var(--colors-mantine-colors-orange\\[6\\])}.tw_pretty{text-wrap:pretty}.gap_lg{gap:var(--spacing-lg)}.flex_0{flex:0}.flex_0_0_40px{flex:0 0 40px}.gap_\\[24px_20px\\]{gap:24px 20px}.bd-c_mantine\\.colors\\.dark\\[3\\]{border-color:var(--colors-mantine-colors-dark\\[3\\])}.bd-t_none{border-top:var(--borders-none)}.bd-l_none{border-left:var(--borders-none)}.bdr_2px{border-radius:2px}.gap_4{gap:var(--spacing-4)}.gap_6{gap:var(--spacing-6)}.gap_\\[12px_16px\\]{gap:12px 16px}.bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.flex_0_1_auto{flex:0 1 auto}.transition_all_150ms_ease{transition:all .15s ease}.bdr_xs{border-radius:var(--radii-xs)}.flex_1_1_100\\%{flex:1 1 100%}.offset_0{offset:0}.py_4{padding-block:var(--spacing-4)}.gap_8{gap:var(--spacing-8)}.px_md{padding-inline:var(--spacing-md)}.py_xs{padding-block:var(--spacing-xs)}.grid-c_1{grid-column:1}.grid-c_2{grid-column:2}.grid-c_3{grid-column:3}.bd-b_1px_solid{border-bottom:1px solid}.gap_0{gap:var(--spacing-0)}.gap_\\[10px_12px\\]{gap:10px 12px}.py_3{padding-block:var(--spacing-3)}.offset_4{offset:4px}.flex_1_0_auto{flex:1 0 auto}.ring_none{outline:var(--borders-none)}.ring_none\\!{outline:var(--borders-none)!important}.bdr_4px{border-radius:4px}.mx_auto{margin-inline:auto}.px_4{padding-inline:var(--spacing-4)}.py_md{padding-block:var(--spacing-md)}.bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.flex_0_0_var\\(--likec4-icon-size\\,_24px\\){flex:0 0 var(--likec4-icon-size, 24px)}.bdr_md{border-radius:var(--radii-md)}.py_xl{padding-block:var(--spacing-xl)}.bd-w_1{border-width:1px}.bd-c_\\[var\\(--_color\\)\\/30\\]{--mix-borderColor: color-mix(in srgb, var(--_color) 30%, transparent);border-color:var(--mix-borderColor, var(--_color))}.transition_all_100ms_ease-in{transition:all .1s ease-in}.transition_all_150ms_ease-in-out{transition:all .15s ease-in-out}.py_sm{padding-block:var(--spacing-sm)}.flex_0_0_auto{flex:0 0 auto}.flex_0_0_70px{flex:0 0 70px}.bd-w_3px{border-width:3px}.border-style_dashed{border-style:dashed}.px_3{padding-inline:var(--spacing-3)}.px_5{padding-inline:var(--spacing-5)}.gap_6px{gap:6px}.px_4px{padding-inline:4px}.cursor_pointer{cursor:pointer}.pos_absolute{position:absolute}.c_gray{color:gray}.bkdp_blur\\(5px\\){backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.z_1000{z-index:1000}.c_red{color:red}.c_teal{color:teal}.op_1{opacity:1}.op_0\\.45{opacity:.45}.flex-wrap_nowrap{flex-wrap:nowrap}.us_all{-webkit-user-select:all;user-select:all}.bg-c_transparent{background-color:var(--colors-transparent)}.stk_2\\.5{stroke:2.5px}.op_0\\.7{opacity:.7}.fill_\\[\\#FCFBF7\\]{fill:#fcfbf7}.bx-sh_xs{box-shadow:var(--shadows-xs)}.fs_sm{font-size:var(--font-sizes-sm)}.fw_500{font-weight:500}.c_mantine\\.colors\\.placeholder{color:var(--colors-mantine-colors-placeholder)}.fs_11px{font-size:11px}.fw_600{font-weight:600}.lh_1{line-height:var(--line-heights-1)}.stk_2{stroke:2px}.ai_flex-start{align-items:flex-start}.pointer-events_none{pointer-events:none}.d_flex{display:flex}.ai_stretch{align-items:stretch}.flex-d_column{flex-direction:column}.main-axis_4{main-axis:4px}.pos_bottom-start{position:bottom-start}.ai_center{align-items:center}.flex-d_row{flex-direction:row}.pos_relative{position:relative}.pointer-events_all{pointer-events:all}.us_none{-webkit-user-select:none;user-select:none}.d_none{display:none}.flex-sh_1{flex-shrink:1}.flex-g_1{flex-grow:1}.flex-g_0{flex-grow:0}.op_0\\.3{opacity:.3}.bg-c_mantine\\.colors\\.gray\\[1\\]{background-color:var(--colors-mantine-colors-gray\\[1\\])}.stk_1\\.5{stroke:1.5px}.bd-e-w_var\\(--thickness\\){border-inline-end-width:var(--thickness)}.c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.c_mantine\\.colors\\.text\\/90{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.trunc_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.bg-c_\\[rgb\\(34_34_34_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(34 34 34 / var(--_opacity, 95%))}.bkdp_auto{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.bkdp-blur_var\\(--_blur\\,_10px\\){--backdrop-blur: blur(var(--_blur, 10px))}.jc_stretch{justify-content:stretch}.cq-n_likec4-search-elements{container-name:likec4-search-elements}.cq-t_size{container-type:size}.d_contents{display:contents}.d_grid{display:grid}.order_6{order:6}.stk_1\\.8{stroke:1.8px}.trunc_end{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trs-dur_normal{--transition-duration: var(--durations-normal);transition-duration:var(--durations-normal)}.trs-dly_0\\.2s{transition-delay:.2s}.fill_none{fill:var(--colors-none)}.stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_2\\){stroke-width:calc(var(--xy-edge-stroke-width) + 2)}.stk-op_0\\.08{stroke-opacity:.08}.fill_\\[var\\(--xy-edge-stroke\\)\\]{fill:var(--xy-edge-stroke)}.stk_\\[var\\(--xy-edge-stroke\\)\\]{stroke:var(--xy-edge-stroke)}.stk-do_0{stroke-dashoffset:0}.jc_center{justify-content:center}.z_1{z-index:1}.ai_flex-end{align-items:flex-end}.justify-items_stretch{justify-items:stretch}.fs_lg{font-size:var(--font-sizes-lg)}.ai_baseline{align-items:baseline}.flex-wrap_wrap{flex-wrap:wrap}.translate_auto{translate:var(--translate-x) var(--translate-y)}.translate-x_\\[-8px\\]{--translate-x: -8px}.bd-be-w_var\\(--thickness\\){border-block-end-width:var(--thickness)}.cursor_default{cursor:default}.pos_top-start{position:top-start}.op_0\\.65{opacity:.65}.d_block{display:block}.fs_xxs{font-size:var(--font-sizes-xxs)}.lh_sm{line-height:var(--line-heights-sm)}.white-space_nowrap{white-space:nowrap}.white-space-collapse_preserve-breaks{white-space-collapse:preserve-breaks}.c_likec4\\.panel\\.action-icon\\.text{color:var(--colors-likec4-panel-action-icon-text)}.bg-c_likec4\\.panel\\.action-icon\\.bg{background-color:var(--colors-likec4-panel-action-icon-bg)}.op_0\\.8{opacity:.8}.pos_bottom-end{position:bottom-end}.bx-sh_xl{box-shadow:var(--shadows-xl)}.fs_xs{font-size:var(--font-sizes-xs)}.op_0\\.5{opacity:.5}.me_0\\.5{margin-inline-end:var(--spacing-0\\.5)}.fw_400{font-weight:400}.bx-sh_md{box-shadow:var(--shadows-md)}.main-axis_2{main-axis:2px}.lh_1\\.1{line-height:1.1}.pos_right-start{position:right-start}.bx-sh_lg{box-shadow:var(--shadows-lg)}.main-axis_10{main-axis:10px}.op_0\\.6{opacity:.6}.c_orange{color:orange}.pos_top{position:top}.pos_right{position:right}.main-axis_12{main-axis:12px}.ta_center{text-align:center}.bx-sh_inset_1px_1px_3px_0px_\\#00000024{box-shadow:inset 1px 1px 3px #00000024}.trf_translate\\(-50\\%\\,_-50\\%\\){transform:translate(-50%,-50%)}.flex-sh_0{flex-shrink:0}.ms_0{margin-inline-start:var(--spacing-0)}.z_9{z-index:9}.ta_left{text-align:left}.lh_1\\.25{line-height:1.25}.bx-s_border-box{box-sizing:border-box}.pos_fixed{position:fixed}.c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}.bg-c_mantine\\.colors\\.body{background-color:var(--colors-mantine-colors-body)}.bg-i_linear-gradient\\(180deg\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_60\\%\\,_transparent\\)\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_20\\%\\,_transparent\\)_8px\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_14\\%\\,_transparent\\)_20px\\,_transparent_80px_\\)\\,_linear-gradient\\(180deg\\,_var\\(--likec4-palette-fill\\)\\,_var\\(--likec4-palette-fill\\)_4px\\,_transparent_4px\\){background-image:linear-gradient(180deg,color-mix(in srgb,var(--likec4-palette-fill) 60%,transparent),color-mix(in srgb,var(--likec4-palette-fill) 20%,transparent) 8px,color-mix(in srgb,var(--likec4-palette-fill) 14%,transparent) 20px,transparent 80px),linear-gradient(180deg,var(--likec4-palette-fill),var(--likec4-palette-fill) 4px,transparent 4px)}.cursor_move{cursor:move}.ff_likec4\\.element{font-family:var(--fonts-likec4-element)}.font-optical-sizing_auto{font-optical-sizing:auto}.font-style_normal{font-style:normal}.fs_24px{font-size:24px}.lh_xs{line-height:var(--line-heights-xs)}.as_flex-start{align-self:flex-start}.c_\\[var\\(--view-title-color\\,_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}\\)\\]{color:var(--view-title-color, var(--colors-mantine-colors-gray\\[7\\]))}.fs_15px{font-size:15px}.lh_1\\.4{line-height:1.4}.c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}.grid-tc_min-content_1fr{grid-template-columns:min-content 1fr}.grid-ar_min-content_max-content{grid-auto-rows:min-content max-content}.justify-self_end{justify-self:end}.ta_right{text-align:right}.cursor_se-resize{cursor:se-resize}.ai_start{align-items:start}.jc_space-between{justify-content:space-between}.stk_1\\.6{stroke:1.6px}.grid-ar_min-content{grid-auto-rows:min-content}.white-space_pre-wrap{white-space:pre-wrap}.tov_unset{text-overflow:unset}.tov_ellipsis{text-overflow:ellipsis}.wb_break-word{word-break:break-word}.wb_normal{word-break:normal}.bg-c_mantine\\.colors\\.white{background-color:var(--colors-mantine-colors-white)}.jc_flex-end{justify-content:flex-end}.c_mantine\\.colors\\.gray\\[6\\]{color:var(--colors-mantine-colors-gray\\[6\\])}.fw_700{font-weight:700}.justify-self_stretch{justify-self:stretch}.as_start{align-self:start}.ps_\\[16px\\]{padding-inline-start:16px}.pe_2\\.5{padding-inline-end:var(--spacing-2\\.5)}.stk_1\\.2{stroke:1.2px}.d_inline-block{display:inline-block}.lh_1\\.2{line-height:1.2}.c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}.fs_xl{font-size:var(--font-sizes-xl)}.c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.bx-sh_none{box-shadow:var(--shadows-none)}.d_inline-flex{display:inline-flex}.pos_top-right{position:top-right}.pos_top-left{position:top-left}.grid-cs_1{grid-column-start:1}.grid-ce_4{grid-column-end:4}.grid-tc_1fr_30px_1fr{grid-template-columns:1fr 30px 1fr}.justify-items_start{justify-items:start}.c_dark{color:dark}.stk_3\\.5{stroke:3.5px}.cq-n_likec4-tree{container-name:likec4-tree}.cq-t_inline-size{container-type:inline-size}.fs_10px{font-size:10px}.lh_1\\.3{line-height:1.3}.order_2{order:2}.grayscale_0{--grayscale: grayscale(0)}.grayscale_0\\.9{--grayscale: grayscale(.9)}.filter_auto{filter:var(--blur, ) var(--brightness, ) var(--contrast, ) var(--grayscale, ) var(--hue-rotate, ) var(--invert, ) var(--saturate, ) var(--sepia, ) var(--drop-shadow, )}.cross-axis_50{cross-axis:50px}.sr_true{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fs_13px{font-size:13px}.fs_16px{font-size:16px}.c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}.fs_12px{font-size:12px}.fs_md{font-size:var(--font-sizes-md)}.bg-c_\\[rgb\\(34_34_34_\\/_0\\.7\\)\\]{background-color:#222222b3}.z_902{z-index:902}.bkdp-blur_10px{--backdrop-blur: blur(10px)}.trf_translateX\\(-50\\%\\){transform:translate(-50%)}.z_903{z-index:903}.mix-bm_normal{mix-blend-mode:normal}.fill_var\\(--likec4-palette-relation-stroke\\){fill:var(--likec4-palette-relation-stroke)}.stk_var\\(--likec4-palette-relation-stroke\\){stroke:var(--likec4-palette-relation-stroke)}.fill-opacity_0\\.75{fill-opacity:.75}.stk-w_1{stroke-width:1}.cursor_grab{cursor:grab}.pointer-events_auto{pointer-events:auto}.vis_hidden{visibility:hidden}.cursor_grabbing{cursor:grabbing}.bg-c_var\\(--likec4-palette-fill\\)\\/15{--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-fill) 15%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-fill))}.fw_bold{font-weight:700}.ls_\\.75px{letter-spacing:.75px}.c_\\[var\\(--_color\\)\\/75\\]{--mix-color: color-mix(in srgb, var(--_color) 75%, transparent);color:var(--mix-color, var(--_color))}.bg-c_var\\(--likec4-palette-fill\\){background-color:var(--likec4-palette-fill)}.translate-x_-1\\/2{--translate-x: -50%}.translate-y_-1\\/2{--translate-y: -50%}.bg-c_mantine\\.colors\\.body\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-body) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-body))}.fill_var\\(--likec4-palette-fill\\){fill:var(--likec4-palette-fill)}.stk_var\\(--likec4-palette-stroke\\){stroke:var(--likec4-palette-stroke)}.filter_drop-shadow\\(0_2px_3px_rgb\\(0_0_0_\\/_22\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_10\\%\\)\\){filter:drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) drop-shadow(0 1px 8px rgb(0 0 0 / 10%))}.ls_0\\.2px{letter-spacing:.2px}.tt_lowercase{text-transform:lowercase}.op_0\\.25{opacity:.25}.stk-w_5{stroke-width:5}.pos_right-end{position:right-end}.jc_flex-start{justify-content:flex-start}.pos_left-start{position:left-start}.top_1rem{top:1rem}.right_1rem{right:1rem}.top_0{top:var(--spacing-0)}.left_0{left:var(--spacing-0)}.w_100\\%{width:100%}.h_100\\%{height:100%}.mt_xl{margin-top:var(--spacing-xl)}.min-h_24{min-height:24px}.max-w_500{max-width:500px}.pr_0{padding-right:var(--spacing-0)}.h_12{height:12px}.w_12{width:12px}.h_30px{height:30px}.pl_sm{padding-left:var(--spacing-sm)}.pr_1{padding-right:var(--spacing-1)}.pr_2\\.5{padding-right:var(--spacing-2\\.5)}.max-w_calc\\(100vw\\){max-width:100vw}.pr_md{padding-right:var(--spacing-md)}.max-w_200px{max-width:200px}.max-w_calc\\(100vw_-_50px\\){max-width:calc(100vw - 50px)}.max-w_calc\\(100vw_-_250px\\){max-width:calc(100vw - 250px)}.max-h_calc\\(100vh_-_200px\\){max-height:calc(100vh - 200px)}.max-h_calc\\(100vh_-_160px\\){max-height:calc(100vh - 160px)}.mb_1{margin-bottom:var(--spacing-1)}.max-h_100vh{max-height:100vh}.pt_\\[20px\\]{padding-top:20px}.pl_md{padding-left:var(--spacing-md)}.pb_sm{padding-bottom:var(--spacing-sm)}.pr_xs{padding-right:var(--spacing-xs)}.lc_5{-webkit-line-clamp:5}.lc_5,.lc_2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.lc_2{-webkit-line-clamp:2}.lc_3{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.max-h_8rem{max-height:8rem}.top_0\\.5{top:var(--spacing-0\\.5)}.right_0\\.5{right:var(--spacing-0\\.5)}.bottom_0{bottom:var(--spacing-0)}.max-w_50{max-width:50px}.h_5{height:5px}.w_max-content{width:max-content}.pt_2{padding-top:var(--spacing-2)}.mt_2{margin-top:var(--spacing-2)}.mt_0{margin-top:var(--spacing-0)}.pl_2\\.5{padding-left:var(--spacing-2\\.5)}.bd-l-c_mantine\\.colors\\.gray\\[3\\]{border-left-color:var(--colors-mantine-colors-gray\\[3\\])}.w_\\[20px\\]{width:20px}.mt_1{margin-top:var(--spacing-1)}.mb_xxs{margin-bottom:var(--spacing-xxs)}.pb_lg{padding-bottom:var(--spacing-lg)}.max-w_calc\\(100cqw_-_52px\\){max-width:calc(100cqw - 52px)}.min-w_200px{min-width:200px}.max-h_calc\\(100cqh_-_100px\\){max-height:calc(100cqh - 100px)}.h_auto{height:auto}.pt_6{padding-top:var(--spacing-6)}.mb_10{margin-bottom:var(--spacing-10)}.pt_100\\%{padding-top:100%}.left_2{left:var(--spacing-2)}.bottom_2{bottom:var(--spacing-2)}.mt_xs{margin-top:var(--spacing-xs)}.top_md{top:var(--spacing-md)}.left_md{left:var(--spacing-md)}.w_8{width:8px}.h_8{height:8px}.mr_sm{margin-right:var(--spacing-sm)}.h_26{height:26px}.top_\\[1px\\]{top:1px}.right_\\[1px\\]{right:1px}.pt_xxs{padding-top:var(--spacing-xxs)}.max-w_calc\\(100cqw_-_32px\\){max-width:calc(100cqw - 32px)}.min-w_calc\\(100cqw_-_50px\\){min-width:calc(100cqw - 50px)}.w_100vw{width:100vw}.h_100vh{height:100vh}.max-w_100vw{max-width:100vw}.h_40px{height:40px}.w_40px{width:40px}.w_14px{width:14px}.h_14px{height:14px}.bottom_0\\.5{bottom:var(--spacing-0\\.5)}.mb_sm{margin-bottom:var(--spacing-sm)}.lc_1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.mt_6{margin-top:var(--spacing-6)}.pt_xs{padding-top:var(--spacing-xs)}.w_300{width:300px}.min-w_0{min-width:0}.min-h_32px{min-height:32px}.max-w_min\\(200px\\,_100\\%\\){max-width:min(200px,100%)}.min-w_60px{min-width:60px}.mb_0{margin-bottom:var(--spacing-0)}.h_36px{height:36px}.min-w_24{min-width:24px}.mb_4{margin-bottom:var(--spacing-4)}.top_12{top:12px}.right_12{right:12px}.mt_sm{margin-top:var(--spacing-sm)}.ml_sm{margin-left:var(--spacing-sm)}.pl_1{padding-left:var(--spacing-1)}.bd-b-c_mantine\\.colors\\.defaultBorder{border-bottom-color:var(--colors-mantine-colors-default-border)}.max-h_70vh{max-height:70vh}.mb_2{margin-bottom:var(--spacing-2)}.max-w_8xl{max-width:8xl}.pl_\\[48px\\]{padding-left:48px}.mr_1{margin-right:var(--spacing-1)}.min-h_60px{min-height:60px}.h_var\\(--likec4-icon-size\\,_24px\\){height:var(--likec4-icon-size, 24px)}.w_var\\(--likec4-icon-size\\,_24px\\){width:var(--likec4-icon-size, 24px)}.top_\\[2rem\\]{top:2rem}.left_\\[50\\%\\]{left:50%}.max-w_600px{max-width:600px}.pl_2{padding-left:var(--spacing-2)}.pt_0\\.5{padding-top:var(--spacing-0\\.5)}.w_5px{width:5px}.top_1{top:var(--spacing-1)}.right_0{right:var(--spacing-0)}.w_min-content{width:min-content}.h_min-content{height:min-content}.min-w_200{min-width:200px}.max-w_calc\\(100vw_-_20px\\){max-width:calc(100vw - 20px)}.pt_0{padding-top:var(--spacing-0)}.pb_0{padding-bottom:var(--spacing-0)}.ml_2{margin-left:var(--spacing-2)}.h_xs{height:xs}.pb_8{padding-bottom:var(--spacing-8)}.pt_4{padding-top:var(--spacing-4)}.max-w_220px{max-width:220px}.\\[\\&_\\.action-icon\\]\\:--ai-size_2rem .action-icon{--ai-size: 2rem}[data-mantine-color-scheme=light] .light\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[6\\]\\}{--icon-color: var(--colors-mantine-colors-gray\\[6\\])}[data-mantine-color-scheme=light] .light\\:--view-title-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}{--view-title-color: var(--colors-mantine-colors-gray\\[7\\])}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:--ti-size_22px .mantine-ThemeIcon-root{--ti-size: 22px}[data-mantine-color-scheme=dark] .dark\\:--_color_\\[color-mix\\(in_srgb\\,_var\\(--likec4-palette-hiContrast\\)_40\\%\\,_var\\(--likec4-palette-fill\\)\\)\\]{--_color: color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:--ai-radius_\\{radii\\.md\\}{--ai-radius: var(--radii-md)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]{background:var(--colors-mantine-colors-dark\\[6\\])}.before\\:bg_\\[transparent\\]:before{background:var(--colors-transparent)}[data-mantine-color-scheme=light] .light\\:bg_var\\(--likec4-palette-fill\\)\\/90{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 90%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_var\\(--likec4-palette-fill\\)\\/60{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[5\\]{background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.\\[\\&\\[data-active\\]\\]\\:bg_mantine\\.colors\\.white[data-active]{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/15[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 15%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/20[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[3\\]\\/20{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[6\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-white) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-white))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[4\\]{border-color:var(--colors-mantine-colors-dark\\[4\\])}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:transition_none\\!{transition:none!important}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[2\\]{border-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[7\\]{border-color:var(--colors-mantine-colors-dark\\[7\\])}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:transition_none{transition:none}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:transition_stroke_130ms_ease-out\\,stroke-width_130ms_ease-out{transition:stroke .13s ease-out,stroke-width .13s ease-out}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:bdr_4{border-radius:4px}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:transition_fast .mantine-ThemeIcon-root{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&_\\>_\\*\\]\\:transition_all_130ms_\\{easings\\.inOut\\}>*{transition:all .13s var(--easings-in-out)}.\\[\\&\\[data-active\\]\\]\\:transition_none[data-active]{transition:none}.\\[\\&_\\>_\\*\\]\\:transition_fast>*,.\\[\\&_\\.tabler-icon\\]\\:transition_fast .tabler-icon{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&\\[data-missing\\]\\]\\:bd-c_mantine\\.colors\\.orange\\[5\\]\\/20[data-missing]{--mix-borderColor: color-mix(in srgb, var(--colors-mantine-colors-orange\\[5\\]) 20%, transparent);border-color:var(--mix-borderColor, var(--colors-mantine-colors-orange\\[5\\]))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:bd-b_none:last-child .likec4-edge-label{border-bottom:var(--borders-none)}.\\[\\&_\\>_\\*\\]\\:transition_all_0\\.15s_ease-in>*{transition:all .15s ease-in}[data-mantine-color-scheme=dark] .dark\\:bd-c_transparent{border-color:var(--colors-transparent)}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:transition_fill-opacity_150ms_ease-out\\,_stroke_150ms_ease-out\\,_stroke-width_150ms_ease-out{transition:fill-opacity .15s ease-out,stroke .15s ease-out,stroke-width .15s ease-out}.\\[\\&_\\:where\\(\\.likec4-diagram\\,_\\.likec4-compound-node\\,_\\.likec4-element-node\\)\\]\\:cursor_pointer :where(.likec4-diagram,.likec4-compound-node,.likec4-element-node){cursor:pointer}[data-mantine-color-scheme=dark] .dark\\:bg-c_\\[rgb\\(34_34_34_\\/_10\\%\\)\\]{background-color:#2222221a}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(15_15_15\\/_20\\%\\)\\]{background-color:#0f0f0f33}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:c_mantine\\.colors\\.dimmed:is([data-position=left]){color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:us_none:is([data-position=left]){-webkit-user-select:none;user-select:none}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:pointer-events_none:is([data-position=left]){pointer-events:none}[data-mantine-color-scheme=light] .light\\:fill_\\[\\#222221\\]{fill:#222221}.\\[\\&_\\.tabler-icon\\]\\:c_mantine\\.colors\\.text .tabler-icon{color:var(--colors-mantine-colors-text)}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none\\!{box-shadow:var(--shadows-none)!important}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[0\\]{color:var(--colors-mantine-colors-dark\\[0\\])}[data-mantine-color-scheme=light] .light\\:bg-c_mantine\\.colors\\.gray\\[2\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-gray\\[2\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-gray\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[8\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[8\\]))}.empty\\:d_none:is(:empty,[data-empty]){display:none}.\\[\\&_\\>_mark\\]\\:bg-c_mantine\\.colors\\.yellow\\[2\\]\\/90>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[2\\]) 90%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:op_0\\.5{opacity:.5}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}.placeholder\\:c_mantine\\.colors\\.dimmed::placeholder,.placeholder\\:c_mantine\\.colors\\.dimmed[data-placeholder]{color:var(--colors-mantine-colors-dimmed)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[3\\]{color:var(--colors-mantine-colors-dark\\[3\\])}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(250_250_250_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(250 250 250 / var(--_opacity, 95%))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-prop_stroke-width\\,_stroke-opacity{--transition-prop: stroke-width, stroke-opacity;transition-property:stroke-width,stroke-opacity}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_4\\){stroke-width:calc(var(--xy-edge-stroke-width) + 4)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-op_0\\.2{stroke-opacity:.2}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_6\\){stroke-width:calc(var(--xy-edge-stroke-width) + 6)}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-op_0\\.25{stroke-opacity:.25}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:anim-ps_paused{animation-play-state:paused}:where([data-edge-dir=back]) .\\[\\:where\\(\\[data-edge-dir\\=\\'back\\'\\]\\)_\\&\\]\\:anim-dir_reverse{animation-direction:reverse}:where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]) .whenDimmed\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:anim-n_none{animation-name:none}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:stk-dsh_none\\!{stroke-dasharray:none!important}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:d_none{display:none}.before\\:content_\\"_\\":before{content:" "}.before\\:pos_absolute:before{position:absolute}.before\\:pointer-events_all:before{pointer-events:all}:where(.react-flow__node.selectable:not(.dragging)) .\\[\\:where\\(\\.react-flow__node\\.selectable\\:not\\(\\.dragging\\)\\)_\\&\\]\\:cursor_pointer{cursor:pointer}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-dly_\\.08s{transition-delay:.08s}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:pointer-events_none{pointer-events:none}[data-mantine-color-scheme=light] .light\\:c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}[data-mantine-color-scheme=dark] .dark\\:c_var\\(--likec4-palette-loContrast\\){color:var(--likec4-palette-loContrast)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\[4\\]{color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.\\[\\&\\:is\\(\\[data-position\\=\\"right\\"\\]\\)\\]\\:ms_1:is([data-position=right]){margin-inline-start:var(--spacing-1)}.\\[\\&_\\:where\\(button\\,_\\.action-icon\\,_\\[role\\=\\'dialog\\'\\]\\)\\]\\:pointer-events_all :where(button,.action-icon,[role=dialog]){pointer-events:all}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none{box-shadow:var(--shadows-none)}.backdrop\\:bkdp_auto::backdrop{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.backdrop\\:bkdp-blur_var\\(--_blur\\)::backdrop{--backdrop-blur: blur(var(--_blur))}.backdrop\\:bg-c_\\[rgb\\(36_36_36_\\/_var\\(--_opacity\\,_5\\%\\)\\)\\]::backdrop{background-color:rgb(36 36 36 / var(--_opacity, 5%))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]{background-color:var(--colors-mantine-colors-dark\\[6\\])}.\\[\\&_\\.react-flow__attribution\\]\\:d_none .react-flow__attribution{display:none}[data-mantine-color-scheme=dark] .dark\\:mix-bm_hard-light{mix-blend-mode:hard-light}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:pointer-events_none :where(svg,img){pointer-events:none}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:filter_drop-shadow\\(0_0_3px_rgb\\(0_0_0_\\/_10\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_5\\%\\)\\)_drop-shadow\\(1px_1px_16px_rgb\\(0_0_0_\\/_2\\%\\)\\) :where(svg,img){filter:drop-shadow(0 0 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))}.\\[\\&_img\\]\\:obj-f_contain img{object-fit:contain}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:c_\\[var\\(--icon-color\\,_\\{colors\\.mantine\\.colors\\.dark\\[2\\]\\}\\)\\] .mantine-ThemeIcon-root{color:var(--icon-color, var(--colors-mantine-colors-dark\\[2\\]))}.\\[\\&\\[data-active\\]\\]\\:bx-sh_xs[data-active]{box-shadow:var(--shadows-xs)}.\\[\\&\\[data-active\\]\\]\\:c_mantine\\.colors\\.defaultColor[data-active]{color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[9\\]{background-color:var(--colors-mantine-colors-dark\\[9\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[2\\]{color:var(--colors-mantine-colors-dark\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\.lightColor{color:var(--colors-mantine-colors-gray-light-color)}.\\[\\&_\\.tabler-icon\\]\\:op_0\\.65 .tabler-icon{opacity:.65}.\\[\\&\\[data-missing\\]\\]\\:c_mantine\\.colors\\.orange\\[4\\][data-missing]{color:var(--colors-mantine-colors-orange\\[4\\])}.before\\:content_\\"scope\\:\\":before{content:"scope:"}.before\\:fs_xxs:before{font-size:var(--font-sizes-xxs)}.before\\:fw_500:before{font-weight:500}.before\\:lh_1:before{line-height:var(--line-heights-1)}.before\\:c_mantine\\.colors\\.dimmed:before{color:var(--colors-mantine-colors-dimmed)}.before\\:op_0\\.85:before{opacity:.85}.before\\:trf_translateY\\(-100\\%\\)_translateY\\(-2px\\):before{transform:translateY(-100%) translateY(-2px)}.\\[\\&\\[data-zero\\]\\]\\:c_mantine\\.colors\\.dimmed[data-zero]{color:var(--colors-mantine-colors-dimmed)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.text\\/90 .mantine-Text-root{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xs .mantine-Text-root{font-size:var(--font-sizes-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_500 .mantine-Text-root{font-weight:500}.\\[\\&_\\.mantine-Text-root\\]\\:lh_1\\.2 .mantine-Text-root{line-height:1.2}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xxs .mantine-Text-root{font-size:var(--font-sizes-xxs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_400 .mantine-Text-root{font-weight:400}.\\[\\&_\\.mantine-Text-root\\]\\:lh_xs .mantine-Text-root{line-height:var(--line-heights-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.dimmed .mantine-Text-root{color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\[data-disabled\\]_\\.mantine-ThemeIcon-root\\]\\:op_0\\.45[data-disabled] .mantine-ThemeIcon-root{opacity:.45}:where(.likec4-view-btn[data-disabled]) .\\[\\:where\\(\\.likec4-view-btn\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none svg,.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none img{pointer-events:none}.\\[\\&\\.likec4-shape-icon_svg\\]\\:stk-w_1\\.5.likec4-shape-icon svg{stroke-width:1.5}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.4{opacity:.4}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(255_255_255_\\/_0\\.6\\)\\]{background-color:#fff9}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:vis_visible{visibility:visible}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:trs-dly_50ms{transition-delay:50ms}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:fill-opacity_1{fill-opacity:1}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:stk-w_5{stroke-width:5}.\\[\\&_\\*\\]\\:cursor_grabbing\\! *,.\\[\\&_\\.react-flow__edge-interaction\\]\\:cursor_grabbing\\! .react-flow__edge-interaction{cursor:grabbing!important}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[6\\]))}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:min-h_100\\% .mantine-ScrollArea-viewport{min-height:100%}:where([data-likec4-shape=browser]) .shapeBrowser\\:right_\\[5px\\]{right:5px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=storage]) .shapeStorage\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=queue]) .shapeQueue\\:top_\\[1px\\]{top:1px}:where([data-likec4-shape=queue]) .shapeQueue\\:right_3{right:var(--spacing-3)}.before\\:top_\\[calc\\(100\\%_-_4px\\)\\]:before{top:calc(100% - 4px)}.before\\:left_0:before{left:var(--spacing-0)}.before\\:w_100\\%:before{width:100%}.before\\:h_24px:before{height:24px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=storage]) .shapeStorage\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=queue]) .shapeQueue\\:bottom_0{bottom:var(--spacing-0)}:where([data-likec4-shape=queue]) .shapeQueue\\:pl_\\[14px\\]{padding-left:14px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:h_12{height:12px}[data-mantine-color-scheme=dark] .dark\\:bd-l-c_mantine\\.colors\\.dark\\[4\\]{border-left-color:var(--colors-mantine-colors-dark\\[4\\])}.\\[\\&_\\>_svg\\]\\:w_70\\%>svg{width:70%}.\\[\\&_\\>_svg\\]\\:h_70\\%>svg{height:70%}.\\[\\&_\\.tabler-icon\\]\\:w_65\\% .tabler-icon{width:65%}.\\[\\&_\\.tabler-icon\\]\\:h_65\\% .tabler-icon{height:65%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:w_100\\% :where(svg,img){width:100%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:h_auto :where(svg,img){height:auto}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:max-h_100\\% :where(svg,img){max-height:100%}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pl_1:not(:has(.mantine-ScrollArea-root)){padding-left:var(--spacing-1)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pr_1:not(:has(.mantine-ScrollArea-root)){padding-right:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:w_100\\% .mantine-ScrollArea-root{width:100%}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:h_100\\% .mantine-ScrollArea-root{height:100%}.\\[\\&\\[data-level\\=\\'1\\'\\]\\]\\:mb_sm[data-level="1"]{margin-bottom:var(--spacing-sm)}.\\[\\&_\\.tabler-icon\\]\\:w_90\\% .tabler-icon{width:90%}.before\\:top_0:before{top:var(--spacing-0)}.before\\:left_2:before{left:var(--spacing-2)}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:mb_0:last-child .likec4-edge-label{margin-bottom:var(--spacing-0)}.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% img{width:100%}.\\[\\&_svg\\,_\\&_img\\]\\:h_auto svg,.\\[\\&_svg\\,_\\&_img\\]\\:h_auto img{height:auto}.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% img{max-height:100%}:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\])+:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\]){margin-top:32px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:w_7px{width:7px}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:w_7px{width:7px}.focusWithin\\:bg_mantine\\.colors\\.gray\\[4\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[4\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-gray\\[4\\]))!important}.group:focus-within .groupFocusWithin\\:op_1{opacity:1}.group:focus-within .groupFocusWithin\\:grayscale_0{--grayscale: grayscale(0)}.focus\\:bg_mantine\\.colors\\.primary\\[8\\]:is(:focus,[data-focus]){background:var(--colors-mantine-colors-primary\\[8\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.group:is(:focus,[data-focus]) .groupFocus\\:transition_none{transition:none}.focus\\:ring_none:is(:focus,[data-focus]){outline:var(--borders-none)}.focusVisible\\:ring_none:is(:focus-visible,[data-focus-visible]){outline:var(--borders-none)}.focus\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:focus,[data-focus]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:ring_none{outline:var(--borders-none)}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_\\[inherit\\]\\!{color:inherit!important}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.5{opacity:.5}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.8{opacity:.8}.focus\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.focus\\:c_mantine\\.colors\\.primary\\.lightColor\\!:is(:focus,[data-focus]){color:var(--colors-mantine-colors-primary-light-color)!important}.focus\\:bg-c_mantine\\.colors\\.primary\\.lightHover\\!:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-primary-light-hover)!important}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-dark\\[1\\])}.hover\\:--view-title-color_\\{colors\\.mantine\\.colors\\.defaultColor\\}:is(:hover,[data-hover]){--view-title-color: var(--colors-mantine-colors-default-color)}.hover\\:bg_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\[3\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray\\[3\\])}.hover\\:bg_mantine\\.colors\\.gray\\.lightHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray-light-hover)}.hover\\:bg_mantine\\.colors\\.primary\\[8\\]\\/60:is(:hover,[data-hover]){--mix-background: color-mix(in srgb, var(--colors-mantine-colors-primary\\[8\\]) 60%, transparent);background:var(--mix-background, var(--colors-mantine-colors-primary\\[8\\]))}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.gray\\[3\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}.hover\\:td_underline:is(:hover,[data-hover]){text-decoration:underline}.hover\\:bd-c_mantine\\.colors\\.defaultBorder:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-default-border)}.hover\\:bd-w_4px:is(:hover,[data-hover]){border-width:4px}.hover\\:bd-c_mantine\\.colors\\.dark\\[1\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-dark\\[1\\])}.hover\\:border-style_solid:is(:hover,[data-hover]){border-style:solid}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:transition_all_0\\.15s_ease-out:is(:hover,[data-selected=true])>*{transition:all .15s ease-out}.hover\\:ring_none:is(:hover,[data-hover]){outline:var(--borders-none)}.hover\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.hover\\:transition_stroke_100ms_ease-out\\,_stroke-width_100ms_ease-out:is(:hover,[data-hover]){transition:stroke .1s ease-out,stroke-width .1s ease-out}.hover\\:transition_all_120ms_ease-out:is(:hover,[data-hover]){transition:all .12s ease-out}.hover\\:op_1:is(:hover,[data-hover]){opacity:1}.hover\\:bg-c_mantine\\.colors\\.gray\\[1\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[1\\])}.hover\\:bx-sh_sm:is(:hover,[data-hover]){box-shadow:var(--shadows-sm)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.5{opacity:.5}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.8{opacity:.8}.hover\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.hover\\:c_\\[var\\(--mantine-color-bright\\)\\]:is(:hover,[data-hover]){color:var(--mantine-color-bright)}.hover\\:c_mantine\\.colors\\.text:is(:hover,[data-hover]){color:var(--colors-mantine-colors-text)}.hover\\:trs-dly_0s:is(:hover,[data-hover]){transition-delay:0s}.hover\\:c_likec4\\.panel\\.action-icon\\.text\\.hover:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-icon-text-hover)}.hover\\:bg-c_likec4\\.panel\\.action-icon\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.\\[\\&\\:hover_\\>_\\*\\]\\:trs-tmf_out:hover>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.\\[\\&\\:hover_\\>_\\*\\]\\:trf_translateX\\(1\\.6px\\):hover>*{transform:translate(1.6px)}.hover\\:trs-tmf_out:is(:hover,[data-hover]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:c_mantine\\.colors\\.defaultColor:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}.hover\\:c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){color:var(--colors-mantine-colors-primary\\[6\\])}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:cursor_pointer:is(:hover,[data-selected=true])>*{cursor:pointer}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-selected=true])>*{background-color:var(--colors-mantine-colors-default-hover)}.hover\\:bg-c_mantine\\.colors\\.gray\\[0\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:op_1{opacity:1}.group:is(:hover,[data-hover]) .groupHover\\:grayscale_0{--grayscale: grayscale(0)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:fill-opacity_1:is(:hover,[data-hover]){fill-opacity:1}.hover\\:stk_mantine\\.colors\\.primary\\.filledHover:is(:hover,[data-hover]){stroke:var(--colors-mantine-colors-primary-filled-hover)}.hover\\:stk-w_10:is(:hover,[data-hover]){stroke-width:10}.hover\\:bg-c_mantine\\.colors\\.primary\\[2\\]\\/50:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-primary\\[2\\]) 50%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-primary\\[2\\]))}.group:is(:active,[data-active]) .groupActive\\:op_0\\.5{opacity:.5}.group:is(:active,[data-active]) .groupActive\\:op_0\\.8{opacity:.8}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:\\[\\&_\\.action-icon\\]\\:--ai-radius_0px .action-icon{--ai-radius: 0px}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:bg_mantine\\.colors\\.dark\\[5\\]:is([data-active]){background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .light\\:\\[\\&_\\.mantine-SegmentedControl-root\\]\\:bg_mantine\\.colors\\.gray\\[3\\] .mantine-SegmentedControl-root{background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:c_\\[var\\(--badge-color\\)\\]:is([data-position=left]){color:var(--badge-color)}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:op_0\\.7:is([data-position=left]){opacity:.7}[data-mantine-color-scheme=dark] .\\[\\&_\\>_mark\\]\\:dark\\:bg-c_mantine\\.colors\\.yellow\\[5\\]\\/80>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[5\\]))}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:bg-c_\\[transparent\\]>mark{background-color:var(--colors-transparent)}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:c_\\[inherit\\]\\!>mark{color:inherit!important}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) :where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:whenHovered\\:stk-op_0\\.4{stroke-opacity:.4}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-dly_450ms{animation-delay:.45s}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-dly_0ms{animation-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .reduceGraphicsOnPan\\:before\\:d_none:before{display:none}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:hover\\:c_mantine\\.colors\\.defaultColor .mantine-ThemeIcon-root:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:c_mantine\\.colors\\.white:is([data-active]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .\\[\\&\\[data-missing\\]\\]\\:light\\:c_mantine\\.colors\\.orange\\[8\\][data-missing]{color:var(--colors-mantine-colors-orange\\[8\\])}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:min-h_100\\% .mantine-ScrollArea-viewport>div{min-height:100%}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:h_100\\% .mantine-ScrollArea-viewport>div{height:100%}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pl_1 .mantine-ScrollArea-root>div{padding-left:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pr_1 .mantine-ScrollArea-root>div{padding-right:var(--spacing-1)}[data-mantine-color-scheme=dark] .focusWithin\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))!important}[data-mantine-color-scheme=dark] .focus\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=light] .group:is(:focus,[data-focus]) .groupFocus\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg_mantine\\.colors\\.dark\\[6\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=light] .light\\:hover\\:bd-c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[6\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:bg-c_mantine\\.colors\\.gray\\[2\\]{background-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]{background-color:var(--colors-mantine-colors-dark\\[8\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/70:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=dark] .dark\\:hover\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[7\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[7\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.primary\\[4\\]:is(:hover,[data-hover]){color:var(--colors-mantine-colors-primary\\[4\\])}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trs-tmf_out:is(:hover,[data-hover])>:not([data-no-transform]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>:not([data-no-transform]){transform:translate(1px)}.hover\\:\\[\\&_\\>_\\*\\]\\:trs-tmf_out:is(:hover,[data-hover])>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\*\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>*{transform:translate(1px)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-default-hover)}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:bg-c_mantine\\.colors\\.primary\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-primary\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg-c_mantine\\.colors\\.dark\\[3\\]\\/40:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[3\\]) 40%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[3\\]))}@container (min-width: 24rem){.\\@\\/xs\\:d_flex{display:flex}}@media screen and (min-width:36rem){.xs\\:max-w_calc\\(100cqw\\){max-width:100cqw}.xs\\:max-w_calc\\(100cqw_-_50px\\){max-width:calc(100cqw - 50px)}.xs\\:max-w_calc\\(100cqw_-_250px\\){max-width:calc(100cqw - 250px)}.xs\\:max-h_calc\\(100cqh_-_200px\\){max-height:calc(100cqh - 200px)}.xs\\:max-h_calc\\(100cqh_-_160px\\){max-height:calc(100cqh - 160px)}.xs\\:h_100cqh{height:100cqh}.xs\\:max-h_calc\\(100cqh_-_70px\\){max-height:calc(100cqh - 70px)}}@container (min-width: 40rem){.\\@\\/sm\\:m_xs{margin:var(--spacing-xs)}.\\@\\/sm\\:gap_xs{gap:var(--spacing-xs)}.\\@\\/sm\\:w_max-content{width:max-content}.\\@\\/sm\\:max-w_calc\\(100vw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100vw - 2 * var(--spacing-md))}.\\@\\/sm\\:min-w_400{min-width:400px}.\\@\\/sm\\:max-w_550{max-width:550px}}@container (min-width: 40rem){@media screen and (min-width:36rem){.\\@\\/sm\\:xs\\:max-w_calc\\(100cqw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100cqw - 2 * var(--spacing-md))}}}@container (min-width: 48rem){.\\@\\/md\\:d_block{display:block}.\\@\\/md\\:d_flex{display:flex}.\\@\\/md\\:d_none{display:none}.\\@\\/md\\:d_\\[inherit\\]{display:inherit}.\\@\\/md\\:ms_2{margin-inline-start:var(--spacing-2)}.\\@\\/md\\:w_\\[64px\\]{width:64px}}@media screen and (min-width:48rem){.sm\\:pr_\\[30px\\]{padding-right:30px}.sm\\:min-w_300{min-width:300px}.sm\\:max-w_65vw{max-width:65vw}}@media screen and (min-width:62rem){.md\\:--text-fz_\\{fontSizes\\.md\\}{--text-fz: var(--font-sizes-md)}.md\\:bd-w_4{border-width:4px}.md\\:px_6{padding-inline:var(--spacing-6)}.md\\:pr_\\[50px\\]{padding-right:50px}.md\\:max-w_40vw{max-width:40vw}}@container (min-width: 64rem){.\\@\\/lg\\:max-w_700{max-width:700px}}@media screen and (min-width:75rem){.lg\\:px_8{padding-inline:var(--spacing-8)}}@container likec4-tree (max-width: 450px){.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:--likec4-icon-size_18px{--likec4-icon-size: 18px}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:gap_0\\.5{gap:var(--spacing-0\\.5)}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:flex-d_column-reverse{flex-direction:column-reverse}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:ai_flex-start{align-items:flex-start}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:d_none{display:none}}}`,_tt={autoContrast:!0,primaryColor:"indigo",cursorType:"pointer",defaultRadius:"sm",fontFamily:"var(--likec4-app-font, var(--likec4-app-font-default))",headings:{fontWeight:"500",sizes:{h1:{fontWeight:"600"},h2:{fontWeight:"500"}}},components:{Portal:V0.extend({defaultProps:{reuseTargetNode:!0}})}};me({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Ett(e,r){const[n,o]=S.useState([]);return aE(()=>{if(e&&!document.querySelector("style[data-likec4-font]")){const a=document.createElement("style");a.setAttribute("type","text/css"),a.setAttribute("data-likec4-font",""),KE(r)&&a.setAttribute("nonce",r),$0(r)&&a.setAttribute("nonce",r()),a.appendChild(document.createTextNode(ktt)),document.head.appendChild(a)}},[e]),aE(()=>{const a=new CSSStyleSheet;return a.replaceSync(lre.replaceAll(":where(:root,:host)",".likec4-shadow-root").replaceAll(":root",".likec4-shadow-root").replaceAll(new RegExp("(?<![-_])\\bbody\\s*\\{","g"),".likec4-shadow-root{")),o([a]),()=>{a.replaceSync("")}},[lre]),n}const sre=()=>{try{const e=window.getComputedStyle(document.documentElement).colorScheme??"",r=xf(e.split(" "));if(r==="light"||r==="dark")return r}catch{}return null};function Stt(e){const r=UU(),[n,o]=S.useState(sre);return rV(Tf(()=>o(sre),100),{attributes:!0,childList:!1,subtree:!1},()=>document.documentElement),e??n??r}const Ctt=wtt.div;function Ttt(e,r=!1){if(r===!1)return`
:where([data-likec4-instance="${e}"]) {
  display: block;
  box-sizing: border-box;
  border: 0 solid transparent;
  background: transparent;
  padding: 0;
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 80px;
  min-height: 80px;
}
  `.trim();const{width:n,height:o}=r,a=n>o;return`
:where([data-likec4-instance="${e}"]) {
  display: block;
  box-sizing: border-box;
  border: 0 solid transparent;
  background: transparent;
  padding: 0;
  overflow: hidden;
  aspect-ratio: ${Math.ceil(n)} / ${Math.ceil(o)};
  ${a?"":`
  max-width: min(100%, var(--likec4-view-max-width, ${Math.ceil(n)}px));
  margin-left: auto;
  margin-right: auto;`}
  width: ${a?"100%":"auto"};
  height: ${a?"auto":"100%"};
  ${a?"min-width: 80px;":"min-height: 80px;"}
  max-height: min(100%, var(--likec4-view-max-height, ${Math.ceil(o)}px));
}
`.trim()}function Rtt({children:e,theme:r=_tt,injectFontCss:n=!0,styleNonce:o,colorScheme:a,keepAspectRatio:i=!1,...l}){const s=Stt(a),c=sG(),u=Ttt(c,i),d=S.useRef(null),p=Ett(n,o),f=S.useCallback(()=>d.current??void 0,[d]),g=ot(()=>{if(Fx(o)){if(typeof o=="string")return o;if(typeof o=="function")return o()}return""});let b=Fx(o)?g():void 0;return y.jsxs(y.Fragment,{children:[y.jsx("style",{type:"text/css",nonce:b,dangerouslySetInnerHTML:{__html:u}}),y.jsx(Ctt,{ssr:!1,...l,styleSheets:p,"data-likec4-instance":c,children:y.jsx("div",{ref:d,"data-mantine-color-scheme":s,className:"likec4-shadow-root",children:y.jsx(k9,{...a&&{forceColorScheme:a},defaultColorScheme:s,getRootElement:f,...!!b&&{getStyleNonce:g},cssVariablesSelector:".likec4-shadow-root",theme:r,children:y.jsx(wR,{children:e})})})})]})}const Att=me({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Ntt({viewId:e,className:r,pannable:n=!1,zoomable:o=!1,keepAspectRatio:a=!0,colorScheme:i,injectFontCss:l=!0,controls:s=!1,background:c="transparent",browser:u=!0,showNavigationButtons:d=!1,enableNotations:p,enableFocusMode:f=!1,enableDynamicViewWalkthrough:g=!1,enableElementDetails:b=!1,enableRelationshipDetails:x=!1,enableRelationshipBrowser:w=x,reduceGraphics:k="auto",mantineTheme:C,styleNonce:_,style:T,reactFlowProps:R,renderNodes:A,children:D,...N}){const $=tBe(),[O,j]=S.useState(null),L=ot(()=>{j(e)});if(!$)return y.jsx(kR,{children:"LikeC4Model not found. Make sure you provided LikeC4ModelProvider."});const Y=$.findView(e)?.$view;if(!Y)return y.jsx(ott,{viewId:e});if(Y._stage!=="layouted")return y.jsxs(kR,{children:['LikeC4 View "$',e,'" is not layouted. Make sure you have LikeC4ModelProvider with layouted model.']});const M=O?$.findView(O)?.$view:null,q=!!p&&(Y.notation?.nodes?.length??0)>0,z=(M?.notation?.nodes?.length??0)>0,H=u!==!1,U=dU(u)?{}:u,K=Wte(Y,N.dynamicViewVariant);return y.jsx(Rtt,{injectFontCss:l,theme:C,colorScheme:i,styleNonce:_,keepAspectRatio:a?K:!1,className:Je("likec4-view",r),style:T,children:y.jsxs(wR,{children:[y.jsx(Xte,{view:Y,readonly:!0,pannable:n,zoomable:o,background:c,fitView:!0,fitViewPadding:z2.default,enableNotations:q,enableDynamicViewWalkthrough:g,showNavigationButtons:d,experimentalEdgeEditing:!1,enableFocusMode:f,enableRelationshipDetails:x,enableElementDetails:b,enableRelationshipBrowser:w,enableElementTags:!1,controls:s,nodesDraggable:!1,reduceGraphics:k,className:Je("likec4-static-view",H&&Att),enableSearch:!1,...H&&{onCanvasClick:L,onNodeClick:L},reactFlowProps:R,renderNodes:A,children:D,...N}),M&&y.jsxs(Uy,{openDelay:0,onClose:()=>j(null),children:[y.jsx(Xte,{view:M,pannable:!0,zoomable:!0,background:"dots",onNavigateTo:j,showNavigationButtons:!0,enableDynamicViewWalkthrough:!0,enableFocusMode:!0,enableRelationshipBrowser:!0,enableElementDetails:!0,enableRelationshipDetails:!0,enableSearch:!0,enableElementTags:!0,controls:!0,readonly:!0,nodesDraggable:!1,fitView:!0,...N,fitViewPadding:z2.withControls,...U,enableNotations:z&&(U.enableNotations??!0),renderNodes:A}),y.jsx(Se,{pos:"absolute",top:"1rem",right:"1rem",children:y.jsx(ir,{variant:"default",color:"gray",onClick:V=>{V.stopPropagation(),j(null)},children:y.jsx(Xf,{})})})]})]})})}var Dtt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#343741",d:"M4 64c0 5.535.777 10.879 2.098 16H84c8.836 0 16-7.164 16-16s-7.164-16-16-16H6.098A63.7 63.7 0 0 0 4 64"}),y.jsx("path",{fill:"#fec514",d:"M111.695 30.648A61.5 61.5 0 0 0 117.922 24C106.188 9.379 88.199 0 68 0 42.715 0 20.957 14.71 10.574 36H98.04a20.12 20.12 0 0 0 13.652-5.352"}),y.jsx("path",{fill:"#00bfb3",d:"M98.04 92H10.577C20.961 113.29 42.715 128 68 128c20.2 0 38.188-9.383 49.922-24a61 61 0 0 0-6.227-6.648A20.13 20.13 0 0 0 98.04 92"})]}),Ptt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#F34F29",d:"M124.737 58.378 69.621 3.264c-3.172-3.174-8.32-3.174-11.497 0L46.68 14.71l14.518 14.518c3.375-1.139 7.243-.375 9.932 2.314 2.703 2.706 3.461 6.607 2.294 9.993l13.992 13.993c3.385-1.167 7.292-.413 9.994 2.295 3.78 3.777 3.78 9.9 0 13.679a9.673 9.673 0 0 1-13.683 0 9.68 9.68 0 0 1-2.105-10.521L68.574 47.933l-.002 34.341a9.7 9.7 0 0 1 2.559 1.828c3.778 3.777 3.778 9.898 0 13.683-3.779 3.777-9.904 3.777-13.679 0-3.778-3.784-3.778-9.905 0-13.683a9.7 9.7 0 0 1 3.167-2.11V47.333a9.6 9.6 0 0 1-3.167-2.111c-2.862-2.86-3.551-7.06-2.083-10.576L41.056 20.333 3.264 58.123a8.133 8.133 0 0 0 0 11.5l55.117 55.114c3.174 3.174 8.32 3.174 11.499 0l54.858-54.858a8.135 8.135 0 0 0-.001-11.501"})}),$tt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#181616",children:[y.jsx("path",{fillRule:"evenodd",d:"M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z",clipRule:"evenodd"}),y.jsx("path",{d:"M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zm2.382 3.477c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237m4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"})]})}),Mtt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 128 128",...e,children:[y.jsx("defs",{children:y.jsx("path",{id:"Go_svg__a",d:"M18.8 1h90.5v126H18.8z"})}),y.jsx("clipPath",{id:"Go_svg__b",children:y.jsx("use",{xlinkHref:"#Go_svg__a",overflow:"visible"})}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M21.1 68.7c.2 3.5 3.7 1.9 5.3.8 1.5-1.1 2-.2 2.1-2.3.1-1.4.2-2.7.2-4.1-2.3-.2-4.8.3-6.7 1.7-.9.7-2.8 3-.9 3.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M23 71.2c-.7 0-2-.3-2.2-2.3-.6-.4-.8-.9-.8-1.2-.1-1.2 1.2-2.6 1.9-3.1 1.6-1.2 3.7-1.8 5.9-1.8h1.3v.3c.1 1.1 0 2.2-.1 3.2 0 .3 0 .6-.1.9-.1 1.5-.4 1.7-1.1 2-.3.1-.6.2-1.1.6-.5.3-2.2 1.4-3.7 1.4m4.8-7.8c-2.1 0-4 .6-5.5 1.7-.7.5-1.7 1.7-1.6 2.5 0 .3.2.6.6.8l.2.1v.2c.1 1.6.9 1.8 1.5 1.8 1 0 2.4-.7 3.3-1.3.6-.4 1-.5 1.3-.6.5-.2.6-.2.7-1.4 0-.3 0-.6.1-.9.1-.9.1-1.9.1-2.8-.3-.1-.5-.1-.7-.1",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#C6B198",fillRule:"evenodd",d:"M21.1 68.7c.5-.2 1.1-.3 1.4-.8",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M21.1 69c-.1 0-.3-.1-.3-.2-.1-.2 0-.4.2-.4.1 0 .2-.1.2-.1.4-.2.8-.3 1-.6.1-.1.3-.2.5-.1.1.1.2.3.1.5-.4.5-.9.7-1.3.8l-.2.1z",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#6AD7E5",fillRule:"evenodd",d:"M29.3 26.4c-13.6-3.8-3.5-21.1 7.4-14z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"m29.5 26.8-.3-.1c-7-2-6.9-7-6.7-8.5.5-3.8 4.1-7.8 8.9-7.8 1.9 0 3.7.6 5.5 1.8l.3.2zm1.9-15.7c-4.5 0-7.8 3.7-8.3 7.2-.5 3.6 1.7 6.4 6 7.7l7.1-13.5c-1.5-.9-3.1-1.4-4.8-1.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#6AD7E5",fillRule:"evenodd",d:"M89.6 11.1c10.7-7.5 20.5 9.5 8 13.8z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M97.5 25.3 89.2 11l.3-.2c1.9-1.3 3.8-2 5.7-2 4.6 0 7.9 3.8 8.6 7.5.3 1.5.6 6.6-6 8.8zm-7.4-14 7.7 13.3c3.9-1.4 5.9-4.4 5.3-8-.6-3.4-3.7-6.9-7.9-6.9-1.7-.1-3.4.4-5.1 1.6",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M92 112.3c2.7 1.7 7.7 6.8 3.6 9.3-3.9 3.6-6.1-4-9.6-5 1.5-2 3.4-3.9 6-4.3",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M93.5 122.9c-1.6 0-3-1.6-4.2-3.1-1.1-1.2-2.2-2.5-3.4-2.9l-.5-.1.3-.4c1.2-1.7 3.2-3.9 6.2-4.4h.1l.1.1c1.7 1.1 5.4 4.2 5.3 7.1 0 1.1-.6 2-1.7 2.7-.7.7-1.4 1-2.2 1m-7-6.5c1.2.5 2.2 1.8 3.2 2.9 1.2 1.5 2.4 2.8 3.7 2.8q.9 0 1.8-.9h.1c.9-.6 1.4-1.3 1.4-2.2 0-2.3-2.9-5.2-4.9-6.5-1.8.5-3.6 1.7-5.3 3.9m9.1 5.5c-.1 0-.2-.1-.3-.2-.2-.4-.4-.9-.5-1.3-.3-.8-.6-1.6-1.2-2.2-.1-.1-.1-.3 0-.5.1-.1.3-.1.5 0 .7.7 1.1 1.6 1.4 2.5l.5 1.2c.1.2 0 .4-.1.5z",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M43.2 118.1c-3.2.5-5 3.4-7.7 4.9-2.5 1.5-3.5-.5-3.7-.9-.4-.2-.4.2-1-.4-2.3-3.7 2.4-6.4 4.9-8.2 3.5-.8 5.7 2.2 7.5 4.6",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M33.8 123.8c-1.3 0-2-1.1-2.2-1.5h-.1c-.3 0-.5-.1-.9-.5v-.1c-2.2-3.5 1.6-6.2 4.1-8l.9-.6h.2c.4-.1.7-.1 1.1-.1 3 0 4.9 2.6 6.5 4.7l.5.7-.6.1c-1.9.3-3.3 1.5-4.7 2.7-.9.8-1.8 1.5-2.8 2.1-.8.3-1.4.5-2 .5m-2.2-2.1c.1 0 .2 0 .4.1h.1l.1.1c.2.3.7 1.2 1.7 1.2.5 0 1-.2 1.5-.5 1-.5 1.9-1.3 2.7-2 1.3-1.1 2.7-2.3 4.5-2.8-1.5-2-3.3-4.2-5.8-4.2-.3 0-.6 0-.9.1l-.8.6c-2.6 1.8-5.8 4.1-3.9 7.1.1.2.2.3.4.3m.2.7c-.2 0-.4-.2-.3-.4.1-1 .6-1.7 1.1-2.5.3-.4.5-.8.7-1.2.1-.2.3-.2.4-.2.2.1.2.3.2.4-.2.5-.5.9-.8 1.3-.5.7-.9 1.3-1 2.1 0 .4-.1.5-.3.5",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fillRule:"evenodd",d:"M29.9 21.7c-1.8-.9-3.1-2.2-2-4.3 1-1.9 2.9-1.7 4.7-.8zm64.9-1.8c1.8-.9 3.1-2.2 2-4.3-1-1.9-2.9-1.7-4.7-.8z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M107.1 68.2c-.2 3.5-3.7 1.9-5.3.8-1.5-1.1-2-.2-2.1-2.3-.1-1.4-.2-2.7-.2-4.1 2.3-.2 4.8.3 6.7 1.7 1 .8 2.8 3 .9 3.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M105.3 70.7c-1.5 0-3.2-1.1-3.7-1.4s-.8-.5-1.1-.6c-.8-.3-1-.5-1.1-2 0-.3 0-.6-.1-.9-.1-1-.2-2.1-.1-3.2v-.3h1.3c2.2 0 4.3.6 5.9 1.8.7.5 2 1.9 1.9 3.1 0 .4-.2.9-.8 1.2-.2 2-1.5 2.3-2.2 2.3M99.8 63c0 .9 0 1.9.1 2.8 0 .3 0 .6.1.9.1 1.2.2 1.2.7 1.4.3.1.7.3 1.3.6.9.6 2.3 1.3 3.3 1.3.6 0 1.4-.2 1.5-1.8V68l.2-.1c.4-.2.6-.4.6-.8.1-.8-.9-2-1.6-2.5-1.5-1.1-3.5-1.7-5.5-1.7-.2.1-.4.1-.7.1",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#C6B198",fillRule:"evenodd",d:"M107.1 68.2c-.5-.2-1.1-.3-1.4-.8",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M107.1 68.6h-.1l-.2-.1c-.5-.2-1-.3-1.3-.8-.1-.1-.1-.4.1-.5.1-.1.4-.1.5.1.2.3.6.4 1 .6.1 0 .2.1.2.1.2.1.3.3.2.4s-.3.2-.4.2",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#6AD7E5",fillRule:"evenodd",d:"M62.8 4c13.6 0 26.3 1.9 33 15 6 14.6 3.8 30.4 4.8 45.9.8 13.3 2.5 28.6-3.6 40.9-6.5 12.9-22.7 16.2-36 15.7-10.5-.4-23.1-3.8-29.1-13.4-6.9-11.2-3.7-27.9-3.2-40.4.6-14.8-4-29.7.9-44.1C34.5 8.5 48.1 5.1 62.8 4",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M63.3 121.9h-2.5c-4.1-.1-10.3-.8-16.4-3.3-5.9-2.4-10.2-5.8-13-10.3-5.6-9.1-4.6-21.6-3.7-32.7.2-2.8.4-5.4.5-7.9.2-5.2-.2-10.6-.7-15.7-.8-9.4-1.6-19.1 1.5-28.5 2.4-7 6.7-12 13.2-15.2 5.1-2.5 11.4-3.9 20.4-4.6C76 3.6 89.3 5.5 96 18.8c4.4 10.7 4.4 22.2 4.5 33.3 0 4.2 0 8.5.3 12.7.1 1.3.2 2.6.2 3.9.8 12.2 1.7 26-3.9 37.2-2.8 5.7-7.7 9.9-14.4 12.6-5.4 2.2-12.2 3.4-19.4 3.4M62.8 4.3c-14.1 1.1-27.9 4.2-33 19.4-3.1 9.3-2.3 18.9-1.5 28.2.4 5.2.9 10.5.7 15.8-.1 2.5-.3 5.1-.5 7.9-.9 11-1.9 23.4 3.6 32.3 2.3 3.7 9.7 12.5 28.8 13.2h2.5c22.1 0 30.3-9.8 33.3-15.6 5.5-11 4.6-24.8 3.9-36.9-.1-1.3-.2-2.6-.2-3.9-.2-4.2-.3-8.5-.3-12.7-.1-11-.1-22.5-4.4-33.1C92.7 13 88.2 9 82 6.7c-6.4-2.1-13.6-2.4-19.2-2.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M65.2 22.2c2.4 14.2 25.6 10.4 22.3-3.9-3-12.8-23.1-9.2-22.3 3.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M76.2 31.5c-4.5 0-10.2-2.4-11.4-9.2-.2-3.2.8-6.1 2.9-8.3 2.3-2.5 5.8-3.9 9.4-3.9 4.2 0 9.2 2.2 10.6 8.3.8 3.4.2 6.4-1.7 8.8-2.1 2.6-5.8 4.3-9.8 4.3m-10.7-9.3q.75 4.2 3.9 6.6c1.8 1.4 4.3 2.1 6.8 2.1 3.7 0 7.3-1.6 9.3-4.1 1.8-2.2 2.3-5.1 1.6-8.3-1.3-5.7-6-7.7-10-7.7-3.4 0-6.7 1.4-8.9 3.7-1.9 2-2.9 4.7-2.7 7.7",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M37.5 24.5c3.2 12.3 22.9 9.2 22.2-3.2-.9-14.8-25.3-12-22.2 3.2",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M48 32.7c-4.3 0-9.3-2.1-10.9-8.1-.7-3.5 0-6.7 2-9.1 2.2-2.7 5.8-4.3 9.7-4.3 5.2 0 10.7 3.1 11.1 10.1.2 2.9-.7 5.5-2.7 7.6-2.1 2.3-5.6 3.8-9.2 3.8m.8-20.8c-3.7 0-7.1 1.5-9.2 4-1.9 2.3-2.5 5.2-1.8 8.5C39.2 30 44 32 48 32c3.4 0 6.7-1.3 8.8-3.6 1.8-1.9 2.7-4.4 2.5-7.1-.2-4.3-3.1-9.4-10.5-9.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M68 39.2c0 1.8.4 3.9.1 5.9-.5.9-1.4 1-2.2 1.3-1.1-.2-2-.9-2.5-1.9-.3-2.2.1-4.4.2-6.6z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M65.9 46.8c-1.3-.2-2.3-1-2.8-2.1-.2-1.6-.1-3.1 0-4.6.1-.7.1-1.4.1-2.1v-.4l5.1 1.6v.2c0 .6.1 1.2.1 1.9.1 1.3.2 2.7 0 4v.1c-.4.8-1.1 1-1.8 1.3-.2-.1-.4 0-.7.1m-2.2-2.4c.4.9 1.2 1.5 2.1 1.7.2-.1.4-.1.5-.2.6-.2 1.1-.4 1.4-.9.2-1.2.1-2.5 0-3.8 0-.6-.1-1.2-.1-1.7l-3.8-1.2c0 .6-.1 1.2-.1 1.7-.1 1.6-.2 3 0 4.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fillRule:"evenodd",d:"M46.3 22.5c0 2-1.5 3.6-3.3 3.6s-3.3-1.6-3.3-3.6 1.5-3.6 3.3-3.6 3.3 1.6 3.3 3.6",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M45.2 23.3c0 .5-.4.9-.8.9s-.8-.4-.8-.9.4-.9.8-.9c.5 0 .8.4.8.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fillRule:"evenodd",d:"M74.2 21.6c0 2-1.5 3.6-3.3 3.6s-3.3-1.6-3.3-3.6 1.5-3.6 3.3-3.6 3.3 1.6 3.3 3.6",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M73.2 22.4c0 .5-.3.9-.8.9-.4 0-.8-.4-.8-.9s.3-.9.8-.9c.4 0 .8.4.8.9M58.4 39c-1.5 3.5.8 10.6 4.8 5.4-.3-2.2.1-4.4.2-6.6z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M60.5 46.6c-.7 0-1.4-.4-1.9-1.2-1.1-1.6-1.3-4.6-.5-6.5l.1-.2 5.5-1.4v.4l-.1 2.2c-.1 1.5-.2 2.9 0 4.4v.1l-.1.1q-1.5 2.1-3 2.1m-1.8-7.3c-.6 1.7-.4 4.4.5 5.7.4.6.8.9 1.3.9.7 0 1.5-.6 2.3-1.6-.2-1.5-.1-3 .1-4.4l.1-1.7z",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M58.9 32.2c-2.7.2-4.9 3.5-3.5 6 1.9 3.4 6-.3 8.6 0 3 .1 5.4 3.2 7.8.6 2.7-2.9-1.2-5.7-4.1-7z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#231F20",d:"M69.7 40.2c-.9 0-1.8-.4-2.7-.8s-1.9-.8-3-.8h-.3c-.8 0-1.7.3-2.7.7-1.1.4-2.2.7-3.2.7-1.2 0-2.1-.5-2.7-1.6-.7-1.2-.6-2.6.1-3.9.8-1.5 2.2-2.4 3.7-2.6l8.9-.4h.1c2.2.9 4.7 2.6 5.2 4.6.2 1-.1 2-.9 2.9s-1.6 1.2-2.5 1.2M64.1 38c1.1 0 2.2.5 3.2.9.9.4 1.7.7 2.5.7.7 0 1.3-.3 1.9-.9.7-.7.9-1.5.8-2.3-.4-1.7-2.8-3.3-4.7-4.1l-8.7.4c-1.3.1-2.5 1-3.2 2.2-.6 1.1-.6 2.3-.1 3.3.5.9 1.1 1.3 2.1 1.3.9 0 1.9-.4 2.9-.7 1.1-.4 2-.7 3-.7 0-.2.1-.2.3-.1",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fillRule:"evenodd",d:"M58.6 32.1c-.2-4.7 8.8-5.3 9.8-1.4 1.1 4-9.4 4.9-9.8 1.4",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"})]}),Ott=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsxs("linearGradient",{id:"Grafana_svg__a",x1:45.842,x2:45.842,y1:89.57,y2:8.802,gradientTransform:"translate(-.23 28.462)scale(1.4011)",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{offset:0,stopColor:"#fcee1f"}),y.jsx("stop",{offset:1,stopColor:"#f15b2a"})]}),y.jsx("path",{fill:"url(#Grafana_svg__a)",d:"M120.8 56.9q-.3-3.15-1.2-7.2c-.9-4.05-1.8-5.5-3.2-8.6-1.5-3-3.4-6.2-5.9-9.1-1-1.2-2.1-2.3-3.2-3.5 1.8-6.9-2.1-13-2.1-13-6.7-.4-10.9 2.1-12.4 3.2-.2-.1-.6-.2-.8-.3-1.1-.4-2.3-.9-3.5-1.3-1.2-.3-2.4-.8-3.6-1-1.2-.3-2.5-.6-3.9-.8-.2 0-.4-.1-.7-.1C77.5 6 69.1 2 69.1 2c-9.6 6.2-11.4 14.4-11.4 14.4s0 .2-.1.4c-.6.1-1 .3-1.5.4-.7.2-1.4.4-2.1.8l-2.1.9c-1.4.7-2.8 1.3-4.2 2.1-1.3.8-2.6 1.5-3.9 2.4-.2-.1-.3-.2-.3-.2-12.9-5-24.3 1-24.3 1-1 13.8 5.2 22.3 6.4 23.9-.3.9-.6 1.7-.9 2.5q-1.5 4.65-2.1 9.6c-.1.4-.1 1-.2 1.4C10.5 67.5 7 79.6 7 79.6 16.9 91 28.5 91.7 28.5 91.7c1.4 2.6 3.2 5.2 5.1 7.5.8 1 1.7 1.9 2.5 2.9-3.6 10.3.6 19 .6 19 11.1.4 18.4-4.8 19.9-6.1 1.1.3 2.2.7 3.3 1 3.4.9 6.9 1.4 10.3 1.5h4.5c5.2 7.5 14.4 8.5 14.4 8.5 6.5-6.9 6.9-13.6 6.9-15.2v-.6c1.3-1 2.6-2 4-3.1 2.6-2.3 4.8-5.1 6.8-7.9.2-.2.3-.6.6-.8 7.4.4 12.5-4.6 12.5-4.6-1.2-7.7-5.6-11.4-6.5-12.1l-.1-.1-.1-.1-.1-.1c0-.4.1-.9.1-1.4.1-.9.1-1.7.1-2.5v-3.3c0-.2 0-.4-.1-.7l-.1-.7-.1-.7c-.1-.9-.3-1.7-.4-2.5-.8-3.3-2.1-6.5-3.7-9.2-1.8-2.9-3.9-5.3-6.3-7.5-2.4-2.1-5.1-3.9-7.9-5.1-2.9-1.3-5.7-2.1-8.7-2.4-1.4-.2-3-.2-4.4-.2h-2.3c-.8.1-1.5.2-2.2.3-3 .6-5.7 1.7-8.1 3.1s-4.5 3.3-6.3 5.4-3.1 4.3-4 6.7c-.9 2.3-1.4 4.8-1.5 7.2v2.6c0 .3 0 .6.1.9.1 1.2.3 2.3.7 3.4.7 2.2 1.7 4.2 3 5.9s2.8 3.1 4.4 4.2c1.7 1.1 3.3 1.9 5.1 2.4s3.4.8 5 .7h2.3c.2 0 .4-.1.6-.1s.3-.1.6-.1c.3-.1.8-.2 1.1-.3.7-.2 1.3-.6 2-.8.7-.3 1.2-.7 1.7-1 .1-.1.3-.2.4-.3.6-.4.7-1.2.2-1.8-.4-.4-1.1-.6-1.7-.3-.1.1-.2.1-.4.2-.4.2-1 .4-1.4.6-.6.1-1.1.3-1.7.4-.3 0-.6.1-.9.1h-1.8s-.1 0 0 0h-.7c-.1 0-.3 0-.4-.1-1.2-.2-2.5-.6-3.7-1.1-1.2-.6-2.4-1.3-3.4-2.3-1.1-1-2-2.1-2.8-3.4s-1.2-2.8-1.4-4.2c-.1-.8-.2-1.5-.1-2.3v-.7c0 .1 0 0 0 0V70c0-.4.1-.8.2-1.2.6-3.3 2.2-6.5 4.7-8.9.7-.7 1.3-1.2 2.1-1.7.8-.6 1.5-1 2.3-1.3s1.7-.7 2.5-.9c.9-.2 1.8-.4 2.6-.4.4 0 .9-.1 1.3-.1h.8c.1 0 0 0 0 0h.4c1 .1 2 .2 2.9.4 1.9.4 3.7 1.1 5.5 2.1 3.5 2 6.5 5 8.3 8.6.9 1.8 1.5 3.7 1.9 5.8.1.6.1 1 .2 1.5v2.7c0 .6-.1 1.1-.1 1.7-.1.6-.1 1.1-.2 1.7s-.2 1.1-.3 1.7c-.2 1.1-.7 2.1-1 3.2-.8 2.1-1.9 4.1-3.2 5.8-2.6 3.6-6.3 6.6-10.3 8.5-2.1.9-4.2 1.7-6.4 2q-1.65.3-3.3.3h-1.6c.1 0 0 0 0 0h-.1c-.6 0-1.2 0-1.8-.1-2.4-.2-4.7-.7-7-1.3-2.3-.7-4.5-1.5-6.6-2.6-4.2-2.2-7.9-5.4-10.9-9-1.4-1.9-2.8-3.9-3.9-5.9s-1.9-4.3-2.5-6.5c-.7-2.2-1-4.5-1.1-6.8v-3.5c0-1.1.1-2.3.3-3.5.1-1.2.3-2.3.6-3.5.2-1.2.6-2.3.9-3.5.7-2.3 1.4-4.5 2.4-6.6 2-4.2 4.5-7.9 7.5-10.9.8-.8 1.5-1.4 2.4-2.1.3-.3 1.1-1 2-1.5s1.8-1.1 2.8-1.5c.4-.2.9-.4 1.4-.7.2-.1.4-.2.8-.3.2-.1.4-.2.8-.3 1-.4 2-.8 3-1.1.2-.1.6-.1.8-.2s.6-.1.8-.2c.6-.1 1-.2 1.5-.4.2-.1.6-.1.8-.2.2 0 .6-.1.8-.1s.6-.1.8-.1l.4-.1.4-.1c.2 0 .6-.1.8-.1.3 0 .6-.1.9-.1.2 0 .7-.1.9-.1s.3 0 .6-.1h.7c.3 0 .6 0 .9-.1h.4s.1 0 0 0h4.1c2 .1 4 .3 5.8.7 3.7.7 7.4 1.9 10.6 3.5 3.2 1.5 6.2 3.5 8.6 5.6.1.1.3.2.4.4.1.1.3.2.4.4.3.2.6.6.9.8s.6.6.9.8c.2.3.6.6.8.9 1.1 1.1 2.1 2.3 3 3.4 1.8 2.3 3.2 4.6 4.3 6.8.1.1.1.2.2.4.1.1.1.2.2.4s.2.6.4.8c.1.2.2.6.3.8s.2.6.3.8c.4 1 .8 2 1.1 3 .6 1.5.9 2.9 1.2 4 .1.4.6.8 1 .8.6 0 .9-.4.9-1-.3-1.7-.3-3.1-.4-4.8"})]}),Itt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#0074BD",d:"M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969m-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336"}),y.jsx("path",{fill:"#EA2D2E",d:"M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187"}),y.jsx("path",{fill:"#0074BD",d:"M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468M49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643m40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617"}),y.jsx("path",{fill:"#EA2D2E",d:"M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587"}),y.jsx("path",{fill:"#0074BD",d:"M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331"})]}),ztt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#486bb3",children:[y.jsx("path",{d:"M56.484 55.098c.37.27.82.43 1.31.43 1.2 0 2.18-.95 2.23-2.13l.05-.03.75-13.26c-.9.11-1.8.26-2.7.46-4.93 1.12-9.2 3.55-12.54 6.83l10.87 7.71zm-1.45 19.43a2.22 2.22 0 0 0-2.58-1.69l-.02-.03-13.05 2.21a26.15 26.15 0 0 0 10.51 13.15l5.06-12.22-.04-.05c.17-.42.23-.89.12-1.37m-4.34-9.41c.44-.12.85-.38 1.16-.76.75-.94.62-2.29-.28-3.07l.01-.05-9.93-8.88a26.07 26.07 0 0 0-3.7 16.48l12.73-3.67zm9.64 3.9 3.66 1.76 3.66-1.75.9-3.95-2.53-3.16h-4.06l-2.54 3.16zm7.6-15.67c.02.46.18.91.49 1.29.75.94 2.1 1.11 3.06.41l.04.02 10.8-7.66c-4.08-3.99-9.4-6.6-15.15-7.3l.75 13.24zm7.58 19.43c-.17-.03-.34-.05-.51-.04-.29.01-.58.09-.85.22a2.23 2.23 0 0 0-1.08 2.89l-.02.02 5.11 12.34c4.93-3.14 8.61-7.83 10.54-13.24l-13.16-2.23zm-9.56 6.54a2.25 2.25 0 0 0-2.04-1.17c-.77.03-1.5.46-1.89 1.18h-.01l-6.42 11.6a26.16 26.16 0 0 0 14.27.73c.88-.2 1.74-.44 2.57-.72l-6.43-11.63h-.05z"}),y.jsx("path",{d:"m124.544 76.788-10.44-45.33a8.01 8.01 0 0 0-4.37-5.43l-42.24-20.18a8.16 8.16 0 0 0-3.92-.78 8.2 8.2 0 0 0-3.1.78l-42.24 20.18a8.06 8.06 0 0 0-4.37 5.43l-10.41 45.34a7.92 7.92 0 0 0 1.1 6.14c.14.22.3.43.46.64l29.24 36.35a8.09 8.09 0 0 0 6.32 3.01l46.89-.01c2.46 0 4.78-1.11 6.32-3.01l29.23-36.36a7.98 7.98 0 0 0 1.53-6.77m-16.07-.55c-.31 1.35-1.76 2.17-3.26 1.85-.01 0-.03 0-.04-.01-.02 0-.03-.01-.05-.02-.21-.05-.47-.09-.65-.14-.86-.23-1.49-.58-2.27-.88-1.67-.6-3.06-1.1-4.41-1.3-.69-.05-1.04.27-1.42.52-.18-.04-.75-.14-1.08-.19-2.42 7.61-7.58 14.21-14.57 18.33.12.29.33.91.42 1.02-.16.43-.4.83-.19 1.49.49 1.27 1.28 2.52 2.24 4.01.46.69.94 1.22 1.36 2.02.1.19.23.48.33.68.65 1.39.17 2.99-1.08 3.59-1.26.61-2.82-.03-3.5-1.43-.1-.2-.23-.46-.31-.65-.36-.82-.48-1.52-.73-2.32-.57-1.68-1.05-3.07-1.73-4.25-.39-.57-.86-.64-1.29-.78-.08-.14-.38-.69-.54-.97-1.4.53-2.84.97-4.34 1.31-6.56 1.49-13.13.89-18.99-1.37l-.57 1.04c-.43.11-.84.23-1.09.53-.92 1.1-1.29 2.86-1.96 4.54-.25.79-.37 1.5-.73 2.32-.08.19-.22.45-.31.64v.01l-.01.01c-.67 1.39-2.23 2.03-3.49 1.43-1.25-.6-1.72-2.2-1.08-3.59.1-.2.22-.49.32-.68.42-.79.89-1.33 1.36-2.02.96-1.5 1.8-2.84 2.29-4.11.12-.42-.06-1-.22-1.43l.46-1.1c-6.73-3.99-12.04-10.34-14.58-18.21l-1.1.19c-.3-.17-.89-.56-1.45-.51-1.35.2-2.74.7-4.41 1.3-.78.3-1.4.64-2.27.87-.18.05-.44.1-.65.15-.02 0-.03.01-.05.02-.01 0-.03 0-.04.01-1.5.32-2.95-.5-3.26-1.85s.65-2.72 2.14-3.08c.01 0 .03-.01.04-.01s.01 0 .02-.01c.21-.05.48-.12.68-.16.88-.17 1.6-.13 2.43-.19 1.77-.19 3.23-.34 4.53-.75.41-.17.81-.74 1.09-1.1l1.06-.31c-1.19-8.22.82-16.28 5.16-22.81l-.81-.72c-.05-.32-.12-1.04-.51-1.46-.99-.93-2.25-1.71-3.76-2.64-.72-.42-1.38-.69-2.1-1.23-.15-.11-.36-.29-.52-.42-.01-.01-.03-.02-.04-.03-1.21-.97-1.49-2.64-.62-3.73.49-.61 1.24-.92 2.01-.89.6.02 1.23.24 1.76.66.17.14.41.32.56.45.68.58 1.09 1.16 1.66 1.77 1.25 1.27 2.28 2.32 3.41 3.08.59.35 1.05.21 1.5.15.15.11.63.46.91.65 4.3-4.57 9.96-7.95 16.52-9.44 1.53-.35 3.05-.58 4.57-.7l.06-1.07c.34-.33.71-.79.82-1.31.11-1.36-.07-2.82-.28-4.59-.12-.82-.31-1.51-.35-2.4-.01-.18 0-.44.01-.65 0-.02-.01-.05-.01-.07 0-1.55 1.13-2.81 2.53-2.81s2.53 1.26 2.53 2.81c0 .22.01.52.01.72-.03.89-.23 1.58-.35 2.4-.21 1.76-.4 3.23-.29 4.59.1.68.5.95.83 1.26.01.18.04.79.06 1.13 8.04.71 15.5 4.39 20.99 10.14l.96-.69c.33.02 1.04.12 1.53-.17 1.13-.76 2.16-1.82 3.41-3.08.57-.61.99-1.18 1.67-1.77.15-.13.39-.31.56-.45 1.21-.97 2.9-.86 3.77.23s.59 2.76-.62 3.73c-.17.14-.39.33-.56.45-.72.53-1.38.8-2.1 1.23-1.51.93-2.77 1.71-3.76 2.64-.47.5-.43.98-.48 1.43-.14.13-.63.57-.9.8a32.8 32.8 0 0 1 4.74 10.95c.92 3.99 1.06 7.97.53 11.8l1.02.3c.18.26.56.89 1.09 1.1 1.3.41 2.76.56 4.53.75.83.07 1.55.03 2.43.19.21.04.52.12.73.17 1.5.37 2.45 1.74 2.14 3.09"}),y.jsx("path",{d:"m86.274 52.358-9.88 8.84.01.03c-.34.3-.6.7-.71 1.18-.27 1.17.44 2.33 1.58 2.65l.01.05 12.79 3.68c.27-2.76.11-5.62-.55-8.48-.66-2.89-1.77-5.56-3.25-7.95"})]})}),Ltt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#090",d:"M24.5 50.5c-1.5 0-2.5 1.2-2.5 2.7v14.1l-15.9-16c-.8-.8-2.2-1-3.2-.6S1 52.1 1 53.2v20.7c0 1.5 1.5 2.7 3 2.7s3-1.2 3-2.7V59.8l16.1 16c.5.5 1.2.8 1.9.8.3 0 .4-.1.7-.2 1-.4 1.3-1.4 1.3-2.5V53.3c0-1.5-1-2.8-2.5-2.8m19.7 11.8c-1.4 0-2.7 1.4-2.7 2.8s1.3 2.8 2.7 2.8l6.6.4-1.5 3.7h-8.5l-4.2-7.9 4.3-8.1H50l2.1 4h5.5L54 52.1l-.8-1.1H37.6l-.7 1.2L31 62.5l-.7 1.3.7 1.3 5.8 10.3.8 1.6h15.1l.7-1.7 4.3-9 1.9-4.3h-4.4zM65 50.5c-1.4 0-3 1.3-3 2.7V60h6v-6.7c0-1.5-1.6-2.8-3-2.8m30.4.3c-1-.4-2.4-.2-3.1.6L76 67.4V53.3c0-1.5-1-2.7-2.5-2.7S71 51.8 71 53.3V74c0 1.1.7 2.1 1.7 2.5.3.1.7.2 1 .2.7 0 1.6-.3 2.1-.8l16.2-16V74c0 1.5 1 2.7 2.5 2.7S97 75.5 97 74V53.3c0-1.1-.6-2.1-1.6-2.5m21.8 12.8 8.4-8.4c1.1-1.1 1.1-2.8 0-3.8-1.1-1.1-2.8-1.1-3.8 0l-8.4 8.4-8.4-8.4c-1.1-1.1-2.8-1.1-3.8 0-1.1 1.1-1.1 2.8 0 3.8l8.4 8.4-8.4 8.4c-1.1 1.1-1.1 2.8 0 3.8.5.5 1.2.8 1.9.8s1.4-.3 1.9-.8l8.4-8.4 8.4 8.4c.5.5 1.2.8 1.9.8s1.4-.3 1.9-.8c1.1-1.1 1.1-2.8 0-3.8zM62 73.9c0 1.4 1.5 2.7 3 2.7 1.4 0 3-1.3 3-2.7V62h-6z"})}),Btt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{d:"M93.809 92.112c.785-6.533.55-7.492 5.416-6.433l1.235.108c3.742.17 8.637-.602 11.513-1.938 6.191-2.873 9.861-7.668 3.758-6.409-13.924 2.873-14.881-1.842-14.881-1.842 14.703-21.815 20.849-49.508 15.543-56.287-14.47-18.489-39.517-9.746-39.936-9.52l-.134.025c-2.751-.571-5.83-.912-9.289-.968-6.301-.104-11.082 1.652-14.709 4.402 0 0-44.683-18.409-42.604 23.151.442 8.841 12.672 66.898 27.26 49.362 5.332-6.412 10.484-11.834 10.484-11.834 2.558 1.699 5.622 2.567 8.834 2.255l.249-.212c-.078.796-.044 1.575.099 2.497-3.757 4.199-2.653 4.936-10.166 6.482-7.602 1.566-3.136 4.355-.221 5.084 3.535.884 11.712 2.136 17.238-5.598l-.22.882c1.474 1.18 1.375 8.477 1.583 13.69.209 5.214.558 10.079 1.621 12.948s2.317 10.256 12.191 8.14c8.252-1.764 14.561-4.309 15.136-27.985"}),y.jsx("path",{d:"M75.458 125.256c-4.367 0-7.211-1.689-8.938-3.32-2.607-2.46-3.641-5.629-4.259-7.522l-.267-.79c-1.244-3.358-1.666-8.193-1.916-14.419-.038-.935-.064-1.898-.093-2.919-.021-.747-.047-1.684-.085-2.664a18.8 18.8 0 0 1-4.962 1.568c-3.079.526-6.389.356-9.84-.507-2.435-.609-4.965-1.871-6.407-3.82-4.203 3.681-8.212 3.182-10.396 2.453-3.853-1.285-7.301-4.896-10.542-11.037-2.309-4.375-4.542-10.075-6.638-16.943-3.65-11.96-5.969-24.557-6.175-28.693C4.292 23.698 7.777 14.44 15.296 9.129 27.157.751 45.128 5.678 51.68 7.915c4.402-2.653 9.581-3.944 15.433-3.851 3.143.051 6.136.327 8.916.823 2.9-.912 8.628-2.221 15.185-2.139 12.081.144 22.092 4.852 28.949 13.615 4.894 6.252 2.474 19.381.597 26.651-2.642 10.226-7.271 21.102-12.957 30.57 1.544.011 3.781-.174 6.961-.831 6.274-1.295 8.109 2.069 8.607 3.575 1.995 6.042-6.677 10.608-9.382 11.864-3.466 1.609-9.117 2.589-13.745 2.377l-.202-.013-1.216-.107-.12 1.014-.116.991c-.311 11.999-2.025 19.598-5.552 24.619-3.697 5.264-8.835 6.739-13.361 7.709-1.544.33-2.947.474-4.219.474m-9.19-43.671c2.819 2.256 3.066 6.501 3.287 14.434.028.99.054 1.927.089 2.802.106 2.65.355 8.855 1.327 11.477.137.371.26.747.39 1.146 1.083 3.316 1.626 4.979 6.309 3.978 3.931-.843 5.952-1.599 7.534-3.851 2.299-3.274 3.585-9.86 3.821-19.575l4.783.116-4.75-.57.14-1.186c.455-3.91.783-6.734 3.396-8.602 2.097-1.498 4.486-1.353 6.389-1.01-2.091-1.58-2.669-3.433-2.823-4.193l-.399-1.965 1.121-1.663c6.457-9.58 11.781-21.354 14.609-32.304 2.906-11.251 2.02-17.226 1.134-18.356-11.729-14.987-32.068-8.799-34.192-8.097l-.359.194-1.8.335-.922-.191c-2.542-.528-5.366-.82-8.393-.869-4.756-.08-8.593 1.044-11.739 3.431l-2.183 1.655-2.533-1.043c-5.412-2.213-21.308-6.662-29.696-.721-4.656 3.298-6.777 9.76-6.305 19.207.156 3.119 2.275 14.926 5.771 26.377 4.831 15.825 9.221 21.082 11.054 21.693.32.108 1.15-.537 1.976-1.529a271 271 0 0 1 10.694-12.07l2.77-2.915 3.349 2.225c1.35.897 2.839 1.406 4.368 1.502l7.987-6.812-1.157 11.808c-.026.265-.039.626.065 1.296l.348 2.238-1.51 1.688-.174.196 4.388 2.025z"}),y.jsx("path",{fill:"#336791",d:"M115.731 77.44c-13.925 2.873-14.882-1.842-14.882-1.842 14.703-21.816 20.849-49.51 15.545-56.287C101.924.823 76.875 9.566 76.457 9.793l-.135.024c-2.751-.571-5.83-.911-9.291-.967-6.301-.103-11.08 1.652-14.707 4.402 0 0-44.684-18.408-42.606 23.151.442 8.842 12.672 66.899 27.26 49.363 5.332-6.412 10.483-11.834 10.483-11.834 2.559 1.699 5.622 2.567 8.833 2.255l.25-.212c-.078.796-.042 1.575.1 2.497-3.758 4.199-2.654 4.936-10.167 6.482-7.602 1.566-3.136 4.355-.22 5.084 3.534.884 11.712 2.136 17.237-5.598l-.221.882c1.473 1.18 2.507 7.672 2.334 13.557s-.29 9.926.871 13.082c1.16 3.156 2.316 10.256 12.192 8.14 8.252-1.768 12.528-6.351 13.124-13.995.422-5.435 1.377-4.631 1.438-9.49l.767-2.3c.884-7.367.14-9.743 5.225-8.638l1.235.108c3.742.17 8.639-.602 11.514-1.938 6.19-2.871 9.861-7.667 3.758-6.408"}),y.jsx("path",{fill:"#fff",d:"M75.957 122.307c-8.232 0-10.84-6.519-11.907-9.185-1.562-3.907-1.899-19.069-1.551-31.503a1.59 1.59 0 0 1 1.64-1.55 1.594 1.594 0 0 1 1.55 1.639c-.401 14.341.168 27.337 1.324 30.229 1.804 4.509 4.54 8.453 12.275 6.796 7.343-1.575 10.093-4.359 11.318-11.46.94-5.449 2.799-20.951 3.028-24.01a1.593 1.593 0 0 1 1.71-1.472 1.597 1.597 0 0 1 1.472 1.71c-.239 3.185-2.089 18.657-3.065 24.315-1.446 8.387-5.185 12.191-13.794 14.037-1.463.313-2.792.453-4 .454M31.321 90.466a6.7 6.7 0 0 1-2.116-.35c-5.347-1.784-10.44-10.492-15.138-25.885-3.576-11.717-5.842-23.947-6.041-27.922-.589-11.784 2.445-20.121 9.02-24.778 13.007-9.216 34.888-.44 35.813-.062a1.596 1.596 0 0 1-1.207 2.955c-.211-.086-21.193-8.492-32.768-.285-5.622 3.986-8.203 11.392-7.672 22.011.167 3.349 2.284 15.285 5.906 27.149 4.194 13.742 8.967 22.413 13.096 23.79.648.216 2.62.873 5.439-2.517A245 245 0 0 1 45.88 73.046a1.596 1.596 0 0 1 2.304 2.208c-.048.05-4.847 5.067-10.077 11.359-2.477 2.979-4.851 3.853-6.786 3.853m69.429-13.445a1.596 1.596 0 0 1-1.322-2.487c14.863-22.055 20.08-48.704 15.612-54.414-5.624-7.186-13.565-10.939-23.604-11.156-7.433-.16-13.341 1.738-14.307 2.069l-.243.099c-.971.305-1.716-.227-1.997-.849a1.6 1.6 0 0 1 .631-2.025c.046-.027.192-.089.429-.176l-.021.006.021-.007c1.641-.601 7.639-2.4 15.068-2.315 11.108.118 20.284 4.401 26.534 12.388 2.957 3.779 2.964 12.485.019 23.887-3.002 11.625-8.651 24.118-15.497 34.277-.306.457-.81.703-1.323.703m.76 10.21c-2.538 0-4.813-.358-6.175-1.174-1.4-.839-1.667-1.979-1.702-2.584-.382-6.71 3.32-7.878 5.208-8.411-.263-.398-.637-.866-1.024-1.349-1.101-1.376-2.609-3.26-3.771-6.078-.182-.44-.752-1.463-1.412-2.648-3.579-6.418-11.026-19.773-6.242-26.612 2.214-3.165 6.623-4.411 13.119-3.716C97.6 28.837 88.5 10.625 66.907 10.271c-6.494-.108-11.82 1.889-15.822 5.93-8.96 9.049-8.636 25.422-8.631 25.586a1.595 1.595 0 1 1-3.19.084c-.02-.727-.354-17.909 9.554-27.916C53.455 9.272 59.559 6.96 66.96 7.081c13.814.227 22.706 7.25 27.732 13.101 5.479 6.377 8.165 13.411 8.386 15.759.165 1.746-1.088 2.095-1.341 2.147l-.576.013c-6.375-1.021-10.465-.312-12.156 2.104-3.639 5.201 3.406 17.834 6.414 23.229.768 1.376 1.322 2.371 1.576 2.985.988 2.396 2.277 4.006 3.312 5.3.911 1.138 1.7 2.125 1.982 3.283.131.23 1.99 2.98 13.021.703 2.765-.57 4.423-.083 4.93 1.45.997 3.015-4.597 6.532-7.694 7.97-2.775 1.29-7.204 2.106-11.036 2.106m-4.696-4.021c.35.353 2.101.962 5.727.806 3.224-.138 6.624-.839 8.664-1.786 2.609-1.212 4.351-2.567 5.253-3.492l-.5.092c-7.053 1.456-12.042 1.262-14.828-.577a6 6 0 0 1-.54-.401c-.302.119-.581.197-.78.253-1.58.443-3.214.902-2.996 5.105m-45.562 8.915c-1.752 0-3.596-.239-5.479-.71-1.951-.488-5.24-1.957-5.19-4.37.057-2.707 3.994-3.519 5.476-3.824 5.354-1.103 5.703-1.545 7.376-3.67.488-.619 1.095-1.39 1.923-2.314 1.229-1.376 2.572-2.073 3.992-2.073.989 0 1.8.335 2.336.558 1.708.708 3.133 2.42 3.719 4.467.529 1.847.276 3.625-.71 5.006-3.237 4.533-7.886 6.93-13.443 6.93m-7.222-4.943c.481.372 1.445.869 2.518 1.137 1.631.408 3.213.615 4.705.615 4.546 0 8.196-1.882 10.847-5.594.553-.774.387-1.757.239-2.274-.31-1.083-1.08-2.068-1.873-2.397-.43-.178-.787-.314-1.115-.314-.176 0-.712 0-1.614 1.009a41 41 0 0 0-1.794 2.162c-2.084 2.646-3.039 3.544-9.239 4.821-1.513.31-2.289.626-2.674.835m12.269-7.36a1.596 1.596 0 0 1-1.575-1.354 8 8 0 0 1-.08-.799c-4.064-.076-7.985-1.82-10.962-4.926-3.764-3.927-5.477-9.368-4.699-14.927.845-6.037.529-11.366.359-14.229-.047-.796-.081-1.371-.079-1.769.003-.505.013-1.844 4.489-4.113 1.592-.807 4.784-2.215 8.271-2.576 5.777-.597 9.585 1.976 10.725 7.246 3.077 14.228.244 20.521-1.825 25.117-.385.856-.749 1.664-1.04 2.447l-.257.69c-1.093 2.931-2.038 5.463-1.748 7.354a1.595 1.595 0 0 1-1.335 1.819zM42.464 42.26l.062 1.139c.176 2.974.504 8.508-.384 14.86-.641 4.585.759 9.06 3.843 12.276 2.437 2.542 5.644 3.945 8.94 3.945h.068c.369-1.555.982-3.197 1.642-4.966l.255-.686c.329-.884.714-1.74 1.122-2.646 1.991-4.424 4.47-9.931 1.615-23.132-.565-2.615-1.936-4.128-4.189-4.627-4.628-1.022-11.525 2.459-12.974 3.837m9.63-.677c-.08.564 1.033 2.07 2.485 2.271 1.449.203 2.689-.975 2.768-1.539s-1.033-1.186-2.485-1.388-2.691.092-2.768.656m2.818 2.826-.407-.028c-.9-.125-1.81-.692-2.433-1.518-.219-.29-.576-.852-.505-1.354.101-.736.999-1.177 2.4-1.177.313 0 .639.023.967.069.766.106 1.477.327 2.002.62.91.508.977 1.075.936 1.368-.112.813-1.405 2.02-2.96 2.02m-2.289-2.732c.045.348.907 1.496 2.029 1.651l.261.018c1.036 0 1.81-.815 1.901-1.082-.096-.182-.762-.634-2.025-.81a6 6 0 0 0-.821-.059c-.812 0-1.243.183-1.345.282m43.605-1.245c.079.564-1.033 2.07-2.484 2.272-1.45.202-2.691-.975-2.771-1.539-.076-.564 1.036-1.187 2.486-1.388 1.45-.203 2.689.092 2.769.655m-2.819 2.56c-1.396 0-2.601-1.086-2.7-1.791-.115-.846 1.278-1.489 2.712-1.688.316-.044.629-.066.93-.066 1.238 0 2.058.363 2.14.949.053.379-.238.964-.739 1.492-.331.347-1.026.948-1.973 1.079zm.943-3.013q-.416 0-.856.061c-1.441.201-2.301.779-2.259 1.089.048.341.968 1.332 2.173 1.332l.297-.021c.787-.109 1.378-.623 1.66-.919.443-.465.619-.903.598-1.052-.028-.198-.56-.49-1.613-.49m3.965 32.843a1.594 1.594 0 0 1-1.324-2.483c3.398-5.075 2.776-10.25 2.175-15.255-.257-2.132-.521-4.337-.453-6.453.07-2.177.347-3.973.614-5.71.317-2.058.617-4.002.493-6.31a1.595 1.595 0 1 1 3.186-.172c.142 2.638-.197 4.838-.525 6.967-.253 1.643-.515 3.342-.578 5.327-.061 1.874.178 3.864.431 5.97.64 5.322 1.365 11.354-2.691 17.411a1.6 1.6 0 0 1-1.328.708"})]}),jtt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#e75225",d:"M63.66 2.477c33.477.007 60.957 27.296 60.914 60.5-.043 33.703-27.41 60.617-61.613 60.593-33.441-.023-60.477-27.343-60.453-61.086C2.53 29.488 30.066 2.47 63.66 2.477m-18.504 21.25c.766 3.777.024 7.3-1.113 10.765-.785 2.399-1.871 4.711-2.52 7.145-1.07 4.008-2.28 8.039-2.726 12.136-.64 5.895 1.676 11.086 5.64 16.25l-18.222-3.835c.031.574 0 .792.062.976 1.727 5.074 4.766 9.348 8.172 13.379.36.426 1.18.644 1.79.644 18.167.036 36.335.032 54.503.008.563 0 1.317-.105 1.66-.468 3.895-4.094 6.871-8.758 8.735-14.63l-19.29 3.778c1.274-2.496 2.723-4.688 3.56-7.098 2.855-8.242 1.671-16.21-2.427-23.726-3.289-6.031-6.324-12.035-4.683-19.305-3.473 3.434-4.809 7.8-5.656 12.3-.832 4.434-1.325 8.93-1.97 13.43-.093-.136-.21-.238-.23-.355a13 13 0 0 1-.168-1.422c-.394-7.367-1.832-14.465-4.87-21.246-1.786-3.988-3.758-8.07-1.915-12.832-1.246.66-2.375 1.313-3.183 2.246-2.41 2.785-3.407 6.13-3.664 9.793-.22 3.13-.52 6.274-1.102 9.352-.61 3.234-1.574 6.402-3.75 9.375-.875-6.348-.973-12.63-6.633-16.66M92 86.75H35.016v9.898H92zm-45.684 15.016c-.046 8.242 8.348 14.382 18.723 13.937 8.602-.371 16.211-7.137 15.559-13.937zm0 0"})}),Ftt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#61DAFB",children:[y.jsx("circle",{cx:64,cy:64,r:11.4}),y.jsx("path",{d:"M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3C8.2 50 1.4 56.6 1.4 64s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8M92.5 14.7c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9M81.3 74c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4q-3.3-4.8-6-9.6c-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4q3.3 4.8 6 9.6c1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10m8.3-3.3c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2M64 97.8c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2s4.6-.1 6.9-.2c-2.2 2.9-4.5 5.7-6.9 8.3m-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1m-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2M64 30.2c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2s-4.6.1-6.9.2c2.2-2.9 4.5-5.7 6.9-8.3m22.2 21-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2M31.7 35c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6M7 64c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5C15.3 75.6 7 69.6 7 64m28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9M96.3 93c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6m9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4"})]})}),Htt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#A41E11",d:"M121.8 93.1c-6.7 3.5-41.4 17.7-48.8 21.6s-11.5 3.8-17.3 1S13 98.1 6.3 94.9c-3.3-1.6-5-2.9-5-4.2V78s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c0 1.3-1.5 2.7-4.9 4.4"}),y.jsx("path",{fill:"#D82C20",d:"M121.8 80.5C115.1 84 80.4 98.2 73 102.1s-11.5 3.8-17.3 1S13 85.4 6.3 82.2C-.3 79-.5 76.8 6 74.3c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9"}),y.jsx("path",{fill:"#A41E11",d:"M121.8 72.5C115.1 76 80.4 90.2 73 94.1c-7.4 3.8-11.5 3.8-17.3 1S13 77.4 6.3 74.2c-3.3-1.6-5-2.9-5-4.2V57.3s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9V68c0 1.3-1.5 2.7-4.9 4.5"}),y.jsx("path",{fill:"#D82C20",d:"M121.8 59.8c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1S13 64.7 6.3 61.5s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9"}),y.jsx("path",{fill:"#A41E11",d:"M121.8 51c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1C49.9 70.9 13 56 6.3 52.8c-3.3-1.6-5.1-2.9-5.1-4.2V35.9s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c.1 1.3-1.4 2.6-4.8 4.4"}),y.jsx("path",{fill:"#D82C20",d:"M121.8 38.3C115.1 41.8 80.4 56 73 59.9c-7.4 3.8-11.5 3.8-17.3 1S13 43.3 6.3 40.1s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.8"}),y.jsx("path",{fill:"#fff",d:"m80.4 26.1-10.8 1.2-2.5 5.8-3.9-6.5-12.5-1.1 9.3-3.4-2.8-5.2 8.8 3.4 8.2-2.7L72 23zM66.5 54.5l-20.3-8.4 29.1-4.4z"}),y.jsx("ellipse",{cx:38.4,cy:35.4,fill:"#fff",rx:15.5,ry:6}),y.jsx("path",{fill:"#7A0C00",d:"m93.3 27.7 17.2 6.8-17.2 6.8z"}),y.jsx("path",{fill:"#AD2115",d:"m74.3 35.3 19-7.6v13.6l-1.9.8z"})]}),qtt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#e15919",d:"M57.646.004c-2.269.064-4.51 1.143-6.384 3.223-1.03 1.146-1.905 2.51-2.63 3.855-1.89 3.54-2.262 7.547-2.962 11.43l-3.852 21.81c-.148.856-.532 1.21-1.3 1.455l-28.268 8.98c-2.06.673-4.125 1.543-5.947 2.7-5.558 3.53-6.38 9.338-2.207 14.438 1.842 2.256 4.216 3.843 6.85 4.996l17.603 7.843c.147.08.304.132.463.162l3.717 2.682s-3.7 40.948 3.246 43.781c-.061-.01-.41-.082-.41-.082s.704.761 2.603.537c1.454.27 1.262.226.074-.01 2.583-.334 7.337-2.497 15.578-10.784a47 47 0 0 0 1.776-1.676l17.8-19.217 4.163 1.465c.15.207.367.34.714.443l19.823 6.031c2.709.836 5.389 1.448 8.277 1.026 5.156-.755 8.951-5 8.9-10.192-.02-2.28-.82-4.339-1.87-6.324l-13.128-24.898c-.418-.787-.405-1.296.196-2l22.054-25.922c1.428-1.703 2.717-3.529 3.465-5.645 1.643-4.67-.482-8.382-5.33-9.289-2.229-.398-4.427-.188-6.6.385l-31.597 8.395c-.93.25-1.39.075-1.895-.772l-12.9-21.434c-.975-1.615-2.14-3.194-3.477-4.527C62.212.89 59.915-.059 57.646.004m.944 19.736c.51.358.768.727 1.01 1.125l13.88 23.13c.382.628.725.85 1.485.648l24.443-6.497 5.885-1.54c-.087.493-.302.79-.537 1.068l-20.16 23.672c-.57.688-.623 1.17-.194 1.976l12.743 24.16.585 1.237-.015.02-22.727-6.264-.006-.018-4.298-1.205-25.493 28.256 4.663-37.15-4.184-1.82.008-.007-23.674-9.4c.454-.413.86-.585 1.285-.717l28.777-9.096c.676-.21 1.061-.47 1.125-1.242l.403-2.355 3.875-21.807 1.12-6.174z"})}),Utt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#85ea2d",d:"M63.999 124.945c-33.607 0-60.95-27.34-60.95-60.949C3.05 30.388 30.392 3.048 64 3.048s60.95 27.342 60.95 60.95c0 33.607-27.343 60.946-60.95 60.946z"}),y.jsx("path",{fill:"#173647",d:"M40.3 43.311c-.198 2.19.072 4.454-.073 6.668-.173 2.217-.444 4.407-.888 6.596-.615 3.126-2.56 5.489-5.24 7.458 5.218 3.396 5.807 8.662 6.152 14.003.172 2.88.098 5.785.394 8.638.221 2.215 1.082 2.782 3.372 2.854.935.025 1.894 0 2.978 0v6.842c-6.768 1.156-12.354-.762-13.734-6.496a39.3 39.3 0 0 1-.836-6.4c-.148-2.287.097-4.577-.074-6.864-.492-6.277-1.305-8.393-7.308-8.689v-7.8c.441-.1.86-.174 1.302-.223 3.298-.172 4.701-1.182 5.414-4.43a37.5 37.5 0 0 0 .616-5.536c.247-3.569.148-7.21.763-10.754.86-5.094 4.01-7.556 9.254-7.852 1.476-.074 2.978 0 4.676 0v6.99c-.714.05-1.33.147-1.969.147-4.258-.148-4.48 1.304-4.8 4.848zm8.195 16.193h-.099c-2.462-.123-4.578 1.796-4.702 4.258-.122 2.485 1.797 4.603 4.259 4.724h.295c2.436.148 4.527-1.724 4.676-4.16v-.245c.05-2.486-1.944-4.527-4.43-4.577zm15.43 0c-2.386-.074-4.38 1.796-4.454 4.159 0 .149 0 .271.024.418 0 2.684 1.821 4.406 4.578 4.406 2.707 0 4.406-1.772 4.406-4.553-.025-2.682-1.823-4.455-4.554-4.43m15.801 0a4.596 4.596 0 0 0-4.676 4.454 4.515 4.515 0 0 0 4.528 4.528h.05c2.264.394 4.553-1.796 4.701-4.429.122-2.437-2.092-4.553-4.604-4.553Zm21.682.369c-2.855-.123-4.284-1.083-4.996-3.79a27.4 27.4 0 0 1-.811-5.292c-.198-3.298-.174-6.62-.395-9.918-.516-7.826-6.177-10.557-14.397-9.205v6.792c1.304 0 2.313 0 3.322.025 1.748.024 3.077.69 3.249 2.634.172 1.772.172 3.568.344 5.365.346 3.57.542 7.187 1.157 10.706.542 2.904 2.536 5.07 5.02 6.841-4.355 2.929-5.636 7.113-5.857 11.814-.122 3.223-.196 6.472-.368 9.721-.148 2.953-1.181 3.913-4.16 3.987-.835.024-1.648.098-2.583.148v6.964c1.748 0 3.347.1 4.946 0 4.971-.295 7.974-2.706 8.96-7.531.417-2.658.662-5.34.737-8.023.171-2.46.148-4.946.394-7.382.369-3.815 2.116-5.389 5.93-5.636a5 5 0 0 0 1.06-.245v-7.801c-.64-.074-1.084-.148-1.552-.173zM64 6.1c31.977 0 57.9 25.92 57.9 57.898 0 31.977-25.923 57.899-57.9 57.899-31.976 0-57.898-25.922-57.898-57.9C6.102 32.023 32.024 6.101 64 6.101m0-6.1C28.71 0 0 28.71 0 64c0 35.288 28.71 63.998 64 63.998s64-28.71 64-64S99.289.002 64 .002Z"})]});const Vtt={"tech:elasticsearch":Dtt,"tech:git":Ptt,"tech:github":$tt,"tech:go":Mtt,"tech:grafana":Ott,"tech:java":Itt,"tech:kubernetes":ztt,"tech:nginx":Ltt,"tech:postgresql":Btt,"tech:prometheus":jtt,"tech:react":Ftt,"tech:redis":Htt,"tech:spark":qtt,"tech:swagger":Utt};function Ytt(e){const r=Vtt[e.node.icon??""];return r?y.jsx(r,e):null}function Wtt(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function cre(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return Wtt(e,r,n);throw Error("Wrong number of arguments")}function Gtt(...e){return cre(Xtt,e)}function Xtt(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function ure(...e){return cre(Ky,e)}function Ky(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Ktt(e,r);if(e instanceof Map)return Ztt(e,r);if(e instanceof Set)return Qtt(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!Ky(o,r[n]))return!1;return!0}function Ktt(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!Ky(o,r[n]))return!1;return!0}function Ztt(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!Ky(o,r.get(n)))return!1;return!0}function Qtt(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(Ky(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}let wl=[],Lu=0;const y4=4;let b4=0,dre=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=Lu+y4;i<wl.length;)wl[i]===o?wl.splice(i,y4):i+=y4;let a=r.indexOf(o);~a&&(r.splice(a,1),--n.lc||n.off())}},notify(o,a){b4++;let i=!wl.length;for(let l of r)wl.push(l,n.value,o,a);if(i){for(Lu=0;Lu<wl.length;Lu+=y4)wl[Lu](wl[Lu+1],wl[Lu+2],wl[Lu+3]);wl.length=0}},off(){},set(o){let a=n.value;a!==o&&(n.value=o,n.notify(a))},subscribe(o){let a=n.listen(o);return o(n.value),a},value:e};return n};const Jtt=5,v4=6,x4=10;let ert=(e,r,n,o)=>(e.events=e.events||{},e.events[n+x4]||(e.events[n+x4]=o(a=>{e.events[n].reduceRight((i,l)=>(l(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(r),()=>{let a=e.events[n],i=a.indexOf(r);a.splice(i,1),a.length||(delete e.events[n],e.events[n+x4](),delete e.events[n+x4])}),trt=1e3,rrt=(e,r)=>ert(e,n=>{let o=r(n);o&&e.events[v4].push(o)},Jtt,n=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,n()),o(...i));let a=e.off;return e.events[v4]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[v4])i();e.events[v4]=[]}},trt)},()=>{e.listen=o,e.off=a}}),nrt=(e,r,n)=>{Array.isArray(e)||(e=[e]);let o,a,i=()=>{if(a===b4)return;a=b4;let u=e.map(d=>d.get());if(!o||u.some((d,p)=>d!==o[p])){o=u;let d=r(...u);d&&d.then&&d.t?d.then(p=>{o===u&&l.set(p)}):(l.set(d),a=b4)}},l=dre(void 0),s=l.get;l.get=()=>(i(),s());let c=i;return rrt(l,()=>{let u=e.map(d=>d.listen(c));return i(),()=>{for(let d of u)d()}}),l},pre=(e,r)=>nrt(e,r);function ort(e,r,n){let o=new Set(r).add(void 0);return e.listen((a,i,l)=>{o.has(l)&&n(a,i,l)})}let CR=(e,r)=>n=>{e.current!==n&&(e.current=n,r())};function hre(e,{keys:r,deps:n=[e,r]}={}){let o=S.useRef();o.current=e.get();let a=S.useCallback(l=>(CR(o,l)(e.value),r?.length>0?ort(e,r,CR(o,l)):e.listen(CR(o,l))),n),i=()=>o.current;return S.useSyncExternalStore(a,i,i)}const art=e=>{const r=pre(e,s=>Hd.create(s));function n(s){const c=e.get();if(ure(c,s))return;const u={...s,views:Gtt(s.views,d=>{const p=c.views[d.id];return ure(p,d)?p:d})};e.set(u)}const o=pre(e,s=>Object.values(s.views));function a(){return hre(r)}function i(){return hre(o)}function l(s){const[c,u]=S.useState(e.value?.views[s]??null);return S.useEffect(()=>e.subscribe(d=>{u(d.views[s]??null)}),[s]),c}return{updateModel:n,$likec4model:r,useLikeC4Model:a,useLikeC4Views:i,useLikeC4View:l}},irt=dre({_stage:"layouted",projectId:"architecture",project:{id:"architecture",title:"architecture"},specification:{tags:{internal:{color:"tomato"}},elements:{actor:{style:{shape:"person",color:"green"}},person:{style:{shape:"person",color:"green"}},component:{style:{}},container:{style:{opacity:20}},internalComponent:{style:{color:"muted",opacity:15}},schema:{style:{}},step:{style:{}},system:{style:{}},workflow:{style:{}},tool:{style:{}},process:{style:{}},repository:{style:{shape:"storage"}},myperson:{style:{}},mysystem:{style:{}}},relationships:{},deployments:{cloud:{style:{}},environment:{style:{}},computeressource:{style:{}},paas:{style:{}},kubernetes:{style:{}},cluster:{style:{}},namespace:{style:{}}},customColors:{}},elements:{edfbuilder_workflow:{style:{},title:"EDFbuilder",kind:"workflow",id:"edfbuilder_workflow"},argocdworkflow:{style:{},title:"EDP ArgoCD Setup Workflow",kind:"workflow",id:"argocdworkflow"},edpworkflow:{style:{},title:"EDP Infrastructure Setup Workflow",kind:"workflow",id:"edpworkflow"},applicationspecification:{style:{},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},title:"application-specification",kind:"component",id:"applicationspecification"},forgejoRunner:{style:{},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},title:"Forgejo Runner",kind:"component",id:"forgejoRunner"},forgejoRunnerWorker:{style:{},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},title:"Forgejo Runner Worker",kind:"component",id:"forgejoRunnerWorker"},promtail:{style:{},description:{txt:"Log shipper agent for Loki"},title:"Promtail",kind:"component",id:"promtail"},edfbuilder:{style:{shape:"rectangle",icon:"tech:go"},technology:"Golang",description:{txt:"EDP Foundry Builder"},title:"edfbuilder",kind:"component",id:"edfbuilder"},elasticsearch:{style:{opacity:20,icon:"tech:elasticsearch"},technology:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of
addressing a growing number of use cases. It centrally stores your data so you can
discover the expected and uncover the unexpected.`},title:"Elasticsearch",kind:"container",id:"elasticsearch"},objectstorage:{style:{opacity:20},technology:"S3 Object Storage",description:{txt:"s3 Object Storage"},title:"s3 Object Storage",kind:"container",id:"objectstorage"},postgres:{style:{opacity:20,icon:"tech:postgresql"},technology:"PostgreSQL",description:{txt:`PostgreSQL is a powerful, open source object-relational database system.
It has more than 15 years of active development and a proven architecture
that has earned it a strong reputation for reliability, data integrity,
and correctness.`},title:"PostgreSQL",kind:"container",id:"postgres"},redis:{style:{opacity:20,icon:"tech:redis"},technology:"Redis",description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},title:"Redis",kind:"container",id:"redis"},developer:{style:{shape:"person",color:"green"},description:{txt:"The regular user of the platform"},title:"Developer",kind:"actor",id:"developer"},platformdeveloper:{style:{shape:"person",color:"gray"},description:{txt:"The EDP engineer"},title:"Platform Developer",kind:"actor",id:"platformdeveloper"},otherProductLifecycleRoles:{style:{shape:"person",color:"green"},description:{txt:"Coworking roles in the outer loop"},title:"Reviewer, Tester, Auditors, Operators",kind:"actor",id:"otherProductLifecycleRoles"},customers:{style:{shape:"person",color:"amber"},description:{txt:"Consumers of your Application"},title:"End Customers",kind:"actor",id:"customers"},cloud:{style:{},technology:"IaaS/PaaS",description:{txt:"Cloud environments"},title:"Cloud",kind:"system",id:"cloud"},enterprise:{style:{},description:{txt:"The customers' enterprise systems"},title:"Customers' Enterprise Systems",kind:"system",id:"enterprise"},edf:{style:{icon:"tech:kubernetes"},technology:"Kubernetes",description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},title:"EDF",kind:"system",id:"edf"},edp:{style:{icon:"tech:kubernetes"},technology:"Kubernetes",description:{txt:"EDP Edge Development Platform"},title:"EDP",kind:"system",id:"edp"},localbox:{style:{},technology:"Linux/Windows/Mac",description:{txt:"A local development system"},title:"localbox",kind:"system",id:"localbox"},documentor:{style:{shape:"person",color:"green"},technology:"Hugo, Markdown, LikeC4",description:{txt:"Content creator and maintainer of the developer platform documentation"},title:"Documentor",kind:"person",id:"documentor"},docPlatform:{style:{},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},title:"Documentation Platform",kind:"system",id:"docPlatform"},cicdPipeline:{style:{},description:{txt:"Automated testing and deployment pipeline"},title:"CI/CD Pipeline",kind:"system",id:"cicdPipeline"},deploymentEnv:{style:{},description:{txt:"Edge deployment infrastructure"},title:"Deployment Environment",kind:"system",id:"deploymentEnv"},customer:{style:{},description:{txt:"End user of the platform"},title:"Customer",kind:"myperson",id:"customer"},mySystem:{style:{},description:{txt:"Example system component"},title:"My System",kind:"mysystem",id:"mySystem"},"edfbuilder_workflow.runEDP":{style:{opacity:25},title:"Run edpbuilder script",kind:"step",id:"edfbuilder_workflow.runEDP"},"edfbuilder_workflow.applyEDFBuilder":{style:{opacity:15},title:"Applies EDFbuilder resource (and triggers creation)",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder"},"applicationspecification.application_gitrepo":{style:{icon:"tech:git"},technology:"Git",description:{txt:"Git Application Repository"},title:"Git App Repo",kind:"component",id:"applicationspecification.application_gitrepo"},"applicationspecification.applicationspec_gitrepo":{style:{icon:"tech:git"},technology:"Git",description:{txt:"Git Application Specification Repository"},title:"Git AppSpec Repo",kind:"component",id:"applicationspecification.applicationspec_gitrepo"},"edp.api":{style:{opacity:20,icon:"tech:swagger"},description:{txt:"API for the EDP platform"},title:"API",kind:"container",id:"edp.api"},"edp.argoCD":{style:{opacity:20},description:{txt:"GitOps Service"},title:"ArgoCD",kind:"container",id:"edp.argoCD"},"edp.ui":{style:{opacity:20},description:{txt:"Developer Portal"},title:"Backstage",kind:"container",id:"edp.ui"},"edp.crossplane":{style:{opacity:20},tags:["internal"],description:{txt:"Declarative management of ressources"},title:"Crossplane",kind:"container",id:"edp.crossplane"},"edp.externalSecrets":{style:{opacity:20},tags:["internal"],description:{txt:"Provider to access externally stored Kubernetes secrets"},title:"external-secrets",kind:"container",id:"edp.externalSecrets"},"edp.forgejo":{style:{opacity:20,icon:"tech:go"},technology:"Golang",description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},title:"Forgejo",kind:"container",id:"edp.forgejo"},"edp.forgejoActions":{style:{icon:"tech:go"},technology:"Golang",description:{txt:"Continuous Integration like Github Actions"},title:"Forgejo Actions",kind:"component",id:"edp.forgejoActions"},"edp.imageregistry":{style:{icon:"tech:go"},technology:"Golang",description:{txt:"Container Image Registry"},title:"Forgejo OCI Image Registry",kind:"component",id:"edp.imageregistry"},"edp.forgejogit":{style:{icon:"tech:git"},title:"ForgejoGit",kind:"component",id:"edp.forgejogit"},"edp.grafana":{style:{opacity:20,icon:"tech:grafana"},description:{txt:"Data visualization and monitoring"},title:"Grafana",kind:"container",id:"edp.grafana"},"edp.ingressNginx":{style:{opacity:20},tags:["internal"],description:{txt:"Ingress Controller for incoming http(s) traffic"},title:"Ingress",kind:"container",id:"edp.ingressNginx"},"edp.keycloak":{style:{opacity:20},description:{txt:"Single Sign On for all EDP products"},title:"Keycloak",kind:"container",id:"edp.keycloak"},"edp.kyverno":{style:{opacity:20},tags:["internal"],description:{txt:"Policy-as-Code"},title:"Kyverno",kind:"container",id:"edp.kyverno"},"edp.loki":{style:{opacity:20},description:{txt:"Log aggregation system"},title:"Loki",kind:"container",id:"edp.loki"},"edp.mailhog":{style:{opacity:20},description:{txt:"Web and API based SMTP testing"},title:"Mailhog",kind:"container",id:"edp.mailhog"},"edp.minio":{style:{opacity:20},description:{txt:"S3 compatible blob storage"},title:"Minio",kind:"container",id:"edp.minio"},"edp.monitoring":{style:{opacity:20},description:{txt:"Observability system to monitor deployed components"},title:"Monitoring",kind:"container",id:"edp.monitoring"},"edp.openbao":{style:{opacity:20},description:{txt:"Secure secret storage"},title:"OpenBao",kind:"container",id:"edp.openbao"},"edp.prometheus":{style:{opacity:20,icon:"tech:prometheus"},description:{txt:"Monitoring and alerting toolkit"},title:"Prometheus",kind:"container",id:"edp.prometheus"},"edp.spark":{style:{opacity:20},tags:["internal"],description:{txt:"Allows running Spark applications on K8s"},title:"Spark",kind:"container",id:"edp.spark"},"edp.velero":{style:{opacity:20},tags:["internal"],description:{txt:"Backup Kubernetes resources"},title:"Velero",kind:"container",id:"edp.velero"},"cloud.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"cloud.application"},"edp.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"edp.application"},"edp.testApp":{style:{opacity:20},description:{txt:"Testapp to validate deployments"},title:"Fibonacci",kind:"container",id:"edp.testApp"},"localbox.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"localbox.application"},"localbox.git":{style:{icon:"tech:git"},technology:"Git",description:{txt:"local git"},title:"git",kind:"component",id:"localbox.git"},"docPlatform.hugoSite":{style:{},technology:"Hugo Extended, Docsy",description:{txt:"Static site generator based on Hugo with Docsy theme"},title:"Hugo Site",kind:"component",id:"docPlatform.hugoSite"},"docPlatform.contentRepo":{style:{shape:"storage"},technology:"Git, Markdown",description:{txt:"Markdown files, images, and configuration"},title:"Content Repository",kind:"repository",id:"docPlatform.contentRepo"},"docPlatform.likec4Integration":{style:{},technology:"LikeC4, Web Components",description:{txt:"Architecture diagram visualization embedded in documentation"},title:"LikeC4 Integration",kind:"component",id:"docPlatform.likec4Integration"},"docPlatform.taskfile":{style:{},technology:"Task (go-task)",description:{txt:"Task automation for local development, build, and testing"},title:"Taskfile",kind:"tool",id:"docPlatform.taskfile"},"docPlatform.devServer":{style:{},technology:"Hugo Server",description:{txt:"Local Hugo server with hot reload for content development"},title:"Development Server",kind:"process",id:"docPlatform.devServer"},"cicdPipeline.githubActions":{style:{},technology:"GitHub Actions",description:{txt:"Automated testing workflow on push/PR"},title:"GitHub Actions",kind:"process",id:"cicdPipeline.githubActions"},"cicdPipeline.containerBuild":{style:{},technology:"Docker",description:{txt:"OCI/Docker image creation with Hugo site"},title:"Container Build",kind:"process",id:"cicdPipeline.containerBuild"},"deploymentEnv.edgeConnect":{style:{},technology:"EdgeConnect",description:{txt:"Edge deployment orchestration platform"},title:"Edge Connect",kind:"system",id:"deploymentEnv.edgeConnect"},"deploymentEnv.k8sCluster":{style:{},technology:"Kubernetes",description:{txt:"K8s cluster on edge cloudlet (Munich)"},title:"Kubernetes Cluster",kind:"system",id:"deploymentEnv.k8sCluster"},"edfbuilder_workflow.runEDP.createCrossplaneNS":{style:{},title:"Create Crossplane namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createCrossplaneNS"},"edfbuilder_workflow.runEDP.installCrossplaneHelm":{style:{},title:"Install Crossplane Helm Chart",kind:"step",id:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders":{style:{},title:"Install Crossplane Functions and Providers",kind:"step",id:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders":{style:{},title:"Wait for Crossplane Functions and Providers to become available",kind:"step",id:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount":{style:{},title:"Apply cluster-admin role to crossplane shell provider service account",kind:"step",id:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},"edfbuilder_workflow.runEDP.createArgoCdNS":{style:{},title:"Create ArgoCD namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createArgoCdNS"},"edfbuilder_workflow.runEDP.createGiteaNS":{style:{},title:"Create Gitea namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createGiteaNS"},"edfbuilder_workflow.runEDP.createArgoCdTlsCert":{style:{},title:"Create TLS Cert for Argo",kind:"step",id:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},"edfbuilder_workflow.runEDP.createGiteaTlsCert":{style:{},title:"Create TLS Cert for Forgejo",kind:"step",id:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},"edfbuilder_workflow.runEDP.createEDFBuilderDefinition":{style:{},title:"Create EDFbuilder crossplane definition (defines API)",kind:"step",id:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},"edfbuilder_workflow.runEDP.createEDFBuilderComposition":{style:{},title:"Create EDFbuilder crossplane composition (defines what happens when EDFbuilder is applied)",kind:"step",id:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},"edfbuilder_workflow.applyEDFBuilder.setEnvVars":{style:{},title:"Set required environment variables",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.setEnvVars"},"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf":{style:{},title:"Make kube.conf write/readbale",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},"edfbuilder_workflow.applyEDFBuilder.setWorkDir":{style:{},title:"Set workdir to /tmp/rundir",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo":{style:{},title:"Clone steps repo and checkout desired branch",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues":{style:{},title:"Hydrate Stacks with values",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},"edfbuilder_workflow.applyEDFBuilder.createNamespaces":{style:{},title:"Create all required namespaces",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass":{style:{},title:"Create Admin Password for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass":{style:{},title:"Create Grafana Admin Password",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD":{style:{},title:"Apply ServiceMonitor CRDs for Prometheus",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart":{style:{},title:"Git clone ingress-nginx helm chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx":{style:{},title:"Install ingress-nginx from cloned chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},"edfbuilder_workflow.applyEDFBuilder.waitForIngress":{style:{},title:"Wait till ingress-nginx is ready",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm":{style:{},title:"Git clone ArgoCD Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},"edfbuilder_workflow.applyEDFBuilder.installArgoCD":{style:{},title:"Install ArgoCD Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress":{style:{},title:"Install ingress for ArgoCD",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart":{style:{},title:"Git clone Forgejo Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},"edfbuilder_workflow.applyEDFBuilder.installForgejo":{style:{},title:"Install Forgejo Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress":{style:{},title:"Install ingress for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD":{style:{},title:"Wait till ArgoCD is available",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},"edfbuilder_workflow.applyEDFBuilder.waitForForgejo":{style:{},title:"Wait till Forgejo is available",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},"edfbuilder_workflow.applyEDFBuilder.createForgejoUser":{style:{},title:"Create technical user for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo":{style:{},title:"Create repository for EDP state in Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner":{style:{},title:"Install Forgejo Runner deployment",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner":{style:{},title:"Create registration token secret for runner",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},"edfbuilder_workflow.applyEDFBuilder.configGitIdentity":{style:{},title:"Configure Git identity",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider":{style:{},title:"Configure Crossplane ArgoCD provider",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider":{style:{},title:"Configure Crossplane Kind provider",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo":{style:{},title:"Git push hydrated stacks to Forgejo isntance",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry":{style:{},title:"Configure Docker Registry for Argo Workflows",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser":{style:{},title:"Create packages user and token in Forgejo (unused?)",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks":{style:{},title:"Apply all selected ArgoCD stacks",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},"edfbuilder_workflow.applyEDFBuilder.cleanup":{style:{},title:"Cleanup work folder and unset all env vars",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cleanup"},"edp.argoCD.argocdServer":{style:{},title:"ArgoCD Server",kind:"component",id:"edp.argoCD.argocdServer"},"edp.argoCD.argocdAppController":{style:{},title:"ApplicationController",kind:"component",id:"edp.argoCD.argocdAppController"},"edp.argoCD.argocdAppSetController":{style:{},title:"ApplicationSeetController",kind:"component",id:"edp.argoCD.argocdAppSetController"},"edp.argoCD.argocdRedis":{style:{icon:"tech:redis"},technology:"Redis",title:"Redis",kind:"component",id:"edp.argoCD.argocdRedis"},"edp.argoCD.argocdRepoServer":{style:{},title:"Repo Server",kind:"component",id:"edp.argoCD.argocdRepoServer"},"edp.ui.backstage":{style:{icon:"tech:react",shape:"browser"},title:"Backstage",kind:"component",id:"edp.ui.backstage"},"edp.ui.database":{style:{shape:"storage",icon:"tech:postgresql"},technology:"Postgresql",title:"Database",kind:"component",id:"edp.ui.database"},"edp.crossplane.crossplane":{style:{},title:"Crossplane",kind:"component",id:"edp.crossplane.crossplane"},"edp.crossplane.crossplaneFunction":{style:{},title:"Function Patch and Transform",kind:"component",id:"edp.crossplane.crossplaneFunction"},"edp.crossplane.crossplaneRbacManager":{style:{},title:"RBAC Manager",kind:"component",id:"edp.crossplane.crossplaneRbacManager"},"edp.crossplane.providerArgoCD":{style:{},title:"ArgoCD Provider",kind:"component",id:"edp.crossplane.providerArgoCD"},"edp.crossplane.providerKind":{style:{},title:"Kind Provider",kind:"component",id:"edp.crossplane.providerKind"},"edp.crossplane.providerShell":{style:{},title:"Shell Provider",kind:"component",id:"edp.crossplane.providerShell"},"edp.externalSecrets.externalSecrets":{style:{},title:"external-secrets controller",kind:"component",id:"edp.externalSecrets.externalSecrets"},"edp.externalSecrets.certController":{style:{},title:"cert-controller",kind:"component",id:"edp.externalSecrets.certController"},"edp.externalSecrets.webhook":{style:{},title:"webhook",kind:"component",id:"edp.externalSecrets.webhook"},"edp.forgejo.forgejocollaboration":{style:{icon:"tech:github"},title:"Collaboration",kind:"component",id:"edp.forgejo.forgejocollaboration"},"edp.forgejo.forgejoproject":{style:{icon:"tech:github"},title:"Project Mgmt",kind:"component",id:"edp.forgejo.forgejoproject"},"edp.ingressNginx.ingressNginx":{style:{icon:"tech:nginx"},technology:"Nginx",title:"ingress-nginx",kind:"component",id:"edp.ingressNginx.ingressNginx"},"edp.keycloak.keycloak":{style:{icon:"tech:java"},technology:"Java",title:"Keycloak",kind:"component",id:"edp.keycloak.keycloak"},"edp.keycloak.keycloakDB":{style:{shape:"storage",icon:"tech:postgresql"},technology:"Postgresql",title:"Database",kind:"component",id:"edp.keycloak.keycloakDB"},"edp.mailhog.mailhog":{style:{icon:"tech:go"},technology:"Golang",title:"Mailhog",kind:"component",id:"edp.mailhog.mailhog"},"edp.minio.minio":{style:{shape:"storage"},technology:"Minio",title:"S3 Blob Storage",kind:"component",id:"edp.minio.minio"},"edp.monitoring.alloy":{style:{icon:"tech:grafana",multiple:!0},description:{txt:"Open Telemetry Collector"},title:"Alloy",kind:"component",id:"edp.monitoring.alloy"},"edp.monitoring.loki":{style:{opacity:20,icon:"tech:grafana"},description:{txt:"Log aggregation system"},title:"Loki",kind:"container",id:"edp.monitoring.loki"},"edp.openbao.openbao":{style:{shape:"storage"},technology:"Openbao",title:"Openbao",kind:"component",id:"edp.openbao.openbao"},"edp.openbao.agentInjector":{style:{},title:"Agent Injector",kind:"component",id:"edp.openbao.agentInjector"},"edp.spark.sparkoperator":{style:{icon:"tech:spark"},technology:"Spark",title:"Spark Operator",kind:"component",id:"edp.spark.sparkoperator"},"edp.velero.velero":{style:{},title:"Velero",kind:"component",id:"edp.velero.velero"},"edp.testApp.fibonacci":{style:{icon:"tech:go"},technology:"Golang",title:"Fibonacci",kind:"component",id:"edp.testApp.fibonacci"},"docPlatform.contentRepo.contentPages":{style:{},technology:"Markdown",description:{txt:"Documentation pages in Markdown format"},title:"Content Pages",kind:"component",id:"docPlatform.contentRepo.contentPages"},"docPlatform.contentRepo.archModels":{style:{},technology:"LikeC4 DSL",description:{txt:"LikeC4 architecture models and views"},title:"Architecture Models",kind:"component",id:"docPlatform.contentRepo.archModels"},"docPlatform.contentRepo.assets":{style:{},technology:"CSS, JavaScript",description:{txt:"CSS, JavaScript, images, fonts"},title:"Static Assets",kind:"component",id:"docPlatform.contentRepo.assets"},"cicdPipeline.githubActions.testBuild":{style:{},technology:"Hugo",description:{txt:"Hugo build validation"},title:"Build Test",kind:"component",id:"cicdPipeline.githubActions.testBuild"},"cicdPipeline.githubActions.testMarkdown":{style:{},technology:"markdownlint",description:{txt:"Markdown syntax and style checking"},title:"Markdown Lint",kind:"component",id:"cicdPipeline.githubActions.testMarkdown"},"cicdPipeline.githubActions.testHtml":{style:{},technology:"htmlvalidate",description:{txt:"Generated HTML validation"},title:"HTML Validation",kind:"component",id:"cicdPipeline.githubActions.testHtml"},"cicdPipeline.githubActions.testLinks":{style:{},technology:"htmltest",description:{txt:"Broken link detection"},title:"Link Checker",kind:"component",id:"cicdPipeline.githubActions.testLinks"},"deploymentEnv.k8sCluster.docService":{style:{},technology:"K8s Service",description:{txt:"LoadBalancer service exposing docs on port 80"},title:"Documentation Service",kind:"component",id:"deploymentEnv.k8sCluster.docService"},"deploymentEnv.k8sCluster.docDeployment":{style:{},technology:"K8s Deployment, Nginx",description:{txt:"Pod running Hugo-generated static site"},title:"Documentation Deployment",kind:"component",id:"deploymentEnv.k8sCluster.docDeployment"},"edp.monitoring.loki.queryFrontend":{style:{},title:"Query Frontend",kind:"component",id:"edp.monitoring.loki.queryFrontend"},"edp.monitoring.loki.distributor":{style:{},title:"Distributor",kind:"component",id:"edp.monitoring.loki.distributor"},"edp.monitoring.loki.gateway":{style:{},title:"Gateway",kind:"component",id:"edp.monitoring.loki.gateway"},"edp.monitoring.loki.ingestor":{style:{},title:"Ingestor",kind:"component",id:"edp.monitoring.loki.ingestor"},"edp.monitoring.loki.querier":{style:{},title:"Querier",kind:"component",id:"edp.monitoring.loki.querier"}},relations:{zgprrj:{title:"",source:{model:"edfbuilder_workflow.runEDP.createCrossplaneNS"},target:{model:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},id:"zgprrj"},hkqe1q:{title:"",source:{model:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},target:{model:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},id:"hkqe1q"},"7hhs3w":{title:"",source:{model:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},target:{model:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},id:"7hhs3w"},xjeqlb:{title:"",source:{model:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},target:{model:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},id:"xjeqlb"},"1nhvr49":{title:"",source:{model:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},target:{model:"edfbuilder_workflow.runEDP.createArgoCdNS"},id:"1nhvr49"},i203to:{title:"",source:{model:"edfbuilder_workflow.runEDP.createArgoCdNS"},target:{model:"edfbuilder_workflow.runEDP.createGiteaNS"},id:"i203to"},"1b9cczp":{title:"",source:{model:"edfbuilder_workflow.runEDP.createGiteaNS"},target:{model:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},id:"1b9cczp"},i514he:{title:"",source:{model:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},target:{model:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},id:"i514he"},"13ashxq":{title:"",source:{model:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},target:{model:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},id:"13ashxq"},"14kigg4":{title:"",source:{model:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},target:{model:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},id:"14kigg4"},"1y9fees":{title:"",source:{model:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},target:{model:"edfbuilder_workflow.applyEDFBuilder"},id:"1y9fees"},"1pfgmn3":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.setEnvVars"},target:{model:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},id:"1pfgmn3"},"11gwuq3":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},target:{model:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},id:"11gwuq3"},"1ddvozk":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},id:"1ddvozk"},c4bphp:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},id:"c4bphp"},"22u12c":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},id:"22u12c"},"1veymj5":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},id:"1veymj5"},"1bx48yr":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},id:"1bx48yr"},pbq0ly:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},target:{model:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},id:"pbq0ly"},"1tj029j":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},id:"1tj029j"},ukdpc6:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},target:{model:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},id:"ukdpc6"},tm63b8:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},id:"tm63b8"},mnqt5q:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},id:"mnqt5q"},c3zfur:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},id:"c3zfur"},"157ptzn":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},id:"157ptzn"},"8kcuka":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},id:"8kcuka"},"5sub2k":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},id:"5sub2k"},z8qrfi:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},id:"z8qrfi"},"1dqe9ri":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},id:"1dqe9ri"},"12iu5vk":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},id:"12iu5vk"},"1xhuuis":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},id:"1xhuuis"},vhezff:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},id:"vhezff"},"1dow3tq":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},id:"1dow3tq"},"1k46mx8":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},target:{model:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},id:"1k46mx8"},f5bybq:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},id:"f5bybq"},"8g1uqn":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},id:"8g1uqn"},"9c504z":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},id:"9c504z"},"19gp6kf":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},target:{model:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},id:"19gp6kf"},h55zvp:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},id:"h55zvp"},"1b7dj03":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},id:"1b7dj03"},"1bk65oi":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},id:"1bk65oi"},rsncrl:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cleanup"},id:"rsncrl"},"18dtot7":{title:"register",source:{model:"forgejoRunner"},target:{model:"edp.forgejoActions"},id:"18dtot7"},"1oxlsu0":{title:"boots one",source:{model:"edfbuilder"},target:{model:"edf"},id:"1oxlsu0"},s1l7g7:{title:"runs",source:{model:"platformdeveloper"},target:{model:"edfbuilder"},id:"s1l7g7"},yfhhi5:{title:"read/write",source:{model:"edp.argoCD.argocdServer"},target:{model:"edp.argoCD.argocdRedis"},id:"yfhhi5"},iullhy:{title:"read/write",source:{model:"edp.argoCD.argocdRepoServer"},target:{model:"edp.argoCD.argocdRedis"},id:"iullhy"},"10vkxaf":{title:"read/write",source:{model:"edp.argoCD.argocdAppController"},target:{model:"edp.argoCD.argocdRedis"},id:"10vkxaf"},i8z0mi:{title:"read/write",source:{model:"edp.argoCD.argocdAppSetController"},target:{model:"edp.argoCD.argocdRedis"},id:"i8z0mi"},"6mupa0":{title:"Syncs git repo",source:{model:"edp.argoCD.argocdRepoServer"},target:{model:"edp.forgejogit"},id:"6mupa0"},c23sak:{title:"reads/writes",source:{model:"edp.ui.backstage"},target:{model:"edp.ui.database"},id:"c23sak"},"1pbc22f":{title:"runs workflows",source:{model:"edp.forgejoActions"},target:{model:"forgejoRunner"},id:"1pbc22f"},"13uvtiq":{title:"get metrics and alerts",source:{model:"edp.grafana"},target:{model:"edp.prometheus"},id:"13uvtiq"},"1n1utzc":{title:"get logs",source:{model:"edp.grafana"},target:{model:"edp.loki"},id:"1n1utzc"},"123efwn":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.forgejo"},id:"123efwn"},h3rut2:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.keycloak.keycloak"},id:"h3rut2"},"1p30hav":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.openbao.openbao"},id:"1p30hav"},"1yssos5":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.argoCD.argocdServer"},id:"1yssos5"},v8c8aq:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.ui.backstage"},id:"v8c8aq"},fe65w2:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.minio.minio"},id:"fe65w2"},"1jvab2g":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.monitoring.alloy"},id:"1jvab2g"},fs60l7:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.monitoring.loki.queryFrontend"},id:"fs60l7"},"1i5f8um":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.testApp.fibonacci"},id:"1i5f8um"},ofdedh:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.mailhog.mailhog"},id:"ofdedh"},"18zxrhs":{title:"reads/writes",source:{model:"edp.keycloak.keycloak"},target:{model:"edp.keycloak.keycloakDB"},id:"18zxrhs"},"11ollyi":{title:"pushes logs",source:{model:"edp.monitoring.alloy"},target:{model:"edp.monitoring.loki.distributor"},id:"11ollyi"},"1mazt1x":{title:"store backups",source:{model:"edp.velero.velero"},target:{model:"edp.minio.minio"},id:"1mazt1x"},"5hkplj":{title:"inner loop development",source:{model:"developer"},target:{model:"localbox"},id:"5hkplj"},"1pp73vj":{title:"outer loop development",source:{model:"developer"},target:{model:"edp"},id:"1pp73vj"},yk9zv2:{title:"manages project",source:{model:"developer"},target:{model:"edp.ui"},id:"yk9zv2"},"12036hb":{title:"manages code",source:{model:"developer"},target:{model:"edp.forgejo"},id:"12036hb"},jpl8ll:{title:"authenticates",source:{model:"developer"},target:{model:"edp.keycloak"},id:"jpl8ll"},"1ghp31l":{title:"manages deployments",source:{model:"developer"},target:{model:"edp.argoCD"},id:"1ghp31l"},"1xiorre":{title:"monitors",source:{model:"developer"},target:{model:"edp.grafana"},id:"1xiorre"},"1woleh6":{title:"create and maintain apps",source:{model:"developer"},target:{model:"edp.ui.backstage"},id:"1woleh6"},"177bm2y":{title:"pushes and pull images",source:{model:"developer"},target:{model:"edp.imageregistry"},id:"177bm2y"},"1l9a3pd":{title:"uses API",source:{model:"developer"},target:{model:"edp.api"},id:"1l9a3pd"},"1uzzn9j":{title:"uses git",source:{model:"developer"},target:{model:"edp.forgejogit"},id:"1uzzn9j"},lb4xas:{title:"act according to responibility",source:{model:"otherProductLifecycleRoles"},target:{model:"edp"},id:"lb4xas"},"1g2ebwc":{title:"uses your app",source:{model:"customers"},target:{model:"cloud"},id:"1g2ebwc"},nc44l9:{title:"app specific dependencies",source:{model:"enterprise"},target:{model:"cloud"},id:"nc44l9"},wsm3kf:{title:"builds many",source:{model:"edf"},target:{model:"edp"},id:"wsm3kf"},v8v12:{title:"develops EDP and EDF",source:{model:"platformdeveloper"},target:{model:"edf"},id:"v8v12"},"615gvx":{title:"integrates",source:{model:"edp"},target:{model:"enterprise"},id:"615gvx"},gerdx4:{title:"deploys and observes",source:{model:"edp"},target:{model:"cloud"},id:"gerdx4"},wvo8i:{title:"",source:{model:"edp"},target:{model:"localbox"},id:"wvo8i"},"1mp9fps":{title:"inner-outer-loop synchronization",source:{model:"localbox"},target:{model:"edp"},id:"1mp9fps"},"1abvxlh":{title:"company integration",source:{model:"localbox"},target:{model:"enterprise"},id:"1abvxlh"},"1ouysrh":{title:"writes documentation",description:{txt:"Creates and updates Markdown content"},source:{model:"documentor"},target:{model:"docPlatform.contentRepo.contentPages"},id:"1ouysrh"},fmzkfl:{title:"creates architecture models",description:{txt:"Defines C4 models with LikeC4 DSL"},source:{model:"documentor"},target:{model:"docPlatform.contentRepo.archModels"},id:"fmzkfl"},"1iop8z6":{title:"executes local tasks",description:{txt:"task serve, task build, task test"},source:{model:"documentor"},target:{model:"docPlatform.taskfile"},id:"1iop8z6"},"1h50i3u":{title:"starts",description:{txt:"task serve"},source:{model:"docPlatform.taskfile"},target:{model:"docPlatform.devServer"},id:"1h50i3u"},dg5rzk:{title:"renders",description:{txt:"Live reload on content changes"},source:{model:"docPlatform.devServer"},target:{model:"docPlatform.hugoSite"},id:"dg5rzk"},"1qbbmxu":{title:"reads content from",description:{txt:"Processes Markdown and templates"},source:{model:"docPlatform.hugoSite"},target:{model:"docPlatform.contentRepo"},id:"1qbbmxu"},"1oh42mx":{title:"integrates",description:{txt:"Embeds architecture diagrams"},source:{model:"docPlatform.hugoSite"},target:{model:"docPlatform.likec4Integration"},id:"1oh42mx"},"1a8c499":{title:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},source:{model:"docPlatform.likec4Integration"},target:{model:"docPlatform.contentRepo.archModels"},id:"1a8c499"},"1dzhdhu":{title:"can run locally",description:{txt:"task test:build"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testBuild"},id:"1dzhdhu"},"14ls3qa":{title:"can run locally",description:{txt:"task test:markdown"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testMarkdown"},id:"14ls3qa"},htx1q7:{title:"can run locally",description:{txt:"task test:html"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testHtml"},id:"htx1q7"},"1vqq9gw":{title:"can run locally",description:{txt:"task test:links"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testLinks"},id:"1vqq9gw"},"8hsu7m":{title:"triggers on push/PR",description:{txt:"Webhook on main branch"},source:{model:"docPlatform.contentRepo"},target:{model:"cicdPipeline.githubActions"},id:"8hsu7m"},omluoy:{title:"builds",description:{txt:"hugo --gc --minify"},source:{model:"cicdPipeline.githubActions.testBuild"},target:{model:"docPlatform.hugoSite"},id:"omluoy"},"11hmyp0":{title:"validates",description:{txt:"Lints Markdown files"},source:{model:"cicdPipeline.githubActions.testMarkdown"},target:{model:"docPlatform.contentRepo.contentPages"},id:"11hmyp0"},"1bziuh3":{title:"validates output",description:{txt:"Checks generated HTML"},source:{model:"cicdPipeline.githubActions.testHtml"},target:{model:"docPlatform.hugoSite"},id:"1bziuh3"},"9nq85f":{title:"checks links in",description:{txt:"Detects broken links"},source:{model:"cicdPipeline.githubActions.testLinks"},target:{model:"docPlatform.hugoSite"},id:"9nq85f"},"1knexmm":{title:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},source:{model:"cicdPipeline.githubActions"},target:{model:"cicdPipeline.containerBuild"},id:"1knexmm"},"1nifn":{title:"packages",description:{txt:"public/ directory served by Nginx"},source:{model:"cicdPipeline.containerBuild"},target:{model:"docPlatform.hugoSite"},id:"1nifn"},"1hae5vm":{title:"pushes image to",description:{txt:"Tagged container image"},source:{model:"cicdPipeline.containerBuild"},target:{model:"deploymentEnv.edgeConnect"},id:"1hae5vm"},"3gelf9":{title:"deploys to",description:{txt:"Via edgeconnectdeployment.yaml"},source:{model:"deploymentEnv.edgeConnect"},target:{model:"deploymentEnv.k8sCluster"},id:"3gelf9"},"164u7gn":{title:"exposed by",description:{txt:"Port 80"},source:{model:"deploymentEnv.k8sCluster.docDeployment"},target:{model:"deploymentEnv.k8sCluster.docService"},id:"164u7gn"},otinu1:{title:"views published docs",description:{txt:"HTTPS access to live documentation"},source:{model:"documentor"},target:{model:"deploymentEnv.k8sCluster.docService"},id:"otinu1"},"1yvgyrn":{title:"uses",source:{model:"customer"},target:{model:"mySystem"},id:"1yvgyrn"}},globals:{predicates:{},dynamicPredicates:{},styles:{text_large:[{targets:[{wildcard:!0}],style:{size:"xl"}}]}},views:{overview:{_type:"element",tags:null,links:null,viewOf:"docPlatform",_stage:"layouted",sourcePath:"models/doc-platform/documentation-platform.c4",description:{txt:"High-level overview of the Hugo-based documentation platform for documentors"},title:"Documentation Platform Overview",id:"overview",autoLayout:{direction:"TB"},hash:"ee38e18e93593defec5a01081b1c1cb8614e9734",bounds:{x:0,y:0,width:1362,height:1851},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1it4ty8","1xegqy"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:788,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["11swhvh","1yjnj9z"],outEdges:["1y7uioy","zvvnul"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:841,y:1300,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:48}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.taskfile","docPlatform.devServer","docPlatform.hugoSite","docPlatform.likec4Integration","docPlatform.contentRepo"],inEdges:["1it4ty8","1xegqy","1y7uioy","zvvnul"],outEdges:["11swhvh","1yjnj9z"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"localDevelopment",x:8,y:271,width:763,height:1572,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1055tf","1yjnj9z"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:389,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"docPlatform.devServer",parent:"docPlatform",level:1,children:[],inEdges:["1055tf"],outEdges:["zrlo7a"],title:"Development Server",modelRef:"docPlatform.devServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Local Hugo server with hot reload for content development"},tags:[],technology:"Hugo Server",kind:"process",x:391,y:655,width:338,height:180,labelBBox:{x:18,y:44,width:303,height:85}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["1y7uioy","zrlo7a"],outEdges:["blbbud","o4y09i"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:400,y:978,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:85}},{id:"docPlatform.likec4Integration",parent:"docPlatform",level:1,children:[],inEdges:["o4y09i"],outEdges:["ga3up5"],title:"LikeC4 Integration",modelRef:"docPlatform.likec4Integration",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Architecture diagram visualization embedded in documentation"},tags:[],technology:"LikeC4, Web Components",kind:"component",x:48,y:1300,width:339,height:180,labelBBox:{x:18,y:45,width:303,height:85}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["1it4ty8","zvvnul","blbbud","ga3up5"],outEdges:["11swhvh"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:411,y:1623,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}}],edges:[{id:"1it4ty8",source:"documentor",target:"docPlatform.contentRepo",label:"[...]",dotpos:"e,732.09,1678.6 1107.9,153.46 1214.5,206.72 1335,294.84 1335,421 1335,421 1335,421 1335,1391.4 1335,1519.2 967.26,1624.1 742.04,1676.3",points:[[1108,153],[1214,207],[1335,295],[1335,421],[1335,421],[1335,421],[1335,1391],[1335,1519],[967,1624],[742,1676]],labelBBox:{x:1336,y:893,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,664.34,332.26 843.51,179.87 790.56,224.9 726.22,279.62 672.23,325.55",points:[[844,180],[791,225],[726,280],[672,326]],labelBBox:{x:767,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1y7uioy",source:"cicdPipeline",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,683.37,1157.5 881.78,1300.6 822.72,1258 751.91,1207 691.78,1163.6",points:[[882,1301],[823,1258],[752,1207],[692,1164]],labelBBox:{x:797,y:1216,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"zvvnul",source:"cicdPipeline",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,732.04,1649.5 948.79,1480.2 927.52,1509.2 901.5,1539.8 873,1563.2 833.88,1595.3 786.7,1622.7 741.38,1644.9",points:[[949,1480],[928,1509],[902,1540],[873,1563],[834,1595],[787,1623],[741,1645]],labelBBox:{x:896,y:1540,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,569.46,1622.2 561.52,1157.4 563.55,1276.5 567.16,1487.3 569.29,1611.9",points:[[562,1157],[564,1276],[567,1487],[569,1612]],labelBBox:{x:568,y:1379,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"},{id:"o4y09i",source:"docPlatform.hugoSite",target:"docPlatform.likec4Integration",label:"integrates",description:{txt:"Embeds architecture diagrams"},dotpos:"e,312.7,1300.6 465.19,1157.5 420.15,1199.8 366.26,1250.3 320.3,1293.4",points:[[465,1158],[420,1200],[366,1250],[320,1293]],labelBBox:{x:400,y:1217,width:65,height:18},parent:"docPlatform",relations:["1oh42mx"],color:"gray",line:"dashed",head:"normal"},{id:"zrlo7a",source:"docPlatform.devServer",target:"docPlatform.hugoSite",label:"renders",description:{txt:"Live reload on content changes"},dotpos:"e,560,977.77 560,834.73 560,875.93 560,925.04 560,967.43",points:[[560,835],[560,876],[560,925],[560,967]],labelBBox:{x:561,y:894,width:51,height:18},parent:"docPlatform",relations:["dg5rzk"],color:"gray",line:"dashed",head:"normal"},{id:"ga3up5",source:"docPlatform.likec4Integration",target:"docPlatform.contentRepo",label:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},dotpos:"e,473.25,1623.4 315.86,1480.3 362.44,1522.7 418.21,1573.3 465.7,1616.5",points:[[316,1480],[362,1523],[418,1573],[466,1617]],labelBBox:{x:406,y:1540,width:65,height:18},parent:"docPlatform",relations:["1a8c499"],color:"gray",line:"dashed",head:"normal"},{id:"1055tf",source:"docPlatform.taskfile",target:"docPlatform.devServer",label:"starts",description:{txt:"task serve"},dotpos:"e,560,654.97 560,511.93 560,553.13 560,602.24 560,644.63",points:[[560,512],[560,553],[560,602],[560,645]],labelBBox:{x:561,y:572,width:38,height:18},parent:"docPlatform",relations:["1h50i3u"],color:"gray",line:"dashed",head:"normal"},{id:"11swhvh",source:"docPlatform.contentRepo",target:"cicdPipeline",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,841.2,1461.8 635.57,1622.6 658.89,1594.1 686.79,1563.9 716.27,1540.4 751.16,1512.6 792.06,1487.8 831.91,1466.7",points:[[636,1623],[659,1594],[687,1564],[716,1540],[751,1513],[792,1488],[832,1467]],labelBBox:{x:717,y:1540,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1yjnj9z",source:"docPlatform.taskfile",target:"cicdPipeline",label:"can run locally",dotpos:"e,992.23,1300.6 665.66,511.91 707.55,551.89 753.01,601.94 784,654.8 905.77,862.51 965.77,1143.2 990.51,1290.2",points:[[666,512],[708,552],[753,602],[784,655],[906,863],[966,1143],[991,1290]],labelBBox:{x:899,y:894,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"}]},localDevelopment:{_type:"element",tags:null,links:null,viewOf:"docPlatform",_stage:"layouted",sourcePath:"models/doc-platform/documentation-platform.c4",description:{txt:"How a documentor works locally with the documentation"},title:"Local Development Workflow",id:"localDevelopment",autoLayout:{direction:"TB"},hash:"26dc23444be44f6f2c03474a6c59133abd4e74b2",bounds:{x:0,y:0,width:1138,height:1851},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1xegqy"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:371,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.contentRepo","docPlatform.taskfile","docPlatform.devServer","docPlatform.hugoSite","docPlatform.likec4Integration"],inEdges:["1y7uioy","1xegqy"],outEdges:["11swhvh","1yjnj9z"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:8,y:271,width:762,height:1572,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["blbbud","ga3up5"],outEdges:["11swhvh"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:400,y:1623,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1yjnj9z","1055tf"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:360,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["11swhvh","1yjnj9z"],outEdges:["1y7uioy"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:810,y:655,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:47}},{id:"docPlatform.devServer",parent:"docPlatform",level:1,children:[],inEdges:["1055tf"],outEdges:["zrlo7a"],title:"Development Server",modelRef:"docPlatform.devServer",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Local Hugo server with hot reload for content development"},tags:[],technology:"Hugo Server",kind:"process",x:362,y:655,width:338,height:180,labelBBox:{x:18,y:44,width:303,height:85}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["1y7uioy","zrlo7a"],outEdges:["blbbud","o4y09i"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:371,y:978,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:85}},{id:"docPlatform.likec4Integration",parent:"docPlatform",level:1,children:[],inEdges:["o4y09i"],outEdges:["ga3up5"],title:"LikeC4 Integration",modelRef:"docPlatform.likec4Integration",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Architecture diagram visualization embedded in documentation"},tags:[],technology:"LikeC4, Web Components",kind:"component",x:390,y:1300,width:339,height:180,labelBBox:{x:18,y:45,width:303,height:85}}],edges:[{id:"11swhvh",source:"docPlatform.contentRepo",target:"cicdPipeline",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,965.98,834.65 666.92,1624.2 709.24,1584.3 754.89,1534.1 785,1480.4 901.46,1272.8 947.69,992.03 964.8,845",points:[[667,1624],[709,1584],[755,1534],[785,1480],[901,1273],[948,992],[965,845]],labelBBox:{x:891,y:1217,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1y7uioy",source:"cicdPipeline",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,653.67,977.77 851.19,834.73 792.37,877.33 721.89,928.37 662.04,971.71",points:[[851,835],[792,877],[722,928],[662,972]],labelBBox:{x:767,y:893,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,399.21,1647.6 371.15,1143.6 309.79,1181.3 246.35,1233.5 212.28,1300.4 175.97,1371.7 174.53,1409.9 212.28,1480.4 250.61,1552 321.93,1605.3 390.06,1642.7",points:[[371,1144],[310,1181],[246,1233],[212,1300],[176,1372],[175,1410],[212,1480],[251,1552],[322,1605],[390,1643]],labelBBox:{x:213,y:1379,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"},{id:"o4y09i",source:"docPlatform.hugoSite",target:"docPlatform.likec4Integration",label:"integrates",description:{txt:"Embeds architecture diagrams"},dotpos:"e,551.97,1300.6 539.04,1157.5 542.76,1198.7 547.2,1247.8 551.04,1290.2",points:[[539,1158],[543,1199],[547,1248],[551,1290]],labelBBox:{x:547,y:1217,width:65,height:18},parent:"docPlatform",relations:["1oh42mx"],color:"gray",line:"dashed",head:"normal"},{id:"ga3up5",source:"docPlatform.likec4Integration",target:"docPlatform.contentRepo",label:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},dotpos:"e,560,1622.3 560,1480.3 560,1521.2 560,1569.8 560,1612",points:[[560,1480],[560,1521],[560,1570],[560,1612]],labelBBox:{x:561,y:1540,width:65,height:18},parent:"docPlatform",relations:["1a8c499"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,531,332.26 531,179.87 531,223.7 531,276.72 531,321.86",points:[[531,180],[531,224],[531,277],[531,322]],labelBBox:{x:532,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1yjnj9z",source:"docPlatform.taskfile",target:"cicdPipeline",label:"can run locally",dotpos:"e,851.33,654.97 653.81,511.93 712.63,554.53 783.11,605.57 842.96,648.91",points:[[654,512],[713,555],[783,606],[843,649]],labelBBox:{x:767,y:572,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"},{id:"1055tf",source:"docPlatform.taskfile",target:"docPlatform.devServer",label:"starts",description:{txt:"task serve"},dotpos:"e,531,654.97 531,511.93 531,553.13 531,602.24 531,644.63",points:[[531,512],[531,553],[531,602],[531,645]],labelBBox:{x:532,y:572,width:38,height:18},parent:"docPlatform",relations:["1h50i3u"],color:"gray",line:"dashed",head:"normal"},{id:"zrlo7a",source:"docPlatform.devServer",target:"docPlatform.hugoSite",label:"renders",description:{txt:"Live reload on content changes"},dotpos:"e,531,977.77 531,834.73 531,875.93 531,925.04 531,967.43",points:[[531,835],[531,876],[531,925],[531,967]],labelBBox:{x:532,y:894,width:51,height:18},parent:"docPlatform",relations:["dg5rzk"],color:"gray",line:"dashed",head:"normal"}]},cicdPipeline:{_type:"element",tags:null,links:null,viewOf:"cicdPipeline",_stage:"layouted",sourcePath:"models/doc-platform/documentation-platform.c4",description:{txt:"Automated testing and container build process"},title:"CI/CD Pipeline",id:"cicdPipeline",autoLayout:{direction:"TB"},hash:"150f9cc9e37c97380e3d5645a52229bf2e7cc7ae",bounds:{x:0,y:0,width:994,height:629},nodes:[{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.githubActions","cicdPipeline.containerBuild"],inEdges:["cptcjf"],outEdges:["q5uigr","z85qw4","1n4aj6l"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,x:29,y:8,width:957,height:281,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.githubActions",parent:"cicdPipeline",level:1,children:[],inEdges:["cptcjf"],outEdges:["hh1y8j","q5uigr","z85qw4"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",navigateTo:"testingCapabilities",x:69,y:69,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:68}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:["hh1y8j"],outEdges:["1n4aj6l"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"indigo",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:626,y:69,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:68}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.hugoSite","docPlatform.contentRepo"],inEdges:["q5uigr","z85qw4","1n4aj6l"],outEdges:["cptcjf"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:8,y:340,width:953,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["z85qw4","1n4aj6l"],outEdges:["blbbud"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:601,y:401,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:86}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["q5uigr","blbbud"],outEdges:["cptcjf"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:48,y:401,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}}],edges:[{id:"hh1y8j",source:"cicdPipeline.githubActions",target:"cicdPipeline.containerBuild",label:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},dotpos:"e,626.08,159.2 388.99,159.2 460.05,159.2 543.78,159.2 615.98,159.2",points:[[389,159],[460,159],[544,159],[616,159]],labelBBox:{x:445,y:133,width:125,height:18},parent:"cicdPipeline",relations:["1knexmm"],color:"gray",line:"dashed",head:"normal"},{id:"q5uigr",source:"cicdPipeline.githubActions",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,76.672,404.78 94.421,249.05 76.739,266.78 61.164,286.91 50.745,309.2 36.065,340.6 47.577,370.73 69.795,397.09",points:[[94,249],[77,267],[61,287],[51,309],[36,341],[48,371],[70,397]],labelBBox:{x:52,y:309,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"cptcjf",source:"docPlatform.contentRepo",target:"cicdPipeline.githubActions",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,223.34,249.07 213.72,400.31 216.5,356.69 219.84,304.17 222.69,259.39",points:[[214,400],[217,357],[220,304],[223,259]],labelBBox:{x:220,y:309,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"z85qw4",source:"cicdPipeline.githubActions",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,617.94,401.46 372.27,249.07 445.61,294.56 534.9,349.95 609.39,396.16",points:[[372,249],[446,295],[535,350],[609,396]],labelBBox:{x:496,y:308,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f"],color:"gray",line:"dashed",head:"normal"},{id:"1n4aj6l",source:"cicdPipeline.containerBuild",target:"docPlatform.hugoSite",label:"packages",description:{txt:"public/ directory served by Nginx"},dotpos:"e,767.72,401.46 779.27,249.07 775.95,292.9 771.93,345.92 768.51,391.06",points:[[779,249],[776,293],[772,346],[769,391]],labelBBox:{x:775,y:309,width:64,height:18},parent:null,relations:["1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,369.07,491.2 601.07,491.2 531.6,491.2 450.12,491.2 379.42,491.2",points:[[601,491],[532,491],[450,491],[379,491]],labelBBox:{x:424,y:465,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"}]},deploymentFlow:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"models/doc-platform/documentation-platform.c4",description:{txt:"How the documentation is deployed to the edge infrastructure"},title:"Deployment to Edge Environment",id:"deploymentFlow",autoLayout:{direction:"TB"},hash:"5bb560fa035a478934e873c7566be1fce391f63d",bounds:{x:0,y:0,width:790,height:605},nodes:[{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.containerBuild"],inEdges:[],outEdges:["l7mlxp"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,navigateTo:"cicdPipeline",x:8,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:[],outEdges:["l7mlxp"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:40,y:61,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:68}},{id:"deploymentEnv",parent:null,level:0,children:["deploymentEnv.edgeConnect"],inEdges:["l7mlxp"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"muted",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",depth:1,x:8,y:332,width:384,height:265,labelBBox:{x:6,y:0,width:165,height:15}},{id:"deploymentEnv.edgeConnect",parent:"deploymentEnv",level:1,children:[],inEdges:["l7mlxp"],outEdges:[],title:"Edge Connect",modelRef:"deploymentEnv.edgeConnect",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment orchestration platform"},tags:[],technology:"EdgeConnect",kind:"system",x:40,y:385,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:68}},{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:470,y:61,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:86}}],edges:[{id:"l7mlxp",source:"cicdPipeline.containerBuild",target:"deploymentEnv.edgeConnect",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,200,385.37 200,241.04 200,282.57 200,332.18 200,374.94",points:[[200,241],[200,283],[200,332],[200,375]],labelBBox:{x:201,y:301,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"}]},fullWorkflow:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"models/doc-platform/documentation-platform.c4",description:{txt:"End-to-end view from content creation to published documentation"},title:"Complete Documentor Workflow",id:"fullWorkflow",autoLayout:{direction:"TB"},hash:"8631ea7a85e08fb10985eb22fbc25cff5a7ccc8d",bounds:{x:0,y:0,width:1364,height:1224},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1it4ty8","1xegqy","tvlbdk"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:563,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.contentRepo","docPlatform.taskfile"],inEdges:["1it4ty8","1xegqy","q5uigr"],outEdges:["cptcjf","1r2t3dd"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:82,y:271,width:852,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["1it4ty8","q5uigr"],outEdges:["cptcjf"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:122,y:332,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:67}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1r2t3dd"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:552,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.githubActions","cicdPipeline.containerBuild"],inEdges:["cptcjf","1r2t3dd"],outEdges:["q5uigr","l7mlxp"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,navigateTo:"cicdPipeline",x:8,y:603,width:957,height:281,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.githubActions",parent:"cicdPipeline",level:1,children:[],inEdges:["cptcjf","1r2t3dd"],outEdges:["q5uigr","hh1y8j"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",navigateTo:"testingCapabilities",x:48,y:664,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:67}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:["hh1y8j"],outEdges:["l7mlxp"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:605,y:664,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:67}},{id:"deploymentEnv",parent:null,level:0,children:["deploymentEnv.edgeConnect","deploymentEnv.k8sCluster"],inEdges:["l7mlxp","tvlbdk"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",depth:1,x:456,y:935,width:900,height:281,labelBBox:{x:6,y:0,width:165,height:15}},{id:"deploymentEnv.edgeConnect",parent:"deploymentEnv",level:1,children:[],inEdges:["l7mlxp"],outEdges:["11aayil"],title:"Edge Connect",modelRef:"deploymentEnv.edgeConnect",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment orchestration platform"},tags:[],technology:"EdgeConnect",kind:"system",x:496,y:996,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:67}},{id:"deploymentEnv.k8sCluster",parent:"deploymentEnv",level:1,children:[],inEdges:["tvlbdk","11aayil"],outEdges:[],title:"Kubernetes Cluster",modelRef:"deploymentEnv.k8sCluster",shape:"rectangle",color:"secondary",style:{opacity:15,size:"md"},description:{txt:"K8s cluster on edge cloudlet (Munich)"},tags:[],technology:"Kubernetes",kind:"system",x:996,y:996,width:320,height:180,labelBBox:{x:33,y:53,width:255,height:67}}],edges:[{id:"1it4ty8",source:"documentor",target:"docPlatform.contentRepo",label:"[...]",dotpos:"e,398.3,333.97 604.24,179.87 543.08,225.63 468.55,281.41 406.57,327.78",points:[[604,180],[543,226],[469,281],[407,328]],labelBBox:{x:517,y:239,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,723,332.26 723,179.87 723,223.7 723,276.72 723,321.86",points:[[723,180],[723,224],[723,277],[723,322]],labelBBox:{x:724,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"cptcjf",source:"docPlatform.contentRepo",target:"cicdPipeline.githubActions",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,227.93,664.14 261.88,512.74 252.07,556.48 240.25,609.2 230.18,654.09",points:[[262,513],[252,556],[240,609],[230,654]],labelBBox:{x:248,y:572,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1r2t3dd",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions",label:"can run locally",dotpos:"e,346.49,664.26 584.31,511.87 513.46,557.27 427.23,612.52 355.2,658.68",points:[[584,512],[513,557],[427,613],[355,659]],labelBBox:{x:482,y:572,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"},{id:"q5uigr",source:"cicdPipeline.githubActions",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,190.36,512.35 160.53,664.25 150.58,634.62 145.95,601.61 156.75,572 163.3,554.02 173.08,536.7 184.34,520.64",points:[[161,664],[151,635],[146,602],[157,572],[163,554],[173,537],[184,521]],labelBBox:{x:158,y:572,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"hh1y8j",source:"cicdPipeline.githubActions",target:"cicdPipeline.containerBuild",label:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},dotpos:"e,605.08,754 367.99,754 439.05,754 522.78,754 594.98,754",points:[[368,754],[439,754],[523,754],[595,754]],labelBBox:{x:424,y:728,width:125,height:18},parent:"cicdPipeline",relations:["1knexmm"],color:"gray",line:"dashed",head:"normal"},{id:"l7mlxp",source:"cicdPipeline.containerBuild",target:"deploymentEnv.edgeConnect",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,685.31,996.26 735.65,843.87 721.11,887.89 703.51,941.16 688.56,986.43",points:[[736,844],[721,888],[704,941],[689,986]],labelBBox:{x:715,y:904,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"tvlbdk",source:"documentor",target:"deploymentEnv.k8sCluster",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,1153.9,996.01 873.63,179.94 906.57,205.58 938.32,236.13 961,270.8 1108.8,496.63 1144.8,823.18 1153.4,985.55",points:[[874,180],[907,206],[938,236],[961,271],[1109,497],[1145,823],[1153,986]],labelBBox:{x:1096,y:572,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"11aayil",source:"deploymentEnv.edgeConnect",target:"deploymentEnv.k8sCluster",label:"deploys to",description:{txt:"Via edgeconnectdeployment.yaml"},dotpos:"e,996,1086 815.92,1086 870.12,1086 930.84,1086 985.81,1086",points:[[816,1086],[870,1086],[931,1086],[986,1086]],labelBBox:{x:872,y:1060,width:68,height:18},parent:"deploymentEnv",relations:["3gelf9"],color:"gray",line:"dashed",head:"normal"}]},testingCapabilities:{_type:"element",tags:null,links:null,viewOf:"cicdPipeline.githubActions",_stage:"layouted",sourcePath:"models/doc-platform/documentation-platform.c4",description:{txt:"All automated tests that ensure documentation quality"},title:"Testing Capabilities",id:"testingCapabilities",autoLayout:{direction:"TB"},hash:"76ca10e2d3f66b60e0e770ed653c00e8c3dff101",bounds:{x:0,y:0,width:1845,height:629},nodes:[{id:"docPlatform",parent:null,level:0,children:["docPlatform.taskfile","docPlatform.hugoSite","docPlatform.contentRepo.contentPages"],inEdges:["4wakcq","ln4mn5","iktojz","1lhijkz"],outEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:553,y:8,width:1284,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:[],outEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:1023,y:69,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:86}},{id:"cicdPipeline.githubActions",parent:null,level:0,children:["cicdPipeline.githubActions.testBuild","cicdPipeline.githubActions.testHtml","cicdPipeline.githubActions.testLinks","cicdPipeline.githubActions.testMarkdown"],inEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],outEdges:["4wakcq","ln4mn5","iktojz","1lhijkz"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",depth:1,x:8,y:340,width:1690,height:281,labelBBox:{x:6,y:0,width:99,height:15}},{id:"cicdPipeline.githubActions.testBuild",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["1eaxawv"],outEdges:["4wakcq"],title:"Build Test",modelRef:"cicdPipeline.githubActions.testBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo build validation"},tags:[],technology:"Hugo",kind:"component",x:48,y:401,width:320,height:180,labelBBox:{x:88,y:53,width:143,height:68}},{id:"cicdPipeline.githubActions.testHtml",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["efibas"],outEdges:["ln4mn5"],title:"HTML Validation",modelRef:"cicdPipeline.githubActions.testHtml",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Generated HTML validation"},tags:[],technology:"htmlvalidate",kind:"component",x:908,y:401,width:320,height:180,labelBBox:{x:66,y:53,width:187,height:68}},{id:"cicdPipeline.githubActions.testLinks",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["1e3oxi2"],outEdges:["iktojz"],title:"Link Checker",modelRef:"cicdPipeline.githubActions.testLinks",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Broken link detection"},tags:[],technology:"htmltest",kind:"component",x:478,y:401,width:320,height:180,labelBBox:{x:88,y:53,width:143,height:68}},{id:"cicdPipeline.githubActions.testMarkdown",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["hv4xce"],outEdges:["1lhijkz"],title:"Markdown Lint",modelRef:"cicdPipeline.githubActions.testMarkdown",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown syntax and style checking"},tags:[],technology:"markdownlint",kind:"component",x:1338,y:401,width:320,height:180,labelBBox:{x:36,y:53,width:248,height:68}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["4wakcq","ln4mn5","iktojz"],outEdges:[],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:593,y:69,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:86}},{id:"docPlatform.contentRepo.contentPages",parent:"docPlatform",level:1,children:[],inEdges:["1lhijkz"],outEdges:[],title:"Content Pages",modelRef:"docPlatform.contentRepo.contentPages",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Documentation pages in Markdown format"},tags:[],technology:"Markdown",kind:"component",x:1475,y:69,width:321,height:180,labelBBox:{x:18,y:53,width:286,height:68}}],edges:[{id:"4wakcq",source:"cicdPipeline.githubActions.testBuild",target:"docPlatform.hugoSite",label:"builds",description:{txt:"hugo --gc --minify"},dotpos:"e,593.29,180.37 172.86,401.65 166.12,369.69 166.42,335.14 186.42,309.2 234.84,246.41 434.45,204.83 583.12,181.92",points:[[173,402],[166,370],[166,335],[186,309],[235,246],[434,205],[583,182]],labelBBox:{x:187,y:309,width:41,height:18},parent:null,relations:["omluoy"],color:"gray",line:"dashed",head:"normal"},{id:"ln4mn5",source:"cicdPipeline.githubActions.testHtml",target:"docPlatform.hugoSite",label:"validates output",description:{txt:"Checks generated HTML"},dotpos:"e,837.83,249.07 983.29,401.46 940.59,356.72 888.73,302.39 845.05,256.63",points:[[983,401],[941,357],[889,302],[845,257]],labelBBox:{x:912,y:309,width:102,height:18},parent:null,relations:["1bziuh3"],color:"gray",line:"dashed",head:"normal"},{id:"iktojz",source:"cicdPipeline.githubActions.testLinks",target:"docPlatform.hugoSite",label:"checks links in",description:{txt:"Detects broken links"},dotpos:"e,600.41,249.07 562.94,401.33 546.97,371.84 538.84,338.95 553.75,309.2 563.56,289.61 577.31,271.93 593.05,256.17",points:[[563,401],[547,372],[539,339],[554,309],[564,290],[577,272],[593,256]],labelBBox:{x:555,y:309,width:94,height:18},parent:null,relations:["9nq85f"],color:"gray",line:"dashed",head:"normal"},{id:"1lhijkz",source:"cicdPipeline.githubActions.testMarkdown",target:"docPlatform.contentRepo.contentPages",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,1598.8,249.07 1535.1,401.46 1553.5,357.37 1575.9,303.96 1594.8,258.62",points:[[1535,401],[1554,357],[1576,304],[1595,259]],labelBBox:{x:1572,y:309,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"1eaxawv",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testBuild",label:"can run locally",description:{txt:"task test:build"},dotpos:"e,288.07,401.25 1062.5,249.2 1032.6,265.39 1000.2,280.03 968,289.2 851.77,322.34 537.34,265.89 424.51,309.2 376.79,327.52 332.01,360.97 295.69,394.17",points:[[1062,249],[1033,265],[1e3,280],[968,289],[852,322],[537,266],[425,309],[377,328],[332,361],[296,394]],labelBBox:{x:426,y:309,width:93,height:18},parent:null,relations:["1dzhdhu"],color:"gray",line:"dashed",head:"normal"},{id:"hv4xce",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testMarkdown",label:"can run locally",description:{txt:"task test:markdown"},dotpos:"e,1416.3,401.46 1275.9,249.07 1317.1,293.82 1367.1,348.15 1409.3,393.9",points:[[1276,249],[1317,294],[1367,348],[1409,394]],labelBBox:{x:1347,y:309,width:93,height:18},parent:null,relations:["14ls3qa"],color:"gray",line:"dashed",head:"normal"},{id:"efibas",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testHtml",label:"can run locally",description:{txt:"task test:html"},dotpos:"e,1101.9,401.46 1160.1,249.07 1143.3,293.09 1122.9,346.36 1105.6,391.63",points:[[1160,249],[1143,293],[1123,346],[1106,392]],labelBBox:{x:1136,y:309,width:93,height:18},parent:null,relations:["htx1q7"],color:"gray",line:"dashed",head:"normal"},{id:"1e3oxi2",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testLinks",label:"can run locally",description:{txt:"task test:links"},dotpos:"e,685.67,401.5 1058.9,249.19 1029.9,264.85 998.74,279.29 968,289.2 887.4,315.19 852.51,268.01 778.51,309.2 743.41,328.74 714.14,361.02 691.56,392.96",points:[[1059,249],[1030,265],[999,279],[968,289],[887,315],[853,268],[779,309],[743,329],[714,361],[692,393]],labelBBox:{x:780,y:309,width:93,height:18},parent:null,relations:["1vqq9gw"],color:"gray",line:"dashed",head:"normal"}]},index:{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/kind/kind.c4",description:null,title:"Local Kind Deployment",id:"index",autoLayout:{direction:"TB"},hash:"2567bb136f9a38fc393b5cf518bffb4ed976b0ed",bounds:{x:0,y:0,width:13187,height:1755},nodes:[{id:"local",parent:null,level:0,children:["local.ingressNginx","local.velero","local.crossplane","local.externalSecrets","local.monitoring","local.backstage","local.argocd","local.gitea","local.keycloak","local.openbao","local.fibonacci","local.mailhog","local.minio","local.spark.sparkoperator"],inEdges:[],outEdges:[],deploymentRef:"local",title:"Local kind-cluster",kind:"environment",technology:"Kind",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"Local kind-cluster environment for EDP, typically run by edpbuilder"},tags:[],style:{opacity:15,size:"md"},depth:2,x:2267,y:8,width:10912,height:1102,labelBBox:{x:6,y:0,width:127,height:15}},{id:"otc-faas",parent:null,level:0,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas",title:"OTC prototype FaaS",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"OTC environments for Prototype faaS."},tags:[],style:{opacity:15,size:"md"},x:0,y:150,width:320,height:180,labelBBox:{x:30,y:54,width:259,height:67}},{id:"edge",parent:null,level:0,children:[],inEdges:[],outEdges:[],deploymentRef:"edge",title:"Edge Cloud",kind:"cloud",technology:"Edge",color:"primary",shape:"rectangle",description:{txt:"Edge environments for distributed workloads."},tags:[],style:{opacity:15,size:"md"},x:450,y:150,width:340,height:180,labelBBox:{x:18,y:54,width:304,height:67}},{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.cce","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:["r3wxut","1sng0q0","e3benz"],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. 

A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP.
Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:1,x:855,y:79,width:870,height:981,labelBBox:{x:6,y:0,width:280,height:15}},{id:"local.ingressNginx",parent:"local",level:1,children:["local.ingressNginx.ingressNginx"],inEdges:[],outEdges:["15juth8","p2br4p","o229dq","2vnvvg","4ix58c","1hr2s5j","1nksp5g","m2japo","4drflo","ihlgsc"],deploymentRef:"local.ingressNginx",title:"ingress-nginx",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.ingressNginx.ingressNginx",icon:"tech:nginx",tags:[],style:{opacity:15,size:"md"},depth:1,x:4970,y:97,width:384,height:265,labelBBox:{x:6,y:0,width:92,height:15}},{id:"local.velero",parent:"local",level:1,children:["local.velero.velero"],inEdges:[],outEdges:["3znaik"],deploymentRef:"local.velero",title:"Velero",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.velero.velero",tags:[],style:{opacity:15,size:"md"},depth:1,x:8255,y:97,width:384,height:265,labelBBox:{x:6,y:0,width:49,height:15}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:[],inEdges:[],outEdges:["109g3jm"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},x:920,y:150,width:342,height:180,labelBBox:{x:18,y:54,width:306,height:66}},{id:"local.crossplane",parent:"local",level:1,children:["local.crossplane.crossplane","local.crossplane.crossplaneFunction","local.crossplane.crossplaneRbacManager","local.crossplane.providerArgoCD","local.crossplane.providerKind","local.crossplane.providerShell"],inEdges:[],outEdges:[],deploymentRef:"local.crossplane",title:"crossplane-system",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:8689,y:79,width:2670,height:301,labelBBox:{x:6,y:0,width:129,height:15}},{id:"local.crossplane.crossplane",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Crossplane",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.crossplane",modelRef:"edp.crossplane.crossplane",x:8739,y:150,width:320,height:180,labelBBox:{x:107,y:74,width:105,height:24}},{id:"local.crossplane.crossplaneFunction",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Function Patch and Transform",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.crossplaneFunction",modelRef:"edp.crossplane.crossplaneFunction",x:9189,y:150,width:320,height:180,labelBBox:{x:24,y:74,width:273,height:24}},{id:"local.crossplane.crossplaneRbacManager",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"RBAC Manager",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.crossplaneRbacManager",modelRef:"edp.crossplane.crossplaneRbacManager",x:9639,y:150,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"local.crossplane.providerArgoCD",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"ArgoCD Provider",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.providerArgoCD",modelRef:"edp.crossplane.providerArgoCD",x:10089,y:150,width:320,height:180,labelBBox:{x:82,y:74,width:155,height:24}},{id:"local.crossplane.providerKind",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Kind Provider",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.providerKind",modelRef:"edp.crossplane.providerKind",x:10539,y:150,width:320,height:180,labelBBox:{x:98,y:74,width:124,height:24}},{id:"local.crossplane.providerShell",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Shell Provider",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.providerShell",modelRef:"edp.crossplane.providerShell",x:10989,y:150,width:320,height:180,labelBBox:{x:96,y:74,width:129,height:24}},{id:"local.externalSecrets",parent:"local",level:1,children:["local.externalSecrets.certController","local.externalSecrets.externalSecrets","local.externalSecrets.webhook"],inEdges:[],outEdges:[],deploymentRef:"local.externalSecrets",title:"external-secrets",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:11409,y:79,width:1320,height:301,labelBBox:{x:6,y:0,width:119,height:15}},{id:"local.externalSecrets.certController",parent:"local.externalSecrets",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"cert-controller",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.externalSecrets.certController",modelRef:"edp.externalSecrets.certController",x:11459,y:150,width:320,height:180,labelBBox:{x:97,y:74,width:126,height:24}},{id:"local.externalSecrets.externalSecrets",parent:"local.externalSecrets",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets controller",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.externalSecrets.externalSecrets",modelRef:"edp.externalSecrets.externalSecrets",x:11909,y:150,width:320,height:180,labelBBox:{x:43,y:74,width:234,height:24}},{id:"local.externalSecrets.webhook",parent:"local.externalSecrets",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"webhook",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.externalSecrets.webhook",modelRef:"edp.externalSecrets.webhook",x:12359,y:150,width:320,height:180,labelBBox:{x:118,y:74,width:84,height:24}},{id:"local.monitoring",parent:"local",level:1,children:["local.monitoring.gateway","local.monitoring.ingestor","local.monitoring.querier","local.monitoring.alloy","local.monitoring.queryFrontend","local.monitoring.distributor"],inEdges:["1hr2s5j","1nksp5g"],outEdges:[],deploymentRef:"local.monitoring",title:"monitoring",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:2787,y:79,width:1320,height:981,labelBBox:{x:6,y:0,width:75,height:15}},{id:"local.monitoring.gateway",parent:"local.monitoring",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Gateway",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.gateway",modelRef:"edp.monitoring.loki.gateway",x:2837,y:150,width:320,height:180,labelBBox:{x:119,y:74,width:83,height:24}},{id:"local.monitoring.ingestor",parent:"local.monitoring",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Ingestor",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.ingestor",modelRef:"edp.monitoring.loki.ingestor",x:3287,y:150,width:320,height:180,labelBBox:{x:122,y:74,width:76,height:24}},{id:"local.monitoring.querier",parent:"local.monitoring",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Querier",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.querier",modelRef:"edp.monitoring.loki.querier",x:3737,y:150,width:320,height:180,labelBBox:{x:125,y:74,width:71,height:24}},{id:"local.ingressNginx.ingressNginx",parent:"local.ingressNginx",level:2,children:[],inEdges:[],outEdges:["15juth8","p2br4p","o229dq","2vnvvg","4ix58c","1hr2s5j","1nksp5g","m2japo","4drflo","ihlgsc"],kind:"instance",title:"ingress-nginx",technology:"Nginx",tags:[],icon:"tech:nginx",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.ingressNginx.ingressNginx",modelRef:"edp.ingressNginx.ingressNginx",x:5002,y:150,width:320,height:180,labelBBox:{x:85,y:65,width:181,height:45}},{id:"local.velero.velero",parent:"local.velero",level:2,children:[],inEdges:[],outEdges:["3znaik"],kind:"instance",title:"Velero",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.velero.velero",modelRef:"edp.velero.velero",x:8287,y:150,width:320,height:180,labelBBox:{x:129,y:74,width:62,height:24}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:[],inEdges:["109g3jm"],outEdges:["llfvob","fil3na"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},x:927,y:497,width:327,height:180,labelBBox:{x:46,y:54,width:266,height:67}},{id:"local.backstage",parent:"local",level:1,children:["local.backstage.backstage","local.backstage.database"],inEdges:["15juth8"],outEdges:[],deploymentRef:"local.backstage",title:"backstage",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:5041,y:426,width:420,height:634,labelBBox:{x:6,y:0,width:74,height:15}},{id:"local.argocd",parent:"local",level:1,children:["local.argocd.argocdAppController","local.argocd.argocdAppSetController","local.argocd.argocdRepoServer","local.argocd.argocdServer","local.argocd.argocdRedis"],inEdges:["p2br4p"],outEdges:[],deploymentRef:"local.argocd",title:"argocd",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:5511,y:426,width:1770,height:634,labelBBox:{x:6,y:0,width:53,height:15}},{id:"local.gitea",parent:"local",level:1,children:["local.gitea.forgejo"],inEdges:["o229dq"],outEdges:[],deploymentRef:"local.gitea",title:"gitea",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:7331,y:444,width:404,height:265,labelBBox:{x:6,y:0,width:38,height:15}},{id:"local.keycloak",parent:"local",level:1,children:["local.keycloak.keycloak","local.keycloak.keycloakDB"],inEdges:["2vnvvg"],outEdges:[],deploymentRef:"local.keycloak",title:"keycloak",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:2317,y:426,width:420,height:634,labelBBox:{x:6,y:0,width:66,height:15}},{id:"local.openbao",parent:"local",level:1,children:["local.openbao.openbao","local.openbao.agentInjector"],inEdges:["m2japo"],outEdges:[],deploymentRef:"local.openbao",title:"openbao",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:7785,y:79,width:420,height:648,labelBBox:{x:6,y:0,width:60,height:15}},{id:"local.fibonacci",parent:"local",level:1,children:["local.fibonacci.fibonacci"],inEdges:["4drflo"],outEdges:[],deploymentRef:"local.fibonacci",title:"fibonacci-app",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.testApp.fibonacci",icon:"tech:go",tags:[],style:{opacity:15,size:"md"},depth:1,x:4157,y:444,width:384,height:265,labelBBox:{x:6,y:0,width:91,height:15}},{id:"local.mailhog",parent:"local",level:1,children:["local.mailhog.mailhog"],inEdges:["ihlgsc"],outEdges:[],deploymentRef:"local.mailhog",title:"Mailhog",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.mailhog.mailhog",icon:"tech:go",tags:[],style:{opacity:15,size:"md"},depth:1,x:4607,y:444,width:384,height:265,labelBBox:{x:6,y:0,width:56,height:15}},{id:"local.minio",parent:"local",level:1,children:["local.minio.minio"],inEdges:["3znaik","4ix58c"],outEdges:[],deploymentRef:"local.minio",title:"minio-backup",kind:"namespace",color:"primary",shape:"storage",modelRef:"edp.minio.minio",tags:[],style:{opacity:15,size:"md"},depth:1,x:8255,y:444,width:384,height:265,labelBBox:{x:6,y:0,width:86,height:15}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure",parent:"otc-edpFoundry",level:1,children:[],inEdges:["llfvob"],outEdges:["r3wxut","e3benz"],deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure",title:"EDP infrastructure Workflow",kind:"computeressource",color:"primary",shape:"rectangle",description:{txt:"EDP infrastructure Workflow"},tags:[],style:{opacity:15,size:"md"},x:905,y:830,width:320,height:180,labelBBox:{x:32,y:63,width:255,height:48}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",parent:"otc-edpFoundry",level:1,children:[],inEdges:["fil3na"],outEdges:["1sng0q0"],deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",title:"EDP ArgoCD Workflow",kind:"computeressource",color:"primary",shape:"rectangle",description:{txt:"EDP Setup ArgoCD Workflow"},tags:[],style:{opacity:15,size:"md"},x:1355,y:830,width:320,height:180,labelBBox:{x:55,y:63,width:210,height:48}},{id:"local.backstage.backstage",parent:"local.backstage",level:2,children:[],inEdges:["15juth8"],outEdges:["19kg5y"],kind:"instance",title:"Backstage",tags:[],icon:"tech:react",color:"primary",shape:"browser",style:{opacity:15,size:"md"},deploymentRef:"local.backstage.backstage",modelRef:"edp.ui.backstage",x:5091,y:497,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}},{id:"local.argocd.argocdAppController",parent:"local.argocd",level:2,children:[],inEdges:[],outEdges:["1gfgfhk"],kind:"instance",title:"ApplicationController",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdAppController",modelRef:"edp.argoCD.argocdAppController",x:5561,y:497,width:320,height:180,labelBBox:{x:66,y:74,width:189,height:24}},{id:"local.argocd.argocdAppSetController",parent:"local.argocd",level:2,children:[],inEdges:[],outEdges:["qfu5xm"],kind:"instance",title:"ApplicationSeetController",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdAppSetController",modelRef:"edp.argoCD.argocdAppSetController",x:6011,y:497,width:320,height:180,labelBBox:{x:45,y:74,width:230,height:24}},{id:"local.argocd.argocdRepoServer",parent:"local.argocd",level:2,children:[],inEdges:[],outEdges:["g7xnzs"],kind:"instance",title:"Repo Server",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdRepoServer",modelRef:"edp.argoCD.argocdRepoServer",x:6461,y:497,width:320,height:180,labelBBox:{x:102,y:74,width:116,height:24}},{id:"local.argocd.argocdServer",parent:"local.argocd",level:2,children:[],inEdges:["p2br4p"],outEdges:["fon3rk"],kind:"instance",title:"ArgoCD Server",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdServer",modelRef:"edp.argoCD.argocdServer",x:6911,y:497,width:320,height:180,labelBBox:{x:90,y:74,width:140,height:24}},{id:"local.gitea.forgejo",parent:"local.gitea",level:2,children:[],inEdges:["o229dq"],outEdges:[],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"local.gitea.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:7363,y:497,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"local.keycloak.keycloak",parent:"local.keycloak",level:2,children:[],inEdges:["2vnvvg"],outEdges:["4zwy1m"],kind:"instance",title:"Keycloak",technology:"Java",tags:[],icon:"tech:java",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.keycloak.keycloak",modelRef:"edp.keycloak.keycloak",x:2367,y:497,width:320,height:180,labelBBox:{x:104,y:65,width:143,height:45}},{id:"local.monitoring.alloy",parent:"local.monitoring",level:2,children:[],inEdges:["1hr2s5j"],outEdges:["sb2j38"],kind:"instance",title:"Alloy",description:{txt:"Open Telemetry Collector"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:15,size:"md",multiple:!0},deploymentRef:"local.monitoring.alloy",modelRef:"edp.monitoring.alloy",x:3737,y:497,width:320,height:180,labelBBox:{x:59,y:63,width:233,height:48}},{id:"local.monitoring.queryFrontend",parent:"local.monitoring",level:2,children:[],inEdges:["1nksp5g"],outEdges:[],kind:"instance",title:"Query Frontend",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.queryFrontend",modelRef:"edp.monitoring.loki.queryFrontend",x:3287,y:497,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"local.openbao.openbao",parent:"local.openbao",level:2,children:[],inEdges:["m2japo"],outEdges:[],kind:"instance",title:"Openbao",technology:"Openbao",tags:[],color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.openbao.openbao",modelRef:"edp.openbao.openbao",x:7835,y:497,width:320,height:180,labelBBox:{x:117,y:65,width:86,height:45}},{id:"local.openbao.agentInjector",parent:"local.openbao",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Agent Injector",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.openbao.agentInjector",modelRef:"edp.openbao.agentInjector",x:7835,y:150,width:320,height:180,labelBBox:{x:96,y:74,width:127,height:24}},{id:"local.fibonacci.fibonacci",parent:"local.fibonacci",level:2,children:[],inEdges:["4drflo"],outEdges:[],kind:"instance",title:"Fibonacci",technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.fibonacci.fibonacci",modelRef:"edp.testApp.fibonacci",x:4189,y:497,width:320,height:180,labelBBox:{x:101,y:65,width:148,height:45}},{id:"local.mailhog.mailhog",parent:"local.mailhog",level:2,children:[],inEdges:["ihlgsc"],outEdges:[],kind:"instance",title:"Mailhog",technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.mailhog.mailhog",modelRef:"edp.mailhog.mailhog",x:4639,y:497,width:320,height:180,labelBBox:{x:109,y:65,width:132,height:45}},{id:"local.minio.minio",parent:"local.minio",level:2,children:[],inEdges:["3znaik","4ix58c"],outEdges:[],kind:"instance",title:"S3 Blob Storage",technology:"Minio",tags:[],color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.minio.minio",modelRef:"edp.minio.minio",x:8287,y:497,width:320,height:180,labelBBox:{x:85,y:65,width:150,height:45}},{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:["r3wxut","1sng0q0","e3benz"],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. 
    
    This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:1,x:1775,y:79,width:442,height:1668,labelBBox:{x:6,y:0,width:181,height:15}},{id:"local.backstage.database",parent:"local.backstage",level:2,children:[],inEdges:["19kg5y"],outEdges:[],kind:"instance",title:"Database",technology:"Postgresql",tags:[],icon:"tech:postgresql",color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.backstage.database",modelRef:"edp.ui.database",x:5091,y:830,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}},{id:"local.argocd.argocdRedis",parent:"local.argocd",level:2,children:[],inEdges:["1gfgfhk","qfu5xm","g7xnzs","fon3rk"],outEdges:[],kind:"instance",title:"Redis",technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdRedis",modelRef:"edp.argoCD.argocdRedis",x:6686,y:830,width:320,height:180,labelBBox:{x:119,y:64,width:113,height:46}},{id:"local.keycloak.keycloakDB",parent:"local.keycloak",level:2,children:[],inEdges:["4zwy1m"],outEdges:[],kind:"instance",title:"Database",technology:"Postgresql",tags:[],icon:"tech:postgresql",color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.keycloak.keycloakDB",modelRef:"edp.keycloak.keycloakDB",x:2367,y:830,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}},{id:"local.monitoring.distributor",parent:"local.monitoring",level:2,children:[],inEdges:["sb2j38"],outEdges:[],kind:"instance",title:"Distributor",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.distributor",modelRef:"edp.monitoring.loki.distributor",x:3737,y:830,width:320,height:180,labelBBox:{x:112,y:74,width:95,height:24}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:[],outEdges:["fkkf8y"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},x:1825,y:150,width:342,height:180,labelBBox:{x:18,y:54,width:306,height:66}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:["fkkf8y","r3wxut","1sng0q0"],outEdges:["pit45i"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},x:1828,y:1206,width:327,height:180,labelBBox:{x:46,y:53,width:266,height:67}},{id:"otc-edp-per-tenant.cloudServices",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:["pit45i","e3benz"],outEdges:[],deploymentRef:"otc-edp-per-tenant.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services"},tags:[],style:{opacity:15,size:"md"},x:1832,y:1517,width:320,height:180,labelBBox:{x:67,y:53,width:185,height:67}},{id:"local.spark.sparkoperator",parent:"local",level:1,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Spark Operator",technology:"Spark",tags:[],icon:"tech:spark",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.spark.sparkoperator",modelRef:"edp.spark.sparkoperator",x:12809,y:150,width:320,height:180,labelBBox:{x:76,y:65,width:198,height:45}}],edges:[{id:"pit45i",source:"otc-edp-per-tenant.cce",target:"otc-edp-per-tenant.cloudServices",label:null,dotpos:"e,1992,1517.1 1992,1386 1992,1423.8 1992,1468 1992,1506.9",points:[[1992,1386],[1992,1424],[1992,1468],[1992,1507]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9","15njmlz","hks76r","1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"fkkf8y",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure",target:"otc-edp-per-tenant.cce",label:"registers",dotpos:"e,1992.4,1206.3 1995.7,330.32 1994.9,525.74 1993.2,991.45 1992.4,1195.9",points:[[1996,330],[1995,526],[1993,991],[1992,1196]],labelBBox:{x:1995,y:742,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"r3wxut",source:"otc-edpFoundry.workflowSetupEDPInfrastructure",target:"otc-edp-per-tenant.cce",label:"deploys edp to otc.cce",dotpos:"e,1828.4,1241.5 1146.9,1010.2 1186.4,1047.4 1236.7,1087.3 1290,1110.2 1318.8,1122.6 1329.3,1112.2 1360,1118.2 1517.4,1149 1692.7,1199.3 1818.7,1238.5",points:[[1147,1010],[1186,1047],[1237,1087],[1290,1110],[1319,1123],[1329,1112],[1360,1118],[1517,1149],[1693,1199],[1819,1238]],labelBBox:{x:1466,y:1118,width:143,height:18},parent:null,relations:["uk77s5"],color:"gray",line:"dashed",head:"normal"},{id:"1sng0q0",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",target:"otc-edp-per-tenant.cce",label:null,dotpos:"e,1869.5,1206.1 1619.9,1010.1 1658.3,1042.1 1702.3,1078.2 1743,1110.2 1781,1140 1822.9,1171.6 1861.3,1200",points:[[1620,1010],[1658,1042],[1702,1078],[1743,1110],[1781,1140],[1823,1172],[1861,1200]],labelBBox:null,parent:null,relations:["jde35l"],color:"gray",line:"dashed",head:"normal"},{id:"e3benz",source:"otc-edpFoundry.workflowSetupEDPInfrastructure",target:"otc-edp-per-tenant.cloudServices",label:"deploys edp to otc.paas",dotpos:"e,1832.4,1523 1157.9,1010 1262.9,1108 1441.1,1267.5 1609.1,1386 1676.6,1433.6 1755,1480 1823.3,1517.9",points:[[1158,1010],[1263,1108],[1441,1268],[1609,1386],[1677,1434],[1755,1480],[1823,1518]],labelBBox:{x:1610,y:1284,width:152,height:18},parent:null,relations:["1pfc6bl"],color:"gray",line:"dashed",head:"normal"},{id:"llfvob",source:"otc-edpFoundry.cce",target:"otc-edpFoundry.workflowSetupEDPInfrastructure",label:"invokes",dotpos:"e,1072,830.31 1084.1,677.05 1080.6,721.08 1076.4,774.44 1072.8,819.85",points:[[1084,677],[1081,721],[1076,774],[1073,820]],labelBBox:{x:1080,y:742,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"fil3na",source:"otc-edpFoundry.cce",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",label:"invokes",dotpos:"e,1401.2,830.42 1204.9,677.27 1263,722.59 1333.7,777.76 1392.9,823.96",points:[[1205,677],[1263,723],[1334,778],[1393,824]],labelBBox:{x:1317,y:742,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"109g3jm",source:"otc-edpFoundry.forgejoRunnerInfrastructure",target:"otc-edpFoundry.cce",label:"registers",dotpos:"e,1091,497.56 1091,330.25 1091,378.24 1091,437.64 1091,487.15",points:[[1091,330],[1091,378],[1091,438],[1091,487]],labelBBox:{x:1092,y:395,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"},{id:"19kg5y",source:"local.backstage.backstage",target:"local.backstage.database",label:"reads/writes",dotpos:"e,5251,829.44 5251,677.05 5251,720.81 5251,773.79 5251,819.02",points:[[5251,677],[5251,721],[5251,774],[5251,819]],labelBBox:{x:5252,y:742,width:79,height:18},parent:"local.backstage",relations:["c23sak"],color:"gray",line:"dashed",head:"normal"},{id:"1gfgfhk",source:"local.argocd.argocdAppController",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,6686.3,901.97 5848.2,677.38 5879.1,696.06 5912.9,714.1 5946,727.4 6189.6,825.15 6491.1,876.43 6676,900.62",points:[[5848,677],[5879,696],[5913,714],[5946,727],[6190,825],[6491,876],[6676,901]],labelBBox:{x:6040,y:742,width:65,height:18},parent:"local.argocd",relations:["10vkxaf"],color:"gray",line:"dashed",head:"normal"},{id:"qfu5xm",source:"local.argocd.argocdAppSetController",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,6686.1,857.88 6307.8,677.39 6336.5,694.78 6366.9,712.29 6396,727.4 6486.5,774.29 6591,819.37 6676.6,854.03",points:[[6308,677],[6336,695],[6367,712],[6396,727],[6487,774],[6591,819],[6677,854]],labelBBox:{x:6469,y:742,width:65,height:18},parent:"local.argocd",relations:["i8z0mi"],color:"gray",line:"dashed",head:"normal"},{id:"g7xnzs",source:"local.argocd.argocdRepoServer",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,6785.6,830.31 6681.3,677.05 6711.7,721.73 6748.6,776.01 6779.8,821.85",points:[[6681,677],[6712,722],[6749,776],[6780,822]],labelBBox:{x:6741,y:742,width:65,height:18},parent:"local.argocd",relations:["iullhy"],color:"gray",line:"dashed",head:"normal"},{id:"fon3rk",source:"local.argocd.argocdServer",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,6906.5,830.31 7010.7,677.05 6980.3,721.73 6943.4,776.01 6912.2,821.85",points:[[7011,677],[6980,722],[6943,776],[6912,822]],labelBBox:{x:6966,y:742,width:65,height:18},parent:"local.argocd",relations:["yfhhi5"],color:"gray",line:"dashed",head:"normal"},{id:"4zwy1m",source:"local.keycloak.keycloak",target:"local.keycloak.keycloakDB",label:"reads/writes",dotpos:"e,2527,829.44 2527,677.05 2527,720.81 2527,773.79 2527,819.02",points:[[2527,677],[2527,721],[2527,774],[2527,819]],labelBBox:{x:2528,y:742,width:79,height:18},parent:"local.keycloak",relations:["18zxrhs"],color:"gray",line:"dashed",head:"normal"},{id:"sb2j38",source:"local.monitoring.alloy",target:"local.monitoring.distributor",label:"pushes logs",dotpos:"e,3897,830.31 3897,677.05 3897,721.08 3897,774.44 3897,819.85",points:[[3897,677],[3897,721],[3897,774],[3897,820]],labelBBox:{x:3898,y:742,width:79,height:18},parent:"local.monitoring",relations:["11ollyi"],color:"gray",line:"dashed",head:"normal"},{id:"15juth8",source:"local.ingressNginx.ingressNginx",target:"local.backstage.backstage",label:"https",dotpos:"e,5228.1,497.56 5184.9,330.25 5197.3,378.34 5212.7,437.89 5225.5,487.46",points:[[5185,330],[5197,378],[5213,438],[5226,487]],labelBBox:{x:5208,y:395,width:34,height:18},parent:"local",relations:["v8c8aq"],color:"gray",line:"dashed",head:"normal"},{id:"p2br4p",source:"local.ingressNginx.ingressNginx",target:"local.argocd.argocdServer",label:"https",dotpos:"e,6969.6,497.57 5321.9,248.67 5686.5,266.89 6569.4,320.8 6846,426.2 6886.6,441.65 6926.6,466.2 6961.3,491.48",points:[[5322,249],[5686,267],[6569,321],[6846,426],[6887,442],[6927,466],[6961,491]],labelBBox:{x:6800,y:395,width:34,height:18},parent:"local",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"o229dq",source:"local.ingressNginx.ingressNginx",target:"local.gitea.forgejo",label:"https",dotpos:"e,7435.2,497.59 5322,244.07 5756.1,253.04 6947.9,289.78 7313,426.2 7353.4,441.28 7392.9,465.94 7427.1,491.45",points:[[5322,244],[5756,253],[6948,290],[7313,426],[7353,441],[7393,466],[7427,491]],labelBBox:{x:7286,y:395,width:34,height:18},parent:"local",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"2vnvvg",source:"local.ingressNginx.ingressNginx",target:"local.keycloak.keycloak",label:"https",dotpos:"e,2625.6,497.46 5002.3,279.97 4813.6,323.42 4489.7,391.47 4207,418.2 4166.9,422 2793.4,413.93 2755,426.2 2711.9,439.98 2669.8,465.12 2633.7,491.47",points:[[5002,280],[4814,323],[4490,391],[4207,418],[4167,422],[2793,414],[2755,426],[2712,440],[2670,465],[2634,491]],labelBBox:{x:4392,y:395,width:34,height:18},parent:"local",relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"3znaik",source:"local.velero.velero",target:"local.minio.minio",label:"store backups",dotpos:"e,8447,496.66 8447,330.25 8447,377.96 8447,436.95 8447,486.28",points:[[8447,330],[8447,378],[8447,437],[8447,486]],labelBBox:{x:8448,y:395,width:91,height:18},parent:"local",relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"},{id:"4ix58c",source:"local.ingressNginx.ingressNginx",target:"local.minio.minio",label:"https",dotpos:"e,8354.4,496.97 5321.9,249.75 5943.5,282.35 8168,400.56 8237,426.2 8276.1,440.71 8313.8,465.08 8346.3,490.49",points:[[5322,250],[5944,282],[8168,401],[8237,426],[8276,441],[8314,465],[8346,490]],labelBBox:{x:8166,y:395,width:34,height:18},parent:"local",relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"1hr2s5j",source:"local.ingressNginx.ingressNginx",target:"local.monitoring.alloy",label:"https",dotpos:"e,3996,497.55 5002.2,304.14 4889.1,345.23 4732.7,395.4 4590,418.2 4539,426.36 4174.2,410.2 4125,426.2 4082,440.2 4040.1,465.32 4004.1,491.58",points:[[5002,304],[4889,345],[4733,395],[4590,418],[4539,426],[4174,410],[4125,426],[4082,440],[4040,465],[4004,492]],labelBBox:{x:4703,y:395,width:34,height:18},parent:"local",relations:["1jvab2g"],color:"gray",line:"dashed",head:"normal"},{id:"1nksp5g",source:"local.ingressNginx.ingressNginx",target:"local.monitoring.queryFrontend",label:"https",dotpos:"e,3544.5,497.4 5002.1,289.49 4850.2,332.64 4614.4,392.92 4405,418.2 4364.6,423.08 3710.7,413.59 3672,426.2 3629.6,440.02 3588.3,464.95 3552.9,491.09",points:[[5002,289],[4850,333],[4614,393],[4405,418],[4365,423],[3711,414],[3672,426],[3630,440],[3588,465],[3553,491]],labelBBox:{x:4553,y:395,width:34,height:18},parent:"local",relations:["fs60l7"],color:"gray",line:"dashed",head:"normal"},{id:"m2japo",source:"local.ingressNginx.ingressNginx",target:"local.openbao.openbao",label:"https",dotpos:"e,7894.1,497.86 5321.9,241.61 5816.1,243.99 7312.9,264.7 7767,426.2 7808.9,441.09 7850.1,465.93 7885.7,491.66",points:[[5322,242],[5816,244],[7313,265],[7767,426],[7809,441],[7850,466],[7886,492]],labelBBox:{x:7733,y:395,width:34,height:18},parent:"local",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"4drflo",source:"local.ingressNginx.ingressNginx",target:"local.fibonacci.fibonacci",label:"https",dotpos:"e,4448.1,497.54 5002.1,329.85 4932.3,363.96 4848.3,399.27 4768,418.2 4726.2,428.05 4615.6,412.33 4575,426.2 4533,440.55 4491.9,465.39 4456.5,491.29",points:[[5002,330],[4932,364],[4848,399],[4768,418],[4726,428],[4616,412],[4575,426],[4533,441],[4492,465],[4456,491]],labelBBox:{x:4837,y:395,width:34,height:18},parent:"local",relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"},{id:"ihlgsc",source:"local.ingressNginx.ingressNginx",target:"local.mailhog.mailhog",label:"https",dotpos:"e,4892.5,497.56 5068.5,330.25 5016.9,379.35 4952.7,440.38 4899.9,490.55",points:[[5069,330],[5017,379],[4953,440],[4900,491]],labelBBox:{x:4992,y:395,width:34,height:18},parent:"local",relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"}]},"edp-per-tenant":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/edp.c4",description:null,title:"EDP per tenant",id:"edp-per-tenant",autoLayout:{direction:"TB"},hash:"e666149b946cddee8281b75a555e7577841d84ba",bounds:{x:0,y:0,width:2010,height:1175},nodes:[{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. 
    
    This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:1994,height:1159,labelBBox:{x:6,y:0,width:181,height:15}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["1dcszi5"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:321,y:150,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.cce.edp"],inEdges:["1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:755,y:79,width:954,height:719,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edp-per-tenant.cce.edp",parent:"otc-edp-per-tenant.cce",level:2,children:["otc-edp-per-tenant.cce.edp.externalSecrets","otc-edp-per-tenant.cce.edp.ingressNginx","otc-edp-per-tenant.cce.edp.argoCD","otc-edp-per-tenant.cce.edp.forgejo"],inEdges:["1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce.edp",title:"EDP",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:787,y:132,width:890,height:634,labelBBox:{x:6,y:0,width:27,height:15}},{id:"otc-edp-per-tenant.cce.edp.externalSecrets",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:837,y:204,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:65}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edp-per-tenant.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["1dcszi5"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:353,y:204,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edp-per-tenant.cce.edp.ingressNginx",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:["1ir70dd","1kr1wg1"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:1287,y:204,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edp-per-tenant.cce.edp.argoCD",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:["1ir70dd"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:1307,y:536,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edp-per-tenant.cce.edp.forgejo",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:["1kr1wg1","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:837,y:536,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"otc-edp-per-tenant.cloudServices",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.cloudServices.postgres","otc-edp-per-tenant.cloudServices.redis","otc-edp-per-tenant.cloudServices.objectstorage","otc-edp-per-tenant.cloudServices.elasticsearch"],inEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],outEdges:[],deploymentRef:"otc-edp-per-tenant.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services"},tags:[],style:{opacity:15,size:"md"},depth:1,x:58,y:815,width:1894,height:302,labelBBox:{x:6,y:0,width:127,height:15}},{id:"otc-edp-per-tenant.cloudServices.postgres",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["8msu1q"],outEdges:[],kind:"instance",title:"PostgreSQL",description:{txt:`PostgreSQL is a powerful, open source object-relational database system.
It has more than 15 years of active development and a proven architecture
that has earned it a strong reputation for reliability, data integrity,
and correctness.`},technology:"PostgreSQL",tags:[],icon:"tech:postgresql",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.postgres",modelRef:"postgres",x:108,y:887,width:354,height:180,labelBBox:{x:46,y:17,width:292,height:139}},{id:"otc-edp-per-tenant.cloudServices.redis",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["120qe5o"],outEdges:[],kind:"instance",title:"Redis",description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.redis",modelRef:"redis",x:592,y:887,width:359,height:180,labelBBox:{x:47,y:26,width:297,height:121}},{id:"otc-edp-per-tenant.cloudServices.objectstorage",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["ealiax"],outEdges:[],kind:"instance",title:"s3 Object Storage",description:{txt:"s3 Object Storage"},technology:"S3 Object Storage",tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.objectstorage",modelRef:"objectstorage",x:1082,y:887,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"otc-edp-per-tenant.cloudServices.elasticsearch",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["1trj5u6"],outEdges:[],kind:"instance",title:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of
addressing a growing number of use cases. It centrally stores your data so you can
discover the expected and uncover the unexpected.`},technology:"Elasticsearch",tags:[],icon:"tech:elasticsearch",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.elasticsearch",modelRef:"elasticsearch",x:1532,y:887,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}}],edges:[{id:"1ir70dd",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.argoCD",label:"https",dotpos:"e,1461.6,536.51 1452.4,383.25 1455,427.28 1458.2,480.64 1461,526.05",points:[[1452,383],[1455,427],[1458,481],[1461,526]],labelBBox:{x:1459,y:448,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"1kr1wg1",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"https",dotpos:"e,1125.1,536.62 1328.8,383.47 1268.4,428.89 1194.8,484.19 1133.3,530.44",points:[[1329,383],[1268,429],[1195,484],[1133,530]],labelBBox:{x:1241,y:448,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"1dcszi5",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"registers",dotpos:"e,874.42,536.62 645.71,383.47 713.81,429.07 796.79,484.64 866.04,531.01",points:[[646,383],[714,429],[797,485],[866,531]],labelBBox:{x:776,y:448,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"8msu1q",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.postgres",label:null,dotpos:"e,408.47,886.62 836.84,684.1 743.28,717.71 626.38,763.79 527,815.4 490.05,834.59 451.75,858.08 416.81,881.1",points:[[837,684],[743,718],[626,764],[527,815],[490,835],[452,858],[417,881]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["hks76r"],color:"gray",line:"dashed",head:"normal"},{id:"120qe5o",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.redis",label:null,dotpos:"e,832,886.69 947.09,716.17 913.73,765.59 872.15,827.21 837.87,877.99",points:[[947,716],[914,766],[872,827],[838,878]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"ealiax",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.objectstorage",label:null,dotpos:"e,1182,886.69 1066.9,716.17 1100.3,765.59 1141.9,827.21 1176.1,877.99",points:[[1067,716],[1100,766],[1142,827],[1176,878]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["15njmlz"],color:"gray",line:"dashed",head:"normal"},{id:"1trj5u6",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.elasticsearch",label:null,dotpos:"e,1604.5,886.79 1103.6,716.4 1143.6,747.92 1192.2,780.08 1242,798.4 1336.1,833 1371.9,783.6 1467,815.4 1512.1,830.47 1557.1,855.46 1596.3,881.27",points:[[1104,716],[1144,748],[1192,780],[1242,798],[1336,833],[1372,784],[1467,815],[1512,830],[1557,855],[1596,881]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9"],color:"gray",line:"dashed",head:"normal"}]},"edp-foundry-central-service":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/foundry.c4",description:null,title:"EDP Foundry Central Service",id:"edp-foundry-central-service",autoLayout:{direction:"TB"},hash:"8f8eb235b0e8ff555a22ed61d124ba68e67e5ee2",bounds:{x:0,y:0,width:3894,height:1218},nodes:[{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.cce","otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. 

A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP.
Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:3878,height:1202,labelBBox:{x:6,y:0,width:280,height:15}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.cce.internalServices","otc-edpFoundry.cce.centralObservability"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:58,y:79,width:2360,height:755,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edpFoundry.cce.internalServices",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.internalServices.externalSecrets","otc-edpFoundry.cce.internalServices.ingressNginx","otc-edpFoundry.cce.internalServices.argoCD","otc-edpFoundry.cce.internalServices.forgejo","otc-edpFoundry.cce.internalServices.openbao"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce.internalServices",title:"EDP Foundry Internal Services",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:1028,y:150,width:1340,height:634,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.cce.internalServices.externalSecrets",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:1308,y:222,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:65}},{id:"otc-edpFoundry.cce.centralObservability",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.centralObservability.grafana","otc-edpFoundry.cce.centralObservability.prometheus","otc-edpFoundry.cce.centralObservability.loki"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry.cce.centralObservability",title:"EDP Foundry Central Observability",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:108,y:150,width:870,height:634,labelBBox:{x:6,y:0,width:232,height:15}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["628xl1"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"green",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:2468,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edpFoundry.cce.centralObservability.grafana",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:[],outEdges:["qykxlm","yv49z5"],kind:"instance",title:"Grafana",description:{txt:"Data visualization and monitoring"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.grafana",modelRef:"edp.grafana",x:289,y:222,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:47}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edpFoundry.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["628xl1"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:2500,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.cce.centralObservability.prometheus",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["qykxlm"],outEdges:[],kind:"instance",title:"Prometheus",description:{txt:"Monitoring and alerting toolkit"},tags:[],icon:"tech:prometheus",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.prometheus",modelRef:"edp.prometheus",x:158,y:554,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:48}},{id:"otc-edpFoundry.cce.centralObservability.loki",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["yv49z5"],outEdges:[],kind:"instance",title:"Loki",description:{txt:"Log aggregation system"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.loki",modelRef:"edp.loki",x:608,y:554,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:48}},{id:"otc-edpFoundry.cce.internalServices.ingressNginx",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:["17kru01","170pc3l","u5oqat"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:1988,y:222,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edpFoundry.cce.internalServices.argoCD",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["17kru01"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:1078,y:554,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edpFoundry.cce.internalServices.forgejo",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["170pc3l","628xl1"],outEdges:["84397w","1oz2va9"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:1978,y:554,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"otc-edpFoundry.cce.internalServices.openbao",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["u5oqat"],outEdges:[],kind:"instance",title:"OpenBao",description:{txt:"Secure secret storage"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.openbao",modelRef:"edp.openbao",x:1528,y:554,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"],inEdges:["84397w"],outEdges:[],deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure",title:"EDP infrastructure Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP infrastructure Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:2902,y:150,width:442,height:1010,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"],inEdges:["1oz2va9"],outEdges:[],deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",title:"EDP ArgoCD Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP Setup ArgoCD Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:3394,y:150,width:442,height:1010,labelBBox:{x:6,y:0,width:149,height:15}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["84397w"],outEdges:["1hnil62"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:2961,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1oz2va9"],outEdges:["1gtxobu"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:3466,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["1hnil62"],outEdges:["ekzztw"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:2954,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1gtxobu"],outEdges:["b9ntr8"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:3452,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["ekzztw"],outEdges:[],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",modelRef:"edpworkflow",x:2952,y:930,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["b9ntr8"],outEdges:[],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",modelRef:"edpworkflow",x:3444,y:930,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}}],edges:[{id:"17kru01",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.argoCD",label:"https",dotpos:"e,1397.8,579.34 1988.2,367.11 1849,415.06 1642,487.45 1463,554.4 1445,561.14 1426.2,568.31 1407.6,575.55",points:[[1988,367],[1849,415],[1642,487],[1463,554],[1445,561],[1426,568],[1408,576]],labelBBox:{x:1689,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"170pc3l",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"https",dotpos:"e,2148,554.51 2148,401.25 2148,445.28 2148,498.64 2148,544.05",points:[[2148,401],[2148,445],[2148,499],[2148,544]],labelBBox:{x:2149,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"u5oqat",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.openbao",label:"https",dotpos:"e,1811.5,554.62 2024.4,401.47 1961.1,446.98 1884.1,502.41 1819.6,548.73",points:[[2024,401],[1961,447],[1884,502],[1820,549]],labelBBox:{x:1933,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"qykxlm",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.prometheus",label:"get metrics and alerts",dotpos:"e,356.7,554.51 423.41,401.25 404.12,445.56 380.72,499.31 360.87,544.91",points:[[423,401],[404,446],[381,499],[361,545]],labelBBox:{x:395,y:466,width:138,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"yv49z5",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.loki",label:"get logs",dotpos:"e,685.77,554.51 544,401.25 585.59,446.21 636.17,500.89 678.74,546.91",points:[[544,401],[586,446],[636,501],[679,547]],labelBBox:{x:625,y:466,width:53,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"84397w",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,2961,399.55 2318.4,604.81 2469.6,568.24 2695.1,507.91 2884,433.6 2906.3,424.83 2929.3,414.65 2951.8,403.98",points:[[2318,605],[2470,568],[2695,508],[2884,434],[2906,425],[2929,415],[2952,404]],labelBBox:{x:2787,y:466,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"1hnil62",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,3121,554.51 3121,401.25 3121,445.28 3121,498.64 3121,544.05",points:[[3121,401],[3121,445],[3121,499],[3121,544]],labelBBox:{x:3122,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["7kqly3"],color:"gray",line:"dashed",head:"normal"},{id:"ekzztw",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",label:"executes",dotpos:"e,3122.5,930.28 3121.5,733.99 3121.8,789.89 3122.2,862.2 3122.5,920.03",points:[[3121,734],[3122,790],[3122,862],[3122,920]],labelBBox:{x:3123,y:842,width:60,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["12hf1w4"],color:"gray",line:"dashed",head:"normal"},{id:"1oz2va9",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,3524.7,401.42 2318.4,622.3 2654.2,580.67 3369.9,491.78 3376,489.4 3425.8,470.06 3475.1,438.64 3516.5,407.61",points:[[2318,622],[2654,581],[3370,492],[3376,489],[3426,470],[3475,439],[3517,408]],labelBBox:{x:3422,y:466,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"1gtxobu",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,3620.9,554.51 3624.1,401.25 3623.2,445.28 3622.1,498.64 3621.1,544.05",points:[[3624,401],[3623,445],[3622,499],[3621,544]],labelBBox:{x:3624,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["hqie0"],color:"gray",line:"dashed",head:"normal"},{id:"b9ntr8",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",label:"executes",dotpos:"e,3616,930.28 3618.1,733.99 3617.5,789.89 3616.7,862.2 3616.1,920.03",points:[[3618,734],[3617,790],[3617,862],[3616,920]],labelBBox:{x:3618,y:842,width:60,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["1j16hqv"],color:"gray",line:"dashed",head:"normal"},{id:"628xl1",source:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"registers",dotpos:"e,2285.4,554.62 2522.5,401.47 2451.9,447.07 2365.9,502.64 2294.1,549.01",points:[[2522,401],[2452,447],[2366,503],[2294,549]],labelBBox:{x:2420,y:466,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"}]},"forgejo-as-a-service":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/foundry-and-edp.c4",description:null,title:"Forgejo as a Service",id:"forgejo-as-a-service",autoLayout:{direction:"TB"},hash:"04b470ef03e0995fc0d9fa8ac4c4c0a494f74722",bounds:{x:0,y:0,width:5468,height:1994},nodes:[{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.cce","otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:["1asm38z","1or831y","ejqwjt"],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. 

A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP.
Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:3,x:2052,y:8,width:3408,height:1609,labelBBox:{x:6,y:0,width:280,height:15}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.cce.internalServices","otc-edpFoundry.cce.centralObservability"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:2594,y:79,width:1890,height:1488,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edpFoundry.cce.internalServices",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.internalServices.externalSecrets","otc-edpFoundry.cce.internalServices.ingressNginx","otc-edpFoundry.cce.internalServices.argoCD","otc-edpFoundry.cce.internalServices.forgejo","otc-edpFoundry.cce.internalServices.openbao"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce.internalServices",title:"EDP Foundry Internal Services",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:2644,y:883,width:1790,height:634,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.cce.internalServices.externalSecrets",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:2694,y:1287,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:66}},{id:"otc-edpFoundry.cce.centralObservability",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.centralObservability.grafana","otc-edpFoundry.cce.centralObservability.prometheus","otc-edpFoundry.cce.centralObservability.loki"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry.cce.centralObservability",title:"EDP Foundry Central Observability",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:3349,y:150,width:870,height:634,labelBBox:{x:6,y:0,width:232,height:15}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["628xl1"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"green",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:5026,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:["1asm38z","1or831y","ejqwjt"],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. 
    
    This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:97,width:1994,height:1889,labelBBox:{x:6,y:0,width:181,height:15}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["1dcszi5"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:608,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edpFoundry.cce.centralObservability.grafana",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:[],outEdges:["qykxlm","yv49z5"],kind:"instance",title:"Grafana",description:{txt:"Data visualization and monitoring"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.grafana",modelRef:"edp.grafana",x:3530,y:222,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:47}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edpFoundry.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["628xl1"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:5058,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.cce.edp"],inEdges:["1or831y","ejqwjt","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:548,y:830,width:1404,height:719,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edp-per-tenant.cce.edp",parent:"otc-edp-per-tenant.cce",level:2,children:["otc-edp-per-tenant.cce.edp.externalSecrets","otc-edp-per-tenant.cce.edp.ingressNginx","otc-edp-per-tenant.cce.edp.argoCD","otc-edp-per-tenant.cce.edp.forgejo"],inEdges:["1or831y","ejqwjt","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce.edp",title:"EDP",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:580,y:883,width:1340,height:634,labelBBox:{x:6,y:0,width:27,height:15}},{id:"otc-edp-per-tenant.cce.edp.externalSecrets",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:1550,y:1287,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:66}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edp-per-tenant.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["1dcszi5"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:640,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.cce.centralObservability.prometheus",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["qykxlm"],outEdges:[],kind:"instance",title:"Prometheus",description:{txt:"Monitoring and alerting toolkit"},tags:[],icon:"tech:prometheus",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.prometheus",modelRef:"edp.prometheus",x:3399,y:554,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:48}},{id:"otc-edpFoundry.cce.centralObservability.loki",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["yv49z5"],outEdges:[],kind:"instance",title:"Loki",description:{txt:"Log aggregation system"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.loki",modelRef:"edp.loki",x:3849,y:554,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:48}},{id:"otc-edpFoundry.cce.internalServices.ingressNginx",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:["17kru01","170pc3l","u5oqat"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:4054,y:955,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edpFoundry.cce.internalServices.argoCD",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["17kru01"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:3144,y:1287,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edpFoundry.cce.internalServices.forgejo",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["170pc3l","628xl1"],outEdges:["84397w","1oz2va9"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:4044,y:1287,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"otc-edpFoundry.cce.internalServices.openbao",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["u5oqat"],outEdges:[],kind:"instance",title:"OpenBao",description:{txt:"Secure secret storage"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.openbao",modelRef:"edp.openbao",x:3594,y:1287,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"],inEdges:["84397w"],outEdges:["1asm38z","1or831y"],deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure",title:"EDP infrastructure Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP infrastructure Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:4534,y:150,width:442,height:1035,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"],inEdges:["1oz2va9"],outEdges:["ejqwjt"],deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",title:"EDP ArgoCD Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP Setup ArgoCD Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:2102,y:150,width:442,height:1035,labelBBox:{x:6,y:0,width:149,height:15}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["84397w"],outEdges:["1hnil62"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:4595,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1oz2va9"],outEdges:["1gtxobu"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:2163,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["1hnil62"],outEdges:["ekzztw"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:4588,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1gtxobu"],outEdges:["b9ntr8"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:2156,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["ekzztw"],outEdges:["1asm38z","1or831y"],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",modelRef:"edpworkflow",x:4584,y:955,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["b9ntr8"],outEdges:["ejqwjt"],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",modelRef:"edpworkflow",x:2152,y:955,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}},{id:"otc-edp-per-tenant.cce.edp.ingressNginx",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:["1ir70dd","1kr1wg1"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:1100,y:955,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edp-per-tenant.cce.edp.argoCD",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:["ejqwjt","1ir70dd"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:1100,y:1287,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edp-per-tenant.cce.edp.forgejo",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:["1kr1wg1","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:630,y:1287,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"otc-edp-per-tenant.cloudServices",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.cloudServices.postgres","otc-edp-per-tenant.cloudServices.redis","otc-edp-per-tenant.cloudServices.objectstorage","otc-edp-per-tenant.cloudServices.elasticsearch"],inEdges:["1asm38z","8msu1q","120qe5o","ealiax","1trj5u6"],outEdges:[],deploymentRef:"otc-edp-per-tenant.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services"},tags:[],style:{opacity:15,size:"md"},depth:1,x:58,y:1634,width:1894,height:302,labelBBox:{x:6,y:0,width:127,height:15}},{id:"otc-edp-per-tenant.cloudServices.postgres",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["8msu1q"],outEdges:[],kind:"instance",title:"PostgreSQL",description:{txt:`PostgreSQL is a powerful, open source object-relational database system.
It has more than 15 years of active development and a proven architecture
that has earned it a strong reputation for reliability, data integrity,
and correctness.`},technology:"PostgreSQL",tags:[],icon:"tech:postgresql",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.postgres",modelRef:"postgres",x:1548,y:1706,width:354,height:180,labelBBox:{x:46,y:17,width:292,height:139}},{id:"otc-edp-per-tenant.cloudServices.redis",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["120qe5o"],outEdges:[],kind:"instance",title:"Redis",description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.redis",modelRef:"redis",x:608,y:1706,width:359,height:180,labelBBox:{x:47,y:26,width:297,height:121}},{id:"otc-edp-per-tenant.cloudServices.objectstorage",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["ealiax"],outEdges:[],kind:"instance",title:"s3 Object Storage",description:{txt:"s3 Object Storage"},technology:"S3 Object Storage",tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.objectstorage",modelRef:"objectstorage",x:1098,y:1706,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"otc-edp-per-tenant.cloudServices.elasticsearch",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["1trj5u6"],outEdges:[],kind:"instance",title:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of
addressing a growing number of use cases. It centrally stores your data so you can
discover the expected and uncover the unexpected.`},technology:"Elasticsearch",tags:[],icon:"tech:elasticsearch",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.elasticsearch",modelRef:"elasticsearch",x:108,y:1706,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}}],edges:[{id:"17kru01",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.argoCD",label:"https",dotpos:"e,3463.8,1312.3 4054.2,1100.1 3915,1148.1 3708,1220.4 3529,1287.4 3511,1294.1 3492.2,1301.3 3473.6,1308.5",points:[[4054,1100],[3915,1148],[3708,1220],[3529,1287],[3511,1294],[3492,1301],[3474,1309]],labelBBox:{x:3755,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"170pc3l",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"https",dotpos:"e,4214,1287.5 4214,1134.2 4214,1178.3 4214,1231.6 4214,1277",points:[[4214,1134],[4214,1178],[4214,1232],[4214,1277]],labelBBox:{x:4215,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"u5oqat",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.openbao",label:"https",dotpos:"e,3877.5,1287.6 4090.4,1134.5 4027.1,1180 3950.1,1235.4 3885.6,1281.7",points:[[4090,1134],[4027,1180],[3950,1235],[3886,1282]],labelBBox:{x:3999,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"qykxlm",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.prometheus",label:"get metrics and alerts",dotpos:"e,3597.7,554.51 3664.4,401.25 3645.1,445.56 3621.7,499.31 3601.9,544.91",points:[[3664,401],[3645,446],[3622,499],[3602,545]],labelBBox:{x:3636,y:466,width:138,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"yv49z5",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.loki",label:"get logs",dotpos:"e,3926.8,554.51 3785,401.25 3826.6,446.21 3877.2,500.89 3919.7,546.91",points:[[3785,401],[3827,446],[3877,501],[3920,547]],labelBBox:{x:3866,y:466,width:53,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"84397w",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,4871.9,401.35 4384,1358.7 4589.5,1333.3 4917.1,1279 4991,1184.6 5006.1,1165.4 5006.3,601.48 4987,554.4 4964.1,498.68 4921.8,448.48 4879.5,408.45",points:[[4384,1359],[4590,1333],[4917,1279],[4991,1185],[5006,1165],[5006,601],[4987,554],[4964,499],[4922,448],[4880,408]],labelBBox:{x:5002,y:799,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"1hnil62",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,4755,554.51 4755,401.25 4755,445.28 4755,498.64 4755,544.05",points:[[4755,401],[4755,445],[4755,499],[4755,544]],labelBBox:{x:4756,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["7kqly3"],color:"gray",line:"dashed",head:"normal"},{id:"ekzztw",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",label:"executes",dotpos:"e,4755,954.66 4755,734.27 4755,796.6 4755,879.99 4755,944.48",points:[[4755,734],[4755,797],[4755,880],[4755,944]],labelBBox:{x:4756,y:799,width:60,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["12hf1w4"],color:"gray",line:"dashed",head:"normal"},{id:"1oz2va9",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,2425.7,401.35 4043.6,1308.6 4022,1301 4000.1,1293.7 3979,1287.4 3850.3,1249.1 3807.5,1275.1 3684,1222.4 3176,1005.8 2655,593.8 2433.5,407.87",points:[[4044,1309],[4022,1301],[4e3,1294],[3979,1287],[3850,1249],[3808,1275],[3684,1222],[3176,1006],[2655,594],[2433,408]],labelBBox:{x:2970,y:799,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"1gtxobu",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,2323,554.51 2323,401.25 2323,445.28 2323,498.64 2323,544.05",points:[[2323,401],[2323,445],[2323,499],[2323,544]],labelBBox:{x:2324,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["hqie0"],color:"gray",line:"dashed",head:"normal"},{id:"b9ntr8",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",label:"executes",dotpos:"e,2323,954.66 2323,734.27 2323,796.6 2323,879.99 2323,944.48",points:[[2323,734],[2323,797],[2323,880],[2323,944]],labelBBox:{x:2324,y:799,width:60,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["1j16hqv"],color:"gray",line:"dashed",head:"normal"},{id:"628xl1",source:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"registers",dotpos:"e,4384.3,1373.5 5231.3,401.47 5254.9,597.41 5277.7,1061.9 4995,1222.4 4808.3,1328.4 4560.5,1362.5 4394.6,1372.9",points:[[5231,401],[5255,597],[5278,1062],[4995,1222],[4808,1328],[4561,1362],[4395,1373]],labelBBox:{x:5232,y:799,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"},{id:"ejqwjt",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cce.edp.argoCD",label:null,dotpos:"e,1419.9,1309.5 2152,1115.5 2089.7,1139.4 2018.3,1165 1952,1184.6 1748.2,1244.9 1688.2,1225.3 1485,1287.4 1466.9,1292.9 1448.1,1299.3 1429.6,1306",points:[[2152,1115],[2090,1139],[2018,1165],[1952,1185],[1748,1245],[1688,1225],[1485,1287],[1467,1293],[1448,1299],[1430,1306]],labelBBox:null,parent:null,relations:["jde35l"],color:"gray",line:"dashed",head:"normal"},{id:"1ir70dd",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.argoCD",label:"https",dotpos:"e,1260,1287.5 1260,1134.2 1260,1178.3 1260,1231.6 1260,1277",points:[[1260,1134],[1260,1178],[1260,1232],[1260,1277]],labelBBox:{x:1261,y:1199,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"1kr1wg1",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"https",dotpos:"e,923.46,1287.6 1136.4,1134.5 1073.1,1180 996.05,1235.4 931.65,1281.7",points:[[1136,1134],[1073,1180],[996,1235],[932,1282]],labelBBox:{x:1045,y:1199,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"1dcszi5",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"registers",dotpos:"e,800,1287.4 800,401.47 800,598.41 800,1070.4 800,1276.9",points:[[800,401],[800,598],[800,1070],[800,1277]],labelBBox:{x:801,y:799,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"8msu1q",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.postgres",label:null,dotpos:"e,1618.1,1705.6 859.94,1467.1 901.94,1521.2 963.27,1585.7 1035,1617.4 1080.6,1637.5 1435.6,1619.1 1483,1634.4 1527.5,1648.7 1571.5,1673.7 1609.5,1699.7",points:[[860,1467],[902,1521],[963,1586],[1035,1617],[1081,1638],[1436,1619],[1483,1634],[1527,1649],[1571,1674],[1610,1700]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["hks76r"],color:"gray",line:"dashed",head:"normal"},{id:"120qe5o",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.redis",label:null,dotpos:"e,790.57,1705.6 797.44,1467.2 795.51,1534 792.87,1625.8 790.87,1695.1",points:[[797,1467],[796,1534],[793,1626],[791,1695]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"ealiax",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.objectstorage",label:null,dotpos:"e,1140.6,1705.7 882.38,1467.3 926.38,1513.4 982.22,1569.9 1035,1617.4 1065.7,1645 1100,1673.4 1132.4,1699.2",points:[[882,1467],[926,1513],[982,1570],[1035,1617],[1066,1645],[1100,1673],[1132,1699]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["15njmlz"],color:"gray",line:"dashed",head:"normal"},{id:"1trj5u6",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.elasticsearch",label:null,dotpos:"e,401.41,1705.6 691.86,1467.2 608.89,1535.3 494.54,1629.2 409.54,1698.9",points:[[692,1467],[609,1535],[495,1629],[410,1699]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9"],color:"gray",line:"dashed",head:"normal"},{id:"1asm38z",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cloudServices",label:"deploys edp to otc.paas",dotpos:"e,1952,1792.7 4738.6,1134.4 4709.3,1265.2 4634.5,1506.1 4466,1617.4 4259.7,1753.6 2589.5,1785.4 1962.1,1792.6",points:[[4739,1134],[4709,1265],[4634,1506],[4466,1617],[4260,1754],[2590,1785],[1962,1793]],labelBBox:{x:3219,y:1730,width:152,height:18},parent:null,relations:["1pfc6bl"],color:"gray",line:"dashed",head:"normal"},{id:"1or831y",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cce.edp",label:"deploys edp to otc.cce",dotpos:"e,1920,1323.8 4602.1,1134.5 4559.4,1155 4512.1,1173.9 4466,1184.6 4365.7,1207.9 2714.5,1189.2 2612,1199.6 2376.8,1223.4 2111.8,1278.8 1930.2,1321.4",points:[[4602,1134],[4559,1155],[4512,1174],[4466,1185],[4366,1208],[2714,1189],[2612,1200],[2377,1223],[2112,1279],[1930,1321]],labelBBox:{x:3117,y:1173,width:143,height:18},parent:null,relations:["uk77s5"],color:"gray",line:"dashed",head:"normal"}]},"otc-faas":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/otc-faas.c4",description:null,title:"OTC Prototype FaaS",id:"otc-faas",autoLayout:{direction:"TB"},hash:"e4aa9cf8218ee52688aa6e4b51a564a0b34f7773",bounds:{x:0,y:0,width:2086,height:802},nodes:[{id:"otc-faas",parent:null,level:0,children:["otc-faas.dev","otc-faas.prod"],inEdges:[],outEdges:[],deploymentRef:"otc-faas",title:"OTC prototype FaaS",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"OTC environments for Prototype faaS."},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:2070,height:786,labelBBox:{x:6,y:0,width:131,height:15}},{id:"otc-faas.dev",parent:"otc-faas",level:1,children:["otc-faas.dev.cce","otc-faas.dev.observability","otc-faas.dev.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-faas.dev",title:"tenant Dev",kind:"environment",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},depth:2,x:58,y:79,width:972,height:665,labelBBox:{x:6,y:0,width:74,height:15}},{id:"otc-faas.dev.cce",parent:"otc-faas.dev",level:2,children:["otc-faas.dev.cce.edp"],inEdges:[],outEdges:["p747qx"],deploymentRef:"otc-faas.dev.cce",title:"Central Forgejo",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},depth:1,x:108,y:150,width:454,height:266,labelBBox:{x:6,y:0,width:113,height:15}},{id:"otc-faas.dev.observability",parent:"otc-faas.dev",level:2,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas.dev.observability",title:"Observability",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},x:660,y:204,width:320,height:180,labelBBox:{x:86,y:53,width:178,height:67}},{id:"otc-faas.prod",parent:"otc-faas",level:1,children:["otc-faas.prod.cce","otc-faas.prod.observability","otc-faas.prod.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-faas.prod",title:"Tenant Prod",kind:"environment",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},depth:2,x:1080,y:79,width:948,height:665,labelBBox:{x:6,y:0,width:83,height:15}},{id:"otc-faas.prod.cce",parent:"otc-faas.prod",level:2,children:["otc-faas.prod.cce.edp"],inEdges:[],outEdges:["tb8sk9"],deploymentRef:"otc-faas.prod.cce",title:"Central Forgejo",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},depth:1,x:1130,y:150,width:430,height:266,labelBBox:{x:6,y:0,width:113,height:15}},{id:"otc-faas.dev.cce.edp",parent:"otc-faas.dev.cce",level:3,children:[],inEdges:[],outEdges:["p747qx"],deploymentRef:"otc-faas.dev.cce.edp",title:"Forgejo Dev for platform team",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:go",description:{txt:"t09.de"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:140,y:204,width:389,height:180,labelBBox:{x:46,y:63,width:328,height:47}},{id:"otc-faas.prod.observability",parent:"otc-faas.prod",level:2,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas.prod.observability",title:"Observability",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},x:1658,y:204,width:320,height:180,labelBBox:{x:86,y:53,width:178,height:67}},{id:"otc-faas.prod.cce.edp",parent:"otc-faas.prod.cce",level:3,children:[],inEdges:[],outEdges:["tb8sk9"],deploymentRef:"otc-faas.prod.cce.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:go",description:{txt:"buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:1162,y:204,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:47}},{id:"otc-faas.dev.cloudServices",parent:"otc-faas.dev",level:2,children:[],inEdges:["p747qx"],outEdges:[],deploymentRef:"otc-faas.dev.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services (Postgres, Redis, etc."},tags:[],style:{opacity:15,size:"md"},x:173,y:514,width:323,height:180,labelBBox:{x:18,y:53,width:287,height:67}},{id:"otc-faas.prod.cloudServices",parent:"otc-faas.prod",level:2,children:[],inEdges:["tb8sk9"],outEdges:[],deploymentRef:"otc-faas.prod.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services (Postgres, Redis, etc."},tags:[],style:{opacity:15,size:"md"},x:1183,y:514,width:323,height:180,labelBBox:{x:18,y:53,width:287,height:67}}],edges:[{id:"p747qx",source:"otc-faas.dev.cce.edp",target:"otc-faas.dev.cloudServices",label:null,dotpos:"e,335,513.75 335,383.27 335,420.88 335,464.86 335,503.52",points:[[335,383],[335,421],[335,465],[335,504]],labelBBox:null,parent:"otc-faas.dev",relations:["dz2rdn"],color:"gray",line:"dashed",head:"normal"},{id:"tb8sk9",source:"otc-faas.prod.cce.edp",target:"otc-faas.prod.cloudServices",label:null,dotpos:"e,1345,513.75 1345,383.27 1345,420.88 1345,464.86 1345,503.52",points:[[1345,383],[1345,421],[1345,465],[1345,504]],labelBBox:null,parent:"otc-faas.prod",relations:["2shw6y"],color:"gray",line:"dashed",head:"normal"}]},"view_gitops-inner-outer-loop_15":{_type:"dynamic",tags:null,links:null,_stage:"layouted",sourcePath:"views/dynamic/cicd/gitops-inner-outer-loop.c4",description:null,title:"outer-ci-loop",id:"view_gitops-inner-outer-loop_15",variant:"diagram",autoLayout:{direction:"LR"},hash:"d85bdffdca5f49220457db75761ae8ba47744c16",sequenceLayout:{actors:[{id:"localbox.git",x:32,y:52,width:320,height:180,ports:[{id:"step-01_source",cx:160,cy:338,height:40,type:"source",position:"right"}]},{id:"edp.forgejogit",x:448,y:52,width:320,height:180,ports:[{id:"step-01_target",cx:160,cy:338,height:24,type:"target",position:"left"},{id:"step-02_source",cx:160,cy:360,height:40,type:"source",position:"right"},{id:"step-04_target",cx:160,cy:475,height:24,type:"target",position:"right"},{id:"step-05_source",cx:160,cy:568,height:40,type:"source",position:"right"}]},{id:"forgejoRunner",x:832,y:52,width:320,height:180,ports:[{id:"step-02_target",cx:160,cy:360,height:24,type:"target",position:"left"},{id:"step-03_source",cx:160,cy:382,height:40,type:"source",position:"right"},{id:"step-04_source",cx:160,cy:475,height:40,type:"source",position:"left"}]},{id:"edp.imageregistry",x:1216,y:52,width:373,height:180,ports:[{id:"step-03_target",cx:187,cy:382,height:24,type:"target",position:"left"},{id:"step-07_target",cx:187,cy:683,height:24,type:"target",position:"right"}]},{id:"edp.argoCD",x:1649,y:52,width:320,height:180,ports:[{id:"step-05_target",cx:160,cy:568,height:24,type:"target",position:"left"},{id:"step-06_source",cx:160,cy:590,height:40,type:"source",position:"right"}]},{id:"cloud",x:2033,y:52,width:320,height:180,ports:[{id:"step-06_target",cx:160,cy:590,height:24,type:"target",position:"left"},{id:"step-07_source",cx:160,cy:683,height:40,type:"source",position:"left"}]}],compounds:[{depth:0,x:0,y:0,width:384,height:527,id:"localbox",origin:"localbox"},{depth:0,x:416,y:0,width:384,height:735,id:"edp-1",origin:"edp"},{depth:0,x:1184,y:0,width:817,height:828,id:"edp-2",origin:"edp"}],steps:[{id:"step-01",sourceHandle:"step-01_source",targetHandle:"step-01_target",labelBBox:{width:91,height:27}},{id:"step-02",sourceHandle:"step-02_source",targetHandle:"step-02_target",labelBBox:{width:92,height:27}},{id:"step-03",sourceHandle:"step-03_source",targetHandle:"step-03_target",labelBBox:{width:159,height:27}},{id:"step-04",sourceHandle:"step-04_source",targetHandle:"step-04_target",labelBBox:{width:174,height:27}},{id:"step-05",sourceHandle:"step-05_source",targetHandle:"step-05_target",labelBBox:{width:164,height:27}},{id:"step-06",sourceHandle:"step-06_source",targetHandle:"step-06_target",labelBBox:{width:161,height:27}},{id:"step-07",sourceHandle:"step-07_source",targetHandle:"step-07_target",labelBBox:{width:113,height:27}}],parallelAreas:[],bounds:{x:0,y:0,width:2353,height:828}},bounds:{x:0,y:0,width:2150,height:1243},nodes:[{id:"localbox",parent:null,level:0,children:["localbox.git"],inEdges:[],outEdges:["step-01"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",depth:1,x:8,y:306,width:384,height:265,labelBBox:{x:6,y:0,width:66,height:15}},{id:"localbox.git",parent:"localbox",level:1,children:[],inEdges:[],outEdges:["step-01"],title:"git",modelRef:"localbox.git",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:15,size:"md"},description:{txt:"local git"},tags:[],technology:"Git",kind:"component",x:40,y:359,width:320,height:180,labelBBox:{x:119,y:53,width:113,height:67}},{id:"edp",parent:null,level:0,children:["edp.forgejogit","edp.imageregistry","edp.argoCD","edp.forgejo"],inEdges:["step-01","step-03","step-04","step-07"],outEdges:["step-02","step-06"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"secondary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"edp",x:528,y:8,width:1064,height:861,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejogit",parent:"edp",level:1,children:[],inEdges:["step-01","step-04"],outEdges:["step-02","step-05"],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"secondary",icon:"tech:git",style:{opacity:15,size:"md"},tags:[],kind:"component",x:595,y:359,width:320,height:180,labelBBox:{x:97,y:74,width:155,height:24}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["step-02"],outEdges:["step-03","step-04"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:1232,y:909,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"edp.imageregistry",parent:"edp",level:1,children:[],inEdges:["step-03","step-07"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"secondary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:568,y:649,width:373,height:180,labelBBox:{x:46,y:53,width:311,height:67}},{id:"edp.argoCD",parent:"edp",level:1,children:[],inEdges:["step-05"],outEdges:["step-06"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"secondary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:1232,y:495,width:320,height:180,labelBBox:{x:107,y:63,width:105,height:48}},{id:"cloud",parent:null,level:0,children:[],inEdges:["step-06"],outEdges:["step-07"],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:1830,y:1063,width:320,height:180,labelBBox:{x:91,y:53,width:137,height:67}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"gray",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},tags:[],technology:"Golang",kind:"container",isCustomized:!0,navigateTo:"forgejo",x:585,y:69,width:340,height:180,labelBBox:{x:45,y:17,width:279,height:139}}],edges:[{id:"step-01",source:"localbox.git",target:"edp.forgejogit",label:"git push",dotpos:"e,594.97,449 359.74,449 430.11,449 512.98,449 584.5,449",points:[[360,449],[430,449],[513,449],[585,449]],labelBBox:{x:429,y:417,width:75,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@0"},{id:"step-02",source:"edp.forgejogit",target:"forgejoRunner",label:"on push",dotpos:"e,1243.2,909.08 895.71,538.9 1008.4,612.21 1151.2,707.77 1171.7,734 1218.9,794.54 1183.7,836.08 1231.7,896 1233.2,897.83 1234.7,899.63 1236.2,901.41",points:[[896,539],[1008,612],[1151,708],[1172,734],[1219,795],[1184,836],[1232,896],[1233,898],[1235,900],[1236,901]],labelBBox:{x:1051,y:582,width:76,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@1"},{id:"step-03",source:"forgejoRunner",target:"edp.imageregistry",label:"pushes new image",dotpos:"e,823.44,828.86 1231.8,1011.9 1158.8,1011.9 1072.7,1003.2 1001.2,971.8 934.18,942.34 874.24,886.42 830.35,836.77",points:[[1232,1012],[1159,1012],[1073,1003],[1001,972],[934,942],[874,886],[830,837]],labelBBox:{x:1018,y:940,width:143,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@2"},{id:"step-04",source:"forgejoRunner",target:"edp.forgejogit",label:"pushes new appspec",dotpos:"s,892.11,538.97 899.79,546.08 915.25,560.79 929.55,576.84 941.18,594 994.62,672.87 940.47,726.37 1001.2,799.8 1033.6,839.02 1138.8,891.76 1231.7,933.12",points:[[900,546],[915,561],[930,577],[941,594],[995,673],[940,726],[1001,800],[1034,839],[1139,892],[1232,933]],labelBBox:{x:1010,y:768,width:158,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@3"},{id:"step-05",source:"edp.forgejogit",target:"edp.argoCD",label:"triggers deployment",dotpos:"e,1231.9,550.99 914.25,482.97 1007.9,503.03 1126.5,528.41 1221.9,548.84",points:[[914,483],[1008,503],[1126,528],[1222,549]],labelBBox:{x:1015,y:473,width:148,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@4"},{id:"step-06",source:"edp.argoCD",target:"cloud",label:"deploys application",dotpos:"e,1894.7,1063.3 1486.9,674.69 1596,778.69 1775.3,949.49 1887.4,1056.4",points:[[1487,675],[1596,779],[1775,949],[1887,1056]],labelBBox:{x:1621,y:769,width:145,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@5"},{id:"step-07",source:"cloud",target:"edp.imageregistry",label:"pulls image",dotpos:"s,812.1,828.53 817.94,836.93 897.44,950.49 1047,1129 1231.7,1182.8 1431.9,1241.1 1674.4,1215.8 1830.1,1188.1",points:[[818,837],[897,950],[1047,1129],[1232,1183],[1432,1241],[1674,1216],[1830,1188]],labelBBox:{x:1346,y:1151,width:97,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@6"}]},edpbuilderworkflow:{_type:"element",tags:null,links:null,viewOf:"edfbuilder",_stage:"layouted",sourcePath:"views/edp/edfbuilder.c4",description:{txt:"Describes the process how to create an EDP instance"},title:"edfbuilder",id:"edpbuilderworkflow",autoLayout:{direction:"LR",nodeSep:110,rankSep:120},hash:"40921acf4f52bd8d6d2ac3a0d1810b3b7bc13b2a",bounds:{x:0,y:0,width:320,height:180},nodes:[{id:"edfbuilder",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",x:0,y:0,width:320,height:180,labelBBox:{x:74,y:53,width:203,height:67}}],edges:[]},edp:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Context view",id:"edp",autoLayout:{direction:"TB"},hash:"28d4204eb300a4296f82769be0ee6d6ba8d0882b",bounds:{x:0,y:0,width:5229,height:943},nodes:[{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["stl3mw"],outEdges:["1cy1y20"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:0,y:392,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"developer",parent:null,level:0,children:[],inEdges:[],outEdges:["1y3lcyj","1ttqc1r","170qzun","1bt83vj","1nv0w41","1agven9","3nxrq7","bfgapq"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:25,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:4909,y:69,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"edp",parent:null,level:0,children:["edp.forgejoActions","edp.api","edp.argoCD","edp.ui","edp.forgejo","edp.imageregistry","edp.grafana","edp.keycloak","edp.forgejogit","edp.loki","edp.prometheus","edp.mailhog","edp.minio","edp.monitoring","edp.openbao","edp.testApp","edp.application"],inEdges:["1cy1y20","1y3lcyj","1ttqc1r","170qzun","1bt83vj","1nv0w41","1agven9","3nxrq7","bfgapq"],outEdges:["stl3mw"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:25,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"idp",x:390,y:8,width:4479,height:927,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejoActions",parent:"edp",level:1,children:[],inEdges:["1cy1y20"],outEdges:["stl3mw"],title:"Forgejo Actions",modelRef:"edp.forgejoActions",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:"Continuous Integration like Github Actions"},tags:[],technology:"Golang",kind:"component",x:430,y:69,width:350,height:180,labelBBox:{x:46,y:44,width:288,height:86}},{id:"edp.api",parent:"edp",level:1,children:[],inEdges:["1y3lcyj"],outEdges:[],title:"API",modelRef:"edp.api",shape:"rectangle",color:"primary",icon:"tech:swagger",style:{opacity:25,size:"md"},description:{txt:"API for the EDP platform"},tags:[],kind:"container",x:3649,y:392,width:320,height:180,labelBBox:{x:62,y:63,width:226,height:48}},{id:"edp.argoCD",parent:"edp",level:1,children:[],inEdges:["1ttqc1r"],outEdges:["f6xyb4"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:4079,y:392,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"edp.ui",parent:"edp",level:1,children:[],inEdges:["170qzun"],outEdges:[],title:"Backstage",modelRef:"edp.ui",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Developer Portal"},tags:[],kind:"container",x:4509,y:392,width:320,height:180,labelBBox:{x:102,y:63,width:116,height:48}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:["1bt83vj"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},tags:[],technology:"Golang",kind:"container",navigateTo:"forgejo",x:1830,y:392,width:340,height:180,labelBBox:{x:46,y:17,width:278,height:139}},{id:"edp.imageregistry",parent:"edp",level:1,children:[],inEdges:["1nv0w41"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:2280,y:392,width:373,height:180,labelBBox:{x:47,y:53,width:311,height:67}},{id:"edp.grafana",parent:"edp",level:1,children:[],inEdges:["3nxrq7"],outEdges:["1tfxhhz","1adt45o"],title:"Grafana",modelRef:"edp.grafana",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:25,size:"md"},description:{txt:"Data visualization and monitoring"},tags:[],kind:"container",x:2763,y:392,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:48}},{id:"edp.keycloak",parent:"edp",level:1,children:[],inEdges:["bfgapq"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:3219,y:392,width:320,height:180,labelBBox:{x:39,y:63,width:242,height:48}},{id:"edp.forgejogit",parent:"edp",level:1,children:[],inEdges:["1agven9","f6xyb4"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"md"},tags:[],kind:"component",x:4079,y:715,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}},{id:"edp.loki",parent:"edp",level:1,children:[],inEdges:["1tfxhhz"],outEdges:[],title:"Loki",modelRef:"edp.loki",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Log aggregation system"},tags:[],kind:"container",x:2561,y:715,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:47}},{id:"edp.prometheus",parent:"edp",level:1,children:[],inEdges:["1adt45o"],outEdges:[],title:"Prometheus",modelRef:"edp.prometheus",shape:"rectangle",color:"primary",icon:"tech:prometheus",style:{opacity:25,size:"md"},description:{txt:"Monitoring and alerting toolkit"},tags:[],kind:"container",x:2991,y:715,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:47}},{id:"edp.mailhog",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",navigateTo:"mailhog",x:890,y:69,width:320,height:180,labelBBox:{x:44,y:63,width:232,height:48}},{id:"edp.minio",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:1320,y:69,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}},{id:"edp.monitoring",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:1860,y:69,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"edp.openbao",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:430,y:392,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"edp.testApp",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",navigateTo:"testapp",x:860,y:392,width:320,height:180,labelBBox:{x:50,y:63,width:220,height:48}},{id:"edp.application",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"edp.application",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:1400,y:392,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:67}}],edges:[{id:"1cy1y20",source:"forgejoRunner",target:"edp.forgejoActions",label:"register",dotpos:"e,430.23,247.69 241.41,392.19 269.67,363.9 302.52,333.63 335.34,309.2 362.09,289.28 391.8,270.23 421.45,252.8",points:[[241,392],[270,364],[303,334],[335,309],[362,289],[392,270],[421,253]],labelBBox:{x:336,y:309,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"1y3lcyj",source:"developer",target:"edp.api",label:"uses API",dotpos:"e,3968.7,410.28 4909.1,244.68 4904.7,246.27 4900.4,247.79 4896,249.2 4732.6,302.52 4683.6,281.55 4514,309.2 4296,344.73 4236.3,330.98 4024,392 4009,396.32 3993.6,401.37 3978.3,406.83",points:[[4909,245],[4905,246],[4900,248],[4896,249],[4733,303],[4684,282],[4514,309],[4296,345],[4236,331],[4024,392],[4009,396],[3994,401],[3978,407]],labelBBox:{x:4515,y:309,width:60,height:18},parent:null,relations:["1l9a3pd"],color:"gray",line:"dashed",head:"normal"},{id:"1ttqc1r",source:"developer",target:"edp.argoCD",label:"manages deployments",dotpos:"e,4398.9,414.45 4909.4,243.91 4904.9,245.75 4900.4,247.51 4896,249.2 4797,287.01 4766,276.46 4665.2,309.2 4569.3,340.33 4547.5,354.32 4454,392 4439.2,397.97 4423.8,404.22 4408.4,410.52",points:[[4909,244],[4905,246],[4900,248],[4896,249],[4797,287],[4766,276],[4665,309],[4569,340],[4548,354],[4454,392],[4439,398],[4424,404],[4408,411]],labelBBox:{x:4666,y:309,width:145,height:18},parent:null,relations:["1ghp31l"],color:"gray",line:"dashed",head:"normal"},{id:"170qzun",source:"developer",target:"edp.ui",label:"manages project",dotpos:"e,4767.9,392.21 4944.9,249.03 4918.7,268.47 4891.5,289.22 4866.5,309.2 4836.5,333.25 4804.7,360.19 4775.6,385.47",points:[[4945,249],[4919,268],[4891,289],[4867,309],[4836,333],[4805,360],[4776,385]],labelBBox:{x:4868,y:309,width:108,height:18},parent:null,relations:["yk9zv2","1woleh6"],color:"gray",line:"dashed",head:"normal"},{id:"1bt83vj",source:"developer",target:"edp.forgejo",label:"manages code",dotpos:"e,2170.2,408.41 4909.3,245.41 4904.9,246.79 4900.4,248.06 4896,249.2 4470.7,359.05 3358.2,276.52 2920.2,309.2 2609.9,332.34 2526.7,315.74 2225,392 2210.2,395.74 2195.1,400.2 2180.1,405.12",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4471,359],[3358,277],[2920,309],[2610,332],[2527,316],[2225,392],[2210,396],[2195,400],[2180,405]],labelBBox:{x:2921,y:309,width:96,height:18},parent:null,relations:["12036hb"],color:"gray",line:"dashed",head:"normal"},{id:"1nv0w41",source:"developer",target:"edp.imageregistry",label:"pushes and pull images",dotpos:"e,2653.6,407.48 4909.3,245.36 4904.9,246.76 4900.4,248.04 4896,249.2 4562.4,336.85 3688.7,280.27 3344.9,309.2 3060.5,333.14 2985.2,323.73 2708,392 2693.4,395.61 2678.4,399.82 2663.4,404.41",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4562,337],[3689,280],[3345,309],[3060,333],[2985,324],[2708,392],[2693,396],[2678,400],[2663,404]],labelBBox:{x:3346,y:309,width:151,height:18},parent:null,relations:["177bm2y"],color:"gray",line:"dashed",head:"normal"},{id:"1agven9",source:"developer",target:"edp.forgejogit",label:"uses git",dotpos:"e,4398.8,781.42 5051.3,249 5028.2,341.96 4979.1,486.12 4884,572 4750.9,692.23 4550.9,751.24 4408.9,779.44",points:[[5051,249],[5028,342],[4979,486],[4884,572],[4751,692],[4551,751],[4409,779]],labelBBox:{x:5005,y:470,width:52,height:18},parent:null,relations:["1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"3nxrq7",source:"developer",target:"edp.grafana",label:"monitors",dotpos:"e,3108.5,408.4 4909.3,245.25 4904.8,246.68 4900.4,248 4896,249.2 4675.3,309.5 4096.2,289.17 3868.3,309.2 3554.4,336.8 3469.8,315.67 3164,392 3148.9,395.77 3133.5,400.29 3118.1,405.25",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4675,310],[4096,289],[3868,309],[3554,337],[3470,316],[3164,392],[3149,396],[3133,400],[3118,405]],labelBBox:{x:3869,y:309,width:58,height:18},parent:null,relations:["1xiorre"],color:"gray",line:"dashed",head:"normal"},{id:"bfgapq",source:"developer",target:"edp.keycloak",label:"authenticates",dotpos:"e,3538.8,409.46 4909.2,245.06 4904.8,246.54 4900.4,247.93 4896,249.2 4613.1,331.45 4528.6,277.01 4235.7,309.2 3949.9,340.62 3871.9,317.96 3594,392 3579.1,395.97 3563.9,400.73 3548.8,405.96",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4613,331],[4529,277],[4236,309],[3950,341],[3872,318],[3594,392],[3579,396],[3564,401],[3549,406]],labelBBox:{x:4237,y:309,width:87,height:18},parent:null,relations:["jpl8ll"],color:"gray",line:"dashed",head:"normal"},{id:"f6xyb4",source:"edp.argoCD",target:"edp.forgejogit",label:"Syncs git repo",dotpos:"e,4239,714.97 4239,571.93 4239,613.13 4239,662.24 4239,704.63",points:[[4239,572],[4239,613],[4239,662],[4239,705]],labelBBox:{x:4240,y:632,width:93,height:18},parent:"edp",relations:["6mupa0"],color:"gray",line:"dashed",head:"normal"},{id:"1tfxhhz",source:"edp.grafana",target:"edp.loki",label:"get logs",dotpos:"e,2780.6,714.97 2876.4,571.93 2848.5,613.66 2815.1,663.49 2786.4,706.24",points:[[2876,572],[2848,614],[2815,663],[2786,706]],labelBBox:{x:2836,y:632,width:53,height:18},parent:"edp",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"1adt45o",source:"edp.grafana",target:"edp.prometheus",label:"get metrics and alerts",dotpos:"e,3091.5,714.97 2995.6,571.93 3023.6,613.66 3057,663.49 3085.6,706.24",points:[[2996,572],[3024,614],[3057,663],[3086,706]],labelBBox:{x:3051,y:632,width:138,height:18},parent:"edp",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"stl3mw",source:"edp.forgejoActions",target:"forgejoRunner",label:"runs workflows",dotpos:"e,319.93,392.23 511.82,249.14 480.79,276.98 445.37,306.94 411.02,332 385.14,350.88 356.74,369.52 328.64,386.89",points:[[512,249],[481,277],[445,307],[411,332],[385,351],[357,370],[329,387]],labelBBox:{x:440,y:309,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"}]},keycloak:{_type:"element",tags:null,links:null,viewOf:"edp.keycloak",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Keycloak",id:"keycloak",autoLayout:{direction:"TB"},hash:"528a426001df41ee3034ded0cc7ae02a1bd96842",bounds:{x:0,y:0,width:927,height:560},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["119ru5h"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.keycloak",parent:null,level:0,children:["edp.keycloak.keycloak","edp.keycloak.keycloakDB"],inEdges:["119ru5h"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",depth:1,x:8,y:271,width:911,height:281,labelBBox:{x:6,y:0,width:66,height:15}},{id:"edp.keycloak.keycloak",parent:"edp.keycloak",level:1,children:[],inEdges:["119ru5h"],outEdges:["kn0x70"],title:"Keycloak",modelRef:"edp.keycloak.keycloak",shape:"rectangle",color:"primary",icon:"tech:java",style:{opacity:15,size:"md"},tags:[],technology:"Java",kind:"component",x:48,y:332,width:320,height:180,labelBBox:{x:103,y:64,width:144,height:46}},{id:"edp.keycloak.keycloakDB",parent:"edp.keycloak",level:1,children:[],inEdges:["kn0x70"],outEdges:[],title:"Database",modelRef:"edp.keycloak.keycloakDB",shape:"storage",color:"primary",icon:"tech:postgresql",style:{opacity:15,size:"md"},tags:[],technology:"Postgresql",kind:"component",x:559,y:332,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}}],edges:[{id:"119ru5h",source:"edp.ingressNginx",target:"edp.keycloak.keycloak",label:"https",dotpos:"e,208,332.26 208,179.87 208,223.7 208,276.72 208,321.86",points:[[208,180],[208,224],[208,277],[208,322]],labelBBox:{x:209,y:240,width:34,height:18},parent:null,relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"kn0x70",source:"edp.keycloak.keycloak",target:"edp.keycloak.keycloakDB",label:"reads/writes",dotpos:"e,558.2,422 367.93,422 425.1,422 489.73,422 547.81,422",points:[[368,422],[425,422],[490,422],[548,422]],labelBBox:{x:424,y:396,width:79,height:18},parent:"edp.keycloak",relations:["18zxrhs"],color:"gray",line:"dashed",head:"normal"}]},forgejo:{_type:"element",tags:null,links:null,viewOf:"edp.forgejo",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Forgejo",id:"forgejo",autoLayout:{direction:"TB"},hash:"e58fa1188b5809568e6fb20b5adc1584fef396d8",bounds:{x:0,y:0,width:846,height:528},nodes:[{id:"edp.forgejo",parent:null,level:0,children:["edp.forgejo.forgejocollaboration","edp.forgejo.forgejoproject"],inEdges:["1dgzzfb"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},tags:[],technology:"Golang",kind:"container",depth:1,x:8,y:239,width:830,height:281,labelBBox:{x:6,y:0,width:58,height:15}},{id:"edp.forgejo.forgejocollaboration",parent:"edp.forgejo",level:1,children:[],inEdges:[],outEdges:[],title:"Collaboration",modelRef:"edp.forgejo.forgejocollaboration",shape:"rectangle",color:"primary",icon:"tech:github",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:300,width:320,height:180,labelBBox:{x:85,y:74,width:180,height:24}},{id:"edp.forgejo.forgejoproject",parent:"edp.forgejo",level:1,children:[],inEdges:[],outEdges:[],title:"Project Mgmt",modelRef:"edp.forgejo.forgejoproject",shape:"rectangle",color:"primary",icon:"tech:github",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:300,width:320,height:180,labelBBox:{x:85,y:74,width:180,height:24}},{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["1dgzzfb"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}}],edges:[{id:"1dgzzfb",source:"edp.ingressNginx",target:"edp.forgejo",label:"https",dotpos:"e,208,238.8 208,179.6 208,195.09 208,211.63 208,228.36",points:[[208,180],[208,195],[208,212],[208,228]],labelBBox:{x:173,y:186,width:34,height:18},parent:null,relations:["123efwn"],color:"gray",line:"dashed",head:"normal"}]},crossplane:{_type:"element",tags:null,links:null,viewOf:"edp.crossplane",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Crossplane",id:"crossplane",autoLayout:{direction:"TB"},hash:"21cafdc6d03bbe02437c3a01524d368cfd652a88",bounds:{x:0,y:0,width:1276,height:597},nodes:[{id:"edp.crossplane",parent:null,level:0,children:["edp.crossplane.crossplane","edp.crossplane.crossplaneFunction","edp.crossplane.crossplaneRbacManager","edp.crossplane.providerArgoCD","edp.crossplane.providerKind","edp.crossplane.providerShell"],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Declarative management of ressources"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:1260,height:581,labelBBox:{x:6,y:0,width:80,height:15}},{id:"edp.crossplane.crossplane",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane.crossplane",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:69,width:320,height:180,labelBBox:{x:107,y:74,width:105,height:24}},{id:"edp.crossplane.crossplaneFunction",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Function Patch and Transform",modelRef:"edp.crossplane.crossplaneFunction",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:69,width:320,height:180,labelBBox:{x:23,y:74,width:273,height:24}},{id:"edp.crossplane.crossplaneRbacManager",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"RBAC Manager",modelRef:"edp.crossplane.crossplaneRbacManager",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:69,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"edp.crossplane.providerArgoCD",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD Provider",modelRef:"edp.crossplane.providerArgoCD",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:369,width:320,height:180,labelBBox:{x:82,y:74,width:155,height:24}},{id:"edp.crossplane.providerKind",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Kind Provider",modelRef:"edp.crossplane.providerKind",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:369,width:320,height:180,labelBBox:{x:98,y:74,width:124,height:24}},{id:"edp.crossplane.providerShell",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Shell Provider",modelRef:"edp.crossplane.providerShell",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:369,width:320,height:180,labelBBox:{x:96,y:74,width:129,height:24}}],edges:[]},externalSecrets:{_type:"element",tags:null,links:null,viewOf:"edp.externalSecrets",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"external-secrets",id:"externalSecrets",autoLayout:{direction:"TB"},hash:"b3af3338d1f389aa939be93f7233de72e9cf818b",bounds:{x:0,y:0,width:846,height:597},nodes:[{id:"edp.externalSecrets",parent:null,level:0,children:["edp.externalSecrets.externalSecrets","edp.externalSecrets.certController","edp.externalSecrets.webhook"],inEdges:[],outEdges:[],title:"external-secrets",modelRef:"edp.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:830,height:581,labelBBox:{x:6,y:0,width:119,height:15}},{id:"edp.externalSecrets.externalSecrets",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"external-secrets controller",modelRef:"edp.externalSecrets.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:69,width:320,height:180,labelBBox:{x:43,y:74,width:234,height:24}},{id:"edp.externalSecrets.certController",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"cert-controller",modelRef:"edp.externalSecrets.certController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:69,width:320,height:180,labelBBox:{x:97,y:74,width:126,height:24}},{id:"edp.externalSecrets.webhook",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"webhook",modelRef:"edp.externalSecrets.webhook",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:369,width:320,height:180,labelBBox:{x:118,y:74,width:84,height:24}}],edges:[]},velero:{_type:"element",tags:null,links:null,viewOf:"edp.velero",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Velero",id:"velero",autoLayout:{direction:"TB"},hash:"31cb339645f3556f63935e842bc8b051e3e17e78",bounds:{x:0,y:0,width:826,height:564},nodes:[{id:"edp.velero",parent:null,level:0,children:["edp.velero.velero"],inEdges:[],outEdges:["13dald4"],title:"Velero",modelRef:"edp.velero",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Backup Kubernetes resources"},tags:["internal"],kind:"container",depth:1,x:434,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:49,height:15}},{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["mcc3r"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:0,y:384,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.velero.velero",parent:"edp.velero",level:1,children:[],inEdges:[],outEdges:["13dald4"],title:"Velero",modelRef:"edp.velero.velero",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:466,y:61,width:320,height:180,labelBBox:{x:129,y:74,width:62,height:24}},{id:"edp.minio",parent:null,level:0,children:[],inEdges:["13dald4","mcc3r"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:466,y:384,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}}],edges:[{id:"13dald4",source:"edp.velero.velero",target:"edp.minio",label:"store backups",dotpos:"e,626.02,384.17 626.02,241.13 626.02,282.33 626.02,331.44 626.02,373.83",points:[[626,241],[626,282],[626,331],[626,374]],labelBBox:{x:627,y:301,width:91,height:18},parent:null,relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"},{id:"mcc3r",source:"edp.ingressNginx",target:"edp.minio",label:"https",dotpos:"e,466.11,474 319.74,474 363.61,474 411.35,474 455.79,474",points:[[320,474],[364,474],[411,474],[456,474]],labelBBox:{x:376,y:448,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"}]},minio:{_type:"element",tags:null,links:null,viewOf:"edp.minio",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Minio",id:"minio",autoLayout:{direction:"TB"},hash:"0fb400499e182662d442885af28e9f6c9738a4da",bounds:{x:0,y:0,width:750,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["jfb4ud"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:0,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.velero",parent:null,level:0,children:[],inEdges:[],outEdges:["wqj1c3"],title:"Velero",modelRef:"edp.velero",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Backup Kubernetes resources"},tags:["internal"],kind:"container",navigateTo:"velero",x:430,y:0,width:320,height:180,labelBBox:{x:58,y:63,width:205,height:48}},{id:"edp.minio",parent:null,level:0,children:["edp.minio.minio"],inEdges:["jfb4ud","wqj1c3"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",depth:1,x:183,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:36,height:15}},{id:"edp.minio.minio",parent:"edp.minio",level:1,children:[],inEdges:["jfb4ud","wqj1c3"],outEdges:[],title:"S3 Blob Storage",modelRef:"edp.minio.minio",shape:"storage",color:"primary",style:{opacity:15,size:"md"},tags:[],technology:"Minio",kind:"component",x:215,y:324,width:320,height:180,labelBBox:{x:85,y:64,width:150,height:46}}],edges:[{id:"jfb4ud",source:"edp.ingressNginx",target:"edp.minio.minio",label:"https",dotpos:"e,314.96,323.05 219.34,179.84 247.25,221.64 280.62,271.62 309.29,314.56",points:[[219,180],[247,222],[281,272],[309,315]],labelBBox:{x:275,y:240,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"wqj1c3",source:"edp.velero",target:"edp.minio.minio",label:"store backups",dotpos:"e,435.08,323.05 530.7,179.84 502.79,221.64 469.42,271.62 440.75,314.56",points:[[531,180],[503,222],[469,272],[441,315]],labelBBox:{x:490,y:240,width:91,height:18},parent:null,relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"}]},monitoring:{_type:"element",tags:null,links:null,viewOf:"edp.monitoring",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Monitoring",id:"monitoring",autoLayout:{direction:"TB"},hash:"0eedaf64b05f32fb962d9b885c9c7febad53741c",bounds:{x:0,y:0,width:878,height:645},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["j52jq6","15c9gki"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:510,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.monitoring",parent:null,level:0,children:["edp.monitoring.loki","edp.monitoring.alloy"],inEdges:["j52jq6","15c9gki"],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",depth:2,x:8,y:271,width:862,height:366,labelBBox:{x:6,y:0,width:75,height:15}},{id:"edp.monitoring.loki",parent:"edp.monitoring",level:1,children:["edp.monitoring.loki.queryFrontend"],inEdges:["15c9gki"],outEdges:[],title:"Loki",modelRef:"edp.monitoring.loki",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:20,size:"md"},description:{txt:"Log aggregation system"},tags:[],kind:"container",depth:1,x:48,y:332,width:384,height:265,labelBBox:{x:6,y:0,width:30,height:15}},{id:"edp.monitoring.alloy",parent:"edp.monitoring",level:1,children:[],inEdges:["j52jq6"],outEdges:[],title:"Alloy",modelRef:"edp.monitoring.alloy",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:15,size:"md",multiple:!0},description:{txt:"Open Telemetry Collector"},tags:[],kind:"component",x:510,y:385,width:320,height:180,labelBBox:{x:59,y:63,width:233,height:48}},{id:"edp.monitoring.loki.queryFrontend",parent:"edp.monitoring.loki",level:2,children:[],inEdges:["15c9gki"],outEdges:[],title:"Query Frontend",modelRef:"edp.monitoring.loki.queryFrontend",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:80,y:385,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}}],edges:[{id:"j52jq6",source:"edp.ingressNginx",target:"edp.monitoring.alloy",label:"https",dotpos:"e,670,385.47 670,179.88 670,238.29 670,314.8 670,375.17",points:[[670,180],[670,238],[670,315],[670,375]],labelBBox:{x:671,y:240,width:34,height:18},parent:null,relations:["1jvab2g"],color:"gray",line:"dashed",head:"normal"},{id:"15c9gki",source:"edp.ingressNginx",target:"edp.monitoring.loki.queryFrontend",label:"https",dotpos:"e,302.37,385.41 521.62,179.94 481.62,206.88 439.6,238.08 404,270.8 369.46,302.55 336.06,341.85 308.52,377.41",points:[[522,180],[482,207],[440,238],[404,271],[369,303],[336,342],[309,377]],labelBBox:{x:438,y:240,width:34,height:18},parent:null,relations:["fs60l7"],color:"gray",line:"dashed",head:"normal"}]},ingressNginx:{_type:"element",tags:null,links:null,viewOf:"edp.ingressNginx",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Ingress",id:"ingressNginx",autoLayout:{direction:"TB"},hash:"7a821addac59ba362551aa1d990ed1be9968679c",bounds:{x:0,y:0,width:3780,height:564},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:["edp.ingressNginx.ingressNginx"],inEdges:[],outEdges:["1poylyw","llqgvs","75xltk","dh7ut5","1bv0wod","68hu20","nx2xew","momp7g","8cmkj7"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",depth:1,x:1708,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:54,height:15}},{id:"edp.ingressNginx.ingressNginx",parent:"edp.ingressNginx",level:1,children:[],inEdges:[],outEdges:["1poylyw","llqgvs","75xltk","dh7ut5","1bv0wod","68hu20","nx2xew","momp7g","8cmkj7"],title:"ingress-nginx",modelRef:"edp.ingressNginx.ingressNginx",shape:"rectangle",color:"primary",icon:"tech:nginx",style:{opacity:15,size:"md"},tags:[],technology:"Nginx",kind:"component",x:1740,y:61,width:320,height:180,labelBBox:{x:85,y:64,width:181,height:46}},{id:"edp.argoCD",parent:null,level:0,children:[],inEdges:["1poylyw"],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:0,y:384,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"edp.ui",parent:null,level:0,children:[],inEdges:["llqgvs"],outEdges:[],title:"Backstage",modelRef:"edp.ui",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Developer Portal"},tags:[],kind:"container",x:430,y:384,width:320,height:180,labelBBox:{x:102,y:63,width:116,height:48}},{id:"edp.forgejo",parent:null,level:0,children:[],inEdges:["75xltk"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform
offering capabilities like
code version controling
collaboration and ticketing
and security scanning`},tags:[],technology:"Golang",kind:"container",navigateTo:"forgejo",x:860,y:384,width:340,height:180,labelBBox:{x:46,y:17,width:278,height:139}},{id:"edp.keycloak",parent:null,level:0,children:[],inEdges:["dh7ut5"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:1310,y:384,width:320,height:180,labelBBox:{x:39,y:63,width:242,height:48}},{id:"edp.mailhog",parent:null,level:0,children:[],inEdges:["1bv0wod"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",navigateTo:"mailhog",x:1740,y:384,width:320,height:180,labelBBox:{x:44,y:63,width:232,height:48}},{id:"edp.minio",parent:null,level:0,children:[],inEdges:["68hu20"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:2170,y:384,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}},{id:"edp.monitoring",parent:null,level:0,children:[],inEdges:["nx2xew"],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:2600,y:384,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"edp.openbao",parent:null,level:0,children:[],inEdges:["momp7g"],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:3030,y:384,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"edp.testApp",parent:null,level:0,children:[],inEdges:["8cmkj7"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",navigateTo:"testapp",x:3460,y:384,width:320,height:180,labelBBox:{x:50,y:63,width:220,height:48}}],edges:[{id:"1poylyw",source:"edp.ingressNginx.ingressNginx",target:"edp.argoCD",label:"https",dotpos:"e,319.96,401.87 1740.1,163.73 1459.5,186.77 861.79,248.41 375.02,384 360.03,388.17 344.69,393.11 329.44,398.47",points:[[1740,164],[1459,187],[862,248],[375,384],[360,388],[345,393],[329,398]],labelBBox:{x:704,y:301,width:34,height:18},parent:null,relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"llqgvs",source:"edp.ingressNginx.ingressNginx",target:"edp.ui",label:"https",dotpos:"e,749.97,403.03 1740.4,176.52 1525.1,211.47 1131,282.97 805.02,384 790.08,388.63 774.74,393.9 759.47,399.5",points:[[1740,177],[1525,211],[1131,283],[805,384],[790,389],[775,394],[759,400]],labelBBox:{x:1102,y:301,width:34,height:18},parent:null,relations:["v8c8aq"],color:"gray",line:"dashed",head:"normal"},{id:"75xltk",source:"edp.ingressNginx.ingressNginx",target:"edp.forgejo",label:"https",dotpos:"e,1200.3,405 1740.1,208.08 1609.3,254.18 1419.6,321.88 1255,384 1240.3,389.56 1225.1,395.4 1209.8,401.31",points:[[1740,208],[1609,254],[1420,322],[1255,384],[1240,390],[1225,395],[1210,401]],labelBBox:{x:1468,y:301,width:34,height:18},parent:null,relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"dh7ut5",source:"edp.ingressNginx.ingressNginx",target:"edp.keycloak",label:"https",dotpos:"e,1589.1,384.17 1780.8,241.13 1723.7,283.73 1655.3,334.77 1597.2,378.11",points:[[1781,241],[1724,284],[1655,335],[1597,378]],labelBBox:{x:1699,y:301,width:34,height:18},parent:null,relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"1bv0wod",source:"edp.ingressNginx.ingressNginx",target:"edp.mailhog",label:"https",dotpos:"e,1900,384.17 1900,241.13 1900,282.33 1900,331.44 1900,373.83",points:[[1900,241],[1900,282],[1900,331],[1900,374]],labelBBox:{x:1901,y:301,width:34,height:18},parent:null,relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"},{id:"68hu20",source:"edp.ingressNginx.ingressNginx",target:"edp.minio",label:"https",dotpos:"e,2211,384.17 2019.2,241.13 2076.3,283.73 2144.7,334.77 2202.8,378.11",points:[[2019,241],[2076,284],[2145,335],[2203,378]],labelBBox:{x:2129,y:301,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"nx2xew",source:"edp.ingressNginx.ingressNginx",target:"edp.monitoring",label:"https",dotpos:"e,2600.1,405.82 2059.8,207.26 2190.8,252.97 2380.8,320.52 2545,384 2559.8,389.73 2575.2,395.8 2590.5,401.97",points:[[2060,207],[2191,253],[2381,321],[2545,384],[2560,390],[2575,396],[2591,402]],labelBBox:{x:2370,y:301,width:34,height:18},parent:null,relations:["1jvab2g","fs60l7"],color:"gray",line:"dashed",head:"normal"},{id:"momp7g",source:"edp.ingressNginx.ingressNginx",target:"edp.openbao",label:"https",dotpos:"e,3030,403.09 2059.9,177.4 2271.9,212.91 2656.5,284.63 2975,384 2990,388.66 3005.3,393.94 3020.6,399.56",points:[[2060,177],[2272,213],[2657,285],[2975,384],[2990,389],[3005,394],[3021,400]],labelBBox:{x:2744,y:301,width:34,height:18},parent:null,relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"8cmkj7",source:"edp.ingressNginx.ingressNginx",target:"edp.testApp",label:"https",dotpos:"e,3460.1,401.91 2060,164.18 2337.9,187.76 2925.9,250.03 3405,384 3420,388.19 3435.3,393.13 3450.6,398.51",points:[[2060,164],[2338,188],[2926,250],[3405,384],[3420,388],[3435,393],[3451,399]],labelBBox:{x:3165,y:301,width:34,height:18},parent:null,relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"}]},testapp:{_type:"element",tags:null,links:null,viewOf:"edp.testApp",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Fibonacci",id:"testapp",autoLayout:{direction:"TB"},hash:"d8f40f5cfab10e6e91c79feeef6be3240922c723",bounds:{x:0,y:0,width:400,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["1tefjx2"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:40,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.testApp",parent:null,level:0,children:["edp.testApp.fibonacci"],inEdges:["1tefjx2"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",depth:1,x:8,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:65,height:15}},{id:"edp.testApp.fibonacci",parent:"edp.testApp",level:1,children:[],inEdges:["1tefjx2"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp.fibonacci",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},tags:[],technology:"Golang",kind:"component",x:40,y:324,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}}],edges:[{id:"1tefjx2",source:"edp.ingressNginx",target:"edp.testApp.fibonacci",label:"https",dotpos:"e,200,324.17 200,179.84 200,221.37 200,270.98 200,313.74",points:[[200,180],[200,221],[200,271],[200,314]],labelBBox:{x:201,y:240,width:34,height:18},parent:null,relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"}]},mailhog:{_type:"element",tags:null,links:null,viewOf:"edp.mailhog",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Mailhog",id:"mailhog",autoLayout:{direction:"TB"},hash:"b9e703c2ceb2b2a400194d90ac7caa94525ac068",bounds:{x:0,y:0,width:400,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["axipfp"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:40,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.mailhog",parent:null,level:0,children:["edp.mailhog.mailhog"],inEdges:["axipfp"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",depth:1,x:8,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:56,height:15}},{id:"edp.mailhog.mailhog",parent:"edp.mailhog",level:1,children:[],inEdges:["axipfp"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog.mailhog",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},tags:[],technology:"Golang",kind:"component",x:40,y:324,width:320,height:180,labelBBox:{x:109,y:64,width:132,height:46}}],edges:[{id:"axipfp",source:"edp.ingressNginx",target:"edp.mailhog.mailhog",label:"https",dotpos:"e,200,324.17 200,179.84 200,221.37 200,270.98 200,313.74",points:[[200,180],[200,221],[200,271],[200,314]],labelBBox:{x:201,y:240,width:34,height:18},parent:null,relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"}]},spark:{_type:"element",tags:null,links:null,viewOf:"edp.spark",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Spark",id:"spark",autoLayout:{direction:"TB"},hash:"1ec41779bad408405a96c4063aa06b24ec2aace8",bounds:{x:0,y:0,width:400,height:281},nodes:[{id:"edp.spark",parent:null,level:0,children:["edp.spark.sparkoperator"],inEdges:[],outEdges:[],title:"Spark",modelRef:"edp.spark",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Allows running Spark applications on K8s"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:43,height:15}},{id:"edp.spark.sparkoperator",parent:"edp.spark",level:1,children:[],inEdges:[],outEdges:[],title:"Spark Operator",modelRef:"edp.spark.sparkoperator",shape:"rectangle",color:"primary",icon:"tech:spark",style:{opacity:15,size:"md"},tags:[],technology:"Spark",kind:"component",x:40,y:61,width:320,height:180,labelBBox:{x:76,y:64,width:198,height:46}}],edges:[]},argoCD:{_type:"element",tags:null,links:null,viewOf:"edp.argoCD",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"ArgoCD",id:"argoCD",autoLayout:{direction:"TB"},hash:"53d798ca0a34dbe3ebf9b43318a151943ecaec33",bounds:{x:0,y:0,width:2058,height:883},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["ce0h9c"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.argoCD",parent:null,level:0,children:["edp.argoCD.argocdServer","edp.argoCD.argocdAppController","edp.argoCD.argocdAppSetController","edp.argoCD.argocdRepoServer","edp.argoCD.argocdRedis"],inEdges:["ce0h9c"],outEdges:["1e5s57z"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",depth:1,x:8,y:271,width:1690,height:604,labelBBox:{x:6,y:0,width:53,height:15}},{id:"edp.argoCD.argocdServer",parent:"edp.argoCD",level:1,children:[],inEdges:["ce0h9c"],outEdges:["124uc06"],title:"ArgoCD Server",modelRef:"edp.argoCD.argocdServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:332,width:320,height:180,labelBBox:{x:90,y:74,width:140,height:24}},{id:"edp.argoCD.argocdAppController",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["doh0se"],title:"ApplicationController",modelRef:"edp.argoCD.argocdAppController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:332,width:320,height:180,labelBBox:{x:66,y:74,width:189,height:24}},{id:"edp.argoCD.argocdAppSetController",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["ekc7mk"],title:"ApplicationSeetController",modelRef:"edp.argoCD.argocdAppSetController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:332,width:320,height:180,labelBBox:{x:45,y:74,width:230,height:24}},{id:"edp.argoCD.argocdRepoServer",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["173l3xq","1e5s57z"],title:"Repo Server",modelRef:"edp.argoCD.argocdRepoServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:1338,y:332,width:320,height:180,labelBBox:{x:102,y:74,width:116,height:24}},{id:"edp.argoCD.argocdRedis",parent:"edp.argoCD",level:1,children:[],inEdges:["124uc06","doh0se","ekc7mk","173l3xq"],outEdges:[],title:"Redis",modelRef:"edp.argoCD.argocdRedis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:15,size:"md"},tags:[],technology:"Redis",kind:"component",x:693,y:655,width:320,height:180,labelBBox:{x:118,y:64,width:114,height:46}},{id:"edp.forgejogit",parent:null,level:0,children:[],inEdges:["1e5s57z"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:15,size:"md"},tags:[],kind:"component",x:1738,y:655,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}}],edges:[{id:"ce0h9c",source:"edp.ingressNginx",target:"edp.argoCD.argocdServer",label:"https",dotpos:"e,208,332.26 208,179.87 208,223.7 208,276.72 208,321.86",points:[[208,180],[208,224],[208,277],[208,322]],labelBBox:{x:209,y:240,width:34,height:18},parent:null,relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"124uc06",source:"edp.argoCD.argocdServer",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,693.08,664.26 367.85,502.5 463.9,550.27 586.02,611.01 683.7,659.6",points:[[368,503],[464,550],[586,611],[684,660]],labelBBox:{x:551,y:572,width:65,height:18},parent:"edp.argoCD",relations:["yfhhi5"],color:"gray",line:"dashed",head:"normal"},{id:"doh0se",source:"edp.argoCD.argocdAppController",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,782.56,654.82 687.71,511.63 703.62,538.73 721.74,568.36 739.53,594.8 751,611.84 763.71,629.54 776.36,646.54",points:[[688,512],[704,539],[722,568],[740,595],[751,612],[764,630],[776,647]],labelBBox:{x:741,y:572,width:65,height:18},parent:"edp.argoCD",relations:["10vkxaf"],color:"gray",line:"dashed",head:"normal"},{id:"ekc7mk",source:"edp.argoCD.argocdAppSetController",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,912.53,654.97 1008.4,511.93 980.43,553.66 947.04,603.49 918.38,646.24",points:[[1008,512],[980,554],[947,603],[918,646]],labelBBox:{x:968,y:572,width:65,height:18},parent:"edp.argoCD",relations:["i8z0mi"],color:"gray",line:"dashed",head:"normal"},{id:"173l3xq",source:"edp.argoCD.argocdRepoServer",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,1012.9,664.26 1338.1,502.5 1242.1,550.27 1120,611.01 1022.3,659.6",points:[[1338,503],[1242,550],[1120,611],[1022,660]],labelBBox:{x:1196,y:572,width:65,height:18},parent:"edp.argoCD",relations:["iullhy"],color:"gray",line:"dashed",head:"normal"},{id:"1e5s57z",source:"edp.argoCD.argocdRepoServer",target:"edp.forgejogit",label:"Syncs git repo",dotpos:"e,1787.2,654.97 1608.9,511.93 1661.9,554.44 1725.4,605.36 1779.3,648.64",points:[[1609,512],[1662,554],[1725,605],[1779,649]],labelBBox:{x:1711,y:572,width:93,height:18},parent:null,relations:["6mupa0"],color:"gray",line:"dashed",head:"normal"}]},idp:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp-as-idp.c4",description:null,title:"EDP as IDP",id:"idp",autoLayout:{direction:"TB"},hash:"d1e4c998ee263bce5b2572834b6a9a7b6d6391f5",bounds:{x:-784,y:-470,width:6725,height:2278},nodes:[{id:"developer",parent:null,level:0,children:[],inEdges:[],outEdges:["1w9cpb2","1y3lcyj","1agven9","1nv0w41","3nxrq7","bfgapq"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:25,size:"xl"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:-784,y:-301,width:520,height:290,labelBBox:{x:111,y:108,width:298,height:64}},{id:"@gr1",parent:null,kind:"@group",title:"EDP",color:"primary",shape:"rectangle",children:["@gr2","@gr5","@gr6","@gr7"],inEdges:["1w9cpb2","1y3lcyj","1agven9","1nv0w41","3nxrq7","bfgapq"],outEdges:[],level:0,depth:3,tags:[],style:{border:"dashed",opacity:15},x:29,y:-451,width:2412,height:2259,labelBBox:{x:6,y:0,width:27,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Developer Control Plane",color:"primary",shape:"rectangle",children:["@gr3","@gr4"],inEdges:["1w9cpb2","1y3lcyj","1agven9"],outEdges:[],level:0,depth:2,tags:[],style:{border:"dashed",opacity:15},x:69,y:-401,width:2332,height:890,labelBBox:{x:6,y:0,width:170,height:15}},{id:"@gr3",parent:"@gr2",kind:"@group",title:"Frontend",color:"primary",shape:"rectangle",children:["edp.ui.backstage","edp.api"],inEdges:["1w9cpb2","1y3lcyj"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:110,y:-351,width:2246,height:384,labelBBox:{x:6,y:0,width:65,height:15}},{id:"@gr4",parent:"@gr2",kind:"@group",title:"Version Control",color:"primary",shape:"rectangle",children:["applicationspecification.application_gitrepo","applicationspecification.applicationspec_gitrepo","edp.forgejogit"],inEdges:["1agven9"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:109,y:59,width:2252,height:390,labelBBox:{x:6,y:0,width:111,height:15}},{id:"@gr5",parent:"@gr1",kind:"@group",title:"Integration & Delivery Plane",color:"primary",shape:"rectangle",children:["forgejoRunner","edp.imageregistry","edp.argoCD"],inEdges:["1nv0w41"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:925,y:542,width:1456,height:773,labelBBox:{x:6,y:0,width:189,height:15}},{id:"@gr6",parent:"@gr1",kind:"@group",title:"Monitoring Plane",color:"primary",shape:"rectangle",children:["edp.monitoring","edp.grafana"],inEdges:["3nxrq7"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:117,y:963,width:2262,height:388,labelBBox:{x:6,y:0,width:116,height:15}},{id:"@gr7",parent:"@gr1",kind:"@group",title:"Security Plane",color:"primary",shape:"rectangle",children:["edp.keycloak","edp.kyverno","edp.externalSecrets","edp.openbao"],inEdges:["bfgapq"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:116,y:1382,width:2266,height:386,labelBBox:{x:6,y:0,width:100,height:15}},{id:"edp.ui.backstage",parent:"@gr3",level:1,children:[],inEdges:["1w9cpb2"],outEdges:[],title:"Backstage",modelRef:"edp.ui.backstage",shape:"browser",color:"primary",icon:"tech:react",style:{opacity:25,size:"xl"},tags:[],kind:"component",x:150,y:-301,width:520,height:290,labelBBox:{x:179,y:123,width:192,height:32}},{id:"edp.api",parent:"@gr3",level:1,children:[],inEdges:["1y3lcyj"],outEdges:[],title:"API",modelRef:"edp.api",shape:"rectangle",color:"primary",icon:"tech:swagger",style:{opacity:25,size:"xl"},description:{txt:"API for the EDP platform"},tags:[],kind:"container",x:1796,y:-297,width:520,height:290,labelBBox:{x:129,y:108,width:292,height:64}},{id:"applicationspecification.application_gitrepo",parent:"@gr4",level:1,children:[],inEdges:[],outEdges:[],title:"Git App Repo",modelRef:"applicationspecification.application_gitrepo",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},description:{txt:"Git Application Repository"},tags:[],technology:"Git",kind:"component",x:958,y:119,width:520,height:290,labelBBox:{x:123,y:96,width:304,height:89}},{id:"applicationspecification.applicationspec_gitrepo",parent:"@gr4",level:1,children:[],inEdges:[],outEdges:[],title:"Git AppSpec Repo",modelRef:"applicationspecification.applicationspec_gitrepo",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},description:{txt:"Git Application Specification Repository"},tags:[],technology:"Git",kind:"component",x:1801,y:119,width:520,height:290,labelBBox:{x:114,y:83,width:322,height:114}},{id:"edp.forgejogit",parent:"@gr4",level:1,children:[],inEdges:["1agven9"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},tags:[],kind:"component",x:149,y:109,width:520,height:290,labelBBox:{x:179,y:123,width:192,height:32}},{id:"forgejoRunner",parent:"@gr5",level:1,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:965,y:985,width:520,height:290,labelBBox:{x:69,y:71,width:382,height:139}},{id:"edp.imageregistry",parent:"@gr5",level:1,children:[],inEdges:["1nv0w41"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"xl"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:965,y:595,width:522,height:290,labelBBox:{x:70,y:96,width:410,height:89}},{id:"edp.argoCD",parent:"@gr5",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:1821,y:592,width:520,height:290,labelBBox:{x:187,y:108,width:145,height:64}},{id:"edp.monitoring",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:1819,y:1021,width:520,height:290,labelBBox:{x:66,y:96,width:388,height:88}},{id:"edp.grafana",parent:"@gr6",level:1,children:[],inEdges:["3nxrq7"],outEdges:[],title:"Grafana",modelRef:"edp.grafana",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:25,size:"xl"},description:{txt:"Data visualization and monitoring"},tags:[],kind:"container",x:157,y:1013,width:520,height:290,labelBBox:{x:89,y:108,width:372,height:64}},{id:"edp.keycloak",parent:"@gr7",level:1,children:[],inEdges:["bfgapq"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:156,y:1438,width:520,height:290,labelBBox:{x:92,y:108,width:337,height:64}},{id:"edp.kyverno",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"Kyverno",modelRef:"edp.kyverno",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Policy-as-Code"},tags:["internal"],kind:"container",x:1267,y:1433,width:520,height:290,labelBBox:{x:187,y:108,width:146,height:64}},{id:"edp.externalSecrets",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"external-secrets",modelRef:"edp.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],kind:"container",navigateTo:"externalSecrets",x:1822,y:1432,width:520,height:290,labelBBox:{x:92,y:96,width:337,height:88}},{id:"edp.openbao",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:711,y:1437,width:520,height:290,labelBBox:{x:155,y:108,width:209,height:64}}],edges:[{id:"1w9cpb2",source:"developer",target:"edp.ui.backstage",label:"create and maintain apps",dotpos:"e,1840.8,633.87 5888.3,380.18 5537.3,435.39 4891.5,528.84 4336,564.42 4303.2,566.51 2004.4,563.02 1973,572.42 1930.6,585.1 1888.5,605.48 1849.6,628.59",points:[[5890,380],[5539,435],[4893,529],[4338,564],[4305,567],[2004,563],[1973,572],[1931,585],[1888,605],[1850,629]],labelBBox:{x:-57,y:-156,width:161,height:18},parent:null,relations:["1woleh6"],color:"gray",line:"dashed",head:"normal",controlPoints:[{x:-139.8,y:-156}]},{id:"1y3lcyj",source:"developer",target:"edp.api",label:"uses API",dotpos:"e,2494.7,633.74 5888.2,397.27 5631.2,453.06 5225.9,532.44 4870,564.42 4839.2,567.19 2670.9,564.31 2641,572.42 2594.4,585.07 2547.6,605.53 2504,628.75",points:[[5890,397],[5633,453],[5228,532],[4872,564],[4841,567],[2671,564],[2641,572],[2594,585],[2548,606],[2504,629]],labelBBox:{x:775,y:-442,width:60,height:18},parent:null,relations:["1l9a3pd"],color:"gray",line:"dashed",head:"normal",controlPoints:[{x:1165,y:-470}]},{id:"1agven9",source:"developer",target:"edp.forgejogit",label:"uses git",dotpos:"e,1199.9,633.62 5888.4,368.77 5435.9,421.39 4472.9,525.91 3656,564.42 3623.7,565.94 1361.9,563.12 1331,572.42 1288.9,585.06 1247.2,605.35 1208.6,628.36",points:[[5890,369],[5438,421],[4474,526],[3657,564],[3625,566],[1362,563],[1331,572],[1289,585],[1247,605],[1209,628]],labelBBox:{x:-73,y:103,width:52,height:18},parent:null,relations:["1uzzn9j"],color:"gray",line:"dashed",head:"normal",controlPoints:[{x:-141.45616438356166,y:77.2}]},{id:"1nv0w41",source:"developer",target:"edp.imageregistry",label:"pushes and pull images",dotpos:"e,3790,633.69 5888.3,438.36 5749.8,486.81 5575.2,539.64 5414,564.42 5373,570.72 3960.7,560.44 3921,572.42 3878.9,585.1 3837.2,605.41 3798.7,628.42",points:[[5890,438],[5752,487],[5577,540],[5416,564],[5375,571],[3963,560],[3923,572],[3881,585],[3839,605],[3800,628]],labelBBox:{x:205,y:439,width:151,height:18},parent:null,relations:["177bm2y"],color:"gray",line:"dashed",head:"normal",controlPoints:[{x:-191,y:271}]},{id:"3nxrq7",source:"developer",target:"edp.grafana",label:"monitors",dotpos:"e,3150,633.65 5888.1,415.01 5693.7,468.76 5420.3,535.68 5175,564.42 5122.7,570.54 3331.4,557.26 3281,572.42 3238.9,585.08 3197.2,605.37 3158.6,628.38",points:[[5890,415],[5696,469],[5422,536],[5177,564],[5125,571],[3331,557],[3281,572],[3239,585],[3197,605],[3159,628]],labelBBox:{x:-213,y:553,width:58,height:18},parent:null,relations:["1xiorre"],color:"gray",line:"dashed",head:"normal",controlPoints:[{x:-11,y:920}]},{id:"bfgapq",source:"developer",target:"edp.keycloak",label:"authenticates",dotpos:"e,5717.2,633.79 5938.9,481.38 5870.6,528.36 5794.5,580.63 5725.6,628.03",points:[[5941,481],[5873,528],[5797,581],[5728,628]],labelBBox:{x:-273,y:789,width:87,height:18},parent:null,relations:["jpl8ll"],color:"gray",line:"dashed",head:"normal",controlPoints:[{x:-75,y:1296}]}],hasLayoutDrift:!0},edporchestrator:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp-as-orchestrator.c4",description:null,title:"EDP as Orchestrator",id:"edporchestrator",autoLayout:{direction:"TB"},hash:"3b527fd6f99efa02fc730d4569c0a0ccc75b4ef3",bounds:{x:-236,y:14,width:1338,height:1005},nodes:[{id:"@gr1",parent:null,kind:"@group",title:"EDP",color:"primary",shape:"rectangle",children:["@gr2","@gr3","@gr4","@gr5","@gr6"],inEdges:[],outEdges:[],level:0,depth:2,tags:[],style:{border:"dashed",opacity:15},x:-236,y:19,width:1340,height:1001,labelBBox:{x:6,y:0,width:27,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Developer Control Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:48,y:69,width:320,height:180,labelBBox:{x:49,y:74,width:222,height:24}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Integration & Delivery Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:478,y:69,width:320,height:180,labelBBox:{x:34,y:74,width:252,height:24}},{id:"@gr4",parent:"@gr1",kind:"@group",title:"Monitoring Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:48,y:369,width:320,height:180,labelBBox:{x:83,y:74,width:154,height:24}},{id:"@gr5",parent:"@gr1",kind:"@group",title:"Security Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:478,y:369,width:320,height:180,labelBBox:{x:94,y:74,width:133,height:24}},{id:"@gr6",parent:"@gr1",kind:"@group",title:"Backend",color:"primary",shape:"rectangle",children:["edp.argoCD","edp.crossplane"],inEdges:[],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:-196,y:599,width:1260,height:381,labelBBox:{x:6,y:0,width:59,height:15}},{id:"edp.argoCD",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Declarative management of platform tools"},tags:[],kind:"container",isCustomized:!0,navigateTo:"argoCD",x:-156,y:649,width:520,height:290,labelBBox:{x:64,y:109,width:393,height:63}},{id:"edp.crossplane",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Declarative management of ressources"},tags:["internal"],kind:"container",navigateTo:"crossplane",x:504,y:650,width:520,height:290,labelBBox:{x:75,y:109,width:369,height:63}}],edges:[],hasLayoutDrift:!0},"application-transition":{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/application-transition.c4",description:null,title:"application-transistion",id:"application-transition",autoLayout:{direction:"TB"},hash:"024761d9274cbfc35558ae3606770e2c3e3afd0f",bounds:{x:0,y:0,width:1032,height:934},nodes:[{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["@gr2","@gr3","developer","otherProductLifecycleRoles"],inEdges:[],outEdges:["17brhnu"],level:0,depth:3,tags:[],style:{border:"none",opacity:20},x:8,y:8,width:1016,height:645,labelBBox:{x:6,y:0,width:114,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1uo6k6b"],level:0,depth:2,tags:[],style:{border:"none",opacity:30},x:48,y:263,width:448,height:350,labelBBox:{x:6,y:0,width:122,height:15}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1okgiq5","1wupl5x","1uo6k6b"],outEdges:["17brhnu","6szgsj"],level:0,depth:2,tags:[],style:{border:"none",opacity:30},x:536,y:263,width:448,height:350,labelBBox:{x:6,y:0,width:126,height:15}},{id:"cloud",parent:null,level:0,children:["cloud.application"],inEdges:["17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",depth:1,x:568,y:661,width:384,height:265,labelBBox:{x:6,y:0,width:43,height:15}},{id:"cloud.application",parent:"cloud",level:1,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"cloud.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:600,y:714,width:320,height:180,labelBBox:{x:73,y:54,width:175,height:67}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:127,y:69,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:572,y:69,width:375,height:180,labelBBox:{x:18,y:63,width:340,height:48}},{id:"localbox",parent:"@gr2",level:1,children:["localbox.application"],inEdges:["zjg544","6szgsj"],outEdges:["1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",depth:1,x:80,y:316,width:384,height:265,labelBBox:{x:6,y:0,width:66,height:15}},{id:"localbox.application",parent:"localbox",level:2,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"localbox.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:112,y:369,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:68}},{id:"edp",parent:"@gr3",level:1,children:["edp.application"],inEdges:["1okgiq5","1wupl5x","1uo6k6b"],outEdges:["17brhnu","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"edp",x:568,y:316,width:384,height:265,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.application",parent:"edp",level:2,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"edp.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:600,y:369,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:68}}],edges:[{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,279.16,316 282.54,248.8 281.64,266.75 280.66,286.09 279.68,305.53",points:[[283,249],[282,267],[281,286],[280,306]],labelBBox:{x:130,y:282,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",dotpos:"e,572.31,316 446.79,237.41 461.91,245.66 476.86,254.19 491,262.8 515.03,277.44 539.66,293.58 563.79,310.14",points:[[447,237],[462,246],[477,254],[491,263],[515,277],[540,294],[564,310]],labelBBox:{x:360,y:252,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",dotpos:"e,760,316 760,248.8 760,266.75 760,286.09 760,305.53",points:[[760,249],[760,267],[760,286],[760,306]],labelBBox:{x:578,y:282,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",dotpos:"e,568,459.2 464,459.2 495.2,459.2 526.41,459.2 557.62,459.2",points:[[464,459],[495,459],[526,459],[558,459]],labelBBox:{x:414,y:459,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",dotpos:"e,760,661.2 760,581.2 760,603.74 760,627.57 760,650.92",points:[[760,581],[760,604],[760,628],[760,651]],labelBBox:{x:619,y:598,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,464,459.2 568,459.2 536.79,459.2 505.57,459.2 474.36,459.2",points:[[568,459],[537,459],[506,459],[474,459]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},landscape:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/platform-context/developer-landscape.c4",description:null,title:"Developer Landscape View",id:"landscape",autoLayout:{direction:"LR",nodeSep:100,rankSep:100},hash:"233c7192f76cf722e6ae5f3151321dfbf018bef7",bounds:{x:0,y:0,width:3257,height:2291},nodes:[{id:"applicationspecification",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"application-specification",modelRef:"applicationspecification",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},tags:[],kind:"component",x:0,y:1092,width:338,height:180,labelBBox:{x:18,y:45,width:303,height:84}},{id:"forgejoRunnerWorker",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner Worker",modelRef:"forgejoRunnerWorker",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],kind:"component",x:484,y:1092,width:333,height:180,labelBBox:{x:19,y:45,width:297,height:84}},{id:"promtail",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Promtail",modelRef:"promtail",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Log shipper agent for Loki"},tags:[],kind:"component",x:1095,y:1092,width:320,height:180,labelBBox:{x:71,y:63,width:177,height:48}},{id:"elasticsearch",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Elasticsearch",modelRef:"elasticsearch",shape:"rectangle",color:"primary",icon:"tech:elasticsearch",style:{opacity:20,size:"md"},description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of
addressing a growing number of use cases. It centrally stores your data so you can
discover the expected and uncover the unexpected.`},tags:[],technology:"Elasticsearch",kind:"container",x:1725,y:1092,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}},{id:"objectstorage",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"s3 Object Storage",modelRef:"objectstorage",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"s3 Object Storage"},tags:[],technology:"S3 Object Storage",kind:"container",x:9,y:812,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"postgres",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"PostgreSQL",modelRef:"postgres",shape:"rectangle",color:"primary",icon:"tech:postgresql",style:{opacity:20,size:"md"},description:{txt:`PostgreSQL is a powerful, open source object-relational database system.
It has more than 15 years of active development and a proven architecture
that has earned it a strong reputation for reliability, data integrity,
and correctness.`},tags:[],technology:"PostgreSQL",kind:"container",x:474,y:812,width:354,height:180,labelBBox:{x:46,y:17,width:292,height:139}},{id:"redis",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Redis",modelRef:"redis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:20,size:"md"},description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},tags:[],technology:"Redis",kind:"container",x:1075,y:812,width:359,height:180,labelBBox:{x:46,y:26,width:297,height:121}},{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["mox1r9","x7to90"],title:"Platform Developer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"md"},description:{txt:"The EDP engineer"},tags:[],kind:"actor",x:9,y:2111,width:320,height:180,labelBBox:{x:73,y:63,width:175,height:48}},{id:"customers",parent:null,level:0,children:[],inEdges:[],outEdges:["8fboq4"],title:"End Customers",modelRef:"customers",shape:"person",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Consumers of your Application"},tags:[],kind:"actor",x:2346,y:1217,width:320,height:180,labelBBox:{x:56,y:63,width:208,height:48}},{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1ndqohb","1t1nq4"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:9,y:381,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"customer",parent:null,level:0,children:[],inEdges:[],outEdges:["n2nq9r"],title:"Customer",modelRef:"customer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"End user of the platform"},tags:[],kind:"myperson",x:9,y:0,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:48}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["5mpoyf"],outEdges:["1lyfj4n"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:2346,y:2e3,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"edfbuilder",parent:null,level:0,children:[],inEdges:["mox1r9"],outEdges:["lnq8uj"],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",navigateTo:"edpbuilderworkflow",x:491,y:1991,width:320,height:180,labelBBox:{x:74,y:53,width:203,height:67}},{id:"docPlatform",parent:null,level:0,children:[],inEdges:["1ndqohb","8lbghe"],outEdges:["jw1mqa"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",navigateTo:"overview",x:491,y:330,width:320,height:180,labelBBox:{x:25,y:54,width:271,height:66}},{id:"mySystem",parent:null,level:0,children:[],inEdges:["n2nq9r"],outEdges:[],title:"My System",modelRef:"mySystem",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Example system component"},tags:[],kind:"mysystem",x:491,y:0,width:320,height:180,labelBBox:{x:64,y:63,width:192,height:48}},{id:"edf",parent:null,level:0,children:[],inEdges:["lnq8uj","x7to90"],outEdges:["109bf6k"],title:"EDF",modelRef:"edf",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},tags:[],technology:"Kubernetes",kind:"system",x:1094,y:2098,width:321,height:180,labelBBox:{x:46,y:35,width:260,height:103}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["jw1mqa"],outEdges:["8lbghe","1d6ysxt"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:1091,y:330,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:48}},{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["developer","otherProductLifecycleRoles","@gr2","@gr3"],inEdges:["1lyfj4n","109bf6k"],outEdges:["1tbee2v","5mpoyf","17brhnu","35ru8e"],level:0,depth:2,tags:[],style:{border:"none",opacity:20},x:1027,y:1312,width:1129,height:746,labelBBox:{x:6,y:0,width:114,height:15}},{id:"deploymentEnv",parent:null,level:0,children:[],inEdges:["1t1nq4","1d6ysxt"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",x:1750,y:472,width:320,height:180,labelBBox:{x:46,y:63,width:229,height:48}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:1095,y:1476,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:1067,y:1806,width:375,height:180,labelBBox:{x:18,y:63,width:340,height:48}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:1718,y:1373,width:384,height:265,labelBBox:{x:6,y:0,width:122,height:15}},{id:"localbox",parent:"@gr2",level:1,children:[],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",x:1750,y:1426,width:320,height:180,labelBBox:{x:65,y:53,width:191,height:67}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1lyfj4n","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:1705,y:1753,width:411,height:265,labelBBox:{x:6,y:0,width:126,height:15}},{id:"edp",parent:"@gr3",level:1,children:[],inEdges:["1lyfj4n","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",navigateTo:"edp",x:1737,y:1806,width:346,height:180,labelBBox:{x:46,y:53,width:285,height:67}},{id:"enterprise",parent:null,level:0,children:[],inEdges:["1tbee2v","35ru8e"],outEdges:["iwd51q"],title:"Customers' Enterprise Systems",modelRef:"enterprise",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"The customers' enterprise systems"},tags:[],kind:"system",x:2346,y:1497,width:320,height:180,labelBBox:{x:18,y:63,width:283,height:48}},{id:"cloud",parent:null,level:0,children:[],inEdges:["8fboq4","iwd51q","17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:2937,y:1497,width:320,height:180,labelBBox:{x:91,y:53,width:137,height:67}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",dotpos:"e,1094,2159.6 811.12,2109.3 895.04,2124.2 998.1,2142.5 1083.6,2157.7",points:[[811,2109],[895,2124],[998,2143],[1084,2158]],labelBBox:{x:915,y:2099,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",dotpos:"e,491.39,2120.7 329.16,2161.3 377.94,2149.1 431.8,2135.6 481.24,2123.3",points:[[329,2161],[378,2149],[432,2136],[481,2123]],labelBBox:{x:391,y:2118,width:31,height:18},parent:null,relations:["s1l7g7"],color:"gray",line:"dashed",head:"normal"},{id:"x7to90",source:"platformdeveloper",target:"edf",label:"develops EDP and EDF",dotpos:"e,1093.9,2214 329.18,2227.6 375.77,2234.3 426.92,2240.5 474.22,2243.8 631.28,2254.8 671.36,2254.1 828.47,2243.8 912.81,2238.3 1006,2226.7 1083.5,2215.5",points:[[329,2228],[376,2234],[427,2240],[474,2244],[631,2255],[671,2254],[828,2244],[913,2238],[1006,2227],[1084,2215]],labelBBox:{x:575,y:2221,width:152,height:18},parent:null,relations:["v8v12"],color:"gray",line:"dashed",head:"normal"},{id:"8fboq4",source:"customers",target:"cloud",label:"uses your app",dotpos:"e,2936.8,1511.4 2665.7,1382.6 2746.7,1421.1 2845.1,1467.9 2927.4,1507",points:[[2666,1383],[2747,1421],[2845,1468],[2927,1507]],labelBBox:{x:2755,y:1390,width:92,height:18},parent:null,relations:["1g2ebwc"],color:"gray",line:"dashed",head:"normal"},{id:"iwd51q",source:"enterprise",target:"cloud",label:"app specific dependencies",dotpos:"e,2936.8,1587 2665.7,1587 2746.4,1587 2844.3,1587 2926.3,1587",points:[[2666,1587],[2746,1587],[2844,1587],[2926,1587]],labelBBox:{x:2717,y:1564,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"1ndqohb",source:"documentor",target:"docPlatform",label:"[...]",dotpos:"e,491.39,436.89 329.16,454.12 377.84,448.95 431.57,443.24 480.93,438",points:[[329,454],[378,449],[432,443],[481,438]],labelBBox:{x:394,y:421,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl","1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1t1nq4",source:"documentor",target:"deploymentEnv",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,1750.3,576.36 329.31,526.76 375.46,540.43 426.34,553.1 474.22,560 927.81,625.38 1470.5,597.83 1740,577.15",points:[[329,527],[375,540],[426,553],[474,560],[928,625],[1470,598],[1740,577]],labelBBox:{x:879,y:573,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"jw1mqa",source:"docPlatform",target:"cicdPipeline",label:"[...]",dotpos:"e,1090.8,420 811.12,420 894.04,420 995.64,420 1080.6,420",points:[[811,420],[894,420],[996,420],[1081,420]],labelBBox:{x:935,y:396,width:25,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw","8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"8lbghe",source:"cicdPipeline",target:"docPlatform",label:"[...]",dotpos:"e,811.35,457.94 1090.9,457.27 1066.2,461.64 1040.9,465.39 1016.8,467.8 955.6,473.91 939.6,474.19 878.47,467.8 859.95,465.86 840.71,463.06 821.62,459.76",points:[[1091,457],[1066,462],[1041,465],[1017,468],[956,474],[940,474],[878,468],[860,466],[841,463],[822,460]],labelBBox:{x:935,y:444,width:25,height:18},parent:null,relations:["omluoy","11hmyp0","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"1d6ysxt",source:"cicdPipeline",target:"deploymentEnv",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,1750.4,527.49 1418.5,455.37 1516.5,476.68 1641.2,503.76 1740.3,525.29",points:[[1418,455],[1517,477],[1641,504],[1740,525]],labelBBox:{x:1531,y:451,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"n2nq9r",source:"customer",target:"mySystem",label:"uses",dotpos:"e,491.39,90 329.16,90 377.84,90 431.57,90 480.93,90",points:[[329,90],[378,90],[432,90],[481,90]],labelBBox:{x:390,y:67,width:34,height:18},parent:null,relations:["1yvgyrn"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,1750.4,1528.2 1414.3,1553.9 1512.9,1546.3 1639.6,1536.6 1740.2,1528.9",points:[[1414,1554],[1513,1546],[1640,1537],[1740,1529]],labelBBox:{x:1509,y:1512,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1tbee2v",source:"localbox",target:"enterprise",label:"company integration",dotpos:"e,2345.8,1568 2069.9,1535 2151.9,1544.8 2252,1556.8 2335.4,1566.8",points:[[2070,1535],[2152,1545],[2252,1557],[2335,1567]],labelBBox:{x:2165,y:1523,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",dotpos:"e,2023.8,1985.8 2346,2091.9 2287.4,2088.5 2221.2,2079.7 2163.6,2059.8 2117.7,2044 2071.9,2018.1 2032.2,1991.5",points:[[2346,2092],[2287,2088],[2221,2080],[2164,2060],[2118,2044],[2072,2018],[2032,1991]],labelBBox:{x:2204,y:2037,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"109bf6k",source:"edf",target:"edp",label:"builds many",dotpos:"e,1831.2,1985.7 1415.3,2177 1496.5,2166.4 1594.7,2145.9 1675.2,2105.8 1730.6,2078.2 1782.9,2033.9 1823.9,1993",points:[[1415,2177],[1496,2166],[1595,2146],[1675,2106],[1731,2078],[1783,2034],[1824,1993]],labelBBox:{x:1545,y:2083,width:79,height:18},parent:null,relations:["wsm3kf"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",dotpos:"e,1736.9,1809 1414.3,1646.1 1508.9,1693.9 1629.4,1754.7 1727.8,1804.4",points:[[1414,1646],[1509,1694],[1629,1755],[1728,1804]],labelBBox:{x:1509,y:1669,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",dotpos:"e,1737.1,1896 1442.5,1896 1531.7,1896 1638,1896 1726.6,1896",points:[[1443,1896],[1532,1896],[1638,1896],[1727,1896]],labelBBox:{x:1494,y:1873,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",dotpos:"e,1910.2,1806.4 1910.2,1606 1910.2,1663.1 1910.2,1737 1910.2,1796",points:[[1910,1606],[1910,1663],[1910,1737],[1910,1796]],labelBBox:{x:1794,y:1694,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"5mpoyf",source:"edp",target:"forgejoRunner",label:"runs workflows",dotpos:"e,2345.7,2033 2083.4,1948.2 2149.9,1968.8 2226.5,1993 2295.7,2016 2308.8,2020.4 2322.3,2024.9 2335.8,2029.6",points:[[2083,1948],[2150,1969],[2227,1993],[2296,2016],[2309,2020],[2322,2025],[2336,2030]],labelBBox:{x:2181,y:1952,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",dotpos:"e,2936.9,1654.6 2083.2,1871.2 2237.5,1847 2469,1805.6 2665.7,1749.8 2753.6,1724.8 2848.9,1689.7 2927.4,1658.4",points:[[2083,1871],[2237,1847],[2469,1806],[2666,1750],[2754,1725],[2849,1690],[2927,1658]],labelBBox:{x:2436,y:1727,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",dotpos:"e,2345.8,1658.4 2059.5,1806.1 2093.4,1786.4 2129.5,1766 2163.6,1748 2219.2,1718.7 2281,1688.7 2336.5,1662.7",points:[[2059,1806],[2093,1786],[2129,1766],[2164,1748],[2219,1719],[2281,1689],[2337,1663]],labelBBox:{x:2197,y:1660,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,1910.2,1605.8 1910.2,1806.2 1910.2,1742.8 1910.2,1679.4 1910.2,1616",points:[[1910,1806],[1910,1743],[1910,1679],[1910,1616]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},"developer-landscape-with-foundry":{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/platform-context/developer-landscape-with-foundry.c4",description:null,title:"Developer Landscape View (with Foundry)",id:"developer-landscape-with-foundry",autoLayout:{direction:"LR",nodeSep:100,rankSep:100},hash:"e0253be4232dfb197548959f4ad1b1219b161d2d",bounds:{x:0,y:0,width:4332,height:3026},nodes:[{id:"applicationspecification",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"application-specification",modelRef:"applicationspecification",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},tags:[],kind:"component",x:0,y:1372,width:520,height:290,labelBBox:{x:49,y:84,width:422,height:113}},{id:"forgejoRunnerWorker",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner Worker",modelRef:"forgejoRunnerWorker",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],kind:"component",x:656,y:1372,width:520,height:290,labelBBox:{x:52,y:84,width:415,height:113}},{id:"promtail",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Promtail",modelRef:"promtail",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Log shipper agent for Loki"},tags:[],kind:"component",x:1425,y:1372,width:520,height:290,labelBBox:{x:137,y:109,width:247,height:63}},{id:"elasticsearch",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Elasticsearch",modelRef:"elasticsearch",shape:"rectangle",color:"primary",icon:"tech:elasticsearch",style:{opacity:20,size:"xl"},description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of
addressing a growing number of use cases. It centrally stores your data so you can
discover the expected and uncover the unexpected.`},tags:[],technology:"Elasticsearch",kind:"container",x:2239,y:1372,width:520,height:290,labelBBox:{x:72,y:46,width:406,height:189}},{id:"objectstorage",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"s3 Object Storage",modelRef:"objectstorage",shape:"rectangle",color:"primary",style:{opacity:20,size:"xl"},description:{txt:"s3 Object Storage"},tags:[],technology:"S3 Object Storage",kind:"container",x:0,y:982,width:520,height:290,labelBBox:{x:146,y:96,width:228,height:89}},{id:"postgres",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"PostgreSQL",modelRef:"postgres",shape:"rectangle",color:"primary",icon:"tech:postgresql",style:{opacity:20,size:"xl"},description:{txt:`PostgreSQL is a powerful, open source object-relational database system.
It has more than 15 years of active development and a proven architecture
that has earned it a strong reputation for reliability, data integrity,
and correctness.`},tags:[],technology:"PostgreSQL",kind:"container",x:656,y:982,width:520,height:290,labelBBox:{x:83,y:46,width:384,height:189}},{id:"redis",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Redis",modelRef:"redis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:20,size:"xl"},description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},tags:[],technology:"Redis",kind:"container",x:1425,y:982,width:520,height:290,labelBBox:{x:79,y:58,width:392,height:165}},{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["mox1r9","x7to90"],title:"Platform Developer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"xl"},description:{txt:"The EDP engineer"},tags:[],kind:"actor",x:0,y:2736,width:520,height:290,labelBBox:{x:138,y:109,width:244,height:63}},{id:"customers",parent:null,level:0,children:[],inEdges:[],outEdges:["8fboq4"],title:"End Customers",modelRef:"customers",shape:"person",color:"amber",style:{opacity:15,size:"xl"},description:{txt:"Consumers of your Application"},tags:[],kind:"actor",x:3021,y:1442,width:520,height:290,labelBBox:{x:115,y:109,width:290,height:63}},{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1ndqohb","1t1nq4"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:0,y:541,width:520,height:290,labelBBox:{x:84,y:83,width:352,height:115}},{id:"customer",parent:null,level:0,children:[],inEdges:[],outEdges:["n2nq9r"],title:"Customer",modelRef:"customer",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"End user of the platform"},tags:[],kind:"myperson",x:0,y:0,width:520,height:290,labelBBox:{x:146,y:109,width:228,height:63}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["5mpoyf"],outEdges:["1lyfj4n"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:3021,y:2445,width:520,height:290,labelBBox:{x:69,y:71,width:382,height:139}},{id:"edfbuilder",parent:null,level:0,children:[],inEdges:["mox1r9"],outEdges:["lnq8uj"],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"xl"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",navigateTo:"edpbuilderworkflow",x:656,y:2574,width:520,height:290,labelBBox:{x:145,y:96,width:259,height:89}},{id:"docPlatform",parent:null,level:0,children:[],inEdges:["1ndqohb","8lbghe"],outEdges:["jw1mqa"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",navigateTo:"overview",x:656,y:390,width:520,height:290,labelBBox:{x:71,y:96,width:378,height:89}},{id:"mySystem",parent:null,level:0,children:[],inEdges:["n2nq9r"],outEdges:[],title:"My System",modelRef:"mySystem",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Example system component"},tags:[],kind:"mysystem",x:656,y:0,width:520,height:290,labelBBox:{x:126,y:109,width:268,height:63}},{id:"edf",parent:null,level:0,children:[],inEdges:["lnq8uj","x7to90"],outEdges:["109bf6k"],title:"EDF",modelRef:"edf",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"xl"},description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},tags:[],technology:"Kubernetes",kind:"system",x:1425,y:2708,width:520,height:290,labelBBox:{x:106,y:71,width:338,height:139}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["jw1mqa"],outEdges:["8lbghe","1d6ysxt"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:1425,y:390,width:520,height:290,labelBBox:{x:57,y:109,width:407,height:63}},{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["developer","otherProductLifecycleRoles","@gr2","@gr3"],inEdges:["1lyfj4n","109bf6k"],outEdges:["1tbee2v","5mpoyf","17brhnu","35ru8e"],level:0,depth:2,tags:[],style:{border:"none",opacity:20},x:1374,y:1702,width:1457,height:966,labelBBox:{x:6,y:0,width:114,height:15}},{id:"deploymentEnv",parent:null,level:0,children:[],inEdges:["1t1nq4","1d6ysxt"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",x:2239,y:573,width:520,height:290,labelBBox:{x:100,y:109,width:318,height:63}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:1425,y:1866,width:520,height:290,labelBBox:{x:111,y:109,width:298,height:63}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:1414,y:2306,width:542,height:290,labelBBox:{x:34,y:109,width:474,height:63}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:2207,y:1763,width:584,height:375,labelBBox:{x:6,y:0,width:122,height:15}},{id:"localbox",parent:"@gr2",level:1,children:[],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",x:2239,y:1816,width:520,height:290,labelBBox:{x:127,y:96,width:265,height:89}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1lyfj4n","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:2207,y:2253,width:584,height:375,labelBBox:{x:6,y:0,width:126,height:15}},{id:"edp",parent:"@gr3",level:1,children:[],inEdges:["1lyfj4n","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"xl"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",navigateTo:"edp",x:2239,y:2306,width:520,height:290,labelBBox:{x:88,y:96,width:374,height:89}},{id:"enterprise",parent:null,level:0,children:[],inEdges:["1tbee2v","35ru8e"],outEdges:["iwd51q"],title:"Customers' Enterprise Systems",modelRef:"enterprise",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"The customers' enterprise systems"},tags:[],kind:"system",x:3021,y:1832,width:520,height:290,labelBBox:{x:62,y:109,width:395,height:63}},{id:"cloud",parent:null,level:0,children:[],inEdges:["8fboq4","iwd51q","17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:3812,y:1832,width:520,height:290,labelBBox:{x:164,y:96,width:191,height:89}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",dotpos:"e,1425.3,2807.8 1175.6,2764.2 1252.8,2777.7 1337.5,2792.5 1415.3,2806.1",points:[[1176,2764],[1253,2778],[1338,2793],[1415,2806]],labelBBox:{x:1262,y:2751,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",dotpos:"e,655.88,2783.1 519.83,2816.9 561.26,2806.6 604.23,2795.9 645.89,2785.6",points:[[520,2817],[561,2807],[604,2796],[646,2786]],labelBBox:{x:572,y:2777,width:31,height:18},parent:null,relations:["s1l7g7"],color:"gray",line:"dashed",head:"normal"},{id:"x7to90",source:"platformdeveloper",target:"edf",label:"develops EDP and EDF",dotpos:"e,1425.1,2904.1 519.96,2922.9 565.07,2928.7 611.63,2933.7 655.63,2936.8 886.19,2953 945.32,2955.7 1175.7,2936.8 1253.7,2930.4 1337.9,2918.6 1414.8,2905.8",points:[[520,2923],[565,2929],[612,2934],[656,2937],[886,2953],[945,2956],[1176,2937],[1254,2930],[1338,2919],[1415,2906]],labelBBox:{x:840,y:2914,width:152,height:18},parent:null,relations:["v8v12"],color:"gray",line:"dashed",head:"normal"},{id:"8fboq4",source:"customers",target:"cloud",label:"uses your app",dotpos:"e,3811.9,1849 3540.7,1715 3624.7,1756.5 3718.1,1802.6 3802.7,1844.5",points:[[3541,1715],[3625,1756],[3718,1803],[3803,1844]],labelBBox:{x:3630,y:1724,width:92,height:18},parent:null,relations:["1g2ebwc"],color:"gray",line:"dashed",head:"normal"},{id:"iwd51q",source:"enterprise",target:"cloud",label:"app specific dependencies",dotpos:"e,3811.9,1977 3540.7,1977 3624.3,1977 3717.1,1977 3801.4,1977",points:[[3541,1977],[3624,1977],[3717,1977],[3801,1977]],labelBBox:{x:3592,y:1954,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"1ndqohb",source:"documentor",target:"docPlatform",label:"[...]",dotpos:"e,655.88,594.79 519.83,626.22 561.26,616.65 604.23,606.72 645.89,597.1",points:[[520,626],[561,617],[604,607],[646,597]],labelBBox:{x:575,y:586,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl","1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1t1nq4",source:"documentor",target:"deploymentEnv",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,2238.7,724.91 519.91,719.03 565.08,723.6 611.67,727.56 655.63,730.01 1232.7,762.08 1378.1,736.41 1956,730.01 2044.7,729.03 2141.5,727.14 2228.4,725.15",points:[[520,719],[565,724],[612,728],[656,730],[1233,762],[1378,736],[1956,730],[2045,729],[2141,727],[2228,725]],labelBBox:{x:1227,y:720,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"jw1mqa",source:"docPlatform",target:"cicdPipeline",label:"[...]",dotpos:"e,1425.3,535.01 1175.6,535.01 1252.7,535.01 1337.2,535.01 1414.8,535.01",points:[[1176,535],[1253,535],[1337,535],[1415,535]],labelBBox:{x:1282,y:511,width:25,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw","8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"8lbghe",source:"cicdPipeline",target:"docPlatform",label:"[...]",dotpos:"e,1175.6,578.03 1425.2,578.41 1360.1,584.8 1290.4,587.78 1225.7,582.81 1212.6,581.8 1199.3,580.57 1185.9,579.15",points:[[1425,578],[1360,585],[1290,588],[1226,583],[1213,582],[1199,581],[1186,579]],labelBBox:{x:1282,y:559,width:25,height:18},parent:null,relations:["omluoy","11hmyp0","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"1d6ysxt",source:"cicdPipeline",target:"deploymentEnv",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,2238.8,659.65 1944.8,593.35 2035.3,613.77 2137.2,636.74 2228.6,657.34",points:[[1945,593],[2035,614],[2137,637],[2229,657]],labelBBox:{x:2044,y:584,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"n2nq9r",source:"customer",target:"mySystem",label:"uses",dotpos:"e,655.88,145.01 519.83,145.01 561.09,145.01 603.86,145.01 645.36,145.01",points:[[520,145],[561,145],[604,145],[645,145]],labelBBox:{x:571,y:122,width:34,height:18},parent:null,relations:["1yvgyrn"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,2238.8,1977 1944.8,1995.1 2035.3,1989.5 2137.2,1983.2 2228.6,1977.6",points:[[1945,1995],[2035,1989],[2137,1983],[2229,1978]],labelBBox:{x:2023,y:1957,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1tbee2v",source:"localbox",target:"enterprise",label:"company integration",dotpos:"e,3021,1971.7 2758.6,1966.3 2839.5,1968 2929,1969.8 3010.6,1971.5",points:[[2759,1966],[2840,1968],[2929,1970],[3011,1971]],labelBBox:{x:2840,y:1945,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",dotpos:"e,2758.5,2577.3 3020.8,2615.4 2960.6,2615.9 2897,2612 2838.7,2599.8 2815.3,2594.9 2791.6,2588.3 2768.2,2580.6",points:[[3021,2615],[2961,2616],[2897,2612],[2839,2600],[2815,2595],[2792,2588],[2768,2581]],labelBBox:{x:2879,y:2577,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"109bf6k",source:"edf",target:"edp",label:"builds many",dotpos:"e,2355.5,2595.8 1944.9,2805.6 2025.8,2784.7 2113.5,2755.6 2188.7,2715.8 2245,2685.9 2300,2644.2 2347.6,2602.8",points:[[1945,2806],[2026,2785],[2114,2756],[2189,2716],[2245,2686],[2300,2644],[2348,2603]],labelBBox:{x:2058,y:2693,width:79,height:18},parent:null,relations:["wsm3kf"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",dotpos:"e,2238.8,2310.7 1944.8,2151.3 2035.7,2200.6 2138,2256 2229.7,2305.7",points:[[1945,2151],[2036,2201],[2138,2256],[2230,2306]],labelBBox:{x:2022,y:2162,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",dotpos:"e,2238.7,2451 1956,2451 2043.6,2451 2140.8,2451 2228.4,2451",points:[[1956,2451],[2044,2451],[2141,2451],[2228,2451]],labelBBox:{x:2007,y:2428,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",dotpos:"e,2498.7,2306.3 2498.7,2105.8 2498.7,2165.6 2498.7,2235 2498.7,2295.8",points:[[2499,2106],[2499,2166],[2499,2235],[2499,2296]],labelBBox:{x:2382,y:2194,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"5mpoyf",source:"edp",target:"forgejoRunner",label:"runs workflows",dotpos:"e,3021,2543.9 2758.6,2497.1 2839.7,2511.6 2929.3,2527.6 3011.1,2542.1",points:[[2759,2497],[2840,2512],[2929,2528],[3011,2542]],labelBBox:{x:2856,y:2489,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",dotpos:"e,3811.9,2092.4 2758.6,2398.5 2971.1,2352.8 3278.6,2280.4 3540.8,2194.8 3627.2,2166.6 3719.5,2130.8 3802.4,2096.4",points:[[2759,2399],[2971,2353],[3279,2280],[3541,2195],[3627,2167],[3719,2131],[3802,2096]],labelBBox:{x:3211,y:2172,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",dotpos:"e,3021,2093.3 2676.3,2306.3 2727.3,2267.4 2783.9,2226.8 2838.7,2193 2893.1,2159.4 2953.5,2127 3011.7,2097.9",points:[[2676,2306],[2727,2267],[2784,2227],[2839,2193],[2893,2159],[2954,2127],[3012,2098]],labelBBox:{x:2872,y:2097,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,2498.7,2105.9 2498.7,2306 2498.7,2242.7 2498.7,2179.4 2498.7,2116",points:[[2499,2306],[2499,2243],[2499,2179],[2499,2116]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},myCustomView:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/my-view.c4",description:null,title:"My Custom Architecture View",id:"myCustomView",autoLayout:{direction:"TB"},hash:"e3a3d8b9a3fa1f044cdf8feda3b3f5fc136b46bb",bounds:{x:0,y:0,width:320,height:503},nodes:[{id:"customer",parent:null,level:0,children:[],inEdges:[],outEdges:["n2nq9r"],title:"Customer",modelRef:"customer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"End user of the platform"},tags:[],kind:"myperson",x:0,y:0,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:48}},{id:"mySystem",parent:null,level:0,children:[],inEdges:["n2nq9r"],outEdges:[],title:"My System",modelRef:"mySystem",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Example system component"},tags:[],kind:"mysystem",x:0,y:323,width:320,height:180,labelBBox:{x:64,y:63,width:192,height:47}}],edges:[{id:"n2nq9r",source:"customer",target:"mySystem",label:"uses",dotpos:"e,160.02,322.97 160.02,179.93 160.02,221.13 160.02,270.24 160.02,312.63",points:[[160,180],[160,221],[160,270],[160,313]],labelBBox:{x:161,y:240,width:34,height:18},parent:null,relations:["1yvgyrn"],color:"gray",line:"dashed",head:"normal"}]}},deployments:{elements:{local:{style:{icon:"tech:kubernetes"},kind:"environment",description:{txt:"Local kind-cluster environment for EDP, typically run by edpbuilder"},technology:"Kind",title:"Local kind-cluster",id:"local"},"otc-edp-per-tenant":{style:{},kind:"cloud",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. 
    
    This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},technology:"OTC",title:"OTC EDP per tenant cluster",id:"otc-edp-per-tenant"},"otc-faas":{style:{},kind:"cloud",description:{txt:"OTC environments for Prototype faaS."},technology:"OTC",title:"OTC prototype FaaS",id:"otc-faas"},edge:{style:{},kind:"cloud",description:{txt:"Edge environments for distributed workloads."},technology:"Edge",title:"Edge Cloud",id:"edge"},"otc-edpFoundry":{style:{},kind:"cloud",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. 

A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP.
Optionally we will have a WebUI/API/CLI`},technology:"OTC",title:"OTC EDP Foundry Central Service clusters",id:"otc-edpFoundry"},"local.backstage":{style:{},kind:"namespace",title:"backstage",id:"local.backstage"},"local.argocd":{style:{},kind:"namespace",title:"argocd",id:"local.argocd"},"local.gitea":{style:{},kind:"namespace",title:"gitea",id:"local.gitea"},"local.keycloak":{style:{},kind:"namespace",title:"keycloak",id:"local.keycloak"},"local.crossplane":{style:{},kind:"namespace",title:"crossplane-system",id:"local.crossplane"},"local.externalSecrets":{style:{},kind:"namespace",title:"external-secrets",id:"local.externalSecrets"},"local.velero":{style:{},kind:"namespace",title:"velero",id:"local.velero"},"local.minio":{style:{},kind:"namespace",title:"minio-backup",id:"local.minio"},"local.monitoring":{style:{},kind:"namespace",title:"monitoring",id:"local.monitoring"},"local.ingressNginx":{style:{},kind:"namespace",title:"ingress-nginx",id:"local.ingressNginx"},"local.openbao":{style:{},kind:"namespace",title:"openbao",id:"local.openbao"},"local.fibonacci":{style:{},kind:"namespace",title:"fibonacci-app",id:"local.fibonacci"},"local.mailhog":{style:{},kind:"namespace",title:"mailhog",id:"local.mailhog"},"local.spark":{style:{},kind:"namespace",title:"spark",id:"local.spark"},"otc-edp-per-tenant.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"OTC Container Cluster Engine"},technology:"Kubernetes",title:"OTC CCE",id:"otc-edp-per-tenant.cce"},"otc-edp-per-tenant.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-edp-per-tenant.cloudServices"},"otc-edp-per-tenant.forgejoRunnerInfrastructure":{style:{},kind:"computeressource",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},title:"EDP ForgejoRunner infrastructure",id:"otc-edp-per-tenant.forgejoRunnerInfrastructure"},"otc-faas.dev":{style:{},kind:"environment",description:{txt:"*.t09.de"},technology:"OTC",title:"tenant Dev",id:"otc-faas.dev"},"otc-faas.prod":{style:{},kind:"environment",description:{txt:"*.buildth.ing"},technology:"OTC",title:"Tenant Prod",id:"otc-faas.prod"},"edge.edge-dev":{style:{},kind:"environment",description:{txt:"Edge development environment"},technology:"Edge",title:"Edge Dev",id:"edge.edge-dev"},"edge.edge-prod":{style:{},kind:"environment",description:{txt:"Edge production environment"},technology:"Edge",title:"Edge Prod",id:"edge.edge-prod"},"otc-edpFoundry.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"OTC Container Cluster Engine"},technology:"Kubernetes",title:"OTC CCE",id:"otc-edpFoundry.cce"},"otc-edpFoundry.workflowSetupEDPInfrastructure":{style:{},kind:"computeressource",description:{txt:"EDP infrastructure Workflow"},title:"EDP infrastructure Workflow",id:"otc-edpFoundry.workflowSetupEDPInfrastructure"},"otc-edpFoundry.workflowSetupArgoCDInfrastructure":{style:{},kind:"computeressource",description:{txt:"EDP Setup ArgoCD Workflow"},title:"EDP ArgoCD Workflow",id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure"},"otc-edpFoundry.forgejoRunnerInfrastructure":{style:{},kind:"computeressource",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},title:"EDP ForgejoRunner infrastructure",id:"otc-edpFoundry.forgejoRunnerInfrastructure"},"local.backstage.backstage":{id:"local.backstage.backstage",element:"edp.ui.backstage",style:{}},"local.backstage.database":{id:"local.backstage.database",element:"edp.ui.database",style:{}},"local.argocd.argocdAppController":{id:"local.argocd.argocdAppController",element:"edp.argoCD.argocdAppController",style:{}},"local.argocd.argocdAppSetController":{id:"local.argocd.argocdAppSetController",element:"edp.argoCD.argocdAppSetController",style:{}},"local.argocd.argocdRedis":{id:"local.argocd.argocdRedis",element:"edp.argoCD.argocdRedis",style:{}},"local.argocd.argocdRepoServer":{id:"local.argocd.argocdRepoServer",element:"edp.argoCD.argocdRepoServer",style:{}},"local.argocd.argocdServer":{id:"local.argocd.argocdServer",element:"edp.argoCD.argocdServer",style:{}},"local.gitea.forgejo":{id:"local.gitea.forgejo",element:"edp.forgejo",style:{}},"local.gitea.forgejoRunner":{id:"local.gitea.forgejoRunner",element:"forgejoRunner",style:{}},"local.keycloak.keycloak":{id:"local.keycloak.keycloak",element:"edp.keycloak.keycloak",style:{}},"local.keycloak.keycloakDB":{id:"local.keycloak.keycloakDB",element:"edp.keycloak.keycloakDB",style:{}},"local.crossplane.crossplane":{id:"local.crossplane.crossplane",element:"edp.crossplane.crossplane",style:{}},"local.crossplane.crossplaneFunction":{id:"local.crossplane.crossplaneFunction",element:"edp.crossplane.crossplaneFunction",style:{}},"local.crossplane.crossplaneRbacManager":{id:"local.crossplane.crossplaneRbacManager",element:"edp.crossplane.crossplaneRbacManager",style:{}},"local.crossplane.providerArgoCD":{id:"local.crossplane.providerArgoCD",element:"edp.crossplane.providerArgoCD",style:{}},"local.crossplane.providerKind":{id:"local.crossplane.providerKind",element:"edp.crossplane.providerKind",style:{}},"local.crossplane.providerShell":{id:"local.crossplane.providerShell",element:"edp.crossplane.providerShell",style:{}},"local.externalSecrets.certController":{id:"local.externalSecrets.certController",element:"edp.externalSecrets.certController",style:{}},"local.externalSecrets.externalSecrets":{id:"local.externalSecrets.externalSecrets",element:"edp.externalSecrets.externalSecrets",style:{}},"local.externalSecrets.webhook":{id:"local.externalSecrets.webhook",element:"edp.externalSecrets.webhook",style:{}},"local.velero.velero":{id:"local.velero.velero",element:"edp.velero.velero",style:{}},"local.minio.minio":{id:"local.minio.minio",element:"edp.minio.minio",style:{}},"local.monitoring.alloy":{id:"local.monitoring.alloy",element:"edp.monitoring.alloy",style:{}},"local.monitoring.distributor":{id:"local.monitoring.distributor",element:"edp.monitoring.loki.distributor",style:{}},"local.monitoring.gateway":{id:"local.monitoring.gateway",element:"edp.monitoring.loki.gateway",style:{}},"local.monitoring.ingestor":{id:"local.monitoring.ingestor",element:"edp.monitoring.loki.ingestor",style:{}},"local.monitoring.querier":{id:"local.monitoring.querier",element:"edp.monitoring.loki.querier",style:{}},"local.monitoring.queryFrontend":{id:"local.monitoring.queryFrontend",element:"edp.monitoring.loki.queryFrontend",style:{}},"local.ingressNginx.ingressNginx":{id:"local.ingressNginx.ingressNginx",element:"edp.ingressNginx.ingressNginx",style:{}},"local.openbao.openbao":{id:"local.openbao.openbao",element:"edp.openbao.openbao",style:{}},"local.openbao.agentInjector":{id:"local.openbao.agentInjector",element:"edp.openbao.agentInjector",style:{}},"local.fibonacci.fibonacci":{id:"local.fibonacci.fibonacci",element:"edp.testApp.fibonacci",style:{}},"local.mailhog.mailhog":{id:"local.mailhog.mailhog",element:"edp.mailhog.mailhog",style:{}},"local.spark.sparkoperator":{id:"local.spark.sparkoperator",element:"edp.spark.sparkoperator",style:{}},"otc-edp-per-tenant.cce.edp":{style:{},kind:"cluster",title:"EDP",id:"otc-edp-per-tenant.cce.edp"},"otc-edp-per-tenant.cloudServices.postgres":{id:"otc-edp-per-tenant.cloudServices.postgres",element:"postgres",style:{}},"otc-edp-per-tenant.cloudServices.redis":{id:"otc-edp-per-tenant.cloudServices.redis",element:"redis",style:{}},"otc-edp-per-tenant.cloudServices.objectstorage":{id:"otc-edp-per-tenant.cloudServices.objectstorage",element:"objectstorage",style:{}},"otc-edp-per-tenant.cloudServices.elasticsearch":{id:"otc-edp-per-tenant.cloudServices.elasticsearch",element:"elasticsearch",style:{}},"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner":{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-faas.dev.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.t09.de"},technology:"Kubernetes",title:"Central Forgejo",id:"otc-faas.dev.cce"},"otc-faas.dev.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services (Postgres, Redis, etc."},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-faas.dev.cloudServices"},"otc-faas.dev.observability":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.t09.de"},technology:"Kubernetes",title:"Observability",id:"otc-faas.dev.observability"},"otc-faas.prod.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.buildth.ing"},technology:"Kubernetes",title:"Central Forgejo",id:"otc-faas.prod.cce"},"otc-faas.prod.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services (Postgres, Redis, etc."},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-faas.prod.cloudServices"},"otc-faas.prod.observability":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.buildth.ing"},technology:"Kubernetes",title:"Observability",id:"otc-faas.prod.observability"},"otc-edpFoundry.cce.internalServices":{style:{},kind:"cluster",title:"EDP Foundry Internal Services",id:"otc-edpFoundry.cce.internalServices"},"otc-edpFoundry.cce.centralObservability":{style:{},kind:"cluster",title:"EDP Foundry Central Observability",id:"otc-edpFoundry.cce.centralObservability"},"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",element:"forgejoRunnerWorker",style:{}},"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",element:"edpworkflow",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",element:"forgejoRunnerWorker",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",element:"edpworkflow",style:{}},"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner":{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edp-per-tenant.cce.edp.argoCD":{id:"otc-edp-per-tenant.cce.edp.argoCD",element:"edp.argoCD",style:{}},"otc-edp-per-tenant.cce.edp.forgejoRunner":{id:"otc-edp-per-tenant.cce.edp.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edp-per-tenant.cce.edp.forgejo":{id:"otc-edp-per-tenant.cce.edp.forgejo",element:"edp.forgejo",style:{}},"otc-edp-per-tenant.cce.edp.externalSecrets":{id:"otc-edp-per-tenant.cce.edp.externalSecrets",element:"edp.externalSecrets",style:{}},"otc-edp-per-tenant.cce.edp.ingressNginx":{id:"otc-edp-per-tenant.cce.edp.ingressNginx",element:"edp.ingressNginx",style:{}},"otc-faas.dev.cce.edp":{style:{},kind:"cluster",description:{txt:"t09.de"},title:"Forgejo Dev for platform team",id:"otc-faas.dev.cce.edp"},"otc-faas.prod.cce.edp":{style:{},kind:"cluster",title:"Forgejo for all EDP-tenants",id:"otc-faas.prod.cce.edp"},"otc-edpFoundry.cce.internalServices.argoCD":{id:"otc-edpFoundry.cce.internalServices.argoCD",element:"edp.argoCD",style:{}},"otc-edpFoundry.cce.internalServices.forgejo":{id:"otc-edpFoundry.cce.internalServices.forgejo",element:"edp.forgejo",style:{}},"otc-edpFoundry.cce.internalServices.externalSecrets":{id:"otc-edpFoundry.cce.internalServices.externalSecrets",element:"edp.externalSecrets",style:{}},"otc-edpFoundry.cce.internalServices.openbao":{id:"otc-edpFoundry.cce.internalServices.openbao",element:"edp.openbao",style:{}},"otc-edpFoundry.cce.internalServices.ingressNginx":{id:"otc-edpFoundry.cce.internalServices.ingressNginx",element:"edp.ingressNginx",style:{}},"otc-edpFoundry.cce.centralObservability.grafana":{id:"otc-edpFoundry.cce.centralObservability.grafana",element:"edp.grafana",style:{}},"otc-edpFoundry.cce.centralObservability.prometheus":{id:"otc-edpFoundry.cce.centralObservability.prometheus",element:"edp.prometheus",style:{}},"otc-edpFoundry.cce.centralObservability.loki":{id:"otc-edpFoundry.cce.centralObservability.loki",element:"edp.loki",style:{}},"otc-faas.dev.cce.edp.forgejo":{id:"otc-faas.dev.cce.edp.forgejo",element:"edp.forgejo",style:{}},"otc-faas.prod.cce.edp.forgejo":{id:"otc-faas.prod.cce.edp.forgejo",element:"edp.forgejo",title:"Forgejo for all EDP-tenants",description:{txt:"buildth.ing"},style:{}}},relations:{g9oj4f:{title:"registers",source:{deployment:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"},target:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},id:"g9oj4f"},"1fzhjm9":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.elasticsearch"},id:"1fzhjm9"},"15njmlz":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.objectstorage"},id:"15njmlz"},hks76r:{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.postgres"},id:"hks76r"},"1w18ve8":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.redis"},id:"1w18ve8"},dz2rdn:{source:{deployment:"otc-faas.dev.cce.edp.forgejo"},target:{deployment:"otc-faas.dev.cloudServices"},id:"dz2rdn"},"2shw6y":{source:{deployment:"otc-faas.prod.cce.edp.forgejo"},target:{deployment:"otc-faas.prod.cloudServices"},id:"2shw6y"},"7kqly3":{title:"runs",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker"},id:"7kqly3"},"12hf1w4":{title:"executes",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},id:"12hf1w4"},uk77s5:{title:"deploys edp to otc.cce",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cce.edp"},id:"uk77s5"},"1pfc6bl":{title:"deploys edp to otc.paas",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cloudServices"},id:"1pfc6bl"},hqie0:{title:"runs",source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker"},id:"hqie0"},"1j16hqv":{title:"executes",source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"},id:"1j16hqv"},jde35l:{source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cce.edp.argoCD"},id:"jde35l"},"1umzqdy":{title:"registers",source:{deployment:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},id:"1umzqdy"},dola40:{title:"invokes",source:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner"},id:"dola40"},"1f5y9gc":{title:"invokes",source:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner"},id:"1f5y9gc"}}},imports:{}}),{useLikeC4Model:lrt}=art(irt);function srt({children:e}){const r=lrt();return y.jsx(ntt,{likec4model:r,children:e})}function crt(e){return y.jsx(srt,{children:y.jsx(Ntt,{renderIcon:Ytt,...e})})}var TR={exports:{}},Zy={},RR={exports:{}},AR={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fre;function urt(){return fre||(fre=1,(function(e){function r(z,H){var U=z.length;z.push(H);e:for(;0<U;){var K=U-1>>>1,V=z[K];if(0<a(V,H))z[K]=H,z[U]=V,U=K;else break e}}function n(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var H=z[0],U=z.pop();if(U!==H){z[0]=U;e:for(var K=0,V=z.length,X=V>>>1;K<X;){var Z=2*(K+1)-1,B=z[Z],W=Z+1,Q=z[W];if(0>a(B,U))W<V&&0>a(Q,B)?(z[K]=Q,z[W]=U,K=W):(z[K]=B,z[Z]=U,K=Z);else if(W<V&&0>a(Q,U))z[K]=Q,z[W]=U,K=W;else break e}}return H}function a(z,H){var U=z.sortIndex-H.sortIndex;return U!==0?U:z.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,p=null,f=3,g=!1,b=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function T(z){for(var H=n(u);H!==null;){if(H.callback===null)o(u);else if(H.startTime<=z)o(u),H.sortIndex=H.expirationTime,r(c,H);else break;H=n(u)}}function R(z){if(x=!1,T(z),!b)if(n(c)!==null)b=!0,A||(A=!0,L());else{var H=n(u);H!==null&&q(R,H.startTime-z)}}var A=!1,D=-1,N=5,$=-1;function O(){return w?!0:!(e.unstable_now()-$<N)}function j(){if(w=!1,A){var z=e.unstable_now();$=z;var H=!0;try{e:{b=!1,x&&(x=!1,C(D),D=-1),g=!0;var U=f;try{t:{for(T(z),p=n(c);p!==null&&!(p.expirationTime>z&&O());){var K=p.callback;if(typeof K=="function"){p.callback=null,f=p.priorityLevel;var V=K(p.expirationTime<=z);if(z=e.unstable_now(),typeof V=="function"){p.callback=V,T(z),H=!0;break t}p===n(c)&&o(c),T(z)}else o(c);p=n(c)}if(p!==null)H=!0;else{var X=n(u);X!==null&&q(R,X.startTime-z),H=!1}}break e}finally{p=null,f=U,g=!1}H=void 0}}finally{H?L():A=!1}}}var L;if(typeof _=="function")L=function(){_(j)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,M=Y.port2;Y.port1.onmessage=j,L=function(){M.postMessage(null)}}else L=function(){k(j,0)};function q(z,H){D=k(function(){z(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(z){switch(f){case 1:case 2:case 3:var H=3;break;default:H=f}var U=f;f=H;try{return z()}finally{f=U}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(z,H){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var U=f;f=z;try{return H()}finally{f=U}},e.unstable_scheduleCallback=function(z,H,U){var K=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?K+U:K):U=K,z){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=U+V,z={id:d++,callback:H,priorityLevel:z,startTime:U,expirationTime:V,sortIndex:-1},U>K?(z.sortIndex=U,r(u,z),n(c)===null&&z===n(u)&&(x?(C(D),D=-1):x=!0,q(R,U-K))):(z.sortIndex=V,r(c,z),b||g||(b=!0,A||(A=!0,L()))),z},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(z){var H=f;return function(){var U=f;f=H;try{return z.apply(this,arguments)}finally{f=U}}}})(AR)),AR}var mre;function drt(){return mre||(mre=1,RR.exports=urt()),RR.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gre;function prt(){if(gre)return Zy;gre=1;var e=drt(),r=Z6(),n=OO();function o(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function i(h){var m=h,v=h;if(h.alternate)for(;m.return;)m=m.return;else{h=m;do m=h,(m.flags&4098)!==0&&(v=m.return),h=m.return;while(h)}return m.tag===3?v:null}function l(h){if(h.tag===13){var m=h.memoizedState;if(m===null&&(h=h.alternate,h!==null&&(m=h.memoizedState)),m!==null)return m.dehydrated}return null}function s(h){if(h.tag===31){var m=h.memoizedState;if(m===null&&(h=h.alternate,h!==null&&(m=h.memoizedState)),m!==null)return m.dehydrated}return null}function c(h){if(i(h)!==h)throw Error(o(188))}function u(h){var m=h.alternate;if(!m){if(m=i(h),m===null)throw Error(o(188));return m!==h?null:h}for(var v=h,E=m;;){var P=v.return;if(P===null)break;var I=P.alternate;if(I===null){if(E=P.return,E!==null){v=E;continue}break}if(P.child===I.child){for(I=P.child;I;){if(I===v)return c(P),h;if(I===E)return c(P),m;I=I.sibling}throw Error(o(188))}if(v.return!==E.return)v=P,E=I;else{for(var G=!1,re=P.child;re;){if(re===v){G=!0,v=P,E=I;break}if(re===E){G=!0,E=P,v=I;break}re=re.sibling}if(!G){for(re=I.child;re;){if(re===v){G=!0,v=I,E=P;break}if(re===E){G=!0,E=I,v=P;break}re=re.sibling}if(!G)throw Error(o(189))}}if(v.alternate!==E)throw Error(o(190))}if(v.tag!==3)throw Error(o(188));return v.stateNode.current===v?h:m}function d(h){var m=h.tag;if(m===5||m===26||m===27||m===6)return h;for(h=h.child;h!==null;){if(m=d(h),m!==null)return m;h=h.sibling}return null}var p=Object.assign,f=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function L(h){return h===null||typeof h!="object"?null:(h=j&&h[j]||h["@@iterator"],typeof h=="function"?h:null)}var Y=Symbol.for("react.client.reference");function M(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===Y?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case x:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList";case $:return"Activity"}if(typeof h=="object")switch(h.$$typeof){case b:return"Portal";case _:return h.displayName||"Context";case C:return(h._context.displayName||"Context")+".Consumer";case T:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case D:return m=h.displayName||null,m!==null?m:M(h.type)||"Memo";case N:m=h._payload,h=h._init;try{return M(h(m))}catch{}}return null}var q=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},K=[],V=-1;function X(h){return{current:h}}function Z(h){0>V||(h.current=K[V],K[V]=null,V--)}function B(h,m){V++,K[V]=h.current,h.current=m}var W=X(null),Q=X(null),J=X(null),ne=X(null);function te(h,m){switch(B(J,m),B(Q,h),B(W,null),m.nodeType){case 9:case 11:h=(h=m.documentElement)&&(h=h.namespaceURI)?f1e(h):0;break;default:if(h=m.tagName,m=m.namespaceURI)m=f1e(m),h=m1e(m,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}Z(W),B(W,h)}function ee(){Z(W),Z(Q),Z(J)}function pe(h){h.memoizedState!==null&&B(ne,h);var m=W.current,v=m1e(m,h.type);m!==v&&(B(Q,h),B(W,v))}function Te(h){Q.current===h&&(Z(W),Z(Q)),ne.current===h&&(Z(ne),qv._currentValue=U)}var ce,de;function xe(h){if(ce===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);ce=m&&m[1]||"",de=-1<v.stack.indexOf(`
    at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ce+h+de}var De=!1;function Ge(h,m){if(!h||De)return"";De=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var E={DetermineComponentFrameRoot:function(){try{if(m){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(ke){var be=ke}Reflect.construct(h,[],Ne)}else{try{Ne.call()}catch(ke){be=ke}h.call(Ne.prototype)}}else{try{throw Error()}catch(ke){be=ke}(Ne=h())&&typeof Ne.catch=="function"&&Ne.catch(function(){})}}catch(ke){if(ke&&be&&typeof ke.stack=="string")return[ke.stack,be.stack]}return[null,null]}};E.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(E.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(E.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=E.DetermineComponentFrameRoot(),G=I[0],re=I[1];if(G&&re){var se=G.split(`
`),ye=re.split(`
`);for(P=E=0;E<se.length&&!se[E].includes("DetermineComponentFrameRoot");)E++;for(;P<ye.length&&!ye[P].includes("DetermineComponentFrameRoot");)P++;if(E===se.length||P===ye.length)for(E=se.length-1,P=ye.length-1;1<=E&&0<=P&&se[E]!==ye[P];)P--;for(;1<=E&&0<=P;E--,P--)if(se[E]!==ye[P]){if(E!==1||P!==1)do if(E--,P--,0>P||se[E]!==ye[P]){var Ce=`
`+se[E].replace(" at new "," at ");return h.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",h.displayName)),Ce}while(1<=E&&0<=P);break}}}finally{De=!1,Error.prepareStackTrace=v}return(v=h?h.displayName||h.name:"")?xe(v):""}function et(h,m){switch(h.tag){case 26:case 27:case 5:return xe(h.type);case 16:return xe("Lazy");case 13:return h.child!==m&&m!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Ge(h.type,!1);case 11:return Ge(h.type.render,!1);case 1:return Ge(h.type,!0);case 31:return xe("Activity");default:return""}}function ft(h){try{var m="",v=null;do m+=et(h,v),v=h,h=h.return;while(h);return m}catch(E){return`
Error generating stack: `+E.message+`
`+E.stack}}var Ze=Object.prototype.hasOwnProperty,Et=e.unstable_scheduleCallback,Xe=e.unstable_cancelCallback,We=e.unstable_shouldYield,st=e.unstable_requestPaint,ct=e.unstable_now,zn=e.unstable_getCurrentPriorityLevel,we=e.unstable_ImmediatePriority,_e=e.unstable_UserBlockingPriority,at=e.unstable_NormalPriority,vt=e.unstable_LowPriority,Ct=e.unstable_IdlePriority,Zr=e.log,Pt=e.unstable_setDisableYieldValue,Sr=null,Pr=null;function fn(h){if(typeof Zr=="function"&&Pt(h),Pr&&typeof Pr.setStrictMode=="function")try{Pr.setStrictMode(Sr,h)}catch{}}var ar=Math.clz32?Math.clz32:Ua,ha=Math.log,hr=Math.LN2;function Ua(h){return h>>>=0,h===0?32:31-(ha(h)/hr|0)|0}var Ni=256,Qu=262144,Ju=4194304;function jl(h){var m=h&42;if(m!==0)return m;switch(h&-h){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 h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function ed(h,m,v){var E=h.pendingLanes;if(E===0)return 0;var P=0,I=h.suspendedLanes,G=h.pingedLanes;h=h.warmLanes;var re=E&134217727;return re!==0?(E=re&~I,E!==0?P=jl(E):(G&=re,G!==0?P=jl(G):v||(v=re&~h,v!==0&&(P=jl(v))))):(re=E&~I,re!==0?P=jl(re):G!==0?P=jl(G):v||(v=E&~h,v!==0&&(P=jl(v)))),P===0?0:m!==0&&m!==P&&(m&I)===0&&(I=P&-P,v=m&-m,I>=v||I===32&&(v&4194048)!==0)?m:P}function Fl(h,m){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&m)===0}function Jb(h,m){switch(h){case 1:case 2:case 4:case 8:case 64:return m+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 m+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 Dg(){var h=Ju;return Ju<<=1,(Ju&62914560)===0&&(Ju=4194304),h}function ch(h){for(var m=[],v=0;31>v;v++)m.push(h);return m}function Nc(h,m){h.pendingLanes|=m,m!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function ev(h,m,v,E,P,I){var G=h.pendingLanes;h.pendingLanes=v,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=v,h.entangledLanes&=v,h.errorRecoveryDisabledLanes&=v,h.shellSuspendCounter=0;var re=h.entanglements,se=h.expirationTimes,ye=h.hiddenUpdates;for(v=G&~v;0<v;){var Ce=31-ar(v),Ne=1<<Ce;re[Ce]=0,se[Ce]=-1;var be=ye[Ce];if(be!==null)for(ye[Ce]=null,Ce=0;Ce<be.length;Ce++){var ke=be[Ce];ke!==null&&(ke.lane&=-536870913)}v&=~Ne}E!==0&&Pg(h,E,0),I!==0&&P===0&&h.tag!==0&&(h.suspendedLanes|=I&~(G&~m))}function Pg(h,m,v){h.pendingLanes|=m,h.suspendedLanes&=~m;var E=31-ar(m);h.entangledLanes|=m,h.entanglements[E]=h.entanglements[E]|1073741824|v&261930}function $g(h,m){var v=h.entangledLanes|=m;for(h=h.entanglements;v;){var E=31-ar(v),P=1<<E;P&m|h[E]&m&&(h[E]|=m),v&=~P}}function Mg(h,m){var v=m&-m;return v=(v&42)!==0?1:uh(v),(v&(h.suspendedLanes|m))!==0?0:v}function uh(h){switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=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:h=128;break;case 268435456:h=134217728;break;default:h=0}return h}function dh(h){return h&=-h,2<h?8<h?(h&134217727)!==0?32:268435456:8:2}function Og(){var h=H.p;return h!==0?h:(h=window.event,h===void 0?32:L1e(h.type))}function Ig(h,m){var v=H.p;try{return H.p=h,m()}finally{H.p=v}}var Di=Math.random().toString(36).slice(2),mn="__reactFiber$"+Di,co="__reactProps$"+Di,Pi="__reactContainer$"+Di,Dc="__reactEvents$"+Di,ph="__reactListeners$"+Di,tv="__reactHandles$"+Di,zg="__reactResources$"+Di,Pc="__reactMarker$"+Di;function hh(h){delete h[mn],delete h[co],delete h[Dc],delete h[ph],delete h[tv]}function Cs(h){var m=h[mn];if(m)return m;for(var v=h.parentNode;v;){if(m=v[Pi]||v[mn]){if(v=m.alternate,m.child!==null||v!==null&&v.child!==null)for(h=k1e(h);h!==null;){if(v=h[mn])return v;h=k1e(h)}return m}h=v,v=h.parentNode}return null}function Ts(h){if(h=h[mn]||h[Pi]){var m=h.tag;if(m===5||m===6||m===13||m===31||m===26||m===27||m===3)return h}return null}function Hl(h){var m=h.tag;if(m===5||m===26||m===27||m===6)return h.stateNode;throw Error(o(33))}function Rs(h){var m=h[zg];return m||(m=h[zg]={hoistableStyles:new Map,hoistableScripts:new Map}),m}function ln(h){h[Pc]=!0}var Lg=new Set,Bg={};function ql(h,m){As(h,m),As(h+"Capture",m)}function As(h,m){for(Bg[h]=m,h=0;h<m.length;h++)Lg.add(m[h])}var rv=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]*$"),td={},jg={};function nv(h){return Ze.call(jg,h)?!0:Ze.call(td,h)?!1:rv.test(h)?jg[h]=!0:(td[h]=!0,!1)}function rd(h,m,v){if(nv(m))if(v===null)h.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":h.removeAttribute(m);return;case"boolean":var E=m.toLowerCase().slice(0,5);if(E!=="data-"&&E!=="aria-"){h.removeAttribute(m);return}}h.setAttribute(m,""+v)}}function nd(h,m,v){if(v===null)h.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(m);return}h.setAttribute(m,""+v)}}function Va(h,m,v,E){if(E===null)h.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(v);return}h.setAttributeNS(m,v,""+E)}}function Bo(h){switch(typeof h){case"bigint":case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function Fg(h){var m=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function ov(h,m,v){var E=Object.getOwnPropertyDescriptor(h.constructor.prototype,m);if(!h.hasOwnProperty(m)&&typeof E<"u"&&typeof E.get=="function"&&typeof E.set=="function"){var P=E.get,I=E.set;return Object.defineProperty(h,m,{configurable:!0,get:function(){return P.call(this)},set:function(G){v=""+G,I.call(this,G)}}),Object.defineProperty(h,m,{enumerable:E.enumerable}),{getValue:function(){return v},setValue:function(G){v=""+G},stopTracking:function(){h._valueTracker=null,delete h[m]}}}}function $c(h){if(!h._valueTracker){var m=Fg(h)?"checked":"value";h._valueTracker=ov(h,m,""+h[m])}}function Hg(h){if(!h)return!1;var m=h._valueTracker;if(!m)return!0;var v=m.getValue(),E="";return h&&(E=Fg(h)?h.checked?"true":"false":h.value),h=E,h!==v?(m.setValue(h),!0):!1}function od(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}var av=/[\n"\\]/g;function Ln(h){return h.replace(av,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function fh(h,m,v,E,P,I,G,re){h.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?h.type=G:h.removeAttribute("type"),m!=null?G==="number"?(m===0&&h.value===""||h.value!=m)&&(h.value=""+Bo(m)):h.value!==""+Bo(m)&&(h.value=""+Bo(m)):G!=="submit"&&G!=="reset"||h.removeAttribute("value"),m!=null?Mc(h,G,Bo(m)):v!=null?Mc(h,G,Bo(v)):E!=null&&h.removeAttribute("value"),P==null&&I!=null&&(h.defaultChecked=!!I),P!=null&&(h.checked=P&&typeof P!="function"&&typeof P!="symbol"),re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?h.name=""+Bo(re):h.removeAttribute("name")}function qg(h,m,v,E,P,I,G,re){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(h.type=I),m!=null||v!=null){if(!(I!=="submit"&&I!=="reset"||m!=null)){$c(h);return}v=v!=null?""+Bo(v):"",m=m!=null?""+Bo(m):v,re||m===h.value||(h.value=m),h.defaultValue=m}E=E??P,E=typeof E!="function"&&typeof E!="symbol"&&!!E,h.checked=re?h.checked:!!E,h.defaultChecked=!!E,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(h.name=G),$c(h)}function Mc(h,m,v){m==="number"&&od(h.ownerDocument)===h||h.defaultValue===""+v||(h.defaultValue=""+v)}function Ug(h,m,v,E){if(h=h.options,m){m={};for(var P=0;P<v.length;P++)m["$"+v[P]]=!0;for(v=0;v<h.length;v++)P=m.hasOwnProperty("$"+h[v].value),h[v].selected!==P&&(h[v].selected=P),P&&E&&(h[v].defaultSelected=!0)}else{for(v=""+Bo(v),m=null,P=0;P<h.length;P++){if(h[P].value===v){h[P].selected=!0,E&&(h[P].defaultSelected=!0);return}m!==null||h[P].disabled||(m=h[P])}m!==null&&(m.selected=!0)}}function cfe(h,m,v){if(m!=null&&(m=""+Bo(m),m!==h.value&&(h.value=m),v==null)){h.defaultValue!==m&&(h.defaultValue=m);return}h.defaultValue=v!=null?""+Bo(v):""}function ufe(h,m,v,E){if(m==null){if(E!=null){if(v!=null)throw Error(o(92));if(q(E)){if(1<E.length)throw Error(o(93));E=E[0]}v=E}v==null&&(v=""),m=v}v=Bo(m),h.defaultValue=v,E=h.textContent,E===v&&E!==""&&E!==null&&(h.value=E),$c(h)}function Vg(h,m){if(m){var v=h.firstChild;if(v&&v===h.lastChild&&v.nodeType===3){v.nodeValue=m;return}}h.textContent=m}var j5t=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 dfe(h,m,v){var E=m.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?E?h.setProperty(m,""):m==="float"?h.cssFloat="":h[m]="":E?h.setProperty(m,v):typeof v!="number"||v===0||j5t.has(m)?m==="float"?h.cssFloat=v:h[m]=(""+v).trim():h[m]=v+"px"}function pfe(h,m,v){if(m!=null&&typeof m!="object")throw Error(o(62));if(h=h.style,v!=null){for(var E in v)!v.hasOwnProperty(E)||m!=null&&m.hasOwnProperty(E)||(E.indexOf("--")===0?h.setProperty(E,""):E==="float"?h.cssFloat="":h[E]="");for(var P in m)E=m[P],m.hasOwnProperty(P)&&v[P]!==E&&dfe(h,P,E)}else for(var I in m)m.hasOwnProperty(I)&&dfe(h,I,m[I])}function _$(h){if(h.indexOf("-")===-1)return!1;switch(h){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 F5t=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"]]),H5t=/^[\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 Bk(h){return H5t.test(""+h)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":h}function Oc(){}var E$=null;function S$(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var Yg=null,Wg=null;function hfe(h){var m=Ts(h);if(m&&(h=m.stateNode)){var v=h[co]||null;e:switch(h=m.stateNode,m.type){case"input":if(fh(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),m=v.name,v.type==="radio"&&m!=null){for(v=h;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+Ln(""+m)+'"][type="radio"]'),m=0;m<v.length;m++){var E=v[m];if(E!==h&&E.form===h.form){var P=E[co]||null;if(!P)throw Error(o(90));fh(E,P.value,P.defaultValue,P.defaultValue,P.checked,P.defaultChecked,P.type,P.name)}}for(m=0;m<v.length;m++)E=v[m],E.form===h.form&&Hg(E)}break e;case"textarea":cfe(h,v.value,v.defaultValue);break e;case"select":m=v.value,m!=null&&Ug(h,!!v.multiple,m,!1)}}}var C$=!1;function ffe(h,m,v){if(C$)return h(m,v);C$=!0;try{var E=h(m);return E}finally{if(C$=!1,(Yg!==null||Wg!==null)&&(C6(),Yg&&(m=Yg,h=Wg,Wg=Yg=null,hfe(m),h)))for(m=0;m<h.length;m++)hfe(h[m])}}function iv(h,m){var v=h.stateNode;if(v===null)return null;var E=v[co]||null;if(E===null)return null;v=E[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(E=!E.disabled)||(h=h.type,E=!(h==="button"||h==="input"||h==="select"||h==="textarea")),h=!E;break e;default:h=!1}if(h)return null;if(v&&typeof v!="function")throw Error(o(231,m,typeof v));return v}var Ic=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),T$=!1;if(Ic)try{var lv={};Object.defineProperty(lv,"passive",{get:function(){T$=!0}}),window.addEventListener("test",lv,lv),window.removeEventListener("test",lv,lv)}catch{T$=!1}var ad=null,R$=null,jk=null;function mfe(){if(jk)return jk;var h,m=R$,v=m.length,E,P="value"in ad?ad.value:ad.textContent,I=P.length;for(h=0;h<v&&m[h]===P[h];h++);var G=v-h;for(E=1;E<=G&&m[v-E]===P[I-E];E++);return jk=P.slice(h,1<E?1-E:void 0)}function Fk(h){var m=h.keyCode;return"charCode"in h?(h=h.charCode,h===0&&m===13&&(h=13)):h=m,h===10&&(h=13),32<=h||h===13?h:0}function Hk(){return!0}function gfe(){return!1}function fa(h){function m(v,E,P,I,G){this._reactName=v,this._targetInst=P,this.type=E,this.nativeEvent=I,this.target=G,this.currentTarget=null;for(var re in h)h.hasOwnProperty(re)&&(v=h[re],this[re]=v?v(I):I[re]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Hk:gfe,this.isPropagationStopped=gfe,this}return p(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Hk)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Hk)},persist:function(){},isPersistent:Hk}),m}var mh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qk=fa(mh),sv=p({},mh,{view:0,detail:0}),q5t=fa(sv),A$,N$,cv,Uk=p({},sv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:P$,button:0,buttons:0,relatedTarget:function(h){return h.relatedTarget===void 0?h.fromElement===h.srcElement?h.toElement:h.fromElement:h.relatedTarget},movementX:function(h){return"movementX"in h?h.movementX:(h!==cv&&(cv&&h.type==="mousemove"?(A$=h.screenX-cv.screenX,N$=h.screenY-cv.screenY):N$=A$=0,cv=h),A$)},movementY:function(h){return"movementY"in h?h.movementY:N$}}),yfe=fa(Uk),U5t=p({},Uk,{dataTransfer:0}),V5t=fa(U5t),Y5t=p({},sv,{relatedTarget:0}),D$=fa(Y5t),W5t=p({},mh,{animationName:0,elapsedTime:0,pseudoElement:0}),G5t=fa(W5t),X5t=p({},mh,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}}),K5t=fa(X5t),Z5t=p({},mh,{data:0}),bfe=fa(Z5t),Q5t={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},J5t={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"},ekt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tkt(h){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(h):(h=ekt[h])?!!m[h]:!1}function P$(){return tkt}var rkt=p({},sv,{key:function(h){if(h.key){var m=Q5t[h.key]||h.key;if(m!=="Unidentified")return m}return h.type==="keypress"?(h=Fk(h),h===13?"Enter":String.fromCharCode(h)):h.type==="keydown"||h.type==="keyup"?J5t[h.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:P$,charCode:function(h){return h.type==="keypress"?Fk(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?Fk(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}}),nkt=fa(rkt),okt=p({},Uk,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vfe=fa(okt),akt=p({},sv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:P$}),ikt=fa(akt),lkt=p({},mh,{propertyName:0,elapsedTime:0,pseudoElement:0}),skt=fa(lkt),ckt=p({},Uk,{deltaX:function(h){return"deltaX"in h?h.deltaX:"wheelDeltaX"in h?-h.wheelDeltaX:0},deltaY:function(h){return"deltaY"in h?h.deltaY:"wheelDeltaY"in h?-h.wheelDeltaY:"wheelDelta"in h?-h.wheelDelta:0},deltaZ:0,deltaMode:0}),ukt=fa(ckt),dkt=p({},mh,{newState:0,oldState:0}),pkt=fa(dkt),hkt=[9,13,27,32],$$=Ic&&"CompositionEvent"in window,uv=null;Ic&&"documentMode"in document&&(uv=document.documentMode);var fkt=Ic&&"TextEvent"in window&&!uv,xfe=Ic&&(!$$||uv&&8<uv&&11>=uv),wfe=" ",kfe=!1;function _fe(h,m){switch(h){case"keyup":return hkt.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Efe(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Gg=!1;function mkt(h,m){switch(h){case"compositionend":return Efe(m);case"keypress":return m.which!==32?null:(kfe=!0,wfe);case"textInput":return h=m.data,h===wfe&&kfe?null:h;default:return null}}function gkt(h,m){if(Gg)return h==="compositionend"||!$$&&_fe(h,m)?(h=mfe(),jk=R$=ad=null,Gg=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return xfe&&m.locale!=="ko"?null:m.data;default:return null}}var ykt={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 Sfe(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m==="input"?!!ykt[h.type]:m==="textarea"}function Cfe(h,m,v,E){Yg?Wg?Wg.push(E):Wg=[E]:Yg=E,m=$6(m,"onChange"),0<m.length&&(v=new qk("onChange","change",null,v,E),h.push({event:v,listeners:m}))}var dv=null,pv=null;function bkt(h){s1e(h,0)}function Vk(h){var m=Hl(h);if(Hg(m))return h}function Tfe(h,m){if(h==="change")return m}var Rfe=!1;if(Ic){var M$;if(Ic){var O$="oninput"in document;if(!O$){var Afe=document.createElement("div");Afe.setAttribute("oninput","return;"),O$=typeof Afe.oninput=="function"}M$=O$}else M$=!1;Rfe=M$&&(!document.documentMode||9<document.documentMode)}function Nfe(){dv&&(dv.detachEvent("onpropertychange",Dfe),pv=dv=null)}function Dfe(h){if(h.propertyName==="value"&&Vk(pv)){var m=[];Cfe(m,pv,h,S$(h)),ffe(bkt,m)}}function vkt(h,m,v){h==="focusin"?(Nfe(),dv=m,pv=v,dv.attachEvent("onpropertychange",Dfe)):h==="focusout"&&Nfe()}function xkt(h){if(h==="selectionchange"||h==="keyup"||h==="keydown")return Vk(pv)}function wkt(h,m){if(h==="click")return Vk(m)}function kkt(h,m){if(h==="input"||h==="change")return Vk(m)}function _kt(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var Ya=typeof Object.is=="function"?Object.is:_kt;function hv(h,m){if(Ya(h,m))return!0;if(typeof h!="object"||h===null||typeof m!="object"||m===null)return!1;var v=Object.keys(h),E=Object.keys(m);if(v.length!==E.length)return!1;for(E=0;E<v.length;E++){var P=v[E];if(!Ze.call(m,P)||!Ya(h[P],m[P]))return!1}return!0}function Pfe(h){for(;h&&h.firstChild;)h=h.firstChild;return h}function $fe(h,m){var v=Pfe(h);h=0;for(var E;v;){if(v.nodeType===3){if(E=h+v.textContent.length,h<=m&&E>=m)return{node:v,offset:m-h};h=E}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Pfe(v)}}function Mfe(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?Mfe(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function Ofe(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var m=od(h.document);m instanceof h.HTMLIFrameElement;){try{var v=typeof m.contentWindow.location.href=="string"}catch{v=!1}if(v)h=m.contentWindow;else break;m=od(h.document)}return m}function I$(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m&&(m==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||m==="textarea"||h.contentEditable==="true")}var Ekt=Ic&&"documentMode"in document&&11>=document.documentMode,Xg=null,z$=null,fv=null,L$=!1;function Ife(h,m,v){var E=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;L$||Xg==null||Xg!==od(E)||(E=Xg,"selectionStart"in E&&I$(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),fv&&hv(fv,E)||(fv=E,E=$6(z$,"onSelect"),0<E.length&&(m=new qk("onSelect","select",null,m,v),h.push({event:m,listeners:E}),m.target=Xg)))}function gh(h,m){var v={};return v[h.toLowerCase()]=m.toLowerCase(),v["Webkit"+h]="webkit"+m,v["Moz"+h]="moz"+m,v}var Kg={animationend:gh("Animation","AnimationEnd"),animationiteration:gh("Animation","AnimationIteration"),animationstart:gh("Animation","AnimationStart"),transitionrun:gh("Transition","TransitionRun"),transitionstart:gh("Transition","TransitionStart"),transitioncancel:gh("Transition","TransitionCancel"),transitionend:gh("Transition","TransitionEnd")},B$={},zfe={};Ic&&(zfe=document.createElement("div").style,"AnimationEvent"in window||(delete Kg.animationend.animation,delete Kg.animationiteration.animation,delete Kg.animationstart.animation),"TransitionEvent"in window||delete Kg.transitionend.transition);function yh(h){if(B$[h])return B$[h];if(!Kg[h])return h;var m=Kg[h],v;for(v in m)if(m.hasOwnProperty(v)&&v in zfe)return B$[h]=m[v];return h}var Lfe=yh("animationend"),Bfe=yh("animationiteration"),jfe=yh("animationstart"),Skt=yh("transitionrun"),Ckt=yh("transitionstart"),Tkt=yh("transitioncancel"),Ffe=yh("transitionend"),Hfe=new Map,j$="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(" ");j$.push("scrollEnd");function Ul(h,m){Hfe.set(h,m),ql(m,[h])}var Yk=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},$i=[],Zg=0,F$=0;function Wk(){for(var h=Zg,m=F$=Zg=0;m<h;){var v=$i[m];$i[m++]=null;var E=$i[m];$i[m++]=null;var P=$i[m];$i[m++]=null;var I=$i[m];if($i[m++]=null,E!==null&&P!==null){var G=E.pending;G===null?P.next=P:(P.next=G.next,G.next=P),E.pending=P}I!==0&&qfe(v,P,I)}}function Gk(h,m,v,E){$i[Zg++]=h,$i[Zg++]=m,$i[Zg++]=v,$i[Zg++]=E,F$|=E,h.lanes|=E,h=h.alternate,h!==null&&(h.lanes|=E)}function H$(h,m,v,E){return Gk(h,m,v,E),Xk(h)}function bh(h,m){return Gk(h,null,null,m),Xk(h)}function qfe(h,m,v){h.lanes|=v;var E=h.alternate;E!==null&&(E.lanes|=v);for(var P=!1,I=h.return;I!==null;)I.childLanes|=v,E=I.alternate,E!==null&&(E.childLanes|=v),I.tag===22&&(h=I.stateNode,h===null||h._visibility&1||(P=!0)),h=I,I=I.return;return h.tag===3?(I=h.stateNode,P&&m!==null&&(P=31-ar(v),h=I.hiddenUpdates,E=h[P],E===null?h[P]=[m]:E.push(m),m.lane=v|536870912),I):null}function Xk(h){if(50<Iv)throw Iv=0,ZM=null,Error(o(185));for(var m=h.return;m!==null;)h=m,m=h.return;return h.tag===3?h.stateNode:null}var Qg={};function Rkt(h,m,v,E){this.tag=h,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wa(h,m,v,E){return new Rkt(h,m,v,E)}function q$(h){return h=h.prototype,!(!h||!h.isReactComponent)}function zc(h,m){var v=h.alternate;return v===null?(v=Wa(h.tag,m,h.key,h.mode),v.elementType=h.elementType,v.type=h.type,v.stateNode=h.stateNode,v.alternate=h,h.alternate=v):(v.pendingProps=m,v.type=h.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=h.flags&65011712,v.childLanes=h.childLanes,v.lanes=h.lanes,v.child=h.child,v.memoizedProps=h.memoizedProps,v.memoizedState=h.memoizedState,v.updateQueue=h.updateQueue,m=h.dependencies,v.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},v.sibling=h.sibling,v.index=h.index,v.ref=h.ref,v.refCleanup=h.refCleanup,v}function Ufe(h,m){h.flags&=65011714;var v=h.alternate;return v===null?(h.childLanes=0,h.lanes=m,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=v.childLanes,h.lanes=v.lanes,h.child=v.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=v.memoizedProps,h.memoizedState=v.memoizedState,h.updateQueue=v.updateQueue,h.type=v.type,m=v.dependencies,h.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext}),h}function Kk(h,m,v,E,P,I){var G=0;if(E=h,typeof h=="function")q$(h)&&(G=1);else if(typeof h=="string")G=$6t(h,v,W.current)?26:h==="html"||h==="head"||h==="body"?27:5;else e:switch(h){case $:return h=Wa(31,v,m,P),h.elementType=$,h.lanes=I,h;case x:return vh(v.children,P,I,m);case w:G=8,P|=24;break;case k:return h=Wa(12,v,m,P|2),h.elementType=k,h.lanes=I,h;case R:return h=Wa(13,v,m,P),h.elementType=R,h.lanes=I,h;case A:return h=Wa(19,v,m,P),h.elementType=A,h.lanes=I,h;default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case _:G=10;break e;case C:G=9;break e;case T:G=11;break e;case D:G=14;break e;case N:G=16,E=null;break e}G=29,v=Error(o(130,h===null?"null":typeof h,"")),E=null}return m=Wa(G,v,m,P),m.elementType=h,m.type=E,m.lanes=I,m}function vh(h,m,v,E){return h=Wa(7,h,E,m),h.lanes=v,h}function U$(h,m,v){return h=Wa(6,h,null,m),h.lanes=v,h}function Vfe(h){var m=Wa(18,null,null,0);return m.stateNode=h,m}function V$(h,m,v){return m=Wa(4,h.children!==null?h.children:[],h.key,m),m.lanes=v,m.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},m}var Yfe=new WeakMap;function Mi(h,m){if(typeof h=="object"&&h!==null){var v=Yfe.get(h);return v!==void 0?v:(m={value:h,source:m,stack:ft(m)},Yfe.set(h,m),m)}return{value:h,source:m,stack:ft(m)}}var Jg=[],e1=0,Zk=null,mv=0,Oi=[],Ii=0,id=null,Ns=1,Ds="";function Lc(h,m){Jg[e1++]=mv,Jg[e1++]=Zk,Zk=h,mv=m}function Wfe(h,m,v){Oi[Ii++]=Ns,Oi[Ii++]=Ds,Oi[Ii++]=id,id=h;var E=Ns;h=Ds;var P=32-ar(E)-1;E&=~(1<<P),v+=1;var I=32-ar(m)+P;if(30<I){var G=P-P%5;I=(E&(1<<G)-1).toString(32),E>>=G,P-=G,Ns=1<<32-ar(m)+P|v<<P|E,Ds=I+h}else Ns=1<<I|v<<P|E,Ds=h}function Y$(h){h.return!==null&&(Lc(h,1),Wfe(h,1,0))}function W$(h){for(;h===Zk;)Zk=Jg[--e1],Jg[e1]=null,mv=Jg[--e1],Jg[e1]=null;for(;h===id;)id=Oi[--Ii],Oi[Ii]=null,Ds=Oi[--Ii],Oi[Ii]=null,Ns=Oi[--Ii],Oi[Ii]=null}function Gfe(h,m){Oi[Ii++]=Ns,Oi[Ii++]=Ds,Oi[Ii++]=id,Ns=m.id,Ds=m.overflow,id=h}var wo=null,Lr=null,Jt=!1,ld=null,zi=!1,G$=Error(o(519));function sd(h){var m=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gv(Mi(m,h)),G$}function Xfe(h){var m=h.stateNode,v=h.type,E=h.memoizedProps;switch(m[mn]=h,m[co]=E,v){case"dialog":Gt("cancel",m),Gt("close",m);break;case"iframe":case"object":case"embed":Gt("load",m);break;case"video":case"audio":for(v=0;v<Lv.length;v++)Gt(Lv[v],m);break;case"source":Gt("error",m);break;case"img":case"image":case"link":Gt("error",m),Gt("load",m);break;case"details":Gt("toggle",m);break;case"input":Gt("invalid",m),qg(m,E.value,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name,!0);break;case"select":Gt("invalid",m);break;case"textarea":Gt("invalid",m),ufe(m,E.value,E.defaultValue,E.children)}v=E.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||m.textContent===""+v||E.suppressHydrationWarning===!0||p1e(m.textContent,v)?(E.popover!=null&&(Gt("beforetoggle",m),Gt("toggle",m)),E.onScroll!=null&&Gt("scroll",m),E.onScrollEnd!=null&&Gt("scrollend",m),E.onClick!=null&&(m.onclick=Oc),m=!0):m=!1,m||sd(h,!0)}function Kfe(h){for(wo=h.return;wo;)switch(wo.tag){case 5:case 31:case 13:zi=!1;return;case 27:case 3:zi=!0;return;default:wo=wo.return}}function t1(h){if(h!==wo)return!1;if(!Jt)return Kfe(h),Jt=!0,!1;var m=h.tag,v;if((v=m!==3&&m!==27)&&((v=m===5)&&(v=h.type,v=!(v!=="form"&&v!=="button")||pO(h.type,h.memoizedProps)),v=!v),v&&Lr&&sd(h),Kfe(h),m===13){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(317));Lr=w1e(h)}else if(m===31){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(317));Lr=w1e(h)}else m===27?(m=Lr,kd(h.type)?(h=yO,yO=null,Lr=h):Lr=m):Lr=wo?Bi(h.stateNode.nextSibling):null;return!0}function xh(){Lr=wo=null,Jt=!1}function X$(){var h=ld;return h!==null&&(ba===null?ba=h:ba.push.apply(ba,h),ld=null),h}function gv(h){ld===null?ld=[h]:ld.push(h)}var K$=X(null),wh=null,Bc=null;function cd(h,m,v){B(K$,m._currentValue),m._currentValue=v}function jc(h){h._currentValue=K$.current,Z(K$)}function Z$(h,m,v){for(;h!==null;){var E=h.alternate;if((h.childLanes&m)!==m?(h.childLanes|=m,E!==null&&(E.childLanes|=m)):E!==null&&(E.childLanes&m)!==m&&(E.childLanes|=m),h===v)break;h=h.return}}function Q$(h,m,v,E){var P=h.child;for(P!==null&&(P.return=h);P!==null;){var I=P.dependencies;if(I!==null){var G=P.child;I=I.firstContext;e:for(;I!==null;){var re=I;I=P;for(var se=0;se<m.length;se++)if(re.context===m[se]){I.lanes|=v,re=I.alternate,re!==null&&(re.lanes|=v),Z$(I.return,v,h),E||(G=null);break e}I=re.next}}else if(P.tag===18){if(G=P.return,G===null)throw Error(o(341));G.lanes|=v,I=G.alternate,I!==null&&(I.lanes|=v),Z$(G,v,h),G=null}else G=P.child;if(G!==null)G.return=P;else for(G=P;G!==null;){if(G===h){G=null;break}if(P=G.sibling,P!==null){P.return=G.return,G=P;break}G=G.return}P=G}}function r1(h,m,v,E){h=null;for(var P=m,I=!1;P!==null;){if(!I){if((P.flags&524288)!==0)I=!0;else if((P.flags&262144)!==0)break}if(P.tag===10){var G=P.alternate;if(G===null)throw Error(o(387));if(G=G.memoizedProps,G!==null){var re=P.type;Ya(P.pendingProps.value,G.value)||(h!==null?h.push(re):h=[re])}}else if(P===ne.current){if(G=P.alternate,G===null)throw Error(o(387));G.memoizedState.memoizedState!==P.memoizedState.memoizedState&&(h!==null?h.push(qv):h=[qv])}P=P.return}h!==null&&Q$(m,h,v,E),m.flags|=262144}function Qk(h){for(h=h.firstContext;h!==null;){if(!Ya(h.context._currentValue,h.memoizedValue))return!0;h=h.next}return!1}function kh(h){wh=h,Bc=null,h=h.dependencies,h!==null&&(h.firstContext=null)}function ko(h){return Zfe(wh,h)}function Jk(h,m){return wh===null&&kh(h),Zfe(h,m)}function Zfe(h,m){var v=m._currentValue;if(m={context:m,memoizedValue:v,next:null},Bc===null){if(h===null)throw Error(o(308));Bc=m,h.dependencies={lanes:0,firstContext:m},h.flags|=524288}else Bc=Bc.next=m;return v}var Akt=typeof AbortController<"u"?AbortController:function(){var h=[],m=this.signal={aborted:!1,addEventListener:function(v,E){h.push(E)}};this.abort=function(){m.aborted=!0,h.forEach(function(v){return v()})}},Nkt=e.unstable_scheduleCallback,Dkt=e.unstable_NormalPriority,Bn={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function J$(){return{controller:new Akt,data:new Map,refCount:0}}function yv(h){h.refCount--,h.refCount===0&&Nkt(Dkt,function(){h.controller.abort()})}var bv=null,eM=0,n1=0,o1=null;function Pkt(h,m){if(bv===null){var v=bv=[];eM=0,n1=nO(),o1={status:"pending",value:void 0,then:function(E){v.push(E)}}}return eM++,m.then(Qfe,Qfe),m}function Qfe(){if(--eM===0&&bv!==null){o1!==null&&(o1.status="fulfilled");var h=bv;bv=null,n1=0,o1=null;for(var m=0;m<h.length;m++)(0,h[m])()}}function $kt(h,m){var v=[],E={status:"pending",value:null,reason:null,then:function(P){v.push(P)}};return h.then(function(){E.status="fulfilled",E.value=m;for(var P=0;P<v.length;P++)(0,v[P])(m)},function(P){for(E.status="rejected",E.reason=P,P=0;P<v.length;P++)(0,v[P])(void 0)}),E}var Jfe=z.S;z.S=function(h,m){Ige=ct(),typeof m=="object"&&m!==null&&typeof m.then=="function"&&Pkt(h,m),Jfe!==null&&Jfe(h,m)};var _h=X(null);function tM(){var h=_h.current;return h!==null?h:Cr.pooledCache}function e6(h,m){m===null?B(_h,_h.current):B(_h,m.pool)}function eme(){var h=tM();return h===null?null:{parent:Bn._currentValue,pool:h}}var a1=Error(o(460)),rM=Error(o(474)),t6=Error(o(542)),r6={then:function(){}};function tme(h){return h=h.status,h==="fulfilled"||h==="rejected"}function rme(h,m,v){switch(v=h[v],v===void 0?h.push(m):v!==m&&(m.then(Oc,Oc),m=v),m.status){case"fulfilled":return m.value;case"rejected":throw h=m.reason,ome(h),h;default:if(typeof m.status=="string")m.then(Oc,Oc);else{if(h=Cr,h!==null&&100<h.shellSuspendCounter)throw Error(o(482));h=m,h.status="pending",h.then(function(E){if(m.status==="pending"){var P=m;P.status="fulfilled",P.value=E}},function(E){if(m.status==="pending"){var P=m;P.status="rejected",P.reason=E}})}switch(m.status){case"fulfilled":return m.value;case"rejected":throw h=m.reason,ome(h),h}throw Sh=m,a1}}function Eh(h){try{var m=h._init;return m(h._payload)}catch(v){throw v!==null&&typeof v=="object"&&typeof v.then=="function"?(Sh=v,a1):v}}var Sh=null;function nme(){if(Sh===null)throw Error(o(459));var h=Sh;return Sh=null,h}function ome(h){if(h===a1||h===t6)throw Error(o(483))}var i1=null,vv=0;function n6(h){var m=vv;return vv+=1,i1===null&&(i1=[]),rme(i1,h,m)}function xv(h,m){m=m.props.ref,h.ref=m!==void 0?m:null}function o6(h,m){throw m.$$typeof===f?Error(o(525)):(h=Object.prototype.toString.call(m),Error(o(31,h==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":h)))}function ame(h){function m(he,ue){if(h){var ge=he.deletions;ge===null?(he.deletions=[ue],he.flags|=16):ge.push(ue)}}function v(he,ue){if(!h)return null;for(;ue!==null;)m(he,ue),ue=ue.sibling;return null}function E(he){for(var ue=new Map;he!==null;)he.key!==null?ue.set(he.key,he):ue.set(he.index,he),he=he.sibling;return ue}function P(he,ue){return he=zc(he,ue),he.index=0,he.sibling=null,he}function I(he,ue,ge){return he.index=ge,h?(ge=he.alternate,ge!==null?(ge=ge.index,ge<ue?(he.flags|=67108866,ue):ge):(he.flags|=67108866,ue)):(he.flags|=1048576,ue)}function G(he){return h&&he.alternate===null&&(he.flags|=67108866),he}function re(he,ue,ge,Re){return ue===null||ue.tag!==6?(ue=U$(ge,he.mode,Re),ue.return=he,ue):(ue=P(ue,ge),ue.return=he,ue)}function se(he,ue,ge,Re){var dt=ge.type;return dt===x?Ce(he,ue,ge.props.children,Re,ge.key):ue!==null&&(ue.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===N&&Eh(dt)===ue.type)?(ue=P(ue,ge.props),xv(ue,ge),ue.return=he,ue):(ue=Kk(ge.type,ge.key,ge.props,null,he.mode,Re),xv(ue,ge),ue.return=he,ue)}function ye(he,ue,ge,Re){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==ge.containerInfo||ue.stateNode.implementation!==ge.implementation?(ue=V$(ge,he.mode,Re),ue.return=he,ue):(ue=P(ue,ge.children||[]),ue.return=he,ue)}function Ce(he,ue,ge,Re,dt){return ue===null||ue.tag!==7?(ue=vh(ge,he.mode,Re,dt),ue.return=he,ue):(ue=P(ue,ge),ue.return=he,ue)}function Ne(he,ue,ge){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=U$(""+ue,he.mode,ge),ue.return=he,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case g:return ge=Kk(ue.type,ue.key,ue.props,null,he.mode,ge),xv(ge,ue),ge.return=he,ge;case b:return ue=V$(ue,he.mode,ge),ue.return=he,ue;case N:return ue=Eh(ue),Ne(he,ue,ge)}if(q(ue)||L(ue))return ue=vh(ue,he.mode,ge,null),ue.return=he,ue;if(typeof ue.then=="function")return Ne(he,n6(ue),ge);if(ue.$$typeof===_)return Ne(he,Jk(he,ue),ge);o6(he,ue)}return null}function be(he,ue,ge,Re){var dt=ue!==null?ue.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return dt!==null?null:re(he,ue,""+ge,Re);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case g:return ge.key===dt?se(he,ue,ge,Re):null;case b:return ge.key===dt?ye(he,ue,ge,Re):null;case N:return ge=Eh(ge),be(he,ue,ge,Re)}if(q(ge)||L(ge))return dt!==null?null:Ce(he,ue,ge,Re,null);if(typeof ge.then=="function")return be(he,ue,n6(ge),Re);if(ge.$$typeof===_)return be(he,ue,Jk(he,ge),Re);o6(he,ge)}return null}function ke(he,ue,ge,Re,dt){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return he=he.get(ge)||null,re(ue,he,""+Re,dt);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case g:return he=he.get(Re.key===null?ge:Re.key)||null,se(ue,he,Re,dt);case b:return he=he.get(Re.key===null?ge:Re.key)||null,ye(ue,he,Re,dt);case N:return Re=Eh(Re),ke(he,ue,ge,Re,dt)}if(q(Re)||L(Re))return he=he.get(ge)||null,Ce(ue,he,Re,dt,null);if(typeof Re.then=="function")return ke(he,ue,ge,n6(Re),dt);if(Re.$$typeof===_)return ke(he,ue,ge,Jk(ue,Re),dt);o6(ue,Re)}return null}function rt(he,ue,ge,Re){for(var dt=null,lr=null,it=ue,jt=ue=0,Kt=null;it!==null&&jt<ge.length;jt++){it.index>jt?(Kt=it,it=null):Kt=it.sibling;var sr=be(he,it,ge[jt],Re);if(sr===null){it===null&&(it=Kt);break}h&&it&&sr.alternate===null&&m(he,it),ue=I(sr,ue,jt),lr===null?dt=sr:lr.sibling=sr,lr=sr,it=Kt}if(jt===ge.length)return v(he,it),Jt&&Lc(he,jt),dt;if(it===null){for(;jt<ge.length;jt++)it=Ne(he,ge[jt],Re),it!==null&&(ue=I(it,ue,jt),lr===null?dt=it:lr.sibling=it,lr=it);return Jt&&Lc(he,jt),dt}for(it=E(it);jt<ge.length;jt++)Kt=ke(it,he,jt,ge[jt],Re),Kt!==null&&(h&&Kt.alternate!==null&&it.delete(Kt.key===null?jt:Kt.key),ue=I(Kt,ue,jt),lr===null?dt=Kt:lr.sibling=Kt,lr=Kt);return h&&it.forEach(function(Td){return m(he,Td)}),Jt&&Lc(he,jt),dt}function yt(he,ue,ge,Re){if(ge==null)throw Error(o(151));for(var dt=null,lr=null,it=ue,jt=ue=0,Kt=null,sr=ge.next();it!==null&&!sr.done;jt++,sr=ge.next()){it.index>jt?(Kt=it,it=null):Kt=it.sibling;var Td=be(he,it,sr.value,Re);if(Td===null){it===null&&(it=Kt);break}h&&it&&Td.alternate===null&&m(he,it),ue=I(Td,ue,jt),lr===null?dt=Td:lr.sibling=Td,lr=Td,it=Kt}if(sr.done)return v(he,it),Jt&&Lc(he,jt),dt;if(it===null){for(;!sr.done;jt++,sr=ge.next())sr=Ne(he,sr.value,Re),sr!==null&&(ue=I(sr,ue,jt),lr===null?dt=sr:lr.sibling=sr,lr=sr);return Jt&&Lc(he,jt),dt}for(it=E(it);!sr.done;jt++,sr=ge.next())sr=ke(it,he,jt,sr.value,Re),sr!==null&&(h&&sr.alternate!==null&&it.delete(sr.key===null?jt:sr.key),ue=I(sr,ue,jt),lr===null?dt=sr:lr.sibling=sr,lr=sr);return h&&it.forEach(function(U6t){return m(he,U6t)}),Jt&&Lc(he,jt),dt}function kr(he,ue,ge,Re){if(typeof ge=="object"&&ge!==null&&ge.type===x&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case g:e:{for(var dt=ge.key;ue!==null;){if(ue.key===dt){if(dt=ge.type,dt===x){if(ue.tag===7){v(he,ue.sibling),Re=P(ue,ge.props.children),Re.return=he,he=Re;break e}}else if(ue.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===N&&Eh(dt)===ue.type){v(he,ue.sibling),Re=P(ue,ge.props),xv(Re,ge),Re.return=he,he=Re;break e}v(he,ue);break}else m(he,ue);ue=ue.sibling}ge.type===x?(Re=vh(ge.props.children,he.mode,Re,ge.key),Re.return=he,he=Re):(Re=Kk(ge.type,ge.key,ge.props,null,he.mode,Re),xv(Re,ge),Re.return=he,he=Re)}return G(he);case b:e:{for(dt=ge.key;ue!==null;){if(ue.key===dt)if(ue.tag===4&&ue.stateNode.containerInfo===ge.containerInfo&&ue.stateNode.implementation===ge.implementation){v(he,ue.sibling),Re=P(ue,ge.children||[]),Re.return=he,he=Re;break e}else{v(he,ue);break}else m(he,ue);ue=ue.sibling}Re=V$(ge,he.mode,Re),Re.return=he,he=Re}return G(he);case N:return ge=Eh(ge),kr(he,ue,ge,Re)}if(q(ge))return rt(he,ue,ge,Re);if(L(ge)){if(dt=L(ge),typeof dt!="function")throw Error(o(150));return ge=dt.call(ge),yt(he,ue,ge,Re)}if(typeof ge.then=="function")return kr(he,ue,n6(ge),Re);if(ge.$$typeof===_)return kr(he,ue,Jk(he,ge),Re);o6(he,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint"?(ge=""+ge,ue!==null&&ue.tag===6?(v(he,ue.sibling),Re=P(ue,ge),Re.return=he,he=Re):(v(he,ue),Re=U$(ge,he.mode,Re),Re.return=he,he=Re),G(he)):v(he,ue)}return function(he,ue,ge,Re){try{vv=0;var dt=kr(he,ue,ge,Re);return i1=null,dt}catch(it){if(it===a1||it===t6)throw it;var lr=Wa(29,it,null,he.mode);return lr.lanes=Re,lr.return=he,lr}finally{}}}var Ch=ame(!0),ime=ame(!1),ud=!1;function nM(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oM(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function dd(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function pd(h,m,v){var E=h.updateQueue;if(E===null)return null;if(E=E.shared,(cr&2)!==0){var P=E.pending;return P===null?m.next=m:(m.next=P.next,P.next=m),E.pending=m,m=Xk(h),qfe(h,null,v),m}return Gk(h,E,m,v),Xk(h)}function wv(h,m,v){if(m=m.updateQueue,m!==null&&(m=m.shared,(v&4194048)!==0)){var E=m.lanes;E&=h.pendingLanes,v|=E,m.lanes=v,$g(h,v)}}function aM(h,m){var v=h.updateQueue,E=h.alternate;if(E!==null&&(E=E.updateQueue,v===E)){var P=null,I=null;if(v=v.firstBaseUpdate,v!==null){do{var G={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};I===null?P=I=G:I=I.next=G,v=v.next}while(v!==null);I===null?P=I=m:I=I.next=m}else P=I=m;v={baseState:E.baseState,firstBaseUpdate:P,lastBaseUpdate:I,shared:E.shared,callbacks:E.callbacks},h.updateQueue=v;return}h=v.lastBaseUpdate,h===null?v.firstBaseUpdate=m:h.next=m,v.lastBaseUpdate=m}var iM=!1;function kv(){if(iM){var h=o1;if(h!==null)throw h}}function _v(h,m,v,E){iM=!1;var P=h.updateQueue;ud=!1;var I=P.firstBaseUpdate,G=P.lastBaseUpdate,re=P.shared.pending;if(re!==null){P.shared.pending=null;var se=re,ye=se.next;se.next=null,G===null?I=ye:G.next=ye,G=se;var Ce=h.alternate;Ce!==null&&(Ce=Ce.updateQueue,re=Ce.lastBaseUpdate,re!==G&&(re===null?Ce.firstBaseUpdate=ye:re.next=ye,Ce.lastBaseUpdate=se))}if(I!==null){var Ne=P.baseState;G=0,Ce=ye=se=null,re=I;do{var be=re.lane&-536870913,ke=be!==re.lane;if(ke?(Xt&be)===be:(E&be)===be){be!==0&&be===n1&&(iM=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:re.tag,payload:re.payload,callback:null,next:null});e:{var rt=h,yt=re;be=m;var kr=v;switch(yt.tag){case 1:if(rt=yt.payload,typeof rt=="function"){Ne=rt.call(kr,Ne,be);break e}Ne=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=yt.payload,be=typeof rt=="function"?rt.call(kr,Ne,be):rt,be==null)break e;Ne=p({},Ne,be);break e;case 2:ud=!0}}be=re.callback,be!==null&&(h.flags|=64,ke&&(h.flags|=8192),ke=P.callbacks,ke===null?P.callbacks=[be]:ke.push(be))}else ke={lane:be,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Ce===null?(ye=Ce=ke,se=Ne):Ce=Ce.next=ke,G|=be;if(re=re.next,re===null){if(re=P.shared.pending,re===null)break;ke=re,re=ke.next,ke.next=null,P.lastBaseUpdate=ke,P.shared.pending=null}}while(!0);Ce===null&&(se=Ne),P.baseState=se,P.firstBaseUpdate=ye,P.lastBaseUpdate=Ce,I===null&&(P.shared.lanes=0),yd|=G,h.lanes=G,h.memoizedState=Ne}}function lme(h,m){if(typeof h!="function")throw Error(o(191,h));h.call(m)}function sme(h,m){var v=h.callbacks;if(v!==null)for(h.callbacks=null,h=0;h<v.length;h++)lme(v[h],m)}var l1=X(null),a6=X(0);function cme(h,m){h=Xc,B(a6,h),B(l1,m),Xc=h|m.baseLanes}function lM(){B(a6,Xc),B(l1,l1.current)}function sM(){Xc=a6.current,Z(l1),Z(a6)}var Ga=X(null),Li=null;function hd(h){var m=h.alternate;B(gn,gn.current&1),B(Ga,h),Li===null&&(m===null||l1.current!==null||m.memoizedState!==null)&&(Li=h)}function cM(h){B(gn,gn.current),B(Ga,h),Li===null&&(Li=h)}function ume(h){h.tag===22?(B(gn,gn.current),B(Ga,h),Li===null&&(Li=h)):fd()}function fd(){B(gn,gn.current),B(Ga,Ga.current)}function Xa(h){Z(Ga),Li===h&&(Li=null),Z(gn)}var gn=X(0);function i6(h){for(var m=h;m!==null;){if(m.tag===13){var v=m.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||mO(v)||gO(v)))return m}else if(m.tag===19&&(m.memoizedProps.revealOrder==="forwards"||m.memoizedProps.revealOrder==="backwards"||m.memoizedProps.revealOrder==="unstable_legacy-backwards"||m.memoizedProps.revealOrder==="together")){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Fc=0,Bt=null,xr=null,jn=null,l6=!1,s1=!1,Th=!1,s6=0,Ev=0,c1=null,Mkt=0;function sn(){throw Error(o(321))}function uM(h,m){if(m===null)return!1;for(var v=0;v<m.length&&v<h.length;v++)if(!Ya(h[v],m[v]))return!1;return!0}function dM(h,m,v,E,P,I){return Fc=I,Bt=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,z.H=h===null||h.memoizedState===null?Wme:CM,Th=!1,I=v(E,P),Th=!1,s1&&(I=pme(m,v,E,P)),dme(h),I}function dme(h){z.H=Tv;var m=xr!==null&&xr.next!==null;if(Fc=0,jn=xr=Bt=null,l6=!1,Ev=0,c1=null,m)throw Error(o(300));h===null||Fn||(h=h.dependencies,h!==null&&Qk(h)&&(Fn=!0))}function pme(h,m,v,E){Bt=h;var P=0;do{if(s1&&(c1=null),Ev=0,s1=!1,25<=P)throw Error(o(301));if(P+=1,jn=xr=null,h.updateQueue!=null){var I=h.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}z.H=Gme,I=m(v,E)}while(s1);return I}function Okt(){var h=z.H,m=h.useState()[0];return m=typeof m.then=="function"?Sv(m):m,h=h.useState()[0],(xr!==null?xr.memoizedState:null)!==h&&(Bt.flags|=1024),m}function pM(){var h=s6!==0;return s6=0,h}function hM(h,m,v){m.updateQueue=h.updateQueue,m.flags&=-2053,h.lanes&=~v}function fM(h){if(l6){for(h=h.memoizedState;h!==null;){var m=h.queue;m!==null&&(m.pending=null),h=h.next}l6=!1}Fc=0,jn=xr=Bt=null,s1=!1,Ev=s6=0,c1=null}function Xo(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jn===null?Bt.memoizedState=jn=h:jn=jn.next=h,jn}function yn(){if(xr===null){var h=Bt.alternate;h=h!==null?h.memoizedState:null}else h=xr.next;var m=jn===null?Bt.memoizedState:jn.next;if(m!==null)jn=m,xr=h;else{if(h===null)throw Bt.alternate===null?Error(o(467)):Error(o(310));xr=h,h={memoizedState:xr.memoizedState,baseState:xr.baseState,baseQueue:xr.baseQueue,queue:xr.queue,next:null},jn===null?Bt.memoizedState=jn=h:jn=jn.next=h}return jn}function c6(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sv(h){var m=Ev;return Ev+=1,c1===null&&(c1=[]),h=rme(c1,h,m),m=Bt,(jn===null?m.memoizedState:jn.next)===null&&(m=m.alternate,z.H=m===null||m.memoizedState===null?Wme:CM),h}function u6(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return Sv(h);if(h.$$typeof===_)return ko(h)}throw Error(o(438,String(h)))}function mM(h){var m=null,v=Bt.updateQueue;if(v!==null&&(m=v.memoCache),m==null){var E=Bt.alternate;E!==null&&(E=E.updateQueue,E!==null&&(E=E.memoCache,E!=null&&(m={data:E.data.map(function(P){return P.slice()}),index:0})))}if(m==null&&(m={data:[],index:0}),v===null&&(v=c6(),Bt.updateQueue=v),v.memoCache=m,v=m.data[m.index],v===void 0)for(v=m.data[m.index]=Array(h),E=0;E<h;E++)v[E]=O;return m.index++,v}function Hc(h,m){return typeof m=="function"?m(h):m}function d6(h){var m=yn();return gM(m,xr,h)}function gM(h,m,v){var E=h.queue;if(E===null)throw Error(o(311));E.lastRenderedReducer=v;var P=h.baseQueue,I=E.pending;if(I!==null){if(P!==null){var G=P.next;P.next=I.next,I.next=G}m.baseQueue=P=I,E.pending=null}if(I=h.baseState,P===null)h.memoizedState=I;else{m=P.next;var re=G=null,se=null,ye=m,Ce=!1;do{var Ne=ye.lane&-536870913;if(Ne!==ye.lane?(Xt&Ne)===Ne:(Fc&Ne)===Ne){var be=ye.revertLane;if(be===0)se!==null&&(se=se.next={lane:0,revertLane:0,gesture:null,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null}),Ne===n1&&(Ce=!0);else if((Fc&be)===be){ye=ye.next,be===n1&&(Ce=!0);continue}else Ne={lane:0,revertLane:ye.revertLane,gesture:null,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null},se===null?(re=se=Ne,G=I):se=se.next=Ne,Bt.lanes|=be,yd|=be;Ne=ye.action,Th&&v(I,Ne),I=ye.hasEagerState?ye.eagerState:v(I,Ne)}else be={lane:Ne,revertLane:ye.revertLane,gesture:ye.gesture,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null},se===null?(re=se=be,G=I):se=se.next=be,Bt.lanes|=Ne,yd|=Ne;ye=ye.next}while(ye!==null&&ye!==m);if(se===null?G=I:se.next=re,!Ya(I,h.memoizedState)&&(Fn=!0,Ce&&(v=o1,v!==null)))throw v;h.memoizedState=I,h.baseState=G,h.baseQueue=se,E.lastRenderedState=I}return P===null&&(E.lanes=0),[h.memoizedState,E.dispatch]}function yM(h){var m=yn(),v=m.queue;if(v===null)throw Error(o(311));v.lastRenderedReducer=h;var E=v.dispatch,P=v.pending,I=m.memoizedState;if(P!==null){v.pending=null;var G=P=P.next;do I=h(I,G.action),G=G.next;while(G!==P);Ya(I,m.memoizedState)||(Fn=!0),m.memoizedState=I,m.baseQueue===null&&(m.baseState=I),v.lastRenderedState=I}return[I,E]}function hme(h,m,v){var E=Bt,P=yn(),I=Jt;if(I){if(v===void 0)throw Error(o(407));v=v()}else v=m();var G=!Ya((xr||P).memoizedState,v);if(G&&(P.memoizedState=v,Fn=!0),P=P.queue,xM(gme.bind(null,E,P,h),[h]),P.getSnapshot!==m||G||jn!==null&&jn.memoizedState.tag&1){if(E.flags|=2048,u1(9,{destroy:void 0},mme.bind(null,E,P,v,m),null),Cr===null)throw Error(o(349));I||(Fc&127)!==0||fme(E,m,v)}return v}function fme(h,m,v){h.flags|=16384,h={getSnapshot:m,value:v},m=Bt.updateQueue,m===null?(m=c6(),Bt.updateQueue=m,m.stores=[h]):(v=m.stores,v===null?m.stores=[h]:v.push(h))}function mme(h,m,v,E){m.value=v,m.getSnapshot=E,yme(m)&&bme(h)}function gme(h,m,v){return v(function(){yme(m)&&bme(h)})}function yme(h){var m=h.getSnapshot;h=h.value;try{var v=m();return!Ya(h,v)}catch{return!0}}function bme(h){var m=bh(h,2);m!==null&&va(m,h,2)}function bM(h){var m=Xo();if(typeof h=="function"){var v=h;if(h=v(),Th){fn(!0);try{v()}finally{fn(!1)}}}return m.memoizedState=m.baseState=h,m.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hc,lastRenderedState:h},m}function vme(h,m,v,E){return h.baseState=v,gM(h,xr,typeof E=="function"?E:Hc)}function Ikt(h,m,v,E,P){if(f6(h))throw Error(o(485));if(h=m.action,h!==null){var I={payload:P,action:h,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(G){I.listeners.push(G)}};z.T!==null?v(!0):I.isTransition=!1,E(I),v=m.pending,v===null?(I.next=m.pending=I,xme(m,I)):(I.next=v.next,m.pending=v.next=I)}}function xme(h,m){var v=m.action,E=m.payload,P=h.state;if(m.isTransition){var I=z.T,G={};z.T=G;try{var re=v(P,E),se=z.S;se!==null&&se(G,re),wme(h,m,re)}catch(ye){vM(h,m,ye)}finally{I!==null&&G.types!==null&&(I.types=G.types),z.T=I}}else try{I=v(P,E),wme(h,m,I)}catch(ye){vM(h,m,ye)}}function wme(h,m,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(E){kme(h,m,E)},function(E){return vM(h,m,E)}):kme(h,m,v)}function kme(h,m,v){m.status="fulfilled",m.value=v,_me(m),h.state=v,m=h.pending,m!==null&&(v=m.next,v===m?h.pending=null:(v=v.next,m.next=v,xme(h,v)))}function vM(h,m,v){var E=h.pending;if(h.pending=null,E!==null){E=E.next;do m.status="rejected",m.reason=v,_me(m),m=m.next;while(m!==E)}h.action=null}function _me(h){h=h.listeners;for(var m=0;m<h.length;m++)(0,h[m])()}function Eme(h,m){return m}function Sme(h,m){if(Jt){var v=Cr.formState;if(v!==null){e:{var E=Bt;if(Jt){if(Lr){t:{for(var P=Lr,I=zi;P.nodeType!==8;){if(!I){P=null;break t}if(P=Bi(P.nextSibling),P===null){P=null;break t}}I=P.data,P=I==="F!"||I==="F"?P:null}if(P){Lr=Bi(P.nextSibling),E=P.data==="F!";break e}}sd(E)}E=!1}E&&(m=v[0])}}return v=Xo(),v.memoizedState=v.baseState=m,E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eme,lastRenderedState:m},v.queue=E,v=Ume.bind(null,Bt,E),E.dispatch=v,E=bM(!1),I=SM.bind(null,Bt,!1,E.queue),E=Xo(),P={state:m,dispatch:null,action:h,pending:null},E.queue=P,v=Ikt.bind(null,Bt,P,I,v),P.dispatch=v,E.memoizedState=h,[m,v,!1]}function Cme(h){var m=yn();return Tme(m,xr,h)}function Tme(h,m,v){if(m=gM(h,m,Eme)[0],h=d6(Hc)[0],typeof m=="object"&&m!==null&&typeof m.then=="function")try{var E=Sv(m)}catch(G){throw G===a1?t6:G}else E=m;m=yn();var P=m.queue,I=P.dispatch;return v!==m.memoizedState&&(Bt.flags|=2048,u1(9,{destroy:void 0},zkt.bind(null,P,v),null)),[E,I,h]}function zkt(h,m){h.action=m}function Rme(h){var m=yn(),v=xr;if(v!==null)return Tme(m,v,h);yn(),m=m.memoizedState,v=yn();var E=v.queue.dispatch;return v.memoizedState=h,[m,E,!1]}function u1(h,m,v,E){return h={tag:h,create:v,deps:E,inst:m,next:null},m=Bt.updateQueue,m===null&&(m=c6(),Bt.updateQueue=m),v=m.lastEffect,v===null?m.lastEffect=h.next=h:(E=v.next,v.next=h,h.next=E,m.lastEffect=h),h}function Ame(){return yn().memoizedState}function p6(h,m,v,E){var P=Xo();Bt.flags|=h,P.memoizedState=u1(1|m,{destroy:void 0},v,E===void 0?null:E)}function h6(h,m,v,E){var P=yn();E=E===void 0?null:E;var I=P.memoizedState.inst;xr!==null&&E!==null&&uM(E,xr.memoizedState.deps)?P.memoizedState=u1(m,I,v,E):(Bt.flags|=h,P.memoizedState=u1(1|m,I,v,E))}function Nme(h,m){p6(8390656,8,h,m)}function xM(h,m){h6(2048,8,h,m)}function Lkt(h){Bt.flags|=4;var m=Bt.updateQueue;if(m===null)m=c6(),Bt.updateQueue=m,m.events=[h];else{var v=m.events;v===null?m.events=[h]:v.push(h)}}function Dme(h){var m=yn().memoizedState;return Lkt({ref:m,nextImpl:h}),function(){if((cr&2)!==0)throw Error(o(440));return m.impl.apply(void 0,arguments)}}function Pme(h,m){return h6(4,2,h,m)}function $me(h,m){return h6(4,4,h,m)}function Mme(h,m){if(typeof m=="function"){h=h();var v=m(h);return function(){typeof v=="function"?v():m(null)}}if(m!=null)return h=h(),m.current=h,function(){m.current=null}}function Ome(h,m,v){v=v!=null?v.concat([h]):null,h6(4,4,Mme.bind(null,m,h),v)}function wM(){}function Ime(h,m){var v=yn();m=m===void 0?null:m;var E=v.memoizedState;return m!==null&&uM(m,E[1])?E[0]:(v.memoizedState=[h,m],h)}function zme(h,m){var v=yn();m=m===void 0?null:m;var E=v.memoizedState;if(m!==null&&uM(m,E[1]))return E[0];if(E=h(),Th){fn(!0);try{h()}finally{fn(!1)}}return v.memoizedState=[E,m],E}function kM(h,m,v){return v===void 0||(Fc&1073741824)!==0&&(Xt&261930)===0?h.memoizedState=m:(h.memoizedState=v,h=Lge(),Bt.lanes|=h,yd|=h,v)}function Lme(h,m,v,E){return Ya(v,m)?v:l1.current!==null?(h=kM(h,v,E),Ya(h,m)||(Fn=!0),h):(Fc&42)===0||(Fc&1073741824)!==0&&(Xt&261930)===0?(Fn=!0,h.memoizedState=v):(h=Lge(),Bt.lanes|=h,yd|=h,m)}function Bme(h,m,v,E,P){var I=H.p;H.p=I!==0&&8>I?I:8;var G=z.T,re={};z.T=re,SM(h,!1,m,v);try{var se=P(),ye=z.S;if(ye!==null&&ye(re,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var Ce=$kt(se,E);Cv(h,m,Ce,Qa(h))}else Cv(h,m,E,Qa(h))}catch(Ne){Cv(h,m,{then:function(){},status:"rejected",reason:Ne},Qa())}finally{H.p=I,G!==null&&re.types!==null&&(G.types=re.types),z.T=G}}function Bkt(){}function _M(h,m,v,E){if(h.tag!==5)throw Error(o(476));var P=jme(h).queue;Bme(h,P,m,U,v===null?Bkt:function(){return Fme(h),v(E)})}function jme(h){var m=h.memoizedState;if(m!==null)return m;m={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hc,lastRenderedState:U},next:null};var v={};return m.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hc,lastRenderedState:v},next:null},h.memoizedState=m,h=h.alternate,h!==null&&(h.memoizedState=m),m}function Fme(h){var m=jme(h);m.next===null&&(m=h.alternate.memoizedState),Cv(h,m.next.queue,{},Qa())}function EM(){return ko(qv)}function Hme(){return yn().memoizedState}function qme(){return yn().memoizedState}function jkt(h){for(var m=h.return;m!==null;){switch(m.tag){case 24:case 3:var v=Qa();h=dd(v);var E=pd(m,h,v);E!==null&&(va(E,m,v),wv(E,m,v)),m={cache:J$()},h.payload=m;return}m=m.return}}function Fkt(h,m,v){var E=Qa();v={lane:E,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},f6(h)?Vme(m,v):(v=H$(h,m,v,E),v!==null&&(va(v,h,E),Yme(v,m,E)))}function Ume(h,m,v){var E=Qa();Cv(h,m,v,E)}function Cv(h,m,v,E){var P={lane:E,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(f6(h))Vme(m,P);else{var I=h.alternate;if(h.lanes===0&&(I===null||I.lanes===0)&&(I=m.lastRenderedReducer,I!==null))try{var G=m.lastRenderedState,re=I(G,v);if(P.hasEagerState=!0,P.eagerState=re,Ya(re,G))return Gk(h,m,P,0),Cr===null&&Wk(),!1}catch{}finally{}if(v=H$(h,m,P,E),v!==null)return va(v,h,E),Yme(v,m,E),!0}return!1}function SM(h,m,v,E){if(E={lane:2,revertLane:nO(),gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null},f6(h)){if(m)throw Error(o(479))}else m=H$(h,v,E,2),m!==null&&va(m,h,2)}function f6(h){var m=h.alternate;return h===Bt||m!==null&&m===Bt}function Vme(h,m){s1=l6=!0;var v=h.pending;v===null?m.next=m:(m.next=v.next,v.next=m),h.pending=m}function Yme(h,m,v){if((v&4194048)!==0){var E=m.lanes;E&=h.pendingLanes,v|=E,m.lanes=v,$g(h,v)}}var Tv={readContext:ko,use:u6,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useLayoutEffect:sn,useInsertionEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useSyncExternalStore:sn,useId:sn,useHostTransitionStatus:sn,useFormState:sn,useActionState:sn,useOptimistic:sn,useMemoCache:sn,useCacheRefresh:sn};Tv.useEffectEvent=sn;var Wme={readContext:ko,use:u6,useCallback:function(h,m){return Xo().memoizedState=[h,m===void 0?null:m],h},useContext:ko,useEffect:Nme,useImperativeHandle:function(h,m,v){v=v!=null?v.concat([h]):null,p6(4194308,4,Mme.bind(null,m,h),v)},useLayoutEffect:function(h,m){return p6(4194308,4,h,m)},useInsertionEffect:function(h,m){p6(4,2,h,m)},useMemo:function(h,m){var v=Xo();m=m===void 0?null:m;var E=h();if(Th){fn(!0);try{h()}finally{fn(!1)}}return v.memoizedState=[E,m],E},useReducer:function(h,m,v){var E=Xo();if(v!==void 0){var P=v(m);if(Th){fn(!0);try{v(m)}finally{fn(!1)}}}else P=m;return E.memoizedState=E.baseState=P,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:P},E.queue=h,h=h.dispatch=Fkt.bind(null,Bt,h),[E.memoizedState,h]},useRef:function(h){var m=Xo();return h={current:h},m.memoizedState=h},useState:function(h){h=bM(h);var m=h.queue,v=Ume.bind(null,Bt,m);return m.dispatch=v,[h.memoizedState,v]},useDebugValue:wM,useDeferredValue:function(h,m){var v=Xo();return kM(v,h,m)},useTransition:function(){var h=bM(!1);return h=Bme.bind(null,Bt,h.queue,!0,!1),Xo().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,m,v){var E=Bt,P=Xo();if(Jt){if(v===void 0)throw Error(o(407));v=v()}else{if(v=m(),Cr===null)throw Error(o(349));(Xt&127)!==0||fme(E,m,v)}P.memoizedState=v;var I={value:v,getSnapshot:m};return P.queue=I,Nme(gme.bind(null,E,I,h),[h]),E.flags|=2048,u1(9,{destroy:void 0},mme.bind(null,E,I,v,m),null),v},useId:function(){var h=Xo(),m=Cr.identifierPrefix;if(Jt){var v=Ds,E=Ns;v=(E&~(1<<32-ar(E)-1)).toString(32)+v,m="_"+m+"R_"+v,v=s6++,0<v&&(m+="H"+v.toString(32)),m+="_"}else v=Mkt++,m="_"+m+"r_"+v.toString(32)+"_";return h.memoizedState=m},useHostTransitionStatus:EM,useFormState:Sme,useActionState:Sme,useOptimistic:function(h){var m=Xo();m.memoizedState=m.baseState=h;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=v,m=SM.bind(null,Bt,!0,v),v.dispatch=m,[h,m]},useMemoCache:mM,useCacheRefresh:function(){return Xo().memoizedState=jkt.bind(null,Bt)},useEffectEvent:function(h){var m=Xo(),v={impl:h};return m.memoizedState=v,function(){if((cr&2)!==0)throw Error(o(440));return v.impl.apply(void 0,arguments)}}},CM={readContext:ko,use:u6,useCallback:Ime,useContext:ko,useEffect:xM,useImperativeHandle:Ome,useInsertionEffect:Pme,useLayoutEffect:$me,useMemo:zme,useReducer:d6,useRef:Ame,useState:function(){return d6(Hc)},useDebugValue:wM,useDeferredValue:function(h,m){var v=yn();return Lme(v,xr.memoizedState,h,m)},useTransition:function(){var h=d6(Hc)[0],m=yn().memoizedState;return[typeof h=="boolean"?h:Sv(h),m]},useSyncExternalStore:hme,useId:Hme,useHostTransitionStatus:EM,useFormState:Cme,useActionState:Cme,useOptimistic:function(h,m){var v=yn();return vme(v,xr,h,m)},useMemoCache:mM,useCacheRefresh:qme};CM.useEffectEvent=Dme;var Gme={readContext:ko,use:u6,useCallback:Ime,useContext:ko,useEffect:xM,useImperativeHandle:Ome,useInsertionEffect:Pme,useLayoutEffect:$me,useMemo:zme,useReducer:yM,useRef:Ame,useState:function(){return yM(Hc)},useDebugValue:wM,useDeferredValue:function(h,m){var v=yn();return xr===null?kM(v,h,m):Lme(v,xr.memoizedState,h,m)},useTransition:function(){var h=yM(Hc)[0],m=yn().memoizedState;return[typeof h=="boolean"?h:Sv(h),m]},useSyncExternalStore:hme,useId:Hme,useHostTransitionStatus:EM,useFormState:Rme,useActionState:Rme,useOptimistic:function(h,m){var v=yn();return xr!==null?vme(v,xr,h,m):(v.baseState=h,[h,v.queue.dispatch])},useMemoCache:mM,useCacheRefresh:qme};Gme.useEffectEvent=Dme;function TM(h,m,v,E){m=h.memoizedState,v=v(E,m),v=v==null?m:p({},m,v),h.memoizedState=v,h.lanes===0&&(h.updateQueue.baseState=v)}var RM={enqueueSetState:function(h,m,v){h=h._reactInternals;var E=Qa(),P=dd(E);P.payload=m,v!=null&&(P.callback=v),m=pd(h,P,E),m!==null&&(va(m,h,E),wv(m,h,E))},enqueueReplaceState:function(h,m,v){h=h._reactInternals;var E=Qa(),P=dd(E);P.tag=1,P.payload=m,v!=null&&(P.callback=v),m=pd(h,P,E),m!==null&&(va(m,h,E),wv(m,h,E))},enqueueForceUpdate:function(h,m){h=h._reactInternals;var v=Qa(),E=dd(v);E.tag=2,m!=null&&(E.callback=m),m=pd(h,E,v),m!==null&&(va(m,h,v),wv(m,h,v))}};function Xme(h,m,v,E,P,I,G){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(E,I,G):m.prototype&&m.prototype.isPureReactComponent?!hv(v,E)||!hv(P,I):!0}function Kme(h,m,v,E){h=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(v,E),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(v,E),m.state!==h&&RM.enqueueReplaceState(m,m.state,null)}function Rh(h,m){var v=m;if("ref"in m){v={};for(var E in m)E!=="ref"&&(v[E]=m[E])}if(h=h.defaultProps){v===m&&(v=p({},v));for(var P in h)v[P]===void 0&&(v[P]=h[P])}return v}function Zme(h){Yk(h)}function Qme(h){console.error(h)}function Jme(h){Yk(h)}function m6(h,m){try{var v=h.onUncaughtError;v(m.value,{componentStack:m.stack})}catch(E){setTimeout(function(){throw E})}}function ege(h,m,v){try{var E=h.onCaughtError;E(v.value,{componentStack:v.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(P){setTimeout(function(){throw P})}}function AM(h,m,v){return v=dd(v),v.tag=3,v.payload={element:null},v.callback=function(){m6(h,m)},v}function tge(h){return h=dd(h),h.tag=3,h}function rge(h,m,v,E){var P=v.type.getDerivedStateFromError;if(typeof P=="function"){var I=E.value;h.payload=function(){return P(I)},h.callback=function(){ege(m,v,E)}}var G=v.stateNode;G!==null&&typeof G.componentDidCatch=="function"&&(h.callback=function(){ege(m,v,E),typeof P!="function"&&(bd===null?bd=new Set([this]):bd.add(this));var re=E.stack;this.componentDidCatch(E.value,{componentStack:re!==null?re:""})})}function Hkt(h,m,v,E,P){if(v.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){if(m=v.alternate,m!==null&&r1(m,v,P,!0),v=Ga.current,v!==null){switch(v.tag){case 31:case 13:return Li===null?T6():v.alternate===null&&cn===0&&(cn=3),v.flags&=-257,v.flags|=65536,v.lanes=P,E===r6?v.flags|=16384:(m=v.updateQueue,m===null?v.updateQueue=new Set([E]):m.add(E),eO(h,E,P)),!1;case 22:return v.flags|=65536,E===r6?v.flags|=16384:(m=v.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([E])},v.updateQueue=m):(v=m.retryQueue,v===null?m.retryQueue=new Set([E]):v.add(E)),eO(h,E,P)),!1}throw Error(o(435,v.tag))}return eO(h,E,P),T6(),!1}if(Jt)return m=Ga.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=P,E!==G$&&(h=Error(o(422),{cause:E}),gv(Mi(h,v)))):(E!==G$&&(m=Error(o(423),{cause:E}),gv(Mi(m,v))),h=h.current.alternate,h.flags|=65536,P&=-P,h.lanes|=P,E=Mi(E,v),P=AM(h.stateNode,E,P),aM(h,P),cn!==4&&(cn=2)),!1;var I=Error(o(520),{cause:E});if(I=Mi(I,v),Ov===null?Ov=[I]:Ov.push(I),cn!==4&&(cn=2),m===null)return!0;E=Mi(E,v),v=m;do{switch(v.tag){case 3:return v.flags|=65536,h=P&-P,v.lanes|=h,h=AM(v.stateNode,E,h),aM(v,h),!1;case 1:if(m=v.type,I=v.stateNode,(v.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(bd===null||!bd.has(I))))return v.flags|=65536,P&=-P,v.lanes|=P,P=tge(P),rge(P,h,v,E),aM(v,P),!1}v=v.return}while(v!==null);return!1}var NM=Error(o(461)),Fn=!1;function _o(h,m,v,E){m.child=h===null?ime(m,null,v,E):Ch(m,h.child,v,E)}function nge(h,m,v,E,P){v=v.render;var I=m.ref;if("ref"in E){var G={};for(var re in E)re!=="ref"&&(G[re]=E[re])}else G=E;return kh(m),E=dM(h,m,v,G,I,P),re=pM(),h!==null&&!Fn?(hM(h,m,P),qc(h,m,P)):(Jt&&re&&Y$(m),m.flags|=1,_o(h,m,E,P),m.child)}function oge(h,m,v,E,P){if(h===null){var I=v.type;return typeof I=="function"&&!q$(I)&&I.defaultProps===void 0&&v.compare===null?(m.tag=15,m.type=I,age(h,m,I,E,P)):(h=Kk(v.type,null,E,m,m.mode,P),h.ref=m.ref,h.return=m,m.child=h)}if(I=h.child,!LM(h,P)){var G=I.memoizedProps;if(v=v.compare,v=v!==null?v:hv,v(G,E)&&h.ref===m.ref)return qc(h,m,P)}return m.flags|=1,h=zc(I,E),h.ref=m.ref,h.return=m,m.child=h}function age(h,m,v,E,P){if(h!==null){var I=h.memoizedProps;if(hv(I,E)&&h.ref===m.ref)if(Fn=!1,m.pendingProps=E=I,LM(h,P))(h.flags&131072)!==0&&(Fn=!0);else return m.lanes=h.lanes,qc(h,m,P)}return DM(h,m,v,E,P)}function ige(h,m,v,E){var P=E.children,I=h!==null?h.memoizedState:null;if(h===null&&m.stateNode===null&&(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),E.mode==="hidden"){if((m.flags&128)!==0){if(I=I!==null?I.baseLanes|v:v,h!==null){for(E=m.child=h.child,P=0;E!==null;)P=P|E.lanes|E.childLanes,E=E.sibling;E=P&~I}else E=0,m.child=null;return lge(h,m,I,v,E)}if((v&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},h!==null&&e6(m,I!==null?I.cachePool:null),I!==null?cme(m,I):lM(),ume(m);else return E=m.lanes=536870912,lge(h,m,I!==null?I.baseLanes|v:v,v,E)}else I!==null?(e6(m,I.cachePool),cme(m,I),fd(),m.memoizedState=null):(h!==null&&e6(m,null),lM(),fd());return _o(h,m,P,v),m.child}function Rv(h,m){return h!==null&&h.tag===22||m.stateNode!==null||(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.sibling}function lge(h,m,v,E,P){var I=tM();return I=I===null?null:{parent:Bn._currentValue,pool:I},m.memoizedState={baseLanes:v,cachePool:I},h!==null&&e6(m,null),lM(),ume(m),h!==null&&r1(h,m,E,!0),m.childLanes=P,null}function g6(h,m){return m=b6({mode:m.mode,children:m.children},h.mode),m.ref=h.ref,h.child=m,m.return=h,m}function sge(h,m,v){return Ch(m,h.child,null,v),h=g6(m,m.pendingProps),h.flags|=2,Xa(m),m.memoizedState=null,h}function qkt(h,m,v){var E=m.pendingProps,P=(m.flags&128)!==0;if(m.flags&=-129,h===null){if(Jt){if(E.mode==="hidden")return h=g6(m,E),m.lanes=536870912,Rv(null,h);if(cM(m),(h=Lr)?(h=x1e(h,zi),h=h!==null&&h.data==="&"?h:null,h!==null&&(m.memoizedState={dehydrated:h,treeContext:id!==null?{id:Ns,overflow:Ds}:null,retryLane:536870912,hydrationErrors:null},v=Vfe(h),v.return=m,m.child=v,wo=m,Lr=null)):h=null,h===null)throw sd(m);return m.lanes=536870912,null}return g6(m,E)}var I=h.memoizedState;if(I!==null){var G=I.dehydrated;if(cM(m),P)if(m.flags&256)m.flags&=-257,m=sge(h,m,v);else if(m.memoizedState!==null)m.child=h.child,m.flags|=128,m=null;else throw Error(o(558));else if(Fn||r1(h,m,v,!1),P=(v&h.childLanes)!==0,Fn||P){if(E=Cr,E!==null&&(G=Mg(E,v),G!==0&&G!==I.retryLane))throw I.retryLane=G,bh(h,G),va(E,h,G),NM;T6(),m=sge(h,m,v)}else h=I.treeContext,Lr=Bi(G.nextSibling),wo=m,Jt=!0,ld=null,zi=!1,h!==null&&Gfe(m,h),m=g6(m,E),m.flags|=4096;return m}return h=zc(h.child,{mode:E.mode,children:E.children}),h.ref=m.ref,m.child=h,h.return=m,h}function y6(h,m){var v=m.ref;if(v===null)h!==null&&h.ref!==null&&(m.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(o(284));(h===null||h.ref!==v)&&(m.flags|=4194816)}}function DM(h,m,v,E,P){return kh(m),v=dM(h,m,v,E,void 0,P),E=pM(),h!==null&&!Fn?(hM(h,m,P),qc(h,m,P)):(Jt&&E&&Y$(m),m.flags|=1,_o(h,m,v,P),m.child)}function cge(h,m,v,E,P,I){return kh(m),m.updateQueue=null,v=pme(m,E,v,P),dme(h),E=pM(),h!==null&&!Fn?(hM(h,m,I),qc(h,m,I)):(Jt&&E&&Y$(m),m.flags|=1,_o(h,m,v,I),m.child)}function uge(h,m,v,E,P){if(kh(m),m.stateNode===null){var I=Qg,G=v.contextType;typeof G=="object"&&G!==null&&(I=ko(G)),I=new v(E,I),m.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=RM,m.stateNode=I,I._reactInternals=m,I=m.stateNode,I.props=E,I.state=m.memoizedState,I.refs={},nM(m),G=v.contextType,I.context=typeof G=="object"&&G!==null?ko(G):Qg,I.state=m.memoizedState,G=v.getDerivedStateFromProps,typeof G=="function"&&(TM(m,v,G,E),I.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(G=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),G!==I.state&&RM.enqueueReplaceState(I,I.state,null),_v(m,E,I,P),kv(),I.state=m.memoizedState),typeof I.componentDidMount=="function"&&(m.flags|=4194308),E=!0}else if(h===null){I=m.stateNode;var re=m.memoizedProps,se=Rh(v,re);I.props=se;var ye=I.context,Ce=v.contextType;G=Qg,typeof Ce=="object"&&Ce!==null&&(G=ko(Ce));var Ne=v.getDerivedStateFromProps;Ce=typeof Ne=="function"||typeof I.getSnapshotBeforeUpdate=="function",re=m.pendingProps!==re,Ce||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(re||ye!==G)&&Kme(m,I,E,G),ud=!1;var be=m.memoizedState;I.state=be,_v(m,E,I,P),kv(),ye=m.memoizedState,re||be!==ye||ud?(typeof Ne=="function"&&(TM(m,v,Ne,E),ye=m.memoizedState),(se=ud||Xme(m,v,se,E,be,ye,G))?(Ce||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(m.flags|=4194308)):(typeof I.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=E,m.memoizedState=ye),I.props=E,I.state=ye,I.context=G,E=se):(typeof I.componentDidMount=="function"&&(m.flags|=4194308),E=!1)}else{I=m.stateNode,oM(h,m),G=m.memoizedProps,Ce=Rh(v,G),I.props=Ce,Ne=m.pendingProps,be=I.context,ye=v.contextType,se=Qg,typeof ye=="object"&&ye!==null&&(se=ko(ye)),re=v.getDerivedStateFromProps,(ye=typeof re=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(G!==Ne||be!==se)&&Kme(m,I,E,se),ud=!1,be=m.memoizedState,I.state=be,_v(m,E,I,P),kv();var ke=m.memoizedState;G!==Ne||be!==ke||ud||h!==null&&h.dependencies!==null&&Qk(h.dependencies)?(typeof re=="function"&&(TM(m,v,re,E),ke=m.memoizedState),(Ce=ud||Xme(m,v,Ce,E,be,ke,se)||h!==null&&h.dependencies!==null&&Qk(h.dependencies))?(ye||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(E,ke,se),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(E,ke,se)),typeof I.componentDidUpdate=="function"&&(m.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof I.componentDidUpdate!="function"||G===h.memoizedProps&&be===h.memoizedState||(m.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||G===h.memoizedProps&&be===h.memoizedState||(m.flags|=1024),m.memoizedProps=E,m.memoizedState=ke),I.props=E,I.state=ke,I.context=se,E=Ce):(typeof I.componentDidUpdate!="function"||G===h.memoizedProps&&be===h.memoizedState||(m.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||G===h.memoizedProps&&be===h.memoizedState||(m.flags|=1024),E=!1)}return I=E,y6(h,m),E=(m.flags&128)!==0,I||E?(I=m.stateNode,v=E&&typeof v.getDerivedStateFromError!="function"?null:I.render(),m.flags|=1,h!==null&&E?(m.child=Ch(m,h.child,null,P),m.child=Ch(m,null,v,P)):_o(h,m,v,P),m.memoizedState=I.state,h=m.child):h=qc(h,m,P),h}function dge(h,m,v,E){return xh(),m.flags|=256,_o(h,m,v,E),m.child}var PM={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $M(h){return{baseLanes:h,cachePool:eme()}}function MM(h,m,v){return h=h!==null?h.childLanes&~v:0,m&&(h|=Za),h}function pge(h,m,v){var E=m.pendingProps,P=!1,I=(m.flags&128)!==0,G;if((G=I)||(G=h!==null&&h.memoizedState===null?!1:(gn.current&2)!==0),G&&(P=!0,m.flags&=-129),G=(m.flags&32)!==0,m.flags&=-33,h===null){if(Jt){if(P?hd(m):fd(),(h=Lr)?(h=x1e(h,zi),h=h!==null&&h.data!=="&"?h:null,h!==null&&(m.memoizedState={dehydrated:h,treeContext:id!==null?{id:Ns,overflow:Ds}:null,retryLane:536870912,hydrationErrors:null},v=Vfe(h),v.return=m,m.child=v,wo=m,Lr=null)):h=null,h===null)throw sd(m);return gO(h)?m.lanes=32:m.lanes=536870912,null}var re=E.children;return E=E.fallback,P?(fd(),P=m.mode,re=b6({mode:"hidden",children:re},P),E=vh(E,P,v,null),re.return=m,E.return=m,re.sibling=E,m.child=re,E=m.child,E.memoizedState=$M(v),E.childLanes=MM(h,G,v),m.memoizedState=PM,Rv(null,E)):(hd(m),OM(m,re))}var se=h.memoizedState;if(se!==null&&(re=se.dehydrated,re!==null)){if(I)m.flags&256?(hd(m),m.flags&=-257,m=IM(h,m,v)):m.memoizedState!==null?(fd(),m.child=h.child,m.flags|=128,m=null):(fd(),re=E.fallback,P=m.mode,E=b6({mode:"visible",children:E.children},P),re=vh(re,P,v,null),re.flags|=2,E.return=m,re.return=m,E.sibling=re,m.child=E,Ch(m,h.child,null,v),E=m.child,E.memoizedState=$M(v),E.childLanes=MM(h,G,v),m.memoizedState=PM,m=Rv(null,E));else if(hd(m),gO(re)){if(G=re.nextSibling&&re.nextSibling.dataset,G)var ye=G.dgst;G=ye,E=Error(o(419)),E.stack="",E.digest=G,gv({value:E,source:null,stack:null}),m=IM(h,m,v)}else if(Fn||r1(h,m,v,!1),G=(v&h.childLanes)!==0,Fn||G){if(G=Cr,G!==null&&(E=Mg(G,v),E!==0&&E!==se.retryLane))throw se.retryLane=E,bh(h,E),va(G,h,E),NM;mO(re)||T6(),m=IM(h,m,v)}else mO(re)?(m.flags|=192,m.child=h.child,m=null):(h=se.treeContext,Lr=Bi(re.nextSibling),wo=m,Jt=!0,ld=null,zi=!1,h!==null&&Gfe(m,h),m=OM(m,E.children),m.flags|=4096);return m}return P?(fd(),re=E.fallback,P=m.mode,se=h.child,ye=se.sibling,E=zc(se,{mode:"hidden",children:E.children}),E.subtreeFlags=se.subtreeFlags&65011712,ye!==null?re=zc(ye,re):(re=vh(re,P,v,null),re.flags|=2),re.return=m,E.return=m,E.sibling=re,m.child=E,Rv(null,E),E=m.child,re=h.child.memoizedState,re===null?re=$M(v):(P=re.cachePool,P!==null?(se=Bn._currentValue,P=P.parent!==se?{parent:se,pool:se}:P):P=eme(),re={baseLanes:re.baseLanes|v,cachePool:P}),E.memoizedState=re,E.childLanes=MM(h,G,v),m.memoizedState=PM,Rv(h.child,E)):(hd(m),v=h.child,h=v.sibling,v=zc(v,{mode:"visible",children:E.children}),v.return=m,v.sibling=null,h!==null&&(G=m.deletions,G===null?(m.deletions=[h],m.flags|=16):G.push(h)),m.child=v,m.memoizedState=null,v)}function OM(h,m){return m=b6({mode:"visible",children:m},h.mode),m.return=h,h.child=m}function b6(h,m){return h=Wa(22,h,null,m),h.lanes=0,h}function IM(h,m,v){return Ch(m,h.child,null,v),h=OM(m,m.pendingProps.children),h.flags|=2,m.memoizedState=null,h}function hge(h,m,v){h.lanes|=m;var E=h.alternate;E!==null&&(E.lanes|=m),Z$(h.return,m,v)}function zM(h,m,v,E,P,I){var G=h.memoizedState;G===null?h.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:E,tail:v,tailMode:P,treeForkCount:I}:(G.isBackwards=m,G.rendering=null,G.renderingStartTime=0,G.last=E,G.tail=v,G.tailMode=P,G.treeForkCount=I)}function fge(h,m,v){var E=m.pendingProps,P=E.revealOrder,I=E.tail;E=E.children;var G=gn.current,re=(G&2)!==0;if(re?(G=G&1|2,m.flags|=128):G&=1,B(gn,G),_o(h,m,E,v),E=Jt?mv:0,!re&&h!==null&&(h.flags&128)!==0)e:for(h=m.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&hge(h,v,m);else if(h.tag===19)hge(h,v,m);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===m)break e;for(;h.sibling===null;){if(h.return===null||h.return===m)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(P){case"forwards":for(v=m.child,P=null;v!==null;)h=v.alternate,h!==null&&i6(h)===null&&(P=v),v=v.sibling;v=P,v===null?(P=m.child,m.child=null):(P=v.sibling,v.sibling=null),zM(m,!1,P,v,I,E);break;case"backwards":case"unstable_legacy-backwards":for(v=null,P=m.child,m.child=null;P!==null;){if(h=P.alternate,h!==null&&i6(h)===null){m.child=P;break}h=P.sibling,P.sibling=v,v=P,P=h}zM(m,!0,v,null,I,E);break;case"together":zM(m,!1,null,null,void 0,E);break;default:m.memoizedState=null}return m.child}function qc(h,m,v){if(h!==null&&(m.dependencies=h.dependencies),yd|=m.lanes,(v&m.childLanes)===0)if(h!==null){if(r1(h,m,v,!1),(v&m.childLanes)===0)return null}else return null;if(h!==null&&m.child!==h.child)throw Error(o(153));if(m.child!==null){for(h=m.child,v=zc(h,h.pendingProps),m.child=v,v.return=m;h.sibling!==null;)h=h.sibling,v=v.sibling=zc(h,h.pendingProps),v.return=m;v.sibling=null}return m.child}function LM(h,m){return(h.lanes&m)!==0?!0:(h=h.dependencies,!!(h!==null&&Qk(h)))}function Ukt(h,m,v){switch(m.tag){case 3:te(m,m.stateNode.containerInfo),cd(m,Bn,h.memoizedState.cache),xh();break;case 27:case 5:pe(m);break;case 4:te(m,m.stateNode.containerInfo);break;case 10:cd(m,m.type,m.memoizedProps.value);break;case 31:if(m.memoizedState!==null)return m.flags|=128,cM(m),null;break;case 13:var E=m.memoizedState;if(E!==null)return E.dehydrated!==null?(hd(m),m.flags|=128,null):(v&m.child.childLanes)!==0?pge(h,m,v):(hd(m),h=qc(h,m,v),h!==null?h.sibling:null);hd(m);break;case 19:var P=(h.flags&128)!==0;if(E=(v&m.childLanes)!==0,E||(r1(h,m,v,!1),E=(v&m.childLanes)!==0),P){if(E)return fge(h,m,v);m.flags|=128}if(P=m.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),B(gn,gn.current),E)break;return null;case 22:return m.lanes=0,ige(h,m,v,m.pendingProps);case 24:cd(m,Bn,h.memoizedState.cache)}return qc(h,m,v)}function mge(h,m,v){if(h!==null)if(h.memoizedProps!==m.pendingProps)Fn=!0;else{if(!LM(h,v)&&(m.flags&128)===0)return Fn=!1,Ukt(h,m,v);Fn=(h.flags&131072)!==0}else Fn=!1,Jt&&(m.flags&1048576)!==0&&Wfe(m,mv,m.index);switch(m.lanes=0,m.tag){case 16:e:{var E=m.pendingProps;if(h=Eh(m.elementType),m.type=h,typeof h=="function")q$(h)?(E=Rh(h,E),m.tag=1,m=uge(null,m,h,E,v)):(m.tag=0,m=DM(null,m,h,E,v));else{if(h!=null){var P=h.$$typeof;if(P===T){m.tag=11,m=nge(null,m,h,E,v);break e}else if(P===D){m.tag=14,m=oge(null,m,h,E,v);break e}}throw m=M(h)||h,Error(o(306,m,""))}}return m;case 0:return DM(h,m,m.type,m.pendingProps,v);case 1:return E=m.type,P=Rh(E,m.pendingProps),uge(h,m,E,P,v);case 3:e:{if(te(m,m.stateNode.containerInfo),h===null)throw Error(o(387));E=m.pendingProps;var I=m.memoizedState;P=I.element,oM(h,m),_v(m,E,null,v);var G=m.memoizedState;if(E=G.cache,cd(m,Bn,E),E!==I.cache&&Q$(m,[Bn],v,!0),kv(),E=G.element,I.isDehydrated)if(I={element:E,isDehydrated:!1,cache:G.cache},m.updateQueue.baseState=I,m.memoizedState=I,m.flags&256){m=dge(h,m,E,v);break e}else if(E!==P){P=Mi(Error(o(424)),m),gv(P),m=dge(h,m,E,v);break e}else{switch(h=m.stateNode.containerInfo,h.nodeType){case 9:h=h.body;break;default:h=h.nodeName==="HTML"?h.ownerDocument.body:h}for(Lr=Bi(h.firstChild),wo=m,Jt=!0,ld=null,zi=!0,v=ime(m,null,E,v),m.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(xh(),E===P){m=qc(h,m,v);break e}_o(h,m,E,v)}m=m.child}return m;case 26:return y6(h,m),h===null?(v=C1e(m.type,null,m.pendingProps,null))?m.memoizedState=v:Jt||(v=m.type,h=m.pendingProps,E=M6(J.current).createElement(v),E[mn]=m,E[co]=h,Eo(E,v,h),ln(E),m.stateNode=E):m.memoizedState=C1e(m.type,h.memoizedProps,m.pendingProps,h.memoizedState),null;case 27:return pe(m),h===null&&Jt&&(E=m.stateNode=_1e(m.type,m.pendingProps,J.current),wo=m,zi=!0,P=Lr,kd(m.type)?(yO=P,Lr=Bi(E.firstChild)):Lr=P),_o(h,m,m.pendingProps.children,v),y6(h,m),h===null&&(m.flags|=4194304),m.child;case 5:return h===null&&Jt&&((P=E=Lr)&&(E=x6t(E,m.type,m.pendingProps,zi),E!==null?(m.stateNode=E,wo=m,Lr=Bi(E.firstChild),zi=!1,P=!0):P=!1),P||sd(m)),pe(m),P=m.type,I=m.pendingProps,G=h!==null?h.memoizedProps:null,E=I.children,pO(P,I)?E=null:G!==null&&pO(P,G)&&(m.flags|=32),m.memoizedState!==null&&(P=dM(h,m,Okt,null,null,v),qv._currentValue=P),y6(h,m),_o(h,m,E,v),m.child;case 6:return h===null&&Jt&&((h=v=Lr)&&(v=w6t(v,m.pendingProps,zi),v!==null?(m.stateNode=v,wo=m,Lr=null,h=!0):h=!1),h||sd(m)),null;case 13:return pge(h,m,v);case 4:return te(m,m.stateNode.containerInfo),E=m.pendingProps,h===null?m.child=Ch(m,null,E,v):_o(h,m,E,v),m.child;case 11:return nge(h,m,m.type,m.pendingProps,v);case 7:return _o(h,m,m.pendingProps,v),m.child;case 8:return _o(h,m,m.pendingProps.children,v),m.child;case 12:return _o(h,m,m.pendingProps.children,v),m.child;case 10:return E=m.pendingProps,cd(m,m.type,E.value),_o(h,m,E.children,v),m.child;case 9:return P=m.type._context,E=m.pendingProps.children,kh(m),P=ko(P),E=E(P),m.flags|=1,_o(h,m,E,v),m.child;case 14:return oge(h,m,m.type,m.pendingProps,v);case 15:return age(h,m,m.type,m.pendingProps,v);case 19:return fge(h,m,v);case 31:return qkt(h,m,v);case 22:return ige(h,m,v,m.pendingProps);case 24:return kh(m),E=ko(Bn),h===null?(P=tM(),P===null&&(P=Cr,I=J$(),P.pooledCache=I,I.refCount++,I!==null&&(P.pooledCacheLanes|=v),P=I),m.memoizedState={parent:E,cache:P},nM(m),cd(m,Bn,P)):((h.lanes&v)!==0&&(oM(h,m),_v(m,null,null,v),kv()),P=h.memoizedState,I=m.memoizedState,P.parent!==E?(P={parent:E,cache:E},m.memoizedState=P,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=P),cd(m,Bn,E)):(E=I.cache,cd(m,Bn,E),E!==P.cache&&Q$(m,[Bn],v,!0))),_o(h,m,m.pendingProps.children,v),m.child;case 29:throw m.pendingProps}throw Error(o(156,m.tag))}function Uc(h){h.flags|=4}function BM(h,m,v,E,P){if((m=(h.mode&32)!==0)&&(m=!1),m){if(h.flags|=16777216,(P&335544128)===P)if(h.stateNode.complete)h.flags|=8192;else if(Hge())h.flags|=8192;else throw Sh=r6,rM}else h.flags&=-16777217}function gge(h,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!D1e(m))if(Hge())h.flags|=8192;else throw Sh=r6,rM}function v6(h,m){m!==null&&(h.flags|=4),h.flags&16384&&(m=h.tag!==22?Dg():536870912,h.lanes|=m,f1|=m)}function Av(h,m){if(!Jt)switch(h.tailMode){case"hidden":m=h.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?h.tail=null:v.sibling=null;break;case"collapsed":v=h.tail;for(var E=null;v!==null;)v.alternate!==null&&(E=v),v=v.sibling;E===null?m||h.tail===null?h.tail=null:h.tail.sibling=null:E.sibling=null}}function Br(h){var m=h.alternate!==null&&h.alternate.child===h.child,v=0,E=0;if(m)for(var P=h.child;P!==null;)v|=P.lanes|P.childLanes,E|=P.subtreeFlags&65011712,E|=P.flags&65011712,P.return=h,P=P.sibling;else for(P=h.child;P!==null;)v|=P.lanes|P.childLanes,E|=P.subtreeFlags,E|=P.flags,P.return=h,P=P.sibling;return h.subtreeFlags|=E,h.childLanes=v,m}function Vkt(h,m,v){var E=m.pendingProps;switch(W$(m),m.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Br(m),null;case 1:return Br(m),null;case 3:return v=m.stateNode,E=null,h!==null&&(E=h.memoizedState.cache),m.memoizedState.cache!==E&&(m.flags|=2048),jc(Bn),ee(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(h===null||h.child===null)&&(t1(m)?Uc(m):h===null||h.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,X$())),Br(m),null;case 26:var P=m.type,I=m.memoizedState;return h===null?(Uc(m),I!==null?(Br(m),gge(m,I)):(Br(m),BM(m,P,null,E,v))):I?I!==h.memoizedState?(Uc(m),Br(m),gge(m,I)):(Br(m),m.flags&=-16777217):(h=h.memoizedProps,h!==E&&Uc(m),Br(m),BM(m,P,h,E,v)),null;case 27:if(Te(m),v=J.current,P=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==E&&Uc(m);else{if(!E){if(m.stateNode===null)throw Error(o(166));return Br(m),null}h=W.current,t1(m)?Xfe(m):(h=_1e(P,E,v),m.stateNode=h,Uc(m))}return Br(m),null;case 5:if(Te(m),P=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==E&&Uc(m);else{if(!E){if(m.stateNode===null)throw Error(o(166));return Br(m),null}if(I=W.current,t1(m))Xfe(m);else{var G=M6(J.current);switch(I){case 1:I=G.createElementNS("http://www.w3.org/2000/svg",P);break;case 2:I=G.createElementNS("http://www.w3.org/1998/Math/MathML",P);break;default:switch(P){case"svg":I=G.createElementNS("http://www.w3.org/2000/svg",P);break;case"math":I=G.createElementNS("http://www.w3.org/1998/Math/MathML",P);break;case"script":I=G.createElement("div"),I.innerHTML="<script><\/script>",I=I.removeChild(I.firstChild);break;case"select":I=typeof E.is=="string"?G.createElement("select",{is:E.is}):G.createElement("select"),E.multiple?I.multiple=!0:E.size&&(I.size=E.size);break;default:I=typeof E.is=="string"?G.createElement(P,{is:E.is}):G.createElement(P)}}I[mn]=m,I[co]=E;e:for(G=m.child;G!==null;){if(G.tag===5||G.tag===6)I.appendChild(G.stateNode);else if(G.tag!==4&&G.tag!==27&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===m)break e;for(;G.sibling===null;){if(G.return===null||G.return===m)break e;G=G.return}G.sibling.return=G.return,G=G.sibling}m.stateNode=I;e:switch(Eo(I,P,E),P){case"button":case"input":case"select":case"textarea":E=!!E.autoFocus;break e;case"img":E=!0;break e;default:E=!1}E&&Uc(m)}}return Br(m),BM(m,m.type,h===null?null:h.memoizedProps,m.pendingProps,v),null;case 6:if(h&&m.stateNode!=null)h.memoizedProps!==E&&Uc(m);else{if(typeof E!="string"&&m.stateNode===null)throw Error(o(166));if(h=J.current,t1(m)){if(h=m.stateNode,v=m.memoizedProps,E=null,P=wo,P!==null)switch(P.tag){case 27:case 5:E=P.memoizedProps}h[mn]=m,h=!!(h.nodeValue===v||E!==null&&E.suppressHydrationWarning===!0||p1e(h.nodeValue,v)),h||sd(m,!0)}else h=M6(h).createTextNode(E),h[mn]=m,m.stateNode=h}return Br(m),null;case 31:if(v=m.memoizedState,h===null||h.memoizedState!==null){if(E=t1(m),v!==null){if(h===null){if(!E)throw Error(o(318));if(h=m.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(557));h[mn]=m}else xh(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Br(m),h=!1}else v=X$(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=v),h=!0;if(!h)return m.flags&256?(Xa(m),m):(Xa(m),null);if((m.flags&128)!==0)throw Error(o(558))}return Br(m),null;case 13:if(E=m.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(P=t1(m),E!==null&&E.dehydrated!==null){if(h===null){if(!P)throw Error(o(318));if(P=m.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(o(317));P[mn]=m}else xh(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Br(m),P=!1}else P=X$(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=P),P=!0;if(!P)return m.flags&256?(Xa(m),m):(Xa(m),null)}return Xa(m),(m.flags&128)!==0?(m.lanes=v,m):(v=E!==null,h=h!==null&&h.memoizedState!==null,v&&(E=m.child,P=null,E.alternate!==null&&E.alternate.memoizedState!==null&&E.alternate.memoizedState.cachePool!==null&&(P=E.alternate.memoizedState.cachePool.pool),I=null,E.memoizedState!==null&&E.memoizedState.cachePool!==null&&(I=E.memoizedState.cachePool.pool),I!==P&&(E.flags|=2048)),v!==h&&v&&(m.child.flags|=8192),v6(m,m.updateQueue),Br(m),null);case 4:return ee(),h===null&&lO(m.stateNode.containerInfo),Br(m),null;case 10:return jc(m.type),Br(m),null;case 19:if(Z(gn),E=m.memoizedState,E===null)return Br(m),null;if(P=(m.flags&128)!==0,I=E.rendering,I===null)if(P)Av(E,!1);else{if(cn!==0||h!==null&&(h.flags&128)!==0)for(h=m.child;h!==null;){if(I=i6(h),I!==null){for(m.flags|=128,Av(E,!1),h=I.updateQueue,m.updateQueue=h,v6(m,h),m.subtreeFlags=0,h=v,v=m.child;v!==null;)Ufe(v,h),v=v.sibling;return B(gn,gn.current&1|2),Jt&&Lc(m,E.treeForkCount),m.child}h=h.sibling}E.tail!==null&&ct()>E6&&(m.flags|=128,P=!0,Av(E,!1),m.lanes=4194304)}else{if(!P)if(h=i6(I),h!==null){if(m.flags|=128,P=!0,h=h.updateQueue,m.updateQueue=h,v6(m,h),Av(E,!0),E.tail===null&&E.tailMode==="hidden"&&!I.alternate&&!Jt)return Br(m),null}else 2*ct()-E.renderingStartTime>E6&&v!==536870912&&(m.flags|=128,P=!0,Av(E,!1),m.lanes=4194304);E.isBackwards?(I.sibling=m.child,m.child=I):(h=E.last,h!==null?h.sibling=I:m.child=I,E.last=I)}return E.tail!==null?(h=E.tail,E.rendering=h,E.tail=h.sibling,E.renderingStartTime=ct(),h.sibling=null,v=gn.current,B(gn,P?v&1|2:v&1),Jt&&Lc(m,E.treeForkCount),h):(Br(m),null);case 22:case 23:return Xa(m),sM(),E=m.memoizedState!==null,h!==null?h.memoizedState!==null!==E&&(m.flags|=8192):E&&(m.flags|=8192),E?(v&536870912)!==0&&(m.flags&128)===0&&(Br(m),m.subtreeFlags&6&&(m.flags|=8192)):Br(m),v=m.updateQueue,v!==null&&v6(m,v.retryQueue),v=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),E=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),E!==v&&(m.flags|=2048),h!==null&&Z(_h),null;case 24:return v=null,h!==null&&(v=h.memoizedState.cache),m.memoizedState.cache!==v&&(m.flags|=2048),jc(Bn),Br(m),null;case 25:return null;case 30:return null}throw Error(o(156,m.tag))}function Ykt(h,m){switch(W$(m),m.tag){case 1:return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 3:return jc(Bn),ee(),h=m.flags,(h&65536)!==0&&(h&128)===0?(m.flags=h&-65537|128,m):null;case 26:case 27:case 5:return Te(m),null;case 31:if(m.memoizedState!==null){if(Xa(m),m.alternate===null)throw Error(o(340));xh()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 13:if(Xa(m),h=m.memoizedState,h!==null&&h.dehydrated!==null){if(m.alternate===null)throw Error(o(340));xh()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 19:return Z(gn),null;case 4:return ee(),null;case 10:return jc(m.type),null;case 22:case 23:return Xa(m),sM(),h!==null&&Z(_h),h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 24:return jc(Bn),null;case 25:return null;default:return null}}function yge(h,m){switch(W$(m),m.tag){case 3:jc(Bn),ee();break;case 26:case 27:case 5:Te(m);break;case 4:ee();break;case 31:m.memoizedState!==null&&Xa(m);break;case 13:Xa(m);break;case 19:Z(gn);break;case 10:jc(m.type);break;case 22:case 23:Xa(m),sM(),h!==null&&Z(_h);break;case 24:jc(Bn)}}function Nv(h,m){try{var v=m.updateQueue,E=v!==null?v.lastEffect:null;if(E!==null){var P=E.next;v=P;do{if((v.tag&h)===h){E=void 0;var I=v.create,G=v.inst;E=I(),G.destroy=E}v=v.next}while(v!==P)}}catch(re){mr(m,m.return,re)}}function md(h,m,v){try{var E=m.updateQueue,P=E!==null?E.lastEffect:null;if(P!==null){var I=P.next;E=I;do{if((E.tag&h)===h){var G=E.inst,re=G.destroy;if(re!==void 0){G.destroy=void 0,P=m;var se=v,ye=re;try{ye()}catch(Ce){mr(P,se,Ce)}}}E=E.next}while(E!==I)}}catch(Ce){mr(m,m.return,Ce)}}function bge(h){var m=h.updateQueue;if(m!==null){var v=h.stateNode;try{sme(m,v)}catch(E){mr(h,h.return,E)}}}function vge(h,m,v){v.props=Rh(h.type,h.memoizedProps),v.state=h.memoizedState;try{v.componentWillUnmount()}catch(E){mr(h,m,E)}}function Dv(h,m){try{var v=h.ref;if(v!==null){switch(h.tag){case 26:case 27:case 5:var E=h.stateNode;break;case 30:E=h.stateNode;break;default:E=h.stateNode}typeof v=="function"?h.refCleanup=v(E):v.current=E}}catch(P){mr(h,m,P)}}function Ps(h,m){var v=h.ref,E=h.refCleanup;if(v!==null)if(typeof E=="function")try{E()}catch(P){mr(h,m,P)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(P){mr(h,m,P)}else v.current=null}function xge(h){var m=h.type,v=h.memoizedProps,E=h.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":v.autoFocus&&E.focus();break e;case"img":v.src?E.src=v.src:v.srcSet&&(E.srcset=v.srcSet)}}catch(P){mr(h,h.return,P)}}function jM(h,m,v){try{var E=h.stateNode;f6t(E,h.type,v,m),E[co]=m}catch(P){mr(h,h.return,P)}}function wge(h){return h.tag===5||h.tag===3||h.tag===26||h.tag===27&&kd(h.type)||h.tag===4}function FM(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||wge(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.tag===27&&kd(h.type)||h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function HM(h,m,v){var E=h.tag;if(E===5||E===6)h=h.stateNode,m?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(h,m):(m=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,m.appendChild(h),v=v._reactRootContainer,v!=null||m.onclick!==null||(m.onclick=Oc));else if(E!==4&&(E===27&&kd(h.type)&&(v=h.stateNode,m=null),h=h.child,h!==null))for(HM(h,m,v),h=h.sibling;h!==null;)HM(h,m,v),h=h.sibling}function x6(h,m,v){var E=h.tag;if(E===5||E===6)h=h.stateNode,m?v.insertBefore(h,m):v.appendChild(h);else if(E!==4&&(E===27&&kd(h.type)&&(v=h.stateNode),h=h.child,h!==null))for(x6(h,m,v),h=h.sibling;h!==null;)x6(h,m,v),h=h.sibling}function kge(h){var m=h.stateNode,v=h.memoizedProps;try{for(var E=h.type,P=m.attributes;P.length;)m.removeAttributeNode(P[0]);Eo(m,E,v),m[mn]=h,m[co]=v}catch(I){mr(h,h.return,I)}}var Vc=!1,Hn=!1,qM=!1,_ge=typeof WeakSet=="function"?WeakSet:Set,uo=null;function Wkt(h,m){if(h=h.containerInfo,uO=F6,h=Ofe(h),I$(h)){if("selectionStart"in h)var v={start:h.selectionStart,end:h.selectionEnd};else e:{v=(v=h.ownerDocument)&&v.defaultView||window;var E=v.getSelection&&v.getSelection();if(E&&E.rangeCount!==0){v=E.anchorNode;var P=E.anchorOffset,I=E.focusNode;E=E.focusOffset;try{v.nodeType,I.nodeType}catch{v=null;break e}var G=0,re=-1,se=-1,ye=0,Ce=0,Ne=h,be=null;t:for(;;){for(var ke;Ne!==v||P!==0&&Ne.nodeType!==3||(re=G+P),Ne!==I||E!==0&&Ne.nodeType!==3||(se=G+E),Ne.nodeType===3&&(G+=Ne.nodeValue.length),(ke=Ne.firstChild)!==null;)be=Ne,Ne=ke;for(;;){if(Ne===h)break t;if(be===v&&++ye===P&&(re=G),be===I&&++Ce===E&&(se=G),(ke=Ne.nextSibling)!==null)break;Ne=be,be=Ne.parentNode}Ne=ke}v=re===-1||se===-1?null:{start:re,end:se}}else v=null}v=v||{start:0,end:0}}else v=null;for(dO={focusedElem:h,selectionRange:v},F6=!1,uo=m;uo!==null;)if(m=uo,h=m.child,(m.subtreeFlags&1028)!==0&&h!==null)h.return=m,uo=h;else for(;uo!==null;){switch(m=uo,I=m.alternate,h=m.flags,m.tag){case 0:if((h&4)!==0&&(h=m.updateQueue,h=h!==null?h.events:null,h!==null))for(v=0;v<h.length;v++)P=h[v],P.ref.impl=P.nextImpl;break;case 11:case 15:break;case 1:if((h&1024)!==0&&I!==null){h=void 0,v=m,P=I.memoizedProps,I=I.memoizedState,E=v.stateNode;try{var rt=Rh(v.type,P);h=E.getSnapshotBeforeUpdate(rt,I),E.__reactInternalSnapshotBeforeUpdate=h}catch(yt){mr(v,v.return,yt)}}break;case 3:if((h&1024)!==0){if(h=m.stateNode.containerInfo,v=h.nodeType,v===9)fO(h);else if(v===1)switch(h.nodeName){case"HEAD":case"HTML":case"BODY":fO(h);break;default:h.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&1024)!==0)throw Error(o(163))}if(h=m.sibling,h!==null){h.return=m.return,uo=h;break}uo=m.return}}function Ege(h,m,v){var E=v.flags;switch(v.tag){case 0:case 11:case 15:Wc(h,v),E&4&&Nv(5,v);break;case 1:if(Wc(h,v),E&4)if(h=v.stateNode,m===null)try{h.componentDidMount()}catch(G){mr(v,v.return,G)}else{var P=Rh(v.type,m.memoizedProps);m=m.memoizedState;try{h.componentDidUpdate(P,m,h.__reactInternalSnapshotBeforeUpdate)}catch(G){mr(v,v.return,G)}}E&64&&bge(v),E&512&&Dv(v,v.return);break;case 3:if(Wc(h,v),E&64&&(h=v.updateQueue,h!==null)){if(m=null,v.child!==null)switch(v.child.tag){case 27:case 5:m=v.child.stateNode;break;case 1:m=v.child.stateNode}try{sme(h,m)}catch(G){mr(v,v.return,G)}}break;case 27:m===null&&E&4&&kge(v);case 26:case 5:Wc(h,v),m===null&&E&4&&xge(v),E&512&&Dv(v,v.return);break;case 12:Wc(h,v);break;case 31:Wc(h,v),E&4&&Tge(h,v);break;case 13:Wc(h,v),E&4&&Rge(h,v),E&64&&(h=v.memoizedState,h!==null&&(h=h.dehydrated,h!==null&&(v=r6t.bind(null,v),k6t(h,v))));break;case 22:if(E=v.memoizedState!==null||Vc,!E){m=m!==null&&m.memoizedState!==null||Hn,P=Vc;var I=Hn;Vc=E,(Hn=m)&&!I?Gc(h,v,(v.subtreeFlags&8772)!==0):Wc(h,v),Vc=P,Hn=I}break;case 30:break;default:Wc(h,v)}}function Sge(h){var m=h.alternate;m!==null&&(h.alternate=null,Sge(m)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(m=h.stateNode,m!==null&&hh(m)),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}var Yr=null,ma=!1;function Yc(h,m,v){for(v=v.child;v!==null;)Cge(h,m,v),v=v.sibling}function Cge(h,m,v){if(Pr&&typeof Pr.onCommitFiberUnmount=="function")try{Pr.onCommitFiberUnmount(Sr,v)}catch{}switch(v.tag){case 26:Hn||Ps(v,m),Yc(h,m,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:Hn||Ps(v,m);var E=Yr,P=ma;kd(v.type)&&(Yr=v.stateNode,ma=!1),Yc(h,m,v),jv(v.stateNode),Yr=E,ma=P;break;case 5:Hn||Ps(v,m);case 6:if(E=Yr,P=ma,Yr=null,Yc(h,m,v),Yr=E,ma=P,Yr!==null)if(ma)try{(Yr.nodeType===9?Yr.body:Yr.nodeName==="HTML"?Yr.ownerDocument.body:Yr).removeChild(v.stateNode)}catch(I){mr(v,m,I)}else try{Yr.removeChild(v.stateNode)}catch(I){mr(v,m,I)}break;case 18:Yr!==null&&(ma?(h=Yr,b1e(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,v.stateNode),k1(h)):b1e(Yr,v.stateNode));break;case 4:E=Yr,P=ma,Yr=v.stateNode.containerInfo,ma=!0,Yc(h,m,v),Yr=E,ma=P;break;case 0:case 11:case 14:case 15:md(2,v,m),Hn||md(4,v,m),Yc(h,m,v);break;case 1:Hn||(Ps(v,m),E=v.stateNode,typeof E.componentWillUnmount=="function"&&vge(v,m,E)),Yc(h,m,v);break;case 21:Yc(h,m,v);break;case 22:Hn=(E=Hn)||v.memoizedState!==null,Yc(h,m,v),Hn=E;break;default:Yc(h,m,v)}}function Tge(h,m){if(m.memoizedState===null&&(h=m.alternate,h!==null&&(h=h.memoizedState,h!==null))){h=h.dehydrated;try{k1(h)}catch(v){mr(m,m.return,v)}}}function Rge(h,m){if(m.memoizedState===null&&(h=m.alternate,h!==null&&(h=h.memoizedState,h!==null&&(h=h.dehydrated,h!==null))))try{k1(h)}catch(v){mr(m,m.return,v)}}function Gkt(h){switch(h.tag){case 31:case 13:case 19:var m=h.stateNode;return m===null&&(m=h.stateNode=new _ge),m;case 22:return h=h.stateNode,m=h._retryCache,m===null&&(m=h._retryCache=new _ge),m;default:throw Error(o(435,h.tag))}}function w6(h,m){var v=Gkt(h);m.forEach(function(E){if(!v.has(E)){v.add(E);var P=n6t.bind(null,h,E);E.then(P,P)}})}function ga(h,m){var v=m.deletions;if(v!==null)for(var E=0;E<v.length;E++){var P=v[E],I=h,G=m,re=G;e:for(;re!==null;){switch(re.tag){case 27:if(kd(re.type)){Yr=re.stateNode,ma=!1;break e}break;case 5:Yr=re.stateNode,ma=!1;break e;case 3:case 4:Yr=re.stateNode.containerInfo,ma=!0;break e}re=re.return}if(Yr===null)throw Error(o(160));Cge(I,G,P),Yr=null,ma=!1,I=P.alternate,I!==null&&(I.return=null),P.return=null}if(m.subtreeFlags&13886)for(m=m.child;m!==null;)Age(m,h),m=m.sibling}var Vl=null;function Age(h,m){var v=h.alternate,E=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:ga(m,h),ya(h),E&4&&(md(3,h,h.return),Nv(3,h),md(5,h,h.return));break;case 1:ga(m,h),ya(h),E&512&&(Hn||v===null||Ps(v,v.return)),E&64&&Vc&&(h=h.updateQueue,h!==null&&(E=h.callbacks,E!==null&&(v=h.shared.hiddenCallbacks,h.shared.hiddenCallbacks=v===null?E:v.concat(E))));break;case 26:var P=Vl;if(ga(m,h),ya(h),E&512&&(Hn||v===null||Ps(v,v.return)),E&4){var I=v!==null?v.memoizedState:null;if(E=h.memoizedState,v===null)if(E===null)if(h.stateNode===null){e:{E=h.type,v=h.memoizedProps,P=P.ownerDocument||P;t:switch(E){case"title":I=P.getElementsByTagName("title")[0],(!I||I[Pc]||I[mn]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=P.createElement(E),P.head.insertBefore(I,P.querySelector("head > title"))),Eo(I,E,v),I[mn]=h,ln(I),E=I;break e;case"link":var G=A1e("link","href",P).get(E+(v.href||""));if(G){for(var re=0;re<G.length;re++)if(I=G[re],I.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&I.getAttribute("rel")===(v.rel==null?null:v.rel)&&I.getAttribute("title")===(v.title==null?null:v.title)&&I.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){G.splice(re,1);break t}}I=P.createElement(E),Eo(I,E,v),P.head.appendChild(I);break;case"meta":if(G=A1e("meta","content",P).get(E+(v.content||""))){for(re=0;re<G.length;re++)if(I=G[re],I.getAttribute("content")===(v.content==null?null:""+v.content)&&I.getAttribute("name")===(v.name==null?null:v.name)&&I.getAttribute("property")===(v.property==null?null:v.property)&&I.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&I.getAttribute("charset")===(v.charSet==null?null:v.charSet)){G.splice(re,1);break t}}I=P.createElement(E),Eo(I,E,v),P.head.appendChild(I);break;default:throw Error(o(468,E))}I[mn]=h,ln(I),E=I}h.stateNode=E}else N1e(P,h.type,h.stateNode);else h.stateNode=R1e(P,E,h.memoizedProps);else I!==E?(I===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):I.count--,E===null?N1e(P,h.type,h.stateNode):R1e(P,E,h.memoizedProps)):E===null&&h.stateNode!==null&&jM(h,h.memoizedProps,v.memoizedProps)}break;case 27:ga(m,h),ya(h),E&512&&(Hn||v===null||Ps(v,v.return)),v!==null&&E&4&&jM(h,h.memoizedProps,v.memoizedProps);break;case 5:if(ga(m,h),ya(h),E&512&&(Hn||v===null||Ps(v,v.return)),h.flags&32){P=h.stateNode;try{Vg(P,"")}catch(rt){mr(h,h.return,rt)}}E&4&&h.stateNode!=null&&(P=h.memoizedProps,jM(h,P,v!==null?v.memoizedProps:P)),E&1024&&(qM=!0);break;case 6:if(ga(m,h),ya(h),E&4){if(h.stateNode===null)throw Error(o(162));E=h.memoizedProps,v=h.stateNode;try{v.nodeValue=E}catch(rt){mr(h,h.return,rt)}}break;case 3:if(z6=null,P=Vl,Vl=O6(m.containerInfo),ga(m,h),Vl=P,ya(h),E&4&&v!==null&&v.memoizedState.isDehydrated)try{k1(m.containerInfo)}catch(rt){mr(h,h.return,rt)}qM&&(qM=!1,Nge(h));break;case 4:E=Vl,Vl=O6(h.stateNode.containerInfo),ga(m,h),ya(h),Vl=E;break;case 12:ga(m,h),ya(h);break;case 31:ga(m,h),ya(h),E&4&&(E=h.updateQueue,E!==null&&(h.updateQueue=null,w6(h,E)));break;case 13:ga(m,h),ya(h),h.child.flags&8192&&h.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(_6=ct()),E&4&&(E=h.updateQueue,E!==null&&(h.updateQueue=null,w6(h,E)));break;case 22:P=h.memoizedState!==null;var se=v!==null&&v.memoizedState!==null,ye=Vc,Ce=Hn;if(Vc=ye||P,Hn=Ce||se,ga(m,h),Hn=Ce,Vc=ye,ya(h),E&8192)e:for(m=h.stateNode,m._visibility=P?m._visibility&-2:m._visibility|1,P&&(v===null||se||Vc||Hn||Ah(h)),v=null,m=h;;){if(m.tag===5||m.tag===26){if(v===null){se=v=m;try{if(I=se.stateNode,P)G=I.style,typeof G.setProperty=="function"?G.setProperty("display","none","important"):G.display="none";else{re=se.stateNode;var Ne=se.memoizedProps.style,be=Ne!=null&&Ne.hasOwnProperty("display")?Ne.display:null;re.style.display=be==null||typeof be=="boolean"?"":(""+be).trim()}}catch(rt){mr(se,se.return,rt)}}}else if(m.tag===6){if(v===null){se=m;try{se.stateNode.nodeValue=P?"":se.memoizedProps}catch(rt){mr(se,se.return,rt)}}}else if(m.tag===18){if(v===null){se=m;try{var ke=se.stateNode;P?v1e(ke,!0):v1e(se.stateNode,!1)}catch(rt){mr(se,se.return,rt)}}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===h)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===h)break e;for(;m.sibling===null;){if(m.return===null||m.return===h)break e;v===m&&(v=null),m=m.return}v===m&&(v=null),m.sibling.return=m.return,m=m.sibling}E&4&&(E=h.updateQueue,E!==null&&(v=E.retryQueue,v!==null&&(E.retryQueue=null,w6(h,v))));break;case 19:ga(m,h),ya(h),E&4&&(E=h.updateQueue,E!==null&&(h.updateQueue=null,w6(h,E)));break;case 30:break;case 21:break;default:ga(m,h),ya(h)}}function ya(h){var m=h.flags;if(m&2){try{for(var v,E=h.return;E!==null;){if(wge(E)){v=E;break}E=E.return}if(v==null)throw Error(o(160));switch(v.tag){case 27:var P=v.stateNode,I=FM(h);x6(h,I,P);break;case 5:var G=v.stateNode;v.flags&32&&(Vg(G,""),v.flags&=-33);var re=FM(h);x6(h,re,G);break;case 3:case 4:var se=v.stateNode.containerInfo,ye=FM(h);HM(h,ye,se);break;default:throw Error(o(161))}}catch(Ce){mr(h,h.return,Ce)}h.flags&=-3}m&4096&&(h.flags&=-4097)}function Nge(h){if(h.subtreeFlags&1024)for(h=h.child;h!==null;){var m=h;Nge(m),m.tag===5&&m.flags&1024&&m.stateNode.reset(),h=h.sibling}}function Wc(h,m){if(m.subtreeFlags&8772)for(m=m.child;m!==null;)Ege(h,m.alternate,m),m=m.sibling}function Ah(h){for(h=h.child;h!==null;){var m=h;switch(m.tag){case 0:case 11:case 14:case 15:md(4,m,m.return),Ah(m);break;case 1:Ps(m,m.return);var v=m.stateNode;typeof v.componentWillUnmount=="function"&&vge(m,m.return,v),Ah(m);break;case 27:jv(m.stateNode);case 26:case 5:Ps(m,m.return),Ah(m);break;case 22:m.memoizedState===null&&Ah(m);break;case 30:Ah(m);break;default:Ah(m)}h=h.sibling}}function Gc(h,m,v){for(v=v&&(m.subtreeFlags&8772)!==0,m=m.child;m!==null;){var E=m.alternate,P=h,I=m,G=I.flags;switch(I.tag){case 0:case 11:case 15:Gc(P,I,v),Nv(4,I);break;case 1:if(Gc(P,I,v),E=I,P=E.stateNode,typeof P.componentDidMount=="function")try{P.componentDidMount()}catch(ye){mr(E,E.return,ye)}if(E=I,P=E.updateQueue,P!==null){var re=E.stateNode;try{var se=P.shared.hiddenCallbacks;if(se!==null)for(P.shared.hiddenCallbacks=null,P=0;P<se.length;P++)lme(se[P],re)}catch(ye){mr(E,E.return,ye)}}v&&G&64&&bge(I),Dv(I,I.return);break;case 27:kge(I);case 26:case 5:Gc(P,I,v),v&&E===null&&G&4&&xge(I),Dv(I,I.return);break;case 12:Gc(P,I,v);break;case 31:Gc(P,I,v),v&&G&4&&Tge(P,I);break;case 13:Gc(P,I,v),v&&G&4&&Rge(P,I);break;case 22:I.memoizedState===null&&Gc(P,I,v),Dv(I,I.return);break;case 30:break;default:Gc(P,I,v)}m=m.sibling}}function UM(h,m){var v=null;h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),h=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(h=m.memoizedState.cachePool.pool),h!==v&&(h!=null&&h.refCount++,v!=null&&yv(v))}function VM(h,m){h=null,m.alternate!==null&&(h=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==h&&(m.refCount++,h!=null&&yv(h))}function Yl(h,m,v,E){if(m.subtreeFlags&10256)for(m=m.child;m!==null;)Dge(h,m,v,E),m=m.sibling}function Dge(h,m,v,E){var P=m.flags;switch(m.tag){case 0:case 11:case 15:Yl(h,m,v,E),P&2048&&Nv(9,m);break;case 1:Yl(h,m,v,E);break;case 3:Yl(h,m,v,E),P&2048&&(h=null,m.alternate!==null&&(h=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==h&&(m.refCount++,h!=null&&yv(h)));break;case 12:if(P&2048){Yl(h,m,v,E),h=m.stateNode;try{var I=m.memoizedProps,G=I.id,re=I.onPostCommit;typeof re=="function"&&re(G,m.alternate===null?"mount":"update",h.passiveEffectDuration,-0)}catch(se){mr(m,m.return,se)}}else Yl(h,m,v,E);break;case 31:Yl(h,m,v,E);break;case 13:Yl(h,m,v,E);break;case 23:break;case 22:I=m.stateNode,G=m.alternate,m.memoizedState!==null?I._visibility&2?Yl(h,m,v,E):Pv(h,m):I._visibility&2?Yl(h,m,v,E):(I._visibility|=2,d1(h,m,v,E,(m.subtreeFlags&10256)!==0||!1)),P&2048&&UM(G,m);break;case 24:Yl(h,m,v,E),P&2048&&VM(m.alternate,m);break;default:Yl(h,m,v,E)}}function d1(h,m,v,E,P){for(P=P&&((m.subtreeFlags&10256)!==0||!1),m=m.child;m!==null;){var I=h,G=m,re=v,se=E,ye=G.flags;switch(G.tag){case 0:case 11:case 15:d1(I,G,re,se,P),Nv(8,G);break;case 23:break;case 22:var Ce=G.stateNode;G.memoizedState!==null?Ce._visibility&2?d1(I,G,re,se,P):Pv(I,G):(Ce._visibility|=2,d1(I,G,re,se,P)),P&&ye&2048&&UM(G.alternate,G);break;case 24:d1(I,G,re,se,P),P&&ye&2048&&VM(G.alternate,G);break;default:d1(I,G,re,se,P)}m=m.sibling}}function Pv(h,m){if(m.subtreeFlags&10256)for(m=m.child;m!==null;){var v=h,E=m,P=E.flags;switch(E.tag){case 22:Pv(v,E),P&2048&&UM(E.alternate,E);break;case 24:Pv(v,E),P&2048&&VM(E.alternate,E);break;default:Pv(v,E)}m=m.sibling}}var $v=8192;function p1(h,m,v){if(h.subtreeFlags&$v)for(h=h.child;h!==null;)Pge(h,m,v),h=h.sibling}function Pge(h,m,v){switch(h.tag){case 26:p1(h,m,v),h.flags&$v&&h.memoizedState!==null&&M6t(v,Vl,h.memoizedState,h.memoizedProps);break;case 5:p1(h,m,v);break;case 3:case 4:var E=Vl;Vl=O6(h.stateNode.containerInfo),p1(h,m,v),Vl=E;break;case 22:h.memoizedState===null&&(E=h.alternate,E!==null&&E.memoizedState!==null?(E=$v,$v=16777216,p1(h,m,v),$v=E):p1(h,m,v));break;default:p1(h,m,v)}}function $ge(h){var m=h.alternate;if(m!==null&&(h=m.child,h!==null)){m.child=null;do m=h.sibling,h.sibling=null,h=m;while(h!==null)}}function Mv(h){var m=h.deletions;if((h.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var E=m[v];uo=E,Oge(E,h)}$ge(h)}if(h.subtreeFlags&10256)for(h=h.child;h!==null;)Mge(h),h=h.sibling}function Mge(h){switch(h.tag){case 0:case 11:case 15:Mv(h),h.flags&2048&&md(9,h,h.return);break;case 3:Mv(h);break;case 12:Mv(h);break;case 22:var m=h.stateNode;h.memoizedState!==null&&m._visibility&2&&(h.return===null||h.return.tag!==13)?(m._visibility&=-3,k6(h)):Mv(h);break;default:Mv(h)}}function k6(h){var m=h.deletions;if((h.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var E=m[v];uo=E,Oge(E,h)}$ge(h)}for(h=h.child;h!==null;){switch(m=h,m.tag){case 0:case 11:case 15:md(8,m,m.return),k6(m);break;case 22:v=m.stateNode,v._visibility&2&&(v._visibility&=-3,k6(m));break;default:k6(m)}h=h.sibling}}function Oge(h,m){for(;uo!==null;){var v=uo;switch(v.tag){case 0:case 11:case 15:md(8,v,m);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var E=v.memoizedState.cachePool.pool;E!=null&&E.refCount++}break;case 24:yv(v.memoizedState.cache)}if(E=v.child,E!==null)E.return=v,uo=E;else e:for(v=h;uo!==null;){E=uo;var P=E.sibling,I=E.return;if(Sge(E),E===v){uo=null;break e}if(P!==null){P.return=I,uo=P;break e}uo=I}}}var Xkt={getCacheForType:function(h){var m=ko(Bn),v=m.data.get(h);return v===void 0&&(v=h(),m.data.set(h,v)),v},cacheSignal:function(){return ko(Bn).controller.signal}},Kkt=typeof WeakMap=="function"?WeakMap:Map,cr=0,Cr=null,Wt=null,Xt=0,fr=0,Ka=null,gd=!1,h1=!1,YM=!1,Xc=0,cn=0,yd=0,Nh=0,WM=0,Za=0,f1=0,Ov=null,ba=null,GM=!1,_6=0,Ige=0,E6=1/0,S6=null,bd=null,Wn=0,vd=null,m1=null,Kc=0,XM=0,KM=null,zge=null,Iv=0,ZM=null;function Qa(){return(cr&2)!==0&&Xt!==0?Xt&-Xt:z.T!==null?nO():Og()}function Lge(){if(Za===0)if((Xt&536870912)===0||Jt){var h=Qu;Qu<<=1,(Qu&3932160)===0&&(Qu=262144),Za=h}else Za=536870912;return h=Ga.current,h!==null&&(h.flags|=32),Za}function va(h,m,v){(h===Cr&&(fr===2||fr===9)||h.cancelPendingCommit!==null)&&(g1(h,0),xd(h,Xt,Za,!1)),Nc(h,v),((cr&2)===0||h!==Cr)&&(h===Cr&&((cr&2)===0&&(Nh|=v),cn===4&&xd(h,Xt,Za,!1)),$s(h))}function Bge(h,m,v){if((cr&6)!==0)throw Error(o(327));var E=!v&&(m&127)===0&&(m&h.expiredLanes)===0||Fl(h,m),P=E?Jkt(h,m):JM(h,m,!0),I=E;do{if(P===0){h1&&!E&&xd(h,m,0,!1);break}else{if(v=h.current.alternate,I&&!Zkt(v)){P=JM(h,m,!1),I=!1;continue}if(P===2){if(I=m,h.errorRecoveryDisabledLanes&I)var G=0;else G=h.pendingLanes&-536870913,G=G!==0?G:G&536870912?536870912:0;if(G!==0){m=G;e:{var re=h;P=Ov;var se=re.current.memoizedState.isDehydrated;if(se&&(g1(re,G).flags|=256),G=JM(re,G,!1),G!==2){if(YM&&!se){re.errorRecoveryDisabledLanes|=I,Nh|=I,P=4;break e}I=ba,ba=P,I!==null&&(ba===null?ba=I:ba.push.apply(ba,I))}P=G}if(I=!1,P!==2)continue}}if(P===1){g1(h,0),xd(h,m,0,!0);break}e:{switch(E=h,I=P,I){case 0:case 1:throw Error(o(345));case 4:if((m&4194048)!==m)break;case 6:xd(E,m,Za,!gd);break e;case 2:ba=null;break;case 3:case 5:break;default:throw Error(o(329))}if((m&62914560)===m&&(P=_6+300-ct(),10<P)){if(xd(E,m,Za,!gd),ed(E,0,!0)!==0)break e;Kc=m,E.timeoutHandle=g1e(jge.bind(null,E,v,ba,S6,GM,m,Za,Nh,f1,gd,I,"Throttled",-0,0),P);break e}jge(E,v,ba,S6,GM,m,Za,Nh,f1,gd,I,null,-0,0)}}break}while(!0);$s(h)}function jge(h,m,v,E,P,I,G,re,se,ye,Ce,Ne,be,ke){if(h.timeoutHandle=-1,Ne=m.subtreeFlags,Ne&8192||(Ne&16785408)===16785408){Ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Oc},Pge(m,I,Ne);var rt=(I&62914560)===I?_6-ct():(I&4194048)===I?Ige-ct():0;if(rt=O6t(Ne,rt),rt!==null){Kc=I,h.cancelPendingCommit=rt(Gge.bind(null,h,m,I,v,E,P,G,re,se,Ce,Ne,null,be,ke)),xd(h,I,G,!ye);return}}Gge(h,m,I,v,E,P,G,re,se)}function Zkt(h){for(var m=h;;){var v=m.tag;if((v===0||v===11||v===15)&&m.flags&16384&&(v=m.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var E=0;E<v.length;E++){var P=v[E],I=P.getSnapshot;P=P.value;try{if(!Ya(I(),P))return!1}catch{return!1}}if(v=m.child,m.subtreeFlags&16384&&v!==null)v.return=m,m=v;else{if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function xd(h,m,v,E){m&=~WM,m&=~Nh,h.suspendedLanes|=m,h.pingedLanes&=~m,E&&(h.warmLanes|=m),E=h.expirationTimes;for(var P=m;0<P;){var I=31-ar(P),G=1<<I;E[I]=-1,P&=~G}v!==0&&Pg(h,v,m)}function C6(){return(cr&6)===0?(zv(0),!1):!0}function QM(){if(Wt!==null){if(fr===0)var h=Wt.return;else h=Wt,Bc=wh=null,fM(h),i1=null,vv=0,h=Wt;for(;h!==null;)yge(h.alternate,h),h=h.return;Wt=null}}function g1(h,m){var v=h.timeoutHandle;v!==-1&&(h.timeoutHandle=-1,y6t(v)),v=h.cancelPendingCommit,v!==null&&(h.cancelPendingCommit=null,v()),Kc=0,QM(),Cr=h,Wt=v=zc(h.current,null),Xt=m,fr=0,Ka=null,gd=!1,h1=Fl(h,m),YM=!1,f1=Za=WM=Nh=yd=cn=0,ba=Ov=null,GM=!1,(m&8)!==0&&(m|=m&32);var E=h.entangledLanes;if(E!==0)for(h=h.entanglements,E&=m;0<E;){var P=31-ar(E),I=1<<P;m|=h[P],E&=~I}return Xc=m,Wk(),v}function Fge(h,m){Bt=null,z.H=Tv,m===a1||m===t6?(m=nme(),fr=3):m===rM?(m=nme(),fr=4):fr=m===NM?8:m!==null&&typeof m=="object"&&typeof m.then=="function"?6:1,Ka=m,Wt===null&&(cn=1,m6(h,Mi(m,h.current)))}function Hge(){var h=Ga.current;return h===null?!0:(Xt&4194048)===Xt?Li===null:(Xt&62914560)===Xt||(Xt&536870912)!==0?h===Li:!1}function qge(){var h=z.H;return z.H=Tv,h===null?Tv:h}function Uge(){var h=z.A;return z.A=Xkt,h}function T6(){cn=4,gd||(Xt&4194048)!==Xt&&Ga.current!==null||(h1=!0),(yd&134217727)===0&&(Nh&134217727)===0||Cr===null||xd(Cr,Xt,Za,!1)}function JM(h,m,v){var E=cr;cr|=2;var P=qge(),I=Uge();(Cr!==h||Xt!==m)&&(S6=null,g1(h,m)),m=!1;var G=cn;e:do try{if(fr!==0&&Wt!==null){var re=Wt,se=Ka;switch(fr){case 8:QM(),G=6;break e;case 3:case 2:case 9:case 6:Ga.current===null&&(m=!0);var ye=fr;if(fr=0,Ka=null,y1(h,re,se,ye),v&&h1){G=0;break e}break;default:ye=fr,fr=0,Ka=null,y1(h,re,se,ye)}}Qkt(),G=cn;break}catch(Ce){Fge(h,Ce)}while(!0);return m&&h.shellSuspendCounter++,Bc=wh=null,cr=E,z.H=P,z.A=I,Wt===null&&(Cr=null,Xt=0,Wk()),G}function Qkt(){for(;Wt!==null;)Vge(Wt)}function Jkt(h,m){var v=cr;cr|=2;var E=qge(),P=Uge();Cr!==h||Xt!==m?(S6=null,E6=ct()+500,g1(h,m)):h1=Fl(h,m);e:do try{if(fr!==0&&Wt!==null){m=Wt;var I=Ka;t:switch(fr){case 1:fr=0,Ka=null,y1(h,m,I,1);break;case 2:case 9:if(tme(I)){fr=0,Ka=null,Yge(m);break}m=function(){fr!==2&&fr!==9||Cr!==h||(fr=7),$s(h)},I.then(m,m);break e;case 3:fr=7;break e;case 4:fr=5;break e;case 7:tme(I)?(fr=0,Ka=null,Yge(m)):(fr=0,Ka=null,y1(h,m,I,7));break;case 5:var G=null;switch(Wt.tag){case 26:G=Wt.memoizedState;case 5:case 27:var re=Wt;if(G?D1e(G):re.stateNode.complete){fr=0,Ka=null;var se=re.sibling;if(se!==null)Wt=se;else{var ye=re.return;ye!==null?(Wt=ye,R6(ye)):Wt=null}break t}}fr=0,Ka=null,y1(h,m,I,5);break;case 6:fr=0,Ka=null,y1(h,m,I,6);break;case 8:QM(),cn=6;break e;default:throw Error(o(462))}}e6t();break}catch(Ce){Fge(h,Ce)}while(!0);return Bc=wh=null,z.H=E,z.A=P,cr=v,Wt!==null?0:(Cr=null,Xt=0,Wk(),cn)}function e6t(){for(;Wt!==null&&!We();)Vge(Wt)}function Vge(h){var m=mge(h.alternate,h,Xc);h.memoizedProps=h.pendingProps,m===null?R6(h):Wt=m}function Yge(h){var m=h,v=m.alternate;switch(m.tag){case 15:case 0:m=cge(v,m,m.pendingProps,m.type,void 0,Xt);break;case 11:m=cge(v,m,m.pendingProps,m.type.render,m.ref,Xt);break;case 5:fM(m);default:yge(v,m),m=Wt=Ufe(m,Xc),m=mge(v,m,Xc)}h.memoizedProps=h.pendingProps,m===null?R6(h):Wt=m}function y1(h,m,v,E){Bc=wh=null,fM(m),i1=null,vv=0;var P=m.return;try{if(Hkt(h,P,m,v,Xt)){cn=1,m6(h,Mi(v,h.current)),Wt=null;return}}catch(I){if(P!==null)throw Wt=P,I;cn=1,m6(h,Mi(v,h.current)),Wt=null;return}m.flags&32768?(Jt||E===1?h=!0:h1||(Xt&536870912)!==0?h=!1:(gd=h=!0,(E===2||E===9||E===3||E===6)&&(E=Ga.current,E!==null&&E.tag===13&&(E.flags|=16384))),Wge(m,h)):R6(m)}function R6(h){var m=h;do{if((m.flags&32768)!==0){Wge(m,gd);return}h=m.return;var v=Vkt(m.alternate,m,Xc);if(v!==null){Wt=v;return}if(m=m.sibling,m!==null){Wt=m;return}Wt=m=h}while(m!==null);cn===0&&(cn=5)}function Wge(h,m){do{var v=Ykt(h.alternate,h);if(v!==null){v.flags&=32767,Wt=v;return}if(v=h.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!m&&(h=h.sibling,h!==null)){Wt=h;return}Wt=h=v}while(h!==null);cn=6,Wt=null}function Gge(h,m,v,E,P,I,G,re,se){h.cancelPendingCommit=null;do A6();while(Wn!==0);if((cr&6)!==0)throw Error(o(327));if(m!==null){if(m===h.current)throw Error(o(177));if(I=m.lanes|m.childLanes,I|=F$,ev(h,v,I,G,re,se),h===Cr&&(Wt=Cr=null,Xt=0),m1=m,vd=h,Kc=v,XM=I,KM=P,zge=E,(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?(h.callbackNode=null,h.callbackPriority=0,o6t(at,function(){return Jge(),null})):(h.callbackNode=null,h.callbackPriority=0),E=(m.flags&13878)!==0,(m.subtreeFlags&13878)!==0||E){E=z.T,z.T=null,P=H.p,H.p=2,G=cr,cr|=4;try{Wkt(h,m,v)}finally{cr=G,H.p=P,z.T=E}}Wn=1,Xge(),Kge(),Zge()}}function Xge(){if(Wn===1){Wn=0;var h=vd,m=m1,v=(m.flags&13878)!==0;if((m.subtreeFlags&13878)!==0||v){v=z.T,z.T=null;var E=H.p;H.p=2;var P=cr;cr|=4;try{Age(m,h);var I=dO,G=Ofe(h.containerInfo),re=I.focusedElem,se=I.selectionRange;if(G!==re&&re&&re.ownerDocument&&Mfe(re.ownerDocument.documentElement,re)){if(se!==null&&I$(re)){var ye=se.start,Ce=se.end;if(Ce===void 0&&(Ce=ye),"selectionStart"in re)re.selectionStart=ye,re.selectionEnd=Math.min(Ce,re.value.length);else{var Ne=re.ownerDocument||document,be=Ne&&Ne.defaultView||window;if(be.getSelection){var ke=be.getSelection(),rt=re.textContent.length,yt=Math.min(se.start,rt),kr=se.end===void 0?yt:Math.min(se.end,rt);!ke.extend&&yt>kr&&(G=kr,kr=yt,yt=G);var he=$fe(re,yt),ue=$fe(re,kr);if(he&&ue&&(ke.rangeCount!==1||ke.anchorNode!==he.node||ke.anchorOffset!==he.offset||ke.focusNode!==ue.node||ke.focusOffset!==ue.offset)){var ge=Ne.createRange();ge.setStart(he.node,he.offset),ke.removeAllRanges(),yt>kr?(ke.addRange(ge),ke.extend(ue.node,ue.offset)):(ge.setEnd(ue.node,ue.offset),ke.addRange(ge))}}}}for(Ne=[],ke=re;ke=ke.parentNode;)ke.nodeType===1&&Ne.push({element:ke,left:ke.scrollLeft,top:ke.scrollTop});for(typeof re.focus=="function"&&re.focus(),re=0;re<Ne.length;re++){var Re=Ne[re];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}F6=!!uO,dO=uO=null}finally{cr=P,H.p=E,z.T=v}}h.current=m,Wn=2}}function Kge(){if(Wn===2){Wn=0;var h=vd,m=m1,v=(m.flags&8772)!==0;if((m.subtreeFlags&8772)!==0||v){v=z.T,z.T=null;var E=H.p;H.p=2;var P=cr;cr|=4;try{Ege(h,m.alternate,m)}finally{cr=P,H.p=E,z.T=v}}Wn=3}}function Zge(){if(Wn===4||Wn===3){Wn=0,st();var h=vd,m=m1,v=Kc,E=zge;(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?Wn=5:(Wn=0,m1=vd=null,Qge(h,h.pendingLanes));var P=h.pendingLanes;if(P===0&&(bd=null),dh(v),m=m.stateNode,Pr&&typeof Pr.onCommitFiberRoot=="function")try{Pr.onCommitFiberRoot(Sr,m,void 0,(m.current.flags&128)===128)}catch{}if(E!==null){m=z.T,P=H.p,H.p=2,z.T=null;try{for(var I=h.onRecoverableError,G=0;G<E.length;G++){var re=E[G];I(re.value,{componentStack:re.stack})}}finally{z.T=m,H.p=P}}(Kc&3)!==0&&A6(),$s(h),P=h.pendingLanes,(v&261930)!==0&&(P&42)!==0?h===ZM?Iv++:(Iv=0,ZM=h):Iv=0,zv(0)}}function Qge(h,m){(h.pooledCacheLanes&=m)===0&&(m=h.pooledCache,m!=null&&(h.pooledCache=null,yv(m)))}function A6(){return Xge(),Kge(),Zge(),Jge()}function Jge(){if(Wn!==5)return!1;var h=vd,m=XM;XM=0;var v=dh(Kc),E=z.T,P=H.p;try{H.p=32>v?32:v,z.T=null,v=KM,KM=null;var I=vd,G=Kc;if(Wn=0,m1=vd=null,Kc=0,(cr&6)!==0)throw Error(o(331));var re=cr;if(cr|=4,Mge(I.current),Dge(I,I.current,G,v),cr=re,zv(0,!1),Pr&&typeof Pr.onPostCommitFiberRoot=="function")try{Pr.onPostCommitFiberRoot(Sr,I)}catch{}return!0}finally{H.p=P,z.T=E,Qge(h,m)}}function e1e(h,m,v){m=Mi(v,m),m=AM(h.stateNode,m,2),h=pd(h,m,2),h!==null&&(Nc(h,2),$s(h))}function mr(h,m,v){if(h.tag===3)e1e(h,h,v);else for(;m!==null;){if(m.tag===3){e1e(m,h,v);break}else if(m.tag===1){var E=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof E.componentDidCatch=="function"&&(bd===null||!bd.has(E))){h=Mi(v,h),v=tge(2),E=pd(m,v,2),E!==null&&(rge(v,E,m,h),Nc(E,2),$s(E));break}}m=m.return}}function eO(h,m,v){var E=h.pingCache;if(E===null){E=h.pingCache=new Kkt;var P=new Set;E.set(m,P)}else P=E.get(m),P===void 0&&(P=new Set,E.set(m,P));P.has(v)||(YM=!0,P.add(v),h=t6t.bind(null,h,m,v),m.then(h,h))}function t6t(h,m,v){var E=h.pingCache;E!==null&&E.delete(m),h.pingedLanes|=h.suspendedLanes&v,h.warmLanes&=~v,Cr===h&&(Xt&v)===v&&(cn===4||cn===3&&(Xt&62914560)===Xt&&300>ct()-_6?(cr&2)===0&&g1(h,0):WM|=v,f1===Xt&&(f1=0)),$s(h)}function t1e(h,m){m===0&&(m=Dg()),h=bh(h,m),h!==null&&(Nc(h,m),$s(h))}function r6t(h){var m=h.memoizedState,v=0;m!==null&&(v=m.retryLane),t1e(h,v)}function n6t(h,m){var v=0;switch(h.tag){case 31:case 13:var E=h.stateNode,P=h.memoizedState;P!==null&&(v=P.retryLane);break;case 19:E=h.stateNode;break;case 22:E=h.stateNode._retryCache;break;default:throw Error(o(314))}E!==null&&E.delete(m),t1e(h,v)}function o6t(h,m){return Et(h,m)}var N6=null,b1=null,tO=!1,D6=!1,rO=!1,wd=0;function $s(h){h!==b1&&h.next===null&&(b1===null?N6=b1=h:b1=b1.next=h),D6=!0,tO||(tO=!0,i6t())}function zv(h,m){if(!rO&&D6){rO=!0;do for(var v=!1,E=N6;E!==null;){if(h!==0){var P=E.pendingLanes;if(P===0)var I=0;else{var G=E.suspendedLanes,re=E.pingedLanes;I=(1<<31-ar(42|h)+1)-1,I&=P&~(G&~re),I=I&201326741?I&201326741|1:I?I|2:0}I!==0&&(v=!0,a1e(E,I))}else I=Xt,I=ed(E,E===Cr?I:0,E.cancelPendingCommit!==null||E.timeoutHandle!==-1),(I&3)===0||Fl(E,I)||(v=!0,a1e(E,I));E=E.next}while(v);rO=!1}}function a6t(){r1e()}function r1e(){D6=tO=!1;var h=0;wd!==0&&g6t()&&(h=wd);for(var m=ct(),v=null,E=N6;E!==null;){var P=E.next,I=n1e(E,m);I===0?(E.next=null,v===null?N6=P:v.next=P,P===null&&(b1=v)):(v=E,(h!==0||(I&3)!==0)&&(D6=!0)),E=P}Wn!==0&&Wn!==5||zv(h),wd!==0&&(wd=0)}function n1e(h,m){for(var v=h.suspendedLanes,E=h.pingedLanes,P=h.expirationTimes,I=h.pendingLanes&-62914561;0<I;){var G=31-ar(I),re=1<<G,se=P[G];se===-1?((re&v)===0||(re&E)!==0)&&(P[G]=Jb(re,m)):se<=m&&(h.expiredLanes|=re),I&=~re}if(m=Cr,v=Xt,v=ed(h,h===m?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),E=h.callbackNode,v===0||h===m&&(fr===2||fr===9)||h.cancelPendingCommit!==null)return E!==null&&E!==null&&Xe(E),h.callbackNode=null,h.callbackPriority=0;if((v&3)===0||Fl(h,v)){if(m=v&-v,m===h.callbackPriority)return m;switch(E!==null&&Xe(E),dh(v)){case 2:case 8:v=_e;break;case 32:v=at;break;case 268435456:v=Ct;break;default:v=at}return E=o1e.bind(null,h),v=Et(v,E),h.callbackPriority=m,h.callbackNode=v,m}return E!==null&&E!==null&&Xe(E),h.callbackPriority=2,h.callbackNode=null,2}function o1e(h,m){if(Wn!==0&&Wn!==5)return h.callbackNode=null,h.callbackPriority=0,null;var v=h.callbackNode;if(A6()&&h.callbackNode!==v)return null;var E=Xt;return E=ed(h,h===Cr?E:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),E===0?null:(Bge(h,E,m),n1e(h,ct()),h.callbackNode!=null&&h.callbackNode===v?o1e.bind(null,h):null)}function a1e(h,m){if(A6())return null;Bge(h,m,!0)}function i6t(){b6t(function(){(cr&6)!==0?Et(we,a6t):r1e()})}function nO(){if(wd===0){var h=n1;h===0&&(h=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),wd=h}return wd}function i1e(h){return h==null||typeof h=="symbol"||typeof h=="boolean"?null:typeof h=="function"?h:Bk(""+h)}function l1e(h,m){var v=m.ownerDocument.createElement("input");return v.name=m.name,v.value=m.value,h.id&&v.setAttribute("form",h.id),m.parentNode.insertBefore(v,m),h=new FormData(h),v.parentNode.removeChild(v),h}function l6t(h,m,v,E,P){if(m==="submit"&&v&&v.stateNode===P){var I=i1e((P[co]||null).action),G=E.submitter;G&&(m=(m=G[co]||null)?i1e(m.formAction):G.getAttribute("formAction"),m!==null&&(I=m,G=null));var re=new qk("action","action",null,E,P);h.push({event:re,listeners:[{instance:null,listener:function(){if(E.defaultPrevented){if(wd!==0){var se=G?l1e(P,G):new FormData(P);_M(v,{pending:!0,data:se,method:P.method,action:I},null,se)}}else typeof I=="function"&&(re.preventDefault(),se=G?l1e(P,G):new FormData(P),_M(v,{pending:!0,data:se,method:P.method,action:I},I,se))},currentTarget:P}]})}}for(var oO=0;oO<j$.length;oO++){var aO=j$[oO],s6t=aO.toLowerCase(),c6t=aO[0].toUpperCase()+aO.slice(1);Ul(s6t,"on"+c6t)}Ul(Lfe,"onAnimationEnd"),Ul(Bfe,"onAnimationIteration"),Ul(jfe,"onAnimationStart"),Ul("dblclick","onDoubleClick"),Ul("focusin","onFocus"),Ul("focusout","onBlur"),Ul(Skt,"onTransitionRun"),Ul(Ckt,"onTransitionStart"),Ul(Tkt,"onTransitionCancel"),Ul(Ffe,"onTransitionEnd"),As("onMouseEnter",["mouseout","mouseover"]),As("onMouseLeave",["mouseout","mouseover"]),As("onPointerEnter",["pointerout","pointerover"]),As("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lv="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(" "),u6t=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lv));function s1e(h,m){m=(m&4)!==0;for(var v=0;v<h.length;v++){var E=h[v],P=E.event;E=E.listeners;e:{var I=void 0;if(m)for(var G=E.length-1;0<=G;G--){var re=E[G],se=re.instance,ye=re.currentTarget;if(re=re.listener,se!==I&&P.isPropagationStopped())break e;I=re,P.currentTarget=ye;try{I(P)}catch(Ce){Yk(Ce)}P.currentTarget=null,I=se}else for(G=0;G<E.length;G++){if(re=E[G],se=re.instance,ye=re.currentTarget,re=re.listener,se!==I&&P.isPropagationStopped())break e;I=re,P.currentTarget=ye;try{I(P)}catch(Ce){Yk(Ce)}P.currentTarget=null,I=se}}}}function Gt(h,m){var v=m[Dc];v===void 0&&(v=m[Dc]=new Set);var E=h+"__bubble";v.has(E)||(c1e(m,h,2,!1),v.add(E))}function iO(h,m,v){var E=0;m&&(E|=4),c1e(v,h,E,m)}var P6="_reactListening"+Math.random().toString(36).slice(2);function lO(h){if(!h[P6]){h[P6]=!0,Lg.forEach(function(v){v!=="selectionchange"&&(u6t.has(v)||iO(v,!1,h),iO(v,!0,h))});var m=h.nodeType===9?h:h.ownerDocument;m===null||m[P6]||(m[P6]=!0,iO("selectionchange",!1,m))}}function c1e(h,m,v,E){switch(L1e(m)){case 2:var P=L6t;break;case 8:P=B6t;break;default:P=kO}v=P.bind(null,m,v,h),P=void 0,!T$||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(P=!0),E?P!==void 0?h.addEventListener(m,v,{capture:!0,passive:P}):h.addEventListener(m,v,!0):P!==void 0?h.addEventListener(m,v,{passive:P}):h.addEventListener(m,v,!1)}function sO(h,m,v,E,P){var I=E;if((m&1)===0&&(m&2)===0&&E!==null)e:for(;;){if(E===null)return;var G=E.tag;if(G===3||G===4){var re=E.stateNode.containerInfo;if(re===P)break;if(G===4)for(G=E.return;G!==null;){var se=G.tag;if((se===3||se===4)&&G.stateNode.containerInfo===P)return;G=G.return}for(;re!==null;){if(G=Cs(re),G===null)return;if(se=G.tag,se===5||se===6||se===26||se===27){E=I=G;continue e}re=re.parentNode}}E=E.return}ffe(function(){var ye=I,Ce=S$(v),Ne=[];e:{var be=Hfe.get(h);if(be!==void 0){var ke=qk,rt=h;switch(h){case"keypress":if(Fk(v)===0)break e;case"keydown":case"keyup":ke=nkt;break;case"focusin":rt="focus",ke=D$;break;case"focusout":rt="blur",ke=D$;break;case"beforeblur":case"afterblur":ke=D$;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=yfe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=V5t;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=ikt;break;case Lfe:case Bfe:case jfe:ke=G5t;break;case Ffe:ke=skt;break;case"scroll":case"scrollend":ke=q5t;break;case"wheel":ke=ukt;break;case"copy":case"cut":case"paste":ke=K5t;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=vfe;break;case"toggle":case"beforetoggle":ke=pkt}var yt=(m&4)!==0,kr=!yt&&(h==="scroll"||h==="scrollend"),he=yt?be!==null?be+"Capture":null:be;yt=[];for(var ue=ye,ge;ue!==null;){var Re=ue;if(ge=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ge===null||he===null||(Re=iv(ue,he),Re!=null&&yt.push(Bv(ue,Re,ge))),kr)break;ue=ue.return}0<yt.length&&(be=new ke(be,rt,null,v,Ce),Ne.push({event:be,listeners:yt}))}}if((m&7)===0){e:{if(be=h==="mouseover"||h==="pointerover",ke=h==="mouseout"||h==="pointerout",be&&v!==E$&&(rt=v.relatedTarget||v.fromElement)&&(Cs(rt)||rt[Pi]))break e;if((ke||be)&&(be=Ce.window===Ce?Ce:(be=Ce.ownerDocument)?be.defaultView||be.parentWindow:window,ke?(rt=v.relatedTarget||v.toElement,ke=ye,rt=rt?Cs(rt):null,rt!==null&&(kr=i(rt),yt=rt.tag,rt!==kr||yt!==5&&yt!==27&&yt!==6)&&(rt=null)):(ke=null,rt=ye),ke!==rt)){if(yt=yfe,Re="onMouseLeave",he="onMouseEnter",ue="mouse",(h==="pointerout"||h==="pointerover")&&(yt=vfe,Re="onPointerLeave",he="onPointerEnter",ue="pointer"),kr=ke==null?be:Hl(ke),ge=rt==null?be:Hl(rt),be=new yt(Re,ue+"leave",ke,v,Ce),be.target=kr,be.relatedTarget=ge,Re=null,Cs(Ce)===ye&&(yt=new yt(he,ue+"enter",rt,v,Ce),yt.target=ge,yt.relatedTarget=kr,Re=yt),kr=Re,ke&&rt)t:{for(yt=d6t,he=ke,ue=rt,ge=0,Re=he;Re;Re=yt(Re))ge++;Re=0;for(var dt=ue;dt;dt=yt(dt))Re++;for(;0<ge-Re;)he=yt(he),ge--;for(;0<Re-ge;)ue=yt(ue),Re--;for(;ge--;){if(he===ue||ue!==null&&he===ue.alternate){yt=he;break t}he=yt(he),ue=yt(ue)}yt=null}else yt=null;ke!==null&&u1e(Ne,be,ke,yt,!1),rt!==null&&kr!==null&&u1e(Ne,kr,rt,yt,!0)}}e:{if(be=ye?Hl(ye):window,ke=be.nodeName&&be.nodeName.toLowerCase(),ke==="select"||ke==="input"&&be.type==="file")var lr=Tfe;else if(Sfe(be))if(Rfe)lr=kkt;else{lr=xkt;var it=vkt}else ke=be.nodeName,!ke||ke.toLowerCase()!=="input"||be.type!=="checkbox"&&be.type!=="radio"?ye&&_$(ye.elementType)&&(lr=Tfe):lr=wkt;if(lr&&(lr=lr(h,ye))){Cfe(Ne,lr,v,Ce);break e}it&&it(h,be,ye),h==="focusout"&&ye&&be.type==="number"&&ye.memoizedProps.value!=null&&Mc(be,"number",be.value)}switch(it=ye?Hl(ye):window,h){case"focusin":(Sfe(it)||it.contentEditable==="true")&&(Xg=it,z$=ye,fv=null);break;case"focusout":fv=z$=Xg=null;break;case"mousedown":L$=!0;break;case"contextmenu":case"mouseup":case"dragend":L$=!1,Ife(Ne,v,Ce);break;case"selectionchange":if(Ekt)break;case"keydown":case"keyup":Ife(Ne,v,Ce)}var jt;if($$)e:{switch(h){case"compositionstart":var Kt="onCompositionStart";break e;case"compositionend":Kt="onCompositionEnd";break e;case"compositionupdate":Kt="onCompositionUpdate";break e}Kt=void 0}else Gg?_fe(h,v)&&(Kt="onCompositionEnd"):h==="keydown"&&v.keyCode===229&&(Kt="onCompositionStart");Kt&&(xfe&&v.locale!=="ko"&&(Gg||Kt!=="onCompositionStart"?Kt==="onCompositionEnd"&&Gg&&(jt=mfe()):(ad=Ce,R$="value"in ad?ad.value:ad.textContent,Gg=!0)),it=$6(ye,Kt),0<it.length&&(Kt=new bfe(Kt,h,null,v,Ce),Ne.push({event:Kt,listeners:it}),jt?Kt.data=jt:(jt=Efe(v),jt!==null&&(Kt.data=jt)))),(jt=fkt?mkt(h,v):gkt(h,v))&&(Kt=$6(ye,"onBeforeInput"),0<Kt.length&&(it=new bfe("onBeforeInput","beforeinput",null,v,Ce),Ne.push({event:it,listeners:Kt}),it.data=jt)),l6t(Ne,h,ye,v,Ce)}s1e(Ne,m)})}function Bv(h,m,v){return{instance:h,listener:m,currentTarget:v}}function $6(h,m){for(var v=m+"Capture",E=[];h!==null;){var P=h,I=P.stateNode;if(P=P.tag,P!==5&&P!==26&&P!==27||I===null||(P=iv(h,v),P!=null&&E.unshift(Bv(h,P,I)),P=iv(h,m),P!=null&&E.push(Bv(h,P,I))),h.tag===3)return E;h=h.return}return[]}function d6t(h){if(h===null)return null;do h=h.return;while(h&&h.tag!==5&&h.tag!==27);return h||null}function u1e(h,m,v,E,P){for(var I=m._reactName,G=[];v!==null&&v!==E;){var re=v,se=re.alternate,ye=re.stateNode;if(re=re.tag,se!==null&&se===E)break;re!==5&&re!==26&&re!==27||ye===null||(se=ye,P?(ye=iv(v,I),ye!=null&&G.unshift(Bv(v,ye,se))):P||(ye=iv(v,I),ye!=null&&G.push(Bv(v,ye,se)))),v=v.return}G.length!==0&&h.push({event:m,listeners:G})}var p6t=/\r\n?/g,h6t=/\u0000|\uFFFD/g;function d1e(h){return(typeof h=="string"?h:""+h).replace(p6t,`
`).replace(h6t,"")}function p1e(h,m){return m=d1e(m),d1e(h)===m}function wr(h,m,v,E,P,I){switch(v){case"children":typeof E=="string"?m==="body"||m==="textarea"&&E===""||Vg(h,E):(typeof E=="number"||typeof E=="bigint")&&m!=="body"&&Vg(h,""+E);break;case"className":nd(h,"class",E);break;case"tabIndex":nd(h,"tabindex",E);break;case"dir":case"role":case"viewBox":case"width":case"height":nd(h,v,E);break;case"style":pfe(h,E,I);break;case"data":if(m!=="object"){nd(h,"data",E);break}case"src":case"href":if(E===""&&(m!=="a"||v!=="href")){h.removeAttribute(v);break}if(E==null||typeof E=="function"||typeof E=="symbol"||typeof E=="boolean"){h.removeAttribute(v);break}E=Bk(""+E),h.setAttribute(v,E);break;case"action":case"formAction":if(typeof E=="function"){h.setAttribute(v,"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 I=="function"&&(v==="formAction"?(m!=="input"&&wr(h,m,"name",P.name,P,null),wr(h,m,"formEncType",P.formEncType,P,null),wr(h,m,"formMethod",P.formMethod,P,null),wr(h,m,"formTarget",P.formTarget,P,null)):(wr(h,m,"encType",P.encType,P,null),wr(h,m,"method",P.method,P,null),wr(h,m,"target",P.target,P,null)));if(E==null||typeof E=="symbol"||typeof E=="boolean"){h.removeAttribute(v);break}E=Bk(""+E),h.setAttribute(v,E);break;case"onClick":E!=null&&(h.onclick=Oc);break;case"onScroll":E!=null&&Gt("scroll",h);break;case"onScrollEnd":E!=null&&Gt("scrollend",h);break;case"dangerouslySetInnerHTML":if(E!=null){if(typeof E!="object"||!("__html"in E))throw Error(o(61));if(v=E.__html,v!=null){if(P.children!=null)throw Error(o(60));h.innerHTML=v}}break;case"multiple":h.multiple=E&&typeof E!="function"&&typeof E!="symbol";break;case"muted":h.muted=E&&typeof E!="function"&&typeof E!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(E==null||typeof E=="function"||typeof E=="boolean"||typeof E=="symbol"){h.removeAttribute("xlink:href");break}v=Bk(""+E),h.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":E!=null&&typeof E!="function"&&typeof E!="symbol"?h.setAttribute(v,""+E):h.removeAttribute(v);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":E&&typeof E!="function"&&typeof E!="symbol"?h.setAttribute(v,""):h.removeAttribute(v);break;case"capture":case"download":E===!0?h.setAttribute(v,""):E!==!1&&E!=null&&typeof E!="function"&&typeof E!="symbol"?h.setAttribute(v,E):h.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":E!=null&&typeof E!="function"&&typeof E!="symbol"&&!isNaN(E)&&1<=E?h.setAttribute(v,E):h.removeAttribute(v);break;case"rowSpan":case"start":E==null||typeof E=="function"||typeof E=="symbol"||isNaN(E)?h.removeAttribute(v):h.setAttribute(v,E);break;case"popover":Gt("beforetoggle",h),Gt("toggle",h),rd(h,"popover",E);break;case"xlinkActuate":Va(h,"http://www.w3.org/1999/xlink","xlink:actuate",E);break;case"xlinkArcrole":Va(h,"http://www.w3.org/1999/xlink","xlink:arcrole",E);break;case"xlinkRole":Va(h,"http://www.w3.org/1999/xlink","xlink:role",E);break;case"xlinkShow":Va(h,"http://www.w3.org/1999/xlink","xlink:show",E);break;case"xlinkTitle":Va(h,"http://www.w3.org/1999/xlink","xlink:title",E);break;case"xlinkType":Va(h,"http://www.w3.org/1999/xlink","xlink:type",E);break;case"xmlBase":Va(h,"http://www.w3.org/XML/1998/namespace","xml:base",E);break;case"xmlLang":Va(h,"http://www.w3.org/XML/1998/namespace","xml:lang",E);break;case"xmlSpace":Va(h,"http://www.w3.org/XML/1998/namespace","xml:space",E);break;case"is":rd(h,"is",E);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=F5t.get(v)||v,rd(h,v,E))}}function cO(h,m,v,E,P,I){switch(v){case"style":pfe(h,E,I);break;case"dangerouslySetInnerHTML":if(E!=null){if(typeof E!="object"||!("__html"in E))throw Error(o(61));if(v=E.__html,v!=null){if(P.children!=null)throw Error(o(60));h.innerHTML=v}}break;case"children":typeof E=="string"?Vg(h,E):(typeof E=="number"||typeof E=="bigint")&&Vg(h,""+E);break;case"onScroll":E!=null&&Gt("scroll",h);break;case"onScrollEnd":E!=null&&Gt("scrollend",h);break;case"onClick":E!=null&&(h.onclick=Oc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bg.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(P=v.endsWith("Capture"),m=v.slice(2,P?v.length-7:void 0),I=h[co]||null,I=I!=null?I[v]:null,typeof I=="function"&&h.removeEventListener(m,I,P),typeof E=="function")){typeof I!="function"&&I!==null&&(v in h?h[v]=null:h.hasAttribute(v)&&h.removeAttribute(v)),h.addEventListener(m,E,P);break e}v in h?h[v]=E:E===!0?h.setAttribute(v,""):rd(h,v,E)}}}function Eo(h,m,v){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gt("error",h),Gt("load",h);var E=!1,P=!1,I;for(I in v)if(v.hasOwnProperty(I)){var G=v[I];if(G!=null)switch(I){case"src":E=!0;break;case"srcSet":P=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,m));default:wr(h,m,I,G,v,null)}}P&&wr(h,m,"srcSet",v.srcSet,v,null),E&&wr(h,m,"src",v.src,v,null);return;case"input":Gt("invalid",h);var re=I=G=P=null,se=null,ye=null;for(E in v)if(v.hasOwnProperty(E)){var Ce=v[E];if(Ce!=null)switch(E){case"name":P=Ce;break;case"type":G=Ce;break;case"checked":se=Ce;break;case"defaultChecked":ye=Ce;break;case"value":I=Ce;break;case"defaultValue":re=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(o(137,m));break;default:wr(h,m,E,Ce,v,null)}}qg(h,I,re,se,ye,G,P,!1);return;case"select":Gt("invalid",h),E=G=I=null;for(P in v)if(v.hasOwnProperty(P)&&(re=v[P],re!=null))switch(P){case"value":I=re;break;case"defaultValue":G=re;break;case"multiple":E=re;default:wr(h,m,P,re,v,null)}m=I,v=G,h.multiple=!!E,m!=null?Ug(h,!!E,m,!1):v!=null&&Ug(h,!!E,v,!0);return;case"textarea":Gt("invalid",h),I=P=E=null;for(G in v)if(v.hasOwnProperty(G)&&(re=v[G],re!=null))switch(G){case"value":E=re;break;case"defaultValue":P=re;break;case"children":I=re;break;case"dangerouslySetInnerHTML":if(re!=null)throw Error(o(91));break;default:wr(h,m,G,re,v,null)}ufe(h,E,P,I);return;case"option":for(se in v)if(v.hasOwnProperty(se)&&(E=v[se],E!=null))switch(se){case"selected":h.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:wr(h,m,se,E,v,null)}return;case"dialog":Gt("beforetoggle",h),Gt("toggle",h),Gt("cancel",h),Gt("close",h);break;case"iframe":case"object":Gt("load",h);break;case"video":case"audio":for(E=0;E<Lv.length;E++)Gt(Lv[E],h);break;case"image":Gt("error",h),Gt("load",h);break;case"details":Gt("toggle",h);break;case"embed":case"source":case"link":Gt("error",h),Gt("load",h);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ye in v)if(v.hasOwnProperty(ye)&&(E=v[ye],E!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,m));default:wr(h,m,ye,E,v,null)}return;default:if(_$(m)){for(Ce in v)v.hasOwnProperty(Ce)&&(E=v[Ce],E!==void 0&&cO(h,m,Ce,E,v,void 0));return}}for(re in v)v.hasOwnProperty(re)&&(E=v[re],E!=null&&wr(h,m,re,E,v,null))}function f6t(h,m,v,E){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var P=null,I=null,G=null,re=null,se=null,ye=null,Ce=null;for(ke in v){var Ne=v[ke];if(v.hasOwnProperty(ke)&&Ne!=null)switch(ke){case"checked":break;case"value":break;case"defaultValue":se=Ne;default:E.hasOwnProperty(ke)||wr(h,m,ke,null,E,Ne)}}for(var be in E){var ke=E[be];if(Ne=v[be],E.hasOwnProperty(be)&&(ke!=null||Ne!=null))switch(be){case"type":I=ke;break;case"name":P=ke;break;case"checked":ye=ke;break;case"defaultChecked":Ce=ke;break;case"value":G=ke;break;case"defaultValue":re=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(o(137,m));break;default:ke!==Ne&&wr(h,m,be,ke,E,Ne)}}fh(h,G,re,se,ye,Ce,I,P);return;case"select":ke=G=re=be=null;for(I in v)if(se=v[I],v.hasOwnProperty(I)&&se!=null)switch(I){case"value":break;case"multiple":ke=se;default:E.hasOwnProperty(I)||wr(h,m,I,null,E,se)}for(P in E)if(I=E[P],se=v[P],E.hasOwnProperty(P)&&(I!=null||se!=null))switch(P){case"value":be=I;break;case"defaultValue":re=I;break;case"multiple":G=I;default:I!==se&&wr(h,m,P,I,E,se)}m=re,v=G,E=ke,be!=null?Ug(h,!!v,be,!1):!!E!=!!v&&(m!=null?Ug(h,!!v,m,!0):Ug(h,!!v,v?[]:"",!1));return;case"textarea":ke=be=null;for(re in v)if(P=v[re],v.hasOwnProperty(re)&&P!=null&&!E.hasOwnProperty(re))switch(re){case"value":break;case"children":break;default:wr(h,m,re,null,E,P)}for(G in E)if(P=E[G],I=v[G],E.hasOwnProperty(G)&&(P!=null||I!=null))switch(G){case"value":be=P;break;case"defaultValue":ke=P;break;case"children":break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(91));break;default:P!==I&&wr(h,m,G,P,E,I)}cfe(h,be,ke);return;case"option":for(var rt in v)if(be=v[rt],v.hasOwnProperty(rt)&&be!=null&&!E.hasOwnProperty(rt))switch(rt){case"selected":h.selected=!1;break;default:wr(h,m,rt,null,E,be)}for(se in E)if(be=E[se],ke=v[se],E.hasOwnProperty(se)&&be!==ke&&(be!=null||ke!=null))switch(se){case"selected":h.selected=be&&typeof be!="function"&&typeof be!="symbol";break;default:wr(h,m,se,be,E,ke)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var yt in v)be=v[yt],v.hasOwnProperty(yt)&&be!=null&&!E.hasOwnProperty(yt)&&wr(h,m,yt,null,E,be);for(ye in E)if(be=E[ye],ke=v[ye],E.hasOwnProperty(ye)&&be!==ke&&(be!=null||ke!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(o(137,m));break;default:wr(h,m,ye,be,E,ke)}return;default:if(_$(m)){for(var kr in v)be=v[kr],v.hasOwnProperty(kr)&&be!==void 0&&!E.hasOwnProperty(kr)&&cO(h,m,kr,void 0,E,be);for(Ce in E)be=E[Ce],ke=v[Ce],!E.hasOwnProperty(Ce)||be===ke||be===void 0&&ke===void 0||cO(h,m,Ce,be,E,ke);return}}for(var he in v)be=v[he],v.hasOwnProperty(he)&&be!=null&&!E.hasOwnProperty(he)&&wr(h,m,he,null,E,be);for(Ne in E)be=E[Ne],ke=v[Ne],!E.hasOwnProperty(Ne)||be===ke||be==null&&ke==null||wr(h,m,Ne,be,E,ke)}function h1e(h){switch(h){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m6t(){if(typeof performance.getEntriesByType=="function"){for(var h=0,m=0,v=performance.getEntriesByType("resource"),E=0;E<v.length;E++){var P=v[E],I=P.transferSize,G=P.initiatorType,re=P.duration;if(I&&re&&h1e(G)){for(G=0,re=P.responseEnd,E+=1;E<v.length;E++){var se=v[E],ye=se.startTime;if(ye>re)break;var Ce=se.transferSize,Ne=se.initiatorType;Ce&&h1e(Ne)&&(se=se.responseEnd,G+=Ce*(se<re?1:(re-ye)/(se-ye)))}if(--E,m+=8*(I+G)/(P.duration/1e3),h++,10<h)break}}if(0<h)return m/h/1e6}return navigator.connection&&(h=navigator.connection.downlink,typeof h=="number")?h:5}var uO=null,dO=null;function M6(h){return h.nodeType===9?h:h.ownerDocument}function f1e(h){switch(h){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function m1e(h,m){if(h===0)switch(m){case"svg":return 1;case"math":return 2;default:return 0}return h===1&&m==="foreignObject"?0:h}function pO(h,m){return h==="textarea"||h==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.children=="bigint"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var hO=null;function g6t(){var h=window.event;return h&&h.type==="popstate"?h===hO?!1:(hO=h,!0):(hO=null,!1)}var g1e=typeof setTimeout=="function"?setTimeout:void 0,y6t=typeof clearTimeout=="function"?clearTimeout:void 0,y1e=typeof Promise=="function"?Promise:void 0,b6t=typeof queueMicrotask=="function"?queueMicrotask:typeof y1e<"u"?function(h){return y1e.resolve(null).then(h).catch(v6t)}:g1e;function v6t(h){setTimeout(function(){throw h})}function kd(h){return h==="head"}function b1e(h,m){var v=m,E=0;do{var P=v.nextSibling;if(h.removeChild(v),P&&P.nodeType===8)if(v=P.data,v==="/$"||v==="/&"){if(E===0){h.removeChild(P),k1(m);return}E--}else if(v==="$"||v==="$?"||v==="$~"||v==="$!"||v==="&")E++;else if(v==="html")jv(h.ownerDocument.documentElement);else if(v==="head"){v=h.ownerDocument.head,jv(v);for(var I=v.firstChild;I;){var G=I.nextSibling,re=I.nodeName;I[Pc]||re==="SCRIPT"||re==="STYLE"||re==="LINK"&&I.rel.toLowerCase()==="stylesheet"||v.removeChild(I),I=G}}else v==="body"&&jv(h.ownerDocument.body);v=P}while(v);k1(m)}function v1e(h,m){var v=h;h=0;do{var E=v.nextSibling;if(v.nodeType===1?m?(v._stashedDisplay=v.style.display,v.style.display="none"):(v.style.display=v._stashedDisplay||"",v.getAttribute("style")===""&&v.removeAttribute("style")):v.nodeType===3&&(m?(v._stashedText=v.nodeValue,v.nodeValue=""):v.nodeValue=v._stashedText||""),E&&E.nodeType===8)if(v=E.data,v==="/$"){if(h===0)break;h--}else v!=="$"&&v!=="$?"&&v!=="$~"&&v!=="$!"||h++;v=E}while(v)}function fO(h){var m=h.firstChild;for(m&&m.nodeType===10&&(m=m.nextSibling);m;){var v=m;switch(m=m.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":fO(v),hh(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}h.removeChild(v)}}function x6t(h,m,v,E){for(;h.nodeType===1;){var P=v;if(h.nodeName.toLowerCase()!==m.toLowerCase()){if(!E&&(h.nodeName!=="INPUT"||h.type!=="hidden"))break}else if(E){if(!h[Pc])switch(m){case"meta":if(!h.hasAttribute("itemprop"))break;return h;case"link":if(I=h.getAttribute("rel"),I==="stylesheet"&&h.hasAttribute("data-precedence"))break;if(I!==P.rel||h.getAttribute("href")!==(P.href==null||P.href===""?null:P.href)||h.getAttribute("crossorigin")!==(P.crossOrigin==null?null:P.crossOrigin)||h.getAttribute("title")!==(P.title==null?null:P.title))break;return h;case"style":if(h.hasAttribute("data-precedence"))break;return h;case"script":if(I=h.getAttribute("src"),(I!==(P.src==null?null:P.src)||h.getAttribute("type")!==(P.type==null?null:P.type)||h.getAttribute("crossorigin")!==(P.crossOrigin==null?null:P.crossOrigin))&&I&&h.hasAttribute("async")&&!h.hasAttribute("itemprop"))break;return h;default:return h}}else if(m==="input"&&h.type==="hidden"){var I=P.name==null?null:""+P.name;if(P.type==="hidden"&&h.getAttribute("name")===I)return h}else return h;if(h=Bi(h.nextSibling),h===null)break}return null}function w6t(h,m,v){if(m==="")return null;for(;h.nodeType!==3;)if((h.nodeType!==1||h.nodeName!=="INPUT"||h.type!=="hidden")&&!v||(h=Bi(h.nextSibling),h===null))return null;return h}function x1e(h,m){for(;h.nodeType!==8;)if((h.nodeType!==1||h.nodeName!=="INPUT"||h.type!=="hidden")&&!m||(h=Bi(h.nextSibling),h===null))return null;return h}function mO(h){return h.data==="$?"||h.data==="$~"}function gO(h){return h.data==="$!"||h.data==="$?"&&h.ownerDocument.readyState!=="loading"}function k6t(h,m){var v=h.ownerDocument;if(h.data==="$~")h._reactRetry=m;else if(h.data!=="$?"||v.readyState!=="loading")m();else{var E=function(){m(),v.removeEventListener("DOMContentLoaded",E)};v.addEventListener("DOMContentLoaded",E),h._reactRetry=E}}function Bi(h){for(;h!=null;h=h.nextSibling){var m=h.nodeType;if(m===1||m===3)break;if(m===8){if(m=h.data,m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"||m==="F!"||m==="F")break;if(m==="/$"||m==="/&")return null}}return h}var yO=null;function w1e(h){h=h.nextSibling;for(var m=0;h;){if(h.nodeType===8){var v=h.data;if(v==="/$"||v==="/&"){if(m===0)return Bi(h.nextSibling);m--}else v!=="$"&&v!=="$!"&&v!=="$?"&&v!=="$~"&&v!=="&"||m++}h=h.nextSibling}return null}function k1e(h){h=h.previousSibling;for(var m=0;h;){if(h.nodeType===8){var v=h.data;if(v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"){if(m===0)return h;m--}else v!=="/$"&&v!=="/&"||m++}h=h.previousSibling}return null}function _1e(h,m,v){switch(m=M6(v),h){case"html":if(h=m.documentElement,!h)throw Error(o(452));return h;case"head":if(h=m.head,!h)throw Error(o(453));return h;case"body":if(h=m.body,!h)throw Error(o(454));return h;default:throw Error(o(451))}}function jv(h){for(var m=h.attributes;m.length;)h.removeAttributeNode(m[0]);hh(h)}var ji=new Map,E1e=new Set;function O6(h){return typeof h.getRootNode=="function"?h.getRootNode():h.nodeType===9?h:h.ownerDocument}var Zc=H.d;H.d={f:_6t,r:E6t,D:S6t,C:C6t,L:T6t,m:R6t,X:N6t,S:A6t,M:D6t};function _6t(){var h=Zc.f(),m=C6();return h||m}function E6t(h){var m=Ts(h);m!==null&&m.tag===5&&m.type==="form"?Fme(m):Zc.r(h)}var v1=typeof document>"u"?null:document;function S1e(h,m,v){var E=v1;if(E&&typeof m=="string"&&m){var P=Ln(m);P='link[rel="'+h+'"][href="'+P+'"]',typeof v=="string"&&(P+='[crossorigin="'+v+'"]'),E1e.has(P)||(E1e.add(P),h={rel:h,crossOrigin:v,href:m},E.querySelector(P)===null&&(m=E.createElement("link"),Eo(m,"link",h),ln(m),E.head.appendChild(m)))}}function S6t(h){Zc.D(h),S1e("dns-prefetch",h,null)}function C6t(h,m){Zc.C(h,m),S1e("preconnect",h,m)}function T6t(h,m,v){Zc.L(h,m,v);var E=v1;if(E&&h&&m){var P='link[rel="preload"][as="'+Ln(m)+'"]';m==="image"&&v&&v.imageSrcSet?(P+='[imagesrcset="'+Ln(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(P+='[imagesizes="'+Ln(v.imageSizes)+'"]')):P+='[href="'+Ln(h)+'"]';var I=P;switch(m){case"style":I=x1(h);break;case"script":I=w1(h)}ji.has(I)||(h=p({rel:"preload",href:m==="image"&&v&&v.imageSrcSet?void 0:h,as:m},v),ji.set(I,h),E.querySelector(P)!==null||m==="style"&&E.querySelector(Fv(I))||m==="script"&&E.querySelector(Hv(I))||(m=E.createElement("link"),Eo(m,"link",h),ln(m),E.head.appendChild(m)))}}function R6t(h,m){Zc.m(h,m);var v=v1;if(v&&h){var E=m&&typeof m.as=="string"?m.as:"script",P='link[rel="modulepreload"][as="'+Ln(E)+'"][href="'+Ln(h)+'"]',I=P;switch(E){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=w1(h)}if(!ji.has(I)&&(h=p({rel:"modulepreload",href:h},m),ji.set(I,h),v.querySelector(P)===null)){switch(E){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(Hv(I)))return}E=v.createElement("link"),Eo(E,"link",h),ln(E),v.head.appendChild(E)}}}function A6t(h,m,v){Zc.S(h,m,v);var E=v1;if(E&&h){var P=Rs(E).hoistableStyles,I=x1(h);m=m||"default";var G=P.get(I);if(!G){var re={loading:0,preload:null};if(G=E.querySelector(Fv(I)))re.loading=5;else{h=p({rel:"stylesheet",href:h,"data-precedence":m},v),(v=ji.get(I))&&bO(h,v);var se=G=E.createElement("link");ln(se),Eo(se,"link",h),se._p=new Promise(function(ye,Ce){se.onload=ye,se.onerror=Ce}),se.addEventListener("load",function(){re.loading|=1}),se.addEventListener("error",function(){re.loading|=2}),re.loading|=4,I6(G,m,E)}G={type:"stylesheet",instance:G,count:1,state:re},P.set(I,G)}}}function N6t(h,m){Zc.X(h,m);var v=v1;if(v&&h){var E=Rs(v).hoistableScripts,P=w1(h),I=E.get(P);I||(I=v.querySelector(Hv(P)),I||(h=p({src:h,async:!0},m),(m=ji.get(P))&&vO(h,m),I=v.createElement("script"),ln(I),Eo(I,"link",h),v.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},E.set(P,I))}}function D6t(h,m){Zc.M(h,m);var v=v1;if(v&&h){var E=Rs(v).hoistableScripts,P=w1(h),I=E.get(P);I||(I=v.querySelector(Hv(P)),I||(h=p({src:h,async:!0,type:"module"},m),(m=ji.get(P))&&vO(h,m),I=v.createElement("script"),ln(I),Eo(I,"link",h),v.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},E.set(P,I))}}function C1e(h,m,v,E){var P=(P=J.current)?O6(P):null;if(!P)throw Error(o(446));switch(h){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(m=x1(v.href),v=Rs(P).hoistableStyles,E=v.get(m),E||(E={type:"style",instance:null,count:0,state:null},v.set(m,E)),E):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){h=x1(v.href);var I=Rs(P).hoistableStyles,G=I.get(h);if(G||(P=P.ownerDocument||P,G={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(h,G),(I=P.querySelector(Fv(h)))&&!I._p&&(G.instance=I,G.state.loading=5),ji.has(h)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},ji.set(h,v),I||P6t(P,h,v,G.state))),m&&E===null)throw Error(o(528,""));return G}if(m&&E!==null)throw Error(o(529,""));return null;case"script":return m=v.async,v=v.src,typeof v=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=w1(v),v=Rs(P).hoistableScripts,E=v.get(m),E||(E={type:"script",instance:null,count:0,state:null},v.set(m,E)),E):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,h))}}function x1(h){return'href="'+Ln(h)+'"'}function Fv(h){return'link[rel="stylesheet"]['+h+"]"}function T1e(h){return p({},h,{"data-precedence":h.precedence,precedence:null})}function P6t(h,m,v,E){h.querySelector('link[rel="preload"][as="style"]['+m+"]")?E.loading=1:(m=h.createElement("link"),E.preload=m,m.addEventListener("load",function(){return E.loading|=1}),m.addEventListener("error",function(){return E.loading|=2}),Eo(m,"link",v),ln(m),h.head.appendChild(m))}function w1(h){return'[src="'+Ln(h)+'"]'}function Hv(h){return"script[async]"+h}function R1e(h,m,v){if(m.count++,m.instance===null)switch(m.type){case"style":var E=h.querySelector('style[data-href~="'+Ln(v.href)+'"]');if(E)return m.instance=E,ln(E),E;var P=p({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return E=(h.ownerDocument||h).createElement("style"),ln(E),Eo(E,"style",P),I6(E,v.precedence,h),m.instance=E;case"stylesheet":P=x1(v.href);var I=h.querySelector(Fv(P));if(I)return m.state.loading|=4,m.instance=I,ln(I),I;E=T1e(v),(P=ji.get(P))&&bO(E,P),I=(h.ownerDocument||h).createElement("link"),ln(I);var G=I;return G._p=new Promise(function(re,se){G.onload=re,G.onerror=se}),Eo(I,"link",E),m.state.loading|=4,I6(I,v.precedence,h),m.instance=I;case"script":return I=w1(v.src),(P=h.querySelector(Hv(I)))?(m.instance=P,ln(P),P):(E=v,(P=ji.get(I))&&(E=p({},v),vO(E,P)),h=h.ownerDocument||h,P=h.createElement("script"),ln(P),Eo(P,"link",E),h.head.appendChild(P),m.instance=P);case"void":return null;default:throw Error(o(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(E=m.instance,m.state.loading|=4,I6(E,v.precedence,h));return m.instance}function I6(h,m,v){for(var E=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),P=E.length?E[E.length-1]:null,I=P,G=0;G<E.length;G++){var re=E[G];if(re.dataset.precedence===m)I=re;else if(I!==P)break}I?I.parentNode.insertBefore(h,I.nextSibling):(m=v.nodeType===9?v.head:v,m.insertBefore(h,m.firstChild))}function bO(h,m){h.crossOrigin==null&&(h.crossOrigin=m.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=m.referrerPolicy),h.title==null&&(h.title=m.title)}function vO(h,m){h.crossOrigin==null&&(h.crossOrigin=m.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=m.referrerPolicy),h.integrity==null&&(h.integrity=m.integrity)}var z6=null;function A1e(h,m,v){if(z6===null){var E=new Map,P=z6=new Map;P.set(v,E)}else P=z6,E=P.get(v),E||(E=new Map,P.set(v,E));if(E.has(h))return E;for(E.set(h,null),v=v.getElementsByTagName(h),P=0;P<v.length;P++){var I=v[P];if(!(I[Pc]||I[mn]||h==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var G=I.getAttribute(m)||"";G=h+G;var re=E.get(G);re?re.push(I):E.set(G,[I])}}return E}function N1e(h,m,v){h=h.ownerDocument||h,h.head.insertBefore(v,m==="title"?h.querySelector("head > title"):null)}function $6t(h,m,v){if(v===1||m.itemProp!=null)return!1;switch(h){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;switch(m.rel){case"stylesheet":return h=m.disabled,typeof m.precedence=="string"&&h==null;default:return!0}case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function D1e(h){return!(h.type==="stylesheet"&&(h.state.loading&3)===0)}function M6t(h,m,v,E){if(v.type==="stylesheet"&&(typeof E.media!="string"||matchMedia(E.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var P=x1(E.href),I=m.querySelector(Fv(P));if(I){m=I._p,m!==null&&typeof m=="object"&&typeof m.then=="function"&&(h.count++,h=L6.bind(h),m.then(h,h)),v.state.loading|=4,v.instance=I,ln(I);return}I=m.ownerDocument||m,E=T1e(E),(P=ji.get(P))&&bO(E,P),I=I.createElement("link"),ln(I);var G=I;G._p=new Promise(function(re,se){G.onload=re,G.onerror=se}),Eo(I,"link",E),v.instance=I}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(v,m),(m=v.state.preload)&&(v.state.loading&3)===0&&(h.count++,v=L6.bind(h),m.addEventListener("load",v),m.addEventListener("error",v))}}var xO=0;function O6t(h,m){return h.stylesheets&&h.count===0&&j6(h,h.stylesheets),0<h.count||0<h.imgCount?function(v){var E=setTimeout(function(){if(h.stylesheets&&j6(h,h.stylesheets),h.unsuspend){var I=h.unsuspend;h.unsuspend=null,I()}},6e4+m);0<h.imgBytes&&xO===0&&(xO=62500*m6t());var P=setTimeout(function(){if(h.waitingForImages=!1,h.count===0&&(h.stylesheets&&j6(h,h.stylesheets),h.unsuspend)){var I=h.unsuspend;h.unsuspend=null,I()}},(h.imgBytes>xO?50:800)+m);return h.unsuspend=v,function(){h.unsuspend=null,clearTimeout(E),clearTimeout(P)}}:null}function L6(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)j6(this,this.stylesheets);else if(this.unsuspend){var h=this.unsuspend;this.unsuspend=null,h()}}}var B6=null;function j6(h,m){h.stylesheets=null,h.unsuspend!==null&&(h.count++,B6=new Map,m.forEach(I6t,h),B6=null,L6.call(h))}function I6t(h,m){if(!(m.state.loading&4)){var v=B6.get(h);if(v)var E=v.get(null);else{v=new Map,B6.set(h,v);for(var P=h.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<P.length;I++){var G=P[I];(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")&&(v.set(G.dataset.precedence,G),E=G)}E&&v.set(null,E)}P=m.instance,G=P.getAttribute("data-precedence"),I=v.get(G)||E,I===E&&v.set(null,P),v.set(G,P),this.count++,E=L6.bind(this),P.addEventListener("load",E),P.addEventListener("error",E),I?I.parentNode.insertBefore(P,I.nextSibling):(h=h.nodeType===9?h.head:h,h.insertBefore(P,h.firstChild)),m.state.loading|=4}}var qv={$$typeof:_,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function z6t(h,m,v,E,P,I,G,re,se){this.tag=1,this.containerInfo=h,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=ch(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ch(0),this.hiddenUpdates=ch(null),this.identifierPrefix=E,this.onUncaughtError=P,this.onCaughtError=I,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=se,this.incompleteTransitions=new Map}function P1e(h,m,v,E,P,I,G,re,se,ye,Ce,Ne){return h=new z6t(h,m,v,G,se,ye,Ce,Ne,re),m=1,I===!0&&(m|=24),I=Wa(3,null,null,m),h.current=I,I.stateNode=h,m=J$(),m.refCount++,h.pooledCache=m,m.refCount++,I.memoizedState={element:E,isDehydrated:v,cache:m},nM(I),h}function $1e(h){return h?(h=Qg,h):Qg}function M1e(h,m,v,E,P,I){P=$1e(P),E.context===null?E.context=P:E.pendingContext=P,E=dd(m),E.payload={element:v},I=I===void 0?null:I,I!==null&&(E.callback=I),v=pd(h,E,m),v!==null&&(va(v,h,m),wv(v,h,m))}function O1e(h,m){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var v=h.retryLane;h.retryLane=v!==0&&v<m?v:m}}function wO(h,m){O1e(h,m),(h=h.alternate)&&O1e(h,m)}function I1e(h){if(h.tag===13||h.tag===31){var m=bh(h,67108864);m!==null&&va(m,h,67108864),wO(h,67108864)}}function z1e(h){if(h.tag===13||h.tag===31){var m=Qa();m=uh(m);var v=bh(h,m);v!==null&&va(v,h,m),wO(h,m)}}var F6=!0;function L6t(h,m,v,E){var P=z.T;z.T=null;var I=H.p;try{H.p=2,kO(h,m,v,E)}finally{H.p=I,z.T=P}}function B6t(h,m,v,E){var P=z.T;z.T=null;var I=H.p;try{H.p=8,kO(h,m,v,E)}finally{H.p=I,z.T=P}}function kO(h,m,v,E){if(F6){var P=_O(E);if(P===null)sO(h,m,E,H6,v),B1e(h,E);else if(F6t(P,h,m,v,E))E.stopPropagation();else if(B1e(h,E),m&4&&-1<j6t.indexOf(h)){for(;P!==null;){var I=Ts(P);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var G=jl(I.pendingLanes);if(G!==0){var re=I;for(re.pendingLanes|=2,re.entangledLanes|=2;G;){var se=1<<31-ar(G);re.entanglements[1]|=se,G&=~se}$s(I),(cr&6)===0&&(E6=ct()+500,zv(0))}}break;case 31:case 13:re=bh(I,2),re!==null&&va(re,I,2),C6(),wO(I,2)}if(I=_O(E),I===null&&sO(h,m,E,H6,v),I===P)break;P=I}P!==null&&E.stopPropagation()}else sO(h,m,E,null,v)}}function _O(h){return h=S$(h),EO(h)}var H6=null;function EO(h){if(H6=null,h=Cs(h),h!==null){var m=i(h);if(m===null)h=null;else{var v=m.tag;if(v===13){if(h=l(m),h!==null)return h;h=null}else if(v===31){if(h=s(m),h!==null)return h;h=null}else if(v===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;h=null}else m!==h&&(h=null)}}return H6=h,null}function L1e(h){switch(h){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(zn()){case we:return 2;case _e:return 8;case at:case vt:return 32;case Ct:return 268435456;default:return 32}default:return 32}}var SO=!1,_d=null,Ed=null,Sd=null,Uv=new Map,Vv=new Map,Cd=[],j6t="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 B1e(h,m){switch(h){case"focusin":case"focusout":_d=null;break;case"dragenter":case"dragleave":Ed=null;break;case"mouseover":case"mouseout":Sd=null;break;case"pointerover":case"pointerout":Uv.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vv.delete(m.pointerId)}}function Yv(h,m,v,E,P,I){return h===null||h.nativeEvent!==I?(h={blockedOn:m,domEventName:v,eventSystemFlags:E,nativeEvent:I,targetContainers:[P]},m!==null&&(m=Ts(m),m!==null&&I1e(m)),h):(h.eventSystemFlags|=E,m=h.targetContainers,P!==null&&m.indexOf(P)===-1&&m.push(P),h)}function F6t(h,m,v,E,P){switch(m){case"focusin":return _d=Yv(_d,h,m,v,E,P),!0;case"dragenter":return Ed=Yv(Ed,h,m,v,E,P),!0;case"mouseover":return Sd=Yv(Sd,h,m,v,E,P),!0;case"pointerover":var I=P.pointerId;return Uv.set(I,Yv(Uv.get(I)||null,h,m,v,E,P)),!0;case"gotpointercapture":return I=P.pointerId,Vv.set(I,Yv(Vv.get(I)||null,h,m,v,E,P)),!0}return!1}function j1e(h){var m=Cs(h.target);if(m!==null){var v=i(m);if(v!==null){if(m=v.tag,m===13){if(m=l(v),m!==null){h.blockedOn=m,Ig(h.priority,function(){z1e(v)});return}}else if(m===31){if(m=s(v),m!==null){h.blockedOn=m,Ig(h.priority,function(){z1e(v)});return}}else if(m===3&&v.stateNode.current.memoizedState.isDehydrated){h.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}h.blockedOn=null}function q6(h){if(h.blockedOn!==null)return!1;for(var m=h.targetContainers;0<m.length;){var v=_O(h.nativeEvent);if(v===null){v=h.nativeEvent;var E=new v.constructor(v.type,v);E$=E,v.target.dispatchEvent(E),E$=null}else return m=Ts(v),m!==null&&I1e(m),h.blockedOn=v,!1;m.shift()}return!0}function F1e(h,m,v){q6(h)&&v.delete(m)}function H6t(){SO=!1,_d!==null&&q6(_d)&&(_d=null),Ed!==null&&q6(Ed)&&(Ed=null),Sd!==null&&q6(Sd)&&(Sd=null),Uv.forEach(F1e),Vv.forEach(F1e)}function U6(h,m){h.blockedOn===m&&(h.blockedOn=null,SO||(SO=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,H6t)))}var V6=null;function H1e(h){V6!==h&&(V6=h,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){V6===h&&(V6=null);for(var m=0;m<h.length;m+=3){var v=h[m],E=h[m+1],P=h[m+2];if(typeof E!="function"){if(EO(E||v)===null)continue;break}var I=Ts(v);I!==null&&(h.splice(m,3),m-=3,_M(I,{pending:!0,data:P,method:v.method,action:E},E,P))}}))}function k1(h){function m(se){return U6(se,h)}_d!==null&&U6(_d,h),Ed!==null&&U6(Ed,h),Sd!==null&&U6(Sd,h),Uv.forEach(m),Vv.forEach(m);for(var v=0;v<Cd.length;v++){var E=Cd[v];E.blockedOn===h&&(E.blockedOn=null)}for(;0<Cd.length&&(v=Cd[0],v.blockedOn===null);)j1e(v),v.blockedOn===null&&Cd.shift();if(v=(h.ownerDocument||h).$$reactFormReplay,v!=null)for(E=0;E<v.length;E+=3){var P=v[E],I=v[E+1],G=P[co]||null;if(typeof I=="function")G||H1e(v);else if(G){var re=null;if(I&&I.hasAttribute("formAction")){if(P=I,G=I[co]||null)re=G.formAction;else if(EO(P)!==null)continue}else re=G.action;typeof re=="function"?v[E+1]=re:(v.splice(E,3),E-=3),H1e(v)}}}function q1e(){function h(I){I.canIntercept&&I.info==="react-transition"&&I.intercept({handler:function(){return new Promise(function(G){return P=G})},focusReset:"manual",scroll:"manual"})}function m(){P!==null&&(P(),P=null),E||setTimeout(v,20)}function v(){if(!E&&!navigation.transition){var I=navigation.currentEntry;I&&I.url!=null&&navigation.navigate(I.url,{state:I.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var E=!1,P=null;return navigation.addEventListener("navigate",h),navigation.addEventListener("navigatesuccess",m),navigation.addEventListener("navigateerror",m),setTimeout(v,100),function(){E=!0,navigation.removeEventListener("navigate",h),navigation.removeEventListener("navigatesuccess",m),navigation.removeEventListener("navigateerror",m),P!==null&&(P(),P=null)}}}function CO(h){this._internalRoot=h}Y6.prototype.render=CO.prototype.render=function(h){var m=this._internalRoot;if(m===null)throw Error(o(409));var v=m.current,E=Qa();M1e(v,E,h,m,null,null)},Y6.prototype.unmount=CO.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var m=h.containerInfo;M1e(h.current,2,null,h,null,null),C6(),m[Pi]=null}};function Y6(h){this._internalRoot=h}Y6.prototype.unstable_scheduleHydration=function(h){if(h){var m=Og();h={blockedOn:null,target:h,priority:m};for(var v=0;v<Cd.length&&m!==0&&m<Cd[v].priority;v++);Cd.splice(v,0,h),v===0&&j1e(h)}};var U1e=r.version;if(U1e!=="19.2.0")throw Error(o(527,U1e,"19.2.0"));H.findDOMNode=function(h){var m=h._reactInternals;if(m===void 0)throw typeof h.render=="function"?Error(o(188)):(h=Object.keys(h).join(","),Error(o(268,h)));return h=u(m),h=h!==null?d(h):null,h=h===null?null:h.stateNode,h};var q6t={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var W6=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!W6.isDisabled&&W6.supportsFiber)try{Sr=W6.inject(q6t),Pr=W6}catch{}}return Zy.createRoot=function(h,m){if(!a(h))throw Error(o(299));var v=!1,E="",P=Zme,I=Qme,G=Jme;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(E=m.identifierPrefix),m.onUncaughtError!==void 0&&(P=m.onUncaughtError),m.onCaughtError!==void 0&&(I=m.onCaughtError),m.onRecoverableError!==void 0&&(G=m.onRecoverableError)),m=P1e(h,1,!1,null,null,v,E,null,P,I,G,q1e),h[Pi]=m.current,lO(h),new CO(m)},Zy.hydrateRoot=function(h,m,v){if(!a(h))throw Error(o(299));var E=!1,P="",I=Zme,G=Qme,re=Jme,se=null;return v!=null&&(v.unstable_strictMode===!0&&(E=!0),v.identifierPrefix!==void 0&&(P=v.identifierPrefix),v.onUncaughtError!==void 0&&(I=v.onUncaughtError),v.onCaughtError!==void 0&&(G=v.onCaughtError),v.onRecoverableError!==void 0&&(re=v.onRecoverableError),v.formState!==void 0&&(se=v.formState)),m=P1e(h,1,!0,m,v??null,E,P,se,I,G,re,q1e),m.context=$1e(null),v=m.current,E=Qa(),E=uh(E),P=dd(E),P.callback=null,pd(v,P,E),v=E,m.current.lanes=v,Nc(m,v),$s(m),h[Pi]=m.current,lO(h),new Y6(m)},Zy.version="19.2.0",Zy}var yre;function hrt(){if(yre)return TR.exports;yre=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),TR.exports=prt(),TR.exports}var frt=hrt();const mrt={View:"likec4-view"};let NR="/";NR.endsWith("/")||(NR=NR+"/");var ds=function(){return ds=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ds.apply(this,arguments)};function bre(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function grt(e,r,n){for(var o=0,a=r.length,i;o<a;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}var w4="right-scroll-bar-position",k4="width-before-scroll-bar",yrt="with-scroll-bars-hidden",brt="--removed-body-scroll-bar-size";function DR(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function vrt(e,r){var n=S.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}var xrt=typeof window<"u"?S.useLayoutEffect:S.useEffect,vre=new WeakMap;function wrt(e,r){var n=vrt(null,function(o){return e.forEach(function(a){return DR(a,o)})});return xrt(function(){var o=vre.get(n);if(o){var a=new Set(o),i=new Set(e),l=n.current;a.forEach(function(s){i.has(s)||DR(s,null)}),i.forEach(function(s){a.has(s)||DR(s,l)})}vre.set(n,e)},[e]),n}function krt(e){return e}function _rt(e,r){r===void 0&&(r=krt);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=r(i,o);return n.push(l),function(){n=n.filter(function(s){return s!==l})}},assignSyncMedium:function(i){for(o=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){o=!0;var l=[];if(n.length){var s=n;n=[],s.forEach(i),l=n}var c=function(){var d=l;l=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return a}function Ert(e){e===void 0&&(e={});var r=_rt(null);return r.options=ds({async:!0,ssr:!1},e),r}var xre=function(e){var r=e.sideCar,n=bre(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return S.createElement(o,ds({},n))};xre.isSideCarExport=!0;function Srt(e,r){return e.useMedium(r),xre}var wre=Ert(),PR=function(){},_4=S.forwardRef(function(e,r){var n=S.useRef(null),o=S.useState({onScrollCapture:PR,onWheelCapture:PR,onTouchMoveCapture:PR}),a=o[0],i=o[1],l=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,g=e.noRelative,b=e.noIsolation,x=e.inert,w=e.allowPinchZoom,k=e.as,C=k===void 0?"div":k,_=e.gapMode,T=bre(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=f,A=wrt([n,r]),D=ds(ds({},T),a);return S.createElement(S.Fragment,null,d&&S.createElement(R,{sideCar:wre,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:_}),l?S.cloneElement(S.Children.only(s),ds(ds({},D),{ref:A})):S.createElement(C,ds({},D,{className:c,ref:A}),s))});_4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_4.classNames={fullWidth:k4,zeroRight:w4};var Crt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Trt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=Crt();return r&&e.setAttribute("nonce",r),e}function Rrt(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function Art(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var Nrt=function(){var e=0,r=null;return{add:function(n){e==0&&(r=Trt())&&(Rrt(r,n),Art(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},Drt=function(){var e=Nrt();return function(r,n){S.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},kre=function(){var e=Drt(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},Prt={left:0,top:0,right:0,gap:0},$R=function(e){return parseInt(e||"",10)||0},$rt=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[$R(n),$R(o),$R(a)]},Mrt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Prt;var r=$rt(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},Ort=kre(),$m="data-scroll-locked",Irt=function(e,r,n,o){var a=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(yrt,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(s,"px ").concat(o,`;
  }
  body[`).concat($m,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(s,"px ").concat(o,`;
    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(w4,` {
    right: `).concat(s,"px ").concat(o,`;
  }
  
  .`).concat(k4,` {
    margin-right: `).concat(s,"px ").concat(o,`;
  }
  
  .`).concat(w4," .").concat(w4,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(k4," .").concat(k4,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat($m,`] {
    `).concat(brt,": ").concat(s,`px;
  }
`)},_re=function(){var e=parseInt(document.body.getAttribute($m)||"0",10);return isFinite(e)?e:0},zrt=function(){S.useEffect(function(){return document.body.setAttribute($m,(_re()+1).toString()),function(){var e=_re()-1;e<=0?document.body.removeAttribute($m):document.body.setAttribute($m,e.toString())}},[])},Lrt=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;zrt();var i=S.useMemo(function(){return Mrt(a)},[a]);return S.createElement(Ort,{styles:Irt(i,!r,a,n?"":"!important")})},MR=!1;if(typeof window<"u")try{var E4=Object.defineProperty({},"passive",{get:function(){return MR=!0,!0}});window.addEventListener("test",E4,E4),window.removeEventListener("test",E4,E4)}catch{MR=!1}var Mm=MR?{passive:!1}:!1,Brt=function(e){return e.tagName==="TEXTAREA"},Ere=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!Brt(e)&&n[r]==="visible")},jrt=function(e){return Ere(e,"overflowY")},Frt=function(e){return Ere(e,"overflowX")},Sre=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Cre(e,o);if(a){var i=Tre(e,o),l=i[1],s=i[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Hrt=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},qrt=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Cre=function(e,r){return e==="v"?jrt(r):Frt(r)},Tre=function(e,r){return e==="v"?Hrt(r):qrt(r)},Urt=function(e,r){return e==="h"&&r==="rtl"?-1:1},Vrt=function(e,r,n,o,a){var i=Urt(e,window.getComputedStyle(r).direction),l=i*o,s=n.target,c=r.contains(s),u=!1,d=l>0,p=0,f=0;do{if(!s)break;var g=Tre(e,s),b=g[0],x=g[1],w=g[2],k=x-w-i*b;(b||k)&&Cre(e,s)&&(p+=k,f+=b);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&s!==document.body||c&&(r.contains(s)||r===s));return(d&&Math.abs(p)<1||!d&&Math.abs(f)<1)&&(u=!0),u},S4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rre=function(e){return[e.deltaX,e.deltaY]},Are=function(e){return e&&"current"in e?e.current:e},Yrt=function(e,r){return e[0]===r[0]&&e[1]===r[1]},Wrt=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Grt=0,Om=[];function Xrt(e){var r=S.useRef([]),n=S.useRef([0,0]),o=S.useRef(),a=S.useState(Grt++)[0],i=S.useState(kre)[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=grt([e.lockRef.current],(e.shards||[]).map(Are)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var k=S4(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],R,A=x.target,D=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&D==="h"&&A.type==="range")return!1;var N=Sre(D,A);if(!N)return!0;if(N?R=D:(R=D==="v"?"h":"v",N=Sre(D,A)),!N)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=R),!R)return!0;var $=o.current||R;return Vrt($,w,x,$==="h"?_:T)},[]),c=S.useCallback(function(x){var w=x;if(!(!Om.length||Om[Om.length-1]!==i)){var k="deltaY"in w?Rre(w):S4(w),C=r.current.filter(function(R){return R.name===w.type&&(R.target===w.target||w.target===R.shadowParent)&&Yrt(R.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(l.current.shards||[]).map(Are).filter(Boolean).filter(function(R){return R.contains(w.target)}),T=_.length>0?s(w,_[0]):!l.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),u=S.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:Krt(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=S.useCallback(function(x){n.current=S4(x),o.current=void 0},[]),p=S.useCallback(function(x){u(x.type,Rre(x),x.target,s(x,e.lockRef.current))},[]),f=S.useCallback(function(x){u(x.type,S4(x),x.target,s(x,e.lockRef.current))},[]);S.useEffect(function(){return Om.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Mm),document.addEventListener("touchmove",c,Mm),document.addEventListener("touchstart",d,Mm),function(){Om=Om.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,Mm),document.removeEventListener("touchmove",c,Mm),document.removeEventListener("touchstart",d,Mm)}},[]);var g=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(i,{styles:Wrt(a)}):null,g?S.createElement(Lrt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Krt(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const Zrt=Srt(wre,Xrt);var Nre=S.forwardRef(function(e,r){return S.createElement(_4,ds({},e,{ref:r,sideCar:Zrt}))});Nre.classNames=_4.classNames;function Oo(e){return Object.keys(e)}function Qrt(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function Jrt(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function C4(e){const r=Jrt(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function Dre(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function Pre(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?Dre(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?Dre(i):i}}return o}return n}const Fe=Pre("rem",{shouldScale:!0});Pre("em");function Bu(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function $re(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function kl(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function Ia(e){const r=S.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=S.useContext(r);if(n===null)throw new Error(e);return n}]}function Im(e=null){const r=S.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>S.useContext(r)]}function Mre(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function Qy(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function ent(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function tnt(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].disabled)return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].disabled)return o}return e}function rnt(e,r,n){return Qy(e,n)===Qy(r,n)}function OR({parentSelector:e,siblingSelector:r,onKeyDown:n,loop:o=!0,activateOnFocus:a=!1,dir:i="rtl",orientation:l}){return s=>{n?.(s);const c=Array.from(Qy(s.currentTarget,e)?.querySelectorAll(r)||[]).filter(b=>rnt(s.currentTarget,b,e)),u=c.findIndex(b=>s.currentTarget===b),d=tnt(u,c,o),p=ent(u,c,o),f=i==="rtl"?p:d,g=i==="rtl"?d:p;switch(s.key){case"ArrowRight":{l==="horizontal"&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),a&&c[f].click());break}case"ArrowLeft":{l==="horizontal"&&(s.stopPropagation(),s.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{l==="vertical"&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),a&&c[p].click());break}case"ArrowDown":{l==="vertical"&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),a&&c[d].click());break}case"Home":{s.stopPropagation(),s.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{s.stopPropagation(),s.preventDefault();const b=c.length-1;!c[b].disabled&&c[b].focus();break}}}}const nnt={app:100,modal:200,popover:300,overlay:400,max:9999};function _l(e){return nnt[e]}const ont=()=>{};function ant(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||ont:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function rr(e,r="size",n=!0){if(e!==void 0)return $re(e)?n?Fe(e):e:`var(--${r}-${e})`}function ao(e){return rr(e,"mantine-spacing")}function hn(e){return e===void 0?"var(--mantine-radius-default)":rr(e,"mantine-radius")}function Io(e){return rr(e,"mantine-font-size")}function int(e){return rr(e,"mantine-line-height",!1)}function IR(e){if(e)return rr(e,"mantine-shadow",!1)}function An(e,r){return n=>{e?.(n),r?.(n)}}function lnt(e,r){return e in r?C4(r[e]):C4(e)}function zR(e,r){const n=e.map(o=>({value:o,px:lnt(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function El(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function zm(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function LR(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function snt(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a<o;a+=1){const i=n[a];if(!(i in r)||e[i]!==r[i]&&!(Number.isNaN(e[i])&&Number.isNaN(r[i])))return!1}return!0}function Pp(e){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useMemo(()=>((...n)=>r.current?.(...n)),[])}function T4(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=Pp(e),l=S.useRef(0),s=S.useMemo(()=>{const c=Object.assign((...u)=>{window.clearTimeout(l.current);const d=c._isFirstCall;c._isFirstCall=!1;function p(){window.clearTimeout(l.current),l.current=0,c._isFirstCall=!0}if(a&&d){i(...u);const b=()=>{p()},x=()=>{l.current!==0&&(p(),i(...u))},w=()=>{p()};c.flush=x,c.cancel=w,l.current=window.setTimeout(b,n);return}if(a&&!d){const b=()=>{l.current!==0&&(p(),i(...u))},x=()=>{p()};c.flush=b,c.cancel=x;const w=()=>{p()};l.current=window.setTimeout(w,n);return}const f=()=>{l.current!==0&&(p(),i(...u))},g=()=>{p()};c.flush=f,c.cancel=g,l.current=window.setTimeout(f,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return S.useEffect(()=>()=>{o?s.flush():s.cancel()},[s,o]),s}const cnt=["mousedown","touchstart"];function Ore(e,r,n){const o=S.useRef(null),a=r||cnt;return S.useEffect(()=>{const i=l=>{const{target:s}=l??{};if(Array.isArray(n)){const c=!document.body.contains(s)&&s?.tagName!=="HTML";n.every(u=>!!u&&!l.composedPath().includes(u))&&!c&&e(l)}else o.current&&!o.current.contains(s)&&e(l)};return a.forEach(l=>document.addEventListener(l,i)),()=>{a.forEach(l=>document.removeEventListener(l,i))}},[o,e,n]),o}function unt(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function dnt(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function pnt(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=S.useState(n?r:dnt(e));return S.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),unt(i,l=>a(l.matches))}catch{return}},[e]),o||!1}const BR=typeof document<"u"?S.useLayoutEffect:S.useEffect;function $p(e,r){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function Ire({opened:e,shouldReturnFocus:r=!0}){const n=S.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return $p(()=>{let a=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const hnt=/input|select|textarea|button|object/,zre="a, input, select, textarea, button, object, [tabindex]";function fnt(e){return e.style.display==="none"}function mnt(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(fnt(r))return!1;r=r.parentNode}return!0}function Lre(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function jR(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(Lre(e));return(hnt.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&mnt(e)}function Bre(e){const r=Lre(e);return(Number.isNaN(r)||r>=0)&&jR(e)}function gnt(e){return Array.from(e.querySelectorAll(zre)).filter(Bre)}function ynt(e,r){const n=gnt(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const l=a.activeElement;if(l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===l.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const s=n[r.shiftKey?n.length-1:0];s&&s.focus()}function bnt(e=!0){const r=S.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const l=Array.from(a.querySelectorAll(zre));i=l.find(Bre)||l.find(jR)||null,!i&&jR(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=S.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return S.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&ynt(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const vnt=Qr.useId||(()=>{});function xnt(){const e=vnt();return e?`mantine-${e.replace(/:/g,"")}`:""}function Sl(e){const r=xnt(),[n,o]=S.useState(r);return BR(()=>{o(LR())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function wnt(e,r,n){S.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function FR(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function jre(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=FR(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():FR(o,null)}),r.clear()}}}function on(...e){return S.useCallback(jre(...e),e)}function knt(e,r,n="ltr"){const o=S.useRef(!1),a=S.useRef(!1),i=S.useRef(0),[l,s]=S.useState(!1),c=S.useRef(null);return S.useEffect(()=>{o.current=!0},[]),{ref:S.useCallback(u=>{if(c.current&&(c.current(),c.current=null),!u)return;const d=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const R=u.getBoundingClientRect();if(R.width&&R.height){const A=zm((_-R.left)/R.width,0,1);e({x:n==="ltr"?A:1-A,y:zm((T-R.top)/R.height,0,1)})}}})},p=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",b),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",b)},f=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),s(!0),p())},b=()=>{a.current&&o.current&&(a.current=!1,s(!1),f(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>d({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),d({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};u.addEventListener("mousedown",x),u.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{u.removeEventListener("mousedown",x),u.removeEventListener("touchstart",k)}},[n,e]),active:l}}function ju({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=S.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(s,...c)=>{i(s),o?.(s,...c)},!1]}function HR(e,r){return pnt("(prefers-reduced-motion: reduce)",e,r)}function _nt(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n<e.length;n+=1)if(!snt(e[n],r[n]))return!1;return!0}function Ent(e){const r=S.useRef([]),n=S.useRef(0);return _nt(r.current,e)||(r.current=e,n.current+=1),[n.current]}function Snt(e,r){S.useEffect(e,Ent(r))}function Cnt(e=!1,r={}){const[n,o]=S.useState(e),a=S.useCallback(()=>{o(s=>s||(r.onOpen?.(),!0))},[r.onOpen]),i=S.useCallback(()=>{o(s=>s&&(r.onClose?.(),!1))},[r.onClose]),l=S.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:l}]}function Tnt(e,r,n={autoInvoke:!1}){const o=S.useRef(null),a=S.useCallback((...l)=>{o.current||(o.current=window.setTimeout(()=>{e(l),o.current=null},r))},[r]),i=S.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return S.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function Rnt(e){const r=S.useRef(void 0);return S.useEffect(()=>{r.current=e},[e]),r.current}function Ant(e,r,n){const o=S.useRef(null),a=S.useRef(null);return S.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function Nnt(){const[e,r]=S.useState(!1);return S.useEffect(()=>r(!0),[]),e}function Dnt(){return typeof process<"u"&&process.env?"production":"development"}function Fre(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function Hre(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e)<Math.abs(n-e)?o:n)}function R4(e){const r=Qr.version;return typeof Qr.version!="string"||r.startsWith("18.")?e?.ref:e?.props?.ref}function qre(e){var r,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=qre(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function io(){for(var e,r,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=qre(e))&&(o&&(o+=" "),o+=r);return o}const Pnt={};function $nt(e){const r={};return e.forEach(n=>{Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=io(r[o],a):r[o]=a})}),r}function A4({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||Pnt);return $nt(a)}function N4({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const Mnt=S.createContext(null);function Mp(){const e=S.useContext(Mnt);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function Ont(){return Mp().classNamesPrefix}function Int(){return Mp().getStyleNonce}function znt(){return Mp().withStaticClasses}function Lnt(){return Mp().headless}function Bnt(){return Mp().stylesTransform?.sx}function jnt(){return Mp().stylesTransform?.styles}function D4(){return Mp().env||"default"}function Fnt(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Hnt(e){let r=e.replace("#","");if(r.length===3){const l=r.split("");r=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}if(r.length===8){const l=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:l}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function qnt(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function Unt(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,l=n[5]?parseFloat(n[5]):void 0,s=(1-Math.abs(2*i-1))*a,c=o/60,u=s*(1-Math.abs(c%2-1)),d=i-s/2;let p,f,g;return c>=0&&c<1?(p=s,f=u,g=0):c>=1&&c<2?(p=u,f=s,g=0):c>=2&&c<3?(p=0,f=s,g=u):c>=3&&c<4?(p=0,f=u,g=s):c>=4&&c<5?(p=u,f=0,g=s):(p=s,f=0,g=u),{r:Math.round((p+d)*255),g:Math.round((f+d)*255),b:Math.round((g+d)*255),a:l||1}}function Ure(e){return Fnt(e)?Hnt(e):e.startsWith("rgb")?qnt(e):e.startsWith("hsl")?Unt(e):{r:0,g:0,b:0,a:1}}function Jy(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function qR(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Vnt(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function Ynt(e){if(e.startsWith("oklch("))return(Vnt(e)||0)/100;const{r,g:n,b:o}=Ure(e),a=r/255,i=n/255,l=o/255,s=qR(a),c=qR(i),u=qR(l);return .2126*s+.7152*c+.0722*u}function eb(e,r=.179){return e.startsWith("var(")?!1:Ynt(e)>r}function Op({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:eb(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:eb(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:eb(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,l=o in r.colors;if(l){const s=i!==void 0?r.colors[o][i]:r.colors[o][Jy(r,n||"light")];return{color:o,value:s,shade:i,isThemeColor:l,isLight:eb(s,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:eb(e,r.luminanceThreshold),shade:i,variable:void 0}}function Wo(e,r){const n=Op({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function Wnt(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Wo(n.from,r),a=Wo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function Vre(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=Ure(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const Lm=Vre,Gnt={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Yre="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Xnt={scale:1,fontSmoothing:!0,white:"#fff",black:"#000",colors:Gnt,primaryShade:{light:6,dark:8},primaryColor:"blue",autoContrast:!1,luminanceThreshold:.3,fontFamily:Yre,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",cursorType:"default",defaultRadius:"sm",headings:{fontFamily:Yre,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Fe(34),lineHeight:"1.3"},h2:{fontSize:Fe(26),lineHeight:"1.35"},h3:{fontSize:Fe(22),lineHeight:"1.4"},h4:{fontSize:Fe(18),lineHeight:"1.45"},h5:{fontSize:Fe(16),lineHeight:"1.5"},h6:{fontSize:Fe(14),lineHeight:"1.5"}}},fontSizes:{xs:Fe(12),sm:Fe(14),md:Fe(16),lg:Fe(18),xl:Fe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Fe(2),sm:Fe(4),md:Fe(8),lg:Fe(16),xl:Fe(32)},spacing:{xs:Fe(10),sm:Fe(12),md:Fe(16),lg:Fe(20),xl:Fe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), 0 ${Fe(1)} ${Fe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(10)} ${Fe(15)} ${Fe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Fe(7)} ${Fe(7)} ${Fe(-5)}`,md:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(20)} ${Fe(25)} ${Fe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Fe(10)} ${Fe(10)} ${Fe(-5)}`,lg:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(28)} ${Fe(23)} ${Fe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Fe(12)} ${Fe(12)} ${Fe(-7)}`,xl:`0 ${Fe(1)} ${Fe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Fe(36)} ${Fe(28)} ${Fe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Fe(17)} ${Fe(17)} ${Fe(-7)}`}},Knt=S.createContext(null);function vo(){const e=S.useContext(Knt);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function UR({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&Op({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Wre(e,r){return UR({color:e.colors[e.primaryColor][Jy(e,r)],theme:e,autoContrast:null})}function P4({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const s=Jy(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${s===9?8:s+1})`,[`--mantine-color-${o}-light`]:Lm(e.colors[r][s],.1),[`--mantine-color-${o}-light-hover`]:Lm(e.colors[r][s],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-outline-hover`]:Lm(e.colors[r][s],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=Jy(e,"dark"),l={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:Lm(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:Lm(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:Lm(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...l}:l}function Znt(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Bm(e,r,n){Oo(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}(e=>{const r=Jy(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Fe(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Wre(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Wre(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Bm(o.variables,e.breakpoints,"breakpoint"),Bm(o.variables,e.spacing,"spacing"),Bm(o.variables,e.fontSizes,"font-size"),Bm(o.variables,e.lineHeights,"line-height"),Bm(o.variables,e.shadows,"shadow"),Bm(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{o.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),Oo(e.colors).forEach(i=>{const l=e.colors[i];if(Znt(l)){Object.assign(o.light,P4({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,P4({theme:e,name:l.name,color:l.dark,colorScheme:"dark",withColorValues:!0}));return}l.forEach((s,c)=>{o.variables[`--mantine-color-${i}-${c}`]=s}),Object.assign(o.light,P4({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,P4({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return Oo(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o})(Xnt);function VR({classNames:e,styles:r,props:n,stylesCtx:o}){const a=vo();return{resolvedClassNames:A4({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:N4({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const Qnt={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Jnt({theme:e,options:r,unstyled:n}){return io(r?.focusable&&!n&&(e.focusClassName||Qnt[e.focusRing]),r?.active&&!n&&e.activeClassName)}function eot({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return A4({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function Gre({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return A4({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function tot({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function rot({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function not({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function oot({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>A4({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function aot({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function iot({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:l,unstyled:s,className:c,rootSelector:u,props:d,stylesCtx:p,withStaticClasses:f,headless:g,transformedStyles:b}){return io(Jnt({theme:e,options:r,unstyled:s||g}),oot({theme:e,themeName:n,selector:o,props:d,stylesCtx:p}),aot({options:r,classes:l,selector:o,unstyled:s}),Gre({selector:o,stylesCtx:p,theme:e,classNames:i,props:d}),Gre({selector:o,stylesCtx:p,theme:e,classNames:b,props:d}),eot({selector:o,stylesCtx:p,options:r,props:d,theme:e}),tot({rootSelector:u,selector:o,className:c}),rot({selector:o,classes:l,unstyled:s||g}),f&&!g&&not({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function lot({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>N4({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,l)=>({...i,...l}),{})}function YR({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...YR({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function sot(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...Bu(n[o])}}),r),{})}function cot({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:l,headless:s}){return sot([s?{}:r?.(n,o,a),...l.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function uot({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:l,styles:s,style:c,vars:u,varsResolver:d,headless:p,withStylesTransform:f}){return{...!f&&lot({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&N4({theme:e,styles:s,props:a,stylesCtx:i})[n],...!f&&N4({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...cot({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:p}),...l===n?YR({style:c,theme:e}):null,...YR({style:o?.style,theme:e})}}function dot({props:e,stylesCtx:r,themeName:n}){const o=vo(),a=jnt()?.();return{getTransformedStyles:i=>a?[...i.map(l=>a(l,{props:e,theme:o,ctx:r})),...n.map(l=>a(o.components[l]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function ht({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:l="root",unstyled:s,classNames:c,styles:u,vars:d,varsResolver:p,attributes:f}){const g=vo(),b=Ont(),x=znt(),w=Lnt(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=dot({props:n,stylesCtx:o,themeName:k});return(T,R)=>({className:iot({theme:g,options:R,themeName:k,selector:T,classNamesPrefix:b,classNames:c,classes:r,unstyled:s,className:a,rootSelector:l,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([R?.styles,u])}),style:uot({theme:g,themeName:k,selector:T,options:R,props:n,stylesCtx:o,rootSelector:l,styles:u,style:i,vars:d,varsResolver:p,headless:w,withStylesTransform:C}),...f?.[T]})}function pot(e,r){return typeof e=="boolean"?e:r.autoContrast}function Pe(e,r,n){const o=vo(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...Bu(n)}}function WR(e){return Oo(e).reduce((r,n)=>e[n]!==void 0?`${r}${Qrt(n)}:${e[n]};`:r,"").trim()}function hot({selector:e,styles:r,media:n,container:o}){const a=r?WR(r):"",i=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${WR(s.styles)}}}`):[],l=Array.isArray(o)?o.map(s=>`@container ${s.query}{${e}{${WR(s.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${l.join("")}`.trim()}function jm(e){const r=Int();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:hot(e)}})}function GR(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:l,mr:s,me:c,ms:u,p:d,px:p,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:R,c:A,opacity:D,ff:N,fz:$,fw:O,lts:j,ta:L,lh:Y,fs:M,tt:q,td:z,w:H,miw:U,maw:K,h:V,mih:X,mah:Z,bgsz:B,bgp:W,bgr:Q,bga:J,pos:ne,top:te,left:ee,bottom:pe,right:Te,inset:ce,display:de,flex:xe,hiddenFrom:De,visibleFrom:Ge,lightHidden:et,darkHidden:ft,sx:Ze,...Et}=e;return{styleProps:Bu({m:r,mx:n,my:o,mt:a,mb:i,ml:l,mr:s,me:c,ms:u,p:d,px:p,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bg:R,c:A,opacity:D,ff:N,fz:$,fw:O,lts:j,ta:L,lh:Y,fs:M,tt:q,td:z,w:H,miw:U,maw:K,h:V,mih:X,mah:Z,bgsz:B,bgp:W,bgr:Q,bga:J,pos:ne,top:te,left:ee,bottom:pe,right:Te,inset:ce,display:de,flex:xe,bdrs:T,hiddenFrom:De,visibleFrom:Ge,lightHidden:et,darkHidden:ft,sx:Ze}),rest:Et}}const fot={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function XR(e,r){const n=Op({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function mot(e,r){const n=Op({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:XR(e,r)}function got(e,r){if(typeof e=="number")return Fe(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(l=>l.trim()!=="");let i=`${Fe(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${XR(a.join(" "),r)}`),i.trim()}return e}const Xre={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function yot(e){return typeof e=="string"&&e in Xre?Xre[e]:e}const bot=["h1","h2","h3","h4","h5","h6"];function vot(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&bot.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Fe(e):e}function xot(e){return e}const wot=["h1","h2","h3","h4","h5","h6"];function kot(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&wot.includes(e)?`var(--mantine-${e}-line-height)`:e}function _ot(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Fe(e):e}function Eot(e){return typeof e=="number"?Fe(e):e}function Sot(e,r){if(typeof e=="number")return Fe(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return Fe(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const KR={color:XR,textColor:mot,fontSize:vot,spacing:Sot,radius:_ot,identity:xot,size:Eot,lineHeight:kot,fontFamily:yot,border:got};function Kre(e){return e.replace("(min-width: ","").replace("em)","")}function Cot({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(Kre(o))-Number(Kre(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function Tot(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function Rot(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Aot(e){return typeof e=="object"&&e!==null?Oo(e).filter(r=>r!=="base"):[]}function Not(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function Zre({styleProps:e,data:r,theme:n}){return Cot(Oo(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],l=Array.isArray(i.property)?i.property:[i.property],s=Rot(e[a]);if(!Tot(e[a]))return l.forEach(u=>{o.inlineStyles[u]=KR[i.type](s,n)}),o;o.hasResponsiveStyles=!0;const c=Aot(e[a]);return l.forEach(u=>{s!=null&&(o.styles[u]=KR[i.type](s,n)),c.forEach(d=>{const p=`(min-width: ${n.breakpoints[d]})`;o.media[p]={...o.media[p],[u]:KR[i.type](Not(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function tb(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function ZR(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...ZR(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Qre(e){return e.startsWith("data-")?e:`data-${e}`}function Dot(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[Qre(n)]=e[n]),r},{})}function Jre(e){return e?typeof e=="string"?{[Qre(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...Jre(n)}),{}):Dot(e):null}function QR(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...QR(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Pot({theme:e,style:r,vars:n,styleProps:o}){const a=QR(r,e),i=QR(n,e);return{...a,...i,...o}}const ene=S.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:l,hiddenFrom:s,visibleFrom:c,lightHidden:u,darkHidden:d,renderRoot:p,__size:f,...g},b)=>{const x=vo(),w=e||"div",{styleProps:k,rest:C}=GR(g),_=Bnt()?.()?.(k.sx),T=tb(),R=Zre({styleProps:k,theme:x,data:fot}),A={ref:b,style:Pot({theme:x,style:r,vars:n,styleProps:R.inlineStyles}),className:io(o,_,{[T]:R.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":$re(l)?void 0:l||void 0,size:f,...Jre(i),...C};return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(jm,{selector:`.${T}`,styles:R.styles,media:R.media}),typeof p=="function"?p(A):y.jsx(w,{...A})]})});ene.displayName="@mantine/core/Box";const Oe=ene;function tne(e){return e}function Ke(e){const r=S.forwardRef(e);return r.extend=tne,r.withProps=n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function Un(e){const r=S.forwardRef(e);return r.withProps=n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=tne,r}const $ot=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function hc(){return S.useContext($ot)}function Mot(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function JR(e){return e?.current?e.current.scrollHeight:"auto"}const $4=typeof window<"u"&&window.requestAnimationFrame,rne=0,Oot=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function Iot({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=S.useRef(null),l=Oot(a),[s,c]=S.useState(o?{}:l),u=b=>{Fi.flushSync(()=>c(b))},d=b=>{u(x=>({...x,...b}))};function p(b){const x=e||Mot(b);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}$p(()=>{typeof $4=="function"&&$4(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),$4(()=>{const b=JR(i);d({...p(b),height:b})})}:()=>{const b=JR(i);d({...p(b),willChange:"height",height:b}),$4(()=>d({height:rne,overflow:"hidden"}))})},[o]);const f=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(o){const x=JR(i);x===s.height?u({}):d({height:x}),n()}else s.height===rne&&(u(l),n())};function g({style:b={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:jre(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...b,...s}};return Qr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const zot={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},nne=Ke((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:l,onTransitionEnd:s,animateOpacity:c,keepMounted:u,...d}=Pe("Collapse",zot,e),p=vo(),f=HR(),g=p.respectReducedMotion&&f?0:a,b=Iot({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:s,keepMounted:u});return g===0?o?y.jsx(Oe,{...d,children:n}):null:y.jsx(Oe,{...b({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...ZR(l,p)},ref:r,...d}),children:n})});nne.displayName="@mantine/core/Collapse";function M4(){return typeof window<"u"}function Fm(e){return one(e)?(e.nodeName||"").toLowerCase():"#document"}function la(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function ps(e){var r;return(r=(one(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function one(e){return M4()?e instanceof Node||e instanceof la(e).Node:!1}function zr(e){return M4()?e instanceof Element||e instanceof la(e).Element:!1}function za(e){return M4()?e instanceof HTMLElement||e instanceof la(e).HTMLElement:!1}function eA(e){return!M4()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof la(e).ShadowRoot}const Lot=new Set(["inline","contents"]);function rb(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=ki(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!Lot.has(a)}const Bot=new Set(["table","td","th"]);function jot(e){return Bot.has(Fm(e))}const Fot=[":popover-open",":modal"];function O4(e){return Fot.some(r=>{try{return e.matches(r)}catch{return!1}})}const Hot=["transform","translate","scale","rotate","perspective"],qot=["transform","translate","scale","rotate","perspective","filter"],Uot=["paint","layout","strict","content"];function tA(e){const r=I4(),n=zr(e)?ki(e):e;return Hot.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||qot.some(o=>(n.willChange||"").includes(o))||Uot.some(o=>(n.contain||"").includes(o))}function Vot(e){let r=mc(e);for(;za(r)&&!fc(r);){if(tA(r))return r;if(O4(r))return null;r=mc(r)}return null}function I4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yot=new Set(["html","body","#document"]);function fc(e){return Yot.has(Fm(e))}function ki(e){return la(e).getComputedStyle(e)}function z4(e){return zr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mc(e){if(Fm(e)==="html")return e;const r=e.assignedSlot||e.parentNode||eA(e)&&e.host||ps(e);return eA(r)?r.host:r}function ane(e){const r=mc(e);return fc(r)?e.ownerDocument?e.ownerDocument.body:e.body:za(r)&&rb(r)?r:ane(r)}function gc(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=ane(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),l=la(a);if(i){const s=rA(l);return r.concat(l,l.visualViewport||[],rb(a)?a:[],s&&n?gc(s):[])}return r.concat(a,gc(a,[],n))}function rA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Wot=["top","right","bottom","left"],Cl=Math.min,zo=Math.max,L4=Math.round,B4=Math.floor,hs=e=>({x:e,y:e}),Got={left:"right",right:"left",bottom:"top",top:"bottom"},Xot={start:"end",end:"start"};function nA(e,r,n){return zo(e,Cl(r,n))}function fs(e,r){return typeof e=="function"?e(r):e}function Tl(e){return e.split("-")[0]}function Hm(e){return e.split("-")[1]}function oA(e){return e==="x"?"y":"x"}function aA(e){return e==="y"?"height":"width"}const Kot=new Set(["top","bottom"]);function Rl(e){return Kot.has(Tl(e))?"y":"x"}function iA(e){return oA(Rl(e))}function Zot(e,r,n){n===void 0&&(n=!1);const o=Hm(e),a=iA(e),i=aA(a);let l=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=j4(l)),[l,j4(l)]}function Qot(e){const r=j4(e);return[lA(e),r,lA(r)]}function lA(e){return e.replace(/start|end/g,r=>Xot[r])}const ine=["left","right"],lne=["right","left"],Jot=["top","bottom"],eat=["bottom","top"];function tat(e,r,n){switch(e){case"top":case"bottom":return n?r?lne:ine:r?ine:lne;case"left":case"right":return r?Jot:eat;default:return[]}}function rat(e,r,n,o){const a=Hm(e);let i=tat(Tl(e),n==="start",o);return a&&(i=i.map(l=>l+"-"+a),r&&(i=i.concat(i.map(lA)))),i}function j4(e){return e.replace(/left|right|bottom|top/g,r=>Got[r])}function nat(e){return{top:0,right:0,bottom:0,left:0,...e}}function sA(e){return typeof e!="number"?nat(e):{top:e,right:e,bottom:e,left:e}}function qm(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function oat(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function aat(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function iat(){return/apple/i.test(navigator.vendor)}function lat(){return oat().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function sat(){return aat().includes("jsdom/")}const sne="data-floating-ui-focusable",cat="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function cne(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function nb(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&eA(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Um(e){return"composedPath"in e?e.composedPath()[0]:e.target}function cA(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function uat(e){return e.matches("html,body")}function Ip(e){return e?.ownerDocument||document}function dat(e){return za(e)&&e.matches(cat)}function pat(e){if(!e||sat())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function hat(e){return e?e.hasAttribute(sne)?e:e.querySelector("["+sne+"]")||e:null}function F4(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...F4(e,o.id,n)])}function fat(e){return"nativeEvent"in e}function uA(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var mat=typeof document<"u",gat=function(){},ms=mat?S.useLayoutEffect:gat;const yat={...Wv};function H4(e){const r=S.useRef(e);return ms(()=>{r.current=e}),r}const bat=yat.useInsertionEffect,vat=bat||(e=>e());function gs(e){const r=S.useRef(()=>{});return vat(()=>{r.current=e}),S.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return r.current==null?void 0:r.current(...o)},[])}function une(e,r,n){let{reference:o,floating:a}=e;const i=Rl(r),l=iA(r),s=aA(l),c=Tl(r),u=i==="y",d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,f=o[s]/2-a[s]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-a.width,y:p};break;default:g={x:o.x,y:o.y}}switch(Hm(r)){case"start":g[l]-=f*(n&&u?-1:1);break;case"end":g[l]+=f*(n&&u?-1:1);break}return g}const xat=async(e,r,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let u=await l.getElementRects({reference:e,floating:r,strategy:a}),{x:d,y:p}=une(u,o,c),f=o,g={},b=0;for(let x=0;x<s.length;x++){const{name:w,fn:k}=s[x],{x:C,y:_,data:T,reset:R}=await k({x:d,y:p,initialPlacement:o,placement:f,strategy:a,middlewareData:g,rects:u,platform:l,elements:{reference:e,floating:r}});d=C??d,p=_??p,g={...g,[w]:{...g[w],...T}},R&&b<=50&&(b++,typeof R=="object"&&(R.placement&&(f=R.placement),R.rects&&(u=R.rects===!0?await l.getElementRects({reference:e,floating:r,strategy:a}):R.rects),{x:d,y:p}=une(u,f,c)),x=-1)}return{x:d,y:p,placement:f,strategy:a,middlewareData:g}};async function ob(e,r){var n;r===void 0&&(r={});const{x:o,y:a,platform:i,rects:l,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:g=0}=fs(r,e),b=sA(g),x=s[f?p==="floating"?"reference":"floating":p],w=qm(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),k=p==="floating"?{x:o,y:a,width:l.floating.width,height:l.floating.height}:l.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},T=qm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:k,offsetParent:C,strategy:c}):k);return{top:(w.top-T.top+b.top)/_.y,bottom:(T.bottom-w.bottom+b.bottom)/_.y,left:(w.left-T.left+b.left)/_.x,right:(T.right-w.right+b.right)/_.x}}const wat=e=>({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:l,elements:s,middlewareData:c}=r,{element:u,padding:d=0}=fs(e,r)||{};if(u==null)return{};const p=sA(d),f={x:n,y:o},g=iA(a),b=aA(g),x=await l.getDimensions(u),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[b]+i.reference[g]-f[g]-i.floating[b],R=f[g]-i.reference[g],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let D=A?A[_]:0;(!D||!await(l.isElement==null?void 0:l.isElement(A)))&&(D=s.floating[_]||i.floating[b]);const N=T/2-R/2,$=D/2-x[b]/2-1,O=Cl(p[k],$),j=Cl(p[C],$),L=O,Y=D-x[b]-j,M=D/2-x[b]/2+N,q=nA(L,M,Y),z=!c.arrow&&Hm(a)!=null&&M!==q&&i.reference[b]/2-(M<L?O:j)-x[b]/2<0,H=z?M<L?M-L:M-Y:0;return{[g]:f[g]+H,data:{[g]:q,centerOffset:M-q-H,...z&&{alignmentOffset:H}},reset:z}}}),kat=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:l,initialPlacement:s,platform:c,elements:u}=r,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...w}=fs(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Tl(a),C=Rl(s),_=Tl(s)===s,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=f||(_||!x?[j4(s)]:Qot(s)),A=b!=="none";!f&&A&&R.push(...rat(s,x,b,T));const D=[s,...R],N=await ob(r,w),$=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&$.push(N[k]),p){const M=Zot(a,l,T);$.push(N[M[0]],N[M[1]])}if(O=[...O,{placement:a,overflows:$}],!$.every(M=>M<=0)){var j,L;const M=(((j=i.flip)==null?void 0:j.index)||0)+1,q=D[M];if(q&&(!(p==="alignment"&&C!==Rl(q))||O.every(H=>Rl(H.placement)===C?H.overflows[0]>0:!0)))return{data:{index:M,overflows:O},reset:{placement:q}};let z=(L=O.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:L.placement;if(!z)switch(g){case"bestFit":{var Y;const H=(Y=O.filter(U=>{if(A){const K=Rl(U.placement);return K===C||K==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(K=>K>0).reduce((K,V)=>K+V,0)]).sort((U,K)=>U[1]-K[1])[0])==null?void 0:Y[0];H&&(z=H);break}case"initialPlacement":z=s;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function dne(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function pne(e){return Wot.some(r=>e[r]>=0)}const _at=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=fs(e,r);switch(o){case"referenceHidden":{const i=await ob(r,{...a,elementContext:"reference"}),l=dne(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:pne(l)}}}case"escaped":{const i=await ob(r,{...a,altBoundary:!0}),l=dne(i,n.floating);return{data:{escapedOffsets:l,escaped:pne(l)}}}default:return{}}}}};function hne(e){const r=Cl(...e.map(i=>i.left)),n=Cl(...e.map(i=>i.top)),o=zo(...e.map(i=>i.right)),a=zo(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function Eat(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;a<r.length;a++){const i=r[a];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>qm(hne(a)))}const Sat=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:l}=r,{padding:s=2,x:c,y:u}=fs(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),p=Eat(d),f=qm(hne(d)),g=sA(s);function b(){if(p.length===2&&p[0].left>p[1].right&&c!=null&&u!=null)return p.find(w=>c>w.left-g.left&&c<w.right+g.right&&u>w.top-g.top&&u<w.bottom+g.bottom)||f;if(p.length>=2){if(Rl(n)==="y"){const O=p[0],j=p[p.length-1],L=Tl(n)==="top",Y=O.top,M=j.bottom,q=L?O.left:j.left,z=L?O.right:j.right,H=z-q,U=M-Y;return{top:Y,bottom:M,left:q,right:z,width:H,height:U,x:q,y:Y}}const w=Tl(n)==="left",k=zo(...p.map(O=>O.right)),C=Cl(...p.map(O=>O.left)),_=p.filter(O=>w?O.left===C:O.right===k),T=_[0].top,R=_[_.length-1].bottom,A=C,D=k,N=D-A,$=R-T;return{top:T,bottom:R,left:A,right:D,width:N,height:$,x:A,y:T}}return f}const x=await i.getElementRects({reference:{getBoundingClientRect:b},floating:o.floating,strategy:l});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},fne=new Set(["left","top"]);async function Cat(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),l=Tl(n),s=Hm(n),c=Rl(n)==="y",u=fne.has(l)?-1:1,d=i&&c?-1:1,p=fs(r,e);let{mainAxis:f,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*d,y:f*u}:{x:f*u,y:g*d}}const Tat=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:l,middlewareData:s}=r,c=await Cat(r,e);return l===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:l}}}}},Rat=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=fs(e,r),u={x:n,y:o},d=await ob(r,c),p=Rl(Tl(a)),f=oA(p);let g=u[f],b=u[p];if(i){const w=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=g+d[w],_=g-d[k];g=nA(C,g,_)}if(l){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=b+d[w],_=b-d[k];b=nA(C,b,_)}const x=s.fn({...r,[f]:g,[p]:b});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[f]:i,[p]:l}}}}}},Aat=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:l}=r,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=fs(e,r),d={x:n,y:o},p=Rl(a),f=oA(p);let g=d[f],b=d[p];const x=fs(s,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=f==="y"?"height":"width",T=i.reference[f]-i.floating[_]+w.mainAxis,R=i.reference[f]+i.reference[_]-w.mainAxis;g<T?g=T:g>R&&(g=R)}if(u){var k,C;const _=f==="y"?"width":"height",T=fne.has(Tl(a)),R=i.reference[p]-i.floating[_]+(T&&((k=l.offset)==null?void 0:k[p])||0)+(T?0:w.crossAxis),A=i.reference[p]+i.reference[_]+(T?0:((C=l.offset)==null?void 0:C[p])||0)-(T?w.crossAxis:0);b<R?b=R:b>A&&(b=A)}return{[f]:g,[p]:b}}}},Nat=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:l,elements:s}=r,{apply:c=()=>{},...u}=fs(e,r),d=await ob(r,u),p=Tl(a),f=Hm(a),g=Rl(a)==="y",{width:b,height:x}=i.floating;let w,k;p==="top"||p==="bottom"?(w=p,k=f===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(k=p,w=f==="end"?"top":"bottom");const C=x-d.top-d.bottom,_=b-d.left-d.right,T=Cl(x-d[w],C),R=Cl(b-d[k],_),A=!r.middlewareData.shift;let D=T,N=R;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(N=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(D=C),A&&!f){const O=zo(d.left,0),j=zo(d.right,0),L=zo(d.top,0),Y=zo(d.bottom,0);g?N=b-2*(O!==0||j!==0?O+j:zo(d.left,d.right)):D=x-2*(L!==0||Y!==0?L+Y:zo(d.top,d.bottom))}await c({...r,availableWidth:N,availableHeight:D});const $=await l.getDimensions(s.floating);return b!==$.width||x!==$.height?{reset:{rects:!0}}:{}}}};function mne(e){const r=ki(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=za(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:o,s=L4(n)!==i||L4(o)!==l;return s&&(n=i,o=l),{width:n,height:o,$:s}}function dA(e){return zr(e)?e:e.contextElement}function Vm(e){const r=dA(e);if(!za(r))return hs(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=mne(r);let l=(i?L4(n.width):n.width)/o,s=(i?L4(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Dat=hs(0);function gne(e){const r=la(e);return!I4()||!r.visualViewport?Dat:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Pat(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==la(e)?!1:r}function zp(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=dA(e);let l=hs(1);r&&(o?zr(o)&&(l=Vm(o)):l=Vm(e));const s=Pat(i,n,o)?gne(i):hs(0);let c=(a.left+s.x)/l.x,u=(a.top+s.y)/l.y,d=a.width/l.x,p=a.height/l.y;if(i){const f=la(i),g=o&&zr(o)?la(o):o;let b=f,x=rA(b);for(;x&&o&&g!==b;){const w=Vm(x),k=x.getBoundingClientRect(),C=ki(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,p*=w.y,c+=_,u+=T,b=la(x),x=rA(b)}}return qm({width:d,height:p,x:c,y:u})}function q4(e,r){const n=z4(e).scrollLeft;return r?r.left+n:zp(ps(e)).left+n}function yne(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-q4(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function $at(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",l=ps(o),s=r?O4(r.floating):!1;if(o===l||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=hs(1);const d=hs(0),p=za(o);if((p||!p&&!i)&&((Fm(o)!=="body"||rb(l))&&(c=z4(o)),za(o))){const g=zp(o);u=Vm(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const f=l&&!p&&!i?yne(l,c):hs(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-c.scrollTop*u.y+d.y+f.y}}function Mat(e){return Array.from(e.getClientRects())}function Oat(e){const r=ps(e),n=z4(e),o=e.ownerDocument.body,a=zo(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=zo(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+q4(e);const s=-n.scrollTop;return ki(o).direction==="rtl"&&(l+=zo(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:l,y:s}}const bne=25;function Iat(e,r){const n=la(e),o=ps(e),a=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,s=0,c=0;if(a){i=a.width,l=a.height;const d=I4();(!d||d&&r==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const u=q4(o);if(u<=0){const d=o.ownerDocument,p=d.body,f=getComputedStyle(p),g=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-p.clientWidth-g);b<=bne&&(i-=b)}else u<=bne&&(i+=u);return{width:i,height:l,x:s,y:c}}const zat=new Set(["absolute","fixed"]);function Lat(e,r){const n=zp(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=za(e)?Vm(e):hs(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,c=a*i.x,u=o*i.y;return{width:l,height:s,x:c,y:u}}function vne(e,r,n){let o;if(r==="viewport")o=Iat(e,n);else if(r==="document")o=Oat(ps(e));else if(zr(r))o=Lat(r,n);else{const a=gne(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return qm(o)}function xne(e,r){const n=mc(e);return n===r||!zr(n)||fc(n)?!1:ki(n).position==="fixed"||xne(n,r)}function Bat(e,r){const n=r.get(e);if(n)return n;let o=gc(e,[],!1).filter(s=>zr(s)&&Fm(s)!=="body"),a=null;const i=ki(e).position==="fixed";let l=i?mc(e):e;for(;zr(l)&&!fc(l);){const s=ki(l),c=tA(l);!c&&s.position==="fixed"&&(a=null),(i?!c&&!a:!c&&s.position==="static"&&a&&zat.has(a.position)||rb(l)&&!c&&xne(e,l))?o=o.filter(u=>u!==l):a=s,l=mc(l)}return r.set(e,o),o}function jat(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?O4(r)?[]:Bat(r,this._c):[].concat(n),o],l=i[0],s=i.reduce((c,u)=>{const d=vne(r,u,a);return c.top=zo(d.top,c.top),c.right=Cl(d.right,c.right),c.bottom=Cl(d.bottom,c.bottom),c.left=zo(d.left,c.left),c},vne(r,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Fat(e){const{width:r,height:n}=mne(e);return{width:r,height:n}}function Hat(e,r,n){const o=za(r),a=ps(r),i=n==="fixed",l=zp(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=hs(0);function u(){c.x=q4(a)}if(o||!o&&!i)if((Fm(r)!=="body"||rb(a))&&(s=z4(r)),o){const g=zp(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&u();i&&!o&&a&&u();const d=a&&!o&&!i?yne(a,s):hs(0),p=l.left+s.scrollLeft-c.x-d.x,f=l.top+s.scrollTop-c.y-d.y;return{x:p,y:f,width:l.width,height:l.height}}function pA(e){return ki(e).position==="static"}function wne(e,r){if(!za(e)||ki(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return ps(e)===n&&(n=n.ownerDocument.body),n}function kne(e,r){const n=la(e);if(O4(e))return n;if(!za(e)){let a=mc(e);for(;a&&!fc(a);){if(zr(a)&&!pA(a))return a;a=mc(a)}return n}let o=wne(e,r);for(;o&&jot(o)&&pA(o);)o=wne(o,r);return o&&fc(o)&&pA(o)&&!tA(o)?n:o||Vot(e)||n}const qat=async function(e){const r=this.getOffsetParent||kne,n=this.getDimensions,o=await n(e.floating);return{reference:Hat(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Uat(e){return ki(e).direction==="rtl"}const Vat={convertOffsetParentRelativeRectToViewportRelativeRect:$at,getDocumentElement:ps,getClippingRect:jat,getOffsetParent:kne,getElementRects:qat,getClientRects:Mat,getDimensions:Fat,getScale:Vm,isElement:zr,isRTL:Uat};function _ne(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Yat(e,r){let n=null,o;const a=ps(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:p,width:f,height:g}=u;if(s||r(),!f||!g)return;const b=B4(p),x=B4(a.clientWidth-(d+f)),w=B4(a.clientHeight-(p+g)),k=B4(d),C={rootMargin:-b+"px "+-x+"px "+-w+"px "+-k+"px",threshold:zo(0,Cl(1,c))||1};let _=!0;function T(R){const A=R[0].intersectionRatio;if(A!==c){if(!_)return l();A?l(!1,A):o=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!_ne(u,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return l(!0),i}function hA(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=dA(e),d=a||i?[...u?gc(u):[],...gc(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=u&&s?Yat(u,n):null;let f=-1,g=null;l&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),u&&!c&&g.observe(u),g.observe(r));let b,x=c?zp(e):null;c&&w();function w(){const k=zp(e);x&&!_ne(x,k)&&n(),x=k,b=requestAnimationFrame(w)}return n(),()=>{var k;d.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),p?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Wat=Tat,Gat=Rat,Xat=kat,Kat=Nat,Zat=_at,Ene=wat,Qat=Sat,Jat=Aat,eit=(e,r,n)=>{const o=new Map,a={platform:Vat,...n},i={...a.platform,_c:o};return xat(e,r,{...a,platform:i})};var tit=typeof document<"u",rit=function(){},U4=tit?S.useLayoutEffect:rit;function V4(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!V4(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!V4(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Sne(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cne(e,r){const n=Sne(e);return Math.round(r*n)/n}function fA(e){const r=S.useRef(e);return U4(()=>{r.current=e}),r}function nit(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,p]=S.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=S.useState(o);V4(f,o)||g(o);const[b,x]=S.useState(null),[w,k]=S.useState(null),C=S.useCallback(U=>{U!==A.current&&(A.current=U,x(U))},[]),_=S.useCallback(U=>{U!==D.current&&(D.current=U,k(U))},[]),T=i||b,R=l||w,A=S.useRef(null),D=S.useRef(null),N=S.useRef(d),$=c!=null,O=fA(c),j=fA(a),L=fA(u),Y=S.useCallback(()=>{if(!A.current||!D.current)return;const U={placement:r,strategy:n,middleware:f};j.current&&(U.platform=j.current),eit(A.current,D.current,U).then(K=>{const V={...K,isPositioned:L.current!==!1};M.current&&!V4(N.current,V)&&(N.current=V,Fi.flushSync(()=>{p(V)}))})},[f,r,n,j,L]);U4(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(U=>({...U,isPositioned:!1})))},[u]);const M=S.useRef(!1);U4(()=>(M.current=!0,()=>{M.current=!1}),[]),U4(()=>{if(T&&(A.current=T),R&&(D.current=R),T&&R){if(O.current)return O.current(T,R,Y);Y()}},[T,R,Y,O,$]);const q=S.useMemo(()=>({reference:A,floating:D,setReference:C,setFloating:_}),[C,_]),z=S.useMemo(()=>({reference:T,floating:R}),[T,R]),H=S.useMemo(()=>{const U={position:n,left:0,top:0};if(!z.floating)return U;const K=Cne(z.floating,d.x),V=Cne(z.floating,d.y);return s?{...U,transform:"translate("+K+"px, "+V+"px)",...Sne(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:V}},[n,s,z.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:Y,refs:q,elements:z,floatingStyles:H}),[d,Y,q,z,H])}const oit=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?Ene({element:o.current,padding:a}).fn(n):{}:o?Ene({element:o,padding:a}).fn(n):{}}}},Tne=(e,r)=>({...Wat(e),options:[e,r]}),mA=(e,r)=>({...Gat(e),options:[e,r]}),Rne=(e,r)=>({...Jat(e),options:[e,r]}),Y4=(e,r)=>({...Xat(e),options:[e,r]}),ait=(e,r)=>({...Kat(e),options:[e,r]}),iit=(e,r)=>({...Zat(e),options:[e,r]}),ab=(e,r)=>({...Qat(e),options:[e,r]}),Ane=(e,r)=>({...oit(e),options:[e,r]});function Nne(e){const r=S.useRef(void 0),n=S.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const l=i,s=l(o);return typeof s=="function"?s:()=>{l(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const lit="data-floating-ui-focusable",Dne="active",Pne="selected",sit={...Wv};let $ne=!1,cit=0;const Mne=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cit++;function uit(){const[e,r]=S.useState(()=>$ne?Mne():void 0);return ms(()=>{e==null&&r(Mne())},[]),S.useEffect(()=>{$ne=!0},[]),e}const dit=sit.useId,One=dit||uit;function pit(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const hit=S.createContext(null),fit=S.createContext(null),gA=()=>{var e;return((e=S.useContext(hit))==null?void 0:e.id)||null},yA=()=>S.useContext(fit);function bA(e){return"data-floating-ui-"+e}function _i(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const Ine=bA("safe-polygon");function W4(e,r,n){if(n&&!uA(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function vA(e){return typeof e=="function"?e():e}function mit(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:l}=e,{enabled:s=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:p=0,move:f=!0}=r,g=yA(),b=gA(),x=H4(u),w=H4(c),k=H4(n),C=H4(p),_=S.useRef(),T=S.useRef(-1),R=S.useRef(),A=S.useRef(-1),D=S.useRef(!0),N=S.useRef(!1),$=S.useRef(()=>{}),O=S.useRef(!1),j=gs(()=>{var H;const U=(H=a.current.openEvent)==null?void 0:H.type;return U?.includes("mouse")&&U!=="mousedown"});S.useEffect(()=>{if(!s)return;function H(U){let{open:K}=U;K||(_i(T),_i(A),D.current=!0,O.current=!1)}return i.on("openchange",H),()=>{i.off("openchange",H)}},[s,i]),S.useEffect(()=>{if(!s||!x.current||!n)return;function H(K){j()&&o(!1,K,"hover")}const U=Ip(l.floating).documentElement;return U.addEventListener("mouseleave",H),()=>{U.removeEventListener("mouseleave",H)}},[l.floating,n,o,s,x,j]);const L=S.useCallback(function(H,U,K){U===void 0&&(U=!0),K===void 0&&(K="hover");const V=W4(w.current,"close",_.current);V&&!R.current?(_i(T),T.current=window.setTimeout(()=>o(!1,H,K),V)):U&&(_i(T),o(!1,H,K))},[w,o]),Y=gs(()=>{$.current(),R.current=void 0}),M=gs(()=>{if(N.current){const H=Ip(l.floating).body;H.style.pointerEvents="",H.removeAttribute(Ine),N.current=!1}}),q=gs(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);S.useEffect(()=>{if(!s)return;function H(Z){if(_i(T),D.current=!1,d&&!uA(_.current)||vA(C.current)>0&&!W4(w.current,"open"))return;const B=W4(w.current,"open",_.current);B?T.current=window.setTimeout(()=>{k.current||o(!0,Z,"hover")},B):n||o(!0,Z,"hover")}function U(Z){if(q()){M();return}$.current();const B=Ip(l.floating);if(_i(A),O.current=!1,x.current&&a.current.floatingContext){n||_i(T),R.current=x.current({...a.current.floatingContext,tree:g,x:Z.clientX,y:Z.clientY,onClose(){M(),Y(),q()||L(Z,!0,"safe-polygon")}});const W=R.current;B.addEventListener("mousemove",W),$.current=()=>{B.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!nb(l.floating,Z.relatedTarget))&&L(Z)}function K(Z){q()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Z.clientX,y:Z.clientY,onClose(){M(),Y(),q()||L(Z)}})(Z))}function V(){_i(T)}function X(Z){q()||L(Z,!1)}if(zr(l.domReference)){const Z=l.domReference,B=l.floating;return n&&Z.addEventListener("mouseleave",K),f&&Z.addEventListener("mousemove",H,{once:!0}),Z.addEventListener("mouseenter",H),Z.addEventListener("mouseleave",U),B&&(B.addEventListener("mouseleave",K),B.addEventListener("mouseenter",V),B.addEventListener("mouseleave",X)),()=>{n&&Z.removeEventListener("mouseleave",K),f&&Z.removeEventListener("mousemove",H),Z.removeEventListener("mouseenter",H),Z.removeEventListener("mouseleave",U),B&&(B.removeEventListener("mouseleave",K),B.removeEventListener("mouseenter",V),B.removeEventListener("mouseleave",X))}}},[l,s,e,d,f,L,Y,M,o,n,k,g,w,x,a,q,C]),ms(()=>{var H;if(s&&n&&(H=x.current)!=null&&(H=H.__options)!=null&&H.blockPointerEvents&&j()){N.current=!0;const K=l.floating;if(zr(l.domReference)&&K){var U;const V=Ip(l.floating).body;V.setAttribute(Ine,"");const X=l.domReference,Z=g==null||(U=g.nodesRef.current.find(B=>B.id===b))==null||(U=U.context)==null?void 0:U.elements.floating;return Z&&(Z.style.pointerEvents=""),V.style.pointerEvents="none",X.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{V.style.pointerEvents="",X.style.pointerEvents="",K.style.pointerEvents=""}}}},[s,n,b,l,g,x,j]),ms(()=>{n||(_.current=void 0,O.current=!1,Y(),M())},[n,Y,M]),S.useEffect(()=>()=>{Y(),_i(T),_i(A),M()},[s,l.domReference,Y,M]);const z=S.useMemo(()=>{function H(U){_.current=U.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(U){const{nativeEvent:K}=U;function V(){!D.current&&!k.current&&o(!0,K,"hover")}d&&!uA(_.current)||n||vA(C.current)===0||O.current&&U.movementX**2+U.movementY**2<2||(_i(A),_.current==="touch"?V():(O.current=!0,A.current=window.setTimeout(V,vA(C.current))))}}},[d,o,n,k,C]);return S.useMemo(()=>s?{reference:z}:{},[s,z])}const xA=()=>{},zne=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:xA,setState:xA,isInstantPhase:!1}),git=()=>S.useContext(zne);function Lne(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=S.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),l=S.useRef(null),s=S.useCallback(c=>{i({currentId:c})},[]);return ms(()=>{a.currentId?l.current===null?l.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),l.current=null)},[a.currentId,a.isInstantPhase]),y.jsx(zne.Provider,{value:S.useMemo(()=>({...a,setState:i,setCurrentId:s}),[a,s]),children:r})}function yit(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:l=!0}=r,s=i??a,c=git(),{currentId:u,setCurrentId:d,initialDelay:p,setState:f,timeoutMs:g}=c;return ms(()=>{l&&u&&(f({delay:{open:1,close:W4(p,"close")}}),u!==s&&o(!1))},[l,s,o,f,u,p]),ms(()=>{function b(){o(!1),f({delay:p,currentId:null})}if(l&&u&&!n&&u===s){if(g){const x=window.setTimeout(b,g);return()=>{clearTimeout(x)}}b()}},[l,n,f,u,s,o,p,g]),ms(()=>{l&&(d===xA||!n||d(s))},[l,n,d,s]),c}const bit={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vit={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Bne=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function xit(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:l=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:b}=r,x=yA(),w=gs(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=S.useRef(!1),{escapeKey:_,outsidePress:T}=Bne(g),{escapeKey:R,outsidePress:A}=Bne(b),D=S.useRef(!1),N=gs(M=>{var q;if(!n||!l||!s||M.key!=="Escape"||D.current)return;const z=(q=i.current.floatingContext)==null?void 0:q.nodeId,H=x?F4(x.nodesRef.current,z):[];if(!_&&(M.stopPropagation(),H.length>0)){let U=!0;if(H.forEach(K=>{var V;if((V=K.context)!=null&&V.open&&!K.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}o(!1,fat(M)?M.nativeEvent:M,"escape-key")}),$=gs(M=>{var q;const z=()=>{var H;N(M),(H=Um(M))==null||H.removeEventListener("keydown",z)};(q=Um(M))==null||q.addEventListener("keydown",z)}),O=gs(M=>{var q;const z=i.current.insideReactTree;i.current.insideReactTree=!1;const H=C.current;if(C.current=!1,u==="click"&&H||z||typeof k=="function"&&!k(M))return;const U=Um(M),K="["+bA("inert")+"]",V=Ip(a.floating).querySelectorAll(K);let X=zr(U)?U:null;for(;X&&!fc(X);){const Q=mc(X);if(fc(Q)||!zr(Q))break;X=Q}if(V.length&&zr(U)&&!uat(U)&&!nb(U,a.floating)&&Array.from(V).every(Q=>!nb(X,Q)))return;if(za(U)&&Y){const Q=fc(U),J=ki(U),ne=/auto|scroll/,te=Q||ne.test(J.overflowX),ee=Q||ne.test(J.overflowY),pe=te&&U.clientWidth>0&&U.scrollWidth>U.clientWidth,Te=ee&&U.clientHeight>0&&U.scrollHeight>U.clientHeight,ce=J.direction==="rtl",de=Te&&(ce?M.offsetX<=U.offsetWidth-U.clientWidth:M.offsetX>U.clientWidth),xe=pe&&M.offsetY>U.clientHeight;if(de||xe)return}const Z=(q=i.current.floatingContext)==null?void 0:q.nodeId,B=x&&F4(x.nodesRef.current,Z).some(Q=>{var J;return cA(M,(J=Q.context)==null?void 0:J.elements.floating)});if(cA(M,a.floating)||cA(M,a.domReference)||B)return;const W=x?F4(x.nodesRef.current,Z):[];if(W.length>0){let Q=!0;if(W.forEach(J=>{var ne;if((ne=J.context)!=null&&ne.open&&!J.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}o(!1,M,"outside-press")}),j=gs(M=>{var q;const z=()=>{var H;O(M),(H=Um(M))==null||H.removeEventListener(u,z)};(q=Um(M))==null||q.addEventListener(u,z)});S.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let M=-1;function q(V){o(!1,V,"ancestor-scroll")}function z(){window.clearTimeout(M),D.current=!0}function H(){M=window.setTimeout(()=>{D.current=!1},I4()?5:0)}const U=Ip(a.floating);s&&(U.addEventListener("keydown",R?$:N,R),U.addEventListener("compositionstart",z),U.addEventListener("compositionend",H)),k&&U.addEventListener(u,A?j:O,A);let K=[];return f&&(zr(a.domReference)&&(K=gc(a.domReference)),zr(a.floating)&&(K=K.concat(gc(a.floating))),!zr(a.reference)&&a.reference&&a.reference.contextElement&&(K=K.concat(gc(a.reference.contextElement)))),K=K.filter(V=>{var X;return V!==((X=U.defaultView)==null?void 0:X.visualViewport)}),K.forEach(V=>{V.addEventListener("scroll",q,{passive:!0})}),()=>{s&&(U.removeEventListener("keydown",R?$:N,R),U.removeEventListener("compositionstart",z),U.removeEventListener("compositionend",H)),k&&U.removeEventListener(u,A?j:O,A),K.forEach(V=>{V.removeEventListener("scroll",q)}),window.clearTimeout(M)}},[i,a,s,k,u,n,o,f,l,_,T,N,R,$,O,A,j]),S.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const L=S.useMemo(()=>({onKeyDown:N,...d&&{[bit[p]]:M=>{o(!1,M.nativeEvent,"reference-press")},...p!=="click"&&{onClick(M){o(!1,M.nativeEvent,"reference-press")}}}}),[N,o,d,p]),Y=S.useMemo(()=>({onKeyDown:N,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[vit[u]]:()=>{i.current.insideReactTree=!0}}),[N,u,i]);return S.useMemo(()=>l?{reference:L,floating:Y}:{},[l,L,Y])}function wit(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=One(),i=S.useRef({}),[l]=S.useState(()=>pit()),s=gA()!=null,[c,u]=S.useState(o.reference),d=gs((g,b,x)=>{i.current.openEvent=g?b:void 0,l.emit("openchange",{open:g,event:b,reason:x,nested:s}),n?.(g,b,x)}),p=S.useMemo(()=>({setPositionReference:u}),[]),f=S.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return S.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:f,events:l,floatingId:a,refs:p}),[r,d,f,l,a,p])}function wA(e){e===void 0&&(e={});const{nodeId:r}=e,n=wit({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,l]=S.useState(null),[s,c]=S.useState(null),u=a?.domReference||i,d=S.useRef(null),p=yA();ms(()=>{u&&(d.current=u)},[u]);const f=nit({...e,elements:{...a,...s&&{reference:s}}}),g=S.useCallback(C=>{const _=zr(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),b=S.useCallback(C=>{(zr(C)||C===null)&&(d.current=C,l(C)),(zr(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!zr(C))&&f.refs.setReference(C)},[f.refs]),x=S.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:d}),[f.refs,b,g]),w=S.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),k=S.useMemo(()=>({...f,...o,refs:x,elements:w,nodeId:r}),[f,x,w,r,o]);return ms(()=>{o.dataRef.current.floatingContext=k;const C=p?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),S.useMemo(()=>({...f,context:k,refs:x,elements:w}),[f,x,w,k])}function kA(){return lat()&&iat()}function kit(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:l}=e,{enabled:s=!0,visibleOnly:c=!0}=r,u=S.useRef(!1),d=S.useRef(-1),p=S.useRef(!0);S.useEffect(()=>{if(!s)return;const g=la(l.domReference);function b(){!n&&za(l.domReference)&&l.domReference===cne(Ip(l.domReference))&&(u.current=!0)}function x(){p.current=!0}function w(){p.current=!1}return g.addEventListener("blur",b),kA()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",b),kA()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[l.domReference,n,s]),S.useEffect(()=>{if(!s)return;function g(b){let{reason:x}=b;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,s]),S.useEffect(()=>()=>{_i(d)},[]);const f=S.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const b=Um(g.nativeEvent);if(c&&zr(b)){if(kA()&&!g.relatedTarget){if(!p.current&&!dat(b))return}else if(!pat(b))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const b=g.relatedTarget,x=g.nativeEvent,w=zr(b)&&b.hasAttribute(bA("focus-guard"))&&b.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=cne(l.domReference?l.domReference.ownerDocument:document);!b&&C===l.domReference||nb((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||nb(l.domReference,C)||w||o(!1,x,"focus")})}}),[i,l.domReference,o,c]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}function _A(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[Dne]:l,[Pne]:s,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[lit]:""},...i,...r.map(l=>{const s=l?l[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((l,s)=>(s&&Object.entries(s).forEach(c=>{let[u,d]=c;if(!(a&&[Dne,Pne].includes(u)))if(u.indexOf("on")===0){if(o.has(u)||o.set(u,[]),typeof d=="function"){var p;(p=o.get(u))==null||p.push(d),l[u]=function(){for(var f,g=arguments.length,b=new Array(g),x=0;x<g;x++)b[x]=arguments[x];return(f=o.get(u))==null?void 0:f.map(w=>w(...b)).find(w=>w!==void 0)}}}else l[u]=d}),l),{})}}function _it(e){e===void 0&&(e=[]);const r=e.map(s=>s?.reference),n=e.map(s=>s?.floating),o=e.map(s=>s?.item),a=S.useCallback(s=>_A(s,e,"reference"),r),i=S.useCallback(s=>_A(s,e,"floating"),n),l=S.useCallback(s=>_A(s,e,"item"),o);return S.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:l}),[a,i,l])}const Eit=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sit(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:l}=e,{enabled:s=!0,role:c="dialog"}=r,u=One(),d=((n=i.domReference)==null?void 0:n.id)||u,p=S.useMemo(()=>{var k;return((k=hat(i.floating))==null?void 0:k.id)||l},[i.floating,l]),f=(o=Eit.get(c))!=null?o:c,g=gA()!=null,b=S.useMemo(()=>f==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?p:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":f==="alertdialog"?"dialog":f,"aria-controls":a?p:void 0,...f==="listbox"&&{role:"combobox"},...f==="menu"&&{id:d},...f==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[f,p,g,a,d,c]),x=S.useMemo(()=>{const k={id:p,...f&&{role:f}};return f==="tooltip"||c==="label"?k:{...k,...f==="menu"&&{"aria-labelledby":d}}},[f,p,d,c]),w=S.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:p+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[p,c]);return S.useMemo(()=>s?{reference:b,floating:x,item:w}:{},[s,b,x,w])}const[Cit,Ei]=Ia("ScrollArea.Root component was not found in tree");function Ym(e,r){const n=Pp(r);BR(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const Tit=S.forwardRef((e,r)=>{const{style:n,...o}=e,a=Ei(),[i,l]=S.useState(0),[s,c]=S.useState(0),u=!!(i&&s);return Ym(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),Ym(a.scrollbarY,()=>{const d=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(d),l(d)}),u?y.jsx("div",{...o,ref:r,style:{...n,width:i,height:s}}):null}),Rit=S.forwardRef((e,r)=>{const n=Ei(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx(Tit,{...e,ref:r}):null}),Ait={scrollHideDelay:1e3,type:"hover"},jne=S.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...l}=Pe("ScrollAreaRoot",Ait,e),[s,c]=S.useState(null),[u,d]=S.useState(null),[p,f]=S.useState(null),[g,b]=S.useState(null),[x,w]=S.useState(null),[k,C]=S.useState(0),[_,T]=S.useState(0),[R,A]=S.useState(!1),[D,N]=S.useState(!1),$=on(r,O=>c(O));return y.jsx(Cit,{value:{type:n,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:d,content:p,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:R,onScrollbarXEnabledChange:A,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:D,onScrollbarYEnabledChange:N,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:y.jsx(Oe,{...l,ref:$,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});jne.displayName="@mantine/core/ScrollAreaRoot";function Fne(e,r){const n=e/r;return Number.isNaN(n)?0:n}function G4(e){const r=Fne(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function Hne(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function Nit(e,[r,n]){return Math.min(n,Math.max(r,e))}function qne(e,r,n="ltr"){const o=G4(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,l=r.content-r.viewport,s=i-o,c=n==="ltr"?[0,l]:[l*-1,0],u=Nit(e,c);return Hne([0,l],[0,s])(u)}function Dit(e,r,n,o="ltr"){const a=G4(n),i=a/2,l=r||i,s=a-l,c=n.scrollbar.paddingStart+l,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,p=o==="ltr"?[0,d]:[d*-1,0];return Hne([c,u],p)(e)}function Une(e,r){return e>0&&e<r}function Fu(e){return e?parseInt(e,10):0}function Lp(e,r,{checkForDefaultPrevented:n=!0}={}){return o=>{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[Pit,Vne]=Ia("ScrollAreaScrollbar was not found in tree"),Yne=S.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=e,f=Ei(),[g,b]=S.useState(null),x=on(r,N=>b(N)),w=S.useRef(null),k=S.useRef(""),{viewport:C}=f,_=n.content-n.viewport,T=Pp(u),R=Pp(s),A=T4(d,10),D=N=>{if(w.current){const $=N.clientX-w.current.left,O=N.clientY-w.current.top;c({x:$,y:O})}};return S.useEffect(()=>{const N=$=>{const O=$.target;g?.contains(O)&&T($,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[C,g,_,T]),S.useEffect(R,[n,R]),Ym(g,A),Ym(f.content,A),y.jsx(Pit,{value:{scrollbar:g,hasThumb:o,onThumbChange:Pp(a),onThumbPointerUp:Pp(i),onThumbPositionChange:R,onThumbPointerDown:Pp(l)},children:y.jsx("div",{...p,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:Lp(e.onPointerDown,N=>{N.preventDefault(),N.button===0&&(N.target.setPointerCapture(N.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(N))}),onPointerMove:Lp(e.onPointerMove,D),onPointerUp:Lp(e.onPointerUp,N=>{const $=N.target;$.hasPointerCapture(N.pointerId)&&(N.preventDefault(),$.releasePointerCapture(N.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),Wne=S.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=Ei(),[s,c]=S.useState(),u=S.useRef(null),d=on(r,u,l.onScrollbarXChange);return S.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),y.jsx(Yne,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${G4(n)}px`},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(l.viewport){const g=l.viewport.scrollLeft+p.deltaX;e.onWheelScroll(g),Une(g,f)&&p.preventDefault()}},onResize:()=>{u.current&&l.viewport&&s&&o({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Fu(s.paddingLeft),paddingEnd:Fu(s.paddingRight)}})}})});Wne.displayName="@mantine/core/ScrollAreaScrollbarX";const Gne=S.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=Ei(),[s,c]=S.useState(),u=S.useRef(null),d=on(r,u,l.onScrollbarYChange);return S.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),y.jsx(Yne,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${G4(n)}px`,...a},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(l.viewport){const g=l.viewport.scrollTop+p.deltaY;e.onWheelScroll(g),Une(g,f)&&p.preventDefault()}},onResize:()=>{u.current&&l.viewport&&s&&o({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Fu(s.paddingTop),paddingEnd:Fu(s.paddingBottom)}})}})});Gne.displayName="@mantine/core/ScrollAreaScrollbarY";const X4=S.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=hc(),i=Ei(),l=S.useRef(null),s=S.useRef(0),[c,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Fne(c.viewport,c.content),p={...o,sizes:c,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>{l.current=g},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:g=>{s.current=g}},f=(g,b)=>Dit(g,s.current,c,b);return n==="horizontal"?y.jsx(Wne,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollLeft,b=qne(g,c,a);l.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=f(g,a))}}):n==="vertical"?y.jsx(Gne,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollTop,b=qne(g,c);c.scrollbar.size===0?l.current.style.setProperty("--thumb-opacity","0"):l.current.style.setProperty("--thumb-opacity","1"),l.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=f(g))}}):null});X4.displayName="@mantine/core/ScrollAreaScrollbarVisible";const EA=S.forwardRef((e,r)=>{const n=Ei(),{forceMount:o,...a}=e,[i,l]=S.useState(!1),s=e.orientation==="horizontal",c=T4(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;l(s?u:d)}},10);return Ym(n.viewport,c),Ym(n.content,c),o||i?y.jsx(X4,{"data-state":i?"visible":"hidden",...a,ref:r}):null});EA.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Xne=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Ei(),[i,l]=S.useState(!1);return S.useEffect(()=>{const{scrollArea:s}=a;let c=0;if(s){const u=()=>{window.clearTimeout(c),l(!0)},d=()=>{c=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),n||i?y.jsx(EA,{"data-state":i?"visible":"hidden",...o,ref:r}):null});Xne.displayName="@mantine/core/ScrollAreaScrollbarHover";const $it=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Ei(),i=e.orientation==="horizontal",[l,s]=S.useState("hidden"),c=T4(()=>s("idle"),100);return S.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,a.scrollHideDelay]),S.useEffect(()=>{const{viewport:u}=a,d=i?"scrollLeft":"scrollTop";if(u){let p=u[d];const f=()=>{const g=u[d];p!==g&&(s("scrolling"),c()),p=g};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[a.viewport,i,c]),n||l!=="hidden"?y.jsx(X4,{"data-state":l==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Lp(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Lp(e.onPointerLeave,()=>s("idle"))}):null}),SA=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Ei(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,s=e.orientation==="horizontal";return S.useEffect(()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)}),[s,i,l]),a.type==="hover"?y.jsx(Xne,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx($it,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(EA,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(X4,{...o,ref:r}):null});SA.displayName="@mantine/core/ScrollAreaScrollbar";function Mit(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,s=n.top!==i.top;(l||s)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const Kne=S.forwardRef((e,r)=>{const{style:n,...o}=e,a=Ei(),i=Vne(),{onThumbPositionChange:l}=i,s=on(r,d=>i.onThumbChange(d)),c=S.useRef(void 0),u=T4(()=>{c.current&&(c.current(),c.current=void 0)},100);return S.useEffect(()=>{const{viewport:d}=a;if(d){const p=()=>{if(u(),!c.current){const f=Mit(d,l);c.current=f,l()}};return l(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[a.viewport,u,l]),y.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Lp(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),f=d.clientX-p.left,g=d.clientY-p.top;i.onThumbPointerDown({x:f,y:g})}),onPointerUp:Lp(e.onPointerUp,i.onThumbPointerUp)})});Kne.displayName="@mantine/core/ScrollAreaThumb";const CA=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Vne();return n||a.hasThumb?y.jsx(Kne,{ref:r,...o}):null});CA.displayName="@mantine/core/ScrollAreaThumb";const Zne=S.forwardRef(({children:e,style:r,...n},o)=>{const a=Ei(),i=on(o,a.onViewportChange);return y.jsx(Oe,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:y.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});Zne.displayName="@mantine/core/ScrollAreaViewport";var TA={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Qne={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Oit=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Fe(r),"--scrollarea-over-scroll-behavior":n}}),Bp=Ke((e,r)=>{const n=Pe("ScrollArea",Qne,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,scrollbarSize:c,vars:u,type:d,scrollHideDelay:p,viewportProps:f,viewportRef:g,onScrollPositionChange:b,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:R,...A}=n,[D,N]=S.useState(!1),[$,O]=S.useState(!1),[j,L]=S.useState(!1),Y=ht({name:"ScrollArea",props:n,classes:TA,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:R,vars:u,varsResolver:Oit}),M=S.useRef(null),q=Nne([g,M]);return S.useEffect(()=>{if(!M.current||w!=="present")return;const z=M.current,H=new ResizeObserver(()=>{const{scrollHeight:U,clientHeight:K,scrollWidth:V,clientWidth:X}=z;O(U>K),L(V>X)});return H.observe(z),()=>H.disconnect()},[M,w]),y.jsxs(jne,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:p,ref:r,scrollbars:k,...Y("root"),...A,children:[y.jsx(Zne,{...f,...Y("viewport",{style:f?.style}),ref:q,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!j?"true":void 0,"data-vertical-hidden":w==="present"&&!$?"true":void 0,onScroll:z=>{f?.onScroll?.(z),b?.({x:z.currentTarget.scrollLeft,y:z.currentTarget.scrollTop});const{scrollTop:H,scrollHeight:U,clientHeight:K}=z.currentTarget;H-(U-K)>=-.6&&C?.(),H===0&&_?.()},children:x}),(k==="xy"||k==="x")&&y.jsx(SA,{...Y("scrollbar"),orientation:"horizontal","data-hidden":d==="never"||w==="present"&&!j?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(CA,{...Y("thumb")})}),(k==="xy"||k==="y")&&y.jsx(SA,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!$?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(CA,{...Y("thumb")})}),y.jsx(Rit,{...Y("corner"),"data-hovered":D||void 0,"data-hidden":d==="never"||void 0})]})});Bp.displayName="@mantine/core/ScrollArea";const RA=Ke((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:l,type:s,dir:c,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:p,unstyled:f,variant:g,viewportProps:b,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...R}=Pe("ScrollAreaAutosize",Qne,e),A=S.useRef(null),D=Nne([d,A]),[N,$]=S.useState(!1),O=S.useRef(!1);return S.useEffect(()=>{if(!T)return;const j=A.current;if(!j)return;const L=()=>{const M=j.scrollHeight>j.clientHeight;M!==N&&(O.current?T?.(M):(O.current=!0,M&&T?.(!0)),$(M))};L();const Y=new ResizeObserver(L);return Y.observe(j),()=>Y.disconnect()},[T,N]),y.jsx(Oe,{...R,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:y.jsx(Oe,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:y.jsx(Bp,{classNames:o,styles:a,scrollHideDelay:l,scrollbarSize:i,type:s,dir:c,offsetScrollbars:u,viewportRef:D,onScrollPositionChange:p,unstyled:f,variant:g,viewportProps:b,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});Bp.classes=TA,RA.displayName="@mantine/core/ScrollAreaAutosize",RA.classes=TA,Bp.Autosize=RA;var Jne={root:"m_87cf2631"};const Iit={__staticSelector:"UnstyledButton"},ys=Un((e,r)=>{const n=Pe("UnstyledButton",Iit,e),{className:o,component:a="button",__staticSelector:i,unstyled:l,classNames:s,styles:c,style:u,attributes:d,...p}=n,f=ht({name:i,props:n,classes:Jne,className:o,style:u,classNames:s,styles:c,unstyled:l,attributes:d});return y.jsx(Oe,{...f("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...p})});ys.classes=Jne,ys.displayName="@mantine/core/UnstyledButton";var eoe={root:"m_515a97f8"};const AA=Ke((e,r)=>{const n=Pe("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,attributes:u,...d}=n,p=ht({name:"VisuallyHidden",classes:eoe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:u});return y.jsx(Oe,{component:"span",ref:r,...p("root"),...d})});AA.classes=eoe,AA.displayName="@mantine/core/VisuallyHidden";var toe={root:"m_1b7284a3"};const zit=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:hn(r),"--paper-shadow":IR(n)}}),K4=Un((e,r)=>{const n=Pe("Paper",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,withBorder:c,vars:u,radius:d,shadow:p,variant:f,mod:g,attributes:b,...x}=n,w=ht({name:"Paper",props:n,classes:toe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:u,varsResolver:zit});return y.jsx(Oe,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:f,...x})});K4.classes=toe,K4.displayName="@mantine/core/Paper";function roe(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function noe(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const Lit={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Bit({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:l,dir:s}){const[c,u="center"]=e.split("-"),d={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[Lit[c]]:o},p=-r/2;return c==="left"?{...d,...roe(u,l,n,a),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...roe(u,l,n,a),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...noe(u,i,n,a,s),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...noe(u,i,n,a,s),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Z4=S.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:l,arrowY:s,style:c,...u},d)=>{const{dir:p}=hc();return i?y.jsx("div",{...u,ref:d,style:{...c,...Bit({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:p,arrowX:l,arrowY:s})}}):null});Z4.displayName="@mantine/core/FloatingArrow";function ooe(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var aoe={root:"m_9814e45f"};const jit={zIndex:_l("modal")},Fit=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:l})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&Vre(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Fe(a)})`:void 0,"--overlay-radius":i===void 0?void 0:hn(i),"--overlay-z-index":l?.toString()}}),Wm=Un((e,r)=>{const n=Pe("Overlay",jit,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,fixed:u,center:d,children:p,radius:f,zIndex:g,gradient:b,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,R=ht({name:"Overlay",props:n,classes:aoe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:Fit});return y.jsx(Oe,{ref:r,...R("root"),mod:[{center:d,fixed:u},C],...T,children:p})});Wm.classes=aoe,Wm.displayName="@mantine/core/Overlay";function NA(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function Hit({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||NA(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=NA(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return NA(n)}const qit={reuseTargetNode:!0},ioe=Ke((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=Pe("Portal",qit,e),[l,s]=S.useState(!1),c=S.useRef(null);return BR(()=>(s(!0),c.current=Hit({target:o,reuseTargetNode:a,...i}),FR(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!l||!c.current?null:Fi.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});ioe.displayName="@mantine/core/Portal";const jp=Ke(({withinPortal:e=!0,children:r,...n},o)=>D4()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(ioe,{ref:o,...n,children:r}));jp.displayName="@mantine/core/OptionalPortal";const ib=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Q4={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...ib("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...ib("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...ib("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...ib("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...ib("top"),common:{transformOrigin:"top right"}}},loe={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Uit({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in Q4?{transitionProperty:Q4[e].transitionProperty,...a,...Q4[e].common,...Q4[e][loe[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[loe[r]]}}function Vit({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:l,onExited:s,enterDelay:c,exitDelay:u}){const d=vo(),p=HR(),f=d.respectReducedMotion?p:!1,[g,b]=S.useState(f?0:e),[x,w]=S.useState(o?"entered":"exited"),k=S.useRef(-1),C=S.useRef(-1),_=S.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const R=D=>{T();const N=D?a:i,$=D?l:s,O=f?0:D?e:r;b(O),O===0?(typeof N=="function"&&N(),typeof $=="function"&&$(),w(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{IO.flushSync(()=>{w(D?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof N=="function"&&N(),w(D?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof $=="function"&&$(),w(D?"entered":"exited")},O)})})},A=D=>{if(T(),typeof(D?c:u)!="number"){R(D);return}C.current=window.setTimeout(()=>{R(D)},D?c:u)};return $p(()=>{A(o)},[o]),S.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function Al({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:l="ease",onExit:s,onEntered:c,onEnter:u,onExited:d,enterDelay:p,exitDelay:f}){const g=D4(),{transitionDuration:b,transitionStatus:x,transitionTimingFunction:w}=Vit({mounted:a,exitDuration:o,duration:n,timingFunction:l,onExit:s,onEntered:c,onEnter:u,onExited:d,enterDelay:p,exitDelay:f});return b===0||g==="test"?a?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:y.jsx(y.Fragment,{children:i(Uit({transition:r,duration:b,state:x,timingFunction:w}))})}Al.displayName="@mantine/core/Transition";const[Yit,soe]=Ia("Popover component was not found in the tree");function J4({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=bnt(r),i=on(a,o);return kl(e)?S.cloneElement(e,{[n]:i}):e}function coe(e){return y.jsx(AA,{tabIndex:-1,"data-autofocus":!0,...e})}J4.displayName="@mantine/core/FocusTrap",coe.displayName="@mantine/core/FocusTrapInitialFocus",J4.InitialFocus=coe;var uoe={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const DA=Ke((e,r)=>{const n=Pe("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:l,onKeyDownCapture:s,variant:c,classNames:u,styles:d,...p}=n,f=soe(),g=Ire({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=on(r,f.floating);return f.disabled?null:y.jsx(jp,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(Al,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:w=>y.jsx(J4,{active:f.trapFocus&&f.opened,innerRef:x,children:y.jsxs(Oe,{...b,...p,variant:c,onKeyDownCapture:ant(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:g,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:o,props:n,classNames:u,styles:d,style:[{...w,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:Fe(f.width),...f.referenceHidden?{display:"none"}:null},f.resolvedStyles.dropdown,d?.dropdown,a]}),children:[l,y.jsx(Z4,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});DA.classes=uoe,DA.displayName="@mantine/core/PopoverDropdown";const Wit={refProp:"ref",popupType:"dialog"},doe=Ke((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=Pe("PopoverTarget",Wit,e);if(!kl(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=i,s=soe(),c=on(s.reference,R4(n),r),u=s.withRoles?{"aria-haspopup":a,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return S.cloneElement(n,{...l,...u,...s.targetProps,className:io(s.targetProps.className,l.className,n.props.className),[o]:c,...s.controlled?null:{onClick:()=>{s.onToggle(),n.props.onClick?.()}}})});doe.displayName="@mantine/core/PopoverTarget";function Git(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function Xit(e,r,n){const o=Git(e.middlewares),a=[Tne(e.offset),iit()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(mA(typeof o.shift=="boolean"?{limiter:Rne(),padding:5}:{limiter:Rne(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?Y4():Y4(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?ab():ab(o.inline)),a.push(Ane({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(ait({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:l,availableHeight:s,...c}){const u=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:l,availableHeight:s,...c}):Object.assign(u,{maxWidth:`${l}px`,maxHeight:`${s}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),a}function Kit(e){const r=D4(),[n,o]=ju({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=S.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},l=()=>{e.disabled||o(!n)},s=wA({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:Xit(e,()=>s,r),whileElementsMounted:e.keepMounted?void 0:hA});return S.useEffect(()=>{if(!(!s.refs.reference.current||!s.refs.floating.current)&&n)return hA(s.refs.reference.current,s.refs.floating.current,s.update)},[n,s.update]),$p(()=>{e.onPositionChange?.(s.placement),e.positionRef.current=s.placement},[s.placement,e.preventPositionChangeWhenVisible]),$p(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),$p(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:s,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:l}}const Zit={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:_l("popover"),__staticSelector:"Popover",width:"max-content"},Qit=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:hn(r),"--popover-shadow":IR(n)}});function xo(e){const r=Pe("Popover",Zit,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:l,opened:s,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:p,middlewares:f,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:R,withinPortal:A,portalProps:D,closeOnEscape:N,clickOutsideEvents:$,trapFocus:O,onClose:j,onDismiss:L,onOpen:Y,onChange:M,zIndex:q,radius:z,shadow:H,id:U,defaultOpened:K,__staticSelector:V,withRoles:X,disabled:Z,returnFocus:B,variant:W,keepMounted:Q,vars:J,floatingStrategy:ne,withOverlay:te,overlayProps:ee,hideDetached:pe,attributes:Te,preventPositionChangeWhenVisible:ce,...de}=r,xe=ht({name:V,props:r,classes:uoe,classNames:_,styles:T,unstyled:C,attributes:Te,rootSelector:"dropdown",vars:J,varsResolver:Qit}),{resolvedStyles:De}=VR({classNames:_,styles:T,props:r}),[Ge,et]=S.useState(s??K??!1),ft=S.useRef(o),Ze=S.useRef(null),[Et,Xe]=S.useState(null),[We,st]=S.useState(null),{dir:ct}=hc(),zn=D4(),we=Sl(U),_e=Kit({middlewares:f,width:p,position:ooe(ct,o),offset:typeof a=="number"?a+(g?b/2:0):a,arrowRef:Ze,arrowOffset:x,onPositionChange:i,positionDependencies:l,opened:s,defaultOpened:K,onChange:M,onOpen:Y,onClose:j,onDismiss:L,strategy:ne,dropdownVisible:Ge,setDropdownVisible:et,positionRef:ft,disabled:Z,preventPositionChangeWhenVisible:ce,keepMounted:Q});Ore(()=>{R&&(_e.onClose(),L?.())},$,[Et,We]);const at=S.useCallback(Pt=>{Xe(Pt),_e.floating.refs.setReference(Pt)},[_e.floating.refs.setReference]),vt=S.useCallback(Pt=>{st(Pt),_e.floating.refs.setFloating(Pt)},[_e.floating.refs.setFloating]),Ct=S.useCallback(()=>{c?.onExited?.(),u?.(),et(!1),ce||(ft.current=o)},[c?.onExited,u,ce,o]),Zr=S.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return y.jsxs(Yit,{value:{returnFocus:B,disabled:Z,controlled:_e.controlled,reference:at,floating:vt,x:_e.floating.x,y:_e.floating.y,arrowX:_e.floating?.middlewareData?.arrow?.x,arrowY:_e.floating?.middlewareData?.arrow?.y,opened:_e.opened,arrowRef:Ze,transitionProps:{...c,onExited:Ct,onEntered:Zr},width:p,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:_e.floating.placement,trapFocus:O,withinPortal:A,portalProps:D,zIndex:q,radius:z,shadow:H,closeOnEscape:N,onDismiss:L,onClose:_e.onClose,onToggle:_e.onToggle,getTargetId:()=>`${we}-target`,getDropdownId:()=>`${we}-dropdown`,withRoles:X,targetProps:de,__staticSelector:V,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:Q,getStyles:xe,resolvedStyles:De,floatingStrategy:ne,referenceHidden:pe&&zn!=="test"?_e.floating.middlewareData.hide?.referenceHidden:!1},children:[n,te&&y.jsx(Al,{transition:"fade",mounted:_e.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>y.jsx(jp,{withinPortal:A,children:y.jsx(Wm,{...ee,...xe("overlay",{className:ee?.className,style:[Pt,ee?.style]})})})})]})}xo.Target=doe,xo.Dropdown=DA,xo.displayName="@mantine/core/Popover",xo.extend=e=>e;var Nl={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const poe=S.forwardRef(({className:e,...r},n)=>y.jsxs(Oe,{component:"span",className:io(Nl.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:Nl.bar}),y.jsx("span",{className:Nl.bar}),y.jsx("span",{className:Nl.bar})]}));poe.displayName="@mantine/core/Bars";const hoe=S.forwardRef(({className:e,...r},n)=>y.jsxs(Oe,{component:"span",className:io(Nl.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:Nl.dot}),y.jsx("span",{className:Nl.dot}),y.jsx("span",{className:Nl.dot})]}));hoe.displayName="@mantine/core/Dots";const foe=S.forwardRef(({className:e,...r},n)=>y.jsx(Oe,{component:"span",className:io(Nl.ovalLoader,e),...r,ref:n}));foe.displayName="@mantine/core/Oval";const moe={bars:poe,oval:foe,dots:hoe},Jit={loaders:moe,type:"oval"},elt=(e,{size:r,color:n})=>({root:{"--loader-size":rr(r,"loader-size"),"--loader-color":n?Wo(n,e):void 0}}),Fp=Ke((e,r)=>{const n=Pe("Loader",Jit,e),{size:o,color:a,type:i,vars:l,className:s,style:c,classNames:u,styles:d,unstyled:p,loaders:f,variant:g,children:b,attributes:x,...w}=n,k=ht({name:"Loader",props:n,classes:Nl,className:s,style:c,classNames:u,styles:d,unstyled:p,attributes:x,vars:l,varsResolver:elt});return b?y.jsx(Oe,{...k("root"),ref:r,...w,children:b}):y.jsx(Oe,{...k("root"),ref:r,component:f[i],variant:g,size:o,...w})});Fp.defaultLoaders=moe,Fp.classes=Nl,Fp.displayName="@mantine/core/Loader";var Gm={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const goe={orientation:"horizontal"},tlt=(e,{borderWidth:r})=>({group:{"--ai-border-width":Fe(r)}}),PA=Ke((e,r)=>{const n=Pe("ActionIconGroup",goe,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=Pe("ActionIconGroup",goe,e),x=ht({name:"ActionIconGroup",props:n,classes:Gm,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:tlt,rootSelector:"group"});return y.jsx(Oe,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});PA.classes=Gm,PA.displayName="@mantine/core/ActionIconGroup";const rlt=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":rr(l,"section-height"),"--section-padding-x":rr(l,"section-padding-x"),"--section-fz":Io(l),"--section-radius":r===void 0?void 0:hn(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},$A=Ke((e,r)=>{const n=Pe("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:u,gradient:d,radius:p,autoContrast:f,attributes:g,...b}=n,x=ht({name:"ActionIconGroupSection",props:n,classes:Gm,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:rlt,rootSelector:"groupSection"});return y.jsx(Oe,{...x("groupSection"),ref:r,variant:u,...b})});$A.classes=Gm,$A.displayName="@mantine/core/ActionIconGroupSection";const nlt=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:l});return{root:{"--ai-size":rr(r,"ai-size"),"--ai-radius":n===void 0?void 0:hn(n),"--ai-bg":i||o?s.background:void 0,"--ai-hover":i||o?s.hover:void 0,"--ai-hover-color":i||o?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":i||o?s.border:void 0}}},e5=Un((e,r)=>{const n=Pe("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:l,styles:s,style:c,loading:u,loaderProps:d,size:p,color:f,radius:g,__staticSelector:b,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:R,attributes:A,...D}=n,N=ht({name:["ActionIcon",b],props:n,className:o,style:c,classes:Gm,classNames:l,styles:s,unstyled:a,attributes:A,vars:w,varsResolver:nlt});return y.jsxs(ys,{...N("root",{active:!C&&!u&&!_}),...D,unstyled:a,variant:i,size:p,disabled:C||u,ref:r,mod:[{loading:u,disabled:C||_},R],children:[typeof u=="boolean"&&y.jsx(Al,{mounted:u,transition:"slide-down",duration:150,children:$=>y.jsx(Oe,{component:"span",...N("loader",{style:$}),"aria-hidden":!0,children:y.jsx(Fp,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),y.jsx(Oe,{component:"span",mod:{loading:u},...N("icon"),children:k})]})});e5.classes=Gm,e5.displayName="@mantine/core/ActionIcon",e5.Group=PA,e5.GroupSection=$A;const yoe=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));yoe.displayName="@mantine/core/CloseIcon";var boe={root:"m_86a44da5","root--subtle":"m_220c80f2"};const olt={variant:"subtle"},alt=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":rr(r,"cb-size"),"--cb-radius":n===void 0?void 0:hn(n),"--cb-icon-size":Fe(o)}}),Hp=Un((e,r)=>{const n=Pe("CloseButton",olt,e),{iconSize:o,children:a,vars:i,radius:l,className:s,classNames:c,style:u,styles:d,unstyled:p,"data-disabled":f,disabled:g,variant:b,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=ht({name:C||"CloseButton",props:n,className:s,style:u,classes:boe,classNames:c,styles:d,unstyled:p,attributes:k,vars:i,varsResolver:alt});return y.jsxs(ys,{ref:r,..._,unstyled:p,variant:b,disabled:g,mod:[{disabled:g||f},w],...T("root",{variant:b,active:!g&&!f}),children:[x||y.jsx(yoe,{}),a]})});Hp.classes=boe,Hp.displayName="@mantine/core/CloseButton";function ilt(e){return S.Children.toArray(e).filter(Boolean)}var voe={root:"m_4081bf90"};const llt={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},slt=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:l},{childWidth:s})=>({root:{"--group-child-width":r&&n?s:void 0,"--group-gap":ao(o),"--group-align":a,"--group-justify":i,"--group-wrap":l}}),xoe=Ke((e,r)=>{const n=Pe("Group",llt,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,children:c,gap:u,align:d,justify:p,wrap:f,grow:g,preventGrowOverflow:b,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,R=ilt(c),A=R.length,D=ao(u??"md"),N={childWidth:`calc(${100/A}% - (${D} - ${D} / ${A}))`},$=ht({name:"Group",props:n,stylesCtx:N,className:a,style:i,classes:voe,classNames:o,styles:l,unstyled:s,attributes:_,vars:x,varsResolver:slt});return y.jsx(Oe,{...$("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:R})});xoe.classes=voe,xoe.displayName="@mantine/core/Group";const[clt,yc]=Ia("ModalBase component was not found in tree");function ult({opened:e,transitionDuration:r}){const[n,o]=S.useState(e),a=S.useRef(-1),i=HR()?0:r;return S.useEffect(()=>(e?(o(!0),window.clearTimeout(a.current)):i===0?o(!1):a.current=window.setTimeout(()=>o(!1),i),()=>window.clearTimeout(a.current)),[e,i]),n}function dlt({id:e,transitionProps:r,opened:n,trapFocus:o,closeOnEscape:a,onClose:i,returnFocus:l}){const s=Sl(e),[c,u]=S.useState(!1),[d,p]=S.useState(!1),f=typeof r?.duration=="number"?r?.duration:200,g=ult({opened:n,transitionDuration:f});return wnt("keydown",b=>{b.key==="Escape"&&a&&!b.isComposing&&n&&b.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&i()},{capture:!0}),Ire({opened:n,shouldReturnFocus:o&&l}),{_id:s,titleMounted:c,bodyMounted:d,shouldLockScroll:g,setTitleMounted:u,setBodyMounted:p}}const MA=S.forwardRef(({keepMounted:e,opened:r,onClose:n,id:o,transitionProps:a,onExitTransitionEnd:i,onEnterTransitionEnd:l,trapFocus:s,closeOnEscape:c,returnFocus:u,closeOnClickOutside:d,withinPortal:p,portalProps:f,lockScroll:g,children:b,zIndex:x,shadow:w,padding:k,__vars:C,unstyled:_,removeScrollProps:T,...R},A)=>{const{_id:D,titleMounted:N,bodyMounted:$,shouldLockScroll:O,setTitleMounted:j,setBodyMounted:L}=dlt({id:o,transitionProps:a,opened:r,trapFocus:s,closeOnEscape:c,onClose:n,returnFocus:u}),{key:Y,...M}=T||{};return y.jsx(jp,{...f,withinPortal:p,children:y.jsx(clt,{value:{opened:r,onClose:n,closeOnClickOutside:d,onExitTransitionEnd:i,onEnterTransitionEnd:l,transitionProps:{...a,keepMounted:e},getTitleId:()=>`${D}-title`,getBodyId:()=>`${D}-body`,titleMounted:N,bodyMounted:$,setTitleMounted:j,setBodyMounted:L,trapFocus:s,closeOnEscape:c,zIndex:x,unstyled:_},children:y.jsx(Nre,{enabled:O&&g,...M,children:y.jsx(Oe,{ref:A,...R,__vars:{...C,"--mb-z-index":(x||_l("modal")).toString(),"--mb-shadow":IR(w),"--mb-padding":ao(k)},children:b})},Y)})})});MA.displayName="@mantine/core/ModalBase";function plt(){const e=yc();return S.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Xm={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const OA=S.forwardRef(({className:e,...r},n)=>{const o=plt(),a=yc();return y.jsx(Oe,{ref:n,...r,id:o,className:io({[Xm.body]:!a.unstyled},e)})});OA.displayName="@mantine/core/ModalBaseBody";const woe=S.forwardRef(({className:e,onClick:r,...n},o)=>{const a=yc();return y.jsx(Hp,{ref:o,...n,onClick:i=>{a.onClose(),r?.(i)},className:io({[Xm.close]:!a.unstyled},e),unstyled:a.unstyled})});woe.displayName="@mantine/core/ModalBaseCloseButton";const IA=S.forwardRef(({transitionProps:e,className:r,innerProps:n,onKeyDown:o,style:a,...i},l)=>{const s=yc();return y.jsx(Al,{mounted:s.opened,transition:"pop",...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:c=>y.jsx("div",{...n,className:io({[Xm.inner]:!s.unstyled},n.className),children:y.jsx(J4,{active:s.opened&&s.trapFocus,innerRef:l,children:y.jsx(K4,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[a,c],className:io({[Xm.content]:!s.unstyled},r),unstyled:s.unstyled,children:i.children})})})})});IA.displayName="@mantine/core/ModalBaseContent";const koe=S.forwardRef(({className:e,...r},n)=>{const o=yc();return y.jsx(Oe,{component:"header",ref:n,className:io({[Xm.header]:!o.unstyled},e),...r})});koe.displayName="@mantine/core/ModalBaseHeader";const hlt={duration:200,timingFunction:"ease",transition:"fade"};function flt(e){const r=yc();return{...hlt,...r.transitionProps,...e}}const zA=S.forwardRef(({onClick:e,transitionProps:r,style:n,visible:o,...a},i)=>{const l=yc(),s=flt(r);return y.jsx(Al,{mounted:o!==void 0?o:l.opened,...s,transition:"fade",children:c=>y.jsx(Wm,{ref:i,fixed:!0,style:[n,c],zIndex:l.zIndex,unstyled:l.unstyled,onClick:u=>{e?.(u),l.closeOnClickOutside&&l.onClose()},...a})})});zA.displayName="@mantine/core/ModalBaseOverlay";function mlt(){const e=yc();return S.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const _oe=S.forwardRef(({className:e,...r},n)=>{const o=mlt(),a=yc();return y.jsx(Oe,{component:"h2",ref:n,className:io({[Xm.title]:!a.unstyled},e),...r,id:o})});_oe.displayName="@mantine/core/ModalBaseTitle";function Eoe({children:e}){return y.jsx(y.Fragment,{children:e})}const[glt,ylt]=Im({size:"sm"}),Soe=Ke((e,r)=>{const n=Pe("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:l,styles:s,...c}=n,u=ylt(),{resolvedClassNames:d,resolvedStyles:p}=VR({classNames:l,styles:s,props:n});return y.jsx(Hp,{variant:a||"transparent",ref:r,size:o||u?.size||"sm",classNames:d,styles:p,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});Soe.displayName="@mantine/core/InputClearButton";const blt={xs:7,sm:8,md:10,lg:12,xl:15};function vlt({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:blt[a]},children:[i,n||o]}):n===null?null:n||i||o}const[xlt,t5]=Im({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Si={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const wlt=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Io(r)} - ${Fe(2)})`}}),r5=Ke((e,r)=>{const n=Pe("InputDescription",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,__staticSelector:d,__inheritStyles:p=!0,attributes:f,variant:g,...b}=Pe("InputDescription",null,n),x=t5(),w=ht({name:["InputWrapper",d],props:n,classes:Si,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,rootSelector:"description",vars:c,varsResolver:wlt}),k=p&&x?.getStyles||w;return y.jsx(Oe,{component:"p",ref:r,variant:g,size:u,...k("description",x?.getStyles?{className:a,style:i}:void 0),...b})});r5.classes=Si,r5.displayName="@mantine/core/InputDescription";const klt=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Io(r)} - ${Fe(2)})`}}),n5=Ke((e,r)=>{const n=Pe("InputError",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,attributes:d,__staticSelector:p,__inheritStyles:f=!0,variant:g,...b}=n,x=ht({name:["InputWrapper",p],props:n,classes:Si,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,rootSelector:"error",vars:c,varsResolver:klt}),w=t5(),k=f&&w?.getStyles||x;return y.jsx(Oe,{component:"p",ref:r,variant:g,size:u,...k("error",w?.getStyles?{className:a,style:i}:void 0),...b})});n5.classes=Si,n5.displayName="@mantine/core/InputError";const Coe={labelElement:"label"},_lt=(e,{size:r})=>({label:{"--input-label-size":Io(r),"--input-asterisk-color":void 0}}),o5=Ke((e,r)=>{const n=Pe("InputLabel",Coe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,labelElement:u,size:d,required:p,htmlFor:f,onMouseDown:g,children:b,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=Pe("InputLabel",Coe,n),T=ht({name:["InputWrapper",x],props:n,classes:Si,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,rootSelector:"label",vars:c,varsResolver:_lt}),R=t5(),A=R?.getStyles||T;return y.jsxs(Oe,{...A("label",R?.getStyles?{className:a,style:i}:void 0),component:u,variant:w,size:d,ref:r,htmlFor:u==="label"?f:void 0,mod:[{required:p},k],onMouseDown:D=>{g?.(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},..._,children:[b,p&&y.jsx("span",{...A("required"),"aria-hidden":!0,children:" *"})]})});o5.classes=Si,o5.displayName="@mantine/core/InputLabel";const LA=Ke((e,r)=>{const n=Pe("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,__staticSelector:u,variant:d,error:p,mod:f,attributes:g,...b}=n,x=ht({name:["InputPlaceholder",u],props:n,classes:Si,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,rootSelector:"placeholder"});return y.jsx(Oe,{...x("placeholder"),mod:[{error:!!p},f],component:"span",variant:d,ref:r,...b})});LA.classes=Si,LA.displayName="@mantine/core/InputPlaceholder";function Elt(e,{hasDescription:r,hasError:n}){const o=e.findIndex(s=>s==="input"),a=e.slice(0,o),i=e.slice(o+1),l=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:l}}const Slt={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Clt=(e,{size:r})=>({label:{"--input-label-size":Io(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Io(r)} - ${Fe(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Io(r)} - ${Fe(2)})`}}),BA=Ke((e,r)=>{const n=Pe("InputWrapper",Slt,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,variant:d,__staticSelector:p,inputContainer:f,inputWrapperOrder:g,label:b,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:R,withAsterisk:A,id:D,required:N,__stylesApiProps:$,mod:O,attributes:j,...L}=n,Y=ht({name:["InputWrapper",p],props:$||n,classes:Si,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:Clt}),M={size:u,variant:d,__staticSelector:p},q=Sl(D),z=typeof A=="boolean"?A:N,H=_?.id||`${q}-error`,U=C?.id||`${q}-description`,K=q,V=!!x&&typeof x!="boolean",X=!!w,Z=`${V?H:""} ${X?U:""}`,B=Z.trim().length>0?Z.trim():void 0,W=k?.id||`${q}-label`,Q=b&&y.jsx(o5,{labelElement:T,id:W,htmlFor:K,required:z,...M,...k,children:b},"label"),J=X&&y.jsx(r5,{...C,...M,size:C?.size||M.size,id:C?.id||U,children:w},"description"),ne=y.jsx(S.Fragment,{children:f(R)},"input"),te=V&&S.createElement(n5,{..._,...M,size:_?.size||M.size,key:"error",id:_?.id||H},x),ee=g.map(pe=>{switch(pe){case"label":return Q;case"input":return ne;case"description":return J;case"error":return te;default:return null}});return y.jsx(xlt,{value:{getStyles:Y,describedBy:B,inputId:K,labelId:W,...Elt(g,{hasDescription:X,hasError:V})},children:y.jsx(Oe,{ref:r,variant:d,size:u,mod:[{error:!!x},O],...Y("root"),...L,children:ee})})});BA.classes=Si,BA.displayName="@mantine/core/InputWrapper";const Tlt={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},Rlt=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":rr(r.size,"input-height"),"--input-fz":Io(r.size),"--input-radius":r.radius===void 0?void 0:hn(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?Fe(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?Fe(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?rr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),sa=Un((e,r)=>{const n=Pe("Input",Tlt,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,required:c,__staticSelector:u,__stylesApiProps:d,size:p,wrapperProps:f,error:g,disabled:b,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:R,leftSectionPointerEvents:A,variant:D,vars:N,pointer:$,multiline:O,radius:j,id:L,withAria:Y,withErrorStyles:M,mod:q,inputSize:z,attributes:H,__clearSection:U,__clearable:K,__defaultRightSection:V,...X}=n,{styleProps:Z,rest:B}=GR(X),W=t5(),Q={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},J=ht({name:["Input",u],props:d||n,classes:Si,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:H,stylesCtx:Q,rootSelector:"wrapper",vars:N,varsResolver:Rlt}),ne=Y?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||L}:{},te=vlt({__clearable:K,__clearSection:U,rightSection:C,__defaultRightSection:V,size:p});return y.jsx(glt,{value:{size:p||"sm"},children:y.jsxs(Oe,{...J("wrapper"),...Z,...f,mod:[{error:!!g&&M,pointer:$,disabled:b,multiline:O,"data-with-right-section":!!te,"data-with-left-section":!!x},q],variant:D,size:p,children:[x&&y.jsx("div",{...w,"data-position":"left",...J("section",{className:w?.className,style:w?.style}),children:x}),y.jsx(Oe,{component:"input",...B,...ne,ref:r,required:c,mod:{disabled:b,error:!!g&&M},variant:D,__size:z,...J("input")}),te&&y.jsx("div",{..._,"data-position":"right",...J("section",{className:_?.className,style:_?.style}),children:te})]})})});sa.classes=Si,sa.Wrapper=BA,sa.Label=o5,sa.Error=n5,sa.Description=r5,sa.Placeholder=LA,sa.ClearButton=Soe,sa.displayName="@mantine/core/Input";function Alt(e,r,n){const o=Pe(e,r,n),{label:a,description:i,error:l,required:s,classNames:c,styles:u,className:d,unstyled:p,__staticSelector:f,__stylesApiProps:g,errorProps:b,labelProps:x,descriptionProps:w,wrapperProps:k,id:C,size:_,style:T,inputContainer:R,inputWrapperOrder:A,withAsterisk:D,variant:N,vars:$,mod:O,attributes:j,...L}=o,{styleProps:Y,rest:M}=GR(L),q={label:a,description:i,error:l,required:s,classNames:c,className:d,__staticSelector:f,__stylesApiProps:g||o,errorProps:b,labelProps:x,descriptionProps:w,unstyled:p,styles:u,size:_,style:T,inputContainer:R,inputWrapperOrder:A,withAsterisk:D,variant:N,id:C,mod:O,attributes:j,...k};return{...M,classNames:c,styles:u,unstyled:p,wrapperProps:{...q,...Y},inputProps:{required:s,classNames:c,styles:u,unstyled:p,size:_,__staticSelector:f,__stylesApiProps:g||o,error:l,variant:N,id:C,attributes:j}}}const Nlt={__staticSelector:"InputBase",withAria:!0,size:"sm"},a5=Un((e,r)=>{const{inputProps:n,wrapperProps:o,...a}=Alt("InputBase",Nlt,e);return y.jsx(sa.Wrapper,{...o,children:y.jsx(sa,{...n,...a,ref:r})})});a5.classes={...sa.classes,...sa.Wrapper.classes},a5.displayName="@mantine/core/InputBase";const Dlt={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var Toe={root:"m_8bffd616"};const Roe=Un((e,r)=>{const n=Pe("Flex",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,gap:u,rowGap:d,columnGap:p,align:f,justify:g,wrap:b,direction:x,attributes:w,...k}=n,C=ht({name:"Flex",classes:Toe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c}),_=vo(),T=tb(),R=Zre({styleProps:{gap:u,rowGap:d,columnGap:p,align:f,justify:g,wrap:b,direction:x},theme:_,data:Dlt});return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(jm,{selector:`.${T}`,styles:R.styles,media:R.media}),y.jsx(Oe,{ref:r,...C("root",{className:T,style:Bu(R.inlineStyles)}),...k})]})});Roe.classes=Toe,Roe.displayName="@mantine/core/Flex";function Plt(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function $lt({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=S.useRef(-1),[i,l]=S.useState(!1),[s,c]=S.useState(typeof o=="boolean"?o:!1),u=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),b=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=Fu(x.borderTopWidth)+Fu(w.borderTopWidth),C=Fu(x.borderLeftWidth)+Fu(w.borderLeftWidth),_={top:g.top-b.top-k,left:g.left-b.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),u(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},p=S.useRef(null),f=S.useRef(null);return S.useEffect(()=>{if(u(),e)return p.current=new ResizeObserver(d),p.current.observe(e),r&&(f.current=new ResizeObserver(d),f.current.observe(r)),()=>{p.current?.disconnect(),f.current?.disconnect()}},[r,e]),S.useEffect(()=>{if(r){const g=b=>{Plt(b.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),Tnt(()=>{Dnt()!=="test"&&l(!0)},20,{autoInvoke:!0}),Ant(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:s}}var Aoe={root:"m_96b553a6"};const Mlt=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),jA=Ke((e,r)=>{const n=Pe("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,target:u,parent:d,transitionDuration:p,mod:f,displayAfterTransitionEnd:g,attributes:b,...x}=n,w=ht({name:"FloatingIndicator",classes:Aoe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:Mlt}),k=S.useRef(null),{initialized:C,hidden:_}=$lt({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=on(r,k);return!u||!d?null:y.jsx(Oe,{ref:T,mod:[{initialized:C,hidden:_},f],...w("root"),...x})});jA.displayName="@mantine/core/FloatingIndicator",jA.classes=Aoe;function Olt({open:e,close:r,openDelay:n,closeDelay:o}){const a=S.useRef(-1),i=S.useRef(-1),l=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},s=()=>{l(),e()},c=()=>{l(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return S.useEffect(()=>l,[]),{openDropdown:s,closeDropdown:c}}function FA({style:e,size:r=16,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:Fe(r),height:Fe(r),display:"block"},...n,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}FA.displayName="@mantine/core/AccordionChevron";var Noe={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const Ilt=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:hn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},Doe=Ke((e,r)=>{const n=Pe("Alert",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,radius:u,color:d,title:p,children:f,id:g,icon:b,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...R}=n,A=ht({name:"Alert",classes:Noe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:Ilt}),D=Sl(g),N=p&&`${D}-title`||void 0,$=`${D}-body`;return y.jsx(Oe,{id:D,...A("root",{variant:C}),variant:C,ref:r,...R,role:"alert","aria-describedby":f?$:void 0,"aria-labelledby":p?N:void 0,children:y.jsxs("div",{...A("wrapper"),children:[b&&y.jsx("div",{...A("icon"),children:b}),y.jsxs("div",{...A("body"),children:[p&&y.jsx("div",{...A("title"),"data-with-close-button":x||void 0,children:y.jsx("span",{id:N,...A("label"),children:p})}),f&&y.jsx("div",{id:$,...A("message"),"data-variant":C,children:f})]}),x&&y.jsx(Hp,{...A("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:s})]})})});Doe.classes=Noe,Doe.displayName="@mantine/core/Alert";var Poe={root:"m_b6d8b162"};function zlt(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const Llt={inherit:!1},Blt=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Io(a),"--text-lh":int(a),"--text-gradient":r==="gradient"?Wnt(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Wo(i,e):void 0}}),lb=Un((e,r)=>{const n=Pe("Text",Llt,e),{lineClamp:o,truncate:a,inline:i,inherit:l,gradient:s,span:c,__staticSelector:u,vars:d,className:p,style:f,classNames:g,styles:b,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,R=ht({name:["Text",u],props:n,classes:Poe,className:p,style:f,classNames:g,styles:b,unstyled:x,attributes:_,vars:d,varsResolver:Blt});return y.jsx(Oe,{...R("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":zlt(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":l},k],size:C,...T})});lb.classes=Poe,lb.displayName="@mantine/core/Text";var $oe={root:"m_849cf0da"};const jlt={underline:"hover"},Moe=Un((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...l}=Pe("Anchor",jlt,e);return y.jsx(lb,{component:"a",ref:r,className:io({[$oe.root]:!a},o),...l,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});Moe.classes=$oe,Moe.displayName="@mantine/core/Anchor";function Ooe(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(r=>Ooe(r))}:e}function Flt(e){return e?e.map(r=>Ooe(r)):[]}function Ioe(e){return e.reduce((r,n)=>"group"in n?{...r,...Ioe(n.items)}:(r[n.value]=n,r),{})}var ca={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Hlt={error:null},qlt=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":rr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Wo(n,e):void 0}}),HA=Ke((e,r)=>{const n=Pe("ComboboxChevron",Hlt,e),{size:o,error:a,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,mod:p,...f}=n,g=ht({name:"ComboboxChevron",classes:ca,props:n,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,varsResolver:qlt,rootSelector:"chevron"});return y.jsx(Oe,{component:"svg",...f,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},p],ref:r,children:y.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});HA.classes=ca,HA.displayName="@mantine/core/ComboboxChevron";const[Ult,Ci]=Ia("Combobox component was not found in tree"),zoe=S.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>y.jsx(sa.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:l=>{l.preventDefault(),r?.(l)},onClick:l=>{o(),n?.(l)}}));zoe.displayName="@mantine/core/ComboboxClearButton";const qA=Ke((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:l,...s}=Pe("ComboboxDropdown",null,e),c=Ci();return y.jsx(xo.Dropdown,{...s,ref:r,role:"presentation","data-hidden":l||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});qA.classes=ca,qA.displayName="@mantine/core/ComboboxDropdown";const Vlt={refProp:"ref"},Loe=Ke((e,r)=>{const{children:n,refProp:o}=Pe("ComboboxDropdownTarget",Vlt,e);if(Ci(),!kl(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(xo.Target,{ref:r,refProp:o,children:n})});Loe.displayName="@mantine/core/ComboboxDropdownTarget";const UA=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Pe("ComboboxEmpty",null,e),c=Ci();return y.jsx(Oe,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...s})});UA.classes=ca,UA.displayName="@mantine/core/ComboboxEmpty";function VA({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const l=Ci(),[s,c]=S.useState(null),u=d=>{if(e?.(d),!l.readOnly&&r){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),l.store.dropdownOpened?c(l.store.selectNextOption()):(l.store.openDropdown("keyboard"),c(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),l.store.dropdownOpened?c(l.store.selectPreviousOption()):(l.store.openDropdown("keyboard"),c(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const p=l.store.getSelectedOptionIndex();l.store.dropdownOpened&&p!==-1?(d.preventDefault(),l.store.clickSelectedOption()):a==="button"&&(d.preventDefault(),l.store.openDropdown("keyboard"))}d.key==="Escape"&&l.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&a==="button"&&(d.preventDefault(),l.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(l.store.listId&&l.store.dropdownOpened):void 0,"aria-controls":l.store.dropdownOpened&&l.store.listId?l.store.listId:void 0,"aria-activedescendant":l.store.dropdownOpened&&s||void 0,autoComplete:i,"data-expanded":l.store.dropdownOpened||void 0,"data-mantine-stop-propagation":l.store.dropdownOpened||void 0}:{},onKeyDown:u}}const Ylt={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Boe=Ke((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=Pe("ComboboxEventsTarget",Ylt,e);if(!kl(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=Ci(),p=VA({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c});return S.cloneElement(n,{...p,...u,[o]:on(r,d.store.targetRef,R4(n))})});Boe.displayName="@mantine/core/ComboboxEventsTarget";const YA=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Pe("ComboboxFooter",null,e),c=Ci();return y.jsx(Oe,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});YA.classes=ca,YA.displayName="@mantine/core/ComboboxFooter";const WA=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,children:s,label:c,id:u,...d}=Pe("ComboboxGroup",null,e),p=Ci(),f=Sl(u);return y.jsxs(Oe,{ref:r,role:"group","aria-labelledby":c?f:void 0,...p.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...d,children:[c&&y.jsx("div",{id:f,...p.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),s]})});WA.classes=ca,WA.displayName="@mantine/core/ComboboxGroup";const GA=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Pe("ComboboxHeader",null,e),c=Ci();return y.jsx(Oe,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});GA.classes=ca,GA.displayName="@mantine/core/ComboboxHeader";function joe({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}joe.displayName="@mantine/core/ComboboxHiddenInput";const XA=Ke((e,r)=>{const n=Pe("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,onClick:c,id:u,active:d,onMouseDown:p,onMouseOver:f,disabled:g,selected:b,mod:x,...w}=n,k=Ci(),C=S.useId(),_=u||C;return y.jsx(Oe,{...k.getStyles("option",{className:a,classNames:o,styles:l,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":g,"combobox-selected":b},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),p?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),f?.(T)}})});XA.classes=ca,XA.displayName="@mantine/core/ComboboxOption";const KA=Ke((e,r)=>{const n=Pe("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:l,id:s,onMouseDown:c,labelledBy:u,...d}=n,p=Ci(),f=Sl(s);return S.useEffect(()=>{p.store.setListId(f)},[f]),y.jsx(Oe,{ref:r,...p.getStyles("options",{className:a,style:i,classNames:o,styles:l}),...d,id:f,role:"listbox","aria-labelledby":u,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});KA.classes=ca,KA.displayName="@mantine/core/ComboboxOptions";const Wlt={withAriaAttributes:!0,withKeyboardNavigation:!0},ZA=Ke((e,r)=>{const n=Pe("ComboboxSearch",Wlt,e),{classNames:o,styles:a,unstyled:i,vars:l,withAriaAttributes:s,onKeyDown:c,withKeyboardNavigation:u,size:d,...p}=n,f=Ci(),g=f.getStyles("search"),b=VA({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(sa,{ref:on(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||f.size,...b,...p,__staticSelector:"Combobox"})});ZA.classes=ca,ZA.displayName="@mantine/core/ComboboxSearch";const Glt={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Foe=Ke((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=Pe("ComboboxTarget",Glt,e);if(!kl(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=Ci(),p=VA({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=S.cloneElement(n,{...p,...u});return y.jsx(xo.Target,{ref:on(r,d.store.targetRef),children:f})});Foe.displayName="@mantine/core/ComboboxTarget";function Xlt(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function Klt(e,r,n){for(let o=e+1;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=0;o<r.length;o+=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function Zlt(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function Hoe({defaultOpened:e,opened:r,onOpenedChange:n,onDropdownClose:o,onDropdownOpen:a,loop:i=!0,scrollBehavior:l="instant"}={}){const[s,c]=ju({value:r,defaultValue:e,finalValue:!1,onChange:n}),u=S.useRef(null),d=S.useRef(-1),p=S.useRef(null),f=S.useRef(null),g=S.useRef(-1),b=S.useRef(-1),x=S.useRef(-1),w=S.useCallback((z="unknown")=>{s||(c(!0),a?.(z))},[c,a,s]),k=S.useCallback((z="unknown")=>{s&&(c(!1),o?.(z))},[c,o,s]),C=S.useCallback((z="unknown")=>{s?k(z):w(z)},[k,w,s]),_=S.useCallback(()=>{const z=document.querySelector(`#${u.current} [data-combobox-selected]`);z?.removeAttribute("data-combobox-selected"),z?.removeAttribute("aria-selected")},[]),T=S.useCallback(z=>{const H=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!H)return null;const U=z>=H.length?0:z<0?H.length-1:z;return d.current=U,H?.[U]&&!H[U].hasAttribute("data-combobox-disabled")?(_(),H[U].setAttribute("data-combobox-selected","true"),H[U].setAttribute("aria-selected","true"),H[U].scrollIntoView({block:"nearest",behavior:l}),H[U].id):null},[l,_]),R=S.useCallback(()=>{const z=document.querySelector(`#${u.current} [data-combobox-active]`);if(z){const H=document.querySelectorAll(`#${u.current} [data-combobox-option]`),U=Array.from(H).findIndex(K=>K===z);return T(U)}return T(0)},[T]),A=S.useCallback(()=>T(Klt(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),D=S.useCallback(()=>T(Xlt(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),N=S.useCallback(()=>T(Zlt(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),$=S.useCallback((z="selected",H)=>{x.current=window.setTimeout(()=>{const U=document.querySelectorAll(`#${u.current} [data-combobox-option]`),K=Array.from(U).findIndex(V=>V.hasAttribute(`data-combobox-${z}`));d.current=K,H?.scrollIntoView&&U[K]?.scrollIntoView({block:"nearest",behavior:l})},0)},[]),O=S.useCallback(()=>{d.current=-1,_()},[_]),j=S.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),L=S.useCallback(z=>{u.current=z},[]),Y=S.useCallback(()=>{g.current=window.setTimeout(()=>p.current?.focus(),0)},[]),M=S.useCallback(()=>{b.current=window.setTimeout(()=>f.current?.focus(),0)},[]),q=S.useCallback(()=>d.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(x.current)},[]),{dropdownOpened:s,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:d.current,getSelectedOptionIndex:q,selectOption:T,selectFirstOption:N,selectActiveOption:R,selectNextOption:A,selectPreviousOption:D,resetSelectedOption:O,updateSelectedOptionIndex:$,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:p,focusSearchInput:Y,targetRef:f,focusTarget:M}}const Qlt={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},Jlt=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Io(r),"--combobox-option-padding":rr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Fe(n),"--combobox-option-fz":Io(r),"--combobox-option-padding":rr(r,"combobox-option-padding")}});function vr(e){const r=Pe("Combobox",Qlt,e),{classNames:n,styles:o,unstyled:a,children:i,store:l,vars:s,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:p,resetSelectionOnOptionHover:f,__staticSelector:g,readOnly:b,attributes:x,...w}=r,k=Hoe(),C=l||k,_=ht({name:g||"Combobox",classes:ca,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:s,varsResolver:Jlt}),T=()=>{u?.(),C.closeDropdown()};return y.jsx(Ult,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:f,readOnly:b},children:y.jsx(xo,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:R=>!R&&T(),withRoles:!1,unstyled:a,children:i})})}const est=e=>e;vr.extend=est,vr.classes=ca,vr.displayName="@mantine/core/Combobox",vr.Target=Foe,vr.Dropdown=qA,vr.Options=KA,vr.Option=XA,vr.Search=ZA,vr.Empty=UA,vr.Chevron=HA,vr.Footer=YA,vr.Header=GA,vr.EventsTarget=Boe,vr.DropdownTarget=Loe,vr.Group=WA,vr.ClearButton=zoe,vr.HiddenInput=joe;function tst({size:e,style:r,...n}){const o=e!==void 0?{width:Fe(e),height:Fe(e),...r}:r;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function sb(e){return"group"in e}function qoe({options:e,search:r,limit:n}){const o=r.trim().toLowerCase(),a=[];for(let i=0;i<e.length;i+=1){const l=e[i];if(a.length===n)return a;sb(l)&&a.push({group:l.group,items:qoe({options:l.items,search:r,limit:n-a.length})}),sb(l)||l.label.toLowerCase().includes(o)&&a.push(l)}return a}function rst(e){if(e.length===0)return!0;for(const r of e)if(!("group"in r)||r.items.length>0)return!1;return!0}function Uoe(e,r=new Set){if(Array.isArray(e))for(const n of e)if(sb(n))Uoe(n.items,r);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(r.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);r.add(n.value)}}function nst(e,r){return Array.isArray(e)?e.includes(r):e===r}function Voe({data:e,withCheckIcon:r,value:n,checkIconPosition:o,unstyled:a,renderOption:i}){if(!sb(e)){const s=nst(n,e.value),c=r&&s&&y.jsx(tst,{className:ca.optionsDropdownCheckIcon}),u=y.jsxs(y.Fragment,{children:[o==="left"&&c,y.jsx("span",{children:e.label}),o==="right"&&c]});return y.jsx(vr.Option,{value:e.value,disabled:e.disabled,className:io({[ca.optionsDropdownOption]:!a}),"data-reverse":o==="right"||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof i=="function"?i({option:e,checked:s}):u})}const l=e.items.map(s=>y.jsx(Voe,{data:s,value:n,unstyled:a,withCheckIcon:r,checkIconPosition:o,renderOption:i},s.value));return y.jsx(vr.Group,{label:e.group,children:l})}function ost({data:e,hidden:r,hiddenWhenEmpty:n,filter:o,search:a,limit:i,maxDropdownHeight:l,withScrollArea:s=!0,filterOptions:c=!0,withCheckIcon:u=!1,value:d,checkIconPosition:p,nothingFoundMessage:f,unstyled:g,labelId:b,renderOption:x,scrollAreaProps:w,"aria-label":k}){Uoe(e);const C=typeof a=="string"?(o||qoe)({options:e,search:c?a:"",limit:i??1/0}):e,_=rst(C),T=C.map(R=>y.jsx(Voe,{data:R,withCheckIcon:u,value:d,checkIconPosition:p,unstyled:g,renderOption:x},sb(R)?R.group:R.value));return y.jsx(vr.Dropdown,{hidden:r||n&&_,"data-composed":!0,children:y.jsxs(vr.Options,{labelledBy:b,"aria-label":k,children:[s?y.jsx(Bp.Autosize,{mah:l??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...w,children:T}):T,_&&f&&y.jsx(vr.Empty,{children:f})]})})}var Yoe={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const ast=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--badge-height":rr(i,"badge-height"),"--badge-padding-x":rr(i,"badge-padding-x"),"--badge-fz":rr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:hn(r),"--badge-bg":n||a?s.background:void 0,"--badge-color":n||a?s.color:void 0,"--badge-bd":n||a?s.border:void 0,"--badge-dot-color":a==="dot"?Wo(n,e):void 0}}},Woe=Un((e,r)=>{const n=Pe("Badge",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,radius:u,color:d,gradient:p,leftSection:f,rightSection:g,children:b,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...R}=n,A=ht({name:"Badge",props:n,classes:Yoe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:ast});return y.jsxs(Oe,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!f},_],...A("root",{variant:x}),ref:r,...R,children:[f&&y.jsx("span",{...A("section"),"data-position":"left",children:f}),y.jsx("span",{...A("label"),children:b}),g&&y.jsx("span",{...A("section"),"data-position":"right",children:g})]})});Woe.classes=Yoe,Woe.displayName="@mantine/core/Badge";var Goe={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const ist={separator:"/"},lst=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":ao(r)}}),Xoe=Ke((e,r)=>{const n=Pe("Breadcrumbs",ist,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,separator:d,separatorMargin:p,attributes:f,...g}=n,b=ht({name:"Breadcrumbs",classes:Goe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,vars:c,varsResolver:lst}),x=S.Children.toArray(u).reduce((w,k,C,_)=>{const T=kl(k)?S.cloneElement(k,{...b("breadcrumb",{className:k.props?.className}),key:C}):S.createElement("div",{...b("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(S.createElement(Oe,{...b("separator"),key:`separator-${C}`},d)),w},[]);return y.jsx(Oe,{ref:r,...b("root"),...g,children:x})});Xoe.classes=Goe,Xoe.displayName="@mantine/core/Breadcrumbs";var Koe={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const sst=(e,{color:r,size:n,lineSize:o,transitionDuration:a,transitionTimingFunction:i})=>({root:{"--burger-color":r?Wo(r,e):void 0,"--burger-size":rr(n,"burger-size"),"--burger-line-size":o?Fe(o):void 0,"--burger-transition-duration":a===void 0?void 0:`${a}ms`,"--burger-transition-timing-function":i}}),Zoe=Ke((e,r)=>{const n=Pe("Burger",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,opened:u,children:d,transitionDuration:p,transitionTimingFunction:f,lineSize:g,attributes:b,...x}=n,w=ht({name:"Burger",classes:Koe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:sst});return y.jsxs(ys,{...w("root"),ref:r,...x,children:[y.jsx(Oe,{mod:["reduce-motion",{opened:u}],...w("burger")}),d]})});Zoe.classes=Koe,Zoe.displayName="@mantine/core/Burger";var Km={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const Qoe={orientation:"horizontal"},cst=(e,{borderWidth:r})=>({group:{"--button-border-width":Fe(r)}}),QA=Ke((e,r)=>{const n=Pe("ButtonGroup",Qoe,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=Pe("ButtonGroup",Qoe,e),x=ht({name:"ButtonGroup",props:n,classes:Km,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:cst,rootSelector:"group"});return y.jsx(Oe,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});QA.classes=Km,QA.displayName="@mantine/core/ButtonGroup";const ust=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":rr(l,"section-height"),"--section-padding-x":rr(l,"section-padding-x"),"--section-fz":l?.includes("compact")?Io(l.replace("compact-","")):Io(l),"--section-radius":r===void 0?void 0:hn(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},JA=Ke((e,r)=>{const n=Pe("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:u,gradient:d,radius:p,autoContrast:f,attributes:g,...b}=n,x=ht({name:"ButtonGroupSection",props:n,classes:Km,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:ust,rootSelector:"groupSection"});return y.jsx(Oe,{...x("groupSection"),ref:r,variant:u,...b})});JA.classes=Km,JA.displayName="@mantine/core/ButtonGroupSection";const dst={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Fe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},pst=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:l,autoContrast:s})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--button-justify":l,"--button-height":rr(i,"button-height"),"--button-padding-x":rr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Io(i.replace("compact-","")):Io(i),"--button-radius":r===void 0?void 0:hn(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},i5=Un((e,r)=>{const n=Pe("Button",null,e),{style:o,vars:a,className:i,color:l,disabled:s,children:c,leftSection:u,rightSection:d,fullWidth:p,variant:f,radius:g,loading:b,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:R,mod:A,attributes:D,...N}=n,$=ht({name:"Button",props:n,classes:Km,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:D,vars:a,varsResolver:pst}),O=!!u,j=!!d;return y.jsxs(ys,{ref:r,...$("root",{active:!s&&!b&&!T}),unstyled:_,variant:f,disabled:s||b,mod:[{disabled:s||T,loading:b,block:p,"with-left-section":O,"with-right-section":j},A],...N,children:[typeof b=="boolean"&&y.jsx(Al,{mounted:b,transition:dst,duration:150,children:L=>y.jsx(Oe,{component:"span",...$("loader",{style:L}),"aria-hidden":!0,children:y.jsx(Fp,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),y.jsxs("span",{...$("inner"),children:[u&&y.jsx(Oe,{component:"span",...$("section"),mod:{position:"left"},children:u}),y.jsx(Oe,{component:"span",mod:{loading:b},...$("label"),children:c}),d&&y.jsx(Oe,{component:"span",...$("section"),mod:{position:"right"},children:d})]})]})});i5.classes=Km,i5.displayName="@mantine/core/Button",i5.Group=QA,i5.GroupSection=JA;const[hst,fst]=Ia("Card component was not found in tree");var eN={root:"m_e615b15f",section:"m_599a2148"};const l5=Un((e,r)=>{const n=Pe("CardSection",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,withBorder:c,inheritPadding:u,mod:d,...p}=n,f=fst();return y.jsx(Oe,{ref:r,mod:[{"with-border":c,"inherit-padding":u},d],...f.getStyles("section",{className:a,style:i,styles:l,classNames:o}),...p})});l5.classes=eN,l5.displayName="@mantine/core/CardSection";const mst=(e,{padding:r})=>({root:{"--card-padding":ao(r)}}),tN=Un((e,r)=>{const n=Pe("Card",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,padding:d,attributes:p,...f}=n,g=ht({name:"Card",props:n,classes:eN,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:mst}),b=S.Children.toArray(u),x=b.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===l5?S.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===b.length-1||void 0}):w);return y.jsx(hst,{value:{getStyles:g},children:y.jsx(K4,{ref:r,unstyled:s,...g("root"),...f,children:x})})});tN.classes=eN,tN.displayName="@mantine/core/Card",tN.Section=l5;var Joe={root:"m_b183c0a2"};const gst=(e,{color:r})=>({root:{"--code-bg":r?Wo(r,e):void 0}}),eae=Ke((e,r)=>{const n=Pe("Code",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,block:d,variant:p,mod:f,attributes:g,...b}=n,x=ht({name:"Code",props:n,classes:Joe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:gst});return y.jsx(Oe,{component:d?"pre":"code",variant:p,ref:r,mod:[{block:d},f],...x("root"),...b,dir:"ltr"})});eae.classes=Joe,eae.displayName="@mantine/core/Code";var tae={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const rae={withShadow:!0},yst=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:hn(r),"--cs-size":Fe(n)}}),nae=Un((e,r)=>{const n=Pe("ColorSwatch",rae,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,size:d,radius:p,withShadow:f,children:g,variant:b,attributes:x,...w}=Pe("ColorSwatch",rae,n),k=ht({name:"ColorSwatch",props:n,classes:tae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:c,varsResolver:yst});return y.jsxs(Oe,{ref:r,variant:b,size:d,...k("root",{focusable:!0}),...w,children:[y.jsx("span",{...k("alphaOverlay")}),f&&y.jsx("span",{...k("shadowOverlay")}),y.jsx("span",{...k("colorOverlay",{style:{backgroundColor:u}})}),y.jsx("span",{...k("childrenOverlay"),children:g})]})});nae.classes=tae,nae.displayName="@mantine/core/ColorSwatch";var oae={root:"m_7485cace"};const bst=(e,{size:r,fluid:n})=>({root:{"--container-size":n?void 0:rr(r,"container-size")}}),aae=Ke((e,r)=>{const n=Pe("Container",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,fluid:u,mod:d,attributes:p,strategy:f,...g}=n,b=ht({name:"Container",classes:oae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:bst});return y.jsx(Oe,{ref:r,mod:[{fluid:u,strategy:f||"block"},d],...b("root"),...g})});aae.classes=oae,aae.displayName="@mantine/core/Container";var iae={root:"m_3eebeb36",label:"m_9e365f20"};const vst={orientation:"horizontal"},xst=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Wo(r,e):void 0,"--divider-border-style":n,"--divider-size":rr(o,"divider-size")}}),lae=Ke((e,r)=>{const n=Pe("Divider",vst,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,orientation:d,label:p,labelPosition:f,mod:g,attributes:b,...x}=n,w=ht({name:"Divider",classes:iae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:xst});return y.jsx(Oe,{ref:r,mod:[{orientation:d,"with-label":!!p},g],...w("root"),...x,role:"separator",children:p&&y.jsx(Oe,{component:"span",mod:{position:f},...w("label"),children:p})})});lae.classes=iae,lae.displayName="@mantine/core/Divider";const[wst,Zm]=Ia("Drawer component was not found in tree");var bc={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const s5=Ke((e,r)=>{const n=Pe("DrawerBody",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Zm();return y.jsx(OA,{ref:r,...u.getStyles("body",{classNames:o,style:i,styles:l,className:a}),...c})});s5.classes=bc,s5.displayName="@mantine/core/DrawerBody";const c5=Ke((e,r)=>{const n=Pe("DrawerCloseButton",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Zm();return y.jsx(woe,{ref:r,...u.getStyles("close",{classNames:o,style:i,styles:l,className:a}),...c})});c5.classes=bc,c5.displayName="@mantine/core/DrawerCloseButton";const u5=Ke((e,r)=>{const n=Pe("DrawerContent",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,children:c,radius:u,__hidden:d,...p}=n,f=Zm(),g=f.scrollAreaComponent||Eoe;return y.jsx(IA,{...f.getStyles("content",{className:a,style:i,styles:l,classNames:o}),innerProps:f.getStyles("inner",{className:a,style:i,styles:l,classNames:o}),ref:r,...p,radius:u||f.radius||0,"data-hidden":d||void 0,children:y.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:c})})});u5.classes=bc,u5.displayName="@mantine/core/DrawerContent";const d5=Ke((e,r)=>{const n=Pe("DrawerHeader",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Zm();return y.jsx(koe,{ref:r,...u.getStyles("header",{classNames:o,style:i,styles:l,className:a}),...c})});d5.classes=bc,d5.displayName="@mantine/core/DrawerHeader";const p5=Ke((e,r)=>{const n=Pe("DrawerOverlay",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Zm();return y.jsx(zA,{ref:r,...u.getStyles("overlay",{classNames:o,style:i,styles:l,className:a}),...c})});p5.classes=bc,p5.displayName="@mantine/core/DrawerOverlay";function kst(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function _st(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const Est={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},Sst={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},Cst={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:_l("modal"),position:"left"},Tst=(e,{position:r,size:n,offset:o})=>({root:{"--drawer-size":rr(n,"drawer-size"),"--drawer-flex":_st(r),"--drawer-height":r==="left"||r==="right"?void 0:"var(--drawer-size)","--drawer-align":kst(r),"--drawer-justify":r==="right"?"flex-end":void 0,"--drawer-offset":Fe(o)}}),h5=Ke((e,r)=>{const n=Pe("DrawerRoot",Cst,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,scrollAreaComponent:u,position:d,transitionProps:p,radius:f,attributes:g,...b}=n,{dir:x}=hc(),w=ht({name:"Drawer",classes:bc,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:Tst}),k=(x==="rtl"?Sst:Est)[d];return y.jsx(wst,{value:{scrollAreaComponent:u,getStyles:w,radius:f},children:y.jsx(MA,{ref:r,...w("root"),transitionProps:{transition:k,...p},"data-offset-scrollbars":u===Bp.Autosize||void 0,unstyled:s,...b})})});h5.classes=bc,h5.displayName="@mantine/core/DrawerRoot";const[Rst,Ast]=Im();function sae({children:e}){const[r,n]=S.useState([]),[o,a]=S.useState(_l("modal"));return y.jsx(Rst,{value:{stack:r,addModal:(i,l)=>{n(s=>[...new Set([...s,i])]),a(s=>typeof l=="number"&&typeof s=="number"?Math.max(s,l):s)},removeModal:i=>n(l=>l.filter(s=>s!==i)),getZIndex:i=>`calc(${o} + ${r.indexOf(i)} + 1)`,currentId:r[r.length-1],maxZIndex:o},children:e})}sae.displayName="@mantine/core/DrawerStack";const f5=Ke((e,r)=>{const n=Pe("DrawerTitle",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Zm();return y.jsx(_oe,{ref:r,...u.getStyles("title",{classNames:o,style:i,styles:l,className:a}),...c})});f5.classes=bc,f5.displayName="@mantine/core/DrawerTitle";const Nst={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:_l("modal"),withOverlay:!0,withCloseButton:!0},bs=Ke((e,r)=>{const{title:n,withOverlay:o,overlayProps:a,withCloseButton:i,closeButtonProps:l,children:s,opened:c,stackId:u,zIndex:d,...p}=Pe("Drawer",Nst,e),f=Ast(),g=!!n||i,b=f&&u?{closeOnEscape:f.currentId===u,trapFocus:f.currentId===u,zIndex:f.getZIndex(u)}:{},x=o===!1?!1:u&&f?f.currentId===u:c;return S.useEffect(()=>{f&&u&&(c?f.addModal(u,d||_l("modal")):f.removeModal(u))},[c,u,d]),y.jsxs(h5,{ref:r,opened:c,zIndex:f&&u?f.getZIndex(u):d,...p,...b,children:[o&&y.jsx(p5,{visible:x,transitionProps:f&&u?{duration:0}:void 0,...a}),y.jsxs(u5,{__hidden:f&&u&&c?u!==f.currentId:!1,children:[g&&y.jsxs(d5,{children:[n&&y.jsx(f5,{children:n}),i&&y.jsx(c5,{...l})]}),y.jsx(s5,{children:s})]})]})});bs.classes=bc,bs.displayName="@mantine/core/Drawer",bs.Root=h5,bs.Overlay=p5,bs.Content=u5,bs.Body=s5,bs.Header=d5,bs.Title=f5,bs.CloseButton=c5,bs.Stack=sae;const[cae,uae]=Ia("Grid component was not found in tree"),rN=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,dae=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":rN(e,r),pae=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},hae=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function Dst({span:e,order:r,offset:n,selector:o}){const a=vo(),i=uae(),l=i.breakpoints||a.breakpoints,s=El(e)===void 0?12:El(e),c=Bu({"--col-order":El(r)?.toString(),"--col-flex-grow":pae(s,i.grow),"--col-flex-basis":rN(s,i.columns),"--col-width":s==="content"?"auto":void 0,"--col-max-width":dae(s,i.columns,i.grow),"--col-offset":hae(El(n),i.columns)}),u=Oo(l).reduce((p,f)=>(p[f]||(p[f]={}),typeof r=="object"&&r[f]!==void 0&&(p[f]["--col-order"]=r[f]?.toString()),typeof e=="object"&&e[f]!==void 0&&(p[f]["--col-flex-grow"]=pae(e[f],i.grow),p[f]["--col-flex-basis"]=rN(e[f],i.columns),p[f]["--col-width"]=e[f]==="content"?"auto":void 0,p[f]["--col-max-width"]=dae(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(p[f]["--col-offset"]=hae(n[f],i.columns)),p),{}),d=zR(Oo(u),l).filter(p=>Oo(u[p.value]).length>0).map(p=>({query:i.type==="container"?`mantine-grid (min-width: ${l[p.value]})`:`(min-width: ${l[p.value]})`,styles:u[p.value]}));return y.jsx(jm,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var nN={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Pst={span:12},oN=Ke((e,r)=>{const n=Pe("GridCol",Pst,e),{classNames:o,className:a,style:i,styles:l,vars:s,span:c,order:u,offset:d,...p}=n,f=uae(),g=tb();return y.jsxs(y.Fragment,{children:[y.jsx(Dst,{selector:`.${g}`,span:c,order:u,offset:d}),y.jsx(Oe,{ref:r,...f.getStyles("col",{className:io(a,g),style:i,classNames:o,styles:l}),...p})]})});oN.classes=nN,oN.displayName="@mantine/core/GridCol";function fae({gutter:e,selector:r,breakpoints:n,type:o}){const a=vo(),i=n||a.breakpoints,l=Bu({"--grid-gutter":ao(El(e))}),s=Oo(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=ao(e[d])),u),{}),c=zR(Oo(s),i).filter(u=>Oo(s[u.value]).length>0).map(u=>({query:o==="container"?`mantine-grid (min-width: ${i[u.value]})`:`(min-width: ${i[u.value]})`,styles:s[u.value]}));return y.jsx(jm,{styles:l,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const $st={gutter:"md",grow:!1,columns:12},Mst=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),aN=Ke((e,r)=>{const n=Pe("Grid",$st,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,grow:u,gutter:d,columns:p,align:f,justify:g,children:b,breakpoints:x,type:w,attributes:k,...C}=n,_=ht({name:"Grid",classes:nN,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:k,vars:c,varsResolver:Mst}),T=tb();return w==="container"&&x?y.jsxs(cae,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(fae,{selector:`.${T}`,...n}),y.jsx("div",{..._("container"),children:y.jsx(Oe,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})})]}):y.jsxs(cae,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(fae,{selector:`.${T}`,...n}),y.jsx(Oe,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})]})});aN.classes=nN,aN.displayName="@mantine/core/Grid",aN.Col=oN;function mae({color:e,theme:r,defaultShade:n}){const o=Op({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var gae={root:"m_bcb3f3c2"};const Ost={color:"yellow"},Ist=(e,{color:r})=>({root:{"--mark-bg-dark":mae({color:r,theme:e,defaultShade:5}),"--mark-bg-light":mae({color:r,theme:e,defaultShade:2})}}),iN=Ke((e,r)=>{const n=Pe("Mark",Ost,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,variant:d,attributes:p,...f}=n,g=ht({name:"Mark",props:n,className:a,style:i,classes:gae,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:Ist});return y.jsx(Oe,{component:"mark",ref:r,variant:d,...g("root"),...f})});iN.classes=gae,iN.displayName="@mantine/core/Mark";function yae(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function zst(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(yae):yae(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,l)=>l.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const bae=Un((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:l,...s}=Pe("Highlight",null,e),c=zst(o,a);return y.jsx(lb,{unstyled:n,ref:r,...s,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},p)=>d?y.jsx(iN,{unstyled:n,color:l,style:i,"data-highlight":u,children:u},p):y.jsx("span",{children:u},p))})});bae.classes=lb.classes,bae.displayName="@mantine/core/Highlight";const[R_t,vae]=Ia("HoverCard component was not found in the tree"),xae=S.createContext(!1),Lst=xae.Provider,wae=()=>S.useContext(xae);function Bst(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=Pe("HoverCardDropdown",null,e),i=vae();if(wae()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(xo.Dropdown,{ref:i.floating,...c,onMouseEnter:An(n,c.onMouseEnter),onMouseLeave:An(o,c.onMouseLeave),...a,children:r})}const l=An(n,i.openDropdown),s=An(o,i.closeDropdown);return y.jsx(xo.Dropdown,{onMouseEnter:l,onMouseLeave:s,...a,children:r})}Bst.displayName="@mantine/core/HoverCardDropdown";const jst={openDelay:0,closeDelay:0};function kae(e){const{openDelay:r,closeDelay:n,children:o}=Pe("HoverCardGroup",jst,e);return y.jsx(Lst,{value:!0,children:y.jsx(Lne,{delay:{open:r,close:n},children:o})})}kae.displayName="@mantine/core/HoverCardGroup",kae.extend=e=>e;const Fst={refProp:"ref"},Hst=S.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=Pe("HoverCardTarget",Fst,e);if(!kl(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=vae();if(wae()&&l.getReferenceProps&&l.reference){const d=l.getReferenceProps();return y.jsx(xo.Target,{refProp:o,ref:r,...i,children:S.cloneElement(n,a?{[a]:{...d,ref:l.reference}}:{...d,ref:l.reference})})}const s=An(n.props.onMouseEnter,l.openDropdown),c=An(n.props.onMouseLeave,l.closeDropdown),u={onMouseEnter:s,onMouseLeave:c};return y.jsx(xo.Target,{refProp:o,ref:r,...i,children:S.cloneElement(n,a?{[a]:u}:u)})});Hst.displayName="@mantine/core/HoverCardTarget";function _ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eae={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const Sae={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:_l("overlay")},qst=(e,{zIndex:r})=>({root:{"--lo-z-index":r?.toString()}}),Cae=Ke((e,r)=>{const n=Pe("LoadingOverlay",Sae,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,transitionProps:u,loaderProps:d,overlayProps:p,visible:f,zIndex:g,attributes:b,...x}=n,w=vo(),k=ht({name:"LoadingOverlay",classes:Eae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:qst}),C={...Sae.overlayProps,...p};return y.jsx(Al,{transition:"fade",...u,mounted:!!f,children:_=>y.jsxs(Oe,{...k("root",{style:_}),ref:r,...x,children:[y.jsx(Fp,{...k("loader"),unstyled:s,...d}),y.jsx(Wm,{...C,...k("overlay"),darkHidden:!0,unstyled:s,color:p?.color||w.white}),y.jsx(Wm,{...C,...k("overlay"),lightHidden:!0,unstyled:s,color:p?.color||w.colors.dark[5]})]})})});Cae.classes=Eae,Cae.displayName="@mantine/core/LoadingOverlay";const[A_t,Hu]=Ia("Menu component was not found in the tree");var Qm={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const Tae=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Pe("MenuDivider",null,e),c=Hu();return y.jsx(Oe,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...s})});Tae.classes=Qm,Tae.displayName="@mantine/core/MenuDivider";const Rae=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=Pe("MenuDropdown",null,e),f=S.useRef(null),g=Hu(),b=An(u,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=An(s,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=An(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return y.jsxs(xo.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:on(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&y.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),d]})});Rae.classes=Qm,Rae.displayName="@mantine/core/MenuDropdown";const[Ust,m5]=Im(),Aae=Un((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,color:s,closeMenuOnClick:c,leftSection:u,rightSection:d,children:p,disabled:f,"data-disabled":g,...b}=Pe("MenuItem",null,e),x=Hu(),w=m5(),k=vo(),{dir:C}=hc(),_=S.useRef(null),T=b,R=An(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),A=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,D=s?Op({color:s,theme:k}):null,N=An(T.onKeyDown,$=>{$.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return y.jsxs(ys,{onMouseDown:$=>$.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:on(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:R,onKeyDown:OR({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:N}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[u&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:u}),p&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:p}),d&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d})]})});Aae.classes=Qm,Aae.displayName="@mantine/core/MenuItem";const Nae=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Pe("MenuLabel",null,e),c=Hu();return y.jsx(Oe,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...s})});Nae.classes=Qm,Nae.displayName="@mantine/core/MenuLabel";const lN=Ke((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=Pe("MenuSubDropdown",null,e),f=S.useRef(null),g=Hu(),b=m5(),x=An(s,b?.open),w=An(c,b?.close);return y.jsx(xo.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:on(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});lN.classes=Qm,lN.displayName="@mantine/core/MenuSubDropdown";const sN=Un((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,color:s,leftSection:c,rightSection:u,children:d,disabled:p,"data-disabled":f,closeMenuOnClick:g,...b}=Pe("MenuSubItem",null,e),x=Hu(),w=m5(),k=vo(),{dir:C}=hc(),_=S.useRef(null),T=b,R=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,A=s?Op({color:s,theme:k}):null,D=An(T.onKeyDown,j=>{j.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),j.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),N=An(T.onClick,()=>{!f&&g&&x.closeDropdownImmediately()}),$=An(T.onMouseEnter,w?.open),O=An(T.onMouseLeave,w?.close);return y.jsxs(ys,{onMouseDown:j=>j.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:on(_,r),role:"menuitem",disabled:p,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":p||f||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:$,onMouseLeave:O,onClick:N,onKeyDown:OR({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":A?.isThemeColor&&A?.shade===void 0?`var(--mantine-color-${A.color}-6)`:R?.color,"--menu-item-hover":R?.hover},children:[c&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),d&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:d}),y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u||y.jsx(FA,{...x.getStyles("chevron"),size:14})})]})});sN.classes=Qm,sN.displayName="@mantine/core/MenuSubItem";function Dae({children:e,refProp:r}){if(!kl(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Hu(),y.jsx(xo.Target,{refProp:r,popupType:"menu",children:e})}Dae.displayName="@mantine/core/MenuSubTarget";const Vst={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function cb(e){const{children:r,closeDelay:n,...o}=Pe("MenuSub",Vst,e),a=Sl(),[i,{open:l,close:s}]=Cnt(!1),c=m5(),{openDropdown:u,closeDropdown:d}=Olt({open:l,close:s,closeDelay:n,openDelay:0});return y.jsx(Ust,{value:{opened:i,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:y.jsx(xo,{opened:i,withinPortal:!1,withArrow:!1,id:a,...o,children:r})})}cb.extend=e=>e,cb.displayName="@mantine/core/MenuSub",cb.Target=Dae,cb.Dropdown=lN,cb.Item=sN;const Yst={refProp:"ref"},Wst=S.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=Pe("MenuTarget",Yst,e);if(!kl(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Hu(),l=n.props,s=An(l.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=An(l.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=An(l.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return y.jsx(xo.Target,{refProp:o,popupType:"menu",ref:r,...a,children:S.cloneElement(n,{onClick:s,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});Wst.displayName="@mantine/core/MenuTarget";const[Gst,cN]=Ia("Modal component was not found in tree");var ub={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const Pae=Ke((e,r)=>{const n=Pe("ModalBody",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=cN();return y.jsx(OA,{ref:r,...u.getStyles("body",{classNames:o,style:i,styles:l,className:a}),...c})});Pae.classes=ub,Pae.displayName="@mantine/core/ModalBody";const $ae=Ke((e,r)=>{const n=Pe("ModalContent",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,children:c,__hidden:u,...d}=n,p=cN(),f=p.scrollAreaComponent||Eoe;return y.jsx(IA,{...p.getStyles("content",{className:a,style:i,styles:l,classNames:o}),innerProps:p.getStyles("inner",{className:a,style:i,styles:l,classNames:o}),"data-full-screen":p.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:r,...d,children:y.jsx(f,{style:{maxHeight:p.fullScreen?"100dvh":`calc(100dvh - (${Fe(p.yOffset)} * 2))`},children:c})})});$ae.classes=ub,$ae.displayName="@mantine/core/ModalContent";const Mae=Ke((e,r)=>{const n=Pe("ModalOverlay",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=cN();return y.jsx(zA,{ref:r,...u.getStyles("overlay",{classNames:o,style:i,styles:l,className:a}),...c})});Mae.classes=ub,Mae.displayName="@mantine/core/ModalOverlay";const Xst={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:_l("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},Kst=(e,{radius:r,size:n,yOffset:o,xOffset:a})=>({root:{"--modal-radius":r===void 0?void 0:hn(r),"--modal-size":rr(n,"modal-size"),"--modal-y-offset":Fe(o),"--modal-x-offset":Fe(a)}}),Oae=Ke((e,r)=>{const n=Pe("ModalRoot",Xst,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,yOffset:u,scrollAreaComponent:d,radius:p,fullScreen:f,centered:g,xOffset:b,__staticSelector:x,attributes:w,...k}=n,C=ht({name:x,classes:ub,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c,varsResolver:Kst});return y.jsx(Gst,{value:{yOffset:u,scrollAreaComponent:d,getStyles:C,fullScreen:f},children:y.jsx(MA,{ref:r,...C("root"),"data-full-screen":f||void 0,"data-centered":g||void 0,"data-offset-scrollbars":d===Bp.Autosize||void 0,unstyled:s,...k})})});Oae.classes=ub,Oae.displayName="@mantine/core/ModalRoot";const[N_t,Iae]=Im(),[Zst,Qst]=Im();var g5={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const Jst=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?rr(r):rr(n,"pg-gap")}}),uN=Ke((e,r)=>{const n=Pe("PillGroup",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,disabled:d,attributes:p,...f}=n,g=Iae()?.size||u||void 0,b=ht({name:"PillGroup",classes:g5,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:Jst,stylesCtx:{size:g},rootSelector:"group"});return y.jsx(Zst,{value:{size:g,disabled:d},children:y.jsx(Oe,{ref:r,size:g,...b("group"),...f})})});uN.classes=g5,uN.displayName="@mantine/core/PillGroup";const ect={variant:"default"},tct=(e,{radius:r},{size:n})=>({root:{"--pill-fz":rr(n,"pill-fz"),"--pill-height":rr(n,"pill-height"),"--pill-radius":r===void 0?void 0:hn(r)}}),dN=Ke((e,r)=>{const n=Pe("Pill",ect,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,variant:u,children:d,withRemoveButton:p,onRemove:f,removeButtonProps:g,radius:b,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=Qst(),R=Iae(),A=x||T?.size||void 0,D=R?.variant==="filled"?"contrast":u||"default",N=ht({name:"Pill",classes:g5,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,vars:c,varsResolver:tct,stylesCtx:{size:A}});return y.jsxs(Oe,{component:"span",ref:r,variant:D,size:A,...N("root",{variant:D}),mod:[{"with-remove":p&&!w,disabled:w||T?.disabled},k],..._,children:[y.jsx("span",{...N("label"),children:d}),p&&y.jsx(Hp,{variant:"transparent",radius:b,tabIndex:-1,"aria-hidden":!0,unstyled:s,...g,...N("remove",{className:g?.className,style:g?.style}),onMouseDown:$=>{$.preventDefault(),$.stopPropagation(),g?.onMouseDown?.($)},onClick:$=>{$.stopPropagation(),f?.(),g?.onClick?.($)}})]})});dN.classes=g5,dN.displayName="@mantine/core/Pill",dN.Group=uN;var zae={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const rct=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":ao(o)}}},Lae=Un((e,r)=>{const n=Pe("NavLink",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,opened:u,defaultOpened:d,onChange:p,children:f,active:g,disabled:b,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:R,autoContrast:A,mod:D,attributes:N,onClick:$,onKeyDown:O,...j}=n,L=ht({name:"NavLink",props:n,classes:zae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:N,vars:c,varsResolver:rct}),[Y,M]=ju({value:u,defaultValue:d,finalValue:!1,onChange:p}),q=!!f,z=H=>{$?.(H),q&&(H.preventDefault(),M(!Y))};return y.jsxs(y.Fragment,{children:[y.jsxs(ys,{...L("root"),component:"a",ref:r,onClick:z,onKeyDown:H=>{O?.(H),H.nativeEvent.code==="Space"&&q&&(H.preventDefault(),M(!Y))},unstyled:s,mod:[{disabled:b,active:g,expanded:Y},D],...j,children:[x&&y.jsx(Oe,{component:"span",...L("section"),mod:{position:"left"},children:x}),y.jsxs(Oe,{...L("body"),mod:{"no-wrap":T},children:[y.jsx(Oe,{component:"span",...L("label"),children:k}),y.jsx(Oe,{component:"span",mod:{active:g},...L("description"),children:C})]}),(q||w!==void 0)&&y.jsx(Oe,{...L("section"),component:"span",mod:{rotate:Y&&!_,position:"right"},children:q?w!==void 0?w:y.jsx(FA,{...L("chevron")}):w})]}),q&&y.jsx(nne,{in:Y,...L("collapse"),children:y.jsx("div",{...L("children"),children:f})})]})});Lae.classes=zae,Lae.displayName="@mantine/core/NavLink";var Bae={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const nct={withCloseButton:!0},oct=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:hn(r),"--notification-color":n?Wo(n,e):void 0}}),jae=Ke((e,r)=>{const n=Pe("Notification",nct,e),{className:o,color:a,radius:i,loading:l,withCloseButton:s,withBorder:c,title:u,icon:d,children:p,onClose:f,closeButtonProps:g,classNames:b,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:R,role:A,attributes:D,...N}=n,$=ht({name:"Notification",classes:Bae,props:n,className:o,style:x,classNames:b,styles:w,unstyled:k,attributes:D,vars:_,varsResolver:oct});return y.jsxs(Oe,{...$("root"),mod:[{"data-with-icon":!!d||l,"data-with-border":c},T],ref:r,variant:C,role:A||"alert",...N,children:[d&&!l&&y.jsx("div",{...$("icon"),children:d}),l&&y.jsx(Fp,{size:28,color:a,...R,...$("loader")}),y.jsxs("div",{...$("body"),children:[u&&y.jsx("div",{...$("title"),children:u}),y.jsx(Oe,{...$("description"),mod:{"data-with-title":!!u},children:p})]}),s&&y.jsx(Hp,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...$("closeButton")})]})});jae.classes=Bae,jae.displayName="@mantine/core/Notification";const act={duration:100,transition:"fade"};function Fae(e,r){return{...act,...r,...e}}function ict({offset:e,position:r,defaultOpened:n}){const[o,a]=S.useState(n),i=S.useRef(null),{x:l,y:s,elements:c,refs:u,update:d,placement:p}=wA({placement:r,middleware:[mA({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=p.includes("right")?e:r.includes("left")?e*-1:0,g=p.includes("bottom")?e:r.includes("top")?e*-1:0,b=S.useCallback(({clientX:x,clientY:w})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+f,top:w+g,right:x,bottom:w}}})},[c.reference]);return S.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",b);const w=gc(u.floating.current);return w.forEach(k=>{k.addEventListener("scroll",d)}),()=>{x.removeEventListener("mousemove",b),w.forEach(k=>{k.removeEventListener("scroll",d)})}}},[c.reference,u.floating.current,d,b,o]),{handleMouseMove:b,x:l,y:s,opened:o,setOpened:a,boundaryRef:i,floating:u.setFloating}}var y5={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const lct={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:_l("popover")},sct=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:hn(r),"--tooltip-bg":n?Wo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),pN=Ke((e,r)=>{const n=Pe("TooltipFloating",lct,e),{children:o,refProp:a,withinPortal:i,style:l,className:s,classNames:c,styles:u,unstyled:d,radius:p,color:f,label:g,offset:b,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:R,portalProps:A,attributes:D,...N}=n,$=vo(),O=ht({name:"TooltipFloating",props:n,classes:y5,className:s,style:l,classNames:c,styles:u,unstyled:d,attributes:D,rootSelector:"tooltip",vars:R,varsResolver:sct}),{handleMouseMove:j,x:L,y:Y,opened:M,boundaryRef:q,floating:z,setOpened:H}=ict({offset:b,position:x,defaultOpened:_});if(!kl(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const U=on(q,R4(o),r),K=o.props,V=Z=>{K.onMouseEnter?.(Z),j(Z),H(!0)},X=Z=>{K.onMouseLeave?.(Z),H(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(jp,{...A,withinPortal:i,children:y.jsx(Oe,{...N,...O("tooltip",{style:{...ZR(l,$),zIndex:k,display:!C&&M?"block":"none",top:(Y&&Math.round(Y))??"",left:(L&&Math.round(L))??""}}),variant:T,ref:z,mod:{multiline:w},children:g})}),S.cloneElement(o,{...K,[a]:U,onMouseEnter:V,onMouseLeave:X})]})});pN.classes=y5,pN.displayName="@mantine/core/TooltipFloating";const Hae=S.createContext(!1),cct=Hae.Provider,uct=()=>S.useContext(Hae),dct={openDelay:0,closeDelay:0};function hN(e){const{openDelay:r,closeDelay:n,children:o}=Pe("TooltipGroup",dct,e);return y.jsx(cct,{value:!0,children:y.jsx(Lne,{delay:{open:r,close:n},children:o})})}hN.displayName="@mantine/core/TooltipGroup",hN.extend=e=>e;function pct(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function hct(e){const r=pct(e.middlewares),n=[Tne(e.offset)];return r.shift&&n.push(mA(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?Y4():Y4(r.flip)),n.push(Ane({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?ab():ab(r.inline)):e.inline&&n.push(ab()),n}function fct(e){const[r,n]=S.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=uct(),i=Sl(),l=S.useCallback(T=>{n(T),T&&w(i)},[i]),{x:s,y:c,context:u,refs:d,placement:p,middlewareData:{arrow:{x:f,y:g}={}}}=wA({strategy:e.strategy,placement:e.position,open:o,onOpenChange:l,middleware:hct(e),whileElementsMounted:hA}),{delay:b,currentId:x,setCurrentId:w}=yit(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=_it([mit(u,{enabled:e.events?.hover,delay:a?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),kit(u,{enabled:e.events?.focus,visibleOnly:!0}),Sit(u,{role:"tooltip"}),xit(u,{enabled:typeof e.opened>"u"})]);$p(()=>{e.onPositionChange?.(p)},[p]);const _=o&&x&&x!==i;return{x:s,y:c,arrowX:f,arrowY:g,reference:d.setReference,floating:d.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:p}}const qae={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:_l("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},mct=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:hn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},b5=Ke((e,r)=>{const n=Pe("Tooltip",qae,e),{children:o,position:a,refProp:i,label:l,openDelay:s,closeDelay:c,onPositionChange:u,opened:d,defaultOpened:p,withinPortal:f,radius:g,color:b,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,offset:$,transitionProps:O,multiline:j,events:L,zIndex:Y,disabled:M,positionDependencies:q,onClick:z,onMouseEnter:H,onMouseLeave:U,inline:K,variant:V,keepMounted:X,vars:Z,portalProps:B,mod:W,floatingStrategy:Q,middlewares:J,autoContrast:ne,attributes:te,target:ee,...pe}=Pe("Tooltip",qae,n),{dir:Te}=hc(),ce=S.useRef(null),de=fct({position:ooe(Te,a),closeDelay:c,openDelay:s,onPositionChange:u,opened:d,defaultOpened:p,events:L,arrowRef:ce,arrowOffset:A,offset:typeof $=="number"?$+(T?R/2:0):$,positionDependencies:[...q,ee??o],inline:K,strategy:Q,middlewares:J});S.useEffect(()=>{const Ze=ee instanceof HTMLElement?ee:typeof ee=="string"?document.querySelector(ee):ee?.current||null;Ze&&de.reference(Ze)},[ee,de]);const xe=ht({name:"Tooltip",props:n,classes:y5,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:te,rootSelector:"tooltip",vars:Z,varsResolver:mct});if(!ee&&!kl(o))return null;if(ee){const Ze=Fae(O,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(jp,{...B,withinPortal:f,children:y.jsx(Al,{...Ze,keepMounted:X,mounted:!M&&!!de.opened,duration:de.isGroupPhase?10:Ze.duration,children:Et=>y.jsxs(Oe,{...pe,"data-fixed":Q==="fixed"||void 0,variant:V,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:xe("tooltip").className,style:{...xe("tooltip").style,...Et,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(Z4,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...xe("arrow")})]})})})})}const De=o,Ge=De.props,et=on(de.reference,R4(De),r),ft=Fae(O,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(jp,{...B,withinPortal:f,children:y.jsx(Al,{...ft,keepMounted:X,mounted:!M&&!!de.opened,duration:de.isGroupPhase?10:ft.duration,children:Ze=>y.jsxs(Oe,{...pe,"data-fixed":Q==="fixed"||void 0,variant:V,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:xe("tooltip").className,style:{...xe("tooltip").style,...Ze,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(Z4,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...xe("arrow")})]})})}),S.cloneElement(De,de.getReferenceProps({onClick:z,onMouseEnter:H,onMouseLeave:U,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:io(_,Ge.className),...Ge,[i]:et}))]})});b5.classes=y5,b5.displayName="@mantine/core/Tooltip",b5.Floating=pN,b5.Group=hN;var Uae={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const gct={withItemsBorders:!0},yct=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:hn(r),"--sc-color":n?Wo(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":rr(a,"sc-padding"),"--sc-font-size":Io(a)}}),Vae=Ke((e,r)=>{const n=Pe("SegmentedControl",gct,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,data:u,value:d,defaultValue:p,onChange:f,size:g,name:b,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:R,transitionTimingFunction:A,variant:D,autoContrast:N,withItemsBorders:$,mod:O,attributes:j,...L}=n,Y=ht({name:"SegmentedControl",props:n,classes:Uae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:yct}),M=vo(),q=u.map(ee=>typeof ee=="string"?{label:ee,value:ee}:ee),z=Nnt(),[H,U]=S.useState(LR()),[K,V]=S.useState(null),[X,Z]=S.useState({}),B=(ee,pe)=>{X[pe]=ee,Z(X)},[W,Q]=ju({value:d,defaultValue:p,finalValue:Array.isArray(u)?q.find(ee=>!ee.disabled)?.value??u[0]?.value??null:null,onChange:f}),J=Sl(b),ne=q.map(ee=>S.createElement(Oe,{...Y("control"),mod:{active:W===ee.value,orientation:C},key:ee.value},S.createElement("input",{...Y("input"),disabled:x||ee.disabled,type:"radio",name:J,value:ee.value,id:`${J}-${ee.value}`,checked:W===ee.value,onChange:()=>!w&&Q(ee.value),"data-focus-ring":M.focusRing,key:`${ee.value}-input`}),S.createElement(Oe,{component:"label",...Y("label"),mod:{active:W===ee.value&&!(x||ee.disabled),disabled:x||ee.disabled,"read-only":w},htmlFor:`${J}-${ee.value}`,ref:pe=>B(pe,ee.value),__vars:{"--sc-label-color":T!==void 0?UR({color:T,theme:M,autoContrast:N}):void 0},key:`${ee.value}-label`},y.jsx("span",{...Y("innerLabel"),children:ee.label})))),te=on(r,ee=>V(ee));return Snt(()=>{U(LR())},[u.length]),u.length===0?null:y.jsxs(Oe,{...Y("root"),variant:D,size:g,ref:te,mod:[{"full-width":k,orientation:C,initialized:z,"with-items-borders":$},O],...L,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&y.jsx(jA,{target:X[W],parent:K,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},H),ne]})});Vae.classes=Uae,Vae.displayName="@mantine/core/SegmentedControl";const bct={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Yae=Ke((e,r)=>{const n=Pe("Select",bct,e),{classNames:o,styles:a,unstyled:i,vars:l,dropdownOpened:s,defaultDropdownOpened:c,onDropdownClose:u,onDropdownOpen:d,onFocus:p,onBlur:f,onClick:g,onChange:b,data:x,value:w,defaultValue:k,selectFirstOptionOnChange:C,onOptionSubmit:_,comboboxProps:T,readOnly:R,disabled:A,filter:D,limit:N,withScrollArea:$,maxDropdownHeight:O,size:j,searchable:L,rightSection:Y,checkIconPosition:M,withCheckIcon:q,nothingFoundMessage:z,name:H,form:U,searchValue:K,defaultSearchValue:V,onSearchChange:X,allowDeselect:Z,error:B,rightSectionPointerEvents:W,id:Q,clearable:J,clearButtonProps:ne,hiddenInputProps:te,renderOption:ee,onClear:pe,autoComplete:Te,scrollAreaProps:ce,__defaultRightSection:de,__clearSection:xe,__clearable:De,chevronColor:Ge,autoSelectOnBlur:et,attributes:ft,...Ze}=n,Et=S.useMemo(()=>Flt(x),[x]),Xe=S.useRef({}),We=S.useMemo(()=>Ioe(Et),[Et]),st=Sl(Q),[ct,zn,we]=ju({value:w,defaultValue:k,finalValue:null,onChange:b}),_e=typeof ct=="string"?ct in We?We[ct]:Xe.current[ct]:void 0,at=Rnt(_e),[vt,Ct,Zr]=ju({value:K,defaultValue:V,finalValue:_e?_e.label:"",onChange:X}),Pt=Hoe({opened:s,defaultOpened:c,onDropdownOpen:()=>{d?.(),Pt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),setTimeout(Pt.resetSelectedOption,0)}}),Sr=hr=>{Ct(hr),Pt.resetSelectedOption()},{resolvedClassNames:Pr,resolvedStyles:fn}=VR({props:n,styles:a,classNames:o});S.useEffect(()=>{C&&Pt.selectFirstOption()},[C,vt]),S.useEffect(()=>{w===null&&Sr(""),typeof w=="string"&&_e&&(at?.value!==_e.value||at?.label!==_e.label)&&Sr(_e.label)},[w,_e]),S.useEffect(()=>{!we&&!Zr&&Sr(typeof ct=="string"?ct in We?We[ct]?.label:Xe.current[ct]?.label||"":"")},[We,ct]),S.useEffect(()=>{ct&&ct in We&&(Xe.current[ct]=We[ct])},[We,ct]);const ar=y.jsx(vr.ClearButton,{...ne,onClear:()=>{zn(null,null),Sr(""),pe?.()}}),ha=J&&!!ct&&!A&&!R;return y.jsxs(y.Fragment,{children:[y.jsxs(vr,{store:Pt,__staticSelector:"Select",classNames:Pr,styles:fn,unstyled:i,readOnly:R,size:j,attributes:ft,keepMounted:et,onOptionSubmit:hr=>{_?.(hr);const Ua=Z&&We[hr].value===ct?null:We[hr],Ni=Ua?Ua.value:null;Ni!==ct&&zn(Ni,Ua),!we&&Sr(typeof Ni=="string"&&Ua?.label||""),Pt.closeDropdown()},...T,children:[y.jsx(vr.Target,{targetType:L?"input":"button",autoComplete:Te,children:y.jsx(a5,{id:st,ref:r,__defaultRightSection:y.jsx(vr.Chevron,{size:j,error:B,unstyled:i,color:Ge}),__clearSection:ar,__clearable:ha,rightSection:Y,rightSectionPointerEvents:W||"none",...Ze,size:j,__staticSelector:"Select",disabled:A,readOnly:R||!L,value:vt,onChange:hr=>{Sr(hr.currentTarget.value),Pt.openDropdown(),C&&Pt.selectFirstOption()},onFocus:hr=>{L&&Pt.openDropdown(),p?.(hr)},onBlur:hr=>{et&&Pt.clickSelectedOption(),L&&Pt.closeDropdown();const Ua=typeof ct=="string"&&(ct in We?We[ct]:Xe.current[ct]);Sr(Ua&&Ua.label||""),f?.(hr)},onClick:hr=>{L?Pt.openDropdown():Pt.toggleDropdown(),g?.(hr)},classNames:Pr,styles:fn,unstyled:i,pointer:!L,error:B,attributes:ft})}),y.jsx(ost,{data:Et,hidden:R||A,filter:D,search:vt,limit:N,hiddenWhenEmpty:!z,withScrollArea:$,maxDropdownHeight:O,filterOptions:!!L&&_e?.label!==vt,value:ct,checkIconPosition:M,withCheckIcon:q,nothingFoundMessage:z,unstyled:i,labelId:Ze.label?`${st}-label`:void 0,"aria-label":Ze.label?void 0:Ze["aria-label"],renderOption:ee,scrollAreaProps:ce})]}),y.jsx(vr.HiddenInput,{value:ct,name:H,form:U,disabled:A,...te})]})});Yae.classes={...a5.classes,...vr.classes},Yae.displayName="@mantine/core/Select";function vct({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=vo(),i=r===void 0?e:r,l=Bu({"--sg-spacing-x":ao(El(e)),"--sg-spacing-y":ao(El(i)),"--sg-cols":El(n)?.toString()}),s=Oo(a.breakpoints).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=ao(e[d])),typeof i=="object"&&i[d]!==void 0&&(u[d]["--sg-spacing-y"]=ao(i[d])),typeof n=="object"&&n[d]!==void 0&&(u[d]["--sg-cols"]=n[d]),u),{}),c=zR(Oo(s),a.breakpoints).filter(u=>Oo(s[u.value]).length>0).map(u=>({query:`(min-width: ${a.breakpoints[u.value]})`,styles:s[u.value]}));return y.jsx(jm,{styles:l,media:c,selector:o})}function fN(e){return typeof e=="object"&&e!==null?Oo(e):[]}function xct(e){return e.sort((r,n)=>C4(r)-C4(n))}function wct({spacing:e,verticalSpacing:r,cols:n}){const o=Array.from(new Set([...fN(e),...fN(r),...fN(n)]));return xct(o)}function kct({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=r===void 0?e:r,i=Bu({"--sg-spacing-x":ao(El(e)),"--sg-spacing-y":ao(El(a)),"--sg-cols":El(n)?.toString()}),l=wct({spacing:e,verticalSpacing:r,cols:n}),s=l.reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=ao(e[d])),typeof a=="object"&&a[d]!==void 0&&(u[d]["--sg-spacing-y"]=ao(a[d])),typeof n=="object"&&n[d]!==void 0&&(u[d]["--sg-cols"]=n[d]),u),{}),c=l.map(u=>({query:`simple-grid (min-width: ${u})`,styles:s[u]}));return y.jsx(jm,{styles:i,container:c,selector:o})}var Wae={container:"m_925c2d2c",root:"m_2415a157"};const _ct={cols:1,spacing:"md",type:"media"},Gae=Ke((e,r)=>{const n=Pe("SimpleGrid",_ct,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,cols:u,verticalSpacing:d,spacing:p,type:f,attributes:g,...b}=n,x=ht({name:"SimpleGrid",classes:Wae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c}),w=tb();return f==="container"?y.jsxs(y.Fragment,{children:[y.jsx(kct,{...n,selector:`.${w}`}),y.jsx("div",{...x("container"),children:y.jsx(Oe,{ref:r,...x("root",{className:w}),...b})})]}):y.jsxs(y.Fragment,{children:[y.jsx(vct,{...n,selector:`.${w}`}),y.jsx(Oe,{ref:r,...x("root",{className:w}),...b})]})});Gae.classes=Wae,Gae.displayName="@mantine/core/SimpleGrid";const[Ect,v5]=Ia("SliderProvider was not found in tree"),Xae=S.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...l},s)=>{const{getStyles:c}=v5();return y.jsx(Oe,{tabIndex:-1,variant:n,size:e,ref:s,...c("root"),...l})});Xae.displayName="@mantine/core/SliderRoot";const Kae=S.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:l,onKeyDownCapture:s,labelTransitionProps:c,labelAlwaysOn:u,thumbLabel:d,onFocus:p,onBlur:f,showLabelOnHover:g,isHovered:b,children:x=null,disabled:w},k)=>{const{getStyles:C}=v5(),[_,T]=S.useState(!1),R=u||i||_||g&&b;return y.jsxs(Oe,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:A=>{T(!0),typeof p=="function"&&p(A)},onBlur:A=>{T(!1),typeof f=="function"&&f(A)},onTouchStart:l,onMouseDown:l,onKeyDownCapture:s,onClick:A=>A.stopPropagation(),children:[x,y.jsx(Al,{mounted:a!=null&&!!R,transition:"fade",duration:0,...c,children:A=>y.jsx("div",{...C("label",{style:A}),children:a})})]})});Kae.displayName="@mantine/core/SliderThumb";function Zae({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function Sct({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function Qae({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:l}){const{getStyles:s}=v5();if(!e)return null;const c=e.map((u,d)=>S.createElement(Oe,{...s("markWrapper"),__vars:{"--mark-offset":`${Zae({value:u.value,min:r,max:n})}%`},key:d},y.jsx(Oe,{...s("mark"),mod:{filled:Sct({mark:u,value:a,offset:i,inverted:l}),disabled:o}}),u.label&&y.jsx("div",{...s("markLabel"),children:u.label})));return y.jsx("div",{children:c})}Qae.displayName="@mantine/core/SliderMarks";function Jae({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:l,...s}){const{getStyles:c}=v5();return y.jsx(Oe,{...c("trackContainer"),mod:{disabled:o},...l,children:y.jsxs(Oe,{...c("track"),mod:{inverted:i,disabled:o},children:[y.jsx(Oe,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,y.jsx(Qae,{...s,offset:a,disabled:o,inverted:i})]})})}Jae.displayName="@mantine/core/SliderTrack";function Cct({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const l=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),s=(l!==0?Math.round(l/a)*a:0)+n,c=Math.max(s,n);return i!==void 0?Number(c.toFixed(i)):c}function x5(e,r){return parseFloat(e.toFixed(r))}function Tct(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function mN(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function gN(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.value<e);return n?n.value:e}function eie(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[0].value:0}function tie(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var rie={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const Rct={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},Act=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":rr(r,"slider-size"),"--slider-color":n?Wo(n,e):void 0,"--slider-radius":a===void 0?void 0:hn(a),"--slider-thumb-size":o!==void 0?Fe(o):"calc(var(--slider-size) * 2)"}}),nie=Ke((e,r)=>{const n=Pe("Slider",Rct,e),{classNames:o,styles:a,value:i,onChange:l,onChangeEnd:s,size:c,min:u,max:d,domain:p,step:f,precision:g,defaultValue:b,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:R,thumbChildren:A,disabled:D,unstyled:N,scale:$,inverted:O,className:j,style:L,vars:Y,hiddenInputProps:M,restrictToMarks:q,thumbProps:z,attributes:H,...U}=n,K=ht({name:"Slider",props:n,classes:rie,classNames:o,className:j,styles:a,style:L,attributes:H,vars:Y,varsResolver:Act,unstyled:N}),{dir:V}=hc(),[X,Z]=S.useState(!1),[B,W]=ju({value:typeof i=="number"?zm(i,u,d):i,defaultValue:typeof b=="number"?zm(b,u,d):b,finalValue:zm(0,u,d),onChange:l}),Q=S.useRef(B),J=S.useRef(s);S.useEffect(()=>{J.current=s},[s]);const ne=S.useRef(null),te=S.useRef(null),[ee,pe]=p||[u,d],Te=Zae({value:B,min:ee,max:pe}),ce=$(B),de=typeof k=="function"?k(ce):k,xe=g??Tct(f),De=S.useCallback(({x:Xe})=>{if(!D){const We=Cct({value:Xe,min:ee,max:pe,step:f,precision:xe}),st=zm(We,u,d);W(q&&w?.length?Hre(st,w.map(ct=>ct.value)):st),Q.current=st}},[D,u,d,ee,pe,f,xe,W,w,q]),Ge=S.useCallback(()=>{if(!D&&J.current){const Xe=q&&w?.length?Hre(Q.current,w.map(We=>We.value)):Q.current;J.current(Xe)}},[D,w,q]),{ref:et,active:ft}=knt(De,{onScrubEnd:Ge},V),Ze=S.useCallback(Xe=>{!D&&J.current&&J.current(Xe)},[D]),Et=Xe=>{if(!D)switch(Xe.key){case"ArrowUp":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=mN(B,w);W(st),Ze(st);break}const We=x5(Math.min(Math.max(B+f,u),d),xe);W(We),Ze(We);break}case"ArrowRight":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=V==="rtl"?gN(B,w):mN(B,w);W(st),Ze(st);break}const We=x5(Math.min(Math.max(V==="rtl"?B-f:B+f,u),d),xe);W(We),Ze(We);break}case"ArrowDown":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=gN(B,w);W(st),Ze(st);break}const We=x5(Math.min(Math.max(B-f,u),d),xe);W(We),Ze(We);break}case"ArrowLeft":{if(Xe.preventDefault(),te.current?.focus(),q&&w){const st=V==="rtl"?mN(B,w):gN(B,w);W(st),Ze(st);break}const We=x5(Math.min(Math.max(V==="rtl"?B+f:B-f,u),d),xe);W(We),Ze(We);break}case"Home":{if(Xe.preventDefault(),te.current?.focus(),q&&w){W(eie(w)),Ze(eie(w));break}W(u),Ze(u);break}case"End":{if(Xe.preventDefault(),te.current?.focus(),q&&w){W(tie(w)),Ze(tie(w));break}W(d),Ze(d);break}}};return y.jsx(Ect,{value:{getStyles:K},children:y.jsxs(Xae,{...U,ref:on(r,ne),onKeyDownCapture:Et,onMouseDownCapture:()=>ne.current?.focus(),size:c,disabled:D,children:[y.jsx(Jae,{inverted:O,offset:0,filled:Te,marks:w,min:ee,max:pe,value:ce,disabled:D,containerProps:{ref:et,onMouseEnter:R?()=>Z(!0):void 0,onMouseLeave:R?()=>Z(!1):void 0},children:y.jsx(Kae,{max:pe,min:ee,value:ce,position:Te,dragging:ft,label:de,ref:te,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:R,isHovered:X,disabled:D,...z,children:A})}),y.jsx("input",{type:"hidden",name:x,value:ce,...M})]})})});nie.classes=rie,nie.displayName="@mantine/core/Slider";const Nct=Ke((e,r)=>{const{w:n,h:o,miw:a,mih:i,...l}=Pe("Space",null,e);return y.jsx(Oe,{ref:r,...l,w:n,miw:a??n,h:o,mih:i??o})});Nct.displayName="@mantine/core/Space";var oie={root:"m_6d731127"};const Dct={gap:"md",align:"stretch",justify:"flex-start"},Pct=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":ao(r),"--stack-align":n,"--stack-justify":o}}),aie=Ke((e,r)=>{const n=Pe("Stack",Dct,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,align:u,justify:d,gap:p,variant:f,attributes:g,...b}=n,x=ht({name:"Stack",props:n,classes:oie,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:Pct});return y.jsx(Oe,{ref:r,...x("root"),variant:f,...b})});aie.classes=oie,aie.displayName="@mantine/core/Stack";const[$ct,yN]=Ia("Tabs component was not found in the tree");var db={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const bN=Ke((e,r)=>{const n=Pe("TabsList",null,e),{children:o,className:a,grow:i,justify:l,classNames:s,styles:c,style:u,mod:d,...p}=n,f=yN();return y.jsx(Oe,{...p,...f.getStyles("list",{className:a,style:u,classNames:s,styles:c,props:n,variant:f.variant}),ref:r,role:"tablist",variant:f.variant,mod:[{grow:i,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},d],"aria-orientation":f.orientation,__vars:{"--tabs-justify":l},children:o})});bN.classes=db,bN.displayName="@mantine/core/TabsList";const vN=Ke((e,r)=>{const n=Pe("TabsPanel",null,e),{children:o,className:a,value:i,classNames:l,styles:s,style:c,mod:u,keepMounted:d,...p}=n,f=yN(),g=f.value===i,b=f.keepMounted||d||g?o:null;return y.jsx(Oe,{...f.getStyles("panel",{className:a,classNames:l,styles:s,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:f.orientation},u],role:"tabpanel",id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...p,children:b})});vN.classes=db,vN.displayName="@mantine/core/TabsPanel";const xN=Ke((e,r)=>{const n=Pe("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:l,value:s,onClick:c,onKeyDown:u,disabled:d,color:p,style:f,classNames:g,styles:b,vars:x,mod:w,tabIndex:k,...C}=n,_=vo(),{dir:T}=hc(),R=yN(),A=s===R.value,D=$=>{R.onChange(R.allowTabDeactivation&&s===R.value?null:s),c?.($)},N={classNames:g,styles:b,props:n};return y.jsxs(ys,{...R.getStyles("tab",{className:o,style:f,variant:R.variant,...N}),disabled:d,unstyled:R.unstyled,variant:R.variant,mod:[{active:A,disabled:d,orientation:R.orientation,inverted:R.inverted,placement:R.orientation==="vertical"&&R.placement},w],ref:r,role:"tab",id:R.getTabId(s),"aria-selected":A,tabIndex:k!==void 0?k:A||R.value===null?0:-1,"aria-controls":R.getPanelId(s),onClick:D,__vars:{"--tabs-color":p?Wo(p,_):void 0},onKeyDown:OR({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:R.activateTabWithKeyboard,loop:R.loop,orientation:R.orientation||"horizontal",dir:T,onKeyDown:u}),...C,children:[l&&y.jsx("span",{...R.getStyles("tabSection",N),"data-position":"left",children:l}),a&&y.jsx("span",{...R.getStyles("tabLabel",N),children:a}),i&&y.jsx("span",{...R.getStyles("tabSection",N),"data-position":"right",children:i})]})});xN.classes=db,xN.displayName="@mantine/core/TabsTab";const iie="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",Mct={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},Oct=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":hn(r),"--tabs-color":Wo(n,e),"--tabs-text-color":pot(o,e)?UR({color:n,theme:e,autoContrast:o}):void 0}}),pb=Ke((e,r)=>{const n=Pe("Tabs",Mct,e),{defaultValue:o,value:a,onChange:i,orientation:l,children:s,loop:c,id:u,activateTabWithKeyboard:d,allowTabDeactivation:p,variant:f,color:g,radius:b,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:R,style:A,vars:D,autoContrast:N,mod:$,attributes:O,...j}=n,L=Sl(u),[Y,M]=ju({value:a,defaultValue:o,finalValue:null,onChange:i}),q=ht({name:"Tabs",props:n,classes:db,className:R,style:A,classNames:C,styles:_,unstyled:T,attributes:O,vars:D,varsResolver:Oct});return y.jsx($ct,{value:{placement:w,value:Y,orientation:l,id:L,loop:c,activateTabWithKeyboard:d,getTabId:Mre(`${L}-tab`,iie),getPanelId:Mre(`${L}-panel`,iie),onChange:M,allowTabDeactivation:p,variant:f,color:g,radius:b,inverted:x,keepMounted:k,unstyled:T,getStyles:q},children:y.jsx(Oe,{ref:r,id:L,variant:f,mod:[{orientation:l,inverted:l==="horizontal"&&x,placement:l==="vertical"&&w},$],...q("root"),...j,children:s})})});pb.classes=db,pb.displayName="@mantine/core/Tabs",pb.Tab=xN,pb.Panel=vN,pb.List=bN;var lie={root:"m_7341320d"};const Ict=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:l});return{root:{"--ti-size":rr(r,"ti-size"),"--ti-radius":n===void 0?void 0:hn(n),"--ti-bg":i||o?s.background:void 0,"--ti-color":i||o?s.color:void 0,"--ti-bd":i||o?s.border:void 0}}},sie=Ke((e,r)=>{const n=Pe("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,autoContrast:u,attributes:d,...p}=n,f=ht({name:"ThemeIcon",classes:lie,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,vars:c,varsResolver:Ict});return y.jsx(Oe,{ref:r,...f("root"),...p})});sie.classes=lie,sie.displayName="@mantine/core/ThemeIcon";const zct=["h1","h2","h3","h4","h5","h6"],Lct=["xs","sm","md","lg","xl"];function Bct(e,r){const n=r!==void 0?r:`h${e}`;return zct.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Lct.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:Fe(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var cie={root:"m_8a5d1357"};const jct={order:1},Fct=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=Bct(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},uie=Ke((e,r)=>{const n=Pe("Title",jct,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,order:c,vars:u,size:d,variant:p,lineClamp:f,textWrap:g,mod:b,attributes:x,...w}=n,k=ht({name:"Title",props:n,classes:cie,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:u,varsResolver:Fct});return[1,2,3,4,5,6].includes(c)?y.jsx(Oe,{...k("root"),component:`h${c}`,variant:p,ref:r,mod:[{order:c,"data-line-clamp":typeof f=="number"},b],size:d,...w}):null});uie.classes=cie,uie.displayName="@mantine/core/Title";function die(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),l=Math.max(o,a);return n.slice(i,l+1)}function wN({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:l,level:s=1,renderNode:c,flatValues:u,allowRangeSelection:d,expandOnSpace:p,checkOnSpace:f}){const g=S.useRef(null),b=(e.children||[]).map(_=>y.jsx(wN,{node:_,flatValues:u,getStyles:r,rootIndex:void 0,level:s+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:d,expandOnSpace:p,checkOnSpace:f},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):l&&Qy(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=Qy(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const R=Array.from(T.querySelectorAll("[role=treeitem]")),A=R.indexOf(_.currentTarget);if(A===-1)return;const D=_.nativeEvent.code==="ArrowDown"?A+1:A-1;if(R[D]?.focus(),_.shiftKey){const N=R[D];N&&o.setSelectedState(die(o.anchorNode,N.dataset.value,u))}}_.nativeEvent.code==="Space"&&(p&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),f&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),d&&_.shiftKey&&o.anchorNode?(o.setSelectedState(die(o.anchorNode,e.value,u)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return y.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${s-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":s,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:s,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):y.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&b.length>0&&y.jsx(Oe,{component:"ul",role:"group",...r("subtree"),"data-level":s,children:b})]})}wN.displayName="@mantine/core/TreeNode";function w5(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=w5(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const l=i.currentTreeChecked.every(c=>c.checked),s={checked:l,indeterminate:!l,value:a.value,hasChildren:!0};o.push(s),n.push(s)}else if(i.currentTreeChecked.length>0){const l={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(l),n.push(l)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function pie(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=pie(e,n.children);if(o)return o}}return null}function k5(e,r,n=[]){const o=pie(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?k5(a.value,r,n):n.push(a.value)}),n):n}function hie(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...hie(n.children)):r.push(n.value),r),[])}function Hct(e,r,n){return n.length===0?!1:n.includes(e)?!0:w5(r,n).result.some(o=>o.value===e&&o.checked)}const qct=Fre(Hct);function Uct(e,r,n){return n.length===0?!1:w5(r,n).result.some(o=>o.value===e&&o.indeterminate)}const Vct=Fre(Uct);function fie(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&fie(e,a.children,n,o)}),o}function Yct(e,r){const n=[];return e.forEach(o=>n.push(...k5(o,r))),Array.from(new Set(n))}function Wct({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[l,s]=S.useState([]),[c,u]=S.useState(n),[d,p]=S.useState(e),[f,g]=S.useState(r),[b,x]=S.useState(null),[w,k]=S.useState(null),C=S.useCallback(z=>{u(H=>fie(H,z,d)),g(H=>Yct(H,z)),s(z)},[d,f]),_=S.useCallback(z=>{u(H=>{const U={...H,[z]:!H[z]};return U[z]?i?.(z):a?.(z),U})},[a,i]),T=S.useCallback(z=>{u(H=>(H[z]!==!1&&a?.(z),{...H,[z]:!1}))},[a]),R=S.useCallback(z=>{u(H=>(H[z]!==!0&&i?.(z),{...H,[z]:!0}))},[i]),A=S.useCallback(()=>{u(z=>{const H={...z};return Object.keys(H).forEach(U=>{H[U]=!0}),H})},[]),D=S.useCallback(()=>{u(z=>{const H={...z};return Object.keys(H).forEach(U=>{H[U]=!1}),H})},[]),N=S.useCallback(z=>p(H=>o?H.includes(z)?(x(null),H.filter(U=>U!==z)):(x(z),[...H,z]):H.includes(z)?(x(null),[]):(x(z),[z])),[]),$=S.useCallback(z=>{x(z),p(H=>o?H.includes(z)?H:[...H,z]:[z])},[]),O=S.useCallback(z=>{b===z&&x(null),p(H=>H.filter(U=>U!==z))},[]),j=S.useCallback(()=>{p([]),x(null)},[]),L=S.useCallback(z=>{const H=k5(z,l);g(U=>Array.from(new Set([...U,...H])))},[l]),Y=S.useCallback(z=>{const H=k5(z,l);g(U=>U.filter(K=>!H.includes(K)))},[l]),M=S.useCallback(()=>{g(()=>hie(l))},[l]),q=S.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:d,checkedState:f,anchorNode:b,initialize:C,toggleExpanded:_,collapse:T,expand:R,expandAllNodes:A,collapseAllNodes:D,setExpandedState:u,checkNode:L,uncheckNode:Y,checkAllNodes:M,uncheckAllNodes:q,setCheckedState:g,toggleSelected:N,select:$,deselect:O,clearSelected:j,setSelectedState:p,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>w5(l,f).result,isNodeChecked:z=>qct(z,l,f),isNodeIndeterminate:z=>Vct(z,l,f)}}var mie={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function gie(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...gie(n.children)),r),[])}const Gct={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},Xct=(e,{levelOffset:r})=>({root:{"--level-offset":ao(r)}}),yie=Ke((e,r)=>{const n=Pe("Tree",Gct,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,data:u,expandOnClick:d,tree:p,renderNode:f,selectOnClick:g,clearSelectionOnOutsideClick:b,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,R=Wct(),A=p||R,D=ht({name:"Tree",classes:mie,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:Xct}),N=Ore(()=>b&&A.clearSelected()),$=on(r,N),O=S.useMemo(()=>gie(u),[u]);S.useEffect(()=>{A.initialize(u)},[u]);const j=u.map((L,Y)=>y.jsx(wN,{node:L,getStyles:D,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:A,renderNode:f,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},L.value));return y.jsx(Oe,{component:"ul",ref:$,...D("root"),...T,role:"tree","aria-multiselectable":A.multiple,"data-tree-root":!0,children:j})});yie.displayName="@mantine/core/Tree",yie.classes=mie;var Kct="Invariant failed";function _5(e,r){if(!e)throw new Error(Kct)}function Zct(e){return typeof e=="function"}function bie(e,r){return Zct(e)?e(r):e}function Qct(e,r){return r.reduce((n,o)=>(n[o]=e[o],n),{})}function vie(e,r){if(e===r)return e;const n=r,o=wie(e)&&wie(n);if(o||E5(e)&&E5(n)){const a=o?e:Object.keys(e),i=a.length,l=o?n:Object.keys(n),s=l.length,c=o?[]:{};let u=0;for(let d=0;d<s;d++){const p=o?d:l[d];(!o&&a.includes(p)||o)&&e[p]===void 0&&n[p]===void 0?(c[p]=void 0,u++):(c[p]=vie(e[p],n[p]),c[p]===e[p]&&e[p]!==void 0&&u++)}return i===s&&u===i?e:c}return n}function E5(e){if(!xie(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const n=r.prototype;return!(!xie(n)||!n.hasOwnProperty("isPrototypeOf"))}function xie(e){return Object.prototype.toString.call(e)==="[object Object]"}function wie(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kie(e,r){let n=Object.keys(e);return r&&(n=n.filter(o=>e[o]!==void 0)),n}function kN(e,r,n){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(E5(e)&&E5(r)){const o=n?.ignoreUndefined??!0,a=kie(e,o),i=kie(r,o);return!n?.partial&&a.length!==i.length?!1:i.every(l=>kN(e[l],r[l],n))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((o,a)=>!kN(o,r[a],n)):!1}function Jct(e){let r,n;const o=new Promise((a,i)=>{r=a,n=i});return o.status="pending",o.resolve=a=>{o.status="resolved",o.value=a,r(a)},o.reject=a=>{o.status="rejected",n(a)},o}function S5(e,r){return e?.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function eut(e,r,n){return S5(e,n)===S5(r,n)}function C5(e){return!!e?.isNotFound}const _ie="tsr-scroll-restoration-v1_3";let Eie=!1;try{Eie=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}Eie&&JSON.parse(window.sessionStorage.getItem(_ie)||"null");const Sie=e=>e.state.key||e.href;function tut(e,r,n,o,a){var i;let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(u){console.error(u);return}const s=r||((i=window.history.state)==null?void 0:i.key),c=l[s];(()=>{if(o&&c){for(const d in c){const p=c[d];if(d==="window")window.scrollTo({top:p.scrollY,left:p.scrollX,behavior:n});else if(d){const f=document.querySelector(d);f&&(f.scrollLeft=p.scrollX,f.scrollTop=p.scrollY)}}return}const u=window.location.hash.split("#")[1];if(u){const d=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(d){const p=document.getElementById(u);p&&p.scrollIntoView(d)}return}["window",...a?.filter(d=>d!=="window")??[]].forEach(d=>{const p=d==="window"?window:document.querySelector(d);p&&p.scrollTo({top:0,left:0,behavior:n})})})()}const Cie="__root__";function rut(e){return!!e?.isRedirect}function nut(e){const r=e.resolvedLocation,n=e.location,o=r?.pathname!==n.pathname,a=r?.href!==n.href,i=r?.hash!==n.hash;return{fromLocation:r,toLocation:n,pathChanged:o,hrefChanged:a,hashChanged:i}}const out="Error preloading route! ☝️";function Tie(e){const r=e.errorComponent??_N;return y.jsx(aut,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:o})=>n?S.createElement(r,{error:n,reset:o}):e.children})}class aut extends S.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,n){this.props.onCatch&&this.props.onCatch(r,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function _N({error:e}){const[r,n]=S.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(o=>!o),children:r?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),r?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}var Rie={exports:{}},EN={},Aie={exports:{}},SN={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Nie;function iut(){if(Nie)return SN;Nie=1;var e=Qr;function r(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function s(p,f){var g=f(),b=o({inst:{value:g,getSnapshot:f}}),x=b[0].inst,w=b[1];return i(function(){x.value=g,x.getSnapshot=f,c(x)&&w({inst:x})},[p,g,f]),a(function(){return c(x)&&w({inst:x}),p(function(){c(x)&&w({inst:x})})},[p]),l(g),g}function c(p){var f=p.getSnapshot;p=p.value;try{var g=f();return!n(p,g)}catch{return!0}}function u(p,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return SN.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,SN}var Die;function lut(){return Die||(Die=1,Aie.exports=iut()),Aie.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pie;function sut(){if(Pie)return EN;Pie=1;var e=Qr,r=lut();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,l=e.useEffect,s=e.useMemo,c=e.useDebugValue;return EN.useSyncExternalStoreWithSelector=function(u,d,p,f,g){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=s(function(){function k(A){if(!C){if(C=!0,_=A,A=f(A),g!==void 0&&x.hasValue){var D=x.value;if(g(D,A))return T=D}return T=A}if(D=T,o(_,A))return D;var N=f(A);return g!==void 0&&g(D,N)?(_=A,D):(_=A,T=N)}var C=!1,_,T,R=p===void 0?null:p;return[function(){return k(d())},R===null?void 0:function(){return k(R())}]},[d,p,f,g]);var w=a(u,b[0],b[1]);return l(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},EN}var $ie;function cut(){return $ie||($ie=1,Rie.exports=sut()),Rie.exports}var Mie=cut();const uut=_ae(Mie);function dut(e,r=n=>n){return Mie.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,put)}function put(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!r.has(o)||!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(r,n[o])||!Object.is(e[n[o]],r[n[o]]))return!1;return!0}const CN=S.createContext(null);function hut(){return typeof document>"u"?CN:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=CN,CN)}function qp(e){const r=S.useContext(hut());return e?.warn,r}function Dl(e){const r=qp({warn:e?.router===void 0}),n=e?.router||r,o=S.useRef(void 0);return dut(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=vie(o.current,e.select(a));return o.current=i,i}return e.select(a)}return a})}const Oie=S.createContext(void 0);S.createContext(void 0);function fut(e){const r=Dl({select:n=>`not-found-${n.location.pathname}-${n.status}`});return y.jsx(Tie,{getResetKey:()=>r,onCatch:(n,o)=>{var a;if(C5(n))(a=e.onCatch)==null||a.call(e,n,o);else throw n},errorComponent:({error:n})=>{var o;if(C5(n))return(o=e.fallback)==null?void 0:o.call(e,n);throw n},children:e.children})}function mut(){return y.jsx("p",{children:"Not Found"})}function TN(e){return y.jsx(y.Fragment,{children:e.children})}function Iie(e,r,n){return r.options.notFoundComponent?y.jsx(r.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{data:n}):y.jsx(mut,{})}var RN,zie;function gut(){if(zie)return RN;zie=1;const e={},r=e.hasOwnProperty,n=(N,$)=>{for(const O in N)r.call(N,O)&&$(O,N[O])},o=(N,$)=>($&&n($,(O,j)=>{N[O]=j}),N),a=(N,$)=>{const O=N.length;let j=-1;for(;++j<O;)$(N[j])},i=N=>"\\u"+("0000"+N).slice(-4),l=(N,$)=>{let O=N.toString(16);return $?O:O.toUpperCase()},s=e.toString,c=Array.isArray,u=N=>typeof Buffer=="function"&&Buffer.isBuffer(N),d=N=>s.call(N)=="[object Object]",p=N=>typeof N=="string"||s.call(N)=="[object String]",f=N=>typeof N=="number"||s.call(N)=="[object Number]",g=N=>typeof N=="bigint",b=N=>typeof N=="function",x=N=>s.call(N)=="[object Map]",w=N=>s.call(N)=="[object Set]",k={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},C=/[\\\b\f\n\r\t]/,_=/[0-9]/,T=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,R=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,D=(N,$)=>{const O=()=>{H=z,++$.indentLevel,z=$.indent.repeat($.indentLevel)},j={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"	",indentLevel:0,__inline1__:!1,__inline2__:!1},L=$&&$.json;L&&(j.quotes="double",j.wrap=!0),$=o(j,$),$.quotes!="single"&&$.quotes!="double"&&$.quotes!="backtick"&&($.quotes="single");const Y=$.quotes=="double"?'"':$.quotes=="backtick"?"`":"'",M=$.compact,q=$.lowercaseHex;let z=$.indent.repeat($.indentLevel),H="";const U=$.__inline1__,K=$.__inline2__,V=M?"":`
`;let X,Z=!0;const B=$.numbers=="binary",W=$.numbers=="octal",Q=$.numbers=="decimal",J=$.numbers=="hexadecimal";if(L&&N&&b(N.toJSON)&&(N=N.toJSON()),!p(N)){if(x(N))return N.size==0?"new Map()":(M||($.__inline1__=!0,$.__inline2__=!1),"new Map("+D(Array.from(N),$)+")");if(w(N))return N.size==0?"new Set()":"new Set("+D(Array.from(N),$)+")";if(u(N))return N.length==0?"Buffer.from([])":"Buffer.from("+D(Array.from(N),$)+")";if(c(N))return X=[],$.wrap=!0,U&&($.__inline1__=!1,$.__inline2__=!0),K||O(),a(N,te=>{Z=!1,K&&($.__inline2__=!1),X.push((M||K?"":z)+D(te,$))}),Z?"[]":K?"["+X.join(", ")+"]":"["+V+X.join(","+V)+V+(M?"":H)+"]";if(f(N)||g(N)){if(L)return JSON.stringify(Number(N));let te;if(Q)te=String(N);else if(J){let ee=N.toString(16);q||(ee=ee.toUpperCase()),te="0x"+ee}else B?te="0b"+N.toString(2):W&&(te="0o"+N.toString(8));return g(N)?te+"n":te}else return g(N)?L?JSON.stringify(Number(N)):N+"n":d(N)?(X=[],$.wrap=!0,O(),n(N,(te,ee)=>{Z=!1,X.push((M?"":z)+D(te,$)+":"+(M?"":" ")+D(ee,$))}),Z?"{}":"{"+V+X.join(","+V)+V+(M?"":H)+"}"):L?JSON.stringify(N)||"null":String(N)}const ne=$.escapeEverything?R:A;return X=N.replace(ne,(te,ee,pe,Te,ce,de)=>{if(ee){if($.minimal)return ee;const De=ee.charCodeAt(0),Ge=ee.charCodeAt(1);if($.es6){const et=(De-55296)*1024+Ge-56320+65536;return"\\u{"+l(et,q)+"}"}return i(l(De,q))+i(l(Ge,q))}if(pe)return i(l(pe.charCodeAt(0),q));if(te=="\0"&&!L&&!_.test(de.charAt(ce+1)))return"\\0";if(Te)return Te==Y||$.escapeEverything?"\\"+Te:Te;if(C.test(te))return k[te];if($.minimal&&!T.test(te))return te;const xe=l(te.charCodeAt(0),q);return L||xe.length>2?i(xe):"\\x"+("00"+xe).slice(-2)}),Y=="`"&&(X=X.replace(/\$\{/g,"\\${")),$.isScriptContext&&(X=X.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,L?"\\u003C!--":"\\x3C!--")),$.wrap&&(X=Y+X+Y),X};return D.version="3.0.2",RN=D,RN}gut();function yut({children:e,log:r}){return typeof document<"u"?null:y.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
`)}})}function but(){const e=qp(),r=(e.options.getScrollRestorationKey||Sie)(e.latestLocation),n=r!==Sie(e.latestLocation)?r:null;return!e.isScrollRestoring||!e.isServer?null:y.jsx(yut,{children:`(${tut.toString()})(${JSON.stringify(_ie)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const vut=S.memo(function({matchId:e}){var r,n;const o=qp(),a=Dl({select:w=>{var k;return(k=w.matches.find(C=>C.id===e))==null?void 0:k.routeId}});_5(a);const i=o.routesById[a],l=i.options.pendingComponent??o.options.defaultPendingComponent,s=l?y.jsx(l,{}):null,c=i.options.errorComponent??o.options.defaultErrorComponent,u=i.options.onCatch??o.options.defaultOnCatch,d=i.isRoot?i.options.notFoundComponent??((r=o.options.notFoundRoute)==null?void 0:r.options.component):i.options.notFoundComponent,p=(!i.isRoot||i.options.wrapInSuspense)&&(i.options.wrapInSuspense??l??((n=i.options.errorComponent)==null?void 0:n.preload))?S.Suspense:TN,f=c?Tie:TN,g=d?fut:TN,b=Dl({select:w=>w.loadedAt}),x=Dl({select:w=>{var k;const C=w.matches.findIndex(_=>_.id===e);return(k=w.matches[C-1])==null?void 0:k.routeId}});return y.jsxs(y.Fragment,{children:[y.jsx(Oie.Provider,{value:e,children:y.jsx(p,{fallback:s,children:y.jsx(f,{getResetKey:()=>b,errorComponent:c||_N,onCatch:(w,k)=>{if(C5(w))throw w;u?.(w,k)},children:y.jsx(g,{fallback:w=>{if(!d||w.routeId&&w.routeId!==a||!w.routeId&&!i.isRoot)throw w;return S.createElement(d,w)},children:y.jsx(wut,{matchId:e})})})})}),x===Cie&&o.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(xut,{}),y.jsx(but,{})]}):null]})});function xut(){var e;const r=qp(),n=S.useRef(void 0);return y.jsx("script",{suppressHydrationWarning:!0,ref:o=>{var a;o&&(n.current===void 0||n.current.href!==((a=r.state.resolvedLocation)==null?void 0:a.href))&&(r.emit({type:"onRendered",...nut(r.state)}),n.current=r.state.resolvedLocation)}},(e=r.state.resolvedLocation)==null?void 0:e.state.key)}const wut=S.memo(function({matchId:e}){var r,n,o;const a=qp(),{match:i,key:l,routeId:s}=Dl({select:p=>{const f=p.matches.findIndex(k=>k.id===e),g=p.matches[f],b=g.routeId,x=a.routesById[b].options.remountDeps??a.options.defaultRemountDeps,w=x?.({routeId:b,loaderDeps:g.loaderDeps,params:g._strictParams,search:g._strictSearch});return{key:w?JSON.stringify(w):void 0,routeId:b,match:Qct(g,["id","status","error"])}},structuralSharing:!0}),c=a.routesById[s],u=S.useMemo(()=>{const p=c.options.component??a.options.defaultComponent;return p?y.jsx(p,{},l):y.jsx(kut,{})},[l,c.options.component,a.options.defaultComponent]),d=(c.options.errorComponent??a.options.defaultErrorComponent)||_N;if(i.status==="notFound")return _5(C5(i.error)),Iie(a,c,i.error);if(i.status==="redirected")throw _5(rut(i.error)),(r=a.getMatch(i.id))==null?void 0:r.loadPromise;if(i.status==="error"){if(a.isServer)return y.jsx(d,{error:i.error,reset:void 0,info:{componentStack:""}});throw i.error}if(i.status==="pending"){const p=c.options.pendingMinMs??a.options.defaultPendingMinMs;if(p&&!((n=a.getMatch(i.id))!=null&&n.minPendingPromise)&&!a.isServer){const f=Jct();Promise.resolve().then(()=>{a.updateMatch(i.id,g=>({...g,minPendingPromise:f}))}),setTimeout(()=>{f.resolve(),a.updateMatch(i.id,g=>({...g,minPendingPromise:void 0}))},p)}throw(o=a.getMatch(i.id))==null?void 0:o.loadPromise}return u}),kut=S.memo(function(){const e=qp(),r=S.useContext(Oie),n=Dl({select:c=>{var u;return(u=c.matches.find(d=>d.id===r))==null?void 0:u.routeId}}),o=e.routesById[n],a=Dl({select:c=>{const u=c.matches.find(d=>d.id===r);return _5(u),u.globalNotFound}}),i=Dl({select:c=>{var u;const d=c.matches,p=d.findIndex(f=>f.id===r);return(u=d[p+1])==null?void 0:u.id}});if(a)return Iie(e,o,void 0);if(!i)return null;const l=y.jsx(vut,{matchId:i}),s=e.options.defaultPendingComponent?y.jsx(e.options.defaultPendingComponent,{}):null;return r===Cie?y.jsx(S.Suspense,{fallback:s,children:l}):l}),_ut=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Eut(e,r,n={},o={}){const a=S.useRef(typeof IntersectionObserver=="function"),i=S.useRef(null);return S.useEffect(()=>{if(!(!e.current||!a.current||o.disabled))return i.current=new IntersectionObserver(([l])=>{r(l)},n),i.current.observe(e.current),()=>{var l;(l=i.current)==null||l.disconnect()}},[r,n,o.disabled,e]),i.current}function Sut(e){const r=S.useRef(null);return S.useImperativeHandle(e,()=>r.current,[]),r}function Cut(e){return Dl({select:r=>{const n=r.matches;return e?.select?e.select(n):n},structuralSharing:e?.structuralSharing})}function Tut(e,r){const n=qp(),[o,a]=S.useState(!1),i=S.useRef(!1),l=Sut(r),{activeProps:s=()=>({className:"active"}),inactiveProps:c=()=>({}),activeOptions:u,to:d,preload:p,preloadDelay:f,hashScrollIntoView:g,replace:b,startTransition:x,resetScroll:w,viewTransition:k,children:C,target:_,disabled:T,style:R,className:A,onClick:D,onFocus:N,onMouseEnter:$,onMouseLeave:O,onTouchStart:j,ignoreBlocker:L,...Y}=e,{params:M,search:q,hash:z,state:H,mask:U,reloadDocument:K,...V}=Y,X=S.useMemo(()=>{try{return new URL(`${d}`),"external"}catch{}return"internal"},[d]),Z=Dl({select:Xe=>Xe.location.search,structuralSharing:!0}),B=Cut({select:Xe=>{var We;return e.from??((We=Xe[Xe.length-1])==null?void 0:We.fullPath)}}),W=S.useMemo(()=>({...e,from:B}),[e,B]),Q=S.useMemo(()=>n.buildLocation(W),[n,W,Z]),J=S.useMemo(()=>W.reloadDocument?!1:p??n.options.defaultPreload,[n.options.defaultPreload,p,W.reloadDocument]),ne=f??n.options.defaultPreloadDelay??0,te=Dl({select:Xe=>{if(u?.exact){if(!eut(Xe.location.pathname,Q.pathname,n.basepath))return!1}else{const We=S5(Xe.location.pathname,n.basepath).split("/");if(!S5(Q.pathname,n.basepath).split("/").every((st,ct)=>st===We[ct]))return!1}return(u?.includeSearch??!0)&&!kN(Xe.location.search,Q.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?Xe.location.hash===Q.hash:!0}}),ee=S.useCallback(()=>{n.preloadRoute(W).catch(Xe=>{console.warn(Xe),console.warn(out)})},[W,n]),pe=S.useCallback(Xe=>{Xe?.isIntersecting&&ee()},[ee]);if(Eut(l,pe,{rootMargin:"100px"},{disabled:!!T||J!=="viewport"}),_ut(()=>{i.current||!T&&J==="render"&&(ee(),i.current=!0)},[T,ee,J]),X==="external")return{...V,ref:l,type:X,href:d,...C&&{children:C},..._&&{target:_},...T&&{disabled:T},...R&&{style:R},...A&&{className:A},...D&&{onClick:D},...N&&{onFocus:N},...$&&{onMouseEnter:$},...O&&{onMouseLeave:O},...j&&{onTouchStart:j}};const Te=Xe=>{if(!T&&!Rut(Xe)&&!Xe.defaultPrevented&&(!_||_==="_self")&&Xe.button===0){Xe.preventDefault(),Fi.flushSync(()=>{a(!0)});const We=n.subscribe("onResolved",()=>{We(),a(!1)});return n.navigate({...W,replace:b,resetScroll:w,hashScrollIntoView:g,startTransition:x,viewTransition:k,ignoreBlocker:L})}},ce=Xe=>{T||J&&ee()},de=ce,xe=Xe=>{if(T)return;const We=Xe.target||{};if(J){if(We.preloadTimeout)return;We.preloadTimeout=setTimeout(()=>{We.preloadTimeout=null,ee()},ne)}},De=Xe=>{if(T)return;const We=Xe.target||{};We.preloadTimeout&&(clearTimeout(We.preloadTimeout),We.preloadTimeout=null)},Ge=Xe=>We=>{var st;(st=We.persist)==null||st.call(We),Xe.filter(Boolean).forEach(ct=>{We.defaultPrevented||ct(We)})},et=te?bie(s,{})??{}:{},ft=te?{}:bie(c,{}),Ze=[A,et.className,ft.className].filter(Boolean).join(" "),Et={...R,...et.style,...ft.style};return{...V,...et,...ft,href:T?void 0:Q.maskedLocation?n.history.createHref(Q.maskedLocation.href):n.history.createHref(Q.href),ref:l,onClick:Ge([D,Te]),onFocus:Ge([N,ce]),onMouseEnter:Ge([$,xe]),onMouseLeave:Ge([O,De]),onTouchStart:Ge([j,de]),disabled:!!T,target:_,...Object.keys(Et).length&&{style:Et},...Ze&&{className:Ze},...T&&{role:"link","aria-disabled":!0},...te&&{"data-status":"active","aria-current":"page"},...o&&{"data-transitioning":"transitioning"}}}S.forwardRef((e,r)=>{const{_asChild:n,...o}=e,{type:a,ref:i,...l}=Tut(o,r),s=typeof o.children=="function"?o.children({isActive:l["data-status"]==="active"}):o.children;return typeof n>"u"&&delete l.disabled,S.createElement(n||"a",{...l,ref:i},s)});function Rut(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Nn(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=Nn(e[n]))!==""&&(r+=(r&&" ")+o);else for(let n in e)e[n]&&(r+=(r&&" ")+n);return r}var Aut={value:()=>{}};function T5(){for(var e=0,r=arguments.length,n={},o;e<r;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new R5(n)}function R5(e){this._=e}function Nut(e,r){return e.trim().split(/^|\s+/).map(function(n){var o="",a=n.indexOf(".");if(a>=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}R5.prototype=T5.prototype={constructor:R5,on:function(e,r){var n=this._,o=Nut(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i<l;)if((a=(e=o[i]).type)&&(a=Dut(n[a],e.name)))return a;return}if(r!=null&&typeof r!="function")throw new Error("invalid callback: "+r);for(;++i<l;)if(a=(e=o[i]).type)n[a]=Lie(n[a],e.name,r);else if(r==null)for(a in n)n[a]=Lie(n[a],e.name,null);return this},copy:function(){var e={},r=this._;for(var n in r)e[n]=r[n].slice();return new R5(e)},call:function(e,r){if((a=arguments.length-2)>0)for(var n=new Array(a),o=0,a,i;o<a;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(r,n)},apply:function(e,r,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],a=0,i=o.length;a<i;++a)o[a].value.apply(r,n)}};function Dut(e,r){for(var n=0,o=e.length,a;n<o;++n)if((a=e[n]).name===r)return a.value}function Lie(e,r,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===r){e[o]=Aut,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:r,value:n}),e}var AN="http://www.w3.org/1999/xhtml";const Bie={svg:"http://www.w3.org/2000/svg",xhtml:AN,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function A5(e){var r=e+="",n=r.indexOf(":");return n>=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Bie.hasOwnProperty(r)?{space:Bie[r],local:e}:e}function Put(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===AN&&r.documentElement.namespaceURI===AN?r.createElement(e):r.createElementNS(n,e)}}function $ut(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function jie(e){var r=A5(e);return(r.local?$ut:Put)(r)}function Mut(){}function NN(e){return e==null?Mut:function(){return this.querySelector(e)}}function Out(e){typeof e!="function"&&(e=NN(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],l=i.length,s=o[a]=new Array(l),c,u,d=0;d<l;++d)(c=i[d])&&(u=e.call(c,c.__data__,d,i))&&("__data__"in c&&(u.__data__=c.__data__),s[d]=u);return new La(o,this._parents)}function Iut(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function zut(){return[]}function Fie(e){return e==null?zut:function(){return this.querySelectorAll(e)}}function Lut(e){return function(){return Iut(e.apply(this,arguments))}}function But(e){typeof e=="function"?e=Lut(e):e=Fie(e);for(var r=this._groups,n=r.length,o=[],a=[],i=0;i<n;++i)for(var l=r[i],s=l.length,c,u=0;u<s;++u)(c=l[u])&&(o.push(e.call(c,c.__data__,u,l)),a.push(c));return new La(o,a)}function Hie(e){return function(){return this.matches(e)}}function qie(e){return function(r){return r.matches(e)}}var jut=Array.prototype.find;function Fut(e){return function(){return jut.call(this.children,e)}}function Hut(){return this.firstElementChild}function qut(e){return this.select(e==null?Hut:Fut(typeof e=="function"?e:qie(e)))}var Uut=Array.prototype.filter;function Vut(){return Array.from(this.children)}function Yut(e){return function(){return Uut.call(this.children,e)}}function Wut(e){return this.selectAll(e==null?Vut:Yut(typeof e=="function"?e:qie(e)))}function Gut(e){typeof e!="function"&&(e=Hie(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],l=i.length,s=o[a]=[],c,u=0;u<l;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&s.push(c);return new La(o,this._parents)}function Uie(e){return new Array(e.length)}function Xut(){return new La(this._enter||this._groups.map(Uie),this._parents)}function N5(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}N5.prototype={constructor:N5,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Kut(e){return function(){return e}}function Zut(e,r,n,o,a,i){for(var l=0,s,c=r.length,u=i.length;l<u;++l)(s=r[l])?(s.__data__=i[l],o[l]=s):n[l]=new N5(e,i[l]);for(;l<c;++l)(s=r[l])&&(a[l]=s)}function Qut(e,r,n,o,a,i,l){var s,c,u=new Map,d=r.length,p=i.length,f=new Array(d),g;for(s=0;s<d;++s)(c=r[s])&&(f[s]=g=l.call(c,c.__data__,s,r)+"",u.has(g)?a[s]=c:u.set(g,c));for(s=0;s<p;++s)g=l.call(e,i[s],s,i)+"",(c=u.get(g))?(o[s]=c,c.__data__=i[s],u.delete(g)):n[s]=new N5(e,i[s]);for(s=0;s<d;++s)(c=r[s])&&u.get(f[s])===c&&(a[s]=c)}function Jut(e){return e.__data__}function edt(e,r){if(!arguments.length)return Array.from(this,Jut);var n=r?Qut:Zut,o=this._parents,a=this._groups;typeof e!="function"&&(e=Kut(e));for(var i=a.length,l=new Array(i),s=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],p=a[u],f=p.length,g=tdt(e.call(d,d&&d.__data__,u,o)),b=g.length,x=s[u]=new Array(b),w=l[u]=new Array(b),k=c[u]=new Array(f);n(d,p,x,w,k,g,r);for(var C=0,_=0,T,R;C<b;++C)if(T=x[C]){for(C>=_&&(_=C+1);!(R=w[_])&&++_<b;);T._next=R||null}}return l=new La(l,o),l._enter=s,l._exit=c,l}function tdt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rdt(){return new La(this._exit||this._groups.map(Uie),this._parents)}function ndt(e,r,n){var o=this.enter(),a=this,i=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),r!=null&&(a=r(a),a&&(a=a.selection())),n==null?i.remove():n(i),o&&a?o.merge(a).order():a}function odt(e){for(var r=e.selection?e.selection():e,n=this._groups,o=r._groups,a=n.length,i=o.length,l=Math.min(a,i),s=new Array(a),c=0;c<l;++c)for(var u=n[c],d=o[c],p=u.length,f=s[c]=new Array(p),g,b=0;b<p;++b)(g=u[b]||d[b])&&(f[b]=g);for(;c<a;++c)s[c]=n[c];return new La(s,this._parents)}function adt(){for(var e=this._groups,r=-1,n=e.length;++r<n;)for(var o=e[r],a=o.length-1,i=o[a],l;--a>=0;)(l=o[a])&&(i&&l.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(l,i),i=l);return this}function idt(e){e||(e=ldt);function r(p,f){return p&&f?e(p.__data__,f.__data__):!p-!f}for(var n=this._groups,o=n.length,a=new Array(o),i=0;i<o;++i){for(var l=n[i],s=l.length,c=a[i]=new Array(s),u,d=0;d<s;++d)(u=l[d])&&(c[d]=u);c.sort(r)}return new La(a,this._parents).order()}function ldt(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function sdt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function cdt(){return Array.from(this)}function udt(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length;a<i;++a){var l=o[a];if(l)return l}return null}function ddt(){let e=0;for(const r of this)++e;return e}function pdt(){return!this.node()}function hdt(e){for(var r=this._groups,n=0,o=r.length;n<o;++n)for(var a=r[n],i=0,l=a.length,s;i<l;++i)(s=a[i])&&e.call(s,s.__data__,i,a);return this}function fdt(e){return function(){this.removeAttribute(e)}}function mdt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gdt(e,r){return function(){this.setAttribute(e,r)}}function ydt(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function bdt(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function vdt(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function xdt(e,r){var n=A5(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((r==null?n.local?mdt:fdt:typeof r=="function"?n.local?vdt:bdt:n.local?ydt:gdt)(n,r))}function Vie(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function wdt(e){return function(){this.style.removeProperty(e)}}function kdt(e,r,n){return function(){this.style.setProperty(e,r,n)}}function _dt(e,r,n){return function(){var o=r.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function Edt(e,r,n){return arguments.length>1?this.each((r==null?wdt:typeof r=="function"?_dt:kdt)(e,r,n??"")):Jm(this.node(),e)}function Jm(e,r){return e.style.getPropertyValue(r)||Vie(e).getComputedStyle(e,null).getPropertyValue(r)}function Sdt(e){return function(){delete this[e]}}function Cdt(e,r){return function(){this[e]=r}}function Tdt(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Rdt(e,r){return arguments.length>1?this.each((r==null?Sdt:typeof r=="function"?Tdt:Cdt)(e,r)):this.node()[e]}function Yie(e){return e.trim().split(/^|\s+/)}function DN(e){return e.classList||new Wie(e)}function Wie(e){this._node=e,this._names=Yie(e.getAttribute("class")||"")}Wie.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Gie(e,r){for(var n=DN(e),o=-1,a=r.length;++o<a;)n.add(r[o])}function Xie(e,r){for(var n=DN(e),o=-1,a=r.length;++o<a;)n.remove(r[o])}function Adt(e){return function(){Gie(this,e)}}function Ndt(e){return function(){Xie(this,e)}}function Ddt(e,r){return function(){(r.apply(this,arguments)?Gie:Xie)(this,e)}}function Pdt(e,r){var n=Yie(e+"");if(arguments.length<2){for(var o=DN(this.node()),a=-1,i=n.length;++a<i;)if(!o.contains(n[a]))return!1;return!0}return this.each((typeof r=="function"?Ddt:r?Adt:Ndt)(n,r))}function $dt(){this.textContent=""}function Mdt(e){return function(){this.textContent=e}}function Odt(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function Idt(e){return arguments.length?this.each(e==null?$dt:(typeof e=="function"?Odt:Mdt)(e)):this.node().textContent}function zdt(){this.innerHTML=""}function Ldt(e){return function(){this.innerHTML=e}}function Bdt(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function jdt(e){return arguments.length?this.each(e==null?zdt:(typeof e=="function"?Bdt:Ldt)(e)):this.node().innerHTML}function Fdt(){this.nextSibling&&this.parentNode.appendChild(this)}function Hdt(){return this.each(Fdt)}function qdt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Udt(){return this.each(qdt)}function Vdt(e){var r=typeof e=="function"?e:jie(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function Ydt(){return null}function Wdt(e,r){var n=typeof e=="function"?e:jie(e),o=r==null?Ydt:typeof r=="function"?r:NN(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Gdt(){var e=this.parentNode;e&&e.removeChild(this)}function Xdt(){return this.each(Gdt)}function Kdt(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function Zdt(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function Qdt(e){return this.select(e?Zdt:Kdt)}function Jdt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function ept(e){return function(r){e.call(this,r,this.__data__)}}function tpt(e){return e.trim().split(/^|\s+/).map(function(r){var n="",o=r.indexOf(".");return o>=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function rpt(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n<a;++n)i=r[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):r[++o]=i;++o?r.length=o:delete this.__on}}}function npt(e,r,n){return function(){var o=this.__on,a,i=ept(r);if(o){for(var l=0,s=o.length;l<s;++l)if((a=o[l]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=i,a.options=n),a.value=r;return}}this.addEventListener(e.type,i,n),a={type:e.type,name:e.name,value:r,listener:i,options:n},o?o.push(a):this.__on=[a]}}function opt(e,r,n){var o=tpt(e+""),a,i=o.length,l;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,d;c<u;++c)for(a=0,d=s[c];a<i;++a)if((l=o[a]).type===d.type&&l.name===d.name)return d.value}return}for(s=r?npt:rpt,a=0;a<i;++a)this.each(s(o[a],r,n));return this}function Kie(e,r,n){var o=Vie(e),a=o.CustomEvent;typeof a=="function"?a=new a(r,n):(a=o.document.createEvent("Event"),n?(a.initEvent(r,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(r,!1,!1)),e.dispatchEvent(a)}function apt(e,r){return function(){return Kie(this,e,r)}}function ipt(e,r){return function(){return Kie(this,e,r.apply(this,arguments))}}function lpt(e,r){return this.each((typeof r=="function"?ipt:apt)(e,r))}function*spt(){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var o=e[r],a=0,i=o.length,l;a<i;++a)(l=o[a])&&(yield l)}var Zie=[null];function La(e,r){this._groups=e,this._parents=r}function hb(){return new La([[document.documentElement]],Zie)}function cpt(){return this}La.prototype=hb.prototype={constructor:La,select:Out,selectAll:But,selectChild:qut,selectChildren:Wut,filter:Gut,data:edt,enter:Xut,exit:rdt,join:ndt,merge:odt,selection:cpt,order:adt,sort:idt,call:sdt,nodes:cdt,node:udt,size:ddt,empty:pdt,each:hdt,attr:xdt,style:Edt,property:Rdt,classed:Pdt,text:Idt,html:jdt,raise:Hdt,lower:Udt,append:Vdt,insert:Wdt,remove:Xdt,clone:Qdt,datum:Jdt,on:opt,dispatch:lpt,[Symbol.iterator]:spt};function Ba(e){return typeof e=="string"?new La([[document.querySelector(e)]],[document.documentElement]):new La([[e]],Zie)}function upt(e){let r;for(;r=e.sourceEvent;)e=r;return e}function Pl(e,r){if(e=upt(e),r===void 0&&(r=e.currentTarget),r){var n=r.ownerSVGElement||r;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(r.getScreenCTM().inverse()),[o.x,o.y]}if(r.getBoundingClientRect){var a=r.getBoundingClientRect();return[e.clientX-a.left-r.clientLeft,e.clientY-a.top-r.clientTop]}}return[e.pageX,e.pageY]}const dpt={passive:!1},fb={capture:!0,passive:!1};function PN(e){e.stopImmediatePropagation()}function eg(e){e.preventDefault(),e.stopImmediatePropagation()}function Qie(e){var r=e.document.documentElement,n=Ba(e).on("dragstart.drag",eg,fb);"onselectstart"in r?n.on("selectstart.drag",eg,fb):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function Jie(e,r){var n=e.document.documentElement,o=Ba(e).on("dragstart.drag",null);r&&(o.on("click.drag",eg,fb),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const D5=e=>()=>e;function $N(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:l,y:s,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}$N.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function ppt(e){return!e.ctrlKey&&!e.button}function hpt(){return this.parentNode}function fpt(e,r){return r??{x:e.x,y:e.y}}function mpt(){return navigator.maxTouchPoints||"ontouchstart"in this}function ele(){var e=ppt,r=hpt,n=fpt,o=mpt,a={},i=T5("start","drag","end"),l=0,s,c,u,d,p=0;function f(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,dpt).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,R){if(!(d||!e.call(this,T,R))){var A=_(this,r.call(this,T,R),T,R,"mouse");A&&(Ba(T.view).on("mousemove.drag",b,fb).on("mouseup.drag",x,fb),Qie(T.view),PN(T),u=!1,s=T.clientX,c=T.clientY,A("start",T))}}function b(T){if(eg(T),!u){var R=T.clientX-s,A=T.clientY-c;u=R*R+A*A>p}a.mouse("drag",T)}function x(T){Ba(T.view).on("mousemove.drag mouseup.drag",null),Jie(T.view,u),eg(T),a.mouse("end",T)}function w(T,R){if(e.call(this,T,R)){var A=T.changedTouches,D=r.call(this,T,R),N=A.length,$,O;for($=0;$<N;++$)(O=_(this,D,T,R,A[$].identifier,A[$]))&&(PN(T),O("start",T,A[$]))}}function k(T){var R=T.changedTouches,A=R.length,D,N;for(D=0;D<A;++D)(N=a[R[D].identifier])&&(eg(T),N("drag",T,R[D]))}function C(T){var R=T.changedTouches,A=R.length,D,N;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),D=0;D<A;++D)(N=a[R[D].identifier])&&(PN(T),N("end",T,R[D]))}function _(T,R,A,D,N,$){var O=i.copy(),j=Pl($||A,R),L,Y,M;if((M=n.call(T,new $N("beforestart",{sourceEvent:A,target:f,identifier:N,active:l,x:j[0],y:j[1],dx:0,dy:0,dispatch:O}),D))!=null)return L=M.x-j[0]||0,Y=M.y-j[1]||0,function q(z,H,U){var K=j,V;switch(z){case"start":a[N]=q,V=l++;break;case"end":delete a[N],--l;case"drag":j=Pl(U||H,R),V=l;break}O.call(z,T,new $N(z,{sourceEvent:H,subject:M,target:f,identifier:N,active:V,x:j[0]+L,y:j[1]+Y,dx:j[0]-K[0],dy:j[1]-K[1],dispatch:O}),D)}}return f.filter=function(T){return arguments.length?(e=typeof T=="function"?T:D5(!!T),f):e},f.container=function(T){return arguments.length?(r=typeof T=="function"?T:D5(T),f):r},f.subject=function(T){return arguments.length?(n=typeof T=="function"?T:D5(T),f):n},f.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:D5(!!T),f):o},f.on=function(){var T=i.on.apply(i,arguments);return T===i?f:T},f.clickDistance=function(T){return arguments.length?(p=(T=+T)*T,f):Math.sqrt(p)},f}function MN(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function tle(e,r){var n=Object.create(e.prototype);for(var o in r)n[o]=r[o];return n}function mb(){}var gb=.7,P5=1/gb,tg="\\s*([+-]?\\d+)\\s*",yb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gpt=/^#([0-9a-f]{3,8})$/,ypt=new RegExp(`^rgb\\(${tg},${tg},${tg}\\)$`),bpt=new RegExp(`^rgb\\(${vs},${vs},${vs}\\)$`),vpt=new RegExp(`^rgba\\(${tg},${tg},${tg},${yb}\\)$`),xpt=new RegExp(`^rgba\\(${vs},${vs},${vs},${yb}\\)$`),wpt=new RegExp(`^hsl\\(${yb},${vs},${vs}\\)$`),kpt=new RegExp(`^hsla\\(${yb},${vs},${vs},${yb}\\)$`),rle={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};MN(mb,Up,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nle,formatHex:nle,formatHex8:_pt,formatHsl:Ept,formatRgb:ole,toString:ole});function nle(){return this.rgb().formatHex()}function _pt(){return this.rgb().formatHex8()}function Ept(){return cle(this).formatHsl()}function ole(){return this.rgb().formatRgb()}function Up(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=gpt.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?ale(r):n===3?new ua(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?$5(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?$5(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=ypt.exec(e))?new ua(r[1],r[2],r[3],1):(r=bpt.exec(e))?new ua(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=vpt.exec(e))?$5(r[1],r[2],r[3],r[4]):(r=xpt.exec(e))?$5(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=wpt.exec(e))?sle(r[1],r[2]/100,r[3]/100,1):(r=kpt.exec(e))?sle(r[1],r[2]/100,r[3]/100,r[4]):rle.hasOwnProperty(e)?ale(rle[e]):e==="transparent"?new ua(NaN,NaN,NaN,0):null}function ale(e){return new ua(e>>16&255,e>>8&255,e&255,1)}function $5(e,r,n,o){return o<=0&&(e=r=n=NaN),new ua(e,r,n,o)}function Spt(e){return e instanceof mb||(e=Up(e)),e?(e=e.rgb(),new ua(e.r,e.g,e.b,e.opacity)):new ua}function ON(e,r,n,o){return arguments.length===1?Spt(e):new ua(e,r,n,o??1)}function ua(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}MN(ua,ON,tle(mb,{brighter(e){return e=e==null?P5:Math.pow(P5,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gb:Math.pow(gb,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ua(Vp(this.r),Vp(this.g),Vp(this.b),M5(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:ile,formatHex:ile,formatHex8:Cpt,formatRgb:lle,toString:lle}));function ile(){return`#${Yp(this.r)}${Yp(this.g)}${Yp(this.b)}`}function Cpt(){return`#${Yp(this.r)}${Yp(this.g)}${Yp(this.b)}${Yp((isNaN(this.opacity)?1:this.opacity)*255)}`}function lle(){const e=M5(this.opacity);return`${e===1?"rgb(":"rgba("}${Vp(this.r)}, ${Vp(this.g)}, ${Vp(this.b)}${e===1?")":`, ${e})`}`}function M5(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yp(e){return e=Vp(e),(e<16?"0":"")+e.toString(16)}function sle(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new $l(e,r,n,o)}function cle(e){if(e instanceof $l)return new $l(e.h,e.s,e.l,e.opacity);if(e instanceof mb||(e=Up(e)),!e)return new $l;if(e instanceof $l)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),l=NaN,s=i-a,c=(i+a)/2;return s?(r===i?l=(n-o)/s+(n<o)*6:n===i?l=(o-r)/s+2:l=(r-n)/s+4,s/=c<.5?i+a:2-i-a,l*=60):s=c>0&&c<1?0:l,new $l(l,s,c,e.opacity)}function Tpt(e,r,n,o){return arguments.length===1?cle(e):new $l(e,r,n,o??1)}function $l(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}MN($l,Tpt,tle(mb,{brighter(e){return e=e==null?P5:Math.pow(P5,e),new $l(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gb:Math.pow(gb,e),new $l(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new ua(IN(e>=240?e-240:e+120,a,o),IN(e,a,o),IN(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new $l(ule(this.h),O5(this.s),O5(this.l),M5(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=M5(this.opacity);return`${e===1?"hsl(":"hsla("}${ule(this.h)}, ${O5(this.s)*100}%, ${O5(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ule(e){return e=(e||0)%360,e<0?e+360:e}function O5(e){return Math.max(0,Math.min(1,e||0))}function IN(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const zN=e=>()=>e;function Rpt(e,r){return function(n){return e+n*r}}function Apt(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function Npt(e){return(e=+e)==1?dle:function(r,n){return n-r?Apt(r,n,e):zN(isNaN(r)?n:r)}}function dle(e,r){var n=r-e;return n?Rpt(e,n):zN(isNaN(e)?r:e)}const I5=(function e(r){var n=Npt(r);function o(a,i){var l=n((a=ON(a)).r,(i=ON(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=dle(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=s(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function Dpt(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;a<n;++a)o[a]=e[a]*(1-i)+r[a]*i;return o}}function Ppt(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $pt(e,r){var n=r?r.length:0,o=e?Math.min(n,e.length):0,a=new Array(o),i=new Array(n),l;for(l=0;l<o;++l)a[l]=bb(e[l],r[l]);for(;l<n;++l)i[l]=r[l];return function(s){for(l=0;l<o;++l)i[l]=a[l](s);return i}}function Mpt(e,r){var n=new Date;return e=+e,r=+r,function(o){return n.setTime(e*(1-o)+r*o),n}}function xs(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}function Opt(e,r){var n={},o={},a;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(a in r)a in e?n[a]=bb(e[a],r[a]):o[a]=r[a];return function(i){for(a in n)o[a]=n[a](i);return o}}var LN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,BN=new RegExp(LN.source,"g");function Ipt(e){return function(){return e}}function zpt(e){return function(r){return e(r)+""}}function ple(e,r){var n=LN.lastIndex=BN.lastIndex=0,o,a,i,l=-1,s=[],c=[];for(e=e+"",r=r+"";(o=LN.exec(e))&&(a=BN.exec(r));)(i=a.index)>n&&(i=r.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(o=o[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:xs(o,a)})),n=BN.lastIndex;return n<r.length&&(i=r.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?zpt(c[0].x):Ipt(r):(r=c.length,function(u){for(var d=0,p;d<r;++d)s[(p=c[d]).i]=p.x(u);return s.join("")})}function bb(e,r){var n=typeof r,o;return r==null||n==="boolean"?zN(r):(n==="number"?xs:n==="string"?(o=Up(r))?(r=o,I5):ple:r instanceof Up?I5:r instanceof Date?Mpt:Ppt(r)?Dpt:Array.isArray(r)?$pt:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Opt:xs)(e,r)}var hle=180/Math.PI,fle={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mle(e,r,n,o,a,i){var l,s,c;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(c=e*n+r*o)&&(n-=e*c,o-=r*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<r*n&&(e=-e,r=-r,c=-c,l=-l),{translateX:a,translateY:i,rotate:Math.atan2(r,e)*hle,skewX:Math.atan(c)*hle,scaleX:l,scaleY:s}}var z5;function Lpt(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?fle:mle(r.a,r.b,r.c,r.d,r.e,r.f)}function Bpt(e){return e==null||(z5||(z5=document.createElementNS("http://www.w3.org/2000/svg","g")),z5.setAttribute("transform",e),!(e=z5.transform.baseVal.consolidate()))?fle:(e=e.matrix,mle(e.a,e.b,e.c,e.d,e.e,e.f))}function gle(e,r,n,o){function a(u){return u.length?u.pop()+" ":""}function i(u,d,p,f,g,b){if(u!==p||d!==f){var x=g.push("translate(",null,r,null,n);b.push({i:x-4,x:xs(u,p)},{i:x-2,x:xs(d,f)})}else(p||f)&&g.push("translate("+p+r+f+n)}function l(u,d,p,f){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),f.push({i:p.push(a(p)+"rotate(",null,o)-2,x:xs(u,d)})):d&&p.push(a(p)+"rotate("+d+o)}function s(u,d,p,f){u!==d?f.push({i:p.push(a(p)+"skewX(",null,o)-2,x:xs(u,d)}):d&&p.push(a(p)+"skewX("+d+o)}function c(u,d,p,f,g,b){if(u!==p||d!==f){var x=g.push(a(g)+"scale(",null,",",null,")");b.push({i:x-4,x:xs(u,p)},{i:x-2,x:xs(d,f)})}else(p!==1||f!==1)&&g.push(a(g)+"scale("+p+","+f+")")}return function(u,d){var p=[],f=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,p,f),l(u.rotate,d.rotate,p,f),s(u.skewX,d.skewX,p,f),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,p,f),u=d=null,function(g){for(var b=-1,x=f.length,w;++b<x;)p[(w=f[b]).i]=w.x(g);return p.join("")}}}var jpt=gle(Lpt,"px, ","px)","deg)"),Fpt=gle(Bpt,", ",")",")"),Hpt=1e-12;function yle(e){return((e=Math.exp(e))+1/e)/2}function qpt(e){return((e=Math.exp(e))-1/e)/2}function Upt(e){return((e=Math.exp(2*e))-1)/(e+1)}const L5=(function e(r,n,o){function a(i,l){var s=i[0],c=i[1],u=i[2],d=l[0],p=l[1],f=l[2],g=d-s,b=p-c,x=g*g+b*b,w,k;if(x<Hpt)k=Math.log(f/u)/r,w=function(D){return[s+D*g,c+D*b,u*Math.exp(r*D*k)]};else{var C=Math.sqrt(x),_=(f*f-u*u+o*x)/(2*u*n*C),T=(f*f-u*u-o*x)/(2*f*n*C),R=Math.log(Math.sqrt(_*_+1)-_),A=Math.log(Math.sqrt(T*T+1)-T);k=(A-R)/r,w=function(D){var N=D*k,$=yle(R),O=u/(n*C)*($*Upt(r*N+R)-qpt(R));return[s+O*g,c+O*b,u*$/yle(r*N+R)]}}return w.duration=k*1e3*r/Math.SQRT2,w}return a.rho=function(i){var l=Math.max(.001,+i),s=l*l,c=s*s;return e(l,s,c)},a})(Math.SQRT2,2,4);var rg=0,vb=0,xb=0,ble=1e3,B5,wb,j5=0,Wp=0,F5=0,kb=typeof performance=="object"&&performance.now?performance:Date,vle=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jN(){return Wp||(vle(Vpt),Wp=kb.now()+F5)}function Vpt(){Wp=0}function H5(){this._call=this._time=this._next=null}H5.prototype=xle.prototype={constructor:H5,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?jN():+n)+(r==null?0:+r),!this._next&&wb!==this&&(wb?wb._next=this:B5=this,wb=this),this._call=e,this._time=n,FN()},stop:function(){this._call&&(this._call=null,this._time=1/0,FN())}};function xle(e,r,n){var o=new H5;return o.restart(e,r,n),o}function Ypt(){jN(),++rg;for(var e=B5,r;e;)(r=Wp-e._time)>=0&&e._call.call(void 0,r),e=e._next;--rg}function wle(){Wp=(j5=kb.now())+F5,rg=vb=0;try{Ypt()}finally{rg=0,Gpt(),Wp=0}}function Wpt(){var e=kb.now(),r=e-j5;r>ble&&(F5-=r,j5=e)}function Gpt(){for(var e,r=B5,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:B5=n);wb=e,FN(o)}function FN(e){if(!rg){vb&&(vb=clearTimeout(vb));var r=e-Wp;r>24?(e<1/0&&(vb=setTimeout(wle,e-kb.now()-F5)),xb&&(xb=clearInterval(xb))):(xb||(j5=kb.now(),xb=setInterval(Wpt,ble)),rg=1,vle(wle))}}function kle(e,r,n){var o=new H5;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var Xpt=T5("start","end","cancel","interrupt"),Kpt=[],_le=0,Ele=1,HN=2,q5=3,Sle=4,qN=5,U5=6;function V5(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;Zpt(e,n,{name:r,index:o,group:a,on:Xpt,tween:Kpt,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:_le})}function UN(e,r){var n=Ml(e,r);if(n.state>_le)throw new Error("too late; already scheduled");return n}function ws(e,r){var n=Ml(e,r);if(n.state>q5)throw new Error("too late; already running");return n}function Ml(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function Zpt(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=xle(i,0,n.time);function i(u){n.state=Ele,n.timer.restart(l,n.delay,n.time),n.delay<=u&&l(u-n.delay)}function l(u){var d,p,f,g;if(n.state!==Ele)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===q5)return kle(l);g.state===Sle?(g.state=U5,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+d<r&&(g.state=U5,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[d])}if(kle(function(){n.state===q5&&(n.state=Sle,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=HN,n.on.call("start",e,e.__data__,n.index,n.group),n.state===HN){for(n.state=q5,a=new Array(f=n.tween.length),d=0,p=-1;d<f;++d)(g=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(a[++p]=g);a.length=p+1}}function s(u){for(var d=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=qN,1),p=-1,f=a.length;++p<f;)a[p].call(e,d);n.state===qN&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=U5,n.timer.stop(),delete o[r];for(var u in o)return;delete e.__transition}}function Y5(e,r){var n=e.__transition,o,a,i=!0,l;if(n){r=r==null?null:r+"";for(l in n){if((o=n[l]).name!==r){i=!1;continue}a=o.state>HN&&o.state<qN,o.state=U5,o.timer.stop(),o.on.call(a?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[l]}i&&delete e.__transition}}function Qpt(e){return this.each(function(){Y5(this,e)})}function Jpt(e,r){var n,o;return function(){var a=ws(this,e),i=a.tween;if(i!==n){o=n=i;for(var l=0,s=o.length;l<s;++l)if(o[l].name===r){o=o.slice(),o.splice(l,1);break}}a.tween=o}}function eht(e,r,n){var o,a;if(typeof n!="function")throw new Error;return function(){var i=ws(this,e),l=i.tween;if(l!==o){a=(o=l).slice();for(var s={name:r,value:n},c=0,u=a.length;c<u;++c)if(a[c].name===r){a[c]=s;break}c===u&&a.push(s)}i.tween=a}}function tht(e,r){var n=this._id;if(e+="",arguments.length<2){for(var o=Ml(this.node(),n).tween,a=0,i=o.length,l;a<i;++a)if((l=o[a]).name===e)return l.value;return null}return this.each((r==null?Jpt:eht)(n,e,r))}function VN(e,r,n){var o=e._id;return e.each(function(){var a=ws(this,o);(a.value||(a.value={}))[r]=n.apply(this,arguments)}),function(a){return Ml(a,o).value[r]}}function Cle(e,r){var n;return(typeof r=="number"?xs:r instanceof Up?I5:(n=Up(r))?(r=n,I5):ple)(e,r)}function rht(e){return function(){this.removeAttribute(e)}}function nht(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oht(e,r,n){var o,a=n+"",i;return function(){var l=this.getAttribute(e);return l===a?null:l===o?i:i=r(o=l,n)}}function aht(e,r,n){var o,a=n+"",i;return function(){var l=this.getAttributeNS(e.space,e.local);return l===a?null:l===o?i:i=r(o=l,n)}}function iht(e,r,n){var o,a,i;return function(){var l,s=n(this),c;return s==null?void this.removeAttribute(e):(l=this.getAttribute(e),c=s+"",l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s)))}}function lht(e,r,n){var o,a,i;return function(){var l,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),c=s+"",l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s)))}}function sht(e,r){var n=A5(e),o=n==="transform"?Fpt:Cle;return this.attrTween(e,typeof r=="function"?(n.local?lht:iht)(n,o,VN(this,"attr."+e,r)):r==null?(n.local?nht:rht)(n):(n.local?aht:oht)(n,o,r))}function cht(e,r){return function(n){this.setAttribute(e,r.call(this,n))}}function uht(e,r){return function(n){this.setAttributeNS(e.space,e.local,r.call(this,n))}}function dht(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&uht(e,i)),n}return a._value=r,a}function pht(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&cht(e,i)),n}return a._value=r,a}function hht(e,r){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;var o=A5(e);return this.tween(n,(o.local?dht:pht)(o,r))}function fht(e,r){return function(){UN(this,e).delay=+r.apply(this,arguments)}}function mht(e,r){return r=+r,function(){UN(this,e).delay=r}}function ght(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?fht:mht)(r,e)):Ml(this.node(),r).delay}function yht(e,r){return function(){ws(this,e).duration=+r.apply(this,arguments)}}function bht(e,r){return r=+r,function(){ws(this,e).duration=r}}function vht(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?yht:bht)(r,e)):Ml(this.node(),r).duration}function xht(e,r){if(typeof r!="function")throw new Error;return function(){ws(this,e).ease=r}}function wht(e){var r=this._id;return arguments.length?this.each(xht(r,e)):Ml(this.node(),r).ease}function kht(e,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;ws(this,e).ease=n}}function _ht(e){if(typeof e!="function")throw new Error;return this.each(kht(this._id,e))}function Eht(e){typeof e!="function"&&(e=Hie(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a<n;++a)for(var i=r[a],l=i.length,s=o[a]=[],c,u=0;u<l;++u)(c=i[u])&&e.call(c,c.__data__,u,i)&&s.push(c);return new vc(o,this._parents,this._name,this._id)}function Sht(e){if(e._id!==this._id)throw new Error;for(var r=this._groups,n=e._groups,o=r.length,a=n.length,i=Math.min(o,a),l=new Array(o),s=0;s<i;++s)for(var c=r[s],u=n[s],d=c.length,p=l[s]=new Array(d),f,g=0;g<d;++g)(f=c[g]||u[g])&&(p[g]=f);for(;s<o;++s)l[s]=r[s];return new vc(l,this._parents,this._name,this._id)}function Cht(e){return(e+"").trim().split(/^|\s+/).every(function(r){var n=r.indexOf(".");return n>=0&&(r=r.slice(0,n)),!r||r==="start"})}function Tht(e,r,n){var o,a,i=Cht(r)?UN:ws;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function Rht(e,r){var n=this._id;return arguments.length<2?Ml(this.node(),n).on.on(e):this.each(Tht(n,e,r))}function Aht(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function Nht(){return this.on("end.remove",Aht(this._id))}function Dht(e){var r=this._name,n=this._id;typeof e!="function"&&(e=NN(e));for(var o=this._groups,a=o.length,i=new Array(a),l=0;l<a;++l)for(var s=o[l],c=s.length,u=i[l]=new Array(c),d,p,f=0;f<c;++f)(d=s[f])&&(p=e.call(d,d.__data__,f,s))&&("__data__"in d&&(p.__data__=d.__data__),u[f]=p,V5(u[f],r,n,f,u,Ml(d,n)));return new vc(i,this._parents,r,n)}function Pht(e){var r=this._name,n=this._id;typeof e!="function"&&(e=Fie(e));for(var o=this._groups,a=o.length,i=[],l=[],s=0;s<a;++s)for(var c=o[s],u=c.length,d,p=0;p<u;++p)if(d=c[p]){for(var f=e.call(d,d.__data__,p,c),g,b=Ml(d,n),x=0,w=f.length;x<w;++x)(g=f[x])&&V5(g,r,n,x,f,b);i.push(f),l.push(d)}return new vc(i,l,r,n)}var $ht=hb.prototype.constructor;function Mht(){return new $ht(this._groups,this._parents)}function Oht(e,r){var n,o,a;return function(){var i=Jm(this,e),l=(this.style.removeProperty(e),Jm(this,e));return i===l?null:i===n&&l===o?a:a=r(n=i,o=l)}}function Tle(e){return function(){this.style.removeProperty(e)}}function Iht(e,r,n){var o,a=n+"",i;return function(){var l=Jm(this,e);return l===a?null:l===o?i:i=r(o=l,n)}}function zht(e,r,n){var o,a,i;return function(){var l=Jm(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),Jm(this,e))),l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s))}}function Lht(e,r){var n,o,a,i="style."+r,l="end."+i,s;return function(){var c=ws(this,e),u=c.on,d=c.value[i]==null?s||(s=Tle(r)):void 0;(u!==n||a!==d)&&(o=(n=u).copy()).on(l,a=d),c.on=o}}function Bht(e,r,n){var o=(e+="")=="transform"?jpt:Cle;return r==null?this.styleTween(e,Oht(e,o)).on("end.style."+e,Tle(e)):typeof r=="function"?this.styleTween(e,zht(e,o,VN(this,"style."+e,r))).each(Lht(this._id,e)):this.styleTween(e,Iht(e,o,r),n).on("end.style."+e,null)}function jht(e,r,n){return function(o){this.style.setProperty(e,r.call(this,o),n)}}function Fht(e,r,n){var o,a;function i(){var l=r.apply(this,arguments);return l!==a&&(o=(a=l)&&jht(e,l,n)),o}return i._value=r,i}function Hht(e,r,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(r==null)return this.tween(o,null);if(typeof r!="function")throw new Error;return this.tween(o,Fht(e,r,n??""))}function qht(e){return function(){this.textContent=e}}function Uht(e){return function(){var r=e(this);this.textContent=r??""}}function Vht(e){return this.tween("text",typeof e=="function"?Uht(VN(this,"text",e)):qht(e==null?"":e+""))}function Yht(e){return function(r){this.textContent=e.call(this,r)}}function Wht(e){var r,n;function o(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&Yht(a)),r}return o._value=e,o}function Ght(e){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Wht(e))}function Xht(){for(var e=this._name,r=this._id,n=Rle(),o=this._groups,a=o.length,i=0;i<a;++i)for(var l=o[i],s=l.length,c,u=0;u<s;++u)if(c=l[u]){var d=Ml(c,r);V5(c,e,n,u,l,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new vc(o,this._parents,e,n)}function Kht(){var e,r,n=this,o=n._id,a=n.size();return new Promise(function(i,l){var s={value:l},c={value:function(){--a===0&&i()}};n.each(function(){var u=ws(this,o),d=u.on;d!==e&&(r=(e=d).copy(),r._.cancel.push(s),r._.interrupt.push(s),r._.end.push(c)),u.on=r}),a===0&&i()})}var Zht=0;function vc(e,r,n,o){this._groups=e,this._parents=r,this._name=n,this._id=o}function Rle(){return++Zht}var xc=hb.prototype;vc.prototype={constructor:vc,select:Dht,selectAll:Pht,selectChild:xc.selectChild,selectChildren:xc.selectChildren,filter:Eht,merge:Sht,selection:Mht,transition:Xht,call:xc.call,nodes:xc.nodes,node:xc.node,size:xc.size,empty:xc.empty,each:xc.each,on:Rht,attr:sht,attrTween:hht,style:Bht,styleTween:Hht,text:Vht,textTween:Ght,remove:Nht,tween:tht,delay:ght,duration:vht,ease:wht,easeVarying:_ht,end:Kht,[Symbol.iterator]:xc[Symbol.iterator]};function Qht(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Jht={time:null,delay:0,duration:250,ease:Qht};function eft(e,r){for(var n;!(n=e.__transition)||!(n=n[r]);)if(!(e=e.parentNode))throw new Error(`transition ${r} not found`);return n}function tft(e){var r,n;e instanceof vc?(r=e._id,e=e._name):(r=Rle(),(n=Jht).time=jN(),e=e==null?null:e+"");for(var o=this._groups,a=o.length,i=0;i<a;++i)for(var l=o[i],s=l.length,c,u=0;u<s;++u)(c=l[u])&&V5(c,e,r,u,l,n||eft(c,r));return new vc(o,this._parents,e,r)}hb.prototype.interrupt=Qpt,hb.prototype.transition=tft;const W5=e=>()=>e;function rft(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function wc(e,r,n){this.k=e,this.x=r,this.y=n}wc.prototype={constructor:wc,scale:function(e){return e===1?this:new wc(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new wc(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var G5=new wc(1,0,0);Ale.prototype=wc.prototype;function Ale(e){for(;!e.__zoom;)if(!(e=e.parentNode))return G5;return e.__zoom}function YN(e){e.stopImmediatePropagation()}function _b(e){e.preventDefault(),e.stopImmediatePropagation()}function nft(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function oft(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Nle(){return this.__zoom||G5}function aft(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ift(){return navigator.maxTouchPoints||"ontouchstart"in this}function lft(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],l=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l))}function Dle(){var e=nft,r=oft,n=lft,o=aft,a=ift,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=L5,u=T5("start","zoom","end"),d,p,f,g=500,b=150,x=0,w=10;function k(M){M.property("__zoom",Nle).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",j).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(M,q,z,H){var U=M.selection?M.selection():M;U.property("__zoom",Nle),M!==U?R(M,q,z,H):U.interrupt().each(function(){A(this,arguments).event(H).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},k.scaleBy=function(M,q,z,H){k.scaleTo(M,function(){var U=this.__zoom.k,K=typeof q=="function"?q.apply(this,arguments):q;return U*K},z,H)},k.scaleTo=function(M,q,z,H){k.transform(M,function(){var U=r.apply(this,arguments),K=this.__zoom,V=z==null?T(U):typeof z=="function"?z.apply(this,arguments):z,X=K.invert(V),Z=typeof q=="function"?q.apply(this,arguments):q;return n(_(C(K,Z),V,X),U,l)},z,H)},k.translateBy=function(M,q,z,H){k.transform(M,function(){return n(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof z=="function"?z.apply(this,arguments):z),r.apply(this,arguments),l)},null,H)},k.translateTo=function(M,q,z,H,U){k.transform(M,function(){var K=r.apply(this,arguments),V=this.__zoom,X=H==null?T(K):typeof H=="function"?H.apply(this,arguments):H;return n(G5.translate(X[0],X[1]).scale(V.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof z=="function"?-z.apply(this,arguments):-z),K,l)},H,U)};function C(M,q){return q=Math.max(i[0],Math.min(i[1],q)),q===M.k?M:new wc(q,M.x,M.y)}function _(M,q,z){var H=q[0]-z[0]*M.k,U=q[1]-z[1]*M.k;return H===M.x&&U===M.y?M:new wc(M.k,H,U)}function T(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function R(M,q,z,H){M.on("start.zoom",function(){A(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(H).end()}).tween("zoom",function(){var U=this,K=arguments,V=A(U,K).event(H),X=r.apply(U,K),Z=z==null?T(X):typeof z=="function"?z.apply(U,K):z,B=Math.max(X[1][0]-X[0][0],X[1][1]-X[0][1]),W=U.__zoom,Q=typeof q=="function"?q.apply(U,K):q,J=c(W.invert(Z).concat(B/W.k),Q.invert(Z).concat(B/Q.k));return function(ne){if(ne===1)ne=Q;else{var te=J(ne),ee=B/te[2];ne=new wc(ee,Z[0]-te[0]*ee,Z[1]-te[1]*ee)}V.zoom(null,ne)}})}function A(M,q,z){return!z&&M.__zooming||new D(M,q)}function D(M,q){this.that=M,this.args=q,this.active=0,this.sourceEvent=null,this.extent=r.apply(M,q),this.taps=0}D.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,q){return this.mouse&&M!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var q=Ba(this.that).datum();u.call(M,this.that,new rft(M,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),q)}};function N(M,...q){if(!e.apply(this,arguments))return;var z=A(this,q).event(M),H=this.__zoom,U=Math.max(i[0],Math.min(i[1],H.k*Math.pow(2,o.apply(this,arguments)))),K=Pl(M);if(z.wheel)(z.mouse[0][0]!==K[0]||z.mouse[0][1]!==K[1])&&(z.mouse[1]=H.invert(z.mouse[0]=K)),clearTimeout(z.wheel);else{if(H.k===U)return;z.mouse=[K,H.invert(K)],Y5(this),z.start()}_b(M),z.wheel=setTimeout(V,b),z.zoom("mouse",n(_(C(H,U),z.mouse[0],z.mouse[1]),z.extent,l));function V(){z.wheel=null,z.end()}}function $(M,...q){if(f||!e.apply(this,arguments))return;var z=M.currentTarget,H=A(this,q,!0).event(M),U=Ba(M.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",B,!0),K=Pl(M,z),V=M.clientX,X=M.clientY;Qie(M.view),YN(M),H.mouse=[K,this.__zoom.invert(K)],Y5(this),H.start();function Z(W){if(_b(W),!H.moved){var Q=W.clientX-V,J=W.clientY-X;H.moved=Q*Q+J*J>x}H.event(W).zoom("mouse",n(_(H.that.__zoom,H.mouse[0]=Pl(W,z),H.mouse[1]),H.extent,l))}function B(W){U.on("mousemove.zoom mouseup.zoom",null),Jie(W.view,H.moved),_b(W),H.event(W).end()}}function O(M,...q){if(e.apply(this,arguments)){var z=this.__zoom,H=Pl(M.changedTouches?M.changedTouches[0]:M,this),U=z.invert(H),K=z.k*(M.shiftKey?.5:2),V=n(_(C(z,K),H,U),r.apply(this,q),l);_b(M),s>0?Ba(this).transition().duration(s).call(R,V,H,M):Ba(this).call(k.transform,V,H,M)}}function j(M,...q){if(e.apply(this,arguments)){var z=M.touches,H=z.length,U=A(this,q,M.changedTouches.length===H).event(M),K,V,X,Z;for(YN(M),V=0;V<H;++V)X=z[V],Z=Pl(X,this),Z=[Z,this.__zoom.invert(Z),X.identifier],U.touch0?!U.touch1&&U.touch0[2]!==Z[2]&&(U.touch1=Z,U.taps=0):(U.touch0=Z,K=!0,U.taps=1+!!d);d&&(d=clearTimeout(d)),K&&(U.taps<2&&(p=Z[0],d=setTimeout(function(){d=null},g)),Y5(this),U.start())}}function L(M,...q){if(this.__zooming){var z=A(this,q).event(M),H=M.changedTouches,U=H.length,K,V,X,Z;for(_b(M),K=0;K<U;++K)V=H[K],X=Pl(V,this),z.touch0&&z.touch0[2]===V.identifier?z.touch0[0]=X:z.touch1&&z.touch1[2]===V.identifier&&(z.touch1[0]=X);if(V=z.that.__zoom,z.touch1){var B=z.touch0[0],W=z.touch0[1],Q=z.touch1[0],J=z.touch1[1],ne=(ne=Q[0]-B[0])*ne+(ne=Q[1]-B[1])*ne,te=(te=J[0]-W[0])*te+(te=J[1]-W[1])*te;V=C(V,Math.sqrt(ne/te)),X=[(B[0]+Q[0])/2,(B[1]+Q[1])/2],Z=[(W[0]+J[0])/2,(W[1]+J[1])/2]}else if(z.touch0)X=z.touch0[0],Z=z.touch0[1];else return;z.zoom("touch",n(_(V,X,Z),z.extent,l))}}function Y(M,...q){if(this.__zooming){var z=A(this,q).event(M),H=M.changedTouches,U=H.length,K,V;for(YN(M),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),K=0;K<U;++K)V=H[K],z.touch0&&z.touch0[2]===V.identifier?delete z.touch0:z.touch1&&z.touch1[2]===V.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(V=Pl(V,this),Math.hypot(p[0]-V[0],p[1]-V[1])<w)){var X=Ba(this).on("dblclick.zoom");X&&X.apply(this,arguments)}}}return k.wheelDelta=function(M){return arguments.length?(o=typeof M=="function"?M:W5(+M),k):o},k.filter=function(M){return arguments.length?(e=typeof M=="function"?M:W5(!!M),k):e},k.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:W5(!!M),k):a},k.extent=function(M){return arguments.length?(r=typeof M=="function"?M:W5([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),k):r},k.scaleExtent=function(M){return arguments.length?(i[0]=+M[0],i[1]=+M[1],k):[i[0],i[1]]},k.translateExtent=function(M){return arguments.length?(l[0][0]=+M[0][0],l[1][0]=+M[1][0],l[0][1]=+M[0][1],l[1][1]=+M[1][1],k):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},k.constrain=function(M){return arguments.length?(n=M,k):n},k.duration=function(M){return arguments.length?(s=+M,k):s},k.interpolate=function(M){return arguments.length?(c=M,k):c},k.on=function(){var M=u.on.apply(u,arguments);return M===u?k:M},k.clickDistance=function(M){return arguments.length?(x=(M=+M)*M,k):Math.sqrt(x)},k.tapDistance=function(M){return arguments.length?(w=+M,k):w},k}const ks={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Eb=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Ple=["Enter"," ","Escape"],$le={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var ng;(function(e){e.Strict="strict",e.Loose="loose"})(ng||(ng={}));var Gp;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Gp||(Gp={}));var Sb;(function(e){e.Partial="partial",e.Full="full"})(Sb||(Sb={}));const Mle={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var qu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(qu||(qu={}));var X5;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(X5||(X5={}));var gt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(gt||(gt={}));const Ole={[gt.Left]:gt.Right,[gt.Right]:gt.Left,[gt.Top]:gt.Bottom,[gt.Bottom]:gt.Top};function Ile(e){return e===null?null:e?"valid":"invalid"}const zle=e=>"id"in e&&"source"in e&&"target"in e,sft=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),WN=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Cb=(e,r=[0,0])=>{const{width:n,height:o}=kc(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},cft=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let l=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(l=i?r.nodeLookup.get(a):WN(a)?a:r.nodeLookup.get(a.id));const s=l?Q5(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return K5(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Z5(n)},Tb=(e,r={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(a=>{(r.filter===void 0||r.filter(a))&&(n=K5(n,Q5(a)),o=!0)}),o?Z5(n):{x:0,y:0,width:0,height:0}},GN=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...Nb(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:p=!0,hidden:f=!1}=u;if(l&&!p||f)continue;const g=d.width??u.width??u.initialWidth??null,b=d.height??u.height??u.initialHeight??null,x=Rb(s,ag(u)),w=(g??0)*(b??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},uft=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function dft(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function pft({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=dft(e,l),c=Tb(s),u=KN(c,r,n,l?.minZoom??a,l?.maxZoom??i,l?.padding??.1);return await o.setViewport(u,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),Promise.resolve(!0)}function Lle({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const l=n.get(e),s=l.parentId?n.get(l.parentId):void 0,{x:c,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},d=l.origin??o;let p=l.extent||a;if(l.extent==="parent"&&!l.expandParent)if(!s)i?.("005",ks.error005());else{const g=s.measured.width,b=s.measured.height;g&&b&&(p=[[c,u],[c+g,u+b]])}else s&&lg(l.extent)&&(p=[[l.extent[0][0]+c,l.extent[0][1]+u],[l.extent[1][0]+c,l.extent[1][1]+u]]);const f=lg(p)?Xp(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",ks.error015()),{position:{x:f.x-c+(l.measured.width??0)*d[0],y:f.y-u+(l.measured.height??0)*d[1]},positionAbsolute:f}}async function hft({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(p=>p.id)),l=[];for(const p of n){if(p.deletable===!1)continue;const f=i.has(p.id),g=!f&&p.parentId&&l.find(b=>b.id===p.parentId);(f||g)&&l.push(p)}const s=new Set(r.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),u=uft(l,c);for(const p of c)s.has(p.id)&&!u.find(f=>f.id===p.id)&&u.push(p);if(!a)return{edges:u,nodes:l};const d=await a({nodes:l,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:l}:{edges:[],nodes:[]}:d}const og=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),Xp=(e={x:0,y:0},r,n)=>({x:og(e.x,r[0][0],r[1][0]-(n?.width??0)),y:og(e.y,r[0][1],r[1][1]-(n?.height??0))});function Ble(e,r,n){const{width:o,height:a}=kc(n),{x:i,y:l}=n.internals.positionAbsolute;return Xp(e,[[i,l],[i+o,l+a]],r)}const jle=(e,r,n)=>e<r?og(Math.abs(e-r),1,r)/r:e>n?-og(Math.abs(e-n),1,r)/r:0,Fle=(e,r,n=15,o=40)=>{const a=jle(e.x,o,r.width-o)*n,i=jle(e.y,o,r.height-o)*n;return[a,i]},K5=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),XN=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),Z5=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),ag=(e,r=[0,0])=>{const{x:n,y:o}=WN(e)?e.internals.positionAbsolute:Cb(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},Q5=(e,r=[0,0])=>{const{x:n,y:o}=WN(e)?e.internals.positionAbsolute:Cb(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},Hle=(e,r)=>Z5(K5(XN(e),XN(r))),Rb=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},qle=e=>Ol(e.width)&&Ol(e.height)&&Ol(e.x)&&Ol(e.y),Ol=e=>!isNaN(e)&&isFinite(e),fft=(e,r)=>{},Ab=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),Nb=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?Ab(s,l):s},J5=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function ig(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function mft(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=ig(e,n),a=ig(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=ig(e.top??e.y??0,n),a=ig(e.bottom??e.y??0,n),i=ig(e.left??e.x??0,r),l=ig(e.right??e.x??0,r);return{top:o,right:l,bottom:a,left:i,x:i+l,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function gft(e,r,n,o,a,i){const{x:l,y:s}=J5(e,[r,n,o]),{x:c,y:u}=J5({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,p=i-u;return{left:Math.floor(l),top:Math.floor(s),right:Math.floor(d),bottom:Math.floor(p)}}const KN=(e,r,n,o,a,i)=>{const l=mft(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,u=Math.min(s,c),d=og(u,o,a),p=e.x+e.width/2,f=e.y+e.height/2,g=r/2-p*d,b=n/2-f*d,x=gft(e,g,b,d,r,n),w={left:Math.min(x.left-l.left,0),top:Math.min(x.top-l.top,0),right:Math.min(x.right-l.right,0),bottom:Math.min(x.bottom-l.bottom,0)};return{x:g-w.left+w.right,y:b-w.top+w.bottom,zoom:d}},Db=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function lg(e){return e!=null&&e!=="parent"}function kc(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function Ule(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function Vle(e,r={width:0,height:0},n,o,a){const i={...e},l=o.get(n);if(l){const s=l.origin||a;i.x+=l.internals.positionAbsolute.x-(r.width??0)*s[0],i.y+=l.internals.positionAbsolute.y-(r.height??0)*s[1]}return i}function Yle(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function yft(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function bft(e){return{...$le,...e||{}}}function Pb(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Il(e),s=Nb({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:u}=n?Ab(s,r):s;return{xSnapped:c,ySnapped:u,...s}}const ZN=e=>({width:e.offsetWidth,height:e.offsetHeight}),Wle=e=>e?.getRootNode?.()||window?.document,vft=["INPUT","SELECT","TEXTAREA"];function Gle(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:vft.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const Xle=e=>"clientX"in e,Il=(e,r)=>{const n=Xle(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},Kle=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(l=>{const s=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:a,position:l.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...ZN(l)}})};function Zle({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:l,targetControlY:s}){const c=e*.125+a*.375+l*.375+n*.125,u=r*.125+i*.375+s*.375+o*.125,d=Math.abs(c-e),p=Math.abs(u-r);return[c,u,d,p]}function ek(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function Qle({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case gt.Left:return[r-ek(r-o,i),n];case gt.Right:return[r+ek(o-r,i),n];case gt.Top:return[r,n-ek(n-a,i)];case gt.Bottom:return[r,n+ek(a-n,i)]}}function Jle({sourceX:e,sourceY:r,sourcePosition:n=gt.Bottom,targetX:o,targetY:a,targetPosition:i=gt.Top,curvature:l=.25}){const[s,c]=Qle({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[u,d]=Qle({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,b]=Zle({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${s},${c} ${u},${d} ${o},${a}`,p,f,g,b]}function ese({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n<e?n+a:n-a,l=Math.abs(o-r)/2,s=o<r?o+l:o-l;return[i,s,a,l]}function xft({sourceNode:e,targetNode:r,selected:n=!1,zIndex:o,elevateOnSelect:a=!1}){if(o!==void 0)return o;const i=a&&n?1e3:0,l=Math.max(e.parentId||a&&e.selected?e.internals.z:0,r.parentId||a&&r.selected?r.internals.z:0);return i+l}function wft({sourceNode:e,targetNode:r,width:n,height:o,transform:a}){const i=K5(Q5(e),Q5(r));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const l={x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:o/a[2]};return Rb(l,Z5(i))>0}const kft=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,_ft=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),Eft=(e,r)=>{if(!e.source||!e.target)return r;let n;return zle(e)?n={...e}:n={...e,id:kft(e)},_ft(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function tse({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,l,s]=ese({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,l,s]}const rse={[gt.Left]:{x:-1,y:0},[gt.Right]:{x:1,y:0},[gt.Top]:{x:0,y:-1},[gt.Bottom]:{x:0,y:1}},Sft=({source:e,sourcePosition:r=gt.Bottom,target:n})=>r===gt.Left||r===gt.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},nse=(e,r)=>Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function Cft({source:e,sourcePosition:r=gt.Bottom,target:n,targetPosition:o=gt.Top,center:a,offset:i,stepPosition:l}){const s=rse[r],c=rse[o],u={x:e.x+s.x*i,y:e.y+s.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},p=Sft({source:u,sourcePosition:r,target:d}),f=p.x!==0?"x":"y",g=p[f];let b=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=ese({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f==="x"?(x=a.x??u.x+(d.x-u.x)*l,w=a.y??(u.y+d.y)/2):(x=a.x??(u.x+d.x)/2,w=a.y??u.y+(d.y-u.y)*l);const R=[{x,y:u.y},{x,y:d.y}],A=[{x:u.x,y:w},{x:d.x,y:w}];s[f]===g?b=f==="x"?R:A:b=f==="x"?A:R}else{const R=[{x:u.x,y:d.y}],A=[{x:d.x,y:u.y}];if(f==="x"?b=s.x===g?A:R:b=s.y===g?R:A,r===o){const j=Math.abs(e[f]-n[f]);if(j<=i){const L=Math.min(i-1,i-j);s[f]===g?k[f]=(u[f]>e[f]?-1:1)*L:C[f]=(d[f]>n[f]?-1:1)*L}}if(r!==o){const j=f==="x"?"y":"x",L=s[f]===c[j],Y=u[j]>d[j],M=u[j]<d[j];(s[f]===1&&(!L&&Y||L&&M)||s[f]!==1&&(!L&&M||L&&Y))&&(b=f==="x"?R:A)}const D={x:u.x+k.x,y:u.y+k.y},N={x:d.x+C.x,y:d.y+C.y},$=Math.max(Math.abs(D.x-b[0].x),Math.abs(N.x-b[0].x)),O=Math.max(Math.abs(D.y-b[0].y),Math.abs(N.y-b[0].y));$>=O?(x=(D.x+N.x)/2,w=b[0].y):(x=b[0].x,w=(D.y+N.y)/2)}return[[e,{x:u.x+k.x,y:u.y+k.y},...b,{x:d.x+C.x,y:d.y+C.y},n],x,w,_,T]}function Tft(e,r,n,o){const a=Math.min(nse(e,r)/2,nse(r,n)/2,o),{x:i,y:l}=r;if(e.x===i&&i===n.x||e.y===l&&l===n.y)return`L${i} ${l}`;if(e.y===l){const u=e.x<n.x?-1:1,d=e.y<n.y?1:-1;return`L ${i+a*u},${l}Q ${i},${l} ${i},${l+a*d}`}const s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${i},${l+a*c}Q ${i},${l} ${i+a*s},${l}`}function QN({sourceX:e,sourceY:r,sourcePosition:n=gt.Bottom,targetX:o,targetY:a,targetPosition:i=gt.Top,borderRadius:l=5,centerX:s,centerY:c,offset:u=20,stepPosition:d=.5}){const[p,f,g,b,x]=Cft({source:{x:e,y:r},sourcePosition:n,target:{x:o,y:a},targetPosition:i,center:{x:s,y:c},offset:u,stepPosition:d});return[p.reduce((w,k,C)=>{let _="";return C>0&&C<p.length-1?_=Tft(p[C-1],k,p[C+1],l):_=`${C===0?"M":"L"}${k.x} ${k.y}`,w+=_,w},""),f,g,b,x]}function ose(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Rft(e){const{sourceNode:r,targetNode:n}=e;if(!ose(r)||!ose(n))return null;const o=r.internals.handleBounds||ase(r.handles),a=n.internals.handleBounds||ase(n.handles),i=ise(o?.source??[],e.sourceHandle),l=ise(e.connectionMode===ng.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!l)return e.onError?.("008",ks.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=i?.position||gt.Bottom,c=l?.position||gt.Top,u=$b(r,i,s),d=$b(n,l,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:s,targetPosition:c}}function ase(e){if(!e)return null;const r=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?r.push(o):o.type==="target"&&n.push(o);return{source:r,target:n}}function $b(e,r,n=gt.Left,o=!1){const a=(r?.x??0)+e.internals.positionAbsolute.x,i=(r?.y??0)+e.internals.positionAbsolute.y,{width:l,height:s}=r??kc(e);if(o)return{x:a+l/2,y:i+s/2};switch(r?.position??n){case gt.Top:return{x:a+l/2,y:i};case gt.Right:return{x:a+l,y:i+s/2};case gt.Bottom:return{x:a+l/2,y:i+s};case gt.Left:return{x:a,y:i+s/2}}}function ise(e,r){return e&&(r?e.find(n=>n.id===r):e[0])||null}function JN(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function Aft(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((l,s)=>([s.markerStart||o,s.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const u=JN(c,r);i.has(u)||(l.push({id:u,color:c.color||n,...c}),i.add(u))}}),l),[]).sort((l,s)=>l.id.localeCompare(s.id))}const lse=1e3,Nft=10,eD={nodeOrigin:[0,0],nodeExtent:Eb,elevateNodesOnSelect:!0,defaults:{}},Dft={...eD,checkEquality:!0};function tD(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function Pft(e,r,n){const o=tD(eD,n);for(const a of e.values())if(a.parentId)nD(a,e,r,o);else{const i=Cb(a,o.nodeOrigin),l=lg(a.extent)?a.extent:o.nodeExtent,s=Xp(i,l,kc(a));a.internals.positionAbsolute=s}}function $ft(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function rD(e,r,n,o){const a=tD(Dft,o);let i={i:-1},l=e.length>0;const s=new Map(r),c=a?.elevateNodesOnSelect?lse:0;r.clear(),n.clear();for(const u of e){let d=s.get(u.id);if(a.checkEquality&&u===d?.internals.userNode)r.set(u.id,d);else{const p=Cb(u,a.nodeOrigin),f=lg(u.extent)?u.extent:a.nodeExtent,g=Xp(p,f,kc(u));d={...a.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:g,handleBounds:$ft(u,d),z:sse(u,c),userNode:u}},r.set(u.id,d)}(d.measured===void 0||d.measured.width===void 0||d.measured.height===void 0)&&!d.hidden&&(l=!1),u.parentId&&nD(d,r,n,o,i)}return l}function Mft(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function nD(e,r,n,o,a){const{elevateNodesOnSelect:i,nodeOrigin:l,nodeExtent:s}=tD(eD,o),c=e.parentId,u=r.get(c);if(!u){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}Mft(e,n),a&&!u.parentId&&u.internals.rootParentIndex===void 0&&(u.internals.rootParentIndex=++a.i,u.internals.z=u.internals.z+a.i*Nft),a&&u.internals.rootParentIndex!==void 0&&(a.i=u.internals.rootParentIndex);const d=i?lse:0,{x:p,y:f,z:g}=Oft(e,u,l,s,d),{positionAbsolute:b}=e.internals,x=p!==b.x||f!==b.y;(x||g!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:p,y:f}:b,z:g}})}function sse(e,r){return(Ol(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function Oft(e,r,n,o,a){const{x:i,y:l}=r.internals.positionAbsolute,s=kc(e),c=Cb(e,n),u=lg(e.extent)?Xp(c,e.extent,s):c;let d=Xp({x:i+u.x,y:l+u.y},o,s);e.extent==="parent"&&(d=Ble(d,s,r));const p=sse(e,a),f=r.internals.z??0;return{x:d.x,y:d.y,z:f>=p?f+1:p}}function oD(e,r,n,o=[0,0]){const a=[],i=new Map;for(const l of e){const s=r.get(l.parentId);if(!s)continue;const c=i.get(l.parentId)?.expandedRect??ag(s),u=Hle(c,l.rect);i.set(l.parentId,{expandedRect:u,parent:s})}return i.size>0&&i.forEach(({expandedRect:l,parent:s},c)=>{const u=s.internals.positionAbsolute,d=kc(s),p=s.origin??o,f=l.x<u.x?Math.round(Math.abs(u.x-l.x)):0,g=l.y<u.y?Math.round(Math.abs(u.y-l.y)):0,b=Math.max(d.width,Math.round(l.width)),x=Math.max(d.height,Math.round(l.height)),w=(b-d.width)*p[0],k=(x-d.height)*p[1];(f>0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:s.position.x-f+w,y:s.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+f,y:C.position.y+g}})})),(d.width<l.width||d.height<l.height||f||g)&&a.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:b+(f?p[0]*f-w:0),height:x+(g?p[1]*g-k:0)}})}),a}function Ift(e,r,n,o,a,i){const l=o?.querySelector(".xyflow__viewport");let s=!1;if(!l)return{changes:[],updatedInternals:s};const c=[],u=window.getComputedStyle(l),{m22:d}=new window.DOMMatrixReadOnly(u.transform),p=[];for(const f of e.values()){const g=r.get(f.id);if(!g)continue;if(g.hidden){r.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),s=!0;continue}const b=ZN(f.nodeElement),x=g.measured.width!==b.width||g.measured.height!==b.height;if(b.width&&b.height&&(x||!g.internals.handleBounds||f.force)){const w=f.nodeElement.getBoundingClientRect(),k=lg(g.extent)?g.extent:i;let{positionAbsolute:C}=g.internals;g.parentId&&g.extent==="parent"?C=Ble(C,b,r.get(g.parentId)):k&&(C=Xp(C,k,b));const _={...g,measured:b,internals:{...g.internals,positionAbsolute:C,handleBounds:{source:Kle("source",f.nodeElement,w,d,g.id),target:Kle("target",f.nodeElement,w,d,g.id)}}};r.set(g.id,_),g.parentId&&nD(_,r,n,{nodeOrigin:a}),s=!0,x&&(c.push({id:g.id,type:"dimensions",dimensions:b}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:ag(_,a)}))}}if(p.length>0){const f=oD(p,r,n,a);c.push(...f)}return{changes:c,updatedInternals:s}}async function zft({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const l=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),s=!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2]);return Promise.resolve(s)}function cse(e,r,n,o,a,i){let l=a;const s=o.get(l)||new Map;o.set(l,s.set(n,r)),l=`${a}-${e}`;const c=o.get(l)||new Map;if(o.set(l,c.set(n,r)),i){l=`${a}-${e}-${i}`;const u=o.get(l)||new Map;o.set(l,u.set(n,r))}}function use(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:l=null,targetHandle:s=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:l,targetHandle:s},u=`${a}-${l}--${i}-${s}`,d=`${i}-${s}--${a}-${l}`;cse("source",c,d,e,a,l),cse("target",c,u,e,i,s),r.set(o.id,o)}}function dse(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:dse(n,r):!1}function pse(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function Lft(e,r,n,o){const a=new Map;for(const[i,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!dse(l,e))&&(l.draggable||r&&typeof l.draggable>"u")){const s=e.get(i);s&&a.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return a}function aD({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[l,s]of r){const c=n.get(l)?.internals.userNode;c&&a.push({...c,position:s.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function Bft({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},l=Ab(i,r);return{x:l.x-i.x,y:l.y-i.y}}function jft({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},l=0,s=new Map,c=!1,u={x:0,y:0},d=null,p=!1,f=null,g=!1,b=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:R,nodeId:A,nodeClickDistance:D=0}){f=Ba(T);function N({x:L,y:Y}){const{nodeLookup:M,nodeExtent:q,snapGrid:z,snapToGrid:H,nodeOrigin:U,onNodeDrag:K,onSelectionDrag:V,onError:X,updateNodePositions:Z}=r();i={x:L,y:Y};let B=!1;const W=s.size>1,Q=W&&q?XN(Tb(s)):null,J=W&&H?Bft({dragItems:s,snapGrid:z,x:L,y:Y}):null;for(const[ne,te]of s){if(!M.has(ne))continue;let ee={x:L-te.distance.x,y:Y-te.distance.y};H&&(ee=J?{x:Math.round(ee.x+J.x),y:Math.round(ee.y+J.y)}:Ab(ee,z));let pe=null;if(W&&q&&!te.extent&&Q){const{positionAbsolute:de}=te.internals,xe=de.x-Q.x+q[0][0],De=de.x+te.measured.width-Q.x2+q[1][0],Ge=de.y-Q.y+q[0][1],et=de.y+te.measured.height-Q.y2+q[1][1];pe=[[xe,Ge],[De,et]]}const{position:Te,positionAbsolute:ce}=Lle({nodeId:ne,nextPosition:ee,nodeLookup:M,nodeExtent:pe||q,nodeOrigin:U,onError:X});B=B||te.position.x!==Te.x||te.position.y!==Te.y,te.position=Te,te.internals.positionAbsolute=ce}if(b=b||B,!!B&&(Z(s,!0),x&&(o||K||!A&&V))){const[ne,te]=aD({nodeId:A,dragItems:s,nodeLookup:M});o?.(x,s,ne,te),K?.(x,ne,te),A||V?.(x,te)}}async function $(){if(!d)return;const{transform:L,panBy:Y,autoPanSpeed:M,autoPanOnNodeDrag:q}=r();if(!q){c=!1,cancelAnimationFrame(l);return}const[z,H]=Fle(u,d,M);(z!==0||H!==0)&&(i.x=(i.x??0)-z/L[2],i.y=(i.y??0)-H/L[2],await Y({x:z,y:H})&&N(i)),l=requestAnimationFrame($)}function O(L){const{nodeLookup:Y,multiSelectionActive:M,nodesDraggable:q,transform:z,snapGrid:H,snapToGrid:U,selectNodesOnDrag:K,onNodeDragStart:V,onSelectionDragStart:X,unselectNodesAndEdges:Z}=r();p=!0,(!K||!R)&&!M&&A&&(Y.get(A)?.selected||Z()),R&&K&&A&&e?.(A);const B=Pb(L.sourceEvent,{transform:z,snapGrid:H,snapToGrid:U,containerBounds:d});if(i=B,s=Lft(Y,q,B,A),s.size>0&&(n||V||!A&&X)){const[W,Q]=aD({nodeId:A,dragItems:s,nodeLookup:Y});n?.(L.sourceEvent,s,W,Q),V?.(L.sourceEvent,W,Q),A||X?.(L.sourceEvent,Q)}}const j=ele().clickDistance(D).on("start",L=>{const{domNode:Y,nodeDragThreshold:M,transform:q,snapGrid:z,snapToGrid:H}=r();d=Y?.getBoundingClientRect()||null,g=!1,b=!1,x=L.sourceEvent,M===0&&O(L),i=Pb(L.sourceEvent,{transform:q,snapGrid:z,snapToGrid:H,containerBounds:d}),u=Il(L.sourceEvent,d)}).on("drag",L=>{const{autoPanOnNodeDrag:Y,transform:M,snapGrid:q,snapToGrid:z,nodeDragThreshold:H,nodeLookup:U}=r(),K=Pb(L.sourceEvent,{transform:M,snapGrid:q,snapToGrid:z,containerBounds:d});if(x=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||A&&!U.has(A))&&(g=!0),!g){if(!c&&Y&&p&&(c=!0,$()),!p){const V=Il(L.sourceEvent,d),X=V.x-u.x,Z=V.y-u.y;Math.sqrt(X*X+Z*Z)>H&&O(L)}(i.x!==K.xSnapped||i.y!==K.ySnapped)&&s&&p&&(u=Il(L.sourceEvent,d),N(K))}}).on("end",L=>{if(!(!p||g)&&(c=!1,p=!1,cancelAnimationFrame(l),s.size>0)){const{nodeLookup:Y,updateNodePositions:M,onNodeDragStop:q,onSelectionDragStop:z}=r();if(b&&(M(s,!1),b=!1),a||q||!A&&z){const[H,U]=aD({nodeId:A,dragItems:s,nodeLookup:Y,dragging:!1});a?.(L.sourceEvent,s,H,U),q?.(L.sourceEvent,H,U),A||z?.(L.sourceEvent,U)}}}).filter(L=>{const Y=L.target;return!L.button&&(!C||!pse(Y,`.${C}`,T))&&(!_||pse(Y,_,T))});f.call(j)}function k(){f?.on(".drag",null)}return{update:w,destroy:k}}function Fft(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())Rb(a,ag(i))>0&&o.push(i);return o}const Hft=250;function qft(e,r,n,o){let a=[],i=1/0;const l=Fft(e,n,r+Hft);for(const s of l){const c=[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]];for(const u of c){if(o.nodeId===u.nodeId&&o.type===u.type&&o.id===u.id)continue;const{x:d,y:p}=$b(s,u,u.position,!0),f=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(p-e.y,2));f>r||(f<i?(a=[{...u,x:d,y:p}],i=f):f===i&&a.push({...u,x:d,y:p}))}}if(!a.length)return null;if(a.length>1){const s=o.type==="source"?"target":"source";return a.find(c=>c.type===s)??a[0]}return a[0]}function hse(e,r,n,o,a,i=!1){const l=o.get(e);if(!l)return null;const s=a==="strict"?l.internals.handleBounds?.[r]:[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]],c=(n?s?.find(u=>u.id===n):s?.[0])??null;return c&&i?{...c,...$b(l,c,c.position,!0)}:c}function fse(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function Uft(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const mse=()=>!0;function Vft(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:l,domNode:s,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:p,panBy:f,cancelConnection:g,onConnectStart:b,onConnect:x,onConnectEnd:w,isValidConnection:k=mse,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:R,autoPanSpeed:A,dragThreshold:D=1,handleDomNode:N}){const $=Wle(e.target);let O=0,j;const{x:L,y:Y}=Il(e),M=fse(i,N),q=s?.getBoundingClientRect();let z=!1;if(!q||!M)return;const H=hse(a,M,o,c,r);if(!H)return;let U=Il(e,q),K=!1,V=null,X=!1,Z=null;function B(){if(!d||!q)return;const[pe,Te]=Fle(U,q,A);f({x:pe,y:Te}),O=requestAnimationFrame(B)}const W={...H,nodeId:a,type:M,position:H.position},Q=c.get(a);let J={inProgress:!0,isValid:null,from:$b(Q,W,gt.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:Q,to:U,toHandle:null,toPosition:Ole[W.position],toNode:null};function ne(){z=!0,_(J),b?.(e,{nodeId:a,handleId:o,handleType:M})}D===0&&ne();function te(pe){if(!z){const{x:xe,y:De}=Il(pe),Ge=xe-L,et=De-Y;if(!(Ge*Ge+et*et>D*D))return;ne()}if(!R()||!W){ee(pe);return}const Te=T();U=Il(pe,q),j=qft(Nb(U,Te,!1,[1,1]),n,c,W),K||(B(),K=!0);const ce=gse(pe,{handle:j,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:l?"target":"source",isValidConnection:k,doc:$,lib:u,flowId:p,nodeLookup:c});Z=ce.handleDomNode,V=ce.connection,X=Uft(!!j,ce.isValid);const de={...J,isValid:X,to:ce.toHandle&&X?J5({x:ce.toHandle.x,y:ce.toHandle.y},Te):U,toHandle:ce.toHandle,toPosition:X&&ce.toHandle?ce.toHandle.position:Ole[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};X&&j&&J.toHandle&&de.toHandle&&J.toHandle.type===de.toHandle.type&&J.toHandle.nodeId===de.toHandle.nodeId&&J.toHandle.id===de.toHandle.id&&J.to.x===de.to.x&&J.to.y===de.to.y||(_(de),J=de)}function ee(pe){if(!("touches"in pe&&pe.touches.length>0)){if(z){(j||Z)&&V&&X&&x?.(V);const{inProgress:Te,...ce}=J,de={...ce,toPosition:J.toHandle?J.toPosition:null};w?.(pe,de),i&&C?.(pe,de)}g(),cancelAnimationFrame(O),K=!1,X=!1,V=null,Z=null,$.removeEventListener("mousemove",te),$.removeEventListener("mouseup",ee),$.removeEventListener("touchmove",te),$.removeEventListener("touchend",ee)}}$.addEventListener("mousemove",te),$.addEventListener("mouseup",ee),$.addEventListener("touchmove",te),$.addEventListener("touchend",ee)}function gse(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:l,lib:s,flowId:c,isValidConnection:u=mse,nodeLookup:d}){const p=i==="target",f=r?l.querySelector(`.${s}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y:b}=Il(e),x=l.elementFromPoint(g,b),w=x?.classList.contains(`${s}-flow__handle`)?x:f,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=fse(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),R=w.classList.contains("connectable"),A=w.classList.contains("connectableend");if(!_||!C)return k;const D={source:p?_:o,sourceHandle:p?T:a,target:p?o:_,targetHandle:p?a:T};k.connection=D;const N=R&&A&&(n===ng.Strict?p&&C==="source"||!p&&C==="target":_!==o||T!==a);k.isValid=N&&u(D),k.toHandle=hse(_,C,T,d,n,!0)}return k}const iD={onPointerDown:Vft,isValid:gse};function Yft({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ba(e);function i({translateExtent:s,width:c,height:u,zoomStep:d=1,pannable:p=!0,zoomable:f=!0,inversePan:g=!1}){const b=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),R=_.sourceEvent.ctrlKey&&Db()?10:1,A=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*d,D=T[2]*Math.pow(2,A*R);r.scaleTo(D)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const R=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],A=[R[0]-x[0],R[1]-x[1]];x=R;const D=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),N={x:T[0]-A[0]*D,y:T[1]-A[1]*D},$=[[0,0],[c,u]];r.setViewportConstrained({x:N.x,y:N.y,zoom:T[2]},$,s)},C=Dle().on("start",w).on("zoom",p?k:null).on("zoom.wheel",f?b:null);a.call(C,{})}function l(){a.on("zoom",null)}return{update:i,destroy:l,pointer:Pl}}const tk=e=>({x:e.x,y:e.y,zoom:e.k}),lD=({x:e,y:r,zoom:n})=>G5.translate(e,r).scale(n),sg=(e,r)=>e.target.closest(`.${r}`),yse=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),Wft=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,sD=(e,r=0,n=Wft,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},bse=e=>{const r=e.ctrlKey&&Db()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function Gft({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:l,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(sg(d,r))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(d.ctrlKey&&l){const w=Pl(d),k=bse(d),C=p*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const f=d.deltaMode===1?20:1;let g=a===Gp.Vertical?0:d.deltaX*f,b=a===Gp.Horizontal?0:d.deltaY*f;!Db()&&d.shiftKey&&a!==Gp.Vertical&&(g=d.deltaY*f,b=0),o.translateBy(n,-(g/p)*i,-(b/p)*i,{internal:!0});const x=tk(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s?.(d,x))}}function Xft({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",l=!r&&i&&!o.ctrlKey,s=sg(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),l||s)return null;o.preventDefault(),n.call(this,o,a)}}function Kft({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=tk(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function Zft({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&yse(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,tk(i.transform))}}function Qft({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&yse(r,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&i(l.sourceEvent),e.usedRightMouseButton=!1,o(!1),a)){const s=tk(l.transform);e.prevViewport=s,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(l.sourceEvent,s)},n?150:0)}}}function Jft({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:l,noWheelClassName:s,noPanClassName:c,lib:u,connectionInProgress:d}){return p=>{const f=e||r,g=n&&p.ctrlKey,b=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(sg(p,`${u}-flow__node`)||sg(p,`${u}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||l||d&&!b||sg(p,s)&&b||sg(p,c)&&(!b||a&&b&&!e)||!n&&p.ctrlKey&&b)return!1;if(!n&&p.type==="touchstart"&&p.touches?.length>1)return p.preventDefault(),!1;if(!f&&!a&&!g&&b||!o&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(o)&&!o.includes(p.button)&&p.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||b)&&x}}function emt({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:l,onPanZoomStart:s,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),f=Dle().clickDistance(!Ol(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ba(e).call(f);_({x:i.x,y:i.y,zoom:og(i.zoom,r,n)},[[0,0],[p.width,p.height]],a);const b=g.on("wheel.zoom"),x=g.on("dblclick.zoom");f.wheelDelta(bse);function w(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?bb:L5).transform(sD(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function k({noWheelClassName:L,noPanClassName:Y,onPaneContextMenu:M,userSelectionActive:q,panOnScroll:z,panOnDrag:H,panOnScrollMode:U,panOnScrollSpeed:K,preventScrolling:V,zoomOnPinch:X,zoomOnScroll:Z,zoomOnDoubleClick:B,zoomActivationKeyPressed:W,lib:Q,onTransformChange:J,connectionInProgress:ne}){q&&!d.isZoomingOrPanning&&C();const te=z&&!W&&!q?Gft({zoomPanValues:d,noWheelClassName:L,d3Selection:g,d3Zoom:f,panOnScrollMode:U,panOnScrollSpeed:K,zoomOnPinch:X,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}):Xft({noWheelClassName:L,preventScrolling:V,d3ZoomHandler:b});if(g.on("wheel.zoom",te,{passive:!1}),!q){const pe=Kft({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:s});f.on("start",pe);const Te=Zft({zoomPanValues:d,panOnDrag:H,onPaneContextMenu:!!M,onPanZoom:l,onTransformChange:J});f.on("zoom",Te);const ce=Qft({zoomPanValues:d,panOnDrag:H,panOnScroll:z,onPaneContextMenu:M,onPanZoomEnd:c,onDraggingChange:u});f.on("end",ce)}const ee=Jft({zoomActivationKeyPressed:W,panOnDrag:H,zoomOnScroll:Z,panOnScroll:z,zoomOnDoubleClick:B,zoomOnPinch:X,userSelectionActive:q,noPanClassName:Y,noWheelClassName:L,lib:Q,connectionInProgress:ne});f.filter(ee),B?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){f.on("zoom",null)}async function _(L,Y,M){const q=lD(L),z=f?.constrain()(q,Y,M);return z&&await w(z),new Promise(H=>H(z))}async function T(L,Y){const M=lD(L);return await w(M,Y),new Promise(q=>q(M))}function R(L){if(g){const Y=lD(L),M=g.property("__zoom");(M.k!==L.zoom||M.x!==L.x||M.y!==L.y)&&f?.transform(g,Y,null,{sync:!0})}}function A(){const L=g?Ale(g.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function D(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?bb:L5).scaleTo(sD(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function N(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?bb:L5).scaleBy(sD(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function $(L){f?.scaleExtent(L)}function O(L){f?.translateExtent(L)}function j(L){const Y=!Ol(L)||L<0?0:L;f?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:A,scaleTo:D,scaleBy:N,setScaleExtent:$,setTranslateExtent:O,syncViewport:R,setClickDistance:j}}var cg;(function(e){e.Line="line",e.Handle="handle"})(cg||(cg={}));function tmt({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const l=e-r,s=n-o,c=[l>0?1:l<0?-1:0,s>0?1:s<0?-1:0];return l&&a&&(c[0]=c[0]*-1),s&&i&&(c[1]=c[1]*-1),c}function vse(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function Uu(e,r){return Math.max(0,r-e)}function Vu(e,r){return Math.max(0,e-r)}function rk(e,r,n){return Math.max(0,r-e,e-n)}function xse(e,r){return e?!r:r}function rmt(e,r,n,o,a,i,l,s){let{affectsX:c,affectsY:u}=r;const{isHorizontal:d,isVertical:p}=r,f=d&&p,{xSnapped:g,ySnapped:b}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:R,height:A,aspectRatio:D}=e;let N=Math.floor(d?g-e.pointerX:0),$=Math.floor(p?b-e.pointerY:0);const O=R+(c?-N:N),j=A+(u?-$:$),L=-i[0]*R,Y=-i[1]*A;let M=rk(O,x,w),q=rk(j,k,C);if(l){let U=0,K=0;c&&N<0?U=Uu(_+N+L,l[0][0]):!c&&N>0&&(U=Vu(_+O+L,l[1][0])),u&&$<0?K=Uu(T+$+Y,l[0][1]):!u&&$>0&&(K=Vu(T+j+Y,l[1][1])),M=Math.max(M,U),q=Math.max(q,K)}if(s){let U=0,K=0;c&&N>0?U=Vu(_+N,s[0][0]):!c&&N<0&&(U=Uu(_+O,s[1][0])),u&&$>0?K=Vu(T+$,s[0][1]):!u&&$<0&&(K=Uu(T+j,s[1][1])),M=Math.max(M,U),q=Math.max(q,K)}if(a){if(d){const U=rk(O/D,k,C)*D;if(M=Math.max(M,U),l){let K=0;!c&&!u||c&&!u&&f?K=Vu(T+Y+O/D,l[1][1])*D:K=Uu(T+Y+(c?N:-N)/D,l[0][1])*D,M=Math.max(M,K)}if(s){let K=0;!c&&!u||c&&!u&&f?K=Uu(T+O/D,s[1][1])*D:K=Vu(T+(c?N:-N)/D,s[0][1])*D,M=Math.max(M,K)}}if(p){const U=rk(j*D,x,w)/D;if(q=Math.max(q,U),l){let K=0;!c&&!u||u&&!c&&f?K=Vu(_+j*D+L,l[1][0])/D:K=Uu(_+(u?$:-$)*D+L,l[0][0])/D,q=Math.max(q,K)}if(s){let K=0;!c&&!u||u&&!c&&f?K=Uu(_+j*D,s[1][0])/D:K=Vu(_+(u?$:-$)*D,s[0][0])/D,q=Math.max(q,K)}}}$=$+($<0?q:-q),N=N+(N<0?M:-M),a&&(f?O>j*D?$=(xse(c,u)?-N:N)/D:N=(xse(c,u)?-$:$)*D:d?($=N/D,u=c):(N=$*D,c=u));const z=c?_+N:_,H=u?T+$:T;return{width:R+(c?-N:N),height:A+(u?-$:$),x:i[0]*N*(c?-1:1)+z,y:i[1]*$*(u?-1:1)+H}}const wse={width:0,height:0,x:0,y:0},nmt={...wse,pointerX:0,pointerY:0,aspectRatio:1};function omt(e){return[[0,0],[e.measured.width,e.measured.height]]}function amt(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,l=e.measured.height??0,s=n[0]*i,c=n[1]*l;return[[o-s,a-c],[o+i-s,a+l-c]]}function imt({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ba(e);let l={controlDirection:vse("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:u,boundaries:d,keepAspectRatio:p,resizeDirection:f,onResizeStart:g,onResize:b,onResizeEnd:x,shouldResize:w}){let k={...wse},C={...nmt};l={boundaries:d,resizeDirection:f,keepAspectRatio:p,controlDirection:vse(u)};let _,T=null,R=[],A,D,N,$=!1;const O=ele().on("start",j=>{const{nodeLookup:L,transform:Y,snapGrid:M,snapToGrid:q,nodeOrigin:z,paneDomNode:H}=n();if(_=L.get(r),!_)return;T=H?.getBoundingClientRect()??null;const{xSnapped:U,ySnapped:K}=Pb(j.sourceEvent,{transform:Y,snapGrid:M,snapToGrid:q,containerBounds:T});k={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},C={...k,pointerX:U,pointerY:K,aspectRatio:k.width/k.height},A=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(A=L.get(_.parentId),D=A&&_.extent==="parent"?omt(A):void 0),R=[],N=void 0;for(const[V,X]of L)if(X.parentId===r&&(R.push({id:V,position:{...X.position},extent:X.extent}),X.extent==="parent"||X.expandParent)){const Z=amt(X,_,X.origin??z);N?N=[[Math.min(Z[0][0],N[0][0]),Math.min(Z[0][1],N[0][1])],[Math.max(Z[1][0],N[1][0]),Math.max(Z[1][1],N[1][1])]]:N=Z}g?.(j,{...k})}).on("drag",j=>{const{transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q}=n(),z=Pb(j.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:M,containerBounds:T}),H=[];if(!_)return;const{x:U,y:K,width:V,height:X}=k,Z={},B=_.origin??q,{width:W,height:Q,x:J,y:ne}=rmt(C,l.controlDirection,z,l.boundaries,l.keepAspectRatio,B,D,N),te=W!==V,ee=Q!==X,pe=J!==U&&te,Te=ne!==K&&ee;if(!pe&&!Te&&!te&&!ee)return;if((pe||Te||B[0]===1||B[1]===1)&&(Z.x=pe?J:k.x,Z.y=Te?ne:k.y,k.x=Z.x,k.y=Z.y,R.length>0)){const xe=J-U,De=ne-K;for(const Ge of R)Ge.position={x:Ge.position.x-xe+B[0]*(W-V),y:Ge.position.y-De+B[1]*(Q-X)},H.push(Ge)}if((te||ee)&&(Z.width=te&&(!l.resizeDirection||l.resizeDirection==="horizontal")?W:k.width,Z.height=ee&&(!l.resizeDirection||l.resizeDirection==="vertical")?Q:k.height,k.width=Z.width,k.height=Z.height),A&&_.expandParent){const xe=B[0]*(Z.width??0);Z.x&&Z.x<xe&&(k.x=xe,C.x=C.x-(Z.x-xe));const De=B[1]*(Z.height??0);Z.y&&Z.y<De&&(k.y=De,C.y=C.y-(Z.y-De))}const ce=tmt({width:k.width,prevWidth:V,height:k.height,prevHeight:X,affectsX:l.controlDirection.affectsX,affectsY:l.controlDirection.affectsY}),de={...k,direction:ce};w?.(j,de)!==!1&&($=!0,b?.(j,de),o(Z,H))}).on("end",j=>{$&&(x?.(j,{...k}),a?.({...k}),$=!1)});i.call(O)}function c(){i.on(".drag",null)}return{update:s,destroy:c}}const lmt={},kse=e=>{let r;const n=new Set,o=(s,c)=>{const u=typeof s=="function"?s(r):s;if(!Object.is(u,r)){const d=r;r=c??(typeof u!="object"||u===null)?u:Object.assign({},r,u),n.forEach(p=>p(r,d))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(lmt?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=r=e(o,a,i);return i},smt=e=>e?kse(e):kse,{useDebugValue:cmt}=Qr,{useSyncExternalStoreWithSelector:umt}=uut,dmt=e=>e;function _se(e,r=dmt,n){const o=umt(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return cmt(o),o}const Ese=(e,r)=>{const n=smt(e),o=(a,i=r)=>_se(n,a,i);return Object.assign(o,n),o},pmt=(e,r)=>e?Ese(e,r):Ese;function Xr(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const nk=S.createContext(null),hmt=nk.Provider,Sse=ks.error001();function nr(e,r){const n=S.useContext(nk);if(n===null)throw new Error(Sse);return _se(n,e,r)}function qr(){const e=S.useContext(nk);if(e===null)throw new Error(Sse);return S.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const Cse={display:"none"},fmt={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Tse="react-flow__node-desc",Rse="react-flow__edge-desc",mmt="react-flow__aria-live",gmt=e=>e.ariaLiveMessage,ymt=e=>e.ariaLabelConfig;function bmt({rfId:e}){const r=nr(gmt);return y.jsx("div",{id:`${mmt}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:fmt,children:r})}function vmt({rfId:e,disableKeyboardA11y:r}){const n=nr(ymt);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${Tse}-${e}`,style:Cse,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${Rse}-${e}`,style:Cse,children:n["edge.a11yDescription.default"]}),!r&&y.jsx(bmt,{rfId:e})]})}const ok=S.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const l=`${e}`.split("-");return y.jsx("div",{className:Nn(["react-flow__panel",n,...l]),style:o,ref:i,...a,children:r})});ok.displayName="Panel";function xmt({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:y.jsx(ok,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:y.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const wmt=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},ak=e=>e.id;function kmt(e,r){return Xr(e.selectedNodes.map(ak),r.selectedNodes.map(ak))&&Xr(e.selectedEdges.map(ak),r.selectedEdges.map(ak))}function _mt({onSelectionChange:e}){const r=qr(),{selectedNodes:n,selectedEdges:o}=nr(wmt,kmt);return S.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const Emt=e=>!!e.onSelectionChangeHandlers;function Smt({onSelectionChange:e}){const r=nr(Emt);return e||r?y.jsx(_mt,{onSelectionChange:e}):null}const Ase=[0,0],Cmt={x:0,y:0,zoom:1},Tmt=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],Nse=[...Tmt,"rfId"],Rmt=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),Dse={translateExtent:Eb,nodeOrigin:Ase,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function Amt(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:l,reset:s,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=nr(Rmt,Xr),d=qr();S.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{p.current=Dse,s()}),[]);const p=S.useRef(Dse);return S.useEffect(()=>{for(const f of Nse){const g=e[f],b=p.current[f];g!==b&&(typeof e[f]>"u"||(f==="nodes"?r(g):f==="edges"?n(g):f==="minZoom"?o(g):f==="maxZoom"?a(g):f==="translateExtent"?i(g):f==="nodeExtent"?l(g):f==="paneClickDistance"?u(g):f==="ariaLabelConfig"?d.setState({ariaLabelConfig:bft(g)}):f==="fitView"?d.setState({fitViewQueued:g}):f==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[f]:g})))}p.current=e},Nse.map(f=>e[f])),null}function Pse(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function Nmt(e){const[r,n]=S.useState(e==="system"?null:e);return S.useEffect(()=>{if(e!=="system"){n(e);return}const o=Pse(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:Pse()?.matches?"dark":"light"}const $se=typeof document<"u"?document:null;function Mb(e=null,r={target:$se,actInsideInputWithModifier:!0}){const[n,o]=S.useState(!1),a=S.useRef(!1),i=S.useRef(new Set([])),[l,s]=S.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace("+",`
`).replace(`

`,`
+`).split(`
`)),u=c.reduce((d,p)=>d.concat(...p),[]);return[c,u]}return[[],[]]},[e]);return S.useEffect(()=>{const c=r?.target??$se,u=r?.actInsideInputWithModifier??!0;if(e!==null){const d=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!u)&&Gle(g))return!1;const b=Ose(g.code,s);if(i.current.add(g[b]),Mse(l,i.current,!1)){const x=g.composedPath?.()?.[0]||g.target,w=x?.nodeName==="BUTTON"||x?.nodeName==="A";r.preventDefault!==!1&&(a.current||!w)&&g.preventDefault(),o(!0)}},p=g=>{const b=Ose(g.code,s);Mse(l,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[b]),g.key==="Meta"&&i.current.clear(),a.current=!1},f=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",d),c?.addEventListener("keyup",p),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{c?.removeEventListener("keydown",d),c?.removeEventListener("keyup",p),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,o]),n}function Mse(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function Ose(e,r){return r.includes(e)?"code":"key"}const Dmt=()=>{const e=qr();return S.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:l}=e.getState();return l?(await l.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:l,panZoom:s}=e.getState(),c=KN(r,o,a,i,l,n?.padding??.1);return s?(await s.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:l}=e.getState();if(!l)return r;const{x:s,y:c}=l.getBoundingClientRect(),u={x:r.x-s,y:r.y-c},d=n.snapGrid??a,p=n.snapToGrid??i;return Nb(u,o,p,d)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),l=J5(r,n);return{x:l.x+a,y:l.y+i}}}),[])};function Ise(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const l=o.get(i.id);l?l.push(i):o.set(i.id,[i])}for(const i of r){const l=o.get(i.id);if(!l){n.push(i);continue}if(l[0].type==="remove")continue;if(l[0].type==="replace"){n.push({...l[0].item});continue}const s={...i};for(const c of l)Pmt(c,s);n.push(s)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function Pmt(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured??={},r.measured.width=e.dimensions.width,r.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function $mt(e,r){return Ise(e,r)}function Mmt(e,r){return Ise(e,r)}function Kp(e,r){return{id:e,type:"select",selected:r}}function ug(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const l=r.has(a);!(i.selected===void 0&&!l)&&i.selected!==l&&(n&&(i.selected=l),o.push(Kp(i.id,l)))}return o}function zse({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const l=r.get(i.id),s=l?.internals?.userNode??l;s!==void 0&&s!==i&&n.push({id:i.id,item:i,type:"replace"}),s===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function Lse(e){return{id:e.id,type:"remove"}}const Bse=e=>sft(e),Omt=e=>zle(e);function jse(e){return S.forwardRef(e)}const Imt=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Fse(e){const[r,n]=S.useState(BigInt(0)),[o]=S.useState(()=>zmt(()=>n(a=>a+BigInt(1))));return Imt(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function zmt(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const Hse=S.createContext(null);function Lmt({children:e}){const r=qr(),n=S.useCallback(s=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:p,nodeLookup:f,fitViewQueued:g}=r.getState();let b=c;for(const w of s)b=typeof w=="function"?w(b):w;const x=zse({items:b,lookup:f});d&&u(b),x.length>0?p?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:C}=r.getState();w&&C(k)})},[]),o=Fse(n),a=S.useCallback(s=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:p,edgeLookup:f}=r.getState();let g=c;for(const b of s)g=typeof b=="function"?b(g):b;d?u(g):p&&p(zse({items:g,lookup:f}))},[]),i=Fse(a),l=S.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return y.jsx(Hse.Provider,{value:l,children:e})}function Bmt(){const e=S.useContext(Hse);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const jmt=e=>!!e.panZoom;function cD(){const e=Dmt(),r=qr(),n=Bmt(),o=nr(jmt),a=S.useMemo(()=>{const i=p=>r.getState().nodeLookup.get(p),l=p=>{n.nodeQueue.push(p)},s=p=>{n.edgeQueue.push(p)},c=p=>{const{nodeLookup:f,nodeOrigin:g}=r.getState(),b=Bse(p)?p:f.get(p.id),x=b.parentId?Vle(b.position,b.measured,b.parentId,f,g):b.position,w={...b,position:x,width:b.measured?.width??b.width,height:b.measured?.height??b.height};return ag(w)},u=(p,f,g={replace:!1})=>{l(b=>b.map(x=>{if(x.id===p){const w=typeof f=="function"?f(x):f;return g.replace&&Bse(w)?w:{...x,...w}}return x}))},d=(p,f,g={replace:!1})=>{s(b=>b.map(x=>{if(x.id===p){const w=typeof f=="function"?f(x):f;return g.replace&&Omt(w)?w:{...x,...w}}return x}))};return{getNodes:()=>r.getState().nodes.map(p=>({...p})),getNode:p=>i(p)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:p=[]}=r.getState();return p.map(f=>({...f}))},getEdge:p=>r.getState().edgeLookup.get(p),setNodes:l,setEdges:s,addNodes:p=>{const f=Array.isArray(p)?p:[p];n.nodeQueue.push(g=>[...g,...f])},addEdges:p=>{const f=Array.isArray(p)?p:[p];n.edgeQueue.push(g=>[...g,...f])},toObject:()=>{const{nodes:p=[],edges:f=[],transform:g}=r.getState(),[b,x,w]=g;return{nodes:p.map(k=>({...k})),edges:f.map(k=>({...k})),viewport:{x:b,y:x,zoom:w}}},deleteElements:async({nodes:p=[],edges:f=[]})=>{const{nodes:g,edges:b,onNodesDelete:x,onEdgesDelete:w,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:T}=r.getState(),{nodes:R,edges:A}=await hft({nodesToRemove:p,edgesToRemove:f,nodes:g,edges:b,onBeforeDelete:T}),D=A.length>0,N=R.length>0;if(D){const $=A.map(Lse);w?.(A),C($)}if(N){const $=R.map(Lse);x?.(R),k($)}return(N||D)&&_?.({nodes:R,edges:A}),{deletedNodes:R,deletedEdges:A}},getIntersectingNodes:(p,f=!0,g)=>{const b=qle(p),x=b?p:c(p),w=g!==void 0;return x?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!b&&(k.id===p.id||!C.internals.positionAbsolute))return!1;const _=ag(w?k:C),T=Rb(_,x);return f&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(p,f,g=!0)=>{const b=qle(p)?p:c(p);if(!b)return!1;const x=Rb(b,f);return g&&x>0||x>=f.width*f.height||x>=b.width*b.height},updateNode:u,updateNodeData:(p,f,g={replace:!1})=>{u(p,b=>{const x=typeof f=="function"?f(b):f;return g.replace?{...b,data:x}:{...b,data:{...b.data,...x}}},g)},updateEdge:d,updateEdgeData:(p,f,g={replace:!1})=>{d(p,b=>{const x=typeof f=="function"?f(b):f;return g.replace?{...b,data:x}:{...b,data:{...b.data,...x}}},g)},getNodesBounds:p=>{const{nodeLookup:f,nodeOrigin:g}=r.getState();return cft(p,{nodeLookup:f,nodeOrigin:g})},getHandleConnections:({type:p,id:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${p}${f?`-${f}`:""}`)?.values()??[]),getNodeConnections:({type:p,handleId:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${p?f?`-${p}-${f}`:`-${p}`:""}`)?.values()??[]),fitView:async p=>{const f=r.getState().fitViewResolver??yft();return r.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:f}),n.nodeQueue.push(g=>[...g]),f.promise}}},[]);return S.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const qse=e=>e.selected,Fmt=typeof window<"u"?window:void 0;function Hmt({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=qr(),{deleteElements:o}=cD(),a=Mb(e,{actInsideInputWithModifier:!1}),i=Mb(r,{target:Fmt});S.useEffect(()=>{if(a){const{edges:l,nodes:s}=n.getState();o({nodes:s.filter(qse),edges:l.filter(qse)}),n.setState({nodesSelectionActive:!1})}},[a]),S.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function qmt(e){const r=qr();S.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=ZN(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",ks.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const ik={position:"absolute",width:"100%",height:"100%",top:0,left:0},Umt=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Vmt({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=Gp.Free,zoomOnDoubleClick:l=!0,panOnDrag:s=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:p,zoomActivationKeyCode:f,preventScrolling:g=!0,children:b,noWheelClassName:x,noPanClassName:w,onViewportChange:k,isControlledViewport:C,paneClickDistance:_}){const T=qr(),R=S.useRef(null),{userSelectionActive:A,lib:D,connectionInProgress:N}=nr(Umt,Xr),$=Mb(f),O=S.useRef();qmt(R);const j=S.useCallback(L=>{k?.({x:L[0],y:L[1],zoom:L[2]}),C||T.setState({transform:L})},[k,C]);return S.useEffect(()=>{if(R.current){O.current=emt({domNode:R.current,minZoom:d,maxZoom:p,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:q=>T.setState({paneDragging:q}),onPanZoomStart:(q,z)=>{const{onViewportChangeStart:H,onMoveStart:U}=T.getState();U?.(q,z),H?.(z)},onPanZoom:(q,z)=>{const{onViewportChange:H,onMove:U}=T.getState();U?.(q,z),H?.(z)},onPanZoomEnd:(q,z)=>{const{onViewportChangeEnd:H,onMoveEnd:U}=T.getState();U?.(q,z),H?.(z)}});const{x:L,y:Y,zoom:M}=O.current.getViewport();return T.setState({panZoom:O.current,transform:[L,Y,M],domNode:R.current.closest(".react-flow")}),()=>{O.current?.destroy()}}},[]),S.useEffect(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:l,panOnDrag:s,zoomActivationKeyPressed:$,preventScrolling:g,noPanClassName:w,userSelectionActive:A,noWheelClassName:x,lib:D,onTransformChange:j,connectionInProgress:N})},[e,r,n,o,a,i,l,s,$,g,w,A,x,D,j,N]),y.jsx("div",{className:"react-flow__renderer",ref:R,style:ik,children:b})}const Ymt=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Wmt(){const{userSelectionActive:e,userSelectionRect:r}=nr(Ymt,Xr);return e&&r?y.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const uD=(e,r)=>n=>{n.target===r.current&&e?.(n)},Gmt=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function Xmt({isSelecting:e,selectionKeyPressed:r,selectionMode:n=Sb.Full,panOnDrag:o,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:l,onPaneClick:s,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:p,onPaneMouseLeave:f,children:g}){const b=qr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=nr(Gmt,Xr),_=w&&(e||x),T=S.useRef(null),R=S.useRef(),A=S.useRef(new Set),D=S.useRef(new Set),N=S.useRef(!1),$=S.useRef(!1),O=U=>{if(N.current||C){N.current=!1;return}s?.(U),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},j=U=>{if(Array.isArray(o)&&o?.includes(2)){U.preventDefault();return}c?.(U)},L=u?U=>u(U):void 0,Y=U=>{(a&&T.current===U.target||!a||r)&&U.stopPropagation()},M=U=>{const{resetSelectedElements:K,domNode:V}=b.getState();R.current=V?.getBoundingClientRect();const X=U.target!==T.current&&!!U.target.closest(".nokey"),Z=a&&T.current===U.target||!a||r;if(!w||!e||U.button!==0||!R.current||X||!Z||!U.isPrimary)return;U.stopPropagation(),U.preventDefault(),U.target?.setPointerCapture?.(U.pointerId),$.current=!0,N.current=!1;const{x:B,y:W}=Il(U.nativeEvent,R.current);K(),b.setState({userSelectionRect:{width:0,height:0,startX:B,startY:W,x:B,y:W}}),i?.(U)},q=U=>{const{userSelectionRect:K,transform:V,nodeLookup:X,edgeLookup:Z,connectionLookup:B,triggerNodeChanges:W,triggerEdgeChanges:Q,defaultEdgeOptions:J}=b.getState();if(!R.current||!K)return;N.current=!0;const{x:ne,y:te}=Il(U.nativeEvent,R.current),{startX:ee,startY:pe}=K,Te={startX:ee,startY:pe,x:ne<ee?ne:ee,y:te<pe?te:pe,width:Math.abs(ne-ee),height:Math.abs(te-pe)},ce=A.current,de=D.current;A.current=new Set(GN(X,Te,V,n===Sb.Partial,!0).map(De=>De.id)),D.current=new Set;const xe=J?.selectable??!0;for(const De of A.current){const Ge=B.get(De);if(Ge)for(const{edgeId:et}of Ge.values()){const ft=Z.get(et);ft&&(ft.selectable??xe)&&D.current.add(et)}}if(!Yle(ce,A.current)){const De=ug(X,A.current,!0);W(De)}if(!Yle(de,D.current)){const De=ug(Z,D.current);Q(De)}b.setState({userSelectionRect:Te,userSelectionActive:!0,nodesSelectionActive:!1})},z=U=>{if(U.button!==0||!$.current)return;U.target?.releasePointerCapture?.(U.pointerId);const{userSelectionRect:K}=b.getState();!x&&K&&U.target===T.current&&O?.(U),b.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:A.current.size>0}),l?.(U),(r||a)&&(N.current=!1),$.current=!1},H=o===!0||Array.isArray(o)&&o.includes(0);return y.jsxs("div",{className:Nn(["react-flow__pane",{draggable:H,dragging:k,selection:e}]),onClick:_?void 0:uD(O,T),onContextMenu:uD(j,T),onWheel:uD(L,T),onPointerEnter:_?void 0:d,onPointerMove:_?q:p,onPointerUp:_?z:void 0,onPointerDownCapture:_?M:void 0,onClickCapture:_?Y:void 0,onPointerLeave:f,ref:T,style:ik,children:[g,y.jsx(Wmt,{})]})}function dD({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:l,nodeLookup:s,onError:c}=r.getState(),u=s.get(e);if(!u){c?.("012",ks.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&l)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function Use({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:l}){const s=qr(),[c,u]=S.useState(!1),d=S.useRef();return S.useEffect(()=>{d.current=jft({getStoreItems:()=>s.getState(),onNodeMouseDown:p=>{dD({id:p,store:s,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),S.useEffect(()=>{if(r)d.current?.destroy();else if(e.current)return d.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:l}),()=>{d.current?.destroy()}},[n,o,r,i,e,a]),c}const Kmt=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function Vse(){const e=qr();return S.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:l,updateNodePositions:s,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,p=Kmt(i),f=o?a[0]:5,g=o?a[1]:5,b=r.direction.x*f*r.factor,x=r.direction.y*g*r.factor;for(const[,w]of c){if(!p(w))continue;let k={x:w.internals.positionAbsolute.x+b,y:w.internals.positionAbsolute.y+x};o&&(k=Ab(k,a));const{position:C,positionAbsolute:_}=Lle({nodeId:w.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:u,onError:l});w.position=C,w.internals.positionAbsolute=_,d.set(w.id,w)}s(d)},[])}const pD=S.createContext(null),Zmt=pD.Provider;pD.Consumer;const Yse=()=>S.useContext(pD),Qmt=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Jmt=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:l}=o,{fromHandle:s,toHandle:c,isValid:u}=l,d=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:s?.nodeId===e&&s?.id===r&&s?.type===n,connectingTo:d,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===ng.Strict?s?.type!==n:e!==s?.nodeId||r!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!a,valid:d&&u}};function egt({type:e="source",position:r=gt.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:l,onConnect:s,children:c,className:u,onMouseDown:d,onTouchStart:p,...f},g){const b=l||null,x=e==="target",w=qr(),k=Yse(),{connectOnClick:C,noPanClassName:_,rfId:T}=nr(Qmt,Xr),{connectingFrom:R,connectingTo:A,clickConnecting:D,isPossibleEndHandle:N,connectionInProcess:$,clickConnectionInProcess:O,valid:j}=nr(Jmt(k,b,e),Xr);k||w.getState().onError?.("010",ks.error010());const L=q=>{const{defaultEdgeOptions:z,onConnect:H,hasDefaultEdges:U}=w.getState(),K={...z,...q};if(U){const{edges:V,setEdges:X}=w.getState();X(Eft(K,V))}H?.(K),s?.(K)},Y=q=>{if(!k)return;const z=Xle(q.nativeEvent);if(a&&(z&&q.button===0||!z)){const H=w.getState();iD.onPointerDown(q.nativeEvent,{handleDomNode:q.currentTarget,autoPanOnConnect:H.autoPanOnConnect,connectionMode:H.connectionMode,connectionRadius:H.connectionRadius,domNode:H.domNode,nodeLookup:H.nodeLookup,lib:H.lib,isTarget:x,handleId:b,nodeId:k,flowId:H.rfId,panBy:H.panBy,cancelConnection:H.cancelConnection,onConnectStart:H.onConnectStart,onConnectEnd:H.onConnectEnd,updateConnection:H.updateConnection,onConnect:L,isValidConnection:n||H.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:H.autoPanSpeed,dragThreshold:H.connectionDragThreshold})}z?d?.(q):p?.(q)},M=q=>{const{onClickConnectStart:z,onClickConnectEnd:H,connectionClickStartHandle:U,connectionMode:K,isValidConnection:V,lib:X,rfId:Z,nodeLookup:B,connection:W}=w.getState();if(!k||!U&&!a)return;if(!U){z?.(q.nativeEvent,{nodeId:k,handleId:b,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:b}});return}const Q=Wle(q.target),J=n||V,{connection:ne,isValid:te}=iD.isValid(q.nativeEvent,{handle:{nodeId:k,id:b,type:e},connectionMode:K,fromNodeId:U.nodeId,fromHandleId:U.id||null,fromType:U.type,isValidConnection:J,flowId:Z,doc:Q,lib:X,nodeLookup:B});te&&ne&&L(ne);const ee=structuredClone(W);delete ee.inProgress,ee.toPosition=ee.toHandle?ee.toHandle.position:null,H?.(q,ee),w.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":b,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${b}-${e}`,className:Nn(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,u,{source:!x,target:x,connectable:o,connectablestart:a,connectableend:i,clickconnecting:D,connectingfrom:R,connectingto:A,valid:j,connectionindicator:o&&(!$||N)&&($||O?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?M:void 0,ref:g,...f,children:c})}const lk=S.memo(jse(egt));function tgt({data:e,isConnectable:r,sourcePosition:n=gt.Bottom}){return y.jsxs(y.Fragment,{children:[e?.label,y.jsx(lk,{type:"source",position:n,isConnectable:r})]})}function rgt({data:e,isConnectable:r,targetPosition:n=gt.Top,sourcePosition:o=gt.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(lk,{type:"target",position:n,isConnectable:r}),e?.label,y.jsx(lk,{type:"source",position:o,isConnectable:r})]})}function ngt(){return null}function ogt({data:e,isConnectable:r,targetPosition:n=gt.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(lk,{type:"target",position:n,isConnectable:r}),e?.label]})}const sk={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Wse={input:tgt,default:rgt,output:ogt,group:ngt};function agt(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const igt=e=>{const{width:r,height:n,x:o,y:a}=Tb(e.nodeLookup,{filter:i=>!!i.selected});return{width:Ol(r)?r:null,height:Ol(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function lgt({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=qr(),{width:a,height:i,transformString:l,userSelectionActive:s}=nr(igt,Xr),c=Vse(),u=S.useRef(null);if(S.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),Use({nodeRef:u}),s||!a||!i)return null;const d=e?f=>{const g=o.getState().nodes.filter(b=>b.selected);e(f,g)}:void 0,p=f=>{Object.prototype.hasOwnProperty.call(sk,f.key)&&(f.preventDefault(),c({direction:sk[f.key],factor:f.shiftKey?4:1}))};return y.jsx("div",{className:Nn(["react-flow__nodesselection","react-flow__container",r]),style:{transform:l},children:y.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:a,height:i}})})}const Gse=typeof window<"u"?window:void 0,sgt=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Xse({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:p,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:w,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:R,panOnScrollMode:A,zoomOnDoubleClick:D,panOnDrag:N,defaultViewport:$,translateExtent:O,minZoom:j,maxZoom:L,preventScrolling:Y,onSelectionContextMenu:M,noWheelClassName:q,noPanClassName:z,disableKeyboardA11y:H,onViewportChange:U,isControlledViewport:K}){const{nodesSelectionActive:V,userSelectionActive:X}=nr(sgt),Z=Mb(u,{target:Gse}),B=Mb(x,{target:Gse}),W=B||N,Q=B||T,J=d&&W!==!0,ne=Z||X||J;return Hmt({deleteKeyCode:c,multiSelectionKeyCode:b}),y.jsx(Vmt,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:Q,panOnScrollSpeed:R,panOnScrollMode:A,zoomOnDoubleClick:D,panOnDrag:!Z&&W,defaultViewport:$,translateExtent:O,minZoom:j,maxZoom:L,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:q,noPanClassName:z,onViewportChange:U,isControlledViewport:K,paneClickDistance:s,children:y.jsxs(Xmt,{onSelectionStart:f,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,panOnDrag:W,isSelecting:!!ne,selectionMode:p,selectionKeyPressed:Z,selectionOnDrag:J,children:[e,V&&y.jsx(lgt,{onSelectionContextMenu:M,noPanClassName:z,disableKeyboardA11y:H})]})})}Xse.displayName="FlowRenderer";const cgt=S.memo(Xse),ugt=e=>r=>e?GN(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function dgt(e){return nr(S.useCallback(ugt(e),[e]),Xr)}const pgt=e=>e.updateNodeInternals;function hgt(){const e=nr(pgt),[r]=S.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return S.useEffect(()=>()=>{r?.disconnect()},[r]),r}function fgt({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=qr(),i=S.useRef(null),l=S.useRef(null),s=S.useRef(e.sourcePosition),c=S.useRef(e.targetPosition),u=S.useRef(r),d=n&&!!e.internals.handleBounds;return S.useEffect(()=>{i.current&&!e.hidden&&(!d||l.current!==i.current)&&(l.current&&o?.unobserve(l.current),o?.observe(i.current),l.current=i.current)},[d,e.hidden]),S.useEffect(()=>()=>{l.current&&(o?.unobserve(l.current),l.current=null)},[]),S.useEffect(()=>{if(i.current){const p=u.current!==r,f=s.current!==e.sourcePosition,g=c.current!==e.targetPosition;(p||f||g)&&(u.current=r,s.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function mgt({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:l,nodesDraggable:s,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:p,noDragClassName:f,noPanClassName:g,disableKeyboardA11y:b,rfId:x,nodeTypes:w,nodeClickDistance:k,onError:C}){const{node:_,internals:T,isParent:R}=nr(te=>{const ee=te.nodeLookup.get(e),pe=te.parentLookup.has(e);return{node:ee,internals:ee.internals,isParent:pe}},Xr);let A=_.type||"default",D=w?.[A]||Wse[A];D===void 0&&(C?.("003",ks.error003(A)),A="default",D=w?.default||Wse.default);const N=!!(_.draggable||s&&typeof _.draggable>"u"),$=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||u&&typeof _.connectable>"u"),j=!!(_.focusable||d&&typeof _.focusable>"u"),L=qr(),Y=Ule(_),M=fgt({node:_,nodeType:A,hasDimensions:Y,resizeObserver:p}),q=Use({nodeRef:M,disabled:_.hidden||!N,noDragClassName:f,handleSelector:_.dragHandle,nodeId:e,isSelectable:$,nodeClickDistance:k}),z=Vse();if(_.hidden)return null;const H=kc(_),U=agt(_),K=$||N||r||n||o||a,V=n?te=>n(te,{...T.userNode}):void 0,X=o?te=>o(te,{...T.userNode}):void 0,Z=a?te=>a(te,{...T.userNode}):void 0,B=i?te=>i(te,{...T.userNode}):void 0,W=l?te=>l(te,{...T.userNode}):void 0,Q=te=>{const{selectNodesOnDrag:ee,nodeDragThreshold:pe}=L.getState();$&&(!ee||!N||pe>0)&&dD({id:e,store:L,nodeRef:M}),r&&r(te,{...T.userNode})},J=te=>{if(!(Gle(te.nativeEvent)||b)){if(Ple.includes(te.key)&&$){const ee=te.key==="Escape";dD({id:e,store:L,unselect:ee,nodeRef:M})}else if(N&&_.selected&&Object.prototype.hasOwnProperty.call(sk,te.key)){te.preventDefault();const{ariaLabelConfig:ee}=L.getState();L.setState({ariaLiveMessage:ee["node.a11yDescription.ariaLiveMessage"]({direction:te.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),z({direction:sk[te.key],factor:te.shiftKey?4:1})}}},ne=()=>{if(b||!M.current?.matches(":focus-visible"))return;const{transform:te,width:ee,height:pe,autoPanOnNodeFocus:Te,setCenter:ce}=L.getState();Te&&(GN(new Map([[e,_]]),{x:0,y:0,width:ee,height:pe},te,!0).length>0||ce(_.position.x+H.width/2,_.position.y+H.height/2,{zoom:te[2]}))};return y.jsx("div",{className:Nn(["react-flow__node",`react-flow__node-${A}`,{[g]:N},_.className,{selected:_.selected,selectable:$,parent:R,draggable:N,dragging:q}]),ref:M,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:Y?"visible":"hidden",..._.style,...U},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:V,onMouseMove:X,onMouseLeave:Z,onContextMenu:B,onClick:Q,onDoubleClick:W,onKeyDown:j?J:void 0,tabIndex:j?0:void 0,onFocus:j?ne:void 0,role:_.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":b?void 0:`${Tse}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:y.jsx(Zmt,{value:e,children:y.jsx(D,{id:e,data:_.data,type:A,positionAbsoluteX:T.positionAbsolute.x,positionAbsoluteY:T.positionAbsolute.y,selected:_.selected??!1,selectable:$,draggable:N,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:q,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...H})})})}var ggt=S.memo(mgt);const ygt=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Kse(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=nr(ygt,Xr),l=dgt(e.onlyRenderVisibleElements),s=hgt();return y.jsx("div",{className:"react-flow__nodes",style:ik,children:l.map(c=>y.jsx(ggt,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}Kse.displayName="NodeRenderer";const bgt=S.memo(Kse);function vgt(e){return nr(S.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&wft({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Xr)}const xgt=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return y.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},wgt=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return y.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},Zse={[X5.Arrow]:xgt,[X5.ArrowClosed]:wgt};function kgt(e){const r=qr();return S.useMemo(()=>Object.prototype.hasOwnProperty.call(Zse,e)?Zse[e]:(r.getState().onError?.("009",ks.error009(e)),null),[e])}const _gt=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:l,orient:s="auto-start-reverse"})=>{const c=kgt(r);return c?y.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:y.jsx(c,{color:n,strokeWidth:l})}):null},Qse=({defaultColor:e,rfId:r})=>{const n=nr(i=>i.edges),o=nr(i=>i.defaultEdgeOptions),a=S.useMemo(()=>Aft(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?y.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:y.jsx("defs",{children:a.map(i=>y.jsx(_gt,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};Qse.displayName="MarkerDefinitions";var Egt=S.memo(Qse);function Jse({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:l=[2,4],labelBgBorderRadius:s=2,children:c,className:u,...d}){const[p,f]=S.useState({x:1,y:0,width:0,height:0}),g=Nn(["react-flow__edge-textwrapper",u]),b=S.useRef(null);return S.useEffect(()=>{if(b.current){const x=b.current.getBBox();f({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?y.jsxs("g",{transform:`translate(${e-p.width/2} ${r-p.height/2})`,className:g,visibility:p.width?"visible":"hidden",...d,children:[a&&y.jsx("rect",{width:p.width+2*l[0],x:-l[0],y:-l[1],height:p.height+2*l[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),y.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:b,style:o,children:n}),c]}):null}Jse.displayName="EdgeText";const Sgt=S.memo(Jse);function ck({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:u=20,...d}){return y.jsxs(y.Fragment,{children:[y.jsx("path",{...d,d:e,fill:"none",className:Nn(["react-flow__edge-path",d.className])}),u?y.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,o&&Ol(r)&&Ol(n)?y.jsx(Sgt,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function ece({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===gt.Left||e===gt.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function tce({sourceX:e,sourceY:r,sourcePosition:n=gt.Bottom,targetX:o,targetY:a,targetPosition:i=gt.Top}){const[l,s]=ece({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=ece({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,p,f,g]=Zle({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:s,targetControlX:c,targetControlY:u});return[`M${e},${r} C${l},${s} ${c},${u} ${o},${a}`,d,p,f,g]}function rce(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l,targetPosition:s,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:k})=>{const[C,_,T]=tce({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s}),R=e.isInternal?void 0:r;return y.jsx(ck,{id:R,path:C,labelX:_,labelY:T,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:k})})}const Cgt=rce({isInternal:!1}),nce=rce({isInternal:!0});Cgt.displayName="SimpleBezierEdge",nce.displayName="SimpleBezierEdgeInternal";function oce(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,sourcePosition:g=gt.Bottom,targetPosition:b=gt.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,R]=QN({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:b,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),A=e.isInternal?void 0:r;return y.jsx(ck,{id:A,path:_,labelX:T,labelY:R,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,markerEnd:x,markerStart:w,interactionWidth:C})})}const ace=oce({isInternal:!1}),ice=oce({isInternal:!0});ace.displayName="SmoothStepEdge",ice.displayName="SmoothStepEdgeInternal";function lce(e){return S.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return y.jsx(ace,{...n,id:o,pathOptions:S.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const Tgt=lce({isInternal:!1}),sce=lce({isInternal:!0});Tgt.displayName="StepEdge",sce.displayName="StepEdgeInternal";function cce(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,markerEnd:g,markerStart:b,interactionWidth:x})=>{const[w,k,C]=tse({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return y.jsx(ck,{id:_,path:w,labelX:k,labelY:C,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:p,style:f,markerEnd:g,markerStart:b,interactionWidth:x})})}const Rgt=cce({isInternal:!1}),uce=cce({isInternal:!0});Rgt.displayName="StraightEdge",uce.displayName="StraightEdgeInternal";function dce(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l=gt.Bottom,targetPosition:s=gt.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,R]=Jle({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s,curvature:k?.curvature}),A=e.isInternal?void 0:r;return y.jsx(ck,{id:A,path:_,labelX:T,labelY:R,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:C})})}const Agt=dce({isInternal:!1}),pce=dce({isInternal:!0});Agt.displayName="BezierEdge",pce.displayName="BezierEdgeInternal";const hce={default:pce,straight:uce,step:sce,smoothstep:ice,simplebezier:nce},fce={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Ngt=(e,r,n)=>n===gt.Left?e-r:n===gt.Right?e+r:e,Dgt=(e,r,n)=>n===gt.Top?e-r:n===gt.Bottom?e+r:e,mce="react-flow__edgeupdater";function gce({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:l,type:s}){return y.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:l,className:Nn([mce,`${mce}-${s}`]),cx:Ngt(r,o,e),cy:Dgt(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function Pgt({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:l,sourcePosition:s,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:p,setReconnecting:f,setUpdateHover:g}){const b=qr(),x=(T,R)=>{if(T.button!==0)return;const{autoPanOnConnect:A,domNode:D,isValidConnection:N,connectionMode:$,connectionRadius:O,lib:j,onConnectStart:L,onConnectEnd:Y,cancelConnection:M,nodeLookup:q,rfId:z,panBy:H,updateConnection:U}=b.getState(),K=R.type==="target",V=(B,W)=>{f(!1),p?.(B,n,R.type,W)},X=B=>u?.(n,B),Z=(B,W)=>{f(!0),d?.(T,n,R.type),L?.(B,W)};iD.onPointerDown(T.nativeEvent,{autoPanOnConnect:A,connectionMode:$,connectionRadius:O,domNode:D,handleId:R.id,nodeId:R.nodeId,nodeLookup:q,isTarget:K,edgeUpdaterType:R.type,lib:j,flowId:z,cancelConnection:M,panBy:H,isValidConnection:N,onConnect:X,onConnectStart:Z,onConnectEnd:Y,onReconnectEnd:V,updateConnection:U,getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,dragThreshold:b.getState().connectionDragThreshold,handleDomNode:T.currentTarget})},w=T=>x(T,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=T=>x(T,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return y.jsxs(y.Fragment,{children:[(e===!0||e==="source")&&y.jsx(gce,{position:s,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&y.jsx(gce,{position:c,centerX:i,centerY:l,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function $gt({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:l,onMouseEnter:s,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,rfId:b,edgeTypes:x,noPanClassName:w,onError:k,disableKeyboardA11y:C}){let _=nr(ce=>ce.edgeLookup.get(e));const T=nr(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let R=_.type||"default",A=x?.[R]||hce[R];A===void 0&&(k?.("011",ks.error011(R)),R="default",A=x?.default||hce.default);const D=!!(_.focusable||r&&typeof _.focusable>"u"),N=typeof p<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),$=!!(_.selectable||o&&typeof _.selectable>"u"),O=S.useRef(null),[j,L]=S.useState(!1),[Y,M]=S.useState(!1),q=qr(),{zIndex:z,sourceX:H,sourceY:U,targetX:K,targetY:V,sourcePosition:X,targetPosition:Z}=nr(S.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),xe=ce.nodeLookup.get(_.target);if(!de||!xe)return{zIndex:_.zIndex,...fce};const De=Rft({id:e,sourceNode:de,targetNode:xe,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:xft({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:xe,elevateOnSelect:ce.elevateEdgesOnSelect}),...De||fce}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Xr),B=S.useMemo(()=>_.markerStart?`url('#${JN(_.markerStart,b)}')`:void 0,[_.markerStart,b]),W=S.useMemo(()=>_.markerEnd?`url('#${JN(_.markerEnd,b)}')`:void 0,[_.markerEnd,b]);if(_.hidden||H===null||U===null||K===null||V===null)return null;const Q=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:xe,multiSelectionActive:De}=q.getState();$&&(q.setState({nodesSelectionActive:!1}),_.selected&&De?(xe({nodes:[],edges:[_]}),O.current?.blur()):de([e])),a&&a(ce,_)},J=i?ce=>{i(ce,{..._})}:void 0,ne=l?ce=>{l(ce,{..._})}:void 0,te=s?ce=>{s(ce,{..._})}:void 0,ee=c?ce=>{c(ce,{..._})}:void 0,pe=u?ce=>{u(ce,{..._})}:void 0,Te=ce=>{if(!C&&Ple.includes(ce.key)&&$){const{unselectNodesAndEdges:de,addSelectedEdges:xe}=q.getState();ce.key==="Escape"?(O.current?.blur(),de({edges:[_]})):xe([e])}};return y.jsx("svg",{style:{zIndex:z},children:y.jsxs("g",{className:Nn(["react-flow__edge",`react-flow__edge-${R}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!$&&!a,updating:j,selectable:$}]),onClick:Q,onDoubleClick:J,onContextMenu:ne,onMouseEnter:te,onMouseMove:ee,onMouseLeave:pe,onKeyDown:D?Te:void 0,tabIndex:D?0:void 0,role:_.ariaRole??(D?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":D?`${Rse}-${b}`:void 0,ref:O,..._.domAttributes,children:[!Y&&y.jsx(A,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:$,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:H,sourceY:U,targetX:K,targetY:V,sourcePosition:X,targetPosition:Z,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:B,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),N&&y.jsx(Pgt,{edge:_,isReconnectable:N,reconnectRadius:d,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,sourceX:H,sourceY:U,targetX:K,targetY:V,sourcePosition:X,targetPosition:Z,setUpdateHover:L,setReconnecting:M})]})})}var Mgt=S.memo($gt);const Ogt=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function yce({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:l,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:p,onEdgeDoubleClick:f,onReconnectStart:g,onReconnectEnd:b,disableKeyboardA11y:x}){const{edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,onError:_}=nr(Ogt,Xr),T=vgt(r);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(Egt,{defaultColor:e,rfId:n}),T.map(R=>y.jsx(Mgt,{id:R,edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:l,onMouseEnter:s,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:p,onDoubleClick:f,onReconnectStart:g,onReconnectEnd:b,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:x},R))]})}yce.displayName="EdgeRenderer";const Igt=S.memo(yce),zgt=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Lgt({children:e}){const r=nr(zgt);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function Bgt(e){const r=cD(),n=S.useRef(!1);S.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const jgt=e=>e.panZoom?.syncViewport;function Fgt(e){const r=nr(jgt),n=qr();return S.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function Hgt(e){return e.connection.inProgress?{...e.connection,to:Nb(e.connection.to,e.transform)}:{...e.connection}}function qgt(e){return Hgt}function Ugt(e){const r=qgt();return nr(r,Xr)}const Vgt=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function Ygt({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:l,isValid:s,inProgress:c}=nr(Vgt,Xr);return i&&a&&c?y.jsx("svg",{style:e,width:i,height:l,className:"react-flow__connectionline react-flow__container",children:y.jsx("g",{className:Nn(["react-flow__connection",Ile(s)]),children:y.jsx(bce,{style:r,type:n,CustomComponent:o,isValid:s})})}):null}const bce=({style:e,type:r=qu.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:l,fromHandle:s,fromPosition:c,to:u,toNode:d,toHandle:p,toPosition:f}=Ugt();if(!a)return;if(n)return y.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:l,fromHandle:s,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:f,connectionStatus:Ile(o),toNode:d,toHandle:p});let g="";const b={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:f};switch(r){case qu.Bezier:[g]=Jle(b);break;case qu.SimpleBezier:[g]=tce(b);break;case qu.Step:[g]=QN({...b,borderRadius:0});break;case qu.SmoothStep:[g]=QN(b);break;default:[g]=tse(b)}return y.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};bce.displayName="ConnectionLine";const Wgt={};function vce(e=Wgt){S.useRef(e),qr(),S.useEffect(()=>{},[e])}function Ggt(){qr(),S.useRef(!1),S.useEffect(()=>{},[])}function xce({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:l,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:p,onSelectionStart:f,onSelectionEnd:g,connectionLineType:b,connectionLineStyle:x,connectionLineComponent:w,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,multiSelectionKeyCode:R,panActivationKeyCode:A,zoomActivationKeyCode:D,deleteKeyCode:N,onlyRenderVisibleElements:$,elementsSelectable:O,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:M,preventScrolling:q,defaultMarkerColor:z,zoomOnScroll:H,zoomOnPinch:U,panOnScroll:K,panOnScrollSpeed:V,panOnScrollMode:X,zoomOnDoubleClick:Z,panOnDrag:B,onPaneClick:W,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:ne,onPaneScroll:te,onPaneContextMenu:ee,paneClickDistance:pe,nodeClickDistance:Te,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:xe,onEdgeMouseLeave:De,reconnectRadius:Ge,onReconnect:et,onReconnectStart:ft,onReconnectEnd:Ze,noDragClassName:Et,noWheelClassName:Xe,noPanClassName:We,disableKeyboardA11y:st,nodeExtent:ct,rfId:zn,viewport:we,onViewportChange:_e}){return vce(e),vce(r),Ggt(),Bgt(n),Fgt(we),y.jsx(cgt,{onPaneClick:W,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:ne,onPaneContextMenu:ee,onPaneScroll:te,paneClickDistance:pe,deleteKeyCode:N,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:R,panActivationKeyCode:A,zoomActivationKeyCode:D,elementsSelectable:O,zoomOnScroll:H,zoomOnPinch:U,zoomOnDoubleClick:Z,panOnScroll:K,panOnScrollSpeed:V,panOnScrollMode:X,panOnDrag:B,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:M,onSelectionContextMenu:p,preventScrolling:q,noDragClassName:Et,noWheelClassName:Xe,noPanClassName:We,disableKeyboardA11y:st,onViewportChange:_e,isControlledViewport:!!we,children:y.jsxs(Lgt,{children:[y.jsx(Igt,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:l,onReconnect:et,onReconnectStart:ft,onReconnectEnd:Ze,onlyRenderVisibleElements:$,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:xe,onEdgeMouseLeave:De,reconnectRadius:Ge,defaultMarkerColor:z,noPanClassName:We,disableKeyboardA11y:st,rfId:zn}),y.jsx(Ygt,{style:x,type:b,component:w,containerStyle:k}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(bgt,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Te,onlyRenderVisibleElements:$,noPanClassName:We,noDragClassName:Et,disableKeyboardA11y:st,nodeExtent:ct,rfId:zn}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}xce.displayName="GraphView";const Xgt=S.memo(xce),wce=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c=.5,maxZoom:u=2,nodeOrigin:d,nodeExtent:p}={})=>{const f=new Map,g=new Map,b=new Map,x=new Map,w=o??r??[],k=n??e??[],C=d??[0,0],_=p??Eb;use(b,x,w);const T=rD(k,f,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let R=[0,0,1];if(l&&a&&i){const A=Tb(f,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:D,y:N,zoom:$}=KN(A,a,i,c,u,s?.padding??.1);R=[D,N,$]}return{rfId:"1",width:a??0,height:i??0,transform:R,nodes:k,nodesInitialized:T,nodeLookup:f,parentLookup:g,edges:w,edgeLookup:x,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:u,translateExtent:Eb,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:ng.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:l??!1,fitViewOptions:s,fitViewResolver:null,connection:{...Mle},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:fft,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:$le}},Kgt=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:p})=>pmt((f,g)=>{async function b(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:R,maxZoom:A}=g();w&&(await pft({nodes:x,width:_,height:T,panZoom:w,minZoom:R,maxZoom:A},k),C?.resolve(!0),f({fitViewResolver:null}))}return{...wce({nodes:e,edges:r,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:p,defaultNodes:n,defaultEdges:o}),setNodes:x=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:C,elevateNodesOnSelect:_,fitViewQueued:T}=g(),R=rD(x,w,k,{nodeOrigin:C,nodeExtent:p,elevateNodesOnSelect:_,checkEquality:!0});T&&R?(b(),f({nodes:x,nodesInitialized:R,fitViewQueued:!1,fitViewOptions:void 0})):f({nodes:x,nodesInitialized:R})},setEdges:x=>{const{connectionLookup:w,edgeLookup:k}=g();use(w,k,x),f({edges:x})},setDefaultNodesAndEdges:(x,w)=>{if(x){const{setNodes:k}=g();k(x),f({hasDefaultNodes:!0})}if(w){const{setEdges:k}=g();k(w),f({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:C,domNode:_,nodeOrigin:T,nodeExtent:R,debug:A,fitViewQueued:D}=g(),{changes:N,updatedInternals:$}=Ift(x,k,C,_,T,R);$&&(Pft(k,C,{nodeOrigin:T,nodeExtent:R}),D?(b(),f({fitViewQueued:!1,fitViewOptions:void 0})):f({}),N?.length>0&&(A&&console.log("React Flow: trigger node changes",N),w?.(N)))},updateNodePositions:(x,w=!1)=>{const k=[],C=[],{nodeLookup:_,triggerNodeChanges:T}=g();for(const[R,A]of x){const D=_.get(R),N=!!(D?.expandParent&&D?.parentId&&A?.position),$={id:R,type:"position",position:N?{x:Math.max(0,A.position.x),y:Math.max(0,A.position.y)}:A.position,dragging:w};N&&D.parentId&&k.push({id:R,parentId:D.parentId,rect:{...A.internals.positionAbsolute,width:A.measured.width??0,height:A.measured.height??0}}),C.push($)}if(k.length>0){const{parentLookup:R,nodeOrigin:A}=g(),D=oD(k,_,R,A);C.push(...D)}T(C)},triggerNodeChanges:x=>{const{onNodesChange:w,setNodes:k,nodes:C,hasDefaultNodes:_,debug:T}=g();if(x?.length){if(_){const R=$mt(x,C);k(R)}T&&console.log("React Flow: trigger node changes",x),w?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:w,setEdges:k,edges:C,hasDefaultEdges:_,debug:T}=g();if(x?.length){if(_){const R=Mmt(x,C);k(R)}T&&console.log("React Flow: trigger edge changes",x),w?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const R=x.map(A=>Kp(A,!0));_(R);return}_(ug(C,new Set([...x]),!0)),T(ug(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const R=x.map(A=>Kp(A,!0));T(R);return}T(ug(k,new Set([...x]))),_(ug(C,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:w}={})=>{const{edges:k,nodes:C,nodeLookup:_,triggerNodeChanges:T,triggerEdgeChanges:R}=g(),A=x||C,D=w||k,N=A.map(O=>{const j=_.get(O.id);return j&&(j.selected=!1),Kp(O.id,!1)}),$=D.map(O=>Kp(O.id,!1));T(N),R($)},setMinZoom:x=>{const{panZoom:w,maxZoom:k}=g();w?.setScaleExtent([x,k]),f({minZoom:x})},setMaxZoom:x=>{const{panZoom:w,minZoom:k}=g();w?.setScaleExtent([k,x]),f({maxZoom:x})},setTranslateExtent:x=>{g().panZoom?.setTranslateExtent(x),f({translateExtent:x})},setPaneClickDistance:x=>{g().panZoom?.setClickDistance(x)},resetSelectedElements:()=>{const{edges:x,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:C,elementsSelectable:_}=g();if(!_)return;const T=w.reduce((A,D)=>D.selected?[...A,Kp(D.id,!1)]:A,[]),R=x.reduce((A,D)=>D.selected?[...A,Kp(D.id,!1)]:A,[]);k(T),C(R)},setNodeExtent:x=>{const{nodes:w,nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:T,nodeExtent:R}=g();x[0][0]===R[0][0]&&x[0][1]===R[0][1]&&x[1][0]===R[1][0]&&x[1][1]===R[1][1]||(rD(w,k,C,{nodeOrigin:_,nodeExtent:x,elevateNodesOnSelect:T,checkEquality:!1}),f({nodeExtent:x}))},panBy:x=>{const{transform:w,width:k,height:C,panZoom:_,translateExtent:T}=g();return zft({delta:x,panZoom:_,transform:w,translateExtent:T,width:k,height:C})},setCenter:async(x,w,k)=>{const{width:C,height:_,maxZoom:T,panZoom:R}=g();if(!R)return Promise.resolve(!1);const A=typeof k?.zoom<"u"?k.zoom:T;return await R.setViewport({x:C/2-x*A,y:_/2-w*A,zoom:A},{duration:k?.duration,ease:k?.ease,interpolate:k?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{f({connection:{...Mle}})},updateConnection:x=>{f({connection:x})},reset:()=>f({...wce()})}},Object.is);function Zgt({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:l,initialMaxZoom:s,initialFitViewOptions:c,fitView:u,nodeOrigin:d,nodeExtent:p,children:f}){const[g]=S.useState(()=>Kgt({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:u,minZoom:l,maxZoom:s,fitViewOptions:c,nodeOrigin:d,nodeExtent:p}));return y.jsx(hmt,{value:g,children:y.jsx(Lmt,{children:f})})}function Qgt({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:l,fitView:s,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:p,nodeExtent:f}){return S.useContext(nk)?y.jsx(y.Fragment,{children:e}):y.jsx(Zgt,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:l,fitView:s,initialFitViewOptions:c,initialMinZoom:u,initialMaxZoom:d,nodeOrigin:p,nodeExtent:f,children:e})}const Jgt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function e1t({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:l,onNodeClick:s,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:p,onMoveEnd:f,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:R,onNodeDoubleClick:A,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:$,onNodesDelete:O,onEdgesDelete:j,onDelete:L,onSelectionChange:Y,onSelectionDragStart:M,onSelectionDrag:q,onSelectionDragStop:z,onSelectionContextMenu:H,onSelectionStart:U,onSelectionEnd:K,onBeforeDelete:V,connectionMode:X,connectionLineType:Z=qu.Bezier,connectionLineStyle:B,connectionLineComponent:W,connectionLineContainerStyle:Q,deleteKeyCode:J="Backspace",selectionKeyCode:ne="Shift",selectionOnDrag:te=!1,selectionMode:ee=Sb.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:Te=Db()?"Meta":"Control",zoomActivationKeyCode:ce=Db()?"Meta":"Control",snapToGrid:de,snapGrid:xe,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:Ge,nodesDraggable:et,autoPanOnNodeFocus:ft,nodesConnectable:Ze,nodesFocusable:Et,nodeOrigin:Xe=Ase,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:ct=!0,defaultViewport:zn=Cmt,minZoom:we=.5,maxZoom:_e=2,translateExtent:at=Eb,preventScrolling:vt=!0,nodeExtent:Ct,defaultMarkerColor:Zr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Sr=!0,panOnScroll:Pr=!1,panOnScrollSpeed:fn=.5,panOnScrollMode:ar=Gp.Free,zoomOnDoubleClick:ha=!0,panOnDrag:hr=!0,onPaneClick:Ua,onPaneMouseEnter:Ni,onPaneMouseMove:Qu,onPaneMouseLeave:Ju,onPaneScroll:jl,onPaneContextMenu:ed,paneClickDistance:Fl=0,nodeClickDistance:Jb=0,children:Dg,onReconnect:ch,onReconnectStart:Nc,onReconnectEnd:ev,onEdgeContextMenu:Pg,onEdgeDoubleClick:$g,onEdgeMouseEnter:Mg,onEdgeMouseMove:uh,onEdgeMouseLeave:dh,reconnectRadius:Og=10,onNodesChange:Ig,onEdgesChange:Di,noDragClassName:mn="nodrag",noWheelClassName:co="nowheel",noPanClassName:Pi="nopan",fitView:Dc,fitViewOptions:ph,connectOnClick:tv,attributionPosition:zg,proOptions:Pc,defaultEdgeOptions:hh,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Ts,disableKeyboardA11y:Hl=!1,autoPanOnConnect:Rs,autoPanOnNodeDrag:ln,autoPanSpeed:Lg,connectionRadius:Bg,isValidConnection:ql,onError:As,style:rv,id:td,nodeDragThreshold:jg,connectionDragThreshold:nv,viewport:rd,onViewportChange:nd,width:Va,height:Bo,colorMode:Fg="light",debug:ov,onScroll:$c,ariaLabelConfig:Hg,...od},av){const Ln=td||"1",fh=Nmt(Fg),qg=S.useCallback(Mc=>{Mc.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),$c?.(Mc)},[$c]);return y.jsx("div",{"data-testid":"rf__wrapper",...od,onScroll:qg,style:{...rv,...Jgt},ref:av,className:Nn(["react-flow",a,fh]),id:td,role:"application",children:y.jsxs(Qgt,{nodes:e,edges:r,width:Va,height:Bo,fitView:Dc,fitViewOptions:ph,minZoom:we,maxZoom:_e,nodeOrigin:Xe,nodeExtent:Ct,children:[y.jsx(Xgt,{onInit:u,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:R,onNodeDoubleClick:A,nodeTypes:i,edgeTypes:l,connectionLineType:Z,connectionLineStyle:B,connectionLineComponent:W,connectionLineContainerStyle:Q,selectionKeyCode:ne,selectionOnDrag:te,selectionMode:ee,deleteKeyCode:J,multiSelectionKeyCode:Te,panActivationKeyCode:pe,zoomActivationKeyCode:ce,onlyRenderVisibleElements:De,defaultViewport:zn,translateExtent:at,minZoom:we,maxZoom:_e,preventScrolling:vt,zoomOnScroll:Pt,zoomOnPinch:Sr,zoomOnDoubleClick:ha,panOnScroll:Pr,panOnScrollSpeed:fn,panOnScrollMode:ar,panOnDrag:hr,onPaneClick:Ua,onPaneMouseEnter:Ni,onPaneMouseMove:Qu,onPaneMouseLeave:Ju,onPaneScroll:jl,onPaneContextMenu:ed,paneClickDistance:Fl,nodeClickDistance:Jb,onSelectionContextMenu:H,onSelectionStart:U,onSelectionEnd:K,onReconnect:ch,onReconnectStart:Nc,onReconnectEnd:ev,onEdgeContextMenu:Pg,onEdgeDoubleClick:$g,onEdgeMouseEnter:Mg,onEdgeMouseMove:uh,onEdgeMouseLeave:dh,reconnectRadius:Og,defaultMarkerColor:Zr,noDragClassName:mn,noWheelClassName:co,noPanClassName:Pi,rfId:Ln,disableKeyboardA11y:Hl,nodeExtent:Ct,viewport:rd,onViewportChange:nd}),y.jsx(Amt,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:et,autoPanOnNodeFocus:ft,nodesConnectable:Ze,nodesFocusable:Et,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:ct,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Ts,minZoom:we,maxZoom:_e,nodeExtent:Ct,onNodesChange:Ig,onEdgesChange:Di,snapToGrid:de,snapGrid:xe,connectionMode:X,translateExtent:at,connectOnClick:tv,defaultEdgeOptions:hh,fitView:Dc,fitViewOptions:ph,onNodesDelete:O,onEdgesDelete:j,onDelete:L,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:$,onSelectionDrag:q,onSelectionDragStart:M,onSelectionDragStop:z,onMove:d,onMoveStart:p,onMoveEnd:f,noPanClassName:Pi,nodeOrigin:Xe,rfId:Ln,autoPanOnConnect:Rs,autoPanOnNodeDrag:ln,autoPanSpeed:Lg,onError:As,connectionRadius:Bg,isValidConnection:ql,selectNodesOnDrag:Ge,nodeDragThreshold:jg,connectionDragThreshold:nv,onBeforeDelete:V,paneClickDistance:Fl,debug:ov,ariaLabelConfig:Hg}),y.jsx(Smt,{onSelectionChange:Y}),Dg,y.jsx(xmt,{proOptions:Pc,position:zg}),y.jsx(vmt,{rfId:Ln,disableKeyboardA11y:Hl})]})})}jse(e1t);function t1t({dimensions:e,lineWidth:r,variant:n,className:o}){return y.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Nn(["react-flow__background-pattern",n,o])})}function r1t({radius:e,className:r}){return y.jsx("circle",{cx:e,cy:e,r:e,className:Nn(["react-flow__background-pattern","dots",r])})}var Yu;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Yu||(Yu={}));const n1t={[Yu.Dots]:1,[Yu.Lines]:1,[Yu.Cross]:6},o1t=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function kce({id:e,variant:r=Yu.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:l,bgColor:s,style:c,className:u,patternClassName:d}){const p=S.useRef(null),{transform:f,patternId:g}=nr(o1t,Xr),b=o||n1t[r],x=r===Yu.Dots,w=r===Yu.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*f[2]||1,k[1]*f[2]||1],_=b*f[2],T=Array.isArray(i)?i:[i,i],R=w?[_,_]:C,A=[T[0]*f[2]||1+R[0]/2,T[1]*f[2]||1+R[1]/2],D=`${g}${e||""}`;return y.jsxs("svg",{className:Nn(["react-flow__background",u]),style:{...c,...ik,"--xy-background-color-props":s,"--xy-background-pattern-color-props":l},ref:p,"data-testid":"rf__background",children:[y.jsx("pattern",{id:D,x:f[0]%C[0],y:f[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${A[0]},-${A[1]})`,children:x?y.jsx(r1t,{radius:_/2,className:d}):y.jsx(t1t,{dimensions:R,lineWidth:a,variant:r,className:d})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}kce.displayName="Background",S.memo(kce);function a1t(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:y.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function i1t(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:y.jsx("path",{d:"M0 0h32v4.2H0z"})})}function l1t(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:y.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function s1t(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function c1t(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function uk({children:e,className:r,...n}){return y.jsx("button",{type:"button",className:Nn(["react-flow__controls-button",r]),...n,children:e})}const u1t=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function _ce({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:l,onFitView:s,onInteractiveChange:c,className:u,children:d,position:p="bottom-left",orientation:f="vertical","aria-label":g}){const b=qr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=nr(u1t,Xr),{zoomIn:_,zoomOut:T,fitView:R}=cD(),A=()=>{_(),i?.()},D=()=>{T(),l?.()},N=()=>{R(a),s?.()},$=()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return y.jsxs(ok,{className:Nn(["react-flow__controls",f==="horizontal"?"horizontal":"vertical",u]),position:p,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(uk,{onClick:A,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:y.jsx(a1t,{})}),y.jsx(uk,{onClick:D,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:y.jsx(i1t,{})})]}),n&&y.jsx(uk,{className:"react-flow__controls-fitview",onClick:N,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:y.jsx(l1t,{})}),o&&y.jsx(uk,{className:"react-flow__controls-interactive",onClick:$,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?y.jsx(c1t,{}):y.jsx(s1t,{})}),d]})}_ce.displayName="Controls",S.memo(_ce);function d1t({id:e,x:r,y:n,width:o,height:a,style:i,color:l,strokeColor:s,strokeWidth:c,className:u,borderRadius:d,shapeRendering:p,selected:f,onClick:g}){const{background:b,backgroundColor:x}=i||{},w=l||b||x;return y.jsx("rect",{className:Nn(["react-flow__minimap-node",{selected:f},u]),x:r,y:n,rx:d,ry:d,width:o,height:a,style:{fill:w,stroke:s,strokeWidth:c},shapeRendering:p,onClick:g?k=>g(k,e):void 0})}const p1t=S.memo(d1t),h1t=e=>e.nodes.map(r=>r.id),hD=e=>e instanceof Function?e:()=>e;function f1t({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=p1t,onClick:l}){const s=nr(h1t,Xr),c=hD(r),u=hD(e),d=hD(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:s.map(f=>y.jsx(g1t,{id:f,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:l,shapeRendering:p},f))})}function m1t({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:l,NodeComponent:s,onClick:c}){const{node:u,x:d,y:p,width:f,height:g}=nr(b=>{const{internals:x}=b.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=kc(w);return{node:w,x:k,y:C,width:_,height:T}},Xr);return!u||u.hidden||!Ule(u)?null:y.jsx(s,{x:d,y:p,width:f,height:g,style:u.style,selected:!!u.selected,className:o(u),color:r(u),borderRadius:a,strokeColor:n(u),strokeWidth:i,shapeRendering:l,onClick:c,id:u.id})}const g1t=S.memo(m1t);var y1t=S.memo(f1t);const b1t=200,v1t=150,x1t=e=>!e.hidden,w1t=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?Hle(Tb(e.nodeLookup,{filter:x1t}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},k1t="react-flow__minimap-desc";function Ece({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:l,nodeComponent:s,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:p,position:f="bottom-right",onClick:g,onNodeClick:b,pannable:x=!1,zoomable:w=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:T=5}){const R=qr(),A=S.useRef(null),{boundingRect:D,viewBB:N,rfId:$,panZoom:O,translateExtent:j,flowWidth:L,flowHeight:Y,ariaLabelConfig:M}=nr(w1t,Xr),q=e?.width??b1t,z=e?.height??v1t,H=D.width/q,U=D.height/z,K=Math.max(H,U),V=K*q,X=K*z,Z=T*K,B=D.x-(V-D.width)/2-Z,W=D.y-(X-D.height)/2-Z,Q=V+Z*2,J=X+Z*2,ne=`${k1t}-${$}`,te=S.useRef(0),ee=S.useRef();te.current=K,S.useEffect(()=>{if(A.current&&O)return ee.current=Yft({domNode:A.current,panZoom:O,getTransform:()=>R.getState().transform,getViewScale:()=>te.current}),()=>{ee.current?.destroy()}},[O]),S.useEffect(()=>{ee.current?.update({translateExtent:j,width:L,height:Y,inversePan:C,pannable:x,zoomStep:_,zoomable:w})},[x,w,C,_,j,L,Y]);const pe=g?de=>{const[xe,De]=ee.current?.pointer(de)||[0,0];g(de,{x:xe,y:De})}:void 0,Te=b?S.useCallback((de,xe)=>{const De=R.getState().nodeLookup.get(xe).internals.userNode;b(de,De)},[]):void 0,ce=k??M["minimap.ariaLabel"];return y.jsx(ok,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*K:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof l=="number"?l:void 0},className:Nn(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:q,height:z,viewBox:`${B} ${W} ${Q} ${J}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ne,ref:A,onClick:pe,children:[ce&&y.jsx("title",{id:ne,children:ce}),y.jsx(y1t,{onClick:Te,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:l,nodeComponent:s}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${B-Z},${W-Z}h${Q+Z*2}v${J+Z*2}h${-Q-Z*2}z
        M${N.x},${N.y}h${N.width}v${N.height}h${-N.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}Ece.displayName="MiniMap",S.memo(Ece);const _1t=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,E1t={[cg.Line]:"right",[cg.Handle]:"bottom-right"};function S1t({nodeId:e,position:r,variant:n=cg.Handle,className:o,style:a=void 0,children:i,color:l,minWidth:s=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:f,autoScale:g=!0,shouldResize:b,onResizeStart:x,onResize:w,onResizeEnd:k}){const C=Yse(),_=typeof e=="string"?e:C,T=qr(),R=S.useRef(null),A=n===cg.Handle,D=nr(S.useCallback(_1t(A&&g),[A,g]),Xr),N=S.useRef(null),$=r??E1t[n];S.useEffect(()=>{if(!(!R.current||!_))return N.current||(N.current=imt({domNode:R.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q,domNode:z}=T.getState();return{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q,paneDomNode:z}},onChange:(j,L)=>{const{triggerNodeChanges:Y,nodeLookup:M,parentLookup:q,nodeOrigin:z}=T.getState(),H=[],U={x:j.x,y:j.y},K=M.get(_);if(K&&K.expandParent&&K.parentId){const V=K.origin??z,X=j.width??K.measured.width??0,Z=j.height??K.measured.height??0,B={id:K.id,parentId:K.parentId,rect:{width:X,height:Z,...Vle({x:j.x??K.position.x,y:j.y??K.position.y},{width:X,height:Z},K.parentId,M,V)}},W=oD([B],M,q,z);H.push(...W),U.x=j.x?Math.max(V[0]*X,j.x):void 0,U.y=j.y?Math.max(V[1]*Z,j.y):void 0}if(U.x!==void 0&&U.y!==void 0){const V={id:_,type:"position",position:{...U}};H.push(V)}if(j.width!==void 0&&j.height!==void 0){const V={id:_,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};H.push(V)}for(const V of L){const X={...V,type:"position"};H.push(X)}Y(H)},onEnd:({width:j,height:L})=>{const Y={id:_,type:"dimensions",resizing:!1,dimensions:{width:j,height:L}};T.getState().triggerNodeChanges([Y])}})),N.current.update({controlPosition:$,boundaries:{minWidth:s,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:p,resizeDirection:f,onResizeStart:x,onResize:w,onResizeEnd:k,shouldResize:b}),()=>{N.current?.destroy()}},[$,s,c,u,d,p,x,w,k,b]);const O=$.split("-");return y.jsx("div",{className:Nn(["react-flow__resize-control","nodrag",...O,n,o]),ref:R,style:{...a,scale:D,...l&&{[A?"backgroundColor":"borderColor"]:l}},children:i})}S.memo(S1t);var C1t=Object.getOwnPropertyNames,T1t=Object.getOwnPropertySymbols,R1t=Object.prototype.hasOwnProperty;function Sce(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function dk(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),l=a.get(n);if(i&&l)return i===n&&l===r;a.set(r,n),a.set(n,r);var s=e(r,n,o);return a.delete(r),a.delete(n),s}}function A1t(e){return e?.[Symbol.toStringTag]}function Cce(e){return C1t(e).concat(T1t(e))}var N1t=Object.hasOwn||(function(e,r){return R1t.call(e,r)});function Zp(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var D1t="__v",P1t="__o",$1t="_owner",Tce=Object.getOwnPropertyDescriptor,Rce=Object.keys;function M1t(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function O1t(e,r){return Zp(e.getTime(),r.getTime())}function I1t(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function z1t(e,r){return e===r}function Ace(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),l,s,c=0;(l=i.next())&&!l.done;){for(var u=r.entries(),d=!1,p=0;(s=u.next())&&!s.done;){if(a[p]){p++;continue}var f=l.value,g=s.value;if(n.equals(f[0],g[0],c,p,e,r,n)&&n.equals(f[1],g[1],f[0],g[0],e,r,n)){d=a[p]=!0;break}p++}if(!d)return!1;c++}return!0}var L1t=Zp;function B1t(e,r,n){var o=Rce(e),a=o.length;if(Rce(r).length!==a)return!1;for(;a-- >0;)if(!Dce(e,r,n,o[a]))return!1;return!0}function Ob(e,r,n){var o=Cce(e),a=o.length;if(Cce(r).length!==a)return!1;for(var i,l,s;a-- >0;)if(i=o[a],!Dce(e,r,n,i)||(l=Tce(e,i),s=Tce(r,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function j1t(e,r){return Zp(e.valueOf(),r.valueOf())}function F1t(e,r){return e.source===r.source&&e.flags===r.flags}function Nce(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),l,s;(l=i.next())&&!l.done;){for(var c=r.values(),u=!1,d=0;(s=c.next())&&!s.done;){if(!a[d]&&n.equals(l.value,s.value,l.value,s.value,e,r,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function H1t(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function q1t(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function Dce(e,r,n,o){return(o===$1t||o===P1t||o===D1t)&&(e.$$typeof||r.$$typeof)?!0:N1t(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var U1t="[object Arguments]",V1t="[object Boolean]",Y1t="[object Date]",W1t="[object Error]",G1t="[object Map]",X1t="[object Number]",K1t="[object Object]",Z1t="[object RegExp]",Q1t="[object Set]",J1t="[object String]",e0t="[object URL]",t0t=Array.isArray,Pce=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,$ce=Object.assign,r0t=Object.prototype.toString.call.bind(Object.prototype.toString);function n0t(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,l=e.areNumbersEqual,s=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,p=e.areTypedArraysEqual,f=e.areUrlsEqual,g=e.unknownTagComparators;return function(b,x,w){if(b===x)return!0;if(b==null||x==null)return!1;var k=typeof b;if(k!==typeof x)return!1;if(k!=="object")return k==="number"?l(b,x,w):k==="function"?a(b,x,w):!1;var C=b.constructor;if(C!==x.constructor)return!1;if(C===Object)return s(b,x,w);if(t0t(b))return r(b,x,w);if(Pce!=null&&Pce(b))return p(b,x,w);if(C===Date)return n(b,x,w);if(C===RegExp)return u(b,x,w);if(C===Map)return i(b,x,w);if(C===Set)return d(b,x,w);var _=r0t(b);if(_===Y1t)return n(b,x,w);if(_===Z1t)return u(b,x,w);if(_===G1t)return i(b,x,w);if(_===Q1t)return d(b,x,w);if(_===K1t)return typeof b.then!="function"&&typeof x.then!="function"&&s(b,x,w);if(_===e0t)return f(b,x,w);if(_===W1t)return o(b,x,w);if(_===U1t)return s(b,x,w);if(_===V1t||_===X1t||_===J1t)return c(b,x,w);if(g){var T=g[_];if(!T){var R=A1t(b);R&&(T=g[R])}if(T)return T(b,x,w)}return!1}}function o0t(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?Ob:M1t,areDatesEqual:O1t,areErrorsEqual:I1t,areFunctionsEqual:z1t,areMapsEqual:o?Sce(Ace,Ob):Ace,areNumbersEqual:L1t,areObjectsEqual:o?Ob:B1t,arePrimitiveWrappersEqual:j1t,areRegExpsEqual:F1t,areSetsEqual:o?Sce(Nce,Ob):Nce,areTypedArraysEqual:o?Ob:H1t,areUrlsEqual:q1t,unknownTagComparators:void 0};if(n&&(a=$ce({},a,n(a))),r){var i=dk(a.areArraysEqual),l=dk(a.areMapsEqual),s=dk(a.areObjectsEqual),c=dk(a.areSetsEqual);a=$ce({},a,{areArraysEqual:i,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:c})}return a}function a0t(e){return function(r,n,o,a,i,l,s){return e(r,n,s)}}function i0t(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(s,c){var u=o(),d=u.cache,p=d===void 0?r?new WeakMap:void 0:d,f=u.meta;return n(s,c,{cache:p,equals:a,meta:f,strict:i})};if(r)return function(s,c){return n(s,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var l={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,c){return n(s,c,l)}}Wu(),Wu({strict:!0}),Wu({circular:!0}),Wu({circular:!0,strict:!0}),Wu({createInternalComparator:function(){return Zp}}),Wu({strict:!0,createInternalComparator:function(){return Zp}}),Wu({circular:!0,createInternalComparator:function(){return Zp}}),Wu({circular:!0,createInternalComparator:function(){return Zp},strict:!0});function Wu(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,l=i===void 0?!1:i,s=o0t(e),c=n0t(s),u=o?o(c):a0t(c);return i0t({circular:n,comparator:c,createState:a,equals:u,strict:l})}const{min:l0t,max:s0t}=Math,Qp=(e,r=0,n=1)=>l0t(s0t(r,e),n),fD=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=Qp(e[r],0,255)):r===3&&(e[r]=Qp(e[r],0,1));return e},Mce={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Mce[`[object ${e}]`]=e.toLowerCase();function Ut(e){return Mce[Object.prototype.toString.call(e)]||"object"}const It=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ut(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),dg=e=>{if(e.length<2)return null;const r=e.length-1;return Ut(e[r])=="string"?e[r].toLowerCase():null},{PI:pk,min:Oce,max:Ice}=Math,Ti=e=>Math.round(e*100)/100,mD=e=>Math.round(e*100)/100,_c=pk*2,gD=pk/3,c0t=pk/180,u0t=180/pk;function zce(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Dt={format:{},autodetect:[]};let je=class{constructor(...e){const r=this;if(Ut(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=dg(e),o=!1;if(!n){o=!0,Dt.sorted||(Dt.autodetect=Dt.autodetect.sort((a,i)=>i.p-a.p),Dt.sorted=!0);for(let a of Dt.autodetect)if(n=a.test(...e),n)break}if(Dt.format[n]){const a=Dt.format[n].apply(null,o?e:e.slice(0,-1));r._rgb=fD(a)}else throw new Error("unknown format: "+e);r._rgb.length===3&&r._rgb.push(1)}toString(){return Ut(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const d0t="3.1.2",Qt=(...e)=>new je(...e);Qt.version=d0t;const pg={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",cyan:"#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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",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",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",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",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},p0t=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,h0t=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Lce=e=>{if(e.match(p0t)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(h0t)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:hk}=Math,Bce=(...e)=>{let[r,n,o,a]=It(e,"rgba"),i=dg(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=hk(r),n=hk(n),o=hk(o);let l="000000"+(r<<16|n<<8|o).toString(16);l=l.substr(l.length-6);let s="0"+hk(a*255).toString(16);switch(s=s.substr(s.length-2),i.toLowerCase()){case"rgba":return`#${l}${s}`;case"argb":return`#${s}${l}`;default:return`#${l}`}};je.prototype.name=function(){const e=Bce(this._rgb,"rgb");for(let r of Object.keys(pg))if(pg[r]===e)return r.toLowerCase();return e},Dt.format.named=e=>{if(e=e.toLowerCase(),pg[e])return Lce(pg[e]);throw new Error("unknown color name: "+e)},Dt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ut(e)==="string"&&pg[e.toLowerCase()])return"named"}}),je.prototype.alpha=function(e,r=!1){return e!==void 0&&Ut(e)==="number"?r?(this._rgb[3]=e,this):new je([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},je.prototype.clipped=function(){return this._rgb._clipped||!1};const _s={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},f0t=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Ec(e){const r=f0t.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);_s.labWhitePoint=e,_s.Xn=r[0],_s.Zn=r[1]}function Ib(){return _s.labWhitePoint}const yD=(...e)=>{e=It(e,"lab");const[r,n,o]=e,[a,i,l]=m0t(r,n,o),[s,c,u]=jce(a,i,l);return[s,c,u,e.length>3?e[3]:1]},m0t=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=_s,u=(e+16)/116,d=.002*r+u,p=u-.005*n,f=d*d*d,g=p*p*p,b=f>o?f:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*p-16)/a,k=b*l,C=x*s,_=w*c;return[k,C,_]},bD=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},jce=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:u}=_s,d=s*o.m00+c*o.m10+u*o.m20,p=s*o.m01+c*o.m11+u*o.m21,f=s*o.m02+c*o.m12+u*o.m22,g=l.X*o.m00+l.Y*o.m10+l.Z*o.m20,b=l.X*o.m01+l.Y*o.m11+l.Z*o.m21,x=l.X*o.m02+l.Y*o.m12+l.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(b/p),C=(e*o.m02+r*o.m12+n*o.m22)*(x/f),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,R=w*a.m02+k*a.m12+C*a.m22,A=bD(_*i.m00+T*i.m10+R*i.m20),D=bD(_*i.m01+T*i.m11+R*i.m21),N=bD(_*i.m02+T*i.m12+R*i.m22);return[A*255,D*255,N*255]},vD=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),[i,l,s]=Fce(r,n,o),[c,u,d]=g0t(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function g0t(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=_s,c=e/o,u=r/a,d=n/i,p=c>l?Math.pow(c,1/3):(s*c+16)/116,f=u>l?Math.pow(u,1/3):(s*u+16)/116,g=d>l?Math.pow(d,1/3):(s*d+16)/116;return[116*f-16,500*(p-f),200*(f-g)]}function xD(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Fce=(e,r,n)=>{e=xD(e/255),r=xD(r/255),n=xD(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:u,Bs:d,Cs:p}=_s;let f=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,b=e*o.m02+r*o.m12+n*o.m22;const x=l*a.m00+s*a.m10+c*a.m20,w=l*a.m01+s*a.m11+c*a.m21,k=l*a.m02+s*a.m12+c*a.m22;let C=f*a.m00+g*a.m10+b*a.m20,_=f*a.m01+g*a.m11+b*a.m21,T=f*a.m02+g*a.m12+b*a.m22;return C*=x/u,_*=w/d,T*=k/p,f=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,b=C*i.m02+_*i.m12+T*i.m22,[f,g,b]};je.prototype.lab=function(){return vD(this._rgb)},Object.assign(Qt,{lab:(...e)=>new je(...e,"lab"),getLabWhitePoint:Ib,setLabWhitePoint:Ec}),Dt.format.lab=yD,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"lab"),Ut(e)==="array"&&e.length===3)return"lab"}}),je.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=_s.Kn*e,new je(n,"lab").alpha(r.alpha(),!0)},je.prototype.brighten=function(e=1){return this.darken(-e)},je.prototype.darker=je.prototype.darken,je.prototype.brighter=je.prototype.brighten,je.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:y0t}=Math,b0t=1e-7,v0t=20;je.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ut(e)==="number"){if(e===0)return new je([0,0,0,this._rgb[3]],"rgb");if(e===1)return new je([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=v0t;const a=(l,s)=>{const c=l.interpolate(s,.5,r),u=c.luminance();return Math.abs(e-u)<b0t||!o--?c:u>e?a(l,c):a(c,s)},i=(n>e?a(new je([0,0,0]),this):a(this,new je([255,255,255]))).rgb();return new je([...i,this._rgb[3]])}return x0t(...this._rgb.slice(0,3))};const x0t=(e,r,n)=>(e=wD(e),r=wD(r),n=wD(n),.2126*e+.7152*r+.0722*n),wD=e=>(e/=255,e<=.03928?e/12.92:y0t((e+.055)/1.055,2.4)),Lo={},hg=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Lo[a]&&!o.length&&(a=Object.keys(Lo)[0]),!Lo[a])throw new Error(`interpolation mode ${a} is not defined`);return Ut(e)!=="object"&&(e=new je(e)),Ut(r)!=="object"&&(r=new je(r)),Lo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};je.prototype.mix=je.prototype.interpolate=function(e,r=.5,...n){return hg(this,e,r,...n)},je.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new je([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:w0t,cos:k0t}=Math,Hce=(...e)=>{let[r,n,o]=It(e,"lch");return isNaN(o)&&(o=0),o=o*c0t,[r,k0t(o)*n,w0t(o)*n]},kD=(...e)=>{e=It(e,"lch");const[r,n,o]=e,[a,i,l]=Hce(r,n,o),[s,c,u]=yD(a,i,l);return[s,c,u,e.length>3?e[3]:1]},_0t=(...e)=>{const r=zce(It(e,"hcl"));return kD(...r)},{sqrt:E0t,atan2:S0t,round:C0t}=Math,qce=(...e)=>{const[r,n,o]=It(e,"lab"),a=E0t(n*n+o*o);let i=(S0t(o,n)*u0t+360)%360;return C0t(a*1e4)===0&&(i=Number.NaN),[r,a,i]},_D=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),[i,l,s]=vD(r,n,o),[c,u,d]=qce(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};je.prototype.lch=function(){return _D(this._rgb)},je.prototype.hcl=function(){return zce(_D(this._rgb))},Object.assign(Qt,{lch:(...e)=>new je(...e,"lch"),hcl:(...e)=>new je(...e,"hcl")}),Dt.format.lch=kD,Dt.format.hcl=_0t,["lch","hcl"].forEach(e=>Dt.autodetect.push({p:2,test:(...r)=>{if(r=It(r,e),Ut(r)==="array"&&r.length===3)return e}})),je.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=_s.Kn*e,n[1]<0&&(n[1]=0),new je(n,"lch").alpha(r.alpha(),!0)},je.prototype.desaturate=function(e=1){return this.saturate(-e)},je.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const l=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(l>-1){if(Ut(r)=="string")switch(r.charAt(0)){case"+":i[l]+=+r;break;case"-":i[l]+=+r;break;case"*":i[l]*=+r.substr(1);break;case"/":i[l]/=+r.substr(1);break;default:i[l]=+r}else if(Ut(r)==="number")i[l]=r;else throw new Error("unsupported value for Color.set");const s=new je(i,o);return n?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},je.prototype.tint=function(e=.5,...r){return hg(this,"white",e,...r)},je.prototype.shade=function(e=.5,...r){return hg(this,"black",e,...r)};const T0t=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Lo.rgb=T0t;const{sqrt:ED,pow:fg}=Math,R0t=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new je(ED(fg(o,2)*(1-n)+fg(l,2)*n),ED(fg(a,2)*(1-n)+fg(s,2)*n),ED(fg(i,2)*(1-n)+fg(c,2)*n),"rgb")};Lo.lrgb=R0t;const A0t=(e,r,n)=>{const o=e.lab(),a=r.lab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Lo.lab=A0t;const mg=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let l,s,c,u,d,p;(o.substr(0,1)==="h"||o==="oklch")&&([l,c,d]=a,[s,u,p]=i);let f,g,b,x;return!isNaN(l)&&!isNaN(s)?(s>l&&s-l>180?x=s-(l+360):s<l&&l-s>180?x=s+360-l:x=s-l,g=l+n*x):isNaN(l)?isNaN(s)?g=Number.NaN:(g=s,(d==1||d==0)&&o!="hsv"&&(f=u)):(g=l,(p==1||p==0)&&o!="hsv"&&(f=c)),f===void 0&&(f=c+n*(u-c)),b=d+n*(p-d),o==="oklch"?new je([b,f,g],o):new je([g,f,b],o)},Uce=(e,r,n)=>mg(e,r,n,"lch");Lo.lch=Uce,Lo.hcl=Uce;const N0t=e=>{if(Ut(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},D0t=(...e)=>{const[r,n,o]=It(e,"rgb");return(r<<16)+(n<<8)+o};je.prototype.num=function(){return D0t(this._rgb)},Object.assign(Qt,{num:(...e)=>new je(...e,"num")}),Dt.format.num=N0t,Dt.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ut(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const P0t=(e,r,n)=>{const o=e.num(),a=r.num();return new je(o+n*(a-o),"num")};Lo.num=P0t;const{floor:$0t}=Math,M0t=(...e)=>{e=It(e,"hcg");let[r,n,o]=e,a,i,l;o=o*255;const s=n*255;if(n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=$0t(r),u=r-c,d=o*(1-n),p=d+s*(1-u),f=d+s*u,g=d+s;switch(c){case 0:[a,i,l]=[g,f,d];break;case 1:[a,i,l]=[p,g,d];break;case 2:[a,i,l]=[d,g,f];break;case 3:[a,i,l]=[d,p,g];break;case 4:[a,i,l]=[f,d,g];break;case 5:[a,i,l]=[g,d,p];break}}return[a,i,l,e.length>3?e[3]:1]},O0t=(...e)=>{const[r,n,o]=It(e,"rgb"),a=Oce(r,n,o),i=Ice(r,n,o),l=i-a,s=l*100/255,c=a/(255-l)*100;let u;return l===0?u=Number.NaN:(r===i&&(u=(n-o)/l),n===i&&(u=2+(o-r)/l),o===i&&(u=4+(r-n)/l),u*=60,u<0&&(u+=360)),[u,s,c]};je.prototype.hcg=function(){return O0t(this._rgb)};const I0t=(...e)=>new je(...e,"hcg");Qt.hcg=I0t,Dt.format.hcg=M0t,Dt.autodetect.push({p:1,test:(...e)=>{if(e=It(e,"hcg"),Ut(e)==="array"&&e.length===3)return"hcg"}});const z0t=(e,r,n)=>mg(e,r,n,"hcg");Lo.hcg=z0t;const{cos:gg}=Math,L0t=(...e)=>{e=It(e,"hsi");let[r,n,o]=e,a,i,l;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(l=(1-n)/3,a=(1+n*gg(_c*r)/gg(gD-_c*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*gg(_c*r)/gg(gD-_c*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*gg(_c*r)/gg(gD-_c*r))/3,a=1-(i+l)),a=Qp(o*a*3),i=Qp(o*i*3),l=Qp(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:B0t,sqrt:j0t,acos:F0t}=Math,H0t=(...e)=>{let[r,n,o]=It(e,"rgb");r/=255,n/=255,o/=255;let a;const i=B0t(r,n,o),l=(r+n+o)/3,s=l>0?1-i/l:0;return s===0?a=NaN:(a=(r-n+(r-o))/2,a/=j0t((r-n)*(r-n)+(r-o)*(n-o)),a=F0t(a),o>n&&(a=_c-a),a/=_c),[a*360,s,l]};je.prototype.hsi=function(){return H0t(this._rgb)};const q0t=(...e)=>new je(...e,"hsi");Qt.hsi=q0t,Dt.format.hsi=L0t,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"hsi"),Ut(e)==="array"&&e.length===3)return"hsi"}});const U0t=(e,r,n)=>mg(e,r,n,"hsi");Lo.hsi=U0t;const SD=(...e)=>{e=It(e,"hsl");const[r,n,o]=e;let a,i,l;if(n===0)a=i=l=o*255;else{const s=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,p=r/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let f=0;f<3;f++)s[f]<0&&(s[f]+=1),s[f]>1&&(s[f]-=1),6*s[f]<1?c[f]=d+(u-d)*6*s[f]:2*s[f]<1?c[f]=u:3*s[f]<2?c[f]=d+(u-d)*(2/3-s[f])*6:c[f]=d;[a,i,l]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,l,e[3]]:[a,i,l,1]},Vce=(...e)=>{e=It(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=Oce(r,n,o),i=Ice(r,n,o),l=(i+a)/2;let s,c;return i===a?(s=0,c=Number.NaN):s=l<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,l,e[3]]:[c,s,l]};je.prototype.hsl=function(){return Vce(this._rgb)};const V0t=(...e)=>new je(...e,"hsl");Qt.hsl=V0t,Dt.format.hsl=SD,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"hsl"),Ut(e)==="array"&&e.length===3)return"hsl"}});const Y0t=(e,r,n)=>mg(e,r,n,"hsl");Lo.hsl=Y0t;const{floor:W0t}=Math,G0t=(...e)=>{e=It(e,"hsv");let[r,n,o]=e,a,i,l;if(o*=255,n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=W0t(r),c=r-s,u=o*(1-n),d=o*(1-n*c),p=o*(1-n*(1-c));switch(s){case 0:[a,i,l]=[o,p,u];break;case 1:[a,i,l]=[d,o,u];break;case 2:[a,i,l]=[u,o,p];break;case 3:[a,i,l]=[u,d,o];break;case 4:[a,i,l]=[p,u,o];break;case 5:[a,i,l]=[o,u,d];break}}return[a,i,l,e.length>3?e[3]:1]},{min:X0t,max:K0t}=Math,Z0t=(...e)=>{e=It(e,"rgb");let[r,n,o]=e;const a=X0t(r,n,o),i=K0t(r,n,o),l=i-a;let s,c,u;return u=i/255,i===0?(s=Number.NaN,c=0):(c=l/i,r===i&&(s=(n-o)/l),n===i&&(s=2+(o-r)/l),o===i&&(s=4+(r-n)/l),s*=60,s<0&&(s+=360)),[s,c,u]};je.prototype.hsv=function(){return Z0t(this._rgb)};const Q0t=(...e)=>new je(...e,"hsv");Qt.hsv=Q0t,Dt.format.hsv=G0t,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"hsv"),Ut(e)==="array"&&e.length===3)return"hsv"}});const J0t=(e,r,n)=>mg(e,r,n,"hsv");Lo.hsv=J0t;function fk(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(l=>[l]));let o=r[0].length,a=r[0].map((l,s)=>r.map(c=>c[s])),i=e.map(l=>a.map(s=>Array.isArray(l)?l.reduce((c,u,d)=>c+u*(s[d]||0),0):s.reduce((c,u)=>c+u*l,0)));return n===1&&(i=i[0]),o===1?i.map(l=>l[0]):i}const CD=(...e)=>{e=It(e,"lab");const[r,n,o,...a]=e,[i,l,s]=eyt([r,n,o]),[c,u,d]=jce(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function eyt(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=fk(n,e);return fk(r,o.map(a=>a**3))}const TD=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),i=Fce(r,n,o);return[...tyt(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function tyt(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=fk(r,e);return fk(n,o.map(a=>Math.cbrt(a)))}je.prototype.oklab=function(){return TD(this._rgb)},Object.assign(Qt,{oklab:(...e)=>new je(...e,"oklab")}),Dt.format.oklab=CD,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"oklab"),Ut(e)==="array"&&e.length===3)return"oklab"}});const ryt=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Lo.oklab=ryt;const nyt=(e,r,n)=>mg(e,r,n,"oklch");Lo.oklch=nyt;const{pow:RD,sqrt:AD,PI:ND,cos:Yce,sin:Wce,atan2:oyt}=Math,ayt=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(p,f){return p+f});if(n.forEach((p,f)=>{n[f]*=a}),e=e.map(p=>new je(p)),r==="lrgb")return iyt(e,n);const i=e.shift(),l=i.get(r),s=[];let c=0,u=0;for(let p=0;p<l.length;p++)if(l[p]=(l[p]||0)*n[0],s.push(isNaN(l[p])?0:n[0]),r.charAt(p)==="h"&&!isNaN(l[p])){const f=l[p]/180*ND;c+=Yce(f)*n[0],u+=Wce(f)*n[0]}let d=i.alpha()*n[0];e.forEach((p,f)=>{const g=p.get(r);d+=p.alpha()*n[f+1];for(let b=0;b<l.length;b++)if(!isNaN(g[b]))if(s[b]+=n[f+1],r.charAt(b)==="h"){const x=g[b]/180*ND;c+=Yce(x)*n[f+1],u+=Wce(x)*n[f+1]}else l[b]+=g[b]*n[f+1]});for(let p=0;p<l.length;p++)if(r.charAt(p)==="h"){let f=oyt(u/s[p],c/s[p])/ND*180;for(;f<0;)f+=360;for(;f>=360;)f-=360;l[p]=f}else l[p]=l[p]/s[p];return d/=o,new je(l,r).alpha(d>.99999?1:d,!0)},iyt=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a<e.length;a++){const i=e[a],l=r[a]/n,s=i._rgb;o[0]+=RD(s[0],2)*l,o[1]+=RD(s[1],2)*l,o[2]+=RD(s[2],2)*l,o[3]+=s[3]*l}return o[0]=AD(o[0]),o[1]=AD(o[1]),o[2]=AD(o[2]),o[3]>.9999999&&(o[3]=1),new je(fD(o))},{pow:lyt}=Math;function mk(e){let r="rgb",n=Qt("#ccc"),o=0,a=[0,1],i=[],l=[0,0],s=!1,c=[],u=!1,d=0,p=1,f=!1,g={},b=!0,x=1;const w=function(D){if(D=D||["#fff","#000"],D&&Ut(D)==="string"&&Qt.brewer&&Qt.brewer[D.toLowerCase()]&&(D=Qt.brewer[D.toLowerCase()]),Ut(D)==="array"){D.length===1&&(D=[D[0],D[0]]),D=D.slice(0);for(let N=0;N<D.length;N++)D[N]=Qt(D[N]);i.length=0;for(let N=0;N<D.length;N++)i.push(N/(D.length-1))}return R(),c=D},k=function(D){if(s!=null){const N=s.length-1;let $=0;for(;$<N&&D>=s[$];)$++;return $-1}return 0};let C=D=>D,_=D=>D;const T=function(D,N){let $,O;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?O=D:s&&s.length>2?O=k(D)/(s.length-2):p!==d?O=(D-d)/(p-d):O=1,O=_(O),N||(O=C(O)),x!==1&&(O=lyt(O,x)),O=l[0]+O*(1-l[0]-l[1]),O=Qp(O,0,1);const j=Math.floor(O*1e4);if(b&&g[j])$=g[j];else{if(Ut(c)==="array")for(let L=0;L<i.length;L++){const Y=i[L];if(O<=Y){$=c[L];break}if(O>=Y&&L===i.length-1){$=c[L];break}if(O>Y&&O<i[L+1]){O=(O-Y)/(i[L+1]-Y),$=Qt.interpolate(c[L],c[L+1],O,r);break}}else Ut(c)==="function"&&($=c(O));b&&(g[j]=$)}return $};var R=()=>g={};w(e);const A=function(D){const N=Qt(T(D));return u&&N[u]?N[u]():N};return A.classes=function(D){if(D!=null){if(Ut(D)==="array")s=D,a=[D[0],D[D.length-1]];else{const N=Qt.analyze(a);D===0?s=[N.min,N.max]:s=Qt.limits(N,"e",D)}return A}return s},A.domain=function(D){if(!arguments.length)return a;d=D[0],p=D[D.length-1],i=[];const N=c.length;if(D.length===N&&d!==p)for(let $ of Array.from(D))i.push(($-d)/(p-d));else{for(let $=0;$<N;$++)i.push($/(N-1));if(D.length>2){const $=D.map((j,L)=>L/(D.length-1)),O=D.map(j=>(j-d)/(p-d));O.every((j,L)=>$[L]===j)||(_=j=>{if(j<=0||j>=1)return j;let L=0;for(;j>=O[L+1];)L++;const Y=(j-O[L])/(O[L+1]-O[L]);return $[L]+Y*($[L+1]-$[L])})}}return a=[d,p],A},A.mode=function(D){return arguments.length?(r=D,R(),A):r},A.range=function(D,N){return w(D),A},A.out=function(D){return u=D,A},A.spread=function(D){return arguments.length?(o=D,A):o},A.correctLightness=function(D){return D==null&&(D=!0),f=D,R(),f?C=function(N){const $=T(0,!0).lab()[0],O=T(1,!0).lab()[0],j=$>O;let L=T(N,!0).lab()[0];const Y=$+(O-$)*N;let M=L-Y,q=0,z=1,H=20;for(;Math.abs(M)>.01&&H-- >0;)(function(){return j&&(M*=-1),M<0?(q=N,N+=(z-N)*.5):(z=N,N+=(q-N)*.5),L=T(N,!0).lab()[0],M=L-Y})();return N}:C=N=>N,A},A.padding=function(D){return D!=null?(Ut(D)==="number"&&(D=[D,D]),l=D,A):l},A.colors=function(D,N){arguments.length<2&&(N="hex");let $=[];if(arguments.length===0)$=c.slice(0);else if(D===1)$=[A(.5)];else if(D>1){const O=a[0],j=a[1]-O;$=syt(0,D).map(L=>A(O+L/(D-1)*j))}else{e=[];let O=[];if(s&&s.length>2)for(let j=1,L=s.length,Y=1<=L;Y?j<L:j>L;Y?j++:j--)O.push((s[j-1]+s[j])*.5);else O=a;$=O.map(j=>A(j))}return Qt[N]&&($=$.map(O=>O[N]())),$},A.cache=function(D){return D!=null?(b=D,A):b},A.gamma=function(D){return D!=null?(x=D,A):x},A.nodata=function(D){return D!=null?(n=Qt(D),A):n},A}function syt(e,r,n){let o=[],a=e<r,i=r;for(let l=e;a?l<i:l>i;a?l++:l--)o.push(l);return o}const cyt=function(e){let r=[1,1];for(let n=1;n<e;n++){let o=[1];for(let a=1;a<=r.length;a++)o[a]=(r[a]||0)+r[a-1];r=o}return r},uyt=function(e){let r,n,o,a;if(e=e.map(i=>new je(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>n[s]+i*(o[s]-n[s]));return new je(l,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>(1-i)*(1-i)*n[s]+2*(1-i)*i*o[s]+i*i*a[s]);return new je(l,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(l=>l.lab()),r=function(l){const s=[0,1,2].map(c=>(1-l)*(1-l)*(1-l)*n[c]+3*(1-l)*(1-l)*l*o[c]+3*(1-l)*l*l*a[c]+l*l*l*i[c]);return new je(s,"lab")}}else if(e.length>=5){let i,l,s;i=e.map(c=>c.lab()),s=e.length-1,l=cyt(s),r=function(c){const u=1-c,d=[0,1,2].map(p=>i.reduce((f,g,b)=>f+l[b]*u**(s-b)*c**b*g[p],0));return new je(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},dyt=e=>{const r=uyt(e);return r.scale=()=>mk(r),r},{round:Gce}=Math;je.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Gce)},je.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:Gce(r):r)},Object.assign(Qt,{rgb:(...e)=>new je(...e,"rgb")}),Dt.format.rgb=(...e)=>{const r=It(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Dt.autodetect.push({p:3,test:(...e)=>{if(e=It(e,"rgba"),Ut(e)==="array"&&(e.length===3||e.length===4&&Ut(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const zl=(e,r,n)=>{if(!zl[n])throw new Error("unknown blend mode "+n);return zl[n](e,r)},Gu=e=>(r,n)=>{const o=Qt(n).rgb(),a=Qt(r).rgb();return Qt.rgb(e(o,a))},Xu=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},pyt=e=>e,hyt=(e,r)=>e*r/255,fyt=(e,r)=>e>r?r:e,myt=(e,r)=>e>r?e:r,gyt=(e,r)=>255*(1-(1-e/255)*(1-r/255)),yyt=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),byt=(e,r)=>255*(1-(1-r/255)/(e/255)),vyt=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);zl.normal=Gu(Xu(pyt)),zl.multiply=Gu(Xu(hyt)),zl.screen=Gu(Xu(gyt)),zl.overlay=Gu(Xu(yyt)),zl.darken=Gu(Xu(fyt)),zl.lighten=Gu(Xu(myt)),zl.dodge=Gu(Xu(vyt)),zl.burn=Gu(Xu(byt));const{pow:xyt,sin:wyt,cos:kyt}=Math;function _yt(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,l;Ut(a)==="array"?l=a[1]-a[0]:(l=0,a=[a,a]);const s=function(c){const u=_c*((e+120)/360+r*c),d=xyt(a[0]+l*c,o),p=(i!==0?n[0]+c*i:n)*d*(1-d)/2,f=kyt(u),g=wyt(u),b=d+p*(-.14861*f+1.78277*g),x=d+p*(-.29227*f-.90649*g),w=d+p*(1.97294*f);return Qt(fD([b*255,x*255,w*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?r:(r=c,s)},s.gamma=function(c){return c==null?o:(o=c,s)},s.hue=function(c){return c==null?n:(n=c,Ut(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,s)},s.lightness=function(c){return c==null?a:(Ut(c)==="array"?(a=c,l=c[1]-c[0]):(a=[c,c],l=0),s)},s.scale=()=>Qt.scale(s),s.hue(n),s}const Eyt="0123456789abcdef",{floor:Syt,random:Cyt}=Math,Tyt=()=>{let e="#";for(let r=0;r<6;r++)e+=Eyt.charAt(Syt(Cyt()*16));return new je(e,"hex")},{log:Xce,pow:Ryt,floor:Ayt,abs:Nyt}=Math;function Kce(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ut(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ut(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,o<n.min&&(n.min=o),o>n.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>Zce(n,o,a),n}function Zce(e,r="equal",n=7){Ut(e)=="array"&&(e=Kce(e));const{min:o,max:a}=e,i=e.values.sort((s,c)=>s-c);if(n===1)return[o,a];const l=[];if(r.substr(0,1)==="c"&&(l.push(o),l.push(a)),r.substr(0,1)==="e"){l.push(o);for(let s=1;s<n;s++)l.push(o+s/n*(a-o));l.push(a)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const s=Math.LOG10E*Xce(o),c=Math.LOG10E*Xce(a);l.push(o);for(let u=1;u<n;u++)l.push(Ryt(10,s+u/n*(c-s)));l.push(a)}else if(r.substr(0,1)==="q"){l.push(o);for(let s=1;s<n;s++){const c=(i.length-1)*s/n,u=Ayt(c);if(u===c)l.push(i[u]);else{const d=c-u;l.push(i[u]*(1-d)+i[u+1]*d)}}l.push(a)}else if(r.substr(0,1)==="k"){let s;const c=i.length,u=new Array(c),d=new Array(n);let p=!0,f=0,g=null;g=[],g.push(o);for(let w=1;w<n;w++)g.push(o+w/n*(a-o));for(g.push(a);p;){for(let k=0;k<n;k++)d[k]=0;for(let k=0;k<c;k++){const C=i[k];let _=Number.MAX_VALUE,T;for(let R=0;R<n;R++){const A=Nyt(g[R]-C);A<_&&(_=A,T=R),d[T]++,u[k]=T}}const w=new Array(n);for(let k=0;k<n;k++)w[k]=null;for(let k=0;k<c;k++)s=u[k],w[s]===null?w[s]=i[k]:w[s]+=i[k];for(let k=0;k<n;k++)w[k]*=1/d[k];p=!1;for(let k=0;k<n;k++)if(w[k]!==g[k]){p=!0;break}g=w,f++,f>200&&(p=!1)}const b={};for(let w=0;w<n;w++)b[w]=[];for(let w=0;w<c;w++)s=u[w],b[s].push(i[w]);let x=[];for(let w=0;w<n;w++)x.push(b[w][0]),x.push(b[w][b[w].length-1]);x=x.sort((w,k)=>w-k),l.push(x[0]);for(let w=1;w<x.length;w+=2){const k=x[w];!isNaN(k)&&l.indexOf(k)===-1&&l.push(k)}}return l}const Dyt=(e,r)=>{e=new je(e),r=new je(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/**
 * @license
 *
 * The APCA contrast prediction algorithm is based of the formulas published
 * in the APCA-1.0.98G specification by Myndex. The specification is available at:
 * https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
 *
 * Note that the APCA implementation is still beta, so please update to
 * future versions of chroma.js when they become available.
 *
 * You can read more about the APCA Readability Criterion at
 * https://readtech.org/ARC/
 */const Qce=.027,Pyt=5e-4,$yt=.1,Jce=1.14,gk=.022,eue=1.414,Myt=(e,r)=>{e=new je(e),r=new je(r),e.alpha()<1&&(e=hg(r,e,e.alpha(),"rgb"));const n=tue(...e.rgb()),o=tue(...r.rgb()),a=n>=gk?n:n+Math.pow(gk-n,eue),i=o>=gk?o:o+Math.pow(gk-o,eue),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)<Pyt?0:a<i?l*Jce:s*Jce;return(Math.abs(c)<$yt?0:c>0?c-Qce:c+Qce)*100};function tue(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Sc,pow:Dn,min:Oyt,max:Iyt,atan2:rue,abs:nue,cos:yk,sin:oue,exp:zyt,PI:aue}=Math;function Lyt(e,r,n=1,o=1,a=1){var i=function(Z){return 360*Z/(2*aue)},l=function(Z){return 2*aue*Z/360};e=new je(e),r=new je(r);const[s,c,u]=Array.from(e.lab()),[d,p,f]=Array.from(r.lab()),g=(s+d)/2,b=Sc(Dn(c,2)+Dn(u,2)),x=Sc(Dn(p,2)+Dn(f,2)),w=(b+x)/2,k=.5*(1-Sc(Dn(w,7)/(Dn(w,7)+Dn(25,7)))),C=c*(1+k),_=p*(1+k),T=Sc(Dn(C,2)+Dn(u,2)),R=Sc(Dn(_,2)+Dn(f,2)),A=(T+R)/2,D=i(rue(u,C)),N=i(rue(f,_)),$=D>=0?D:D+360,O=N>=0?N:N+360,j=nue($-O)>180?($+O+360)/2:($+O)/2,L=1-.17*yk(l(j-30))+.24*yk(l(2*j))+.32*yk(l(3*j+6))-.2*yk(l(4*j-63));let Y=O-$;Y=nue(Y)<=180?Y:O<=$?Y+360:Y-360,Y=2*Sc(T*R)*oue(l(Y)/2);const M=d-s,q=R-T,z=1+.015*Dn(g-50,2)/Sc(20+Dn(g-50,2)),H=1+.045*A,U=1+.015*A*L,K=30*zyt(-Dn((j-275)/25,2)),V=-(2*Sc(Dn(A,7)/(Dn(A,7)+Dn(25,7))))*oue(2*l(K)),X=Sc(Dn(M/(n*z),2)+Dn(q/(o*H),2)+Dn(Y/(a*U),2)+V*(q/(o*H))*(Y/(a*U)));return Iyt(0,Oyt(100,X))}function Byt(e,r,n="lab"){e=new je(e),r=new je(r);const o=e.get(n),a=r.get(n);let i=0;for(let l in o){const s=(o[l]||0)-(a[l]||0);i+=s*s}return Math.sqrt(i)}const jyt=(...e)=>{try{return new je(...e),!0}catch{return!1}},Fyt={cool(){return mk([Qt.hsl(180,1,.9),Qt.hsl(250,.7,.4)])},hot(){return mk(["#000","#f00","#ff0","#fff"]).mode("rgb")}},DD={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},iue=Object.keys(DD),lue=new Map(iue.map(e=>[e.toLowerCase(),e])),Hyt=typeof Proxy=="function"?new Proxy(DD,{get(e,r){const n=r.toLowerCase();if(lue.has(n))return e[lue.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(iue)}}):DD,qyt=(...e)=>{e=It(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:sue}=Math,Uyt=(...e)=>{let[r,n,o]=It(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-sue(r,sue(n,o)),i=a<1?1/(1-a):0,l=(1-r-a)*i,s=(1-n-a)*i,c=(1-o-a)*i;return[l,s,c,a]};je.prototype.cmyk=function(){return Uyt(this._rgb)},Object.assign(Qt,{cmyk:(...e)=>new je(...e,"cmyk")}),Dt.format.cmyk=qyt,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"cmyk"),Ut(e)==="array"&&e.length===4)return"cmyk"}});const Vyt=(...e)=>{const r=It(e,"hsla");let n=dg(e)||"lsa";return r[0]=Ti(r[0]||0)+"deg",r[1]=Ti(r[1]*100)+"%",r[2]=Ti(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},Yyt=(...e)=>{const r=It(e,"lab");let n=dg(e)||"lab";return r[0]=Ti(r[0])+"%",r[1]=Ti(r[1]),r[2]=Ti(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},Wyt=(...e)=>{const r=It(e,"lch");let n=dg(e)||"lab";return r[0]=Ti(r[0])+"%",r[1]=Ti(r[1]),r[2]=isNaN(r[2])?"none":Ti(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},Gyt=(...e)=>{const r=It(e,"lab");return r[0]=Ti(r[0]*100)+"%",r[1]=mD(r[1]),r[2]=mD(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},cue=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),[i,l,s]=TD(r,n,o),[c,u,d]=qce(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Xyt=(...e)=>{const r=It(e,"lch");return r[0]=Ti(r[0]*100)+"%",r[1]=mD(r[1]),r[2]=isNaN(r[2])?"none":Ti(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:PD}=Math,Kyt=(...e)=>{const r=It(e,"rgba");let n=dg(e)||"rgb";if(n.substr(0,3)==="hsl")return Vyt(Vce(r),n);if(n.substr(0,3)==="lab"){const o=Ib();Ec("d50");const a=Yyt(vD(r),n);return Ec(o),a}if(n.substr(0,3)==="lch"){const o=Ib();Ec("d50");const a=Wyt(_D(r),n);return Ec(o),a}return n.substr(0,5)==="oklab"?Gyt(TD(r)):n.substr(0,5)==="oklch"?Xyt(cue(r)):(r[0]=PD(r[0]),r[1]=PD(r[1]),r[2]=PD(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},uue=(...e)=>{e=It(e,"lch");const[r,n,o,...a]=e,[i,l,s]=Hce(r,n,o),[c,u,d]=CD(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Cc=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Ll=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,bk=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Ri=/\s*/.source,yg=/\s+/.source,$D=/\s*,\s*/.source,vk=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,bg=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,due=new RegExp("^rgba?\\("+Ri+[Cc,Cc,Cc].join(yg)+bg+"\\)$"),pue=new RegExp("^rgb\\("+Ri+[Cc,Cc,Cc].join($D)+Ri+"\\)$"),hue=new RegExp("^rgba\\("+Ri+[Cc,Cc,Cc,Ll].join($D)+Ri+"\\)$"),fue=new RegExp("^hsla?\\("+Ri+[vk,bk,bk].join(yg)+bg+"\\)$"),mue=new RegExp("^hsl?\\("+Ri+[vk,bk,bk].join($D)+Ri+"\\)$"),gue=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,yue=new RegExp("^lab\\("+Ri+[Ll,Ll,Ll].join(yg)+bg+"\\)$"),bue=new RegExp("^lch\\("+Ri+[Ll,Ll,vk].join(yg)+bg+"\\)$"),vue=new RegExp("^oklab\\("+Ri+[Ll,Ll,Ll].join(yg)+bg+"\\)$"),xue=new RegExp("^oklch\\("+Ri+[Ll,Ll,vk].join(yg)+bg+"\\)$"),{round:wue}=Math,vg=e=>e.map((r,n)=>n<=2?Qp(wue(r),0,255):r),Pn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Go=(e,r)=>e==="none"?r:e,MD=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Dt.format.named)try{return Dt.format.named(e)}catch{}if((r=e.match(due))||(r=e.match(pue))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+Pn(Go(n[a],0),0,255);n=vg(n);const o=r[4]!==void 0?+Pn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(hue)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+Pn(n[o],0,255);return n}if((r=e.match(fue))||(r=e.match(mue))){const n=r.slice(1,4);n[0]=+Go(n[0].replace("deg",""),0),n[1]=+Pn(Go(n[1],0),0,100)*.01,n[2]=+Pn(Go(n[2],0),0,100)*.01;const o=vg(SD(n)),a=r[4]!==void 0?+Pn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(gue)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=SD(n);for(let a=0;a<3;a++)o[a]=wue(o[a]);return o[3]=+r[4],o}if(r=e.match(yue)){const n=r.slice(1,4);n[0]=Pn(Go(n[0],0),0,100),n[1]=Pn(Go(n[1],0),-125,125,!0),n[2]=Pn(Go(n[2],0),-125,125,!0);const o=Ib();Ec("d50");const a=vg(yD(n));Ec(o);const i=r[4]!==void 0?+Pn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(bue)){const n=r.slice(1,4);n[0]=Pn(n[0],0,100),n[1]=Pn(Go(n[1],0),0,150,!1),n[2]=+Go(n[2].replace("deg",""),0);const o=Ib();Ec("d50");const a=vg(kD(n));Ec(o);const i=r[4]!==void 0?+Pn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(vue)){const n=r.slice(1,4);n[0]=Pn(Go(n[0],0),0,1),n[1]=Pn(Go(n[1],0),-.4,.4,!0),n[2]=Pn(Go(n[2],0),-.4,.4,!0);const o=vg(CD(n)),a=r[4]!==void 0?+Pn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(xue)){const n=r.slice(1,4);n[0]=Pn(Go(n[0],0),0,1),n[1]=Pn(Go(n[1],0),0,.4,!1),n[2]=+Go(n[2].replace("deg",""),0);const o=vg(uue(n)),a=r[4]!==void 0?+Pn(r[4],0,1):1;return o[3]=a,o}};MD.test=e=>due.test(e)||fue.test(e)||yue.test(e)||bue.test(e)||vue.test(e)||xue.test(e)||pue.test(e)||hue.test(e)||mue.test(e)||gue.test(e)||e==="transparent",je.prototype.css=function(e){return Kyt(this._rgb,e)};const Zyt=(...e)=>new je(...e,"css");Qt.css=Zyt,Dt.format.css=MD,Dt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ut(e)==="string"&&MD.test(e))return"css"}}),Dt.format.gl=(...e)=>{const r=It(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const Qyt=(...e)=>new je(...e,"gl");Qt.gl=Qyt,je.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},je.prototype.hex=function(e){return Bce(this._rgb,e)};const Jyt=(...e)=>new je(...e,"hex");Qt.hex=Jyt,Dt.format.hex=Lce,Dt.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ut(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:xk}=Math,kue=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*xk(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*xk(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*xk(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*xk(o),a=255),[n,o,a,1]},{round:ebt}=Math,tbt=(...e)=>{const r=It(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const l=.4;let s;for(;i-a>l;){s=(i+a)*.5;const c=kue(s);c[2]/c[0]>=o/n?i=s:a=s}return ebt(s)};je.prototype.temp=je.prototype.kelvin=je.prototype.temperature=function(){return tbt(this._rgb)};const OD=(...e)=>new je(...e,"temp");Object.assign(Qt,{temp:OD,kelvin:OD,temperature:OD}),Dt.format.temp=Dt.format.kelvin=Dt.format.temperature=kue,je.prototype.oklch=function(){return cue(this._rgb)},Object.assign(Qt,{oklch:(...e)=>new je(...e,"oklch")}),Dt.format.oklch=uue,Dt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"oklch"),Ut(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Qt,{analyze:Kce,average:ayt,bezier:dyt,blend:zl,brewer:Hyt,Color:je,colors:pg,contrast:Dyt,contrastAPCA:Myt,cubehelix:_yt,deltaE:Lyt,distance:Byt,input:Dt,interpolate:hg,limits:Zce,mix:hg,random:Tyt,scale:mk,scales:Fyt,valid:jyt});var ID={exports:{}},_ue;function rbt(){if(_ue)return ID.exports;_ue=1;/*
 * @version    1.4.0
 * @date       2015-10-26
 * @stability  3 - Stable
 * @author     Lauri Rooden (https://github.com/litejs/natural-compare-lite)
 * @license    MIT License
 */var e=function(r,n){var o,a,i=1,l=0,s=0,c=String.alphabet;function u(d,p,f){if(f){for(o=p;f=u(d,o),f<76&&f>65;)++o;return+d.slice(p-1,o)}return f=c&&c.indexOf(d.charAt(p)),f>-1?f+76:(f=d.charCodeAt(p)||0,f<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,l++),i=u(n,s++),a<76&&i<76&&a>66&&i>66&&(a=u(r,l,l),i=u(n,s,l=o),s=o),a!=i)return a<i?-1:1}return 0};try{ID.exports=e}catch{String.naturalCompare=e}return ID.exports}rbt();let zb=class{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};zb.prototype.normal={},zb.prototype.property={},zb.prototype.space=void 0;function Eue(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new zb(n,o,r)}function Lb(e){return e.toLowerCase()}let da=class{constructor(e,r){this.attribute=r,this.property=e}};da.prototype.attribute="",da.prototype.booleanish=!1,da.prototype.boolean=!1,da.prototype.commaOrSpaceSeparated=!1,da.prototype.commaSeparated=!1,da.prototype.defined=!1,da.prototype.mustUseProperty=!1,da.prototype.number=!1,da.prototype.overloadedBoolean=!1,da.prototype.property="",da.prototype.spaceSeparated=!1,da.prototype.space=void 0;let nbt=0;const zt=Jp(),$n=Jp(),Sue=Jp(),Ue=Jp(),Nr=Jp(),xg=Jp(),ja=Jp();function Jp(){return 2**++nbt}const zD=Object.freeze(Object.defineProperty({__proto__:null,boolean:zt,booleanish:$n,commaOrSpaceSeparated:ja,commaSeparated:xg,number:Ue,overloadedBoolean:Sue,spaceSeparated:Nr},Symbol.toStringTag,{value:"Module"})),LD=Object.keys(zD);let BD=class extends da{constructor(e,r,n,o){let a=-1;if(super(e,r),Cue(this,"space",o),typeof n=="number")for(;++a<LD.length;){const i=LD[a];Cue(this,LD[a],(n&zD[i])===zD[i])}}};BD.prototype.defined=!0;function Cue(e,r,n){n&&(e[r]=n)}function wg(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new BD(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[Lb(o)]=o,n[Lb(i.attribute)]=o}return new zb(r,n,e.space)}const Tue=wg({properties:{ariaActiveDescendant:null,ariaAtomic:$n,ariaAutoComplete:null,ariaBusy:$n,ariaChecked:$n,ariaColCount:Ue,ariaColIndex:Ue,ariaColSpan:Ue,ariaControls:Nr,ariaCurrent:null,ariaDescribedBy:Nr,ariaDetails:null,ariaDisabled:$n,ariaDropEffect:Nr,ariaErrorMessage:null,ariaExpanded:$n,ariaFlowTo:Nr,ariaGrabbed:$n,ariaHasPopup:null,ariaHidden:$n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nr,ariaLevel:Ue,ariaLive:null,ariaModal:$n,ariaMultiLine:$n,ariaMultiSelectable:$n,ariaOrientation:null,ariaOwns:Nr,ariaPlaceholder:null,ariaPosInSet:Ue,ariaPressed:$n,ariaReadOnly:$n,ariaRelevant:null,ariaRequired:$n,ariaRoleDescription:Nr,ariaRowCount:Ue,ariaRowIndex:Ue,ariaRowSpan:Ue,ariaSelected:$n,ariaSetSize:Ue,ariaSort:null,ariaValueMax:Ue,ariaValueMin:Ue,ariaValueNow:Ue,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Rue(e,r){return r in e?e[r]:r}function Aue(e,r){return Rue(e,r.toLowerCase())}const obt=wg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xg,acceptCharset:Nr,accessKey:Nr,action:null,allow:null,allowFullScreen:zt,allowPaymentRequest:zt,allowUserMedia:zt,alt:null,as:null,async:zt,autoCapitalize:null,autoComplete:Nr,autoFocus:zt,autoPlay:zt,blocking:Nr,capture:null,charSet:null,checked:zt,cite:null,className:Nr,cols:Ue,colSpan:null,content:null,contentEditable:$n,controls:zt,controlsList:Nr,coords:Ue|xg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:zt,defer:zt,dir:null,dirName:null,disabled:zt,download:Sue,draggable:$n,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:zt,formTarget:null,headers:Nr,height:Ue,hidden:zt,high:Ue,href:null,hrefLang:null,htmlFor:Nr,httpEquiv:Nr,id:null,imageSizes:null,imageSrcSet:null,inert:zt,inputMode:null,integrity:null,is:null,isMap:zt,itemId:null,itemProp:Nr,itemRef:Nr,itemScope:zt,itemType:Nr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:zt,low:Ue,manifest:null,max:null,maxLength:Ue,media:null,method:null,min:null,minLength:Ue,multiple:zt,muted:zt,name:null,nonce:null,noModule:zt,noValidate:zt,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:zt,optimum:Ue,pattern:null,ping:Nr,placeholder:null,playsInline:zt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:zt,referrerPolicy:null,rel:Nr,required:zt,reversed:zt,rows:Ue,rowSpan:Ue,sandbox:Nr,scope:null,scoped:zt,seamless:zt,selected:zt,shadowRootClonable:zt,shadowRootDelegatesFocus:zt,shadowRootMode:null,shape:null,size:Ue,sizes:null,slot:null,span:Ue,spellCheck:$n,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ue,step:null,style:null,tabIndex:Ue,target:null,title:null,translate:null,type:null,typeMustMatch:zt,useMap:null,value:$n,width:Ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nr,axis:null,background:null,bgColor:null,border:Ue,borderColor:null,bottomMargin:Ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:zt,declare:zt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ue,leftMargin:Ue,link:null,longDesc:null,lowSrc:null,marginHeight:Ue,marginWidth:Ue,noResize:zt,noHref:zt,noShade:zt,noWrap:zt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ue,rules:null,scheme:null,scrolling:$n,standby:null,summary:null,text:null,topMargin:Ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:zt,disableRemotePlayback:zt,prefix:null,property:null,results:Ue,security:null,unselectable:null},space:"html",transform:Aue}),abt=wg({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:ja,accentHeight:Ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ue,amplitude:Ue,arabicForm:null,ascent:Ue,attributeName:null,attributeType:null,azimuth:Ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ue,by:null,calcMode:null,capHeight:Ue,className:Nr,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:Ue,diffuseConstant:Ue,direction:null,display:null,dur:null,divisor:Ue,dominantBaseline:null,download:zt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ue,enableBackground:null,end:null,event:null,exponent:Ue,externalResourcesRequired:null,fill:null,fillOpacity:Ue,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:xg,g2:xg,glyphName:xg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ue,horizOriginX:Ue,horizOriginY:Ue,id:null,ideographic:Ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ue,k:Ue,k1:Ue,k2:Ue,k3:Ue,k4:Ue,kernelMatrix:ja,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ue,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:Ue,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:Ue,overlineThickness:Ue,paintOrder:null,panose1:null,path:null,pathLength:Ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ue,pointsAtY:Ue,pointsAtZ:Ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ja,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ja,rev:ja,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ja,requiredFeatures:ja,requiredFonts:ja,requiredFormats:ja,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:Ue,specularExponent:Ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ue,strikethroughThickness:Ue,string:null,stroke:null,strokeDashArray:ja,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ue,strokeOpacity:Ue,strokeWidth:null,style:null,surfaceScale:Ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ja,tabIndex:Ue,tableValues:null,target:null,targetX:Ue,targetY:Ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ja,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ue,underlineThickness:Ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ue,values:null,vAlphabetic:Ue,vMathematical:Ue,vectorEffect:null,vHanging:Ue,vIdeographic:Ue,version:null,vertAdvY:Ue,vertOriginX:Ue,vertOriginY:Ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rue}),Nue=wg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),Due=wg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Aue}),Pue=wg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),ibt=/[A-Z]/g,$ue=/-[a-z]/g,lbt=/^data[-\w.:]+$/i;function Mue(e,r){const n=Lb(r);let o=r,a=da;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lbt.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace($ue,cbt);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!$ue.test(i)){let l=i.replace(ibt,sbt);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=BD}return new a(o,r)}function sbt(e){return"-"+e.toLowerCase()}function cbt(e){return e.charAt(1).toUpperCase()}const ubt=Eue([Tue,obt,Nue,Due,Pue],"html"),Oue=Eue([Tue,abt,Nue,Due,Pue],"svg");function Iue(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const l=n.slice(a,o).trim();(l||!i)&&r.push(l),a=o+1,o=n.indexOf(",",a)}return r}function zue(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Lue=/[#.]/g;function dbt(e,r){const n=e||"",o={};let a=0,i,l;for(;a<n.length;){Lue.lastIndex=a;const s=Lue.exec(n),c=n.slice(a,s?s.index:n.length);c&&(i?i==="#"?o.id=c:Array.isArray(o.className)?o.className.push(c):o.className=[c]:l=c,a+=c.length),s&&(i=s[0],a++)}return{type:"element",tagName:l||r||"div",properties:o,children:[]}}function Bue(e){const r=String(e||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function jue(e){return e.join(" ").trim()}function Fue(e,r,n){const o=n?mbt(n):void 0;function a(i,l,...s){let c;if(i==null){c={type:"root",children:[]};const u=l;s.unshift(u)}else{c=dbt(i,r);const u=c.tagName.toLowerCase(),d=o?o.get(u):void 0;if(c.tagName=d||u,pbt(l))s.unshift(l);else for(const[p,f]of Object.entries(l))hbt(e,c.properties,p,f)}for(const u of s)jD(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function pbt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const r=e,n=Object.keys(e);for(const o of n){const a=r[o];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const l of i)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function hbt(e,r,n,o){const a=Mue(e,n);let i;if(o!=null){if(typeof o=="number"){if(Number.isNaN(o))return;i=o}else typeof o=="boolean"?i=o:typeof o=="string"?a.spaceSeparated?i=Bue(o):a.commaSeparated?i=Iue(o):a.commaOrSpaceSeparated?i=Bue(Iue(o).join(" ")):i=Hue(a,a.property,o):Array.isArray(o)?i=[...o]:i=a.property==="style"?fbt(o):String(o);if(Array.isArray(i)){const l=[];for(const s of i)l.push(Hue(a,a.property,s));i=l}a.property==="className"&&Array.isArray(r.className)&&(i=r.className.concat(i)),r[a.property]=i}}function jD(e,r){if(r!=null)if(typeof r=="number"||typeof r=="string")e.push({type:"text",value:String(r)});else if(Array.isArray(r))for(const n of r)jD(e,n);else if(typeof r=="object"&&"type"in r)r.type==="root"?jD(e,r.children):e.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function Hue(e,r,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Lb(n)===Lb(r)))return!0}return n}function fbt(e){const r=[];for(const[n,o]of Object.entries(e))r.push([n,o].join(": "));return r.join("; ")}function mbt(e){const r=new Map;for(const n of e)r.set(n.toLowerCase(),n);return r}const gbt=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];Fue(ubt,"div"),Fue(Oue,"g",gbt);const que={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};class Bb{constructor(r,n,o){this.property=r,this.normal=n,o&&(this.space=o)}}Bb.prototype.property={},Bb.prototype.normal={},Bb.prototype.space=null;function Uue(e,r){const n={},o={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(o,e[a].normal);return new Bb(n,o,r)}function FD(e){return e.toLowerCase()}class Ai{constructor(r,n){this.property=r,this.attribute=n}}Ai.prototype.space=null,Ai.prototype.boolean=!1,Ai.prototype.booleanish=!1,Ai.prototype.overloadedBoolean=!1,Ai.prototype.number=!1,Ai.prototype.commaSeparated=!1,Ai.prototype.spaceSeparated=!1,Ai.prototype.commaOrSpaceSeparated=!1,Ai.prototype.mustUseProperty=!1,Ai.prototype.defined=!1;let ybt=0;const Lt=eh(),Mn=eh(),Vue=eh(),Ve=eh(),Dr=eh(),kg=eh(),Fa=eh();function eh(){return 2**++ybt}const HD=Object.freeze(Object.defineProperty({__proto__:null,boolean:Lt,booleanish:Mn,commaOrSpaceSeparated:Fa,commaSeparated:kg,number:Ve,overloadedBoolean:Vue,spaceSeparated:Dr},Symbol.toStringTag,{value:"Module"})),qD=Object.keys(HD);class UD extends Ai{constructor(r,n,o,a){let i=-1;if(super(r,n),Yue(this,"space",a),typeof o=="number")for(;++i<qD.length;){const l=qD[i];Yue(this,qD[i],(o&HD[l])===HD[l])}}}UD.prototype.defined=!0;function Yue(e,r,n){n&&(e[r]=n)}const bbt={}.hasOwnProperty;function _g(e){const r={},n={};let o;for(o in e.properties)if(bbt.call(e.properties,o)){const a=e.properties[o],i=new UD(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[FD(o)]=o,n[FD(i.attribute)]=o}return new Bb(r,n,e.space)}const Wue=_g({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Gue=_g({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Xue(e,r){return r in e?e[r]:r}function Kue(e,r){return Xue(e,r.toLowerCase())}const Zue=_g({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Kue,properties:{xmlns:null,xmlnsXLink:null}}),Que=_g({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:Dr,ariaCurrent:null,ariaDescribedBy:Dr,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:Dr,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:Dr,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Dr,ariaLevel:Ve,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:Dr,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:Dr,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:Mn,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null}}),vbt=_g({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Kue,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kg,acceptCharset:Dr,accessKey:Dr,action:null,allow:null,allowFullScreen:Lt,allowPaymentRequest:Lt,allowUserMedia:Lt,alt:null,as:null,async:Lt,autoCapitalize:null,autoComplete:Dr,autoFocus:Lt,autoPlay:Lt,blocking:Dr,capture:null,charSet:null,checked:Lt,cite:null,className:Dr,cols:Ve,colSpan:null,content:null,contentEditable:Mn,controls:Lt,controlsList:Dr,coords:Ve|kg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Lt,defer:Lt,dir:null,dirName:null,disabled:Lt,download:Vue,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Lt,formTarget:null,headers:Dr,height:Ve,hidden:Lt,high:Ve,href:null,hrefLang:null,htmlFor:Dr,httpEquiv:Dr,id:null,imageSizes:null,imageSrcSet:null,inert:Lt,inputMode:null,integrity:null,is:null,isMap:Lt,itemId:null,itemProp:Dr,itemRef:Dr,itemScope:Lt,itemType:Dr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Lt,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:Lt,muted:Lt,name:null,nonce:null,noModule:Lt,noValidate:Lt,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:Lt,optimum:Ve,pattern:null,ping:Dr,placeholder:null,playsInline:Lt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Lt,referrerPolicy:null,rel:Dr,required:Lt,reversed:Lt,rows:Ve,rowSpan:Ve,sandbox:Dr,scope:null,scoped:Lt,seamless:Lt,selected:Lt,shadowRootClonable:Lt,shadowRootDelegatesFocus:Lt,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:Lt,useMap:null,value:Mn,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Dr,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Lt,declare:Lt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:Lt,noHref:Lt,noShade:Lt,noWrap:Lt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Lt,disableRemotePlayback:Lt,prefix:null,property:null,results:Ve,security:null,unselectable:null}}),xbt=_g({space:"svg",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"},transform:Xue,properties:{about:Fa,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:Dr,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:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:Lt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,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:kg,g2:kg,glyphName:kg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:Fa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,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:Ve,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:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Dr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fa,rev:Fa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fa,requiredFeatures:Fa,requiredFonts:Fa,requiredFormats:Fa,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:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:Fa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fa,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),wbt=/^data[-\w.:]+$/i,Jue=/-[a-z]/g,kbt=/[A-Z]/g;function _bt(e,r){const n=FD(r);let o=r,a=Ai;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&wbt.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(Jue,Sbt);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!Jue.test(i)){let l=i.replace(kbt,Ebt);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=UD}return new a(o,r)}function Ebt(e){return"-"+e.toLowerCase()}function Sbt(e){return e.charAt(1).toUpperCase()}Uue([Gue,Wue,Zue,Que,vbt],"html");const Cbt=Uue([Gue,Wue,Zue,Que,xbt],"svg"),ede={}.hasOwnProperty;function tde(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&ede.call(a,e)){const c=String(a[e]);l=ede.call(s,c)?s[c]:o.unknown}if(l)return l.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Tbt={}.hasOwnProperty,Rbt=tde("type",{handlers:{root:Abt,element:Mbt,text:Pbt,comment:$bt,doctype:Dbt}});function Abt(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=VD(e.children,n,r),Eg(e,n),n}function Nbt(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=VD(e.children,n,r),Eg(e,n),n}function Dbt(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Eg(e,r),r}function Pbt(e){const r={nodeName:"#text",value:e.value,parentNode:null};return Eg(e,r),r}function $bt(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return Eg(e,r),r}function Mbt(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=Cbt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Tbt.call(e.properties,i)){const c=Obt(o,i,e.properties[i]);c&&a.push(c)}}const l=o.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:que[l],childNodes:[],parentNode:null};return s.childNodes=VD(e.children,s,o),Eg(e,s),e.tagName==="template"&&e.content&&(s.content=Nbt(e.content,o)),s}function Obt(e,r,n){const o=_bt(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?zue(n):jue(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=que[o.space]}return a}function VD(e,r,n){let o=-1;const a=[];if(e)for(;++o<e.length;){const i=Rbt(e[o],n);i.parentNode=r,a.push(i)}return a}function Eg(e,r){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,r.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var rde;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(rde||(rde={}));var nde;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(nde||(nde={}));var ode;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ode||(ode={}));const Ibt=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),zbt=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var YD;const Lbt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Bbt=(YD=String.fromCodePoint)!==null&&YD!==void 0?YD:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function jbt(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Lbt.get(e))!==null&&r!==void 0?r:e}var lo;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(lo||(lo={}));const Fbt=32;var Ku;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ku||(Ku={}));function WD(e){return e>=lo.ZERO&&e<=lo.NINE}function Hbt(e){return e>=lo.UPPER_A&&e<=lo.UPPER_F||e>=lo.LOWER_A&&e<=lo.LOWER_F}function qbt(e){return e>=lo.UPPER_A&&e<=lo.UPPER_Z||e>=lo.LOWER_A&&e<=lo.LOWER_Z||WD(e)}function Ubt(e){return e===lo.EQUALS||qbt(e)}var so;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(so||(so={}));var th;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(th||(th={}));class Vbt{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=so.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=th.Strict}startEntity(r){this.decodeMode=r,this.state=so.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case so.EntityStart:return r.charCodeAt(n)===lo.NUM?(this.state=so.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=so.NamedEntity,this.stateNamedEntity(r,n));case so.NumericStart:return this.stateNumericStart(r,n);case so.NumericDecimal:return this.stateNumericDecimal(r,n);case so.NumericHex:return this.stateNumericHex(r,n);case so.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Fbt)===lo.LOWER_X?(this.state=so.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=so.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(WD(a)||Hbt(a))n+=1;else return this.addToNumericResult(r,o,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(r,o,n,16),-1}stateNumericDecimal(r,n){const o=n;for(;n<r.length;){const a=r.charCodeAt(n);if(WD(a))n+=1;else return this.addToNumericResult(r,o,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(r,o,n,10),-1}emitNumericEntity(r,n){var o;if(this.consumed<=n)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(r===lo.SEMI)this.consumed+=1;else if(this.decodeMode===th.Strict)return 0;return this.emitCodePoint(jbt(this.result),this.consumed),this.errors&&(r!==lo.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,n){const{decodeTree:o}=this;let a=o[this.treeIndex],i=(a&Ku.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const l=r.charCodeAt(n);if(this.treeIndex=Ybt(o,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===th.Attribute&&(i===0||Ubt(l))?0:this.emitNotTerminatedNamedEntity();if(a=o[this.treeIndex],i=(a&Ku.VALUE_LENGTH)>>14,i!==0){if(l===lo.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==th.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&Ku.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~Ku.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case so.NamedEntity:return this.result!==0&&(this.decodeMode!==th.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case so.NumericDecimal:return this.emitNumericEntity(0,2);case so.NumericHex:return this.emitNumericEntity(0,3);case so.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case so.EntityStart:return 0}}}function ade(e){let r="";const n=new Vbt(e,o=>r+=Bbt(o));return function(o,a){let i=0,l=0;for(;(l=o.indexOf("&",l))>=0;){r+=o.slice(i,l),n.startEntity(a);const c=n.write(o,l+1);if(c<0){i=l+n.end();break}i=l+c,l=c===0?i+1:i}const s=r+o.slice(i);return r="",s}}function Ybt(e,r,n,o){const a=(r&Ku.BRANCH_LENGTH)>>7,i=r&Ku.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let l=n,s=l+a-1;for(;l<=s;){const c=l+s>>>1,u=e[c];if(u<o)l=c+1;else if(u>o)s=c-1;else return e[c+a]}return-1}ade(Ibt),ade(zbt);var Vn;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Vn||(Vn={}));var ide;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ide||(ide={}));var lde;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(lde||(lde={}));var ve;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ve||(ve={}));var ie;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(ie||(ie={})),ve.A,ie.A,ve.ADDRESS,ie.ADDRESS,ve.ANNOTATION_XML,ie.ANNOTATION_XML,ve.APPLET,ie.APPLET,ve.AREA,ie.AREA,ve.ARTICLE,ie.ARTICLE,ve.ASIDE,ie.ASIDE,ve.B,ie.B,ve.BASE,ie.BASE,ve.BASEFONT,ie.BASEFONT,ve.BGSOUND,ie.BGSOUND,ve.BIG,ie.BIG,ve.BLOCKQUOTE,ie.BLOCKQUOTE,ve.BODY,ie.BODY,ve.BR,ie.BR,ve.BUTTON,ie.BUTTON,ve.CAPTION,ie.CAPTION,ve.CENTER,ie.CENTER,ve.CODE,ie.CODE,ve.COL,ie.COL,ve.COLGROUP,ie.COLGROUP,ve.DD,ie.DD,ve.DESC,ie.DESC,ve.DETAILS,ie.DETAILS,ve.DIALOG,ie.DIALOG,ve.DIR,ie.DIR,ve.DIV,ie.DIV,ve.DL,ie.DL,ve.DT,ie.DT,ve.EM,ie.EM,ve.EMBED,ie.EMBED,ve.FIELDSET,ie.FIELDSET,ve.FIGCAPTION,ie.FIGCAPTION,ve.FIGURE,ie.FIGURE,ve.FONT,ie.FONT,ve.FOOTER,ie.FOOTER,ve.FOREIGN_OBJECT,ie.FOREIGN_OBJECT,ve.FORM,ie.FORM,ve.FRAME,ie.FRAME,ve.FRAMESET,ie.FRAMESET,ve.H1,ie.H1,ve.H2,ie.H2,ve.H3,ie.H3,ve.H4,ie.H4,ve.H5,ie.H5,ve.H6,ie.H6,ve.HEAD,ie.HEAD,ve.HEADER,ie.HEADER,ve.HGROUP,ie.HGROUP,ve.HR,ie.HR,ve.HTML,ie.HTML,ve.I,ie.I,ve.IMG,ie.IMG,ve.IMAGE,ie.IMAGE,ve.INPUT,ie.INPUT,ve.IFRAME,ie.IFRAME,ve.KEYGEN,ie.KEYGEN,ve.LABEL,ie.LABEL,ve.LI,ie.LI,ve.LINK,ie.LINK,ve.LISTING,ie.LISTING,ve.MAIN,ie.MAIN,ve.MALIGNMARK,ie.MALIGNMARK,ve.MARQUEE,ie.MARQUEE,ve.MATH,ie.MATH,ve.MENU,ie.MENU,ve.META,ie.META,ve.MGLYPH,ie.MGLYPH,ve.MI,ie.MI,ve.MO,ie.MO,ve.MN,ie.MN,ve.MS,ie.MS,ve.MTEXT,ie.MTEXT,ve.NAV,ie.NAV,ve.NOBR,ie.NOBR,ve.NOFRAMES,ie.NOFRAMES,ve.NOEMBED,ie.NOEMBED,ve.NOSCRIPT,ie.NOSCRIPT,ve.OBJECT,ie.OBJECT,ve.OL,ie.OL,ve.OPTGROUP,ie.OPTGROUP,ve.OPTION,ie.OPTION,ve.P,ie.P,ve.PARAM,ie.PARAM,ve.PLAINTEXT,ie.PLAINTEXT,ve.PRE,ie.PRE,ve.RB,ie.RB,ve.RP,ie.RP,ve.RT,ie.RT,ve.RTC,ie.RTC,ve.RUBY,ie.RUBY,ve.S,ie.S,ve.SCRIPT,ie.SCRIPT,ve.SEARCH,ie.SEARCH,ve.SECTION,ie.SECTION,ve.SELECT,ie.SELECT,ve.SOURCE,ie.SOURCE,ve.SMALL,ie.SMALL,ve.SPAN,ie.SPAN,ve.STRIKE,ie.STRIKE,ve.STRONG,ie.STRONG,ve.STYLE,ie.STYLE,ve.SUB,ie.SUB,ve.SUMMARY,ie.SUMMARY,ve.SUP,ie.SUP,ve.TABLE,ie.TABLE,ve.TBODY,ie.TBODY,ve.TEMPLATE,ie.TEMPLATE,ve.TEXTAREA,ie.TEXTAREA,ve.TFOOT,ie.TFOOT,ve.TD,ie.TD,ve.TH,ie.TH,ve.THEAD,ie.THEAD,ve.TITLE,ie.TITLE,ve.TR,ie.TR,ve.TRACK,ie.TRACK,ve.TT,ie.TT,ve.U,ie.U,ve.UL,ie.UL,ve.SVG,ie.SVG,ve.VAR,ie.VAR,ve.WBR,ie.WBR,ve.XMP,ie.XMP;const ze=ie;Vn.HTML+"",ze.ADDRESS,ze.APPLET,ze.AREA,ze.ARTICLE,ze.ASIDE,ze.BASE,ze.BASEFONT,ze.BGSOUND,ze.BLOCKQUOTE,ze.BODY,ze.BR,ze.BUTTON,ze.CAPTION,ze.CENTER,ze.COL,ze.COLGROUP,ze.DD,ze.DETAILS,ze.DIR,ze.DIV,ze.DL,ze.DT,ze.EMBED,ze.FIELDSET,ze.FIGCAPTION,ze.FIGURE,ze.FOOTER,ze.FORM,ze.FRAME,ze.FRAMESET,ze.H1,ze.H2,ze.H3,ze.H4,ze.H5,ze.H6,ze.HEAD,ze.HEADER,ze.HGROUP,ze.HR,ze.HTML,ze.IFRAME,ze.IMG,ze.INPUT,ze.LI,ze.LINK,ze.LISTING,ze.MAIN,ze.MARQUEE,ze.MENU,ze.META,ze.NAV,ze.NOEMBED,ze.NOFRAMES,ze.NOSCRIPT,ze.OBJECT,ze.OL,ze.P,ze.PARAM,ze.PLAINTEXT,ze.PRE,ze.SCRIPT,ze.SECTION,ze.SELECT,ze.SOURCE,ze.STYLE,ze.SUMMARY,ze.TABLE,ze.TBODY,ze.TD,ze.TEMPLATE,ze.TEXTAREA,ze.TFOOT,ze.TH,ze.THEAD,ze.TITLE,ze.TR,ze.TRACK,ze.UL,ze.WBR,ze.XMP,Vn.MATHML+"",ze.MI,ze.MO,ze.MN,ze.MS,ze.MTEXT,ze.ANNOTATION_XML,Vn.SVG+"",ze.TITLE,ze.FOREIGN_OBJECT,ze.DESC,Vn.XLINK+"",Vn.XML+"",Vn.XMLNS+"",ze.H1,ze.H2,ze.H3,ze.H4,ze.H5,ze.H6,ve.STYLE,ve.SCRIPT,ve.XMP,ve.IFRAME,ve.NOEMBED,ve.NOFRAMES,ve.PLAINTEXT;var Zu;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Zu||(Zu={})),Zu.DATA,Zu.RCDATA,Zu.RAWTEXT,Zu.SCRIPT_DATA,Zu.PLAINTEXT,Zu.CDATA_SECTION,[...new Set([ie.DD,ie.DT,ie.LI,ie.OPTGROUP,ie.OPTION,ie.P,ie.RB,ie.RP,ie.RT,ie.RTC]),ie.CAPTION,ie.COLGROUP,ie.TBODY,ie.TD,ie.TFOOT,ie.TH,ie.THEAD,ie.TR];const sde=new Set([ie.APPLET,ie.CAPTION,ie.HTML,ie.MARQUEE,ie.OBJECT,ie.TABLE,ie.TD,ie.TEMPLATE,ie.TH]);[...sde,ie.OL,ie.UL],[...sde,ie.BUTTON],ie.ANNOTATION_XML,ie.MI,ie.MN,ie.MO,ie.MS,ie.MTEXT,ie.DESC,ie.FOREIGN_OBJECT,ie.TITLE,ie.TR,ie.TEMPLATE,ie.HTML,ie.TBODY,ie.TFOOT,ie.THEAD,ie.TEMPLATE,ie.HTML,ie.TABLE,ie.TEMPLATE,ie.HTML,ie.TD,ie.TH;var GD;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(GD||(GD={})),GD.Marker,new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Vn.XLINK,Vn.XLINK,Vn.XLINK,Vn.XLINK,Vn.XLINK,Vn.XLINK,Vn.XLINK,Vn.XML,Vn.XML,Vn.XMLNS,Vn.XMLNS,new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),ie.B,ie.BIG,ie.BLOCKQUOTE,ie.BODY,ie.BR,ie.CENTER,ie.CODE,ie.DD,ie.DIV,ie.DL,ie.DT,ie.EM,ie.EMBED,ie.H1,ie.H2,ie.H3,ie.H4,ie.H5,ie.H6,ie.HEAD,ie.HR,ie.I,ie.IMG,ie.LI,ie.LISTING,ie.MENU,ie.META,ie.NOBR,ie.OL,ie.P,ie.PRE,ie.RUBY,ie.S,ie.SMALL,ie.SPAN,ie.STRONG,ie.STRIKE,ie.SUB,ie.SUP,ie.TABLE,ie.TT,ie.U,ie.UL,ie.VAR;var cde;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(cde||(cde={})),ie.TABLE,ie.TBODY,ie.TFOOT,ie.THEAD,ie.TR,ie.CAPTION,ie.COL,ie.COLGROUP,ie.TBODY,ie.TD,ie.TFOOT,ie.TH,ie.THEAD,ie.TR,ve.AREA,ve.BASE,ve.BASEFONT,ve.BGSOUND,ve.BR,ve.COL,ve.EMBED,ve.FRAME,ve.HR,ve.IMG,ve.INPUT,ve.KEYGEN,ve.LINK,ve.META,ve.PARAM,ve.SOURCE,ve.TRACK,ve.WBR;const ude=(function(e){if(e==null)return Kbt;if(typeof e=="function")return wk(e);if(typeof e=="object")return Array.isArray(e)?Wbt(e):Gbt(e);if(typeof e=="string")return Xbt(e);throw new Error("Expected function, string, or object as test")});function Wbt(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=ude(e[n]);return wk(o);function o(...a){let i=-1;for(;++i<r.length;)if(r[i].apply(this,a))return!0;return!1}}function Gbt(e){const r=e;return wk(n);function n(o){const a=o;let i;for(i in e)if(a[i]!==r[i])return!1;return!0}}function Xbt(e){return wk(r);function r(n){return n&&n.type===e}}function wk(e){return r;function r(n,o,a){return!!(Zbt(n)&&e.call(this,n,typeof o=="number"?o:void 0,a||void 0))}}function Kbt(){return!0}function Zbt(e){return e!==null&&typeof e=="object"&&"type"in e}const Qbt=/["&'<>`]/g,Jbt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,evt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tvt=/[|\\{}()[\]^$+*?.]/g,dde=new WeakMap;function rvt(e,r){if(e=e.replace(r.subset?nvt(r.subset):Qbt,o),r.subset||r.escapeOnly)return e;return e.replace(Jbt,n).replace(evt,o);function n(a,i,l){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),r)}function o(a,i,l){return r.format(a.charCodeAt(0),l.charCodeAt(i+1),r)}}function nvt(e){let r=dde.get(e);return r||(r=ovt(e),dde.set(e,r)),r}function ovt(e){const r=[];let n=-1;for(;++n<e.length;)r.push(e[n].replace(tvt,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}const avt=/[\dA-Fa-f]/;function ivt(e,r,n){const o="&#x"+e.toString(16).toUpperCase();return n&&r&&!avt.test(String.fromCharCode(r))?o:o+";"}const lvt=/\d/;function svt(e,r,n){const o="&#"+String(e);return n&&r&&!lvt.test(String.fromCharCode(r))?o:o+";"}const cvt=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],XD={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},uvt=["cent","copy","divide","gt","lt","not","para","times"],pde={}.hasOwnProperty,KD={};let kk;for(kk in XD)pde.call(XD,kk)&&(KD[XD[kk]]=kk);const dvt=/[^\dA-Za-z]/;function pvt(e,r,n,o){const a=String.fromCharCode(e);if(pde.call(KD,a)){const i=KD[a],l="&"+i;return n&&cvt.includes(i)&&!uvt.includes(i)&&(!o||r&&r!==61&&dvt.test(String.fromCharCode(r)))?l:l+";"}return""}function hvt(e,r,n){let o=ivt(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=pvt(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=svt(e,r,n.omitOptionalSemicolons);i.length<o.length&&(o=i)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function Sg(e,r){return rvt(e,Object.assign({format:hvt},r))}const fvt=/^>|^->|<!--|-->|--!>|<!-$/g,mvt=[">"],gvt=["<",">"];function yvt(e,r,n,o){return o.settings.bogusComments?"<?"+Sg(e.value,Object.assign({},o.settings.characterReferences,{subset:mvt}))+">":"<!--"+e.value.replace(fvt,a)+"-->";function a(i){return Sg(i,Object.assign({},o.settings.characterReferences,{subset:gvt}))}}function bvt(e,r,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function hde(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const vvt=/[ \t\n\f\r]/g;function ZD(e){return typeof e=="object"?e.type==="text"?fde(e.value):!1:fde(e)}function fde(e){return e.replace(vvt,"")===""}const Yn=gde(1),mde=gde(-1),xvt=[];function gde(e){return r;function r(n,o,a){const i=n?n.children:xvt;let l=(o||0)+e,s=i[l];if(!a)for(;s&&ZD(s);)l+=e,s=i[l];return s}}const wvt={}.hasOwnProperty;function yde(e){return r;function r(n,o,a){return wvt.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const QD=yde({body:_vt,caption:JD,colgroup:JD,dd:Tvt,dt:Cvt,head:JD,html:kvt,li:Svt,optgroup:Rvt,option:Avt,p:Evt,rp:bde,rt:bde,tbody:Dvt,td:vde,tfoot:Pvt,th:vde,thead:Nvt,tr:$vt});function JD(e,r,n){const o=Yn(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&ZD(o.value.charAt(0)))}function kvt(e,r,n){const o=Yn(n,r);return!o||o.type!=="comment"}function _vt(e,r,n){const o=Yn(n,r);return!o||o.type!=="comment"}function Evt(e,r,n){const o=Yn(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Svt(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&o.tagName==="li"}function Cvt(e,r,n){const o=Yn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Tvt(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function bde(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Rvt(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Avt(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Nvt(e,r,n){const o=Yn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Dvt(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Pvt(e,r,n){return!Yn(n,r)}function $vt(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function vde(e,r,n){const o=Yn(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Mvt=yde({body:zvt,colgroup:Lvt,head:Ivt,html:Ovt,tbody:Bvt});function Ovt(e){const r=Yn(e,-1);return!r||r.type!=="comment"}function Ivt(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function zvt(e){const r=Yn(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ZD(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function Lvt(e,r,n){const o=mde(n,r),a=Yn(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&QD(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Bvt(e,r,n){const o=mde(n,r),a=Yn(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&QD(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const _k={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function jvt(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let l=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const s=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=Oue);const u=Fvt(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(l=!1),(u||!i||!Mvt(e,r,n))&&(s.push("<",e.tagName,u?" "+u:""),l&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!l&&(!i||!QD(e,r,n))&&s.push("</"+e.tagName+">"),s.join("")}function Fvt(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=Hvt(e,a,r[a]);i&&n.push(i)}}for(;++o<n.length;){const i=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&i!=='"'&&i!=="'"&&(n[o]+=" ")}return n.join("")}function Hvt(e,r,n){const o=Mue(e.schema,r),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1;let l=e.quote,s;if(o.overloadedBoolean&&(n===o.attribute||n==="")?n=!0:(o.boolean||o.overloadedBoolean)&&(typeof n!="string"||n===o.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Sg(o.attribute,Object.assign({},e.settings.characterReferences,{subset:_k.name[a][i]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?zue:jue)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=Sg(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_k.unquoted[a][i]}))),s!==n&&(e.settings.quoteSmart&&hde(n,l)>hde(n,e.alternative)&&(l=e.alternative),s=l+Sg(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?_k.single:_k.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const qvt=["<","&"];function xde(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Sg(e.value,Object.assign({},o.settings.characterReferences,{subset:qvt}))}function Uvt(e,r,n,o){return o.settings.allowDangerousHtml?e.value:xde(e,r,n,o)}function Vvt(e,r,n,o){return o.all(e)}tde("type",{invalid:Yvt,unknown:Wvt,handlers:{comment:yvt,doctype:bvt,element:jvt,raw:Uvt,root:Vvt,text:xde}});function Yvt(e){throw new Error("Expected node, not `"+e+"`")}function Wvt(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const jb=Ek(/[A-Za-z]/),eP=Ek(/[\dA-Za-z]/);function Gvt(e){return e!==null&&(e<32||e===127)}function Cg(e){return e!==null&&(e<0||e===32)}const wde=Ek(new RegExp("\\p{P}|\\p{S}","u")),Fb=Ek(/\s/);function Ek(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}ude(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xvt(e,r,n,o){const a=e.length;let i=0,l;if(r<0?r=-r>a?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)l=Array.from(o),l.unshift(r,n),e.splice(...l);else for(n&&e.splice(r,n);i<o.length;)l=o.slice(i,i+1e4),l.unshift(r,0),e.splice(...l),i+=1e4,r+=1e4}const Kvt={tokenize:t3t,partial:!0},kde={tokenize:r3t,partial:!0},_de={tokenize:n3t,partial:!0},Ede={tokenize:o3t,partial:!0},Zvt={tokenize:a3t,partial:!0},Sde={name:"wwwAutolink",tokenize:Jvt,previous:Tde},Cde={name:"protocolAutolink",tokenize:e3t,previous:Rde},Tc={name:"emailAutolink",tokenize:Qvt,previous:Ade},Rc={};let rh=48;for(;rh<123;)Rc[rh]=Tc,rh++,rh===58?rh=65:rh===91&&(rh=97);Rc[43]=Tc,Rc[45]=Tc,Rc[46]=Tc,Rc[95]=Tc,Rc[72]=[Tc,Cde],Rc[104]=[Tc,Cde],Rc[87]=[Tc,Sde],Rc[119]=[Tc,Sde];function Qvt(e,r,n){const o=this;let a,i;return l;function l(p){return!tP(p)||!Ade.call(o,o.previous)||rP(o.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return tP(p)?(e.consume(p),s):p===64?(e.consume(p),c):n(p)}function c(p){return p===46?e.check(Zvt,d,u)(p):p===45||p===95||eP(p)?(i=!0,e.consume(p),c):d(p)}function u(p){return e.consume(p),a=!0,c}function d(p){return i&&a&&jb(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(p)):n(p)}}function Jvt(e,r,n){const o=this;return a;function a(l){return l!==87&&l!==119||!Tde.call(o,o.previous)||rP(o.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Kvt,e.attempt(kde,e.attempt(_de,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(l)}}function e3t(e,r,n){const o=this;let a="",i=!1;return l;function l(p){return(p===72||p===104)&&Rde.call(o,o.previous)&&!rP(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),s):n(p)}function s(p){if(jb(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),s;if(p===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(p),c}return n(p)}function c(p){return p===47?(e.consume(p),i?u:(i=!0,c)):n(p)}function u(p){return p===null||Gvt(p)||Cg(p)||Fb(p)||wde(p)?n(p):e.attempt(kde,e.attempt(_de,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(p)}}function t3t(e,r,n){let o=0;return a;function a(l){return(l===87||l===119)&&o<3?(o++,e.consume(l),a):l===46&&o===3?(e.consume(l),i):n(l)}function i(l){return l===null?n(l):r(l)}}function r3t(e,r,n){let o,a,i;return l;function l(u){return u===46||u===95?e.check(Ede,c,s)(u):u===null||Cg(u)||Fb(u)||u!==45&&wde(u)?c(u):(i=!0,e.consume(u),l)}function s(u){return u===95?o=!0:(a=o,o=void 0),e.consume(u),l}function c(u){return a||o||!i?n(u):r(u)}}function n3t(e,r){let n=0,o=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&o<n?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Ede,r,i)(l):l===null||Cg(l)||Fb(l)?r(l):(e.consume(l),a)}function i(l){return l===41&&o++,e.consume(l),a}}function o3t(e,r,n){return o;function o(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),o):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||Cg(s)||Fb(s)?r(s):n(s)}function a(s){return s===null||s===40||s===91||Cg(s)||Fb(s)?r(s):o(s)}function i(s){return jb(s)?l(s):n(s)}function l(s){return s===59?(e.consume(s),o):jb(s)?(e.consume(s),l):n(s)}}function a3t(e,r,n){return o;function o(i){return e.consume(i),a}function a(i){return eP(i)?n(i):r(i)}}function Tde(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Cg(e)}function Rde(e){return!jb(e)}function Ade(e){return!(e===47||tP(e))}function tP(e){return e===43||e===45||e===46||e===95||eP(e)}function rP(e){let r=e.length,n=!1;for(;r--;){const o=e[r][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Nde={resolveAll:i3t};function i3t(e){let r=-1;const n=[];for(;++r<e.length;){const o=e[r][1];if(n.push(e[r]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const a=o.type==="labelImage"?4:2;o.type="data",r+=a}}return e.length!==n.length&&Xvt(e,0,e.length,n),e}Nde.resolveAll,Nde.resolveAll;function l3t(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dde(e.position):"start"in e||"end"in e?Dde(e):"line"in e||"column"in e?nP(e):""}function nP(e){return Pde(e&&e.line)+":"+Pde(e&&e.column)}function Dde(e){return nP(e&&e.start)+"-"+nP(e&&e.end)}function Pde(e){return e&&typeof e=="number"?e:1}function $de(e){if(e)throw e}var oP,Mde;function s3t(){if(Mde)return oP;Mde=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):r.call(c)==="[object Array]"},i=function(c){if(!c||r.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!d)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},l=function(c,u){n&&u.name==="__proto__"?n(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},s=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(o)return o(c,u).value}else return;return c[u]};return oP=function c(){var u,d,p,f,g,b,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<k;++w)if(u=arguments[w],u!=null)for(d in u)p=s(x,d),f=s(u,d),x!==f&&(C&&f&&(i(f)||(g=a(f)))?(g?(g=!1,b=p&&a(p)?p:[]):b=p&&i(p)?p:{},l(x,{name:d,newValue:c(C,b,f)})):typeof f<"u"&&l(x,{name:d,newValue:f}));return x},oP}var c3t=s3t();const aP=_ae(c3t);function iP(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function u3t(){const e=[],r={run:n,use:o};return r;function n(...a){let i=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...a);function s(c,...u){const d=e[++i];let p=-1;if(c){l(c);return}for(;++p<a.length;)(u[p]===null||u[p]===void 0)&&(u[p]=a[p]);a=u,d?d3t(d,s)(...u):l(null,...u)}}function o(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),r}}function d3t(e,r){let n;return o;function o(...l){const s=e.length>l.length;let c;s&&l.push(a);try{c=e.apply(this,l)}catch(u){const d=u;if(s&&n)throw d;return a(d)}s||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(l,...s){n||(n=!0,r(l,...s))}function i(l){a(null,l)}}class pa extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(l=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=l3t(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}pa.prototype.file="",pa.prototype.name="",pa.prototype.reason="",pa.prototype.message="",pa.prototype.stack="",pa.prototype.column=void 0,pa.prototype.line=void 0,pa.prototype.ancestors=void 0,pa.prototype.cause=void 0,pa.prototype.fatal=void 0,pa.prototype.place=void 0,pa.prototype.ruleId=void 0,pa.prototype.source=void 0;const Es={basename:p3t,dirname:h3t,extname:f3t,join:m3t,sep:"/"};function p3t(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Hb(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let l=-1,s=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),s>-1&&(e.codePointAt(a)===r.codePointAt(s--)?s<0&&(o=a):(s=-1,o=l));return n===o?o=l:o<0&&(o=e.length),e.slice(n,o)}function h3t(e){if(Hb(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function f3t(e){Hb(e);let r=e.length,n=-1,o=0,a=-1,i=0,l;for(;r--;){const s=e.codePointAt(r);if(s===47){if(l){o=r+1;break}continue}n<0&&(l=!0,n=r+1),s===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function m3t(...e){let r=-1,n;for(;++r<e.length;)Hb(e[r]),e[r]&&(n=n===void 0?e[r]:n+"/"+e[r]);return n===void 0?".":g3t(n)}function g3t(e){Hb(e);const r=e.codePointAt(0)===47;let n=y3t(e,!r);return n.length===0&&!r&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function y3t(e,r){let n="",o=0,a=-1,i=0,l=-1,s,c;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(a===l-1||i===1))if(a!==l-1&&i===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",o=0,a=l,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else s===46&&i>-1?i++:i=-1}return n}function Hb(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b3t={cwd:v3t};function v3t(){return"/"}function lP(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function x3t(e){if(typeof e=="string")e=new URL(e);else if(!lP(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return w3t(e)}function w3t(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n<r.length;)if(r.codePointAt(n)===37&&r.codePointAt(n+1)===50){const o=r.codePointAt(n+2);if(o===70||o===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(r)}const sP=["history","path","basename","stem","extname","dirname"];class k3t{constructor(r){let n;r?lP(r)?n={path:r}:typeof r=="string"||_3t(r)?n={value:r}:n=r:n={},this.cwd="cwd"in n?"":b3t.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<sP.length;){const i=sP[o];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)sP.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Es.basename(this.path):void 0}set basename(r){uP(r,"basename"),cP(r,"basename"),this.path=Es.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Es.dirname(this.path):void 0}set dirname(r){Ode(this.basename,"dirname"),this.path=Es.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Es.extname(this.path):void 0}set extname(r){if(cP(r,"extname"),Ode(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Es.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){lP(r)&&(r=x3t(r)),uP(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Es.basename(this.path,this.extname):void 0}set stem(r){uP(r,"stem"),cP(r,"stem"),this.path=Es.join(this.dirname||"",r+(this.extname||""))}fail(r,n,o){const a=this.message(r,n,o);throw a.fatal=!0,a}info(r,n,o){const a=this.message(r,n,o);return a.fatal=void 0,a}message(r,n,o){const a=new pa(r,n,o);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function cP(e,r){if(e&&e.includes(Es.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Es.sep+"`")}function uP(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Ode(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function _3t(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const E3t=(function(e){const r=this.constructor.prototype,n=r[e],o=function(){return n.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),S3t={}.hasOwnProperty;class dP extends E3t{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=u3t()}copy(){const r=new dP;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];r.use(...o)}return r.data(aP(!0,{},this.namespace)),r}data(r,n){return typeof r=="string"?arguments.length===2?(fP("data",this.frozen),this.namespace[r]=n,this):S3t.call(this.namespace,r)&&this.namespace[r]||void 0:r?(fP("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const a=n.call(r,...o);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const n=Sk(r),o=this.parser||this.Parser;return pP("parse",o),o(String(n),n)}process(r,n){const o=this;return this.freeze(),pP("process",this.parser||this.Parser),hP("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const s=Sk(r),c=o.parse(s);o.run(c,s,function(d,p,f){if(d||!p||!f)return u(d);const g=p,b=o.stringify(g,f);T3t(b)?f.value=b:f.result=b,u(d,f)});function u(d,p){d||!p?l(d):i?i(p):n(void 0,p)}}}processSync(r){let n=!1,o;return this.freeze(),pP("processSync",this.parser||this.Parser),hP("processSync",this.compiler||this.Compiler),this.process(r,a),zde("processSync","process",n),o;function a(i,l){n=!0,$de(i),o=l}}run(r,n,o){Ide(r),this.freeze();const a=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?i(void 0,o):new Promise(i);function i(l,s){const c=Sk(n);a.run(r,c,u);function u(d,p,f){const g=p||r;d?s(d):l?l(g):o(void 0,g,f)}}}runSync(r,n){let o=!1,a;return this.run(r,n,i),zde("runSync","run",o),a;function i(l,s){$de(l),a=s,o=!0}}stringify(r,n){this.freeze();const o=Sk(n),a=this.compiler||this.Compiler;return hP("stringify",a),Ide(r),a(r,o)}use(r,...n){const o=this.attachers,a=this.namespace;if(fP("use",this.frozen),r!=null)if(typeof r=="function")c(r,n);else if(typeof r=="object")Array.isArray(r)?s(r):l(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...p]=u;c(d,p)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(a.settings=aP(!0,a.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const p=u[d];i(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let p=-1,f=-1;for(;++p<o.length;)if(o[p][0]===u){f=p;break}if(f===-1)o.push([u,...d]);else if(d.length>0){let[g,...b]=d;const x=o[f][1];iP(x)&&iP(g)&&(g=aP(!0,x,g)),o[f]=[u,g,...b]}}}}new dP().freeze();function pP(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hP(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fP(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ide(e){if(!iP(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zde(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Sk(e){return C3t(e)?e:new k3t(e)}function C3t(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function T3t(e){return typeof e=="string"||R3t(e)}function R3t(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}S.createContext({});const Lde=(e,r,n)=>n>r?r:n<e?e:n,A3t=e=>e,Ck={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Bde={...Ck,transform:e=>Lde(0,1,e)};({...Ck});const qb=e=>Math.round(e*1e5)/1e5,jde=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N3t(e){return e==null}const D3t=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mP=(e,r)=>n=>!!(typeof n=="string"&&D3t.test(n)&&n.startsWith(e)||r&&!N3t(n)&&Object.prototype.hasOwnProperty.call(n,r)),Fde=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,l,s]=o.match(jde);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},P3t=e=>Lde(0,255,e),gP={...Ck,transform:e=>Math.round(P3t(e))},Ub={test:mP("rgb","red"),parse:Fde("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+gP.transform(e)+", "+gP.transform(r)+", "+gP.transform(n)+", "+qb(Bde.transform(o))+")"};function $3t(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const Hde={test:mP("#"),parse:$3t,transform:Ub.transform},M3t=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),yP=M3t("%");({...yP});const Tk={test:mP("hsl","hue"),parse:Fde("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+yP.transform(qb(r))+", "+yP.transform(qb(n))+", "+qb(Bde.transform(o))+")"},nh={test:e=>Ub.test(e)||Hde.test(e)||Tk.test(e),parse:e=>Ub.test(e)?Ub.parse(e):Tk.test(e)?Tk.parse(e):Hde.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ub.transform(e):Tk.transform(e),getAnimatableNone:e=>{const r=nh.parse(e);return r.alpha=0,nh.transform(r)}},O3t=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I3t(e){return isNaN(e)&&typeof e=="string"&&(e.match(jde)?.length||0)+(e.match(O3t)?.length||0)>0}const qde="number",Ude="color",z3t="var",L3t="var(",Vde="${}",B3t=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yde(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const l=r.replace(B3t,s=>(nh.test(s)?(o.color.push(i),a.push(Ude),n.push(nh.parse(s))):s.startsWith(L3t)?(o.var.push(i),a.push(z3t),n.push(s)):(o.number.push(i),a.push(qde),n.push(parseFloat(s))),++i,Vde)).split(Vde);return{values:n,split:l,indexes:o,types:a}}function Wde(e){return Yde(e).values}function Gde(e){const{split:r,types:n}=Yde(e),o=r.length;return a=>{let i="";for(let l=0;l<o;l++)if(i+=r[l],a[l]!==void 0){const s=n[l];s===qde?i+=qb(a[l]):s===Ude?i+=nh.transform(a[l]):i+=a[l]}return i}}const j3t=e=>typeof e=="number"?0:nh.test(e)?nh.getAnimatableNone(e):e;function F3t(e){const r=Wde(e);return Gde(e)(r.map(j3t))}const H3t={test:I3t,parse:Wde,createTransformer:Gde,getAnimatableNone:F3t},Xde=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];new Set(Xde);const q3t=new Set(["x","y","z"]);Xde.filter(e=>!q3t.has(e)),{...H3t},{...Ck},S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),S.createContext(null),S.createContext({strict:!1});function j_t(e){}try{(void 0).default}catch{}""+(e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase())("framerAppearId"),S.createContext({});const Kde=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e);Kde("applewebkit/")&&Kde("chrome/"),S.createContext(null);var bP,Zde;function vP(){if(Zde)return bP;Zde=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(d){d&&(this._isDirected=Object.hasOwn(d,"directed")?d.directed:!0,this._isMultigraph=Object.hasOwn(d,"multigraph")?d.multigraph:!1,this._isCompound=Object.hasOwn(d,"compound")?d.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(d){return this._label=d,this}graph(){return this._label}setDefaultNodeLabel(d){return this._defaultNodeLabelFn=d,typeof d!="function"&&(this._defaultNodeLabelFn=()=>d),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var d=this;return this.nodes().filter(p=>Object.keys(d._in[p]).length===0)}sinks(){var d=this;return this.nodes().filter(p=>Object.keys(d._out[p]).length===0)}setNodes(d,p){var f=arguments,g=this;return d.forEach(function(b){f.length>1?g.setNode(b,p):g.setNode(b)}),this}setNode(d,p){return Object.hasOwn(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=p),this):(this._nodes[d]=arguments.length>1?p:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]=r,this._children[d]={},this._children[r][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)}node(d){return this._nodes[d]}hasNode(d){return Object.hasOwn(this._nodes,d)}removeNode(d){var p=this;if(Object.hasOwn(this._nodes,d)){var f=g=>p.removeEdge(p._edgeObjs[g]);delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],this.children(d).forEach(function(g){p.setParent(g)}),delete this._children[d]),Object.keys(this._in[d]).forEach(f),delete this._in[d],delete this._preds[d],Object.keys(this._out[d]).forEach(f),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this}setParent(d,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(p===void 0)p=r;else{p+="";for(var f=p;f!==void 0;f=this.parent(f))if(f===d)throw new Error("Setting "+p+" as parent of "+d+" would create a cycle");this.setNode(p)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=p,this._children[p][d]=!0,this}_removeFromParentsChildList(d){delete this._children[this._parent[d]][d]}parent(d){if(this._isCompound){var p=this._parent[d];if(p!==r)return p}}children(d=r){if(this._isCompound){var p=this._children[d];if(p)return Object.keys(p)}else{if(d===r)return this.nodes();if(this.hasNode(d))return[]}}predecessors(d){var p=this._preds[d];if(p)return Object.keys(p)}successors(d){var p=this._sucs[d];if(p)return Object.keys(p)}neighbors(d){var p=this.predecessors(d);if(p){const g=new Set(p);for(var f of this.successors(d))g.add(f);return Array.from(g.values())}}isLeaf(d){var p;return this.isDirected()?p=this.successors(d):p=this.neighbors(d),p.length===0}filterNodes(d){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var f=this;Object.entries(this._nodes).forEach(function([x,w]){d(x)&&p.setNode(x,w)}),Object.values(this._edgeObjs).forEach(function(x){p.hasNode(x.v)&&p.hasNode(x.w)&&p.setEdge(x,f.edge(x))});var g={};function b(x){var w=f.parent(x);return w===void 0||p.hasNode(w)?(g[x]=w,w):w in g?g[w]:b(w)}return this._isCompound&&p.nodes().forEach(x=>p.setParent(x,b(x))),p}setDefaultEdgeLabel(d){return this._defaultEdgeLabelFn=d,typeof d!="function"&&(this._defaultEdgeLabelFn=()=>d),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(d,p){var f=this,g=arguments;return d.reduce(function(b,x){return g.length>1?f.setEdge(b,x,p):f.setEdge(b,x),x}),this}setEdge(){var d,p,f,g,b=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(d=x.v,p=x.w,f=x.name,arguments.length===2&&(g=arguments[1],b=!0)):(d=x,p=arguments[1],f=arguments[3],arguments.length>2&&(g=arguments[2],b=!0)),d=""+d,p=""+p,f!==void 0&&(f=""+f);var w=l(this._isDirected,d,p,f);if(Object.hasOwn(this._edgeLabels,w))return b&&(this._edgeLabels[w]=g),this;if(f!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(p),this._edgeLabels[w]=b?g:this._defaultEdgeLabelFn(d,p,f);var k=s(this._isDirected,d,p,f);return d=k.v,p=k.w,Object.freeze(k),this._edgeObjs[w]=k,a(this._preds[p],d),a(this._sucs[d],p),this._in[p][w]=k,this._out[d][w]=k,this._edgeCount++,this}edge(d,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,p,f);return this._edgeLabels[g]}edgeAsObj(){const d=this.edge(...arguments);return typeof d!="object"?{label:d}:d}hasEdge(d,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,p,f);return Object.hasOwn(this._edgeLabels,g)}removeEdge(d,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,d,p,f),b=this._edgeObjs[g];return b&&(d=b.v,p=b.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[p],d),i(this._sucs[d],p),delete this._in[p][g],delete this._out[d][g],this._edgeCount--),this}inEdges(d,p){var f=this._in[d];if(f){var g=Object.values(f);return p?g.filter(b=>b.v===p):g}}outEdges(d,p){var f=this._out[d];if(f){var g=Object.values(f);return p?g.filter(b=>b.w===p):g}}nodeEdges(d,p){var f=this.inEdges(d,p);if(f)return f.concat(this.outEdges(d,p))}}function a(u,d){u[d]?u[d]++:u[d]=1}function i(u,d){--u[d]||delete u[d]}function l(u,d,p,f){var g=""+d,b=""+p;if(!u&&g>b){var x=g;g=b,b=x}return g+n+b+n+(f===void 0?e:f)}function s(u,d,p,f){var g=""+d,b=""+p;if(!u&&g>b){var x=g;g=b,b=x}var w={v:g,w:b};return f&&(w.name=f),w}function c(u,d){return l(u,d.v,d.w,d.name)}return bP=o,bP}var Qde,Jde;function U3t(){return Jde||(Jde=1,Qde="2.2.4"),Qde}var epe,tpe;function V3t(){return tpe||(tpe=1,epe={Graph:vP(),version:U3t()}),epe}var xP,rpe;function Y3t(){if(rpe)return xP;rpe=1;var e=vP();xP={write:r,read:a};function r(i){var l={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(l.value=structuredClone(i.graph())),l}function n(i){return i.nodes().map(function(l){var s=i.node(l),c=i.parent(l),u={v:l};return s!==void 0&&(u.value=s),c!==void 0&&(u.parent=c),u})}function o(i){return i.edges().map(function(l){var s=i.edge(l),c={v:l.v,w:l.w};return l.name!==void 0&&(c.name=l.name),s!==void 0&&(c.value=s),c})}function a(i){var l=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(s){l.setNode(s.v,s.value),s.parent&&l.setParent(s.v,s.parent)}),i.edges.forEach(function(s){l.setEdge({v:s.v,w:s.w,name:s.name},s.value)}),l}return xP}var wP,npe;function W3t(){if(npe)return wP;npe=1,wP=e;function e(r){var n={},o=[],a;function i(l){Object.hasOwn(n,l)||(n[l]=!0,a.push(l),r.successors(l).forEach(i),r.predecessors(l).forEach(i))}return r.nodes().forEach(function(l){a=[],i(l),a.length&&o.push(a)}),o}return wP}var kP,ope;function ape(){if(ope)return kP;ope=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,l=i.length;return a[n]=l,i.push({key:n,priority:o}),this._decrease(l),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,l=n;a<o.length&&(l=o[a].priority<o[l].priority?a:l,i<o.length&&(l=o[i].priority<o[l].priority?i:l),l!==n&&(this._swap(n,l),this._heapify(l)))}_decrease(n){for(var o=this._arr,a=o[n].priority,i;n!==0&&(i=n>>1,!(o[i].priority<a));)this._swap(n,i),n=i}_swap(n,o){var a=this._arr,i=this._keyIndices,l=a[n],s=a[o];a[n]=s,a[o]=l,i[s.key]=n,i[l.key]=o}}return kP=e,kP}var _P,ipe;function lpe(){if(ipe)return _P;ipe=1;var e=ape();_P=n;var r=()=>1;function n(a,i,l,s){return o(a,String(i),l||r,s||function(c){return a.outEdges(c)})}function o(a,i,l,s){var c={},u=new e,d,p,f=function(g){var b=g.v!==d?g.v:g.w,x=c[b],w=l(g),k=p.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+w);k<x.distance&&(x.distance=k,x.predecessor=d,u.decrease(b,k))};for(a.nodes().forEach(function(g){var b=g===i?0:Number.POSITIVE_INFINITY;c[g]={distance:b},u.add(g,b)});u.size()>0&&(d=u.removeMin(),p=c[d],p.distance!==Number.POSITIVE_INFINITY);)s(d).forEach(f);return c}return _P}var EP,spe;function G3t(){if(spe)return EP;spe=1;var e=lpe();EP=r;function r(n,o,a){return n.nodes().reduce(function(i,l){return i[l]=e(n,l,o,a),i},{})}return EP}var SP,cpe;function upe(){if(cpe)return SP;cpe=1,SP=e;function e(r){var n=0,o=[],a={},i=[];function l(s){var c=a[s]={onStack:!0,lowlink:n,index:n++};if(o.push(s),r.successors(s).forEach(function(p){Object.hasOwn(a,p)?a[p].onStack&&(c.lowlink=Math.min(c.lowlink,a[p].index)):(l(p),c.lowlink=Math.min(c.lowlink,a[p].lowlink))}),c.lowlink===c.index){var u=[],d;do d=o.pop(),a[d].onStack=!1,u.push(d);while(s!==d);i.push(u)}}return r.nodes().forEach(function(s){Object.hasOwn(a,s)||l(s)}),i}return SP}var CP,dpe;function X3t(){if(dpe)return CP;dpe=1;var e=upe();CP=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return CP}var TP,ppe;function K3t(){if(ppe)return TP;ppe=1,TP=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(l){return o.outEdges(l)})}function n(o,a,i){var l={},s=o.nodes();return s.forEach(function(c){l[c]={},l[c][c]={distance:0},s.forEach(function(u){c!==u&&(l[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var d=u.v===c?u.w:u.v,p=a(u);l[c][d]={distance:p,predecessor:c}})}),s.forEach(function(c){var u=l[c];s.forEach(function(d){var p=l[d];s.forEach(function(f){var g=p[c],b=u[f],x=p[f],w=g.distance+b.distance;w<x.distance&&(x.distance=w,x.predecessor=b.predecessor)})})}),l}return TP}var RP,hpe;function fpe(){if(hpe)return RP;hpe=1;function e(n){var o={},a={},i=[];function l(s){if(Object.hasOwn(a,s))throw new r;Object.hasOwn(o,s)||(a[s]=!0,o[s]=!0,n.predecessors(s).forEach(l),delete a[s],i.push(s))}if(n.sinks().forEach(l),Object.keys(o).length!==n.nodeCount())throw new r;return i}class r extends Error{constructor(){super(...arguments)}}return RP=e,e.CycleException=r,RP}var AP,mpe;function Z3t(){if(mpe)return AP;mpe=1;var e=fpe();AP=r;function r(n){try{e(n)}catch(o){if(o instanceof e.CycleException)return!1;throw o}return!0}return AP}var NP,gpe;function ype(){if(gpe)return NP;gpe=1,NP=e;function e(a,i,l){Array.isArray(i)||(i=[i]);var s=a.isDirected()?p=>a.successors(p):p=>a.neighbors(p),c=l==="post"?r:n,u=[],d={};return i.forEach(p=>{if(!a.hasNode(p))throw new Error("Graph does not have node: "+p);c(p,s,d,u)}),u}function r(a,i,l,s){for(var c=[[a,!1]];c.length>0;){var u=c.pop();u[1]?s.push(u[0]):Object.hasOwn(l,u[0])||(l[u[0]]=!0,c.push([u[0],!0]),o(i(u[0]),d=>c.push([d,!1])))}}function n(a,i,l,s){for(var c=[a];c.length>0;){var u=c.pop();Object.hasOwn(l,u)||(l[u]=!0,s.push(u),o(i(u),d=>c.push(d)))}}function o(a,i){for(var l=a.length;l--;)i(a[l],l,a);return a}return NP}var DP,bpe;function Q3t(){if(bpe)return DP;bpe=1;var e=ype();DP=r;function r(n,o){return e(n,o,"post")}return DP}var PP,vpe;function J3t(){if(vpe)return PP;vpe=1;var e=ype();PP=r;function r(n,o){return e(n,o,"pre")}return PP}var $P,xpe;function ext(){if(xpe)return $P;xpe=1;var e=vP(),r=ape();$P=n;function n(o,a){var i=new e,l={},s=new r,c;function u(p){var f=p.v===c?p.w:p.v,g=s.priority(f);if(g!==void 0){var b=a(p);b<g&&(l[f]=c,s.decrease(f,b))}}if(o.nodeCount()===0)return i;o.nodes().forEach(function(p){s.add(p,Number.POSITIVE_INFINITY),i.setNode(p)}),s.decrease(o.nodes()[0],0);for(var d=!1;s.size()>0;){if(c=s.removeMin(),Object.hasOwn(l,c))i.setEdge(c,l[c]);else{if(d)throw new Error("Input graph is not connected: "+o);d=!0}o.nodeEdges(c).forEach(u)}return i}return $P}var wpe,kpe;function txt(){return kpe||(kpe=1,wpe={components:W3t(),dijkstra:lpe(),dijkstraAll:G3t(),findCycles:X3t(),floydWarshall:K3t(),isAcyclic:Z3t(),postorder:Q3t(),preorder:J3t(),prim:ext(),tarjan:upe(),topsort:fpe()}),wpe}var MP,_pe;function Bl(){if(_pe)return MP;_pe=1;var e=V3t();return MP={Graph:e.Graph,json:Y3t(),alg:txt(),version:e.version},MP}var OP,Epe;function rxt(){if(Epe)return OP;Epe=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,l=i._prev;for(;l!==i;)a.push(JSON.stringify(l,n)),l=l._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return OP=e,OP}var IP,Spe;function nxt(){if(Spe)return IP;Spe=1;let e=Bl().Graph,r=rxt();IP=o;let n=()=>1;function o(u,d){if(u.nodeCount()<=1)return[];let p=l(u,d||n);return a(p.graph,p.buckets,p.zeroIdx).flatMap(f=>u.outEdges(f.v,f.w))}function a(u,d,p){let f=[],g=d[d.length-1],b=d[0],x;for(;u.nodeCount();){for(;x=b.dequeue();)i(u,d,p,x);for(;x=g.dequeue();)i(u,d,p,x);if(u.nodeCount()){for(let w=d.length-2;w>0;--w)if(x=d[w].dequeue(),x){f=f.concat(i(u,d,p,x,!0));break}}}return f}function i(u,d,p,f,g){let b=g?[]:void 0;return u.inEdges(f.v).forEach(x=>{let w=u.edge(x),k=u.node(x.v);g&&b.push({v:x.v,w:x.w}),k.out-=w,s(d,p,k)}),u.outEdges(f.v).forEach(x=>{let w=u.edge(x),k=x.w,C=u.node(k);C.in-=w,s(d,p,C)}),u.removeNode(f.v),b}function l(u,d){let p=new e,f=0,g=0;u.nodes().forEach(w=>{p.setNode(w,{v:w,in:0,out:0})}),u.edges().forEach(w=>{let k=p.edge(w.v,w.w)||0,C=d(w),_=k+C;p.setEdge(w.v,w.w,_),g=Math.max(g,p.node(w.v).out+=C),f=Math.max(f,p.node(w.w).in+=C)});let b=c(g+f+3).map(()=>new r),x=f+1;return p.nodes().forEach(w=>{s(b,x,p.node(w))}),{graph:p,buckets:b,zeroIdx:x}}function s(u,d,p){p.out?p.in?u[p.out-p.in+d].enqueue(p):u[u.length-1].enqueue(p):u[0].enqueue(p)}function c(u){const d=[];for(let p=0;p<u;p++)d.push(p);return d}return IP}var zP,Cpe;function On(){if(Cpe)return zP;Cpe=1;let e=Bl().Graph;zP={addBorderNode:d,addDummyNode:r,applyWithChunking:g,asNonCompoundGraph:o,buildLayerMatrix:s,intersectRect:l,mapValues:A,maxRank:b,normalizeRanks:c,notime:k,partition:x,pick:R,predecessorWeights:i,range:T,removeEmptyRanks:u,simplify:n,successorWeights:a,time:w,uniqueId:_,zipObject:D};function r(N,$,O,j){for(var L=j;N.hasNode(L);)L=_(j);return O.dummy=$,N.setNode(L,O),L}function n(N){let $=new e().setGraph(N.graph());return N.nodes().forEach(O=>$.setNode(O,N.node(O))),N.edges().forEach(O=>{let j=$.edge(O.v,O.w)||{weight:0,minlen:1},L=N.edge(O);$.setEdge(O.v,O.w,{weight:j.weight+L.weight,minlen:Math.max(j.minlen,L.minlen)})}),$}function o(N){let $=new e({multigraph:N.isMultigraph()}).setGraph(N.graph());return N.nodes().forEach(O=>{N.children(O).length||$.setNode(O,N.node(O))}),N.edges().forEach(O=>{$.setEdge(O,N.edge(O))}),$}function a(N){let $=N.nodes().map(O=>{let j={};return N.outEdges(O).forEach(L=>{j[L.w]=(j[L.w]||0)+N.edge(L).weight}),j});return D(N.nodes(),$)}function i(N){let $=N.nodes().map(O=>{let j={};return N.inEdges(O).forEach(L=>{j[L.v]=(j[L.v]||0)+N.edge(L).weight}),j});return D(N.nodes(),$)}function l(N,$){let O=N.x,j=N.y,L=$.x-O,Y=$.y-j,M=N.width/2,q=N.height/2;if(!L&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let z,H;return Math.abs(Y)*M>Math.abs(L)*q?(Y<0&&(q=-q),z=q*L/Y,H=q):(L<0&&(M=-M),z=M,H=M*Y/L),{x:O+z,y:j+H}}function s(N){let $=T(b(N)+1).map(()=>[]);return N.nodes().forEach(O=>{let j=N.node(O),L=j.rank;L!==void 0&&($[L][j.order]=O)}),$}function c(N){let $=N.nodes().map(j=>{let L=N.node(j).rank;return L===void 0?Number.MAX_VALUE:L}),O=g(Math.min,$);N.nodes().forEach(j=>{let L=N.node(j);Object.hasOwn(L,"rank")&&(L.rank-=O)})}function u(N){let $=N.nodes().map(M=>N.node(M).rank),O=g(Math.min,$),j=[];N.nodes().forEach(M=>{let q=N.node(M).rank-O;j[q]||(j[q]=[]),j[q].push(M)});let L=0,Y=N.graph().nodeRankFactor;Array.from(j).forEach((M,q)=>{M===void 0&&q%Y!==0?--L:M!==void 0&&L&&M.forEach(z=>N.node(z).rank+=L)})}function d(N,$,O,j){let L={width:0,height:0};return arguments.length>=4&&(L.rank=O,L.order=j),r(N,"border",L,$)}function p(N,$=f){const O=[];for(let j=0;j<N.length;j+=$){const L=N.slice(j,j+$);O.push(L)}return O}const f=65535;function g(N,$){if($.length>f){const O=p($);return N.apply(null,O.map(j=>N.apply(null,j)))}else return N.apply(null,$)}function b(N){const $=N.nodes().map(O=>{let j=N.node(O).rank;return j===void 0?Number.MIN_VALUE:j});return g(Math.max,$)}function x(N,$){let O={lhs:[],rhs:[]};return N.forEach(j=>{$(j)?O.lhs.push(j):O.rhs.push(j)}),O}function w(N,$){let O=Date.now();try{return $()}finally{console.log(N+" time: "+(Date.now()-O)+"ms")}}function k(N,$){return $()}let C=0;function _(N){var $=++C;return N+(""+$)}function T(N,$,O=1){$==null&&($=N,N=0);let j=Y=>Y<$;O<0&&(j=Y=>$<Y);const L=[];for(let Y=N;j(Y);Y+=O)L.push(Y);return L}function R(N,$){const O={};for(const j of $)N[j]!==void 0&&(O[j]=N[j]);return O}function A(N,$){let O=$;return typeof $=="string"&&(O=j=>j[$]),Object.entries(N).reduce((j,[L,Y])=>(j[L]=O(Y,L),j),{})}function D(N,$){return N.reduce((O,j,L)=>(O[j]=$[L],O),{})}return zP}var LP,Tpe;function oxt(){if(Tpe)return LP;Tpe=1;let e=nxt(),r=On().uniqueId;LP={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,l(i)):o(i)).forEach(s=>{let c=i.edge(s);i.removeEdge(s),c.forwardName=s.name,c.reversed=!0,i.setEdge(s.w,s.v,c,r("rev"))});function l(s){return c=>s.edge(c).weight}}function o(i){let l=[],s={},c={};function u(d){Object.hasOwn(c,d)||(c[d]=!0,s[d]=!0,i.outEdges(d).forEach(p=>{Object.hasOwn(s,p.w)?l.push(p):u(p.w)}),delete s[d])}return i.nodes().forEach(u),l}function a(i){i.edges().forEach(l=>{let s=i.edge(l);if(s.reversed){i.removeEdge(l);let c=s.forwardName;delete s.reversed,delete s.forwardName,i.setEdge(l.w,l.v,s,c)}})}return LP}var BP,Rpe;function axt(){if(Rpe)return BP;Rpe=1;let e=On();BP={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let l=i.v,s=a.node(l).rank,c=i.w,u=a.node(c).rank,d=i.name,p=a.edge(i),f=p.labelRank;if(u===s+1)return;a.removeEdge(i);let g,b,x;for(x=0,++s;s<u;++x,++s)p.points=[],b={width:0,height:0,edgeLabel:p,edgeObj:i,rank:s},g=e.addDummyNode(a,"edge",b,"_d"),s===f&&(b.width=p.width,b.height=p.height,b.dummy="edge-label",b.labelpos=p.labelpos),a.setEdge(l,g,{weight:p.weight},d),x===0&&a.graph().dummyChains.push(g),l=g;a.setEdge(l,c,{weight:p.weight},d)}function o(a){a.graph().dummyChains.forEach(i=>{let l=a.node(i),s=l.edgeLabel,c;for(a.setEdge(l.edgeObj,s);l.dummy;)c=a.successors(i)[0],a.removeNode(i),s.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(s.x=l.x,s.y=l.y,s.width=l.width,s.height=l.height),i=c,l=a.node(i)})}return BP}var jP,Ape;function Rk(){if(Ape)return jP;Ape=1;const{applyWithChunking:e}=On();jP={longestPath:r,slack:n};function r(o){var a={};function i(l){var s=o.node(l);if(Object.hasOwn(a,l))return s.rank;a[l]=!0;let c=o.outEdges(l).map(d=>d==null?Number.POSITIVE_INFINITY:i(d.w)-o.edge(d).minlen);var u=e(Math.min,c);return u===Number.POSITIVE_INFINITY&&(u=0),s.rank=u}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return jP}var FP,Npe;function Dpe(){if(Npe)return FP;Npe=1;var e=Bl().Graph,r=Rk().slack;FP=n;function n(l){var s=new e({directed:!1}),c=l.nodes()[0],u=l.nodeCount();s.setNode(c,{});for(var d,p;o(s,l)<u;)d=a(s,l),p=s.hasNode(d.v)?r(l,d):-r(l,d),i(s,l,p);return s}function o(l,s){function c(u){s.nodeEdges(u).forEach(d=>{var p=d.v,f=u===p?d.w:p;!l.hasNode(f)&&!r(s,d)&&(l.setNode(f,{}),l.setEdge(u,f,{}),c(f))})}return l.nodes().forEach(c),l.nodeCount()}function a(l,s){return s.edges().reduce((c,u)=>{let d=Number.POSITIVE_INFINITY;return l.hasNode(u.v)!==l.hasNode(u.w)&&(d=r(s,u)),d<c[0]?[d,u]:c},[Number.POSITIVE_INFINITY,null])[1]}function i(l,s,c){l.nodes().forEach(u=>s.node(u).rank+=c)}return FP}var HP,Ppe;function ixt(){if(Ppe)return HP;Ppe=1;var e=Dpe(),r=Rk().slack,n=Rk().longestPath,o=Bl().alg.preorder,a=Bl().alg.postorder,i=On().simplify;HP=l,l.initLowLimValues=d,l.initCutValues=s,l.calcCutValue=u,l.leaveEdge=f,l.enterEdge=g,l.exchangeEdges=b;function l(C){C=i(C),n(C);var _=e(C);d(_),s(_,C);for(var T,R;T=f(_);)R=g(_,C,T),b(_,C,T,R)}function s(C,_){var T=a(C,C.nodes());T=T.slice(0,T.length-1),T.forEach(R=>c(C,_,R))}function c(C,_,T){var R=C.node(T),A=R.parent;C.edge(T,A).cutvalue=u(C,_,T)}function u(C,_,T){var R=C.node(T),A=R.parent,D=!0,N=_.edge(T,A),$=0;return N||(D=!1,N=_.edge(A,T)),$=N.weight,_.nodeEdges(T).forEach(O=>{var j=O.v===T,L=j?O.w:O.v;if(L!==A){var Y=j===D,M=_.edge(O).weight;if($+=Y?M:-M,w(C,T,L)){var q=C.edge(T,L).cutvalue;$+=Y?-q:q}}}),$}function d(C,_){arguments.length<2&&(_=C.nodes()[0]),p(C,{},1,_)}function p(C,_,T,R,A){var D=T,N=C.node(R);return _[R]=!0,C.neighbors(R).forEach($=>{Object.hasOwn(_,$)||(T=p(C,_,T,$,R))}),N.low=D,N.lim=T++,A?N.parent=A:delete N.parent,T}function f(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,T){var R=T.v,A=T.w;_.hasEdge(R,A)||(R=T.w,A=T.v);var D=C.node(R),N=C.node(A),$=D,O=!1;D.lim>N.lim&&($=N,O=!0);var j=_.edges().filter(L=>O===k(C,C.node(L.v),$)&&O!==k(C,C.node(L.w),$));return j.reduce((L,Y)=>r(_,Y)<r(_,L)?Y:L)}function b(C,_,T,R){var A=T.v,D=T.w;C.removeEdge(A,D),C.setEdge(R.v,R.w,{}),d(C),s(C,_),x(C,_)}function x(C,_){var T=C.nodes().find(A=>!_.node(A).parent),R=o(C,T);R=R.slice(1),R.forEach(A=>{var D=C.node(A).parent,N=_.edge(A,D),$=!1;N||(N=_.edge(D,A),$=!0),_.node(A).rank=_.node(D).rank+($?N.minlen:-N.minlen)})}function w(C,_,T){return C.hasEdge(_,T)}function k(C,_,T){return T.low<=_.lim&&_.lim<=T.lim}return HP}var qP,$pe;function lxt(){if($pe)return qP;$pe=1;var e=Rk(),r=e.longestPath,n=Dpe(),o=ixt();qP=a;function a(c){var u=c.graph().ranker;if(u instanceof Function)return u(c);switch(c.graph().ranker){case"network-simplex":s(c);break;case"tight-tree":l(c);break;case"longest-path":i(c);break;case"none":break;default:s(c)}}var i=r;function l(c){r(c),n(c)}function s(c){o(c)}return qP}var UP,Mpe;function sxt(){if(Mpe)return UP;Mpe=1,UP=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let l=o.node(i),s=l.edgeObj,c=r(o,a,s.v,s.w),u=c.path,d=c.lca,p=0,f=u[p],g=!0;for(;i!==s.w;){if(l=o.node(i),g){for(;(f=u[p])!==d&&o.node(f).maxRank<l.rank;)p++;f===d&&(g=!1)}if(!g){for(;p<u.length-1&&o.node(f=u[p+1]).minRank<=l.rank;)p++;f=u[p]}o.setParent(i,f),i=o.successors(i)[0]}})}function r(o,a,i,l){let s=[],c=[],u=Math.min(a[i].low,a[l].low),d=Math.max(a[i].lim,a[l].lim),p,f;p=i;do p=o.parent(p),s.push(p);while(p&&(a[p].low>u||d>a[p].lim));for(f=p,p=l;(p=o.parent(p))!==f;)c.push(p);return{path:s.concat(c.reverse()),lca:f}}function n(o){let a={},i=0;function l(s){let c=i;o.children(s).forEach(l),a[s]={low:c,lim:i++}}return o.children().forEach(l),a}return UP}var VP,Ope;function cxt(){if(Ope)return VP;Ope=1;let e=On();VP={run:r,cleanup:i};function r(l){let s=e.addDummyNode(l,"root",{},"_root"),c=o(l),u=Object.values(c),d=e.applyWithChunking(Math.max,u)-1,p=2*d+1;l.graph().nestingRoot=s,l.edges().forEach(g=>l.edge(g).minlen*=p);let f=a(l)+1;l.children().forEach(g=>n(l,s,p,f,d,c,g)),l.graph().nodeRankFactor=p}function n(l,s,c,u,d,p,f){let g=l.children(f);if(!g.length){f!==s&&l.setEdge(s,f,{weight:0,minlen:c});return}let b=e.addBorderNode(l,"_bt"),x=e.addBorderNode(l,"_bb"),w=l.node(f);l.setParent(b,f),w.borderTop=b,l.setParent(x,f),w.borderBottom=x,g.forEach(k=>{n(l,s,c,u,d,p,k);let C=l.node(k),_=C.borderTop?C.borderTop:k,T=C.borderBottom?C.borderBottom:k,R=C.borderTop?u:2*u,A=_!==T?1:d-p[f]+1;l.setEdge(b,_,{weight:R,minlen:A,nestingEdge:!0}),l.setEdge(T,x,{weight:R,minlen:A,nestingEdge:!0})}),l.parent(f)||l.setEdge(s,b,{weight:0,minlen:d+p[f]})}function o(l){var s={};function c(u,d){var p=l.children(u);p&&p.length&&p.forEach(f=>c(f,d+1)),s[u]=d}return l.children().forEach(u=>c(u,1)),s}function a(l){return l.edges().reduce((s,c)=>s+l.edge(c).weight,0)}function i(l){var s=l.graph();l.removeNode(s.nestingRoot),delete s.nestingRoot,l.edges().forEach(c=>{var u=l.edge(c);u.nestingEdge&&l.removeEdge(c)})}return VP}var YP,Ipe;function uxt(){if(Ipe)return YP;Ipe=1;let e=On();YP=r;function r(o){function a(i){let l=o.children(i),s=o.node(i);if(l.length&&l.forEach(a),Object.hasOwn(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(let c=s.minRank,u=s.maxRank+1;c<u;++c)n(o,"borderLeft","_bl",i,s,c),n(o,"borderRight","_br",i,s,c)}}o.children().forEach(a)}function n(o,a,i,l,s,c){let u={width:0,height:0,rank:c,borderType:a},d=s[a][c-1],p=e.addDummyNode(o,"border",u,i);s[a][c]=p,o.setParent(p,l),d&&o.setEdge(d,p,{weight:1})}return YP}var WP,zpe;function dxt(){if(zpe)return WP;zpe=1,WP={adjust:e,undo:r};function e(c){let u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&n(c)}function r(c){let u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&a(c),(u==="lr"||u==="rl")&&(l(c),n(c))}function n(c){c.nodes().forEach(u=>o(c.node(u))),c.edges().forEach(u=>o(c.edge(u)))}function o(c){let u=c.width;c.width=c.height,c.height=u}function a(c){c.nodes().forEach(u=>i(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(i),Object.hasOwn(d,"y")&&i(d)})}function i(c){c.y=-c.y}function l(c){c.nodes().forEach(u=>s(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(s),Object.hasOwn(d,"x")&&s(d)})}function s(c){let u=c.x;c.x=c.y,c.y=u}return WP}var GP,Lpe;function pxt(){if(Lpe)return GP;Lpe=1;let e=On();GP=r;function r(n){let o={},a=n.nodes().filter(u=>!n.children(u).length),i=a.map(u=>n.node(u).rank),l=e.applyWithChunking(Math.max,i),s=e.range(l+1).map(()=>[]);function c(u){if(o[u])return;o[u]=!0;let d=n.node(u);s[d.rank].push(u),n.successors(u).forEach(c)}return a.sort((u,d)=>n.node(u).rank-n.node(d).rank).forEach(c),s}return GP}var XP,Bpe;function hxt(){if(Bpe)return XP;Bpe=1;let e=On().zipObject;XP=r;function r(o,a){let i=0;for(let l=1;l<a.length;++l)i+=n(o,a[l-1],a[l]);return i}function n(o,a,i){let l=e(i,i.map((f,g)=>g)),s=a.flatMap(f=>o.outEdges(f).map(g=>({pos:l[g.w],weight:o.edge(g).weight})).sort((g,b)=>g.pos-b.pos)),c=1;for(;c<i.length;)c<<=1;let u=2*c-1;c-=1;let d=new Array(u).fill(0),p=0;return s.forEach(f=>{let g=f.pos+c;d[g]+=f.weight;let b=0;for(;g>0;)g%2&&(b+=d[g+1]),g=g-1>>1,d[g]+=f.weight;p+=f.weight*b}),p}return XP}var KP,jpe;function fxt(){if(jpe)return KP;jpe=1,KP=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((l,s)=>{let c=r.edge(s),u=r.node(s.v);return{sum:l.sum+c.weight*u.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return KP}var ZP,Fpe;function mxt(){if(Fpe)return ZP;Fpe=1;let e=On();ZP=r;function r(a,i){let l={};a.forEach((c,u)=>{let d=l[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:u};c.barycenter!==void 0&&(d.barycenter=c.barycenter,d.weight=c.weight)}),i.edges().forEach(c=>{let u=l[c.v],d=l[c.w];u!==void 0&&d!==void 0&&(d.indegree++,u.out.push(l[c.w]))});let s=Object.values(l).filter(c=>!c.indegree);return n(s)}function n(a){let i=[];function l(c){return u=>{u.merged||(u.barycenter===void 0||c.barycenter===void 0||u.barycenter>=c.barycenter)&&o(c,u)}}function s(c){return u=>{u.in.push(c),--u.indegree===0&&a.push(u)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(l(c)),c.out.forEach(s(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let l=0,s=0;a.weight&&(l+=a.barycenter*a.weight,s+=a.weight),i.weight&&(l+=i.barycenter*i.weight,s+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=l/s,a.weight=s,a.i=Math.min(i.i,a.i),i.merged=!0}return ZP}var QP,Hpe;function gxt(){if(Hpe)return QP;Hpe=1;let e=On();QP=r;function r(a,i){let l=e.partition(a,b=>Object.hasOwn(b,"barycenter")),s=l.lhs,c=l.rhs.sort((b,x)=>x.i-b.i),u=[],d=0,p=0,f=0;s.sort(o(!!i)),f=n(u,c,f),s.forEach(b=>{f+=b.vs.length,u.push(b.vs),d+=b.barycenter*b.weight,p+=b.weight,f=n(u,c,f)});let g={vs:u.flat(!0)};return p&&(g.barycenter=d/p,g.weight=p),g}function n(a,i,l){let s;for(;i.length&&(s=i[i.length-1]).i<=l;)i.pop(),a.push(s.vs),l++;return l}function o(a){return(i,l)=>i.barycenter<l.barycenter?-1:i.barycenter>l.barycenter?1:a?l.i-i.i:i.i-l.i}return QP}var JP,qpe;function yxt(){if(qpe)return JP;qpe=1;let e=fxt(),r=mxt(),n=gxt();JP=o;function o(l,s,c,u){let d=l.children(s),p=l.node(s),f=p?p.borderLeft:void 0,g=p?p.borderRight:void 0,b={};f&&(d=d.filter(C=>C!==f&&C!==g));let x=e(l,d);x.forEach(C=>{if(l.children(C.v).length){let _=o(l,C.v,c,u);b[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let w=r(x,c);a(w,b);let k=n(w,u);if(f&&(k.vs=[f,k.vs,g].flat(!0),l.predecessors(f).length)){let C=l.node(l.predecessors(f)[0]),_=l.node(l.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(l,s){l.forEach(c=>{c.vs=c.vs.flatMap(u=>s[u]?s[u].vs:u)})}function i(l,s){l.barycenter!==void 0?(l.barycenter=(l.barycenter*l.weight+s.barycenter*s.weight)/(l.weight+s.weight),l.weight+=s.weight):(l.barycenter=s.barycenter,l.weight=s.weight)}return JP}var e$,Upe;function bxt(){if(Upe)return e$;Upe=1;let e=Bl().Graph,r=On();e$=n;function n(a,i,l){let s=o(a),c=new e({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(u=>a.node(u));return a.nodes().forEach(u=>{let d=a.node(u),p=a.parent(u);(d.rank===i||d.minRank<=i&&i<=d.maxRank)&&(c.setNode(u),c.setParent(u,p||s),a[l](u).forEach(f=>{let g=f.v===u?f.w:f.v,b=c.edge(g,u),x=b!==void 0?b.weight:0;c.setEdge(g,u,{weight:a.edge(f).weight+x})}),Object.hasOwn(d,"minRank")&&c.setNode(u,{borderLeft:d.borderLeft[i],borderRight:d.borderRight[i]}))}),c}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return e$}var t$,Vpe;function vxt(){if(Vpe)return t$;Vpe=1,t$=e;function e(r,n,o){let a={},i;o.forEach(l=>{let s=r.parent(l),c,u;for(;s;){if(c=r.parent(s),c?(u=a[c],a[c]=s):(u=i,i=s),u&&u!==s){n.setEdge(u,s);return}s=c}})}return t$}var r$,Ype;function xxt(){if(Ype)return r$;Ype=1;let e=pxt(),r=hxt(),n=yxt(),o=bxt(),a=vxt(),i=Bl().Graph,l=On();r$=s;function s(p,f){if(f&&typeof f.customOrder=="function"){f.customOrder(p,s);return}let g=l.maxRank(p),b=c(p,l.range(1,g+1),"inEdges"),x=c(p,l.range(g-1,-1,-1),"outEdges"),w=e(p);if(d(p,w),f&&f.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,T=0;T<4;++_,++T){u(_%2?b:x,_%4>=2),w=l.buildLayerMatrix(p);let R=r(p,w);R<k&&(T=0,C=Object.assign({},w),k=R)}d(p,C)}function c(p,f,g){return f.map(function(b){return o(p,b,g)})}function u(p,f){let g=new i;p.forEach(function(b){let x=b.graph().root,w=n(b,x,g,f);w.vs.forEach((k,C)=>b.node(k).order=C),a(b,g,w.vs)})}function d(p,f){Object.values(f).forEach(g=>g.forEach((b,x)=>p.node(b).order=x))}return r$}var n$,Wpe;function wxt(){if(Wpe)return n$;Wpe=1;let e=Bl().Graph,r=On();n$={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:l,verticalAlignment:s,horizontalCompaction:c,alignCoordinates:p,findSmallestWidthAlignment:d,balance:f};function n(w,k){let C={};function _(T,R){let A=0,D=0,N=T.length,$=R[R.length-1];return R.forEach((O,j)=>{let L=a(w,O),Y=L?w.node(L).order:N;(L||O===$)&&(R.slice(D,j+1).forEach(M=>{w.predecessors(M).forEach(q=>{let z=w.node(q),H=z.order;(H<A||Y<H)&&!(z.dummy&&w.node(M).dummy)&&i(C,q,M)})}),D=j+1,A=Y)}),R}return k.length&&k.reduce(_),C}function o(w,k){let C={};function _(R,A,D,N,$){let O;r.range(A,D).forEach(j=>{O=R[j],w.node(O).dummy&&w.predecessors(O).forEach(L=>{let Y=w.node(L);Y.dummy&&(Y.order<N||Y.order>$)&&i(C,L,O)})})}function T(R,A){let D=-1,N,$=0;return A.forEach((O,j)=>{if(w.node(O).dummy==="border"){let L=w.predecessors(O);L.length&&(N=w.node(L[0]).order,_(A,$,j,D,N),$=j,D=N)}_(A,$,A.length,N,R.length)}),A}return k.length&&k.reduce(T),C}function a(w,k){if(w.node(k).dummy)return w.predecessors(k).find(C=>w.node(C).dummy)}function i(w,k,C){if(k>C){let T=k;k=C,C=T}let _=w[k];_||(w[k]=_={}),_[C]=!0}function l(w,k,C){if(k>C){let _=k;k=C,C=_}return!!w[k]&&Object.hasOwn(w[k],C)}function s(w,k,C,_){let T={},R={},A={};return k.forEach(D=>{D.forEach((N,$)=>{T[N]=N,R[N]=N,A[N]=$})}),k.forEach(D=>{let N=-1;D.forEach($=>{let O=_($);if(O.length){O=O.sort((L,Y)=>A[L]-A[Y]);let j=(O.length-1)/2;for(let L=Math.floor(j),Y=Math.ceil(j);L<=Y;++L){let M=O[L];R[$]===$&&N<A[M]&&!l(C,$,M)&&(R[M]=$,R[$]=T[$]=T[M],N=A[M])}}})}),{root:T,align:R}}function c(w,k,C,_,T){let R={},A=u(w,k,C,T),D=T?"borderLeft":"borderRight";function N(j,L){let Y=A.nodes(),M=Y.pop(),q={};for(;M;)q[M]?j(M):(q[M]=!0,Y.push(M),Y=Y.concat(L(M))),M=Y.pop()}function $(j){R[j]=A.inEdges(j).reduce((L,Y)=>Math.max(L,R[Y.v]+A.edge(Y)),0)}function O(j){let L=A.outEdges(j).reduce((M,q)=>Math.min(M,R[q.w]-A.edge(q)),Number.POSITIVE_INFINITY),Y=w.node(j);L!==Number.POSITIVE_INFINITY&&Y.borderType!==D&&(R[j]=Math.max(R[j],L))}return N($,A.predecessors.bind(A)),N(O,A.successors.bind(A)),Object.keys(_).forEach(j=>R[j]=R[C[j]]),R}function u(w,k,C,_){let T=new e,R=w.graph(),A=b(R.nodesep,R.edgesep,_);return k.forEach(D=>{let N;D.forEach($=>{let O=C[$];if(T.setNode(O),N){var j=C[N],L=T.edge(j,O);T.setEdge(j,O,Math.max(A(w,$,N),L||0))}N=$})}),T}function d(w,k){return Object.values(k).reduce((C,_)=>{let T=Number.NEGATIVE_INFINITY,R=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([D,N])=>{let $=x(w,D)/2;T=Math.max(N+$,T),R=Math.min(N-$,R)});const A=T-R;return A<C[0]&&(C=[A,_]),C},[Number.POSITIVE_INFINITY,null])[1]}function p(w,k){let C=Object.values(k),_=r.applyWithChunking(Math.min,C),T=r.applyWithChunking(Math.max,C);["u","d"].forEach(R=>{["l","r"].forEach(A=>{let D=R+A,N=w[D];if(N===k)return;let $=Object.values(N),O=_-r.applyWithChunking(Math.min,$);A!=="l"&&(O=T-r.applyWithChunking(Math.max,$)),O&&(w[D]=r.mapValues(N,j=>j+O))})})}function f(w,k){return r.mapValues(w.ul,(C,_)=>{if(k)return w[k.toLowerCase()][_];{let T=Object.values(w).map(R=>R[_]).sort((R,A)=>R-A);return(T[1]+T[2])/2}})}function g(w){let k=r.buildLayerMatrix(w),C=Object.assign(n(w,k),o(w,k)),_={},T;["u","d"].forEach(A=>{T=A==="u"?k:Object.values(k).reverse(),["l","r"].forEach(D=>{D==="r"&&(T=T.map(j=>Object.values(j).reverse()));let N=(A==="u"?w.predecessors:w.successors).bind(w),$=s(w,T,C,N),O=c(w,T,$.root,$.align,D==="r");D==="r"&&(O=r.mapValues(O,j=>-j)),_[A+D]=O})});let R=d(w,_);return p(_,R),f(_,w.graph().align)}function b(w,k,C){return(_,T,R)=>{let A=_.node(T),D=_.node(R),N=0,$;if(N+=A.width/2,Object.hasOwn(A,"labelpos"))switch(A.labelpos.toLowerCase()){case"l":$=-A.width/2;break;case"r":$=A.width/2;break}if($&&(N+=C?$:-$),$=0,N+=(A.dummy?k:w)/2,N+=(D.dummy?k:w)/2,N+=D.width/2,Object.hasOwn(D,"labelpos"))switch(D.labelpos.toLowerCase()){case"l":$=D.width/2;break;case"r":$=-D.width/2;break}return $&&(N+=C?$:-$),$=0,N}}function x(w,k){return w.node(k).width}return n$}var o$,Gpe;function kxt(){if(Gpe)return o$;Gpe=1;let e=On(),r=wxt().positionX;o$=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,l])=>a.node(i).x=l)}function o(a){let i=e.buildLayerMatrix(a),l=a.graph().ranksep,s=0;i.forEach(c=>{const u=c.reduce((d,p)=>{const f=a.node(p).height;return d>f?d:f},0);c.forEach(d=>a.node(d).y=s+u/2),s+=u+l})}return o$}var a$,Xpe;function _xt(){if(Xpe)return a$;Xpe=1;let e=oxt(),r=axt(),n=lxt(),o=On().normalizeRanks,a=sxt(),i=On().removeEmptyRanks,l=cxt(),s=uxt(),c=dxt(),u=xxt(),d=kxt(),p=On(),f=Bl().Graph;a$=g;function g(B,W){let Q=W&&W.debugTiming?p.time:p.notime;Q("layout",()=>{let J=Q("  buildLayoutGraph",()=>N(B));Q("  runLayout",()=>b(J,Q,W)),Q("  updateInputGraph",()=>x(B,J))})}function b(B,W,Q){W("    makeSpaceForEdgeLabels",()=>$(B)),W("    removeSelfEdges",()=>U(B)),W("    acyclic",()=>e.run(B)),W("    nestingGraph.run",()=>l.run(B)),W("    rank",()=>n(p.asNonCompoundGraph(B))),W("    injectEdgeLabelProxies",()=>O(B)),W("    removeEmptyRanks",()=>i(B)),W("    nestingGraph.cleanup",()=>l.cleanup(B)),W("    normalizeRanks",()=>o(B)),W("    assignRankMinMax",()=>j(B)),W("    removeEdgeLabelProxies",()=>L(B)),W("    normalize.run",()=>r.run(B)),W("    parentDummyChains",()=>a(B)),W("    addBorderSegments",()=>s(B)),W("    order",()=>u(B,Q)),W("    insertSelfEdges",()=>K(B)),W("    adjustCoordinateSystem",()=>c.adjust(B)),W("    position",()=>d(B)),W("    positionSelfEdges",()=>V(B)),W("    removeBorderNodes",()=>H(B)),W("    normalize.undo",()=>r.undo(B)),W("    fixupEdgeLabelCoords",()=>q(B)),W("    undoCoordinateSystem",()=>c.undo(B)),W("    translateGraph",()=>Y(B)),W("    assignNodeIntersects",()=>M(B)),W("    reversePoints",()=>z(B)),W("    acyclic.undo",()=>e.undo(B))}function x(B,W){B.nodes().forEach(Q=>{let J=B.node(Q),ne=W.node(Q);J&&(J.x=ne.x,J.y=ne.y,J.rank=ne.rank,W.children(Q).length&&(J.width=ne.width,J.height=ne.height))}),B.edges().forEach(Q=>{let J=B.edge(Q),ne=W.edge(Q);J.points=ne.points,Object.hasOwn(ne,"x")&&(J.x=ne.x,J.y=ne.y)}),B.graph().width=W.graph().width,B.graph().height=W.graph().height}let w=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],T={width:0,height:0},R=["minlen","weight","width","height","labeloffset"],A={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},D=["labelpos"];function N(B){let W=new f({multigraph:!0,compound:!0}),Q=Z(B.graph());return W.setGraph(Object.assign({},k,X(Q,w),p.pick(Q,C))),B.nodes().forEach(J=>{let ne=Z(B.node(J));const te=X(ne,_);Object.keys(T).forEach(ee=>{te[ee]===void 0&&(te[ee]=T[ee])}),W.setNode(J,te),W.setParent(J,B.parent(J))}),B.edges().forEach(J=>{let ne=Z(B.edge(J));W.setEdge(J,Object.assign({},A,X(ne,R),p.pick(ne,D)))}),W}function $(B){let W=B.graph();W.ranksep/=2,B.edges().forEach(Q=>{let J=B.edge(Q);J.minlen*=2,J.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?J.width+=J.labeloffset:J.height+=J.labeloffset)})}function O(B){B.edges().forEach(W=>{let Q=B.edge(W);if(Q.width&&Q.height){let J=B.node(W.v),ne={rank:(B.node(W.w).rank-J.rank)/2+J.rank,e:W};p.addDummyNode(B,"edge-proxy",ne,"_ep")}})}function j(B){let W=0;B.nodes().forEach(Q=>{let J=B.node(Q);J.borderTop&&(J.minRank=B.node(J.borderTop).rank,J.maxRank=B.node(J.borderBottom).rank,W=Math.max(W,J.maxRank))}),B.graph().maxRank=W}function L(B){B.nodes().forEach(W=>{let Q=B.node(W);Q.dummy==="edge-proxy"&&(B.edge(Q.e).labelRank=Q.rank,B.removeNode(W))})}function Y(B){let W=Number.POSITIVE_INFINITY,Q=0,J=Number.POSITIVE_INFINITY,ne=0,te=B.graph(),ee=te.marginx||0,pe=te.marginy||0;function Te(ce){let de=ce.x,xe=ce.y,De=ce.width,Ge=ce.height;W=Math.min(W,de-De/2),Q=Math.max(Q,de+De/2),J=Math.min(J,xe-Ge/2),ne=Math.max(ne,xe+Ge/2)}B.nodes().forEach(ce=>Te(B.node(ce))),B.edges().forEach(ce=>{let de=B.edge(ce);Object.hasOwn(de,"x")&&Te(de)}),W-=ee,J-=pe,B.nodes().forEach(ce=>{let de=B.node(ce);de.x-=W,de.y-=J}),B.edges().forEach(ce=>{let de=B.edge(ce);de.points.forEach(xe=>{xe.x-=W,xe.y-=J}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=J)}),te.width=Q-W+ee,te.height=ne-J+pe}function M(B){B.edges().forEach(W=>{let Q=B.edge(W),J=B.node(W.v),ne=B.node(W.w),te,ee;Q.points?(te=Q.points[0],ee=Q.points[Q.points.length-1]):(Q.points=[],te=ne,ee=J),Q.points.unshift(p.intersectRect(J,te)),Q.points.push(p.intersectRect(ne,ee))})}function q(B){B.edges().forEach(W=>{let Q=B.edge(W);if(Object.hasOwn(Q,"x"))switch((Q.labelpos==="l"||Q.labelpos==="r")&&(Q.width-=Q.labeloffset),Q.labelpos){case"l":Q.x-=Q.width/2+Q.labeloffset;break;case"r":Q.x+=Q.width/2+Q.labeloffset;break}})}function z(B){B.edges().forEach(W=>{let Q=B.edge(W);Q.reversed&&Q.points.reverse()})}function H(B){B.nodes().forEach(W=>{if(B.children(W).length){let Q=B.node(W),J=B.node(Q.borderTop),ne=B.node(Q.borderBottom),te=B.node(Q.borderLeft[Q.borderLeft.length-1]),ee=B.node(Q.borderRight[Q.borderRight.length-1]);Q.width=Math.abs(ee.x-te.x),Q.height=Math.abs(ne.y-J.y),Q.x=te.x+Q.width/2,Q.y=J.y+Q.height/2}}),B.nodes().forEach(W=>{B.node(W).dummy==="border"&&B.removeNode(W)})}function U(B){B.edges().forEach(W=>{if(W.v===W.w){var Q=B.node(W.v);Q.selfEdges||(Q.selfEdges=[]),Q.selfEdges.push({e:W,label:B.edge(W)}),B.removeEdge(W)}})}function K(B){var W=p.buildLayerMatrix(B);W.forEach(Q=>{var J=0;Q.forEach((ne,te)=>{var ee=B.node(ne);ee.order=te+J,(ee.selfEdges||[]).forEach(pe=>{p.addDummyNode(B,"selfedge",{width:pe.label.width,height:pe.label.height,rank:ee.rank,order:te+ ++J,e:pe.e,label:pe.label},"_se")}),delete ee.selfEdges})})}function V(B){B.nodes().forEach(W=>{var Q=B.node(W);if(Q.dummy==="selfedge"){var J=B.node(Q.e.v),ne=J.x+J.width/2,te=J.y,ee=Q.x-ne,pe=J.height/2;B.setEdge(Q.e,Q.label),B.removeNode(W),Q.label.points=[{x:ne+2*ee/3,y:te-pe},{x:ne+5*ee/6,y:te-pe},{x:ne+ee,y:te},{x:ne+5*ee/6,y:te+pe},{x:ne+2*ee/3,y:te+pe}],Q.label.x=Q.x,Q.label.y=Q.y}})}function X(B,W){return p.mapValues(p.pick(B,W),Number)}function Z(B){var W={};return B&&Object.entries(B).forEach(([Q,J])=>{typeof Q=="string"&&(Q=Q.toLowerCase()),W[Q]=J}),W}return a$}var i$,Kpe;function Ext(){if(Kpe)return i$;Kpe=1;let e=On(),r=Bl().Graph;i$={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(l=>{i.setNode(l,{label:l}),i.setParent(l,"layer"+o.node(l).rank)}),o.edges().forEach(l=>i.setEdge(l.v,l.w,{},l.name)),a.forEach((l,s)=>{let c="layer"+s;i.setNode(c,{rank:"same"}),l.reduce((u,d)=>(i.setEdge(u,d,{style:"invis"}),d))}),i}return i$}var Zpe,Qpe;function Sxt(){return Qpe||(Qpe=1,Zpe="1.1.5"),Zpe}var Jpe,ehe;function Cxt(){return ehe||(ehe=1,Jpe={graphlib:Bl(),layout:_xt(),debug:Ext(),util:{time:On().time,notime:On().notime},version:Sxt()}),Jpe}Cxt();const the=1e-12;function l$(e,r,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-r),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function s$(e,r){this._context=e,this._k=(1-r)/6}s$.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:l$(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2,this._x1=e,this._y1=r;break;case 2:this._point=3;default:l$(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new s$(o,r)}return n.tension=function(o){return e(+o)},n})(0);function c$(e,r){this._context=e,this._k=(1-r)/6}c$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,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:l$(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return new c$(o,r)}return n.tension=function(o){return e(+o)},n})(0);function rhe(e,r,n){var o=e._x1,a=e._y1,i=e._x2,l=e._y2;if(e._l01_a>the){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>the){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-r*e._l12_2a)/d,l=(l*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(o,a,i,l,e._x2,e._y2)}function nhe(e,r){this._context=e,this._alpha=r}nhe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:rhe(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new nhe(o,r):new s$(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function ohe(e,r){this._context=e,this._alpha=r}ohe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,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:rhe(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new ohe(o,r):new c$(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);const Txt={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},Rxt={unit:Txt};for(let e=0;e<=255;e++)Rxt.unit.dec2hex(e);const Axt=typeof window<"u",u$=S.createContext(null);u$.displayName="PanelGroupContext";const Ha={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandleId:"data-panel-resize-handle-id"},d$=10,Tg=Axt?S.useLayoutEffect:()=>{},ahe=S.useId,Nxt=typeof ahe=="function"?ahe:()=>null;let Dxt=0;function ihe(e=null){const r=Nxt(),n=S.useRef(e||r||null);return n.current===null&&(n.current=""+Dxt++),e??n.current}function lhe({children:e,className:r="",collapsedSize:n,collapsible:o,defaultSize:a,forwardedRef:i,id:l,maxSize:s,minSize:c,onCollapse:u,onExpand:d,onResize:p,order:f,style:g,tagName:b="div",...x}){const w=S.useContext(u$);if(w===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:k,expandPanel:C,getPanelSize:_,getPanelStyle:T,groupId:R,isPanelCollapsed:A,reevaluatePanelConstraints:D,registerPanel:N,resizePanel:$,unregisterPanel:O}=w,j=ihe(l),L=S.useRef({callbacks:{onCollapse:u,onExpand:d,onResize:p},constraints:{collapsedSize:n,collapsible:o,defaultSize:a,maxSize:s,minSize:c},id:j,idIsFromProps:l!==void 0,order:f});S.useRef({didLogMissingDefaultSizeWarning:!1}),Tg(()=>{const{callbacks:M,constraints:q}=L.current,z={...q};L.current.id=j,L.current.idIsFromProps=l!==void 0,L.current.order=f,M.onCollapse=u,M.onExpand=d,M.onResize=p,q.collapsedSize=n,q.collapsible=o,q.defaultSize=a,q.maxSize=s,q.minSize=c,(z.collapsedSize!==q.collapsedSize||z.collapsible!==q.collapsible||z.maxSize!==q.maxSize||z.minSize!==q.minSize)&&D(L.current,z)}),Tg(()=>{const M=L.current;return N(M),()=>{O(M)}},[f,j,N,O]),S.useImperativeHandle(i,()=>({collapse:()=>{k(L.current)},expand:M=>{C(L.current,M)},getId(){return j},getSize(){return _(L.current)},isCollapsed(){return A(L.current)},isExpanded(){return!A(L.current)},resize:M=>{$(L.current,M)}}),[k,C,_,A,j,$]);const Y=T(L.current,a);return S.createElement(b,{...x,children:e,className:r,id:j,style:{...Y,...g},[Ha.groupId]:R,[Ha.panel]:"",[Ha.panelCollapsible]:o||void 0,[Ha.panelId]:j,[Ha.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const Pxt=S.forwardRef((e,r)=>S.createElement(lhe,{...e,forwardedRef:r}));lhe.displayName="Panel",Pxt.displayName="forwardRef(Panel)";function she(e){return e.type==="keydown"}function che(e){return e.type.startsWith("pointer")}function uhe(e){return e.type.startsWith("mouse")}function $xt(e){if(che(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(uhe(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Mxt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const Oxt=1,Ixt=2,zxt=4,Lxt=8;Mxt();let Bxt=new Map;function p$(e,r){Bxt.set(e,r)}function jxt(){const[e,r]=S.useState(0);return S.useCallback(()=>r(n=>n+1),[])}function or(e,r){if(!e)throw console.error(r),Error(r)}function oh(e,r,n=d$){return e.toFixed(n)===r.toFixed(n)?0:e>r?1:-1}function Ac(e,r,n=d$){return oh(e,r,n)===0}function qa(e,r,n){return oh(e,r,n)===0}function Fxt(e,r,n){if(e.length!==r.length)return!1;for(let o=0;o<e.length;o++){const a=e[o],i=r[o];if(!qa(a,i,n))return!1}return!0}function Rg({panelConstraints:e,panelIndex:r,size:n}){const o=e[r];or(o!=null,`Panel constraints not found for index ${r}`);let{collapsedSize:a=0,collapsible:i,maxSize:l=100,minSize:s=0}=o;if(oh(n,s)<0)if(i){const c=(a+s)/2;oh(n,c)<0?n=a:n=s}else n=s;return n=Math.min(l,n),n=parseFloat(n.toFixed(d$)),n}function Vb({delta:e,initialLayout:r,panelConstraints:n,pivotIndices:o,prevLayout:a,trigger:i}){if(qa(e,0))return r;const l=[...r],[s,c]=o;or(s!=null,"Invalid first pivot index"),or(c!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const p=e<0?c:s,f=n[p];or(f,`Panel constraints not found for index ${p}`);const{collapsedSize:g=0,collapsible:b,minSize:x=0}=f;if(b){const w=r[p];if(or(w!=null,`Previous layout not found for panel index ${p}`),qa(w,g)){const k=x-w;oh(k,Math.abs(e))>0&&(e=e<0?0-k:k)}}}{const p=e<0?s:c,f=n[p];or(f,`No panel constraints found for index ${p}`);const{collapsedSize:g=0,collapsible:b,minSize:x=0}=f;if(b){const w=r[p];if(or(w!=null,`Previous layout not found for panel index ${p}`),qa(w,x)){const k=w-g;oh(k,Math.abs(e))>0&&(e=e<0?0-k:k)}}}}{const p=e<0?1:-1;let f=e<0?c:s,g=0;for(;;){const x=r[f];or(x!=null,`Previous layout not found for panel index ${f}`);const w=Rg({panelConstraints:n,panelIndex:f,size:100})-x;if(g+=w,f+=p,f<0||f>=n.length)break}const b=Math.min(Math.abs(e),Math.abs(g));e=e<0?0-b:b}{let p=e<0?s:c;for(;p>=0&&p<n.length;){const f=Math.abs(e)-Math.abs(u),g=r[p];or(g!=null,`Previous layout not found for panel index ${p}`);const b=g-f,x=Rg({panelConstraints:n,panelIndex:p,size:b});if(!qa(g,x)&&(u+=g-x,l[p]=x,u.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?p--:p++}}if(Fxt(a,l))return a;{const p=e<0?c:s,f=r[p];or(f!=null,`Previous layout not found for panel index ${p}`);const g=f+u,b=Rg({panelConstraints:n,panelIndex:p,size:g});if(l[p]=b,!qa(b,g)){let x=g-b,w=e<0?c:s;for(;w>=0&&w<n.length;){const k=l[w];or(k!=null,`Previous layout not found for panel index ${w}`);const C=k+x,_=Rg({panelConstraints:n,panelIndex:w,size:C});if(qa(k,_)||(x-=_-k,l[w]=_),qa(x,0))break;e>0?w--:w++}}}const d=l.reduce((p,f)=>f+p,0);return qa(d,100)?l:a}function Hxt({layout:e,panelsArray:r,pivotIndices:n}){let o=0,a=100,i=0,l=0;const s=n[0];or(s!=null,"No pivot index found"),r.forEach((p,f)=>{const{constraints:g}=p,{maxSize:b=100,minSize:x=0}=g;f===s?(o=x,a=b):(i+=x,l+=b)});const c=Math.min(a,100-i),u=Math.max(o,100-l),d=e[s];return{valueMax:c,valueMin:u,valueNow:d}}function Ak(e,r=document){return Array.from(r.querySelectorAll(`[${Ha.resizeHandleId}][data-panel-group-id="${e}"]`))}function qxt(e,r,n=document){return Ak(e,n).findIndex(a=>a.getAttribute(Ha.resizeHandleId)===r)??null}function dhe(e,r,n){const o=qxt(e,r,n);return o!=null?[o,o+1]:[-1,-1]}function Uxt(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function phe(e,r=document){return Uxt(r)&&r.dataset.panelGroupId==e?r:r.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function h$(e,r=document){return r.querySelector(`[${Ha.resizeHandleId}="${e}"]`)||null}function Vxt(e,r,n,o=document){var a,i,l,s;const c=h$(r,o),u=Ak(e,o),d=c?u.indexOf(c):-1,p=(a=(i=n[d])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null,f=(l=(s=n[d+1])===null||s===void 0?void 0:s.id)!==null&&l!==void 0?l:null;return[p,f]}function Yxt({committedValuesRef:e,eagerValuesRef:r,groupId:n,layout:o,panelDataArray:a,panelGroupElement:i,setLayout:l}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Tg(()=>{if(!i)return;const s=Ak(n,i);for(let c=0;c<a.length-1;c++){const{valueMax:u,valueMin:d,valueNow:p}=Hxt({layout:o,panelsArray:a,pivotIndices:[c,c+1]}),f=s[c];if(f!=null){const g=a[c];or(g,`No panel data found for index "${c}"`),f.setAttribute("aria-controls",g.id),f.setAttribute("aria-valuemax",""+Math.round(u)),f.setAttribute("aria-valuemin",""+Math.round(d)),f.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{s.forEach((c,u)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,o,a,i]),S.useEffect(()=>{if(!i)return;const s=r.current;or(s,"Eager values not found");const{panelDataArray:c}=s,u=phe(n,i);or(u!=null,`No group found for id "${n}"`);const d=Ak(n,i);or(d,`No resize handles found for group id "${n}"`);const p=d.map(f=>{const g=f.getAttribute(Ha.resizeHandleId);or(g,"Resize handle element has no handle id attribute");const[b,x]=Vxt(n,g,c,i);if(b==null||x==null)return()=>{};const w=k=>{if(!k.defaultPrevented)switch(k.key){case"Enter":{k.preventDefault();const C=c.findIndex(_=>_.id===b);if(C>=0){const _=c[C];or(_,`No panel data found for index ${C}`);const T=o[C],{collapsedSize:R=0,collapsible:A,minSize:D=0}=_.constraints;if(T!=null&&A){const N=Vb({delta:qa(T,R)?D-R:R-T,initialLayout:o,panelConstraints:c.map($=>$.constraints),pivotIndices:dhe(n,g,i),prevLayout:o,trigger:"keyboard"});o!==N&&l(N)}}break}}};return f.addEventListener("keydown",w),()=>{f.removeEventListener("keydown",w)}});return()=>{p.forEach(f=>f())}},[i,e,r,n,o,a,l])}function hhe(e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0}function fhe(e,r){const n=e==="horizontal",{x:o,y:a}=$xt(r);return n?o:a}function Wxt(e,r,n,o,a){const i=n==="horizontal",l=h$(r,a);or(l,`No resize handle element found for id "${r}"`);const s=l.getAttribute(Ha.groupId);or(s,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=o;const u=fhe(n,e),d=phe(s,a);or(d,`No group element found for id "${s}"`);const p=d.getBoundingClientRect(),f=i?p.width:p.height;return(u-c)/f*100}function Gxt(e,r,n,o,a,i){if(she(e)){const l=n==="horizontal";let s=0;e.shiftKey?s=100:a!=null?s=a:s=10;let c=0;switch(e.key){case"ArrowDown":c=l?0:s;break;case"ArrowLeft":c=l?-s:0;break;case"ArrowRight":c=l?s:0;break;case"ArrowUp":c=l?0:-s;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return o==null?0:Wxt(e,r,n,o,i)}function Xxt({panelDataArray:e}){const r=Array(e.length),n=e.map(i=>i.constraints);let o=0,a=100;for(let i=0;i<e.length;i++){const l=n[i];or(l,`Panel constraints not found for index ${i}`);const{defaultSize:s}=l;s!=null&&(o++,r[i]=s,a-=s)}for(let i=0;i<e.length;i++){const l=n[i];or(l,`Panel constraints not found for index ${i}`);const{defaultSize:s}=l;if(s!=null)continue;const c=e.length-o,u=a/c;o++,r[i]=u,a-=u}return r}function Ag(e,r,n){r.forEach((o,a)=>{const i=e[a];or(i,`Panel data not found for index ${a}`);const{callbacks:l,constraints:s,id:c}=i,{collapsedSize:u=0,collapsible:d}=s,p=n[c];if(p==null||o!==p){n[c]=o;const{onCollapse:f,onExpand:g,onResize:b}=l;b&&b(o,p),d&&(f||g)&&(g&&(p==null||Ac(p,u))&&!Ac(o,u)&&g(),f&&(p==null||!Ac(p,u))&&Ac(o,u)&&f())}})}function Nk(e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=r[n])return!1;return!0}function Kxt({defaultSize:e,dragState:r,layout:n,panelData:o,panelIndex:a,precision:i=3}){const l=n[a];let s;return l==null?s=e!=null?e.toFixed(i):"1":o.length===1?s="1":s=l.toFixed(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:r!==null?"none":void 0}}function Zxt(e,r=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},r)}}function mhe(e){try{if(typeof localStorage<"u")e.getItem=r=>localStorage.getItem(r),e.setItem=(r,n)=>{localStorage.setItem(r,n)};else throw new Error("localStorage not supported in this environment")}catch(r){console.error(r),e.getItem=()=>null,e.setItem=()=>{}}}function ghe(e){return`react-resizable-panels:${e}`}function yhe(e){return e.map(r=>{const{constraints:n,id:o,idIsFromProps:a,order:i}=r;return a?o:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((r,n)=>r.localeCompare(n)).join(",")}function bhe(e,r){try{const n=ghe(e),o=r.getItem(n);if(o){const a=JSON.parse(o);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function Qxt(e,r,n){var o,a;const i=(o=bhe(e,n))!==null&&o!==void 0?o:{},l=yhe(r);return(a=i[l])!==null&&a!==void 0?a:null}function Jxt(e,r,n,o,a){var i;const l=ghe(e),s=yhe(r),c=(i=bhe(e,a))!==null&&i!==void 0?i:{};c[s]={expandToSizes:Object.fromEntries(n.entries()),layout:o};try{a.setItem(l,JSON.stringify(c))}catch(u){console.error(u)}}function vhe({layout:e,panelConstraints:r}){const n=[...e],o=n.reduce((i,l)=>i+l,0);if(n.length!==r.length)throw Error(`Invalid ${r.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!qa(o,100)&&n.length>0)for(let i=0;i<r.length;i++){const l=n[i];or(l!=null,`No layout data found for index ${i}`);const s=100/o*l;n[i]=s}let a=0;for(let i=0;i<r.length;i++){const l=n[i];or(l!=null,`No layout data found for index ${i}`);const s=Rg({panelConstraints:r,panelIndex:i,size:l});l!=s&&(a+=l-s,n[i]=s)}if(!qa(a,0))for(let i=0;i<r.length;i++){const l=n[i];or(l!=null,`No layout data found for index ${i}`);const s=l+a,c=Rg({panelConstraints:r,panelIndex:i,size:s});if(l!==c&&(a-=c-l,n[i]=c,qa(a,0)))break}return n}const ewt=100,Yb={getItem:e=>(mhe(Yb),Yb.getItem(e)),setItem:(e,r)=>{mhe(Yb),Yb.setItem(e,r)}},xhe={};function whe({autoSaveId:e=null,children:r,className:n="",direction:o,forwardedRef:a,id:i=null,onLayout:l=null,keyboardResizeBy:s=null,storage:c=Yb,style:u,tagName:d="div",...p}){const f=ihe(i),g=S.useRef(null),[b,x]=S.useState(null),[w,k]=S.useState([]),C=jxt(),_=S.useRef({}),T=S.useRef(new Map),R=S.useRef(0),A=S.useRef({autoSaveId:e,direction:o,dragState:b,id:f,keyboardResizeBy:s,onLayout:l,storage:c}),D=S.useRef({layout:w,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(a,()=>({getId:()=>A.current.id,getLayout:()=>{const{layout:B}=D.current;return B},setLayout:B=>{const{onLayout:W}=A.current,{layout:Q,panelDataArray:J}=D.current,ne=vhe({layout:B,panelConstraints:J.map(te=>te.constraints)});hhe(Q,ne)||(k(ne),D.current.layout=ne,W&&W(ne),Ag(J,ne,_.current))}}),[]),Tg(()=>{A.current.autoSaveId=e,A.current.direction=o,A.current.dragState=b,A.current.id=f,A.current.onLayout=l,A.current.storage=c}),Yxt({committedValuesRef:A,eagerValuesRef:D,groupId:f,layout:w,panelDataArray:D.current.panelDataArray,setLayout:k,panelGroupElement:g.current}),S.useEffect(()=>{const{panelDataArray:B}=D.current;if(e){if(w.length===0||w.length!==B.length)return;let W=xhe[e];W==null&&(W=Zxt(Jxt,ewt),xhe[e]=W);const Q=[...B],J=new Map(T.current);W(e,Q,J,w,c)}},[e,w,c]),S.useEffect(()=>{});const N=S.useCallback(B=>{const{onLayout:W}=A.current,{layout:Q,panelDataArray:J}=D.current;if(B.constraints.collapsible){const ne=J.map(Te=>Te.constraints),{collapsedSize:te=0,panelSize:ee,pivotIndices:pe}=ah(J,B,Q);if(or(ee!=null,`Panel size not found for panel "${B.id}"`),!Ac(ee,te)){T.current.set(B.id,ee);const Te=Ng(J,B)===J.length-1?ee-te:te-ee,ce=Vb({delta:Te,initialLayout:Q,panelConstraints:ne,pivotIndices:pe,prevLayout:Q,trigger:"imperative-api"});Nk(Q,ce)||(k(ce),D.current.layout=ce,W&&W(ce),Ag(J,ce,_.current))}}},[]),$=S.useCallback((B,W)=>{const{onLayout:Q}=A.current,{layout:J,panelDataArray:ne}=D.current;if(B.constraints.collapsible){const te=ne.map(xe=>xe.constraints),{collapsedSize:ee=0,panelSize:pe=0,minSize:Te=0,pivotIndices:ce}=ah(ne,B,J),de=W??Te;if(Ac(pe,ee)){const xe=T.current.get(B.id),De=xe!=null&&xe>=de?xe:de,Ge=Ng(ne,B)===ne.length-1?pe-De:De-pe,et=Vb({delta:Ge,initialLayout:J,panelConstraints:te,pivotIndices:ce,prevLayout:J,trigger:"imperative-api"});Nk(J,et)||(k(et),D.current.layout=et,Q&&Q(et),Ag(ne,et,_.current))}}},[]),O=S.useCallback(B=>{const{layout:W,panelDataArray:Q}=D.current,{panelSize:J}=ah(Q,B,W);return or(J!=null,`Panel size not found for panel "${B.id}"`),J},[]),j=S.useCallback((B,W)=>{const{panelDataArray:Q}=D.current,J=Ng(Q,B);return Kxt({defaultSize:W,dragState:b,layout:w,panelData:Q,panelIndex:J})},[b,w]),L=S.useCallback(B=>{const{layout:W,panelDataArray:Q}=D.current,{collapsedSize:J=0,collapsible:ne,panelSize:te}=ah(Q,B,W);return or(te!=null,`Panel size not found for panel "${B.id}"`),ne===!0&&Ac(te,J)},[]),Y=S.useCallback(B=>{const{layout:W,panelDataArray:Q}=D.current,{collapsedSize:J=0,collapsible:ne,panelSize:te}=ah(Q,B,W);return or(te!=null,`Panel size not found for panel "${B.id}"`),!ne||oh(te,J)>0},[]),M=S.useCallback(B=>{const{panelDataArray:W}=D.current;W.push(B),W.sort((Q,J)=>{const ne=Q.order,te=J.order;return ne==null&&te==null?0:ne==null?-1:te==null?1:ne-te}),D.current.panelDataArrayChanged=!0,C()},[C]);Tg(()=>{if(D.current.panelDataArrayChanged){D.current.panelDataArrayChanged=!1;const{autoSaveId:B,onLayout:W,storage:Q}=A.current,{layout:J,panelDataArray:ne}=D.current;let te=null;if(B){const pe=Qxt(B,ne,Q);pe&&(T.current=new Map(Object.entries(pe.expandToSizes)),te=pe.layout)}te==null&&(te=Xxt({panelDataArray:ne}));const ee=vhe({layout:te,panelConstraints:ne.map(pe=>pe.constraints)});hhe(J,ee)||(k(ee),D.current.layout=ee,W&&W(ee),Ag(ne,ee,_.current))}}),Tg(()=>{const B=D.current;return()=>{B.layout=[]}},[]);const q=S.useCallback(B=>{let W=!1;const Q=g.current;return Q&&window.getComputedStyle(Q,null).getPropertyValue("direction")==="rtl"&&(W=!0),function(J){J.preventDefault();const ne=g.current;if(!ne)return()=>null;const{direction:te,dragState:ee,id:pe,keyboardResizeBy:Te,onLayout:ce}=A.current,{layout:de,panelDataArray:xe}=D.current,{initialLayout:De}=ee??{},Ge=dhe(pe,B,ne);let et=Gxt(J,B,te,ee,Te,ne);const ft=te==="horizontal";ft&&W&&(et=-et);const Ze=xe.map(We=>We.constraints),Et=Vb({delta:et,initialLayout:De??de,panelConstraints:Ze,pivotIndices:Ge,prevLayout:de,trigger:she(J)?"keyboard":"mouse-or-touch"}),Xe=!Nk(de,Et);(che(J)||uhe(J))&&R.current!=et&&(R.current=et,!Xe&&et!==0?ft?p$(B,et<0?Oxt:Ixt):p$(B,et<0?zxt:Lxt):p$(B,0)),Xe&&(k(Et),D.current.layout=Et,ce&&ce(Et),Ag(xe,Et,_.current))}},[]),z=S.useCallback((B,W)=>{const{onLayout:Q}=A.current,{layout:J,panelDataArray:ne}=D.current,te=ne.map(de=>de.constraints),{panelSize:ee,pivotIndices:pe}=ah(ne,B,J);or(ee!=null,`Panel size not found for panel "${B.id}"`);const Te=Ng(ne,B)===ne.length-1?ee-W:W-ee,ce=Vb({delta:Te,initialLayout:J,panelConstraints:te,pivotIndices:pe,prevLayout:J,trigger:"imperative-api"});Nk(J,ce)||(k(ce),D.current.layout=ce,Q&&Q(ce),Ag(ne,ce,_.current))},[]),H=S.useCallback((B,W)=>{const{layout:Q,panelDataArray:J}=D.current,{collapsedSize:ne=0,collapsible:te}=W,{collapsedSize:ee=0,collapsible:pe,maxSize:Te=100,minSize:ce=0}=B.constraints,{panelSize:de}=ah(J,B,Q);de!=null&&(te&&pe&&Ac(de,ne)?Ac(ne,ee)||z(B,ee):de<ce?z(B,ce):de>Te&&z(B,Te))},[z]),U=S.useCallback((B,W)=>{const{direction:Q}=A.current,{layout:J}=D.current;if(!g.current)return;const ne=h$(B,g.current);or(ne,`Drag handle element not found for id "${B}"`);const te=fhe(Q,W);x({dragHandleId:B,dragHandleRect:ne.getBoundingClientRect(),initialCursorPosition:te,initialLayout:J})},[]),K=S.useCallback(()=>{x(null)},[]),V=S.useCallback(B=>{const{panelDataArray:W}=D.current,Q=Ng(W,B);Q>=0&&(W.splice(Q,1),delete _.current[B.id],D.current.panelDataArrayChanged=!0,C())},[C]),X=S.useMemo(()=>({collapsePanel:N,direction:o,dragState:b,expandPanel:$,getPanelSize:O,getPanelStyle:j,groupId:f,isPanelCollapsed:L,isPanelExpanded:Y,reevaluatePanelConstraints:H,registerPanel:M,registerResizeHandle:q,resizePanel:z,startDragging:U,stopDragging:K,unregisterPanel:V,panelGroupElement:g.current}),[N,b,o,$,O,j,f,L,Y,H,M,q,z,U,K,V]),Z={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(u$.Provider,{value:X},S.createElement(d,{...p,children:r,className:n,id:i,ref:g,style:{...Z,...u},[Ha.group]:"",[Ha.groupDirection]:o,[Ha.groupId]:f}))}const twt=S.forwardRef((e,r)=>S.createElement(whe,{...e,forwardedRef:r}));whe.displayName="PanelGroup",twt.displayName="forwardRef(PanelGroup)";function Ng(e,r){return e.findIndex(n=>n===r||n.id===r.id)}function ah(e,r,n){const o=Ng(e,r),a=o===e.length-1?[o-1,o]:[o,o+1],i=n[o];return{...r.constraints,panelSize:i,pivotIndices:a}}function $e(e,r,n){function o(s,c){var u;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),r(s,c);for(const d in l.prototype)d in s||Object.defineProperty(s,d,{value:l.prototype[d].bind(s)});s._zod.constr=l,s._zod.def=c}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function l(s){var c;const u=n?.Parent?new i:this;o(u,s),(c=u._zod).deferred??(c.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(l,"init",{value:o}),Object.defineProperty(l,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class Wb extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const khe={};function ih(e){return khe}function rwt(e){const r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function nwt(e,r){return typeof r=="bigint"?r.toString():r}function _he(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function f$(e){return e==null}function m$(e){const r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Ur(e,r,n){Object.defineProperty(e,r,{get(){{const o=n();return e[r]=o,o}},set(o){Object.defineProperty(e,r,{value:o})},configurable:!0})}function g$(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gb(e){return JSON.stringify(e)}const Ehe=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function y$(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const owt=_he(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function b$(e){if(y$(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const n=r.prototype;return!(y$(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const awt=new Set(["string","number","symbol"]);function Xb(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lh(e,r,n){const o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function _t(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function iwt(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}function lwt(e,r){const n={},o=e._zod.def;for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(n[a]=o.shape[a])}return lh(e,{...e._zod.def,shape:n,checks:[]})}function swt(e,r){const n={...e._zod.def.shape},o=e._zod.def;for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete n[a]}return lh(e,{...e._zod.def,shape:n,checks:[]})}function cwt(e,r){if(!b$(r))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const o={...e._zod.def.shape,...r};return g$(this,"shape",o),o},checks:[]};return lh(e,n)}function uwt(e,r){return lh(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...r._zod.def.shape};return g$(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function dwt(e,r,n){const o=r._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)a[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return lh(r,{...r._zod.def,shape:a,checks:[]})}function pwt(e,r,n){const o=r._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return lh(r,{...r._zod.def,shape:a,checks:[]})}function Kb(e,r=0){for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function v$(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Dk(e){return typeof e=="string"?e:e?.message}function sh(e,r,n){const o={...e,path:e.path??[]};if(!e.message){const a=Dk(e.inst?._zod.def?.error?.(e))??Dk(r?.error?.(e))??Dk(n.customError?.(e))??Dk(n.localeError?.(e))??"Invalid input";o.message=a}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function x$(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Zb(...e){const[r,n,o]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}const She=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(r,nwt,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Che=$e("$ZodError",She),The=$e("$ZodError",She,{Parent:Error});function hwt(e,r=n=>n.message){const n={},o=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(r(a))):o.push(r(a));return{formErrors:o,fieldErrors:n}}function Rhe(e,r){const n=r||function(i){return i.message},o={_errors:[]},a=i=>{for(const l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(s=>a({issues:s}));else if(l.code==="invalid_key")a({issues:l.issues});else if(l.code==="invalid_element")a({issues:l.issues});else if(l.path.length===0)o._errors.push(n(l));else{let s=o,c=0;for(;c<l.path.length;){const u=l.path[c];c===l.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(l))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return a(e),o}const fwt=e=>(r,n,o,a)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},l=r._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Wb;if(l.issues.length){const s=new(a?.Err??e)(l.issues.map(c=>sh(c,i,ih())));throw Ehe(s,a?.callee),s}return l.value},mwt=e=>async(r,n,o,a)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let l=r._zod.run({value:n,issues:[]},i);if(l instanceof Promise&&(l=await l),l.issues.length){const s=new(a?.Err??e)(l.issues.map(c=>sh(c,i,ih())));throw Ehe(s,a?.callee),s}return l.value},Ahe=e=>(r,n,o)=>{const a=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Wb;return i.issues.length?{success:!1,error:new(e??Che)(i.issues.map(l=>sh(l,a,ih())))}:{success:!0,data:i.value}},gwt=Ahe(The),Nhe=e=>async(r,n,o)=>{const a=o?Object.assign(o,{async:!0}):{async:!0};let i=r._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(l=>sh(l,a,ih())))}:{success:!0,data:i.value}},ywt=Nhe(The),bwt=/^[cC][^\s-]{8,}$/,vwt=/^[0-9a-z]+$/,xwt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wwt=/^[0-9a-vA-V]{20}$/,kwt=/^[A-Za-z0-9]{27}$/,_wt=/^[a-zA-Z0-9_-]{21}$/,Ewt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Swt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dhe=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,Cwt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Twt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Rwt(){return new RegExp(Twt,"u")}const Awt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Nwt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Dwt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pwt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$wt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Phe=/^[A-Za-z0-9_-]*$/,Mwt=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Owt=/^\+(?:[0-9]){6,14}[0-9]$/,$he="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Iwt=new RegExp(`^${$he}$`);function Mhe(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function zwt(e){return new RegExp(`^${Mhe(e)}$`)}function Lwt(e){const r=Mhe({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const o=`${r}(?:${n.join("|")})`;return new RegExp(`^${$he}T(?:${o})$`)}const Bwt=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},jwt=/true|false/i,Fwt=/^[^A-Z]*$/,Hwt=/^[^a-z]*$/,Ss=$e("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),qwt=$e("$ZodCheckMaxLength",(e,r)=>{var n;Ss.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!f$(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<a&&(o._zod.bag.maximum=r.maximum)}),e._zod.check=o=>{const a=o.value;if(a.length<=r.maximum)return;const i=x$(a);o.issues.push({origin:i,code:"too_big",maximum:r.maximum,inclusive:!0,input:a,inst:e,continue:!r.abort})}}),Uwt=$e("$ZodCheckMinLength",(e,r)=>{var n;Ss.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!f$(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>a&&(o._zod.bag.minimum=r.minimum)}),e._zod.check=o=>{const a=o.value;if(a.length>=r.minimum)return;const i=x$(a);o.issues.push({origin:i,code:"too_small",minimum:r.minimum,inclusive:!0,input:a,inst:e,continue:!r.abort})}}),Vwt=$e("$ZodCheckLengthEquals",(e,r)=>{var n;Ss.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!f$(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag;a.minimum=r.length,a.maximum=r.length,a.length=r.length}),e._zod.check=o=>{const a=o.value,i=a.length;if(i===r.length)return;const l=x$(a),s=i>r.length;o.issues.push({origin:l,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!r.abort})}}),Pk=$e("$ZodCheckStringFormat",(e,r)=>{var n,o;Ss.init(e,r),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=e._zod).check??(n.check=a=>{r.pattern.lastIndex=0,!r.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:r.format,input:a.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ywt=$e("$ZodCheckRegex",(e,r)=>{Pk.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Wwt=$e("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Fwt),Pk.init(e,r)}),Gwt=$e("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=Hwt),Pk.init(e,r)}),Xwt=$e("$ZodCheckIncludes",(e,r)=>{Ss.init(e,r);const n=Xb(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.includes(r.includes,r.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:a.value,inst:e,continue:!r.abort})}}),Kwt=$e("$ZodCheckStartsWith",(e,r)=>{Ss.init(e,r);const n=new RegExp(`^${Xb(r.prefix)}.*`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:e,continue:!r.abort})}}),Zwt=$e("$ZodCheckEndsWith",(e,r)=>{Ss.init(e,r);const n=new RegExp(`.*${Xb(r.suffix)}$`);r.pattern??(r.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:e,continue:!r.abort})}}),Qwt=$e("$ZodCheckOverwrite",(e,r)=>{Ss.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});class Jwt{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const n=r.split(`
`).filter(i=>i),o=Math.min(...n.map(i=>i.length-i.trimStart().length)),a=n.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const r=Function,n=this?.args,o=[...(this?.content??[""]).map(a=>`  ${a}`)];return new r(...n,o.join(`
`))}}const e2t={major:4,minor:0,patch:0},an=$e("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=e2t;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const a of o)for(const i of a._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(i,l,s)=>{let c=Kb(i),u;for(const d of l){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(c)continue;const p=i.issues.length,f=d._zod.check(i);if(f instanceof Promise&&s?.async===!1)throw new Wb;if(u||f instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await f,i.issues.length!==p&&(c||(c=Kb(i,p)))});else{if(i.issues.length===p)continue;c||(c=Kb(i,p))}}return u?u.then(()=>i):i};e._zod.run=(i,l)=>{const s=e._zod.parse(i,l);if(s instanceof Promise){if(l.async===!1)throw new Wb;return s.then(c=>a(c,o,l))}return a(s,o,l)}}e["~standard"]={validate:a=>{try{const i=gwt(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ywt(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),$k=$e("$ZodString",(e,r)=>{an.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Bwt(e._zod.bag),e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Vr=$e("$ZodStringFormat",(e,r)=>{Pk.init(e,r),$k.init(e,r)}),t2t=$e("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Swt),Vr.init(e,r)}),r2t=$e("$ZodUUID",(e,r)=>{if(r.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Dhe(n))}else r.pattern??(r.pattern=Dhe());Vr.init(e,r)}),n2t=$e("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Cwt),Vr.init(e,r)}),o2t=$e("$ZodURL",(e,r)=>{Vr.init(e,r),e._zod.check=n=>{try{const o=n.value,a=new URL(o),i=a.href;r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Mwt.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),!o.endsWith("/")&&i.endsWith("/")?n.value=i.slice(0,-1):n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),a2t=$e("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Rwt()),Vr.init(e,r)}),i2t=$e("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=_wt),Vr.init(e,r)}),l2t=$e("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=bwt),Vr.init(e,r)}),s2t=$e("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=vwt),Vr.init(e,r)}),c2t=$e("$ZodULID",(e,r)=>{r.pattern??(r.pattern=xwt),Vr.init(e,r)}),u2t=$e("$ZodXID",(e,r)=>{r.pattern??(r.pattern=wwt),Vr.init(e,r)}),d2t=$e("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=kwt),Vr.init(e,r)}),p2t=$e("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Lwt(r)),Vr.init(e,r)}),h2t=$e("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Iwt),Vr.init(e,r)}),f2t=$e("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=zwt(r)),Vr.init(e,r)}),m2t=$e("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Ewt),Vr.init(e,r)}),g2t=$e("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Awt),Vr.init(e,r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv4"})}),y2t=$e("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Nwt),Vr.init(e,r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!r.abort})}}}),b2t=$e("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Dwt),Vr.init(e,r)}),v2t=$e("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Pwt),Vr.init(e,r),e._zod.check=n=>{const[o,a]=n.value.split("/");try{if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!r.abort})}}});function Ohe(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const x2t=$e("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=$wt),Vr.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Ohe(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function w2t(e){if(!Phe.test(e))return!1;const r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return Ohe(n)}const k2t=$e("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=Phe),Vr.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{w2t(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),_2t=$e("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Owt),Vr.init(e,r)});function E2t(e,r=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const a=JSON.parse(atob(o));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||r&&(!("alg"in a)||a.alg!==r))}catch{return!1}}const S2t=$e("$ZodJWT",(e,r)=>{Vr.init(e,r),e._zod.check=n=>{E2t(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),Ihe=$e("$ZodBoolean",(e,r)=>{an.init(e,r),e._zod.pattern=jwt,e._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),C2t=$e("$ZodUnknown",(e,r)=>{an.init(e,r),e._zod.parse=n=>n}),T2t=$e("$ZodNever",(e,r)=>{an.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function zhe(e,r,n){e.issues.length&&r.issues.push(...v$(n,e.issues)),r.value[n]=e.value}const R2t=$e("$ZodArray",(e,r)=>{an.init(e,r),e._zod.parse=(n,o)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let l=0;l<a.length;l++){const s=a[l],c=r.element._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(u=>zhe(u,n,l))):zhe(c,n,l)}return i.length?Promise.all(i).then(()=>n):n}});function Mk(e,r,n){e.issues.length&&r.issues.push(...v$(n,e.issues)),r.value[n]=e.value}function Lhe(e,r,n,o){e.issues.length?o[n]===void 0?n in o?r.value[n]=void 0:r.value[n]=e.value:r.issues.push(...v$(n,e.issues)):e.value===void 0?n in o&&(r.value[n]=void 0):r.value[n]=e.value}const A2t=$e("$ZodObject",(e,r)=>{an.init(e,r);const n=_he(()=>{const d=Object.keys(r.shape);for(const f of d)if(!(r.shape[f]instanceof an))throw new Error(`Invalid element at key "${f}": expected a Zod schema`);const p=iwt(r.shape);return{shape:r.shape,keys:d,keySet:new Set(d),numKeys:d.length,optionalKeys:new Set(p)}});Ur(e._zod,"propValues",()=>{const d=r.shape,p={};for(const f in d){const g=d[f]._zod;if(g.values){p[f]??(p[f]=new Set);for(const b of g.values)p[f].add(b)}}return p});const o=d=>{const p=new Jwt(["shape","payload","ctx"]),f=n.value,g=k=>{const C=Gb(k);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};p.write("const input = payload.value;");const b=Object.create(null);let x=0;for(const k of f.keys)b[k]=`key_${x++}`;p.write("const newResult = {}");for(const k of f.keys)if(f.optionalKeys.has(k)){const C=b[k];p.write(`const ${C} = ${g(k)};`);const _=Gb(k);p.write(`
        if (${C}.issues.length) {
          if (input[${_}] === undefined) {
            if (${_} in input) {
              newResult[${_}] = undefined;
            }
          } else {
            payload.issues = payload.issues.concat(
              ${C}.issues.map((iss) => ({
                ...iss,
                path: iss.path ? [${_}, ...iss.path] : [${_}],
              }))
            );
          }
        } else if (${C}.value === undefined) {
          if (${_} in input) newResult[${_}] = undefined;
        } else {
          newResult[${_}] = ${C}.value;
        }
        `)}else{const C=b[k];p.write(`const ${C} = ${g(k)};`),p.write(`
          if (${C}.issues.length) payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${Gb(k)}, ...iss.path] : [${Gb(k)}]
          })));`),p.write(`newResult[${Gb(k)}] = ${C}.value`)}p.write("payload.value = newResult;"),p.write("return payload;");const w=p.compile();return(k,C)=>w(d,k,C)};let a;const i=y$,l=!khe.jitless,s=l&&owt.value,c=r.catchall;let u;e._zod.parse=(d,p)=>{u??(u=n.value);const f=d.value;if(!i(f))return d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d;const g=[];if(l&&s&&p?.async===!1&&p.jitless!==!0)a||(a=o(r.shape)),d=a(d,p);else{d.value={};const C=u.shape;for(const _ of u.keys){const T=C[_],R=T._zod.run({value:f[_],issues:[]},p),A=T._zod.optin==="optional"&&T._zod.optout==="optional";R instanceof Promise?g.push(R.then(D=>A?Lhe(D,d,_,f):Mk(D,d,_))):A?Lhe(R,d,_,f):Mk(R,d,_)}}if(!c)return g.length?Promise.all(g).then(()=>d):d;const b=[],x=u.keySet,w=c._zod,k=w.def.type;for(const C of Object.keys(f)){if(x.has(C))continue;if(k==="never"){b.push(C);continue}const _=w.run({value:f[C],issues:[]},p);_ instanceof Promise?g.push(_.then(T=>Mk(T,d,C))):Mk(_,d,C)}return b.length&&d.issues.push({code:"unrecognized_keys",keys:b,input:f,inst:e}),g.length?Promise.all(g).then(()=>d):d}});function Bhe(e,r,n,o){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;return r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(a=>a.issues.map(i=>sh(i,o,ih())))}),r}const N2t=$e("$ZodUnion",(e,r)=>{an.init(e,r),Ur(e._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Ur(e._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Ur(e._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),Ur(e._zod,"pattern",()=>{if(r.options.every(n=>n._zod.pattern)){const n=r.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>m$(o.source)).join("|")})$`)}}),e._zod.parse=(n,o)=>{let a=!1;const i=[];for(const l of r.options){const s=l._zod.run({value:n.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>Bhe(l,n,e,o)):Bhe(i,n,e,o)}}),D2t=$e("$ZodIntersection",(e,r)=>{an.init(e,r),e._zod.parse=(n,o)=>{const a=n.value,i=r.left._zod.run({value:a,issues:[]},o),l=r.right._zod.run({value:a,issues:[]},o);return i instanceof Promise||l instanceof Promise?Promise.all([i,l]).then(([s,c])=>jhe(n,s,c)):jhe(n,i,l)}});function w$(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(b$(e)&&b$(r)){const n=Object.keys(r),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...r};for(const i of o){const l=w$(e[i],r[i]);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};a[i]=l.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const a=e[o],i=r[o],l=w$(a,i);if(!l.valid)return{valid:!1,mergeErrorPath:[o,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function jhe(e,r,n){if(r.issues.length&&e.issues.push(...r.issues),n.issues.length&&e.issues.push(...n.issues),Kb(e))return e;const o=w$(r.value,n.value);if(!o.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const P2t=$e("$ZodEnum",(e,r)=>{an.init(e,r);const n=rwt(r.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(o=>awt.has(typeof o)).map(o=>typeof o=="string"?Xb(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return e._zod.values.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),$2t=$e("$ZodLiteral",(e,r)=>{an.init(e,r),e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?Xb(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,o)=>{const a=n.value;return e._zod.values.has(a)||n.issues.push({code:"invalid_value",values:r.values,input:a,inst:e}),n}}),Fhe=$e("$ZodTransform",(e,r)=>{an.init(e,r),e._zod.parse=(n,o)=>{const a=r.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n));if(a instanceof Promise)throw new Wb;return n.value=a,n}}),M2t=$e("$ZodOptional",(e,r)=>{an.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Ur(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Ur(e._zod,"pattern",()=>{const n=r.innerType._zod.pattern;return n?new RegExp(`^(${m$(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>r.innerType._zod.optin==="optional"?r.innerType._zod.run(n,o):n.value===void 0?n:r.innerType._zod.run(n,o)}),O2t=$e("$ZodNullable",(e,r)=>{an.init(e,r),Ur(e._zod,"optin",()=>r.innerType._zod.optin),Ur(e._zod,"optout",()=>r.innerType._zod.optout),Ur(e._zod,"pattern",()=>{const n=r.innerType._zod.pattern;return n?new RegExp(`^(${m$(n.source)}|null)$`):void 0}),Ur(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),I2t=$e("$ZodDefault",(e,r)=>{an.init(e,r),e._zod.optin="optional",Ur(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{if(n.value===void 0)return n.value=r.defaultValue,n;const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>Hhe(i,r)):Hhe(a,r)}});function Hhe(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const z2t=$e("$ZodPrefault",(e,r)=>{an.init(e,r),e._zod.optin="optional",Ur(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>(n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),L2t=$e("$ZodNonOptional",(e,r)=>{an.init(e,r),Ur(e._zod,"values",()=>{const n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>qhe(i,e)):qhe(a,e)}});function qhe(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const B2t=$e("$ZodCatch",(e,r)=>{an.init(e,r),e._zod.optin="optional",Ur(e._zod,"optout",()=>r.innerType._zod.optout),Ur(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,o)=>{const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(l=>sh(l,o,ih()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=r.catchValue({...n,error:{issues:a.issues.map(i=>sh(i,o,ih()))},input:n.value}),n.issues=[]),n)}}),Uhe=$e("$ZodPipe",(e,r)=>{an.init(e,r),Ur(e._zod,"values",()=>r.in._zod.values),Ur(e._zod,"optin",()=>r.in._zod.optin),Ur(e._zod,"optout",()=>r.out._zod.optout),e._zod.parse=(n,o)=>{const a=r.in._zod.run(n,o);return a instanceof Promise?a.then(i=>Vhe(i,r,o)):Vhe(a,r,o)}});function Vhe(e,r,n){return Kb(e)?e:r.out._zod.run({value:e.value,issues:e.issues},n)}const j2t=$e("$ZodReadonly",(e,r)=>{an.init(e,r),Ur(e._zod,"propValues",()=>r.innerType._zod.propValues),Ur(e._zod,"values",()=>r.innerType._zod.values),Ur(e._zod,"optin",()=>r.innerType._zod.optin),Ur(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(n,o)=>{const a=r.innerType._zod.run(n,o);return a instanceof Promise?a.then(Yhe):Yhe(a)}});function Yhe(e){return e.value=Object.freeze(e.value),e}const F2t=$e("$ZodCustom",(e,r)=>{Ss.init(e,r),an.init(e,r),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,a=r.fn(o);if(a instanceof Promise)return a.then(i=>Whe(i,n,o,e));Whe(a,n,o,e)}});function Whe(e,r,n,o){if(!e){const a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),r.issues.push(Zb(a))}}class H2t{constructor(){this._map=new Map,this._idmap=new Map}add(r,...n){const o=n[0];if(this._map.set(r,o),o&&typeof o=="object"&&"id"in o){if(this._idmap.has(o.id))throw new Error(`ID ${o.id} already exists in the registry`);this._idmap.set(o.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){const n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){const n=r._zod.parent;if(n){const o={...this.get(n)??{}};return delete o.id,{...o,...this._map.get(r)}}return this._map.get(r)}has(r){return this._map.has(r)}}function q2t(){return new H2t}const Ok=q2t();function U2t(e,r){return new e({type:"string",..._t(r)})}function V2t(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._t(r)})}function Ghe(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._t(r)})}function Y2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._t(r)})}function W2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._t(r)})}function G2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._t(r)})}function X2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._t(r)})}function K2t(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._t(r)})}function Z2t(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._t(r)})}function Q2t(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._t(r)})}function J2t(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._t(r)})}function e4t(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._t(r)})}function t4t(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._t(r)})}function r4t(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._t(r)})}function n4t(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._t(r)})}function o4t(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._t(r)})}function a4t(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._t(r)})}function i4t(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._t(r)})}function l4t(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._t(r)})}function s4t(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._t(r)})}function c4t(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._t(r)})}function u4t(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._t(r)})}function d4t(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._t(r)})}function p4t(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._t(r)})}function h4t(e,r){return new e({type:"string",format:"date",check:"string_format",..._t(r)})}function f4t(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,..._t(r)})}function m4t(e,r){return new e({type:"string",format:"duration",check:"string_format",..._t(r)})}function g4t(e){return new e({type:"unknown"})}function y4t(e,r){return new e({type:"never",..._t(r)})}function Xhe(e,r){return new qwt({check:"max_length",..._t(r),maximum:e})}function Ik(e,r){return new Uwt({check:"min_length",..._t(r),minimum:e})}function Khe(e,r){return new Vwt({check:"length_equals",..._t(r),length:e})}function b4t(e,r){return new Ywt({check:"string_format",format:"regex",..._t(r),pattern:e})}function v4t(e){return new Wwt({check:"string_format",format:"lowercase",..._t(e)})}function x4t(e){return new Gwt({check:"string_format",format:"uppercase",..._t(e)})}function w4t(e,r){return new Xwt({check:"string_format",format:"includes",..._t(r),includes:e})}function k4t(e,r){return new Kwt({check:"string_format",format:"starts_with",..._t(r),prefix:e})}function _4t(e,r){return new Zwt({check:"string_format",format:"ends_with",..._t(r),suffix:e})}function Qb(e){return new Qwt({check:"overwrite",tx:e})}function E4t(e){return Qb(r=>r.normalize(e))}function S4t(){return Qb(e=>e.trim())}function C4t(){return Qb(e=>e.toLowerCase())}function T4t(){return Qb(e=>e.toUpperCase())}function R4t(e,r,n){return new e({type:"array",element:r,..._t(n)})}function A4t(e,r,n){return new e({type:"custom",check:"custom",fn:r,..._t(n)})}function N4t(e,r){const n=_t(r);let o=n.truthy??["true","1","yes","on","y","enabled"],a=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),a=a.map(g=>typeof g=="string"?g.toLowerCase():g));const i=new Set(o),l=new Set(a),s=e.Pipe??Uhe,c=e.Boolean??Ihe,u=e.String??$k,d=e.Transform??Fhe,p=new d({type:"transform",transform:(g,b)=>{let x=g;return n.case!=="sensitive"&&(x=x.toLowerCase()),i.has(x)?!0:l.has(x)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...l],input:b.value,inst:p}),{})},error:n.error}),f=new s({type:"pipe",in:new u({type:"string",error:n.error}),out:p,error:n.error});return new s({type:"pipe",in:f,out:new c({type:"boolean",error:n.error}),error:n.error})}const D4t=$e("ZodISODateTime",(e,r)=>{p2t.init(e,r),Kr.init(e,r)});function P4t(e){return p4t(D4t,e)}const $4t=$e("ZodISODate",(e,r)=>{h2t.init(e,r),Kr.init(e,r)});function M4t(e){return h4t($4t,e)}const O4t=$e("ZodISOTime",(e,r)=>{f2t.init(e,r),Kr.init(e,r)});function I4t(e){return f4t(O4t,e)}const z4t=$e("ZodISODuration",(e,r)=>{m2t.init(e,r),Kr.init(e,r)});function L4t(e){return m4t(z4t,e)}const B4t=(e,r)=>{Che.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Rhe(e,n)},flatten:{value:n=>hwt(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},zk=$e("ZodError",B4t,{Parent:Error}),j4t=fwt(zk),F4t=mwt(zk),H4t=Ahe(zk),q4t=Nhe(zk),In=$e("ZodType",(e,r)=>(an.init(e,r),e.def=r,Object.defineProperty(e,"_def",{value:r}),e.check=(...n)=>e.clone({...r,checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),e.clone=(n,o)=>lh(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>j4t(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>H4t(e,n,o),e.parseAsync=async(n,o)=>F4t(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>q4t(e,n,o),e.spa=e.safeParseAsync,e.refine=(n,o)=>e.check(I5t(n,o)),e.superRefine=n=>e.check(z5t(n)),e.overwrite=n=>e.check(Qb(n)),e.optional=()=>nfe(e),e.nullable=()=>ofe(e),e.nullish=()=>nfe(ofe(e)),e.nonoptional=n=>A5t(e,n),e.array=()=>h5t(e),e.or=n=>y5t([e,n]),e.and=n=>v5t(e,n),e.transform=n=>lfe(e,_5t(n)),e.default=n=>C5t(e,n),e.prefault=n=>R5t(e,n),e.catch=n=>D5t(e,n),e.pipe=n=>lfe(e,n),e.readonly=()=>$5t(e),e.describe=n=>{const o=e.clone();return Ok.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Ok.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Ok.get(e);const o=e.clone();return Ok.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Zhe=$e("_ZodString",(e,r)=>{$k.init(e,r),In.init(e,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...o)=>e.check(b4t(...o)),e.includes=(...o)=>e.check(w4t(...o)),e.startsWith=(...o)=>e.check(k4t(...o)),e.endsWith=(...o)=>e.check(_4t(...o)),e.min=(...o)=>e.check(Ik(...o)),e.max=(...o)=>e.check(Xhe(...o)),e.length=(...o)=>e.check(Khe(...o)),e.nonempty=(...o)=>e.check(Ik(1,...o)),e.lowercase=o=>e.check(v4t(o)),e.uppercase=o=>e.check(x4t(o)),e.trim=()=>e.check(S4t()),e.normalize=(...o)=>e.check(E4t(...o)),e.toLowerCase=()=>e.check(C4t()),e.toUpperCase=()=>e.check(T4t())}),Qhe=$e("ZodString",(e,r)=>{$k.init(e,r),Zhe.init(e,r),e.email=n=>e.check(V2t(V4t,n)),e.url=n=>e.check(K2t(Y4t,n)),e.jwt=n=>e.check(d4t(l5t,n)),e.emoji=n=>e.check(Z2t(W4t,n)),e.guid=n=>e.check(Ghe(Jhe,n)),e.uuid=n=>e.check(Y2t(Lk,n)),e.uuidv4=n=>e.check(W2t(Lk,n)),e.uuidv6=n=>e.check(G2t(Lk,n)),e.uuidv7=n=>e.check(X2t(Lk,n)),e.nanoid=n=>e.check(Q2t(G4t,n)),e.guid=n=>e.check(Ghe(Jhe,n)),e.cuid=n=>e.check(J2t(X4t,n)),e.cuid2=n=>e.check(e4t(K4t,n)),e.ulid=n=>e.check(t4t(Z4t,n)),e.base64=n=>e.check(s4t(o5t,n)),e.base64url=n=>e.check(c4t(a5t,n)),e.xid=n=>e.check(r4t(Q4t,n)),e.ksuid=n=>e.check(n4t(J4t,n)),e.ipv4=n=>e.check(o4t(e5t,n)),e.ipv6=n=>e.check(a4t(t5t,n)),e.cidrv4=n=>e.check(i4t(r5t,n)),e.cidrv6=n=>e.check(l4t(n5t,n)),e.e164=n=>e.check(u4t(i5t,n)),e.datetime=n=>e.check(P4t(n)),e.date=n=>e.check(M4t(n)),e.time=n=>e.check(I4t(n)),e.duration=n=>e.check(L4t(n))});function U4t(e){return U2t(Qhe,e)}const Kr=$e("ZodStringFormat",(e,r)=>{Vr.init(e,r),Zhe.init(e,r)}),V4t=$e("ZodEmail",(e,r)=>{n2t.init(e,r),Kr.init(e,r)}),Jhe=$e("ZodGUID",(e,r)=>{t2t.init(e,r),Kr.init(e,r)}),Lk=$e("ZodUUID",(e,r)=>{r2t.init(e,r),Kr.init(e,r)}),Y4t=$e("ZodURL",(e,r)=>{o2t.init(e,r),Kr.init(e,r)}),W4t=$e("ZodEmoji",(e,r)=>{a2t.init(e,r),Kr.init(e,r)}),G4t=$e("ZodNanoID",(e,r)=>{i2t.init(e,r),Kr.init(e,r)}),X4t=$e("ZodCUID",(e,r)=>{l2t.init(e,r),Kr.init(e,r)}),K4t=$e("ZodCUID2",(e,r)=>{s2t.init(e,r),Kr.init(e,r)}),Z4t=$e("ZodULID",(e,r)=>{c2t.init(e,r),Kr.init(e,r)}),Q4t=$e("ZodXID",(e,r)=>{u2t.init(e,r),Kr.init(e,r)}),J4t=$e("ZodKSUID",(e,r)=>{d2t.init(e,r),Kr.init(e,r)}),e5t=$e("ZodIPv4",(e,r)=>{g2t.init(e,r),Kr.init(e,r)}),t5t=$e("ZodIPv6",(e,r)=>{y2t.init(e,r),Kr.init(e,r)}),r5t=$e("ZodCIDRv4",(e,r)=>{b2t.init(e,r),Kr.init(e,r)}),n5t=$e("ZodCIDRv6",(e,r)=>{v2t.init(e,r),Kr.init(e,r)}),o5t=$e("ZodBase64",(e,r)=>{x2t.init(e,r),Kr.init(e,r)}),a5t=$e("ZodBase64URL",(e,r)=>{k2t.init(e,r),Kr.init(e,r)}),i5t=$e("ZodE164",(e,r)=>{_2t.init(e,r),Kr.init(e,r)}),l5t=$e("ZodJWT",(e,r)=>{S2t.init(e,r),Kr.init(e,r)}),s5t=$e("ZodBoolean",(e,r)=>{Ihe.init(e,r),In.init(e,r)}),c5t=$e("ZodUnknown",(e,r)=>{C2t.init(e,r),In.init(e,r)});function efe(){return g4t(c5t)}const u5t=$e("ZodNever",(e,r)=>{T2t.init(e,r),In.init(e,r)});function d5t(e){return y4t(u5t,e)}const p5t=$e("ZodArray",(e,r)=>{R2t.init(e,r),In.init(e,r),e.element=r.element,e.min=(n,o)=>e.check(Ik(n,o)),e.nonempty=n=>e.check(Ik(1,n)),e.max=(n,o)=>e.check(Xhe(n,o)),e.length=(n,o)=>e.check(Khe(n,o)),e.unwrap=()=>e.element});function h5t(e,r){return R4t(p5t,e,r)}const f5t=$e("ZodObject",(e,r)=>{A2t.init(e,r),In.init(e,r),Ur(e,"shape",()=>r.shape),e.keyof=()=>x5t(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:efe()}),e.loose=()=>e.clone({...e._zod.def,catchall:efe()}),e.strict=()=>e.clone({...e._zod.def,catchall:d5t()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>cwt(e,n),e.merge=n=>uwt(e,n),e.pick=n=>lwt(e,n),e.omit=n=>swt(e,n),e.partial=(...n)=>dwt(rfe,e,n[0]),e.required=(...n)=>pwt(afe,e,n[0])});function m5t(e,r){const n={type:"object",get shape(){return g$(this,"shape",{...e}),this.shape},..._t(r)};return new f5t(n)}const g5t=$e("ZodUnion",(e,r)=>{N2t.init(e,r),In.init(e,r),e.options=r.options});function y5t(e,r){return new g5t({type:"union",options:e,..._t(r)})}const b5t=$e("ZodIntersection",(e,r)=>{D2t.init(e,r),In.init(e,r)});function v5t(e,r){return new b5t({type:"intersection",left:e,right:r})}const k$=$e("ZodEnum",(e,r)=>{P2t.init(e,r),In.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const n=new Set(Object.keys(r.entries));e.extract=(o,a)=>{const i={};for(const l of o)if(n.has(l))i[l]=r.entries[l];else throw new Error(`Key ${l} not found in enum`);return new k$({...r,checks:[],..._t(a),entries:i})},e.exclude=(o,a)=>{const i={...r.entries};for(const l of o)if(n.has(l))delete i[l];else throw new Error(`Key ${l} not found in enum`);return new k$({...r,checks:[],..._t(a),entries:i})}});function x5t(e,r){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new k$({type:"enum",entries:n,..._t(r)})}const w5t=$e("ZodLiteral",(e,r)=>{$2t.init(e,r),In.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function k5t(e,r){return new w5t({type:"literal",values:Array.isArray(e)?e:[e],..._t(r)})}const tfe=$e("ZodTransform",(e,r)=>{Fhe.init(e,r),In.init(e,r),e._zod.parse=(n,o)=>{n.addIssue=i=>{if(typeof i=="string")n.issues.push(Zb(i,n.value,r));else{const l=i;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),l.continue??(l.continue=!0),n.issues.push(Zb(l))}};const a=r.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n)):(n.value=a,n)}});function _5t(e){return new tfe({type:"transform",transform:e})}const rfe=$e("ZodOptional",(e,r)=>{M2t.init(e,r),In.init(e,r),e.unwrap=()=>e._zod.def.innerType});function nfe(e){return new rfe({type:"optional",innerType:e})}const E5t=$e("ZodNullable",(e,r)=>{O2t.init(e,r),In.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ofe(e){return new E5t({type:"nullable",innerType:e})}const S5t=$e("ZodDefault",(e,r)=>{I2t.init(e,r),In.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function C5t(e,r){return new S5t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}const T5t=$e("ZodPrefault",(e,r)=>{z2t.init(e,r),In.init(e,r),e.unwrap=()=>e._zod.def.innerType});function R5t(e,r){return new T5t({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}const afe=$e("ZodNonOptional",(e,r)=>{L2t.init(e,r),In.init(e,r),e.unwrap=()=>e._zod.def.innerType});function A5t(e,r){return new afe({type:"nonoptional",innerType:e,..._t(r)})}const N5t=$e("ZodCatch",(e,r)=>{B2t.init(e,r),In.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function D5t(e,r){return new N5t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const ife=$e("ZodPipe",(e,r)=>{Uhe.init(e,r),In.init(e,r),e.in=r.in,e.out=r.out});function lfe(e,r){return new ife({type:"pipe",in:e,out:r})}const P5t=$e("ZodReadonly",(e,r)=>{j2t.init(e,r),In.init(e,r)});function $5t(e){return new P5t({type:"readonly",innerType:e})}const M5t=$e("ZodCustom",(e,r)=>{F2t.init(e,r),In.init(e,r)});function O5t(e){const r=new Ss({check:"custom"});return r._zod.check=e,r}function I5t(e,r={}){return A4t(M5t,e,r)}function z5t(e){const r=O5t(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Zb(o,n.value,r._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=r),a.continue??(a.continue=!r._zod.def.abort),n.issues.push(Zb(a))}},e(n.value,n)));return r}const L5t=(...e)=>N4t({Pipe:ife,Boolean:s5t,String:Qhe,Transform:tfe},...e),B5t=m5t({viewId:U4t().default("index"),browser:L5t().default(!0),dynamicViewVariant:k5t(["diagram","sequence"]).optional()});class sfe extends HTMLElement{shadow;root;hostCss;lastHostCss="";constructor(){super(),this.shadow=this.attachShadow({mode:"open",delegatesFocus:!0})}updateHostCss(){const r=`
    :host {
      display: block;
      position: relative;
      background-color: transparent;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      overflow: hidden;
      border: 0px solid transparent;
      padding: 0;
    }`;r!==this.lastHostCss&&(this.hostCss?.replaceSync(r),this.lastHostCss=r)}connectedCallback(){this.lastHostCss="",this.hostCss=new CSSStyleSheet,this.updateHostCss(),this.shadow.adoptedStyleSheets=[this.hostCss],this.render()}disconnectedCallback(){this.root?.unmount(),this.root=void 0,this.shadow.adoptedStyleSheets.length=0,this.hostCss=void 0}static observedAttributes=["view-id","browser","dynamic-variant"];getProps(){const r=B5t.safeParse({viewId:this.getAttribute("view-id"),browser:this.getAttribute("browser")??void 0,dynamicViewVariant:this.getAttribute("dynamic-variant")??void 0});return r.success?r.data:(console.error("Invalid props",Rhe(r.error)),{viewId:"index"})}render(){const r=this.getProps();this.updateHostCss(),this.root??=frt.createRoot(this.shadow),this.root.render(y.jsx(crt,{...r}))}attributeChangedCallback(r){this.root&&this.render()}}return customElements.define(mrt.View,sfe),G6.LikeC4View=sfe,Object.defineProperty(G6,Symbol.toStringTag,{value:"Module"}),G6})({});


/* prettier-ignore-end */

